src
stringlengths
11
425k
codeart
stringlengths
257
560k
static int cannotBeFunction(Parse *pParse, struct SrcList_item *pFrom){ if( pFrom->fg.isTabFunc ){ sqlite3ErrorMsg(pParse, "'%s' is not a function", pFrom->zName); return 1; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_479360", "function_addr": 4690784, "binary_name": "8efe7c3c3820e4b225da8754cc0c08714f5d3c9833a642e99478b7133b71820a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rax, [rbp+var_10]"], [6, "movzx eax, byte ptr [rax+3Dh]"], [7, "and eax, 4"], [8, "test al, al"], [9, "jz short loc_4793A4"], [10, "mov rax, [rbp+var_10]"], [11, "mov rdx, [rax+10h]"], [12, "mov rax, [rbp+var_8]"], [13, "mov esi, offset aSIsNotAFunctio"], [14, "mov rdi, rax"], [15, "mov eax, 0"], [16, "call sub_40B0B6"], [17, "mov eax, 1"], [18, "jmp short locret_4793A9"], [19, "mov eax, 0"], [20, "leave"], [21, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 4], [11, 10], [12, 3], [14, 12], [21, 19], [21, 17]]}
static duk_ret_t native_aiot_onConnect(duk_context *ctx) { int ret = -1; int dev_id; int payload_len; char *payload; if (!duk_is_number(ctx, 0) || !duk_is_function(ctx, 1)) { amp_warn(MOD_STR, "parameter must be (number, function)"); goto out; } dev_id = duk_get_int(ctx, 0); if (dev_id < 0) { amp_warn(MOD_STR, "dev_id [%d] is invalid", dev_id); goto out; } duk_dup(ctx, 1); g_iot_connect_module.js_cb_ref = be_ref(ctx); IOT_RegisterCallback(ITE_CONNECT_SUCC, connect_event_handler); out: duk_push_int(ctx, ret); return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_451E91", "function_addr": 4529809, "binary_name": "8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_4], 0FFFFFFFFh"], [5, "mov rax, [rbp+var_18]"], [6, "mov esi, 0"], [7, "mov rdi, rax"], [8, "call sub_411D74"], [9, "test eax, eax"], [10, "jz short loc_451ECE"], [11, "mov rax, [rbp+var_18]"], [12, "mov esi, 1"], [13, "mov rdi, rax"], [14, "call sub_412055"], [15, "test eax, eax"], [16, "jnz short loc_451EF4"], [17, "mov r8d, offset aParameterMustB_10"], [18, "mov ecx, 2B1h"], [19, "mov edx, offset aAddonsNetworkI"], [20, "mov esi, offset aAiot"], [21, "mov edi, 4"], [22, "mov eax, 0"], [23, "call sub_46398E"], [24, "jmp short loc_451F67"], [25, "mov rax, [rbp+var_18]"], [26, "mov esi, 0"], [27, "mov rdi, rax"], [28, "call sub_40EAAA"], [29, "mov [rbp+var_8], eax"], [30, "cmp [rbp+var_8], 0"], [31, "jns short loc_451F3A"], [32, "mov eax, [rbp+var_8]"], [33, "mov r9d, eax"], [34, "mov r8d, offset aDevIdDIsInvali"], [35, "mov ecx, 2B7h"], [36, "mov edx, offset aAddonsNetworkI"], [37, "mov esi, offset aAiot"], [38, "mov edi, 4"], [39, "mov eax, 0"], [40, "call sub_46398E"], [41, "jmp short loc_451F67"], [42, "mov rax, [rbp+var_18]"], [43, "mov esi, 1"], [44, "mov rdi, rax"], [45, "call sub_40DD6B"], [46, "mov rax, [rbp+var_18]"], [47, "mov rdi, rax"], [48, "call sub_44CD52"], [49, "mov cs:dword_50FDD4, eax"], [50, "mov edi, offset sub_451DCF"], [51, "call sub_46CE8C"], [52, "mov edx, [rbp+var_4]"], [53, "mov rax, [rbp+var_18]"], [54, "mov esi, edx"], [55, "mov rdi, rax"], [56, "call sub_412646"], [57, "mov eax, 1"], [58, "leave"], [59, "retn"]], "data_dep": [[5, 3], [7, 5], [9, 8], [10, 9], [11, 3], [13, 11], [15, 14], [16, 15], [25, 3], [27, 25], [29, 28], [30, 29], [31, 30], [32, 29], [33, 32], [42, 3], [44, 42], [46, 3], [47, 46], [49, 48], [52, 4], [53, 3], [54, 52], [55, 53], [59, 57]]}
void psmc_delete_par(psmc_par_t *par) { int i; if (par == 0) return; free(par->par_map); free(par->inp_pa); free(par->pre_fn); free(par->pattern); fclose(par->fpout); for (i = 0; i != par->n_seqs; ++i) { free(par->seqs[i].name); free(par->seqs[i].seq); } if (par->fpcnt) fclose(par->fpcnt); free(par->seqs); free(par); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405362", "function_addr": 4215650, "binary_name": "d8892ae8dea98a70ffb6f2933725053f9bdabe4e3ec667950c8a18330c81b823.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+ptr], rdi"], [4, "cmp [rbp+ptr], 0"], [5, "jz loc_40545D"], [6, "mov rax, [rbp+ptr]"], [7, "mov rax, [rax+8]"], [8, "mov rdi, rax"], [9, "call _free"], [10, "mov rax, [rbp+ptr]"], [11, "mov rax, [rax+40h]"], [12, "mov rdi, rax"], [13, "call _free"], [14, "mov rax, [rbp+ptr]"], [15, "mov rax, [rax+58h]"], [16, "mov rdi, rax"], [17, "call _free"], [18, "mov rax, [rbp+ptr]"], [19, "mov rax, [rax+60h]"], [20, "mov rdi, rax"], [21, "call _free"], [22, "mov rax, [rbp+ptr]"], [23, "mov rax, [rax+30h]"], [24, "mov rdi, rax"], [25, "call _fclose"], [26, "mov [rbp+var_4], 0"], [27, "jmp short loc_405416"], [28, "mov rax, [rbp+ptr]"], [29, "mov rdx, [rax+18h]"], [30, "mov eax, [rbp+var_4]"], [31, "cdqe"], [32, "shl rax, 5"], [33, "add rax, rdx"], [34, "mov rax, [rax+18h]"], [35, "mov rdi, rax"], [36, "call _free"], [37, "mov rax, [rbp+ptr]"], [38, "mov rdx, [rax+18h]"], [39, "mov eax, [rbp+var_4]"], [40, "cdqe"], [41, "shl rax, 5"], [42, "add rax, rdx"], [43, "mov rax, [rax+10h]"], [44, "mov rdi, rax"], [45, "call _free"], [46, "add [rbp+var_4], 1"], [47, "mov rax, [rbp+ptr]"], [48, "mov eax, [rax+10h]"], [49, "cmp [rbp+var_4], eax"], [50, "jnz short loc_4053D2"], [51, "mov rax, [rbp+ptr]"], [52, "mov rax, [rax+38h]"], [53, "test rax, rax"], [54, "jz short loc_40543F"], [55, "mov rax, [rbp+ptr]"], [56, "mov rax, [rax+38h]"], [57, "mov rdi, rax"], [58, "call _fclose"], [59, "mov rax, [rbp+ptr]"], [60, "mov rax, [rax+18h]"], [61, "mov rdi, rax"], [62, "call _free"], [63, "mov rax, [rbp+ptr]"], [64, "mov rdi, rax"], [65, "call _free"], [66, "jmp short locret_40545E"], [67, "nop"], [68, "leave"], [69, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 7], [10, 3], [11, 10], [12, 11], [14, 3], [15, 14], [16, 15], [18, 3], [19, 18], [20, 19], [22, 3], [23, 22], [24, 23], [28, 3], [29, 28], [30, 46], [30, 26], [32, 30], [33, 29], [33, 32], [34, 33], [35, 34], [37, 3], [38, 37], [39, 26], [39, 46], [41, 39], [42, 38], [42, 41], [43, 42], [44, 43], [46, 26], [46, 46], [47, 3], [48, 47], [49, 26], [49, 46], [49, 48], [50, 49], [51, 3], [52, 51], [53, 52], [54, 53], [55, 3], [56, 55], [57, 56], [59, 3], [60, 59], [61, 60], [63, 3], [64, 63], [69, 65]]}
fpreal64_t fp_adddb (fpreal64_t fb, fpreal64_t fa) { return db_binary (fb, fa, db_add); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406A27", "function_addr": 4221479, "binary_name": "69689a38c3d9f46a978bf43a0e018a9c944cfc002873c546c0e597ff603f6bc0.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 18h"], [1, "mov [rsp+18h+var_10], rdi"], [2, "mov [rsp+18h+var_18], rsi"], [3, "mov rcx, [rsp+18h+var_18]"], [4, "mov rax, [rsp+18h+var_10]"], [5, "mov edx, offset sub_405D77"], [6, "mov rsi, rcx"], [7, "mov rdi, rax"], [8, "call sub_40590A"], [9, "add rsp, 18h"], [10, "retn"]], "data_dep": [[3, 2], [4, 1], [6, 3], [7, 4], [9, 0], [10, 8]]}
static ACPI_STATUS LdNamespace1Begin ( ACPI_PARSE_OBJECT *Op, UINT32 Level, void *Context) { ACPI_WALK_STATE *WalkState = (ACPI_WALK_STATE *) Context; ACPI_NAMESPACE_NODE *Node; ACPI_PARSE_OBJECT *MethodOp; ACPI_STATUS Status; ACPI_OBJECT_TYPE ObjectType; char *Path; UINT32 Flags = ACPI_NS_NO_UPSEARCH; ACPI_PARSE_OBJECT *Arg; UINT32 i; BOOLEAN ForceNewScope = FALSE; const ACPI_OPCODE_INFO *OpInfo; ACPI_PARSE_OBJECT *ParentOp; char *ExternalPath; ACPI_FUNCTION_NAME (LdNamespace1Begin); ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Op %p [%s]\n", Op, Op->Asl.ParseOpName)); /* * We are only interested in opcodes that have an associated name * (or multiple names) */ switch (Op->Asl.AmlOpcode) { case AML_INDEX_FIELD_OP: Status = LdLoadFieldElements (ACPI_TYPE_LOCAL_REGION_FIELD, Op, WalkState); return (Status); case AML_BANK_FIELD_OP: case AML_FIELD_OP: Status = LdLoadFieldElements (ACPI_TYPE_REGION, Op, WalkState); return (Status); case AML_INT_CONNECTION_OP: if (Op->Asl.Child->Asl.AmlOpcode != AML_INT_NAMEPATH_OP) { break; } Arg = Op->Asl.Child; Status = AcpiNsLookup (WalkState->ScopeInfo, Arg->Asl.ExternalName, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &Node); if (ACPI_FAILURE (Status)) { break; } break; default: /* All other opcodes go below */ break; } /* Check if this object has already been installed in the namespace */ if (Op->Asl.Node) { return (AE_OK); } /* Check for a possible illegal forward reference */ if ((Op->Asl.ParseOpcode == PARSEOP_NAMESEG) || (Op->Asl.ParseOpcode == PARSEOP_NAMESTRING) || (Op->Asl.ParseOpcode == PARSEOP_METHODCALL)) { /* * Op->Asl.Namepath will be NULL for these opcodes. * These opcodes are guaranteed to have a parent. * Examine the parent opcode. */ ParentOp = Op->Asl.Parent; OpInfo = AcpiPsGetOpcodeInfo (ParentOp->Asl.AmlOpcode); /* * Exclude all operators that actually declare a new name: * Name (ABCD, 1) -> Ignore (AML_CLASS_NAMED_OBJECT) * We only want references to named objects: * Store (2, WXYZ) -> Attempt to resolve the name */ if ((Op->Asl.ParseOpcode != PARSEOP_METHODCALL) && (OpInfo->Class == AML_CLASS_NAMED_OBJECT)) { return (AE_OK); } /* * Check if the referenced object exists at this point during * the load: * 1) If it exists, then this cannot be a forward reference. * 2) If it does not exist, it could be a forward reference or * it truly does not exist (and no external declaration). */ Status = AcpiNsLookup (WalkState->ScopeInfo, Op->Asl.Value.Name, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT | ACPI_NS_DONT_OPEN_SCOPE, WalkState, &Node); if (Status == AE_NOT_FOUND) { /* * This is either a forward reference or the object truly * does not exist. The two cases can only be differentiated * during the cross-reference stage later. Mark the Op/Name * as not-found for now to indicate the need for further * processing. * * Special case: Allow forward references from elements of * Package objects. This provides compatibility with other * ACPI implementations. To correctly implement this, the * ACPICA table load defers package resolution until the entire * namespace has been loaded. */ if ((ParentOp->Asl.ParseOpcode != PARSEOP_PACKAGE) && (ParentOp->Asl.ParseOpcode != PARSEOP_VAR_PACKAGE)) { Op->Asl.CompileFlags |= OP_NOT_FOUND_DURING_LOAD; } return (AE_OK); } return (Status); } Path = Op->Asl.Namepath; if (!Path) { return (AE_OK); } /* Map the raw opcode into an internal object type */ switch (Op->Asl.ParseOpcode) { case PARSEOP_NAME: Arg = Op->Asl.Child; /* Get the NameSeg/NameString node */ Arg = Arg->Asl.Next; /* First peer is the object to be associated with the name */ /* * If this name refers to a ResourceTemplate, we will need to open * a new scope so that the resource subfield names can be entered into * the namespace underneath this name */ if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC) { ForceNewScope = TRUE; } /* Get the data type associated with the named object, not the name itself */ /* Log2 loop to convert from Btype (binary) to Etype (encoded) */ ObjectType = 1; for (i = 1; i < Arg->Asl.AcpiBtype; i *= 2) { ObjectType++; } break; case PARSEOP_EXTERNAL: /* * "External" simply enters a name and type into the namespace. * We must be careful to not open a new scope, however, no matter * what type the external name refers to (e.g., a method) * * first child is name, next child is ObjectType */ ObjectType = (UINT8) Op->Asl.Child->Asl.Next->Asl.Value.Integer; /* * We will mark every new node along the path as "External". This * allows some or all of the nodes to be created later in the ASL * code. Handles cases like this: * * External (\_SB_.PCI0.ABCD, IntObj) * Scope (_SB_) * { * Device (PCI0) * { * } * } * Method (X) * { * Store (\_SB_.PCI0.ABCD, Local0) * } */ Flags |= ACPI_NS_EXTERNAL | ACPI_NS_DONT_OPEN_SCOPE; break; case PARSEOP_DEFAULT_ARG: if (Op->Asl.CompileFlags == OP_IS_RESOURCE_DESC) { Status = LdLoadResourceElements (Op, WalkState); return_ACPI_STATUS (Status); } ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); break; case PARSEOP_SCOPE: /* * The name referenced by Scope(Name) must already exist at this point. * In other words, forward references for Scope() are not supported. * The only real reason for this is that the MS interpreter cannot * handle this case. Perhaps someday this case can go away. */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_ANY, ACPI_IMODE_EXECUTE, ACPI_NS_SEARCH_PARENT, WalkState, &Node); if (ACPI_FAILURE (Status)) { if (Status == AE_NOT_FOUND) { /* The name was not found, go ahead and create it */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ACPI_TYPE_LOCAL_SCOPE, ACPI_IMODE_LOAD_PASS1, Flags, WalkState, &Node); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } /* However, this is an error -- operand to Scope must exist */ if (strlen (Op->Asl.ExternalName) == ACPI_NAMESEG_SIZE) { AslError (ASL_ERROR, ASL_MSG_NOT_FOUND, Op, Op->Asl.ExternalName); } else { AslError (ASL_ERROR, ASL_MSG_NAMEPATH_NOT_EXIST, Op, Op->Asl.ExternalName); } goto FinishNode; } AslCoreSubsystemError (Op, Status, "Failure from namespace lookup", FALSE); return_ACPI_STATUS (Status); } else /* Status AE_OK */ { /* * Do not allow references to external scopes from the DSDT. * This is because the DSDT is always loaded first, and the * external reference cannot be resolved -- causing a runtime * error because Scope() must be resolved immediately. * 10/2015. */ if ((Node->Flags & ANOBJ_IS_EXTERNAL) && (ACPI_COMPARE_NAMESEG (AslGbl_TableSignature, "DSDT"))) { /* However, allowed if the reference is within a method */ MethodOp = Op->Asl.Parent; while (MethodOp && (MethodOp->Asl.ParseOpcode != PARSEOP_METHOD)) { MethodOp = MethodOp->Asl.Parent; } if (!MethodOp) { /* Not in a control method, error */ AslError (ASL_ERROR, ASL_MSG_CROSS_TABLE_SCOPE, Op, NULL); } } } /* We found a node with this name, now check the type */ switch (Node->Type) { case ACPI_TYPE_LOCAL_SCOPE: case ACPI_TYPE_DEVICE: case ACPI_TYPE_POWER: case ACPI_TYPE_PROCESSOR: case ACPI_TYPE_THERMAL: /* These are acceptable types - they all open a new scope */ break; case ACPI_TYPE_INTEGER: case ACPI_TYPE_STRING: case ACPI_TYPE_BUFFER: /* * These types we will allow, but we will change the type. * This enables some existing code of the form: * * Name (DEB, 0) * Scope (DEB) { ... } * * Which is used to workaround the fact that the MS interpreter * does not allow Scope() forward references. */ sprintf (AslGbl_MsgBuffer, "%s [%s], changing type to [Scope]", Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type)); AslError (ASL_REMARK, ASL_MSG_SCOPE_TYPE, Op, AslGbl_MsgBuffer); /* Switch the type to scope, open the new scope */ Node->Type = ACPI_TYPE_LOCAL_SCOPE; Status = AcpiDsScopeStackPush (Node, ACPI_TYPE_LOCAL_SCOPE, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } break; default: /* All other types are an error */ sprintf (AslGbl_MsgBuffer, "%s [%s]", Op->Asl.ExternalName, AcpiUtGetTypeName (Node->Type)); AslError (ASL_ERROR, ASL_MSG_SCOPE_TYPE, Op, AslGbl_MsgBuffer); /* * However, switch the type to be an actual scope so * that compilation can continue without generating a whole * cascade of additional errors. Open the new scope. */ Node->Type = ACPI_TYPE_LOCAL_SCOPE; Status = AcpiDsScopeStackPush (Node, ACPI_TYPE_LOCAL_SCOPE, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } break; } Status = AE_OK; goto FinishNode; default: ObjectType = AslMapNamedOpcodeToDataType (Op->Asl.AmlOpcode); break; } ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "Loading name: %s, (%s)\n", Op->Asl.ExternalName, AcpiUtGetTypeName (ObjectType))); /* The name must not already exist */ Flags |= ACPI_NS_ERROR_IF_FOUND; /* * For opcodes that enter new names into the namespace, * all prefix NameSegs must exist. */ WalkState->OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode); if (((WalkState->OpInfo->Flags & AML_NAMED) || (WalkState->OpInfo->Flags & AML_CREATE)) && (Op->Asl.AmlOpcode != AML_EXTERNAL_OP)) { Flags |= ACPI_NS_PREFIX_MUST_EXIST; } /* * Enter the named type into the internal namespace. We enter the name * as we go downward in the parse tree. Any necessary subobjects that * involve arguments to the opcode must be created as we go back up the * parse tree later. */ Status = AcpiNsLookup (WalkState->ScopeInfo, Path, ObjectType, ACPI_IMODE_LOAD_PASS1, Flags, WalkState, &Node); if (ACPI_FAILURE (Status)) { if (Status == AE_ALREADY_EXISTS) { /* The name already exists in this scope */ if (Node->Type == ACPI_TYPE_LOCAL_SCOPE) { /* Allow multiple references to the same scope */ Node->Type = (UINT8) ObjectType; Status = AE_OK; } else if ((Node->Flags & ANOBJ_IS_EXTERNAL) || (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL)) { Status = LdAnalyzeExternals (Node, Op, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { if (Status == AE_ERROR) { /* * The use of AE_ERROR here indicates that there was a * compiler error emitted in LdAnalyzeExternals which * means that the caller should proceed to the next Op * for analysis of subsequent parse objects. */ Status = AE_OK; } return_ACPI_STATUS (Status); } if (!(Node->Flags & ANOBJ_IS_EXTERNAL) && (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL)) { /* * If we get to here, it means that an actual definition of * the object declared external exists. Meaning that Op * loading this this Op should have no change to the ACPI * namespace. By going to FinishNode, we skip the * assignment of Node->Op = Op. */ goto FinishNode; } } else { /* Valid error, object already exists */ ExternalPath = AcpiNsGetNormalizedPathname (Node, TRUE); AslDualParseOpError (ASL_ERROR, ASL_MSG_NAME_EXISTS, Op, ExternalPath, ASL_MSG_FOUND_HERE, Node->Op, ExternalPath); if (ExternalPath) { ACPI_FREE (ExternalPath); } return_ACPI_STATUS (AE_OK); } } else if (AE_NOT_FOUND) { /* * One or more prefix NameSegs of the NamePath do not exist * (all of them must exist). Attempt to continue compilation * by setting the current scope to the root. */ Node = AcpiGbl_RootNode; Status = AE_OK; } else { /* Flag all other errors as coming from the ACPICA core */ AslCoreSubsystemError (Op, Status, "Failure from namespace lookup", FALSE); return_ACPI_STATUS (Status); } } /* Check special names like _WAK and _PTS */ LdCheckSpecialNames (Node, Op); if (ForceNewScope) { Status = AcpiDsScopeStackPush (Node, ObjectType, WalkState); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } } /* Point the Node back to the original Parse node */ Node->Op = Op; FinishNode: /* Point the parse node to the new namespace node */ Op->Asl.Node = Node; if (Op->Asl.ParseOpcode == PARSEOP_METHOD) { /* * Get the method argument count from "Extra" and save * it in the namespace node */ Node->Value = (UINT32) Op->Asl.Extra; } else if (Op->Asl.ParseOpcode == PARSEOP_EXTERNAL && Node->Type == ACPI_TYPE_METHOD && (Node->Flags & ANOBJ_IS_EXTERNAL)) { Node->Value = (UINT32) Op->Asl.Child->Asl.Next->Asl.Next->Asl.Value.Integer; } return_ACPI_STATUS (Status); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_428257", "function_addr": 4358743, "binary_name": "1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 88h"], [4, "mov qword ptr [rbp+var_78], rdi"], [5, "mov [rbp+var_7C], esi"], [6, "mov [rbp+var_88], rdx"], [7, "mov rax, [rbp+var_88]"], [8, "mov [rbp+var_38], rax"], [9, "mov [rbp+var_24], 0"], [10, "mov [rbp+var_29], 0"], [11, "mov eax, cs:dword_51AEB4"], [12, "and eax, 100h"], [13, "test eax, eax"], [14, "jz short loc_4282E1"], [15, "mov eax, cs:dword_51AEB8"], [16, "and eax, 1000h"], [17, "test eax, eax"], [18, "jz short loc_4282E1"], [19, "mov rax, qword ptr [rbp+var_78]"], [20, "add rax, 105h"], [21, "push rax"], [22, "push qword ptr [rbp+var_78]"], [23, "mov r9d, offset aOpPS"], [24, "mov r8d, 1000h"], [25, "mov ecx, offset aAslload"], [26, "mov edx, offset aLdnamespace1be"], [27, "mov esi, 212h"], [28, "mov edi, 100h"], [29, "mov eax, 0"], [30, "call sub_489643"], [31, "add rsp, 10h"], [32, "mov rax, qword ptr [rbp+var_78]"], [33, "movzx eax, word ptr [rax+0Ah]"], [34, "movzx eax, ax"], [35, "cmp eax, 5B87h"], [36, "jz short loc_428341"], [37, "cmp eax, 5B87h"], [38, "jg loc_4283D0"], [39, "cmp eax, 5B86h"], [40, "jz short loc_428321"], [41, "cmp eax, 5B86h"], [42, "jg loc_4283D0"], [43, "cmp eax, 38h "], [44, "jz short loc_428361"], [45, "cmp eax, 5B81h"], [46, "jz short loc_428341"], [47, "jmp loc_4283D0"], [48, "mov rdx, [rbp+var_38]"], [49, "mov rax, qword ptr [rbp+var_78]"], [50, "mov rsi, rax"], [51, "mov edi, 11h"], [52, "call sub_427DF7"], [53, "mov [rbp+var_1C], eax"], [54, "mov eax, [rbp+var_1C]"], [55, "jmp loc_428D78"], [56, "mov rdx, [rbp+var_38]"], [57, "mov rax, qword ptr [rbp+var_78]"], [58, "mov rsi, rax"], [59, "mov edi, 0Ah"], [60, "call sub_427DF7"], [61, "mov [rbp+var_1C], eax"], [62, "mov eax, [rbp+var_1C]"], [63, "jmp loc_428D78"], [64, "mov rax, qword ptr [rbp+var_78]"], [65, "mov rax, [rax+90h]"], [66, "movzx eax, word ptr [rax+0Ah]"], [67, "cmp ax, 2Dh "], [68, "jnz short loc_4283D3"], [69, "mov rax, qword ptr [rbp+var_78]"], [70, "mov rax, [rax+90h]"], [71, "mov [rbp+var_40], rax"], [72, "mov rax, [rbp+var_40]"], [73, "mov rsi, [rax+0B8h]"], [74, "mov rax, [rbp+var_38]"], [75, "mov rax, [rax+690h]"], [76, "mov rcx, [rbp+var_38]"], [77, "sub rsp, 8"], [78, "lea rdx, [rbp+var_68]"], [79, "push rdx"], [80, "mov r9, rcx"], [81, "mov r8d, 1"], [82, "mov ecx, 3"], [83, "mov edx, 0"], [84, "mov rdi, rax"], [85, "call sub_47638A"], [86, "add rsp, 10h"], [87, "mov [rbp+var_1C], eax"], [88, "cmp [rbp+var_1C], 0"], [89, "jmp short loc_4283D4"], [90, "nop"], [91, "jmp short loc_4283D4"], [92, "nop"], [93, "mov rax, qword ptr [rbp+var_78]"], [94, "mov rax, [rax+20h]"], [95, "test rax, rax"], [96, "jz short loc_4283EB"], [97, "mov eax, 0"], [98, "jmp loc_428D78"], [99, "mov rax, qword ptr [rbp+var_78]"], [100, "movzx eax, word ptr [rax+100h]"], [101, "cmp ax, 1B8h"], [102, "jz short loc_428422"], [103, "mov rax, qword ptr [rbp+var_78]"], [104, "movzx eax, word ptr [rax+100h]"], [105, "cmp ax, 1B9h"], [106, "jz short loc_428422"], [107, "mov rax, qword ptr [rbp+var_78]"], [108, "movzx eax, word ptr [rax+100h]"], [109, "cmp ax, 1B0h"], [110, "jnz loc_428501"], [111, "mov rax, qword ptr [rbp+var_78]"], [112, "mov rax, [rax]"], [113, "mov [rbp+var_58], rax"], [114, "mov rax, [rbp+var_58]"], [115, "movzx eax, word ptr [rax+0Ah]"], [116, "movzx eax, ax"], [117, "mov edi, eax"], [118, "call sub_481BA3"], [119, "mov [rbp+var_60], rax"], [120, "mov rax, qword ptr [rbp+var_78]"], [121, "movzx eax, word ptr [rax+100h]"], [122, "cmp ax, 1B0h"], [123, "jz short loc_42846A"], [124, "mov rax, [rbp+var_60]"], [125, "movzx eax, byte ptr [rax+13h]"], [126, "cmp al, 3"], [127, "jnz short loc_42846A"], [128, "mov eax, 0"], [129, "jmp loc_428D78"], [130, "mov rax, qword ptr [rbp+var_78]"], [131, "mov rsi, [rax+28h]"], [132, "mov rax, [rbp+var_38]"], [133, "mov rax, [rax+690h]"], [134, "mov rcx, [rbp+var_38]"], [135, "sub rsp, 8"], [136, "lea rdx, [rbp+var_68]"], [137, "push rdx"], [138, "mov r9, rcx"], [139, "mov r8d, 3"], [140, "mov ecx, 3"], [141, "mov edx, 0"], [142, "mov rdi, rax"], [143, "call sub_47638A"], [144, "add rsp, 10h"], [145, "mov [rbp+var_1C], eax"], [146, "cmp [rbp+var_1C], 5"], [147, "jnz short loc_4284F9"], [148, "mov rax, [rbp+var_58]"], [149, "movzx eax, word ptr [rax+100h]"], [150, "cmp ax, 1D5h"], [151, "jz short loc_4284EF"], [152, "mov rax, [rbp+var_58]"], [153, "movzx eax, word ptr [rax+100h]"], [154, "cmp ax, 236h"], [155, "jz short loc_4284EF"], [156, "mov rax, qword ptr [rbp+var_78]"], [157, "mov eax, [rax+0FCh]"], [158, "or eax, 200000h"], [159, "mov edx, eax"], [160, "mov rax, qword ptr [rbp+var_78]"], [161, "mov [rax+0FCh], edx"], [162, "mov eax, 0"], [163, "jmp loc_428D78"], [164, "mov eax, [rbp+var_1C]"], [165, "jmp loc_428D78"], [166, "mov rax, qword ptr [rbp+var_78]"], [167, "mov rax, [rax+0C0h]"], [168, "mov [rbp+var_48], rax"], [169, "cmp [rbp+var_48], 0"], [170, "jnz short loc_428521"], [171, "mov eax, 0"], [172, "jmp loc_428D78"], [173, "mov rax, qword ptr [rbp+var_78]"], [174, "movzx eax, word ptr [rax+100h]"], [175, "movzx eax, ax"], [176, "cmp eax, 207h"], [177, "jz loc_428650"], [178, "cmp eax, 207h"], [179, "jg loc_4289D2"], [180, "cmp eax, 1B7h"], [181, "jz short loc_42856E"], [182, "cmp eax, 1B7h"], [183, "jg loc_4289D2"], [184, "cmp eax, 148h"], [185, "jz loc_4285EB"], [186, "cmp eax, 164h"], [187, "jz short loc_4285C9"], [188, "jmp loc_4289D2"], [189, "mov rax, qword ptr [rbp+var_78]"], [190, "mov rax, [rax+90h]"], [191, "mov [rbp+var_40], rax"], [192, "mov rax, [rbp+var_40]"], [193, "mov rax, [rax+18h]"], [194, "mov [rbp+var_40], rax"], [195, "mov rax, qword ptr [rbp+var_78]"], [196, "mov eax, [rax+0FCh]"], [197, "and eax, 8"], [198, "test eax, eax"], [199, "jz short loc_42859E"], [200, "mov [rbp+var_29], 1"], [201, "mov [rbp+var_20], 1"], [202, "mov [rbp+var_28], 1"], [203, "jmp short loc_4285B5"], [204, "add [rbp+var_20], 1"], [205, "shl [rbp+var_28], 1"], [206, "mov rax, [rbp+var_40]"], [207, "mov eax, [rax+0E8h]"], [208, "cmp [rbp+var_28], eax"], [209, "jb short loc_4285AE"], [210, "jmp loc_4289E8"], [211, "mov rax, qword ptr [rbp+var_78]"], [212, "mov rax, [rax+90h]"], [213, "mov rax, [rax+18h]"], [214, "mov rax, [rax+28h]"], [215, "movzx eax, al"], [216, "mov [rbp+var_20], eax"], [217, "or [rbp+var_24], 22h"], [218, "jmp loc_4289E8"], [219, "mov rax, qword ptr [rbp+var_78]"], [220, "mov eax, [rax+0FCh]"], [221, "cmp eax, 8"], [222, "jnz short loc_428636"], [223, "mov rdx, [rbp+var_38]"], [224, "mov rax, qword ptr [rbp+var_78]"], [225, "mov rsi, rdx"], [226, "mov rdi, rax"], [227, "call sub_428080"], [228, "mov [rbp+var_1C], eax"], [229, "mov ebx, [rbp+var_1C]"], [230, "mov r8d, ebx"], [231, "mov ecx, 1000h"], [232, "mov edx, offset aAslload"], [233, "mov esi, offset aLdnamespace1be"], [234, "mov edi, 2CDh"], [235, "call sub_489B9F"], [236, "mov eax, ebx"], [237, "jmp loc_428D78"], [238, "mov rax, qword ptr [rbp+var_78]"], [239, "movzx eax, word ptr [rax+0Ah]"], [240, "movzx eax, ax"], [241, "mov edi, eax"], [242, "call sub_429CF0"], [243, "mov [rbp+var_20], eax"], [244, "jmp loc_4289E8"], [245, "mov rax, [rbp+var_38]"], [246, "mov rax, [rax+690h]"], [247, "mov rcx, [rbp+var_38]"], [248, "mov rsi, [rbp+var_48]"], [249, "sub rsp, 8"], [250, "lea rdx, [rbp+var_68]"], [251, "push rdx"], [252, "mov r9, rcx"], [253, "mov r8d, 1"], [254, "mov ecx, 3"], [255, "mov edx, 0"], [256, "mov rdi, rax"], [257, "call sub_47638A"], [258, "add rsp, 10h"], [259, "mov [rbp+var_1C], eax"], [260, "cmp [rbp+var_1C], 0"], [261, "jz loc_4287B6"], [262, "cmp [rbp+var_1C], 5"], [263, "jnz loc_428777"], [264, "mov rax, [rbp+var_38]"], [265, "mov rax, [rax+690h]"], [266, "mov rdi, [rbp+var_38]"], [267, "mov ecx, [rbp+var_24]"], [268, "mov rsi, [rbp+var_48]"], [269, "sub rsp, 8"], [270, "lea rdx, [rbp+var_68]"], [271, "push rdx"], [272, "mov r9, rdi"], [273, "mov r8d, ecx"], [274, "mov ecx, 1"], [275, "mov edx, 1Bh"], [276, "mov rdi, rax"], [277, "call sub_47638A"], [278, "add rsp, 10h"], [279, "mov [rbp+var_1C], eax"], [280, "cmp [rbp+var_1C], 0"], [281, "jz short loc_42870C"], [282, "mov ebx, [rbp+var_1C]"], [283, "mov r8d, ebx"], [284, "mov ecx, 1000h"], [285, "mov edx, offset aAslload"], [286, "mov esi, offset aLdnamespace1be"], [287, "mov edi, 2E7h"], [288, "call sub_489B9F"], [289, "mov eax, ebx"], [290, "jmp loc_428D78"], [291, "mov rax, qword ptr [rbp+var_78]"], [292, "mov rax, [rax+0B8h]"], [293, "mov rdi, rax"], [294, "call _strlen"], [295, "cmp rax, 4"], [296, "jnz short loc_42874E"], [297, "mov rax, qword ptr [rbp+var_78]"], [298, "mov rdx, [rax+0B8h]"], [299, "mov rax, qword ptr [rbp+var_78]"], [300, "mov rcx, rdx"], [301, "mov rdx, rax"], [302, "mov esi, 55h "], [303, "mov edi, 5"], [304, "call sub_4220CC"], [305, "jmp loc_428CD6"], [306, "mov rax, qword ptr [rbp+var_78]"], [307, "mov rdx, [rax+0B8h]"], [308, "mov rax, qword ptr [rbp+var_78]"], [309, "mov rcx, rdx"], [310, "mov rdx, rax"], [311, "mov esi, 0A1h"], [312, "mov edi, 5"], [313, "call sub_4220CC"], [314, "jmp loc_428CD6"], [315, "mov esi, [rbp+var_1C]"], [316, "mov rax, qword ptr [rbp+var_78]"], [317, "mov ecx, 0"], [318, "mov edx, offset aFailureFromNam"], [319, "mov rdi, rax"], [320, "call sub_42216D"], [321, "mov ebx, [rbp+var_1C]"], [322, "mov r8d, ebx"], [323, "mov ecx, 1000h"], [324, "mov edx, offset aAslload"], [325, "mov esi, offset aLdnamespace1be"], [326, "mov edi, 2FDh"], [327, "call sub_489B9F"], [328, "mov eax, ebx"], [329, "jmp loc_428D78"], [330, "mov rax, [rbp+var_68]"], [331, "movzx eax, word ptr [rax+0Ah]"], [332, "movzx eax, ax"], [333, "and eax, 8"], [334, "test eax, eax"], [335, "jz short loc_42882E"], [336, "mov rax, cs:off_50F528"], [337, "mov edx, [rax]"], [338, "mov eax, offset aDsdt_1"], [339, "mov eax, [rax]"], [340, "cmp edx, eax"], [341, "jnz short loc_42882E"], [342, "mov rax, qword ptr [rbp+var_78]"], [343, "mov rax, [rax]"], [344, "mov [rbp+var_18], rax"], [345, "jmp short loc_4287F4"], [346, "mov rax, [rbp+var_18]"], [347, "mov rax, [rax]"], [348, "mov [rbp+var_18], rax"], [349, "cmp [rbp+var_18], 0"], [350, "jz short loc_42880C"], [351, "mov rax, [rbp+var_18]"], [352, "movzx eax, word ptr [rax+100h]"], [353, "cmp ax, 1AFh"], [354, "jnz short loc_4287E9"], [355, "cmp [rbp+var_18], 0"], [356, "jnz short loc_42882E"], [357, "mov rax, qword ptr [rbp+var_78]"], [358, "mov ecx, 0"], [359, "mov rdx, rax"], [360, "mov esi, 94h"], [361, "mov edi, 5"], [362, "call sub_4220CC"], [363, "mov rax, [rbp+var_68]"], [364, "movzx eax, byte ptr [rax+9]"], [365, "movzx eax, al"], [366, "cmp eax, 1Bh"], [367, "jz loc_4289BF"], [368, "cmp eax, 1Bh"], [369, "jg loc_42891E"], [370, "cmp eax, 0Dh"], [371, "jg loc_42891E"], [372, "cmp eax, 0Bh"], [373, "jge loc_4289BF"], [374, "cmp eax, 3"], [375, "jg short loc_42886B"], [376, "test eax, eax"], [377, "jg short loc_428879"], [378, "jmp loc_42891E"], [379, "cmp eax, 6"], [380, "jnz loc_42891E"], [381, "jmp loc_4289BF"], [382, "mov rax, [rbp+var_68]"], [383, "movzx eax, byte ptr [rax+9]"], [384, "movzx eax, al"], [385, "mov edi, eax"], [386, "call sub_489ED9"], [387, "mov rdx, rax"], [388, "mov rax, qword ptr [rbp+var_78]"], [389, "mov rax, [rax+0B8h]"], [390, "mov rcx, rdx"], [391, "mov rdx, rax"], [392, "mov esi, offset aSSChangingType"], [393, "mov edi, offset s"], [394, "mov eax, 0"], [395, "call _sprintf"], [396, "mov rax, qword ptr [rbp+var_78]"], [397, "mov ecx, offset s"], [398, "mov rdx, rax"], [399, "mov esi, 75h "], [400, "mov edi, 1"], [401, "call sub_4220CC"], [402, "mov rax, [rbp+var_68]"], [403, "mov byte ptr [rax+9], 1Bh"], [404, "mov rax, [rbp+var_68]"], [405, "mov rdx, [rbp+var_38]"], [406, "mov esi, 1Bh"], [407, "mov rdi, rax"], [408, "call sub_460547"], [409, "mov [rbp+var_1C], eax"], [410, "cmp [rbp+var_1C], 0"], [411, "jz loc_4289C2"], [412, "mov ebx, [rbp+var_1C]"], [413, "mov r8d, ebx"], [414, "mov ecx, 1000h"], [415, "mov edx, offset aAslload"], [416, "mov esi, offset aLdnamespace1be"], [417, "mov edi, 342h"], [418, "call sub_489B9F"], [419, "mov eax, ebx"], [420, "jmp loc_428D78"], [421, "mov rax, [rbp+var_68]"], [422, "movzx eax, byte ptr [rax+9]"], [423, "movzx eax, al"], [424, "mov edi, eax"], [425, "call sub_489ED9"], [426, "mov rdx, rax"], [427, "mov rax, qword ptr [rbp+var_78]"], [428, "mov rax, [rax+0B8h]"], [429, "mov rcx, rdx"], [430, "mov rdx, rax"], [431, "mov esi, offset aSS_9"], [432, "mov edi, offset s"], [433, "mov eax, 0"], [434, "call _sprintf"], [435, "mov rax, qword ptr [rbp+var_78]"], [436, "mov ecx, offset s"], [437, "mov rdx, rax"], [438, "mov esi, 75h "], [439, "mov edi, 5"], [440, "call sub_4220CC"], [441, "mov rax, [rbp+var_68]"], [442, "mov byte ptr [rax+9], 1Bh"], [443, "mov rax, [rbp+var_68]"], [444, "mov rdx, [rbp+var_38]"], [445, "mov esi, 1Bh"], [446, "mov rdi, rax"], [447, "call sub_460547"], [448, "mov [rbp+var_1C], eax"], [449, "cmp [rbp+var_1C], 0"], [450, "jz short loc_4289C5"], [451, "mov ebx, [rbp+var_1C]"], [452, "mov r8d, ebx"], [453, "mov ecx, 1000h"], [454, "mov edx, offset aAslload"], [455, "mov esi, offset aLdnamespace1be"], [456, "mov edi, 358h"], [457, "call sub_489B9F"], [458, "mov eax, ebx"], [459, "jmp loc_428D78"], [460, "nop"], [461, "jmp short loc_4289C6"], [462, "nop"], [463, "jmp short loc_4289C6"], [464, "nop"], [465, "mov [rbp+var_1C], 0"], [466, "jmp loc_428CD6"], [467, "mov rax, qword ptr [rbp+var_78]"], [468, "movzx eax, word ptr [rax+0Ah]"], [469, "movzx eax, ax"], [470, "mov edi, eax"], [471, "call sub_429CF0"], [472, "mov [rbp+var_20], eax"], [473, "nop"], [474, "mov eax, cs:dword_51AEB4"], [475, "and eax, 100h"], [476, "test eax, eax"], [477, "jz short loc_428A4B"], [478, "mov eax, cs:dword_51AEB8"], [479, "and eax, 1000h"], [480, "test eax, eax"], [481, "jz short loc_428A4B"], [482, "mov eax, [rbp+var_20]"], [483, "mov edi, eax"], [484, "call sub_489ED9"], [485, "mov rdx, qword ptr [rbp+var_78]"], [486, "mov rdx, [rdx+0B8h]"], [487, "push rax"], [488, "push rdx"], [489, "mov r9d, offset aLoadingNameSS"], [490, "mov r8d, 1000h"], [491, "mov ecx, offset aAslload"], [492, "mov edx, offset aLdnamespace1be"], [493, "mov esi, 366h"], [494, "mov edi, 100h"], [495, "mov eax, 0"], [496, "call sub_489643"], [497, "add rsp, 10h"], [498, "or [rbp+var_24], 8"], [499, "mov rax, qword ptr [rbp+var_78]"], [500, "movzx eax, word ptr [rax+0Ah]"], [501, "movzx eax, ax"], [502, "mov edi, eax"], [503, "call sub_481BA3"], [504, "mov rdx, [rbp+var_38]"], [505, "mov [rdx+668h], rax"], [506, "mov rax, [rbp+var_38]"], [507, "mov rax, [rax+668h]"], [508, "movzx eax, word ptr [rax+10h]"], [509, "movzx eax, ax"], [510, "and eax, 40h"], [511, "test eax, eax"], [512, "jnz short loc_428A9E"], [513, "mov rax, [rbp+var_38]"], [514, "mov rax, [rax+668h]"], [515, "movzx eax, word ptr [rax+10h]"], [516, "movzx eax, ax"], [517, "and eax, 8"], [518, "test eax, eax"], [519, "jz short loc_428AB3"], [520, "mov rax, qword ptr [rbp+var_78]"], [521, "movzx eax, word ptr [rax+0Ah]"], [522, "cmp ax, 15h"], [523, "jz short loc_428AB3"], [524, "or [rbp+var_24], 200h"], [525, "mov rax, [rbp+var_38]"], [526, "mov rax, [rax+690h]"], [527, "mov r8, [rbp+var_38]"], [528, "mov edi, [rbp+var_24]"], [529, "mov edx, [rbp+var_20]"], [530, "mov rsi, [rbp+var_48]"], [531, "sub rsp, 8"], [532, "lea rcx, [rbp+var_68]"], [533, "push rcx"], [534, "mov r9, r8"], [535, "mov r8d, edi"], [536, "mov ecx, 1"], [537, "mov rdi, rax"], [538, "call sub_47638A"], [539, "add rsp, 10h"], [540, "mov [rbp+var_1C], eax"], [541, "cmp [rbp+var_1C], 0"], [542, "jz loc_428C6D"], [543, "cmp [rbp+var_1C], 7"], [544, "jnz loc_428C58"], [545, "mov rax, [rbp+var_68]"], [546, "movzx eax, byte ptr [rax+9]"], [547, "cmp al, 1Bh"], [548, "jnz short loc_428B25"], [549, "mov rax, [rbp+var_68]"], [550, "mov edx, [rbp+var_20]"], [551, "mov [rax+9], dl"], [552, "mov [rbp+var_1C], 0"], [553, "jmp loc_428C6D"], [554, "mov rax, [rbp+var_68]"], [555, "movzx eax, word ptr [rax+0Ah]"], [556, "movzx eax, ax"], [557, "and eax, 8"], [558, "test eax, eax"], [559, "jnz short loc_428B4C"], [560, "mov rax, qword ptr [rbp+var_78]"], [561, "movzx eax, word ptr [rax+100h]"], [562, "cmp ax, 164h"], [563, "jnz loc_428BCF"], [564, "mov rax, [rbp+var_68]"], [565, "mov rcx, [rbp+var_38]"], [566, "mov edx, [rbp+var_20]"], [567, "mov rsi, qword ptr [rbp+var_78]"], [568, "mov rdi, rax"], [569, "call sub_428DFB"], [570, "mov [rbp+var_1C], eax"], [571, "cmp [rbp+var_1C], 0"], [572, "jz short loc_428B9F"], [573, "cmp [rbp+var_1C], 1"], [574, "jnz short loc_428B79"], [575, "mov [rbp+var_1C], 0"], [576, "mov ebx, [rbp+var_1C]"], [577, "mov r8d, ebx"], [578, "mov ecx, 1000h"], [579, "mov edx, offset aAslload"], [580, "mov esi, offset aLdnamespace1be"], [581, "mov edi, 39Eh"], [582, "call sub_489B9F"], [583, "mov eax, ebx"], [584, "jmp loc_428D78"], [585, "mov rax, [rbp+var_68]"], [586, "movzx eax, word ptr [rax+0Ah]"], [587, "movzx eax, ax"], [588, "and eax, 8"], [589, "test eax, eax"], [590, "jnz loc_428C6C"], [591, "mov rax, qword ptr [rbp+var_78]"], [592, "movzx eax, word ptr [rax+100h]"], [593, "cmp ax, 164h"], [594, "jnz loc_428C6C"], [595, "jmp loc_428CD6"], [596, "mov rax, [rbp+var_68]"], [597, "mov esi, 1"], [598, "mov rdi, rax"], [599, "call sub_478B11"], [600, "mov [rbp+s], rax"], [601, "mov rax, [rbp+var_68]"], [602, "mov rcx, [rax+30h]"], [603, "mov rdx, [rbp+s]"], [604, "mov rax, qword ptr [rbp+var_78]"], [605, "sub rsp, 8"], [606, "push [rbp+s]"], [607, "mov r9, rcx"], [608, "mov r8d, 97h"], [609, "mov rcx, rdx"], [610, "mov rdx, rax"], [611, "mov esi, 4Ah "], [612, "mov edi, 5"], [613, "call sub_421FA3"], [614, "add rsp, 10h"], [615, "cmp [rbp+s], 0"], [616, "jz short loc_428C30"], [617, "mov rax, [rbp+s]"], [618, "mov rdi, rax"], [619, "call sub_47BF0C"], [620, "mov ebx, 0"], [621, "mov r8d, ebx"], [622, "mov ecx, 1000h"], [623, "mov edx, offset aAslload"], [624, "mov esi, offset aLdnamespace1be"], [625, "mov edi, 3BCh"], [626, "call sub_489B9F"], [627, "mov eax, ebx"], [628, "jmp loc_428D78"], [629, "mov rax, cs:qword_54CF78"], [630, "mov [rbp+var_68], rax"], [631, "mov [rbp+var_1C], 0"], [632, "jmp short loc_428C6D"], [633, "nop"], [634, "mov rax, [rbp+var_68]"], [635, "mov rdx, qword ptr [rbp+var_78]"], [636, "mov rsi, rdx"], [637, "mov rdi, rax"], [638, "call sub_42904D"], [639, "cmp [rbp+var_29], 0"], [640, "jz short loc_428CCA"], [641, "mov rax, [rbp+var_68]"], [642, "mov rdx, [rbp+var_38]"], [643, "mov ecx, [rbp+var_20]"], [644, "mov esi, ecx"], [645, "mov rdi, rax"], [646, "call sub_460547"], [647, "mov [rbp+var_1C], eax"], [648, "cmp [rbp+var_1C], 0"], [649, "jz short loc_428CCA"], [650, "mov ebx, [rbp+var_1C]"], [651, "mov r8d, ebx"], [652, "mov ecx, 1000h"], [653, "mov edx, offset aAslload"], [654, "mov esi, offset aLdnamespace1be"], [655, "mov edi, 3DCh"], [656, "call sub_489B9F"], [657, "mov eax, ebx"], [658, "jmp loc_428D78"], [659, "mov rax, [rbp+var_68]"], [660, "mov rdx, qword ptr [rbp+var_78]"], [661, "mov [rax+30h], rdx"], [662, "mov rdx, [rbp+var_68]"], [663, "mov rax, qword ptr [rbp+var_78]"], [664, "mov [rax+20h], rdx"], [665, "mov rax, qword ptr [rbp+var_78]"], [666, "movzx eax, word ptr [rax+100h]"], [667, "cmp ax, 1AFh"], [668, "jnz short loc_428D0A"], [669, "mov rax, qword ptr [rbp+var_78]"], [670, "movzx edx, byte ptr [rax+104h]"], [671, "mov rax, [rbp+var_68]"], [672, "movzx edx, dl"], [673, "mov [rax+48h], edx"], [674, "jmp short loc_428D57"], [675, "mov rax, qword ptr [rbp+var_78]"], [676, "movzx eax, word ptr [rax+100h]"], [677, "cmp ax, 164h"], [678, "jnz short loc_428D57"], [679, "mov rax, [rbp+var_68]"], [680, "movzx eax, byte ptr [rax+9]"], [681, "cmp al, 8"], [682, "jnz short loc_428D57"], [683, "mov rax, [rbp+var_68]"], [684, "movzx eax, word ptr [rax+0Ah]"], [685, "movzx eax, ax"], [686, "and eax, 8"], [687, "test eax, eax"], [688, "jz short loc_428D57"], [689, "mov rax, qword ptr [rbp+var_78]"], [690, "mov rax, [rax+90h]"], [691, "mov rax, [rax+18h]"], [692, "mov rax, [rax+18h]"], [693, "mov rdx, [rax+28h]"], [694, "mov rax, [rbp+var_68]"], [695, "mov [rax+48h], edx"], [696, "mov ebx, [rbp+var_1C]"], [697, "mov r8d, ebx"], [698, "mov ecx, 1000h"], [699, "mov edx, offset aAslload"], [700, "mov esi, offset aLdnamespace1be"], [701, "mov edi, 3FAh"], [702, "call sub_489B9F"], [703, "mov eax, ebx"], [704, "mov rbx, [rbp+var_8]"], [705, "leave"], [706, "retn"]], "data_dep": [[7, 6], [8, 7], [12, 11], [13, 12], [14, 13], [16, 15], [17, 16], [18, 17], [19, 4], [20, 19], [21, 20], [22, 4], [31, 3], [32, 4], [33, 32], [34, 33], [35, 34], [36, 35], [37, 34], [38, 37], [39, 34], [40, 39], [41, 34], [42, 41], [43, 34], [44, 43], [45, 34], [46, 45], [48, 8], [49, 4], [50, 49], [53, 52], [54, 53], [56, 8], [57, 4], [58, 57], [61, 60], [62, 61], [64, 4], [65, 64], [66, 65], [67, 66], [68, 67], [69, 4], [70, 69], [71, 70], [72, 71], [73, 72], [74, 8], [75, 74], [76, 8], [77, 3], [77, 31], [78, 26], [79, 78], [80, 76], [84, 75], [86, 77], [87, 85], [88, 87], [93, 4], [94, 93], [95, 94], [96, 95], [99, 4], [100, 99], [101, 100], [102, 101], [103, 4], [104, 103], [105, 104], [106, 105], [107, 4], [108, 107], [109, 108], [110, 109], [111, 4], [112, 111], [113, 112], [114, 113], [115, 114], [116, 115], [117, 116], [119, 118], [120, 4], [121, 120], [122, 121], [123, 122], [124, 119], [125, 124], [126, 125], [127, 126], [130, 4], [131, 130], [132, 8], [133, 132], [134, 8], [135, 31], [135, 3], [135, 86], [136, 26], [136, 83], [137, 136], [138, 134], [142, 133], [144, 135], [145, 143], [146, 145], [147, 146], [148, 113], [149, 148], [150, 149], [151, 150], [152, 113], [153, 152], [154, 153], [155, 154], [156, 4], [157, 156], [158, 157], [159, 158], [160, 4], [161, 160], [161, 159], [164, 145], [166, 4], [167, 166], [168, 167], [169, 168], [170, 169], [173, 4], [174, 173], [175, 174], [176, 175], [177, 176], [178, 175], [179, 178], [180, 175], [181, 180], [182, 175], [183, 182], [184, 175], [185, 184], [186, 175], [187, 186], [189, 4], [190, 189], [191, 190], [192, 191], [193, 192], [194, 193], [195, 4], [196, 195], [197, 196], [198, 197], [199, 198], [204, 201], [204, 204], [205, 205], [205, 202], [206, 194], [207, 206], [208, 205], [208, 207], [208, 202], [209, 208], [211, 4], [212, 211], [213, 212], [214, 213], [215, 214], [216, 215], [217, 9], [219, 4], [220, 219], [221, 220], [222, 221], [223, 8], [224, 4], [225, 223], [226, 224], [228, 227], [229, 228], [230, 229], [236, 229], [238, 4], [239, 238], [240, 239], [241, 240], [243, 242], [245, 8], [246, 245], [247, 8], [248, 168], [249, 31], [249, 3], [249, 86], [250, 26], [250, 83], [251, 250], [252, 247], [256, 246], [258, 249], [259, 257], [260, 259], [261, 260], [262, 259], [263, 262], [264, 8], [265, 264], [266, 8], [267, 9], [268, 168], [269, 258], [270, 255], [271, 270], [272, 266], [273, 267], [276, 265], [278, 269], [279, 277], [280, 279], [281, 280], [282, 279], [283, 282], [289, 282], [291, 4], [292, 291], [293, 292], [295, 294], [296, 295], [297, 4], [298, 297], [299, 4], [300, 298], [301, 299], [306, 4], [307, 306], [308, 4], [309, 307], [310, 308], [315, 259], [316, 4], [319, 316], [321, 259], [322, 321], [328, 321], [331, 330], [332, 331], [333, 332], [334, 333], [335, 334], [337, 336], [339, 338], [340, 337], [340, 339], [341, 340], [342, 4], [343, 342], [344, 343], [346, 344], [346, 348], [347, 346], [348, 347], [349, 344], [349, 348], [350, 349], [351, 348], [351, 344], [352, 351], [353, 352], [354, 353], [355, 344], [355, 348], [356, 355], [357, 4], [359, 357], [364, 363], [365, 364], [366, 365], [367, 366], [368, 365], [369, 368], [370, 365], [371, 370], [372, 365], [373, 372], [374, 365], [375, 374], [376, 365], [377, 376], [379, 365], [380, 379], [383, 382], [384, 383], [385, 384], [387, 386], [388, 4], [389, 388], [390, 387], [391, 389], [396, 4], [398, 396], [403, 402], [405, 8], [407, 404], [409, 408], [410, 409], [411, 410], [412, 409], [413, 412], [419, 412], [422, 421], [423, 422], [424, 423], [426, 425], [427, 4], [428, 427], [429, 426], [430, 428], [435, 4], [437, 435], [442, 441], [444, 8], [446, 443], [448, 447], [449, 448], [450, 449], [451, 448], [452, 451], [458, 451], [467, 4], [468, 467], [469, 468], [470, 469], [472, 471], [475, 474], [476, 475], [477, 476], [479, 478], [480, 479], [481, 480], [482, 216], [482, 472], [482, 201], [482, 243], [482, 204], [483, 482], [485, 4], [486, 485], [487, 484], [488, 486], [497, 31], [497, 3], [497, 86], [498, 217], [498, 9], [499, 4], [500, 499], [501, 500], [502, 501], [504, 8], [505, 504], [505, 503], [506, 8], [507, 506], [507, 505], [508, 507], [508, 505], [509, 508], [510, 509], [511, 510], [512, 511], [513, 8], [514, 513], [514, 505], [515, 505], [515, 514], [516, 515], [517, 516], [518, 517], [519, 518], [520, 4], [521, 520], [521, 505], [522, 521], [523, 522], [524, 498], [525, 8], [526, 525], [526, 505], [527, 8], [528, 524], [528, 498], [529, 204], [529, 216], [529, 472], [529, 201], [529, 243], [530, 168], [531, 31], [531, 3], [531, 86], [531, 497], [532, 491], [532, 82], [532, 25], [533, 532], [534, 527], [535, 528], [537, 526], [539, 531], [540, 538], [541, 540], [542, 541], [543, 540], [544, 543], [546, 545], [546, 505], [547, 546], [548, 547], [550, 216], [550, 472], [550, 201], [550, 243], [550, 204], [551, 549], [551, 550], [555, 505], [555, 554], [556, 555], [557, 556], [558, 557], [559, 558], [560, 4], [561, 505], [561, 560], [562, 561], [563, 562], [565, 8], [566, 216], [566, 472], [566, 201], [566, 243], [566, 204], [567, 4], [568, 564], [570, 569], [571, 570], [572, 571], [573, 570], [574, 573], [576, 575], [576, 570], [577, 576], [583, 576], [586, 585], [586, 505], [587, 586], [588, 587], [589, 588], [590, 589], [591, 4], [592, 591], [592, 505], [593, 592], [594, 593], [598, 596], [600, 599], [602, 505], [602, 601], [603, 600], [604, 4], [605, 539], [606, 600], [607, 602], [609, 603], [610, 604], [614, 605], [615, 600], [616, 615], [617, 600], [618, 617], [621, 620], [627, 620], [630, 629], [634, 630], [635, 4], [636, 635], [637, 634], [639, 10], [639, 200], [640, 639], [641, 630], [642, 8], [643, 204], [643, 216], [643, 472], [643, 243], [643, 201], [644, 643], [645, 641], [647, 646], [648, 647], [649, 648], [650, 647], [651, 650], [657, 650], [659, 630], [660, 4], [661, 660], [661, 659], [662, 630], [663, 4], [664, 663], [664, 662], [665, 4], [666, 665], [666, 664], [667, 666], [668, 667], [669, 4], [670, 673], [670, 403], [670, 551], [670, 505], [670, 442], [670, 661], [670, 669], [670, 664], [671, 630], [672, 670], [673, 672], [673, 671], [675, 4], [676, 664], [676, 505], [676, 403], [676, 661], [676, 551], [676, 442], [676, 675], [677, 676], [678, 677], [679, 630], [680, 505], [680, 442], [680, 661], [680, 679], [680, 664], [680, 403], [680, 551], [681, 680], [682, 681], [683, 630], [684, 664], [684, 403], [684, 551], [684, 505], [684, 442], [684, 661], [684, 683], [685, 684], [686, 685], [687, 686], [688, 687], [689, 4], [690, 442], [690, 689], [690, 664], [690, 403], [690, 505], [690, 695], [690, 551], [690, 661], [691, 442], [691, 661], [691, 664], [691, 505], [691, 403], [691, 695], [691, 551], [691, 690], [692, 505], [692, 691], [692, 403], [692, 695], [692, 551], [692, 442], [692, 661], [692, 664], [693, 442], [693, 661], [693, 692], [693, 664], [693, 403], [693, 695], [693, 551], [693, 505], [694, 630], [695, 694], [695, 693], [696, 465], [696, 540], [696, 279], [696, 647], [696, 631], [696, 552], [696, 570], [697, 696], [703, 696], [706, 162], [706, 97], [706, 627], [706, 236], [706, 171], [706, 54], [706, 328], [706, 458], [706, 128], [706, 164], [706, 657], [706, 62], [706, 583], [706, 703], [706, 289], [706, 419]]}
static void logExitStatus(int status) { if(WIFEXITED(status) && WEXITSTATUS(status) == 142) /* See child code in runRedirector */ do_log(L_ERROR, "Couldn't start redirector.\n"); else { char *reason = WIFEXITED(status) ? "with status" : WIFSIGNALED(status) ? "on signal" : "with unknown status"; int value = WIFEXITED(status) ? WEXITSTATUS(status) : WIFSIGNALED(status) ? WTERMSIG(status) : status; do_log(L_ERROR, "Redirector exited %s %d.\n", reason, value); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_435861", "function_addr": 4413537, "binary_name": "c0e109c02d23041cf557f0ac45598de9043334cedae0010bfabb46cc9f0ec43c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_14], edi"], [4, "mov eax, [rbp+var_14]"], [5, "and eax, 7Fh"], [6, "test eax, eax"], [7, "jnz short loc_43589F"], [8, "mov eax, [rbp+var_14]"], [9, "sar eax, 8"], [10, "movzx eax, al"], [11, "cmp eax, 8Eh"], [12, "jnz short loc_43589F"], [13, "mov esi, offset aCouldnTStartRe"], [14, "mov edi, 1"], [15, "mov eax, 0"], [16, "call sub_40EE82"], [17, "jmp loc_435922"], [18, "mov eax, [rbp+var_14]"], [19, "and eax, 7Fh"], [20, "test eax, eax"], [21, "jz short loc_4358C6"], [22, "mov eax, [rbp+var_14]"], [23, "and eax, 7Fh"], [24, "add eax, 1"], [25, "sar al, 1"], [26, "test al, al"], [27, "jle short loc_4358BF"], [28, "mov eax, offset aOnSignal_0"], [29, "jmp short loc_4358CB"], [30, "mov eax, offset aWithUnknownSta_0"], [31, "jmp short loc_4358CB"], [32, "mov eax, offset aWithStatus_0"], [33, "mov [rbp+var_8], rax"], [34, "mov eax, [rbp+var_14]"], [35, "and eax, 7Fh"], [36, "test eax, eax"], [37, "jnz short loc_4358E4"], [38, "mov eax, [rbp+var_14]"], [39, "sar eax, 8"], [40, "movzx eax, al"], [41, "jmp short loc_4358FE"], [42, "mov eax, [rbp+var_14]"], [43, "and eax, 7Fh"], [44, "add eax, 1"], [45, "sar al, 1"], [46, "test al, al"], [47, "jle short loc_4358FB"], [48, "mov eax, [rbp+var_14]"], [49, "and eax, 7Fh"], [50, "jmp short loc_4358FE"], [51, "mov eax, [rbp+var_14]"], [52, "mov [rbp+var_C], eax"], [53, "mov edx, [rbp+var_C]"], [54, "mov rax, [rbp+var_8]"], [55, "mov ecx, edx"], [56, "mov rdx, rax"], [57, "mov esi, offset aRedirectorExit"], [58, "mov edi, 1"], [59, "mov eax, 0"], [60, "call sub_40EE82"], [61, "nop"], [62, "nop"], [63, "leave"], [64, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 3], [9, 8], [10, 9], [11, 10], [12, 11], [18, 3], [19, 18], [20, 19], [21, 20], [22, 3], [23, 22], [24, 23], [25, 24], [26, 25], [27, 26], [33, 32], [33, 28], [33, 30], [34, 3], [35, 34], [36, 35], [37, 36], [38, 3], [39, 38], [40, 39], [42, 3], [43, 42], [44, 43], [45, 44], [46, 45], [47, 46], [48, 3], [49, 48], [51, 3], [52, 40], [52, 49], [52, 51], [53, 52], [54, 33], [55, 53], [56, 54], [64, 16], [64, 60]]}
static void tax() { x = a; zerocalc(x); signcalc(x); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40800F", "function_addr": 4227087, "binary_name": "1311b7e7dc6fbb4b737efd00c3ef17ff79cf78a6b10ffa5b4dd9014fc71f68f7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "movzx eax, cs:byte_43030B"], [3, "mov cs:byte_43030C, al"], [4, "movzx eax, cs:byte_43030C"], [5, "test al, al"], [6, "jz short loc_40803D"], [7, "movzx eax, cs:byte_43030E"], [8, "and eax, 0FFFFFFFDh"], [9, "mov cs:byte_43030E, al"], [10, "jmp short loc_40804D"], [11, "movzx eax, cs:byte_43030E"], [12, "or eax, 2"], [13, "mov cs:byte_43030E, al"], [14, "movzx eax, cs:byte_43030C"], [15, "test al, al"], [16, "jns short loc_40806A"], [17, "movzx eax, cs:byte_43030E"], [18, "or eax, 0FFFFFF80h"], [19, "mov cs:byte_43030E, al"], [20, "jmp short loc_40807A"], [21, "movzx eax, cs:byte_43030E"], [22, "and eax, 7Fh"], [23, "mov cs:byte_43030E, al"], [24, "nop"], [25, "pop rbp"], [26, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [8, 7], [9, 8], [12, 11], [13, 12], [14, 3], [15, 14], [16, 15], [17, 9], [17, 13], [18, 17], [19, 18], [21, 13], [21, 9], [22, 21], [23, 22], [25, 0], [26, 22], [26, 18]]}
void ex_fps_camera_resize(ex_fps_camera_t *cam) { GLint viewport[4]; glGetIntegerv(GL_VIEWPORT, viewport); int width, height; width = viewport[2]; height = viewport[3]; if (cam->width != width || cam->height != height) { mat4x4_perspective(cam->matrices.projection, rad(cam->fov), (float)width / (float)height, 0.01f, 1000.0f); cam->width = width; cam->height = height; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_438F89", "function_addr": 4427657, "binary_name": "83a9aa4126c589a6f8453a0849c3fcd29d44c939e30436d38b3d30eb244fd78e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov rdx, cs:qword_4A9C20"], [5, "lea rax, [rbp+var_20]"], [6, "mov rsi, rax"], [7, "mov edi, 0BA2h"], [8, "call rdx "], [9, "mov eax, [rbp+var_18]"], [10, "mov [rbp+var_4], eax"], [11, "mov eax, [rbp+var_14]"], [12, "mov [rbp+var_8], eax"], [13, "mov rax, [rbp+var_28]"], [14, "mov eax, [rax+3Ch]"], [15, "cmp [rbp+var_4], eax"], [16, "jnz short loc_438FCE"], [17, "mov rax, [rbp+var_28]"], [18, "mov eax, [rax+40h]"], [19, "cmp [rbp+var_8], eax"], [20, "jz short loc_43903D"], [21, "pxor xmm0, xmm0"], [22, "cvtsi2ss xmm0, [rbp+var_4]"], [23, "pxor xmm1, xmm1"], [24, "cvtsi2ss xmm1, [rbp+var_8]"], [25, "divss xmm0, xmm1"], [26, "movss [rbp+var_2C], xmm0"], [27, "mov rax, [rbp+var_28]"], [28, "mov eax, [rax+34h]"], [29, "movd xmm0, eax"], [30, "call sub_43791C"], [31, "movd eax, xmm0"], [32, "mov rdx, [rbp+var_28]"], [33, "add rdx, 90h"], [34, "movss xmm3, cs:dword_491E98"], [35, "movss xmm2, cs:dword_491E9C"], [36, "movss xmm1, [rbp+var_2C]"], [37, "movd xmm0, eax"], [38, "mov rdi, rdx"], [39, "call sub_4387A5"], [40, "mov rax, [rbp+var_28]"], [41, "mov edx, [rbp+var_4]"], [42, "mov [rax+3Ch], edx"], [43, "mov rax, [rbp+var_28]"], [44, "mov edx, [rbp+var_8]"], [45, "mov [rax+40h], edx"], [46, "nop"], [47, "leave"], [48, "retn"]], "data_dep": [[6, 5], [8, 4], [10, 9], [12, 11], [13, 3], [14, 13], [15, 14], [15, 10], [16, 15], [17, 3], [18, 17], [19, 12], [19, 18], [20, 19], [22, 10], [22, 21], [24, 23], [24, 12], [25, 22], [25, 24], [26, 25], [27, 3], [28, 27], [29, 28], [31, 29], [32, 3], [33, 32], [36, 26], [37, 31], [38, 33], [40, 3], [41, 10], [42, 41], [42, 40], [43, 3], [44, 12], [45, 43], [45, 44], [48, 43], [48, 18]]}
void _jxr_w_load_hpcbp_state(jxr_image_t image, int tx) { unsigned idx; for (idx = 0 ; idx < 2 ; idx += 1) { image->model_hp.bits[idx] = image->model_hp_buffer[tx].bits[idx]; image->model_hp.state[idx] = image->model_hp_buffer[tx].state[idx]; image->hp_cbp_model.state[idx] = image->hp_cbp_model_buffer[tx].state[idx]; image->hp_cbp_model.count0[idx] = image->hp_cbp_model_buffer[tx].count0[idx]; image->hp_cbp_model.count1[idx] = image->hp_cbp_model_buffer[tx].count1[idx]; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44B734", "function_addr": 4503348, "binary_name": "72303f375450332c393a8a753559999c0acc00cdc494ffcd4522a6d677c4ee69.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_1C], esi"], [4, "mov [rbp+var_4], 0"], [5, "jmp loc_44B85F"], [6, "mov rax, [rbp+var_18]"], [7, "mov rdx, [rax+0A70h]"], [8, "mov eax, [rbp+var_1C]"], [9, "cdqe"], [10, "shl rax, 4"], [11, "add rdx, rax"], [12, "mov eax, [rbp+var_4]"], [13, "mov edx, [rdx+rax*4]"], [14, "mov rax, [rbp+var_18]"], [15, "mov ecx, [rbp+var_4]"], [16, "add rcx, 298h"], [17, "mov [rax+rcx*4], edx"], [18, "mov rax, [rbp+var_18]"], [19, "mov rdx, [rax+0A70h]"], [20, "mov eax, [rbp+var_1C]"], [21, "cdqe"], [22, "shl rax, 4"], [23, "add rdx, rax"], [24, "mov eax, [rbp+var_4]"], [25, "mov edx, [rdx+rax*4+8]"], [26, "mov rax, [rbp+var_18]"], [27, "mov ecx, [rbp+var_4]"], [28, "add rcx, 298h"], [29, "mov [rax+rcx*4+8], edx"], [30, "mov rax, [rbp+var_18]"], [31, "mov rcx, [rax+0A78h]"], [32, "mov eax, [rbp+var_1C]"], [33, "movsxd rdx, eax"], [34, "mov rax, rdx"], [35, "add rax, rax"], [36, "add rax, rdx"], [37, "shl rax, 3"], [38, "lea rdx, [rcx+rax]"], [39, "mov eax, [rbp+var_4]"], [40, "mov edx, [rdx+rax*4]"], [41, "mov rax, [rbp+var_18]"], [42, "mov ecx, [rbp+var_4]"], [43, "add rcx, 1A4h"], [44, "mov [rax+rcx*4+8], edx"], [45, "mov rax, [rbp+var_18]"], [46, "mov rcx, [rax+0A78h]"], [47, "mov eax, [rbp+var_1C]"], [48, "movsxd rdx, eax"], [49, "mov rax, rdx"], [50, "add rax, rax"], [51, "add rax, rdx"], [52, "shl rax, 3"], [53, "lea rdx, [rcx+rax]"], [54, "mov eax, [rbp+var_4]"], [55, "mov edx, [rdx+rax*4+8]"], [56, "mov rax, [rbp+var_18]"], [57, "mov ecx, [rbp+var_4]"], [58, "add rcx, 1A4h"], [59, "mov [rax+rcx*4+10h], edx"], [60, "mov rax, [rbp+var_18]"], [61, "mov rcx, [rax+0A78h]"], [62, "mov eax, [rbp+var_1C]"], [63, "movsxd rdx, eax"], [64, "mov rax, rdx"], [65, "add rax, rax"], [66, "add rax, rdx"], [67, "shl rax, 3"], [68, "add rax, rcx"], [69, "mov edx, [rbp+var_4]"], [70, "add rdx, 4"], [71, "mov edx, [rax+rdx*4]"], [72, "mov rax, [rbp+var_18]"], [73, "mov ecx, [rbp+var_4]"], [74, "add rcx, 1A8h"], [75, "mov [rax+rcx*4+8], edx"], [76, "add [rbp+var_4], 1"], [77, "cmp [rbp+var_4], 1"], [78, "jbe loc_44B74B"], [79, "nop"], [80, "nop"], [81, "pop rbp"], [82, "retn"]], "data_dep": [[6, 2], [7, 17], [7, 44], [7, 75], [7, 59], [7, 29], [7, 6], [8, 3], [10, 8], [11, 7], [11, 10], [12, 4], [12, 76], [13, 17], [13, 44], [13, 12], [13, 75], [13, 59], [13, 29], [14, 2], [15, 4], [15, 76], [16, 15], [17, 14], [17, 13], [18, 2], [19, 18], [19, 17], [20, 3], [22, 20], [23, 22], [23, 19], [24, 76], [24, 4], [25, 24], [25, 17], [26, 2], [27, 4], [27, 76], [28, 27], [29, 26], [29, 25], [30, 2], [31, 29], [31, 30], [32, 3], [33, 32], [34, 33], [35, 34], [36, 33], [36, 35], [37, 36], [38, 29], [38, 33], [38, 37], [39, 76], [39, 4], [40, 29], [40, 39], [41, 2], [42, 4], [42, 76], [43, 42], [44, 40], [44, 41], [45, 2], [46, 45], [46, 44], [47, 3], [48, 47], [49, 48], [50, 49], [51, 50], [51, 48], [52, 51], [53, 48], [53, 52], [53, 44], [54, 76], [54, 4], [55, 54], [55, 44], [56, 2], [57, 4], [57, 76], [58, 57], [59, 55], [59, 56], [60, 2], [61, 60], [61, 59], [62, 3], [63, 62], [64, 63], [65, 64], [66, 63], [66, 65], [67, 66], [68, 61], [68, 67], [69, 76], [69, 4], [70, 69], [71, 59], [71, 68], [72, 2], [73, 76], [73, 4], [74, 73], [75, 72], [75, 71], [76, 76], [76, 4], [77, 76], [77, 4], [78, 77], [81, 0], [82, 72]]}
static void check_data_dir(const char *pg_data) { char subDirName[MAXPGPATH]; int subdirnum; /* start check with top-most directory */ const char *requiredSubdirs[] = {"", "base", "global", "pg_clog", "pg_multixact", "pg_subtrans", "pg_tblspc", "pg_twophase", "pg_xlog"}; for (subdirnum = 0; subdirnum < sizeof(requiredSubdirs) / sizeof(requiredSubdirs[0]); ++subdirnum) { struct stat statBuf; snprintf(subDirName, sizeof(subDirName), "%s%s%s", pg_data, /* Win32 can't stat() a directory with a trailing slash. */ *requiredSubdirs[subdirnum] ? "/" : "", requiredSubdirs[subdirnum]); if (stat(subDirName, &statBuf) != 0) report_status(PG_FATAL, "check for \"%s\" failed: %s\n", subDirName, strerror(errno)); else if (!S_ISDIR(statBuf.st_mode)) report_status(PG_FATAL, "%s is not a directory\n", subDirName); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407492", "function_addr": 4224146, "binary_name": "81615611eb13cf9a4fb3d460dcb3d94fef45de4faf895a7ec0e40c42cadbba6d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 500h"], [3, "mov [rbp+var_4F8], rdi"], [4, "mov [rbp+var_460], offset unk_4159FF"], [5, "mov [rbp+var_458], offset aBase"], [6, "mov [rbp+var_450], offset aGlobal"], [7, "mov [rbp+var_448], offset aPgClog"], [8, "mov [rbp+var_440], offset aPgMultixact"], [9, "mov [rbp+var_438], offset aPgSubtrans"], [10, "mov [rbp+var_430], offset aPgTblspc"], [11, "mov [rbp+var_428], offset aPgTwophase"], [12, "mov [rbp+var_420], offset aPgXlog"], [13, "mov [rbp+var_4], 0"], [14, "jmp loc_4075F3"], [15, "mov eax, [rbp+var_4]"], [16, "cdqe"], [17, "mov rcx, [rbp+rax*8+var_460]"], [18, "mov eax, [rbp+var_4]"], [19, "cdqe"], [20, "mov rax, [rbp+rax*8+var_460]"], [21, "movzx eax, byte ptr [rax]"], [22, "test al, al"], [23, "jz short loc_40753B"], [24, "mov esi, offset asc_415A4B"], [25, "jmp short loc_407540"], [26, "mov esi, offset unk_4159FF"], [27, "mov rdx, [rbp+var_4F8]"], [28, "lea rax, [rbp+s]"], [29, "mov r9, rcx"], [30, "mov r8, rsi"], [31, "mov rcx, rdx"], [32, "mov edx, offset aSSS_1"], [33, "mov esi, 400h"], [34, "mov rdi, rax"], [35, "mov eax, 0"], [36, "call _snprintf"], [37, "lea rdx, [rbp+stat_buf]"], [38, "lea rax, [rbp+s]"], [39, "mov rsi, rdx"], [40, "mov rdi, rax"], [41, "call sub_412270"], [42, "test eax, eax"], [43, "jz short loc_4075BF"], [44, "call ___errno_location"], [45, "mov eax, [rax]"], [46, "mov edi, eax"], [47, "call _strerror"], [48, "mov rdx, rax"], [49, "lea rax, [rbp+s]"], [50, "mov rcx, rdx"], [51, "mov rdx, rax"], [52, "mov esi, offset aCheckForSFaile"], [53, "mov edi, 4"], [54, "mov eax, 0"], [55, "call sub_40CDA3"], [56, "jmp short loc_4075EF"], [57, "mov eax, [rbp+stat_buf.st_mode]"], [58, "and eax, 0F000h"], [59, "cmp eax, 4000h"], [60, "jz short loc_4075EF"], [61, "lea rax, [rbp+s]"], [62, "mov rdx, rax"], [63, "mov esi, offset aSIsNotADirecto"], [64, "mov edi, 4"], [65, "mov eax, 0"], [66, "call sub_40CDA3"], [67, "add [rbp+var_4], 1"], [68, "mov eax, [rbp+var_4]"], [69, "cmp eax, 8"], [70, "jbe loc_407513"], [71, "nop"], [72, "nop"], [73, "leave"], [74, "retn"]], "data_dep": [[15, 13], [15, 67], [17, 15], [18, 13], [18, 67], [20, 18], [21, 20], [22, 21], [23, 22], [27, 3], [28, 22], [29, 17], [30, 24], [30, 26], [31, 27], [34, 28], [37, 32], [38, 36], [39, 37], [40, 38], [42, 41], [43, 42], [45, 44], [46, 45], [48, 47], [49, 47], [50, 48], [51, 49], [58, 57], [59, 58], [60, 59], [61, 58], [62, 61], [67, 13], [67, 67], [68, 13], [68, 67], [69, 68], [70, 69], [74, 68]]}
int main(int argc, char *argv[]) { int i; int j; int c; #ifndef WIN32 umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH)); #endif /* !WIN32 */ progname = argv[0]; if (TYPE_BIT(zic_t) <64) { fprintf(stderr, "%s: %s\n", progname, _("wild compilation-time specification of zic_t")); return EXIT_FAILURE; } for (i = 1; i < argc; ++i) if (strcmp(argv[i], "--version") == 0) { printf("zic %s\n", PG_VERSION); close_file(stdout, NULL, NULL); return EXIT_SUCCESS; } else if (strcmp(argv[i], "--help") == 0) { usage(stdout, EXIT_SUCCESS); } while ((c = getopt(argc, argv, "d:l:p:L:vPsy:")) != EOF && c != -1) switch (c) { default: usage(stderr, EXIT_FAILURE); case 'd': if (directory == NULL) directory = strdup(optarg); else { fprintf(stderr, _("%s: More than one -d option specified\n"), progname); return EXIT_FAILURE; } break; case 'l': if (lcltime == NULL) lcltime = strdup(optarg); else { fprintf(stderr, _("%s: More than one -l option specified\n"), progname); return EXIT_FAILURE; } break; case 'p': if (psxrules == NULL) psxrules = strdup(optarg); else { fprintf(stderr, _("%s: More than one -p option specified\n"), progname); return EXIT_FAILURE; } break; case 'y': if (yitcommand == NULL) yitcommand = strdup(optarg); else { fprintf(stderr, _("%s: More than one -y option specified\n"), progname); return EXIT_FAILURE; } break; case 'L': if (leapsec == NULL) leapsec = strdup(optarg); else { fprintf(stderr, _("%s: More than one -L option specified\n"), progname); return EXIT_FAILURE; } break; case 'v': noise = true; break; case 'P': print_abbrevs = true; print_cutoff = time(NULL); break; case 's': warning(_("-s ignored")); break; } if (optind == argc - 1 && strcmp(argv[optind], "=") == 0) usage(stderr, EXIT_FAILURE); /* usage message by request */ if (directory == NULL) directory = "data"; if (yitcommand == NULL) yitcommand = "yearistype"; if (optind < argc && leapsec != NULL) { infile(leapsec); adjleap(); } for (i = optind; i < argc; ++i) infile(argv[i]); if (errors) return EXIT_FAILURE; associate(); change_directory(directory); for (i = 0; i < nzones; i = j) { /* * Find the next non-continuation zone entry. */ for (j = i + 1; j < nzones && zones[j].z_name == NULL; ++j) continue; outzone(&zones[i], j - i); } /* * Make links. */ for (i = 0; i < nlinks; ++i) { eat(links[i].l_filename, links[i].l_linenum); dolink(links[i].l_from, links[i].l_to, false); if (noise) for (j = 0; j < nlinks; ++j) if (strcmp(links[i].l_to, links[j].l_from) == 0) warning(_("link to link")); } if (lcltime != NULL) { eat(_("command line"), 1); dolink(lcltime, TZDEFAULT, true); } if (psxrules != NULL) { eat(_("command line"), 1); dolink(psxrules, TZDEFRULES, true); } if (warnings && (ferror(stderr) || fclose(stderr) != 0)) return EXIT_FAILURE; return errors ? EXIT_FAILURE : EXIT_SUCCESS; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4200828, "binary_name": "1b3b7e18915057bf5f2efb5d0be4a6ebaf44986a9efad0adef334f26d4bfdb51.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+argc], edi"], [4, "mov [rbp+argv], rsi"], [5, "mov edi, 12h"], [6, "call _umask"], [7, "or eax, 12h"], [8, "mov edi, eax"], [9, "call _umask"], [10, "mov rax, [rbp+argv]"], [11, "mov rax, [rax]"], [12, "mov cs:qword_40E220, rax"], [13, "mov [rbp+var_4], 1"], [14, "jmp loc_401A58"], [15, "mov eax, [rbp+var_4]"], [16, "cdqe"], [17, "lea rdx, ds:0[rax*8]"], [18, "mov rax, [rbp+argv]"], [19, "add rax, rdx"], [20, "mov rax, [rax]"], [21, "mov esi, offset s2"], [22, "mov rdi, rax"], [23, "call _strcmp"], [24, "test eax, eax"], [25, "jnz short loc_401A18"], [26, "mov esi, offset a961"], [27, "mov edi, offset aZicS"], [28, "mov eax, 0"], [29, "call _printf"], [30, "mov rax, cs:stdout"], [31, "mov edx, 0"], [32, "mov esi, 0"], [33, "mov rdi, rax"], [34, "call sub_401791"], [35, "mov eax, 0"], [36, "jmp locret_401FD8"], [37, "mov eax, [rbp+var_4]"], [38, "cdqe"], [39, "lea rdx, ds:0[rax*8]"], [40, "mov rax, [rbp+argv]"], [41, "add rax, rdx"], [42, "mov rax, [rax]"], [43, "mov esi, offset aHelp"], [44, "mov rdi, rax"], [45, "call _strcmp"], [46, "test eax, eax"], [47, "jnz short loc_401A54"], [48, "mov rax, cs:stdout"], [49, "mov esi, 0"], [50, "mov rdi, rax"], [51, "call sub_401874"], [52, "add [rbp+var_4], 1"], [53, "mov eax, [rbp+var_4]"], [54, "cmp eax, [rbp+argc]"], [55, "jl loc_4019B9"], [56, "jmp loc_401C59"], [57, "mov eax, [rbp+var_C]"], [58, "sub eax, 4Ch "], [59, "cmp eax, 2Dh"], [60, "ja short def_401A7E"], [61, "mov eax, eax"], [62, "mov rax, ds:jpt_401A7E[rax*8]"], [63, "jmp rax"], [64, "mov rax, cs:stderr"], [65, "mov esi, 1"], [66, "mov rdi, rax"], [67, "call sub_401874"], [68, "mov rax, cs:src"], [69, "test rax, rax"], [70, "jnz short loc_401ABB"], [71, "mov rax, cs:optarg"], [72, "mov rdi, rax"], [73, "call _strdup"], [74, "mov cs:src, rax"], [75, "jmp loc_401C59"], [76, "mov rdx, cs:qword_40E220"], [77, "mov rax, cs:stderr"], [78, "mov esi, offset aSMoreThanOneDO"], [79, "mov rdi, rax"], [80, "mov eax, 0"], [81, "call _fprintf"], [82, "mov eax, 1"], [83, "jmp locret_401FD8"], [84, "mov rax, cs:qword_40F240"], [85, "test rax, rax"], [86, "jnz short loc_401B0C"], [87, "mov rax, cs:optarg"], [88, "mov rdi, rax"], [89, "call _strdup"], [90, "mov cs:qword_40F240, rax"], [91, "jmp loc_401C59"], [92, "mov rdx, cs:qword_40E220"], [93, "mov rax, cs:stderr"], [94, "mov esi, offset aSMoreThanOneLO"], [95, "mov rdi, rax"], [96, "mov eax, 0"], [97, "call _fprintf"], [98, "mov eax, 1"], [99, "jmp locret_401FD8"], [100, "mov rax, cs:qword_40F238"], [101, "test rax, rax"], [102, "jnz short loc_401B5D"], [103, "mov rax, cs:optarg"], [104, "mov rdi, rax"], [105, "call _strdup"], [106, "mov cs:qword_40F238, rax"], [107, "jmp loc_401C59"], [108, "mov rdx, cs:qword_40E220"], [109, "mov rax, cs:stderr"], [110, "mov esi, offset aSMoreThanOnePO"], [111, "mov rdi, rax"], [112, "mov eax, 0"], [113, "call _fprintf"], [114, "mov eax, 1"], [115, "jmp locret_401FD8"], [116, "mov rax, cs:qword_40F258"], [117, "test rax, rax"], [118, "jnz short loc_401BAE"], [119, "mov rax, cs:optarg"], [120, "mov rdi, rax"], [121, "call _strdup"], [122, "mov cs:qword_40F258, rax"], [123, "jmp loc_401C59"], [124, "mov rdx, cs:qword_40E220"], [125, "mov rax, cs:stderr"], [126, "mov esi, offset aSMoreThanOneYO"], [127, "mov rdi, rax"], [128, "mov eax, 0"], [129, "call _fprintf"], [130, "mov eax, 1"], [131, "jmp locret_401FD8"], [132, "mov rax, cs:qword_40F250"], [133, "test rax, rax"], [134, "jnz short loc_401BFC"], [135, "mov rax, cs:optarg"], [136, "mov rdi, rax"], [137, "call _strdup"], [138, "mov cs:qword_40F250, rax"], [139, "jmp short loc_401C59"], [140, "mov rdx, cs:qword_40E220"], [141, "mov rax, cs:stderr"], [142, "mov esi, offset aSMoreThanOneLO_0"], [143, "mov rdi, rax"], [144, "mov eax, 0"], [145, "call _fprintf"], [146, "mov eax, 1"], [147, "jmp locret_401FD8"], [148, "mov cs:byte_40E200, 1"], [149, "jmp short loc_401C59"], [150, "mov cs:byte_40E201, 1"], [151, "mov edi, 0"], [152, "call _time"], [153, "mov cs:qword_40E208, rax"], [154, "jmp short loc_401C59"], [155, "mov edi, offset aSIgnored"], [156, "mov eax, 0"], [157, "call sub_4016CA"], [158, "nop"], [159, "mov rcx, [rbp+argv]"], [160, "mov eax, [rbp+argc]"], [161, "mov edx, offset shortopts"], [162, "mov rsi, rcx"], [163, "mov edi, eax"], [164, "call _getopt"], [165, "mov [rbp+var_C], eax"], [166, "cmp [rbp+var_C], 0FFFFFFFFh"], [167, "jz short loc_401C82"], [168, "cmp [rbp+var_C], 0FFFFFFFFh"], [169, "jnz loc_401A69"], [170, "mov eax, [rbp+argc]"], [171, "lea edx, [rax-1]"], [172, "mov eax, cs:optind"], [173, "cmp edx, eax"], [174, "jnz short loc_401CD1"], [175, "mov eax, cs:optind"], [176, "cdqe"], [177, "lea rdx, ds:0[rax*8]"], [178, "mov rax, [rbp+argv]"], [179, "add rax, rdx"], [180, "mov rax, [rax]"], [181, "mov esi, offset asc_40A758"], [182, "mov rdi, rax"], [183, "call _strcmp"], [184, "test eax, eax"], [185, "jnz short loc_401CD1"], [186, "mov rax, cs:stderr"], [187, "mov esi, 1"], [188, "mov rdi, rax"], [189, "call sub_401874"], [190, "mov rax, cs:src"], [191, "test rax, rax"], [192, "jnz short loc_401CE8"], [193, "mov cs:src, offset aData"], [194, "mov rax, cs:qword_40F258"], [195, "test rax, rax"], [196, "jnz short loc_401CFF"], [197, "mov cs:qword_40F258, offset aYearistype"], [198, "mov eax, cs:optind"], [199, "cmp [rbp+argc], eax"], [200, "jle short loc_401D2A"], [201, "mov rax, cs:qword_40F250"], [202, "test rax, rax"], [203, "jz short loc_401D2A"], [204, "mov rax, cs:qword_40F250"], [205, "mov rdi, rax"], [206, "call sub_402E6B"], [207, "call sub_40830A"], [208, "mov eax, cs:optind"], [209, "mov [rbp+var_4], eax"], [210, "jmp short loc_401D58"], [211, "mov eax, [rbp+var_4]"], [212, "cdqe"], [213, "lea rdx, ds:0[rax*8]"], [214, "mov rax, [rbp+argv]"], [215, "add rax, rdx"], [216, "mov rax, [rax]"], [217, "mov rdi, rax"], [218, "call sub_402E6B"], [219, "add [rbp+var_4], 1"], [220, "mov eax, [rbp+var_4]"], [221, "cmp eax, [rbp+argc]"], [222, "jl short loc_401D35"], [223, "movzx eax, cs:byte_40E1C4"], [224, "test al, al"], [225, "jz short loc_401D75"], [226, "mov eax, 1"], [227, "jmp locret_401FD8"], [228, "call sub_40293D"], [229, "mov rax, cs:src"], [230, "mov rdi, rax"], [231, "call sub_4018D3"], [232, "mov [rbp+var_4], 0"], [233, "jmp loc_401E18"], [234, "mov eax, [rbp+var_4]"], [235, "add eax, 1"], [236, "mov [rbp+var_8], eax"], [237, "jmp short loc_401DA4"], [238, "add [rbp+var_8], 1"], [239, "mov eax, cs:dword_40E250"], [240, "cmp [rbp+var_8], eax"], [241, "jge short loc_401DDC"], [242, "mov rcx, cs:qword_40E248"], [243, "mov eax, [rbp+var_8]"], [244, "movsxd rdx, eax"], [245, "mov rax, rdx"], [246, "add rax, rax"], [247, "add rax, rdx"], [248, "shl rax, 2"], [249, "add rax, rdx"], [250, "shl rax, 4"], [251, "add rax, rcx"], [252, "mov rax, [rax+10h]"], [253, "test rax, rax"], [254, "jz short loc_401DA0"], [255, "mov eax, [rbp+var_8]"], [256, "sub eax, [rbp+var_4]"], [257, "mov ecx, eax"], [258, "mov rsi, cs:qword_40E248"], [259, "mov eax, [rbp+var_4]"], [260, "movsxd rdx, eax"], [261, "mov rax, rdx"], [262, "add rax, rax"], [263, "add rax, rdx"], [264, "shl rax, 2"], [265, "add rax, rdx"], [266, "shl rax, 4"], [267, "add rax, rsi"], [268, "mov esi, ecx"], [269, "mov rdi, rax"], [270, "call sub_406EA5"], [271, "mov eax, [rbp+var_8]"], [272, "mov [rbp+var_4], eax"], [273, "mov eax, cs:dword_40E250"], [274, "cmp [rbp+var_4], eax"], [275, "jl loc_401D95"], [276, "mov [rbp+var_4], 0"], [277, "jmp loc_401F1A"], [278, "mov rdx, cs:qword_40E258"], [279, "mov eax, [rbp+var_4]"], [280, "cdqe"], [281, "shl rax, 5"], [282, "add rax, rdx"], [283, "mov edx, [rax+8]"], [284, "mov rcx, cs:qword_40E258"], [285, "mov eax, [rbp+var_4]"], [286, "cdqe"], [287, "shl rax, 5"], [288, "add rax, rcx"], [289, "mov rax, [rax]"], [290, "mov esi, edx"], [291, "mov rdi, rax"], [292, "call sub_401551"], [293, "mov rdx, cs:qword_40E258"], [294, "mov eax, [rbp+var_4]"], [295, "cdqe"], [296, "shl rax, 5"], [297, "add rax, rdx"], [298, "mov rcx, [rax+18h]"], [299, "mov rdx, cs:qword_40E258"], [300, "mov eax, [rbp+var_4]"], [301, "cdqe"], [302, "shl rax, 5"], [303, "add rax, rdx"], [304, "mov rax, [rax+10h]"], [305, "mov edx, 0"], [306, "mov rsi, rcx"], [307, "mov rdi, rax"], [308, "call sub_40248C"], [309, "movzx eax, cs:byte_40E200"], [310, "test al, al"], [311, "jz short loc_401F16"], [312, "mov [rbp+var_8], 0"], [313, "jmp short loc_401F0B"], [314, "mov rdx, cs:qword_40E258"], [315, "mov eax, [rbp+var_8]"], [316, "cdqe"], [317, "shl rax, 5"], [318, "add rax, rdx"], [319, "mov rdx, [rax+10h]"], [320, "mov rcx, cs:qword_40E258"], [321, "mov eax, [rbp+var_4]"], [322, "cdqe"], [323, "shl rax, 5"], [324, "add rax, rcx"], [325, "mov rax, [rax+18h]"], [326, "mov rsi, rdx"], [327, "mov rdi, rax"], [328, "call _strcmp"], [329, "test eax, eax"], [330, "jnz short loc_401F07"], [331, "mov edi, offset aLinkToLink"], [332, "mov eax, 0"], [333, "call sub_4016CA"], [334, "add [rbp+var_8], 1"], [335, "mov eax, cs:dword_40E260"], [336, "cmp [rbp+var_8], eax"], [337, "jl short loc_401EBB"], [338, "add [rbp+var_4], 1"], [339, "mov eax, cs:dword_40E260"], [340, "cmp [rbp+var_4], eax"], [341, "jl loc_401E33"], [342, "mov rax, cs:qword_40F240"], [343, "test rax, rax"], [344, "jz short loc_401F5D"], [345, "mov esi, 1"], [346, "mov edi, offset aCommandLine"], [347, "call sub_401551"], [348, "mov rax, cs:qword_40F240"], [349, "mov edx, 1"], [350, "mov esi, offset aLocaltime"], [351, "mov rdi, rax"], [352, "call sub_40248C"], [353, "mov rax, cs:qword_40F238"], [354, "test rax, rax"], [355, "jz short loc_401F91"], [356, "mov esi, 1"], [357, "mov edi, offset aCommandLine"], [358, "call sub_401551"], [359, "mov rax, cs:qword_40F238"], [360, "mov edx, 1"], [361, "mov esi, offset aPosixrules"], [362, "mov rdi, rax"], [363, "call sub_40248C"], [364, "movzx eax, cs:byte_40E1C5"], [365, "test al, al"], [366, "jz short loc_401FC9"], [367, "mov rax, cs:stderr"], [368, "mov rdi, rax"], [369, "call _ferror"], [370, "test eax, eax"], [371, "jnz short loc_401FC2"], [372, "mov rax, cs:stderr"], [373, "mov rdi, rax"], [374, "call _fclose"], [375, "test eax, eax"], [376, "jz short loc_401FC9"], [377, "mov eax, 1"], [378, "jmp short locret_401FD8"], [379, "movzx eax, cs:byte_40E1C4"], [380, "test al, al"], [381, "setnz al"], [382, "movzx eax, al"], [383, "leave"], [384, "retn"]], "data_dep": [[7, 6], [8, 7], [10, 4], [11, 10], [12, 11], [15, 13], [15, 52], [17, 39], [18, 4], [19, 18], [19, 17], [20, 19], [22, 20], [24, 23], [25, 24], [33, 30], [37, 52], [37, 13], [39, 17], [40, 4], [41, 40], [41, 39], [42, 41], [44, 42], [46, 45], [47, 46], [50, 48], [52, 13], [52, 52], [53, 13], [53, 52], [54, 3], [54, 53], [55, 54], [57, 165], [58, 57], [59, 58], [60, 59], [61, 58], [63, 62], [66, 64], [68, 74], [69, 68], [70, 69], [72, 71], [74, 73], [76, 12], [79, 77], [84, 90], [85, 84], [86, 85], [88, 87], [90, 89], [92, 12], [95, 93], [100, 106], [101, 100], [102, 101], [104, 103], [106, 105], [108, 12], [111, 109], [116, 122], [117, 116], [118, 117], [120, 119], [122, 121], [124, 12], [127, 125], [132, 138], [133, 132], [134, 133], [136, 135], [138, 137], [140, 12], [143, 141], [153, 152], [159, 4], [160, 3], [162, 159], [163, 160], [165, 164], [166, 165], [167, 166], [168, 165], [169, 168], [170, 3], [171, 161], [171, 170], [173, 172], [173, 171], [174, 173], [177, 171], [178, 4], [179, 178], [179, 177], [180, 179], [182, 180], [184, 183], [185, 184], [188, 186], [190, 74], [191, 190], [192, 191], [194, 122], [195, 194], [196, 195], [199, 198], [199, 3], [200, 199], [201, 138], [202, 201], [203, 202], [204, 138], [205, 204], [209, 208], [211, 219], [211, 209], [213, 177], [213, 213], [213, 171], [214, 4], [215, 214], [215, 213], [216, 215], [217, 216], [219, 219], [219, 209], [220, 209], [220, 219], [221, 220], [221, 3], [222, 221], [224, 223], [225, 224], [229, 74], [229, 193], [230, 229], [234, 272], [234, 232], [235, 234], [236, 235], [238, 236], [238, 238], [240, 239], [240, 236], [240, 238], [241, 240], [243, 236], [243, 238], [244, 243], [245, 244], [246, 245], [247, 244], [247, 246], [248, 247], [249, 244], [249, 248], [250, 249], [251, 242], [251, 250], [252, 251], [253, 252], [254, 253], [255, 238], [255, 236], [256, 272], [256, 255], [256, 232], [257, 256], [259, 232], [259, 272], [260, 259], [261, 260], [262, 261], [263, 260], [263, 262], [264, 263], [265, 264], [265, 260], [266, 265], [267, 266], [267, 258], [268, 257], [269, 267], [271, 236], [271, 238], [272, 271], [274, 232], [274, 273], [274, 272], [275, 274], [279, 338], [279, 276], [281, 279], [282, 278], [282, 281], [283, 282], [285, 338], [285, 276], [287, 285], [288, 284], [288, 287], [289, 288], [290, 283], [291, 289], [294, 338], [294, 276], [296, 294], [297, 296], [297, 293], [298, 297], [300, 338], [300, 276], [302, 300], [303, 302], [303, 299], [304, 303], [306, 298], [307, 304], [309, 148], [310, 309], [311, 310], [315, 334], [315, 312], [317, 315], [318, 317], [318, 314], [319, 318], [321, 338], [321, 276], [323, 321], [324, 323], [324, 320], [325, 324], [326, 319], [327, 325], [329, 328], [330, 329], [334, 334], [334, 312], [336, 312], [336, 335], [336, 334], [337, 336], [338, 338], [338, 276], [340, 339], [340, 338], [340, 276], [341, 340], [342, 90], [343, 342], [344, 343], [348, 90], [351, 348], [353, 106], [354, 353], [355, 354], [359, 106], [362, 359], [365, 364], [366, 365], [368, 367], [370, 369], [371, 370], [373, 372], [375, 374], [376, 375], [380, 379], [381, 380], [382, 381], [384, 114], [384, 35], [384, 382], [384, 98], [384, 226], [384, 82], [384, 146], [384, 130], [384, 377]]}
static inline uint32_t prefix_len_mask(uint8_t len) { return ~((1ULL << (32 - len)) - 1); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406989", "function_addr": 4221321, "binary_name": "eec34215ebfdb5a3218eeb77b1546d6d001312b1ea4361ffbda4ac1d3e99e353.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, edi"], [3, "mov [rbp+var_4], al"], [4, "movzx edx, [rbp+var_4]"], [5, "mov eax, 20h "], [6, "sub eax, edx"], [7, "mov edx, 1"], [8, "mov ecx, eax"], [9, "shl rdx, cl"], [10, "mov rax, rdx"], [11, "neg eax"], [12, "pop rbp"], [13, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 5], [6, 4], [8, 6], [9, 8], [9, 7], [10, 9], [11, 10], [12, 0], [13, 11]]}
static int can_list( void) { int ok = lstfile != NULL && (pass > 0 || list_pass_0); return ok; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40BD33", "function_addr": 4242739, "binary_name": "04452f3779b2526a171f2634a73f77e1977e56e76a8851784b367f85afc424d6.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov rax, cs:stream"], [3, "test rax, rax"], [4, "jz short loc_40BD5E"], [5, "mov eax, cs:dword_41FCE0"], [6, "test eax, eax"], [7, "jg short loc_40BD57"], [8, "mov eax, cs:dword_421820"], [9, "test eax, eax"], [10, "jz short loc_40BD5E"], [11, "mov eax, 1"], [12, "jmp short loc_40BD63"], [13, "mov eax, 0"], [14, "mov [rbp+var_4], eax"], [15, "mov eax, [rbp+var_4]"], [16, "pop rbp"], [17, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 5], [7, 6], [9, 8], [10, 9], [14, 13], [14, 11], [15, 14], [16, 0], [17, 15]]}
static void print_code_point_list(FILE *out) { bool last_allowed = false; uint32_t range_start = 0; for (uint32_t v = 0x20; v < 0x110000; ++v) { bool this_allowed = is_permitted_code_point(v); if (v < 0x7F) assert(this_allowed); if (this_allowed ^ last_allowed) { last_allowed = this_allowed; if (this_allowed) { range_start = v; // Start a new list if (fprintf(out, " case 0x%06" PRIx32, v) != 17) err(1, "fprintf()"); } else { if (v - range_start > 1) { if (fprintf(out, " ... 0x%06" PRIx32 ":\n", v - 1) != 15) err(1, "fprintf()"); } else { if (fwrite(":\n", 1, 2, out) != 2) err(1, "fprintf()"); } } } } if (last_allowed) errx(1, "BUG: should not allow 0x10FFFF"); if (fflush(out)) err(1, "fflush()"); switch (fsync(fileno(out))) { case 0: return; case -1: if ((errno != EROFS) && (errno != EINVAL)) err(1, "fsync()"); return; default: abort(); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403A81", "function_addr": 4209281, "binary_name": "d653cedc509b0912954da6ce605ac1ad726df2892925942593effa0b57f10871.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+stream], rdi"], [4, "mov [rbp+var_1], 0"], [5, "mov [rbp+var_8], 0"], [6, "mov [rbp+var_C], 20h "], [7, "jmp loc_403B8C"], [8, "mov eax, [rbp+var_C]"], [9, "mov edi, eax"], [10, "call sub_4011D2"], [11, "mov [rbp+var_D], al"], [12, "movzx eax, [rbp+var_D]"], [13, "cmp al, [rbp+var_1]"], [14, "jz loc_403B88"], [15, "movzx eax, [rbp+var_D]"], [16, "mov [rbp+var_1], al"], [17, "cmp [rbp+var_D], 0"], [18, "jz short loc_403B0B"], [19, "mov eax, [rbp+var_C]"], [20, "mov [rbp+var_8], eax"], [21, "mov edx, [rbp+var_C]"], [22, "mov rax, [rbp+stream]"], [23, "lea rsi, aCase0x06x"], [24, "mov rdi, rax"], [25, "mov eax, 0"], [26, "call _fprintf"], [27, "cmp eax, 11h"], [28, "jz loc_403B88"], [29, "lea rsi, aFprintf_0"], [30, "mov edi, 1"], [31, "mov eax, 0"], [32, "call _err"], [33, "mov eax, [rbp+var_C]"], [34, "sub eax, [rbp+var_8]"], [35, "cmp eax, 1"], [36, "jbe short loc_403B4F"], [37, "mov eax, [rbp+var_C]"], [38, "lea edx, [rax-1]"], [39, "mov rax, [rbp+stream]"], [40, "lea rsi, a0x06x"], [41, "mov rdi, rax"], [42, "mov eax, 0"], [43, "call _fprintf"], [44, "cmp eax, 0Fh"], [45, "jz short loc_403B88"], [46, "lea rsi, aFprintf_0"], [47, "mov edi, 1"], [48, "mov eax, 0"], [49, "call _err"], [50, "mov rax, [rbp+stream]"], [51, "mov rcx, rax"], [52, "mov edx, 2"], [53, "mov esi, 1"], [54, "lea rdi, asc_408584"], [55, "call _fwrite"], [56, "cmp rax, 2"], [57, "jz short loc_403B88"], [58, "lea rsi, aFprintf_0"], [59, "mov edi, 1"], [60, "mov eax, 0"], [61, "call _err"], [62, "add [rbp+var_C], 1"], [63, "cmp [rbp+var_C], 10FFFFh"], [64, "jbe loc_403AA4"], [65, "cmp [rbp+var_1], 0"], [66, "jz short loc_403BB5"], [67, "lea rsi, aBugShouldNotAl"], [68, "mov edi, 1"], [69, "mov eax, 0"], [70, "call _errx"], [71, "mov rax, [rbp+stream]"], [72, "mov rdi, rax"], [73, "call _fflush"], [74, "test eax, eax"], [75, "jz short loc_403BDB"], [76, "lea rsi, aFflush_0"], [77, "mov edi, 1"], [78, "mov eax, 0"], [79, "call _err"], [80, "mov rax, [rbp+stream]"], [81, "mov rdi, rax"], [82, "call _fileno"], [83, "mov edi, eax"], [84, "call _fsync"], [85, "cmp eax, 0FFFFFFFFh"], [86, "jz short loc_403BF9"], [87, "test eax, eax"], [88, "jnz short loc_403C27"], [89, "jmp short locret_403C2D"], [90, "call ___errno_location"], [91, "mov eax, [rax]"], [92, "cmp eax, 1Eh"], [93, "jz short loc_403C2C"], [94, "call ___errno_location"], [95, "mov eax, [rax]"], [96, "cmp eax, 16h"], [97, "jz short loc_403C2C"], [98, "lea rsi, aFsync_0"], [99, "mov edi, 1"], [100, "mov eax, 0"], [101, "call _err"], [102, "call _abort"], [103, "nop"], [104, "leave"], [105, "retn"]], "data_dep": [[8, 6], [8, 62], [9, 8], [11, 10], [12, 11], [13, 12], [13, 16], [13, 4], [14, 13], [15, 11], [16, 15], [17, 11], [18, 17], [19, 6], [19, 62], [20, 19], [21, 6], [21, 62], [22, 3], [23, 40], [23, 23], [23, 53], [24, 22], [27, 26], [28, 27], [29, 23], [33, 6], [33, 62], [34, 5], [34, 20], [34, 33], [35, 34], [36, 35], [37, 6], [37, 62], [38, 52], [38, 38], [38, 37], [38, 21], [39, 3], [40, 40], [40, 23], [40, 53], [41, 39], [44, 43], [45, 44], [46, 40], [50, 3], [51, 50], [54, 9], [56, 55], [57, 56], [58, 53], [62, 62], [62, 6], [63, 6], [63, 62], [64, 63], [65, 16], [65, 4], [66, 65], [67, 40], [67, 23], [67, 53], [71, 3], [72, 71], [74, 73], [75, 74], [76, 40], [76, 53], [76, 23], [80, 3], [81, 80], [83, 82], [85, 84], [86, 85], [87, 84], [88, 87], [91, 90], [92, 91], [93, 92], [95, 94], [96, 95], [97, 96], [98, 23], [98, 40], [98, 53], [105, 95], [105, 87], [105, 91]]}
int tns_translate(tns_t *tns, int x, int y) { int n; if (x < tns->x || y < tns->y) return -1; n = tns->first + (y - tns->y) / tns->dim * tns->cols + (x - tns->x) / tns->dim; if (n >= *tns->cnt) n = -1; return n; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40DC3F", "function_addr": 4250687, "binary_name": "cfe278c510922ef18dc7267c8c085a9074e503ccf9ed8b44705a34f3ac066f2e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_1C], esi"], [4, "mov [rbp+var_20], edx"], [5, "mov rax, [rbp+var_18]"], [6, "mov eax, [rax+40h]"], [7, "cmp [rbp+var_1C], eax"], [8, "jl short loc_40DC65"], [9, "mov rax, [rbp+var_18]"], [10, "mov eax, [rax+44h]"], [11, "cmp [rbp+var_20], eax"], [12, "jge short loc_40DC6C"], [13, "mov eax, 0FFFFFFFFh"], [14, "jmp short loc_40DCD3"], [15, "mov rax, [rbp+var_18]"], [16, "mov esi, [rax+28h]"], [17, "mov rax, [rbp+var_18]"], [18, "mov edx, [rax+44h]"], [19, "mov eax, [rbp+var_20]"], [20, "sub eax, edx"], [21, "mov ecx, eax"], [22, "mov rax, [rbp+var_18]"], [23, "mov edi, [rax+58h]"], [24, "mov eax, ecx"], [25, "cdq"], [26, "idiv edi"], [27, "mov edx, eax"], [28, "mov rax, [rbp+var_18]"], [29, "mov eax, [rax+48h]"], [30, "imul eax, edx"], [31, "add esi, eax"], [32, "mov rax, [rbp+var_18]"], [33, "mov edx, [rax+40h]"], [34, "mov eax, [rbp+var_1C]"], [35, "sub eax, edx"], [36, "mov ecx, eax"], [37, "mov rax, [rbp+var_18]"], [38, "mov edi, [rax+58h]"], [39, "mov eax, ecx"], [40, "cdq"], [41, "idiv edi"], [42, "add eax, esi"], [43, "mov [rbp+var_4], eax"], [44, "mov rax, [rbp+var_18]"], [45, "mov rax, [rax+10h]"], [46, "mov eax, [rax]"], [47, "cmp [rbp+var_4], eax"], [48, "jl short loc_40DCD0"], [49, "mov [rbp+var_4], 0FFFFFFFFh"], [50, "mov eax, [rbp+var_4]"], [51, "pop rbp"], [52, "retn"]], "data_dep": [[5, 2], [6, 5], [7, 3], [7, 6], [8, 7], [9, 2], [10, 9], [11, 4], [11, 10], [12, 11], [15, 2], [16, 15], [17, 2], [18, 17], [19, 4], [20, 19], [20, 18], [21, 20], [22, 2], [23, 22], [24, 21], [26, 23], [27, 24], [28, 2], [29, 28], [30, 27], [30, 29], [31, 16], [31, 30], [32, 2], [33, 32], [34, 3], [35, 33], [35, 34], [36, 35], [37, 2], [38, 37], [39, 36], [41, 38], [42, 39], [42, 31], [43, 42], [44, 2], [45, 44], [46, 45], [47, 46], [47, 43], [48, 47], [50, 49], [50, 43], [51, 0], [52, 50], [52, 13]]}
int testBitStream() { uint8_t input [] = {0xDE,0xAD,0xBE,0xEF,0xDE,0xAD,0xBE,0xEF}; uint8_t output [] = {0,0,0,0,0,0,0,0}; BitstreamIn in = { input, sizeof(input) * 8,0}; BitstreamOut out ={ output, 0,0} ; while(bitsLeft(&in) > 0) { pushBit(&out, headBit(&in)); //printf("Bits left: %d\n", bitsLeft(&in)); //printf("Bits out: %d\n", numBits(&out)); } if(memcmp(input, output, sizeof(input)) == 0) { prnlog(" Bitstream test 1 ok"); }else { prnlog(" Bitstream test 1 failed"); uint8_t i; for(i = 0 ; i < sizeof(input) ; i++) { prnlog(" IN %02x, OUT %02x", input[i], output[i]); } return 1; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "testBitStream", "function_addr": 4295404, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov rax, 0EFBEADDEEFBEADDEh"], [4, "mov [rbp+s1], rax"], [5, "mov [rbp+s2], 0"], [6, "lea rax, [rbp+s1]"], [7, "mov [rbp+var_30], rax"], [8, "mov [rbp+var_28], 40h "], [9, "mov [rbp+var_27], 0"], [10, "lea rax, [rbp+s2]"], [11, "mov [rbp+var_40], rax"], [12, "mov [rbp+var_38], 0"], [13, "mov [rbp+var_37], 0"], [14, "jmp short loc_418B49"], [15, "lea rax, [rbp+var_30]"], [16, "mov rdi, rax"], [17, "call headBit"], [18, "movzx edx, al"], [19, "lea rax, [rbp+var_40]"], [20, "mov esi, edx"], [21, "mov rdi, rax"], [22, "call pushBit"], [23, "lea rax, [rbp+var_30]"], [24, "mov rdi, rax"], [25, "call bitsLeft"], [26, "test eax, eax"], [27, "jg short loc_418B2C"], [28, "lea rcx, [rbp+s2]"], [29, "lea rax, [rbp+s1]"], [30, "mov edx, 8"], [31, "mov rsi, rcx"], [32, "mov rdi, rax"], [33, "call _memcmp"], [34, "test eax, eax"], [35, "jnz short loc_418B8B"], [36, "mov edi, offset aBitstreamTest1"], [37, "mov eax, 0"], [38, "call prnlog"], [39, "mov eax, 0"], [40, "jmp short locret_418BE2"], [41, "mov edi, offset aBitstreamTest1_0"], [42, "mov eax, 0"], [43, "call prnlog"], [44, "mov [rbp+var_1], 0"], [45, "jmp short loc_418BD7"], [46, "movzx eax, [rbp+var_1]"], [47, "cdqe"], [48, "movzx eax, byte ptr [rbp+rax+s2]"], [49, "movzx edx, al"], [50, "movzx eax, [rbp+var_1]"], [51, "cdqe"], [52, "movzx eax, byte ptr [rbp+rax+s1]"], [53, "movzx eax, al"], [54, "mov esi, eax"], [55, "mov edi, offset aIn02xOut02x"], [56, "mov eax, 0"], [57, "call prnlog"], [58, "movzx eax, [rbp+var_1]"], [59, "add eax, 1"], [60, "mov [rbp+var_1], al"], [61, "cmp [rbp+var_1], 7"], [62, "jbe short loc_418BA0"], [63, "mov eax, 1"], [64, "leave"], [65, "retn"]], "data_dep": [[4, 3], [6, 4], [6, 3], [7, 6], [10, 6], [10, 5], [11, 10], [15, 26], [15, 7], [16, 15], [18, 17], [19, 11], [19, 17], [20, 18], [21, 19], [23, 7], [23, 10], [23, 22], [24, 23], [26, 25], [27, 26], [28, 5], [29, 26], [29, 4], [31, 28], [32, 29], [34, 33], [35, 34], [46, 60], [46, 44], [48, 46], [49, 48], [50, 60], [50, 44], [52, 50], [53, 52], [54, 53], [58, 60], [58, 44], [59, 58], [60, 59], [61, 60], [61, 44], [62, 61], [65, 39], [65, 63]]}
static t_stat card_service (UNIT *uptr) { static uint32 delta [CARD_COUNT] = { 0, 0 }; /* per-card accumulated time between receptions */ const CARD_INDEX card = (CARD_INDEX) (uptr == &iplo_unit); /* set card selector */ t_stat status = SCPE_OK; tpprintf (dptrs [card], TRACE_PSERV, "Poll delay %d service entered\n", uptr->wait); delta [card] = delta [card] + uptr->wait; /* update the accumulated time */ if (io_ptrs [card].input->device_flag_in == TRUE) { /* if the Device Flag is asserted */ io_ptrs [card].input->device_flag_in = FALSE; /* then clear it */ ipl [card].input_word = io_ptrs [card].input->data_in; /* read the data input lines */ tpprintf (dptrs [card], TRACE_XFER, "Word %06o delta %u received from link\n", ipl [card].input_word, delta [card]); ipl [card].flag_buffer = SET; /* set the flag buffer */ io_assert (dptrs [card], ioa_ENF); /* and flag flip-flops */ io_ptrs [card].output->device_command_out = FALSE; /* reset Device Command */ uptr->wait = 1; /* restart polling at the minimum time */ delta [card] = 0; /* and clear the accumulated time */ } else { /* otherwise Device Flag is denied */ uptr->wait = uptr-> wait * 2; /* so double the wait time for the next check */ if (uptr->wait > poll_wait) /* if the new time is greater than the maximum time */ uptr->wait = poll_wait; /* then limit it to the maximum */ if (io_ptrs [card].input->cable_connected == FALSE /* if the interconnecting cable is not present */ && cpu_io_stop (uptr)) /* and the I/O error stop is enabled */ status = STOP_NOCONN; /* then report the disconnection */ } if (uptr->flags & UNIT_ATT) /* if the link is active */ activate_unit (uptr); /* then continue to poll for input */ return status; /* return the event service status */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42B1E3", "function_addr": 4370915, "binary_name": "f403d1d8b77541da522a0d0c3deff2e4197be390cb78692e79a5ebc1ff898374.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "cmp [rbp+var_18], offset unk_518C08"], [5, "setz al"], [6, "movzx eax, al"], [7, "mov [rbp+var_8], eax"], [8, "mov [rbp+var_4], 0"], [9, "mov rax, cs:qword_55C6A0"], [10, "test rax, rax"], [11, "jz short loc_42B253"], [12, "mov eax, [rbp+var_8]"], [13, "mov rax, off_5197A0[rax*8]"], [14, "mov eax, [rax+74h]"], [15, "and eax, 20h"], [16, "test eax, eax"], [17, "jz short loc_42B253"], [18, "mov rax, [rbp+var_18]"], [19, "mov edx, [rax+58h]"], [20, "mov eax, [rbp+var_8]"], [21, "mov rax, off_5197A0[rax*8]"], [22, "mov ecx, edx"], [23, "mov edx, offset aPollDelayDServ"], [24, "mov esi, 20h "], [25, "mov rdi, rax"], [26, "mov eax, 0"], [27, "call sub_43C2D8"], [28, "mov eax, [rbp+var_8]"], [29, "mov edx, ds:dword_535B58[rax*4]"], [30, "mov rax, [rbp+var_18]"], [31, "mov eax, [rax+58h]"], [32, "add edx, eax"], [33, "mov eax, [rbp+var_8]"], [34, "mov ds:dword_535B58[rax*4], edx"], [35, "mov eax, [rbp+var_8]"], [36, "shl rax, 4"], [37, "add rax, 518A80h"], [38, "mov rax, [rax]"], [39, "mov eax, [rax+4]"], [40, "cmp eax, 1"], [41, "jnz loc_42B39E"], [42, "mov eax, [rbp+var_8]"], [43, "shl rax, 4"], [44, "add rax, 518A80h"], [45, "mov rax, [rax]"], [46, "mov dword ptr [rax+4], 0"], [47, "mov eax, [rbp+var_8]"], [48, "shl rax, 4"], [49, "add rax, 518A80h"], [50, "mov rax, [rax]"], [51, "mov edx, [rax+8]"], [52, "mov ecx, [rbp+var_8]"], [53, "mov rax, rcx"], [54, "add rax, rax"], [55, "add rax, rcx"], [56, "shl rax, 3"], [57, "add rax, 534AC4h"], [58, "mov [rax], edx"], [59, "mov rax, cs:qword_55C6A0"], [60, "test rax, rax"], [61, "jz short loc_42B338"], [62, "mov eax, [rbp+var_8]"], [63, "mov rax, off_5197A0[rax*8]"], [64, "mov eax, [rax+74h]"], [65, "and eax, 40h"], [66, "test eax, eax"], [67, "jz short loc_42B338"], [68, "mov eax, [rbp+var_8]"], [69, "mov ecx, ds:dword_535B58[rax*4]"], [70, "mov edx, [rbp+var_8]"], [71, "mov rax, rdx"], [72, "add rax, rax"], [73, "add rax, rdx"], [74, "shl rax, 3"], [75, "add rax, 534AC4h"], [76, "mov edx, [rax]"], [77, "mov eax, [rbp+var_8]"], [78, "mov rax, off_5197A0[rax*8]"], [79, "mov r8d, ecx"], [80, "mov ecx, edx"], [81, "mov edx, offset aWord06oDeltaUR"], [82, "mov esi, 40h "], [83, "mov rdi, rax"], [84, "mov eax, 0"], [85, "call sub_43C2D8"], [86, "mov edx, [rbp+var_8]"], [87, "mov rax, rdx"], [88, "add rax, rax"], [89, "add rax, rdx"], [90, "shl rax, 3"], [91, "add rax, 534AD4h"], [92, "mov dword ptr [rax], 1"], [93, "mov eax, [rbp+var_8]"], [94, "mov rax, off_5197A0[rax*8]"], [95, "mov esi, 0"], [96, "mov rdi, rax"], [97, "call sub_407C33"], [98, "mov eax, [rbp+var_8]"], [99, "shl rax, 4"], [100, "add rax, 518A88h"], [101, "mov rax, [rax]"], [102, "mov dword ptr [rax+4], 0"], [103, "mov rax, [rbp+var_18]"], [104, "mov dword ptr [rax+58h], 1"], [105, "mov eax, [rbp+var_8]"], [106, "mov ds:dword_535B58[rax*4], 0"], [107, "jmp short loc_42B3FA"], [108, "mov rax, [rbp+var_18]"], [109, "mov eax, [rax+58h]"], [110, "lea edx, [rax+rax]"], [111, "mov rax, [rbp+var_18]"], [112, "mov [rax+58h], edx"], [113, "mov rax, [rbp+var_18]"], [114, "mov edx, [rax+58h]"], [115, "mov eax, cs:dword_518AA4"], [116, "cmp edx, eax"], [117, "jle short loc_42B3CD"], [118, "mov edx, cs:dword_518AA4"], [119, "mov rax, [rbp+var_18]"], [120, "mov [rax+58h], edx"], [121, "mov eax, [rbp+var_8]"], [122, "shl rax, 4"], [123, "add rax, 518A80h"], [124, "mov rax, [rax]"], [125, "mov eax, [rax]"], [126, "test eax, eax"], [127, "jnz short loc_42B3FA"], [128, "mov rax, [rbp+var_18]"], [129, "mov rdi, rax"], [130, "call sub_407878"], [131, "test eax, eax"], [132, "jz short loc_42B3FA"], [133, "mov [rbp+var_4], 7"], [134, "mov rax, [rbp+var_18]"], [135, "mov eax, [rax+38h]"], [136, "and eax, 10h"], [137, "test eax, eax"], [138, "jz short loc_42B414"], [139, "mov rax, [rbp+var_18]"], [140, "mov rdi, rax"], [141, "call sub_42BC6A"], [142, "mov eax, [rbp+var_4]"], [143, "leave"], [144, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [10, 9], [11, 10], [12, 7], [14, 13], [15, 14], [16, 15], [17, 16], [18, 3], [19, 18], [20, 7], [22, 19], [25, 21], [28, 7], [30, 3], [31, 30], [32, 29], [32, 31], [33, 7], [34, 32], [35, 7], [36, 35], [37, 36], [38, 37], [39, 38], [40, 39], [41, 40], [42, 7], [43, 42], [44, 43], [45, 44], [46, 45], [47, 7], [48, 47], [49, 48], [50, 49], [50, 46], [51, 50], [51, 46], [52, 7], [53, 52], [54, 53], [55, 52], [55, 54], [56, 55], [57, 56], [58, 51], [58, 57], [60, 59], [61, 60], [62, 7], [64, 63], [64, 58], [64, 46], [65, 64], [66, 65], [67, 66], [68, 7], [69, 34], [70, 7], [71, 70], [72, 71], [73, 70], [73, 72], [74, 73], [75, 74], [76, 58], [76, 46], [76, 75], [77, 7], [79, 69], [80, 76], [83, 78], [86, 7], [87, 86], [88, 87], [89, 86], [89, 88], [90, 89], [91, 90], [92, 91], [93, 7], [96, 94], [98, 7], [99, 98], [100, 99], [101, 92], [101, 100], [102, 101], [103, 3], [104, 103], [105, 7], [108, 3], [109, 108], [110, 109], [110, 32], [111, 3], [112, 111], [112, 110], [113, 3], [114, 113], [114, 112], [116, 115], [116, 114], [117, 116], [119, 3], [120, 119], [120, 118], [121, 7], [122, 121], [123, 122], [124, 120], [124, 112], [124, 123], [125, 112], [125, 120], [125, 124], [126, 125], [127, 126], [128, 3], [129, 128], [131, 130], [132, 131], [134, 3], [135, 120], [135, 104], [135, 58], [135, 92], [135, 46], [135, 112], [135, 102], [135, 134], [136, 135], [137, 136], [138, 137], [139, 3], [140, 139], [142, 8], [142, 133], [144, 142]]}
static int io_uring_register_files(struct submitter *s) { unsigned i; if (do_nop) return 0; s->fds = calloc(s->nr_files, sizeof(__s32)); for (i = 0; i < s->nr_files; i++) { s->fds[i] = s->files[i].real_fd; s->files[i].fixed_fd = i; } return io_uring_register(s->ring_fd, IORING_REGISTER_FILES, s->fds, s->nr_files); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40138D", "function_addr": 4199309, "binary_name": "42b9cb0422a1c78635feb8fba999ca2c8214840ffb0193952c8a598439ecf984.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov eax, cs:dword_405B8C"], [5, "test eax, eax"], [6, "jz short loc_4013AD"], [7, "mov eax, 0"], [8, "jmp locret_401471"], [9, "mov rax, [rbp+var_18]"], [10, "mov eax, [rax+0A38h]"], [11, "mov eax, eax"], [12, "mov esi, 4"], [13, "mov rdi, rax"], [14, "call _calloc"], [15, "mov rdx, rax"], [16, "mov rax, [rbp+var_18]"], [17, "mov [rax+8B0h], rdx"], [18, "mov [rbp+var_4], 0"], [19, "jmp short loc_40143A"], [20, "mov rax, [rbp+var_18]"], [21, "mov rdx, [rax+8B0h]"], [22, "mov eax, [rbp+var_4]"], [23, "shl rax, 2"], [24, "lea rcx, [rdx+rax]"], [25, "mov rsi, [rbp+var_18]"], [26, "mov edx, [rbp+var_4]"], [27, "mov rax, rdx"], [28, "add rax, rax"], [29, "add rax, rdx"], [30, "shl rax, 3"], [31, "add rax, rsi"], [32, "add rax, 8C4h"], [33, "mov eax, [rax]"], [34, "mov [rcx], eax"], [35, "mov edx, [rbp+var_4]"], [36, "mov rsi, [rbp+var_18]"], [37, "mov ecx, [rbp+var_4]"], [38, "mov rax, rcx"], [39, "add rax, rax"], [40, "add rax, rcx"], [41, "shl rax, 3"], [42, "add rax, rsi"], [43, "add rax, 8C8h"], [44, "mov [rax], edx"], [45, "add [rbp+var_4], 1"], [46, "mov rax, [rbp+var_18]"], [47, "mov eax, [rax+0A38h]"], [48, "cmp [rbp+var_4], eax"], [49, "jb short loc_4013DD"], [50, "mov rax, [rbp+var_18]"], [51, "mov ecx, [rax+0A38h]"], [52, "mov rax, [rbp+var_18]"], [53, "mov rdx, [rax+8B0h]"], [54, "mov rax, [rbp+var_18]"], [55, "mov eax, [rax+8]"], [56, "mov esi, 2"], [57, "mov edi, eax"], [58, "call sub_4012A2"], [59, "leave"], [60, "retn"]], "data_dep": [[5, 4], [6, 5], [9, 3], [10, 9], [11, 10], [13, 11], [15, 14], [16, 3], [17, 16], [17, 15], [20, 3], [21, 34], [21, 20], [21, 17], [21, 44], [22, 18], [22, 45], [23, 22], [24, 17], [24, 44], [24, 37], [24, 23], [24, 34], [25, 3], [26, 18], [26, 45], [27, 26], [28, 27], [29, 26], [29, 28], [30, 29], [31, 30], [31, 25], [32, 31], [33, 17], [33, 44], [33, 32], [33, 34], [34, 24], [34, 33], [35, 18], [35, 45], [36, 3], [37, 18], [37, 45], [38, 37], [39, 38], [40, 37], [40, 39], [41, 40], [42, 41], [42, 36], [43, 42], [44, 35], [44, 43], [45, 18], [45, 45], [46, 3], [47, 34], [47, 17], [47, 44], [47, 46], [48, 45], [48, 47], [48, 18], [49, 48], [50, 3], [51, 34], [51, 50], [51, 17], [51, 44], [52, 3], [53, 34], [53, 52], [53, 17], [53, 44], [54, 3], [55, 54], [55, 17], [55, 44], [55, 34], [57, 55], [60, 7], [60, 58]]}
unsigned OptLoad3 (CodeSeg* S) /* Remove repeated loads from one and the same memory location */ { unsigned Changes = 0; CodeEntry* Load = 0; /* Walk over the entries */ unsigned I = 0; while (I < CS_GetEntryCount (S)) { /* Get next entry */ CodeEntry* E = CS_GetEntry (S, I); /* Forget a preceeding load if we have a label */ if (Load && CE_HasLabel (E)) { Load = 0; } /* Check if this insn is a load */ if (E->Info & OF_LOAD) { CodeEntry* N; /* If we had a preceeding load that is identical, remove this one. ** If it is not identical, or we didn't have one, remember it. */ if (Load != 0 && E->OPC == Load->OPC && E->AM == Load->AM && ((E->Arg == 0 && Load->Arg == 0) || strcmp (E->Arg, Load->Arg) == 0) && (N = CS_GetNextEntry (S, I)) != 0 && (N->Info & OF_CBRA) == 0) { /* Now remove the call to the subroutine */ CS_DelEntry (S, I); /* Remember, we had changes */ ++Changes; /* Next insn */ continue; } else { Load = E; } } else if ((E->Info & OF_CMP) == 0 && (E->Info & OF_CBRA) == 0) { /* Forget the first load on occurance of any insn we don't like */ Load = 0; } /* Next entry */ ++I; } /* Return the number of changes made */ return Changes; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45A867", "function_addr": 4565095, "binary_name": "7a9fd741a95dae0778f24573dd0254b72607ff4da9f089d1feccd19f23d872f4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_4], 0"], [5, "mov [rbp+var_10], 0"], [6, "mov [rbp+var_14], 0"], [7, "jmp loc_45A9C7"], [8, "mov edx, [rbp+var_14]"], [9, "mov rax, [rbp+var_38]"], [10, "mov esi, edx"], [11, "mov rdi, rax"], [12, "call sub_45A422"], [13, "mov [rbp+var_20], rax"], [14, "cmp [rbp+var_10], 0"], [15, "jz short loc_45A8C2"], [16, "mov rax, [rbp+var_20]"], [17, "mov rdi, rax"], [18, "call sub_45A39A"], [19, "test eax, eax"], [20, "jz short loc_45A8C2"], [21, "mov [rbp+var_10], 0"], [22, "mov rax, [rbp+var_20]"], [23, "movzx eax, word ptr [rax+18h]"], [24, "movzx eax, ax"], [25, "and eax, 40h"], [26, "test eax, eax"], [27, "jz loc_45A995"], [28, "cmp [rbp+var_10], 0"], [29, "jz loc_45A98B"], [30, "mov rax, [rbp+var_20]"], [31, "movzx edx, byte ptr [rax]"], [32, "mov rax, [rbp+var_10]"], [33, "movzx eax, byte ptr [rax]"], [34, "cmp dl, al"], [35, "jnz loc_45A98B"], [36, "mov rax, [rbp+var_20]"], [37, "movzx edx, byte ptr [rax+1]"], [38, "mov rax, [rbp+var_10]"], [39, "movzx eax, byte ptr [rax+1]"], [40, "cmp dl, al"], [41, "jnz short loc_45A98B"], [42, "mov rax, [rbp+var_20]"], [43, "mov rax, [rax+8]"], [44, "test rax, rax"], [45, "jnz short loc_45A927"], [46, "mov rax, [rbp+var_10]"], [47, "mov rax, [rax+8]"], [48, "test rax, rax"], [49, "jz short loc_45A946"], [50, "mov rax, [rbp+var_10]"], [51, "mov rdx, [rax+8]"], [52, "mov rax, [rbp+var_20]"], [53, "mov rax, [rax+8]"], [54, "mov rsi, rdx"], [55, "mov rdi, rax"], [56, "call _strcmp"], [57, "test eax, eax"], [58, "jnz short loc_45A98B"], [59, "mov edx, [rbp+var_14]"], [60, "mov rax, [rbp+var_38]"], [61, "mov esi, edx"], [62, "mov rdi, rax"], [63, "call sub_4644A5"], [64, "mov [rbp+var_28], rax"], [65, "cmp [rbp+var_28], 0"], [66, "jz short loc_45A98B"], [67, "mov rax, [rbp+var_28]"], [68, "movzx eax, word ptr [rax+18h]"], [69, "movzx eax, ax"], [70, "and eax, 2"], [71, "test eax, eax"], [72, "jnz short loc_45A98B"], [73, "mov edx, [rbp+var_14]"], [74, "mov rax, [rbp+var_38]"], [75, "mov esi, edx"], [76, "mov rdi, rax"], [77, "call sub_4642F3"], [78, "add [rbp+var_4], 1"], [79, "jmp short loc_45A9C7"], [80, "mov rax, [rbp+var_20]"], [81, "mov [rbp+var_10], rax"], [82, "jmp short loc_45A9C3"], [83, "mov rax, [rbp+var_20]"], [84, "movzx eax, word ptr [rax+18h]"], [85, "movzx eax, ax"], [86, "and eax, 1000h"], [87, "test eax, eax"], [88, "jnz short loc_45A9C3"], [89, "mov rax, [rbp+var_20]"], [90, "movzx eax, word ptr [rax+18h]"], [91, "movzx eax, ax"], [92, "and eax, 2"], [93, "test eax, eax"], [94, "jnz short loc_45A9C3"], [95, "mov [rbp+var_10], 0"], [96, "add [rbp+var_14], 1"], [97, "mov rax, [rbp+var_38]"], [98, "mov rdi, rax"], [99, "call sub_45A404"], [100, "cmp [rbp+var_14], eax"], [101, "jb loc_45A88E"], [102, "mov eax, [rbp+var_4]"], [103, "leave"], [104, "retn"]], "data_dep": [[8, 96], [8, 6], [9, 3], [10, 8], [11, 9], [13, 12], [14, 95], [14, 81], [14, 21], [14, 5], [15, 14], [16, 13], [17, 16], [19, 18], [20, 19], [22, 13], [23, 22], [24, 23], [25, 24], [26, 25], [27, 26], [28, 21], [28, 5], [28, 95], [28, 81], [29, 28], [30, 13], [31, 30], [32, 21], [32, 5], [32, 95], [32, 81], [33, 32], [34, 31], [34, 33], [35, 34], [36, 13], [37, 36], [38, 95], [38, 81], [38, 21], [38, 5], [39, 38], [40, 37], [40, 39], [41, 40], [42, 13], [43, 42], [44, 43], [45, 44], [46, 95], [46, 81], [46, 21], [46, 5], [47, 46], [48, 47], [49, 48], [50, 95], [50, 81], [50, 21], [50, 5], [51, 50], [52, 13], [53, 52], [54, 51], [55, 53], [57, 56], [58, 57], [59, 96], [59, 6], [60, 3], [61, 59], [62, 60], [64, 63], [65, 64], [66, 65], [67, 64], [68, 67], [69, 68], [70, 69], [71, 70], [72, 71], [73, 96], [73, 6], [74, 3], [75, 73], [76, 74], [78, 4], [78, 78], [80, 13], [81, 80], [83, 13], [84, 83], [85, 84], [86, 85], [87, 86], [88, 87], [89, 13], [90, 89], [91, 90], [92, 91], [93, 92], [94, 93], [96, 96], [96, 6], [97, 3], [98, 97], [100, 96], [100, 6], [100, 99], [101, 100], [102, 4], [102, 78], [104, 102]]}
void printCrossReference() { int ix; int xc; int xc_index; int xc_refcount; int xc_cols; SYM_T *sym; /* Force top of form for first page. */ page_lineno = LIST_LINES_PER_PAGE; list_lineno = 0; for( ix = 0, sym = symtab; ix < symbol_top; ix++, sym++ ) { if (M_FIXED(sym->type) && xreftab[sym->xref_index] == 0) continue; list_lineno++; page_lineno++; if( page_lineno >= LIST_LINES_PER_PAGE ) topOfForm( list_title, s_xref ); fprintf( listfile, "%5d", list_lineno ); /* Get reference count & index into concordance table for this symbol */ xc_refcount = sym->xref_count; xc_index = sym->xref_index; /* Determine how to label symbol on concordance. */ /* XXX flag variables? */ switch( sym->type & ( DEFINED | REDEFINED )) { case UNDEFINED: fprintf( listfile, " U "); break; case REDEFINED: fprintf( listfile, " M %5d ", xreftab[xc_index] ); break; default: fprintf( listfile, " A %5d ", xreftab[xc_index] ); break; } fprintf( listfile, "%-6.6s ", sym->name ); /* Output the references, 8 numbers per line after symbol name. */ for( xc_cols = 0, xc = 1; xc < xc_refcount + 1; xc++, xc_cols++ ) { if( xc_cols >= XREF_COLUMNS ) { xc_cols = 0; page_lineno++; if( page_lineno >= LIST_LINES_PER_PAGE ) topOfForm( list_title, s_xref); list_lineno++; fprintf( listfile, "\n%5d%-19s", list_lineno, " " ); } fprintf( listfile, " %5d", xreftab[xc_index + xc] ); } fprintf( listfile, "\n" ); } /* for */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40456A", "function_addr": 4212074, "binary_name": "9fb152280bc296402481effb363baf7e69e326337ee0cc1c947861f1826f4953.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov cs:dword_40C404, 3Ch "], [4, "mov cs:dword_40C30C, 0"], [5, "mov [rbp+var_4], 0"], [6, "mov rax, cs:qword_409D80"], [7, "mov [rbp+var_18], rax"], [8, "jmp loc_4047CD"], [9, "mov rax, [rbp+var_18]"], [10, "mov eax, [rax]"], [11, "and eax, 2"], [12, "test eax, eax"], [13, "jz short loc_4045CB"], [14, "mov rdx, cs:qword_409EA8"], [15, "mov rax, [rbp+var_18]"], [16, "mov eax, [rax+10h]"], [17, "cdqe"], [18, "shl rax, 2"], [19, "add rax, rdx"], [20, "mov eax, [rax]"], [21, "test eax, eax"], [22, "jz loc_4047C3"], [23, "mov eax, cs:dword_40C30C"], [24, "add eax, 1"], [25, "mov cs:dword_40C30C, eax"], [26, "mov eax, cs:dword_40C404"], [27, "add eax, 1"], [28, "mov cs:dword_40C404, eax"], [29, "mov eax, cs:dword_40C404"], [30, "cmp eax, 3Bh "], [31, "jle short loc_404603"], [32, "mov esi, offset aCrossReference"], [33, "mov edi, offset byte_40C320"], [34, "call sub_4047E0"], [35, "mov edx, cs:dword_40C30C"], [36, "mov rax, cs:stream"], [37, "mov esi, offset a5d_0"], [38, "mov rdi, rax"], [39, "mov eax, 0"], [40, "call _fprintf"], [41, "mov rax, [rbp+var_18]"], [42, "mov eax, [rax+14h]"], [43, "mov [rbp+var_1C], eax"], [44, "mov rax, [rbp+var_18]"], [45, "mov eax, [rax+10h]"], [46, "mov [rbp+var_20], eax"], [47, "mov rax, [rbp+var_18]"], [48, "mov eax, [rax]"], [49, "and eax, 11h"], [50, "test eax, eax"], [51, "jz short loc_40464A"], [52, "cmp eax, 11h"], [53, "jz short loc_40466A"], [54, "jmp short loc_40469A"], [55, "mov rax, cs:stream"], [56, "mov rcx, rax"], [57, "mov edx, 0Bh"], [58, "mov esi, 1"], [59, "mov edi, offset aU"], [60, "call _fwrite"], [61, "jmp short loc_4046C9"], [62, "mov rdx, cs:qword_409EA8"], [63, "mov eax, [rbp+var_20]"], [64, "cdqe"], [65, "shl rax, 2"], [66, "add rax, rdx"], [67, "mov edx, [rax]"], [68, "mov rax, cs:stream"], [69, "mov esi, offset aM5d"], [70, "mov rdi, rax"], [71, "mov eax, 0"], [72, "call _fprintf"], [73, "jmp short loc_4046C9"], [74, "mov rdx, cs:qword_409EA8"], [75, "mov eax, [rbp+var_20]"], [76, "cdqe"], [77, "shl rax, 2"], [78, "add rax, rdx"], [79, "mov edx, [rax]"], [80, "mov rax, cs:stream"], [81, "mov esi, offset aA5d"], [82, "mov rdi, rax"], [83, "mov eax, 0"], [84, "call _fprintf"], [85, "nop"], [86, "mov rax, [rbp+var_18]"], [87, "lea rdx, [rax+4]"], [88, "mov rax, cs:stream"], [89, "mov esi, offset a66s"], [90, "mov rdi, rax"], [91, "mov eax, 0"], [92, "call _fprintf"], [93, "mov [rbp+var_C], 0"], [94, "mov [rbp+var_8], 1"], [95, "jmp loc_4047A1"], [96, "cmp [rbp+var_C], 7"], [97, "jle short loc_404766"], [98, "mov [rbp+var_C], 0"], [99, "mov eax, cs:dword_40C404"], [100, "add eax, 1"], [101, "mov cs:dword_40C404, eax"], [102, "mov eax, cs:dword_40C404"], [103, "cmp eax, 3Bh "], [104, "jle short loc_404733"], [105, "mov esi, offset aCrossReference"], [106, "mov edi, offset byte_40C320"], [107, "call sub_4047E0"], [108, "mov eax, cs:dword_40C30C"], [109, "add eax, 1"], [110, "mov cs:dword_40C30C, eax"], [111, "mov edx, cs:dword_40C30C"], [112, "mov rax, cs:stream"], [113, "mov ecx, offset asc_406B16"], [114, "mov esi, offset a5d19s"], [115, "mov rdi, rax"], [116, "mov eax, 0"], [117, "call _fprintf"], [118, "mov rdx, cs:qword_409EA8"], [119, "mov ecx, [rbp+var_20]"], [120, "mov eax, [rbp+var_8]"], [121, "add eax, ecx"], [122, "cdqe"], [123, "shl rax, 2"], [124, "add rax, rdx"], [125, "mov edx, [rax]"], [126, "mov rax, cs:stream"], [127, "mov esi, offset a5d_1"], [128, "mov rdi, rax"], [129, "mov eax, 0"], [130, "call _fprintf"], [131, "add [rbp+var_8], 1"], [132, "add [rbp+var_C], 1"], [133, "mov eax, [rbp+var_1C]"], [134, "cmp eax, [rbp+var_8]"], [135, "jge loc_4046FD"], [136, "mov rax, cs:stream"], [137, "mov rsi, rax"], [138, "mov edi, 0Ah"], [139, "call _fputc"], [140, "jmp short loc_4047C4"], [141, "nop"], [142, "add [rbp+var_4], 1"], [143, "add [rbp+var_18], 18h"], [144, "mov eax, cs:dword_409D88"], [145, "cmp [rbp+var_4], eax"], [146, "jl loc_40459D"], [147, "nop"], [148, "nop"], [149, "leave"], [150, "retn"]], "data_dep": [[7, 6], [9, 7], [9, 143], [10, 9], [11, 10], [12, 11], [13, 12], [15, 7], [15, 143], [16, 15], [18, 16], [19, 18], [19, 14], [20, 19], [21, 20], [22, 21], [23, 4], [23, 25], [23, 110], [24, 23], [25, 24], [26, 28], [26, 101], [26, 3], [27, 26], [28, 27], [29, 28], [30, 29], [31, 30], [35, 25], [38, 36], [41, 143], [41, 7], [42, 41], [43, 42], [44, 143], [44, 7], [45, 44], [46, 45], [47, 7], [47, 143], [48, 47], [49, 48], [50, 49], [51, 50], [52, 50], [53, 52], [56, 55], [63, 46], [65, 63], [66, 62], [66, 65], [67, 66], [70, 68], [75, 46], [77, 75], [78, 77], [78, 74], [79, 78], [82, 80], [86, 7], [86, 143], [87, 57], [87, 86], [87, 79], [87, 67], [90, 88], [96, 93], [96, 132], [97, 96], [99, 28], [99, 101], [100, 99], [101, 100], [102, 101], [103, 102], [104, 103], [108, 110], [108, 25], [109, 108], [110, 109], [111, 110], [115, 112], [119, 46], [120, 131], [120, 94], [121, 119], [121, 120], [123, 121], [124, 123], [124, 118], [125, 124], [128, 126], [131, 131], [131, 94], [132, 98], [132, 93], [132, 132], [133, 43], [134, 131], [134, 94], [134, 133], [135, 134], [137, 136], [142, 5], [142, 142], [143, 7], [143, 143], [145, 5], [145, 142], [145, 144], [146, 145], [150, 144]]}
static int r_case_special(struct SN_env * z) { int among_var; z->ket = z->c; /* [, line 116 */ if (z->c - 2 <= z->lb || (z->p[z->c - 1] != 110 && z->p[z->c - 1] != 116)) return 0; among_var = find_among_b(z, a_5, 3); /* substring, line 116 */ if (!(among_var)) return 0; z->bra = z->c; /* ], line 116 */ { int ret = r_R1(z); if (ret == 0) return 0; /* call R1, line 116 */ if (ret < 0) return ret; } switch(among_var) { case 0: return 0; case 1: { int ret = slice_from_s(z, 1, s_2); /* <-, line 117 */ if (ret < 0) return ret; } break; case 2: { int ret = slice_from_s(z, 1, s_3); /* <-, line 118 */ if (ret < 0) return ret; } break; case 3: { int ret = slice_from_s(z, 1, s_4); /* <-, line 119 */ if (ret < 0) return ret; } break; } return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_417966", "function_addr": 4290918, "binary_name": "9acf456e98009cb498ed5cac4153ab67c8dd7caf33921402739ca86e36cd0298.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov rax, [rbp+var_28]"], [5, "mov edx, [rax+8]"], [6, "mov rax, [rbp+var_28]"], [7, "mov [rax+18h], edx"], [8, "mov rax, [rbp+var_28]"], [9, "mov eax, [rax+8]"], [10, "lea edx, [rax-2]"], [11, "mov rax, [rbp+var_28]"], [12, "mov eax, [rax+10h]"], [13, "cmp edx, eax"], [14, "jle short loc_4179D1"], [15, "mov rax, [rbp+var_28]"], [16, "mov rdx, [rax]"], [17, "mov rax, [rbp+var_28]"], [18, "mov eax, [rax+8]"], [19, "cdqe"], [20, "sub rax, 1"], [21, "add rax, rdx"], [22, "movzx eax, byte ptr [rax]"], [23, "cmp al, 6Eh "], [24, "jz short loc_4179DB"], [25, "mov rax, [rbp+var_28]"], [26, "mov rdx, [rax]"], [27, "mov rax, [rbp+var_28]"], [28, "mov eax, [rax+8]"], [29, "cdqe"], [30, "sub rax, 1"], [31, "add rax, rdx"], [32, "movzx eax, byte ptr [rax]"], [33, "cmp al, 74h "], [34, "jz short loc_4179DB"], [35, "mov eax, 0"], [36, "jmp locret_417AF7"], [37, "mov rax, [rbp+var_28]"], [38, "mov edx, 3"], [39, "lea rsi, unk_447D40"], [40, "mov rdi, rax"], [41, "call sub_433800"], [42, "mov [rbp+var_4], eax"], [43, "cmp [rbp+var_4], 0"], [44, "jnz short loc_417A06"], [45, "mov eax, 0"], [46, "jmp locret_417AF7"], [47, "mov rax, [rbp+var_28]"], [48, "mov edx, [rax+8]"], [49, "mov rax, [rbp+var_28]"], [50, "mov [rax+14h], edx"], [51, "mov rax, [rbp+var_28]"], [52, "mov rdi, rax"], [53, "call sub_417417"], [54, "mov [rbp+var_8], eax"], [55, "cmp [rbp+var_8], 0"], [56, "jnz short loc_417A33"], [57, "mov eax, 0"], [58, "jmp locret_417AF7"], [59, "cmp [rbp+var_8], 0"], [60, "jns short loc_417A41"], [61, "mov eax, [rbp+var_8]"], [62, "jmp locret_417AF7"], [63, "cmp [rbp+var_4], 3"], [64, "jz short loc_417AC5"], [65, "cmp [rbp+var_4], 3"], [66, "jg loc_417AF2"], [67, "cmp [rbp+var_4], 2"], [68, "jz short loc_417A9F"], [69, "cmp [rbp+var_4], 2"], [70, "jg loc_417AF2"], [71, "cmp [rbp+var_4], 0"], [72, "jz short loc_417A72"], [73, "cmp [rbp+var_4], 1"], [74, "jz short loc_417A79"], [75, "jmp loc_417AF2"], [76, "mov eax, 0"], [77, "jmp short locret_417AF7"], [78, "mov rax, [rbp+var_28]"], [79, "lea rdx, unk_4360A6"], [80, "mov esi, 1"], [81, "mov rdi, rax"], [82, "call sub_433C7A"], [83, "mov [rbp+var_14], eax"], [84, "cmp [rbp+var_14], 0"], [85, "jns short loc_417AEB"], [86, "mov eax, [rbp+var_14]"], [87, "jmp short locret_417AF7"], [88, "mov rax, [rbp+var_28]"], [89, "lea rdx, unk_4360A7"], [90, "mov esi, 1"], [91, "mov rdi, rax"], [92, "call sub_433C7A"], [93, "mov [rbp+var_10], eax"], [94, "cmp [rbp+var_10], 0"], [95, "jns short loc_417AEE"], [96, "mov eax, [rbp+var_10]"], [97, "jmp short locret_417AF7"], [98, "mov rax, [rbp+var_28]"], [99, "lea rdx, unk_4360A8"], [100, "mov esi, 1"], [101, "mov rdi, rax"], [102, "call sub_433C7A"], [103, "mov [rbp+var_C], eax"], [104, "cmp [rbp+var_C], 0"], [105, "jns short loc_417AF1"], [106, "mov eax, [rbp+var_C]"], [107, "jmp short locret_417AF7"], [108, "nop"], [109, "jmp short loc_417AF2"], [110, "nop"], [111, "jmp short loc_417AF2"], [112, "nop"], [113, "mov eax, 1"], [114, "leave"], [115, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 5], [7, 6], [8, 3], [9, 8], [9, 7], [10, 5], [10, 7], [10, 9], [11, 3], [12, 7], [12, 11], [13, 10], [13, 12], [14, 13], [15, 3], [16, 15], [16, 7], [17, 3], [18, 17], [18, 7], [20, 18], [21, 16], [21, 20], [22, 21], [22, 7], [23, 22], [24, 23], [25, 3], [26, 7], [26, 25], [27, 3], [28, 7], [28, 27], [30, 28], [31, 26], [31, 30], [32, 7], [32, 31], [33, 32], [34, 33], [37, 3], [40, 37], [42, 41], [43, 42], [44, 43], [47, 3], [48, 47], [48, 7], [48, 50], [49, 3], [50, 49], [50, 48], [51, 3], [52, 51], [54, 53], [55, 54], [56, 55], [59, 54], [60, 59], [61, 54], [63, 42], [64, 63], [65, 42], [66, 65], [67, 42], [68, 67], [69, 42], [70, 69], [71, 42], [72, 71], [73, 42], [74, 73], [78, 3], [79, 48], [81, 78], [83, 82], [84, 83], [85, 84], [86, 83], [88, 3], [89, 48], [91, 88], [93, 92], [94, 93], [95, 94], [96, 93], [98, 3], [99, 48], [101, 98], [103, 102], [104, 103], [105, 104], [106, 103], [115, 96], [115, 57], [115, 86], [115, 61], [115, 45], [115, 113], [115, 106], [115, 35], [115, 76]]}
int parseURL(const char * url, char * hostname, unsigned short * port, char * * path, unsigned int * scope_id) { char * p1, *p2, *p3; if(!url) return 0; p1 = strstr(url, "://"); if(!p1) return 0; p1 += 3; if( (url[0]!='h') || (url[1]!='t') ||(url[2]!='t') || (url[3]!='p')) return 0; memset(hostname, 0, MAXHOSTNAMELEN + 1); if(*p1 == '[') { /* IP v6 : http://[2a00:1450:8002::6a]/path/abc */ char * scope; scope = strchr(p1, '%'); p2 = strchr(p1, ']'); if(p2 && scope && scope < p2 && scope_id) { /* parse scope */ #ifdef IF_NAMESIZE char tmp[IF_NAMESIZE]; int l; scope++; /* "%25" is just '%' in URL encoding */ if(scope[0] == '2' && scope[1] == '5') scope += 2; /* skip "25" */ l = p2 - scope; if(l >= IF_NAMESIZE) l = IF_NAMESIZE - 1; memcpy(tmp, scope, l); tmp[l] = '\0'; *scope_id = if_nametoindex(tmp); if(*scope_id == 0) { *scope_id = (unsigned int)strtoul(tmp, NULL, 10); } #else /* under windows, scope is numerical */ char tmp[8]; size_t l; scope++; /* "%25" is just '%' in URL encoding */ if(scope[0] == '2' && scope[1] == '5') scope += 2; /* skip "25" */ l = p2 - scope; if(l >= sizeof(tmp)) l = sizeof(tmp) - 1; memcpy(tmp, scope, l); tmp[l] = '\0'; *scope_id = (unsigned int)strtoul(tmp, NULL, 10); #endif } p3 = strchr(p1, '/'); if(p2 && p3) { p2++; strncpy(hostname, p1, MIN(MAXHOSTNAMELEN, (int)(p2-p1))); if(*p2 == ':') { *port = 0; p2++; while( (*p2 >= '0') && (*p2 <= '9')) { *port *= 10; *port += (unsigned short)(*p2 - '0'); p2++; } } else { *port = 80; } *path = p3; return 1; } } p2 = strchr(p1, ':'); p3 = strchr(p1, '/'); if(!p3) return 0; if(!p2 || (p2>p3)) { strncpy(hostname, p1, MIN(MAXHOSTNAMELEN, (int)(p3-p1))); *port = 80; } else { strncpy(hostname, p1, MIN(MAXHOSTNAMELEN, (int)(p2-p1))); *port = 0; p2++; while( (*p2 >= '0') && (*p2 <= '9')) { *port *= 10; *port += (unsigned short)(*p2 - '0'); p2++; } } *path = p3; return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4099CF", "function_addr": 4233679, "binary_name": "d90aaca07ffa1bc3a84ec58ad1444b3f3d20d339df099979f54c5839ac7b39ab.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+haystack], rdi"], [4, "mov [rbp+s], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_40], rcx"], [7, "cmp [rbp+haystack], 0"], [8, "jnz short loc_4099F8"], [9, "mov eax, 0"], [10, "jmp locret_409CA1"], [11, "mov rax, [rbp+haystack]"], [12, "lea rsi, asc_40DE27"], [13, "mov rdi, rax"], [14, "call _strstr"], [15, "mov [rbp+src], rax"], [16, "cmp [rbp+src], 0"], [17, "jnz short loc_409A20"], [18, "mov eax, 0"], [19, "jmp locret_409CA1"], [20, "add [rbp+src], 3"], [21, "mov rax, [rbp+haystack]"], [22, "movzx eax, byte ptr [rax]"], [23, "cmp al, 68h "], [24, "jnz short loc_409A5D"], [25, "mov rax, [rbp+haystack]"], [26, "add rax, 1"], [27, "movzx eax, byte ptr [rax]"], [28, "cmp al, 74h "], [29, "jnz short loc_409A5D"], [30, "mov rax, [rbp+haystack]"], [31, "add rax, 2"], [32, "movzx eax, byte ptr [rax]"], [33, "cmp al, 74h "], [34, "jnz short loc_409A5D"], [35, "mov rax, [rbp+haystack]"], [36, "add rax, 3"], [37, "movzx eax, byte ptr [rax]"], [38, "cmp al, 70h "], [39, "jz short loc_409A67"], [40, "mov eax, 0"], [41, "jmp locret_409CA1"], [42, "mov rax, [rbp+s]"], [43, "mov edx, 41h "], [44, "mov esi, 0"], [45, "mov rdi, rax"], [46, "call _memset"], [47, "mov rax, [rbp+src]"], [48, "movzx eax, byte ptr [rax]"], [49, "cmp al, 5Bh "], [50, "jnz loc_409B85"], [51, "mov rax, [rbp+src]"], [52, "mov esi, 5Dh "], [53, "mov rdi, rax"], [54, "call _strchr"], [55, "mov [rbp+var_8], rax"], [56, "mov rax, [rbp+src]"], [57, "mov esi, 2Fh "], [58, "mov rdi, rax"], [59, "call _strchr"], [60, "mov [rbp+var_18], rax"], [61, "cmp [rbp+var_8], 0"], [62, "jz loc_409B85"], [63, "cmp [rbp+var_18], 0"], [64, "jz loc_409B85"], [65, "add [rbp+var_8], 1"], [66, "mov rax, [rbp+var_8]"], [67, "sub rax, [rbp+src]"], [68, "mov edx, 40h "], [69, "cmp eax, 40h "], [70, "cmovg eax, edx"], [71, "movsxd rdx, eax"], [72, "mov rcx, [rbp+src]"], [73, "mov rax, [rbp+s]"], [74, "mov rsi, rcx"], [75, "mov rdi, rax"], [76, "call _strncpy"], [77, "mov rax, [rbp+var_8]"], [78, "movzx eax, byte ptr [rax]"], [79, "cmp al, 3Ah "], [80, "jnz short loc_409B67"], [81, "mov rax, [rbp+var_38]"], [82, "mov word ptr [rax], 0"], [83, "add [rbp+var_8], 1"], [84, "jmp short loc_409B4F"], [85, "mov rax, [rbp+var_38]"], [86, "movzx edx, word ptr [rax]"], [87, "mov eax, edx"], [88, "shl eax, 2"], [89, "add eax, edx"], [90, "add eax, eax"], [91, "mov edx, eax"], [92, "mov rax, [rbp+var_38]"], [93, "mov [rax], dx"], [94, "mov rax, [rbp+var_38]"], [95, "movzx edx, word ptr [rax]"], [96, "mov rax, [rbp+var_8]"], [97, "movzx eax, byte ptr [rax]"], [98, "cbw"], [99, "add eax, edx"], [100, "lea edx, [rax-30h]"], [101, "mov rax, [rbp+var_38]"], [102, "mov [rax], dx"], [103, "add [rbp+var_8], 1"], [104, "mov rax, [rbp+var_8]"], [105, "movzx eax, byte ptr [rax]"], [106, "cmp al, 2Fh "], [107, "jle short loc_409B70"], [108, "mov rax, [rbp+var_8]"], [109, "movzx eax, byte ptr [rax]"], [110, "cmp al, 39h "], [111, "jle short loc_409B15"], [112, "jmp short loc_409B70"], [113, "mov rax, [rbp+var_38]"], [114, "mov word ptr [rax], 50h "], [115, "mov rax, [rbp+var_40]"], [116, "mov rdx, [rbp+var_18]"], [117, "mov [rax], rdx"], [118, "mov eax, 1"], [119, "jmp locret_409CA1"], [120, "mov rax, [rbp+src]"], [121, "mov esi, 3Ah "], [122, "mov rdi, rax"], [123, "call _strchr"], [124, "mov [rbp+var_8], rax"], [125, "mov rax, [rbp+src]"], [126, "mov esi, 2Fh "], [127, "mov rdi, rax"], [128, "call _strchr"], [129, "mov [rbp+var_18], rax"], [130, "cmp [rbp+var_18], 0"], [131, "jnz short loc_409BC0"], [132, "mov eax, 0"], [133, "jmp locret_409CA1"], [134, "cmp [rbp+var_8], 0"], [135, "jz short loc_409BD1"], [136, "mov rax, [rbp+var_8]"], [137, "cmp rax, [rbp+var_18]"], [138, "jbe short loc_409C08"], [139, "mov rax, [rbp+var_18]"], [140, "sub rax, [rbp+src]"], [141, "mov edx, 40h "], [142, "cmp eax, 40h "], [143, "cmovg eax, edx"], [144, "movsxd rdx, eax"], [145, "mov rcx, [rbp+src]"], [146, "mov rax, [rbp+s]"], [147, "mov rsi, rcx"], [148, "mov rdi, rax"], [149, "call _strncpy"], [150, "mov rax, [rbp+var_38]"], [151, "mov word ptr [rax], 50h "], [152, "jmp loc_409C91"], [153, "mov rax, [rbp+var_8]"], [154, "sub rax, [rbp+src]"], [155, "mov edx, 40h "], [156, "cmp eax, 40h "], [157, "cmovg eax, edx"], [158, "movsxd rdx, eax"], [159, "mov rcx, [rbp+src]"], [160, "mov rax, [rbp+s]"], [161, "mov rsi, rcx"], [162, "mov rdi, rax"], [163, "call _strncpy"], [164, "mov rax, [rbp+var_38]"], [165, "mov word ptr [rax], 0"], [166, "add [rbp+var_8], 1"], [167, "jmp short loc_409C7B"], [168, "mov rax, [rbp+var_38]"], [169, "movzx edx, word ptr [rax]"], [170, "mov eax, edx"], [171, "shl eax, 2"], [172, "add eax, edx"], [173, "add eax, eax"], [174, "mov edx, eax"], [175, "mov rax, [rbp+var_38]"], [176, "mov [rax], dx"], [177, "mov rax, [rbp+var_38]"], [178, "movzx edx, word ptr [rax]"], [179, "mov rax, [rbp+var_8]"], [180, "movzx eax, byte ptr [rax]"], [181, "cbw"], [182, "add eax, edx"], [183, "lea edx, [rax-30h]"], [184, "mov rax, [rbp+var_38]"], [185, "mov [rax], dx"], [186, "add [rbp+var_8], 1"], [187, "mov rax, [rbp+var_8]"], [188, "movzx eax, byte ptr [rax]"], [189, "cmp al, 2Fh "], [190, "jle short loc_409C91"], [191, "mov rax, [rbp+var_8]"], [192, "movzx eax, byte ptr [rax]"], [193, "cmp al, 39h "], [194, "jle short loc_409C41"], [195, "mov rax, [rbp+var_40]"], [196, "mov rdx, [rbp+var_18]"], [197, "mov [rax], rdx"], [198, "mov eax, 1"], [199, "leave"], [200, "retn"]], "data_dep": [[7, 3], [8, 7], [11, 3], [13, 11], [15, 14], [16, 15], [17, 16], [20, 15], [21, 3], [22, 21], [23, 22], [24, 23], [25, 3], [26, 25], [27, 26], [28, 27], [29, 28], [30, 3], [31, 30], [32, 31], [33, 32], [34, 33], [35, 3], [36, 35], [37, 36], [38, 37], [39, 38], [42, 4], [45, 42], [47, 20], [48, 47], [49, 48], [50, 49], [51, 20], [53, 51], [55, 54], [56, 20], [58, 56], [60, 59], [61, 55], [62, 61], [63, 60], [64, 63], [65, 55], [66, 65], [67, 66], [67, 20], [69, 67], [70, 68], [70, 69], [71, 70], [72, 20], [73, 4], [74, 72], [75, 73], [77, 65], [78, 77], [79, 78], [80, 79], [81, 5], [82, 81], [83, 65], [85, 5], [86, 102], [86, 85], [86, 82], [86, 93], [87, 86], [88, 87], [89, 86], [89, 88], [90, 89], [91, 90], [92, 5], [93, 92], [93, 91], [94, 5], [95, 93], [95, 94], [96, 83], [96, 103], [97, 96], [97, 93], [99, 95], [99, 97], [100, 93], [100, 95], [100, 99], [101, 5], [102, 100], [102, 101], [103, 83], [103, 103], [104, 83], [104, 103], [105, 93], [105, 102], [105, 104], [105, 82], [106, 105], [107, 106], [108, 83], [108, 103], [109, 108], [109, 82], [109, 93], [109, 102], [110, 109], [111, 110], [113, 5], [114, 113], [115, 6], [116, 60], [117, 116], [117, 115], [120, 20], [122, 120], [124, 123], [125, 20], [127, 125], [129, 128], [130, 129], [131, 130], [134, 124], [135, 134], [136, 124], [137, 129], [137, 136], [138, 137], [139, 129], [140, 20], [140, 139], [142, 140], [143, 142], [143, 141], [144, 143], [145, 20], [146, 4], [147, 145], [148, 146], [150, 5], [151, 150], [153, 124], [154, 153], [154, 20], [156, 154], [157, 155], [157, 156], [158, 157], [159, 20], [160, 4], [161, 159], [162, 160], [164, 5], [165, 164], [166, 124], [168, 5], [169, 165], [169, 176], [169, 185], [169, 168], [170, 169], [171, 170], [172, 169], [172, 171], [173, 172], [174, 173], [175, 5], [176, 175], [176, 174], [177, 5], [178, 177], [178, 176], [179, 166], [179, 186], [180, 179], [180, 176], [182, 178], [182, 180], [183, 176], [183, 178], [183, 182], [184, 5], [185, 184], [185, 183], [186, 186], [186, 166], [187, 166], [187, 186], [188, 187], [188, 165], [188, 176], [188, 185], [189, 188], [190, 189], [191, 166], [191, 186], [192, 191], [192, 165], [192, 176], [192, 185], [193, 192], [194, 193], [195, 6], [196, 129], [197, 195], [197, 196], [200, 9], [200, 18], [200, 132], [200, 40], [200, 198], [200, 118]]}
frames_t _output_frames(frames_t avail) { frames_t frames, size; bool silence; u8_t flags = output.channels; s32_t cross_gain_in = 0, cross_gain_out = 0; s32_t *cross_ptr = NULL; s32_t gainL = output.current_replay_gain ? gain(output.gainL, output.current_replay_gain) : output.gainL; s32_t gainR = output.current_replay_gain ? gain(output.gainR, output.current_replay_gain) : output.gainR; if (output.invert) { gainL = -gainL; gainR = -gainR; } frames = _buf_used(outputbuf) / BYTES_PER_FRAME; silence = false; // start when threshold met if (output.state == OUTPUT_BUFFER && (frames * BYTES_PER_FRAME) > output.threshold * output.next_sample_rate / 10 && frames > output.start_frames) { output.state = OUTPUT_RUNNING; LOG_INFO("start buffer frames: %u", frames); wake_controller(); } // skip ahead - consume outputbuf but play nothing if (output.state == OUTPUT_SKIP_FRAMES) { if (frames > 0) { frames_t skip = min(frames, output.skip_frames); LOG_INFO("skip %u of %u frames", skip, output.skip_frames); frames -= skip; output.frames_played += skip; while (skip > 0) { frames_t cont_frames = min(skip, _buf_cont_read(outputbuf) / BYTES_PER_FRAME); skip -= cont_frames; _buf_inc_readp(outputbuf, cont_frames * BYTES_PER_FRAME); } } output.state = OUTPUT_RUNNING; } // pause frames - play silence for required frames if (output.state == OUTPUT_PAUSE_FRAMES) { LOG_INFO("pause %u frames", output.pause_frames); if (output.pause_frames == 0) { output.state = OUTPUT_RUNNING; } else { silence = true; frames = min(avail, output.pause_frames); frames = min(frames, MAX_SILENCE_FRAMES); output.pause_frames -= frames; } } // start at - play silence until jiffies reached if (output.state == OUTPUT_START_AT) { u32_t now = gettime_ms(); if (now >= output.start_at || output.start_at > now + 10000) { output.state = OUTPUT_RUNNING; } else { u32_t delta_frames = (output.start_at - now) * output.current_sample_rate / 1000; silence = true; frames = min(avail, delta_frames); frames = min(frames, MAX_SILENCE_FRAMES); } } // play silence if buffering or no frames if (output.state <= OUTPUT_BUFFER || frames == 0) { silence = true; frames = min(avail, MAX_SILENCE_FRAMES); } LOG_SDEBUG("avail: %d frames: %d silence: %d", avail, frames, silence); frames = min(frames, avail); size = frames; while (size > 0) { frames_t out_frames; frames_t cont_frames = _buf_cont_read(outputbuf) / BYTES_PER_FRAME; int wrote; if (output.track_start && !silence) { if (output.track_start == outputbuf->readp) { unsigned delay = 0; if (output.current_sample_rate != output.next_sample_rate) { delay = output.rate_delay; #if PULSEAUDIO set_sample_rate(output.next_sample_rate); #endif } IF_DSD( if (output.outfmt != output.next_fmt) { delay = output.dsd_delay; } ) frames -= size; // add silence delay in two halves, before and after track start on rate or pcm-dop change if (delay) { output.state = OUTPUT_PAUSE_FRAMES; if (!output.delay_active) { output.pause_frames = output.current_sample_rate * delay / 2000; output.delay_active = true; // first delay - don't process track start break; } else { output.pause_frames = output.next_sample_rate * delay / 2000; output.delay_active = false; // second delay - process track start } } LOG_INFO("track start sample rate: %u replay_gain: %u", output.next_sample_rate, output.next_replay_gain); output.frames_played = 0; output.track_started = true; output.track_start_time = gettime_ms(); output.current_sample_rate = output.next_sample_rate; IF_DSD( output.outfmt = output.next_fmt; ) if (output.fade == FADE_INACTIVE || output.fade_mode != FADE_CROSSFADE) { output.current_replay_gain = output.next_replay_gain; } output.track_start = NULL; break; } else if (output.track_start > outputbuf->readp) { // reduce cont_frames so we find the next track start at beginning of next chunk cont_frames = min(cont_frames, (output.track_start - outputbuf->readp) / BYTES_PER_FRAME); } } IF_DSD( if (output.outfmt != PCM) { gainL = gainR = FIXED_ONE; } ) if (output.fade && !silence) { if (output.fade == FADE_DUE) { if (output.fade_start == outputbuf->readp) { LOG_INFO("fade start reached"); output.fade = FADE_ACTIVE; } else if (output.fade_start > outputbuf->readp) { cont_frames = min(cont_frames, (output.fade_start - outputbuf->readp) / BYTES_PER_FRAME); } } if (output.fade == FADE_ACTIVE) { // find position within fade frames_t cur_f = outputbuf->readp >= output.fade_start ? (outputbuf->readp - output.fade_start) / BYTES_PER_FRAME : (outputbuf->readp + outputbuf->size - output.fade_start) / BYTES_PER_FRAME; frames_t dur_f = output.fade_end >= output.fade_start ? (output.fade_end - output.fade_start) / BYTES_PER_FRAME : (output.fade_end + outputbuf->size - output.fade_start) / BYTES_PER_FRAME; if (cur_f >= dur_f) { if (output.fade_mode == FADE_INOUT && output.fade_dir == FADE_DOWN) { LOG_INFO("fade down complete, starting fade up"); output.fade_dir = FADE_UP; output.fade_start = outputbuf->readp; output.fade_end = outputbuf->readp + dur_f * BYTES_PER_FRAME; if (output.fade_end >= outputbuf->wrap) { output.fade_end -= outputbuf->size; } cur_f = 0; } else if (output.fade_mode == FADE_CROSSFADE) { LOG_INFO("crossfade complete"); if (_buf_used(outputbuf) >= dur_f * BYTES_PER_FRAME) { _buf_inc_readp(outputbuf, dur_f * BYTES_PER_FRAME); LOG_INFO("skipped crossfaded start"); } else { LOG_WARN("unable to skip crossfaded start"); } output.fade = FADE_INACTIVE; output.current_replay_gain = output.next_replay_gain; } else { LOG_INFO("fade complete"); output.fade = FADE_INACTIVE; } } // if fade in progress set fade gain, ensure cont_frames reduced so we get to end of fade at start of chunk if (output.fade) { if (output.fade_end > outputbuf->readp) { cont_frames = min(cont_frames, (output.fade_end - outputbuf->readp) / BYTES_PER_FRAME); } if (output.fade_dir == FADE_UP || output.fade_dir == FADE_DOWN) { // fade in, in-out, out handled via altering standard gain s32_t fade_gain; if (output.fade_dir == FADE_DOWN) { cur_f = dur_f - cur_f; } fade_gain = to_gain((float)cur_f / (float)dur_f); gainL = gain(gainL, fade_gain); gainR = gain(gainR, fade_gain); if (output.invert) { gainL = -gainL; gainR = -gainR; } } if (output.fade_dir == FADE_CROSS) { // cross fade requires special treatment - performed later based on these values // support different replay gain for old and new track by retaining old value until crossfade completes if (_buf_used(outputbuf) / BYTES_PER_FRAME > dur_f + size) { cross_gain_in = to_gain((float)cur_f / (float)dur_f); cross_gain_out = FIXED_ONE - cross_gain_in; if (output.current_replay_gain) { cross_gain_out = gain(cross_gain_out, output.current_replay_gain); } if (output.next_replay_gain) { cross_gain_in = gain(cross_gain_in, output.next_replay_gain); } gainL = output.gainL; gainR = output.gainR; if (output.invert) { gainL = -gainL; gainR = -gainR; } cross_ptr = (s32_t *)(output.fade_end + cur_f * BYTES_PER_FRAME); } else { LOG_INFO("unable to continue crossfade - too few samples"); output.fade = FADE_INACTIVE; } } } } } out_frames = !silence ? min(size, cont_frames) : size; IF_DSD( if (output.outfmt != PCM) { flags = 0; } ) wrote = output.write_cb(out_frames, silence, gainL, gainR, flags, cross_gain_in, cross_gain_out, &cross_ptr); if (wrote <= 0) { frames -= size; break; } else { out_frames = (frames_t)wrote; } size -= out_frames; _vis_export(outputbuf, &output, out_frames, silence); if (!silence) { _buf_inc_readp(outputbuf, out_frames * BYTES_PER_FRAME); output.frames_played += out_frames; } } LOG_SDEBUG("wrote %u frames", frames); return frames; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B346", "function_addr": 4240198, "binary_name": "1ddbab108cd0d70a91ae4b5bb08eed255eb7cd1972e06624c62bfb405562abae.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 70h"], [5, "mov [rbp+var_74], edi"], [6, "mov rax, offset unk_423800"], [7, "movzx eax, byte ptr [rax+8]"], [8, "mov [rbp+var_3D], al"], [9, "mov [rbp+var_20], 0"], [10, "mov [rbp+var_24], 0"], [11, "mov [rbp+var_68], 0"], [12, "mov rax, offset unk_423800"], [13, "mov eax, [rax+0A4h]"], [14, "test eax, eax"], [15, "jz short loc_40B3B0"], [16, "mov rax, offset unk_423800"], [17, "mov eax, [rax+0A4h]"], [18, "mov edx, eax"], [19, "mov rax, offset unk_423800"], [20, "mov eax, [rax+0B8h]"], [21, "mov esi, edx"], [22, "mov edi, eax"], [23, "call sub_410726"], [24, "jmp short loc_40B3BD"], [25, "mov rax, offset unk_423800"], [26, "mov eax, [rax+0B8h]"], [27, "mov [rbp+var_28], eax"], [28, "mov rax, offset unk_423800"], [29, "mov eax, [rax+0A4h]"], [30, "test eax, eax"], [31, "jz short loc_40B3F8"], [32, "mov rax, offset unk_423800"], [33, "mov eax, [rax+0A4h]"], [34, "mov edx, eax"], [35, "mov rax, offset unk_423800"], [36, "mov eax, [rax+0BCh]"], [37, "mov esi, edx"], [38, "mov edi, eax"], [39, "call sub_410726"], [40, "jmp short loc_40B405"], [41, "mov rax, offset unk_423800"], [42, "mov eax, [rax+0BCh]"], [43, "mov [rbp+var_2C], eax"], [44, "mov rax, offset unk_423800"], [45, "movzx eax, byte ptr [rax+0C0h]"], [46, "test al, al"], [47, "jz short loc_40B420"], [48, "neg [rbp+var_28]"], [49, "neg [rbp+var_2C]"], [50, "mov rax, offset off_4205B0"], [51, "mov rax, [rax]"], [52, "mov rdi, rax"], [53, "call sub_408AB2"], [54, "shr eax, 3"], [55, "mov [rbp+var_14], eax"], [56, "mov [rbp+var_19], 0"], [57, "mov rax, offset unk_423800"], [58, "mov eax, [rax]"], [59, "cmp eax, 1"], [60, "jnz loc_40B4E2"], [61, "mov eax, [rbp+var_14]"], [62, "lea ecx, ds:0[rax*8]"], [63, "mov rax, offset unk_423800"], [64, "mov edx, [rax+0C8h]"], [65, "mov rax, offset unk_423800"], [66, "mov eax, [rax+0ACh]"], [67, "imul eax, edx"], [68, "mov edx, eax"], [69, "mov eax, 0CCCCCCCDh"], [70, "imul rax, rdx"], [71, "shr rax, 20h"], [72, "shr eax, 3"], [73, "cmp ecx, eax"], [74, "jbe short loc_40B4E2"], [75, "mov rax, offset unk_423800"], [76, "mov eax, [rax+30h]"], [77, "cmp [rbp+var_14], eax"], [78, "jbe short loc_40B4E2"], [79, "mov rax, offset unk_423800"], [80, "mov dword ptr [rax], 2"], [81, "mov eax, cs:dword_422CA4"], [82, "cmp eax, 1"], [83, "jbe short loc_40B4DD"], [84, "call sub_40A8DB"], [85, "mov edx, [rbp+var_14]"], [86, "mov r8d, edx"], [87, "mov ecx, 41h "], [88, "lea rdx, aOutputFrames"], [89, "mov rsi, rax"], [90, "lea rdi, aSSDStartBuffer"], [91, "mov eax, 0"], [92, "call sub_40A95A"], [93, "call sub_408108"], [94, "mov rax, offset unk_423800"], [95, "mov eax, [rax]"], [96, "cmp eax, 4"], [97, "jnz loc_40B5EA"], [98, "cmp [rbp+var_14], 0"], [99, "jz loc_40B5DD"], [100, "mov rax, offset unk_423800"], [101, "mov eax, [rax+0A8h]"], [102, "cmp [rbp+var_14], eax"], [103, "cmovbe eax, [rbp+var_14]"], [104, "mov [rbp+var_30], eax"], [105, "mov eax, cs:dword_422CA4"], [106, "cmp eax, 1"], [107, "jbe short loc_40B55B"], [108, "mov rax, offset unk_423800"], [109, "mov ebx, [rax+0A8h]"], [110, "call sub_40A8DB"], [111, "mov edx, [rbp+var_30]"], [112, "mov r9d, ebx"], [113, "mov r8d, edx"], [114, "mov ecx, 49h "], [115, "lea rdx, aOutputFrames"], [116, "mov rsi, rax"], [117, "lea rdi, aSSDSkipUOfUFra"], [118, "mov eax, 0"], [119, "call sub_40A95A"], [120, "mov eax, [rbp+var_30]"], [121, "sub [rbp+var_14], eax"], [122, "mov rax, offset unk_423800"], [123, "mov edx, [rax+34h]"], [124, "mov eax, [rbp+var_30]"], [125, "add edx, eax"], [126, "mov rax, offset unk_423800"], [127, "mov [rax+34h], edx"], [128, "jmp short loc_40B5D7"], [129, "mov rax, offset off_4205B0"], [130, "mov rax, [rax]"], [131, "mov rdi, rax"], [132, "call sub_408B41"], [133, "shr eax, 3"], [134, "cmp [rbp+var_30], eax"], [135, "jb short loc_40B5AD"], [136, "mov rax, offset off_4205B0"], [137, "mov rax, [rax]"], [138, "mov rdi, rax"], [139, "call sub_408B41"], [140, "shr eax, 3"], [141, "jmp short loc_40B5B0"], [142, "mov eax, [rbp+var_30]"], [143, "mov [rbp+var_44], eax"], [144, "mov eax, [rbp+var_44]"], [145, "sub [rbp+var_30], eax"], [146, "mov eax, [rbp+var_44]"], [147, "lea edx, ds:0[rax*8]"], [148, "mov rax, offset off_4205B0"], [149, "mov rax, [rax]"], [150, "mov esi, edx"], [151, "mov rdi, rax"], [152, "call sub_408BDB"], [153, "cmp [rbp+var_30], 0"], [154, "jnz short loc_40B57C"], [155, "mov rax, offset unk_423800"], [156, "mov dword ptr [rax], 2"], [157, "mov rax, offset unk_423800"], [158, "mov eax, [rax]"], [159, "cmp eax, 3"], [160, "jnz loc_40B6A9"], [161, "mov eax, cs:dword_422CA4"], [162, "cmp eax, 1"], [163, "jbe short loc_40B63C"], [164, "mov rax, offset unk_423800"], [165, "mov ebx, [rax+0A8h]"], [166, "call sub_40A8DB"], [167, "mov r8d, ebx"], [168, "mov ecx, 57h "], [169, "lea rdx, aOutputFrames"], [170, "mov rsi, rax"], [171, "lea rdi, aSSDPauseUFrame"], [172, "mov eax, 0"], [173, "call sub_40A95A"], [174, "mov rax, offset unk_423800"], [175, "mov eax, [rax+0A8h]"], [176, "test eax, eax"], [177, "jnz short loc_40B65C"], [178, "mov rax, offset unk_423800"], [179, "mov dword ptr [rax], 2"], [180, "jmp short loc_40B6A9"], [181, "mov [rbp+var_19], 1"], [182, "mov rax, offset unk_423800"], [183, "mov eax, [rax+0A8h]"], [184, "cmp [rbp+var_74], eax"], [185, "cmovbe eax, [rbp+var_74]"], [186, "mov [rbp+var_14], eax"], [187, "mov eax, 800h"], [188, "cmp [rbp+var_14], 800h"], [189, "cmovbe eax, [rbp+var_14]"], [190, "mov [rbp+var_14], eax"], [191, "mov rax, offset unk_423800"], [192, "mov eax, [rax+0A8h]"], [193, "sub eax, [rbp+var_14]"], [194, "mov edx, eax"], [195, "mov rax, offset unk_423800"], [196, "mov [rax+0A8h], edx"], [197, "mov rax, offset unk_423800"], [198, "mov eax, [rax]"], [199, "cmp eax, 5"], [200, "jnz loc_40B754"], [201, "call sub_40AABF"], [202, "mov [rbp+var_48], eax"], [203, "mov rax, offset unk_423800"], [204, "mov eax, [rax+0A8h]"], [205, "cmp [rbp+var_48], eax"], [206, "jnb short loc_40B6EF"], [207, "mov rax, offset unk_423800"], [208, "mov eax, [rax+0A8h]"], [209, "mov edx, [rbp+var_48]"], [210, "add edx, 2710h"], [211, "cmp eax, edx"], [212, "jbe short loc_40B6FE"], [213, "mov rax, offset unk_423800"], [214, "mov dword ptr [rax], 2"], [215, "jmp short loc_40B754"], [216, "mov rax, offset unk_423800"], [217, "mov eax, [rax+0A8h]"], [218, "sub eax, [rbp+var_48]"], [219, "mov edx, eax"], [220, "mov rax, offset unk_423800"], [221, "mov eax, [rax+3Ch]"], [222, "imul eax, edx"], [223, "mov eax, eax"], [224, "imul rax, 10624DD3h"], [225, "shr rax, 20h"], [226, "shr eax, 6"], [227, "mov [rbp+var_4C], eax"], [228, "mov [rbp+var_19], 1"], [229, "mov eax, [rbp+var_74]"], [230, "cmp [rbp+var_4C], eax"], [231, "cmovbe eax, [rbp+var_4C]"], [232, "mov [rbp+var_14], eax"], [233, "mov eax, 800h"], [234, "cmp [rbp+var_14], 800h"], [235, "cmovbe eax, [rbp+var_14]"], [236, "mov [rbp+var_14], eax"], [237, "mov rax, offset unk_423800"], [238, "mov eax, [rax]"], [239, "cmp eax, 1"], [240, "jle short loc_40B768"], [241, "cmp [rbp+var_14], 0"], [242, "jnz short loc_40B77F"], [243, "mov [rbp+var_19], 1"], [244, "mov eax, 800h"], [245, "cmp [rbp+var_74], 800h"], [246, "cmovbe eax, [rbp+var_74]"], [247, "mov [rbp+var_14], eax"], [248, "mov eax, cs:dword_422CA4"], [249, "cmp eax, 3"], [250, "jbe short loc_40B7C8"], [251, "movzx ebx, [rbp+var_19]"], [252, "call sub_40A8DB"], [253, "mov ecx, [rbp+var_14]"], [254, "mov edx, [rbp+var_74]"], [255, "sub rsp, 8"], [256, "push rbx"], [257, "mov r9d, ecx"], [258, "mov r8d, edx"], [259, "mov ecx, 75h "], [260, "lea rdx, aOutputFrames"], [261, "mov rsi, rax"], [262, "lea rdi, aSSDAvailDFrame"], [263, "mov eax, 0"], [264, "call sub_40A95A"], [265, "add rsp, 10h"], [266, "mov eax, [rbp+var_14]"], [267, "cmp [rbp+var_74], eax"], [268, "cmovbe eax, [rbp+var_74]"], [269, "mov [rbp+var_14], eax"], [270, "mov eax, [rbp+var_14]"], [271, "mov [rbp+var_18], eax"], [272, "jmp loc_40C2D9"], [273, "mov rax, offset off_4205B0"], [274, "mov rax, [rax]"], [275, "mov rdi, rax"], [276, "call sub_408B41"], [277, "shr eax, 3"], [278, "mov [rbp+var_34], eax"], [279, "mov rax, offset unk_423800"], [280, "mov rax, [rax+0B0h]"], [281, "test rax, rax"], [282, "jz loc_40BA6E"], [283, "movzx eax, [rbp+var_19]"], [284, "xor eax, 1"], [285, "test al, al"], [286, "jz loc_40BA6E"], [287, "mov rax, offset unk_423800"], [288, "mov rdx, [rax+0B0h]"], [289, "mov rax, offset off_4205B0"], [290, "mov rax, [rax]"], [291, "mov rax, [rax+8]"], [292, "cmp rdx, rax"], [293, "jnz loc_40BA0C"], [294, "mov [rbp+var_38], 0"], [295, "mov rax, offset unk_423800"], [296, "mov edx, [rax+3Ch]"], [297, "mov rax, offset unk_423800"], [298, "mov eax, [rax+0ACh]"], [299, "cmp edx, eax"], [300, "jz short loc_40B875"], [301, "mov rax, offset unk_423800"], [302, "mov eax, [rax+0ECh]"], [303, "mov [rbp+var_38], eax"], [304, "mov eax, [rbp+var_18]"], [305, "sub [rbp+var_14], eax"], [306, "cmp [rbp+var_38], 0"], [307, "jz loc_40B925"], [308, "mov rax, offset unk_423800"], [309, "mov dword ptr [rax], 3"], [310, "mov rax, offset unk_423800"], [311, "movzx eax, byte ptr [rax+0F0h]"], [312, "xor eax, 1"], [313, "test al, al"], [314, "jz short loc_40B8E7"], [315, "mov rax, offset unk_423800"], [316, "mov eax, [rax+3Ch]"], [317, "imul eax, [rbp+var_38]"], [318, "mov eax, eax"], [319, "imul rax, 10624DD3h"], [320, "shr rax, 20h"], [321, "mov edx, eax"], [322, "shr edx, 7"], [323, "mov rax, offset unk_423800"], [324, "mov [rax+0A8h], edx"], [325, "mov rax, offset unk_423800"], [326, "mov byte ptr [rax+0F0h], 1"], [327, "jmp loc_40C2E3"], [328, "mov rax, offset unk_423800"], [329, "mov eax, [rax+0ACh]"], [330, "imul eax, [rbp+var_38]"], [331, "mov eax, eax"], [332, "imul rax, 10624DD3h"], [333, "shr rax, 20h"], [334, "mov edx, eax"], [335, "shr edx, 7"], [336, "mov rax, offset unk_423800"], [337, "mov [rax+0A8h], edx"], [338, "mov rax, offset unk_423800"], [339, "mov byte ptr [rax+0F0h], 0"], [340, "mov eax, cs:dword_422CA4"], [341, "cmp eax, 1"], [342, "jbe short loc_40B976"], [343, "mov rax, offset unk_423800"], [344, "mov r12d, [rax+0C4h]"], [345, "mov rax, offset unk_423800"], [346, "mov ebx, [rax+0ACh]"], [347, "call sub_40A8DB"], [348, "mov r9d, r12d"], [349, "mov r8d, ebx"], [350, "mov ecx, 99h"], [351, "lea rdx, aOutputFrames"], [352, "mov rsi, rax"], [353, "lea rdi, aSSDTrackStartS"], [354, "mov eax, 0"], [355, "call sub_40A95A"], [356, "mov rax, offset unk_423800"], [357, "mov dword ptr [rax+34h], 0"], [358, "mov rax, offset unk_423800"], [359, "mov byte ptr [rax+20h], 1"], [360, "call sub_40AABF"], [361, "mov rdx, offset unk_423800"], [362, "mov [rdx+0A0h], eax"], [363, "mov rax, offset unk_423800"], [364, "mov edx, [rax+0ACh]"], [365, "mov rax, offset unk_423800"], [366, "mov [rax+3Ch], edx"], [367, "mov rax, offset unk_423800"], [368, "mov eax, [rax+0CCh]"], [369, "test eax, eax"], [370, "jz short loc_40B9DB"], [371, "mov rax, offset unk_423800"], [372, "mov eax, [rax+0E4h]"], [373, "cmp eax, 1"], [374, "jz short loc_40B9F5"], [375, "mov rax, offset unk_423800"], [376, "mov edx, [rax+0C4h]"], [377, "mov rax, offset unk_423800"], [378, "mov [rax+0A4h], edx"], [379, "mov rax, offset unk_423800"], [380, "mov qword ptr [rax+0B0h], 0"], [381, "jmp loc_40C2E3"], [382, "mov rax, offset unk_423800"], [383, "mov rdx, [rax+0B0h]"], [384, "mov rax, offset off_4205B0"], [385, "mov rax, [rax]"], [386, "mov rax, [rax+8]"], [387, "cmp rdx, rax"], [388, "jbe short loc_40BA6E"], [389, "mov rax, offset unk_423800"], [390, "mov rdx, [rax+0B0h]"], [391, "mov rax, offset off_4205B0"], [392, "mov rax, [rax]"], [393, "mov rcx, [rax+8]"], [394, "mov rax, rdx"], [395, "sub rax, rcx"], [396, "lea rdx, [rax+7]"], [397, "test rax, rax"], [398, "cmovs rax, rdx"], [399, "sar rax, 3"], [400, "mov rdx, rax"], [401, "mov eax, [rbp+var_34]"], [402, "cmp rdx, rax"], [403, "cmovle rax, rdx"], [404, "mov [rbp+var_34], eax"], [405, "mov rax, offset unk_423800"], [406, "mov eax, [rax+0CCh]"], [407, "test eax, eax"], [408, "jz loc_40C22A"], [409, "movzx eax, [rbp+var_19]"], [410, "xor eax, 1"], [411, "test al, al"], [412, "jz loc_40C22A"], [413, "mov rax, offset unk_423800"], [414, "mov eax, [rax+0CCh]"], [415, "cmp eax, 1"], [416, "jnz loc_40BB6E"], [417, "mov rax, offset unk_423800"], [418, "mov rdx, [rax+0D0h]"], [419, "mov rax, offset off_4205B0"], [420, "mov rax, [rax]"], [421, "mov rax, [rax+8]"], [422, "cmp rdx, rax"], [423, "jnz short loc_40BB0C"], [424, "mov eax, cs:dword_422CA4"], [425, "cmp eax, 1"], [426, "jbe short loc_40BAF9"], [427, "call sub_40A8DB"], [428, "mov ecx, 0B5h"], [429, "lea rdx, aOutputFrames"], [430, "mov rsi, rax"], [431, "lea rdi, aSSDFadeStartRe"], [432, "mov eax, 0"], [433, "call sub_40A95A"], [434, "mov rax, offset unk_423800"], [435, "mov dword ptr [rax+0CCh], 2"], [436, "jmp short loc_40BB6E"], [437, "mov rax, offset unk_423800"], [438, "mov rdx, [rax+0D0h]"], [439, "mov rax, offset off_4205B0"], [440, "mov rax, [rax]"], [441, "mov rax, [rax+8]"], [442, "cmp rdx, rax"], [443, "jbe short loc_40BB6E"], [444, "mov rax, offset unk_423800"], [445, "mov rdx, [rax+0D0h]"], [446, "mov rax, offset off_4205B0"], [447, "mov rax, [rax]"], [448, "mov rcx, [rax+8]"], [449, "mov rax, rdx"], [450, "sub rax, rcx"], [451, "lea rdx, [rax+7]"], [452, "test rax, rax"], [453, "cmovs rax, rdx"], [454, "sar rax, 3"], [455, "mov rdx, rax"], [456, "mov eax, [rbp+var_34]"], [457, "cmp rdx, rax"], [458, "cmovle rax, rdx"], [459, "mov [rbp+var_34], eax"], [460, "mov rax, offset unk_423800"], [461, "mov eax, [rax+0CCh]"], [462, "cmp eax, 2"], [463, "jnz loc_40C22A"], [464, "mov rax, offset off_4205B0"], [465, "mov rax, [rax]"], [466, "mov rdx, [rax+8]"], [467, "mov rax, offset unk_423800"], [468, "mov rax, [rax+0D0h]"], [469, "cmp rdx, rax"], [470, "jb short loc_40BBD8"], [471, "mov rax, offset off_4205B0"], [472, "mov rax, [rax]"], [473, "mov rdx, [rax+8]"], [474, "mov rax, offset unk_423800"], [475, "mov rcx, [rax+0D0h]"], [476, "mov rax, rdx"], [477, "sub rax, rcx"], [478, "lea rdx, [rax+7]"], [479, "test rax, rax"], [480, "cmovs rax, rdx"], [481, "sar rax, 3"], [482, "jmp short loc_40BC1A"], [483, "mov rax, offset off_4205B0"], [484, "mov rax, [rax]"], [485, "mov rdx, [rax+8]"], [486, "mov rax, offset off_4205B0"], [487, "mov rax, [rax]"], [488, "mov rax, [rax+20h]"], [489, "add rdx, rax"], [490, "mov rax, offset unk_423800"], [491, "mov rcx, [rax+0D0h]"], [492, "mov rax, rdx"], [493, "sub rax, rcx"], [494, "lea rdx, [rax+7]"], [495, "test rax, rax"], [496, "cmovs rax, rdx"], [497, "sar rax, 3"], [498, "mov [rbp+var_3C], eax"], [499, "mov rax, offset unk_423800"], [500, "mov rdx, [rax+0D8h]"], [501, "mov rax, offset unk_423800"], [502, "mov rax, [rax+0D0h]"], [503, "cmp rdx, rax"], [504, "jb short loc_40BC71"], [505, "mov rax, offset unk_423800"], [506, "mov rdx, [rax+0D8h]"], [507, "mov rax, offset unk_423800"], [508, "mov rcx, [rax+0D0h]"], [509, "mov rax, rdx"], [510, "sub rax, rcx"], [511, "lea rdx, [rax+7]"], [512, "test rax, rax"], [513, "cmovs rax, rdx"], [514, "sar rax, 3"], [515, "jmp short loc_40BCB3"], [516, "mov rax, offset unk_423800"], [517, "mov rdx, [rax+0D8h]"], [518, "mov rax, offset off_4205B0"], [519, "mov rax, [rax]"], [520, "mov rax, [rax+20h]"], [521, "add rdx, rax"], [522, "mov rax, offset unk_423800"], [523, "mov rcx, [rax+0D0h]"], [524, "mov rax, rdx"], [525, "sub rax, rcx"], [526, "lea rdx, [rax+7]"], [527, "test rax, rax"], [528, "cmovs rax, rdx"], [529, "sar rax, 3"], [530, "mov [rbp+var_50], eax"], [531, "mov eax, [rbp+var_3C]"], [532, "cmp eax, [rbp+var_50]"], [533, "jb loc_40BF1E"], [534, "mov rax, offset unk_423800"], [535, "mov eax, [rax+0E4h]"], [536, "cmp eax, 4"], [537, "jnz loc_40BDCF"], [538, "mov rax, offset unk_423800"], [539, "mov eax, [rax+0E0h]"], [540, "cmp eax, 2"], [541, "jnz loc_40BDCF"], [542, "mov eax, cs:dword_422CA4"], [543, "cmp eax, 1"], [544, "jbe short loc_40BD1E"], [545, "call sub_40A8DB"], [546, "mov ecx, 0C3h"], [547, "lea rdx, aOutputFrames"], [548, "mov rsi, rax"], [549, "lea rdi, aSSDFadeDownCom"], [550, "mov eax, 0"], [551, "call sub_40A95A"], [552, "mov rax, offset unk_423800"], [553, "mov dword ptr [rax+0E0h], 1"], [554, "mov rax, offset off_4205B0"], [555, "mov rax, [rax]"], [556, "mov rdx, [rax+8]"], [557, "mov rax, offset unk_423800"], [558, "mov [rax+0D0h], rdx"], [559, "mov rax, offset off_4205B0"], [560, "mov rax, [rax]"], [561, "mov rdx, [rax+8]"], [562, "mov eax, [rbp+var_50]"], [563, "shl eax, 3"], [564, "mov eax, eax"], [565, "add rdx, rax"], [566, "mov rax, offset unk_423800"], [567, "mov [rax+0D8h], rdx"], [568, "mov rax, offset unk_423800"], [569, "mov rdx, [rax+0D8h]"], [570, "mov rax, offset off_4205B0"], [571, "mov rax, [rax]"], [572, "mov rax, [rax+18h]"], [573, "cmp rdx, rax"], [574, "jb short loc_40BDC3"], [575, "mov rax, offset unk_423800"], [576, "mov rdx, [rax+0D8h]"], [577, "mov rax, offset off_4205B0"], [578, "mov rax, [rax]"], [579, "mov rax, [rax+20h]"], [580, "neg rax"], [581, "add rdx, rax"], [582, "mov rax, offset unk_423800"], [583, "mov [rax+0D8h], rdx"], [584, "mov [rbp+var_3C], 0"], [585, "jmp loc_40BF1E"], [586, "mov rax, offset unk_423800"], [587, "mov eax, [rax+0E4h]"], [588, "cmp eax, 1"], [589, "jnz loc_40BEDD"], [590, "mov eax, cs:dword_422CA4"], [591, "cmp eax, 1"], [592, "jbe short loc_40BE15"], [593, "call sub_40A8DB"], [594, "mov ecx, 0CCh"], [595, "lea rdx, aOutputFrames"], [596, "mov rsi, rax"], [597, "lea rdi, aSSDCrossfadeCo"], [598, "mov eax, 0"], [599, "call sub_40A95A"], [600, "mov rax, offset off_4205B0"], [601, "mov rax, [rax]"], [602, "mov rdi, rax"], [603, "call sub_408AB2"], [604, "mov edx, [rbp+var_50]"], [605, "shl edx, 3"], [606, "cmp eax, edx"], [607, "jb short loc_40BE81"], [608, "mov eax, [rbp+var_50]"], [609, "lea edx, ds:0[rax*8]"], [610, "mov rax, offset off_4205B0"], [611, "mov rax, [rax]"], [612, "mov esi, edx"], [613, "mov rdi, rax"], [614, "call sub_408BDB"], [615, "mov eax, cs:dword_422CA4"], [616, "cmp eax, 1"], [617, "jbe short loc_40BEB0"], [618, "call sub_40A8DB"], [619, "mov ecx, 0CFh"], [620, "lea rdx, aOutputFrames"], [621, "mov rsi, rax"], [622, "lea rdi, aSSDSkippedCros"], [623, "mov eax, 0"], [624, "call sub_40A95A"], [625, "jmp short loc_40BEB0"], [626, "mov eax, cs:dword_422CA4"], [627, "test eax, eax"], [628, "jz short loc_40BEB0"], [629, "call sub_40A8DB"], [630, "mov ecx, 0D1h"], [631, "lea rdx, aOutputFrames"], [632, "mov rsi, rax"], [633, "lea rdi, aSSDUnableToSki"], [634, "mov eax, 0"], [635, "call sub_40A95A"], [636, "mov rax, offset unk_423800"], [637, "mov dword ptr [rax+0CCh], 0"], [638, "mov rax, offset unk_423800"], [639, "mov edx, [rax+0C4h]"], [640, "mov rax, offset unk_423800"], [641, "mov [rax+0A4h], edx"], [642, "jmp short loc_40BF1E"], [643, "mov eax, cs:dword_422CA4"], [644, "cmp eax, 1"], [645, "jbe short loc_40BF0D"], [646, "call sub_40A8DB"], [647, "mov ecx, 0D6h"], [648, "lea rdx, aOutputFrames"], [649, "mov rsi, rax"], [650, "lea rdi, aSSDFadeComplet"], [651, "mov eax, 0"], [652, "call sub_40A95A"], [653, "mov rax, offset unk_423800"], [654, "mov dword ptr [rax+0CCh], 0"], [655, "mov rax, offset unk_423800"], [656, "mov eax, [rax+0CCh]"], [657, "test eax, eax"], [658, "jz loc_40C22A"], [659, "mov rax, offset unk_423800"], [660, "mov rdx, [rax+0D8h]"], [661, "mov rax, offset off_4205B0"], [662, "mov rax, [rax]"], [663, "mov rax, [rax+8]"], [664, "cmp rdx, rax"], [665, "jbe short loc_40BF95"], [666, "mov rax, offset unk_423800"], [667, "mov rdx, [rax+0D8h]"], [668, "mov rax, offset off_4205B0"], [669, "mov rax, [rax]"], [670, "mov rcx, [rax+8]"], [671, "mov rax, rdx"], [672, "sub rax, rcx"], [673, "lea rdx, [rax+7]"], [674, "test rax, rax"], [675, "cmovs rax, rdx"], [676, "sar rax, 3"], [677, "mov rdx, rax"], [678, "mov eax, [rbp+var_34]"], [679, "cmp rdx, rax"], [680, "cmovle rax, rdx"], [681, "mov [rbp+var_34], eax"], [682, "mov rax, offset unk_423800"], [683, "mov eax, [rax+0E0h]"], [684, "cmp eax, 1"], [685, "jz short loc_40BFBD"], [686, "mov rax, offset unk_423800"], [687, "mov eax, [rax+0E0h]"], [688, "cmp eax, 2"], [689, "jnz loc_40C080"], [690, "mov rax, offset unk_423800"], [691, "mov eax, [rax+0E0h]"], [692, "cmp eax, 2"], [693, "jnz short loc_40BFD8"], [694, "mov eax, [rbp+var_50]"], [695, "sub eax, [rbp+var_3C]"], [696, "mov [rbp+var_3C], eax"], [697, "mov eax, [rbp+var_3C]"], [698, "test rax, rax"], [699, "js short loc_40BFEB"], [700, "pxor xmm0, xmm0"], [701, "cvtsi2ss xmm0, rax"], [702, "jmp short loc_40C004"], [703, "mov rdx, rax"], [704, "shr rdx, 1"], [705, "and eax, 1"], [706, "or rdx, rax"], [707, "pxor xmm0, xmm0"], [708, "cvtsi2ss xmm0, rdx"], [709, "addss xmm0, xmm0"], [710, "mov eax, [rbp+var_50]"], [711, "test rax, rax"], [712, "js short loc_40C017"], [713, "pxor xmm1, xmm1"], [714, "cvtsi2ss xmm1, rax"], [715, "jmp short loc_40C030"], [716, "mov rdx, rax"], [717, "shr rdx, 1"], [718, "and eax, 1"], [719, "or rdx, rax"], [720, "pxor xmm1, xmm1"], [721, "cvtsi2ss xmm1, rdx"], [722, "addss xmm1, xmm1"], [723, "divss xmm0, xmm1"], [724, "movd eax, xmm0"], [725, "movd xmm0, eax"], [726, "call sub_410789"], [727, "mov [rbp+var_54], eax"], [728, "mov edx, [rbp+var_54]"], [729, "mov eax, [rbp+var_28]"], [730, "mov esi, edx"], [731, "mov edi, eax"], [732, "call sub_410726"], [733, "mov [rbp+var_28], eax"], [734, "mov edx, [rbp+var_54]"], [735, "mov eax, [rbp+var_2C]"], [736, "mov esi, edx"], [737, "mov edi, eax"], [738, "call sub_410726"], [739, "mov [rbp+var_2C], eax"], [740, "mov rax, offset unk_423800"], [741, "movzx eax, byte ptr [rax+0C0h]"], [742, "test al, al"], [743, "jz short loc_40C080"], [744, "neg [rbp+var_28]"], [745, "neg [rbp+var_2C]"], [746, "mov rax, offset unk_423800"], [747, "mov eax, [rax+0E0h]"], [748, "cmp eax, 3"], [749, "jnz loc_40C22A"], [750, "mov rax, offset off_4205B0"], [751, "mov rax, [rax]"], [752, "mov rdi, rax"], [753, "call sub_408AB2"], [754, "shr eax, 3"], [755, "mov edx, eax"], [756, "mov ecx, [rbp+var_50]"], [757, "mov eax, [rbp+var_18]"], [758, "add eax, ecx"], [759, "cmp edx, eax"], [760, "jbe loc_40C1E9"], [761, "mov eax, [rbp+var_3C]"], [762, "test rax, rax"], [763, "js short loc_40C0D0"], [764, "pxor xmm0, xmm0"], [765, "cvtsi2ss xmm0, rax"], [766, "jmp short loc_40C0E9"], [767, "mov rdx, rax"], [768, "shr rdx, 1"], [769, "and eax, 1"], [770, "or rdx, rax"], [771, "pxor xmm0, xmm0"], [772, "cvtsi2ss xmm0, rdx"], [773, "addss xmm0, xmm0"], [774, "mov eax, [rbp+var_50]"], [775, "test rax, rax"], [776, "js short loc_40C0FC"], [777, "pxor xmm1, xmm1"], [778, "cvtsi2ss xmm1, rax"], [779, "jmp short loc_40C115"], [780, "mov rdx, rax"], [781, "shr rdx, 1"], [782, "and eax, 1"], [783, "or rdx, rax"], [784, "pxor xmm1, xmm1"], [785, "cvtsi2ss xmm1, rdx"], [786, "addss xmm1, xmm1"], [787, "divss xmm0, xmm1"], [788, "movd eax, xmm0"], [789, "movd xmm0, eax"], [790, "call sub_410789"], [791, "mov [rbp+var_20], eax"], [792, "mov eax, 10000h"], [793, "sub eax, [rbp+var_20]"], [794, "mov [rbp+var_24], eax"], [795, "mov rax, offset unk_423800"], [796, "mov eax, [rax+0A4h]"], [797, "test eax, eax"], [798, "jz short loc_40C163"], [799, "mov rax, offset unk_423800"], [800, "mov eax, [rax+0A4h]"], [801, "mov edx, eax"], [802, "mov eax, [rbp+var_24]"], [803, "mov esi, edx"], [804, "mov edi, eax"], [805, "call sub_410726"], [806, "mov [rbp+var_24], eax"], [807, "mov rax, offset unk_423800"], [808, "mov eax, [rax+0C4h]"], [809, "test eax, eax"], [810, "jz short loc_40C192"], [811, "mov rax, offset unk_423800"], [812, "mov eax, [rax+0C4h]"], [813, "mov edx, eax"], [814, "mov eax, [rbp+var_20]"], [815, "mov esi, edx"], [816, "mov edi, eax"], [817, "call sub_410726"], [818, "mov [rbp+var_20], eax"], [819, "mov rax, offset unk_423800"], [820, "mov eax, [rax+0B8h]"], [821, "mov [rbp+var_28], eax"], [822, "mov rax, offset unk_423800"], [823, "mov eax, [rax+0BCh]"], [824, "mov [rbp+var_2C], eax"], [825, "mov rax, offset unk_423800"], [826, "movzx eax, byte ptr [rax+0C0h]"], [827, "test al, al"], [828, "jz short loc_40C1CA"], [829, "neg [rbp+var_28]"], [830, "neg [rbp+var_2C]"], [831, "mov rax, offset unk_423800"], [832, "mov rdx, [rax+0D8h]"], [833, "mov eax, [rbp+var_3C]"], [834, "shl eax, 3"], [835, "mov eax, eax"], [836, "add rax, rdx"], [837, "mov [rbp+var_68], rax"], [838, "jmp short loc_40C22A"], [839, "mov eax, cs:dword_422CA4"], [840, "cmp eax, 1"], [841, "jbe short loc_40C219"], [842, "call sub_40A8DB"], [843, "mov ecx, 0FBh"], [844, "lea rdx, aOutputFrames"], [845, "mov rsi, rax"], [846, "lea rdi, aSSDUnableToCon_1"], [847, "mov eax, 0"], [848, "call sub_40A95A"], [849, "mov rax, offset unk_423800"], [850, "mov dword ptr [rax+0CCh], 0"], [851, "movzx eax, [rbp+var_19]"], [852, "xor eax, 1"], [853, "test al, al"], [854, "jz short loc_40C241"], [855, "mov eax, [rbp+var_18]"], [856, "cmp [rbp+var_34], eax"], [857, "cmovbe eax, [rbp+var_34]"], [858, "jmp short loc_40C244"], [859, "mov eax, [rbp+var_18]"], [860, "mov [rbp+var_58], eax"], [861, "mov rax, offset unk_423800"], [862, "mov r10, [rax+28h]"], [863, "movzx r8d, [rbp+var_3D]"], [864, "movzx esi, [rbp+var_19]"], [865, "mov r9d, [rbp+var_20]"], [866, "mov ecx, [rbp+var_2C]"], [867, "mov edx, [rbp+var_28]"], [868, "mov eax, [rbp+var_58]"], [869, "lea rdi, [rbp+var_68]"], [870, "push rdi"], [871, "mov edi, [rbp+var_24]"], [872, "push rdi"], [873, "mov edi, eax"], [874, "call r10"], [875, "add rsp, 10h"], [876, "mov [rbp+var_5C], eax"], [877, "cmp [rbp+var_5C], 0"], [878, "jg short loc_40C28B"], [879, "mov eax, [rbp+var_18]"], [880, "sub [rbp+var_14], eax"], [881, "jmp short loc_40C2E3"], [882, "mov eax, [rbp+var_5C]"], [883, "mov [rbp+var_58], eax"], [884, "mov eax, [rbp+var_58]"], [885, "sub [rbp+var_18], eax"], [886, "movzx eax, [rbp+var_19]"], [887, "xor eax, 1"], [888, "test al, al"], [889, "jz short loc_40C2D9"], [890, "mov eax, [rbp+var_58]"], [891, "lea edx, ds:0[rax*8]"], [892, "mov rax, offset off_4205B0"], [893, "mov rax, [rax]"], [894, "mov esi, edx"], [895, "mov rdi, rax"], [896, "call sub_408BDB"], [897, "mov rax, offset unk_423800"], [898, "mov edx, [rax+34h]"], [899, "mov eax, [rbp+var_58]"], [900, "add edx, eax"], [901, "mov rax, offset unk_423800"], [902, "mov [rax+34h], edx"], [903, "cmp [rbp+var_18], 0"], [904, "jnz loc_40B7E0"], [905, "mov eax, cs:dword_422CA4"], [906, "cmp eax, 3"], [907, "jbe short loc_40C319"], [908, "call sub_40A8DB"], [909, "mov edx, [rbp+var_14]"], [910, "mov r8d, edx"], [911, "mov ecx, 11Eh"], [912, "lea rdx, aOutputFrames"], [913, "mov rsi, rax"], [914, "lea rdi, aSSDWroteUFrame"], [915, "mov eax, 0"], [916, "call sub_40A95A"], [917, "mov eax, [rbp+var_14]"], [918, "lea rsp, [rbp-10h]"], [919, "pop rbx"], [920, "pop r12"], [921, "pop rbp"], [922, "retn"]], "data_dep": [[7, 6], [8, 7], [13, 12], [14, 13], [15, 14], [17, 16], [18, 17], [20, 19], [21, 18], [22, 20], [26, 25], [27, 23], [27, 26], [29, 28], [30, 29], [31, 30], [33, 32], [34, 33], [36, 35], [37, 34], [38, 36], [42, 41], [43, 39], [43, 42], [45, 44], [46, 45], [47, 46], [48, 27], [49, 43], [51, 50], [52, 51], [54, 53], [55, 54], [58, 57], [59, 58], [60, 59], [61, 55], [64, 63], [66, 65], [67, 64], [67, 66], [68, 67], [70, 68], [70, 69], [71, 70], [72, 71], [73, 72], [73, 62], [74, 73], [76, 75], [77, 55], [77, 76], [78, 77], [80, 79], [82, 81], [83, 82], [85, 55], [86, 85], [88, 85], [89, 84], [90, 52], [95, 80], [95, 94], [96, 95], [97, 96], [98, 55], [99, 98], [101, 100], [101, 80], [102, 55], [102, 101], [103, 102], [103, 55], [104, 103], [106, 105], [107, 106], [109, 80], [109, 108], [111, 104], [112, 109], [113, 111], [115, 111], [116, 110], [117, 52], [117, 90], [120, 104], [121, 120], [121, 55], [123, 122], [123, 80], [123, 127], [124, 104], [125, 124], [125, 123], [127, 126], [127, 125], [130, 127], [130, 129], [130, 80], [131, 130], [133, 132], [134, 133], [134, 145], [134, 104], [135, 134], [137, 136], [137, 80], [137, 127], [138, 137], [140, 139], [142, 104], [142, 145], [143, 140], [143, 142], [144, 143], [145, 144], [145, 104], [145, 145], [146, 143], [147, 147], [147, 125], [149, 127], [149, 80], [149, 148], [150, 147], [151, 149], [153, 145], [153, 104], [154, 153], [156, 155], [158, 157], [158, 156], [158, 80], [158, 127], [159, 158], [160, 159], [162, 161], [163, 162], [165, 127], [165, 164], [165, 156], [165, 80], [167, 165], [169, 125], [169, 18], [169, 88], [169, 34], [169, 147], [169, 68], [170, 166], [171, 151], [171, 52], [171, 90], [171, 117], [175, 156], [175, 80], [175, 127], [175, 174], [176, 175], [177, 176], [179, 178], [183, 80], [183, 127], [183, 182], [183, 196], [183, 156], [184, 183], [184, 5], [185, 184], [185, 5], [186, 185], [188, 186], [189, 186], [189, 188], [190, 189], [192, 156], [192, 80], [192, 191], [192, 127], [192, 196], [193, 190], [193, 192], [194, 193], [196, 195], [196, 194], [198, 127], [198, 197], [198, 196], [198, 179], [198, 156], [198, 80], [199, 198], [200, 199], [202, 201], [204, 196], [204, 179], [204, 156], [204, 80], [204, 203], [204, 127], [205, 202], [205, 204], [206, 205], [208, 179], [208, 156], [208, 80], [208, 127], [208, 207], [208, 196], [209, 202], [210, 209], [211, 210], [211, 208], [212, 211], [214, 213], [217, 196], [217, 179], [217, 156], [217, 80], [217, 216], [217, 127], [218, 217], [218, 202], [219, 218], [221, 220], [221, 196], [221, 156], [221, 179], [221, 80], [221, 127], [222, 219], [222, 221], [223, 222], [224, 223], [225, 224], [226, 225], [227, 226], [229, 5], [230, 227], [230, 229], [231, 227], [231, 230], [232, 231], [234, 232], [235, 232], [235, 234], [236, 235], [238, 196], [238, 127], [238, 156], [238, 80], [238, 179], [238, 237], [238, 214], [239, 238], [240, 239], [241, 190], [241, 236], [241, 121], [241, 55], [242, 241], [245, 5], [246, 5], [246, 245], [247, 246], [249, 248], [250, 249], [251, 228], [251, 243], [251, 56], [251, 181], [253, 121], [253, 55], [253, 190], [253, 247], [253, 236], [254, 5], [255, 4], [256, 251], [257, 253], [258, 254], [260, 254], [261, 252], [262, 171], [262, 52], [262, 117], [262, 151], [262, 90], [265, 255], [266, 247], [266, 121], [266, 55], [266, 236], [266, 190], [267, 266], [267, 5], [268, 5], [268, 267], [269, 268], [270, 269], [271, 270], [274, 80], [274, 553], [274, 641], [274, 654], [274, 179], [274, 214], [274, 567], [274, 435], [274, 196], [274, 127], [274, 637], [274, 902], [274, 558], [274, 273], [274, 583], [274, 850], [274, 156], [275, 274], [277, 276], [278, 277], [280, 553], [280, 641], [280, 654], [280, 179], [280, 214], [280, 567], [280, 435], [280, 196], [280, 127], [280, 637], [280, 902], [280, 558], [280, 583], [280, 850], [280, 156], [280, 80], [280, 279], [281, 280], [282, 281], [283, 181], [283, 228], [283, 243], [283, 56], [284, 283], [285, 284], [286, 285], [288, 156], [288, 553], [288, 641], [288, 654], [288, 179], [288, 80], [288, 214], [288, 567], [288, 435], [288, 127], [288, 637], [288, 902], [288, 558], [288, 583], [288, 196], [288, 850], [288, 287], [290, 196], [290, 637], [290, 902], [290, 583], [290, 553], [290, 641], [290, 850], [290, 179], [290, 156], [290, 80], [290, 289], [290, 435], [290, 654], [290, 127], [290, 558], [290, 214], [290, 567], [291, 156], [291, 80], [291, 553], [291, 435], [291, 641], [291, 654], [291, 179], [291, 290], [291, 214], [291, 567], [291, 196], [291, 127], [291, 637], [291, 902], [291, 558], [291, 583], [291, 850], [292, 288], [292, 291], [293, 292], [296, 641], [296, 654], [296, 179], [296, 214], [296, 567], [296, 196], [296, 127], [296, 637], [296, 902], [296, 558], [296, 583], [296, 295], [296, 850], [296, 156], [296, 80], [296, 553], [296, 435], [298, 558], [298, 214], [298, 567], [298, 196], [298, 637], [298, 902], [298, 583], [298, 641], [298, 850], [298, 297], [298, 179], [298, 156], [298, 80], [298, 553], [298, 435], [298, 654], [298, 127], [299, 296], [299, 298], [300, 299], [302, 301], [302, 435], [302, 654], [302, 127], [302, 558], [302, 196], [302, 637], [302, 902], [302, 583], [302, 553], [302, 641], [302, 850], [302, 179], [302, 156], [302, 80], [302, 214], [302, 567], [303, 302], [304, 271], [304, 885], [305, 269], [305, 304], [306, 294], [306, 303], [307, 306], [309, 308], [311, 310], [311, 309], [312, 311], [313, 312], [314, 313], [316, 324], [316, 435], [316, 654], [316, 127], [316, 326], [316, 558], [316, 214], [316, 567], [316, 315], [316, 196], [316, 637], [316, 902], [316, 309], [316, 583], [316, 553], [316, 641], [316, 850], [316, 179], [316, 156], [316, 80], [317, 294], [317, 316], [317, 303], [318, 317], [319, 318], [320, 319], [321, 320], [322, 321], [324, 322], [324, 323], [326, 325], [329, 553], [329, 435], [329, 654], [329, 127], [329, 558], [329, 214], [329, 567], [329, 337], [329, 196], [329, 637], [329, 902], [329, 339], [329, 328], [329, 583], [329, 641], [329, 850], [329, 179], [329, 156], [329, 309], [329, 80], [330, 303], [330, 294], [330, 329], [331, 330], [332, 331], [333, 332], [334, 333], [335, 334], [337, 335], [337, 336], [339, 338], [341, 340], [342, 341], [344, 553], [344, 641], [344, 343], [344, 850], [344, 179], [344, 156], [344, 80], [344, 214], [344, 567], [344, 337], [344, 435], [344, 654], [344, 127], [344, 558], [344, 196], [344, 637], [344, 902], [344, 339], [344, 309], [344, 583], [346, 435], [346, 654], [346, 127], [346, 558], [346, 214], [346, 567], [346, 337], [346, 196], [346, 637], [346, 902], [346, 339], [346, 309], [346, 583], [346, 553], [346, 641], [346, 850], [346, 179], [346, 156], [346, 80], [346, 345], [348, 344], [349, 346], [351, 296], [351, 335], [352, 347], [353, 275], [357, 356], [359, 358], [362, 361], [362, 360], [364, 362], [364, 363], [366, 364], [366, 365], [368, 637], [368, 366], [368, 850], [368, 367], [368, 435], [368, 654], [369, 368], [370, 369], [372, 583], [372, 553], [372, 641], [372, 366], [372, 850], [372, 179], [372, 156], [372, 80], [372, 357], [372, 435], [372, 654], [372, 127], [372, 359], [372, 558], [372, 214], [372, 371], [372, 567], [372, 337], [372, 196], [372, 637], [372, 902], [372, 362], [372, 339], [372, 309], [373, 372], [374, 373], [376, 357], [376, 435], [376, 654], [376, 127], [376, 359], [376, 558], [376, 214], [376, 567], [376, 337], [376, 196], [376, 637], [376, 902], [376, 362], [376, 339], [376, 309], [376, 583], [376, 553], [376, 641], [376, 366], [376, 850], [376, 179], [376, 156], [376, 375], [376, 378], [376, 80], [378, 376], [378, 377], [380, 379], [383, 196], [383, 382], [383, 637], [383, 902], [383, 583], [383, 553], [383, 641], [383, 850], [383, 179], [383, 156], [383, 80], [383, 567], [383, 435], [383, 654], [383, 127], [383, 558], [383, 214], [385, 196], [385, 637], [385, 902], [385, 384], [385, 583], [385, 553], [385, 641], [385, 850], [385, 179], [385, 156], [385, 80], [385, 214], [385, 567], [385, 435], [385, 654], [385, 127], [385, 558], [386, 196], [386, 637], [386, 902], [386, 385], [386, 583], [386, 553], [386, 641], [386, 850], [386, 179], [386, 156], [386, 80], [386, 214], [386, 567], [386, 435], [386, 654], [386, 127], [386, 558], [387, 383], [387, 386], [388, 387], [390, 553], [390, 641], [390, 850], [390, 179], [390, 156], [390, 80], [390, 214], [390, 567], [390, 435], [390, 389], [390, 654], [390, 127], [390, 558], [390, 196], [390, 637], [390, 902], [390, 583], [392, 583], [392, 553], [392, 641], [392, 850], [392, 179], [392, 156], [392, 80], [392, 214], [392, 567], [392, 435], [392, 654], [392, 127], [392, 558], [392, 391], [392, 196], [392, 637], [392, 902], [393, 80], [393, 567], [393, 435], [393, 654], [393, 127], [393, 392], [393, 558], [393, 214], [393, 196], [393, 637], [393, 902], [393, 583], [393, 553], [393, 641], [393, 850], [393, 179], [393, 156], [394, 390], [395, 394], [395, 393], [396, 80], [396, 214], [396, 567], [396, 390], [396, 435], [396, 654], [396, 127], [396, 558], [396, 196], [396, 395], [396, 637], [396, 902], [396, 583], [396, 553], [396, 641], [396, 850], [396, 179], [396, 156], [397, 395], [398, 396], [398, 397], [399, 398], [400, 399], [401, 278], [402, 401], [402, 400], [403, 400], [404, 403], [406, 583], [406, 196], [406, 637], [406, 902], [406, 553], [406, 641], [406, 654], [406, 850], [406, 179], [406, 156], [406, 80], [406, 214], [406, 567], [406, 435], [406, 127], [406, 405], [406, 558], [407, 406], [408, 407], [409, 181], [409, 228], [409, 243], [409, 56], [410, 409], [411, 410], [412, 411], [414, 196], [414, 637], [414, 902], [414, 583], [414, 553], [414, 641], [414, 850], [414, 179], [414, 156], [414, 80], [414, 214], [414, 567], [414, 413], [414, 435], [414, 654], [414, 127], [414, 558], [415, 414], [416, 415], [418, 127], [418, 558], [418, 583], [418, 196], [418, 637], [418, 902], [418, 417], [418, 553], [418, 641], [418, 850], [418, 179], [418, 156], [418, 80], [418, 214], [418, 567], [418, 435], [418, 654], [420, 558], [420, 583], [420, 196], [420, 637], [420, 902], [420, 419], [420, 553], [420, 641], [420, 654], [420, 850], [420, 179], [420, 156], [420, 80], [420, 214], [420, 567], [420, 435], [420, 127], [421, 420], [421, 583], [421, 553], [421, 641], [421, 850], [421, 179], [421, 156], [421, 80], [421, 214], [421, 567], [421, 435], [421, 654], [421, 127], [421, 558], [421, 196], [421, 637], [421, 902], [422, 421], [422, 418], [423, 422], [425, 424], [426, 425], [429, 418], [430, 427], [431, 275], [435, 434], [438, 583], [438, 553], [438, 641], [438, 850], [438, 179], [438, 156], [438, 80], [438, 214], [438, 567], [438, 435], [438, 654], [438, 127], [438, 437], [438, 558], [438, 196], [438, 637], [438, 902], [440, 553], [440, 641], [440, 654], [440, 850], [440, 179], [440, 156], [440, 80], [440, 214], [440, 567], [440, 435], [440, 127], [440, 558], [440, 583], [440, 439], [440, 196], [440, 637], [440, 902], [441, 440], [441, 553], [441, 641], [441, 654], [441, 850], [441, 179], [441, 156], [441, 80], [441, 214], [441, 567], [441, 435], [441, 127], [441, 558], [441, 583], [441, 196], [441, 637], [441, 902], [442, 438], [442, 441], [443, 442], [445, 80], [445, 214], [445, 567], [445, 435], [445, 127], [445, 558], [445, 583], [445, 196], [445, 637], [445, 902], [445, 553], [445, 641], [445, 654], [445, 850], [445, 179], [445, 444], [445, 156], [447, 558], [447, 196], [447, 637], [447, 902], [447, 583], [447, 553], [447, 641], [447, 850], [447, 179], [447, 156], [447, 80], [447, 214], [447, 446], [447, 567], [447, 435], [447, 654], [447, 127], [448, 80], [448, 214], [448, 567], [448, 435], [448, 127], [448, 637], [448, 447], [448, 558], [448, 583], [448, 196], [448, 902], [448, 553], [448, 641], [448, 654], [448, 850], [448, 179], [448, 156], [449, 445], [450, 449], [450, 448], [451, 435], [451, 127], [451, 558], [451, 583], [451, 196], [451, 637], [451, 902], [451, 450], [451, 553], [451, 641], [451, 654], [451, 850], [451, 179], [451, 156], [451, 80], [451, 214], [451, 567], [451, 445], [452, 450], [453, 451], [453, 452], [454, 453], [455, 454], [456, 404], [456, 278], [457, 455], [457, 456], [458, 455], [459, 458], [461, 214], [461, 567], [461, 435], [461, 127], [461, 460], [461, 558], [461, 583], [461, 196], [461, 637], [461, 902], [461, 553], [461, 641], [461, 654], [461, 850], [461, 179], [461, 156], [461, 80], [462, 461], [463, 462], [465, 179], [465, 80], [465, 214], [465, 567], [465, 435], [465, 127], [465, 637], [465, 558], [465, 583], [465, 196], [465, 464], [465, 850], [465, 902], [465, 156], [465, 553], [465, 641], [465, 654], [466, 558], [466, 583], [466, 196], [466, 637], [466, 902], [466, 465], [466, 553], [466, 641], [466, 654], [466, 850], [466, 179], [466, 156], [466, 80], [466, 214], [466, 567], [466, 435], [466, 127], [468, 583], [468, 553], [468, 641], [468, 850], [468, 179], [468, 156], [468, 80], [468, 214], [468, 567], [468, 435], [468, 654], [468, 127], [468, 467], [468, 558], [468, 196], [468, 637], [468, 902], [469, 466], [469, 468], [470, 469], [472, 471], [472, 196], [472, 637], [472, 902], [472, 553], [472, 641], [472, 654], [472, 850], [472, 179], [472, 156], [472, 80], [472, 214], [472, 567], [472, 435], [472, 127], [472, 558], [472, 583], [473, 553], [473, 641], [473, 654], [473, 850], [473, 179], [473, 156], [473, 80], [473, 214], [473, 567], [473, 435], [473, 127], [473, 637], [473, 558], [473, 472], [473, 583], [473, 196], [473, 902], [475, 80], [475, 214], [475, 567], [475, 435], [475, 127], [475, 558], [475, 583], [475, 196], [475, 474], [475, 637], [475, 902], [475, 553], [475, 641], [475, 654], [475, 850], [475, 179], [475, 156], [476, 473], [477, 476], [477, 475], [478, 80], [478, 214], [478, 567], [478, 435], [478, 127], [478, 637], [478, 558], [478, 583], [478, 196], [478, 902], [478, 473], [478, 553], [478, 641], [478, 654], [478, 850], [478, 477], [478, 179], [478, 156], [479, 477], [480, 479], [480, 478], [481, 480], [484, 435], [484, 127], [484, 637], [484, 483], [484, 558], [484, 583], [484, 196], [484, 902], [484, 553], [484, 641], [484, 654], [484, 850], [484, 179], [484, 156], [484, 80], [484, 214], [484, 567], [485, 637], [485, 902], [485, 553], [485, 641], [485, 654], [485, 850], [485, 179], [485, 156], [485, 80], [485, 214], [485, 567], [485, 435], [485, 127], [485, 558], [485, 583], [485, 484], [485, 196], [487, 486], [487, 553], [487, 641], [487, 654], [487, 850], [487, 179], [487, 156], [487, 80], [487, 214], [487, 567], [487, 435], [487, 127], [487, 558], [487, 583], [487, 196], [487, 637], [487, 902], [488, 637], [488, 902], [488, 553], [488, 641], [488, 654], [488, 487], [488, 850], [488, 179], [488, 156], [488, 80], [488, 214], [488, 567], [488, 435], [488, 127], [488, 558], [488, 583], [488, 196], [489, 485], [489, 488], [491, 196], [491, 850], [491, 156], [491, 553], [491, 641], [491, 654], [491, 490], [491, 179], [491, 80], [491, 214], [491, 567], [491, 435], [491, 127], [491, 637], [491, 902], [491, 558], [491, 583], [492, 489], [493, 491], [493, 492], [494, 489], [494, 80], [494, 214], [494, 567], [494, 435], [494, 127], [494, 637], [494, 493], [494, 558], [494, 583], [494, 196], [494, 902], [494, 553], [494, 641], [494, 654], [494, 850], [494, 179], [494, 156], [495, 493], [496, 495], [496, 494], [497, 496], [498, 481], [498, 497], [500, 435], [500, 127], [500, 637], [500, 558], [500, 583], [500, 196], [500, 850], [500, 902], [500, 156], [500, 553], [500, 641], [500, 654], [500, 179], [500, 499], [500, 80], [500, 214], [500, 567], [502, 637], [502, 902], [502, 558], [502, 583], [502, 196], [502, 850], [502, 156], [502, 80], [502, 553], [502, 641], [502, 654], [502, 179], [502, 214], [502, 567], [502, 501], [502, 435], [502, 127], [503, 500], [503, 502], [504, 503], [506, 553], [506, 641], [506, 654], [506, 179], [506, 80], [506, 214], [506, 567], [506, 435], [506, 127], [506, 637], [506, 902], [506, 558], [506, 505], [506, 583], [506, 196], [506, 850], [506, 156], [508, 507], [508, 850], [508, 156], [508, 80], [508, 553], [508, 641], [508, 654], [508, 179], [508, 214], [508, 567], [508, 435], [508, 196], [508, 127], [508, 637], [508, 902], [508, 558], [508, 583], [509, 506], [510, 509], [510, 508], [511, 80], [511, 214], [511, 567], [511, 435], [511, 127], [511, 637], [511, 902], [511, 558], [511, 583], [511, 196], [511, 850], [511, 156], [511, 506], [511, 553], [511, 641], [511, 654], [511, 510], [511, 179], [512, 510], [513, 512], [513, 511], [514, 513], [517, 435], [517, 127], [517, 516], [517, 637], [517, 902], [517, 558], [517, 583], [517, 196], [517, 850], [517, 156], [517, 80], [517, 553], [517, 641], [517, 654], [517, 179], [517, 214], [517, 567], [519, 196], [519, 127], [519, 637], [519, 902], [519, 558], [519, 518], [519, 583], [519, 850], [519, 156], [519, 80], [519, 553], [519, 641], [519, 654], [519, 179], [519, 214], [519, 567], [519, 435], [520, 519], [520, 553], [520, 641], [520, 654], [520, 179], [520, 156], [520, 80], [520, 214], [520, 567], [520, 435], [520, 127], [520, 637], [520, 558], [520, 583], [520, 196], [520, 850], [520, 902], [521, 520], [521, 517], [523, 156], [523, 80], [523, 553], [523, 641], [523, 654], [523, 179], [523, 522], [523, 214], [523, 567], [523, 435], [523, 196], [523, 127], [523, 637], [523, 902], [523, 558], [523, 583], [523, 850], [524, 521], [525, 524], [525, 523], [526, 553], [526, 641], [526, 654], [526, 179], [526, 80], [526, 214], [526, 567], [526, 435], [526, 127], [526, 637], [526, 902], [526, 558], [526, 525], [526, 583], [526, 196], [526, 850], [526, 156], [526, 521], [527, 525], [528, 526], [528, 527], [529, 528], [530, 529], [530, 514], [531, 498], [532, 531], [532, 530], [533, 532], [535, 196], [535, 902], [535, 553], [535, 641], [535, 654], [535, 850], [535, 179], [535, 156], [535, 80], [535, 214], [535, 567], [535, 534], [535, 435], [535, 127], [535, 637], [535, 558], [535, 583], [536, 535], [537, 536], [539, 641], [539, 654], [539, 850], [539, 179], [539, 156], [539, 80], [539, 214], [539, 567], [539, 435], [539, 127], [539, 637], [539, 558], [539, 538], [539, 583], [539, 196], [539, 902], [539, 553], [540, 539], [541, 540], [543, 542], [544, 543], [547, 526], [547, 511], [548, 545], [549, 275], [549, 431], [553, 552], [555, 156], [555, 80], [555, 554], [555, 553], [555, 179], [555, 214], [556, 553], [556, 555], [558, 557], [558, 556], [560, 80], [560, 179], [560, 214], [560, 559], [560, 558], [560, 156], [561, 558], [561, 560], [562, 530], [563, 562], [564, 563], [565, 561], [565, 564], [567, 566], [567, 565], [569, 568], [569, 567], [571, 156], [571, 80], [571, 179], [571, 214], [571, 567], [571, 570], [572, 571], [572, 567], [573, 572], [573, 569], [574, 573], [576, 553], [576, 435], [576, 654], [576, 127], [576, 179], [576, 214], [576, 567], [576, 196], [576, 637], [576, 902], [576, 558], [576, 583], [576, 641], [576, 850], [576, 575], [576, 156], [576, 80], [578, 553], [578, 435], [578, 654], [578, 127], [578, 558], [578, 214], [578, 567], [578, 196], [578, 637], [578, 902], [578, 583], [578, 641], [578, 850], [578, 179], [578, 156], [578, 80], [578, 577], [579, 80], [579, 435], [579, 654], [579, 127], [579, 578], [579, 558], [579, 214], [579, 567], [579, 196], [579, 637], [579, 902], [579, 583], [579, 553], [579, 641], [579, 850], [579, 179], [579, 156], [580, 579], [581, 580], [581, 576], [583, 582], [583, 581], [587, 641], [587, 850], [587, 179], [587, 156], [587, 80], [587, 586], [587, 553], [587, 435], [587, 654], [587, 127], [587, 558], [587, 214], [587, 567], [587, 196], [587, 637], [587, 902], [587, 583], [588, 587], [589, 588], [591, 590], [592, 591], [595, 511], [595, 526], [596, 593], [597, 275], [597, 431], [601, 583], [601, 641], [601, 850], [601, 156], [601, 80], [601, 553], [601, 435], [601, 654], [601, 179], [601, 214], [601, 600], [601, 567], [601, 196], [601, 127], [601, 637], [601, 902], [601, 558], [602, 601], [604, 530], [605, 604], [606, 603], [606, 605], [607, 606], [608, 530], [609, 605], [611, 435], [611, 654], [611, 127], [611, 558], [611, 214], [611, 567], [611, 196], [611, 637], [611, 902], [611, 583], [611, 553], [611, 641], [611, 850], [611, 179], [611, 156], [611, 80], [611, 610], [612, 609], [613, 611], [616, 615], [617, 616], [620, 609], [621, 618], [622, 613], [627, 626], [628, 627], [631, 605], [632, 629], [633, 602], [637, 636], [639, 637], [639, 638], [641, 639], [641, 640], [644, 643], [645, 644], [648, 526], [648, 511], [649, 646], [650, 275], [650, 431], [654, 653], [656, 179], [656, 156], [656, 80], [656, 655], [656, 435], [656, 654], [656, 127], [656, 558], [656, 214], [656, 567], [656, 196], [656, 637], [656, 902], [656, 583], [656, 553], [656, 641], [656, 850], [657, 656], [658, 657], [660, 558], [660, 214], [660, 567], [660, 196], [660, 637], [660, 902], [660, 659], [660, 583], [660, 641], [660, 850], [660, 179], [660, 156], [660, 80], [660, 553], [660, 435], [660, 654], [660, 127], [662, 850], [662, 179], [662, 156], [662, 80], [662, 214], [662, 567], [662, 435], [662, 654], [662, 127], [662, 558], [662, 583], [662, 196], [662, 637], [662, 902], [662, 661], [662, 553], [662, 641], [663, 558], [663, 196], [663, 637], [663, 902], [663, 662], [663, 583], [663, 553], [663, 641], [663, 850], [663, 179], [663, 156], [663, 80], [663, 214], [663, 567], [663, 435], [663, 654], [663, 127], [664, 660], [664, 663], [665, 664], [667, 583], [667, 553], [667, 641], [667, 850], [667, 179], [667, 156], [667, 80], [667, 567], [667, 435], [667, 654], [667, 127], [667, 666], [667, 558], [667, 214], [667, 196], [667, 637], [667, 902], [669, 127], [669, 558], [669, 583], [669, 668], [669, 196], [669, 637], [669, 902], [669, 553], [669, 641], [669, 654], [669, 850], [669, 179], [669, 156], [669, 80], [669, 214], [669, 567], [669, 435], [670, 583], [670, 553], [670, 641], [670, 850], [670, 179], [670, 156], [670, 80], [670, 214], [670, 567], [670, 435], [670, 654], [670, 127], [670, 558], [670, 669], [670, 196], [670, 637], [670, 902], [671, 667], [672, 670], [672, 671], [673, 672], [673, 553], [673, 641], [673, 654], [673, 850], [673, 179], [673, 156], [673, 80], [673, 214], [673, 567], [673, 435], [673, 667], [673, 127], [673, 558], [673, 583], [673, 196], [673, 637], [673, 902], [674, 672], [675, 673], [675, 674], [676, 675], [677, 676], [678, 404], [678, 459], [678, 278], [679, 678], [679, 677], [680, 677], [681, 680], [683, 127], [683, 558], [683, 583], [683, 196], [683, 637], [683, 902], [683, 682], [683, 553], [683, 641], [683, 654], [683, 850], [683, 179], [683, 156], [683, 80], [683, 214], [683, 567], [683, 435], [684, 683], [685, 684], [687, 637], [687, 902], [687, 583], [687, 553], [687, 641], [687, 850], [687, 179], [687, 156], [687, 686], [687, 80], [687, 214], [687, 567], [687, 435], [687, 654], [687, 127], [687, 558], [687, 196], [688, 687], [689, 688], [691, 80], [691, 214], [691, 567], [691, 435], [691, 654], [691, 690], [691, 127], [691, 558], [691, 196], [691, 637], [691, 902], [691, 583], [691, 553], [691, 641], [691, 850], [691, 179], [691, 156], [692, 691], [693, 692], [694, 530], [695, 584], [695, 498], [695, 694], [696, 695], [697, 584], [697, 498], [697, 696], [698, 697], [699, 698], [701, 698], [701, 700], [703, 698], [704, 703], [705, 698], [706, 704], [706, 705], [708, 706], [708, 707], [709, 708], [710, 530], [711, 710], [712, 711], [714, 713], [714, 711], [716, 711], [717, 716], [718, 711], [719, 718], [719, 717], [721, 719], [721, 720], [722, 721], [723, 709], [723, 722], [723, 701], [723, 714], [724, 723], [725, 724], [727, 726], [728, 727], [729, 48], [729, 744], [729, 829], [729, 27], [729, 733], [729, 821], [730, 728], [731, 729], [733, 732], [734, 727], [735, 43], [735, 824], [735, 739], [735, 830], [735, 49], [735, 745], [736, 734], [737, 735], [739, 738], [741, 654], [741, 850], [741, 179], [741, 156], [741, 641], [741, 80], [741, 214], [741, 567], [741, 435], [741, 127], [741, 558], [741, 583], [741, 196], [741, 637], [741, 902], [741, 740], [741, 553], [742, 741], [743, 742], [744, 733], [745, 739], [747, 567], [747, 746], [747, 435], [747, 127], [747, 558], [747, 583], [747, 196], [747, 637], [747, 902], [747, 553], [747, 641], [747, 654], [747, 850], [747, 179], [747, 156], [747, 80], [747, 214], [748, 747], [749, 748], [751, 583], [751, 196], [751, 637], [751, 902], [751, 750], [751, 553], [751, 641], [751, 654], [751, 850], [751, 179], [751, 156], [751, 80], [751, 214], [751, 567], [751, 435], [751, 127], [751, 558], [752, 751], [754, 753], [755, 754], [756, 530], [757, 885], [757, 271], [758, 756], [758, 757], [759, 755], [759, 758], [760, 759], [761, 696], [761, 584], [761, 498], [762, 761], [763, 762], [765, 762], [765, 764], [767, 762], [768, 767], [769, 762], [770, 769], [770, 768], [772, 770], [772, 771], [773, 772], [774, 530], [775, 774], [776, 775], [778, 775], [778, 777], [780, 775], [781, 780], [782, 775], [783, 781], [783, 782], [785, 784], [785, 783], [786, 785], [787, 773], [787, 786], [787, 765], [787, 778], [788, 787], [789, 788], [791, 790], [793, 791], [793, 792], [794, 793], [796, 567], [796, 435], [796, 127], [796, 637], [796, 902], [796, 558], [796, 583], [796, 196], [796, 850], [796, 156], [796, 553], [796, 795], [796, 641], [796, 654], [796, 179], [796, 80], [796, 214], [797, 796], [798, 797], [800, 583], [800, 196], [800, 850], [800, 902], [800, 156], [800, 553], [800, 641], [800, 654], [800, 179], [800, 80], [800, 214], [800, 567], [800, 799], [800, 435], [800, 127], [800, 637], [800, 558], [801, 800], [802, 794], [803, 801], [804, 802], [806, 805], [808, 553], [808, 641], [808, 654], [808, 179], [808, 214], [808, 567], [808, 435], [808, 196], [808, 127], [808, 637], [808, 902], [808, 558], [808, 583], [808, 850], [808, 156], [808, 807], [808, 80], [809, 808], [810, 809], [812, 435], [812, 811], [812, 127], [812, 637], [812, 902], [812, 558], [812, 583], [812, 196], [812, 850], [812, 156], [812, 80], [812, 553], [812, 641], [812, 654], [812, 179], [812, 214], [812, 567], [813, 812], [814, 791], [815, 813], [816, 814], [818, 817], [820, 583], [820, 641], [820, 850], [820, 156], [820, 80], [820, 819], [820, 553], [820, 435], [820, 654], [820, 127], [820, 179], [820, 214], [820, 567], [820, 196], [820, 637], [820, 902], [820, 558], [821, 820], [823, 850], [823, 156], [823, 80], [823, 553], [823, 641], [823, 654], [823, 179], [823, 214], [823, 567], [823, 822], [823, 435], [823, 196], [823, 127], [823, 637], [823, 902], [823, 558], [823, 583], [824, 823], [826, 567], [826, 435], [826, 127], [826, 637], [826, 902], [826, 558], [826, 583], [826, 825], [826, 196], [826, 850], [826, 156], [826, 553], [826, 641], [826, 654], [826, 179], [826, 80], [826, 214], [827, 826], [828, 827], [829, 821], [830, 824], [832, 214], [832, 567], [832, 196], [832, 637], [832, 902], [832, 583], [832, 641], [832, 850], [832, 179], [832, 156], [832, 80], [832, 553], [832, 831], [832, 435], [832, 654], [832, 127], [832, 558], [833, 696], [833, 584], [833, 498], [834, 833], [835, 834], [836, 835], [836, 832], [837, 836], [840, 839], [841, 840], [844, 755], [845, 842], [846, 752], [850, 849], [851, 228], [851, 243], [851, 56], [851, 181], [852, 851], [853, 852], [854, 853], [855, 885], [855, 271], [856, 278], [856, 855], [856, 459], [856, 404], [856, 681], [857, 278], [857, 404], [857, 459], [857, 856], [857, 681], [859, 271], [859, 885], [860, 857], [860, 859], [862, 558], [862, 214], [862, 567], [862, 196], [862, 637], [862, 902], [862, 583], [862, 641], [862, 850], [862, 179], [862, 156], [862, 80], [862, 861], [862, 553], [862, 435], [862, 654], [862, 127], [863, 8], [864, 243], [864, 56], [864, 181], [864, 228], [865, 791], [865, 9], [865, 818], [866, 43], [866, 739], [866, 49], [866, 830], [866, 824], [866, 745], [867, 829], [867, 821], [867, 48], [867, 744], [867, 27], [867, 733], [868, 860], [869, 804], [869, 431], [869, 650], [869, 816], [869, 11], [869, 752], [869, 633], [869, 613], [869, 622], [869, 602], [869, 549], [869, 846], [869, 737], [869, 275], [869, 837], [870, 869], [871, 806], [871, 10], [871, 794], [872, 871], [873, 868], [874, 862], [875, 875], [875, 4], [875, 265], [876, 874], [877, 876], [878, 877], [879, 271], [879, 885], [880, 879], [880, 269], [882, 876], [883, 882], [884, 883], [885, 884], [885, 885], [885, 271], [886, 243], [886, 56], [886, 181], [886, 228], [887, 886], [888, 887], [889, 888], [890, 883], [891, 867], [893, 127], [893, 558], [893, 214], [893, 567], [893, 196], [893, 637], [893, 902], [893, 892], [893, 583], [893, 641], [893, 850], [893, 179], [893, 156], [893, 80], [893, 553], [893, 435], [893, 654], [894, 891], [895, 893], [898, 196], [898, 637], [898, 902], [898, 583], [898, 641], [898, 850], [898, 179], [898, 156], [898, 80], [898, 897], [898, 553], [898, 435], [898, 654], [898, 127], [898, 558], [898, 214], [898, 567], [899, 883], [900, 899], [900, 898], [902, 900], [902, 901], [903, 885], [903, 271], [904, 903], [906, 905], [907, 906], [909, 305], [909, 880], [909, 269], [910, 909], [912, 909], [913, 908], [914, 52], [914, 117], [914, 275], [914, 353], [914, 873], [914, 895], [914, 90], [914, 171], [914, 151], [914, 262], [917, 880], [917, 269], [917, 305], [918, 4], [918, 875], [918, 265], [919, 256], [919, 3], [920, 2], [921, 0], [922, 917]]}
void findattach(XPoint *newpos, float *rot, XPoint *userpt) { XPoint *endpt1, *endpt2; float frac; double tmpang; float locrot = 0.0; if (rot) locrot = *rot; /* find point of intersection and slope */ if (SELECTTYPE(&areawin->attachto) == ARC) { arcptr aarc = SELTOARC(&areawin->attachto); float tmpdeg; tmpang = atan2((double)(userpt->y - aarc->position.y) * (double) (abs(aarc->radius)), (double)(userpt->x - aarc->position.x) * (double)aarc->yaxis); /* don't follow the arc beyond its endpoints */ tmpdeg = (float)(tmpang * INVRFAC); if (tmpdeg < 0) tmpdeg += 360; if (((aarc->angle2 > 360) && (tmpdeg > aarc->angle2 - 360) && (tmpdeg < aarc->angle1)) || ((aarc->angle1 < 0) && (tmpdeg > aarc->angle2) && (tmpdeg < aarc->angle1 + 360)) || ((aarc->angle1 >= 0) && (aarc->angle2 <= 360) && ((tmpdeg > aarc->angle2) || (tmpdeg < aarc->angle1)))) { float testd1 = aarc->angle1 - tmpdeg; float testd2 = tmpdeg - aarc->angle2; if (testd1 < 0) testd1 += 360; if (testd2 < 0) testd2 += 360; /* if arc is closed, attach to the line between the endpoints */ if (!(aarc->style & UNCLOSED)) { XPoint end1, end2; tmpang = (double) aarc->angle1 / INVRFAC; end1.x = aarc->position.x + abs(aarc->radius) * cos(tmpang); end1.y = aarc->position.y + aarc->yaxis * sin(tmpang); tmpang = (double) aarc->angle2 / INVRFAC; end2.x = aarc->position.x + abs(aarc->radius) * cos(tmpang); end2.y = aarc->position.y + aarc->yaxis * sin(tmpang); findwirex(&end1, &end2, userpt, newpos, &locrot); if (rot) *rot = locrot; return; } else tmpang = (double)((testd1 < testd2) ? aarc->angle1 : aarc->angle2) / INVRFAC; } /* get position in user coordinates nearest to the intersect pt */ newpos->x = aarc->position.x + abs(aarc->radius) * cos(tmpang); newpos->y = aarc->position.y + aarc->yaxis * sin(tmpang); /* rotation of object is normal to the curve of the ellipse */ if (rot) { *rot = 90.0 - INVRFAC * tmpang; if (*rot < 0.0) *rot += 360.0; } } else if (SELECTTYPE(&areawin->attachto) == SPLINE) { splineptr aspline = SELTOSPLINE(&areawin->attachto); frac = findsplinemin(aspline, userpt); findsplinepos(aspline, frac, newpos, &locrot); if (rot) *rot = locrot; } else if (SELECTTYPE(&areawin->attachto) == OBJINST) { objinstptr ainst = SELTOOBJINST(&areawin->attachto); objectptr aobj = ainst->thisobject; genericptr *ggen; long testdist, mindist = 1e8; XPoint mdpoint; /* In case instance has no pin labels, we will attach to */ /* the instance's own origin. */ mdpoint.x = mdpoint.y = 0; ReferencePosition(ainst, &mdpoint, newpos); /* Find the nearest pin label in the object instance and attach to it */ for (ggen = aobj->plist; ggen < aobj->plist + aobj->parts; ggen++) { if (ELEMENTTYPE(*ggen) == LABEL) { labelptr alab = TOLABEL(ggen); if (alab->pin == LOCAL || alab->pin == GLOBAL) { ReferencePosition(ainst, &alab->position, &mdpoint); testdist = sqwirelen(&mdpoint, userpt); if (testdist < mindist) { mindist = testdist; *newpos = mdpoint; } } } } } else if (SELECTTYPE(&areawin->attachto) == LABEL) { /* Only one choice: Attach to the label position */ labelptr alabel = SELTOLABEL(&areawin->attachto); newpos->x = alabel->position.x; newpos->y = alabel->position.y; } else if (SELECTTYPE(&areawin->attachto) == POLYGON) { polyptr apoly = SELTOPOLY(&areawin->attachto); XPoint *testpt, *minpt, *nxtpt; long mindist = 1e8, testdist; minpt = nxtpt = apoly->points; /* so variables aren't uninitialized */ for (testpt = apoly->points; testpt < apoly->points + apoly->number - 1; testpt++) { testdist = finddist(testpt, testpt + 1, userpt); if (testdist < mindist) { mindist = testdist; minpt = testpt; nxtpt = testpt + 1; } } if (!(apoly->style & UNCLOSED)) { testdist = finddist(testpt, apoly->points, userpt); if (testdist < mindist) { mindist = testdist; minpt = testpt; nxtpt = apoly->points; } } endpt1 = minpt; endpt2 = nxtpt; findwirex(endpt1, endpt2, userpt, newpos, &locrot); if (rot) *rot = locrot; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_418166", "function_addr": 4292966, "binary_name": "6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0F0h"], [3, "mov [rbp+var_C8], rdi"], [4, "mov [rbp+var_D0], rsi"], [5, "mov [rbp+var_D8], rdx"], [6, "pxor xmm0, xmm0"], [7, "movss [rbp+var_AC], xmm0"], [8, "cmp [rbp+var_D0], 0"], [9, "jz short loc_4181AF"], [10, "mov rax, [rbp+var_D0]"], [11, "movss xmm0, dword ptr [rax]"], [12, "movss [rbp+var_AC], xmm0"], [13, "mov rax, cs:qword_4E6B90"], [14, "mov rax, [rax+0E0h]"], [15, "test rax, rax"], [16, "jnz short loc_4181F3"], [17, "mov rax, cs:qword_4E6B90"], [18, "mov rax, [rax+0C0h]"], [19, "mov rax, [rax+20h]"], [20, "mov rdx, [rax+68h]"], [21, "mov rax, cs:qword_4E6B90"], [22, "movzx eax, word ptr [rax+0B8h]"], [23, "movsx rax, ax"], [24, "shl rax, 3"], [25, "add rax, rdx"], [26, "jmp short loc_418225"], [27, "mov rax, cs:qword_4E6B90"], [28, "mov rax, [rax+0E0h]"], [29, "mov rax, [rax]"], [30, "mov rax, [rax+20h]"], [31, "mov rdx, [rax+68h]"], [32, "mov rax, cs:qword_4E6B90"], [33, "movzx eax, word ptr [rax+0B8h]"], [34, "movsx rax, ax"], [35, "shl rax, 3"], [36, "add rax, rdx"], [37, "mov rax, [rax]"], [38, "movzx eax, word ptr [rax]"], [39, "movzx eax, ax"], [40, "movzx eax, al"], [41, "cmp eax, 8"], [42, "jnz loc_418961"], [43, "mov rax, cs:qword_4E6B90"], [44, "mov rax, [rax+0E0h]"], [45, "test rax, rax"], [46, "jnz short loc_41827E"], [47, "mov rax, cs:qword_4E6B90"], [48, "mov rax, [rax+0C0h]"], [49, "mov rax, [rax+20h]"], [50, "mov rdx, [rax+68h]"], [51, "mov rax, cs:qword_4E6B90"], [52, "movzx eax, word ptr [rax+0B8h]"], [53, "movsx rax, ax"], [54, "shl rax, 3"], [55, "add rax, rdx"], [56, "jmp short loc_4182B0"], [57, "mov rax, cs:qword_4E6B90"], [58, "mov rax, [rax+0E0h]"], [59, "mov rax, [rax]"], [60, "mov rax, [rax+20h]"], [61, "mov rdx, [rax+68h]"], [62, "mov rax, cs:qword_4E6B90"], [63, "movzx eax, word ptr [rax+0B8h]"], [64, "movsx rax, ax"], [65, "shl rax, 3"], [66, "add rax, rdx"], [67, "mov rax, [rax]"], [68, "mov [rbp+var_A8], rax"], [69, "mov rax, [rbp+var_D8]"], [70, "movzx eax, word ptr [rax]"], [71, "movsx edx, ax"], [72, "mov rax, [rbp+var_A8]"], [73, "movzx eax, word ptr [rax+2Ch]"], [74, "cwde"], [75, "sub edx, eax"], [76, "pxor xmm1, xmm1"], [77, "cvtsi2sd xmm1, edx"], [78, "mov rax, [rbp+var_A8]"], [79, "movzx eax, word ptr [rax+22h]"], [80, "cwde"], [81, "pxor xmm0, xmm0"], [82, "cvtsi2sd xmm0, eax"], [83, "movapd xmm2, xmm1"], [84, "mulsd xmm2, xmm0"], [85, "mov rax, [rbp+var_D8]"], [86, "movzx eax, word ptr [rax+2]"], [87, "movsx edx, ax"], [88, "mov rax, [rbp+var_A8]"], [89, "movzx eax, word ptr [rax+2Eh]"], [90, "cwde"], [91, "sub edx, eax"], [92, "pxor xmm1, xmm1"], [93, "cvtsi2sd xmm1, edx"], [94, "mov rax, [rbp+var_A8]"], [95, "movzx eax, word ptr [rax+20h]"], [96, "test ax, ax"], [97, "jns short loc_418345"], [98, "mov rax, [rbp+var_A8]"], [99, "movzx eax, word ptr [rax+20h]"], [100, "cwde"], [101, "neg eax"], [102, "pxor xmm0, xmm0"], [103, "cvtsi2sd xmm0, eax"], [104, "jmp short loc_418359"], [105, "mov rax, [rbp+var_A8]"], [106, "movzx eax, word ptr [rax+20h]"], [107, "cwde"], [108, "pxor xmm0, xmm0"], [109, "cvtsi2sd xmm0, eax"], [110, "mulsd xmm0, xmm1"], [111, "movq rax, xmm0"], [112, "movapd xmm1, xmm2"], [113, "movq xmm0, rax"], [114, "call _atan2"], [115, "movq rax, xmm0"], [116, "mov [rbp+x], rax"], [117, "movsd xmm1, [rbp+x]"], [118, "movsd xmm0, cs:qword_4B4BA0"], [119, "mulsd xmm0, xmm1"], [120, "cvtsd2ss xmm0, xmm0"], [121, "movss [rbp+var_C], xmm0"], [122, "pxor xmm0, xmm0"], [123, "comiss xmm0, [rbp+var_C]"], [124, "jbe short loc_4183B3"], [125, "movss xmm1, [rbp+var_C]"], [126, "movss xmm0, cs:dword_4B4BB0"], [127, "addss xmm0, xmm1"], [128, "movss [rbp+var_C], xmm0"], [129, "mov rax, [rbp+var_A8]"], [130, "movss xmm0, dword ptr [rax+28h]"], [131, "comiss xmm0, cs:dword_4B4BB0"], [132, "jbe short loc_418403"], [133, "mov rax, [rbp+var_A8]"], [134, "movss xmm0, dword ptr [rax+28h]"], [135, "movss xmm2, cs:dword_4B4BB0"], [136, "movaps xmm1, xmm0"], [137, "subss xmm1, xmm2"], [138, "movss xmm0, [rbp+var_C]"], [139, "comiss xmm0, xmm1"], [140, "jbe short loc_418403"], [141, "mov rax, [rbp+var_A8]"], [142, "movss xmm0, dword ptr [rax+24h]"], [143, "comiss xmm0, [rbp+var_C]"], [144, "ja loc_4184AE"], [145, "mov rax, [rbp+var_A8]"], [146, "movss xmm1, dword ptr [rax+24h]"], [147, "pxor xmm0, xmm0"], [148, "comiss xmm0, xmm1"], [149, "jbe short loc_41844C"], [150, "mov rax, [rbp+var_A8]"], [151, "movss xmm1, dword ptr [rax+28h]"], [152, "movss xmm0, [rbp+var_C]"], [153, "comiss xmm0, xmm1"], [154, "jbe short loc_41844C"], [155, "mov rax, [rbp+var_A8]"], [156, "movss xmm1, dword ptr [rax+24h]"], [157, "movss xmm0, cs:dword_4B4BB0"], [158, "addss xmm0, xmm1"], [159, "comiss xmm0, [rbp+var_C]"], [160, "ja short loc_4184AE"], [161, "mov rax, [rbp+var_A8]"], [162, "movss xmm0, dword ptr [rax+24h]"], [163, "pxor xmm1, xmm1"], [164, "comiss xmm0, xmm1"], [165, "jb loc_4187EB"], [166, "mov rax, [rbp+var_A8]"], [167, "movss xmm1, dword ptr [rax+28h]"], [168, "movss xmm0, cs:dword_4B4BB0"], [169, "comiss xmm0, xmm1"], [170, "jb loc_4187EB"], [171, "mov rax, [rbp+var_A8]"], [172, "movss xmm1, dword ptr [rax+28h]"], [173, "movss xmm0, [rbp+var_C]"], [174, "comiss xmm0, xmm1"], [175, "ja short loc_4184AE"], [176, "mov rax, [rbp+var_A8]"], [177, "movss xmm0, dword ptr [rax+24h]"], [178, "comiss xmm0, [rbp+var_C]"], [179, "jbe loc_4187EB"], [180, "mov rax, [rbp+var_A8]"], [181, "movss xmm0, dword ptr [rax+24h]"], [182, "subss xmm0, [rbp+var_C]"], [183, "movss [rbp+var_10], xmm0"], [184, "mov rax, [rbp+var_A8]"], [185, "movss xmm1, dword ptr [rax+28h]"], [186, "movss xmm0, [rbp+var_C]"], [187, "subss xmm0, xmm1"], [188, "movss [rbp+var_14], xmm0"], [189, "pxor xmm0, xmm0"], [190, "comiss xmm0, [rbp+var_10]"], [191, "jbe short loc_4184FE"], [192, "movss xmm1, [rbp+var_10]"], [193, "movss xmm0, cs:dword_4B4BB0"], [194, "addss xmm0, xmm1"], [195, "movss [rbp+var_10], xmm0"], [196, "pxor xmm0, xmm0"], [197, "comiss xmm0, [rbp+var_14]"], [198, "jbe short loc_41851E"], [199, "movss xmm1, [rbp+var_14]"], [200, "movss xmm0, cs:dword_4B4BB0"], [201, "addss xmm0, xmm1"], [202, "movss [rbp+var_14], xmm0"], [203, "mov rax, [rbp+var_A8]"], [204, "movzx eax, word ptr [rax+10h]"], [205, "movzx eax, ax"], [206, "and eax, 1"], [207, "test eax, eax"], [208, "jnz loc_4187B1"], [209, "mov rax, [rbp+var_A8]"], [210, "movss xmm0, dword ptr [rax+24h]"], [211, "cvtss2sd xmm0, xmm0"], [212, "movsd xmm1, cs:qword_4B4BA0"], [213, "divsd xmm0, xmm1"], [214, "movsd [rbp+x], xmm0"], [215, "mov rax, [rbp+var_A8]"], [216, "movzx eax, word ptr [rax+2Ch]"], [217, "cwde"], [218, "pxor xmm3, xmm3"], [219, "cvtsi2sd xmm3, eax"], [220, "movsd [rbp+var_E8], xmm3"], [221, "mov rax, [rbp+var_A8]"], [222, "movzx eax, word ptr [rax+20h]"], [223, "test ax, ax"], [224, "jns short loc_4185A4"], [225, "mov rax, [rbp+var_A8]"], [226, "movzx eax, word ptr [rax+20h]"], [227, "cwde"], [228, "neg eax"], [229, "pxor xmm4, xmm4"], [230, "cvtsi2sd xmm4, eax"], [231, "movsd [rbp+var_E0], xmm4"], [232, "jmp short loc_4185C0"], [233, "mov rax, [rbp+var_A8]"], [234, "movzx eax, word ptr [rax+20h]"], [235, "cwde"], [236, "pxor xmm5, xmm5"], [237, "cvtsi2sd xmm5, eax"], [238, "movsd [rbp+var_E0], xmm5"], [239, "mov rax, [rbp+x]"], [240, "movq xmm0, rax"], [241, "call _cos"], [242, "mulsd xmm0, [rbp+var_E0]"], [243, "addsd xmm0, [rbp+var_E8]"], [244, "cvttsd2si eax, xmm0"], [245, "mov [rbp+var_B0], ax"], [246, "mov rax, [rbp+var_A8]"], [247, "movzx eax, word ptr [rax+2Eh]"], [248, "cwde"], [249, "pxor xmm3, xmm3"], [250, "cvtsi2sd xmm3, eax"], [251, "movsd [rbp+var_E0], xmm3"], [252, "mov rax, [rbp+var_A8]"], [253, "movzx eax, word ptr [rax+22h]"], [254, "cwde"], [255, "pxor xmm4, xmm4"], [256, "cvtsi2sd xmm4, eax"], [257, "movsd [rbp+var_E8], xmm4"], [258, "mov rax, [rbp+x]"], [259, "movq xmm0, rax"], [260, "call _sin"], [261, "mulsd xmm0, [rbp+var_E8]"], [262, "addsd xmm0, [rbp+var_E0]"], [263, "cvttsd2si eax, xmm0"], [264, "mov [rbp+var_AE], ax"], [265, "mov rax, [rbp+var_A8]"], [266, "movss xmm0, dword ptr [rax+28h]"], [267, "cvtss2sd xmm0, xmm0"], [268, "movsd xmm1, cs:qword_4B4BA0"], [269, "divsd xmm0, xmm1"], [270, "movsd [rbp+x], xmm0"], [271, "mov rax, [rbp+var_A8]"], [272, "movzx eax, word ptr [rax+2Ch]"], [273, "cwde"], [274, "pxor xmm5, xmm5"], [275, "cvtsi2sd xmm5, eax"], [276, "movsd [rbp+var_E8], xmm5"], [277, "mov rax, [rbp+var_A8]"], [278, "movzx eax, word ptr [rax+20h]"], [279, "test ax, ax"], [280, "jns short loc_4186B7"], [281, "mov rax, [rbp+var_A8]"], [282, "movzx eax, word ptr [rax+20h]"], [283, "cwde"], [284, "neg eax"], [285, "pxor xmm6, xmm6"], [286, "cvtsi2sd xmm6, eax"], [287, "movsd [rbp+var_E0], xmm6"], [288, "jmp short loc_4186D3"], [289, "mov rax, [rbp+var_A8]"], [290, "movzx eax, word ptr [rax+20h]"], [291, "cwde"], [292, "pxor xmm7, xmm7"], [293, "cvtsi2sd xmm7, eax"], [294, "movsd [rbp+var_E0], xmm7"], [295, "mov rax, [rbp+x]"], [296, "movq xmm0, rax"], [297, "call _cos"], [298, "mulsd xmm0, [rbp+var_E0]"], [299, "addsd xmm0, [rbp+var_E8]"], [300, "cvttsd2si eax, xmm0"], [301, "mov [rbp+var_B4], ax"], [302, "mov rax, [rbp+var_A8]"], [303, "movzx eax, word ptr [rax+2Eh]"], [304, "cwde"], [305, "pxor xmm7, xmm7"], [306, "cvtsi2sd xmm7, eax"], [307, "movsd [rbp+var_E0], xmm7"], [308, "mov rax, [rbp+var_A8]"], [309, "movzx eax, word ptr [rax+22h]"], [310, "cwde"], [311, "pxor xmm3, xmm3"], [312, "cvtsi2sd xmm3, eax"], [313, "movsd [rbp+var_E8], xmm3"], [314, "mov rax, [rbp+x]"], [315, "movq xmm0, rax"], [316, "call _sin"], [317, "mulsd xmm0, [rbp+var_E8]"], [318, "addsd xmm0, [rbp+var_E0]"], [319, "cvttsd2si eax, xmm0"], [320, "mov [rbp+var_B2], ax"], [321, "lea rdi, [rbp+var_AC]"], [322, "mov rcx, [rbp+var_C8]"], [323, "mov rdx, [rbp+var_D8]"], [324, "lea rsi, [rbp+var_B4]"], [325, "lea rax, [rbp+var_B0]"], [326, "mov r8, rdi"], [327, "mov rdi, rax"], [328, "call sub_417FAE"], [329, "cmp [rbp+var_D0], 0"], [330, "jz locret_4190A0"], [331, "movss xmm0, [rbp+var_AC]"], [332, "mov rax, [rbp+var_D0]"], [333, "movss dword ptr [rax], xmm0"], [334, "jmp locret_4190A0"], [335, "movss xmm0, [rbp+var_14]"], [336, "comiss xmm0, [rbp+var_10]"], [337, "jbe short loc_4187CA"], [338, "mov rax, [rbp+var_A8]"], [339, "movss xmm0, dword ptr [rax+24h]"], [340, "jmp short loc_4187D6"], [341, "mov rax, [rbp+var_A8]"], [342, "movss xmm0, dword ptr [rax+28h]"], [343, "cvtss2sd xmm0, xmm0"], [344, "movsd xmm1, cs:qword_4B4BA0"], [345, "divsd xmm0, xmm1"], [346, "movsd [rbp+x], xmm0"], [347, "mov rax, [rbp+var_A8]"], [348, "movzx eax, word ptr [rax+2Ch]"], [349, "cwde"], [350, "pxor xmm4, xmm4"], [351, "cvtsi2sd xmm4, eax"], [352, "movsd [rbp+var_E8], xmm4"], [353, "mov rax, [rbp+var_A8]"], [354, "movzx eax, word ptr [rax+20h]"], [355, "test ax, ax"], [356, "jns short loc_418837"], [357, "mov rax, [rbp+var_A8]"], [358, "movzx eax, word ptr [rax+20h]"], [359, "cwde"], [360, "neg eax"], [361, "pxor xmm5, xmm5"], [362, "cvtsi2sd xmm5, eax"], [363, "movsd [rbp+var_E0], xmm5"], [364, "jmp short loc_418853"], [365, "mov rax, [rbp+var_A8]"], [366, "movzx eax, word ptr [rax+20h]"], [367, "cwde"], [368, "pxor xmm6, xmm6"], [369, "cvtsi2sd xmm6, eax"], [370, "movsd [rbp+var_E0], xmm6"], [371, "mov rax, [rbp+x]"], [372, "movq xmm0, rax"], [373, "call _cos"], [374, "mulsd xmm0, [rbp+var_E0]"], [375, "addsd xmm0, [rbp+var_E8]"], [376, "cvttsd2si eax, xmm0"], [377, "mov edx, eax"], [378, "mov rax, [rbp+var_C8]"], [379, "mov [rax], dx"], [380, "mov rax, [rbp+var_A8]"], [381, "movzx eax, word ptr [rax+2Eh]"], [382, "cwde"], [383, "pxor xmm5, xmm5"], [384, "cvtsi2sd xmm5, eax"], [385, "movsd [rbp+var_E0], xmm5"], [386, "mov rax, [rbp+var_A8]"], [387, "movzx eax, word ptr [rax+22h]"], [388, "cwde"], [389, "pxor xmm6, xmm6"], [390, "cvtsi2sd xmm6, eax"], [391, "movsd [rbp+var_E8], xmm6"], [392, "mov rax, [rbp+x]"], [393, "movq xmm0, rax"], [394, "call _sin"], [395, "mulsd xmm0, [rbp+var_E8]"], [396, "addsd xmm0, [rbp+var_E0]"], [397, "cvttsd2si eax, xmm0"], [398, "mov edx, eax"], [399, "mov rax, [rbp+var_C8]"], [400, "mov [rax+2], dx"], [401, "cmp [rbp+var_D0], 0"], [402, "jz locret_4190A0"], [403, "movsd xmm1, [rbp+x]"], [404, "movsd xmm0, cs:qword_4B4BA0"], [405, "mulsd xmm1, xmm0"], [406, "movsd xmm0, cs:qword_4B4BB8"], [407, "subsd xmm0, xmm1"], [408, "cvtsd2ss xmm0, xmm0"], [409, "mov rax, [rbp+var_D0]"], [410, "movss dword ptr [rax], xmm0"], [411, "mov rax, [rbp+var_D0]"], [412, "movss xmm1, dword ptr [rax]"], [413, "pxor xmm0, xmm0"], [414, "comiss xmm0, xmm1"], [415, "jbe locret_4190A0"], [416, "mov rax, [rbp+var_D0]"], [417, "movss xmm1, dword ptr [rax]"], [418, "movss xmm0, cs:dword_4B4BB0"], [419, "addss xmm0, xmm1"], [420, "mov rax, [rbp+var_D0]"], [421, "movss dword ptr [rax], xmm0"], [422, "jmp locret_4190A0"], [423, "mov rax, cs:qword_4E6B90"], [424, "mov rax, [rax+0E0h]"], [425, "test rax, rax"], [426, "jnz short loc_4189A5"], [427, "mov rax, cs:qword_4E6B90"], [428, "mov rax, [rax+0C0h]"], [429, "mov rax, [rax+20h]"], [430, "mov rdx, [rax+68h]"], [431, "mov rax, cs:qword_4E6B90"], [432, "movzx eax, word ptr [rax+0B8h]"], [433, "movsx rax, ax"], [434, "shl rax, 3"], [435, "add rax, rdx"], [436, "jmp short loc_4189D7"], [437, "mov rax, cs:qword_4E6B90"], [438, "mov rax, [rax+0E0h]"], [439, "mov rax, [rax]"], [440, "mov rax, [rax+20h]"], [441, "mov rdx, [rax+68h]"], [442, "mov rax, cs:qword_4E6B90"], [443, "movzx eax, word ptr [rax+0B8h]"], [444, "movsx rax, ax"], [445, "shl rax, 3"], [446, "add rax, rdx"], [447, "mov rax, [rax]"], [448, "movzx eax, word ptr [rax]"], [449, "movzx eax, ax"], [450, "movzx eax, al"], [451, "cmp eax, 10h"], [452, "jnz loc_418ADC"], [453, "mov rax, cs:qword_4E6B90"], [454, "mov rax, [rax+0E0h]"], [455, "test rax, rax"], [456, "jnz short loc_418A30"], [457, "mov rax, cs:qword_4E6B90"], [458, "mov rax, [rax+0C0h]"], [459, "mov rax, [rax+20h]"], [460, "mov rdx, [rax+68h]"], [461, "mov rax, cs:qword_4E6B90"], [462, "movzx eax, word ptr [rax+0B8h]"], [463, "movsx rax, ax"], [464, "shl rax, 3"], [465, "add rax, rdx"], [466, "jmp short loc_418A62"], [467, "mov rax, cs:qword_4E6B90"], [468, "mov rax, [rax+0E0h]"], [469, "mov rax, [rax]"], [470, "mov rax, [rax+20h]"], [471, "mov rdx, [rax+68h]"], [472, "mov rax, cs:qword_4E6B90"], [473, "movzx eax, word ptr [rax+0B8h]"], [474, "movsx rax, ax"], [475, "shl rax, 3"], [476, "add rax, rdx"], [477, "mov rax, [rax]"], [478, "mov [rbp+var_98], rax"], [479, "mov rdx, [rbp+var_D8]"], [480, "mov rax, [rbp+var_98]"], [481, "mov rsi, rdx"], [482, "mov rdi, rax"], [483, "call sub_440B9C"], [484, "movd eax, xmm0"], [485, "mov [rbp+var_9C], eax"], [486, "lea rdx, [rbp+var_AC]"], [487, "mov rsi, [rbp+var_C8]"], [488, "mov ecx, [rbp+var_9C]"], [489, "mov rax, [rbp+var_98]"], [490, "movd xmm0, ecx"], [491, "mov rdi, rax"], [492, "call sub_4408D5"], [493, "cmp [rbp+var_D0], 0"], [494, "jz locret_4190A0"], [495, "movss xmm0, [rbp+var_AC]"], [496, "mov rax, [rbp+var_D0]"], [497, "movss dword ptr [rax], xmm0"], [498, "jmp locret_4190A0"], [499, "mov rax, cs:qword_4E6B90"], [500, "mov rax, [rax+0E0h]"], [501, "test rax, rax"], [502, "jnz short loc_418B20"], [503, "mov rax, cs:qword_4E6B90"], [504, "mov rax, [rax+0C0h]"], [505, "mov rax, [rax+20h]"], [506, "mov rdx, [rax+68h]"], [507, "mov rax, cs:qword_4E6B90"], [508, "movzx eax, word ptr [rax+0B8h]"], [509, "movsx rax, ax"], [510, "shl rax, 3"], [511, "add rax, rdx"], [512, "jmp short loc_418B52"], [513, "mov rax, cs:qword_4E6B90"], [514, "mov rax, [rax+0E0h]"], [515, "mov rax, [rax]"], [516, "mov rax, [rax+20h]"], [517, "mov rdx, [rax+68h]"], [518, "mov rax, cs:qword_4E6B90"], [519, "movzx eax, word ptr [rax+0B8h]"], [520, "movsx rax, ax"], [521, "shl rax, 3"], [522, "add rax, rdx"], [523, "mov rax, [rax]"], [524, "movzx eax, word ptr [rax]"], [525, "movzx eax, ax"], [526, "movzx eax, al"], [527, "cmp eax, 1"], [528, "jnz loc_418D1B"], [529, "mov rax, cs:qword_4E6B90"], [530, "mov rax, [rax+0E0h]"], [531, "test rax, rax"], [532, "jnz short loc_418BAB"], [533, "mov rax, cs:qword_4E6B90"], [534, "mov rax, [rax+0C0h]"], [535, "mov rax, [rax+20h]"], [536, "mov rdx, [rax+68h]"], [537, "mov rax, cs:qword_4E6B90"], [538, "movzx eax, word ptr [rax+0B8h]"], [539, "movsx rax, ax"], [540, "shl rax, 3"], [541, "add rax, rdx"], [542, "jmp short loc_418BDD"], [543, "mov rax, cs:qword_4E6B90"], [544, "mov rax, [rax+0E0h]"], [545, "mov rax, [rax]"], [546, "mov rax, [rax+20h]"], [547, "mov rdx, [rax+68h]"], [548, "mov rax, cs:qword_4E6B90"], [549, "movzx eax, word ptr [rax+0B8h]"], [550, "movsx rax, ax"], [551, "shl rax, 3"], [552, "add rax, rdx"], [553, "mov rax, [rax]"], [554, "mov [rbp+var_78], rax"], [555, "mov rax, [rbp+var_78]"], [556, "mov rax, [rax+20h]"], [557, "mov [rbp+var_80], rax"], [558, "mov [rbp+var_28], 5F5E100h"], [559, "mov word ptr [rbp+var_B8+2], 0"], [560, "movzx eax, word ptr [rbp+var_B8+2]"], [561, "mov word ptr [rbp+var_B8], ax"], [562, "mov rdx, [rbp+var_C8]"], [563, "lea rcx, [rbp+var_B8]"], [564, "mov rax, [rbp+var_78]"], [565, "mov rsi, rcx"], [566, "mov rdi, rax"], [567, "call sub_454FFB"], [568, "mov rax, [rbp+var_80]"], [569, "mov rax, [rax+68h]"], [570, "mov [rbp+var_20], rax"], [571, "jmp loc_418CF1"], [572, "mov rax, [rbp+var_20]"], [573, "mov rax, [rax]"], [574, "movzx eax, word ptr [rax]"], [575, "movzx eax, ax"], [576, "and eax, 1FFh"], [577, "cmp eax, 2"], [578, "jnz loc_418CEC"], [579, "mov rax, [rbp+var_20]"], [580, "mov rax, [rax]"], [581, "mov [rbp+var_88], rax"], [582, "mov rax, [rbp+var_88]"], [583, "movzx eax, byte ptr [rax+26h]"], [584, "cmp al, 1"], [585, "jz short loc_418C84"], [586, "mov rax, [rbp+var_88]"], [587, "movzx eax, byte ptr [rax+26h]"], [588, "cmp al, 2"], [589, "jnz short loc_418CEC"], [590, "mov rax, [rbp+var_88]"], [591, "lea rcx, [rax+18h]"], [592, "lea rdx, [rbp+var_B8]"], [593, "mov rax, [rbp+var_78]"], [594, "mov rsi, rcx"], [595, "mov rdi, rax"], [596, "call sub_454FFB"], [597, "mov rdx, [rbp+var_D8]"], [598, "lea rax, [rbp+var_B8]"], [599, "mov rsi, rdx"], [600, "mov rdi, rax"], [601, "call sub_43F4FF"], [602, "mov [rbp+var_90], rax"], [603, "mov rax, [rbp+var_90]"], [604, "cmp rax, [rbp+var_28]"], [605, "jge short loc_418CEC"], [606, "mov rax, [rbp+var_90]"], [607, "mov [rbp+var_28], rax"], [608, "mov rax, [rbp+var_C8]"], [609, "mov edx, [rbp+var_B8]"], [610, "mov [rax], edx"], [611, "add [rbp+var_20], 8"], [612, "mov rax, [rbp+var_80]"], [613, "mov rdx, [rax+68h]"], [614, "mov rax, [rbp+var_80]"], [615, "movzx eax, word ptr [rax+64h]"], [616, "movsx rax, ax"], [617, "shl rax, 3"], [618, "add rax, rdx"], [619, "cmp [rbp+var_20], rax"], [620, "jb loc_418C3D"], [621, "jmp locret_4190A0"], [622, "mov rax, cs:qword_4E6B90"], [623, "mov rax, [rax+0E0h]"], [624, "test rax, rax"], [625, "jnz short loc_418D5F"], [626, "mov rax, cs:qword_4E6B90"], [627, "mov rax, [rax+0C0h]"], [628, "mov rax, [rax+20h]"], [629, "mov rdx, [rax+68h]"], [630, "mov rax, cs:qword_4E6B90"], [631, "movzx eax, word ptr [rax+0B8h]"], [632, "movsx rax, ax"], [633, "shl rax, 3"], [634, "add rax, rdx"], [635, "jmp short loc_418D91"], [636, "mov rax, cs:qword_4E6B90"], [637, "mov rax, [rax+0E0h]"], [638, "mov rax, [rax]"], [639, "mov rax, [rax+20h]"], [640, "mov rdx, [rax+68h]"], [641, "mov rax, cs:qword_4E6B90"], [642, "movzx eax, word ptr [rax+0B8h]"], [643, "movsx rax, ax"], [644, "shl rax, 3"], [645, "add rax, rdx"], [646, "mov rax, [rax]"], [647, "movzx eax, word ptr [rax]"], [648, "movzx eax, ax"], [649, "movzx eax, al"], [650, "cmp eax, 2"], [651, "jnz loc_418E4D"], [652, "mov rax, cs:qword_4E6B90"], [653, "mov rax, [rax+0E0h]"], [654, "test rax, rax"], [655, "jnz short loc_418DEA"], [656, "mov rax, cs:qword_4E6B90"], [657, "mov rax, [rax+0C0h]"], [658, "mov rax, [rax+20h]"], [659, "mov rdx, [rax+68h]"], [660, "mov rax, cs:qword_4E6B90"], [661, "movzx eax, word ptr [rax+0B8h]"], [662, "movsx rax, ax"], [663, "shl rax, 3"], [664, "add rax, rdx"], [665, "jmp short loc_418E1C"], [666, "mov rax, cs:qword_4E6B90"], [667, "mov rax, [rax+0E0h]"], [668, "mov rax, [rax]"], [669, "mov rax, [rax+20h]"], [670, "mov rdx, [rax+68h]"], [671, "mov rax, cs:qword_4E6B90"], [672, "movzx eax, word ptr [rax+0B8h]"], [673, "movsx rax, ax"], [674, "shl rax, 3"], [675, "add rax, rdx"], [676, "mov rax, [rax]"], [677, "mov [rbp+var_70], rax"], [678, "mov rax, [rbp+var_70]"], [679, "movzx edx, word ptr [rax+18h]"], [680, "mov rax, [rbp+var_C8]"], [681, "mov [rax], dx"], [682, "mov rax, [rbp+var_70]"], [683, "movzx edx, word ptr [rax+1Ah]"], [684, "mov rax, [rbp+var_C8]"], [685, "mov [rax+2], dx"], [686, "jmp locret_4190A0"], [687, "mov rax, cs:qword_4E6B90"], [688, "mov rax, [rax+0E0h]"], [689, "test rax, rax"], [690, "jnz short loc_418E91"], [691, "mov rax, cs:qword_4E6B90"], [692, "mov rax, [rax+0C0h]"], [693, "mov rax, [rax+20h]"], [694, "mov rdx, [rax+68h]"], [695, "mov rax, cs:qword_4E6B90"], [696, "movzx eax, word ptr [rax+0B8h]"], [697, "movsx rax, ax"], [698, "shl rax, 3"], [699, "add rax, rdx"], [700, "jmp short loc_418EC3"], [701, "mov rax, cs:qword_4E6B90"], [702, "mov rax, [rax+0E0h]"], [703, "mov rax, [rax]"], [704, "mov rax, [rax+20h]"], [705, "mov rdx, [rax+68h]"], [706, "mov rax, cs:qword_4E6B90"], [707, "movzx eax, word ptr [rax+0B8h]"], [708, "movsx rax, ax"], [709, "shl rax, 3"], [710, "add rax, rdx"], [711, "mov rax, [rax]"], [712, "movzx eax, word ptr [rax]"], [713, "movzx eax, ax"], [714, "movzx eax, al"], [715, "cmp eax, 4"], [716, "jnz locret_4190A0"], [717, "mov rax, cs:qword_4E6B90"], [718, "mov rax, [rax+0E0h]"], [719, "test rax, rax"], [720, "jnz short loc_418F1C"], [721, "mov rax, cs:qword_4E6B90"], [722, "mov rax, [rax+0C0h]"], [723, "mov rax, [rax+20h]"], [724, "mov rdx, [rax+68h]"], [725, "mov rax, cs:qword_4E6B90"], [726, "movzx eax, word ptr [rax+0B8h]"], [727, "movsx rax, ax"], [728, "shl rax, 3"], [729, "add rax, rdx"], [730, "jmp short loc_418F4E"], [731, "mov rax, cs:qword_4E6B90"], [732, "mov rax, [rax+0E0h]"], [733, "mov rax, [rax]"], [734, "mov rax, [rax+20h]"], [735, "mov rdx, [rax+68h]"], [736, "mov rax, cs:qword_4E6B90"], [737, "movzx eax, word ptr [rax+0B8h]"], [738, "movsx rax, ax"], [739, "shl rax, 3"], [740, "add rax, rdx"], [741, "mov rax, [rax]"], [742, "mov [rbp+var_50], rax"], [743, "mov [rbp+var_48], 5F5E100h"], [744, "mov rax, [rbp+var_50]"], [745, "mov rax, [rax+28h]"], [746, "mov [rbp+var_40], rax"], [747, "mov rax, [rbp+var_40]"], [748, "mov [rbp+var_38], rax"], [749, "mov rax, [rbp+var_50]"], [750, "mov rax, [rax+28h]"], [751, "mov [rbp+var_30], rax"], [752, "jmp short loc_418FCC"], [753, "mov rax, [rbp+var_30]"], [754, "lea rcx, [rax+4]"], [755, "mov rdx, [rbp+var_D8]"], [756, "mov rax, [rbp+var_30]"], [757, "mov rsi, rcx"], [758, "mov rdi, rax"], [759, "call sub_43F66B"], [760, "mov [rbp+var_58], rax"], [761, "mov rax, [rbp+var_58]"], [762, "cmp rax, [rbp+var_48]"], [763, "jge short loc_418FC7"], [764, "mov rax, [rbp+var_58]"], [765, "mov [rbp+var_48], rax"], [766, "mov rax, [rbp+var_30]"], [767, "mov [rbp+var_38], rax"], [768, "mov rax, [rbp+var_30]"], [769, "add rax, 4"], [770, "mov [rbp+var_40], rax"], [771, "add [rbp+var_30], 4"], [772, "mov rax, [rbp+var_50]"], [773, "mov rdx, [rax+28h]"], [774, "mov rax, [rbp+var_50]"], [775, "movzx eax, word ptr [rax+20h]"], [776, "movsx rax, ax"], [777, "shl rax, 2"], [778, "sub rax, 4"], [779, "add rax, rdx"], [780, "cmp [rbp+var_30], rax"], [781, "jb short loc_418F7F"], [782, "mov rax, [rbp+var_50]"], [783, "movzx eax, word ptr [rax+10h]"], [784, "movzx eax, ax"], [785, "and eax, 1"], [786, "test eax, eax"], [787, "jnz short loc_41904B"], [788, "mov rax, [rbp+var_50]"], [789, "mov rcx, [rax+28h]"], [790, "mov rdx, [rbp+var_D8]"], [791, "mov rax, [rbp+var_30]"], [792, "mov rsi, rcx"], [793, "mov rdi, rax"], [794, "call sub_43F66B"], [795, "mov [rbp+var_58], rax"], [796, "mov rax, [rbp+var_58]"], [797, "cmp rax, [rbp+var_48]"], [798, "jge short loc_41904B"], [799, "mov rax, [rbp+var_58]"], [800, "mov [rbp+var_48], rax"], [801, "mov rax, [rbp+var_30]"], [802, "mov [rbp+var_38], rax"], [803, "mov rax, [rbp+var_50]"], [804, "mov rax, [rax+28h]"], [805, "mov [rbp+var_40], rax"], [806, "mov rax, [rbp+var_38]"], [807, "mov [rbp+var_60], rax"], [808, "mov rax, [rbp+var_40]"], [809, "mov [rbp+var_68], rax"], [810, "lea rdi, [rbp+var_AC]"], [811, "mov rcx, [rbp+var_C8]"], [812, "mov rdx, [rbp+var_D8]"], [813, "mov rsi, [rbp+var_68]"], [814, "mov rax, [rbp+var_60]"], [815, "mov r8, rdi"], [816, "mov rdi, rax"], [817, "call sub_417FAE"], [818, "cmp [rbp+var_D0], 0"], [819, "jz short locret_4190A0"], [820, "movss xmm0, [rbp+var_AC]"], [821, "mov rax, [rbp+var_D0]"], [822, "movss dword ptr [rax], xmm0"], [823, "leave"], [824, "retn"]], "data_dep": [[7, 6], [8, 4], [9, 8], [10, 4], [11, 10], [12, 11], [14, 13], [15, 14], [16, 15], [18, 17], [19, 18], [20, 19], [22, 21], [23, 22], [24, 23], [25, 20], [25, 24], [28, 27], [29, 28], [30, 29], [31, 30], [33, 32], [34, 33], [35, 34], [36, 31], [36, 35], [37, 25], [37, 36], [38, 37], [39, 38], [40, 39], [41, 40], [42, 41], [44, 43], [45, 44], [46, 45], [48, 47], [49, 48], [50, 49], [52, 51], [53, 52], [54, 53], [55, 50], [55, 54], [58, 57], [59, 58], [60, 59], [61, 60], [63, 62], [64, 63], [65, 64], [66, 61], [66, 65], [67, 66], [67, 55], [68, 67], [69, 5], [70, 69], [71, 70], [72, 68], [73, 72], [75, 71], [75, 73], [77, 76], [77, 75], [78, 68], [79, 78], [82, 79], [82, 81], [83, 77], [84, 83], [84, 82], [85, 5], [86, 85], [87, 86], [88, 68], [89, 88], [91, 89], [91, 87], [93, 92], [93, 91], [94, 68], [95, 94], [96, 95], [97, 96], [98, 68], [99, 98], [101, 99], [103, 102], [103, 101], [105, 68], [106, 105], [109, 106], [109, 108], [110, 109], [110, 103], [110, 93], [111, 110], [112, 84], [113, 111], [115, 113], [116, 115], [117, 116], [119, 118], [119, 117], [120, 119], [121, 120], [123, 121], [123, 122], [124, 101], [124, 96], [125, 121], [127, 126], [127, 125], [128, 127], [129, 68], [130, 129], [131, 130], [132, 101], [132, 96], [133, 68], [134, 133], [136, 134], [137, 135], [137, 136], [138, 128], [138, 121], [139, 138], [139, 137], [140, 101], [140, 96], [141, 68], [142, 141], [143, 121], [143, 142], [143, 128], [144, 101], [144, 96], [145, 68], [146, 145], [148, 147], [148, 146], [149, 96], [149, 101], [150, 68], [151, 150], [152, 128], [152, 121], [153, 152], [153, 151], [154, 101], [154, 96], [155, 68], [156, 155], [158, 157], [158, 156], [159, 128], [159, 158], [159, 121], [160, 96], [160, 101], [161, 68], [162, 161], [164, 163], [164, 162], [165, 101], [165, 96], [166, 68], [167, 166], [169, 167], [169, 168], [170, 101], [170, 96], [171, 68], [172, 171], [173, 121], [173, 128], [174, 173], [174, 172], [175, 101], [175, 96], [176, 68], [177, 176], [178, 121], [178, 177], [178, 128], [179, 101], [179, 96], [180, 68], [181, 180], [182, 128], [182, 121], [182, 181], [183, 182], [184, 68], [185, 184], [186, 121], [186, 128], [187, 186], [187, 185], [188, 187], [190, 189], [190, 183], [191, 101], [191, 96], [192, 183], [194, 193], [194, 192], [195, 194], [197, 196], [197, 188], [198, 96], [198, 101], [199, 188], [201, 199], [201, 200], [202, 201], [203, 68], [204, 203], [205, 204], [206, 205], [207, 206], [208, 207], [209, 68], [210, 209], [211, 210], [213, 212], [213, 211], [214, 213], [215, 68], [216, 215], [219, 218], [219, 216], [220, 219], [221, 68], [222, 221], [223, 222], [224, 223], [225, 68], [226, 225], [228, 226], [230, 229], [230, 228], [231, 230], [233, 68], [234, 233], [237, 236], [237, 234], [238, 237], [239, 214], [240, 239], [242, 231], [242, 240], [242, 238], [243, 242], [243, 220], [244, 243], [244, 241], [245, 244], [246, 68], [247, 246], [250, 249], [250, 247], [251, 250], [252, 68], [253, 252], [256, 253], [256, 255], [257, 256], [258, 214], [259, 258], [261, 259], [261, 257], [262, 261], [262, 251], [263, 262], [263, 260], [264, 263], [265, 68], [266, 265], [267, 266], [269, 268], [269, 267], [270, 269], [271, 68], [272, 271], [275, 272], [275, 274], [276, 275], [277, 68], [278, 277], [279, 278], [280, 279], [281, 68], [282, 281], [284, 282], [286, 285], [286, 284], [287, 286], [289, 68], [290, 289], [293, 290], [293, 292], [294, 293], [295, 270], [296, 295], [298, 294], [298, 287], [298, 296], [299, 276], [299, 298], [300, 297], [300, 299], [301, 300], [302, 68], [303, 302], [306, 303], [306, 305], [307, 306], [308, 68], [309, 308], [312, 309], [312, 311], [313, 312], [314, 270], [315, 314], [317, 313], [317, 315], [318, 317], [318, 307], [319, 316], [319, 318], [320, 319], [321, 12], [321, 7], [322, 3], [323, 5], [324, 301], [325, 319], [325, 245], [326, 321], [327, 325], [329, 4], [330, 329], [331, 12], [331, 7], [332, 4], [333, 332], [333, 331], [335, 202], [335, 188], [336, 183], [336, 335], [336, 195], [337, 207], [338, 68], [339, 338], [341, 68], [342, 341], [343, 339], [343, 342], [345, 344], [345, 343], [346, 345], [347, 68], [348, 347], [351, 348], [351, 350], [352, 351], [353, 68], [354, 353], [355, 354], [356, 355], [357, 68], [358, 357], [360, 358], [362, 361], [362, 360], [363, 362], [365, 68], [366, 365], [369, 368], [369, 366], [370, 369], [371, 116], [371, 346], [372, 371], [374, 363], [374, 372], [374, 370], [375, 374], [375, 352], [376, 375], [376, 373], [377, 376], [378, 3], [379, 377], [379, 378], [380, 68], [381, 379], [381, 380], [384, 381], [384, 383], [385, 384], [386, 68], [387, 386], [387, 379], [390, 389], [390, 387], [391, 390], [392, 346], [392, 116], [393, 392], [395, 393], [395, 391], [396, 395], [396, 385], [397, 394], [397, 396], [398, 397], [399, 3], [400, 398], [400, 399], [401, 4], [402, 401], [403, 346], [403, 116], [405, 403], [405, 404], [407, 405], [407, 406], [408, 407], [409, 4], [410, 409], [410, 408], [411, 4], [412, 410], [412, 411], [414, 413], [414, 412], [415, 401], [416, 4], [417, 400], [417, 421], [417, 416], [417, 379], [417, 410], [419, 417], [419, 418], [420, 4], [421, 420], [421, 419], [424, 423], [425, 424], [426, 425], [428, 427], [429, 428], [430, 429], [432, 431], [433, 432], [434, 433], [435, 430], [435, 434], [438, 437], [439, 438], [440, 439], [441, 440], [443, 442], [444, 443], [445, 444], [446, 445], [446, 441], [447, 446], [447, 435], [448, 447], [449, 448], [450, 449], [451, 450], [452, 451], [454, 453], [455, 454], [456, 455], [458, 457], [459, 458], [460, 459], [462, 461], [463, 462], [464, 463], [465, 460], [465, 464], [468, 467], [469, 468], [470, 469], [471, 470], [473, 472], [474, 473], [475, 474], [476, 471], [476, 475], [477, 476], [477, 465], [478, 477], [479, 5], [480, 478], [481, 479], [482, 480], [484, 11], [484, 6], [485, 484], [486, 479], [486, 12], [486, 7], [487, 3], [488, 485], [489, 478], [490, 488], [491, 489], [493, 4], [494, 493], [495, 12], [495, 7], [496, 4], [497, 495], [497, 496], [500, 499], [501, 500], [502, 501], [504, 503], [505, 504], [506, 505], [508, 507], [509, 508], [510, 509], [511, 506], [511, 510], [514, 513], [515, 514], [516, 515], [517, 516], [519, 518], [520, 519], [521, 520], [522, 517], [522, 521], [523, 522], [523, 511], [524, 523], [525, 524], [526, 525], [527, 526], [528, 527], [530, 529], [531, 530], [532, 531], [534, 533], [535, 534], [536, 535], [538, 537], [539, 538], [540, 539], [541, 536], [541, 540], [544, 543], [545, 544], [546, 545], [547, 546], [549, 548], [550, 549], [551, 550], [552, 547], [552, 551], [553, 552], [553, 541], [554, 553], [555, 554], [556, 555], [557, 556], [560, 559], [561, 560], [562, 3], [563, 561], [564, 554], [565, 563], [566, 564], [568, 557], [569, 568], [570, 569], [572, 570], [572, 611], [573, 572], [573, 610], [574, 610], [574, 573], [575, 574], [576, 575], [577, 576], [578, 577], [579, 611], [579, 570], [580, 579], [580, 610], [581, 580], [582, 581], [583, 610], [583, 582], [584, 583], [585, 584], [586, 581], [587, 610], [587, 586], [588, 587], [589, 588], [590, 581], [591, 610], [591, 591], [591, 563], [591, 590], [592, 613], [592, 561], [593, 554], [594, 591], [595, 593], [597, 5], [598, 596], [598, 561], [599, 597], [600, 598], [602, 601], [603, 602], [604, 607], [604, 558], [604, 603], [605, 604], [606, 602], [607, 606], [608, 3], [609, 561], [610, 609], [610, 608], [611, 570], [611, 611], [612, 557], [613, 612], [613, 610], [614, 557], [615, 610], [615, 614], [616, 615], [617, 616], [618, 617], [618, 613], [619, 618], [619, 570], [619, 611], [620, 619], [623, 622], [624, 623], [625, 624], [627, 626], [628, 627], [629, 628], [631, 630], [632, 631], [633, 632], [634, 629], [634, 633], [637, 636], [638, 637], [639, 638], [640, 639], [642, 641], [643, 642], [644, 643], [645, 640], [645, 644], [646, 645], [646, 634], [647, 646], [648, 647], [649, 648], [650, 649], [651, 650], [653, 652], [654, 653], [655, 654], [657, 656], [658, 657], [659, 658], [661, 660], [662, 661], [663, 662], [664, 659], [664, 663], [667, 666], [668, 667], [669, 668], [670, 669], [672, 671], [673, 672], [674, 673], [675, 670], [675, 674], [676, 664], [676, 675], [677, 676], [678, 677], [679, 678], [680, 3], [681, 680], [681, 679], [682, 677], [683, 681], [683, 682], [684, 3], [685, 684], [685, 683], [688, 687], [689, 688], [690, 689], [692, 691], [693, 692], [694, 693], [696, 695], [697, 696], [698, 697], [699, 694], [699, 698], [702, 701], [703, 702], [704, 703], [705, 704], [707, 706], [708, 707], [709, 708], [710, 705], [710, 709], [711, 710], [711, 699], [712, 711], [713, 712], [714, 713], [715, 714], [716, 715], [718, 717], [719, 718], [720, 719], [722, 721], [723, 722], [724, 723], [726, 725], [727, 726], [728, 727], [729, 724], [729, 728], [732, 731], [733, 732], [734, 733], [735, 734], [737, 736], [738, 737], [739, 738], [740, 735], [740, 739], [741, 729], [741, 740], [742, 741], [744, 742], [745, 744], [746, 745], [747, 746], [748, 747], [749, 742], [750, 749], [751, 750], [753, 771], [753, 751], [754, 754], [754, 753], [755, 5], [756, 771], [756, 751], [757, 754], [758, 756], [760, 759], [761, 760], [762, 743], [762, 761], [762, 765], [763, 762], [764, 760], [765, 764], [766, 771], [766, 751], [767, 766], [768, 771], [768, 751], [769, 768], [770, 769], [771, 771], [771, 751], [772, 742], [773, 772], [774, 742], [775, 774], [776, 775], [777, 776], [778, 777], [779, 778], [779, 773], [780, 771], [780, 779], [780, 751], [781, 780], [782, 742], [783, 782], [784, 783], [785, 784], [786, 785], [787, 786], [788, 742], [789, 788], [790, 5], [791, 771], [791, 751], [792, 789], [793, 791], [795, 794], [796, 795], [797, 796], [797, 743], [797, 765], [798, 797], [799, 795], [800, 799], [801, 771], [801, 751], [802, 801], [803, 742], [804, 803], [805, 804], [806, 802], [806, 767], [806, 748], [807, 806], [808, 805], [808, 770], [808, 746], [809, 808], [810, 758], [810, 12], [810, 7], [810, 793], [811, 3], [812, 5], [813, 809], [814, 807], [815, 810], [816, 814], [818, 4], [819, 818], [820, 12], [820, 7], [821, 4], [822, 821], [822, 820], [824, 684], [824, 618], [824, 492], [824, 817], [824, 399], [824, 496], [824, 328], [824, 714], [824, 332], [824, 821], [824, 411], [824, 420]]}
void NET_Shutdown (void) { qsocket_t *sock; SetNetTime(); for (sock = net_activeSockets; sock; sock = sock->next) NET_Close(sock); // // shutdown the drivers // for (net_driverlevel = 0; net_driverlevel < net_numdrivers; net_driverlevel++) { if (net_drivers[net_driverlevel].initialized == true) { net_drivers[net_driverlevel].Shutdown (); net_drivers[net_driverlevel].initialized = false; } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40EC2A", "function_addr": 4254762, "binary_name": "b43552e0fff71d31c631eb65f8db1a5e8d498b174719b2349c5cb5565f0c6dac.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 18h"], [1, "call sub_40E170"], [2, "mov rax, cs:qword_453D60"], [3, "mov [rsp+18h+var_10], rax"], [4, "jmp short loc_40EC5B"], [5, "mov rax, [rsp+18h+var_10]"], [6, "mov rdi, rax"], [7, "call sub_40E469"], [8, "mov rax, [rsp+18h+var_10]"], [9, "mov rax, [rax]"], [10, "mov [rsp+18h+var_10], rax"], [11, "cmp [rsp+18h+var_10], 0"], [12, "jnz short loc_40EC41"], [13, "mov cs:dword_453E4C, 0"], [14, "jmp short loc_40ECE4"], [15, "mov eax, cs:dword_453E4C"], [16, "movsxd rdx, eax"], [17, "mov rax, rdx"], [18, "add rax, rax"], [19, "add rax, rdx"], [20, "shl rax, 5"], [21, "add rax, 44A728h"], [22, "mov eax, [rax]"], [23, "cmp eax, 1"], [24, "jnz short loc_40ECD5"], [25, "mov eax, cs:dword_453E4C"], [26, "movsxd rdx, eax"], [27, "mov rax, rdx"], [28, "add rax, rax"], [29, "add rax, rdx"], [30, "shl rax, 5"], [31, "add rax, 44A778h"], [32, "mov rax, [rax]"], [33, "call rax"], [34, "mov eax, cs:dword_453E4C"], [35, "movsxd rdx, eax"], [36, "mov rax, rdx"], [37, "add rax, rax"], [38, "add rax, rdx"], [39, "shl rax, 5"], [40, "add rax, 44A728h"], [41, "mov dword ptr [rax], 0"], [42, "mov eax, cs:dword_453E4C"], [43, "add eax, 1"], [44, "mov cs:dword_453E4C, eax"], [45, "mov edx, cs:dword_453E4C"], [46, "mov eax, cs:dword_43E2F8"], [47, "cmp edx, eax"], [48, "jl loc_40EC6F"], [49, "nop"], [50, "nop"], [51, "add rsp, 18h"], [52, "retn"]], "data_dep": [[3, 2], [5, 10], [5, 3], [6, 5], [8, 3], [8, 10], [9, 8], [10, 9], [11, 10], [11, 3], [12, 11], [15, 44], [15, 13], [16, 15], [17, 16], [18, 17], [19, 18], [19, 16], [20, 19], [21, 20], [22, 41], [22, 21], [23, 22], [24, 23], [25, 44], [25, 13], [26, 25], [27, 26], [28, 27], [29, 26], [29, 28], [30, 29], [31, 30], [32, 31], [32, 41], [33, 32], [34, 13], [34, 44], [35, 34], [36, 35], [37, 36], [38, 35], [38, 37], [39, 38], [40, 39], [41, 40], [42, 44], [42, 13], [43, 42], [44, 43], [45, 13], [45, 44], [47, 46], [47, 45], [48, 47], [51, 0], [52, 46]]}
static void load_GL_NV_draw_texture(GLADloadproc load) { if(!GLAD_GL_NV_draw_texture) return; glad_glDrawTextureNV = (PFNGLDRAWTEXTURENVPROC)load("glDrawTextureNV"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412A96", "function_addr": 4270742, "binary_name": "f5227d6b31190984a5b857df5f03cff4635a382d1852a53d4ff2fd0ada8a07c1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov eax, cs:dword_43C020"], [5, "test eax, eax"], [6, "jz short loc_412AC0"], [7, "mov rax, [rbp+var_8]"], [8, "mov edi, offset aGldrawtexturen"], [9, "call rax"], [10, "mov cs:qword_43E860, rax"], [11, "jmp short locret_412AC1"], [12, "nop"], [13, "leave"], [14, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 3], [9, 7], [10, 9], [14, 9], [14, 5]]}
t_stat cpu_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr) { const char helpString[] = /****************************************************************************/ " The %D device is a 1714 central processing unit.\n" "1 Hardware Description\n" " The 1714 can access up to 64KW of memory (4KW, 8KW, 16KW, 32KW and 64KW\n" " are supported). A 1705 multi-level interrupt system with a direct\n" " storage access bus and 3 1706-A buffered data channels are included.\n\n" " The amount of memory available to the system can be changed with:\n\n" "+sim> SET CPU nK\n\n" " The original 1700 series CPU (the 1704) only allowed up to 32KW of\n" "to be attached to the CPU and indirect memory references would continue\n" "to loop through memory if bit 15 of the target address was set. When 64KW\n" " support was added, indirect addressing was limited to a single level\n" " so that the entire 16-bits of address could be used. Systems which\n" " supported 64KW of memory had a front-panel switch to allow software\n" " to run in either mode. The indirect addressing mode may be changed by:\n\n" "+sim> SET CPU MODE32K\n" "+sim> SET CPU MODE65K\n\n" " In 32KW addressing mode, the number of indirect address chaining\n" " operations is limited to 10000 to avoid infinite loops.\n" "2 Equipment Address\n" " The CPU is not directly accessible via an equipment address but it does\n" " reserve interrupt 0 (and therefore equipment address 0) for parity\n" " errors (never detected by the simulator), protect faults and power fail\n" " (not supported by the simulator).\n" "2 Instruction Set\n" " The instruction set implemented by the CDC 1700 series, and later\n" " Cyber-18 models changed as new features were added. When originally\n" " released, the 1704 had a number of instruction bits which were ignored\n" " by the CPU (e.g. the IIN and EIN instructions each had 8 unused bits).\n" " Later the instruction set was refined into Basic and Enhanced. The\n" " Basic instruction set reserved these unsed bits (e.g. IIN and EIN\n" " instructions were only recognised if the previously unused bits were\n" " all set to zero). The MP17 microprocessor implementation of the\n" " architecture made use of these newly available bits to implement\n" " the Enhanced instruction set. The supported instruction set may be\n" " changed by:\n\n" "+sim> SET CPU INSTR=ORIGINAL\n" "+sim> SET CPU INSTR=BASIC\n" "+sim> SET CPU INSTR=ENHANCED\n\n" " The Enhanced instruction set is not currently implemented by the\n" " simulator. Note that disassembly will always be done with respect to\n" " the currently selected instruction set. If the instruction set is set\n" " to BASIC, enhanced instructions will be displayed as:\n\n" "+ NOP [ Possible enhanced instruction\n" "2 Character Addressing Mode\n" " The ORIGINAL instruction set could be enhanced with character (8-bit)\n" " addressing mode which added 2 new instructions; enable/disable\n" " character addressing mode (ECA/DCA). These new instructions and the\n" " ability to perform character addressing may be controlled by:\n\n" "+sim> SET CPU CHAR\n" "+sim> SET CPU NOCHAR\n" "2 $Registers\n" "2 Front Panel Switches\n" " The 1714 front panel includes a number of switches which control the\n" " operation of the CPU. Note that selective stop and selective skip are\n" " used extensively to control execution of the System Maintenance\n" " Monitor.\n" "3 Selective Stop\n" " The selective stop switch controls how the 'Selective Stop' (SLS)\n" " instruction executes. If the switch is off, SLS executes as a\n" " no-operation. If the switch is on, SLS executes as a halt instruction.\n" " Continuing after the halt causes the CPU to resume execution at the\n" " instruction following the SLS.\n\n" "+sim> SET CPU SSTOP\n" "+sim> SET CPU NOSSTOP\n\n" "3 Selective Skip\n" " The selective skip switch controls how the SWS and SWN skip\n" " instructions execute. SWS will skip if the switch is set and SWN will\n" " skip if the switch is not set.\n\n" "+sim> SET CPU SSKIP\n" "+sim> SET CPU NOSSKIP\n\n" "3 Protect\n" " Each word of memory on the CDC 1700 series consists of 18-bits; 16-bits\n" " of data/instruction, a parity bit (which is not implemented in the\n" " simulator) and a program bit. If the protect switch is off, any program\n" " may reference any word of memory. If the protect switch is on, there are\n" " a set of rules which control how memory accesses work and when to\n" " generate a program protect violation - see one of the 1700 reference\n" " manuals on bitsavers.org for exact details. This means that the\n" " operating system can be protected from modification by application\n" " programs but there is no isolation between application programs.\n\n" "+sim> SET CPU PROTECT\n" "+sim> SET CPU NOPROTECT\n\n" " The Simulator fully implements CPU protect mode allowing protected\n" " operating systems such as MSOS 5 to execute. It does not implement\n" " peripheral protect operation which allows unprotected applications to\n" " directly access some unprotected peripherals.\n\n" " Operating systems and other programs which run with the protect switch\n" " on usually start up with the protect switch off, manipulate the\n" " protect bits in memory (using the CPB/SPB instructions) and then ask\n" " the operator to set the protect switch on.\n" "1 Configuration\n" " The CPU is configured with various simh SET commands.\n" "2 $Set commands\n"; return scp_help(st, dptr, uptr, flag, helpString, cptr); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40856C", "function_addr": 4228460, "binary_name": "bf7ae1a4450b359f92e96f59068a71bc49375889282b3e96663c3c09631e7838.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 1330h"], [3, "mov [rbp+var_1308], rdi"], [4, "mov [rbp+var_1310], rsi"], [5, "mov [rbp+var_1318], rdx"], [6, "mov [rbp+var_131C], ecx"], [7, "mov [rbp+var_1328], r8"], [8, "lea rax, [rbp+var_1300]"], [9, "mov edx, offset aTheDDeviceIsA1"], [10, "mov ecx, 25Fh"], [11, "mov rdi, rax"], [12, "mov rsi, rdx"], [13, "rep movsq"], [14, "mov rdx, rsi"], [15, "mov rax, rdi"], [16, "movzx ecx, word ptr [rdx]"], [17, "mov [rax], cx"], [18, "mov r8, [rbp+var_1328]"], [19, "lea rdi, [rbp+var_1300]"], [20, "mov ecx, [rbp+var_131C]"], [21, "mov rdx, [rbp+var_1318]"], [22, "mov rsi, [rbp+var_1310]"], [23, "mov rax, [rbp+var_1308]"], [24, "mov r9, r8"], [25, "mov r8, rdi"], [26, "mov rdi, rax"], [27, "mov eax, 0"], [28, "call sub_442E51"], [29, "leave"], [30, "retn"]], "data_dep": [[11, 8], [12, 9], [14, 12], [15, 11], [16, 14], [17, 16], [17, 15], [18, 7], [19, 11], [20, 6], [21, 5], [22, 4], [23, 3], [24, 18], [25, 19], [26, 23], [30, 28]]}
static size_t FL2_initDStream_prop(FL2_DStream* const fds, BYTE prop) { fds->doHash = prop >> FL2_PROP_HASH_BIT; prop &= FL2_LZMA_PROP_MASK; /* If MT decoding is enabled and the dict is not too large, decoder init will occur elsewhere */ #ifndef FL2_SINGLETHREAD if (fds->decmt == NULL || FL2_lzma2DecMt_initProp(fds->decmt, prop)) #endif CHECK_F(LZMA2_initDecoder(&fds->dec, prop, NULL, 0)); #ifndef NO_XXHASH if (fds->doHash) { if (fds->xxh == NULL) { DEBUGLOG(3, "Creating hash state"); fds->xxh = XXH32_createState(); if (fds->xxh == NULL) return FL2_ERROR(memory_allocation); } XXH32_reset(fds->xxh, 0); } #endif return FL2_error_no_error; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42FB4C", "function_addr": 4389708, "binary_name": "24d78b488ac6efd29907ebed989997e5db3f729ef5517ddab75dceaf3790cdd4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov eax, esi"], [5, "mov [rbp+var_1C], al"], [6, "movzx eax, [rbp+var_1C]"], [7, "shr al, 7"], [8, "mov edx, eax"], [9, "mov rax, [rbp+var_18]"], [10, "mov [rax+0DFDCh], dl"], [11, "and [rbp+var_1C], 3Fh"], [12, "mov rax, [rbp+var_18]"], [13, "mov rax, [rax]"], [14, "test rax, rax"], [15, "jz short loc_42FB99"], [16, "movzx edx, [rbp+var_1C]"], [17, "mov rax, [rbp+var_18]"], [18, "mov rax, [rax]"], [19, "mov esi, edx"], [20, "mov rdi, rax"], [21, "call sub_42E608"], [22, "test eax, eax"], [23, "jz short loc_42FBD0"], [24, "movzx eax, [rbp+var_1C]"], [25, "mov rdx, [rbp+var_18]"], [26, "lea rdi, [rdx+10h]"], [27, "mov ecx, 0"], [28, "mov edx, 0"], [29, "mov esi, eax"], [30, "call sub_4063CB"], [31, "mov [rbp+var_8], rax"], [32, "mov rax, [rbp+var_8]"], [33, "mov rdi, rax"], [34, "call sub_429695"], [35, "test eax, eax"], [36, "jz short loc_42FBD0"], [37, "mov rax, [rbp+var_8]"], [38, "jmp short locret_42FC35"], [39, "mov rax, [rbp+var_18]"], [40, "movzx eax, byte ptr [rax+0DFDCh]"], [41, "test al, al"], [42, "jz short loc_42FC30"], [43, "mov rax, [rbp+var_18]"], [44, "mov rax, [rax+0DFC0h]"], [45, "test rax, rax"], [46, "jnz short loc_42FC18"], [47, "call sub_4089ED"], [48, "mov rdx, [rbp+var_18]"], [49, "mov [rdx+0DFC0h], rax"], [50, "mov rax, [rbp+var_18]"], [51, "mov rax, [rax+0DFC0h]"], [52, "test rax, rax"], [53, "jnz short loc_42FC18"], [54, "mov rax, 0FFFFFFFFFFFFFFF6h"], [55, "jmp short locret_42FC35"], [56, "mov rax, [rbp+var_18]"], [57, "mov rax, [rax+0DFC0h]"], [58, "mov esi, 0"], [59, "mov rdi, rax"], [60, "call sub_408A4B"], [61, "mov eax, 0"], [62, "leave"], [63, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 3], [10, 9], [10, 8], [11, 5], [12, 3], [13, 10], [13, 12], [14, 13], [15, 14], [16, 11], [17, 3], [18, 17], [18, 10], [19, 16], [20, 18], [22, 21], [23, 22], [24, 11], [25, 3], [26, 20], [26, 10], [26, 25], [29, 24], [31, 30], [32, 31], [33, 32], [35, 34], [36, 35], [37, 31], [39, 3], [40, 10], [40, 39], [41, 40], [42, 41], [43, 3], [44, 10], [44, 43], [45, 44], [46, 45], [48, 3], [49, 47], [49, 48], [50, 3], [51, 50], [51, 49], [52, 51], [53, 52], [56, 3], [57, 56], [57, 10], [57, 49], [59, 57], [63, 37], [63, 61], [63, 54]]}
void testHEX64ArrayNotWithinDeltaAndMessage(void) { #ifndef UNITY_SUPPORT_64 TEST_IGNORE(); #else UNITY_UINT64 expected[] = {0xABCD1234, 0xABCD1122, 0xABCD1277}; UNITY_UINT64 acutalBigDelta[] = {0xABCD1267, 0xABCD1188, 0xABCD12AC}; EXPECT_ABORT_BEGIN TEST_ASSERT_HEX64_ARRAY_WITHIN_MESSAGE(1, expected, acutalBigDelta, 3, "Custom Message."); VERIFY_FAILS_END #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_419020", "function_addr": 4296736, "binary_name": "46f2098509954f9b46a13d7d65487eeec0d3b9bfe0bee64bfb7700b5b7a10d06.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov rax, cs:qword_477840"], [4, "add rax, 1"], [5, "mov cs:qword_477840, rax"], [6, "mov eax, 0ABCD1234h"], [7, "mov [rbp+var_20], rax"], [8, "mov eax, 0ABCD1122h"], [9, "mov [rbp+var_18], rax"], [10, "mov eax, 0ABCD1277h"], [11, "mov [rbp+var_10], rax"], [12, "mov eax, 0ABCD1267h"], [13, "mov [rbp+var_40], rax"], [14, "mov eax, 0ABCD1188h"], [15, "mov [rbp+var_38], rax"], [16, "mov eax, 0ABCD12ACh"], [17, "mov [rbp+var_30], rax"], [18, "call sub_437A0C"], [19, "mov rax, cs:qword_477848"], [20, "add rax, 1"], [21, "mov cs:qword_477848, rax"], [22, "mov edi, offset env"], [23, "call __setjmp"], [24, "mov rdx, cs:qword_477850"], [25, "add rdx, 1"], [26, "mov cs:qword_477850, rdx"], [27, "test eax, eax"], [28, "jnz short loc_4190F9"], [29, "mov rax, cs:qword_477858"], [30, "add rax, 1"], [31, "mov cs:qword_477858, rax"], [32, "lea rdx, [rbp+var_40]"], [33, "lea rax, [rbp+var_20]"], [34, "push 1"], [35, "push 48h "], [36, "mov r9d, 944h"], [37, "mov r8d, offset aCustomMessage"], [38, "mov ecx, 3"], [39, "mov rsi, rax"], [40, "mov edi, 1"], [41, "call sub_405029"], [42, "add rsp, 10h"], [43, "mov rax, cs:qword_477860"], [44, "add rax, 1"], [45, "mov cs:qword_477860, rax"], [46, "call sub_437A39"], [47, "mov rax, cs:qword_477868"], [48, "add rax, 1"], [49, "mov cs:qword_477868, rax"], [50, "mov rax, cs:qword_46C120"], [51, "cmp rax, 1"], [52, "setnz al"], [53, "movzx eax, al"], [54, "mov cs:qword_46C120, rax"], [55, "mov rax, cs:qword_46C120"], [56, "cmp rax, 1"], [57, "jnz loc_4191EB"], [58, "mov rax, cs:qword_477870"], [59, "add rax, 1"], [60, "mov cs:qword_477870, rax"], [61, "mov cs:dword_46D624, 1"], [62, "mov rax, cs:qword_46C100"], [63, "mov rdi, rax"], [64, "call sub_4018BD"], [65, "mov rax, cs:qword_477878"], [66, "add rax, 1"], [67, "mov cs:qword_477878, rax"], [68, "mov edi, 3Ah "], [69, "call sub_437A88"], [70, "mov rax, cs:qword_477880"], [71, "add rax, 1"], [72, "mov cs:qword_477880, rax"], [73, "mov rax, cs:qword_46C0E8"], [74, "mov rdi, rax"], [75, "call sub_4014A8"], [76, "mov rax, cs:qword_477888"], [77, "add rax, 1"], [78, "mov cs:qword_477888, rax"], [79, "mov edi, offset aFailTestShould"], [80, "call sub_4014A8"], [81, "mov rax, cs:qword_477890"], [82, "add rax, 1"], [83, "mov cs:qword_477890, rax"], [84, "mov edi, 0Ah"], [85, "call sub_437A88"], [86, "mov rax, cs:qword_477898"], [87, "add rax, 1"], [88, "mov cs:qword_477898, rax"], [89, "nop"], [90, "leave"], [91, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [9, 8], [11, 10], [13, 12], [15, 14], [17, 16], [20, 19], [21, 20], [25, 24], [26, 25], [27, 23], [28, 27], [30, 29], [31, 30], [32, 13], [32, 25], [33, 7], [33, 30], [39, 33], [42, 2], [44, 43], [45, 44], [48, 47], [49, 48], [51, 50], [52, 51], [52, 50], [53, 52], [54, 53], [55, 54], [56, 55], [57, 56], [59, 58], [60, 59], [63, 62], [66, 65], [67, 66], [71, 70], [72, 71], [74, 73], [77, 76], [78, 77], [82, 81], [83, 82], [87, 86], [88, 87], [91, 55], [91, 87]]}
static size_t ZSTD_decodeLiteralsBlock(ZSTD_DCtx* dctx, const void* src, size_t srcSize, /* note : srcSize < BLOCKSIZE */ void* dst, size_t dstCapacity, const streaming_operation streaming) { DEBUGLOG(5, "ZSTD_decodeLiteralsBlock"); RETURN_ERROR_IF(srcSize < MIN_CBLOCK_SIZE, corruption_detected, ""); { const BYTE* const istart = (const BYTE*) src; symbolEncodingType_e const litEncType = (symbolEncodingType_e)(istart[0] & 3); size_t const blockSizeMax = ZSTD_blockSizeMax(dctx); switch(litEncType) { case set_repeat: DEBUGLOG(5, "set_repeat flag : re-using stats from previous compressed literals block"); RETURN_ERROR_IF(dctx->litEntropy==0, dictionary_corrupted, ""); ZSTD_FALLTHROUGH; case set_compressed: RETURN_ERROR_IF(srcSize < 5, corruption_detected, "srcSize >= MIN_CBLOCK_SIZE == 2; here we need up to 5 for case 3"); { size_t lhSize, litSize, litCSize; U32 singleStream=0; U32 const lhlCode = (istart[0] >> 2) & 3; U32 const lhc = MEM_readLE32(istart); size_t hufSuccess; size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); int const flags = 0 | (ZSTD_DCtx_get_bmi2(dctx) ? HUF_flags_bmi2 : 0) | (dctx->disableHufAsm ? HUF_flags_disableAsm : 0); switch(lhlCode) { case 0: case 1: default: /* note : default is impossible, since lhlCode into [0..3] */ /* 2 - 2 - 10 - 10 */ singleStream = !lhlCode; lhSize = 3; litSize = (lhc >> 4) & 0x3FF; litCSize = (lhc >> 14) & 0x3FF; break; case 2: /* 2 - 2 - 14 - 14 */ lhSize = 4; litSize = (lhc >> 4) & 0x3FFF; litCSize = lhc >> 18; break; case 3: /* 2 - 2 - 18 - 18 */ lhSize = 5; litSize = (lhc >> 4) & 0x3FFFF; litCSize = (lhc >> 22) + ((size_t)istart[4] << 10); break; } RETURN_ERROR_IF(litSize > 0 && dst == NULL, dstSize_tooSmall, "NULL not handled"); RETURN_ERROR_IF(litSize > blockSizeMax, corruption_detected, ""); if (!singleStream) RETURN_ERROR_IF(litSize < MIN_LITERALS_FOR_4_STREAMS, literals_headerWrong, "Not enough literals (%zu) for the 4-streams mode (min %u)", litSize, MIN_LITERALS_FOR_4_STREAMS); RETURN_ERROR_IF(litCSize + lhSize > srcSize, corruption_detected, ""); RETURN_ERROR_IF(expectedWriteSize < litSize , dstSize_tooSmall, ""); ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 0); /* prefetch huffman table if cold */ if (dctx->ddictIsCold && (litSize > 768 /* heuristic */)) { PREFETCH_AREA(dctx->HUFptr, sizeof(dctx->entropy.hufTable)); } if (litEncType==set_repeat) { if (singleStream) { hufSuccess = HUF_decompress1X_usingDTable( dctx->litBuffer, litSize, istart+lhSize, litCSize, dctx->HUFptr, flags); } else { assert(litSize >= MIN_LITERALS_FOR_4_STREAMS); hufSuccess = HUF_decompress4X_usingDTable( dctx->litBuffer, litSize, istart+lhSize, litCSize, dctx->HUFptr, flags); } } else { if (singleStream) { #if defined(HUF_FORCE_DECOMPRESS_X2) hufSuccess = HUF_decompress1X_DCtx_wksp( dctx->entropy.hufTable, dctx->litBuffer, litSize, istart+lhSize, litCSize, dctx->workspace, sizeof(dctx->workspace), flags); #else hufSuccess = HUF_decompress1X1_DCtx_wksp( dctx->entropy.hufTable, dctx->litBuffer, litSize, istart+lhSize, litCSize, dctx->workspace, sizeof(dctx->workspace), flags); #endif } else { hufSuccess = HUF_decompress4X_hufOnly_wksp( dctx->entropy.hufTable, dctx->litBuffer, litSize, istart+lhSize, litCSize, dctx->workspace, sizeof(dctx->workspace), flags); } } if (dctx->litBufferLocation == ZSTD_split) { assert(litSize > ZSTD_LITBUFFEREXTRASIZE); ZSTD_memcpy(dctx->litExtraBuffer, dctx->litBufferEnd - ZSTD_LITBUFFEREXTRASIZE, ZSTD_LITBUFFEREXTRASIZE); ZSTD_memmove(dctx->litBuffer + ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OVERLENGTH, dctx->litBuffer, litSize - ZSTD_LITBUFFEREXTRASIZE); dctx->litBuffer += ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OVERLENGTH; dctx->litBufferEnd -= WILDCOPY_OVERLENGTH; assert(dctx->litBufferEnd <= (BYTE*)dst + blockSizeMax); } RETURN_ERROR_IF(HUF_isError(hufSuccess), corruption_detected, ""); dctx->litPtr = dctx->litBuffer; dctx->litSize = litSize; dctx->litEntropy = 1; if (litEncType==set_compressed) dctx->HUFptr = dctx->entropy.hufTable; return litCSize + lhSize; } case set_basic: { size_t litSize, lhSize; U32 const lhlCode = ((istart[0]) >> 2) & 3; size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); switch(lhlCode) { case 0: case 2: default: /* note : default is impossible, since lhlCode into [0..3] */ lhSize = 1; litSize = istart[0] >> 3; break; case 1: lhSize = 2; litSize = MEM_readLE16(istart) >> 4; break; case 3: lhSize = 3; RETURN_ERROR_IF(srcSize<3, corruption_detected, "srcSize >= MIN_CBLOCK_SIZE == 2; here we need lhSize = 3"); litSize = MEM_readLE24(istart) >> 4; break; } RETURN_ERROR_IF(litSize > 0 && dst == NULL, dstSize_tooSmall, "NULL not handled"); RETURN_ERROR_IF(litSize > blockSizeMax, corruption_detected, ""); RETURN_ERROR_IF(expectedWriteSize < litSize, dstSize_tooSmall, ""); ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 1); if (lhSize+litSize+WILDCOPY_OVERLENGTH > srcSize) { /* risk reading beyond src buffer with wildcopy */ RETURN_ERROR_IF(litSize+lhSize > srcSize, corruption_detected, ""); if (dctx->litBufferLocation == ZSTD_split) { ZSTD_memcpy(dctx->litBuffer, istart + lhSize, litSize - ZSTD_LITBUFFEREXTRASIZE); ZSTD_memcpy(dctx->litExtraBuffer, istart + lhSize + litSize - ZSTD_LITBUFFEREXTRASIZE, ZSTD_LITBUFFEREXTRASIZE); } else { ZSTD_memcpy(dctx->litBuffer, istart + lhSize, litSize); } dctx->litPtr = dctx->litBuffer; dctx->litSize = litSize; return lhSize+litSize; } /* direct reference into compressed stream */ dctx->litPtr = istart+lhSize; dctx->litSize = litSize; dctx->litBufferEnd = dctx->litPtr + litSize; dctx->litBufferLocation = ZSTD_not_in_dst; return lhSize+litSize; } case set_rle: { U32 const lhlCode = ((istart[0]) >> 2) & 3; size_t litSize, lhSize; size_t expectedWriteSize = MIN(blockSizeMax, dstCapacity); switch(lhlCode) { case 0: case 2: default: /* note : default is impossible, since lhlCode into [0..3] */ lhSize = 1; litSize = istart[0] >> 3; break; case 1: lhSize = 2; RETURN_ERROR_IF(srcSize<3, corruption_detected, "srcSize >= MIN_CBLOCK_SIZE == 2; here we need lhSize+1 = 3"); litSize = MEM_readLE16(istart) >> 4; break; case 3: lhSize = 3; RETURN_ERROR_IF(srcSize<4, corruption_detected, "srcSize >= MIN_CBLOCK_SIZE == 2; here we need lhSize+1 = 4"); litSize = MEM_readLE24(istart) >> 4; break; } RETURN_ERROR_IF(litSize > 0 && dst == NULL, dstSize_tooSmall, "NULL not handled"); RETURN_ERROR_IF(litSize > blockSizeMax, corruption_detected, ""); RETURN_ERROR_IF(expectedWriteSize < litSize, dstSize_tooSmall, ""); ZSTD_allocateLiteralsBuffer(dctx, dst, dstCapacity, litSize, streaming, expectedWriteSize, 1); if (dctx->litBufferLocation == ZSTD_split) { ZSTD_memset(dctx->litBuffer, istart[lhSize], litSize - ZSTD_LITBUFFEREXTRASIZE); ZSTD_memset(dctx->litExtraBuffer, istart[lhSize], ZSTD_LITBUFFEREXTRASIZE); } else { ZSTD_memset(dctx->litBuffer, istart[lhSize], litSize); } dctx->litPtr = dctx->litBuffer; dctx->litSize = litSize; return lhSize+1; } default: RETURN_ERROR(corruption_detected, "impossible"); } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4095C7", "function_addr": 4232647, "binary_name": "a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0E0h"], [3, "mov [rbp+var_B8], rdi"], [4, "mov [rbp+var_C0], rsi"], [5, "mov [rbp+var_C8], rdx"], [6, "mov [rbp+var_D0], rcx"], [7, "mov [rbp+var_D8], r8"], [8, "mov [rbp+var_DC], r9d"], [9, "cmp [rbp+var_C8], 1"], [10, "ja short loc_409612"], [11, "mov rax, 0FFFFFFFFFFFFFFECh"], [12, "jmp locret_40A0A0"], [13, "mov rax, [rbp+var_C0]"], [14, "mov [rbp+var_58], rax"], [15, "mov rax, [rbp+var_58]"], [16, "movzx eax, byte ptr [rax]"], [17, "movzx eax, al"], [18, "and eax, 3"], [19, "mov [rbp+var_5C], eax"], [20, "mov rax, [rbp+var_B8]"], [21, "mov rdi, rax"], [22, "call sub_40938B"], [23, "mov [rbp+var_68], rax"], [24, "cmp [rbp+var_5C], 3"], [25, "jz short loc_409679"], [26, "cmp [rbp+var_5C], 3"], [27, "ja loc_40A099"], [28, "cmp [rbp+var_5C], 2"], [29, "jz short loc_409696"], [30, "cmp [rbp+var_5C], 2"], [31, "ja loc_40A099"], [32, "cmp [rbp+var_5C], 0"], [33, "jz loc_409B9D"], [34, "cmp [rbp+var_5C], 1"], [35, "jz loc_409E6C"], [36, "jmp loc_40A099"], [37, "mov rax, [rbp+var_B8]"], [38, "mov eax, [rax+7530h]"], [39, "test eax, eax"], [40, "jnz short loc_409696"], [41, "mov rax, 0FFFFFFFFFFFFFFE2h"], [42, "jmp locret_40A0A0"], [43, "cmp [rbp+var_C8], 4"], [44, "ja short loc_4096AC"], [45, "mov rax, 0FFFFFFFFFFFFFFECh"], [46, "jmp locret_40A0A0"], [47, "mov [rbp+var_1C], 0"], [48, "mov rax, [rbp+var_58]"], [49, "movzx eax, byte ptr [rax]"], [50, "shr al, 2"], [51, "movzx eax, al"], [52, "and eax, 3"], [53, "mov [rbp+var_6C], eax"], [54, "mov rax, [rbp+var_58]"], [55, "mov rdi, rax"], [56, "call sub_408E46"], [57, "mov [rbp+var_70], eax"], [58, "mov rax, [rbp+var_68]"], [59, "cmp [rbp+var_D8], rax"], [60, "cmovbe rax, [rbp+var_D8]"], [61, "mov [rbp+var_78], rax"], [62, "mov rax, [rbp+var_B8]"], [63, "mov rdi, rax"], [64, "call sub_40935C"], [65, "test eax, eax"], [66, "setnz al"], [67, "movzx edx, al"], [68, "mov rax, [rbp+var_B8]"], [69, "mov eax, [rax+7614h]"], [70, "test eax, eax"], [71, "jz short loc_40971B"], [72, "mov eax, 10h"], [73, "jmp short loc_409720"], [74, "mov eax, 0"], [75, "or eax, edx"], [76, "mov [rbp+var_7C], eax"], [77, "cmp [rbp+var_6C], 2"], [78, "jz short loc_40976A"], [79, "cmp [rbp+var_6C], 3"], [80, "jz short loc_409791"], [81, "cmp [rbp+var_6C], 0"], [82, "setz al"], [83, "movzx eax, al"], [84, "mov [rbp+var_1C], eax"], [85, "mov [rbp+var_8], 3"], [86, "mov eax, [rbp+var_70]"], [87, "shr eax, 4"], [88, "mov eax, eax"], [89, "and eax, 3FFh"], [90, "mov [rbp+var_10], rax"], [91, "mov eax, [rbp+var_70]"], [92, "shr eax, 0Eh"], [93, "mov eax, eax"], [94, "and eax, 3FFh"], [95, "mov [rbp+var_18], rax"], [96, "jmp short loc_4097CC"], [97, "mov [rbp+var_8], 4"], [98, "mov eax, [rbp+var_70]"], [99, "shr eax, 4"], [100, "mov eax, eax"], [101, "and eax, 3FFFh"], [102, "mov [rbp+var_10], rax"], [103, "mov eax, [rbp+var_70]"], [104, "shr eax, 12h"], [105, "mov eax, eax"], [106, "mov [rbp+var_18], rax"], [107, "jmp short loc_4097CC"], [108, "mov [rbp+var_8], 5"], [109, "mov eax, [rbp+var_70]"], [110, "shr eax, 4"], [111, "mov eax, eax"], [112, "and eax, 3FFFFh"], [113, "mov [rbp+var_10], rax"], [114, "mov eax, [rbp+var_70]"], [115, "shr eax, 16h"], [116, "mov edx, eax"], [117, "mov rax, [rbp+var_58]"], [118, "add rax, 4"], [119, "movzx eax, byte ptr [rax]"], [120, "movzx eax, al"], [121, "shl rax, 0Ah"], [122, "add rax, rdx"], [123, "mov [rbp+var_18], rax"], [124, "nop"], [125, "cmp [rbp+var_10], 0"], [126, "jz short loc_4097E9"], [127, "cmp [rbp+var_D0], 0"], [128, "jnz short loc_4097E9"], [129, "mov rax, 0FFFFFFFFFFFFFFBAh"], [130, "jmp locret_40A0A0"], [131, "mov rax, [rbp+var_10]"], [132, "cmp rax, [rbp+var_68]"], [133, "jbe short loc_4097FF"], [134, "mov rax, 0FFFFFFFFFFFFFFECh"], [135, "jmp locret_40A0A0"], [136, "cmp [rbp+var_1C], 0"], [137, "jnz short loc_409818"], [138, "cmp [rbp+var_10], 5"], [139, "ja short loc_409818"], [140, "mov rax, 0FFFFFFFFFFFFFFE8h"], [141, "jmp locret_40A0A0"], [142, "mov rdx, [rbp+var_18]"], [143, "mov rax, [rbp+var_8]"], [144, "add rax, rdx"], [145, "cmp [rbp+var_C8], rax"], [146, "jnb short loc_409838"], [147, "mov rax, 0FFFFFFFFFFFFFFECh"], [148, "jmp locret_40A0A0"], [149, "mov rax, [rbp+var_78]"], [150, "cmp rax, [rbp+var_10]"], [151, "jnb short loc_40984E"], [152, "mov rax, 0FFFFFFFFFFFFFFBAh"], [153, "jmp locret_40A0A0"], [154, "mov r8, [rbp+var_78]"], [155, "mov edi, [rbp+var_DC]"], [156, "mov rcx, [rbp+var_10]"], [157, "mov rdx, [rbp+var_D8]"], [158, "mov rsi, [rbp+var_D0]"], [159, "mov rax, [rbp+var_B8]"], [160, "push 0"], [161, "mov r9, r8"], [162, "mov r8d, edi"], [163, "mov rdi, rax"], [164, "call sub_409452"], [165, "add rsp, 8"], [166, "mov rax, [rbp+var_B8]"], [167, "mov eax, [rax+75FCh]"], [168, "test eax, eax"], [169, "jz short loc_4098EA"], [170, "cmp [rbp+var_10], 300h"], [171, "jbe short loc_4098EA"], [172, "mov rax, [rbp+var_B8]"], [173, "mov rax, [rax+18h]"], [174, "mov [rbp+var_88], rax"], [175, "mov [rbp+var_90], 4004h"], [176, "mov [rbp+var_30], 0"], [177, "jmp short loc_4098DD"], [178, "mov rdx, [rbp+var_88]"], [179, "mov rax, [rbp+var_30]"], [180, "add rax, rdx"], [181, "prefetcht1 byte ptr [rax]"], [182, "add [rbp+var_30], 40h "], [183, "mov rax, [rbp+var_30]"], [184, "cmp rax, [rbp+var_90]"], [185, "jb short loc_4098C7"], [186, "cmp [rbp+var_5C], 3"], [187, "jnz loc_409996"], [188, "cmp [rbp+var_1C], 0"], [189, "jz short loc_409948"], [190, "mov rax, [rbp+var_B8]"], [191, "mov rcx, [rax+18h]"], [192, "mov rdx, [rbp+var_58]"], [193, "mov rax, [rbp+var_8]"], [194, "lea rdi, [rdx+rax]"], [195, "mov rax, [rbp+var_B8]"], [196, "mov rax, [rax+76A0h]"], [197, "mov r8d, [rbp+var_7C]"], [198, "mov rdx, [rbp+var_18]"], [199, "mov rsi, [rbp+var_10]"], [200, "mov r9d, r8d"], [201, "mov r8, rcx"], [202, "mov rcx, rdx"], [203, "mov rdx, rdi"], [204, "mov rdi, rax"], [205, "call sub_46033B"], [206, "mov [rbp+var_28], rax"], [207, "jmp loc_409A4C"], [208, "mov rax, [rbp+var_B8]"], [209, "mov rcx, [rax+18h]"], [210, "mov rdx, [rbp+var_58]"], [211, "mov rax, [rbp+var_8]"], [212, "lea rdi, [rdx+rax]"], [213, "mov rax, [rbp+var_B8]"], [214, "mov rax, [rax+76A0h]"], [215, "mov r8d, [rbp+var_7C]"], [216, "mov rdx, [rbp+var_18]"], [217, "mov rsi, [rbp+var_10]"], [218, "mov r9d, r8d"], [219, "mov r8, rcx"], [220, "mov rcx, rdx"], [221, "mov rdx, rdi"], [222, "mov rdi, rax"], [223, "call sub_460471"], [224, "mov [rbp+var_28], rax"], [225, "jmp loc_409A4C"], [226, "cmp [rbp+var_1C], 0"], [227, "jz short loc_4099F5"], [228, "mov rax, [rbp+var_B8]"], [229, "lea r9, [rax+6ABCh]"], [230, "mov rdx, [rbp+var_58]"], [231, "mov rax, [rbp+var_8]"], [232, "lea rcx, [rdx+rax]"], [233, "mov rax, [rbp+var_B8]"], [234, "mov rax, [rax+76A0h]"], [235, "mov rdx, [rbp+var_B8]"], [236, "lea rdi, [rdx+2838h]"], [237, "mov r8, [rbp+var_18]"], [238, "mov rdx, [rbp+var_10]"], [239, "mov esi, [rbp+var_7C]"], [240, "push rsi"], [241, "push 0A00h"], [242, "mov rsi, rax"], [243, "call sub_4603C2"], [244, "add rsp, 10h"], [245, "mov [rbp+var_28], rax"], [246, "jmp short loc_409A4C"], [247, "mov rax, [rbp+var_B8]"], [248, "lea r9, [rax+6ABCh]"], [249, "mov rdx, [rbp+var_58]"], [250, "mov rax, [rbp+var_8]"], [251, "lea rcx, [rdx+rax]"], [252, "mov rax, [rbp+var_B8]"], [253, "mov rax, [rax+76A0h]"], [254, "mov rdx, [rbp+var_B8]"], [255, "lea rdi, [rdx+2838h]"], [256, "mov r8, [rbp+var_18]"], [257, "mov rdx, [rbp+var_10]"], [258, "mov esi, [rbp+var_7C]"], [259, "push rsi"], [260, "push 0A00h"], [261, "mov rsi, rax"], [262, "call sub_4604F8"], [263, "add rsp, 10h"], [264, "mov [rbp+var_28], rax"], [265, "mov rax, [rbp+var_B8]"], [266, "mov eax, [rax+76B0h]"], [267, "cmp eax, 2"], [268, "jnz loc_409B13"], [269, "mov rax, [rbp+var_B8]"], [270, "mov rax, [rax+76A8h]"], [271, "lea rdx, [rax-10000h]"], [272, "mov rax, [rbp+var_B8]"], [273, "add rax, 76B4h"], [274, "mov rcx, rdx"], [275, "mov edx, 10000h"], [276, "mov rsi, rcx"], [277, "mov rdi, rax"], [278, "call _memcpy"], [279, "mov rax, [rbp+var_10]"], [280, "lea rdx, [rax-10000h]"], [281, "mov rax, [rbp+var_B8]"], [282, "mov rax, [rax+76A0h]"], [283, "mov rcx, [rbp+var_B8]"], [284, "mov rcx, [rcx+76A0h]"], [285, "add rcx, 0FFE0h"], [286, "mov rsi, rax"], [287, "mov rdi, rcx"], [288, "call _memmove"], [289, "mov rax, [rbp+var_B8]"], [290, "mov rax, [rax+76A0h]"], [291, "lea rdx, [rax+0FFE0h]"], [292, "mov rax, [rbp+var_B8]"], [293, "mov [rax+76A0h], rdx"], [294, "mov rax, [rbp+var_B8]"], [295, "mov rax, [rax+76A8h]"], [296, "lea rdx, [rax-20h]"], [297, "mov rax, [rbp+var_B8]"], [298, "mov [rax+76A8h], rdx"], [299, "mov rax, [rbp+var_28]"], [300, "mov rdi, rax"], [301, "call sub_408EEB"], [302, "test eax, eax"], [303, "jz short loc_409B2F"], [304, "mov rax, 0FFFFFFFFFFFFFFECh"], [305, "jmp locret_40A0A0"], [306, "mov rax, [rbp+var_B8]"], [307, "mov rdx, [rax+76A0h]"], [308, "mov rax, [rbp+var_B8]"], [309, "mov [rax+75A8h], rdx"], [310, "mov rax, [rbp+var_B8]"], [311, "mov rdx, [rbp+var_10]"], [312, "mov [rax+75C8h], rdx"], [313, "mov rax, [rbp+var_B8]"], [314, "mov dword ptr [rax+7530h], 1"], [315, "cmp [rbp+var_5C], 2"], [316, "jnz short loc_409B8D"], [317, "mov rax, [rbp+var_B8]"], [318, "lea rdx, [rax+2838h]"], [319, "mov rax, [rbp+var_B8]"], [320, "mov [rax+18h], rdx"], [321, "mov rdx, [rbp+var_18]"], [322, "mov rax, [rbp+var_8]"], [323, "add rax, rdx"], [324, "jmp locret_40A0A0"], [325, "mov rax, [rbp+var_58]"], [326, "movzx eax, byte ptr [rax]"], [327, "shr al, 2"], [328, "movzx eax, al"], [329, "and eax, 3"], [330, "mov [rbp+var_A4], eax"], [331, "mov rax, [rbp+var_68]"], [332, "cmp [rbp+var_D8], rax"], [333, "cmovbe rax, [rbp+var_D8]"], [334, "mov [rbp+var_B0], rax"], [335, "cmp [rbp+var_A4], 1"], [336, "jz short loc_409BFA"], [337, "cmp [rbp+var_A4], 3"], [338, "jz short loc_409C1B"], [339, "mov [rbp+var_40], 1"], [340, "mov rax, [rbp+var_58]"], [341, "movzx eax, byte ptr [rax]"], [342, "shr al, 3"], [343, "movzx eax, al"], [344, "mov [rbp+n], rax"], [345, "jmp short loc_409C4F"], [346, "mov [rbp+var_40], 2"], [347, "mov rax, [rbp+var_58]"], [348, "mov rdi, rax"], [349, "call sub_408DCC"], [350, "shr ax, 4"], [351, "movzx eax, ax"], [352, "mov [rbp+n], rax"], [353, "jmp short loc_409C4F"], [354, "mov [rbp+var_40], 3"], [355, "cmp [rbp+var_C8], 2"], [356, "ja short loc_409C39"], [357, "mov rax, 0FFFFFFFFFFFFFFECh"], [358, "jmp locret_40A0A0"], [359, "mov rax, [rbp+var_58]"], [360, "mov rdi, rax"], [361, "call sub_408E16"], [362, "shr eax, 4"], [363, "mov eax, eax"], [364, "mov [rbp+n], rax"], [365, "nop"], [366, "cmp [rbp+n], 0"], [367, "jz short loc_409C6C"], [368, "cmp [rbp+var_D0], 0"], [369, "jnz short loc_409C6C"], [370, "mov rax, 0FFFFFFFFFFFFFFBAh"], [371, "jmp locret_40A0A0"], [372, "mov rax, [rbp+n]"], [373, "cmp rax, [rbp+var_68]"], [374, "jbe short loc_409C82"], [375, "mov rax, 0FFFFFFFFFFFFFFECh"], [376, "jmp locret_40A0A0"], [377, "mov rax, [rbp+var_B0]"], [378, "cmp rax, [rbp+n]"], [379, "jnb short loc_409C9B"], [380, "mov rax, 0FFFFFFFFFFFFFFBAh"], [381, "jmp locret_40A0A0"], [382, "mov r8, [rbp+var_B0]"], [383, "mov edi, [rbp+var_DC]"], [384, "mov rcx, [rbp+n]"], [385, "mov rdx, [rbp+var_D8]"], [386, "mov rsi, [rbp+var_D0]"], [387, "mov rax, [rbp+var_B8]"], [388, "sub rsp, 8"], [389, "push 1"], [390, "mov r9, r8"], [391, "mov r8d, edi"], [392, "mov rdi, rax"], [393, "call sub_409452"], [394, "add rsp, 10h"], [395, "mov rdx, [rbp+var_40]"], [396, "mov rax, [rbp+n]"], [397, "add rax, rdx"], [398, "add rax, 20h "], [399, "cmp [rbp+var_C8], rax"], [400, "jnb loc_409DFD"], [401, "mov rdx, [rbp+n]"], [402, "mov rax, [rbp+var_40]"], [403, "add rax, rdx"], [404, "cmp [rbp+var_C8], rax"], [405, "jnb short loc_409D15"], [406, "mov rax, 0FFFFFFFFFFFFFFECh"], [407, "jmp locret_40A0A0"], [408, "mov rax, [rbp+var_B8]"], [409, "mov eax, [rax+76B0h]"], [410, "cmp eax, 2"], [411, "jnz short loc_409D91"], [412, "mov rax, [rbp+n]"], [413, "lea rdx, [rax-10000h]"], [414, "mov rcx, [rbp+var_58]"], [415, "mov rax, [rbp+var_40]"], [416, "add rcx, rax"], [417, "mov rax, [rbp+var_B8]"], [418, "mov rax, [rax+76A0h]"], [419, "mov rsi, rcx"], [420, "mov rdi, rax"], [421, "call _memcpy"], [422, "mov rdx, [rbp+var_40]"], [423, "mov rax, [rbp+n]"], [424, "add rax, rdx"], [425, "lea rdx, [rax-10000h]"], [426, "mov rax, [rbp+var_58]"], [427, "add rdx, rax"], [428, "mov rax, [rbp+var_B8]"], [429, "add rax, 76B4h"], [430, "mov rcx, rdx"], [431, "mov edx, 10000h"], [432, "mov rsi, rcx"], [433, "mov rdi, rax"], [434, "call _memcpy"], [435, "jmp short loc_409DBF"], [436, "mov rdx, [rbp+var_58]"], [437, "mov rax, [rbp+var_40]"], [438, "add rdx, rax"], [439, "mov rax, [rbp+var_B8]"], [440, "mov rax, [rax+76A0h]"], [441, "mov rcx, rax"], [442, "mov rsi, rdx"], [443, "mov rax, [rbp+n]"], [444, "mov rdx, rax"], [445, "mov rdi, rcx"], [446, "call _memcpy"], [447, "mov rax, [rbp+var_B8]"], [448, "mov rdx, [rax+76A0h]"], [449, "mov rax, [rbp+var_B8]"], [450, "mov [rax+75A8h], rdx"], [451, "mov rax, [rbp+var_B8]"], [452, "mov rdx, [rbp+n]"], [453, "mov [rax+75C8h], rdx"], [454, "mov rdx, [rbp+var_40]"], [455, "mov rax, [rbp+n]"], [456, "add rax, rdx"], [457, "jmp locret_40A0A0"], [458, "mov rdx, [rbp+var_58]"], [459, "mov rax, [rbp+var_40]"], [460, "add rdx, rax"], [461, "mov rax, [rbp+var_B8]"], [462, "mov [rax+75A8h], rdx"], [463, "mov rax, [rbp+var_B8]"], [464, "mov rdx, [rbp+n]"], [465, "mov [rax+75C8h], rdx"], [466, "mov rax, [rbp+var_B8]"], [467, "mov rdx, [rax+75A8h]"], [468, "mov rax, [rbp+n]"], [469, "add rdx, rax"], [470, "mov rax, [rbp+var_B8]"], [471, "mov [rax+76A8h], rdx"], [472, "mov rax, [rbp+var_B8]"], [473, "mov dword ptr [rax+76B0h], 0"], [474, "mov rdx, [rbp+var_40]"], [475, "mov rax, [rbp+n]"], [476, "add rax, rdx"], [477, "jmp locret_40A0A0"], [478, "mov rax, [rbp+var_58]"], [479, "movzx eax, byte ptr [rax]"], [480, "shr al, 2"], [481, "movzx eax, al"], [482, "and eax, 3"], [483, "mov [rbp+var_94], eax"], [484, "mov rax, [rbp+var_68]"], [485, "cmp [rbp+var_D8], rax"], [486, "cmovbe rax, [rbp+var_D8]"], [487, "mov [rbp+var_A0], rax"], [488, "cmp [rbp+var_94], 1"], [489, "jz short loc_409EC9"], [490, "cmp [rbp+var_94], 3"], [491, "jz short loc_409F00"], [492, "mov [rbp+var_50], 1"], [493, "mov rax, [rbp+var_58]"], [494, "movzx eax, byte ptr [rax]"], [495, "shr al, 3"], [496, "movzx eax, al"], [497, "mov [rbp+var_48], rax"], [498, "jmp short loc_409F34"], [499, "mov [rbp+var_50], 2"], [500, "cmp [rbp+var_C8], 2"], [501, "ja short loc_409EE7"], [502, "mov rax, 0FFFFFFFFFFFFFFECh"], [503, "jmp locret_40A0A0"], [504, "mov rax, [rbp+var_58]"], [505, "mov rdi, rax"], [506, "call sub_408DCC"], [507, "shr ax, 4"], [508, "movzx eax, ax"], [509, "mov [rbp+var_48], rax"], [510, "jmp short loc_409F34"], [511, "mov [rbp+var_50], 3"], [512, "cmp [rbp+var_C8], 3"], [513, "ja short loc_409F1E"], [514, "mov rax, 0FFFFFFFFFFFFFFECh"], [515, "jmp locret_40A0A0"], [516, "mov rax, [rbp+var_58]"], [517, "mov rdi, rax"], [518, "call sub_408E16"], [519, "shr eax, 4"], [520, "mov eax, eax"], [521, "mov [rbp+var_48], rax"], [522, "nop"], [523, "cmp [rbp+var_48], 0"], [524, "jz short loc_409F51"], [525, "cmp [rbp+var_D0], 0"], [526, "jnz short loc_409F51"], [527, "mov rax, 0FFFFFFFFFFFFFFBAh"], [528, "jmp locret_40A0A0"], [529, "mov rax, [rbp+var_48]"], [530, "cmp rax, [rbp+var_68]"], [531, "jbe short loc_409F67"], [532, "mov rax, 0FFFFFFFFFFFFFFECh"], [533, "jmp locret_40A0A0"], [534, "mov rax, [rbp+var_A0]"], [535, "cmp rax, [rbp+var_48]"], [536, "jnb short loc_409F80"], [537, "mov rax, 0FFFFFFFFFFFFFFBAh"], [538, "jmp locret_40A0A0"], [539, "mov r8, [rbp+var_A0]"], [540, "mov edi, [rbp+var_DC]"], [541, "mov rcx, [rbp+var_48]"], [542, "mov rdx, [rbp+var_D8]"], [543, "mov rsi, [rbp+var_D0]"], [544, "mov rax, [rbp+var_B8]"], [545, "sub rsp, 8"], [546, "push 1"], [547, "mov r9, r8"], [548, "mov r8d, edi"], [549, "mov rdi, rax"], [550, "call sub_409452"], [551, "add rsp, 10h"], [552, "mov rax, [rbp+var_B8]"], [553, "mov eax, [rax+76B0h]"], [554, "cmp eax, 2"], [555, "jnz short loc_40A034"], [556, "mov rax, [rbp+var_48]"], [557, "lea rdx, [rax-10000h]"], [558, "mov rcx, [rbp+var_58]"], [559, "mov rax, [rbp+var_50]"], [560, "add rax, rcx"], [561, "movzx eax, byte ptr [rax]"], [562, "movzx ecx, al"], [563, "mov rax, [rbp+var_B8]"], [564, "mov rax, [rax+76A0h]"], [565, "mov esi, ecx"], [566, "mov rdi, rax"], [567, "call _memset"], [568, "mov rdx, [rbp+var_58]"], [569, "mov rax, [rbp+var_50]"], [570, "add rax, rdx"], [571, "movzx eax, byte ptr [rax]"], [572, "movzx eax, al"], [573, "mov rdx, [rbp+var_B8]"], [574, "lea rcx, [rdx+76B4h]"], [575, "mov edx, 10000h"], [576, "mov esi, eax"], [577, "mov rdi, rcx"], [578, "call _memset"], [579, "jmp short loc_40A061"], [580, "mov rdx, [rbp+var_58]"], [581, "mov rax, [rbp+var_50]"], [582, "add rax, rdx"], [583, "movzx eax, byte ptr [rax]"], [584, "movzx ecx, al"], [585, "mov rax, [rbp+var_B8]"], [586, "mov rax, [rax+76A0h]"], [587, "mov rdx, [rbp+var_48]"], [588, "mov esi, ecx"], [589, "mov rdi, rax"], [590, "call _memset"], [591, "mov rax, [rbp+var_B8]"], [592, "mov rdx, [rax+76A0h]"], [593, "mov rax, [rbp+var_B8]"], [594, "mov [rax+75A8h], rdx"], [595, "mov rax, [rbp+var_B8]"], [596, "mov rdx, [rbp+var_48]"], [597, "mov [rax+75C8h], rdx"], [598, "mov rax, [rbp+var_50]"], [599, "add rax, 1"], [600, "jmp short locret_40A0A0"], [601, "mov rax, 0FFFFFFFFFFFFFFECh"], [602, "leave"], [603, "retn"]], "data_dep": [[9, 5], [10, 9], [13, 4], [14, 13], [15, 14], [16, 15], [17, 16], [18, 17], [19, 18], [20, 3], [21, 20], [23, 22], [24, 19], [25, 24], [26, 19], [27, 26], [28, 19], [29, 28], [30, 19], [31, 30], [32, 19], [33, 32], [34, 19], [35, 34], [37, 3], [38, 37], [39, 38], [40, 39], [43, 5], [44, 43], [48, 14], [49, 48], [50, 49], [51, 50], [52, 51], [53, 52], [54, 14], [55, 54], [57, 56], [58, 23], [59, 7], [59, 58], [60, 59], [60, 7], [61, 60], [62, 3], [63, 62], [65, 64], [66, 65], [67, 66], [68, 3], [69, 68], [70, 69], [71, 70], [75, 72], [75, 67], [75, 74], [76, 75], [77, 53], [78, 77], [79, 53], [80, 79], [81, 53], [82, 81], [82, 75], [83, 82], [84, 83], [86, 57], [87, 86], [88, 87], [89, 88], [90, 89], [91, 57], [92, 91], [93, 92], [94, 93], [95, 94], [98, 57], [99, 98], [100, 99], [101, 100], [102, 101], [103, 57], [104, 103], [105, 104], [106, 105], [109, 57], [110, 109], [111, 110], [112, 111], [113, 112], [114, 57], [115, 114], [116, 115], [117, 14], [118, 117], [119, 118], [120, 119], [121, 120], [122, 121], [122, 116], [123, 122], [125, 102], [125, 113], [125, 90], [126, 125], [127, 6], [128, 127], [131, 113], [131, 90], [131, 102], [132, 131], [132, 23], [133, 132], [136, 84], [136, 47], [137, 136], [138, 113], [138, 90], [138, 102], [139, 138], [142, 106], [142, 123], [142, 95], [143, 108], [143, 85], [143, 97], [144, 143], [144, 142], [145, 5], [145, 144], [146, 145], [149, 61], [150, 149], [150, 102], [150, 113], [150, 90], [151, 150], [154, 61], [155, 8], [156, 90], [156, 102], [156, 113], [157, 7], [158, 6], [159, 3], [161, 154], [162, 155], [163, 159], [165, 2], [166, 3], [167, 166], [168, 167], [169, 168], [170, 113], [170, 90], [170, 102], [171, 170], [172, 3], [173, 172], [174, 173], [178, 174], [179, 182], [179, 176], [180, 179], [180, 178], [181, 181], [181, 180], [182, 182], [182, 176], [183, 182], [183, 176], [184, 175], [184, 183], [185, 184], [186, 19], [187, 186], [188, 47], [188, 84], [189, 188], [190, 3], [191, 190], [192, 14], [193, 85], [193, 108], [193, 97], [194, 163], [194, 193], [195, 3], [196, 195], [197, 76], [198, 95], [198, 123], [198, 106], [199, 90], [199, 113], [199, 102], [200, 197], [201, 191], [202, 198], [203, 194], [204, 196], [206, 205], [208, 3], [209, 208], [210, 14], [211, 108], [211, 97], [211, 85], [212, 211], [212, 163], [213, 3], [214, 213], [215, 76], [216, 106], [216, 123], [216, 95], [217, 113], [217, 90], [217, 102], [218, 215], [219, 209], [220, 216], [221, 212], [222, 214], [224, 223], [226, 47], [226, 84], [227, 226], [228, 3], [229, 228], [229, 161], [230, 14], [231, 108], [231, 85], [231, 97], [232, 156], [232, 231], [233, 3], [234, 233], [235, 3], [236, 235], [236, 163], [237, 106], [237, 123], [237, 95], [238, 113], [238, 102], [238, 90], [239, 76], [240, 239], [242, 234], [244, 165], [245, 243], [247, 3], [248, 161], [248, 247], [249, 14], [250, 108], [250, 85], [250, 97], [251, 156], [251, 250], [252, 3], [253, 252], [254, 3], [255, 163], [255, 254], [256, 123], [256, 95], [256, 106], [257, 102], [257, 113], [257, 90], [258, 76], [259, 258], [261, 253], [263, 165], [264, 262], [265, 3], [266, 265], [267, 266], [268, 267], [269, 3], [270, 269], [271, 221], [271, 257], [271, 270], [271, 238], [271, 203], [272, 3], [273, 272], [274, 271], [276, 274], [277, 273], [279, 113], [279, 102], [279, 90], [280, 275], [280, 279], [281, 3], [282, 281], [283, 3], [284, 283], [285, 284], [286, 282], [287, 285], [289, 3], [290, 289], [291, 290], [291, 280], [292, 3], [293, 292], [293, 291], [294, 3], [295, 294], [295, 293], [296, 295], [296, 293], [296, 291], [297, 3], [298, 297], [298, 296], [299, 264], [299, 245], [299, 206], [299, 224], [300, 299], [302, 301], [303, 302], [306, 3], [307, 314], [307, 309], [307, 312], [307, 298], [307, 293], [307, 306], [308, 3], [309, 308], [309, 307], [310, 3], [311, 102], [311, 113], [311, 90], [312, 311], [312, 310], [313, 3], [314, 313], [315, 19], [316, 315], [317, 3], [318, 314], [318, 309], [318, 317], [318, 312], [318, 298], [318, 293], [318, 311], [318, 320], [319, 3], [320, 318], [320, 319], [321, 123], [321, 95], [321, 106], [322, 108], [322, 97], [322, 85], [323, 322], [323, 321], [325, 14], [326, 325], [327, 326], [328, 327], [329, 328], [330, 329], [331, 23], [332, 7], [332, 331], [333, 7], [333, 332], [334, 333], [335, 330], [336, 335], [337, 330], [338, 337], [340, 14], [341, 340], [342, 341], [343, 342], [344, 343], [347, 14], [348, 347], [350, 349], [351, 350], [352, 351], [355, 5], [356, 355], [359, 14], [360, 359], [362, 361], [363, 362], [364, 363], [366, 364], [366, 344], [366, 352], [367, 366], [368, 6], [369, 368], [372, 364], [372, 344], [372, 352], [373, 23], [373, 372], [374, 373], [377, 334], [378, 364], [378, 377], [378, 344], [378, 352], [379, 378], [382, 334], [383, 8], [384, 344], [384, 352], [384, 364], [385, 7], [386, 6], [387, 3], [388, 2], [390, 382], [391, 383], [392, 387], [394, 388], [395, 339], [395, 346], [395, 354], [396, 364], [396, 344], [396, 352], [397, 396], [397, 395], [398, 397], [399, 5], [399, 398], [400, 399], [401, 344], [401, 352], [401, 364], [402, 346], [402, 354], [402, 339], [403, 402], [403, 401], [404, 5], [404, 403], [405, 404], [408, 3], [409, 408], [410, 409], [411, 410], [412, 344], [412, 352], [412, 364], [413, 412], [413, 401], [414, 14], [415, 354], [415, 339], [415, 346], [416, 415], [416, 414], [417, 3], [418, 417], [419, 416], [420, 418], [422, 339], [422, 346], [422, 354], [423, 344], [423, 352], [423, 364], [424, 423], [424, 422], [425, 422], [425, 424], [426, 14], [427, 426], [427, 425], [428, 3], [429, 428], [430, 427], [432, 430], [433, 429], [436, 14], [437, 354], [437, 339], [437, 346], [438, 436], [438, 437], [439, 3], [440, 439], [441, 440], [442, 438], [443, 364], [443, 344], [443, 352], [444, 443], [445, 441], [447, 3], [448, 447], [449, 3], [450, 449], [450, 448], [451, 3], [452, 352], [452, 364], [452, 344], [453, 452], [453, 451], [454, 346], [454, 354], [454, 339], [455, 352], [455, 364], [455, 344], [456, 455], [456, 454], [458, 14], [459, 346], [459, 354], [459, 339], [460, 459], [460, 458], [461, 3], [462, 461], [462, 460], [463, 3], [464, 364], [464, 344], [464, 352], [465, 463], [465, 464], [466, 3], [467, 466], [467, 465], [467, 462], [468, 352], [468, 364], [468, 344], [469, 468], [469, 467], [470, 3], [471, 469], [471, 470], [472, 3], [473, 472], [474, 346], [474, 354], [474, 339], [475, 364], [475, 344], [475, 352], [476, 475], [476, 474], [478, 14], [479, 478], [480, 479], [481, 480], [482, 481], [483, 482], [484, 23], [485, 7], [485, 484], [486, 485], [486, 7], [487, 486], [488, 483], [489, 488], [490, 483], [491, 490], [493, 14], [494, 493], [495, 494], [496, 495], [497, 496], [500, 5], [501, 500], [504, 14], [505, 504], [507, 506], [508, 507], [509, 508], [512, 5], [513, 512], [516, 14], [517, 516], [519, 518], [520, 519], [521, 520], [523, 509], [523, 521], [523, 497], [524, 523], [525, 6], [526, 525], [529, 497], [529, 509], [529, 521], [530, 23], [530, 529], [531, 530], [534, 487], [535, 521], [535, 534], [535, 497], [535, 509], [536, 535], [539, 487], [540, 8], [541, 521], [541, 497], [541, 509], [542, 7], [543, 6], [544, 3], [545, 2], [547, 539], [548, 540], [549, 544], [551, 545], [552, 3], [553, 552], [554, 553], [555, 554], [556, 497], [556, 509], [556, 521], [557, 556], [557, 542], [558, 14], [559, 511], [559, 492], [559, 499], [560, 559], [560, 558], [561, 560], [562, 561], [563, 3], [564, 563], [565, 562], [566, 564], [568, 14], [569, 499], [569, 511], [569, 492], [570, 569], [570, 568], [571, 570], [572, 571], [573, 3], [574, 573], [574, 562], [576, 572], [577, 574], [580, 14], [581, 511], [581, 492], [581, 499], [582, 581], [582, 580], [583, 582], [584, 583], [585, 3], [586, 585], [587, 521], [587, 497], [587, 509], [588, 584], [589, 586], [591, 3], [592, 591], [593, 3], [594, 593], [594, 592], [595, 3], [596, 509], [596, 521], [596, 497], [597, 595], [597, 596], [598, 511], [598, 492], [598, 499], [599, 598], [603, 527], [603, 140], [603, 134], [603, 502], [603, 456], [603, 357], [603, 599], [603, 41], [603, 45], [603, 152], [603, 129], [603, 147], [603, 380], [603, 537], [603, 375], [603, 11], [603, 514], [603, 532], [603, 370], [603, 476], [603, 323], [603, 601], [603, 304], [603, 406]]}
void killclient(const Arg *arg) { if (!selmon->sel) return; if (!sendevent(selmon->sel->win, wmatom[WMDelete], NoEventMask, wmatom[WMDelete], CurrentTime, 0 , 0, 0)) { XGrabServer(dpy); XSetErrorHandler(xerrordummy); XSetCloseDownMode(dpy, DestroyAll); XKillClient(dpy, selmon->sel->win); XSync(dpy, False); XSetErrorHandler(xerror); XUngrabServer(dpy); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408253", "function_addr": 4227667, "binary_name": "ac667b7bd5d7468ffd796a22d18542f9e8078a149f311c046e78f33c24eac02c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, cs:dest"], [5, "mov rax, [rax+78h]"], [6, "test rax, rax"], [7, "jz loc_408342"], [8, "mov rax, cs:qword_415528"], [9, "mov rdx, rax"], [10, "mov rsi, cs:qword_415528"], [11, "mov rax, cs:dest"], [12, "mov rax, [rax+78h]"], [13, "mov rax, [rax+188h]"], [14, "push 0"], [15, "push 0"], [16, "mov r9d, 0"], [17, "mov r8d, 0"], [18, "mov rcx, rdx"], [19, "mov edx, 0"], [20, "mov rdi, rax"], [21, "call sub_40A64A"], [22, "add rsp, 10h"], [23, "test eax, eax"], [24, "jnz locret_408343"], [25, "mov rax, cs:display"], [26, "mov rdi, rax"], [27, "call _XGrabServer"], [28, "mov edi, offset sub_40EAC8"], [29, "call _XSetErrorHandler"], [30, "mov rax, cs:display"], [31, "mov esi, 0"], [32, "mov rdi, rax"], [33, "call _XSetCloseDownMode"], [34, "mov rax, cs:dest"], [35, "mov rax, [rax+78h]"], [36, "mov rdx, [rax+188h]"], [37, "mov rax, cs:display"], [38, "mov rsi, rdx"], [39, "mov rdi, rax"], [40, "call _XKillClient"], [41, "mov rax, cs:display"], [42, "mov esi, 0"], [43, "mov rdi, rax"], [44, "call _XSync"], [45, "mov edi, offset sub_40E991"], [46, "call _XSetErrorHandler"], [47, "mov rax, cs:display"], [48, "mov rdi, rax"], [49, "call _XUngrabServer"], [50, "jmp short locret_408343"], [51, "nop"], [52, "leave"], [53, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [9, 8], [12, 11], [13, 12], [18, 9], [20, 13], [22, 2], [23, 21], [24, 23], [26, 25], [32, 30], [35, 34], [36, 35], [38, 36], [39, 37], [43, 41], [48, 47], [53, 23], [53, 49], [53, 6]]}
ucg_int_t ucg_handle_l90fx(ucg_t *ucg, ucg_dev_fnptr dev_cb) { if ( ucg_clip_l90fx(ucg) != 0 ) { ucg_int_t dx, dy; ucg_int_t i; switch(ucg->arg.dir) { case 0: dx = 1; dy = 0; break; case 1: dx = 0; dy = 1; break; case 2: dx = -1; dy = 0; break; case 3: dx = 0; dy = -1; break; default: dx = 1; dy = 0; break; /* avoid compiler warning */ } for( i = 0; i < ucg->arg.len; i++ ) { dev_cb(ucg, UCG_MSG_DRAW_PIXEL, NULL); ucg->arg.pixel.pos.x+=dx; ucg->arg.pixel.pos.y+=dy; } return 1; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403100", "function_addr": 4206848, "binary_name": "601bbf0a3c8af2b2ed9b72c83eea51f15b606cb2973e6cbbce20f33cb84f643f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_18]"], [6, "mov rdi, rax"], [7, "call sub_402374"], [8, "test ax, ax"], [9, "jz loc_403205"], [10, "mov rax, [rbp+var_18]"], [11, "movzx eax, word ptr [rax+42h]"], [12, "cwde"], [13, "cmp eax, 3"], [14, "jz short loc_403177"], [15, "cmp eax, 3"], [16, "jg short loc_403185"], [17, "cmp eax, 2"], [18, "jz short loc_403169"], [19, "cmp eax, 2"], [20, "jg short loc_403185"], [21, "test eax, eax"], [22, "jz short loc_40314D"], [23, "cmp eax, 1"], [24, "jz short loc_40315B"], [25, "jmp short loc_403185"], [26, "mov [rbp+var_2], 1"], [27, "mov [rbp+var_4], 0"], [28, "jmp short loc_403192"], [29, "mov [rbp+var_2], 0"], [30, "mov [rbp+var_4], 1"], [31, "jmp short loc_403192"], [32, "mov [rbp+var_2], 0FFFFh"], [33, "mov [rbp+var_4], 0"], [34, "jmp short loc_403192"], [35, "mov [rbp+var_2], 0"], [36, "mov [rbp+var_4], 0FFFFh"], [37, "jmp short loc_403192"], [38, "mov [rbp+var_2], 1"], [39, "mov [rbp+var_4], 0"], [40, "nop"], [41, "mov [rbp+var_6], 0"], [42, "jmp short loc_4031F0"], [43, "mov rax, [rbp+var_18]"], [44, "mov rcx, [rbp+var_20]"], [45, "mov edx, 0"], [46, "mov esi, 14h"], [47, "mov rdi, rax"], [48, "call rcx"], [49, "mov rax, [rbp+var_18]"], [50, "movzx eax, word ptr [rax+38h]"], [51, "mov edx, eax"], [52, "movzx eax, [rbp+var_2]"], [53, "add eax, edx"], [54, "mov edx, eax"], [55, "mov rax, [rbp+var_18]"], [56, "mov [rax+38h], dx"], [57, "mov rax, [rbp+var_18]"], [58, "movzx eax, word ptr [rax+3Ah]"], [59, "mov edx, eax"], [60, "movzx eax, [rbp+var_4]"], [61, "add eax, edx"], [62, "mov edx, eax"], [63, "mov rax, [rbp+var_18]"], [64, "mov [rax+3Ah], dx"], [65, "movzx eax, [rbp+var_6]"], [66, "add eax, 1"], [67, "mov [rbp+var_6], ax"], [68, "mov rax, [rbp+var_18]"], [69, "movzx eax, word ptr [rax+40h]"], [70, "cmp [rbp+var_6], ax"], [71, "jl short loc_40319A"], [72, "mov eax, 1"], [73, "jmp short locret_40320A"], [74, "mov eax, 0"], [75, "leave"], [76, "retn"]], "data_dep": [[5, 3], [6, 5], [8, 7], [9, 8], [10, 3], [11, 10], [13, 11], [14, 13], [15, 11], [16, 15], [17, 11], [18, 17], [19, 11], [20, 19], [21, 11], [22, 21], [23, 21], [24, 23], [43, 3], [44, 4], [47, 43], [48, 44], [49, 3], [50, 49], [50, 64], [50, 56], [51, 50], [52, 26], [52, 32], [52, 29], [52, 35], [52, 38], [53, 52], [53, 51], [54, 53], [55, 3], [56, 55], [56, 54], [57, 3], [58, 56], [58, 64], [58, 57], [59, 58], [60, 27], [60, 30], [60, 33], [60, 36], [60, 39], [61, 60], [61, 59], [62, 61], [63, 3], [64, 62], [64, 63], [65, 67], [65, 41], [66, 65], [67, 66], [68, 3], [69, 56], [69, 68], [69, 64], [70, 67], [70, 41], [70, 69], [71, 70], [76, 72], [76, 74]]}
void request_read_headers(int fd) { char buf[MAXBUF]; readline_or_die(fd, buf, MAXBUF); while (strcmp(buf, "\r\n")) { readline_or_die(fd, buf, MAXBUF); } return; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4016D2", "function_addr": 4200146, "binary_name": "29cfc40650f9fedf6ed1f97a5b33e69af26386935ec6152d5c5b7d7369813660.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 2020h"], [3, "mov [rbp+var_2014], edi"], [4, "lea rcx, [rbp+s1]"], [5, "mov eax, [rbp+var_2014]"], [6, "mov edx, 2000h"], [7, "mov rsi, rcx"], [8, "mov edi, eax"], [9, "call sub_401EF6"], [10, "mov [rbp+var_8], rax"], [11, "cmp [rbp+var_8], 0"], [12, "jns short loc_401763"], [13, "mov ecx, offset aRequestReadHea"], [14, "mov edx, 2Eh "], [15, "mov esi, offset aRequestC"], [16, "mov edi, offset aRc0_0"], [17, "call ___assert_fail"], [18, "lea rcx, [rbp+s1]"], [19, "mov eax, [rbp+var_2014]"], [20, "mov edx, 2000h"], [21, "mov rsi, rcx"], [22, "mov edi, eax"], [23, "call sub_401EF6"], [24, "mov [rbp+var_10], rax"], [25, "cmp [rbp+var_10], 0"], [26, "jns short loc_401763"], [27, "mov ecx, offset aRequestReadHea"], [28, "mov edx, 30h "], [29, "mov esi, offset aRequestC"], [30, "mov edi, offset aRc0_0"], [31, "call ___assert_fail"], [32, "lea rax, [rbp+s1]"], [33, "mov esi, offset s2"], [34, "mov rdi, rax"], [35, "call _strcmp"], [36, "test eax, eax"], [37, "jnz short loc_401723"], [38, "nop"], [39, "leave"], [40, "retn"]], "data_dep": [[5, 3], [7, 4], [8, 5], [10, 9], [11, 10], [12, 11], [18, 4], [18, 18], [19, 3], [21, 18], [22, 19], [24, 23], [25, 24], [26, 25], [32, 9], [32, 23], [34, 32], [36, 35], [37, 36], [40, 36]]}
unsigned long pfirst(const poly_t poly) { /* Returns the index of the first nonzero term in poly. If none * is found, returns the length of poly. * poly must be CLEAN. */ unsigned long idx = 0UL, size = SIZE(poly.length); bmp_t accu = BMP_C(0); /* initialiser for Acorn C */ unsigned int probe = BMP_SUB, ofs = 0; while(idx < size && !(accu = poly.bitmap[idx])) ++idx; if(idx >= size) return(poly.length); while(probe) { #ifndef BMP_POF2 while((ofs | probe) >= (unsigned int) BMP_BIT) probe >>= 1; #endif if(accu >> (ofs | probe)) ofs |= probe; probe >>= 1; } return(BMP_BIT - 1UL - ofs + idx * BMP_BIT); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "pfirst", "function_addr": 4643280, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov rax, rdi"], [3, "mov rcx, rsi"], [4, "mov rdx, rcx"], [5, "mov [rbp+var_30], rax"], [6, "mov [rbp+var_28], rdx"], [7, "mov [rbp+var_8], 0"], [8, "mov rax, [rbp+var_30]"], [9, "add rax, 1Fh"], [10, "shr rax, 5"], [11, "mov [rbp+var_20], rax"], [12, "mov [rbp+var_10], 0"], [13, "mov [rbp+var_14], 10h"], [14, "mov [rbp+var_18], 0"], [15, "jmp short loc_46DA1A"], [16, "add [rbp+var_8], 1"], [17, "mov rax, [rbp+var_8]"], [18, "cmp rax, [rbp+var_20]"], [19, "jnb short loc_46DA41"], [20, "mov rdx, [rbp+var_28]"], [21, "mov rax, [rbp+var_8]"], [22, "shl rax, 3"], [23, "add rax, rdx"], [24, "mov rax, [rax]"], [25, "mov [rbp+var_10], rax"], [26, "cmp [rbp+var_10], 0"], [27, "jz short loc_46DA15"], [28, "mov rax, [rbp+var_8]"], [29, "cmp rax, [rbp+var_20]"], [30, "jb short loc_46DA71"], [31, "mov rax, [rbp+var_30]"], [32, "jmp short loc_46DA89"], [33, "mov eax, [rbp+var_18]"], [34, "or eax, [rbp+var_14]"], [35, "mov rdx, [rbp+var_10]"], [36, "mov ecx, eax"], [37, "shr rdx, cl"], [38, "mov rax, rdx"], [39, "test rax, rax"], [40, "jz short loc_46DA6E"], [41, "mov eax, [rbp+var_14]"], [42, "or [rbp+var_18], eax"], [43, "shr [rbp+var_14], 1"], [44, "cmp [rbp+var_14], 0"], [45, "jnz short loc_46DA51"], [46, "mov rax, [rbp+var_8]"], [47, "shl rax, 5"], [48, "mov edx, [rbp+var_18]"], [49, "sub rax, rdx"], [50, "add rax, 1Fh"], [51, "pop rbp"], [52, "retn"]], "data_dep": [[4, 3], [5, 2], [6, 4], [8, 5], [9, 8], [10, 9], [11, 10], [16, 7], [16, 16], [17, 7], [17, 16], [18, 17], [18, 11], [19, 18], [20, 6], [21, 16], [21, 7], [22, 21], [23, 22], [23, 20], [24, 23], [25, 24], [26, 25], [27, 26], [28, 7], [28, 16], [29, 28], [29, 11], [30, 29], [31, 5], [33, 42], [33, 14], [34, 13], [34, 43], [34, 33], [35, 25], [35, 12], [36, 34], [37, 36], [37, 35], [38, 37], [39, 38], [40, 39], [41, 43], [41, 13], [42, 42], [42, 14], [42, 41], [43, 43], [43, 13], [44, 13], [44, 43], [45, 44], [46, 7], [46, 16], [47, 46], [48, 42], [48, 14], [49, 47], [49, 48], [50, 49], [51, 0], [52, 31], [52, 50]]}
void message_bar_encode_repeated_inner( struct pbtools_encoder_t *encoder_p, int field_number, struct message_bar_repeated_t *repeated_p) { pbtools_encode_repeated_inner( encoder_p, field_number, (struct pbtools_repeated_message_t *)repeated_p, sizeof(struct message_bar_t), (pbtools_message_encode_inner_t)message_bar_encode_inner); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4338D2", "function_addr": 4405458, "binary_name": "c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, cs:qword_4EEBC0"], [7, "add rax, 1"], [8, "mov cs:qword_4EEBC0, rax"], [9, "mov rdx, [rbp+var_18]"], [10, "mov esi, [rbp+var_C]"], [11, "mov rax, [rbp+var_8]"], [12, "mov r8d, offset sub_4335FD"], [13, "mov ecx, 10h"], [14, "mov rdi, rax"], [15, "call sub_415FFD"], [16, "mov rax, cs:qword_4EEBC8"], [17, "add rax, 1"], [18, "mov cs:qword_4EEBC8, rax"], [19, "nop"], [20, "leave"], [21, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 5], [10, 4], [11, 3], [14, 11], [17, 16], [18, 17], [21, 17]]}
static void putString(SFLReceiver *receiver, SFLString *s) { putNet32(receiver, s->len); memcpy(receiver->sampleCollector.datap, s->str, s->len); receiver->sampleCollector.datap += (s->len + 3) / 4; /* pad to 4-byte boundary */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42B35A", "function_addr": 4371290, "binary_name": "e06e82e33962ccdafb2610ab0aae086ad1a7cb07a02af22643ec5a6ca586e363.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rax, [rbp+var_10]"], [6, "mov edx, [rax]"], [7, "mov rax, [rbp+var_8]"], [8, "mov esi, edx"], [9, "mov rdi, rax"], [10, "call sub_42B1A1"], [11, "mov rax, [rbp+var_10]"], [12, "mov eax, [rax]"], [13, "mov edx, eax"], [14, "mov rax, [rbp+var_10]"], [15, "mov rcx, [rax+8]"], [16, "mov rax, [rbp+var_8]"], [17, "mov rax, [rax+21D0h]"], [18, "mov rsi, rcx"], [19, "mov rdi, rax"], [20, "call _memcpy"], [21, "mov rax, [rbp+var_8]"], [22, "mov rdx, [rax+21D0h]"], [23, "mov rax, [rbp+var_10]"], [24, "mov eax, [rax]"], [25, "add eax, 3"], [26, "shr eax, 2"], [27, "mov eax, eax"], [28, "shl rax, 2"], [29, "add rdx, rax"], [30, "mov rax, [rbp+var_8]"], [31, "mov [rax+21D0h], rdx"], [32, "nop"], [33, "leave"], [34, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 3], [8, 6], [9, 7], [11, 4], [12, 11], [13, 12], [14, 4], [15, 14], [16, 3], [17, 16], [18, 15], [19, 17], [21, 3], [22, 21], [23, 4], [24, 23], [25, 24], [26, 25], [27, 26], [28, 27], [29, 22], [29, 28], [30, 3], [31, 29], [31, 30], [34, 30]]}
unsigned lodepng_get_channels(const LodePNGColorMode* info) { return getNumColorChannels(info->colortype); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408684", "function_addr": 4228740, "binary_name": "a5e86073c100148569b977a9da309b1b428cd0b5d9d1279452bf16ba74396409.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 8"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov eax, [rax]"], [6, "mov edi, eax"], [7, "call sub_40822E"], [8, "leave"], [9, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [9, 7]]}
static int perl_start_script(const char *script, int argc, const char **argv) { const char **command_line; int i, err = 0; command_line = malloc((argc + 2) * sizeof(const char *)); command_line[0] = ""; command_line[1] = script; for (i = 2; i < argc + 2; i++) command_line[i] = argv[i - 2]; my_perl = perl_alloc(); perl_construct(my_perl); if (perl_parse(my_perl, xs_init, argc + 2, (char **)command_line, (char **)NULL)) { err = -1; goto error; } if (perl_run(my_perl)) { err = -1; goto error; } if (SvTRUE(ERRSV)) { err = -1; goto error; } run_start_sub(); free(command_line); return 0; error: perl_free(my_perl); free(command_line); return err; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4F3ADE", "function_addr": 5192414, "binary_name": "decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_2C], esi"], [5, "mov [rbp+var_38], rdx"], [6, "mov rax, fs:28h"], [7, "mov [rbp+var_8], rax"], [8, "xor eax, eax"], [9, "mov [rbp+var_14], 0"], [10, "mov eax, [rbp+var_2C]"], [11, "add eax, 2"], [12, "cdqe"], [13, "shl rax, 3"], [14, "mov rdi, rax"], [15, "call _malloc"], [16, "mov [rbp+ptr], rax"], [17, "mov rax, [rbp+ptr]"], [18, "mov qword ptr [rax], offset unk_52C119"], [19, "mov rax, [rbp+ptr]"], [20, "lea rdx, [rax+8]"], [21, "mov rax, [rbp+var_28]"], [22, "mov [rdx], rax"], [23, "mov [rbp+var_18], 2"], [24, "jmp short loc_4F3B78"], [25, "mov eax, [rbp+var_18]"], [26, "sub eax, 2"], [27, "cdqe"], [28, "lea rdx, ds:0[rax*8]"], [29, "mov rax, [rbp+var_38]"], [30, "add rax, rdx"], [31, "mov edx, [rbp+var_18]"], [32, "movsxd rdx, edx"], [33, "lea rcx, ds:0[rdx*8]"], [34, "mov rdx, [rbp+ptr]"], [35, "add rdx, rcx"], [36, "mov rax, [rax]"], [37, "mov [rdx], rax"], [38, "add [rbp+var_18], 1"], [39, "mov eax, [rbp+var_2C]"], [40, "add eax, 2"], [41, "cmp [rbp+var_18], eax"], [42, "jl short loc_4F3B42"], [43, "call _perl_alloc"], [44, "mov cs:my_perl, rax"], [45, "mov rax, cs:my_perl"], [46, "mov rdi, rax"], [47, "call _perl_construct"], [48, "mov eax, [rbp+var_2C]"], [49, "lea esi, [rax+2]"], [50, "mov rax, cs:my_perl"], [51, "mov rdx, [rbp+ptr]"], [52, "mov r8d, 0"], [53, "mov rcx, rdx"], [54, "mov edx, esi"], [55, "mov esi, offset xs_init"], [56, "mov rdi, rax"], [57, "call _perl_parse"], [58, "test eax, eax"], [59, "jz short loc_4F3BD7"], [60, "mov [rbp+var_14], 0FFFFFFFFh"], [61, "jmp loc_4F4374"], [62, "mov rax, cs:my_perl"], [63, "mov rdi, rax"], [64, "call _perl_run"], [65, "test eax, eax"], [66, "jz short loc_4F3BF6"], [67, "mov [rbp+var_14], 0FFFFFFFFh"], [68, "jmp loc_4F4374"], [69, "mov rax, cs:my_perl"], [70, "mov rax, [rax+670h]"], [71, "mov rax, [rax+10h]"], [72, "mov rax, [rax]"], [73, "test rax, rax"], [74, "jz short loc_4F3C24"], [75, "mov rax, cs:my_perl"], [76, "mov rax, [rax+670h]"], [77, "mov rax, [rax+10h]"], [78, "jmp short loc_4F3C4D"], [79, "mov rax, cs:my_perl"], [80, "mov rcx, [rax+670h]"], [81, "mov rax, cs:my_perl"], [82, "mov edx, 0"], [83, "mov rsi, rcx"], [84, "mov rdi, rax"], [85, "call _Perl_gv_add_by_type"], [86, "mov rax, [rax+10h]"], [87, "mov rax, [rax]"], [88, "test rax, rax"], [89, "setnz al"], [90, "movzx eax, al"], [91, "test rax, rax"], [92, "jz loc_4F435C"], [93, "mov rax, cs:my_perl"], [94, "mov rax, [rax+670h]"], [95, "mov rax, [rax+10h]"], [96, "mov rax, [rax]"], [97, "test rax, rax"], [98, "jz short loc_4F3C90"], [99, "mov rax, cs:my_perl"], [100, "mov rax, [rax+670h]"], [101, "mov rax, [rax+10h]"], [102, "jmp short loc_4F3CB9"], [103, "mov rax, cs:my_perl"], [104, "mov rcx, [rax+670h]"], [105, "mov rax, cs:my_perl"], [106, "mov edx, 0"], [107, "mov rsi, rcx"], [108, "mov rdi, rax"], [109, "call _Perl_gv_add_by_type"], [110, "mov rax, [rax+10h]"], [111, "mov rax, [rax]"], [112, "mov eax, [rax+0Ch]"], [113, "and eax, 200000h"], [114, "test eax, eax"], [115, "setnz al"], [116, "movzx eax, al"], [117, "test rax, rax"], [118, "jz short loc_4F3D40"], [119, "mov rax, cs:my_perl"], [120, "mov rax, [rax+670h]"], [121, "mov rax, [rax+10h]"], [122, "mov rax, [rax]"], [123, "test rax, rax"], [124, "jz short loc_4F3CFF"], [125, "mov rax, cs:my_perl"], [126, "mov rax, [rax+670h]"], [127, "mov rax, [rax+10h]"], [128, "jmp short loc_4F3D28"], [129, "mov rax, cs:my_perl"], [130, "mov rcx, [rax+670h]"], [131, "mov rax, cs:my_perl"], [132, "mov edx, 0"], [133, "mov rsi, rcx"], [134, "mov rdi, rax"], [135, "call _Perl_gv_add_by_type"], [136, "mov rax, [rax+10h]"], [137, "mov rdx, [rax]"], [138, "mov rax, cs:my_perl"], [139, "mov rsi, rdx"], [140, "mov rdi, rax"], [141, "call _Perl_mg_get"], [142, "test eax, eax"], [143, "nop"], [144, "mov rax, cs:my_perl"], [145, "mov rax, [rax+670h]"], [146, "mov rax, [rax+10h]"], [147, "mov rax, [rax]"], [148, "test rax, rax"], [149, "jz short loc_4F3D6E"], [150, "mov rax, cs:my_perl"], [151, "mov rax, [rax+670h]"], [152, "mov rax, [rax+10h]"], [153, "jmp short loc_4F3D97"], [154, "mov rax, cs:my_perl"], [155, "mov rcx, [rax+670h]"], [156, "mov rax, cs:my_perl"], [157, "mov edx, 0"], [158, "mov rsi, rcx"], [159, "mov rdi, rax"], [160, "call _Perl_gv_add_by_type"], [161, "mov rax, [rax+10h]"], [162, "mov rax, [rax]"], [163, "mov rdx, cs:my_perl"], [164, "add rdx, 138h"], [165, "sub rax, rdx"], [166, "cmp rax, 48h "], [167, "ja short loc_4F3E24"], [168, "mov rax, cs:my_perl"], [169, "mov rax, [rax+670h]"], [170, "mov rax, [rax+10h]"], [171, "mov rax, [rax]"], [172, "test rax, rax"], [173, "jz short loc_4F3DDF"], [174, "mov rax, cs:my_perl"], [175, "mov rax, [rax+670h]"], [176, "mov rax, [rax+10h]"], [177, "jmp short loc_4F3E08"], [178, "mov rax, cs:my_perl"], [179, "mov rcx, [rax+670h]"], [180, "mov rax, cs:my_perl"], [181, "mov edx, 0"], [182, "mov rsi, rcx"], [183, "mov rdi, rax"], [184, "call _Perl_gv_add_by_type"], [185, "mov rax, [rax+10h]"], [186, "mov rax, [rax]"], [187, "mov rdx, cs:my_perl"], [188, "add rdx, 138h"], [189, "cmp rax, rdx"], [190, "setz al"], [191, "jmp loc_4F434F"], [192, "mov rax, cs:my_perl"], [193, "mov rax, [rax+670h]"], [194, "mov rax, [rax+10h]"], [195, "mov rax, [rax]"], [196, "test rax, rax"], [197, "jz short loc_4F3E52"], [198, "mov rax, cs:my_perl"], [199, "mov rax, [rax+670h]"], [200, "mov rax, [rax+10h]"], [201, "jmp short loc_4F3E7B"], [202, "mov rax, cs:my_perl"], [203, "mov rcx, [rax+670h]"], [204, "mov rax, cs:my_perl"], [205, "mov edx, 0"], [206, "mov rsi, rcx"], [207, "mov rdi, rax"], [208, "call _Perl_gv_add_by_type"], [209, "mov rax, [rax+10h]"], [210, "mov rax, [rax]"], [211, "mov eax, [rax+0Ch]"], [212, "and eax, 0FF00h"], [213, "test eax, eax"], [214, "jz loc_4F434A"], [215, "mov rax, cs:my_perl"], [216, "mov rax, [rax+670h]"], [217, "mov rax, [rax+10h]"], [218, "mov rax, [rax]"], [219, "test rax, rax"], [220, "jz short loc_4F3EBC"], [221, "mov rax, cs:my_perl"], [222, "mov rax, [rax+670h]"], [223, "mov rax, [rax+10h]"], [224, "jmp short loc_4F3EE5"], [225, "mov rax, cs:my_perl"], [226, "mov rcx, [rax+670h]"], [227, "mov rax, cs:my_perl"], [228, "mov edx, 0"], [229, "mov rsi, rcx"], [230, "mov rdi, rax"], [231, "call _Perl_gv_add_by_type"], [232, "mov rax, [rax+10h]"], [233, "mov rax, [rax]"], [234, "mov eax, [rax+0Ch]"], [235, "and eax, 400h"], [236, "test eax, eax"], [237, "jz loc_4F40AA"], [238, "mov rax, cs:my_perl"], [239, "mov rax, [rax+670h]"], [240, "mov rax, [rax+10h]"], [241, "mov rax, [rax]"], [242, "test rax, rax"], [243, "jz short loc_4F3F26"], [244, "mov rax, cs:my_perl"], [245, "mov rax, [rax+670h]"], [246, "mov rax, [rax+10h]"], [247, "jmp short loc_4F3F4F"], [248, "mov rax, cs:my_perl"], [249, "mov rcx, [rax+670h]"], [250, "mov rax, cs:my_perl"], [251, "mov edx, 0"], [252, "mov rsi, rcx"], [253, "mov rdi, rax"], [254, "call _Perl_gv_add_by_type"], [255, "mov rax, [rax+10h]"], [256, "mov rax, [rax]"], [257, "mov rax, [rax]"], [258, "test rax, rax"], [259, "jz loc_4F409B"], [260, "mov rax, cs:my_perl"], [261, "mov rax, [rax+670h]"], [262, "mov rax, [rax+10h]"], [263, "mov rax, [rax]"], [264, "test rax, rax"], [265, "jz short loc_4F3F8C"], [266, "mov rax, cs:my_perl"], [267, "mov rax, [rax+670h]"], [268, "mov rax, [rax+10h]"], [269, "jmp short loc_4F3FB5"], [270, "mov rax, cs:my_perl"], [271, "mov rcx, [rax+670h]"], [272, "mov rax, cs:my_perl"], [273, "mov edx, 0"], [274, "mov rsi, rcx"], [275, "mov rdi, rax"], [276, "call _Perl_gv_add_by_type"], [277, "mov rax, [rax+10h]"], [278, "mov rax, [rax]"], [279, "mov rax, [rax]"], [280, "mov rax, [rax+10h]"], [281, "cmp rax, 1"], [282, "ja loc_4F4094"], [283, "mov rax, cs:my_perl"], [284, "mov rax, [rax+670h]"], [285, "mov rax, [rax+10h]"], [286, "mov rax, [rax]"], [287, "test rax, rax"], [288, "jz short loc_4F3FF7"], [289, "mov rax, cs:my_perl"], [290, "mov rax, [rax+670h]"], [291, "mov rax, [rax+10h]"], [292, "jmp short loc_4F4020"], [293, "mov rax, cs:my_perl"], [294, "mov rcx, [rax+670h]"], [295, "mov rax, cs:my_perl"], [296, "mov edx, 0"], [297, "mov rsi, rcx"], [298, "mov rdi, rax"], [299, "call _Perl_gv_add_by_type"], [300, "mov rax, [rax+10h]"], [301, "mov rax, [rax]"], [302, "mov rax, [rax]"], [303, "mov rax, [rax+10h]"], [304, "test rax, rax"], [305, "jz short loc_4F409B"], [306, "mov rax, cs:my_perl"], [307, "mov rax, [rax+670h]"], [308, "mov rax, [rax+10h]"], [309, "mov rax, [rax]"], [310, "test rax, rax"], [311, "jz short loc_4F405D"], [312, "mov rax, cs:my_perl"], [313, "mov rax, [rax+670h]"], [314, "mov rax, [rax+10h]"], [315, "jmp short loc_4F4086"], [316, "mov rax, cs:my_perl"], [317, "mov rcx, [rax+670h]"], [318, "mov rax, cs:my_perl"], [319, "mov edx, 0"], [320, "mov rsi, rcx"], [321, "mov rdi, rax"], [322, "call _Perl_gv_add_by_type"], [323, "mov rax, [rax+10h]"], [324, "mov rax, [rax]"], [325, "mov rax, [rax+10h]"], [326, "movzx eax, byte ptr [rax]"], [327, "cmp al, 30h "], [328, "jz short loc_4F409B"], [329, "mov eax, 1"], [330, "jmp short loc_4F40A0"], [331, "mov eax, 0"], [332, "test eax, eax"], [333, "setnz al"], [334, "jmp loc_4F434F"], [335, "mov rax, cs:my_perl"], [336, "mov rax, [rax+670h]"], [337, "mov rax, [rax+10h]"], [338, "mov rax, [rax]"], [339, "test rax, rax"], [340, "jz short loc_4F40D8"], [341, "mov rax, cs:my_perl"], [342, "mov rax, [rax+670h]"], [343, "mov rax, [rax+10h]"], [344, "jmp short loc_4F4101"], [345, "mov rax, cs:my_perl"], [346, "mov rcx, [rax+670h]"], [347, "mov rax, cs:my_perl"], [348, "mov edx, 0"], [349, "mov rsi, rcx"], [350, "mov rdi, rax"], [351, "call _Perl_gv_add_by_type"], [352, "mov rax, [rax+10h]"], [353, "mov rax, [rax]"], [354, "mov eax, [rax+0Ch]"], [355, "and eax, 100h"], [356, "test eax, eax"], [357, "jz short loc_4F417C"], [358, "mov rax, cs:my_perl"], [359, "mov rax, [rax+670h]"], [360, "mov rax, [rax+10h]"], [361, "mov rax, [rax]"], [362, "test rax, rax"], [363, "jz short loc_4F413E"], [364, "mov rax, cs:my_perl"], [365, "mov rax, [rax+670h]"], [366, "mov rax, [rax+10h]"], [367, "jmp short loc_4F4167"], [368, "mov rax, cs:my_perl"], [369, "mov rcx, [rax+670h]"], [370, "mov rax, cs:my_perl"], [371, "mov edx, 0"], [372, "mov rsi, rcx"], [373, "mov rdi, rax"], [374, "call _Perl_gv_add_by_type"], [375, "mov rax, [rax+10h]"], [376, "mov rax, [rax]"], [377, "mov rax, [rax]"], [378, "mov rax, [rax+20h]"], [379, "test rax, rax"], [380, "setnz al"], [381, "jmp loc_4F434F"], [382, "mov rax, cs:my_perl"], [383, "mov rax, [rax+670h]"], [384, "mov rax, [rax+10h]"], [385, "mov rax, [rax]"], [386, "test rax, rax"], [387, "jz short loc_4F41AA"], [388, "mov rax, cs:my_perl"], [389, "mov rax, [rax+670h]"], [390, "mov rax, [rax+10h]"], [391, "jmp short loc_4F41D3"], [392, "mov rax, cs:my_perl"], [393, "mov rcx, [rax+670h]"], [394, "mov rax, cs:my_perl"], [395, "mov edx, 0"], [396, "mov rsi, rcx"], [397, "mov rdi, rax"], [398, "call _Perl_gv_add_by_type"], [399, "mov rax, [rax+10h]"], [400, "mov rax, [rax]"], [401, "mov eax, [rax+0Ch]"], [402, "and eax, 800h"], [403, "test eax, eax"], [404, "jz loc_4F42C4"], [405, "mov rax, cs:my_perl"], [406, "mov rax, [rax+670h]"], [407, "mov rax, [rax+10h]"], [408, "mov rax, [rax]"], [409, "test rax, rax"], [410, "jz short loc_4F4214"], [411, "mov rax, cs:my_perl"], [412, "mov rax, [rax+670h]"], [413, "mov rax, [rax+10h]"], [414, "jmp short loc_4F423D"], [415, "mov rax, cs:my_perl"], [416, "mov rcx, [rax+670h]"], [417, "mov rax, cs:my_perl"], [418, "mov edx, 0"], [419, "mov rsi, rcx"], [420, "mov rdi, rax"], [421, "call _Perl_gv_add_by_type"], [422, "mov rax, [rax+10h]"], [423, "mov rax, [rax]"], [424, "mov rax, [rax+10h]"], [425, "mov eax, [rax+0Ch]"], [426, "and eax, 100000h"], [427, "test eax, eax"], [428, "jz loc_4F4339"], [429, "mov rax, cs:my_perl"], [430, "mov rax, [rax+670h]"], [431, "mov rax, [rax+10h]"], [432, "mov rax, [rax]"], [433, "test rax, rax"], [434, "jz short loc_4F4282"], [435, "mov rax, cs:my_perl"], [436, "mov rax, [rax+670h]"], [437, "mov rax, [rax+10h]"], [438, "jmp short loc_4F42AB"], [439, "mov rax, cs:my_perl"], [440, "mov rcx, [rax+670h]"], [441, "mov rax, cs:my_perl"], [442, "mov edx, 0"], [443, "mov rsi, rcx"], [444, "mov rdi, rax"], [445, "call _Perl_gv_add_by_type"], [446, "mov rax, [rax+10h]"], [447, "mov rax, [rax]"], [448, "mov rax, [rax+10h]"], [449, "mov rax, [rax]"], [450, "mov rax, [rax]"], [451, "mov eax, [rax+0Ch]"], [452, "and eax, 10000000h"], [453, "test eax, eax"], [454, "jz short loc_4F4339"], [455, "mov rax, cs:my_perl"], [456, "mov rax, [rax+670h]"], [457, "mov rax, [rax+10h]"], [458, "mov rax, [rax]"], [459, "test rax, rax"], [460, "jz short loc_4F42F2"], [461, "mov rax, cs:my_perl"], [462, "mov rax, [rax+670h]"], [463, "mov rax, [rax+10h]"], [464, "jmp short loc_4F431B"], [465, "mov rax, cs:my_perl"], [466, "mov rcx, [rax+670h]"], [467, "mov rax, cs:my_perl"], [468, "mov edx, 0"], [469, "mov rsi, rcx"], [470, "mov rdi, rax"], [471, "call _Perl_gv_add_by_type"], [472, "mov rax, [rax+10h]"], [473, "mov rcx, [rax]"], [474, "mov rax, cs:my_perl"], [475, "mov edx, 0"], [476, "mov rsi, rcx"], [477, "mov rdi, rax"], [478, "call _Perl_sv_2bool_flags"], [479, "test al, al"], [480, "jz short loc_4F4340"], [481, "mov eax, 1"], [482, "jmp short loc_4F4345"], [483, "mov eax, 0"], [484, "and eax, 1"], [485, "jmp short loc_4F434F"], [486, "mov eax, 0"], [487, "test al, al"], [488, "jz short loc_4F435C"], [489, "mov [rbp+var_14], 0FFFFFFFFh"], [490, "jmp short loc_4F4374"], [491, "call sub_4F3A02"], [492, "mov rax, [rbp+ptr]"], [493, "mov rdi, rax"], [494, "call _free"], [495, "mov eax, 0"], [496, "jmp short loc_4F4392"], [497, "mov rax, cs:my_perl"], [498, "mov rdi, rax"], [499, "call _perl_free"], [500, "mov rax, [rbp+ptr]"], [501, "mov rdi, rax"], [502, "call _free"], [503, "mov eax, [rbp+var_14]"], [504, "mov rsi, [rbp+var_8]"], [505, "sub rsi, fs:28h"], [506, "jz short locret_4F43A6"], [507, "call ___stack_chk_fail"], [508, "leave"], [509, "retn"]], "data_dep": [[7, 6], [10, 4], [11, 10], [13, 11], [14, 13], [16, 15], [17, 16], [18, 17], [19, 16], [20, 19], [20, 18], [21, 3], [22, 21], [22, 20], [25, 38], [25, 23], [26, 25], [28, 20], [28, 35], [29, 5], [30, 29], [30, 28], [31, 38], [31, 23], [32, 31], [33, 33], [34, 16], [35, 34], [35, 33], [36, 37], [36, 18], [36, 22], [36, 30], [37, 35], [37, 36], [38, 23], [38, 38], [39, 4], [40, 39], [41, 23], [41, 40], [41, 38], [42, 41], [44, 43], [45, 44], [46, 45], [48, 4], [49, 18], [49, 22], [49, 48], [49, 37], [50, 44], [51, 16], [53, 51], [54, 49], [56, 50], [58, 57], [59, 58], [62, 44], [63, 62], [65, 64], [66, 65], [69, 44], [70, 22], [70, 37], [70, 18], [70, 69], [71, 37], [71, 18], [71, 22], [71, 70], [72, 71], [72, 37], [72, 18], [72, 22], [73, 72], [74, 73], [75, 44], [76, 75], [76, 37], [76, 18], [76, 22], [77, 76], [77, 37], [77, 18], [77, 22], [79, 44], [80, 79], [80, 37], [80, 18], [80, 22], [81, 44], [83, 80], [84, 81], [86, 85], [86, 37], [86, 18], [86, 22], [87, 18], [87, 77], [87, 22], [87, 86], [87, 37], [88, 87], [89, 88], [90, 89], [91, 90], [92, 91], [93, 44], [94, 37], [94, 18], [94, 93], [94, 22], [95, 22], [95, 94], [95, 37], [95, 18], [96, 95], [96, 37], [96, 18], [96, 22], [97, 96], [98, 97], [99, 44], [100, 99], [100, 37], [100, 18], [100, 22], [101, 37], [101, 18], [101, 22], [101, 100], [103, 44], [104, 37], [104, 18], [104, 22], [104, 103], [105, 44], [107, 104], [108, 105], [110, 109], [110, 37], [110, 18], [110, 22], [111, 101], [111, 110], [111, 37], [111, 18], [111, 22], [112, 37], [112, 18], [112, 22], [112, 111], [113, 112], [114, 113], [115, 114], [116, 115], [117, 116], [118, 117], [119, 44], [120, 37], [120, 18], [120, 22], [120, 119], [121, 37], [121, 18], [121, 22], [121, 120], [122, 121], [122, 37], [122, 18], [122, 22], [123, 122], [124, 123], [125, 44], [126, 37], [126, 18], [126, 22], [126, 125], [127, 126], [127, 37], [127, 18], [127, 22], [129, 44], [130, 22], [130, 37], [130, 18], [130, 129], [131, 44], [133, 130], [134, 131], [136, 135], [136, 18], [136, 22], [136, 37], [137, 37], [137, 18], [137, 22], [137, 127], [137, 136], [138, 44], [139, 137], [140, 138], [142, 141], [144, 44], [145, 37], [145, 144], [145, 18], [145, 22], [146, 145], [146, 37], [146, 18], [146, 22], [147, 18], [147, 22], [147, 146], [147, 37], [148, 147], [149, 148], [150, 44], [151, 150], [151, 37], [151, 18], [151, 22], [152, 151], [152, 37], [152, 18], [152, 22], [154, 44], [155, 37], [155, 18], [155, 22], [155, 154], [156, 44], [158, 155], [159, 156], [161, 37], [161, 18], [161, 22], [161, 160], [162, 161], [162, 37], [162, 18], [162, 22], [162, 152], [163, 44], [164, 163], [165, 164], [165, 162], [166, 165], [167, 166], [168, 44], [169, 37], [169, 18], [169, 22], [169, 168], [170, 169], [170, 37], [170, 18], [170, 22], [171, 170], [171, 37], [171, 18], [171, 22], [172, 171], [173, 172], [174, 44], [175, 37], [175, 18], [175, 22], [175, 174], [176, 175], [176, 37], [176, 18], [176, 22], [178, 44], [179, 178], [179, 37], [179, 18], [179, 22], [180, 44], [182, 179], [183, 180], [185, 18], [185, 22], [185, 184], [185, 37], [186, 37], [186, 176], [186, 185], [186, 18], [186, 22], [187, 44], [188, 187], [189, 186], [189, 188], [190, 189], [190, 186], [192, 44], [193, 18], [193, 22], [193, 192], [193, 37], [194, 37], [194, 18], [194, 22], [194, 193], [195, 37], [195, 194], [195, 18], [195, 22], [196, 195], [197, 196], [198, 44], [199, 37], [199, 18], [199, 22], [199, 198], [200, 199], [200, 37], [200, 18], [200, 22], [202, 44], [203, 202], [203, 37], [203, 18], [203, 22], [204, 44], [206, 203], [207, 204], [209, 208], [209, 37], [209, 18], [209, 22], [210, 200], [210, 209], [210, 37], [210, 18], [210, 22], [211, 210], [211, 37], [211, 18], [211, 22], [212, 211], [213, 212], [214, 213], [215, 44], [216, 215], [216, 37], [216, 18], [216, 22], [217, 216], [217, 37], [217, 18], [217, 22], [218, 37], [218, 18], [218, 22], [218, 217], [219, 218], [220, 219], [221, 44], [222, 37], [222, 18], [222, 22], [222, 221], [223, 18], [223, 22], [223, 222], [223, 37], [225, 44], [226, 37], [226, 18], [226, 22], [226, 225], [227, 44], [229, 226], [230, 227], [232, 37], [232, 18], [232, 22], [232, 231], [233, 223], [233, 232], [233, 37], [233, 18], [233, 22], [234, 37], [234, 18], [234, 22], [234, 233], [235, 234], [236, 235], [237, 236], [238, 44], [239, 238], [239, 37], [239, 18], [239, 22], [240, 37], [240, 18], [240, 22], [240, 239], [241, 37], [241, 18], [241, 22], [241, 240], [242, 241], [243, 242], [244, 44], [245, 37], [245, 18], [245, 22], [245, 244], [246, 37], [246, 18], [246, 22], [246, 245], [248, 44], [249, 37], [249, 18], [249, 22], [249, 248], [250, 44], [252, 249], [253, 250], [255, 37], [255, 18], [255, 22], [255, 254], [256, 18], [256, 22], [256, 37], [256, 246], [256, 255], [257, 37], [257, 18], [257, 256], [257, 22], [258, 257], [259, 258], [260, 44], [261, 18], [261, 22], [261, 37], [261, 260], [262, 261], [262, 37], [262, 18], [262, 22], [263, 262], [263, 37], [263, 18], [263, 22], [264, 263], [265, 264], [266, 44], [267, 37], [267, 18], [267, 22], [267, 266], [268, 37], [268, 18], [268, 22], [268, 267], [270, 44], [271, 270], [271, 37], [271, 18], [271, 22], [272, 44], [274, 271], [275, 272], [277, 276], [277, 37], [277, 18], [277, 22], [278, 22], [278, 268], [278, 277], [278, 37], [278, 18], [279, 37], [279, 18], [279, 22], [279, 278], [280, 18], [280, 22], [280, 279], [280, 37], [281, 280], [282, 281], [283, 44], [284, 37], [284, 18], [284, 283], [284, 22], [285, 37], [285, 284], [285, 18], [285, 22], [286, 37], [286, 18], [286, 22], [286, 285], [287, 286], [288, 287], [289, 44], [290, 289], [290, 37], [290, 18], [290, 22], [291, 18], [291, 22], [291, 290], [291, 37], [293, 44], [294, 22], [294, 37], [294, 293], [294, 18], [295, 44], [297, 294], [298, 295], [300, 37], [300, 18], [300, 22], [300, 299], [301, 37], [301, 18], [301, 22], [301, 291], [301, 300], [302, 301], [302, 22], [302, 37], [302, 18], [303, 37], [303, 18], [303, 302], [303, 22], [304, 303], [305, 304], [306, 44], [307, 37], [307, 18], [307, 306], [307, 22], [308, 22], [308, 307], [308, 37], [308, 18], [309, 308], [309, 37], [309, 18], [309, 22], [310, 309], [311, 310], [312, 44], [313, 22], [313, 312], [313, 37], [313, 18], [314, 37], [314, 18], [314, 22], [314, 313], [316, 44], [317, 37], [317, 316], [317, 18], [317, 22], [318, 44], [320, 317], [321, 318], [323, 322], [323, 37], [323, 18], [323, 22], [324, 22], [324, 314], [324, 323], [324, 37], [324, 18], [325, 37], [325, 18], [325, 324], [325, 22], [326, 325], [326, 37], [326, 18], [326, 22], [327, 326], [328, 327], [332, 329], [332, 331], [333, 332], [335, 44], [336, 335], [336, 37], [336, 18], [336, 22], [337, 22], [337, 336], [337, 37], [337, 18], [338, 18], [338, 22], [338, 337], [338, 37], [339, 338], [340, 339], [341, 44], [342, 341], [342, 37], [342, 18], [342, 22], [343, 22], [343, 342], [343, 37], [343, 18], [345, 44], [346, 22], [346, 345], [346, 37], [346, 18], [347, 44], [349, 346], [350, 347], [352, 37], [352, 18], [352, 22], [352, 351], [353, 37], [353, 18], [353, 343], [353, 352], [353, 22], [354, 353], [354, 22], [354, 37], [354, 18], [355, 354], [356, 355], [357, 356], [358, 44], [359, 22], [359, 37], [359, 18], [359, 358], [360, 18], [360, 22], [360, 359], [360, 37], [361, 360], [361, 37], [361, 18], [361, 22], [362, 361], [363, 362], [364, 44], [365, 364], [365, 37], [365, 18], [365, 22], [366, 37], [366, 18], [366, 22], [366, 365], [368, 44], [369, 368], [369, 37], [369, 18], [369, 22], [370, 44], [372, 369], [373, 370], [375, 374], [375, 37], [375, 18], [375, 22], [376, 18], [376, 366], [376, 22], [376, 375], [376, 37], [377, 37], [377, 18], [377, 22], [377, 376], [378, 22], [378, 37], [378, 18], [378, 377], [379, 378], [380, 379], [382, 44], [383, 37], [383, 382], [383, 18], [383, 22], [384, 22], [384, 383], [384, 37], [384, 18], [385, 37], [385, 18], [385, 22], [385, 384], [386, 385], [387, 386], [388, 44], [389, 22], [389, 388], [389, 37], [389, 18], [390, 37], [390, 18], [390, 22], [390, 389], [392, 44], [393, 37], [393, 18], [393, 22], [393, 392], [394, 44], [396, 393], [397, 394], [399, 37], [399, 18], [399, 22], [399, 398], [400, 37], [400, 18], [400, 22], [400, 390], [400, 399], [401, 37], [401, 400], [401, 18], [401, 22], [402, 401], [403, 402], [404, 403], [405, 44], [406, 18], [406, 22], [406, 405], [406, 37], [407, 37], [407, 18], [407, 22], [407, 406], [408, 407], [408, 37], [408, 18], [408, 22], [409, 408], [410, 409], [411, 44], [412, 37], [412, 18], [412, 22], [412, 411], [413, 412], [413, 37], [413, 18], [413, 22], [415, 44], [416, 415], [416, 37], [416, 18], [416, 22], [417, 44], [419, 416], [420, 417], [422, 421], [422, 37], [422, 18], [422, 22], [423, 37], [423, 18], [423, 413], [423, 422], [423, 22], [424, 37], [424, 423], [424, 18], [424, 22], [425, 18], [425, 22], [425, 424], [425, 37], [426, 425], [427, 426], [428, 427], [429, 44], [430, 22], [430, 429], [430, 37], [430, 18], [431, 37], [431, 18], [431, 22], [431, 430], [432, 37], [432, 18], [432, 431], [432, 22], [433, 432], [434, 433], [435, 44], [436, 18], [436, 22], [436, 435], [436, 37], [437, 37], [437, 436], [437, 18], [437, 22], [439, 44], [440, 37], [440, 18], [440, 22], [440, 439], [441, 44], [443, 440], [444, 441], [446, 445], [446, 37], [446, 18], [446, 22], [447, 437], [447, 446], [447, 37], [447, 18], [447, 22], [448, 447], [448, 37], [448, 18], [448, 22], [449, 448], [449, 37], [449, 18], [449, 22], [450, 37], [450, 18], [450, 22], [450, 449], [451, 37], [451, 18], [451, 22], [451, 450], [452, 451], [453, 452], [454, 453], [455, 44], [456, 455], [456, 37], [456, 18], [456, 22], [457, 456], [457, 37], [457, 18], [457, 22], [458, 37], [458, 18], [458, 22], [458, 457], [459, 458], [460, 459], [461, 44], [462, 461], [462, 37], [462, 18], [462, 22], [463, 18], [463, 22], [463, 462], [463, 37], [465, 44], [466, 18], [466, 22], [466, 37], [466, 465], [467, 44], [469, 466], [470, 467], [472, 471], [472, 37], [472, 18], [472, 22], [473, 37], [473, 18], [473, 22], [473, 463], [473, 472], [474, 44], [476, 473], [477, 474], [479, 478], [480, 479], [484, 481], [484, 483], [487, 486], [487, 333], [487, 484], [487, 190], [487, 380], [488, 487], [492, 16], [493, 492], [497, 44], [498, 497], [500, 16], [501, 500], [503, 67], [503, 489], [503, 60], [504, 7], [505, 504], [506, 505], [509, 495], [509, 503]]}
int eloop_register_timeout(unsigned int secs, unsigned int usecs, void (*handler)(void *eloop_ctx, void *timeout_ctx), void *eloop_data, void *user_data) { struct eloop_timeout *timeout, *tmp, *prev; timeout = (struct eloop_timeout *) malloc(sizeof(*timeout)); if (timeout == NULL) return -1; gettimeofday(&timeout->time, NULL); timeout->time.tv_sec += secs; timeout->time.tv_usec += usecs; while (timeout->time.tv_usec >= 1000000) { timeout->time.tv_sec++; timeout->time.tv_usec -= 1000000; } timeout->eloop_data = eloop_data; timeout->user_data = user_data; timeout->handler = handler; timeout->next = NULL; if (eloop.timeout == NULL) { eloop.timeout = timeout; return 0; } prev = NULL; tmp = eloop.timeout; while (tmp != NULL) { if (timercmp(&timeout->time, &tmp->time, <)) break; prev = tmp; tmp = tmp->next; } if (prev == NULL) { timeout->next = eloop.timeout; eloop.timeout = timeout; } else { timeout->next = prev->next; prev->next = timeout; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403F97", "function_addr": 4210583, "binary_name": "e86e49667f6b00cc7d0bb57409294a9bff21055ebd53fab82ced44f717353073.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_24], edi"], [4, "mov [rbp+var_28], esi"], [5, "mov [rbp+var_30], rdx"], [6, "mov [rbp+var_38], rcx"], [7, "mov [rbp+var_40], r8"], [8, "mov edi, 30h "], [9, "call _malloc"], [10, "mov [rbp+tv], rax"], [11, "cmp [rbp+tv], 0"], [12, "jnz short loc_403FD0"], [13, "mov eax, 0FFFFFFFFh"], [14, "jmp locret_404151"], [15, "mov rax, [rbp+tv]"], [16, "mov esi, 0"], [17, "mov rdi, rax"], [18, "call _gettimeofday"], [19, "mov rax, [rbp+tv]"], [20, "mov rdx, [rax]"], [21, "mov eax, [rbp+var_24]"], [22, "add rdx, rax"], [23, "mov rax, [rbp+tv]"], [24, "mov [rax], rdx"], [25, "mov rax, [rbp+tv]"], [26, "mov rdx, [rax+8]"], [27, "mov eax, [rbp+var_28]"], [28, "add rdx, rax"], [29, "mov rax, [rbp+tv]"], [30, "mov [rax+8], rdx"], [31, "jmp short loc_404036"], [32, "mov rax, [rbp+tv]"], [33, "mov rax, [rax]"], [34, "lea rdx, [rax+1]"], [35, "mov rax, [rbp+tv]"], [36, "mov [rax], rdx"], [37, "mov rax, [rbp+tv]"], [38, "mov rax, [rax+8]"], [39, "lea rdx, [rax-0F4240h]"], [40, "mov rax, [rbp+tv]"], [41, "mov [rax+8], rdx"], [42, "mov rax, [rbp+tv]"], [43, "mov rax, [rax+8]"], [44, "cmp rax, 0F423Fh"], [45, "jg short loc_40400D"], [46, "mov rax, [rbp+tv]"], [47, "mov rdx, [rbp+var_38]"], [48, "mov [rax+10h], rdx"], [49, "mov rax, [rbp+tv]"], [50, "mov rdx, [rbp+var_40]"], [51, "mov [rax+18h], rdx"], [52, "mov rax, [rbp+tv]"], [53, "mov rdx, [rbp+var_30]"], [54, "mov [rax+20h], rdx"], [55, "mov rax, [rbp+tv]"], [56, "mov qword ptr [rax+28h], 0"], [57, "mov rax, cs:qword_415318"], [58, "test rax, rax"], [59, "jnz short loc_404097"], [60, "mov rax, [rbp+tv]"], [61, "mov cs:qword_415318, rax"], [62, "mov eax, 0"], [63, "jmp locret_404151"], [64, "mov [rbp+var_10], 0"], [65, "mov rax, cs:qword_415318"], [66, "mov [rbp+var_8], rax"], [67, "jmp short loc_404103"], [68, "mov rax, [rbp+tv]"], [69, "mov rdx, [rax]"], [70, "mov rax, [rbp+var_8]"], [71, "mov rax, [rax]"], [72, "cmp rdx, rax"], [73, "jnz short loc_4040D7"], [74, "mov rax, [rbp+tv]"], [75, "mov rdx, [rax+8]"], [76, "mov rax, [rbp+var_8]"], [77, "mov rax, [rax+8]"], [78, "cmp rdx, rax"], [79, "setl al"], [80, "jmp short loc_4040EB"], [81, "mov rax, [rbp+tv]"], [82, "mov rdx, [rax]"], [83, "mov rax, [rbp+var_8]"], [84, "mov rax, [rax]"], [85, "cmp rdx, rax"], [86, "setl al"], [87, "test al, al"], [88, "jnz short loc_40410C"], [89, "mov rax, [rbp+var_8]"], [90, "mov [rbp+var_10], rax"], [91, "mov rax, [rbp+var_8]"], [92, "mov rax, [rax+28h]"], [93, "mov [rbp+var_8], rax"], [94, "cmp [rbp+var_8], 0"], [95, "jnz short loc_4040AC"], [96, "jmp short loc_40410D"], [97, "nop"], [98, "cmp [rbp+var_10], 0"], [99, "jnz short loc_404130"], [100, "mov rdx, cs:qword_415318"], [101, "mov rax, [rbp+tv]"], [102, "mov [rax+28h], rdx"], [103, "mov rax, [rbp+tv]"], [104, "mov cs:qword_415318, rax"], [105, "jmp short loc_40414C"], [106, "mov rax, [rbp+var_10]"], [107, "mov rdx, [rax+28h]"], [108, "mov rax, [rbp+tv]"], [109, "mov [rax+28h], rdx"], [110, "mov rax, [rbp+var_10]"], [111, "mov rdx, [rbp+tv]"], [112, "mov [rax+28h], rdx"], [113, "mov eax, 0"], [114, "leave"], [115, "retn"]], "data_dep": [[10, 9], [11, 10], [12, 11], [15, 10], [17, 15], [19, 10], [20, 19], [21, 3], [22, 21], [22, 20], [23, 10], [24, 23], [24, 22], [25, 10], [26, 25], [26, 24], [27, 4], [28, 27], [28, 26], [29, 10], [30, 29], [30, 28], [32, 10], [33, 36], [33, 24], [33, 30], [33, 32], [33, 41], [34, 28], [34, 30], [34, 39], [34, 41], [34, 36], [34, 24], [34, 33], [35, 10], [36, 34], [36, 35], [37, 10], [38, 41], [38, 36], [38, 37], [38, 30], [39, 34], [39, 36], [39, 38], [40, 10], [41, 40], [41, 39], [42, 10], [43, 30], [43, 41], [43, 36], [43, 24], [43, 42], [44, 43], [45, 44], [46, 10], [47, 6], [48, 47], [48, 46], [49, 10], [50, 7], [51, 50], [51, 49], [52, 10], [53, 5], [54, 53], [54, 52], [55, 10], [56, 55], [58, 57], [59, 58], [60, 10], [61, 60], [66, 65], [68, 10], [69, 56], [69, 24], [69, 51], [69, 30], [69, 41], [69, 48], [69, 68], [69, 36], [69, 54], [70, 66], [70, 93], [71, 56], [71, 24], [71, 51], [71, 30], [71, 48], [71, 41], [71, 70], [71, 36], [71, 54], [72, 69], [72, 71], [73, 72], [74, 10], [75, 51], [75, 74], [75, 30], [75, 48], [75, 41], [75, 36], [75, 54], [75, 56], [75, 24], [76, 66], [76, 93], [77, 76], [77, 30], [77, 48], [77, 41], [77, 36], [77, 54], [77, 56], [77, 24], [77, 51], [78, 77], [78, 75], [79, 78], [79, 77], [81, 10], [82, 56], [82, 24], [82, 51], [82, 81], [82, 30], [82, 48], [82, 41], [82, 36], [82, 54], [83, 66], [83, 93], [84, 41], [84, 36], [84, 54], [84, 56], [84, 24], [84, 51], [84, 83], [84, 30], [84, 48], [85, 82], [85, 84], [86, 85], [86, 84], [87, 86], [87, 79], [88, 87], [89, 93], [89, 66], [90, 89], [91, 66], [91, 93], [92, 24], [92, 51], [92, 30], [92, 48], [92, 41], [92, 91], [92, 36], [92, 54], [92, 56], [93, 92], [94, 66], [94, 93], [95, 94], [98, 64], [98, 90], [99, 98], [101, 10], [102, 100], [102, 101], [103, 10], [104, 103], [106, 90], [106, 64], [107, 24], [107, 106], [107, 51], [107, 30], [107, 48], [107, 112], [107, 41], [107, 36], [107, 109], [107, 54], [107, 56], [108, 10], [109, 108], [109, 107], [110, 90], [110, 64], [111, 10], [112, 111], [112, 110], [115, 62], [115, 13], [115, 113]]}
int RS232_PollComport(int comport_number, unsigned char *buf, int size) { int n; n = read(Cport[comport_number], buf, size); return(n); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4036A7", "function_addr": 4208295, "binary_name": "ba0fbbc6ab55f830024bc46358931972407b4390d1d7d3fceb4ba0dd11534095.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_14], edi"], [4, "mov [rbp+buf], rsi"], [5, "mov [rbp+var_18], edx"], [6, "mov eax, [rbp+var_18]"], [7, "movsxd rdx, eax"], [8, "mov eax, [rbp+var_14]"], [9, "cdqe"], [10, "mov eax, ds:fd[rax*4]"], [11, "mov rcx, [rbp+buf]"], [12, "mov rsi, rcx"], [13, "mov edi, eax"], [14, "call _read"], [15, "mov [rbp+var_4], eax"], [16, "mov eax, [rbp+var_4]"], [17, "leave"], [18, "retn"]], "data_dep": [[6, 5], [7, 6], [8, 3], [11, 4], [12, 11], [13, 10], [15, 14], [16, 15], [18, 16]]}
struct object make_string_object_with_length(const char *str, size_t length) { struct object obj; obj.type = OBJ_STRING; obj.value.string = malloc(sizeof(*obj.value.string) + length + 1); assert(obj.value.string != NULL); obj.value.string->gc_meta.marked = false; obj.value.string->value = (char*) (obj.value.string + 1); strcpy(obj.value.string->value, str); obj.value.string->length = length; return obj; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408A90", "function_addr": 4229776, "binary_name": "9aa37731b2707e37cd79de5068e66e6d9985f3564390ff920fbafd5b9139a8e2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 28h"], [4, "mov [rbp+src], rdi"], [5, "mov [rbp+var_30], rsi"], [6, "mov dword ptr [rbp+var_20], 5"], [7, "mov rax, [rbp+var_30]"], [8, "add rax, 21h "], [9, "mov rdi, rax"], [10, "call _malloc"], [11, "mov [rbp+var_18], rax"], [12, "mov rax, [rbp+var_18]"], [13, "test rax, rax"], [14, "jnz short loc_408ADE"], [15, "mov ecx, offset aMakeStringObje"], [16, "mov edx, 3Ah "], [17, "mov esi, offset aSrcObjectC"], [18, "mov edi, offset aObjValueString"], [19, "call ___assert_fail"], [20, "mov rax, [rbp+var_18]"], [21, "mov byte ptr [rax+18h], 0"], [22, "mov rdx, [rbp+var_18]"], [23, "mov rax, [rbp+var_18]"], [24, "add rdx, 20h "], [25, "mov [rax], rdx"], [26, "mov rax, [rbp+var_18]"], [27, "mov rax, [rax]"], [28, "mov rdx, [rbp+src]"], [29, "mov rsi, rdx"], [30, "mov rdi, rax"], [31, "call _strcpy"], [32, "mov rax, [rbp+var_18]"], [33, "mov rdx, [rbp+var_30]"], [34, "mov [rax+8], rdx"], [35, "mov rax, [rbp+var_20]"], [36, "mov rdx, [rbp+var_18]"], [37, "mov rcx, rax"], [38, "mov rbx, rdx"], [39, "mov eax, ecx"], [40, "mov rbx, [rbp+var_8]"], [41, "leave"], [42, "retn"]], "data_dep": [[7, 5], [8, 7], [9, 8], [11, 10], [12, 11], [13, 12], [14, 13], [20, 11], [21, 20], [22, 11], [23, 11], [24, 22], [25, 23], [25, 24], [26, 11], [27, 25], [27, 26], [28, 4], [29, 28], [30, 27], [32, 11], [33, 5], [34, 33], [34, 32], [35, 6], [36, 11], [37, 35], [38, 36], [39, 37], [42, 39]]}
static void parse_text(void) { FILE *file; char *filename, *line = NULL; size_t len = 0; int ret; if (show_raw) return; filename = user_csv ? user_csv : def_csv; file = fopen(filename, "r"); if (!file) { /* Fallback to a csv in the same dir */ file = fopen("./cpuid.csv", "r"); } if (!file) { printf("Fail to open '%s'\n", filename); return; } while (1) { ret = getline(&line, &len, file); flines++; if (ret > 0) parse_line(line); if (feof(file)) break; } fclose(file); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401B6E", "function_addr": 4201326, "binary_name": "bafc0dc977900ad7aab79d928a089767508e3d2c699797ae671eb30a85c593e0.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+lineptr], 0"], [4, "mov [rbp+n], 0"], [5, "movzx eax, cs:byte_40524E"], [6, "test al, al"], [7, "jnz loc_401C5F"], [8, "mov rax, cs:qword_405230"], [9, "test rax, rax"], [10, "jz short loc_401BAA"], [11, "mov rax, cs:qword_405230"], [12, "jmp short loc_401BB1"], [13, "mov rax, cs:off_4050E0"], [14, "mov [rbp+filename], rax"], [15, "mov rax, [rbp+filename]"], [16, "mov esi, offset modes"], [17, "mov rdi, rax"], [18, "call _fopen"], [19, "mov [rbp+stream], rax"], [20, "cmp [rbp+stream], 0"], [21, "jnz short loc_401BE4"], [22, "mov esi, offset modes"], [23, "mov edi, offset filename"], [24, "call _fopen"], [25, "mov [rbp+stream], rax"], [26, "cmp [rbp+stream], 0"], [27, "jnz short loc_401C03"], [28, "mov rax, [rbp+filename]"], [29, "mov rsi, rax"], [30, "mov edi, offset aFailToOpenS"], [31, "mov eax, 0"], [32, "call _printf"], [33, "jmp short locret_401C60"], [34, "mov rdx, [rbp+stream]"], [35, "lea rcx, [rbp+n]"], [36, "lea rax, [rbp+lineptr]"], [37, "mov rsi, rcx"], [38, "mov rdi, rax"], [39, "call _getline"], [40, "mov [rbp+var_14], eax"], [41, "mov eax, cs:dword_405250"], [42, "add eax, 1"], [43, "mov cs:dword_405250, eax"], [44, "cmp [rbp+var_14], 0"], [45, "jle short loc_401C3E"], [46, "mov rax, [rbp+lineptr]"], [47, "mov rdi, rax"], [48, "call sub_4017FD"], [49, "mov rax, [rbp+stream]"], [50, "mov rdi, rax"], [51, "call _feof"], [52, "test eax, eax"], [53, "jnz short loc_401C50"], [54, "jmp short loc_401C03"], [55, "nop"], [56, "mov rax, [rbp+stream]"], [57, "mov rdi, rax"], [58, "call _fclose"], [59, "jmp short locret_401C60"], [60, "nop"], [61, "leave"], [62, "retn"]], "data_dep": [[6, 5], [7, 6], [9, 8], [10, 9], [14, 13], [14, 11], [15, 14], [17, 15], [19, 18], [20, 19], [21, 20], [25, 24], [26, 19], [26, 25], [27, 26], [28, 14], [29, 28], [34, 19], [34, 25], [35, 35], [35, 4], [36, 52], [36, 3], [36, 18], [36, 24], [37, 35], [38, 36], [40, 39], [41, 43], [42, 41], [43, 42], [44, 40], [45, 44], [46, 3], [47, 46], [49, 25], [49, 19], [50, 49], [52, 51], [53, 52], [56, 25], [56, 19], [57, 56], [62, 32], [62, 58], [62, 6]]}
static int hfp_ag_send_retrieve_indicators_status_cmd(uint16_t cid){ char buffer[40]; const int size = sizeof(buffer); int offset = snprintf(buffer, size, "\r\n%s:", HFP_INDICATOR); offset += hfp_ag_indicators_status_join(buffer+offset, size-offset-9); offset += snprintf(buffer+offset, size-offset, "\r\n\r\nOK\r\n"); return send_str_over_rfcomm(cid, buffer); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_455F7F", "function_addr": 4546431, "binary_name": "5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov eax, edi"], [4, "mov [rbp+var_34], ax"], [5, "mov [rbp+var_4], 28h "], [6, "mov eax, [rbp+var_4]"], [7, "movsxd rsi, eax"], [8, "lea rax, [rbp+s]"], [9, "mov ecx, offset aCind"], [10, "mov edx, offset aS_2"], [11, "mov rdi, rax"], [12, "mov eax, 0"], [13, "call _snprintf"], [14, "mov [rbp+var_8], eax"], [15, "mov eax, [rbp+var_4]"], [16, "sub eax, [rbp+var_8]"], [17, "lea edx, [rax-9]"], [18, "mov eax, [rbp+var_8]"], [19, "cdqe"], [20, "lea rcx, [rbp+s]"], [21, "add rax, rcx"], [22, "mov esi, edx"], [23, "mov rdi, rax"], [24, "call sub_455C7F"], [25, "add [rbp+var_8], eax"], [26, "mov eax, [rbp+var_4]"], [27, "sub eax, [rbp+var_8]"], [28, "cdqe"], [29, "mov edx, [rbp+var_8]"], [30, "movsxd rdx, edx"], [31, "lea rcx, [rbp+s]"], [32, "add rcx, rdx"], [33, "mov edx, offset aOk_0"], [34, "mov rsi, rax"], [35, "mov rdi, rcx"], [36, "mov eax, 0"], [37, "call _snprintf"], [38, "add [rbp+var_8], eax"], [39, "movzx eax, [rbp+var_34]"], [40, "lea rdx, [rbp+s]"], [41, "mov rsi, rdx"], [42, "mov edi, eax"], [43, "call sub_44F7F0"], [44, "leave"], [45, "retn"]], "data_dep": [[4, 3], [6, 5], [7, 6], [8, 6], [11, 8], [14, 13], [15, 5], [16, 15], [16, 14], [17, 10], [17, 16], [18, 14], [20, 9], [21, 18], [21, 20], [22, 17], [23, 21], [25, 24], [25, 14], [26, 5], [27, 25], [27, 26], [29, 25], [30, 29], [31, 20], [32, 31], [32, 30], [34, 27], [35, 32], [38, 25], [38, 37], [39, 4], [40, 33], [41, 40], [42, 39], [45, 43]]}
static void bestlineEditLeftWord(struct bestlineState *l) { l->pos = BackwardWord(l, l->pos); bestlineRefreshLine(l); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406067", "function_addr": 4218983, "binary_name": "c518bc3ec7ac1de5c9ce166122c3a25fdcee604b732539449a3c567eb8a11f73.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov eax, [rax+30h]"], [6, "mov edx, eax"], [7, "mov rax, [rbp+var_8]"], [8, "mov rsi, rdx"], [9, "mov rdi, rax"], [10, "call sub_405E57"], [11, "mov edx, eax"], [12, "mov rax, [rbp+var_8]"], [13, "mov [rax+30h], edx"], [14, "mov rax, [rbp+var_8]"], [15, "mov rdi, rax"], [16, "call sub_405A98"], [17, "nop"], [18, "leave"], [19, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 3], [8, 6], [9, 7], [11, 10], [12, 3], [13, 12], [13, 11], [14, 3], [15, 14], [19, 16]]}
int PropertyTolerance(char *name, int fnum, char *key, int ival, double dval) { struct property *kl = NULL; struct nlist *tc; int result; if ((fnum == -1) && (Circuit1 != NULL) && (Circuit2 != NULL)) { result = PropertyTolerance(name, Circuit1->file, key, ival, dval); result = PropertyTolerance(name, Circuit2->file, key, ival, dval); return result; } tc = LookupCellFile(name, fnum); if (tc == NULL) { Printf("No device %s found for PropertyTolerance()\n", name); return -1; } kl = (struct property *)HashLookup(key, &(tc->propdict)); if (kl == NULL) { Printf("No property %s found for device %s\n", key, name); return -1; } else { switch (kl->type) { case PROP_DOUBLE: case PROP_VALUE: case PROP_STRING: kl->slop.dval = dval; break; case PROP_INTEGER: case PROP_EXPRESSION: kl->slop.ival = ival; break; } } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_429458", "function_addr": 4363352, "binary_name": "34e1f47d7c3f4a6a8540956845e947b127c61352252002721d774608d8656d0e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_2C], esi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_30], ecx"], [7, "movsd [rbp+var_40], xmm0"], [8, "mov [rbp+var_8], 0"], [9, "cmp [rbp+var_2C], 0FFFFFFFFh"], [10, "jnz short loc_4294FD"], [11, "mov rax, offset unk_463DC8"], [12, "mov rax, [rax]"], [13, "test rax, rax"], [14, "jz short loc_4294FD"], [15, "mov rax, offset unk_463DD0"], [16, "mov rax, [rax]"], [17, "test rax, rax"], [18, "jz short loc_4294FD"], [19, "mov rax, offset unk_463DC8"], [20, "mov rax, [rax]"], [21, "mov esi, [rax]"], [22, "mov rdi, [rbp+var_40]"], [23, "mov ecx, [rbp+var_30]"], [24, "mov rdx, [rbp+var_38]"], [25, "mov rax, [rbp+var_28]"], [26, "movq xmm0, rdi"], [27, "mov rdi, rax"], [28, "call sub_429458"], [29, "mov [rbp+var_C], eax"], [30, "mov rax, offset unk_463DD0"], [31, "mov rax, [rax]"], [32, "mov esi, [rax]"], [33, "mov rdi, [rbp+var_40]"], [34, "mov ecx, [rbp+var_30]"], [35, "mov rdx, [rbp+var_38]"], [36, "mov rax, [rbp+var_28]"], [37, "movq xmm0, rdi"], [38, "mov rdi, rax"], [39, "call sub_429458"], [40, "mov [rbp+var_C], eax"], [41, "mov eax, [rbp+var_C]"], [42, "jmp locret_4295C7"], [43, "mov edx, [rbp+var_2C]"], [44, "mov rax, [rbp+var_28]"], [45, "mov esi, edx"], [46, "mov rdi, rax"], [47, "call sub_40E200"], [48, "mov [rbp+var_18], rax"], [49, "cmp [rbp+var_18], 0"], [50, "jnz short loc_42953B"], [51, "mov rax, [rbp+var_28]"], [52, "mov rsi, rax"], [53, "lea rdi, aNoDeviceSFound_1"], [54, "mov eax, 0"], [55, "call sub_406043"], [56, "mov eax, 0FFFFFFFFh"], [57, "jmp locret_4295C7"], [58, "mov rax, [rbp+var_18]"], [59, "lea rdx, [rax+68h]"], [60, "mov rax, [rbp+var_38]"], [61, "mov rsi, rdx"], [62, "mov rdi, rax"], [63, "call sub_40AA09"], [64, "mov [rbp+var_8], rax"], [65, "cmp [rbp+var_8], 0"], [66, "jnz short loc_429580"], [67, "mov rdx, [rbp+var_28]"], [68, "mov rax, [rbp+var_38]"], [69, "mov rsi, rax"], [70, "lea rdi, aNoPropertySFou"], [71, "mov eax, 0"], [72, "call sub_406043"], [73, "mov eax, 0FFFFFFFFh"], [74, "jmp short locret_4295C7"], [75, "mov rax, [rbp+var_8]"], [76, "movzx eax, byte ptr [rax+9]"], [77, "movzx eax, al"], [78, "cmp eax, 4"], [79, "jg short loc_4295C2"], [80, "cmp eax, 3"], [81, "jge short loc_4295A7"], [82, "test eax, eax"], [83, "jz short loc_4295A7"], [84, "test eax, eax"], [85, "js short loc_4295C2"], [86, "sub eax, 1"], [87, "cmp eax, 1"], [88, "ja short loc_4295C2"], [89, "jmp short loc_4295B7"], [90, "mov rax, [rbp+var_8]"], [91, "movsd xmm0, [rbp+var_40]"], [92, "movsd qword ptr [rax+20h], xmm0"], [93, "jmp short loc_4295C2"], [94, "mov rax, [rbp+var_8]"], [95, "mov edx, [rbp+var_30]"], [96, "mov [rax+20h], edx"], [97, "nop"], [98, "mov eax, 0"], [99, "leave"], [100, "retn"]], "data_dep": [[9, 4], [10, 9], [12, 11], [13, 12], [14, 13], [16, 15], [17, 16], [18, 17], [20, 19], [21, 20], [22, 7], [23, 6], [24, 5], [25, 3], [26, 22], [27, 25], [29, 28], [31, 30], [32, 31], [33, 7], [34, 6], [35, 5], [36, 3], [37, 33], [38, 36], [40, 39], [41, 40], [43, 4], [44, 3], [45, 43], [46, 44], [48, 47], [49, 48], [50, 49], [51, 3], [52, 51], [53, 46], [58, 48], [59, 58], [59, 43], [60, 5], [61, 59], [62, 60], [64, 63], [65, 64], [66, 65], [67, 3], [68, 5], [69, 68], [70, 62], [75, 64], [76, 75], [77, 76], [78, 77], [79, 78], [80, 77], [81, 80], [82, 77], [83, 82], [84, 82], [85, 84], [86, 84], [87, 86], [88, 87], [90, 64], [91, 7], [92, 91], [92, 90], [94, 64], [95, 6], [96, 95], [96, 94], [100, 98], [100, 73], [100, 41], [100, 56]]}
static int test5_1(void) { bstring b, c; struct tagbstring t; int i, ret; debug("TEST: bconcat aliasing"); for (ret = i = 0; i < longBstring.slen; i++) { b = bstrcpy(&longBstring); c = bstrcpy(&longBstring); bmid2tbstr(t, b, i, longBstring.slen); ret += 0 != bconcat(c, &t); ret += 0 != bconcat(b, &t); ret += !biseq(b, c); bdestroy(b); bdestroy(c); } b = bfromcstr("abcd"); c = bfromcstr("abcd"); for (ret = i = 0; i < 100; i++) { bmid2tbstr(t, b, 0, 3); ret += 0 != bcatcstr(c, "abc"); ret += 0 != bconcat(b, &t); ret += !biseq(b, c); } bdestroy(b); bdestroy(c); if (ret) { debug("\t\talias failures(%d) = %d", __LINE__, ret); } return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4039D0", "function_addr": 4209104, "binary_name": "971338c11c703c7316f12234720df93fe2351b819b513d16f4f7f06a46846f52.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov rax, cs:stderr"], [4, "mov ecx, 17Ch"], [5, "mov edx, offset filename"], [6, "mov esi, offset aDebugSDTestBco"], [7, "mov rdi, rax"], [8, "mov eax, 0"], [9, "call _fprintf"], [10, "mov [rbp+var_4], 0"], [11, "mov eax, [rbp+var_4]"], [12, "mov [rbp+var_8], eax"], [13, "jmp loc_403B51"], [14, "mov edi, offset longBstring"], [15, "call bstrcpy"], [16, "mov [rbp+var_20], rax"], [17, "mov edi, offset longBstring"], [18, "call bstrcpy"], [19, "mov [rbp+var_28], rax"], [20, "mov rax, [rbp+var_20]"], [21, "mov [rbp+var_38], rax"], [22, "cmp [rbp+var_38], 0"], [23, "jz loc_403AC5"], [24, "mov rax, [rbp+var_38]"], [25, "mov rax, [rax+8]"], [26, "test rax, rax"], [27, "jz short loc_403AC5"], [28, "mov rax, [rbp+var_38]"], [29, "mov eax, [rax+4]"], [30, "test eax, eax"], [31, "js short loc_403AC5"], [32, "mov eax, [rbp+var_4]"], [33, "mov [rbp+var_C], eax"], [34, "mov eax, cs:dword_4210E4"], [35, "mov [rbp+var_10], eax"], [36, "cmp [rbp+var_C], 0"], [37, "jns short loc_403A76"], [38, "mov eax, [rbp+var_C]"], [39, "add [rbp+var_10], eax"], [40, "mov [rbp+var_C], 0"], [41, "mov rax, [rbp+var_38]"], [42, "mov eax, [rax+4]"], [43, "sub eax, [rbp+var_C]"], [44, "cmp [rbp+var_10], eax"], [45, "jle short loc_403A92"], [46, "mov rax, [rbp+var_38]"], [47, "mov eax, [rax+4]"], [48, "sub eax, [rbp+var_C]"], [49, "mov [rbp+var_10], eax"], [50, "cmp [rbp+var_10], 0"], [51, "jg short loc_403AA9"], [52, "mov [rbp+var_48], offset unk_41A008"], [53, "mov [rbp+var_4C], 0"], [54, "jmp short loc_403AD4"], [55, "mov rax, [rbp+var_38]"], [56, "mov rdx, [rax+8]"], [57, "mov eax, [rbp+var_C]"], [58, "cdqe"], [59, "add rax, rdx"], [60, "mov [rbp+var_48], rax"], [61, "mov eax, [rbp+var_10]"], [62, "mov [rbp+var_4C], eax"], [63, "jmp short loc_403AD4"], [64, "mov [rbp+var_48], offset unk_41A008"], [65, "mov [rbp+var_4C], 0"], [66, "mov [rbp+var_50], 0FFFFFE80h"], [67, "lea rdx, [rbp+var_50]"], [68, "mov rax, [rbp+var_28]"], [69, "mov rsi, rdx"], [70, "mov rdi, rax"], [71, "call bconcat"], [72, "test eax, eax"], [73, "setnz al"], [74, "movzx eax, al"], [75, "add [rbp+var_8], eax"], [76, "lea rdx, [rbp+var_50]"], [77, "mov rax, [rbp+var_20]"], [78, "mov rsi, rdx"], [79, "mov rdi, rax"], [80, "call bconcat"], [81, "test eax, eax"], [82, "setnz al"], [83, "movzx eax, al"], [84, "add [rbp+var_8], eax"], [85, "mov rdx, [rbp+var_28]"], [86, "mov rax, [rbp+var_20]"], [87, "mov rsi, rdx"], [88, "mov rdi, rax"], [89, "call biseq"], [90, "test eax, eax"], [91, "setz al"], [92, "movzx eax, al"], [93, "add [rbp+var_8], eax"], [94, "mov rax, [rbp+var_20]"], [95, "mov rdi, rax"], [96, "call bdestroy"], [97, "mov rax, [rbp+var_28]"], [98, "mov rdi, rax"], [99, "call bdestroy"], [100, "add [rbp+var_4], 1"], [101, "mov eax, cs:dword_4210E4"], [102, "cmp [rbp+var_4], eax"], [103, "jl loc_403A0D"], [104, "mov edi, offset aAbcd"], [105, "call bfromcstr"], [106, "mov [rbp+var_20], rax"], [107, "mov edi, offset aAbcd"], [108, "call bfromcstr"], [109, "mov [rbp+var_28], rax"], [110, "mov [rbp+var_4], 0"], [111, "mov eax, [rbp+var_4]"], [112, "mov [rbp+var_8], eax"], [113, "jmp loc_403C9B"], [114, "mov rax, [rbp+var_20]"], [115, "mov [rbp+var_30], rax"], [116, "cmp [rbp+var_30], 0"], [117, "jz loc_403C29"], [118, "mov rax, [rbp+var_30]"], [119, "mov rax, [rax+8]"], [120, "test rax, rax"], [121, "jz short loc_403C29"], [122, "mov rax, [rbp+var_30]"], [123, "mov eax, [rax+4]"], [124, "test eax, eax"], [125, "js short loc_403C29"], [126, "mov [rbp+var_14], 0"], [127, "mov [rbp+var_18], 3"], [128, "cmp [rbp+var_14], 0"], [129, "jns short loc_403BDA"], [130, "mov eax, [rbp+var_14]"], [131, "add [rbp+var_18], eax"], [132, "mov [rbp+var_14], 0"], [133, "mov rax, [rbp+var_30]"], [134, "mov eax, [rax+4]"], [135, "sub eax, [rbp+var_14]"], [136, "cmp [rbp+var_18], eax"], [137, "jle short loc_403BF6"], [138, "mov rax, [rbp+var_30]"], [139, "mov eax, [rax+4]"], [140, "sub eax, [rbp+var_14]"], [141, "mov [rbp+var_18], eax"], [142, "cmp [rbp+var_18], 0"], [143, "jg short loc_403C0D"], [144, "mov [rbp+var_48], offset unk_41A008"], [145, "mov [rbp+var_4C], 0"], [146, "jmp short loc_403C38"], [147, "mov rax, [rbp+var_30]"], [148, "mov rdx, [rax+8]"], [149, "mov eax, [rbp+var_14]"], [150, "cdqe"], [151, "add rax, rdx"], [152, "mov [rbp+var_48], rax"], [153, "mov eax, [rbp+var_18]"], [154, "mov [rbp+var_4C], eax"], [155, "jmp short loc_403C38"], [156, "mov [rbp+var_48], offset unk_41A008"], [157, "mov [rbp+var_4C], 0"], [158, "mov [rbp+var_50], 0FFFFFE76h"], [159, "mov rax, [rbp+var_28]"], [160, "mov esi, offset aAbc"], [161, "mov rdi, rax"], [162, "call bcatcstr"], [163, "test eax, eax"], [164, "setnz al"], [165, "movzx eax, al"], [166, "add [rbp+var_8], eax"], [167, "lea rdx, [rbp+var_50]"], [168, "mov rax, [rbp+var_20]"], [169, "mov rsi, rdx"], [170, "mov rdi, rax"], [171, "call bconcat"], [172, "test eax, eax"], [173, "setnz al"], [174, "movzx eax, al"], [175, "add [rbp+var_8], eax"], [176, "mov rdx, [rbp+var_28]"], [177, "mov rax, [rbp+var_20]"], [178, "mov rsi, rdx"], [179, "mov rdi, rax"], [180, "call biseq"], [181, "test eax, eax"], [182, "setz al"], [183, "movzx eax, al"], [184, "add [rbp+var_8], eax"], [185, "add [rbp+var_4], 1"], [186, "cmp [rbp+var_4], 63h "], [187, "jle loc_403B8E"], [188, "mov rax, [rbp+var_20]"], [189, "mov rdi, rax"], [190, "call bdestroy"], [191, "mov rax, [rbp+var_28]"], [192, "mov rdi, rax"], [193, "call bdestroy"], [194, "cmp [rbp+var_8], 0"], [195, "jz short loc_403CF2"], [196, "mov rax, cs:stderr"], [197, "mov edx, [rbp+var_8]"], [198, "mov r9d, edx"], [199, "mov r8d, 192h"], [200, "mov ecx, 192h"], [201, "mov edx, offset filename"], [202, "mov esi, offset aDebugSDAliasFa"], [203, "mov rdi, rax"], [204, "mov eax, 0"], [205, "call _fprintf"], [206, "mov eax, [rbp+var_8]"], [207, "leave"], [208, "retn"]], "data_dep": [[7, 3], [11, 10], [12, 11], [16, 15], [19, 18], [20, 16], [21, 20], [22, 21], [23, 22], [24, 21], [25, 24], [26, 25], [27, 26], [28, 21], [29, 28], [30, 29], [31, 30], [32, 100], [32, 10], [33, 32], [35, 34], [36, 33], [37, 36], [38, 33], [39, 35], [39, 38], [41, 21], [42, 41], [43, 40], [43, 33], [43, 42], [44, 35], [44, 39], [44, 43], [45, 44], [46, 21], [47, 46], [48, 47], [48, 40], [48, 33], [49, 48], [50, 49], [50, 35], [50, 39], [51, 50], [55, 21], [56, 55], [57, 40], [57, 33], [59, 57], [59, 56], [60, 59], [61, 49], [61, 35], [61, 39], [62, 61], [67, 56], [67, 85], [67, 5], [67, 66], [68, 19], [69, 67], [70, 68], [72, 71], [73, 72], [74, 73], [75, 74], [75, 12], [75, 93], [76, 67], [76, 66], [77, 16], [78, 76], [79, 77], [81, 80], [82, 81], [83, 82], [84, 75], [84, 83], [85, 19], [86, 16], [87, 85], [88, 86], [90, 89], [91, 90], [92, 91], [93, 92], [93, 84], [94, 16], [95, 94], [97, 19], [98, 97], [100, 10], [100, 100], [102, 100], [102, 10], [102, 101], [103, 102], [106, 105], [109, 108], [111, 110], [112, 111], [114, 106], [115, 114], [116, 115], [117, 116], [118, 115], [119, 118], [120, 119], [121, 120], [122, 115], [123, 122], [124, 123], [125, 124], [128, 126], [129, 128], [130, 126], [131, 127], [131, 130], [133, 115], [134, 133], [135, 126], [135, 132], [135, 134], [136, 135], [136, 127], [136, 131], [137, 136], [138, 115], [139, 138], [140, 139], [140, 132], [140, 126], [141, 140], [142, 141], [142, 127], [142, 131], [143, 142], [147, 115], [148, 147], [149, 132], [149, 126], [151, 148], [151, 149], [152, 151], [153, 141], [153, 127], [153, 131], [154, 153], [159, 109], [161, 159], [163, 162], [164, 163], [165, 164], [166, 165], [166, 112], [166, 184], [167, 148], [167, 5], [167, 85], [167, 158], [167, 176], [168, 106], [169, 167], [170, 168], [172, 171], [173, 172], [174, 173], [175, 174], [175, 166], [176, 109], [177, 106], [178, 176], [179, 177], [181, 180], [182, 181], [183, 182], [184, 175], [184, 183], [185, 110], [185, 185], [186, 110], [186, 185], [187, 186], [188, 106], [189, 188], [191, 109], [192, 191], [194, 112], [194, 184], [195, 194], [197, 184], [197, 112], [198, 197], [203, 196], [206, 184], [206, 112], [208, 206]]}
static void CheckLabelName (const char* Label) /* Check if the given label is a valid label name */ { const char* L = Label; if (strlen (L) < 256 && (IsAlpha (*L) || *L== '_')) { while (*++L) { if (!IsAlNum (*L) && *L != '_') { break; } } } if (*L) { Error ("Label name '%s' is invalid", Label); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403103", "function_addr": 4206851, "binary_name": "2d7157ae4ddaf5a252147da4e56bb5b4f7c4cfc96d65cbd8652698412d3c3be1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov [rbp+s], rax"], [6, "mov rax, [rbp+s]"], [7, "mov rdi, rax"], [8, "call _strlen"], [9, "cmp rax, 0FFh"], [10, "ja short loc_403180"], [11, "mov rax, [rbp+s]"], [12, "movzx eax, byte ptr [rax]"], [13, "movsx eax, al"], [14, "mov edi, eax"], [15, "call sub_404627"], [16, "test eax, eax"], [17, "jnz short loc_40316D"], [18, "mov rax, [rbp+s]"], [19, "movzx eax, byte ptr [rax]"], [20, "cmp al, 5Fh "], [21, "jnz short loc_403180"], [22, "jmp short loc_40316D"], [23, "mov rax, [rbp+s]"], [24, "movzx eax, byte ptr [rax]"], [25, "movsx eax, al"], [26, "mov edi, eax"], [27, "call sub_404656"], [28, "test eax, eax"], [29, "jnz short loc_40316D"], [30, "mov rax, [rbp+s]"], [31, "movzx eax, byte ptr [rax]"], [32, "cmp al, 5Fh "], [33, "jnz short loc_40317F"], [34, "add [rbp+s], 1"], [35, "mov rax, [rbp+s]"], [36, "movzx eax, byte ptr [rax]"], [37, "test al, al"], [38, "jnz short loc_40314D"], [39, "jmp short loc_403180"], [40, "nop"], [41, "mov rax, [rbp+s]"], [42, "movzx eax, byte ptr [rax]"], [43, "test al, al"], [44, "jz short loc_4031A1"], [45, "mov rax, [rbp+var_18]"], [46, "mov rsi, rax"], [47, "mov edi, offset aLabelNameSIsIn"], [48, "mov eax, 0"], [49, "call sub_4013AF"], [50, "nop"], [51, "leave"], [52, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [9, 8], [10, 9], [11, 5], [12, 11], [13, 12], [14, 13], [16, 15], [17, 16], [18, 5], [19, 18], [20, 19], [21, 20], [23, 34], [24, 23], [25, 24], [26, 25], [28, 27], [29, 28], [30, 34], [31, 30], [32, 31], [33, 32], [34, 34], [34, 5], [35, 34], [36, 35], [37, 36], [38, 37], [41, 5], [41, 34], [42, 41], [43, 42], [44, 43], [45, 3], [46, 45], [52, 43]]}
static pj_bool_t refresh_permission(pj_turn_permission *perm) { pj_gettimeofday(&perm->expiry); if (perm->channel == PJ_TURN_INVALID_CHANNEL) perm->expiry.sec += PJ_TURN_PERM_TIMEOUT; else perm->expiry.sec += PJ_TURN_CHANNEL_TIMEOUT; return PJ_TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40538C", "function_addr": 4215692, "binary_name": "d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "add rax, 30h "], [6, "mov rdi, rax"], [7, "call sub_41B17F"], [8, "mov rax, [rbp+var_8]"], [9, "movzx eax, word ptr [rax+28h]"], [10, "cmp ax, 0FFFFh"], [11, "jnz short loc_4053CF"], [12, "mov rax, [rbp+var_8]"], [13, "mov rax, [rax+30h]"], [14, "lea rdx, [rax+12Ch]"], [15, "mov rax, [rbp+var_8]"], [16, "mov [rax+30h], rdx"], [17, "jmp short loc_4053E6"], [18, "mov rax, [rbp+var_8]"], [19, "mov rax, [rax+30h]"], [20, "lea rdx, [rax+258h]"], [21, "mov rax, [rbp+var_8]"], [22, "mov [rax+30h], rdx"], [23, "mov eax, 1"], [24, "leave"], [25, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [8, 3], [9, 8], [10, 9], [11, 10], [12, 3], [13, 12], [14, 13], [15, 3], [16, 15], [16, 14], [18, 3], [19, 18], [20, 19], [21, 3], [22, 20], [22, 21], [25, 23]]}
static void debug_output_one(unsigned int cpu) { char *driver; struct cpufreq_affected_cpus *cpus; struct cpufreq_available_frequencies *freqs; unsigned long min, max, freq_kernel, freq_hardware; unsigned long total_trans, latency; unsigned long long total_time; struct cpufreq_policy *policy; struct cpufreq_available_governors *governors; struct cpufreq_stats *stats; if (cpufreq_cpu_exists(cpu)) return; freq_kernel = cpufreq_get_freq_kernel(cpu); freq_hardware = cpufreq_get_freq_hardware(cpu); driver = cpufreq_get_driver(cpu); if (!driver) { printf(_(" no or unknown cpufreq driver is active on this CPU\n")); } else { printf(_(" driver: %s\n"), driver); cpufreq_put_driver(driver); } cpus = cpufreq_get_related_cpus(cpu); if (cpus) { printf(_(" CPUs which run at the same hardware frequency: ")); while (cpus->next) { printf("%d ", cpus->cpu); cpus = cpus->next; } printf("%d\n", cpus->cpu); cpufreq_put_related_cpus(cpus); } cpus = cpufreq_get_affected_cpus(cpu); if (cpus) { printf(_(" CPUs which need to have their frequency coordinated by software: ")); while (cpus->next) { printf("%d ", cpus->cpu); cpus = cpus->next; } printf("%d\n", cpus->cpu); cpufreq_put_affected_cpus(cpus); } latency = cpufreq_get_transition_latency(cpu); if (latency) { printf(_(" maximum transition latency: ")); print_duration(latency); printf(".\n"); } if (!(cpufreq_get_hardware_limits(cpu, &min, &max))) { printf(_(" hardware limits: ")); print_speed(min); printf(" - "); print_speed(max); printf("\n"); } freqs = cpufreq_get_available_frequencies(cpu); if (freqs) { printf(_(" available frequency steps: ")); while (freqs->next) { print_speed(freqs->frequency); printf(", "); freqs = freqs->next; } print_speed(freqs->frequency); printf("\n"); cpufreq_put_available_frequencies(freqs); } governors = cpufreq_get_available_governors(cpu); if (governors) { printf(_(" available cpufreq governors: ")); while (governors->next) { printf("%s, ", governors->governor); governors = governors->next; } printf("%s\n", governors->governor); cpufreq_put_available_governors(governors); } policy = cpufreq_get_policy(cpu); if (policy) { printf(_(" current policy: frequency should be within ")); print_speed(policy->min); printf(_(" and ")); print_speed(policy->max); printf(".\n "); printf(_("The governor \"%s\" may" " decide which speed to use\n within this range.\n"), policy->governor); cpufreq_put_policy(policy); } if (freq_kernel || freq_hardware) { printf(_(" current CPU frequency is ")); if (freq_hardware) { print_speed(freq_hardware); printf(_(" (asserted by call to hardware)")); } else print_speed(freq_kernel); printf(".\n"); } stats = cpufreq_get_stats(cpu, &total_time); if (stats) { printf(_(" cpufreq stats: ")); while (stats) { print_speed(stats->frequency); printf(":%.2f%%", (100.0 * stats->time_in_state) / total_time); stats = stats->next; if (stats) printf(", "); } cpufreq_put_stats(stats); total_trans = cpufreq_get_transitions(cpu); if (total_trans) printf(" (%lu)\n", total_trans); else printf("\n"); } get_boost_mode(cpu); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409E51", "function_addr": 4234833, "binary_name": "460c289354d06d5f8173c83902ab5dff8aff4f37d680ce049020dd3b138c2ca5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 88h"], [4, "mov [rbp+cpu], edi"], [5, "mov eax, [rbp+cpu]"], [6, "mov edi, eax"], [7, "call _cpufreq_cpu_exists"], [8, "test eax, eax"], [9, "jnz loc_40A418"], [10, "mov eax, [rbp+cpu]"], [11, "mov edi, eax"], [12, "call _cpufreq_get_freq_kernel"], [13, "mov [rbp+var_38], rax"], [14, "mov eax, [rbp+cpu]"], [15, "mov edi, eax"], [16, "call _cpufreq_get_freq_hardware"], [17, "mov [rbp+var_40], rax"], [18, "mov eax, [rbp+cpu]"], [19, "mov edi, eax"], [20, "call _cpufreq_get_driver"], [21, "mov [rbp+ptr], rax"], [22, "cmp [rbp+ptr], 0"], [23, "jnz short loc_409ECB"], [24, "mov edi, offset aNoOrUnknownCpu"], [25, "call _gettext"], [26, "mov rdi, rax"], [27, "mov eax, 0"], [28, "call _printf"], [29, "jmp short loc_409EF8"], [30, "mov edi, offset aDriverS"], [31, "call _gettext"], [32, "mov rdx, rax"], [33, "mov rax, [rbp+ptr]"], [34, "mov rsi, rax"], [35, "mov rdi, rdx"], [36, "mov eax, 0"], [37, "call _printf"], [38, "mov rax, [rbp+ptr]"], [39, "mov rdi, rax"], [40, "call _cpufreq_put_driver"], [41, "mov eax, [rbp+cpu]"], [42, "mov edi, eax"], [43, "call _cpufreq_get_related_cpus"], [44, "mov [rbp+first], rax"], [45, "cmp [rbp+first], 0"], [46, "jz short loc_409F7C"], [47, "mov edi, offset aCpusWhichRunAt"], [48, "call _gettext"], [49, "mov rdi, rax"], [50, "mov eax, 0"], [51, "call _printf"], [52, "jmp short loc_409F4C"], [53, "mov rax, [rbp+first]"], [54, "mov eax, [rax]"], [55, "mov esi, eax"], [56, "mov edi, offset aD_1"], [57, "mov eax, 0"], [58, "call _printf"], [59, "mov rax, [rbp+first]"], [60, "mov rax, [rax+8]"], [61, "mov [rbp+first], rax"], [62, "mov rax, [rbp+first]"], [63, "mov rax, [rax+8]"], [64, "test rax, rax"], [65, "jnz short loc_409F29"], [66, "mov rax, [rbp+first]"], [67, "mov eax, [rax]"], [68, "mov esi, eax"], [69, "mov edi, offset aD_2"], [70, "mov eax, 0"], [71, "call _printf"], [72, "mov rax, [rbp+first]"], [73, "mov rdi, rax"], [74, "call _cpufreq_put_related_cpus"], [75, "mov eax, [rbp+cpu]"], [76, "mov edi, eax"], [77, "call _cpufreq_get_affected_cpus"], [78, "mov [rbp+first], rax"], [79, "cmp [rbp+first], 0"], [80, "jz short loc_40A000"], [81, "mov edi, offset aCpusWhichNeedT"], [82, "call _gettext"], [83, "mov rdi, rax"], [84, "mov eax, 0"], [85, "call _printf"], [86, "jmp short loc_409FD0"], [87, "mov rax, [rbp+first]"], [88, "mov eax, [rax]"], [89, "mov esi, eax"], [90, "mov edi, offset aD_1"], [91, "mov eax, 0"], [92, "call _printf"], [93, "mov rax, [rbp+first]"], [94, "mov rax, [rax+8]"], [95, "mov [rbp+first], rax"], [96, "mov rax, [rbp+first]"], [97, "mov rax, [rax+8]"], [98, "test rax, rax"], [99, "jnz short loc_409FAD"], [100, "mov rax, [rbp+first]"], [101, "mov eax, [rax]"], [102, "mov esi, eax"], [103, "mov edi, offset aD_2"], [104, "mov eax, 0"], [105, "call _printf"], [106, "mov rax, [rbp+first]"], [107, "mov rdi, rax"], [108, "call _cpufreq_put_affected_cpus"], [109, "mov eax, [rbp+cpu]"], [110, "mov edi, eax"], [111, "call _cpufreq_get_transition_latency"], [112, "mov [rbp+var_50], rax"], [113, "cmp [rbp+var_50], 0"], [114, "jz short loc_40A045"], [115, "mov edi, offset aMaximumTransit"], [116, "call _gettext"], [117, "mov rdi, rax"], [118, "mov eax, 0"], [119, "call _printf"], [120, "mov rax, [rbp+var_50]"], [121, "mov rdi, rax"], [122, "call sub_409676"], [123, "mov edi, offset asc_40E70F"], [124, "call _puts"], [125, "lea rdx, [rbp+max]"], [126, "lea rcx, [rbp+min]"], [127, "mov eax, [rbp+cpu]"], [128, "mov rsi, rcx"], [129, "mov edi, eax"], [130, "call _cpufreq_get_hardware_limits"], [131, "test eax, eax"], [132, "jnz short loc_40A0A9"], [133, "mov edi, offset aHardwareLimits"], [134, "call _gettext"], [135, "mov rdi, rax"], [136, "mov eax, 0"], [137, "call _printf"], [138, "mov rax, [rbp+min]"], [139, "mov rdi, rax"], [140, "call sub_40937B"], [141, "mov edi, offset asc_40E725"], [142, "mov eax, 0"], [143, "call _printf"], [144, "mov rax, [rbp+max]"], [145, "mov rdi, rax"], [146, "call sub_40937B"], [147, "mov edi, 0Ah"], [148, "call _putchar"], [149, "mov eax, [rbp+cpu]"], [150, "mov edi, eax"], [151, "call _cpufreq_get_available_frequencies"], [152, "mov [rbp+var_20], rax"], [153, "cmp [rbp+var_20], 0"], [154, "jz short loc_40A136"], [155, "mov edi, offset aAvailableFrequ"], [156, "call _gettext"], [157, "mov rdi, rax"], [158, "mov eax, 0"], [159, "call _printf"], [160, "jmp short loc_40A104"], [161, "mov rax, [rbp+var_20]"], [162, "mov rax, [rax]"], [163, "mov rdi, rax"], [164, "call sub_40937B"], [165, "mov edi, offset asc_40E747"], [166, "mov eax, 0"], [167, "call _printf"], [168, "mov rax, [rbp+var_20]"], [169, "mov rax, [rax+8]"], [170, "mov [rbp+var_20], rax"], [171, "mov rax, [rbp+var_20]"], [172, "mov rax, [rax+8]"], [173, "test rax, rax"], [174, "jnz short loc_40A0DA"], [175, "mov rax, [rbp+var_20]"], [176, "mov rax, [rax]"], [177, "mov rdi, rax"], [178, "call sub_40937B"], [179, "mov edi, 0Ah"], [180, "call _putchar"], [181, "mov rax, [rbp+var_20]"], [182, "mov rdi, rax"], [183, "call _cpufreq_put_available_frequencies"], [184, "mov eax, [rbp+cpu]"], [185, "mov edi, eax"], [186, "call _cpufreq_get_available_governors"], [187, "mov [rbp+var_28], rax"], [188, "cmp [rbp+var_28], 0"], [189, "jz short loc_40A1B4"], [190, "mov edi, offset aAvailableCpufr"], [191, "call _gettext"], [192, "mov rdi, rax"], [193, "mov eax, 0"], [194, "call _printf"], [195, "jmp short loc_40A18C"], [196, "mov rax, [rbp+var_28]"], [197, "mov rax, [rax]"], [198, "mov rsi, rax"], [199, "mov edi, offset aS_2"], [200, "mov eax, 0"], [201, "call _printf"], [202, "mov rax, [rbp+var_28]"], [203, "mov rax, [rax+8]"], [204, "mov [rbp+var_28], rax"], [205, "mov rax, [rbp+var_28]"], [206, "mov rax, [rax+8]"], [207, "test rax, rax"], [208, "jnz short loc_40A167"], [209, "mov rax, [rbp+var_28]"], [210, "mov rax, [rax]"], [211, "mov rdi, rax"], [212, "call _puts"], [213, "mov rax, [rbp+var_28]"], [214, "mov rdi, rax"], [215, "call _cpufreq_put_available_governors"], [216, "mov eax, [rbp+cpu]"], [217, "mov edi, eax"], [218, "call _cpufreq_get_policy"], [219, "mov [rbp+policy], rax"], [220, "cmp [rbp+policy], 0"], [221, "jz loc_40A25A"], [222, "mov edi, offset aCurrentPolicyF"], [223, "call _gettext"], [224, "mov rdi, rax"], [225, "mov eax, 0"], [226, "call _printf"], [227, "mov rax, [rbp+policy]"], [228, "mov rax, [rax]"], [229, "mov rdi, rax"], [230, "call sub_40937B"], [231, "mov edi, offset aAnd"], [232, "call _gettext"], [233, "mov rdi, rax"], [234, "mov eax, 0"], [235, "call _printf"], [236, "mov rax, [rbp+policy]"], [237, "mov rax, [rax+8]"], [238, "mov rdi, rax"], [239, "call sub_40937B"], [240, "mov edi, offset asc_40E7AC"], [241, "mov eax, 0"], [242, "call _printf"], [243, "mov rax, [rbp+policy]"], [244, "mov rbx, [rax+10h]"], [245, "mov edi, offset aTheGovernorSMa"], [246, "call _gettext"], [247, "mov rsi, rbx"], [248, "mov rdi, rax"], [249, "mov eax, 0"], [250, "call _printf"], [251, "mov rax, [rbp+policy]"], [252, "mov rdi, rax"], [253, "call _cpufreq_put_policy"], [254, "cmp [rbp+var_38], 0"], [255, "jnz short loc_40A268"], [256, "cmp [rbp+var_40], 0"], [257, "jz short loc_40A2C1"], [258, "mov edi, offset aCurrentCpuFreq"], [259, "call _gettext"], [260, "mov rdi, rax"], [261, "mov eax, 0"], [262, "call _printf"], [263, "cmp [rbp+var_40], 0"], [264, "jz short loc_40A2AB"], [265, "mov rax, [rbp+var_40]"], [266, "mov rdi, rax"], [267, "call sub_40937B"], [268, "mov edi, offset aAssertedByCall"], [269, "call _gettext"], [270, "mov rdi, rax"], [271, "mov eax, 0"], [272, "call _printf"], [273, "jmp short loc_40A2B7"], [274, "mov rax, [rbp+var_38]"], [275, "mov rdi, rax"], [276, "call sub_40937B"], [277, "mov edi, offset asc_40E70F"], [278, "call _puts"], [279, "lea rdx, [rbp+total_time]"], [280, "mov eax, [rbp+cpu]"], [281, "mov rsi, rdx"], [282, "mov edi, eax"], [283, "call _cpufreq_get_stats"], [284, "mov [rbp+stats], rax"], [285, "cmp [rbp+stats], 0"], [286, "jz loc_40A409"], [287, "mov edi, offset aCpufreqStats"], [288, "call _gettext"], [289, "mov rdi, rax"], [290, "mov eax, 0"], [291, "call _printf"], [292, "jmp loc_40A3B8"], [293, "mov rax, [rbp+stats]"], [294, "mov rax, [rax]"], [295, "mov rdi, rax"], [296, "call sub_40937B"], [297, "mov rax, [rbp+stats]"], [298, "mov rax, [rax+8]"], [299, "test rax, rax"], [300, "js short loc_40A327"], [301, "pxor xmm0, xmm0"], [302, "cvtsi2sd xmm0, rax"], [303, "jmp short loc_40A340"], [304, "mov rdx, rax"], [305, "shr rdx, 1"], [306, "and eax, 1"], [307, "or rdx, rax"], [308, "pxor xmm0, xmm0"], [309, "cvtsi2sd xmm0, rdx"], [310, "addsd xmm0, xmm0"], [311, "movsd xmm1, cs:qword_40ED08"], [312, "mulsd xmm1, xmm0"], [313, "mov rax, [rbp+total_time]"], [314, "test rax, rax"], [315, "js short loc_40A360"], [316, "pxor xmm0, xmm0"], [317, "cvtsi2sd xmm0, rax"], [318, "jmp short loc_40A379"], [319, "mov rdx, rax"], [320, "shr rdx, 1"], [321, "and eax, 1"], [322, "or rdx, rax"], [323, "pxor xmm0, xmm0"], [324, "cvtsi2sd xmm0, rdx"], [325, "addsd xmm0, xmm0"], [326, "divsd xmm1, xmm0"], [327, "movq rax, xmm1"], [328, "movq xmm0, rax"], [329, "mov edi, offset a2f"], [330, "mov eax, 1"], [331, "call _printf"], [332, "mov rax, [rbp+stats]"], [333, "mov rax, [rax+10h]"], [334, "mov [rbp+stats], rax"], [335, "cmp [rbp+stats], 0"], [336, "jz short loc_40A3B8"], [337, "mov edi, offset asc_40E747"], [338, "mov eax, 0"], [339, "call _printf"], [340, "cmp [rbp+stats], 0"], [341, "jnz loc_40A300"], [342, "mov rax, [rbp+stats]"], [343, "mov rdi, rax"], [344, "call _cpufreq_put_stats"], [345, "mov eax, [rbp+cpu]"], [346, "mov edi, eax"], [347, "call _cpufreq_get_transitions"], [348, "mov [rbp+var_60], rax"], [349, "cmp [rbp+var_60], 0"], [350, "jz short loc_40A3FF"], [351, "mov rax, [rbp+var_60]"], [352, "mov rsi, rax"], [353, "mov edi, offset aLu"], [354, "mov eax, 0"], [355, "call _printf"], [356, "jmp short loc_40A409"], [357, "mov edi, 0Ah"], [358, "call _putchar"], [359, "mov eax, [rbp+cpu]"], [360, "mov edi, eax"], [361, "call sub_40998E"], [362, "jmp short loc_40A419"], [363, "nop"], [364, "mov rbx, [rbp+var_8]"], [365, "leave"], [366, "retn"]], "data_dep": [[5, 4], [6, 5], [8, 7], [9, 8], [10, 4], [11, 10], [13, 12], [14, 4], [15, 14], [17, 16], [18, 4], [19, 18], [21, 20], [22, 21], [23, 22], [26, 25], [32, 31], [33, 21], [34, 33], [35, 32], [38, 21], [39, 38], [41, 4], [42, 41], [44, 43], [45, 44], [46, 45], [49, 48], [53, 61], [53, 44], [54, 53], [55, 54], [59, 61], [59, 44], [60, 59], [61, 60], [62, 44], [62, 61], [63, 62], [64, 63], [65, 64], [66, 61], [66, 44], [67, 66], [68, 67], [72, 61], [72, 44], [73, 72], [75, 4], [76, 75], [78, 77], [79, 78], [80, 79], [83, 82], [87, 95], [87, 78], [88, 87], [89, 88], [93, 95], [93, 78], [94, 93], [95, 94], [96, 95], [96, 78], [97, 96], [98, 97], [99, 98], [100, 78], [100, 95], [101, 100], [102, 101], [106, 95], [106, 78], [107, 106], [109, 4], [110, 109], [112, 111], [113, 112], [114, 113], [117, 116], [120, 112], [121, 120], [125, 32], [127, 4], [128, 126], [129, 127], [131, 130], [132, 131], [135, 134], [139, 138], [145, 144], [149, 4], [150, 149], [152, 151], [153, 152], [154, 153], [157, 156], [161, 152], [161, 170], [162, 161], [163, 162], [168, 152], [168, 170], [169, 168], [170, 169], [171, 152], [171, 170], [172, 171], [173, 172], [174, 173], [175, 170], [175, 152], [176, 175], [177, 176], [181, 152], [181, 170], [182, 181], [184, 4], [185, 184], [187, 186], [188, 187], [189, 188], [192, 191], [196, 187], [196, 204], [197, 196], [198, 197], [202, 187], [202, 204], [203, 202], [204, 203], [205, 204], [205, 187], [206, 205], [207, 206], [208, 207], [209, 204], [209, 187], [210, 209], [211, 210], [213, 204], [213, 187], [214, 213], [216, 4], [217, 216], [219, 218], [220, 219], [221, 220], [224, 223], [227, 219], [228, 227], [229, 228], [233, 232], [236, 219], [237, 236], [238, 237], [243, 219], [244, 243], [247, 244], [248, 246], [251, 219], [252, 251], [254, 13], [255, 254], [256, 17], [257, 256], [260, 259], [263, 17], [264, 263], [265, 17], [266, 265], [270, 269], [274, 13], [275, 274], [279, 125], [280, 4], [281, 279], [282, 280], [284, 283], [285, 284], [286, 285], [289, 288], [293, 284], [293, 334], [294, 293], [295, 294], [297, 284], [297, 334], [298, 297], [299, 298], [300, 299], [302, 299], [302, 301], [304, 299], [305, 304], [306, 299], [307, 306], [307, 305], [309, 307], [309, 308], [310, 309], [312, 310], [312, 302], [312, 311], [314, 313], [315, 314], [317, 316], [317, 314], [319, 314], [320, 319], [321, 314], [322, 321], [322, 320], [324, 323], [324, 322], [325, 324], [326, 325], [326, 317], [326, 312], [327, 326], [328, 327], [332, 334], [332, 284], [333, 332], [334, 333], [335, 334], [336, 335], [340, 284], [340, 334], [341, 340], [342, 284], [342, 334], [343, 342], [345, 4], [346, 345], [348, 347], [349, 348], [350, 349], [351, 348], [352, 351], [359, 4], [360, 359], [366, 361], [366, 8]]}
static void print_counter_aggr(struct perf_evsel *counter, char *prefix) { struct perf_stat *ps = counter->priv; double avg = avg_stats(&ps->res_stats[0]); int scaled = counter->counts->scaled; double uval; if (prefix) fprintf(output, "%s", prefix); if (scaled == -1) { fprintf(output, "%*s%s", csv_output ? 0 : 18, counter->supported ? CNTR_NOT_COUNTED : CNTR_NOT_SUPPORTED, csv_sep); fprintf(output, "%-*s%s", csv_output ? 0 : unit_width, counter->unit, csv_sep); fprintf(output, "%*s", csv_output ? 0 : -25, perf_evsel__name(counter)); if (counter->cgrp) fprintf(output, "%s%s", csv_sep, counter->cgrp->name); fputc('\n', output); return; } uval = avg * counter->scale; if (nsec_counter(counter)) nsec_printout(-1, 0, counter, uval); else abs_printout(-1, 0, counter, uval); print_noise(counter, avg); if (csv_output) { fputc('\n', output); return; } if (scaled) { double avg_enabled, avg_running; avg_enabled = avg_stats(&ps->res_stats[1]); avg_running = avg_stats(&ps->res_stats[2]); fprintf(output, " [%5.2f%%]", 100 * avg_running / avg_enabled); } fprintf(output, "\n"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4339DB", "function_addr": 4405723, "binary_name": "decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+s], rsi"], [5, "mov rax, fs:28h"], [6, "mov [rbp+var_8], rax"], [7, "xor eax, eax"], [8, "mov rax, [rbp+var_48]"], [9, "mov rax, [rax+2C0h]"], [10, "mov [rbp+var_30], rax"], [11, "mov rax, [rbp+var_30]"], [12, "mov rdi, rax"], [13, "call avg_stats"], [14, "movq rax, xmm0"], [15, "mov [rbp+var_28], rax"], [16, "mov rax, [rbp+var_48]"], [17, "mov rax, [rax+90h]"], [18, "movzx eax, byte ptr [rax]"], [19, "movsx eax, al"], [20, "mov [rbp+var_34], eax"], [21, "cmp [rbp+s], 0"], [22, "jz short loc_433A4F"], [23, "mov rdx, cs:stream"], [24, "mov rax, [rbp+s]"], [25, "mov rsi, rdx"], [26, "mov rdi, rax"], [27, "call _fputs"], [28, "cmp [rbp+var_34], 0FFFFFFFFh"], [29, "jnz loc_433B93"], [30, "mov rdx, cs:qword_563518"], [31, "mov rax, [rbp+var_48]"], [32, "movzx eax, byte ptr [rax+2ECh]"], [33, "test al, al"], [34, "jz short loc_433A76"], [35, "mov ecx, offset aNotCounted"], [36, "jmp short loc_433A7B"], [37, "mov ecx, offset aNotSupported"], [38, "movzx eax, cs:byte_563520"], [39, "test al, al"], [40, "jz short loc_433A8D"], [41, "mov esi, 0"], [42, "jmp short loc_433A92"], [43, "mov esi, 12h"], [44, "mov rax, cs:stream"], [45, "mov r8, rdx"], [46, "mov edx, esi"], [47, "mov esi, offset aSS_11"], [48, "mov rdi, rax"], [49, "mov eax, 0"], [50, "call _fprintf"], [51, "mov rcx, cs:qword_563518"], [52, "mov rax, [rbp+var_48]"], [53, "mov rdx, [rax+2B0h]"], [54, "movzx eax, cs:byte_563520"], [55, "test al, al"], [56, "jz short loc_433AD4"], [57, "mov eax, 0"], [58, "jmp short loc_433ADA"], [59, "mov eax, cs:dword_553C80"], [60, "mov rdi, cs:stream"], [61, "mov r8, rcx"], [62, "mov rcx, rdx"], [63, "mov edx, eax"], [64, "mov esi, offset aSS_10"], [65, "mov eax, 0"], [66, "call _fprintf"], [67, "mov rax, [rbp+var_48]"], [68, "mov rdi, rax"], [69, "call perf_evsel__name"], [70, "mov rdx, rax"], [71, "movzx eax, cs:byte_563520"], [72, "test al, al"], [73, "jz short loc_433B19"], [74, "mov esi, 0"], [75, "jmp short loc_433B1E"], [76, "mov esi, 0FFFFFFE7h"], [77, "mov rax, cs:stream"], [78, "mov rcx, rdx"], [79, "mov edx, esi"], [80, "mov esi, offset aS_26"], [81, "mov rdi, rax"], [82, "mov eax, 0"], [83, "call _fprintf"], [84, "mov rax, [rbp+var_48]"], [85, "mov rax, [rax+2C8h]"], [86, "test rax, rax"], [87, "jz short loc_433B7A"], [88, "mov rax, [rbp+var_48]"], [89, "mov rax, [rax+2C8h]"], [90, "mov rcx, [rax]"], [91, "mov rdx, cs:qword_563518"], [92, "mov rax, cs:stream"], [93, "mov esi, offset aSS_9"], [94, "mov rdi, rax"], [95, "mov eax, 0"], [96, "call _fprintf"], [97, "mov rax, cs:stream"], [98, "mov rsi, rax"], [99, "mov edi, 0Ah"], [100, "call _fputc"], [101, "jmp loc_433CBB"], [102, "mov rax, [rbp+var_48]"], [103, "movsd xmm0, qword ptr [rax+2A8h]"], [104, "movsd xmm1, [rbp+var_28]"], [105, "mulsd xmm0, xmm1"], [106, "movsd [rbp+var_20], xmm0"], [107, "mov rax, [rbp+var_48]"], [108, "mov rdi, rax"], [109, "call sub_43054E"], [110, "test eax, eax"], [111, "jz short loc_433BDE"], [112, "mov rdx, [rbp+var_20]"], [113, "mov rax, [rbp+var_48]"], [114, "movq xmm0, rdx"], [115, "mov rdx, rax"], [116, "mov esi, 0"], [117, "mov edi, 0FFFFFFFFh"], [118, "call sub_431B14"], [119, "jmp short loc_433BFD"], [120, "mov rdx, [rbp+var_20]"], [121, "mov rax, [rbp+var_48]"], [122, "movq xmm0, rdx"], [123, "mov rdx, rax"], [124, "mov esi, 0"], [125, "mov edi, 0FFFFFFFFh"], [126, "call sub_43273C"], [127, "mov rdx, [rbp+var_28]"], [128, "mov rax, [rbp+var_48]"], [129, "movq xmm0, rdx"], [130, "mov rdi, rax"], [131, "call sub_4318CE"], [132, "movzx eax, cs:byte_563520"], [133, "test al, al"], [134, "jz short loc_433C36"], [135, "mov rax, cs:stream"], [136, "mov rsi, rax"], [137, "mov edi, 0Ah"], [138, "call _fputc"], [139, "jmp loc_433CBB"], [140, "cmp [rbp+var_34], 0"], [141, "jz short loc_433CA7"], [142, "mov rax, [rbp+var_30]"], [143, "add rax, 28h "], [144, "mov rdi, rax"], [145, "call avg_stats"], [146, "movq rax, xmm0"], [147, "mov [rbp+var_18], rax"], [148, "mov rax, [rbp+var_30]"], [149, "add rax, 50h "], [150, "mov rdi, rax"], [151, "call avg_stats"], [152, "movq rax, xmm0"], [153, "mov [rbp+var_10], rax"], [154, "movsd xmm1, [rbp+var_10]"], [155, "movsd xmm0, cs:qword_50FFF0"], [156, "mulsd xmm0, xmm1"], [157, "divsd xmm0, [rbp+var_18]"], [158, "movq rdx, xmm0"], [159, "mov rax, cs:stream"], [160, "movq xmm0, rdx"], [161, "mov esi, offset a52f"], [162, "mov rdi, rax"], [163, "mov eax, 1"], [164, "call _fprintf"], [165, "mov rax, cs:stream"], [166, "mov rsi, rax"], [167, "mov edi, 0Ah"], [168, "call _fputc"], [169, "mov rax, [rbp+var_8]"], [170, "sub rax, fs:28h"], [171, "jz short locret_433CCF"], [172, "call ___stack_chk_fail"], [173, "leave"], [174, "retn"]], "data_dep": [[6, 5], [8, 3], [9, 8], [10, 9], [11, 10], [12, 11], [15, 14], [16, 3], [17, 16], [18, 17], [19, 18], [20, 19], [21, 4], [22, 21], [24, 4], [25, 23], [26, 24], [28, 20], [29, 28], [31, 3], [32, 31], [33, 32], [34, 33], [39, 38], [40, 39], [45, 30], [46, 41], [46, 43], [48, 44], [52, 3], [53, 52], [55, 54], [56, 55], [61, 51], [62, 53], [63, 57], [63, 59], [67, 3], [68, 67], [70, 69], [72, 71], [73, 72], [78, 70], [79, 74], [79, 76], [81, 77], [84, 3], [85, 84], [86, 85], [87, 86], [88, 3], [89, 88], [90, 89], [94, 92], [98, 97], [102, 3], [103, 102], [104, 15], [105, 104], [105, 103], [106, 105], [107, 3], [108, 107], [110, 109], [111, 110], [112, 106], [113, 3], [114, 112], [115, 113], [120, 106], [121, 3], [122, 120], [123, 121], [127, 15], [128, 3], [129, 127], [130, 128], [133, 132], [134, 133], [136, 135], [140, 20], [141, 140], [142, 10], [143, 142], [144, 143], [146, 129], [147, 146], [148, 10], [149, 148], [150, 149], [152, 129], [153, 152], [154, 153], [156, 154], [156, 155], [157, 147], [157, 156], [158, 157], [160, 158], [162, 159], [166, 165], [169, 6], [170, 169], [171, 170], [174, 170]]}
void dump_bytes( char *buf, int len) { int i, j; for (i = 0; i < len; i += 8) { printf("\t%3.3o: ", i); for (j = i; j < len && j < i + 8; j++) printf("%3.3o ", buf[j] & 0xff); printf("%*s", (i + 8 - j) * 4, ""); for (j = i; j < len && j < i + 8; j++) { int c = buf[j] & 0xff; if (!isprint(c)) c = '.'; putchar(c); } putchar('\n'); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401639", "function_addr": 4199993, "binary_name": "c3be97e05a4adbdef1a38c3ef0f314fa42a63ebc25ec8fa31c122889ce36daa8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_4], 0"], [6, "jmp loc_40174B"], [7, "mov eax, [rbp+var_4]"], [8, "mov esi, eax"], [9, "mov edi, offset a33o"], [10, "mov eax, 0"], [11, "call _printf"], [12, "mov eax, [rbp+var_4]"], [13, "mov [rbp+var_8], eax"], [14, "jmp short loc_40169B"], [15, "mov eax, [rbp+var_8]"], [16, "movsxd rdx, eax"], [17, "mov rax, [rbp+var_18]"], [18, "add rax, rdx"], [19, "movzx eax, byte ptr [rax]"], [20, "movsx eax, al"], [21, "movzx eax, al"], [22, "mov esi, eax"], [23, "mov edi, offset a33o_0"], [24, "mov eax, 0"], [25, "call _printf"], [26, "add [rbp+var_8], 1"], [27, "mov eax, [rbp+var_8]"], [28, "cmp eax, [rbp+var_1C]"], [29, "jge short loc_4016AE"], [30, "mov eax, [rbp+var_4]"], [31, "add eax, 7"], [32, "cmp [rbp+var_8], eax"], [33, "jle short loc_401670"], [34, "mov eax, [rbp+var_4]"], [35, "add eax, 8"], [36, "sub eax, [rbp+var_8]"], [37, "shl eax, 2"], [38, "mov edx, offset unk_40419A"], [39, "mov esi, eax"], [40, "mov edi, offset aS"], [41, "mov eax, 0"], [42, "call _printf"], [43, "mov eax, [rbp+var_4]"], [44, "mov [rbp+var_8], eax"], [45, "jmp short loc_40172A"], [46, "mov eax, [rbp+var_8]"], [47, "movsxd rdx, eax"], [48, "mov rax, [rbp+var_18]"], [49, "add rax, rdx"], [50, "movzx eax, byte ptr [rax]"], [51, "movsx eax, al"], [52, "and eax, 0FFh"], [53, "mov [rbp+c], eax"], [54, "call ___ctype_b_loc"], [55, "mov rdx, [rax]"], [56, "mov eax, [rbp+c]"], [57, "cdqe"], [58, "add rax, rax"], [59, "add rax, rdx"], [60, "movzx eax, word ptr [rax]"], [61, "movzx eax, ax"], [62, "and eax, 4000h"], [63, "test eax, eax"], [64, "jnz short loc_40171C"], [65, "mov [rbp+c], 2Eh "], [66, "mov eax, [rbp+c]"], [67, "mov edi, eax"], [68, "call _putchar"], [69, "add [rbp+var_8], 1"], [70, "mov eax, [rbp+var_8]"], [71, "cmp eax, [rbp+var_1C]"], [72, "jge short loc_40173D"], [73, "mov eax, [rbp+var_4]"], [74, "add eax, 7"], [75, "cmp [rbp+var_8], eax"], [76, "jle short loc_4016D8"], [77, "mov edi, 0Ah"], [78, "call _putchar"], [79, "add [rbp+var_4], 8"], [80, "mov eax, [rbp+var_4]"], [81, "cmp eax, [rbp+var_1C]"], [82, "jl loc_401654"], [83, "nop"], [84, "nop"], [85, "leave"], [86, "retn"]], "data_dep": [[7, 5], [7, 79], [8, 7], [12, 79], [12, 5], [13, 12], [15, 13], [15, 26], [16, 15], [17, 3], [18, 17], [18, 16], [19, 18], [20, 19], [21, 20], [22, 21], [26, 13], [26, 26], [27, 13], [27, 26], [28, 4], [28, 27], [29, 28], [30, 79], [30, 5], [31, 30], [32, 13], [32, 31], [32, 26], [33, 32], [34, 5], [34, 79], [35, 34], [36, 13], [36, 26], [36, 35], [37, 36], [39, 37], [43, 5], [43, 79], [44, 43], [46, 44], [46, 69], [47, 46], [48, 3], [49, 48], [49, 47], [50, 49], [51, 50], [52, 51], [53, 52], [55, 54], [56, 53], [58, 56], [59, 55], [59, 58], [60, 59], [61, 60], [62, 61], [63, 62], [64, 63], [66, 53], [66, 65], [67, 66], [69, 44], [69, 69], [70, 44], [70, 69], [71, 4], [71, 70], [72, 71], [73, 5], [73, 79], [74, 73], [75, 44], [75, 74], [75, 69], [76, 75], [79, 5], [79, 79], [80, 5], [80, 79], [81, 80], [81, 4], [82, 81], [86, 80]]}
static vmscond_t dir_1_arg( FILE *of, options_t options, struct dirstats *stats, char *filespec ) { char res[NAM$C_MAXRSS + 1] = { "" }, rsa[NAM$C_MAXRSS + 1] = { "" }; vmscond_t status; uint32_t nobackup = 0, contigb = 0, contig = 0, directory = 0, writeback = 0, readcheck = 0, writecheck = 0, locked = 0, spool = 0, badblock = 0, markdel = 0; uint16_t retlen = 0; struct NAM nam = cc$rms_nam; struct FAB fab = cc$rms_fab; struct XABDAT dat = cc$rms_xabdat; struct XABFHC fhc = cc$rms_xabfhc; struct XABPRO pro = cc$rms_xabpro; struct XABITM itm = cc$rms_xabitm; struct item_list xitems[] = { { XAB$_UCHAR_NOBACKUP, sizeof(nobackup), NULL, 0 }, { XAB$_UCHAR_CONTIG, sizeof(contig), NULL, 0 }, { XAB$_UCHAR_CONTIGB, sizeof(contigb), NULL, 0 }, { XAB$_UCHAR_DIRECTORY, sizeof(directory), NULL, 0 }, { XAB$_UCHAR_WRITEBACK, sizeof(writeback), NULL, 0 }, { XAB$_UCHAR_READCHECK, sizeof(readcheck), NULL, 0 }, { XAB$_UCHAR_WRITECHECK, sizeof(writecheck), NULL, 0 }, { XAB$_UCHAR_LOCKED, sizeof(locked), NULL, 0 }, { XAB$_UCHAR_SPOOL, sizeof(spool), NULL, 0 }, { XAB$_UCHAR_MARKDEL, sizeof(markdel), NULL, 0 }, { XAB$_UCHAR_BADBLOCK, sizeof(badblock), NULL, 0 }, { 0, 0, NULL, 0 } }; nam.nam$l_esa = res; nam.nam$b_ess = NAM$C_MAXRSS; fab.fab$l_nam = &nam; fab.fab$l_xab = &dat; dat.xab$l_nxt = &fhc; fhc.xab$l_nxt = &pro; pro.xab$l_nxt = &itm; xitems[0].buffer = &nobackup; xitems[0].retlen = &retlen; xitems[1].buffer = &contig; xitems[1].retlen = &retlen; xitems[2].buffer = &contigb; xitems[2].retlen = &retlen; xitems[3].buffer = &directory; xitems[3].retlen = &retlen; xitems[4].buffer = &writeback; xitems[4].retlen = &retlen; xitems[5].buffer = &readcheck; xitems[5].retlen = &retlen; xitems[6].buffer = &writecheck; xitems[6].retlen = &retlen; xitems[7].buffer = &locked; xitems[7].retlen = &retlen; xitems[8].buffer = &spool; xitems[8].retlen = &retlen; xitems[9].buffer = &markdel; xitems[9].retlen = &retlen; xitems[10].buffer = &badblock; xitems[10].retlen = &retlen; itm.xab$b_mode = XAB$K_SENSEMODE; itm.xab$l_itemlist = xitems; fab.fab$l_fna = filespec; fab.fab$b_fns = filespec? (uint8_t)strlen(fab.fab$l_fna): 0; fab.fab$l_dna = "*.*;*"; fab.fab$b_dns = (uint8_t)strlen(fab.fab$l_dna); if( $SUCCESSFUL(status = sys_parse(&fab)) ) { char dir[NAM$C_MAXRSS + 1] = { "" }; size_t namelen; size_t dirlen = 0; uint32_t dirfiles = 0; uint32_t dirblocks = 0, diralloc = 0; size_t printcol = 0; nam.nam$l_rsa = rsa; nam.nam$b_rss = NAM$C_MAXRSS; fab.fab$l_fop = 0; while( $SUCCESSFUL(status) && $SUCCESSFUL(status = sys_search( &fab )) ) { if (dirlen != (size_t)nam.nam$b_dev + nam.nam$b_dir || memcmp(rsa, dir, (size_t)nam.nam$b_dev + nam.nam$b_dir) != 0) { if (dirfiles > 0 && (options & dir_trailing)) { if (printcol > 0) fputc( '\n', of ); printmsg( DIRECT_FILETOTAL, MSG_TEXT|MSG_NOCRLF|MSG_TOFILE, of, dirfiles ); dirtotal( of, options, dirblocks, diralloc ); fputs(".\n", of); } dirlen = (size_t)nam.nam$b_dev + nam.nam$b_dir; memcpy(dir, rsa, dirlen); dir[dirlen] = '\0'; if( options & dir_heading) printmsg( DIRECT_DIRHEAD, MSG_TEXT|MSG_NOCRLF|MSG_TOFILE, of, dir ); stats->filecount += dirfiles; stats->totblocks += dirblocks; stats->totalloc += diralloc; stats->dircount++; dirfiles = 0; dirblocks = 0; diralloc = 0; printcol = 0; } rsa[nam.nam$b_rsl] = '\0'; namelen = (size_t)nam.nam$b_name + nam.nam$b_type + nam.nam$b_ver; if ((options & (dir_heading|dir_extra|dir_full)) == dir_heading) { if( options & dir_names ) { if (printcol > 0) { size_t newcol = (printcol + 20) / 20 * 20; if (newcol + namelen >= 80) { fputs( "\n", of ); printcol = 0; } else { fprintf( of, "%*s", (int)(newcol - printcol), " " ); printcol = newcol; } } fputs( rsa + dirlen, of ); printcol += namelen; } } else { if (options & dir_names) { if ( (options & dir_heading) == 0 ) fprintf( of, "%s", dir ); if( options & dir_pack ) { if( namelen > 18 ) { fprintf( of, "%s", rsa + dirlen ); if( options & dir_extra ) fprintf( of, "\n " ); } else { fprintf( of, "%-19s", rsa + dirlen ); } } else fprintf( of, "%s\n", rsa + dirlen ); } if( $FAILS(status = sys_open(&fab)) ) { printmsg( status, MSG_TOFILE, of ); status = SS$_NORMAL; } else { status = sys_close(&fab); if (options & dir_fileid) { char fileid[30]; /* 24 bits, 16 bits. 8 bits = 8 + 5 + 3 digits = 16 + (,,)\0 => 21 */ if( options & dir_full) fprintf( of, "%sFile ID:", (options & dir_pack)? " ": "" ); (void) snprintf(fileid, sizeof(fileid), "(%u,%u,%u)", (nam.nam$w_fid.fid$b_nmx << 16) | nam.nam$w_fid.fid$w_num, nam.nam$w_fid.fid$w_seq, nam.nam$w_fid.fid$b_rvn ); fprintf( of, " %-22s", fileid ); } diralloc += fab.fab$l_alq; if (options & dir_used) { uint32_t filesize; filesize = fhc.xab$l_ebk; /* VBN of eof */ if( filesize == 0 ) /* none, use allocated size */ filesize = fab.fab$l_alq; else { if( fhc.xab$w_ffb == 0 ) filesize--; } dirblocks += filesize; if (options & dir_names) { /* Don't print w/o names (e.g. totals) */ if( options & dir_full) printmsg( DIRECT_FULLSIZE, MSG_TEXT|MSG_NOCRLF|MSG_TOFILE, of, filesize ); else fprintf( of, "%9u", filesize ); if( options & (dir_allocated|dir_full)) fprintf( of, "/%-9u", fab.fab$l_alq ); if( options & (dir_allocated | dir_full) ) { if( options & dir_pack ) fputs( " ", of ); else fputc( '\n', of ); } } } else { if ( (options & (dir_allocated|dir_names)) == (dir_allocated|dir_names)) { fprintf( of, "%9u", fab.fab$l_alq ); } } #define pprot(val, pos, del) do { \ unsigned int v = ~(((val) >> (pos)) & xab$m_prot); \ if( v & xab$m_noread ) fprintf( of, "R" ); \ if( v & xab$m_nowrite ) fprintf( of, "W" ); \ if( v & xab$m_noexe ) fprintf( of, "E" ); \ if( v & xab$m_nodel ) fprintf( of, "D" ); \ fprintf( of, del ); \ } while( 0 ) if (options & dir_full) { int pos = 0; printmsg( DIRECT_OWNER, MSG_TEXT|MSG_TOFILE, of, ((pro.xab$l_uic>>16)&0xFFFF), pro.xab$l_uic&0xFFFF); printmsg( DIRECT_CREATED, MSG_TEXT|MSG_NOCRLF|MSG_TOFILE, of ); prvmstime( of, dat.xab$q_cdt, "\n" ); printmsg( DIRECT_REVISED, MSG_TEXT|MSG_NOCRLF|MSG_TOFILE, of ); prvmstime( of, dat.xab$q_rdt, " (" ); fprintf( of, "%u)\n", dat.xab$w_rvn ); printmsg( DIRECT_EXPIRES, MSG_TEXT|MSG_NOCRLF|MSG_TOFILE, of ); prvmstime( of, dat.xab$q_edt, "\n" ); printmsg( DIRECT_BACKUP, MSG_TEXT|MSG_NOCRLF|MSG_TOFILE, of ); prvmstime( of, dat.xab$q_bdt, "\n" ); #define MSG(x) getmsg( DIRECT_ ## x, MSG_TEXT|MSG_NOCRLF ) pwrap( of, &pos, MSG( FILEORG ) ); switch( fab.fab$b_org ) { case FAB$C_SEQ: pwrap( of, &pos, MSG( SEQORG) ); break; case FAB$C_REL: pwrap( of, &pos, MSG( RELORG ) /*, Maximum record number %u", fab.fab$l_mrn*/ ); break; case FAB$C_IDX: pwrap( of, &pos, MSG( IDXORG ) ); break; /*, Prolog: 3, Using 4 keys\nIn 3 areas */ default: pwrap( of, &pos, MSG( UNKORG ), fab.fab$b_org ); break; } pwrap( of, &pos, MSG( FILEATT ) ); pwrap( of, &pos, MSG( ALLOC ), fab.fab$l_alq ); pwrap( of, &pos, MSG( EXTEND ), fab.fab$w_deq ); /* Missing: , Maximum bucket size: n*/ pwrap( of, &pos, MSG( GBC ), fab.fab$w_gbc ); if( fhc.xab$w_verlimit == 0 || fhc.xab$w_verlimit == 32767 ) { if( directory ) pwrap( of, &pos, MSG(NODIRLIMIT) ); else pwrap( of, &pos, MSG(NOVERLIMIT ) ); } else { if( directory ) pwrap( of, &pos, MSG(DIRLIMIT), fhc.xab$w_verlimit ); else pwrap( of, &pos, MSG(VERLIMIT), fhc.xab$w_verlimit ); } #define pattr(bit, text) \ if( bit ) \ pwrap( of, &pos, MSG(text) ) pattr( contig, CONTIG ); pattr( contigb, CONTIGB ); pattr( nobackup, NOBACKUP ); pattr( directory, DIRECTORY ); pattr( writeback, WRITEBACK ); pattr( readcheck, READCHECK ); pattr( writecheck, WRITECHECK ); pattr( locked, LOCKED ); pattr( spool, SPOOL ); pattr( markdel, MARKDEL ); pattr( badblock, BADBLOCK ); pwrap( of, &pos, "\n" ); #undef pattr pwrap( of, &pos, MSG(EOFPOS), fhc.xab$l_ebk, fhc.xab$w_ffb ); pwrap( of, &pos, MSG(RECFMT) ); switch( fab.fab$b_rfm ) { default: case FAB$C_UDF: pwrap( of, &pos, MSG(RECUDF) ); break; case FAB$C_FIX: pwrap( of, &pos, MSG(RECFIX), fab.fab$w_mrs ); break; case FAB$C_VAR: pwrap( of, &pos, MSG(RECVAR), fhc.xab$w_lrl ); break; case FAB$C_VFC: pwrap( of, &pos, MSG(RECVFC), (fab.fab$b_fsz? fab.fab$b_fsz: 2), fhc.xab$w_lrl ); break; case FAB$C_STM: pwrap( of, &pos, MSG(RECSTM) ); break; case FAB$C_STMLF: pwrap( of, &pos, MSG(RECSTMLF) ); break; case FAB$C_STMCR: pwrap( of, &pos, MSG(RECSTMCR) ); break; } pwrap( of, &pos, "\n" ); pwrap( of, &pos, MSG(RECATT) ); if( fab.fab$b_rat == 0 ) pwrap( of, &pos, MSG(RECATT_NONE) ); else { const char *more = ""; if( fab.fab$b_rat & FAB$M_FTN ) { pwrap( of, &pos, MSG(RECATT_FTN), more ); more = ", "; } if( fab.fab$b_rat & FAB$M_CR ) { pwrap( of, &pos, MSG(RECATT_CR), more ); more = ", "; } if( fab.fab$b_rat & FAB$M_PRN ) { pwrap( of, &pos, MSG(RECATT_PRN), more ); more = ", "; } if( fab.fab$b_rat & FAB$M_BLK ) { pwrap( of, &pos, MSG(RECATT_BLK), more ); } } fprintf( of, "\n" ); /* * RMS attributes: None * Journaling enabled: None */ fprintf( of, MSG(PROT_SYS) ); pprot(pro.xab$w_pro, xab$v_system, MSG(PROT_OWNER) ); pprot(pro.xab$w_pro, xab$v_owner, MSG(PROT_GROUP) ); pprot(pro.xab$w_pro, xab$v_group, MSG(PROT_WORLD) ); pprot(pro.xab$w_pro, xab$v_world, "\n"); if( options & dir_mappings ) { struct dsc$descriptor devnam; unsigned clustersize = 0; struct HEAD *buf = NULL; struct fiddef lastfid, fid; unsigned vbn = 1; memset( &devnam, 0, sizeof( devnam ) ); devnam.dsc$b_dtype = DSC$K_DTYPE_T; devnam.dsc$b_class = DSC$K_CLASS_S; devnam.dsc$w_length = nam.nam$b_dev; devnam.dsc$a_pointer = nam.nam$l_dev; fid = nam.nam$w_fid; do { if( $SUCCESSFUL(status = get_fileheader( of, &devnam, &fid, &clustersize, &buf )) ) { print_fileheader( of, buf, &vbn, clustersize ); } lastfid = fid; fid = buf->fh2$w_ext_fid; free( buf ); buf = NULL; } while( $SUCCESSFUL(status) && (fid.fid$w_num | fid.fid$w_seq | fid.fid$b_rvn | fid.fid$b_nmx) != 0 && memcmp( &fid, &lastfid, sizeof( fid ) ) != 0 ); } } else { /* !full */ if (options & dir_date) { if( options & dir_created ) status = prvmstime( of, dat.xab$q_cdt, NULL ); if( options & dir_modified ) status = prvmstime( of, dat.xab$q_rdt, NULL ); if( options & dir_expired ) status = prvmstime( of, dat.xab$q_edt, NULL ); if( options & dir_backup ) status = prvmstime( of, dat.xab$q_bdt, NULL ); } if (options & dir_owner) { printmsg( DIRECT_UIC, MSG_TEXT|MSG_NOCRLF|MSG_TOFILE, of, ((pro.xab$l_uic>>16)&0xFFFF), pro.xab$l_uic&0xFFFF ); } if (options & dir_prot) { fprintf( of, " (" ); pprot(pro.xab$w_pro, xab$v_system, ","); pprot(pro.xab$w_pro, xab$v_owner, ","); pprot(pro.xab$w_pro, xab$v_group, ","); pprot(pro.xab$w_pro, xab$v_world, ")"); } } #undef pprot if (options & dir_names) fprintf( of, "\n" ); } } dirfiles++; } if( status == RMS$_NMF ) status = SS$_NORMAL; if( printcol > 0 ) fprintf( of, "\n" ); if (options & dir_trailing) { printmsg( DIRECT_FILETOTAL, MSG_TEXT|MSG_NOCRLF|MSG_TOFILE, of, dirfiles ); dirtotal( of, options, dirblocks, diralloc ); fputs( ".\n", of ); } stats->filecount += dirfiles; stats->totblocks += dirblocks; stats->totalloc += diralloc; } fab.fab$b_fns = nam.nam$b_ess = fab.fab$b_dns = 0; nam.nam$b_nop = NAM$M_SYNCHK; (void) sys_parse( &fab ); return status; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4110A1", "function_addr": 4264097, "binary_name": "b57dc741ab89a18d2d7bde13dc91979a52dfdc00913ec7c57afdd64909a03a5c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 6A0h"], [5, "mov [rbp+stream], rdi"], [6, "mov [rbp+var_69C], esi"], [7, "mov [rbp+var_6A8], rdx"], [8, "mov [rbp+var_6B0], rcx"], [9, "mov [rbp+var_180], 0"], [10, "mov [rbp+var_178], 0"], [11, "mov [rbp+var_170], 0"], [12, "mov [rbp+var_168], 0"], [13, "mov [rbp+var_160], 0"], [14, "mov [rbp+var_158], 0"], [15, "mov [rbp+var_150], 0"], [16, "mov [rbp+var_148], 0"], [17, "mov [rbp+var_140], 0"], [18, "mov [rbp+var_138], 0"], [19, "mov [rbp+var_130], 0"], [20, "mov [rbp+var_128], 0"], [21, "mov [rbp+var_120], 0"], [22, "mov [rbp+var_118], 0"], [23, "mov [rbp+var_110], 0"], [24, "mov [rbp+var_108], 0"], [25, "mov [rbp+var_100], 0"], [26, "mov [rbp+var_F8], 0"], [27, "mov [rbp+var_F0], 0"], [28, "mov [rbp+var_E8], 0"], [29, "mov [rbp+var_E0], 0"], [30, "mov [rbp+var_D8], 0"], [31, "mov [rbp+var_D0], 0"], [32, "mov [rbp+var_C8], 0"], [33, "mov [rbp+var_C0], 0"], [34, "mov [rbp+var_B8], 0"], [35, "mov [rbp+var_B0], 0"], [36, "mov [rbp+var_A8], 0"], [37, "mov [rbp+var_A0], 0"], [38, "mov [rbp+var_98], 0"], [39, "mov [rbp+var_90], 0"], [40, "mov [rbp+var_88], 0"], [41, "mov [rbp+s1], 0"], [42, "mov [rbp+var_278], 0"], [43, "mov [rbp+var_270], 0"], [44, "mov [rbp+var_268], 0"], [45, "mov [rbp+var_260], 0"], [46, "mov [rbp+var_258], 0"], [47, "mov [rbp+var_250], 0"], [48, "mov [rbp+var_248], 0"], [49, "mov [rbp+var_240], 0"], [50, "mov [rbp+var_238], 0"], [51, "mov [rbp+var_230], 0"], [52, "mov [rbp+var_228], 0"], [53, "mov [rbp+var_220], 0"], [54, "mov [rbp+var_218], 0"], [55, "mov [rbp+var_210], 0"], [56, "mov [rbp+var_208], 0"], [57, "mov [rbp+var_200], 0"], [58, "mov [rbp+var_1F8], 0"], [59, "mov [rbp+var_1F0], 0"], [60, "mov [rbp+var_1E8], 0"], [61, "mov [rbp+var_1E0], 0"], [62, "mov [rbp+var_1D8], 0"], [63, "mov [rbp+var_1D0], 0"], [64, "mov [rbp+var_1C8], 0"], [65, "mov [rbp+var_1C0], 0"], [66, "mov [rbp+var_1B8], 0"], [67, "mov [rbp+var_1B0], 0"], [68, "mov [rbp+var_1A8], 0"], [69, "mov [rbp+var_1A0], 0"], [70, "mov [rbp+var_198], 0"], [71, "mov [rbp+var_190], 0"], [72, "mov [rbp+var_188], 0"], [73, "mov [rbp+var_284], 0"], [74, "mov [rbp+var_288], 0"], [75, "mov [rbp+var_28C], 0"], [76, "mov [rbp+var_290], 0"], [77, "mov [rbp+var_294], 0"], [78, "mov [rbp+var_298], 0"], [79, "mov [rbp+var_29C], 0"], [80, "mov [rbp+var_2A0], 0"], [81, "mov [rbp+var_2A4], 0"], [82, "mov [rbp+var_2A8], 0"], [83, "mov [rbp+var_2AC], 0"], [84, "mov [rbp+var_2AE], 0"], [85, "mov rax, cs:qword_45F940"], [86, "mov rdx, cs:qword_45F948"], [87, "mov [rbp+var_340], rax"], [88, "mov [rbp+var_338], rdx"], [89, "mov rax, cs:qword_45F950"], [90, "mov rdx, cs:qword_45F958"], [91, "mov [rbp+var_330], rax"], [92, "mov [rbp+var_328], rdx"], [93, "mov rax, cs:qword_45F960"], [94, "mov rdx, cs:qword_45F968"], [95, "mov [rbp+var_320], rax"], [96, "mov [rbp+var_318], rdx"], [97, "mov rax, cs:qword_45F970"], [98, "mov rdx, cs:qword_45F978"], [99, "mov [rbp+var_310], rax"], [100, "mov [rbp+var_308], rdx"], [101, "mov rax, cs:qword_45F980"], [102, "mov rdx, cs:qword_45F988"], [103, "mov [rbp+var_300], rax"], [104, "mov [rbp+var_2F8], rdx"], [105, "mov rax, cs:qword_45F990"], [106, "mov rdx, cs:qword_45F998"], [107, "mov [rbp+var_2F0], rax"], [108, "mov [rbp+var_2E8], rdx"], [109, "mov rax, cs:qword_45F9A0"], [110, "mov rdx, cs:qword_45F9A8"], [111, "mov [rbp+var_2E0], rax"], [112, "mov [rbp+var_2D8], rdx"], [113, "mov rax, cs:qword_45F9B0"], [114, "mov rdx, cs:qword_45F9B8"], [115, "mov [rbp+var_2D0], rax"], [116, "mov [rbp+var_2C8], rdx"], [117, "mov rax, cs:qword_45F9C0"], [118, "mov [rbp+var_2C0], rax"], [119, "mov rax, cs:qword_45FA20"], [120, "mov rdx, cs:qword_45FA28"], [121, "mov [rbp+s], rax"], [122, "mov [rbp+var_388], rdx"], [123, "mov rax, cs:qword_45FA30"], [124, "mov rdx, cs:qword_45FA38"], [125, "mov [rbp+var_380], rax"], [126, "mov [rbp+var_378], rdx"], [127, "mov rax, cs:qword_45FA40"], [128, "mov rdx, cs:qword_45FA48"], [129, "mov [rbp+var_370], rax"], [130, "mov [rbp+var_368], rdx"], [131, "mov rax, cs:qword_45FA50"], [132, "mov rdx, cs:qword_45FA58"], [133, "mov [rbp+var_360], rax"], [134, "mov [rbp+var_358], rdx"], [135, "mov rax, cs:qword_45FA60"], [136, "mov rdx, cs:qword_45FA68"], [137, "mov [rbp+var_350], rax"], [138, "mov [rbp+var_348], rdx"], [139, "mov rax, cs:qword_456380"], [140, "mov rdx, cs:qword_456388"], [141, "mov [rbp+var_3C0], rax"], [142, "mov [rbp+var_3B8], rdx"], [143, "mov rax, cs:qword_456390"], [144, "mov rdx, cs:qword_456398"], [145, "mov [rbp+var_3B0], rax"], [146, "mov [rbp+var_3A8], rdx"], [147, "mov rax, cs:qword_4563A0"], [148, "mov rdx, cs:qword_4563A8"], [149, "mov [rbp+var_3A0], rax"], [150, "mov [rbp+var_398], rdx"], [151, "mov rax, cs:qword_4563C0"], [152, "mov rdx, cs:qword_4563C8"], [153, "mov [rbp+var_3E0], rax"], [154, "mov [rbp+var_3D8], rdx"], [155, "mov rax, cs:qword_4563D0"], [156, "mov rdx, cs:qword_4563D8"], [157, "mov [rbp+var_3D0], rax"], [158, "mov [rbp+var_3C8], rdx"], [159, "mov rax, cs:qword_456400"], [160, "mov rdx, cs:qword_456408"], [161, "mov [rbp+var_3F0], rax"], [162, "mov [rbp+var_3E8], rdx"], [163, "mov rax, cs:qword_4563E0"], [164, "mov rdx, cs:qword_4563E8"], [165, "mov [rbp+var_410], rax"], [166, "mov [rbp+var_408], rdx"], [167, "mov rax, cs:qword_4563F0"], [168, "mov [rbp+var_400], rax"], [169, "lea rax, [rbp+var_530]"], [170, "mov esi, offset unk_43B860"], [171, "mov edx, 24h "], [172, "mov rdi, rax"], [173, "mov rcx, rdx"], [174, "rep movsq"], [175, "lea rax, [rbp+var_180]"], [176, "mov [rbp+var_340], rax"], [177, "mov byte ptr [rbp+var_2C8+1], 0FFh"], [178, "lea rax, [rbp+var_340]"], [179, "mov [rbp+var_380], rax"], [180, "lea rax, [rbp+var_3C0]"], [181, "mov [rbp+var_378], rax"], [182, "lea rax, [rbp+var_3E0]"], [183, "mov [rbp+var_3C0], rax"], [184, "lea rax, [rbp+var_3F0]"], [185, "mov [rbp+var_3E0], rax"], [186, "lea rax, [rbp+var_410]"], [187, "mov [rbp+var_3F0], rax"], [188, "lea rax, [rbp+var_284]"], [189, "mov [rbp+var_528], rax"], [190, "lea rax, [rbp+var_2AE]"], [191, "mov [rbp+var_520], rax"], [192, "lea rax, [rbp+var_28C]"], [193, "mov [rbp+var_510], rax"], [194, "lea rax, [rbp+var_2AE]"], [195, "mov [rbp+var_508], rax"], [196, "lea rax, [rbp+var_288]"], [197, "mov [rbp+var_4F8], rax"], [198, "lea rax, [rbp+var_2AE]"], [199, "mov [rbp+var_4F0], rax"], [200, "lea rax, [rbp+var_290]"], [201, "mov [rbp+var_4E0], rax"], [202, "lea rax, [rbp+var_2AE]"], [203, "mov [rbp+var_4D8], rax"], [204, "lea rax, [rbp+var_294]"], [205, "mov [rbp+var_4C8], rax"], [206, "lea rax, [rbp+var_2AE]"], [207, "mov [rbp+var_4C0], rax"], [208, "lea rax, [rbp+var_298]"], [209, "mov [rbp+var_4B0], rax"], [210, "lea rax, [rbp+var_2AE]"], [211, "mov [rbp+var_4A8], rax"], [212, "lea rax, [rbp+var_29C]"], [213, "mov [rbp+var_498], rax"], [214, "lea rax, [rbp+var_2AE]"], [215, "mov [rbp+var_490], rax"], [216, "lea rax, [rbp+var_2A0]"], [217, "mov [rbp+var_480], rax"], [218, "lea rax, [rbp+var_2AE]"], [219, "mov [rbp+var_478], rax"], [220, "lea rax, [rbp+var_2A4]"], [221, "mov [rbp+var_468], rax"], [222, "lea rax, [rbp+var_2AE]"], [223, "mov [rbp+var_460], rax"], [224, "lea rax, [rbp+var_2AC]"], [225, "mov [rbp+var_450], rax"], [226, "lea rax, [rbp+var_2AE]"], [227, "mov [rbp+var_448], rax"], [228, "lea rax, [rbp+var_2A8]"], [229, "mov [rbp+var_438], rax"], [230, "lea rax, [rbp+var_2AE]"], [231, "mov [rbp+var_430], rax"], [232, "mov byte ptr [rbp+var_408+1], 1"], [233, "lea rax, [rbp+var_530]"], [234, "mov [rbp+var_400], rax"], [235, "mov rax, [rbp+var_6B0]"], [236, "mov [rbp+s], rax"], [237, "cmp [rbp+var_6B0], 0"], [238, "jz short loc_411834"], [239, "mov rax, [rbp+s]"], [240, "mov rdi, rax"], [241, "call _strlen"], [242, "jmp short loc_411839"], [243, "mov eax, 0"], [244, "mov byte ptr [rbp+var_350], al"], [245, "mov [rbp+var_388], offset asc_43B7D0"], [246, "mov rax, [rbp+var_388]"], [247, "mov rdi, rax"], [248, "call _strlen"], [249, "mov byte ptr [rbp+var_350+1], al"], [250, "lea rax, [rbp+s]"], [251, "mov rdi, rax"], [252, "call sub_42302D"], [253, "mov [rbp+var_14], eax"], [254, "mov eax, [rbp+var_14]"], [255, "and eax, 1"], [256, "test eax, eax"], [257, "jz loc_413657"], [258, "mov [rbp+s2], 0"], [259, "mov [rbp+var_688], 0"], [260, "mov [rbp+var_680], 0"], [261, "mov [rbp+var_678], 0"], [262, "mov [rbp+var_670], 0"], [263, "mov [rbp+var_668], 0"], [264, "mov [rbp+var_660], 0"], [265, "mov [rbp+var_658], 0"], [266, "mov [rbp+var_650], 0"], [267, "mov [rbp+var_648], 0"], [268, "mov [rbp+var_640], 0"], [269, "mov [rbp+var_638], 0"], [270, "mov [rbp+var_630], 0"], [271, "mov [rbp+var_628], 0"], [272, "mov [rbp+var_620], 0"], [273, "mov [rbp+var_618], 0"], [274, "mov [rbp+var_610], 0"], [275, "mov [rbp+var_608], 0"], [276, "mov [rbp+var_600], 0"], [277, "mov [rbp+var_5F8], 0"], [278, "mov [rbp+var_5F0], 0"], [279, "mov [rbp+var_5E8], 0"], [280, "mov [rbp+var_5E0], 0"], [281, "mov [rbp+var_5D8], 0"], [282, "mov [rbp+var_5D0], 0"], [283, "mov [rbp+var_5C8], 0"], [284, "mov [rbp+var_5C0], 0"], [285, "mov [rbp+var_5B8], 0"], [286, "mov [rbp+var_5B0], 0"], [287, "mov [rbp+var_5A8], 0"], [288, "mov [rbp+var_5A0], 0"], [289, "mov [rbp+var_598], 0"], [290, "mov [rbp+n], 0"], [291, "mov [rbp+var_24], 0"], [292, "mov [rbp+var_28], 0"], [293, "mov [rbp+var_2C], 0"], [294, "mov [rbp+var_38], 0"], [295, "lea rax, [rbp+s1]"], [296, "mov [rbp+var_338], rax"], [297, "mov byte ptr [rbp+var_2C8+3], 0FFh"], [298, "mov dword ptr [rbp+var_360], 0"], [299, "jmp loc_41354E"], [300, "movzx eax, byte ptr [rbp+var_2C8+5]"], [301, "movzx edx, al"], [302, "movzx eax, byte ptr [rbp+var_2C8+6]"], [303, "movzx eax, al"], [304, "add rax, rdx"], [305, "cmp [rbp+n], rax"], [306, "jnz short loc_411A7D"], [307, "movzx eax, byte ptr [rbp+var_2C8+5]"], [308, "movzx edx, al"], [309, "movzx eax, byte ptr [rbp+var_2C8+6]"], [310, "movzx eax, al"], [311, "add rdx, rax"], [312, "lea rcx, [rbp+s2]"], [313, "lea rax, [rbp+s1]"], [314, "mov rsi, rcx"], [315, "mov rdi, rax"], [316, "call _memcmp"], [317, "test eax, eax"], [318, "jz loc_411C08"], [319, "cmp [rbp+var_24], 0"], [320, "jz loc_411B0D"], [321, "mov eax, [rbp+var_69C]"], [322, "and eax, 100h"], [323, "test eax, eax"], [324, "jz short loc_411B0D"], [325, "cmp [rbp+var_38], 0"], [326, "jz short loc_411AB1"], [327, "mov rax, [rbp+stream]"], [328, "mov rsi, rax"], [329, "mov edi, 0Ah"], [330, "call _fputc"], [331, "mov edx, [rbp+var_24]"], [332, "mov rax, [rbp+stream]"], [333, "mov ecx, edx"], [334, "mov rdx, rax"], [335, "mov esi, 488h"], [336, "mov edi, 8598C9Bh"], [337, "mov eax, 0"], [338, "call sub_42B40B"], [339, "mov ecx, [rbp+var_2C]"], [340, "mov edx, [rbp+var_28]"], [341, "mov esi, [rbp+var_69C]"], [342, "mov rax, [rbp+stream]"], [343, "mov rdi, rax"], [344, "call sub_41369D"], [345, "mov rax, [rbp+stream]"], [346, "mov rcx, rax"], [347, "mov edx, 2"], [348, "mov esi, 1"], [349, "mov edi, offset asc_43B7CD"], [350, "call _fwrite"], [351, "movzx eax, byte ptr [rbp+var_2C8+5]"], [352, "movzx edx, al"], [353, "movzx eax, byte ptr [rbp+var_2C8+6]"], [354, "movzx eax, al"], [355, "add rax, rdx"], [356, "mov [rbp+n], rax"], [357, "mov rdx, [rbp+n]"], [358, "lea rcx, [rbp+s1]"], [359, "lea rax, [rbp+s2]"], [360, "mov rsi, rcx"], [361, "mov rdi, rax"], [362, "call _memcpy"], [363, "lea rdx, [rbp+s2]"], [364, "mov rax, [rbp+n]"], [365, "add rax, rdx"], [366, "mov byte ptr [rax], 0"], [367, "mov eax, [rbp+var_69C]"], [368, "and eax, 40h"], [369, "test eax, eax"], [370, "jz short loc_411B8B"], [371, "lea rdx, [rbp+s2]"], [372, "mov rax, [rbp+stream]"], [373, "mov rcx, rdx"], [374, "mov rdx, rax"], [375, "mov esi, 488h"], [376, "mov edi, 8598C83h"], [377, "mov eax, 0"], [378, "call sub_42B40B"], [379, "mov rax, [rbp+var_6A8]"], [380, "mov edx, [rax]"], [381, "mov eax, [rbp+var_24]"], [382, "add edx, eax"], [383, "mov rax, [rbp+var_6A8]"], [384, "mov [rax], edx"], [385, "mov rax, [rbp+var_6A8]"], [386, "mov edx, [rax+4]"], [387, "mov eax, [rbp+var_28]"], [388, "add edx, eax"], [389, "mov rax, [rbp+var_6A8]"], [390, "mov [rax+4], edx"], [391, "mov rax, [rbp+var_6A8]"], [392, "mov edx, [rax+8]"], [393, "mov eax, [rbp+var_2C]"], [394, "add edx, eax"], [395, "mov rax, [rbp+var_6A8]"], [396, "mov [rax+8], edx"], [397, "mov rax, [rbp+var_6A8]"], [398, "mov eax, [rax+0Ch]"], [399, "lea edx, [rax+1]"], [400, "mov rax, [rbp+var_6A8]"], [401, "mov [rax+0Ch], edx"], [402, "mov [rbp+var_24], 0"], [403, "mov [rbp+var_28], 0"], [404, "mov [rbp+var_2C], 0"], [405, "mov [rbp+var_38], 0"], [406, "movzx eax, byte ptr [rbp+var_2C8+4]"], [407, "movzx eax, al"], [408, "cdqe"], [409, "mov byte ptr [rbp+rax+s1], 0"], [410, "movzx eax, byte ptr [rbp+var_2C8+7]"], [411, "movzx edx, al"], [412, "movzx eax, byte ptr [rbp+var_2C0]"], [413, "movzx eax, al"], [414, "add rdx, rax"], [415, "movzx eax, byte ptr [rbp+var_2C0+1]"], [416, "movzx eax, al"], [417, "add rax, rdx"], [418, "mov [rbp+var_50], rax"], [419, "mov eax, [rbp+var_69C]"], [420, "and eax, 25Fh"], [421, "cmp eax, 40h "], [422, "jnz loc_411D35"], [423, "mov eax, [rbp+var_69C]"], [424, "and eax, 80h"], [425, "test eax, eax"], [426, "jz loc_41354A"], [427, "cmp [rbp+var_38], 0"], [428, "jz loc_411D08"], [429, "mov rax, [rbp+var_38]"], [430, "add rax, 14h"], [431, "mov rdx, 0CCCCCCCCCCCCCCCDh"], [432, "mul rdx"], [433, "shr rdx, 4"], [434, "mov rax, rdx"], [435, "shl rax, 2"], [436, "add rax, rdx"], [437, "shl rax, 2"], [438, "mov [rbp+var_78], rax"], [439, "mov rdx, [rbp+var_78]"], [440, "mov rax, [rbp+var_50]"], [441, "add rax, rdx"], [442, "cmp rax, 4Fh "], [443, "jbe short loc_411CD0"], [444, "mov rax, [rbp+stream]"], [445, "mov rsi, rax"], [446, "mov edi, 0Ah"], [447, "call _fputc"], [448, "mov [rbp+var_38], 0"], [449, "jmp short loc_411D08"], [450, "mov rax, [rbp+var_78]"], [451, "mov edx, eax"], [452, "mov rax, [rbp+var_38]"], [453, "mov ecx, eax"], [454, "mov eax, edx"], [455, "sub eax, ecx"], [456, "mov edx, eax"], [457, "mov rax, [rbp+stream]"], [458, "mov ecx, offset asc_43B7D6"], [459, "mov esi, offset aS_6"], [460, "mov rdi, rax"], [461, "mov eax, 0"], [462, "call _fprintf"], [463, "mov rax, [rbp+var_78]"], [464, "mov [rbp+var_38], rax"], [465, "lea rdx, [rbp+s1]"], [466, "mov rax, [rbp+n]"], [467, "add rdx, rax"], [468, "mov rax, [rbp+stream]"], [469, "mov rsi, rax"], [470, "mov rdi, rdx"], [471, "call _fputs"], [472, "mov rax, [rbp+var_50]"], [473, "add [rbp+var_38], rax"], [474, "jmp loc_41354A"], [475, "mov eax, [rbp+var_69C]"], [476, "and eax, 80h"], [477, "test eax, eax"], [478, "jz loc_411E21"], [479, "mov eax, [rbp+var_69C]"], [480, "and eax, 40h"], [481, "test eax, eax"], [482, "jnz short loc_411D6E"], [483, "mov rdx, [rbp+stream]"], [484, "lea rax, [rbp+s2]"], [485, "mov rsi, rdx"], [486, "mov rdi, rax"], [487, "call _fputs"], [488, "mov eax, [rbp+var_69C]"], [489, "and eax, 80000h"], [490, "test eax, eax"], [491, "jz short loc_411DFA"], [492, "cmp [rbp+var_50], 12h"], [493, "jbe short loc_411DD1"], [494, "lea rdx, [rbp+s1]"], [495, "mov rax, [rbp+n]"], [496, "add rdx, rax"], [497, "mov rax, [rbp+stream]"], [498, "mov rsi, rax"], [499, "mov rdi, rdx"], [500, "call _fputs"], [501, "mov eax, [rbp+var_69C]"], [502, "and eax, 1Fh"], [503, "test eax, eax"], [504, "jz short loc_411E21"], [505, "mov rax, [rbp+stream]"], [506, "mov rcx, rax"], [507, "mov edx, 14h"], [508, "mov esi, 1"], [509, "mov edi, offset asc_43B7DC"], [510, "call _fwrite"], [511, "jmp short loc_411E21"], [512, "lea rdx, [rbp+s1]"], [513, "mov rax, [rbp+n]"], [514, "add rdx, rax"], [515, "mov rax, [rbp+stream]"], [516, "mov esi, offset a19s"], [517, "mov rdi, rax"], [518, "mov eax, 0"], [519, "call _fprintf"], [520, "jmp short loc_411E21"], [521, "lea rdx, [rbp+s1]"], [522, "mov rax, [rbp+n]"], [523, "add rdx, rax"], [524, "mov rax, [rbp+stream]"], [525, "mov esi, offset aS_7"], [526, "mov rdi, rax"], [527, "mov eax, 0"], [528, "call _fprintf"], [529, "lea rax, [rbp+s]"], [530, "mov rdi, rax"], [531, "call sub_425403"], [532, "mov [rbp+var_14], eax"], [533, "mov eax, [rbp+var_14]"], [534, "and eax, 1"], [535, "test eax, eax"], [536, "jnz short loc_411E64"], [537, "mov rdx, [rbp+stream]"], [538, "mov eax, [rbp+var_14]"], [539, "mov esi, 400h"], [540, "mov edi, eax"], [541, "mov eax, 0"], [542, "call sub_42B40B"], [543, "mov [rbp+var_14], 1"], [544, "jmp loc_41354A"], [545, "lea rax, [rbp+s]"], [546, "mov rdi, rax"], [547, "call sub_424E7B"], [548, "mov [rbp+var_14], eax"], [549, "mov eax, [rbp+var_69C]"], [550, "and eax, 2"], [551, "test eax, eax"], [552, "jz loc_411F3F"], [553, "mov eax, [rbp+var_69C]"], [554, "and eax, 200h"], [555, "test eax, eax"], [556, "jz short loc_411ECA"], [557, "mov eax, [rbp+var_69C]"], [558, "and eax, 80000h"], [559, "test eax, eax"], [560, "jz short loc_411EAC"], [561, "mov edx, offset asc_43B7FB"], [562, "jmp short loc_411EB1"], [563, "mov edx, offset unk_43B805"], [564, "mov rax, [rbp+stream]"], [565, "mov esi, offset aSfileId"], [566, "mov rdi, rax"], [567, "mov eax, 0"], [568, "call _fprintf"], [569, "movzx eax, byte ptr [rbp+var_2F8+4]"], [570, "movzx esi, al"], [571, "movzx eax, word ptr [rbp+var_2F8+2]"], [572, "movzx ecx, ax"], [573, "movzx eax, byte ptr [rbp+var_2F8+5]"], [574, "movzx eax, al"], [575, "shl eax, 10h"], [576, "mov edx, eax"], [577, "movzx eax, word ptr [rbp+var_2F8]"], [578, "movzx eax, ax"], [579, "or edx, eax"], [580, "lea rax, [rbp+var_550]"], [581, "mov r9d, esi"], [582, "mov r8d, ecx"], [583, "mov ecx, edx"], [584, "mov edx, offset aUUU"], [585, "mov esi, 1Eh"], [586, "mov rdi, rax"], [587, "mov eax, 0"], [588, "call _snprintf"], [589, "lea rdx, [rbp+var_550]"], [590, "mov rax, [rbp+stream]"], [591, "mov esi, offset a22s"], [592, "mov rdi, rax"], [593, "mov eax, 0"], [594, "call _fprintf"], [595, "mov eax, dword ptr [rbp+var_368+4]"], [596, "add [rbp+var_2C], eax"], [597, "mov eax, [rbp+var_69C]"], [598, "and eax, 10000h"], [599, "test eax, eax"], [600, "jz loc_412070"], [601, "mov eax, dword ptr [rbp+var_3D8+4]"], [602, "mov [rbp+var_3C], eax"], [603, "cmp [rbp+var_3C], 0"], [604, "jnz short loc_411F75"], [605, "mov eax, dword ptr [rbp+var_368+4]"], [606, "mov [rbp+var_3C], eax"], [607, "jmp short loc_411F85"], [608, "movzx eax, word ptr [rbp+var_3D8+2]"], [609, "test ax, ax"], [610, "jnz short loc_411F85"], [611, "sub [rbp+var_3C], 1"], [612, "mov eax, [rbp+var_3C]"], [613, "add [rbp+var_28], eax"], [614, "mov eax, [rbp+var_69C]"], [615, "and eax, 80h"], [616, "test eax, eax"], [617, "jz loc_4120A1"], [618, "mov eax, [rbp+var_69C]"], [619, "and eax, 200h"], [620, "test eax, eax"], [621, "jz short loc_411FD2"], [622, "mov edx, [rbp+var_3C]"], [623, "mov rax, [rbp+stream]"], [624, "mov ecx, edx"], [625, "mov rdx, rax"], [626, "mov esi, 488h"], [627, "mov edi, 8598C8Bh"], [628, "mov eax, 0"], [629, "call sub_42B40B"], [630, "jmp short loc_411FEE"], [631, "mov edx, [rbp+var_3C]"], [632, "mov rax, [rbp+stream]"], [633, "mov esi, offset a9u"], [634, "mov rdi, rax"], [635, "mov eax, 0"], [636, "call _fprintf"], [637, "mov eax, [rbp+var_69C]"], [638, "and eax, 8200h"], [639, "test eax, eax"], [640, "jz short loc_41201C"], [641, "mov edx, dword ptr [rbp+var_368+4]"], [642, "mov rax, [rbp+stream]"], [643, "mov esi, offset a9u_0"], [644, "mov rdi, rax"], [645, "mov eax, 0"], [646, "call _fprintf"], [647, "mov eax, [rbp+var_69C]"], [648, "and eax, 8200h"], [649, "test eax, eax"], [650, "jz short loc_4120A1"], [651, "mov eax, [rbp+var_69C]"], [652, "and eax, 80000h"], [653, "test eax, eax"], [654, "jz short loc_41205A"], [655, "mov rax, [rbp+stream]"], [656, "mov rcx, rax"], [657, "mov edx, 3"], [658, "mov esi, 1"], [659, "mov edi, offset asc_43B82E"], [660, "call _fwrite"], [661, "jmp short loc_4120A1"], [662, "mov rax, [rbp+stream]"], [663, "mov rsi, rax"], [664, "mov edi, 0Ah"], [665, "call _fputc"], [666, "jmp short loc_4120A1"], [667, "mov eax, [rbp+var_69C]"], [668, "and eax, 8080h"], [669, "cmp eax, 8080h"], [670, "jnz short loc_4120A1"], [671, "mov edx, dword ptr [rbp+var_368+4]"], [672, "mov rax, [rbp+stream]"], [673, "mov esi, offset a9u"], [674, "mov rdi, rax"], [675, "mov eax, 0"], [676, "call _fprintf"], [677, "mov eax, [rbp+var_69C]"], [678, "and eax, 200h"], [679, "test eax, eax"], [680, "jz loc_41314F"], [681, "mov [rbp+var_554], 0"], [682, "mov eax, dword ptr [rbp+var_3E8+4]"], [683, "movzx ecx, ax"], [684, "mov eax, dword ptr [rbp+var_3E8+4]"], [685, "shr eax, 10h"], [686, "mov edx, eax"], [687, "mov rax, [rbp+stream]"], [688, "mov r8d, ecx"], [689, "mov ecx, edx"], [690, "mov rdx, rax"], [691, "mov esi, 408h"], [692, "mov edi, 8598CBBh"], [693, "mov eax, 0"], [694, "call sub_42B40B"], [695, "mov rax, [rbp+stream]"], [696, "mov rdx, rax"], [697, "mov esi, 488h"], [698, "mov edi, 8598CC3h"], [699, "mov eax, 0"], [700, "call sub_42B40B"], [701, "lea rax, [rbp+var_3C0]"], [702, "lea rcx, [rax+14h]"], [703, "mov rax, [rbp+stream]"], [704, "mov edx, offset asc_43B832"], [705, "mov rsi, rcx"], [706, "mov rdi, rax"], [707, "call sub_405F48"], [708, "mov rax, [rbp+stream]"], [709, "mov rdx, rax"], [710, "mov esi, 488h"], [711, "mov edi, 8598CCBh"], [712, "mov eax, 0"], [713, "call sub_42B40B"], [714, "lea rax, [rbp+var_3C0]"], [715, "lea rcx, [rax+24h]"], [716, "mov rax, [rbp+stream]"], [717, "mov edx, offset asc_43B834"], [718, "mov rsi, rcx"], [719, "mov rdi, rax"], [720, "call sub_405F48"], [721, "movzx eax, word ptr [rbp+var_3B8+2]"], [722, "movzx edx, ax"], [723, "mov rax, [rbp+stream]"], [724, "mov esi, offset aU"], [725, "mov rdi, rax"], [726, "mov eax, 0"], [727, "call _fprintf"], [728, "mov rax, [rbp+stream]"], [729, "mov rdx, rax"], [730, "mov esi, 488h"], [731, "mov edi, 8598CD3h"], [732, "mov eax, 0"], [733, "call sub_42B40B"], [734, "lea rax, [rbp+var_3C0]"], [735, "lea rcx, [rax+1Ch]"], [736, "mov rax, [rbp+stream]"], [737, "mov edx, offset asc_43B832"], [738, "mov rsi, rcx"], [739, "mov rdi, rax"], [740, "call sub_405F48"], [741, "mov rax, [rbp+stream]"], [742, "mov rdx, rax"], [743, "mov esi, 488h"], [744, "mov edi, 8598CDBh"], [745, "mov eax, 0"], [746, "call sub_42B40B"], [747, "lea rax, [rbp+var_3C0]"], [748, "lea rcx, [rax+0Ch]"], [749, "mov rax, [rbp+stream]"], [750, "mov edx, offset asc_43B832"], [751, "mov rsi, rcx"], [752, "mov rdi, rax"], [753, "call sub_405F48"], [754, "mov esi, 88h"], [755, "mov edi, 8598CE3h"], [756, "mov eax, 0"], [757, "call getmsg"], [758, "mov rdx, rax"], [759, "lea rcx, [rbp+var_554]"], [760, "mov rax, [rbp+stream]"], [761, "mov rsi, rcx"], [762, "mov rdi, rax"], [763, "mov eax, 0"], [764, "call sub_406080"], [765, "movzx eax, byte ptr [rbp+var_350+4]"], [766, "movzx eax, al"], [767, "cmp eax, 20h "], [768, "jz loc_4122E8"], [769, "cmp eax, 20h "], [770, "jg loc_41231F"], [771, "test eax, eax"], [772, "jz short loc_412277"], [773, "cmp eax, 10h"], [774, "jz short loc_4122B1"], [775, "jmp loc_41231F"], [776, "mov esi, 88h"], [777, "mov edi, 8598CEBh"], [778, "mov eax, 0"], [779, "call getmsg"], [780, "mov rdx, rax"], [781, "lea rcx, [rbp+var_554]"], [782, "mov rax, [rbp+stream]"], [783, "mov rsi, rcx"], [784, "mov rdi, rax"], [785, "mov eax, 0"], [786, "call sub_406080"], [787, "jmp loc_41235E"], [788, "mov esi, 88h"], [789, "mov edi, 8598CF3h"], [790, "mov eax, 0"], [791, "call getmsg"], [792, "mov rdx, rax"], [793, "lea rcx, [rbp+var_554]"], [794, "mov rax, [rbp+stream]"], [795, "mov rsi, rcx"], [796, "mov rdi, rax"], [797, "mov eax, 0"], [798, "call sub_406080"], [799, "jmp short loc_41235E"], [800, "mov esi, 88h"], [801, "mov edi, 8598CFBh"], [802, "mov eax, 0"], [803, "call getmsg"], [804, "mov rdx, rax"], [805, "lea rcx, [rbp+var_554]"], [806, "mov rax, [rbp+stream]"], [807, "mov rsi, rcx"], [808, "mov rdi, rax"], [809, "mov eax, 0"], [810, "call sub_406080"], [811, "jmp short loc_41235E"], [812, "movzx eax, byte ptr [rbp+var_350+4]"], [813, "movzx ebx, al"], [814, "mov esi, 88h"], [815, "mov edi, 8598D03h"], [816, "mov eax, 0"], [817, "call getmsg"], [818, "mov rdx, rax"], [819, "lea rsi, [rbp+var_554]"], [820, "mov rax, [rbp+stream]"], [821, "mov ecx, ebx"], [822, "mov rdi, rax"], [823, "mov eax, 0"], [824, "call sub_406080"], [825, "nop"], [826, "mov esi, 88h"], [827, "mov edi, 8598D0Bh"], [828, "mov eax, 0"], [829, "call getmsg"], [830, "mov rdx, rax"], [831, "lea rcx, [rbp+var_554]"], [832, "mov rax, [rbp+stream]"], [833, "mov rsi, rcx"], [834, "mov rdi, rax"], [835, "mov eax, 0"], [836, "call sub_406080"], [837, "mov ebx, dword ptr [rbp+var_368+4]"], [838, "mov esi, 88h"], [839, "mov edi, 8598D13h"], [840, "mov eax, 0"], [841, "call getmsg"], [842, "mov rdx, rax"], [843, "lea rsi, [rbp+var_554]"], [844, "mov rax, [rbp+stream]"], [845, "mov ecx, ebx"], [846, "mov rdi, rax"], [847, "mov eax, 0"], [848, "call sub_406080"], [849, "movzx eax, word ptr [rbp+var_358]"], [850, "movzx ebx, ax"], [851, "mov esi, 88h"], [852, "mov edi, 8598D1Bh"], [853, "mov eax, 0"], [854, "call getmsg"], [855, "mov rdx, rax"], [856, "lea rsi, [rbp+var_554]"], [857, "mov rax, [rbp+stream]"], [858, "mov ecx, ebx"], [859, "mov rdi, rax"], [860, "mov eax, 0"], [861, "call sub_406080"], [862, "movzx eax, word ptr [rbp+var_358+4]"], [863, "movzx ebx, ax"], [864, "mov esi, 88h"], [865, "mov edi, 8598D23h"], [866, "mov eax, 0"], [867, "call getmsg"], [868, "mov rdx, rax"], [869, "lea rsi, [rbp+var_554]"], [870, "mov rax, [rbp+stream]"], [871, "mov ecx, ebx"], [872, "mov rdi, rax"], [873, "mov eax, 0"], [874, "call sub_406080"], [875, "movzx eax, word ptr [rbp+var_3C8+2]"], [876, "test ax, ax"], [877, "jz short loc_412462"], [878, "movzx eax, word ptr [rbp+var_3C8+2]"], [879, "cmp ax, 7FFFh"], [880, "jnz short loc_4124E0"], [881, "mov eax, [rbp+var_290]"], [882, "test eax, eax"], [883, "jz short loc_4124A6"], [884, "mov esi, 88h"], [885, "mov edi, 8598D43h"], [886, "mov eax, 0"], [887, "call getmsg"], [888, "mov rdx, rax"], [889, "lea rcx, [rbp+var_554]"], [890, "mov rax, [rbp+stream]"], [891, "mov rsi, rcx"], [892, "mov rdi, rax"], [893, "mov eax, 0"], [894, "call sub_406080"], [895, "jmp loc_412568"], [896, "mov esi, 88h"], [897, "mov edi, 8598D3Bh"], [898, "mov eax, 0"], [899, "call getmsg"], [900, "mov rdx, rax"], [901, "lea rcx, [rbp+var_554]"], [902, "mov rax, [rbp+stream]"], [903, "mov rsi, rcx"], [904, "mov rdi, rax"], [905, "mov eax, 0"], [906, "call sub_406080"], [907, "jmp loc_412568"], [908, "mov eax, [rbp+var_290]"], [909, "test eax, eax"], [910, "jz short loc_41252A"], [911, "movzx eax, word ptr [rbp+var_3C8+2]"], [912, "movzx ebx, ax"], [913, "mov esi, 88h"], [914, "mov edi, 8598D33h"], [915, "mov eax, 0"], [916, "call getmsg"], [917, "mov rdx, rax"], [918, "lea rsi, [rbp+var_554]"], [919, "mov rax, [rbp+stream]"], [920, "mov ecx, ebx"], [921, "mov rdi, rax"], [922, "mov eax, 0"], [923, "call sub_406080"], [924, "jmp short loc_412568"], [925, "movzx eax, word ptr [rbp+var_3C8+2]"], [926, "movzx ebx, ax"], [927, "mov esi, 88h"], [928, "mov edi, 8598D2Bh"], [929, "mov eax, 0"], [930, "call getmsg"], [931, "mov rdx, rax"], [932, "lea rsi, [rbp+var_554]"], [933, "mov rax, [rbp+stream]"], [934, "mov ecx, ebx"], [935, "mov rdi, rax"], [936, "mov eax, 0"], [937, "call sub_406080"], [938, "mov eax, [rbp+var_28C]"], [939, "test eax, eax"], [940, "jz short loc_4125A7"], [941, "mov esi, 88h"], [942, "mov edi, 8598D4Bh"], [943, "mov eax, 0"], [944, "call getmsg"], [945, "mov rdx, rax"], [946, "lea rcx, [rbp+var_554]"], [947, "mov rax, [rbp+stream]"], [948, "mov rsi, rcx"], [949, "mov rdi, rax"], [950, "mov eax, 0"], [951, "call sub_406080"], [952, "mov eax, [rbp+var_288]"], [953, "test eax, eax"], [954, "jz short loc_4125E6"], [955, "mov esi, 88h"], [956, "mov edi, 8598D53h"], [957, "mov eax, 0"], [958, "call getmsg"], [959, "mov rdx, rax"], [960, "lea rcx, [rbp+var_554]"], [961, "mov rax, [rbp+stream]"], [962, "mov rsi, rcx"], [963, "mov rdi, rax"], [964, "mov eax, 0"], [965, "call sub_406080"], [966, "mov eax, [rbp+var_284]"], [967, "test eax, eax"], [968, "jz short loc_412625"], [969, "mov esi, 88h"], [970, "mov edi, 8598D5Bh"], [971, "mov eax, 0"], [972, "call getmsg"], [973, "mov rdx, rax"], [974, "lea rcx, [rbp+var_554]"], [975, "mov rax, [rbp+stream]"], [976, "mov rsi, rcx"], [977, "mov rdi, rax"], [978, "mov eax, 0"], [979, "call sub_406080"], [980, "mov eax, [rbp+var_290]"], [981, "test eax, eax"], [982, "jz short loc_412664"], [983, "mov esi, 88h"], [984, "mov edi, 8598D63h"], [985, "mov eax, 0"], [986, "call getmsg"], [987, "mov rdx, rax"], [988, "lea rcx, [rbp+var_554]"], [989, "mov rax, [rbp+stream]"], [990, "mov rsi, rcx"], [991, "mov rdi, rax"], [992, "mov eax, 0"], [993, "call sub_406080"], [994, "mov eax, [rbp+var_294]"], [995, "test eax, eax"], [996, "jz short loc_4126A3"], [997, "mov esi, 88h"], [998, "mov edi, 8598D6Bh"], [999, "mov eax, 0"], [1000, "call getmsg"], [1001, "mov rdx, rax"], [1002, "lea rcx, [rbp+var_554]"], [1003, "mov rax, [rbp+stream]"], [1004, "mov rsi, rcx"], [1005, "mov rdi, rax"], [1006, "mov eax, 0"], [1007, "call sub_406080"], [1008, "mov eax, [rbp+var_298]"], [1009, "test eax, eax"], [1010, "jz short loc_4126E2"], [1011, "mov esi, 88h"], [1012, "mov edi, 8598D73h"], [1013, "mov eax, 0"], [1014, "call getmsg"], [1015, "mov rdx, rax"], [1016, "lea rcx, [rbp+var_554]"], [1017, "mov rax, [rbp+stream]"], [1018, "mov rsi, rcx"], [1019, "mov rdi, rax"], [1020, "mov eax, 0"], [1021, "call sub_406080"], [1022, "mov eax, [rbp+var_29C]"], [1023, "test eax, eax"], [1024, "jz short loc_412721"], [1025, "mov esi, 88h"], [1026, "mov edi, 8598D7Bh"], [1027, "mov eax, 0"], [1028, "call getmsg"], [1029, "mov rdx, rax"], [1030, "lea rcx, [rbp+var_554]"], [1031, "mov rax, [rbp+stream]"], [1032, "mov rsi, rcx"], [1033, "mov rdi, rax"], [1034, "mov eax, 0"], [1035, "call sub_406080"], [1036, "mov eax, [rbp+var_2A0]"], [1037, "test eax, eax"], [1038, "jz short loc_412760"], [1039, "mov esi, 88h"], [1040, "mov edi, 8598D83h"], [1041, "mov eax, 0"], [1042, "call getmsg"], [1043, "mov rdx, rax"], [1044, "lea rcx, [rbp+var_554]"], [1045, "mov rax, [rbp+stream]"], [1046, "mov rsi, rcx"], [1047, "mov rdi, rax"], [1048, "mov eax, 0"], [1049, "call sub_406080"], [1050, "mov eax, [rbp+var_2A4]"], [1051, "test eax, eax"], [1052, "jz short loc_41279F"], [1053, "mov esi, 88h"], [1054, "mov edi, 8598D8Bh"], [1055, "mov eax, 0"], [1056, "call getmsg"], [1057, "mov rdx, rax"], [1058, "lea rcx, [rbp+var_554]"], [1059, "mov rax, [rbp+stream]"], [1060, "mov rsi, rcx"], [1061, "mov rdi, rax"], [1062, "mov eax, 0"], [1063, "call sub_406080"], [1064, "mov eax, [rbp+var_2AC]"], [1065, "test eax, eax"], [1066, "jz short loc_4127DE"], [1067, "mov esi, 88h"], [1068, "mov edi, 8598D93h"], [1069, "mov eax, 0"], [1070, "call getmsg"], [1071, "mov rdx, rax"], [1072, "lea rcx, [rbp+var_554]"], [1073, "mov rax, [rbp+stream]"], [1074, "mov rsi, rcx"], [1075, "mov rdi, rax"], [1076, "mov eax, 0"], [1077, "call sub_406080"], [1078, "mov eax, [rbp+var_2A8]"], [1079, "test eax, eax"], [1080, "jz short loc_41281D"], [1081, "mov esi, 88h"], [1082, "mov edi, 8598D9Bh"], [1083, "mov eax, 0"], [1084, "call getmsg"], [1085, "mov rdx, rax"], [1086, "lea rcx, [rbp+var_554]"], [1087, "mov rax, [rbp+stream]"], [1088, "mov rsi, rcx"], [1089, "mov rdi, rax"], [1090, "mov eax, 0"], [1091, "call sub_406080"], [1092, "lea rcx, [rbp+var_554]"], [1093, "mov rax, [rbp+stream]"], [1094, "mov edx, offset asc_43B832"], [1095, "mov rsi, rcx"], [1096, "mov rdi, rax"], [1097, "mov eax, 0"], [1098, "call sub_406080"], [1099, "movzx eax, word ptr [rbp+var_3D8+2]"], [1100, "movzx r12d, ax"], [1101, "mov ebx, dword ptr [rbp+var_3D8+4]"], [1102, "mov esi, 88h"], [1103, "mov edi, 8598DA3h"], [1104, "mov eax, 0"], [1105, "call getmsg"], [1106, "mov rdx, rax"], [1107, "lea rsi, [rbp+var_554]"], [1108, "mov rax, [rbp+stream]"], [1109, "mov r8d, r12d"], [1110, "mov ecx, ebx"], [1111, "mov rdi, rax"], [1112, "mov eax, 0"], [1113, "call sub_406080"], [1114, "mov esi, 88h"], [1115, "mov edi, 8598DABh"], [1116, "mov eax, 0"], [1117, "call getmsg"], [1118, "mov rdx, rax"], [1119, "lea rcx, [rbp+var_554]"], [1120, "mov rax, [rbp+stream]"], [1121, "mov rsi, rcx"], [1122, "mov rdi, rax"], [1123, "mov eax, 0"], [1124, "call sub_406080"], [1125, "movzx eax, byte ptr [rbp+var_350+6]"], [1126, "movzx eax, al"], [1127, "cmp eax, 6"], [1128, "ja short def_4128D6"], [1129, "mov eax, eax"], [1130, "mov rax, ds:jpt_4128D6[rax*8]"], [1131, "jmp rax"], [1132, "mov esi, 88h"], [1133, "mov edi, 8598DB3h"], [1134, "mov eax, 0"], [1135, "call getmsg"], [1136, "mov rdx, rax"], [1137, "lea rcx, [rbp+var_554]"], [1138, "mov rax, [rbp+stream]"], [1139, "mov rsi, rcx"], [1140, "mov rdi, rax"], [1141, "mov eax, 0"], [1142, "call sub_406080"], [1143, "jmp loc_412A9F"], [1144, "movzx eax, word ptr [rbp+var_358+6]"], [1145, "movzx ebx, ax"], [1146, "mov esi, 88h"], [1147, "mov edi, 8598DBBh"], [1148, "mov eax, 0"], [1149, "call getmsg"], [1150, "mov rdx, rax"], [1151, "lea rsi, [rbp+var_554]"], [1152, "mov rax, [rbp+stream]"], [1153, "mov ecx, ebx"], [1154, "mov rdi, rax"], [1155, "mov eax, 0"], [1156, "call sub_406080"], [1157, "jmp loc_412A9F"], [1158, "movzx eax, word ptr [rbp+var_3D0+4]"], [1159, "movzx ebx, ax"], [1160, "mov esi, 88h"], [1161, "mov edi, 8598DC3h"], [1162, "mov eax, 0"], [1163, "call getmsg"], [1164, "mov rdx, rax"], [1165, "lea rsi, [rbp+var_554]"], [1166, "mov rax, [rbp+stream]"], [1167, "mov ecx, ebx"], [1168, "mov rdi, rax"], [1169, "mov eax, 0"], [1170, "call sub_406080"], [1171, "jmp loc_412A9F"], [1172, "movzx eax, word ptr [rbp+var_3D0+4]"], [1173, "movzx r12d, ax"], [1174, "movzx eax, byte ptr [rbp+var_350+3]"], [1175, "test al, al"], [1176, "jz short loc_4129BA"], [1177, "movzx eax, byte ptr [rbp+var_350+3]"], [1178, "movzx ebx, al"], [1179, "jmp short loc_4129BF"], [1180, "mov ebx, 2"], [1181, "mov esi, 88h"], [1182, "mov edi, 8598DCBh"], [1183, "mov eax, 0"], [1184, "call getmsg"], [1185, "mov rdx, rax"], [1186, "lea rsi, [rbp+var_554]"], [1187, "mov rax, [rbp+stream]"], [1188, "mov r8d, r12d"], [1189, "mov ecx, ebx"], [1190, "mov rdi, rax"], [1191, "mov eax, 0"], [1192, "call sub_406080"], [1193, "jmp loc_412A9F"], [1194, "mov esi, 88h"], [1195, "mov edi, 8598DD3h"], [1196, "mov eax, 0"], [1197, "call getmsg"], [1198, "mov rdx, rax"], [1199, "lea rcx, [rbp+var_554]"], [1200, "mov rax, [rbp+stream]"], [1201, "mov rsi, rcx"], [1202, "mov rdi, rax"], [1203, "mov eax, 0"], [1204, "call sub_406080"], [1205, "jmp short loc_412A9F"], [1206, "mov esi, 88h"], [1207, "mov edi, 8598DDBh"], [1208, "mov eax, 0"], [1209, "call getmsg"], [1210, "mov rdx, rax"], [1211, "lea rcx, [rbp+var_554]"], [1212, "mov rax, [rbp+stream]"], [1213, "mov rsi, rcx"], [1214, "mov rdi, rax"], [1215, "mov eax, 0"], [1216, "call sub_406080"], [1217, "jmp short loc_412A9F"], [1218, "mov esi, 88h"], [1219, "mov edi, 8598DE3h"], [1220, "mov eax, 0"], [1221, "call getmsg"], [1222, "mov rdx, rax"], [1223, "lea rcx, [rbp+var_554]"], [1224, "mov rax, [rbp+stream]"], [1225, "mov rsi, rcx"], [1226, "mov rdi, rax"], [1227, "mov eax, 0"], [1228, "call sub_406080"], [1229, "nop"], [1230, "lea rcx, [rbp+var_554]"], [1231, "mov rax, [rbp+stream]"], [1232, "mov edx, offset asc_43B832"], [1233, "mov rsi, rcx"], [1234, "mov rdi, rax"], [1235, "mov eax, 0"], [1236, "call sub_406080"], [1237, "mov esi, 88h"], [1238, "mov edi, 8598DEBh"], [1239, "mov eax, 0"], [1240, "call getmsg"], [1241, "mov rdx, rax"], [1242, "lea rcx, [rbp+var_554]"], [1243, "mov rax, [rbp+stream]"], [1244, "mov rsi, rcx"], [1245, "mov rdi, rax"], [1246, "mov eax, 0"], [1247, "call sub_406080"], [1248, "movzx eax, byte ptr [rbp+var_350+5]"], [1249, "test al, al"], [1250, "jnz short loc_412B3C"], [1251, "mov esi, 88h"], [1252, "mov edi, 8598DF3h"], [1253, "mov eax, 0"], [1254, "call getmsg"], [1255, "mov rdx, rax"], [1256, "lea rcx, [rbp+var_554]"], [1257, "mov rax, [rbp+stream]"], [1258, "mov rsi, rcx"], [1259, "mov rdi, rax"], [1260, "mov eax, 0"], [1261, "call sub_406080"], [1262, "jmp loc_412C90"], [1263, "mov [rbp+var_48], offset unk_43B805"], [1264, "movzx eax, byte ptr [rbp+var_350+5]"], [1265, "movzx eax, al"], [1266, "and eax, 1"], [1267, "test eax, eax"], [1268, "jz short loc_412B99"], [1269, "mov esi, 88h"], [1270, "mov edi, 8598DFBh"], [1271, "mov eax, 0"], [1272, "call getmsg"], [1273, "mov rdi, rax"], [1274, "mov rdx, [rbp+var_48]"], [1275, "lea rsi, [rbp+var_554]"], [1276, "mov rax, [rbp+stream]"], [1277, "mov rcx, rdx"], [1278, "mov rdx, rdi"], [1279, "mov rdi, rax"], [1280, "mov eax, 0"], [1281, "call sub_406080"], [1282, "mov [rbp+var_48], offset asc_43B83C"], [1283, "movzx eax, byte ptr [rbp+var_350+5]"], [1284, "movzx eax, al"], [1285, "and eax, 2"], [1286, "test eax, eax"], [1287, "jz short loc_412BEE"], [1288, "mov esi, 88h"], [1289, "mov edi, 8598E03h"], [1290, "mov eax, 0"], [1291, "call getmsg"], [1292, "mov rdi, rax"], [1293, "mov rdx, [rbp+var_48]"], [1294, "lea rsi, [rbp+var_554]"], [1295, "mov rax, [rbp+stream]"], [1296, "mov rcx, rdx"], [1297, "mov rdx, rdi"], [1298, "mov rdi, rax"], [1299, "mov eax, 0"], [1300, "call sub_406080"], [1301, "mov [rbp+var_48], offset asc_43B83C"], [1302, "movzx eax, byte ptr [rbp+var_350+5]"], [1303, "movzx eax, al"], [1304, "and eax, 4"], [1305, "test eax, eax"], [1306, "jz short loc_412C43"], [1307, "mov esi, 88h"], [1308, "mov edi, 8598E0Bh"], [1309, "mov eax, 0"], [1310, "call getmsg"], [1311, "mov rdi, rax"], [1312, "mov rdx, [rbp+var_48]"], [1313, "lea rsi, [rbp+var_554]"], [1314, "mov rax, [rbp+stream]"], [1315, "mov rcx, rdx"], [1316, "mov rdx, rdi"], [1317, "mov rdi, rax"], [1318, "mov eax, 0"], [1319, "call sub_406080"], [1320, "mov [rbp+var_48], offset asc_43B83C"], [1321, "movzx eax, byte ptr [rbp+var_350+5]"], [1322, "movzx eax, al"], [1323, "and eax, 8"], [1324, "test eax, eax"], [1325, "jz short loc_412C90"], [1326, "mov esi, 88h"], [1327, "mov edi, 8598E13h"], [1328, "mov eax, 0"], [1329, "call getmsg"], [1330, "mov rdi, rax"], [1331, "mov rdx, [rbp+var_48]"], [1332, "lea rsi, [rbp+var_554]"], [1333, "mov rax, [rbp+stream]"], [1334, "mov rcx, rdx"], [1335, "mov rdx, rdi"], [1336, "mov rdi, rax"], [1337, "mov eax, 0"], [1338, "call sub_406080"], [1339, "mov rax, [rbp+stream]"], [1340, "mov rsi, rax"], [1341, "mov edi, 0Ah"], [1342, "call _fputc"], [1343, "mov esi, 88h"], [1344, "mov edi, 8598E1Bh"], [1345, "mov eax, 0"], [1346, "call getmsg"], [1347, "mov rdx, rax"], [1348, "mov rax, [rbp+stream]"], [1349, "mov rsi, rdx"], [1350, "mov rdi, rax"], [1351, "mov eax, 0"], [1352, "call _fprintf"], [1353, "movzx eax, word ptr [rbp+var_3E8+2]"], [1354, "movzx eax, ax"], [1355, "and eax, 0Fh"], [1356, "not eax"], [1357, "mov [rbp+var_64], eax"], [1358, "mov eax, [rbp+var_64]"], [1359, "and eax, 1"], [1360, "test eax, eax"], [1361, "jz short loc_412D02"], [1362, "mov rax, [rbp+stream]"], [1363, "mov rsi, rax"], [1364, "mov edi, 52h "], [1365, "call _fputc"], [1366, "mov eax, [rbp+var_64]"], [1367, "and eax, 2"], [1368, "test eax, eax"], [1369, "jz short loc_412D20"], [1370, "mov rax, [rbp+stream]"], [1371, "mov rsi, rax"], [1372, "mov edi, 57h "], [1373, "call _fputc"], [1374, "mov eax, [rbp+var_64]"], [1375, "and eax, 4"], [1376, "test eax, eax"], [1377, "jz short loc_412D3E"], [1378, "mov rax, [rbp+stream]"], [1379, "mov rsi, rax"], [1380, "mov edi, 45h "], [1381, "call _fputc"], [1382, "mov eax, [rbp+var_64]"], [1383, "and eax, 8"], [1384, "test eax, eax"], [1385, "jz short loc_412D5C"], [1386, "mov rax, [rbp+stream]"], [1387, "mov rsi, rax"], [1388, "mov edi, 44h "], [1389, "call _fputc"], [1390, "mov esi, 88h"], [1391, "mov edi, 8598E23h"], [1392, "mov eax, 0"], [1393, "call getmsg"], [1394, "mov rdx, rax"], [1395, "mov rax, [rbp+stream]"], [1396, "mov rsi, rdx"], [1397, "mov rdi, rax"], [1398, "mov eax, 0"], [1399, "call _fprintf"], [1400, "movzx eax, word ptr [rbp+var_3E8+2]"], [1401, "shr ax, 4"], [1402, "movzx eax, ax"], [1403, "and eax, 0Fh"], [1404, "not eax"], [1405, "mov [rbp+var_68], eax"], [1406, "mov eax, [rbp+var_68]"], [1407, "and eax, 1"], [1408, "test eax, eax"], [1409, "jz short loc_412DBE"], [1410, "mov rax, [rbp+stream]"], [1411, "mov rsi, rax"], [1412, "mov edi, 52h "], [1413, "call _fputc"], [1414, "mov eax, [rbp+var_68]"], [1415, "and eax, 2"], [1416, "test eax, eax"], [1417, "jz short loc_412DDC"], [1418, "mov rax, [rbp+stream]"], [1419, "mov rsi, rax"], [1420, "mov edi, 57h "], [1421, "call _fputc"], [1422, "mov eax, [rbp+var_68]"], [1423, "and eax, 4"], [1424, "test eax, eax"], [1425, "jz short loc_412DFA"], [1426, "mov rax, [rbp+stream]"], [1427, "mov rsi, rax"], [1428, "mov edi, 45h "], [1429, "call _fputc"], [1430, "mov eax, [rbp+var_68]"], [1431, "and eax, 8"], [1432, "test eax, eax"], [1433, "jz short loc_412E18"], [1434, "mov rax, [rbp+stream]"], [1435, "mov rsi, rax"], [1436, "mov edi, 44h "], [1437, "call _fputc"], [1438, "mov esi, 88h"], [1439, "mov edi, 8598E2Bh"], [1440, "mov eax, 0"], [1441, "call getmsg"], [1442, "mov rdx, rax"], [1443, "mov rax, [rbp+stream]"], [1444, "mov rsi, rdx"], [1445, "mov rdi, rax"], [1446, "mov eax, 0"], [1447, "call _fprintf"], [1448, "movzx eax, word ptr [rbp+var_3E8+2]"], [1449, "shr ax, 8"], [1450, "movzx eax, ax"], [1451, "and eax, 0Fh"], [1452, "not eax"], [1453, "mov [rbp+var_6C], eax"], [1454, "mov eax, [rbp+var_6C]"], [1455, "and eax, 1"], [1456, "test eax, eax"], [1457, "jz short loc_412E7A"], [1458, "mov rax, [rbp+stream]"], [1459, "mov rsi, rax"], [1460, "mov edi, 52h "], [1461, "call _fputc"], [1462, "mov eax, [rbp+var_6C]"], [1463, "and eax, 2"], [1464, "test eax, eax"], [1465, "jz short loc_412E98"], [1466, "mov rax, [rbp+stream]"], [1467, "mov rsi, rax"], [1468, "mov edi, 57h "], [1469, "call _fputc"], [1470, "mov eax, [rbp+var_6C]"], [1471, "and eax, 4"], [1472, "test eax, eax"], [1473, "jz short loc_412EB6"], [1474, "mov rax, [rbp+stream]"], [1475, "mov rsi, rax"], [1476, "mov edi, 45h "], [1477, "call _fputc"], [1478, "mov eax, [rbp+var_6C]"], [1479, "and eax, 8"], [1480, "test eax, eax"], [1481, "jz short loc_412ED4"], [1482, "mov rax, [rbp+stream]"], [1483, "mov rsi, rax"], [1484, "mov edi, 44h "], [1485, "call _fputc"], [1486, "mov esi, 88h"], [1487, "mov edi, 8598E33h"], [1488, "mov eax, 0"], [1489, "call getmsg"], [1490, "mov rdx, rax"], [1491, "mov rax, [rbp+stream]"], [1492, "mov rsi, rdx"], [1493, "mov rdi, rax"], [1494, "mov eax, 0"], [1495, "call _fprintf"], [1496, "movzx eax, word ptr [rbp+var_3E8+2]"], [1497, "shr ax, 0Ch"], [1498, "movzx eax, ax"], [1499, "and eax, 0Fh"], [1500, "not eax"], [1501, "mov [rbp+var_70], eax"], [1502, "mov eax, [rbp+var_70]"], [1503, "and eax, 1"], [1504, "test eax, eax"], [1505, "jz short loc_412F36"], [1506, "mov rax, [rbp+stream]"], [1507, "mov rsi, rax"], [1508, "mov edi, 52h "], [1509, "call _fputc"], [1510, "mov eax, [rbp+var_70]"], [1511, "and eax, 2"], [1512, "test eax, eax"], [1513, "jz short loc_412F54"], [1514, "mov rax, [rbp+stream]"], [1515, "mov rsi, rax"], [1516, "mov edi, 57h "], [1517, "call _fputc"], [1518, "mov eax, [rbp+var_70]"], [1519, "and eax, 4"], [1520, "test eax, eax"], [1521, "jz short loc_412F72"], [1522, "mov rax, [rbp+stream]"], [1523, "mov rsi, rax"], [1524, "mov edi, 45h "], [1525, "call _fputc"], [1526, "mov eax, [rbp+var_70]"], [1527, "and eax, 8"], [1528, "test eax, eax"], [1529, "jz short loc_412F90"], [1530, "mov rax, [rbp+stream]"], [1531, "mov rsi, rax"], [1532, "mov edi, 44h "], [1533, "call _fputc"], [1534, "mov rax, [rbp+stream]"], [1535, "mov rsi, rax"], [1536, "mov edi, 0Ah"], [1537, "call _fputc"], [1538, "mov eax, [rbp+var_69C]"], [1539, "and eax, 40000h"], [1540, "test eax, eax"], [1541, "jz loc_413527"], [1542, "mov [rbp+var_574], 0"], [1543, "mov [rbp+ptr], 0"], [1544, "mov [rbp+var_590], 1"], [1545, "lea rax, [rbp+var_570]"], [1546, "mov edx, 10h"], [1547, "mov esi, 0"], [1548, "mov rdi, rax"], [1549, "call _memset"], [1550, "mov [rbp+var_56E], 0"], [1551, "mov [rbp+var_56D], 0"], [1552, "movzx eax, byte ptr [rbp+var_2C8+5]"], [1553, "movzx eax, al"], [1554, "mov [rbp+var_570], ax"], [1555, "mov rax, [rbp+var_330]"], [1556, "mov [rbp+var_568], rax"], [1557, "mov eax, dword ptr [rbp+var_2F8]"], [1558, "mov [rbp+var_58C], eax"], [1559, "movzx eax, word ptr [rbp+var_2F8+4]"], [1560, "mov [rbp+var_588], ax"], [1561, "lea rdi, [rbp+ptr]"], [1562, "lea rcx, [rbp+var_574]"], [1563, "lea rdx, [rbp+var_58C]"], [1564, "lea rsi, [rbp+var_570]"], [1565, "mov rax, [rbp+stream]"], [1566, "mov r8, rdi"], [1567, "mov rdi, rax"], [1568, "call sub_413771"], [1569, "mov [rbp+var_14], eax"], [1570, "mov eax, [rbp+var_14]"], [1571, "and eax, 1"], [1572, "test eax, eax"], [1573, "jz short loc_413094"], [1574, "mov ecx, [rbp+var_574]"], [1575, "mov rsi, [rbp+ptr]"], [1576, "lea rdx, [rbp+var_590]"], [1577, "mov rax, [rbp+stream]"], [1578, "mov rdi, rax"], [1579, "call sub_413D71"], [1580, "mov eax, [rbp+var_58C]"], [1581, "mov [rbp+var_586], eax"], [1582, "movzx eax, [rbp+var_588]"], [1583, "mov [rbp+var_582], ax"], [1584, "mov rax, [rbp+ptr]"], [1585, "mov edx, [rax+0Eh]"], [1586, "mov [rbp+var_58C], edx"], [1587, "movzx eax, word ptr [rax+12h]"], [1588, "mov [rbp+var_588], ax"], [1589, "mov rax, [rbp+ptr]"], [1590, "mov rdi, rax"], [1591, "call _free"], [1592, "mov [rbp+ptr], 0"], [1593, "mov eax, [rbp+var_14]"], [1594, "and eax, 1"], [1595, "test eax, eax"], [1596, "jz loc_413527"], [1597, "movzx edx, word ptr [rbp+var_58C]"], [1598, "movzx eax, word ptr [rbp+var_58C+2]"], [1599, "or eax, edx"], [1600, "movzx edx, ax"], [1601, "movzx eax, byte ptr [rbp+var_588]"], [1602, "movzx eax, al"], [1603, "or edx, eax"], [1604, "movzx eax, byte ptr [rbp+var_588+1]"], [1605, "movzx eax, al"], [1606, "or eax, edx"], [1607, "test eax, eax"], [1608, "jz loc_413527"], [1609, "lea rcx, [rbp+var_586]"], [1610, "lea rax, [rbp+var_58C]"], [1611, "mov edx, 6"], [1612, "mov rsi, rcx"], [1613, "mov rdi, rax"], [1614, "call _memcmp"], [1615, "test eax, eax"], [1616, "jnz loc_413036"], [1617, "jmp loc_413527"], [1618, "mov eax, [rbp+var_69C]"], [1619, "and eax, 1"], [1620, "test eax, eax"], [1621, "jz loc_413230"], [1622, "mov eax, [rbp+var_69C]"], [1623, "and eax, 1000h"], [1624, "test eax, eax"], [1625, "jz short loc_413194"], [1626, "lea rax, [rbp+var_3C0]"], [1627, "lea rcx, [rax+14h]"], [1628, "mov rax, [rbp+stream]"], [1629, "mov edx, 0"], [1630, "mov rsi, rcx"], [1631, "mov rdi, rax"], [1632, "call sub_405F48"], [1633, "mov [rbp+var_14], eax"], [1634, "mov eax, [rbp+var_69C]"], [1635, "and eax, 4000h"], [1636, "test eax, eax"], [1637, "jz short loc_4131C8"], [1638, "lea rax, [rbp+var_3C0]"], [1639, "lea rcx, [rax+24h]"], [1640, "mov rax, [rbp+stream]"], [1641, "mov edx, 0"], [1642, "mov rsi, rcx"], [1643, "mov rdi, rax"], [1644, "call sub_405F48"], [1645, "mov [rbp+var_14], eax"], [1646, "mov eax, [rbp+var_69C]"], [1647, "and eax, 2000h"], [1648, "test eax, eax"], [1649, "jz short loc_4131FC"], [1650, "lea rax, [rbp+var_3C0]"], [1651, "lea rcx, [rax+1Ch]"], [1652, "mov rax, [rbp+stream]"], [1653, "mov edx, 0"], [1654, "mov rsi, rcx"], [1655, "mov rdi, rax"], [1656, "call sub_405F48"], [1657, "mov [rbp+var_14], eax"], [1658, "mov eax, [rbp+var_69C]"], [1659, "and eax, 800h"], [1660, "test eax, eax"], [1661, "jz short loc_413230"], [1662, "lea rax, [rbp+var_3C0]"], [1663, "lea rcx, [rax+0Ch]"], [1664, "mov rax, [rbp+stream]"], [1665, "mov edx, 0"], [1666, "mov rsi, rcx"], [1667, "mov rdi, rax"], [1668, "call sub_405F48"], [1669, "mov [rbp+var_14], eax"], [1670, "mov eax, [rbp+var_69C]"], [1671, "and eax, 4"], [1672, "test eax, eax"], [1673, "jz short loc_413274"], [1674, "mov eax, dword ptr [rbp+var_3E8+4]"], [1675, "movzx ecx, ax"], [1676, "mov eax, dword ptr [rbp+var_3E8+4]"], [1677, "shr eax, 10h"], [1678, "mov edx, eax"], [1679, "mov rax, [rbp+stream]"], [1680, "mov r8d, ecx"], [1681, "mov ecx, edx"], [1682, "mov rdx, rax"], [1683, "mov esi, 488h"], [1684, "mov edi, 8598E3Bh"], [1685, "mov eax, 0"], [1686, "call sub_42B40B"], [1687, "mov eax, [rbp+var_69C]"], [1688, "and eax, 8"], [1689, "test eax, eax"], [1690, "jz loc_413527"], [1691, "mov rax, [rbp+stream]"], [1692, "mov rcx, rax"], [1693, "mov edx, 3"], [1694, "mov esi, 1"], [1695, "mov edi, offset asc_43B83F"], [1696, "call _fwrite"], [1697, "movzx eax, word ptr [rbp+var_3E8+2]"], [1698, "movzx eax, ax"], [1699, "and eax, 0Fh"], [1700, "not eax"], [1701, "mov [rbp+var_54], eax"], [1702, "mov eax, [rbp+var_54]"], [1703, "and eax, 1"], [1704, "test eax, eax"], [1705, "jz short loc_4132D3"], [1706, "mov rax, [rbp+stream]"], [1707, "mov rsi, rax"], [1708, "mov edi, 52h "], [1709, "call _fputc"], [1710, "mov eax, [rbp+var_54]"], [1711, "and eax, 2"], [1712, "test eax, eax"], [1713, "jz short loc_4132F1"], [1714, "mov rax, [rbp+stream]"], [1715, "mov rsi, rax"], [1716, "mov edi, 57h "], [1717, "call _fputc"], [1718, "mov eax, [rbp+var_54]"], [1719, "and eax, 4"], [1720, "test eax, eax"], [1721, "jz short loc_41330F"], [1722, "mov rax, [rbp+stream]"], [1723, "mov rsi, rax"], [1724, "mov edi, 45h "], [1725, "call _fputc"], [1726, "mov eax, [rbp+var_54]"], [1727, "and eax, 8"], [1728, "test eax, eax"], [1729, "jz short loc_41332D"], [1730, "mov rax, [rbp+stream]"], [1731, "mov rsi, rax"], [1732, "mov edi, 44h "], [1733, "call _fputc"], [1734, "mov rax, [rbp+stream]"], [1735, "mov rsi, rax"], [1736, "mov edi, 2Ch "], [1737, "call _fputc"], [1738, "movzx eax, word ptr [rbp+var_3E8+2]"], [1739, "shr ax, 4"], [1740, "movzx eax, ax"], [1741, "and eax, 0Fh"], [1742, "not eax"], [1743, "mov [rbp+var_58], eax"], [1744, "mov eax, [rbp+var_58]"], [1745, "and eax, 1"], [1746, "test eax, eax"], [1747, "jz short loc_413375"], [1748, "mov rax, [rbp+stream]"], [1749, "mov rsi, rax"], [1750, "mov edi, 52h "], [1751, "call _fputc"], [1752, "mov eax, [rbp+var_58]"], [1753, "and eax, 2"], [1754, "test eax, eax"], [1755, "jz short loc_413393"], [1756, "mov rax, [rbp+stream]"], [1757, "mov rsi, rax"], [1758, "mov edi, 57h "], [1759, "call _fputc"], [1760, "mov eax, [rbp+var_58]"], [1761, "and eax, 4"], [1762, "test eax, eax"], [1763, "jz short loc_4133B1"], [1764, "mov rax, [rbp+stream]"], [1765, "mov rsi, rax"], [1766, "mov edi, 45h "], [1767, "call _fputc"], [1768, "mov eax, [rbp+var_58]"], [1769, "and eax, 8"], [1770, "test eax, eax"], [1771, "jz short loc_4133CF"], [1772, "mov rax, [rbp+stream]"], [1773, "mov rsi, rax"], [1774, "mov edi, 44h "], [1775, "call _fputc"], [1776, "mov rax, [rbp+stream]"], [1777, "mov rsi, rax"], [1778, "mov edi, 2Ch "], [1779, "call _fputc"], [1780, "movzx eax, word ptr [rbp+var_3E8+2]"], [1781, "shr ax, 8"], [1782, "movzx eax, ax"], [1783, "and eax, 0Fh"], [1784, "not eax"], [1785, "mov [rbp+var_5C], eax"], [1786, "mov eax, [rbp+var_5C]"], [1787, "and eax, 1"], [1788, "test eax, eax"], [1789, "jz short loc_413417"], [1790, "mov rax, [rbp+stream]"], [1791, "mov rsi, rax"], [1792, "mov edi, 52h "], [1793, "call _fputc"], [1794, "mov eax, [rbp+var_5C]"], [1795, "and eax, 2"], [1796, "test eax, eax"], [1797, "jz short loc_413435"], [1798, "mov rax, [rbp+stream]"], [1799, "mov rsi, rax"], [1800, "mov edi, 57h "], [1801, "call _fputc"], [1802, "mov eax, [rbp+var_5C]"], [1803, "and eax, 4"], [1804, "test eax, eax"], [1805, "jz short loc_413453"], [1806, "mov rax, [rbp+stream]"], [1807, "mov rsi, rax"], [1808, "mov edi, 45h "], [1809, "call _fputc"], [1810, "mov eax, [rbp+var_5C]"], [1811, "and eax, 8"], [1812, "test eax, eax"], [1813, "jz short loc_413471"], [1814, "mov rax, [rbp+stream]"], [1815, "mov rsi, rax"], [1816, "mov edi, 44h "], [1817, "call _fputc"], [1818, "mov rax, [rbp+stream]"], [1819, "mov rsi, rax"], [1820, "mov edi, 2Ch "], [1821, "call _fputc"], [1822, "movzx eax, word ptr [rbp+var_3E8+2]"], [1823, "shr ax, 0Ch"], [1824, "movzx eax, ax"], [1825, "and eax, 0Fh"], [1826, "not eax"], [1827, "mov [rbp+var_60], eax"], [1828, "mov eax, [rbp+var_60]"], [1829, "and eax, 1"], [1830, "test eax, eax"], [1831, "jz short loc_4134B9"], [1832, "mov rax, [rbp+stream]"], [1833, "mov rsi, rax"], [1834, "mov edi, 52h "], [1835, "call _fputc"], [1836, "mov eax, [rbp+var_60]"], [1837, "and eax, 2"], [1838, "test eax, eax"], [1839, "jz short loc_4134D7"], [1840, "mov rax, [rbp+stream]"], [1841, "mov rsi, rax"], [1842, "mov edi, 57h "], [1843, "call _fputc"], [1844, "mov eax, [rbp+var_60]"], [1845, "and eax, 4"], [1846, "test eax, eax"], [1847, "jz short loc_4134F5"], [1848, "mov rax, [rbp+stream]"], [1849, "mov rsi, rax"], [1850, "mov edi, 45h "], [1851, "call _fputc"], [1852, "mov eax, [rbp+var_60]"], [1853, "and eax, 8"], [1854, "test eax, eax"], [1855, "jz short loc_413513"], [1856, "mov rax, [rbp+stream]"], [1857, "mov rsi, rax"], [1858, "mov edi, 44h "], [1859, "call _fputc"], [1860, "mov rax, [rbp+stream]"], [1861, "mov rsi, rax"], [1862, "mov edi, 29h "], [1863, "call _fputc"], [1864, "mov eax, [rbp+var_69C]"], [1865, "and eax, 80h"], [1866, "test eax, eax"], [1867, "jz short loc_41354A"], [1868, "mov rax, [rbp+stream]"], [1869, "mov rsi, rax"], [1870, "mov edi, 0Ah"], [1871, "call _fputc"], [1872, "add [rbp+var_24], 1"], [1873, "mov eax, [rbp+var_14]"], [1874, "and eax, 1"], [1875, "test eax, eax"], [1876, "jz short loc_413578"], [1877, "lea rax, [rbp+s]"], [1878, "mov rdi, rax"], [1879, "call sub_421AD4"], [1880, "mov [rbp+var_14], eax"], [1881, "mov eax, [rbp+var_14]"], [1882, "and eax, 1"], [1883, "test eax, eax"], [1884, "jnz loc_411A28"], [1885, "cmp [rbp+var_14], 182CAh"], [1886, "jnz short loc_413588"], [1887, "mov [rbp+var_14], 1"], [1888, "cmp [rbp+var_38], 0"], [1889, "jz short loc_4135A3"], [1890, "mov rax, [rbp+stream]"], [1891, "mov rsi, rax"], [1892, "mov edi, 0Ah"], [1893, "call _fputc"], [1894, "mov eax, [rbp+var_69C]"], [1895, "and eax, 100h"], [1896, "test eax, eax"], [1897, "jz short loc_41360E"], [1898, "mov edx, [rbp+var_24]"], [1899, "mov rax, [rbp+stream]"], [1900, "mov ecx, edx"], [1901, "mov rdx, rax"], [1902, "mov esi, 488h"], [1903, "mov edi, 8598C9Bh"], [1904, "mov eax, 0"], [1905, "call sub_42B40B"], [1906, "mov ecx, [rbp+var_2C]"], [1907, "mov edx, [rbp+var_28]"], [1908, "mov esi, [rbp+var_69C]"], [1909, "mov rax, [rbp+stream]"], [1910, "mov rdi, rax"], [1911, "call sub_41369D"], [1912, "mov rax, [rbp+stream]"], [1913, "mov rcx, rax"], [1914, "mov edx, 2"], [1915, "mov esi, 1"], [1916, "mov edi, offset asc_43B7CD"], [1917, "call _fwrite"], [1918, "mov rax, [rbp+var_6A8]"], [1919, "mov edx, [rax]"], [1920, "mov eax, [rbp+var_24]"], [1921, "add edx, eax"], [1922, "mov rax, [rbp+var_6A8]"], [1923, "mov [rax], edx"], [1924, "mov rax, [rbp+var_6A8]"], [1925, "mov edx, [rax+4]"], [1926, "mov eax, [rbp+var_28]"], [1927, "add edx, eax"], [1928, "mov rax, [rbp+var_6A8]"], [1929, "mov [rax+4], edx"], [1930, "mov rax, [rbp+var_6A8]"], [1931, "mov edx, [rax+8]"], [1932, "mov eax, [rbp+var_2C]"], [1933, "add edx, eax"], [1934, "mov rax, [rbp+var_6A8]"], [1935, "mov [rax+8], edx"], [1936, "mov byte ptr [rbp+var_350+1], 0"], [1937, "movzx eax, byte ptr [rbp+var_350+1]"], [1938, "mov byte ptr [rbp+var_2C8+1], al"], [1939, "movzx eax, byte ptr [rbp+var_2C8+1]"], [1940, "mov byte ptr [rbp+var_350], al"], [1941, "mov byte ptr [rbp+var_2C0+2], 8"], [1942, "lea rax, [rbp+s]"], [1943, "mov rdi, rax"], [1944, "call sub_42302D"], [1945, "mov eax, [rbp+var_14]"], [1946, "add rsp, 6A0h"], [1947, "pop rbx"], [1948, "pop r12"], [1949, "pop rbp"], [1950, "retn"]], "data_dep": [[87, 85], [88, 86], [91, 89], [92, 90], [95, 93], [96, 94], [99, 97], [100, 98], [103, 101], [104, 102], [107, 105], [108, 106], [111, 109], [112, 110], [115, 113], [116, 114], [118, 117], [121, 119], [122, 120], [125, 123], [126, 124], [129, 127], [130, 128], [133, 131], [134, 132], [137, 135], [138, 136], [141, 139], [142, 140], [145, 143], [146, 144], [149, 147], [150, 148], [153, 151], [154, 152], [157, 155], [158, 156], [161, 159], [162, 160], [165, 163], [166, 164], [168, 167], [169, 167], [172, 169], [173, 171], [175, 169], [175, 9], [176, 175], [178, 176], [178, 175], [179, 178], [180, 141], [180, 178], [181, 180], [182, 153], [182, 180], [183, 182], [184, 161], [184, 182], [185, 184], [186, 184], [186, 165], [187, 186], [188, 73], [188, 186], [189, 188], [190, 188], [190, 84], [191, 190], [192, 190], [192, 75], [193, 192], [194, 192], [194, 84], [195, 194], [196, 74], [196, 194], [197, 196], [198, 84], [198, 196], [199, 198], [200, 76], [200, 198], [201, 200], [202, 84], [202, 200], [203, 202], [204, 77], [204, 202], [205, 204], [206, 204], [206, 84], [207, 206], [208, 78], [208, 206], [209, 208], [210, 84], [210, 208], [211, 210], [212, 210], [212, 79], [213, 212], [214, 212], [214, 84], [215, 214], [216, 80], [216, 214], [217, 216], [218, 216], [218, 84], [219, 218], [220, 81], [220, 218], [221, 220], [222, 84], [222, 220], [223, 222], [224, 222], [224, 83], [225, 224], [226, 224], [226, 84], [227, 226], [228, 226], [228, 82], [229, 228], [230, 228], [230, 84], [231, 230], [233, 230], [234, 233], [235, 8], [236, 235], [237, 8], [238, 237], [239, 236], [240, 239], [244, 243], [244, 241], [246, 245], [247, 246], [249, 248], [250, 236], [250, 248], [251, 250], [253, 252], [254, 253], [255, 254], [256, 255], [257, 256], [295, 41], [295, 256], [296, 295], [301, 300], [303, 302], [304, 301], [304, 303], [305, 356], [305, 290], [305, 304], [306, 305], [308, 307], [310, 309], [311, 310], [311, 308], [312, 1681], [312, 656], [312, 358], [312, 1627], [312, 1692], [312, 1296], [312, 458], [312, 1639], [312, 173], [312, 624], [312, 506], [312, 1651], [312, 1242], [312, 1562], [312, 1277], [312, 1663], [312, 583], [312, 1574], [312, 373], [312, 1256], [312, 1609], [312, 1334], [312, 312], [312, 1315], [312, 258], [313, 41], [313, 310], [314, 312], [315, 313], [317, 316], [318, 317], [319, 1872], [319, 291], [320, 319], [321, 6], [322, 321], [323, 322], [324, 323], [325, 294], [325, 405], [325, 473], [326, 325], [327, 5], [328, 327], [331, 1872], [331, 291], [332, 5], [333, 331], [334, 332], [339, 596], [339, 293], [339, 404], [340, 613], [340, 292], [340, 403], [341, 6], [342, 5], [343, 342], [345, 5], [346, 345], [352, 351], [354, 353], [355, 354], [355, 352], [356, 355], [357, 356], [358, 1663], [358, 583], [358, 1256], [358, 1609], [358, 1334], [358, 312], [358, 1692], [358, 458], [358, 1315], [358, 1681], [358, 346], [358, 624], [358, 1242], [358, 656], [358, 358], [358, 1562], [358, 1627], [358, 1296], [358, 1574], [358, 373], [358, 1639], [358, 173], [358, 506], [358, 1651], [358, 41], [358, 1277], [359, 258], [359, 355], [360, 358], [361, 359], [363, 357], [363, 258], [364, 356], [365, 363], [365, 364], [366, 365], [367, 6], [368, 367], [369, 368], [370, 369], [371, 363], [371, 258], [372, 5], [373, 371], [374, 372], [379, 7], [380, 401], [380, 390], [380, 379], [380, 384], [380, 396], [380, 366], [381, 291], [381, 1872], [382, 380], [382, 381], [383, 7], [384, 383], [384, 382], [385, 7], [386, 385], [386, 384], [386, 390], [387, 613], [387, 403], [387, 292], [388, 387], [388, 386], [389, 7], [390, 388], [390, 389], [391, 7], [392, 390], [392, 391], [392, 396], [393, 293], [393, 404], [393, 596], [394, 392], [394, 393], [395, 7], [396, 394], [396, 395], [397, 7], [398, 396], [398, 397], [398, 401], [399, 394], [399, 396], [399, 398], [400, 7], [401, 399], [401, 400], [407, 406], [409, 407], [411, 410], [412, 118], [413, 412], [414, 411], [414, 413], [416, 415], [417, 414], [417, 416], [418, 417], [419, 6], [420, 419], [421, 420], [422, 421], [423, 6], [424, 423], [425, 424], [426, 425], [427, 294], [427, 405], [427, 473], [428, 427], [429, 294], [429, 405], [429, 473], [430, 429], [432, 431], [433, 432], [434, 433], [435, 434], [436, 433], [436, 435], [437, 436], [438, 437], [439, 438], [440, 418], [441, 440], [441, 439], [442, 441], [443, 442], [444, 5], [445, 444], [450, 438], [451, 450], [452, 473], [452, 294], [452, 405], [453, 452], [454, 451], [455, 453], [455, 454], [456, 455], [457, 5], [460, 457], [463, 438], [464, 463], [465, 456], [465, 414], [465, 41], [465, 439], [466, 356], [466, 290], [467, 465], [467, 466], [468, 5], [469, 468], [470, 467], [472, 418], [473, 464], [473, 448], [473, 294], [473, 405], [473, 472], [473, 473], [475, 6], [476, 475], [477, 476], [478, 477], [479, 6], [480, 479], [481, 480], [482, 481], [483, 5], [484, 481], [484, 258], [485, 483], [486, 484], [488, 6], [489, 488], [490, 489], [491, 490], [492, 418], [493, 492], [494, 483], [494, 414], [494, 41], [495, 356], [495, 290], [496, 495], [496, 494], [497, 5], [498, 497], [499, 496], [501, 6], [502, 501], [503, 502], [504, 503], [505, 5], [506, 505], [512, 414], [512, 483], [512, 41], [513, 356], [513, 290], [514, 513], [514, 512], [515, 5], [517, 515], [521, 483], [521, 414], [521, 41], [522, 356], [522, 290], [523, 521], [523, 522], [524, 5], [526, 524], [529, 510], [529, 477], [529, 236], [529, 503], [529, 528], [529, 519], [530, 529], [532, 531], [533, 532], [534, 533], [535, 534], [536, 535], [537, 5], [538, 532], [540, 538], [545, 535], [545, 236], [546, 545], [548, 547], [549, 6], [550, 549], [551, 550], [552, 551], [553, 6], [554, 553], [555, 554], [556, 555], [557, 6], [558, 557], [559, 558], [560, 559], [564, 5], [566, 564], [570, 569], [572, 571], [574, 573], [575, 574], [576, 575], [577, 104], [578, 577], [579, 576], [579, 578], [580, 578], [581, 570], [582, 572], [583, 579], [586, 580], [589, 584], [590, 5], [592, 590], [596, 404], [596, 596], [596, 595], [596, 293], [597, 6], [598, 597], [599, 598], [600, 599], [602, 601], [603, 602], [604, 603], [606, 605], [609, 608], [610, 609], [611, 602], [612, 611], [612, 602], [612, 606], [613, 613], [613, 292], [613, 403], [613, 612], [614, 6], [615, 614], [616, 615], [617, 616], [618, 6], [619, 618], [620, 619], [621, 620], [622, 611], [622, 602], [622, 606], [623, 5], [624, 622], [625, 623], [631, 611], [631, 602], [631, 606], [632, 5], [634, 632], [637, 6], [638, 637], [639, 638], [640, 639], [642, 5], [644, 642], [647, 6], [648, 647], [649, 648], [650, 649], [651, 6], [652, 651], [653, 652], [654, 653], [655, 5], [656, 655], [662, 5], [663, 662], [667, 6], [668, 667], [669, 668], [670, 669], [672, 5], [674, 672], [677, 6], [678, 677], [679, 678], [680, 679], [683, 682], [685, 684], [686, 685], [687, 5], [688, 683], [689, 686], [690, 687], [695, 5], [696, 695], [701, 700], [701, 183], [702, 396], [702, 384], [702, 366], [702, 401], [702, 390], [702, 689], [702, 701], [703, 5], [705, 702], [706, 703], [708, 5], [709, 708], [714, 183], [714, 713], [715, 702], [715, 384], [715, 714], [715, 396], [715, 366], [715, 401], [715, 390], [716, 5], [718, 715], [719, 716], [722, 721], [723, 5], [725, 723], [728, 5], [729, 728], [734, 733], [734, 183], [735, 396], [735, 715], [735, 366], [735, 401], [735, 390], [735, 384], [735, 734], [736, 5], [738, 735], [739, 736], [741, 5], [742, 741], [747, 746], [747, 183], [748, 396], [748, 384], [748, 366], [748, 401], [748, 390], [748, 735], [748, 747], [749, 5], [751, 748], [752, 749], [758, 757], [759, 681], [759, 748], [760, 5], [761, 759], [762, 760], [766, 765], [767, 766], [768, 767], [769, 766], [770, 769], [771, 766], [772, 771], [773, 771], [774, 773], [780, 779], [781, 681], [781, 759], [782, 5], [783, 781], [784, 782], [792, 791], [793, 681], [793, 759], [794, 5], [795, 793], [796, 794], [804, 803], [805, 681], [805, 759], [806, 5], [807, 805], [808, 806], [813, 812], [818, 817], [819, 681], [819, 814], [820, 5], [821, 813], [822, 820], [830, 829], [831, 681], [831, 805], [831, 781], [831, 793], [831, 821], [832, 5], [833, 831], [834, 832], [842, 841], [843, 681], [843, 838], [844, 5], [845, 837], [846, 844], [849, 134], [850, 849], [855, 854], [856, 851], [856, 681], [857, 5], [858, 850], [859, 857], [863, 862], [868, 867], [869, 864], [869, 681], [870, 5], [871, 863], [872, 870], [876, 875], [877, 876], [879, 878], [880, 879], [881, 76], [882, 881], [883, 882], [888, 887], [889, 681], [889, 871], [890, 5], [891, 889], [892, 890], [900, 899], [901, 871], [901, 681], [902, 5], [903, 901], [904, 902], [908, 76], [909, 908], [910, 909], [912, 911], [917, 916], [918, 681], [918, 913], [919, 5], [920, 912], [921, 919], [926, 925], [931, 930], [932, 681], [932, 927], [933, 5], [934, 926], [935, 933], [938, 75], [939, 938], [940, 939], [945, 944], [946, 920], [946, 889], [946, 934], [946, 901], [946, 681], [947, 5], [948, 946], [949, 947], [952, 74], [953, 952], [954, 953], [959, 958], [960, 920], [960, 889], [960, 934], [960, 901], [960, 681], [960, 946], [961, 5], [962, 960], [963, 961], [966, 73], [967, 966], [968, 967], [973, 972], [974, 920], [974, 889], [974, 934], [974, 901], [974, 681], [974, 946], [974, 960], [975, 5], [976, 974], [977, 975], [980, 76], [981, 980], [982, 981], [987, 986], [988, 974], [988, 920], [988, 889], [988, 934], [988, 901], [988, 681], [988, 946], [988, 960], [989, 5], [990, 988], [991, 989], [994, 77], [995, 994], [996, 995], [1001, 1000], [1002, 960], [1002, 974], [1002, 920], [1002, 889], [1002, 934], [1002, 901], [1002, 681], [1002, 946], [1002, 988], [1003, 5], [1004, 1002], [1005, 1003], [1008, 78], [1009, 1008], [1010, 1009], [1015, 1014], [1016, 1002], [1016, 681], [1016, 946], [1016, 960], [1016, 974], [1016, 920], [1016, 988], [1016, 889], [1016, 934], [1016, 901], [1017, 5], [1018, 1016], [1019, 1017], [1022, 79], [1023, 1022], [1024, 1023], [1029, 1028], [1030, 901], [1030, 1002], [1030, 681], [1030, 946], [1030, 960], [1030, 974], [1030, 1016], [1030, 920], [1030, 988], [1030, 889], [1030, 934], [1031, 5], [1032, 1030], [1033, 1031], [1036, 80], [1037, 1036], [1038, 1037], [1043, 1042], [1044, 934], [1044, 901], [1044, 681], [1044, 946], [1044, 960], [1044, 1002], [1044, 974], [1044, 1016], [1044, 920], [1044, 988], [1044, 1030], [1044, 889], [1045, 5], [1046, 1044], [1047, 1045], [1050, 81], [1051, 1050], [1052, 1051], [1057, 1056], [1058, 920], [1058, 988], [1058, 1030], [1058, 889], [1058, 934], [1058, 901], [1058, 1002], [1058, 681], [1058, 946], [1058, 1044], [1058, 1016], [1058, 960], [1058, 974], [1059, 5], [1060, 1058], [1061, 1059], [1064, 83], [1065, 1064], [1066, 1065], [1071, 1070], [1072, 920], [1072, 988], [1072, 1030], [1072, 889], [1072, 934], [1072, 901], [1072, 1002], [1072, 681], [1072, 946], [1072, 1044], [1072, 960], [1072, 1058], [1072, 974], [1072, 1016], [1073, 5], [1074, 1072], [1075, 1073], [1078, 82], [1079, 1078], [1080, 1079], [1085, 1084], [1086, 681], [1086, 946], [1086, 1044], [1086, 1016], [1086, 960], [1086, 1058], [1086, 1030], [1086, 974], [1086, 1072], [1086, 920], [1086, 988], [1086, 889], [1086, 934], [1086, 901], [1086, 1002], [1087, 5], [1088, 1086], [1089, 1087], [1092, 974], [1092, 1072], [1092, 920], [1092, 1044], [1092, 988], [1092, 1086], [1092, 889], [1092, 934], [1092, 901], [1092, 1002], [1092, 681], [1092, 946], [1092, 1016], [1092, 960], [1092, 1058], [1092, 1030], [1093, 5], [1095, 1092], [1096, 1093], [1100, 1099], [1106, 1105], [1107, 681], [1107, 1102], [1108, 5], [1109, 1100], [1110, 1101], [1111, 1108], [1118, 1117], [1119, 681], [1119, 1110], [1120, 5], [1121, 1119], [1122, 1120], [1126, 1125], [1127, 1126], [1128, 1127], [1129, 1126], [1131, 1130], [1136, 1135], [1137, 681], [1137, 1119], [1138, 5], [1139, 1137], [1140, 1138], [1145, 1144], [1150, 1149], [1151, 1146], [1151, 681], [1152, 5], [1153, 1145], [1154, 1152], [1159, 1158], [1164, 1163], [1165, 681], [1165, 1160], [1166, 5], [1167, 1159], [1168, 1166], [1173, 1172], [1175, 1174], [1176, 1175], [1178, 1177], [1185, 1184], [1186, 681], [1186, 1181], [1187, 5], [1188, 1173], [1189, 1178], [1189, 1180], [1190, 1187], [1198, 1197], [1199, 681], [1199, 1119], [1200, 5], [1201, 1199], [1202, 1200], [1210, 1209], [1211, 681], [1211, 1119], [1212, 5], [1213, 1211], [1214, 1212], [1222, 1221], [1223, 1119], [1223, 681], [1224, 5], [1225, 1223], [1226, 1224], [1230, 1199], [1230, 1153], [1230, 681], [1230, 1211], [1230, 1223], [1230, 1167], [1230, 1189], [1230, 1137], [1231, 5], [1233, 1230], [1234, 1231], [1241, 1240], [1242, 1230], [1242, 681], [1243, 5], [1244, 1242], [1245, 1243], [1249, 1248], [1250, 1249], [1255, 1254], [1256, 1242], [1256, 681], [1257, 5], [1258, 1256], [1259, 1257], [1265, 1264], [1266, 1265], [1267, 1266], [1268, 1267], [1273, 1272], [1274, 1263], [1275, 681], [1275, 1269], [1276, 5], [1277, 1274], [1278, 1273], [1279, 1276], [1284, 1283], [1285, 1284], [1286, 1285], [1287, 1286], [1292, 1291], [1293, 1282], [1293, 1263], [1294, 681], [1294, 1288], [1295, 5], [1296, 1293], [1297, 1292], [1298, 1295], [1303, 1302], [1304, 1303], [1305, 1304], [1306, 1305], [1311, 1310], [1312, 1301], [1312, 1282], [1312, 1263], [1313, 1307], [1313, 681], [1314, 5], [1315, 1312], [1316, 1311], [1317, 1314], [1322, 1321], [1323, 1322], [1324, 1323], [1325, 1324], [1330, 1329], [1331, 1301], [1331, 1282], [1331, 1263], [1331, 1320], [1332, 681], [1332, 1326], [1333, 5], [1334, 1331], [1335, 1330], [1336, 1333], [1339, 5], [1340, 1339], [1347, 1346], [1348, 5], [1349, 1347], [1350, 1348], [1354, 1353], [1355, 1354], [1356, 1355], [1357, 1356], [1358, 1357], [1359, 1358], [1360, 1359], [1361, 1360], [1362, 5], [1363, 1362], [1366, 1357], [1367, 1366], [1368, 1367], [1369, 1368], [1370, 5], [1371, 1370], [1374, 1357], [1375, 1374], [1376, 1375], [1377, 1376], [1378, 5], [1379, 1378], [1382, 1357], [1383, 1382], [1384, 1383], [1385, 1384], [1386, 5], [1387, 1386], [1394, 1393], [1395, 5], [1396, 1394], [1397, 1395], [1401, 1400], [1402, 1401], [1403, 1402], [1404, 1403], [1405, 1404], [1406, 1405], [1407, 1406], [1408, 1407], [1409, 1408], [1410, 5], [1411, 1410], [1414, 1405], [1415, 1414], [1416, 1415], [1417, 1416], [1418, 5], [1419, 1418], [1422, 1405], [1423, 1422], [1424, 1423], [1425, 1424], [1426, 5], [1427, 1426], [1430, 1405], [1431, 1430], [1432, 1431], [1433, 1432], [1434, 5], [1435, 1434], [1442, 1441], [1443, 5], [1444, 1442], [1445, 1443], [1449, 1448], [1450, 1449], [1451, 1450], [1452, 1451], [1453, 1452], [1454, 1453], [1455, 1454], [1456, 1455], [1457, 1456], [1458, 5], [1459, 1458], [1462, 1453], [1463, 1462], [1464, 1463], [1465, 1464], [1466, 5], [1467, 1466], [1470, 1453], [1471, 1470], [1472, 1471], [1473, 1472], [1474, 5], [1475, 1474], [1478, 1453], [1479, 1478], [1480, 1479], [1481, 1480], [1482, 5], [1483, 1482], [1490, 1489], [1491, 5], [1492, 1490], [1493, 1491], [1497, 1496], [1498, 1497], [1499, 1498], [1500, 1499], [1501, 1500], [1502, 1501], [1503, 1502], [1504, 1503], [1505, 1504], [1506, 5], [1507, 1506], [1510, 1501], [1511, 1510], [1512, 1511], [1513, 1512], [1514, 5], [1515, 1514], [1518, 1501], [1519, 1518], [1520, 1519], [1521, 1520], [1522, 5], [1523, 1522], [1526, 1501], [1527, 1526], [1528, 1527], [1529, 1528], [1530, 5], [1531, 1530], [1534, 5], [1535, 1534], [1538, 6], [1539, 1538], [1540, 1539], [1541, 1540], [1545, 1540], [1545, 1554], [1548, 1545], [1553, 1552], [1554, 1553], [1555, 91], [1556, 1555], [1557, 104], [1558, 1557], [1560, 1559], [1561, 1543], [1561, 1548], [1561, 1613], [1561, 1592], [1562, 1277], [1562, 1256], [1562, 1609], [1562, 1334], [1562, 1542], [1562, 1315], [1562, 1296], [1562, 1242], [1563, 1586], [1563, 1611], [1563, 1546], [1563, 1558], [1564, 1554], [1564, 1547], [1564, 1612], [1565, 5], [1566, 1561], [1567, 1565], [1569, 1568], [1570, 1569], [1571, 1570], [1572, 1571], [1573, 1572], [1574, 1542], [1575, 1543], [1575, 1592], [1576, 1563], [1576, 1544], [1577, 5], [1578, 1577], [1580, 1586], [1580, 1558], [1581, 1580], [1582, 1560], [1582, 1588], [1583, 1582], [1584, 1592], [1584, 1543], [1585, 366], [1585, 401], [1585, 390], [1585, 384], [1585, 1584], [1585, 396], [1586, 1585], [1587, 390], [1587, 1584], [1587, 396], [1587, 384], [1587, 366], [1587, 401], [1588, 1587], [1589, 1543], [1589, 1592], [1590, 1589], [1593, 1569], [1594, 1593], [1595, 1594], [1596, 1595], [1597, 1586], [1599, 1597], [1599, 1598], [1600, 1599], [1601, 1588], [1602, 1601], [1603, 1600], [1603, 1602], [1605, 1604], [1606, 1603], [1606, 1605], [1607, 1606], [1608, 1607], [1609, 1581], [1609, 1562], [1609, 1574], [1610, 1586], [1610, 1607], [1612, 1609], [1613, 1610], [1615, 1614], [1616, 1615], [1618, 6], [1619, 1618], [1620, 1619], [1621, 1620], [1622, 6], [1623, 1622], [1624, 1623], [1625, 1624], [1626, 1624], [1626, 183], [1627, 583], [1627, 396], [1627, 373], [1627, 506], [1627, 366], [1627, 401], [1627, 656], [1627, 358], [1627, 312], [1627, 390], [1627, 1626], [1627, 624], [1627, 384], [1628, 5], [1630, 1627], [1631, 1628], [1633, 1632], [1634, 6], [1635, 1634], [1636, 1635], [1637, 1636], [1638, 1636], [1638, 183], [1639, 312], [1639, 1627], [1639, 390], [1639, 624], [1639, 1638], [1639, 384], [1639, 583], [1639, 396], [1639, 373], [1639, 506], [1639, 366], [1639, 401], [1639, 656], [1639, 358], [1640, 5], [1642, 1639], [1643, 1640], [1645, 1644], [1646, 6], [1647, 1646], [1648, 1647], [1649, 1648], [1650, 183], [1650, 1648], [1651, 366], [1651, 401], [1651, 656], [1651, 358], [1651, 312], [1651, 1627], [1651, 390], [1651, 1639], [1651, 624], [1651, 384], [1651, 1650], [1651, 583], [1651, 396], [1651, 373], [1651, 506], [1652, 5], [1654, 1651], [1655, 1652], [1657, 1656], [1658, 6], [1659, 1658], [1660, 1659], [1661, 1660], [1662, 183], [1662, 1660], [1663, 384], [1663, 583], [1663, 396], [1663, 373], [1663, 506], [1663, 312], [1663, 390], [1663, 366], [1663, 401], [1663, 656], [1663, 358], [1663, 1627], [1663, 1662], [1663, 1639], [1663, 624], [1663, 1651], [1664, 5], [1666, 1663], [1667, 1664], [1669, 1668], [1670, 6], [1671, 1670], [1672, 1671], [1673, 1672], [1675, 1674], [1677, 1676], [1678, 1677], [1679, 5], [1680, 1675], [1681, 1678], [1682, 1679], [1687, 6], [1688, 1687], [1689, 1688], [1690, 1689], [1691, 5], [1692, 1691], [1698, 1697], [1699, 1698], [1700, 1699], [1701, 1700], [1702, 1701], [1703, 1702], [1704, 1703], [1705, 1704], [1706, 5], [1707, 1706], [1710, 1701], [1711, 1710], [1712, 1711], [1713, 1712], [1714, 5], [1715, 1714], [1718, 1701], [1719, 1718], [1720, 1719], [1721, 1720], [1722, 5], [1723, 1722], [1726, 1701], [1727, 1726], [1728, 1727], [1729, 1728], [1730, 5], [1731, 1730], [1734, 5], [1735, 1734], [1739, 1738], [1740, 1739], [1741, 1740], [1742, 1741], [1743, 1742], [1744, 1743], [1745, 1744], [1746, 1745], [1747, 1746], [1748, 5], [1749, 1748], [1752, 1743], [1753, 1752], [1754, 1753], [1755, 1754], [1756, 5], [1757, 1756], [1760, 1743], [1761, 1760], [1762, 1761], [1763, 1762], [1764, 5], [1765, 1764], [1768, 1743], [1769, 1768], [1770, 1769], [1771, 1770], [1772, 5], [1773, 1772], [1776, 5], [1777, 1776], [1781, 1780], [1782, 1781], [1783, 1782], [1784, 1783], [1785, 1784], [1786, 1785], [1787, 1786], [1788, 1787], [1789, 1788], [1790, 5], [1791, 1790], [1794, 1785], [1795, 1794], [1796, 1795], [1797, 1796], [1798, 5], [1799, 1798], [1802, 1785], [1803, 1802], [1804, 1803], [1805, 1804], [1806, 5], [1807, 1806], [1810, 1785], [1811, 1810], [1812, 1811], [1813, 1812], [1814, 5], [1815, 1814], [1818, 5], [1819, 1818], [1823, 1822], [1824, 1823], [1825, 1824], [1826, 1825], [1827, 1826], [1828, 1827], [1829, 1828], [1830, 1829], [1831, 1830], [1832, 5], [1833, 1832], [1836, 1827], [1837, 1836], [1838, 1837], [1839, 1838], [1840, 5], [1841, 1840], [1844, 1827], [1845, 1844], [1846, 1845], [1847, 1846], [1848, 5], [1849, 1848], [1852, 1827], [1853, 1852], [1854, 1853], [1855, 1854], [1856, 5], [1857, 1856], [1860, 5], [1861, 1860], [1864, 6], [1865, 1864], [1866, 1865], [1867, 1866], [1868, 5], [1869, 1868], [1872, 291], [1872, 402], [1872, 1872], [1873, 253], [1873, 1633], [1873, 543], [1873, 1645], [1873, 1569], [1873, 1657], [1873, 1669], [1873, 1880], [1873, 548], [1874, 1873], [1875, 1874], [1876, 1875], [1877, 1875], [1877, 236], [1878, 1877], [1880, 1879], [1881, 1880], [1882, 1881], [1883, 1882], [1884, 1883], [1885, 1657], [1885, 1669], [1885, 1880], [1885, 548], [1885, 253], [1885, 1633], [1885, 543], [1885, 1645], [1885, 1569], [1886, 1885], [1888, 294], [1888, 405], [1888, 473], [1889, 1888], [1890, 5], [1891, 1890], [1894, 6], [1895, 1894], [1896, 1895], [1897, 1896], [1898, 291], [1898, 1872], [1899, 5], [1900, 1898], [1901, 1899], [1906, 404], [1906, 596], [1906, 293], [1907, 613], [1907, 292], [1907, 403], [1908, 6], [1909, 5], [1910, 1909], [1912, 5], [1913, 1912], [1918, 7], [1919, 366], [1919, 1923], [1919, 401], [1919, 1935], [1919, 390], [1919, 384], [1919, 396], [1919, 1929], [1919, 1918], [1920, 1872], [1920, 291], [1921, 1919], [1921, 1920], [1922, 7], [1923, 1921], [1923, 1922], [1924, 7], [1925, 390], [1925, 1924], [1925, 1923], [1926, 613], [1926, 292], [1926, 403], [1927, 1926], [1927, 1925], [1928, 7], [1929, 1927], [1929, 1928], [1930, 7], [1931, 1930], [1931, 1929], [1931, 396], [1932, 293], [1932, 404], [1932, 596], [1933, 1932], [1933, 1931], [1934, 7], [1935, 1934], [1935, 1933], [1937, 1936], [1938, 1937], [1939, 1938], [1940, 1939], [1942, 1939], [1942, 236], [1943, 1942], [1945, 1633], [1945, 543], [1945, 1645], [1945, 1887], [1945, 1569], [1945, 1657], [1945, 1669], [1945, 1880], [1945, 548], [1945, 253], [1946, 4], [1947, 3], [1948, 2], [1949, 0], [1950, 1945]]}
static gml_value_t gml_eval_statement(gml_state_t *gml, ast_t *expr, gml_env_t *env) { switch (expr->class) { case AST_DECLFUN: return gml_eval_declfun(gml, expr, env); case AST_DECLVAR: return gml_eval_declvar(gml, expr, env); case AST_IF: return gml_eval_if(gml, expr, env); case AST_WHILE: return gml_eval_while(gml, expr, env); case AST_FOR: return gml_eval_for(gml, expr, env); default: return gml_nil_create(gml); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B5B6", "function_addr": 4240822, "binary_name": "74b9bae92bf15d3c07bd6c4f6dcc00bf09379d9e677587f337d4692088d39983.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, [rbp+var_10]"], [7, "mov eax, [rax]"], [8, "sub eax, 0Ch"], [9, "cmp eax, 6"], [10, "ja def_40B5E6"], [11, "mov eax, eax"], [12, "mov rax, ds:jpt_40B5E6[rax*8]"], [13, "jmp rax"], [14, "mov rdx, [rbp+var_18]"], [15, "mov rcx, [rbp+var_10]"], [16, "mov rax, [rbp+var_8]"], [17, "mov rsi, rcx"], [18, "mov rdi, rax"], [19, "call sub_40AD39"], [20, "movq rax, xmm0"], [21, "jmp loc_40B692"], [22, "mov rdx, [rbp+var_18]"], [23, "mov rcx, [rbp+var_10]"], [24, "mov rax, [rbp+var_8]"], [25, "mov rsi, rcx"], [26, "mov rdi, rax"], [27, "call sub_40ADB2"], [28, "movq rax, xmm0"], [29, "jmp short loc_40B692"], [30, "mov rdx, [rbp+var_18]"], [31, "mov rcx, [rbp+var_10]"], [32, "mov rax, [rbp+var_8]"], [33, "mov rsi, rcx"], [34, "mov rdi, rax"], [35, "call sub_40AE43"], [36, "movq rax, xmm0"], [37, "jmp short loc_40B692"], [38, "mov rdx, [rbp+var_18]"], [39, "mov rcx, [rbp+var_10]"], [40, "mov rax, [rbp+var_8]"], [41, "mov rsi, rcx"], [42, "mov rdi, rax"], [43, "call sub_40AF22"], [44, "movq rax, xmm0"], [45, "jmp short loc_40B692"], [46, "mov rdx, [rbp+var_18]"], [47, "mov rcx, [rbp+var_10]"], [48, "mov rax, [rbp+var_8]"], [49, "mov rsi, rcx"], [50, "mov rdi, rax"], [51, "call sub_40B3F2"], [52, "movq rax, xmm0"], [53, "jmp short loc_40B692"], [54, "mov rax, [rbp+var_8]"], [55, "mov rdi, rax"], [56, "call sub_408C79"], [57, "movq rax, xmm0"], [58, "movq xmm0, rax"], [59, "leave"], [60, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [9, 8], [10, 9], [11, 8], [13, 12], [14, 5], [15, 4], [16, 3], [17, 15], [18, 16], [22, 5], [23, 4], [24, 3], [25, 23], [26, 24], [30, 5], [31, 4], [32, 3], [33, 31], [34, 32], [38, 5], [39, 4], [40, 3], [41, 39], [42, 40], [46, 5], [47, 4], [48, 3], [49, 47], [50, 48], [54, 3], [55, 54], [58, 28], [58, 52], [58, 36], [58, 57], [58, 20], [58, 44], [60, 28], [60, 52], [60, 36], [60, 57], [60, 20], [60, 44]]}
int curl_to_cacheserver_addGeo(const char *sessionid, const char *longitude, const char *latitude) { /* ====给服务端的协议==== https://ip:port/cache [json_data] { cmd: "addGeo", key: "ONLINE_DRIVER_GEO_ZSET", member: "online-driver-xxxxx-xxx-xxx-xxx-xxxx", longitude: "98.123123123", latitude: "39.123123123" } ====得到服务器响应数据==== //成功 { result: "ok", recode: "0" } //失败 { result: "error", recode: "2", //1 代表此key不存在 //2 操作失败 reason: "why...." } */ int ret = 0; cJSON* request_json = cJSON_CreateObject(); cJSON_AddStringToObject(request_json, "cmd", "addGeo"); cJSON_AddStringToObject(request_json, "key", KEY_ONLINE_DRIVERS_GEO_ZSET); cJSON_AddStringToObject(request_json, "member", sessionid); cJSON_AddStringToObject(request_json, "longitude", longitude); cJSON_AddStringToObject(request_json, "latitude", latitude); char * request_json_str = cJSON_Print(request_json); curl_response_data_t res_data; memset(&res_data, 0, sizeof(res_data)); if (curl_send(URI_DATA_SERVER_CHE, request_json_str, &res_data, 1) != 0) { ret = -1; goto END; } cJSON_Delete(request_json); free(request_json_str); cJSON *res_root = cJSON_Parse(res_data.data); cJSON *result = cJSON_GetObjectItem(res_root, "result"); if (result && (strcmp(result->valuestring, "ok") == 0)) { //succ LOG(LOG_MODULE, LOG_PROC_REMOTE_CURL, "add Geo succ\n"); } else { //fail cJSON *reason = cJSON_GetObjectItem(res_root, "reason"); if (reason) { LOG(LOG_MODULE, LOG_PROC_REMOTE_CURL, "add Geo error, reason = %s\n", reason->valuestring); } else { LOG(LOG_MODULE, LOG_PROC_REMOTE_CURL, "add Geo error, unknow reason, res_data=%s\n", res_data.data); } ret = -1; } cJSON_Delete(res_root); END: return ret; return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40A0F0", "function_addr": 4235504, "binary_name": "f045fa32fdb3b7128d72d0c3f2aa2fd3208b081eb226f5754b7c891eaa5718b2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 1060h"], [3, "mov [rbp+var_1048], rdi"], [4, "mov [rbp+var_1050], rsi"], [5, "mov [rbp+var_1058], rdx"], [6, "mov [rbp+var_4], 0"], [7, "call sub_405FB4"], [8, "mov [rbp+var_10], rax"], [9, "mov edi, offset aAddgeo"], [10, "call sub_405F4A"], [11, "mov rdx, rax"], [12, "mov rax, [rbp+var_10]"], [13, "mov esi, offset aCmd"], [14, "mov rdi, rax"], [15, "call sub_40595C"], [16, "mov edi, offset aOnlineDriverGe"], [17, "call sub_405F4A"], [18, "mov rdx, rax"], [19, "mov rax, [rbp+var_10]"], [20, "mov esi, offset aKey"], [21, "mov rdi, rax"], [22, "call sub_40595C"], [23, "mov rax, [rbp+var_1048]"], [24, "mov rdi, rax"], [25, "call sub_405F4A"], [26, "mov rdx, rax"], [27, "mov rax, [rbp+var_10]"], [28, "mov esi, offset aMember"], [29, "mov rdi, rax"], [30, "call sub_40595C"], [31, "mov rax, [rbp+var_1050]"], [32, "mov rdi, rax"], [33, "call sub_405F4A"], [34, "mov rdx, rax"], [35, "mov rax, [rbp+var_10]"], [36, "mov esi, offset aLongitude"], [37, "mov rdi, rax"], [38, "call sub_40595C"], [39, "mov rax, [rbp+var_1058]"], [40, "mov rdi, rax"], [41, "call sub_405F4A"], [42, "mov rdx, rax"], [43, "mov rax, [rbp+var_10]"], [44, "mov esi, offset aLatitude"], [45, "mov rdi, rax"], [46, "call sub_40595C"], [47, "mov rax, [rbp+var_10]"], [48, "mov rdi, rax"], [49, "call sub_40410A"], [50, "mov [rbp+ptr], rax"], [51, "lea rax, [rbp+s]"], [52, "mov edx, 1004h"], [53, "mov esi, 0"], [54, "mov rdi, rax"], [55, "call _memset"], [56, "lea rdx, [rbp+s]"], [57, "mov rax, [rbp+ptr]"], [58, "mov ecx, 1"], [59, "mov rsi, rax"], [60, "mov edi, offset aHttps101200190_0"], [61, "call sub_407B0C"], [62, "test eax, eax"], [63, "jz short loc_40A21B"], [64, "mov [rbp+var_4], 0FFFFFFFFh"], [65, "jmp loc_40A350"], [66, "mov rax, [rbp+var_10]"], [67, "mov rdi, rax"], [68, "call sub_402EE7"], [69, "mov rax, [rbp+ptr]"], [70, "mov rdi, rax"], [71, "call _free"], [72, "lea rax, [rbp+s]"], [73, "mov rdi, rax"], [74, "call sub_4040E6"], [75, "mov [rbp+var_20], rax"], [76, "mov rax, [rbp+var_20]"], [77, "mov esi, offset aResult_0"], [78, "mov rdi, rax"], [79, "call sub_4057FC"], [80, "mov [rbp+var_28], rax"], [81, "cmp [rbp+var_28], 0"], [82, "jz short loc_40A2AA"], [83, "mov rax, [rbp+var_28]"], [84, "mov rax, [rax+20h]"], [85, "mov esi, offset aOk_2"], [86, "mov rdi, rax"], [87, "call _strcmp"], [88, "test eax, eax"], [89, "jnz short loc_40A2AA"], [90, "mov r9d, offset aAddGeoSucc"], [91, "mov r8d, offset aCurlToCacheser_7"], [92, "mov ecx, 45Ah"], [93, "mov edx, offset aRemoteStoreC"], [94, "mov esi, offset aRemoteCurl"], [95, "mov edi, offset aOboBusi_1"], [96, "mov eax, 0"], [97, "call sub_40DF1D"], [98, "jmp loc_40A344"], [99, "mov rax, [rbp+var_20]"], [100, "mov esi, offset aReason_0"], [101, "mov rdi, rax"], [102, "call sub_4057FC"], [103, "mov [rbp+var_30], rax"], [104, "cmp [rbp+var_30], 0"], [105, "jz short loc_40A303"], [106, "mov rax, [rbp+var_30]"], [107, "mov rax, [rax+20h]"], [108, "sub rsp, 8"], [109, "push rax"], [110, "mov r9d, offset aAddGeoErrorRea"], [111, "mov r8d, offset aCurlToCacheser_7"], [112, "mov ecx, 460h"], [113, "mov edx, offset aRemoteStoreC"], [114, "mov esi, offset aRemoteCurl"], [115, "mov edi, offset aOboBusi_1"], [116, "mov eax, 0"], [117, "call sub_40DF1D"], [118, "add rsp, 10h"], [119, "jmp short loc_40A33D"], [120, "sub rsp, 8"], [121, "lea rax, [rbp+s]"], [122, "push rax"], [123, "mov r9d, offset aAddGeoErrorUnk"], [124, "mov r8d, offset aCurlToCacheser_7"], [125, "mov ecx, 463h"], [126, "mov edx, offset aRemoteStoreC"], [127, "mov esi, offset aRemoteCurl"], [128, "mov edi, offset aOboBusi_1"], [129, "mov eax, 0"], [130, "call sub_40DF1D"], [131, "add rsp, 10h"], [132, "mov [rbp+var_4], 0FFFFFFFFh"], [133, "mov rax, [rbp+var_20]"], [134, "mov rdi, rax"], [135, "call sub_402EE7"], [136, "mov eax, [rbp+var_4]"], [137, "leave"], [138, "retn"]], "data_dep": [[8, 7], [11, 10], [12, 8], [14, 12], [18, 17], [19, 8], [21, 19], [23, 3], [24, 23], [26, 25], [27, 8], [29, 27], [31, 4], [32, 31], [34, 33], [35, 8], [37, 35], [39, 5], [40, 39], [42, 41], [43, 8], [45, 43], [47, 8], [48, 47], [50, 49], [51, 49], [54, 51], [56, 52], [57, 50], [59, 57], [62, 61], [63, 62], [66, 8], [67, 66], [69, 50], [70, 69], [72, 71], [73, 72], [75, 74], [76, 75], [78, 76], [80, 79], [81, 80], [82, 81], [83, 80], [84, 83], [86, 84], [88, 87], [89, 88], [99, 75], [101, 99], [103, 102], [104, 103], [105, 104], [106, 103], [107, 106], [108, 2], [109, 107], [118, 108], [120, 2], [121, 102], [122, 121], [131, 120], [133, 75], [134, 133], [136, 132], [136, 64], [136, 6], [138, 136]]}
static int ecp_randomize_mxz( const mbedtls_ecp_group *grp, mbedtls_ecp_point *P, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) { int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; mbedtls_mpi l; size_t p_size; int count = 0; #if defined(MBEDTLS_ECP_RANDOMIZE_MXZ_ALT) if( mbedtls_internal_ecp_grp_capable( grp ) ) return( mbedtls_internal_ecp_randomize_mxz( grp, P, f_rng, p_rng ); #endif /* MBEDTLS_ECP_RANDOMIZE_MXZ_ALT */ p_size = ( grp->pbits + 7 ) / 8; mbedtls_mpi_init( &l ); /* Generate l such that 1 < l < p */ do { MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &l, p_size, f_rng, p_rng ) ); while( mbedtls_mpi_cmp_mpi( &l, &grp->P ) >= 0 ) MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( &l, 1 ) ); if( count++ > 10 ) return( MBEDTLS_ERR_ECP_RANDOM_FAILED ); } while( mbedtls_mpi_cmp_int( &l, 1 ) <= 0 ); MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &P->X, &P->X, &l ) ); MBEDTLS_MPI_CHK( mbedtls_mpi_mul_mod( grp, &P->Z, &P->Z, &l ) ); cleanup: mbedtls_mpi_free( &l ); return( ret ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40EDC4", "function_addr": 4255172, "binary_name": "5ee93d36985e936bbd6f8188afebd6a24e0643eb24f160595f27ac160461f335.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_40], rsi"], [5, "mov [rbp+var_48], rdx"], [6, "mov [rbp+var_50], rcx"], [7, "mov [rbp+var_4], 0FFFFFF92h"], [8, "mov [rbp+var_8], 0"], [9, "mov rax, [rbp+var_38]"], [10, "mov rax, [rax+0B0h]"], [11, "add rax, 7"], [12, "shr rax, 3"], [13, "mov [rbp+var_10], rax"], [14, "lea rax, [rbp+var_30]"], [15, "mov rdi, rax"], [16, "call sub_404D7A"], [17, "mov rcx, [rbp+var_50]"], [18, "mov rdx, [rbp+var_48]"], [19, "mov rsi, [rbp+var_10]"], [20, "lea rax, [rbp+var_30]"], [21, "mov rdi, rax"], [22, "call sub_4098AF"], [23, "mov [rbp+var_4], eax"], [24, "cmp [rbp+var_4], 0"], [25, "jnz loc_40EEEB"], [26, "jmp short loc_40EE52"], [27, "lea rax, [rbp+var_30]"], [28, "mov esi, 1"], [29, "mov rdi, rax"], [30, "call sub_40696E"], [31, "mov [rbp+var_4], eax"], [32, "cmp [rbp+var_4], 0"], [33, "jnz loc_40EEEE"], [34, "mov rax, [rbp+var_38]"], [35, "lea rdx, [rax+8]"], [36, "lea rax, [rbp+var_30]"], [37, "mov rsi, rdx"], [38, "mov rdi, rax"], [39, "call sub_406CA7"], [40, "test eax, eax"], [41, "jns short loc_40EE34"], [42, "mov eax, [rbp+var_8]"], [43, "lea edx, [rax+1]"], [44, "mov [rbp+var_8], edx"], [45, "cmp eax, 0Ah"], [46, "jle short loc_40EE82"], [47, "mov eax, 0FFFFB300h"], [48, "jmp short locret_40EF01"], [49, "lea rax, [rbp+var_30]"], [50, "mov esi, 1"], [51, "mov rdi, rax"], [52, "call sub_406FFB"], [53, "test eax, eax"], [54, "jle loc_40EE0D"], [55, "mov rdx, [rbp+var_40]"], [56, "mov rsi, [rbp+var_40]"], [57, "lea rcx, [rbp+var_30]"], [58, "mov rax, [rbp+var_38]"], [59, "mov rdi, rax"], [60, "call sub_40C913"], [61, "mov [rbp+var_4], eax"], [62, "cmp [rbp+var_4], 0"], [63, "jnz short loc_40EEF1"], [64, "mov rax, [rbp+var_40]"], [65, "lea rdi, [rax+30h]"], [66, "mov rax, [rbp+var_40]"], [67, "lea rsi, [rax+30h]"], [68, "lea rdx, [rbp+var_30]"], [69, "mov rax, [rbp+var_38]"], [70, "mov rcx, rdx"], [71, "mov rdx, rdi"], [72, "mov rdi, rax"], [73, "call sub_40C913"], [74, "mov [rbp+var_4], eax"], [75, "cmp [rbp+var_4], 0"], [76, "jmp short loc_40EEF2"], [77, "nop"], [78, "jmp short loc_40EEF2"], [79, "nop"], [80, "jmp short loc_40EEF2"], [81, "nop"], [82, "lea rax, [rbp+var_30]"], [83, "mov rdi, rax"], [84, "call sub_404DA7"], [85, "mov eax, [rbp+var_4]"], [86, "leave"], [87, "retn"]], "data_dep": [[9, 3], [10, 9], [11, 10], [12, 11], [13, 12], [14, 12], [15, 14], [17, 6], [18, 5], [19, 13], [20, 53], [20, 16], [21, 20], [23, 22], [24, 23], [25, 24], [27, 40], [29, 27], [31, 30], [32, 31], [33, 32], [34, 3], [35, 35], [35, 34], [35, 18], [36, 34], [37, 35], [38, 36], [40, 39], [41, 40], [42, 8], [42, 44], [43, 42], [43, 35], [44, 43], [45, 42], [46, 45], [49, 42], [51, 49], [53, 52], [54, 53], [55, 4], [56, 4], [57, 17], [58, 3], [59, 58], [61, 60], [62, 61], [63, 62], [64, 4], [65, 64], [65, 59], [66, 4], [67, 66], [67, 56], [68, 55], [69, 3], [70, 68], [71, 65], [72, 69], [74, 73], [75, 74], [82, 22], [82, 73], [82, 30], [82, 60], [83, 82], [85, 61], [85, 23], [85, 31], [85, 74], [87, 85], [87, 47]]}
static void intel_get_token () { char *end_op; const reg_entry *reg; struct intel_token new_token; new_token.code = T_NIL; new_token.reg = NULL; new_token.str = NULL; /* Free the memory allocated to the previous token and move cur_token to prev_token. */ if (prev_token.str) free (prev_token.str); prev_token = cur_token; /* Skip whitespace. */ while (is_space_char (*intel_parser.op_string)) intel_parser.op_string++; /* Return an empty token if we find nothing else on the line. */ if (*intel_parser.op_string == '\0') { cur_token = new_token; return; } /* The new token cannot be larger than the remainder of the operand string. */ new_token.str = (char *) malloc (strlen (intel_parser.op_string) + 1); if (new_token.str == NULL) abort (); new_token.str[0] = '\0'; if (strchr ("0123456789", *intel_parser.op_string)) { char *p = new_token.str; char *q = intel_parser.op_string; new_token.code = T_CONST; /* Allow any kind of identifier char to encompass floating point and hexadecimal numbers. */ while (is_identifier_char (*q)) *p++ = *q++; *p = '\0'; /* Recognize special symbol names [0-9][bf]. */ if (strlen (intel_parser.op_string) == 2 && (intel_parser.op_string[1] == 'b' || intel_parser.op_string[1] == 'f')) new_token.code = T_ID; } else if ((*intel_parser.op_string == REGISTER_PREFIX || allow_naked_reg) && ((reg = parse_register (intel_parser.op_string, &end_op)) != NULL)) { new_token.code = T_REG; new_token.reg = reg; if (*intel_parser.op_string == REGISTER_PREFIX) { new_token.str[0] = REGISTER_PREFIX; new_token.str[1] = '\0'; } strcat (new_token.str, reg->reg_name); } else if (is_identifier_char (*intel_parser.op_string)) { char *p = new_token.str; char *q = intel_parser.op_string; /* A '.' or '$' followed by an identifier char is an identifier. Otherwise, it's operator '.' followed by an expression. */ if ((*q == '.' || *q == '$') && !is_identifier_char (*(q + 1))) { new_token.code = '.'; new_token.str[0] = '.'; new_token.str[1] = '\0'; } else { while (is_identifier_char (*q) || *q == '@') *p++ = *q++; *p = '\0'; if (strcasecmp (new_token.str, "NOT") == 0) new_token.code = '~'; else if (strcasecmp (new_token.str, "MOD") == 0) new_token.code = '%'; else if (strcasecmp (new_token.str, "AND") == 0) new_token.code = '&'; else if (strcasecmp (new_token.str, "OR") == 0) new_token.code = '|'; else if (strcasecmp (new_token.str, "XOR") == 0) new_token.code = '^'; else if (strcasecmp (new_token.str, "SHL") == 0) new_token.code = T_SHL; else if (strcasecmp (new_token.str, "SHR") == 0) new_token.code = T_SHR; else if (strcasecmp (new_token.str, "BYTE") == 0) new_token.code = T_BYTE; else if (strcasecmp (new_token.str, "WORD") == 0) new_token.code = T_WORD; else if (strcasecmp (new_token.str, "DWORD") == 0) new_token.code = T_DWORD; else if (strcasecmp (new_token.str, "FWORD") == 0) new_token.code = T_FWORD; else if (strcasecmp (new_token.str, "QWORD") == 0) new_token.code = T_QWORD; else if (strcasecmp (new_token.str, "TBYTE") == 0 /* XXX remove (gcc still uses it) */ || strcasecmp (new_token.str, "XWORD") == 0) new_token.code = T_TBYTE; else if (strcasecmp (new_token.str, "XMMWORD") == 0 || strcasecmp (new_token.str, "OWORD") == 0) new_token.code = T_XMMWORD; else if (strcasecmp (new_token.str, "PTR") == 0) new_token.code = T_PTR; else if (strcasecmp (new_token.str, "SHORT") == 0) new_token.code = T_SHORT; else if (strcasecmp (new_token.str, "OFFSET") == 0) { new_token.code = T_OFFSET; /* ??? This is not mentioned in the MASM grammar but gcc makes use of it with -mintel-syntax. OFFSET may be followed by FLAT: */ if (strncasecmp (q, " FLAT:", 6) == 0) strcat (new_token.str, " FLAT:"); } /* ??? This is not mentioned in the MASM grammar. */ else if (strcasecmp (new_token.str, "FLAT") == 0) new_token.code = T_OFFSET; else new_token.code = T_ID; } } else if (strchr ("+-/*%|&^:[]()~", *intel_parser.op_string)) { new_token.code = *intel_parser.op_string; new_token.str[0] = *intel_parser.op_string; new_token.str[1] = '\0'; } else if (strchr ("<>", *intel_parser.op_string) && *intel_parser.op_string == *(intel_parser.op_string + 1)) { new_token.code = *intel_parser.op_string == '<' ? T_SHL : T_SHR; new_token.str[0] = *intel_parser.op_string; new_token.str[1] = *intel_parser.op_string; new_token.str[2] = '\0'; } else as_bad (_("Unrecognized token `%s'"), intel_parser.op_string); intel_parser.op_string += strlen (new_token.str); cur_token = new_token; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42251A", "function_addr": 4334874, "binary_name": "53a05aad0cf55e21d871bf84231d41994b161191fed8e17cf3096e52dd9ca4c2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 58h"], [4, "mov dword ptr [rbp+var_60], 0FFFFFFFFh"], [5, "mov [rbp+var_58], 0"], [6, "mov [rbp+dest], 0"], [7, "mov rax, cs:qword_455760"], [8, "test rax, rax"], [9, "jz short loc_422555"], [10, "mov rax, cs:qword_455760"], [11, "mov rdi, rax"], [12, "call _free"], [13, "mov rax, cs:qword_455730"], [14, "mov rdx, cs:qword_455738"], [15, "mov cs:qword_455750, rax"], [16, "mov cs:qword_455758, rdx"], [17, "mov rax, cs:qword_455740"], [18, "mov cs:qword_455760, rax"], [19, "jmp short loc_422593"], [20, "mov rax, cs:dest"], [21, "add rax, 1"], [22, "mov cs:dest, rax"], [23, "mov rax, cs:dest"], [24, "movzx eax, byte ptr [rax]"], [25, "cmp al, 20h "], [26, "jz short loc_422581"], [27, "mov rax, cs:dest"], [28, "movzx eax, byte ptr [rax]"], [29, "test al, al"], [30, "jnz short loc_4225D5"], [31, "mov rax, [rbp+var_60]"], [32, "mov rdx, [rbp+var_58]"], [33, "mov cs:qword_455730, rax"], [34, "mov cs:qword_455738, rdx"], [35, "mov rax, [rbp+dest]"], [36, "mov cs:qword_455740, rax"], [37, "jmp loc_422C0A"], [38, "mov rax, cs:dest"], [39, "mov rdi, rax"], [40, "call _strlen"], [41, "add rax, 1"], [42, "mov rdi, rax"], [43, "call _malloc"], [44, "mov [rbp+dest], rax"], [45, "mov rax, [rbp+dest]"], [46, "test rax, rax"], [47, "jnz short loc_422602"], [48, "call _abort"], [49, "mov rax, [rbp+dest]"], [50, "mov byte ptr [rax], 0"], [51, "mov rax, cs:dest"], [52, "movzx eax, byte ptr [rax]"], [53, "movsx eax, al"], [54, "mov esi, eax"], [55, "mov edi, offset a0123456789_0"], [56, "call _strchr"], [57, "test rax, rax"], [58, "jz loc_4226CF"], [59, "mov rax, [rbp+dest]"], [60, "mov [rbp+var_18], rax"], [61, "mov rax, cs:dest"], [62, "mov [rbp+var_20], rax"], [63, "mov dword ptr [rbp+var_60], 1"], [64, "jmp short loc_422664"], [65, "mov rdx, [rbp+var_20]"], [66, "lea rax, [rdx+1]"], [67, "mov [rbp+var_20], rax"], [68, "mov rax, [rbp+var_18]"], [69, "lea rcx, [rax+1]"], [70, "mov [rbp+var_18], rcx"], [71, "movzx edx, byte ptr [rdx]"], [72, "mov [rax], dl"], [73, "mov rax, [rbp+var_20]"], [74, "movzx eax, byte ptr [rax]"], [75, "movzx eax, al"], [76, "cdqe"], [77, "movzx eax, ds:byte_455300[rax]"], [78, "test al, al"], [79, "jnz short loc_422647"], [80, "mov rax, [rbp+var_18]"], [81, "mov byte ptr [rax], 0"], [82, "mov rax, cs:dest"], [83, "mov rdi, rax"], [84, "call _strlen"], [85, "cmp rax, 2"], [86, "jnz loc_422BCC"], [87, "mov rax, cs:dest"], [88, "add rax, 1"], [89, "movzx eax, byte ptr [rax]"], [90, "cmp al, 62h "], [91, "jz short loc_4226C3"], [92, "mov rax, cs:dest"], [93, "add rax, 1"], [94, "movzx eax, byte ptr [rax]"], [95, "cmp al, 66h "], [96, "jnz loc_422BCC"], [97, "mov dword ptr [rbp+var_60], 0Dh"], [98, "jmp loc_422BCC"], [99, "mov rax, cs:dest"], [100, "movzx eax, byte ptr [rax]"], [101, "cmp al, 25h "], [102, "jz short loc_4226E7"], [103, "mov eax, cs:dword_4556B0"], [104, "test eax, eax"], [105, "jz short loc_422752"], [106, "mov rax, cs:dest"], [107, "lea rdx, [rbp+var_40]"], [108, "mov rsi, rdx"], [109, "mov rdi, rax"], [110, "call sub_420C0C"], [111, "mov [rbp+var_38], rax"], [112, "cmp [rbp+var_38], 0"], [113, "jz short loc_422752"], [114, "mov dword ptr [rbp+var_60], 2"], [115, "mov rax, [rbp+var_38]"], [116, "mov [rbp+var_58], rax"], [117, "mov rax, cs:dest"], [118, "movzx eax, byte ptr [rax]"], [119, "cmp al, 25h "], [120, "jnz short loc_422737"], [121, "mov rax, [rbp+dest]"], [122, "mov byte ptr [rax], 25h "], [123, "mov rax, [rbp+dest]"], [124, "add rax, 1"], [125, "mov byte ptr [rax], 0"], [126, "mov rax, [rbp+var_38]"], [127, "mov rdx, [rax]"], [128, "mov rax, [rbp+dest]"], [129, "mov rsi, rdx"], [130, "mov rdi, rax"], [131, "call _strcat"], [132, "jmp loc_422BCC"], [133, "mov rax, cs:dest"], [134, "movzx eax, byte ptr [rax]"], [135, "movzx eax, al"], [136, "cdqe"], [137, "movzx eax, ds:byte_455300[rax]"], [138, "test al, al"], [139, "jz loc_422ADD"], [140, "mov rax, [rbp+dest]"], [141, "mov [rbp+var_28], rax"], [142, "mov rax, cs:dest"], [143, "mov [rbp+s1], rax"], [144, "mov rax, [rbp+s1]"], [145, "movzx eax, byte ptr [rax]"], [146, "cmp al, 2Eh "], [147, "jz short loc_422799"], [148, "mov rax, [rbp+s1]"], [149, "movzx eax, byte ptr [rax]"], [150, "cmp al, 24h "], [151, "jnz short loc_4227EF"], [152, "mov rax, [rbp+s1]"], [153, "add rax, 1"], [154, "movzx eax, byte ptr [rax]"], [155, "movzx eax, al"], [156, "cdqe"], [157, "movzx eax, ds:byte_455300[rax]"], [158, "test al, al"], [159, "jnz short loc_4227EF"], [160, "mov dword ptr [rbp+var_60], 2Eh "], [161, "mov rax, [rbp+dest]"], [162, "mov byte ptr [rax], 2Eh "], [163, "mov rax, [rbp+dest]"], [164, "add rax, 1"], [165, "mov byte ptr [rax], 0"], [166, "jmp loc_422BCC"], [167, "mov rdx, [rbp+s1]"], [168, "lea rax, [rdx+1]"], [169, "mov [rbp+s1], rax"], [170, "mov rax, [rbp+var_28]"], [171, "lea rcx, [rax+1]"], [172, "mov [rbp+var_28], rcx"], [173, "movzx edx, byte ptr [rdx]"], [174, "mov [rax], dl"], [175, "mov rax, [rbp+s1]"], [176, "movzx eax, byte ptr [rax]"], [177, "movzx eax, al"], [178, "cdqe"], [179, "movzx eax, ds:byte_455300[rax]"], [180, "test al, al"], [181, "jnz short loc_4227D2"], [182, "mov rax, [rbp+s1]"], [183, "movzx eax, byte ptr [rax]"], [184, "cmp al, 40h "], [185, "jz short loc_4227D2"], [186, "mov rax, [rbp+var_28]"], [187, "mov byte ptr [rax], 0"], [188, "mov rax, [rbp+dest]"], [189, "mov esi, offset aNot"], [190, "mov rdi, rax"], [191, "call _strcasecmp"], [192, "test eax, eax"], [193, "jnz short loc_422839"], [194, "mov dword ptr [rbp+var_60], 7Eh "], [195, "jmp loc_422BCC"], [196, "mov rax, [rbp+dest]"], [197, "mov esi, offset off_44B3DD"], [198, "mov rdi, rax"], [199, "call _strcasecmp"], [200, "test eax, eax"], [201, "jnz short loc_42285A"], [202, "mov dword ptr [rbp+var_60], 25h "], [203, "jmp loc_422BCC"], [204, "mov rax, [rbp+dest]"], [205, "mov esi, offset off_44B3E1"], [206, "mov rdi, rax"], [207, "call _strcasecmp"], [208, "test eax, eax"], [209, "jnz short loc_42287B"], [210, "mov dword ptr [rbp+var_60], 26h "], [211, "jmp loc_422BCC"], [212, "mov rax, [rbp+dest]"], [213, "mov esi, offset aOr"], [214, "mov rdi, rax"], [215, "call _strcasecmp"], [216, "test eax, eax"], [217, "jnz short loc_42289C"], [218, "mov dword ptr [rbp+var_60], 7Ch "], [219, "jmp loc_422BCC"], [220, "mov rax, [rbp+dest]"], [221, "mov esi, offset aXor"], [222, "mov rdi, rax"], [223, "call _strcasecmp"], [224, "test eax, eax"], [225, "jnz short loc_4228BD"], [226, "mov dword ptr [rbp+var_60], 5Eh "], [227, "jmp loc_422BCC"], [228, "mov rax, [rbp+dest]"], [229, "mov esi, offset aShl"], [230, "mov rdi, rax"], [231, "call _strcasecmp"], [232, "test eax, eax"], [233, "jnz short loc_4228DE"], [234, "mov dword ptr [rbp+var_60], 0Eh"], [235, "jmp loc_422BCC"], [236, "mov rax, [rbp+dest]"], [237, "mov esi, offset aShr"], [238, "mov rdi, rax"], [239, "call _strcasecmp"], [240, "test eax, eax"], [241, "jnz short loc_4228FF"], [242, "mov dword ptr [rbp+var_60], 0Fh"], [243, "jmp loc_422BCC"], [244, "mov rax, [rbp+dest]"], [245, "mov esi, offset aByte"], [246, "mov rdi, rax"], [247, "call _strcasecmp"], [248, "test eax, eax"], [249, "jnz short loc_422920"], [250, "mov dword ptr [rbp+var_60], 3"], [251, "jmp loc_422BCC"], [252, "mov rax, [rbp+dest]"], [253, "mov esi, offset aWord"], [254, "mov rdi, rax"], [255, "call _strcasecmp"], [256, "test eax, eax"], [257, "jnz short loc_422941"], [258, "mov dword ptr [rbp+var_60], 4"], [259, "jmp loc_422BCC"], [260, "mov rax, [rbp+dest]"], [261, "mov esi, offset aDword"], [262, "mov rdi, rax"], [263, "call _strcasecmp"], [264, "test eax, eax"], [265, "jnz short loc_422962"], [266, "mov dword ptr [rbp+var_60], 5"], [267, "jmp loc_422BCC"], [268, "mov rax, [rbp+dest]"], [269, "mov esi, offset aFword"], [270, "mov rdi, rax"], [271, "call _strcasecmp"], [272, "test eax, eax"], [273, "jnz short loc_422983"], [274, "mov dword ptr [rbp+var_60], 6"], [275, "jmp loc_422BCC"], [276, "mov rax, [rbp+dest]"], [277, "mov esi, offset aQword"], [278, "mov rdi, rax"], [279, "call _strcasecmp"], [280, "test eax, eax"], [281, "jnz short loc_4229A4"], [282, "mov dword ptr [rbp+var_60], 7"], [283, "jmp loc_422BCC"], [284, "mov rax, [rbp+dest]"], [285, "mov esi, offset aTbyte"], [286, "mov rdi, rax"], [287, "call _strcasecmp"], [288, "test eax, eax"], [289, "jz short loc_4229CE"], [290, "mov rax, [rbp+dest]"], [291, "mov esi, offset aXword"], [292, "mov rdi, rax"], [293, "call _strcasecmp"], [294, "test eax, eax"], [295, "jnz short loc_4229DA"], [296, "mov dword ptr [rbp+var_60], 8"], [297, "jmp loc_422BCC"], [298, "mov rax, [rbp+dest]"], [299, "mov esi, offset aXmmword"], [300, "mov rdi, rax"], [301, "call _strcasecmp"], [302, "test eax, eax"], [303, "jz short loc_422A04"], [304, "mov rax, [rbp+dest]"], [305, "mov esi, offset aOword"], [306, "mov rdi, rax"], [307, "call _strcasecmp"], [308, "test eax, eax"], [309, "jnz short loc_422A10"], [310, "mov dword ptr [rbp+var_60], 9"], [311, "jmp loc_422BCC"], [312, "mov rax, [rbp+dest]"], [313, "mov esi, offset aPtr"], [314, "mov rdi, rax"], [315, "call _strcasecmp"], [316, "test eax, eax"], [317, "jnz short loc_422A31"], [318, "mov dword ptr [rbp+var_60], 0Ch"], [319, "jmp loc_422BCC"], [320, "mov rax, [rbp+dest]"], [321, "mov esi, offset aShort"], [322, "mov rdi, rax"], [323, "call _strcasecmp"], [324, "test eax, eax"], [325, "jnz short loc_422A52"], [326, "mov dword ptr [rbp+var_60], 0Ah"], [327, "jmp loc_422BCC"], [328, "mov rax, [rbp+dest]"], [329, "mov esi, offset aOffset"], [330, "mov rdi, rax"], [331, "call _strcasecmp"], [332, "test eax, eax"], [333, "jnz short loc_422AB0"], [334, "mov dword ptr [rbp+var_60], 0Bh"], [335, "mov rax, [rbp+s1]"], [336, "mov edx, 6"], [337, "mov esi, offset aFlat"], [338, "mov rdi, rax"], [339, "call _strncasecmp"], [340, "test eax, eax"], [341, "jnz loc_422BCC"], [342, "mov rbx, [rbp+dest]"], [343, "mov rdi, rbx"], [344, "call _strlen"], [345, "add rax, rbx"], [346, "mov dword ptr [rax], 414C4620h"], [347, "mov word ptr [rax+4], 3A54h"], [348, "mov byte ptr [rax+6], 0"], [349, "jmp loc_422BCC"], [350, "mov rax, [rbp+dest]"], [351, "mov esi, offset aFlat_0"], [352, "mov rdi, rax"], [353, "call _strcasecmp"], [354, "test eax, eax"], [355, "jnz short loc_422AD1"], [356, "mov dword ptr [rbp+var_60], 0Bh"], [357, "jmp loc_422BCC"], [358, "mov dword ptr [rbp+var_60], 0Dh"], [359, "jmp loc_422BCC"], [360, "mov rax, cs:dest"], [361, "movzx eax, byte ptr [rax]"], [362, "movsx eax, al"], [363, "mov esi, eax"], [364, "mov edi, offset asc_44B447"], [365, "call _strchr"], [366, "test rax, rax"], [367, "jz short loc_422B2B"], [368, "mov rax, cs:dest"], [369, "movzx eax, byte ptr [rax]"], [370, "movsx eax, al"], [371, "mov dword ptr [rbp+var_60], eax"], [372, "mov rdx, cs:dest"], [373, "mov rax, [rbp+dest]"], [374, "movzx edx, byte ptr [rdx]"], [375, "mov [rax], dl"], [376, "mov rax, [rbp+dest]"], [377, "add rax, 1"], [378, "mov byte ptr [rax], 0"], [379, "jmp loc_422BCC"], [380, "mov rax, cs:dest"], [381, "movzx eax, byte ptr [rax]"], [382, "movsx eax, al"], [383, "mov esi, eax"], [384, "mov edi, offset asc_44B456"], [385, "call _strchr"], [386, "test rax, rax"], [387, "jz short loc_422BB3"], [388, "mov rax, cs:dest"], [389, "movzx edx, byte ptr [rax]"], [390, "mov rax, cs:dest"], [391, "add rax, 1"], [392, "movzx eax, byte ptr [rax]"], [393, "cmp dl, al"], [394, "jnz short loc_422BB3"], [395, "mov rax, cs:dest"], [396, "movzx eax, byte ptr [rax]"], [397, "cmp al, 3Ch "], [398, "jnz short loc_422B7A"], [399, "mov eax, 0Eh"], [400, "jmp short loc_422B7F"], [401, "mov eax, 0Fh"], [402, "mov dword ptr [rbp+var_60], eax"], [403, "mov rdx, cs:dest"], [404, "mov rax, [rbp+dest]"], [405, "movzx edx, byte ptr [rdx]"], [406, "mov [rax], dl"], [407, "mov rax, cs:dest"], [408, "mov rdx, [rbp+dest]"], [409, "add rdx, 1"], [410, "movzx eax, byte ptr [rax]"], [411, "mov [rdx], al"], [412, "mov rax, [rbp+dest]"], [413, "add rax, 2"], [414, "mov byte ptr [rax], 0"], [415, "jmp short loc_422BCC"], [416, "mov rax, cs:dest"], [417, "mov rsi, rax"], [418, "mov edi, offset aUnrecognizedTo_0"], [419, "mov eax, 0"], [420, "call sub_40B609"], [421, "mov rbx, cs:dest"], [422, "mov rax, [rbp+dest]"], [423, "mov rdi, rax"], [424, "call _strlen"], [425, "add rax, rbx"], [426, "mov cs:dest, rax"], [427, "mov rax, [rbp+var_60]"], [428, "mov rdx, [rbp+var_58]"], [429, "mov cs:qword_455730, rax"], [430, "mov cs:qword_455738, rdx"], [431, "mov rax, [rbp+dest]"], [432, "mov cs:qword_455740, rax"], [433, "mov rbx, [rbp+var_8]"], [434, "leave"], [435, "retn"]], "data_dep": [[8, 7], [9, 8], [11, 10], [15, 13], [16, 14], [18, 17], [20, 22], [21, 20], [22, 21], [23, 22], [24, 23], [25, 24], [26, 25], [27, 22], [28, 27], [29, 28], [30, 29], [31, 4], [32, 5], [33, 31], [34, 32], [35, 6], [36, 35], [38, 22], [39, 38], [41, 40], [42, 41], [44, 43], [45, 44], [46, 45], [47, 46], [49, 44], [50, 49], [51, 22], [52, 51], [52, 50], [53, 52], [54, 53], [57, 56], [58, 57], [59, 44], [60, 59], [61, 22], [62, 61], [65, 67], [65, 62], [66, 65], [66, 78], [66, 50], [66, 72], [67, 66], [68, 60], [68, 70], [69, 69], [69, 50], [69, 68], [69, 72], [70, 69], [71, 65], [71, 50], [71, 72], [72, 71], [72, 68], [73, 67], [73, 62], [74, 73], [74, 50], [74, 72], [75, 74], [78, 77], [79, 78], [80, 70], [80, 60], [81, 80], [82, 22], [83, 82], [85, 84], [86, 85], [87, 22], [88, 87], [89, 72], [89, 81], [89, 88], [89, 50], [90, 89], [91, 90], [92, 22], [93, 92], [94, 81], [94, 93], [94, 50], [94, 72], [95, 94], [96, 95], [99, 22], [100, 50], [100, 99], [101, 100], [102, 101], [104, 103], [105, 104], [106, 22], [107, 14], [108, 107], [109, 106], [111, 110], [112, 111], [113, 112], [115, 111], [116, 115], [117, 22], [118, 117], [118, 50], [119, 118], [120, 119], [121, 44], [122, 121], [123, 44], [124, 123], [125, 124], [126, 111], [127, 122], [127, 126], [127, 125], [127, 50], [128, 44], [129, 127], [130, 128], [133, 22], [134, 50], [134, 133], [135, 134], [138, 137], [139, 138], [140, 44], [141, 140], [142, 22], [143, 142], [144, 143], [145, 50], [145, 144], [146, 145], [147, 146], [148, 143], [149, 50], [149, 148], [150, 149], [151, 150], [152, 143], [153, 152], [154, 153], [154, 50], [155, 154], [158, 157], [159, 158], [161, 44], [162, 161], [163, 44], [164, 163], [165, 164], [167, 143], [167, 169], [168, 174], [168, 183], [168, 167], [168, 50], [168, 180], [169, 168], [170, 141], [170, 172], [171, 170], [171, 174], [171, 50], [171, 171], [172, 171], [173, 174], [173, 167], [173, 50], [174, 170], [174, 173], [175, 143], [175, 169], [176, 175], [176, 174], [176, 50], [177, 176], [180, 179], [181, 180], [182, 143], [182, 169], [183, 182], [183, 50], [183, 174], [184, 183], [185, 184], [186, 141], [186, 172], [187, 186], [188, 44], [190, 188], [192, 191], [193, 192], [196, 44], [198, 196], [200, 199], [201, 200], [204, 44], [206, 204], [208, 207], [209, 208], [212, 44], [214, 212], [216, 215], [217, 216], [220, 44], [222, 220], [224, 223], [225, 224], [228, 44], [230, 228], [232, 231], [233, 232], [236, 44], [238, 236], [240, 239], [241, 240], [244, 44], [246, 244], [248, 247], [249, 248], [252, 44], [254, 252], [256, 255], [257, 256], [260, 44], [262, 260], [264, 263], [265, 264], [268, 44], [270, 268], [272, 271], [273, 272], [276, 44], [278, 276], [280, 279], [281, 280], [284, 44], [286, 284], [288, 287], [289, 288], [290, 44], [292, 290], [294, 293], [295, 294], [298, 44], [300, 298], [302, 301], [303, 302], [304, 44], [306, 304], [308, 307], [309, 308], [312, 44], [314, 312], [316, 315], [317, 316], [320, 44], [322, 320], [324, 323], [325, 324], [328, 44], [330, 328], [332, 331], [333, 332], [335, 169], [335, 143], [338, 335], [340, 339], [341, 340], [342, 44], [343, 342], [345, 342], [345, 344], [346, 345], [347, 345], [348, 345], [350, 44], [352, 350], [354, 353], [355, 354], [360, 22], [361, 360], [361, 50], [362, 361], [363, 362], [366, 365], [367, 366], [368, 22], [369, 378], [369, 368], [369, 375], [369, 50], [370, 369], [371, 370], [372, 22], [373, 44], [374, 372], [374, 375], [374, 50], [374, 378], [375, 374], [375, 373], [376, 44], [377, 376], [378, 377], [380, 22], [381, 50], [381, 380], [382, 381], [383, 382], [386, 385], [387, 386], [388, 22], [389, 50], [389, 388], [390, 22], [391, 390], [392, 50], [392, 391], [393, 389], [393, 392], [394, 393], [395, 22], [396, 395], [396, 50], [397, 396], [398, 397], [402, 401], [402, 399], [403, 22], [404, 44], [405, 403], [405, 411], [405, 406], [405, 414], [405, 50], [406, 404], [406, 405], [407, 22], [408, 44], [409, 408], [410, 406], [410, 407], [411, 410], [411, 409], [412, 44], [413, 412], [414, 413], [416, 22], [417, 416], [421, 22], [422, 44], [423, 422], [425, 421], [425, 424], [426, 425], [427, 194], [427, 63], [427, 310], [427, 202], [427, 318], [427, 160], [427, 402], [427, 258], [427, 266], [427, 234], [427, 242], [427, 210], [427, 358], [427, 326], [427, 97], [427, 218], [427, 334], [427, 356], [427, 274], [427, 4], [427, 296], [427, 282], [427, 250], [427, 371], [427, 114], [427, 226], [428, 5], [428, 116], [429, 427], [430, 428], [431, 44], [432, 431], [435, 35], [435, 431]]}
int imported2_foo_bar_imported3_message_v4_alloc( struct imported2_foo_bar_imported3_message_t *self_p) { return (pbtools_sub_message_alloc( (struct pbtools_message_base_t **)&self_p->v4_p, self_p->base.heap_p, sizeof(struct foo_bar_imported2_message_t), (pbtools_message_init_t)foo_bar_imported2_message_init)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43CB89", "function_addr": 4443017, "binary_name": "c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, cs:qword_4F10A0"], [5, "add rax, 1"], [6, "mov cs:qword_4F10A0, rax"], [7, "mov rax, [rbp+var_8]"], [8, "mov rdx, rax"], [9, "shr rdx, 3"], [10, "add rdx, 7FFF8000h"], [11, "movzx edx, byte ptr [rdx]"], [12, "test dl, dl"], [13, "jz short loc_43CBC8"], [14, "mov rdi, rax"], [15, "call ___asan_report_load8"], [16, "mov rax, [rbp+var_8]"], [17, "mov rax, [rax]"], [18, "mov rdx, [rbp+var_8]"], [19, "lea rdi, [rdx+20h]"], [20, "mov ecx, offset sub_43A6F9"], [21, "mov edx, 10h"], [22, "mov rsi, rax"], [23, "call sub_415D88"], [24, "mov rdx, cs:qword_4F10A8"], [25, "add rdx, 1"], [26, "mov cs:qword_4F10A8, rdx"], [27, "leave"], [28, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 3], [8, 7], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [14, 7], [16, 3], [17, 16], [18, 3], [19, 18], [19, 14], [22, 17], [25, 24], [26, 25], [28, 23]]}
static void spi_clock_high(void) { txbits <<= 1; txbits |= !!(pia_a & 2); bitcnt++; if (bitcnt == 8) { rxbits = sd_spi_in(sdcard, txbits); if (trace & TRACE_SPI) fprintf(stderr, "spi %02X | %02X\n", rxbits, txbits); bitcnt = 0; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4026A3", "function_addr": 4204195, "binary_name": "b2470140fe241e0bd4ba7a04cd28e0632bafc1f756ae7bfe0f121c1e0a915f61.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "movzx eax, cs:byte_51E089"], [3, "add eax, eax"], [4, "mov cs:byte_51E089, al"], [5, "movzx eax, cs:byte_51E08B"], [6, "movzx eax, al"], [7, "and eax, 2"], [8, "test eax, eax"], [9, "setnz al"], [10, "mov edx, eax"], [11, "movzx eax, cs:byte_51E089"], [12, "or eax, edx"], [13, "mov cs:byte_51E089, al"], [14, "movzx eax, cs:byte_51E088"], [15, "add eax, 1"], [16, "mov cs:byte_51E088, al"], [17, "movzx eax, cs:byte_51E088"], [18, "cmp al, 8"], [19, "jnz short loc_402758"], [20, "movzx eax, cs:byte_51E089"], [21, "movzx edx, al"], [22, "mov rax, cs:qword_41E030"], [23, "mov esi, edx"], [24, "mov rdi, rax"], [25, "call sub_406C48"], [26, "mov cs:byte_51E08A, al"], [27, "mov eax, cs:dword_51E084"], [28, "and eax, 1000h"], [29, "test eax, eax"], [30, "jz short loc_402751"], [31, "movzx eax, cs:byte_51E089"], [32, "movzx ecx, al"], [33, "movzx eax, cs:byte_51E08A"], [34, "movzx edx, al"], [35, "mov rax, cs:stderr"], [36, "mov esi, offset format"], [37, "mov rdi, rax"], [38, "mov eax, 0"], [39, "call _fprintf"], [40, "mov cs:byte_51E088, 0"], [41, "nop"], [42, "pop rbp"], [43, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 4], [12, 10], [12, 11], [13, 12], [15, 14], [16, 15], [17, 16], [18, 17], [19, 18], [20, 13], [21, 20], [23, 21], [24, 22], [26, 25], [28, 27], [29, 28], [30, 29], [31, 13], [32, 31], [33, 26], [34, 33], [37, 35], [42, 0], [43, 39], [43, 17], [43, 29]]}
float GetParamFieldFLOAT ( const RestoreState_t *rs, // valid restore-state structure ccp name, // name of member float not_found // return this value if not found ) { DASSERT(rs); DASSERT(name); ParamFieldItem_t *it = GetParamField(rs,name); return it ? strtof((ccp)it->data,0) : not_found; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43A11F", "function_addr": 4432159, "binary_name": "76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 38h"], [1, "mov [rsp+38h+var_20], rdi"], [2, "mov [rsp+38h+var_28], rsi"], [3, "movss [rsp+38h+var_2C], xmm0"], [4, "mov rdx, [rsp+38h+var_28]"], [5, "mov rax, [rsp+38h+var_20]"], [6, "mov rsi, rdx"], [7, "mov rdi, rax"], [8, "call sub_439F1E"], [9, "mov [rsp+38h+var_10], rax"], [10, "cmp [rsp+38h+var_10], 0"], [11, "jz short loc_43A171"], [12, "mov rax, [rsp+38h+var_10]"], [13, "mov rax, [rax+10h]"], [14, "mov esi, 0"], [15, "mov rdi, rax"], [16, "call _strtof"], [17, "movd eax, xmm0"], [18, "jmp short loc_43A175"], [19, "mov eax, [rsp+38h+var_2C]"], [20, "movd xmm0, eax"], [21, "add rsp, 38h"], [22, "retn"]], "data_dep": [[4, 2], [5, 1], [6, 4], [7, 5], [9, 8], [10, 9], [11, 10], [12, 9], [13, 12], [15, 13], [19, 3], [20, 17], [20, 19], [21, 0], [22, 17], [22, 19]]}
void dohelp() { register struct helpstruct *p; register char *fmt = CplusplusFlag ? " %s\n" : " %s\n"; for (p = helptext; p->text; p++) if (CplusplusFlag && p->cpptext) (void)printf(fmt, p->cpptext); else (void)printf(fmt, p->text); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405B79", "function_addr": 4217721, "binary_name": "67d0f763a503bb70db7fdcb4fac3a387514f51f89faf73f363b4195d3ad92eb2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "mov eax, cs:dword_40C580"], [5, "test eax, eax"], [6, "jz short loc_405B91"], [7, "mov eax, offset aS_0"], [8, "jmp short loc_405B96"], [9, "mov eax, offset aS_1"], [10, "mov r12, rax"], [11, "mov ebx, offset off_40C2E0"], [12, "jmp short loc_405BE0"], [13, "mov eax, cs:dword_40C580"], [14, "test eax, eax"], [15, "jz short loc_405BC9"], [16, "mov rax, [rbx+8]"], [17, "test rax, rax"], [18, "jz short loc_405BC9"], [19, "mov rax, [rbx+8]"], [20, "mov rsi, rax"], [21, "mov rdi, r12"], [22, "mov eax, 0"], [23, "call _printf"], [24, "jmp short loc_405BDC"], [25, "mov rax, [rbx]"], [26, "mov rsi, rax"], [27, "mov rdi, r12"], [28, "mov eax, 0"], [29, "call _printf"], [30, "add rbx, 10h"], [31, "mov rax, [rbx]"], [32, "test rax, rax"], [33, "jnz short loc_405BA0"], [34, "nop"], [35, "nop"], [36, "pop rbx"], [37, "pop r12"], [38, "pop rbp"], [39, "retn"]], "data_dep": [[5, 4], [6, 5], [10, 9], [10, 7], [14, 13], [15, 14], [16, 30], [16, 11], [17, 16], [18, 17], [19, 30], [19, 11], [20, 19], [21, 10], [25, 30], [25, 11], [26, 25], [27, 10], [30, 30], [30, 11], [31, 11], [31, 30], [32, 31], [33, 32], [36, 3], [37, 2], [38, 0], [39, 32]]}
static int read_trace(struct thread_data *td, struct blktrace_cursor *bc) { int ret = 0; struct blk_io_trace *t = &bc->t; read_skip: /* read an io trace */ ret = fread(&t, 1, sizeof(t), bc->f); if (ferror(bc->f)) { td_verror(td, errno, "read blktrace file"); return ret; } else if (feof(bc->f)) { if (!bc->length) bc->length = bc->t.time; return ret; } else if (ret < (int) sizeof(*t)) { log_err("fio: iolog short read\n"); return -1; } if (bc->swap) byteswap_trace(t); /* skip over actions that fio does not care about */ if ((t->action & 0xffff) != __BLK_TA_QUEUE || t_get_ddir(t) == DDIR_INVAL) { ret = discard_pdu(bc->f, t); if (ret < 0) { td_verror(td, -ret, "blktrace lseek"); return ret; } goto read_skip; } t->time = (t->time + bc->iter * bc->length) * bc->scalar / 100; return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4A7912", "function_addr": 4880658, "binary_name": "da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_4], 0"], [6, "mov rax, [rbp+var_30]"], [7, "add rax, 18h"], [8, "mov [rbp+ptr], rax"], [9, "mov rax, [rbp+var_30]"], [10, "mov rdx, [rax+8]"], [11, "lea rax, [rbp+ptr]"], [12, "mov rcx, rdx"], [13, "mov edx, 8"], [14, "mov esi, 1"], [15, "mov rdi, rax"], [16, "call _fread"], [17, "mov [rbp+var_4], eax"], [18, "mov rax, [rbp+var_30]"], [19, "mov rax, [rax+8]"], [20, "mov rdi, rax"], [21, "call _ferror"], [22, "test eax, eax"], [23, "jz loc_4A7AA3"], [24, "call ___errno_location"], [25, "mov eax, [rax]"], [26, "mov [rbp+var_10], eax"], [27, "mov rax, [rbp+var_28]"], [28, "mov eax, [rax+2DEC0h]"], [29, "test eax, eax"], [30, "jnz short loc_4A79ED"], [31, "mov edx, [rbp+var_10]"], [32, "mov rax, [rbp+var_28]"], [33, "mov [rax+2DEC0h], edx"], [34, "mov rax, [rbp+var_28]"], [35, "mov eax, [rax+2E96Ch]"], [36, "test eax, eax"], [37, "jnz short loc_4A79EE"], [38, "call ___errno_location"], [39, "mov eax, [rax]"], [40, "mov edi, eax"], [41, "call _strerror"], [42, "mov rdx, [rbp+var_28]"], [43, "lea rdi, [rdx+2EA40h]"], [44, "sub rsp, 8"], [45, "push rax"], [46, "mov r9d, offset aReadBlktraceFi"], [47, "mov r8d, 29Dh"], [48, "mov ecx, offset aBlktraceC"], [49, "mov edx, offset aFileSDFuncSErr_23"], [50, "mov esi, 80h"], [51, "mov eax, 0"], [52, "call sub_4A586D"], [53, "add rsp, 10h"], [54, "jmp short loc_4A79EE"], [55, "nop"], [56, "mov rax, [rbp+var_28]"], [57, "mov rax, [rax+2DC70h]"], [58, "test rax, rax"], [59, "jz loc_4A7A9B"], [60, "call ___errno_location"], [61, "mov eax, [rax]"], [62, "mov [rbp+var_14], eax"], [63, "mov rax, [rbp+var_28]"], [64, "mov rax, [rax+2DC70h]"], [65, "mov eax, [rax+2DEC0h]"], [66, "test eax, eax"], [67, "jnz short loc_4A7A9A"], [68, "mov rax, [rbp+var_28]"], [69, "mov rax, [rax+2DC70h]"], [70, "mov edx, [rbp+var_14]"], [71, "mov [rax+2DEC0h], edx"], [72, "mov rax, [rbp+var_28]"], [73, "mov rax, [rax+2DC70h]"], [74, "mov eax, [rax+2E96Ch]"], [75, "test eax, eax"], [76, "jnz short loc_4A7A9B"], [77, "call ___errno_location"], [78, "mov eax, [rax]"], [79, "mov edi, eax"], [80, "call _strerror"], [81, "mov rdx, [rbp+var_28]"], [82, "mov rdx, [rdx+2DC70h]"], [83, "lea rdi, [rdx+2EA40h]"], [84, "sub rsp, 8"], [85, "push rax"], [86, "mov r9d, offset aReadBlktraceFi"], [87, "mov r8d, 29Dh"], [88, "mov ecx, offset aBlktraceC"], [89, "mov edx, offset aFileSDFuncSErr_23"], [90, "mov esi, 80h"], [91, "mov eax, 0"], [92, "call sub_4A586D"], [93, "add rsp, 10h"], [94, "jmp short loc_4A7A9B"], [95, "nop"], [96, "mov eax, [rbp+var_4]"], [97, "jmp locret_4A7CD3"], [98, "mov rax, [rbp+var_30]"], [99, "mov rax, [rax+8]"], [100, "mov rdi, rax"], [101, "call _feof"], [102, "test eax, eax"], [103, "jz short loc_4A7ADC"], [104, "mov rax, [rbp+var_30]"], [105, "mov rax, [rax+10h]"], [106, "test rax, rax"], [107, "jnz short loc_4A7AD4"], [108, "mov rax, [rbp+var_30]"], [109, "mov rdx, [rax+20h]"], [110, "mov rax, [rbp+var_30]"], [111, "mov [rax+10h], rdx"], [112, "mov eax, [rbp+var_4]"], [113, "jmp locret_4A7CD3"], [114, "cmp [rbp+var_4], 2Fh "], [115, "jg short loc_4A7AFB"], [116, "mov edi, offset aFioIologShortR"], [117, "mov eax, 0"], [118, "call log_err"], [119, "mov eax, 0FFFFFFFFh"], [120, "jmp locret_4A7CD3"], [121, "mov rax, [rbp+var_30]"], [122, "mov eax, [rax+48h]"], [123, "test eax, eax"], [124, "jz short loc_4A7B12"], [125, "mov rax, [rbp+ptr]"], [126, "mov rdi, rax"], [127, "call sub_4A6665"], [128, "mov rax, [rbp+ptr]"], [129, "mov eax, [rax+1Ch]"], [130, "movzx eax, ax"], [131, "cmp eax, 1"], [132, "jnz short loc_4A7B36"], [133, "mov rax, [rbp+ptr]"], [134, "mov rdi, rax"], [135, "call sub_4A6765"], [136, "cmp eax, 0FFFFFFFFh"], [137, "jnz loc_4A7C81"], [138, "mov rdx, [rbp+ptr]"], [139, "mov rax, [rbp+var_30]"], [140, "mov rax, [rax+8]"], [141, "mov rsi, rdx"], [142, "mov rdi, rax"], [143, "call sub_4A5925"], [144, "mov [rbp+var_4], eax"], [145, "cmp [rbp+var_4], 0"], [146, "jns loc_4A7935"], [147, "mov eax, [rbp+var_4]"], [148, "neg eax"], [149, "mov [rbp+var_8], eax"], [150, "mov rax, [rbp+var_28]"], [151, "mov eax, [rax+2DEC0h]"], [152, "test eax, eax"], [153, "jnz short loc_4A7BD2"], [154, "mov edx, [rbp+var_8]"], [155, "mov rax, [rbp+var_28]"], [156, "mov [rax+2DEC0h], edx"], [157, "mov rax, [rbp+var_28]"], [158, "mov eax, [rax+2E96Ch]"], [159, "test eax, eax"], [160, "jnz short loc_4A7BD3"], [161, "mov eax, [rbp+var_4]"], [162, "neg eax"], [163, "mov edi, eax"], [164, "call _strerror"], [165, "mov rdx, [rbp+var_28]"], [166, "lea rdi, [rdx+2EA40h]"], [167, "sub rsp, 8"], [168, "push rax"], [169, "mov r9d, offset aBlktraceLseek"], [170, "mov r8d, 2B0h"], [171, "mov ecx, offset aBlktraceC"], [172, "mov edx, offset aFileSDFuncSErr_23"], [173, "mov esi, 80h"], [174, "mov eax, 0"], [175, "call sub_4A586D"], [176, "add rsp, 10h"], [177, "jmp short loc_4A7BD3"], [178, "nop"], [179, "mov rax, [rbp+var_28]"], [180, "mov rax, [rax+2DC70h]"], [181, "test rax, rax"], [182, "jz loc_4A7C7C"], [183, "mov eax, [rbp+var_4]"], [184, "neg eax"], [185, "mov [rbp+var_C], eax"], [186, "mov rax, [rbp+var_28]"], [187, "mov rax, [rax+2DC70h]"], [188, "mov eax, [rax+2DEC0h]"], [189, "test eax, eax"], [190, "jnz short loc_4A7C7B"], [191, "mov rax, [rbp+var_28]"], [192, "mov rax, [rax+2DC70h]"], [193, "mov edx, [rbp+var_C]"], [194, "mov [rax+2DEC0h], edx"], [195, "mov rax, [rbp+var_28]"], [196, "mov rax, [rax+2DC70h]"], [197, "mov eax, [rax+2E96Ch]"], [198, "test eax, eax"], [199, "jnz short loc_4A7C7C"], [200, "mov eax, [rbp+var_4]"], [201, "neg eax"], [202, "mov edi, eax"], [203, "call _strerror"], [204, "mov rdx, [rbp+var_28]"], [205, "mov rdx, [rdx+2DC70h]"], [206, "lea rdi, [rdx+2EA40h]"], [207, "sub rsp, 8"], [208, "push rax"], [209, "mov r9d, offset aBlktraceLseek"], [210, "mov r8d, 2B0h"], [211, "mov ecx, offset aBlktraceC"], [212, "mov edx, offset aFileSDFuncSErr_23"], [213, "mov esi, 80h"], [214, "mov eax, 0"], [215, "call sub_4A586D"], [216, "add rsp, 10h"], [217, "jmp short loc_4A7C7C"], [218, "nop"], [219, "mov eax, [rbp+var_4]"], [220, "jmp short locret_4A7CD3"], [221, "mov rax, [rbp+ptr]"], [222, "mov rcx, [rax+8]"], [223, "mov rax, [rbp+var_30]"], [224, "mov eax, [rax+50h]"], [225, "movsxd rdx, eax"], [226, "mov rax, [rbp+var_30]"], [227, "mov rax, [rax+10h]"], [228, "imul rax, rdx"], [229, "lea rdx, [rcx+rax]"], [230, "mov rax, [rbp+var_30]"], [231, "mov eax, [rax+4Ch]"], [232, "cdqe"], [233, "imul rax, rdx"], [234, "mov rcx, [rbp+ptr]"], [235, "shr rax, 2"], [236, "mov rdx, 28F5C28F5C28F5C3h"], [237, "mul rdx"], [238, "mov rax, rdx"], [239, "shr rax, 2"], [240, "mov [rcx+8], rax"], [241, "mov eax, [rbp+var_4]"], [242, "leave"], [243, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [9, 4], [10, 9], [11, 9], [11, 8], [12, 10], [15, 11], [17, 16], [18, 4], [19, 18], [20, 19], [22, 21], [23, 22], [25, 24], [26, 25], [27, 3], [28, 27], [29, 28], [30, 29], [31, 26], [32, 3], [33, 31], [33, 32], [34, 3], [35, 33], [35, 34], [36, 35], [37, 36], [39, 33], [39, 38], [40, 39], [42, 3], [43, 40], [43, 33], [43, 42], [44, 2], [45, 41], [53, 44], [56, 3], [57, 56], [57, 33], [58, 57], [59, 58], [61, 33], [61, 60], [62, 61], [63, 3], [64, 63], [64, 33], [65, 33], [65, 64], [66, 65], [67, 66], [68, 3], [69, 33], [69, 71], [69, 68], [70, 62], [71, 69], [71, 70], [72, 3], [73, 71], [73, 72], [74, 73], [74, 71], [75, 74], [76, 75], [78, 77], [78, 33], [78, 71], [79, 78], [81, 3], [82, 33], [82, 81], [82, 71], [83, 71], [83, 82], [83, 79], [83, 33], [84, 53], [84, 2], [85, 80], [93, 84], [96, 17], [98, 4], [99, 98], [100, 99], [102, 101], [103, 102], [104, 4], [105, 104], [106, 105], [107, 106], [108, 4], [109, 108], [110, 4], [111, 110], [111, 109], [112, 17], [114, 17], [115, 114], [121, 4], [122, 121], [123, 122], [124, 123], [125, 8], [126, 125], [128, 8], [129, 128], [130, 129], [131, 130], [132, 131], [133, 8], [134, 133], [136, 135], [137, 136], [138, 8], [139, 4], [140, 139], [141, 138], [142, 140], [144, 143], [145, 144], [146, 145], [147, 144], [148, 147], [149, 148], [150, 3], [151, 150], [152, 151], [153, 152], [154, 149], [155, 3], [156, 154], [156, 155], [157, 3], [158, 156], [158, 157], [159, 158], [160, 159], [161, 144], [162, 161], [163, 162], [165, 3], [166, 156], [166, 165], [166, 163], [167, 2], [168, 164], [176, 167], [179, 3], [180, 179], [180, 156], [181, 180], [182, 181], [183, 144], [184, 183], [185, 184], [186, 3], [187, 186], [187, 156], [188, 187], [188, 156], [189, 188], [190, 189], [191, 3], [192, 191], [192, 156], [192, 194], [193, 185], [194, 192], [194, 193], [195, 3], [196, 194], [196, 195], [197, 194], [197, 196], [198, 197], [199, 198], [200, 144], [201, 200], [202, 201], [204, 3], [205, 204], [205, 156], [205, 194], [206, 205], [206, 202], [206, 156], [206, 194], [207, 176], [207, 2], [208, 203], [216, 207], [219, 144], [221, 8], [222, 221], [223, 4], [224, 223], [225, 224], [226, 4], [227, 226], [228, 225], [228, 227], [229, 228], [229, 225], [230, 4], [231, 230], [233, 229], [233, 231], [234, 8], [235, 233], [237, 236], [238, 237], [239, 238], [240, 239], [240, 234], [241, 17], [243, 119], [243, 112], [243, 96], [243, 219], [243, 241]]}
int get_uptime (void) { FILE *fff; float exact_uptime; int uptime_seconds=-1; int result; fff=fopen("/proc/uptime","r"); if (fff!=NULL) { result=fscanf(fff,"%f",&exact_uptime); fclose (fff); if (result==1) { uptime_seconds=exact_uptime; } } return uptime_seconds; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406806", "function_addr": 4220934, "binary_name": "ff497cda46283249d90d669dd3754f7408878227c2de540fbcc2d2da798d03ce.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_4], 0FFFFFFFFh"], [4, "mov esi, offset aR_1"], [5, "mov edi, offset aProcUptime"], [6, "call _fopen"], [7, "mov [rbp+stream], rax"], [8, "cmp [rbp+stream], 0"], [9, "jz short loc_40686A"], [10, "lea rdx, [rbp+var_18]"], [11, "mov rax, [rbp+stream]"], [12, "mov esi, offset asc_40AFE7"], [13, "mov rdi, rax"], [14, "mov eax, 0"], [15, "call ___isoc99_fscanf"], [16, "mov [rbp+var_14], eax"], [17, "mov rax, [rbp+stream]"], [18, "mov rdi, rax"], [19, "call _fclose"], [20, "cmp [rbp+var_14], 1"], [21, "jnz short loc_40686A"], [22, "movss xmm0, [rbp+var_18]"], [23, "cvttss2si eax, xmm0"], [24, "mov [rbp+var_4], eax"], [25, "mov eax, [rbp+var_4]"], [26, "leave"], [27, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [11, 7], [13, 11], [16, 15], [17, 7], [18, 17], [20, 16], [21, 20], [23, 19], [23, 22], [24, 23], [25, 3], [25, 24], [27, 25]]}
static void razf_flush(RAZF *rz){ uint32_t tout; if(rz->buf_len){ _razf_write(rz, rz->inbuf, rz->buf_len); rz->buf_off = rz->buf_len = 0; } if(rz->stream->avail_out){ #ifdef _USE_KNETFILE write(rz->x.fpw, rz->outbuf, RZ_BUFFER_SIZE - rz->stream->avail_out); #else write(rz->filedes, rz->outbuf, RZ_BUFFER_SIZE - rz->stream->avail_out); #endif rz->stream->avail_out = RZ_BUFFER_SIZE; rz->stream->next_out = rz->outbuf; } while(1){ tout = rz->stream->avail_out; deflate(rz->stream, Z_FULL_FLUSH); rz->out += tout - rz->stream->avail_out; if(rz->stream->avail_out == 0){ #ifdef _USE_KNETFILE write(rz->x.fpw, rz->outbuf, RZ_BUFFER_SIZE - rz->stream->avail_out); #else write(rz->filedes, rz->outbuf, RZ_BUFFER_SIZE - rz->stream->avail_out); #endif rz->stream->avail_out = RZ_BUFFER_SIZE; rz->stream->next_out = rz->outbuf; } else break; } rz->block_pos = rz->out; rz->block_off = 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4056DE", "function_addr": 4216542, "binary_name": "18ba826ac31830a73aba61dc9990ca60507abe36300168b1d3124d77e38500a7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov eax, [rax+84h]"], [6, "test eax, eax"], [7, "jz short loc_40573B"], [8, "mov rax, [rbp+var_18]"], [9, "mov edx, [rax+84h]"], [10, "mov rax, [rbp+var_18]"], [11, "mov rcx, [rax+60h]"], [12, "mov rax, [rbp+var_18]"], [13, "mov rsi, rcx"], [14, "mov rdi, rax"], [15, "call sub_40559F"], [16, "mov rax, [rbp+var_18]"], [17, "mov dword ptr [rax+84h], 0"], [18, "mov rax, [rbp+var_18]"], [19, "mov edx, [rax+84h]"], [20, "mov rax, [rbp+var_18]"], [21, "mov [rax+80h], edx"], [22, "mov rax, [rbp+var_18]"], [23, "mov rax, [rax+10h]"], [24, "mov eax, [rax+20h]"], [25, "test eax, eax"], [26, "jz short loc_40579A"], [27, "mov rax, [rbp+var_18]"], [28, "mov rax, [rax+10h]"], [29, "mov eax, [rax+20h]"], [30, "mov edx, 1000h"], [31, "sub edx, eax"], [32, "mov edx, edx"], [33, "mov rax, [rbp+var_18]"], [34, "mov rcx, [rax+68h]"], [35, "mov rax, [rbp+var_18]"], [36, "mov eax, [rax+8]"], [37, "mov rsi, rcx"], [38, "mov edi, eax"], [39, "call _write"], [40, "mov rax, [rbp+var_18]"], [41, "mov rax, [rax+10h]"], [42, "mov dword ptr [rax+20h], 1000h"], [43, "mov rax, [rbp+var_18]"], [44, "mov rax, [rax+10h]"], [45, "mov rdx, [rbp+var_18]"], [46, "mov rdx, [rdx+68h]"], [47, "mov [rax+18h], rdx"], [48, "mov rax, [rbp+var_18]"], [49, "mov rax, [rax+10h]"], [50, "mov eax, [rax+20h]"], [51, "mov [rbp+var_4], eax"], [52, "mov rax, [rbp+var_18]"], [53, "mov rax, [rax+10h]"], [54, "mov esi, 3"], [55, "mov rdi, rax"], [56, "call _deflate"], [57, "mov rax, [rbp+var_18]"], [58, "mov rdx, [rax+28h]"], [59, "mov rax, [rbp+var_18]"], [60, "mov rax, [rax+10h]"], [61, "mov ecx, [rax+20h]"], [62, "mov eax, [rbp+var_4]"], [63, "sub eax, ecx"], [64, "mov eax, eax"], [65, "add rdx, rax"], [66, "mov rax, [rbp+var_18]"], [67, "mov [rax+28h], rdx"], [68, "mov rax, [rbp+var_18]"], [69, "mov rax, [rax+10h]"], [70, "mov eax, [rax+20h]"], [71, "test eax, eax"], [72, "jnz short loc_405846"], [73, "mov rax, [rbp+var_18]"], [74, "mov rax, [rax+10h]"], [75, "mov eax, [rax+20h]"], [76, "mov edx, 1000h"], [77, "sub edx, eax"], [78, "mov edx, edx"], [79, "mov rax, [rbp+var_18]"], [80, "mov rcx, [rax+68h]"], [81, "mov rax, [rbp+var_18]"], [82, "mov eax, [rax+8]"], [83, "mov rsi, rcx"], [84, "mov edi, eax"], [85, "call _write"], [86, "mov rax, [rbp+var_18]"], [87, "mov rax, [rax+10h]"], [88, "mov dword ptr [rax+20h], 1000h"], [89, "mov rax, [rbp+var_18]"], [90, "mov rax, [rax+10h]"], [91, "mov rdx, [rbp+var_18]"], [92, "mov rdx, [rdx+68h]"], [93, "mov [rax+18h], rdx"], [94, "jmp loc_40579A"], [95, "nop"], [96, "mov rax, [rbp+var_18]"], [97, "mov rdx, [rax+28h]"], [98, "mov rax, [rbp+var_18]"], [99, "mov [rax+48h], rdx"], [100, "mov rax, [rbp+var_18]"], [101, "mov qword ptr [rax+50h], 0"], [102, "nop"], [103, "leave"], [104, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 3], [9, 8], [10, 3], [11, 10], [12, 3], [13, 11], [14, 12], [16, 3], [17, 16], [18, 3], [19, 18], [19, 17], [20, 3], [21, 20], [21, 19], [22, 3], [23, 22], [23, 17], [23, 21], [24, 17], [24, 21], [24, 23], [25, 24], [26, 25], [27, 3], [28, 21], [28, 27], [28, 47], [28, 42], [28, 17], [29, 47], [29, 42], [29, 17], [29, 28], [29, 21], [31, 29], [31, 30], [32, 31], [33, 3], [34, 21], [34, 47], [34, 33], [34, 42], [34, 17], [35, 3], [36, 47], [36, 42], [36, 17], [36, 35], [36, 21], [37, 34], [38, 36], [40, 3], [41, 40], [41, 42], [41, 17], [41, 21], [41, 47], [42, 41], [43, 3], [44, 42], [44, 43], [45, 3], [46, 45], [46, 42], [47, 44], [47, 46], [48, 3], [49, 48], [49, 93], [49, 47], [49, 88], [49, 42], [49, 17], [49, 67], [49, 21], [50, 93], [50, 47], [50, 49], [50, 88], [50, 42], [50, 17], [50, 67], [50, 21], [51, 50], [52, 3], [53, 52], [53, 93], [53, 47], [53, 88], [53, 42], [53, 17], [53, 67], [53, 21], [55, 53], [57, 3], [58, 88], [58, 42], [58, 17], [58, 67], [58, 21], [58, 57], [58, 93], [58, 47], [59, 3], [60, 21], [60, 93], [60, 59], [60, 47], [60, 67], [60, 88], [60, 42], [60, 17], [61, 93], [61, 47], [61, 88], [61, 42], [61, 17], [61, 67], [61, 21], [61, 60], [62, 51], [63, 61], [63, 62], [64, 63], [65, 58], [65, 64], [66, 3], [67, 65], [67, 66], [68, 3], [69, 67], [69, 68], [70, 88], [70, 42], [70, 67], [70, 69], [71, 70], [72, 71], [73, 3], [74, 73], [74, 93], [74, 47], [74, 88], [74, 42], [74, 17], [74, 67], [74, 21], [75, 42], [75, 17], [75, 74], [75, 67], [75, 21], [75, 93], [75, 47], [75, 88], [77, 76], [77, 75], [78, 77], [79, 3], [80, 47], [80, 67], [80, 88], [80, 42], [80, 17], [80, 21], [80, 93], [80, 79], [81, 3], [82, 93], [82, 47], [82, 88], [82, 42], [82, 17], [82, 81], [82, 67], [82, 21], [83, 80], [84, 82], [86, 3], [87, 93], [87, 47], [87, 86], [87, 88], [87, 42], [87, 17], [87, 67], [87, 21], [88, 87], [89, 3], [90, 88], [90, 89], [91, 3], [92, 88], [92, 91], [93, 90], [93, 92], [96, 3], [97, 17], [97, 47], [97, 67], [97, 88], [97, 42], [97, 99], [97, 101], [97, 21], [97, 96], [97, 93], [98, 3], [99, 97], [99, 98], [100, 3], [101, 100], [104, 100]]}
void memorymap (int megabytes) { int readCnt = 0; int bRead = 0; int writeCnt = 0; int bWritten = 0; int otherIOCnt = 0; int bytes; /* * First, see how much time it takes to mmap all the files. * * Second, pull in just a few pages of information to see how much * time the "How much IBM do I hold?" question would take. * * Next, compare updating the database shared with updating it private * and then recopying the changed segments. * (We could catch the pages that we have altered by mapping the * entire BIS read-only and then punching holes in it via an * mprotect call as we catch segfaults. This gives us a list * of the pages that we need to write, at the added expense of * handling lots of interrupts.) * (Notice that we don't test the case where we are adding to * the BIS files. This is an interesting situation as we either * have to open the last page past the last write point or reopen * extendable in some way. We could do that by opening /dev/zero * with MAP_ANON for addresses above our current usage point. */ int i; stop = start + 1024 * 1024 * (long long) megabytes; printf ("Creating %d random numbers\n", SIZE); for (i = 0; i < SIZE; i++) buffer[i] = random (); // set pseudo-bis to noise printf ("Done creating random numbers\n"); /* * Write a database consisting of 16 megabyte files. * Each filename contains the memory address into which * the file should be reloaded. */ printf ("Writing pseudo-bis files\n"); unsigned char* base = start; nblocks = 0; for (i = 0; i < megabytes; i += 16) { nblocks++; // write data in 16MB files char filename[256]; sprintf (filename, "bistest.%p.%d", base, i); int fd = open (filename, O_CREAT | O_TRUNC | O_WRONLY, 0660); otherIOCnt++; if (fd == -1) { printf ("open of %s failed: %s\n", filename, strerror (errno)); exit (0); } bytes = write (fd, buffer, SIZE); bWritten += bytes; writeCnt++; close (fd); otherIOCnt++; printf ("\twrote %d megabytes\n", i + 16); base += 16 * 1024 * 1024; } printf ("Done writing files from %p to %p\n", start, stop); int j; printf ("Memory map all the files (private)\n"); for (i = 0; i < megabytes; i += 16) { unsigned char* base = start; base += i * 1024 * 1024; char filename[256]; sprintf (filename, "bistest.%p.%d", base, i); int fd = open (filename, O_RDWR); otherIOCnt++; if (fd < 0) printf ("open of %s failed: %s\n", filename, strerror (errno)); unsigned char *mp = (unsigned char*) mmap ((char*) base, SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0); if (mp == MAP_FAILED || mp != base) { printf ("mmap of %s failed: %s\n", filename, strerror (errno)); exit (1); } printf ("mapped %d bytes at %p\n", SIZE, base); close (fd); // mmap will hold the file open for us otherIOCnt++; } printf ("Mapping done\n"); fflush (stdout); otherIOCnt++; int ranlimit = 1000; printf ("Access %d bytes at random\n", ranlimit); int sum = 0; for (i = 0; i < ranlimit; i++) { unsigned char *where = start + (((unsigned long) random ()) % (stop - start)); sum += (int) *where; } printf ("Random byte access done\n"); ranlimit = 1000; int ranrange = 256; printf ("Alter %d random locations, %d bytes each (private)\n", ranlimit, ranrange); for (i = 0; i < ranlimit; i++) { unsigned char *where = start + (((unsigned long) random ()) % (stop - start)); for (j = 0; j < ranrange; j++) *where++ = j; } printf ("Memory alteration done\n"); fflush (stdout); otherIOCnt++; printf ("Copy all memory back to disk\n"); for (i = 0; i < megabytes; i += 16) { unsigned char* base = start; base += i * 1024 * 1024; char filename[256]; sprintf (filename, "bistest2.%p.%d", base, i); int fd = open (filename, O_RDWR | O_CREAT | O_TRUNC, 0660); otherIOCnt++; if ((bytes = write (fd, base, SIZE)) == -1) { printf ("write of %s failed: %s\n", filename, strerror (errno)); exit (1); } bWritten += bytes; writeCnt++; close (fd); otherIOCnt++; } printf ("Disk copy complete\n"); fflush (stdout); otherIOCnt++; printf ("Unmap all segments\n"); for (i = 0; i < megabytes; i += 16) { unsigned char* base = start; base += i * 1024 * 1024; if (munmap ((char*) base, SIZE) == -1) { printf ("munmap failed: %s\n", strerror (errno)); exit (1); } printf ("unmapped %d bytes at %p\n", SIZE, base); } printf ("Segment unmapping complete\n"); fflush (stdout); otherIOCnt++; printf ("Remap all segments as shared\n"); for (i = 0; i < megabytes; i += 16) { unsigned char* base = start; base += i * 1024 * 1024; char filename[256]; sprintf (filename, "bistest.%p.%d", base, i); int fd = open (filename, O_RDWR); otherIOCnt++; char* mp = mmap ((char*) base, SIZE, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_FIXED, fd, 0); if (mp == MAP_FAILED || (unsigned char*) mp != base) { printf ("re mmap of %s failed: %s\n", filename, strerror (errno)); exit (1); } printf ("remapped %d bytes at %p\n", SIZE, base); close (fd); // mmap will hold the file open for us otherIOCnt++; } printf ("Remapping complete\n"); fflush (stdout); otherIOCnt++; ranlimit = 1000; ranrange = 256; printf ("Alter %d random locations, %d bytes each (shared)\n", ranlimit, ranrange); for (i = 0; i < ranlimit; i++) { unsigned char* where = start + (((unsigned long) random ()) % (stop - start)); for (j = 0; j < ranrange; j++) *where++ = j; } printf ("Memory alteration done\n"); fflush (stdout); otherIOCnt++; printf ("Unmap all segments\n"); for (i = 0; i < megabytes; i += 16) { unsigned char *base = start; base += i * 1024 * 1024; if (munmap ((char*) base, SIZE) == -1) { printf ("munmap failed: %s\n", strerror (errno)); exit (1); } printf ("unmapped %d bytes at %p\n", SIZE, base); } printf ("Segment unmapping complete\n"); fflush (stdout); otherIOCnt++; base = start; for (i = 0; i < megabytes; i += 16) { // write data in 16MB files char filename[256]; sprintf (filename, "bistest.%p.%d", base, i); if (unlink (filename) != 0) { printf ("unlink of %s failed: %s\n", filename, strerror (errno)); } base += 16 * 1024 * 1024; otherIOCnt++; } for (i = 0; i < megabytes; i += 16) { unsigned char* base = start; base += i * 1024 * 1024; char filename[256]; sprintf (filename, "bistest2.%p.%d", base, i); if (unlink (filename) != 0) { printf ("unlink of %s failed: %s\n", filename, strerror (errno)); } otherIOCnt++; } bWritten += 102; /* the number of bytes are written by the next fprintf */ writeCnt++; fflush (fid2); otherIOCnt++; /* Record accounting record */ fprintf (fid2, "X %14d %14d %17d %15d %17d memorymap\n", bRead, readCnt, bWritten, writeCnt, otherIOCnt); printf ("Deleted scratch files\n"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "memorymap", "function_addr": 4234816, "binary_name": "d10e9a5f5048fed402126d0687193873c2065519ed0560660f837ec3bdc108da.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 1C8h"], [4, "mov [rbp+var_1C4], edi"], [5, "mov [rbp+var_44], 0"], [6, "mov [rbp+var_48], 0"], [7, "mov [rbp+var_14], 0"], [8, "mov [rbp+var_18], 0"], [9, "mov [rbp+var_1C], 0"], [10, "mov rdx, cs:start"], [11, "mov eax, [rbp+var_1C4]"], [12, "cdqe"], [13, "shl rax, 14h"], [14, "add rax, rdx"], [15, "mov cs:stop, rax"], [16, "mov esi, offset unk_1000000"], [17, "mov edi, offset aCreatingDRando"], [18, "mov eax, 0"], [19, "call _printf"], [20, "mov [rbp+var_20], 0"], [21, "jmp short loc_409EC6"], [22, "call _random"], [23, "mov edx, eax"], [24, "mov eax, [rbp+var_20]"], [25, "cdqe"], [26, "mov ds:buffer[rax*4], edx"], [27, "add [rbp+var_20], 1"], [28, "cmp [rbp+var_20], offset unk_FFFFFF"], [29, "jle short loc_409EAF"], [30, "mov edi, offset aDoneCreatingRa"], [31, "call _puts"], [32, "mov edi, offset aWritingPseudoB"], [33, "call _puts"], [34, "mov rax, cs:start"], [35, "mov [rbp+var_28], rax"], [36, "mov cs:nblocks, 0"], [37, "mov [rbp+var_20], 0"], [38, "jmp loc_409FF6"], [39, "mov eax, cs:nblocks"], [40, "add eax, 1"], [41, "mov cs:nblocks, eax"], [42, "mov ecx, [rbp+var_20]"], [43, "mov rdx, [rbp+var_28]"], [44, "lea rax, [rbp+s]"], [45, "mov esi, offset aBistestPD"], [46, "mov rdi, rax"], [47, "mov eax, 0"], [48, "call _sprintf"], [49, "lea rax, [rbp+s]"], [50, "mov edx, 1B0h"], [51, "mov esi, 241h"], [52, "mov rdi, rax"], [53, "mov eax, 0"], [54, "call _open"], [55, "mov [rbp+fd], eax"], [56, "add [rbp+var_1C], 1"], [57, "cmp [rbp+fd], 0FFFFFFFFh"], [58, "jnz short loc_409F98"], [59, "call ___errno_location"], [60, "mov eax, [rax]"], [61, "mov edi, eax"], [62, "call _strerror"], [63, "mov rdx, rax"], [64, "lea rax, [rbp+s]"], [65, "mov rsi, rax"], [66, "mov edi, offset aOpenOfSFailedS"], [67, "mov eax, 0"], [68, "call _printf"], [69, "mov edi, 0"], [70, "call _exit"], [71, "mov eax, [rbp+fd]"], [72, "mov edx, offset unk_1000000"], [73, "mov esi, offset buffer"], [74, "mov edi, eax"], [75, "call _write"], [76, "mov [rbp+var_90], eax"], [77, "mov eax, [rbp+var_90]"], [78, "add [rbp+var_18], eax"], [79, "add [rbp+var_14], 1"], [80, "mov eax, [rbp+fd]"], [81, "mov edi, eax"], [82, "call _close"], [83, "add [rbp+var_1C], 1"], [84, "mov eax, [rbp+var_20]"], [85, "add eax, 10h"], [86, "mov esi, eax"], [87, "mov edi, offset aWroteDMegabyte"], [88, "mov eax, 0"], [89, "call _printf"], [90, "add [rbp+var_28], 1000000h"], [91, "add [rbp+var_20], 10h"], [92, "mov eax, [rbp+var_20]"], [93, "cmp eax, [rbp+var_1C4]"], [94, "jl loc_409F04"], [95, "mov rdx, cs:stop"], [96, "mov rax, cs:start"], [97, "mov rsi, rax"], [98, "mov edi, offset aDoneWritingFil"], [99, "mov eax, 0"], [100, "call _printf"], [101, "mov edi, offset aMemoryMapAllTh"], [102, "call _puts"], [103, "mov [rbp+var_20], 0"], [104, "jmp loc_40A186"], [105, "mov rax, cs:start"], [106, "mov [rbp+addr], rax"], [107, "mov eax, [rbp+var_20]"], [108, "shl eax, 14h"], [109, "cdqe"], [110, "add [rbp+addr], rax"], [111, "mov ecx, [rbp+var_20]"], [112, "mov rdx, [rbp+addr]"], [113, "lea rax, [rbp+s]"], [114, "mov esi, offset aBistestPD"], [115, "mov rdi, rax"], [116, "mov eax, 0"], [117, "call _sprintf"], [118, "lea rax, [rbp+s]"], [119, "mov esi, 2"], [120, "mov rdi, rax"], [121, "mov eax, 0"], [122, "call _open"], [123, "mov [rbp+var_A4], eax"], [124, "add [rbp+var_1C], 1"], [125, "cmp [rbp+var_A4], 0"], [126, "jns short loc_40A0D1"], [127, "call ___errno_location"], [128, "mov eax, [rax]"], [129, "mov edi, eax"], [130, "call _strerror"], [131, "mov rdx, rax"], [132, "lea rax, [rbp+s]"], [133, "mov rsi, rax"], [134, "mov edi, offset aOpenOfSFailedS"], [135, "mov eax, 0"], [136, "call _printf"], [137, "mov edx, [rbp+var_A4]"], [138, "mov rax, [rbp+addr]"], [139, "mov r9d, 0"], [140, "mov r8d, edx"], [141, "mov ecx, 12h"], [142, "mov edx, 3"], [143, "mov esi, offset unk_1000000"], [144, "mov rdi, rax"], [145, "call _mmap"], [146, "mov [rbp+var_B0], rax"], [147, "cmp [rbp+var_B0], 0FFFFFFFFFFFFFFFFh"], [148, "jz short loc_40A11F"], [149, "mov rax, [rbp+var_B0]"], [150, "cmp rax, [rbp+addr]"], [151, "jz short loc_40A153"], [152, "call ___errno_location"], [153, "mov eax, [rax]"], [154, "mov edi, eax"], [155, "call _strerror"], [156, "mov rdx, rax"], [157, "lea rax, [rbp+s]"], [158, "mov rsi, rax"], [159, "mov edi, offset aMmapOfSFailedS"], [160, "mov eax, 0"], [161, "call _printf"], [162, "mov edi, 1"], [163, "call _exit"], [164, "mov rax, [rbp+addr]"], [165, "mov rdx, rax"], [166, "mov esi, offset unk_1000000"], [167, "mov edi, offset aMappedDBytesAt"], [168, "mov eax, 0"], [169, "call _printf"], [170, "mov eax, [rbp+var_A4]"], [171, "mov edi, eax"], [172, "call _close"], [173, "add [rbp+var_1C], 1"], [174, "add [rbp+var_20], 10h"], [175, "mov eax, [rbp+var_20]"], [176, "cmp eax, [rbp+var_1C4]"], [177, "jl loc_40A03B"], [178, "mov edi, offset aMappingDone"], [179, "call _puts"], [180, "mov rax, cs:stdout"], [181, "mov rdi, rax"], [182, "call _fflush"], [183, "add [rbp+var_1C], 1"], [184, "mov [rbp+var_4C], 3E8h"], [185, "mov eax, [rbp+var_4C]"], [186, "mov esi, eax"], [187, "mov edi, offset aAccessDBytesAt"], [188, "mov eax, 0"], [189, "call _printf"], [190, "mov [rbp+var_30], 0"], [191, "mov [rbp+var_20], 0"], [192, "jmp short loc_40A22C"], [193, "mov rbx, cs:start"], [194, "call _random"], [195, "mov rdx, rax"], [196, "mov rax, cs:stop"], [197, "mov rcx, cs:start"], [198, "sub rax, rcx"], [199, "mov rcx, rax"], [200, "mov rax, rdx"], [201, "mov edx, 0"], [202, "div rcx"], [203, "mov rax, rdx"], [204, "add rax, rbx"], [205, "mov [rbp+var_98], rax"], [206, "mov rax, [rbp+var_98]"], [207, "movzx eax, byte ptr [rax]"], [208, "movzx eax, al"], [209, "add [rbp+var_30], eax"], [210, "add [rbp+var_20], 1"], [211, "mov eax, [rbp+var_20]"], [212, "cmp eax, [rbp+var_4C]"], [213, "jl short loc_40A1DD"], [214, "mov edi, offset aRandomByteAcce"], [215, "call _puts"], [216, "mov [rbp+var_4C], 3E8h"], [217, "mov [rbp+var_50], 100h"], [218, "mov edx, [rbp+var_50]"], [219, "mov eax, [rbp+var_4C]"], [220, "mov esi, eax"], [221, "mov edi, offset aAlterDRandomLo"], [222, "mov eax, 0"], [223, "call _printf"], [224, "mov [rbp+var_20], 0"], [225, "jmp short loc_40A2CE"], [226, "mov rbx, cs:start"], [227, "call _random"], [228, "mov rdx, rax"], [229, "mov rax, cs:stop"], [230, "mov rcx, cs:start"], [231, "sub rax, rcx"], [232, "mov rcx, rax"], [233, "mov rax, rdx"], [234, "mov edx, 0"], [235, "div rcx"], [236, "mov rax, rdx"], [237, "add rax, rbx"], [238, "mov [rbp+var_38], rax"], [239, "mov [rbp+var_2C], 0"], [240, "jmp short loc_40A2C2"], [241, "mov rax, [rbp+var_38]"], [242, "lea rdx, [rax+1]"], [243, "mov [rbp+var_38], rdx"], [244, "mov edx, [rbp+var_2C]"], [245, "mov [rax], dl"], [246, "add [rbp+var_2C], 1"], [247, "mov eax, [rbp+var_2C]"], [248, "cmp eax, [rbp+var_50]"], [249, "jl short loc_40A2AD"], [250, "add [rbp+var_20], 1"], [251, "mov eax, [rbp+var_20]"], [252, "cmp eax, [rbp+var_4C]"], [253, "jl short loc_40A26C"], [254, "mov edi, offset aMemoryAlterati"], [255, "call _puts"], [256, "mov rax, cs:stdout"], [257, "mov rdi, rax"], [258, "call _fflush"], [259, "add [rbp+var_1C], 1"], [260, "mov edi, offset aCopyAllMemoryB"], [261, "call _puts"], [262, "mov [rbp+var_20], 0"], [263, "jmp loc_40A3F2"], [264, "mov rax, cs:start"], [265, "mov [rbp+buf], rax"], [266, "mov eax, [rbp+var_20]"], [267, "shl eax, 14h"], [268, "cdqe"], [269, "add [rbp+buf], rax"], [270, "mov ecx, [rbp+var_20]"], [271, "mov rdx, [rbp+buf]"], [272, "lea rax, [rbp+s]"], [273, "mov esi, offset aBistest2PD"], [274, "mov rdi, rax"], [275, "mov eax, 0"], [276, "call _sprintf"], [277, "lea rax, [rbp+s]"], [278, "mov edx, 1B0h"], [279, "mov esi, 242h"], [280, "mov rdi, rax"], [281, "mov eax, 0"], [282, "call _open"], [283, "mov [rbp+var_8C], eax"], [284, "add [rbp+var_1C], 1"], [285, "mov rcx, [rbp+buf]"], [286, "mov eax, [rbp+var_8C]"], [287, "mov edx, offset unk_1000000"], [288, "mov rsi, rcx"], [289, "mov edi, eax"], [290, "call _write"], [291, "mov [rbp+var_90], eax"], [292, "cmp [rbp+var_90], 0FFFFFFFFh"], [293, "jnz short loc_40A3D0"], [294, "call ___errno_location"], [295, "mov eax, [rax]"], [296, "mov edi, eax"], [297, "call _strerror"], [298, "mov rdx, rax"], [299, "lea rax, [rbp+s]"], [300, "mov rsi, rax"], [301, "mov edi, offset aWriteOfSFailed"], [302, "mov eax, 0"], [303, "call _printf"], [304, "mov edi, 1"], [305, "call _exit"], [306, "mov eax, [rbp+var_90]"], [307, "add [rbp+var_18], eax"], [308, "add [rbp+var_14], 1"], [309, "mov eax, [rbp+var_8C]"], [310, "mov edi, eax"], [311, "call _close"], [312, "add [rbp+var_1C], 1"], [313, "add [rbp+var_20], 10h"], [314, "mov eax, [rbp+var_20]"], [315, "cmp eax, [rbp+var_1C4]"], [316, "jl loc_40A309"], [317, "mov edi, offset aDiskCopyComple"], [318, "call _puts"], [319, "mov rax, cs:stdout"], [320, "mov rdi, rax"], [321, "call _fflush"], [322, "add [rbp+var_1C], 1"], [323, "mov edi, offset aUnmapAllSegmen"], [324, "call _puts"], [325, "mov [rbp+var_20], 0"], [326, "jmp short loc_40A4A7"], [327, "mov rax, cs:start"], [328, "mov [rbp+var_80], rax"], [329, "mov eax, [rbp+var_20]"], [330, "shl eax, 14h"], [331, "cdqe"], [332, "add [rbp+var_80], rax"], [333, "mov rax, [rbp+var_80]"], [334, "mov esi, offset unk_1000000"], [335, "mov rdi, rax"], [336, "call _munmap"], [337, "cmp eax, 0FFFFFFFFh"], [338, "jnz short loc_40A488"], [339, "call ___errno_location"], [340, "mov eax, [rax]"], [341, "mov edi, eax"], [342, "call _strerror"], [343, "mov rsi, rax"], [344, "mov edi, offset aMunmapFailedS"], [345, "mov eax, 0"], [346, "call _printf"], [347, "mov edi, 1"], [348, "call _exit"], [349, "mov rax, [rbp+var_80]"], [350, "mov rdx, rax"], [351, "mov esi, offset unk_1000000"], [352, "mov edi, offset aUnmappedDBytes"], [353, "mov eax, 0"], [354, "call _printf"], [355, "add [rbp+var_20], 10h"], [356, "mov eax, [rbp+var_20]"], [357, "cmp eax, [rbp+var_1C4]"], [358, "jl loc_40A431"], [359, "mov edi, offset aSegmentUnmappi"], [360, "call _puts"], [361, "mov rax, cs:stdout"], [362, "mov rdi, rax"], [363, "call _fflush"], [364, "add [rbp+var_1C], 1"], [365, "mov edi, offset aRemapAllSegmen"], [366, "call _puts"], [367, "mov [rbp+var_20], 0"], [368, "jmp loc_40A5DD"], [369, "mov rax, cs:start"], [370, "mov [rbp+var_68], rax"], [371, "mov eax, [rbp+var_20]"], [372, "shl eax, 14h"], [373, "cdqe"], [374, "add [rbp+var_68], rax"], [375, "mov ecx, [rbp+var_20]"], [376, "mov rdx, [rbp+var_68]"], [377, "lea rax, [rbp+s]"], [378, "mov esi, offset aBistestPD"], [379, "mov rdi, rax"], [380, "mov eax, 0"], [381, "call _sprintf"], [382, "lea rax, [rbp+s]"], [383, "mov esi, 2"], [384, "mov rdi, rax"], [385, "mov eax, 0"], [386, "call _open"], [387, "mov [rbp+var_6C], eax"], [388, "add [rbp+var_1C], 1"], [389, "mov edx, [rbp+var_6C]"], [390, "mov rax, [rbp+var_68]"], [391, "mov r9d, 0"], [392, "mov r8d, edx"], [393, "mov ecx, 11h"], [394, "mov edx, 3"], [395, "mov esi, offset unk_1000000"], [396, "mov rdi, rax"], [397, "call _mmap"], [398, "mov [rbp+var_78], rax"], [399, "cmp [rbp+var_78], 0FFFFFFFFFFFFFFFFh"], [400, "jz short loc_40A57C"], [401, "mov rax, [rbp+var_78]"], [402, "cmp rax, [rbp+var_68]"], [403, "jz short loc_40A5B0"], [404, "call ___errno_location"], [405, "mov eax, [rax]"], [406, "mov edi, eax"], [407, "call _strerror"], [408, "mov rdx, rax"], [409, "lea rax, [rbp+s]"], [410, "mov rsi, rax"], [411, "mov edi, offset aReMmapOfSFaile"], [412, "mov eax, 0"], [413, "call _printf"], [414, "mov edi, 1"], [415, "call _exit"], [416, "mov rax, [rbp+var_68]"], [417, "mov rdx, rax"], [418, "mov esi, offset unk_1000000"], [419, "mov edi, offset aRemappedDBytes"], [420, "mov eax, 0"], [421, "call _printf"], [422, "mov eax, [rbp+var_6C]"], [423, "mov edi, eax"], [424, "call _close"], [425, "add [rbp+var_1C], 1"], [426, "add [rbp+var_20], 10h"], [427, "mov eax, [rbp+var_20]"], [428, "cmp eax, [rbp+var_1C4]"], [429, "jl loc_40A4E9"], [430, "mov edi, offset aRemappingCompl"], [431, "call _puts"], [432, "mov rax, cs:stdout"], [433, "mov rdi, rax"], [434, "call _fflush"], [435, "add [rbp+var_1C], 1"], [436, "mov [rbp+var_4C], 3E8h"], [437, "mov [rbp+var_50], 100h"], [438, "mov edx, [rbp+var_50]"], [439, "mov eax, [rbp+var_4C]"], [440, "mov esi, eax"], [441, "mov edi, offset aAlterDRandomLo_0"], [442, "mov eax, 0"], [443, "call _printf"], [444, "mov [rbp+var_20], 0"], [445, "jmp short loc_40A699"], [446, "mov rbx, cs:start"], [447, "call _random"], [448, "mov rdx, rax"], [449, "mov rax, cs:stop"], [450, "mov rcx, cs:start"], [451, "sub rax, rcx"], [452, "mov rcx, rax"], [453, "mov rax, rdx"], [454, "mov edx, 0"], [455, "div rcx"], [456, "mov rax, rdx"], [457, "add rax, rbx"], [458, "mov [rbp+var_40], rax"], [459, "mov [rbp+var_2C], 0"], [460, "jmp short loc_40A68D"], [461, "mov rax, [rbp+var_40]"], [462, "lea rdx, [rax+1]"], [463, "mov [rbp+var_40], rdx"], [464, "mov edx, [rbp+var_2C]"], [465, "mov [rax], dl"], [466, "add [rbp+var_2C], 1"], [467, "mov eax, [rbp+var_2C]"], [468, "cmp eax, [rbp+var_50]"], [469, "jl short loc_40A678"], [470, "add [rbp+var_20], 1"], [471, "mov eax, [rbp+var_20]"], [472, "cmp eax, [rbp+var_4C]"], [473, "jl short loc_40A637"], [474, "mov edi, offset aMemoryAlterati"], [475, "call _puts"], [476, "mov rax, cs:stdout"], [477, "mov rdi, rax"], [478, "call _fflush"], [479, "add [rbp+var_1C], 1"], [480, "mov edi, offset aUnmapAllSegmen"], [481, "call _puts"], [482, "mov [rbp+var_20], 0"], [483, "jmp short loc_40A747"], [484, "mov rax, cs:start"], [485, "mov [rbp+var_60], rax"], [486, "mov eax, [rbp+var_20]"], [487, "shl eax, 14h"], [488, "cdqe"], [489, "add [rbp+var_60], rax"], [490, "mov rax, [rbp+var_60]"], [491, "mov esi, offset unk_1000000"], [492, "mov rdi, rax"], [493, "call _munmap"], [494, "cmp eax, 0FFFFFFFFh"], [495, "jnz short loc_40A728"], [496, "call ___errno_location"], [497, "mov eax, [rax]"], [498, "mov edi, eax"], [499, "call _strerror"], [500, "mov rsi, rax"], [501, "mov edi, offset aMunmapFailedS"], [502, "mov eax, 0"], [503, "call _printf"], [504, "mov edi, 1"], [505, "call _exit"], [506, "mov rax, [rbp+var_60]"], [507, "mov rdx, rax"], [508, "mov esi, offset unk_1000000"], [509, "mov edi, offset aUnmappedDBytes"], [510, "mov eax, 0"], [511, "call _printf"], [512, "add [rbp+var_20], 10h"], [513, "mov eax, [rbp+var_20]"], [514, "cmp eax, [rbp+var_1C4]"], [515, "jl loc_40A6D1"], [516, "mov edi, offset aSegmentUnmappi"], [517, "call _puts"], [518, "mov rax, cs:stdout"], [519, "mov rdi, rax"], [520, "call _fflush"], [521, "add [rbp+var_1C], 1"], [522, "mov rax, cs:start"], [523, "mov [rbp+var_28], rax"], [524, "mov [rbp+var_20], 0"], [525, "jmp short loc_40A7F4"], [526, "mov ecx, [rbp+var_20]"], [527, "mov rdx, [rbp+var_28]"], [528, "lea rax, [rbp+s]"], [529, "mov esi, offset aBistestPD"], [530, "mov rdi, rax"], [531, "mov eax, 0"], [532, "call _sprintf"], [533, "lea rax, [rbp+s]"], [534, "mov rdi, rax"], [535, "call _unlink"], [536, "test eax, eax"], [537, "jz short loc_40A7E4"], [538, "call ___errno_location"], [539, "mov eax, [rax]"], [540, "mov edi, eax"], [541, "call _strerror"], [542, "mov rdx, rax"], [543, "lea rax, [rbp+s]"], [544, "mov rsi, rax"], [545, "mov edi, offset aUnlinkOfSFaile"], [546, "mov eax, 0"], [547, "call _printf"], [548, "add [rbp+var_28], 1000000h"], [549, "add [rbp+var_1C], 1"], [550, "add [rbp+var_20], 10h"], [551, "mov eax, [rbp+var_20]"], [552, "cmp eax, [rbp+var_1C4]"], [553, "jl short loc_40A787"], [554, "mov [rbp+var_20], 0"], [555, "jmp short loc_40A884"], [556, "mov rax, cs:start"], [557, "mov [rbp+var_58], rax"], [558, "mov eax, [rbp+var_20]"], [559, "shl eax, 14h"], [560, "cdqe"], [561, "add [rbp+var_58], rax"], [562, "mov ecx, [rbp+var_20]"], [563, "mov rdx, [rbp+var_58]"], [564, "lea rax, [rbp+s]"], [565, "mov esi, offset aBistest2PD"], [566, "mov rdi, rax"], [567, "mov eax, 0"], [568, "call _sprintf"], [569, "lea rax, [rbp+s]"], [570, "mov rdi, rax"], [571, "call _unlink"], [572, "test eax, eax"], [573, "jz short loc_40A87C"], [574, "call ___errno_location"], [575, "mov eax, [rax]"], [576, "mov edi, eax"], [577, "call _strerror"], [578, "mov rdx, rax"], [579, "lea rax, [rbp+s]"], [580, "mov rsi, rax"], [581, "mov edi, offset aUnlinkOfSFaile"], [582, "mov eax, 0"], [583, "call _printf"], [584, "add [rbp+var_1C], 1"], [585, "add [rbp+var_20], 10h"], [586, "mov eax, [rbp+var_20]"], [587, "cmp eax, [rbp+var_1C4]"], [588, "jl loc_40A808"], [589, "add [rbp+var_18], 66h "], [590, "add [rbp+var_14], 1"], [591, "mov rax, cs:fid2"], [592, "mov rdi, rax"], [593, "call _fflush"], [594, "add [rbp+var_1C], 1"], [595, "mov rax, cs:fid2"], [596, "mov r8d, [rbp+var_14]"], [597, "mov edi, [rbp+var_18]"], [598, "mov ecx, [rbp+var_44]"], [599, "mov edx, [rbp+var_48]"], [600, "sub rsp, 8"], [601, "mov esi, [rbp+var_1C]"], [602, "push rsi"], [603, "mov r9d, r8d"], [604, "mov r8d, edi"], [605, "mov esi, offset aX14d14d17d15d1_1"], [606, "mov rdi, rax"], [607, "mov eax, 0"], [608, "call _fprintf"], [609, "add rsp, 10h"], [610, "mov edi, offset aDeletedScratch"], [611, "call _puts"], [612, "nop"], [613, "mov rbx, [rbp+var_8]"], [614, "leave"], [615, "retn"]], "data_dep": [[11, 4], [13, 11], [14, 10], [14, 13], [15, 14], [23, 22], [24, 27], [24, 20], [26, 23], [27, 20], [27, 27], [28, 20], [28, 27], [29, 28], [35, 34], [39, 41], [39, 36], [40, 39], [41, 40], [42, 91], [42, 37], [43, 35], [43, 90], [44, 40], [46, 44], [49, 48], [52, 49], [55, 54], [56, 9], [56, 83], [57, 55], [58, 57], [60, 59], [61, 60], [63, 62], [64, 62], [65, 64], [71, 55], [74, 71], [76, 75], [77, 76], [78, 77], [78, 8], [78, 78], [79, 7], [79, 79], [80, 55], [81, 80], [83, 56], [84, 91], [84, 37], [85, 84], [86, 85], [90, 35], [90, 90], [91, 37], [91, 91], [92, 91], [92, 37], [93, 4], [93, 92], [94, 93], [95, 15], [97, 96], [106, 105], [107, 103], [107, 174], [108, 107], [110, 108], [110, 106], [111, 174], [111, 103], [112, 110], [113, 108], [115, 113], [118, 117], [120, 118], [123, 122], [124, 173], [124, 9], [124, 83], [125, 123], [126, 125], [128, 127], [129, 128], [131, 130], [132, 130], [133, 132], [137, 123], [138, 110], [140, 137], [144, 138], [146, 145], [147, 146], [148, 147], [149, 146], [150, 149], [150, 110], [151, 150], [153, 152], [154, 153], [156, 155], [157, 155], [158, 157], [164, 110], [165, 164], [170, 123], [171, 170], [173, 124], [174, 174], [174, 103], [175, 103], [175, 174], [176, 175], [176, 4], [177, 176], [181, 180], [183, 83], [183, 9], [183, 173], [185, 184], [186, 185], [195, 194], [196, 15], [198, 197], [198, 196], [199, 198], [200, 195], [202, 199], [203, 201], [204, 203], [204, 193], [205, 204], [206, 205], [207, 206], [208, 207], [209, 208], [209, 209], [209, 190], [210, 191], [210, 210], [211, 210], [211, 191], [212, 184], [212, 211], [213, 212], [218, 217], [219, 216], [220, 219], [228, 227], [229, 15], [231, 230], [231, 229], [232, 231], [233, 228], [235, 232], [236, 234], [237, 236], [237, 226], [238, 237], [241, 243], [241, 238], [242, 241], [242, 245], [242, 244], [242, 234], [243, 242], [244, 239], [244, 246], [245, 244], [245, 241], [246, 246], [246, 239], [247, 239], [247, 246], [248, 217], [248, 247], [249, 248], [250, 250], [250, 224], [251, 224], [251, 250], [252, 216], [252, 251], [253, 252], [257, 256], [259, 183], [265, 264], [266, 313], [266, 262], [267, 266], [269, 267], [269, 265], [270, 313], [270, 262], [271, 269], [272, 267], [274, 272], [277, 276], [280, 277], [283, 282], [284, 312], [284, 259], [285, 269], [286, 283], [288, 285], [289, 286], [291, 290], [292, 291], [293, 292], [295, 294], [295, 245], [296, 295], [298, 297], [299, 297], [300, 299], [306, 291], [307, 307], [307, 78], [307, 306], [307, 8], [308, 79], [308, 7], [308, 308], [309, 283], [310, 309], [312, 284], [313, 262], [313, 313], [314, 262], [314, 313], [315, 4], [315, 314], [316, 315], [320, 319], [322, 312], [322, 259], [328, 327], [329, 355], [329, 325], [330, 329], [332, 328], [332, 330], [333, 332], [335, 333], [337, 336], [338, 337], [340, 245], [340, 339], [341, 340], [343, 342], [349, 332], [350, 349], [355, 325], [355, 355], [356, 355], [356, 325], [357, 4], [357, 356], [358, 357], [362, 361], [364, 322], [370, 369], [371, 367], [371, 426], [372, 371], [374, 372], [374, 370], [375, 426], [375, 367], [376, 374], [377, 372], [379, 377], [382, 381], [384, 382], [387, 386], [388, 364], [388, 425], [389, 387], [390, 374], [392, 389], [396, 390], [398, 397], [399, 398], [400, 399], [401, 398], [402, 374], [402, 401], [403, 402], [405, 404], [405, 245], [406, 405], [408, 407], [409, 407], [410, 409], [416, 374], [417, 416], [422, 387], [423, 422], [425, 388], [426, 367], [426, 426], [427, 426], [427, 367], [428, 427], [428, 4], [429, 428], [433, 432], [435, 425], [435, 364], [438, 437], [439, 436], [440, 439], [448, 447], [449, 15], [451, 450], [451, 449], [452, 451], [453, 448], [455, 452], [456, 454], [457, 456], [457, 446], [458, 457], [461, 463], [461, 458], [462, 461], [462, 465], [462, 245], [462, 464], [462, 454], [463, 462], [464, 466], [464, 459], [465, 461], [465, 464], [466, 459], [466, 466], [467, 466], [467, 459], [468, 467], [468, 437], [469, 468], [470, 470], [470, 444], [471, 444], [471, 470], [472, 471], [472, 436], [473, 472], [477, 476], [479, 435], [485, 484], [486, 512], [486, 482], [487, 486], [489, 485], [489, 487], [490, 489], [492, 490], [494, 493], [495, 494], [497, 465], [497, 245], [497, 496], [498, 497], [500, 499], [506, 489], [507, 506], [512, 482], [512, 512], [513, 512], [513, 482], [514, 513], [514, 4], [515, 514], [519, 518], [521, 479], [523, 522], [526, 524], [526, 550], [527, 548], [527, 523], [528, 551], [530, 528], [533, 532], [534, 533], [536, 535], [537, 536], [539, 538], [539, 245], [539, 465], [540, 539], [542, 541], [543, 541], [544, 543], [548, 548], [548, 523], [549, 549], [549, 521], [550, 524], [550, 550], [551, 524], [551, 550], [552, 4], [552, 551], [553, 552], [557, 556], [558, 554], [558, 585], [559, 558], [561, 557], [561, 559], [562, 585], [562, 554], [563, 561], [564, 559], [566, 564], [569, 568], [570, 569], [572, 571], [573, 572], [575, 465], [575, 245], [575, 574], [576, 575], [578, 577], [579, 577], [580, 579], [584, 549], [584, 521], [584, 584], [585, 554], [585, 585], [586, 585], [586, 554], [587, 4], [587, 586], [588, 587], [589, 307], [589, 78], [589, 8], [590, 308], [590, 79], [590, 7], [592, 591], [594, 584], [594, 549], [594, 521], [596, 590], [597, 589], [598, 5], [599, 6], [600, 3], [601, 594], [602, 601], [603, 596], [604, 597], [606, 595], [609, 600], [615, 611]]}
int unblock(int sk) { int r = fcntl(sk, F_GETFL); return (r < 0) ? r : fcntl(sk, F_SETFL, r | O_NONBLOCK); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4013FB", "function_addr": 4199419, "binary_name": "7a36795343989adf26b2fa23113bdb254341bb485ec7f2c889a478e63297145e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+fd], edi"], [4, "mov eax, [rbp+fd]"], [5, "mov esi, 3"], [6, "mov edi, eax"], [7, "mov eax, 0"], [8, "call _fcntl"], [9, "mov [rbp+var_4], eax"], [10, "cmp [rbp+var_4], 0"], [11, "js short loc_401441"], [12, "mov eax, [rbp+var_4]"], [13, "or ah, 8"], [14, "mov edx, eax"], [15, "mov eax, [rbp+fd]"], [16, "mov esi, 4"], [17, "mov edi, eax"], [18, "mov eax, 0"], [19, "call _fcntl"], [20, "jmp short locret_401444"], [21, "mov eax, [rbp+var_4]"], [22, "leave"], [23, "retn"]], "data_dep": [[4, 3], [6, 4], [9, 8], [10, 9], [11, 10], [12, 9], [13, 12], [14, 13], [15, 3], [17, 15], [21, 9], [23, 19], [23, 21]]}
void /* PRIVATE */ png_handle_PLTE(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) { png_color palette[PNG_MAX_PALETTE_LENGTH]; int num, i; #ifdef PNG_POINTER_INDEXING_SUPPORTED png_colorp pal_ptr; #endif png_debug(1, "in png_handle_PLTE"); if (!(png_ptr->mode & PNG_HAVE_IHDR)) png_error(png_ptr, "Missing IHDR before PLTE"); else if (png_ptr->mode & PNG_HAVE_IDAT) { png_warning(png_ptr, "Invalid PLTE after IDAT"); png_crc_finish(png_ptr, length); return; } else if (png_ptr->mode & PNG_HAVE_PLTE) png_error(png_ptr, "Duplicate PLTE chunk"); png_ptr->mode |= PNG_HAVE_PLTE; if (!(png_ptr->color_type&PNG_COLOR_MASK_COLOR)) { png_warning(png_ptr, "Ignoring PLTE chunk in grayscale PNG"); png_crc_finish(png_ptr, length); return; } #ifndef PNG_READ_OPT_PLTE_SUPPORTED if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) { png_crc_finish(png_ptr, length); return; } #endif if (length > 3*PNG_MAX_PALETTE_LENGTH || length % 3) { if (png_ptr->color_type != PNG_COLOR_TYPE_PALETTE) { png_warning(png_ptr, "Invalid palette chunk"); png_crc_finish(png_ptr, length); return; } else { png_error(png_ptr, "Invalid palette chunk"); } } num = (int)length / 3; #ifdef PNG_POINTER_INDEXING_SUPPORTED for (i = 0, pal_ptr = palette; i < num; i++, pal_ptr++) { png_byte buf[3]; png_crc_read(png_ptr, buf, 3); pal_ptr->red = buf[0]; pal_ptr->green = buf[1]; pal_ptr->blue = buf[2]; } #else for (i = 0; i < num; i++) { png_byte buf[3]; png_crc_read(png_ptr, buf, 3); /* Don't depend upon png_color being any order */ palette[i].red = buf[0]; palette[i].green = buf[1]; palette[i].blue = buf[2]; } #endif /* If we actually need the PLTE chunk (ie for a paletted image), we do * whatever the normal CRC configuration tells us. However, if we * have an RGB image, the PLTE can be considered ancillary, so * we will act as though it is. */ #ifndef PNG_READ_OPT_PLTE_SUPPORTED if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) #endif { png_crc_finish(png_ptr, 0); } #ifndef PNG_READ_OPT_PLTE_SUPPORTED else if (png_crc_error(png_ptr)) /* Only if we have a CRC error */ { /* If we don't want to use the data from an ancillary chunk, * we have two options: an error abort, or a warning and we * ignore the data in this chunk (which should be OK, since * it's considered ancillary for a RGB or RGBA image). */ if (!(png_ptr->flags & PNG_FLAG_CRC_ANCILLARY_USE)) { if (png_ptr->flags & PNG_FLAG_CRC_ANCILLARY_NOWARN) { png_chunk_benign_error(png_ptr, "CRC error"); } else { png_chunk_warning(png_ptr, "CRC error"); return; } } /* Otherwise, we (optionally) emit a warning and use the chunk. */ else if (!(png_ptr->flags & PNG_FLAG_CRC_ANCILLARY_NOWARN)) { png_chunk_warning(png_ptr, "CRC error"); } } #endif png_set_PLTE(png_ptr, info_ptr, palette, num); #ifdef PNG_READ_tRNS_SUPPORTED if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) { if (info_ptr != NULL && (info_ptr->valid & PNG_INFO_tRNS)) { if (png_ptr->num_trans > (png_uint_16)num) { png_warning(png_ptr, "Truncating incorrect tRNS chunk length"); png_ptr->num_trans = (png_uint_16)num; } if (info_ptr->num_trans > (png_uint_16)num) { png_warning(png_ptr, "Truncating incorrect info tRNS chunk length"); info_ptr->num_trans = (png_uint_16)num; } } } #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4248B5", "function_addr": 4343989, "binary_name": "fffb6272767da13c39d1d18926358bd63f012dd0292202aa9c26bfad4d90e94a.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 358h"], [1, "mov [rsp+358h+var_340], rdi"], [2, "mov [rsp+358h+var_348], rsi"], [3, "mov [rsp+358h+var_34C], edx"], [4, "mov rax, [rsp+358h+var_340]"], [5, "mov eax, [rax+11Ch]"], [6, "and eax, 1"], [7, "test eax, eax"], [8, "jnz short loc_4248F0"], [9, "mov rax, [rsp+358h+var_340]"], [10, "mov esi, offset aMissingIhdrBef_1"], [11, "mov rdi, rax"], [12, "call sub_410BB9"], [13, "jmp short loc_424950"], [14, "mov rax, [rsp+358h+var_340]"], [15, "mov eax, [rax+11Ch]"], [16, "and eax, 4"], [17, "test eax, eax"], [18, "jz short loc_42492C"], [19, "mov rax, [rsp+358h+var_340]"], [20, "mov esi, offset aInvalidPlteAft"], [21, "mov rdi, rax"], [22, "call sub_410EBB"], [23, "mov edx, [rsp+358h+var_34C]"], [24, "mov rax, [rsp+358h+var_340]"], [25, "mov esi, edx"], [26, "mov rdi, rax"], [27, "call sub_423E43"], [28, "jmp loc_424BA1"], [29, "mov rax, [rsp+358h+var_340]"], [30, "mov eax, [rax+11Ch]"], [31, "and eax, 2"], [32, "test eax, eax"], [33, "jz short loc_424950"], [34, "mov rax, [rsp+358h+var_340]"], [35, "mov esi, offset aDuplicatePlteC"], [36, "mov rdi, rax"], [37, "call sub_410BB9"], [38, "mov rax, [rsp+358h+var_340]"], [39, "mov eax, [rax+11Ch]"], [40, "or eax, 2"], [41, "mov edx, eax"], [42, "mov rax, [rsp+358h+var_340]"], [43, "mov [rax+11Ch], edx"], [44, "mov rax, [rsp+358h+var_340]"], [45, "movzx eax, byte ptr [rax+24Fh]"], [46, "movzx eax, al"], [47, "and eax, 2"], [48, "test eax, eax"], [49, "jnz short loc_4249AB"], [50, "mov rax, [rsp+358h+var_340]"], [51, "mov esi, offset aIgnoringPlteCh"], [52, "mov rdi, rax"], [53, "call sub_410EBB"], [54, "mov edx, [rsp+358h+var_34C]"], [55, "mov rax, [rsp+358h+var_340]"], [56, "mov esi, edx"], [57, "mov rdi, rax"], [58, "call sub_423E43"], [59, "jmp loc_424BA1"], [60, "cmp [rsp+358h+var_34C], 300h"], [61, "ja short loc_4249D8"], [62, "mov ecx, [rsp+358h+var_34C]"], [63, "mov edx, ecx"], [64, "mov eax, 0AAAAAAABh"], [65, "imul rax, rdx"], [66, "shr rax, 20h"], [67, "shr eax, 1"], [68, "mov edx, eax"], [69, "add edx, edx"], [70, "add edx, eax"], [71, "mov eax, ecx"], [72, "sub eax, edx"], [73, "test eax, eax"], [74, "jz short loc_424A24"], [75, "mov rax, [rsp+358h+var_340]"], [76, "movzx eax, byte ptr [rax+24Fh]"], [77, "cmp al, 3"], [78, "jz short loc_424A12"], [79, "mov rax, [rsp+358h+var_340]"], [80, "mov esi, offset aInvalidPalette"], [81, "mov rdi, rax"], [82, "call sub_410EBB"], [83, "mov edx, [rsp+358h+var_34C]"], [84, "mov rax, [rsp+358h+var_340]"], [85, "mov esi, edx"], [86, "mov rdi, rax"], [87, "call sub_423E43"], [88, "jmp loc_424BA1"], [89, "mov rax, [rsp+358h+var_340]"], [90, "mov esi, offset aInvalidPalette"], [91, "mov rdi, rax"], [92, "call sub_410BB9"], [93, "mov eax, [rsp+358h+var_34C]"], [94, "movsxd rdx, eax"], [95, "imul rdx, 55555556h"], [96, "shr rdx, 20h"], [97, "sar eax, 1Fh"], [98, "mov ecx, eax"], [99, "mov eax, edx"], [100, "sub eax, ecx"], [101, "mov [rsp+358h+var_1C], eax"], [102, "mov [rsp+358h+var_C], 0"], [103, "lea rax, [rsp+358h+var_328]"], [104, "mov [rsp+358h+var_18], rax"], [105, "jmp short loc_424ABA"], [106, "lea rcx, [rsp+358h+var_32B]"], [107, "mov rax, [rsp+358h+var_340]"], [108, "mov edx, 3"], [109, "mov rsi, rcx"], [110, "mov rdi, rax"], [111, "call sub_423DEC"], [112, "movzx edx, [rsp+358h+var_32B]"], [113, "mov rax, [rsp+358h+var_18]"], [114, "mov [rax], dl"], [115, "movzx edx, [rsp+358h+var_32A]"], [116, "mov rax, [rsp+358h+var_18]"], [117, "mov [rax+1], dl"], [118, "movzx edx, [rsp+358h+var_329]"], [119, "mov rax, [rsp+358h+var_18]"], [120, "mov [rax+2], dl"], [121, "add [rsp+358h+var_C], 1"], [122, "add [rsp+358h+var_18], 3"], [123, "mov eax, [rsp+358h+var_C]"], [124, "cmp eax, [rsp+358h+var_1C]"], [125, "jl short loc_424A60"], [126, "mov rax, [rsp+358h+var_340]"], [127, "mov esi, 0"], [128, "mov rdi, rax"], [129, "call sub_423E43"], [130, "mov ecx, [rsp+358h+var_1C]"], [131, "lea rdx, [rsp+358h+var_328]"], [132, "mov rsi, [rsp+358h+var_348]"], [133, "mov rax, [rsp+358h+var_340]"], [134, "mov rdi, rax"], [135, "call sub_42C753"], [136, "mov rax, [rsp+358h+var_340]"], [137, "movzx eax, byte ptr [rax+24Fh]"], [138, "cmp al, 3"], [139, "jnz loc_424BA1"], [140, "cmp [rsp+358h+var_348], 0"], [141, "jz loc_424BA1"], [142, "mov rax, [rsp+358h+var_348]"], [143, "mov eax, [rax+8]"], [144, "and eax, 10h"], [145, "test eax, eax"], [146, "jz short loc_424BA1"], [147, "mov rax, [rsp+358h+var_340]"], [148, "movzx eax, word ptr [rax+248h]"], [149, "mov edx, [rsp+358h+var_1C]"], [150, "cmp ax, dx"], [151, "jbe short loc_424B68"], [152, "mov rax, [rsp+358h+var_340]"], [153, "mov esi, offset aTruncatingInco"], [154, "mov rdi, rax"], [155, "call sub_410EBB"], [156, "mov eax, [rsp+358h+var_1C]"], [157, "mov edx, eax"], [158, "mov rax, [rsp+358h+var_340]"], [159, "mov [rax+248h], dx"], [160, "mov rax, [rsp+358h+var_348]"], [161, "movzx eax, word ptr [rax+22h]"], [162, "mov edx, [rsp+358h+var_1C]"], [163, "cmp ax, dx"], [164, "jbe short loc_424BA1"], [165, "mov rax, [rsp+358h+var_340]"], [166, "mov esi, offset aTruncatingInco_0"], [167, "mov rdi, rax"], [168, "call sub_410EBB"], [169, "mov eax, [rsp+358h+var_1C]"], [170, "mov edx, eax"], [171, "mov rax, [rsp+358h+var_348]"], [172, "mov [rax+22h], dx"], [173, "add rsp, 358h"], [174, "retn"]], "data_dep": [[4, 1], [5, 4], [6, 5], [7, 6], [8, 7], [9, 1], [11, 9], [14, 1], [15, 14], [16, 15], [17, 16], [18, 17], [19, 1], [21, 19], [23, 3], [24, 1], [25, 23], [26, 24], [29, 1], [30, 29], [31, 30], [32, 31], [33, 32], [34, 1], [36, 34], [38, 1], [39, 38], [40, 39], [41, 40], [42, 1], [43, 41], [43, 42], [44, 1], [45, 43], [45, 44], [46, 45], [47, 46], [48, 47], [49, 48], [50, 1], [52, 50], [54, 3], [55, 1], [56, 54], [57, 55], [60, 3], [61, 60], [62, 3], [63, 62], [65, 63], [65, 64], [66, 65], [67, 66], [68, 67], [69, 68], [70, 67], [70, 69], [71, 62], [72, 70], [72, 71], [73, 72], [74, 73], [75, 1], [76, 43], [76, 75], [77, 76], [78, 77], [79, 1], [81, 79], [83, 3], [84, 1], [85, 83], [86, 84], [89, 1], [91, 89], [93, 3], [94, 93], [95, 94], [96, 95], [97, 93], [98, 97], [99, 96], [100, 98], [100, 99], [101, 100], [103, 100], [104, 103], [106, 106], [106, 98], [107, 1], [109, 106], [110, 107], [113, 104], [113, 122], [114, 113], [114, 112], [116, 104], [116, 122], [117, 116], [117, 115], [119, 104], [119, 122], [120, 119], [120, 118], [121, 121], [121, 102], [122, 104], [122, 122], [123, 121], [123, 102], [124, 101], [124, 123], [125, 124], [126, 1], [128, 126], [130, 101], [131, 118], [131, 96], [132, 2], [133, 1], [134, 133], [136, 1], [137, 120], [137, 117], [137, 114], [137, 43], [137, 136], [138, 137], [139, 138], [140, 2], [141, 140], [142, 2], [143, 142], [143, 117], [143, 114], [143, 43], [143, 120], [144, 143], [145, 144], [146, 145], [147, 1], [148, 120], [148, 147], [148, 117], [148, 114], [148, 43], [149, 101], [150, 148], [150, 149], [151, 150], [152, 1], [154, 152], [156, 101], [157, 156], [158, 1], [159, 157], [159, 158], [160, 2], [161, 159], [161, 120], [161, 117], [161, 160], [161, 114], [161, 43], [162, 101], [163, 161], [163, 162], [164, 163], [165, 1], [167, 165], [169, 101], [170, 169], [171, 2], [172, 170], [172, 171], [173, 0], [174, 87], [174, 171], [174, 137], [174, 27], [174, 161], [174, 145], [174, 58]]}
static int reloc_prog_func_and_line_info(const struct bpf_object *obj, struct bpf_program *main_prog, const struct bpf_program *prog) { int err; /* no .BTF.ext relocation if .BTF.ext is missing or kernel doesn't * supprot func/line info */ if (!obj->btf_ext || !kernel_supports(FEAT_BTF_FUNC)) return 0; /* only attempt func info relocation if main program's func_info * relocation was successful */ if (main_prog != prog && !main_prog->func_info) goto line_info; err = adjust_prog_btf_ext_info(obj, prog, &obj->btf_ext->func_info, &main_prog->func_info, &main_prog->func_info_cnt, &main_prog->func_info_rec_size); if (err) { if (err != -ENOENT) { pr_warn("prog '%s': error relocating .BTF.ext function info: %d\n", prog->name, err); return err; } if (main_prog->func_info) { /* * Some info has already been found but has problem * in the last btf_ext reloc. Must have to error out. */ pr_warn("prog '%s': missing .BTF.ext function info.\n", prog->name); return err; } /* Have problem loading the very first info. Ignore the rest. */ pr_warn("prog '%s': missing .BTF.ext function info for the main program, skipping all of .BTF.ext func info.\n", prog->name); } line_info: /* don't relocate line info if main program's relocation failed */ if (main_prog != prog && !main_prog->line_info) return 0; err = adjust_prog_btf_ext_info(obj, prog, &obj->btf_ext->line_info, &main_prog->line_info, &main_prog->line_info_cnt, &main_prog->line_info_rec_size); if (err) { if (err != -ENOENT) { pr_warn("prog '%s': error relocating .BTF.ext line info: %d\n", prog->name, err); return err; } if (main_prog->line_info) { /* * Some info has already been found but has problem * in the last btf_ext reloc. Must have to error out. */ pr_warn("prog '%s': missing .BTF.ext line info.\n", prog->name); return err; } /* Have problem loading the very first info. Ignore the rest. */ pr_warn("prog '%s': missing .BTF.ext line info for the main program, skipping all of .BTF.ext line info.\n", prog->name); } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_418F76", "function_addr": 4296566, "binary_name": "feda8be2137e1ca53e8082ecae6cfbea19ddaf0e7963aa620ad58be1c3aa369b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, [rbp+var_18]"], [7, "mov rax, [rax+180h]"], [8, "test rax, rax"], [9, "jz short loc_418FAB"], [10, "mov edi, 3"], [11, "call sub_413D2B"], [12, "xor eax, 1"], [13, "test al, al"], [14, "jz short loc_418FB5"], [15, "mov eax, 0"], [16, "jmp locret_4191B2"], [17, "mov rax, [rbp+var_20]"], [18, "cmp rax, [rbp+var_28]"], [19, "jz short loc_418FD3"], [20, "mov rax, [rbp+var_20]"], [21, "mov rax, [rax+0B0h]"], [22, "test rax, rax"], [23, "jz loc_4190B0"], [24, "mov rax, [rbp+var_20]"], [25, "lea r8, [rax+0B8h]"], [26, "mov rax, [rbp+var_20]"], [27, "lea rdi, [rax+0BCh]"], [28, "mov rax, [rbp+var_20]"], [29, "lea rcx, [rax+0B0h]"], [30, "mov rax, [rbp+var_18]"], [31, "mov rax, [rax+180h]"], [32, "lea rdx, [rax+8]"], [33, "mov rsi, [rbp+var_28]"], [34, "mov rax, [rbp+var_18]"], [35, "mov r9, r8"], [36, "mov r8, rdi"], [37, "mov rdi, rax"], [38, "call sub_418C97"], [39, "mov [rbp+var_4], eax"], [40, "cmp [rbp+var_4], 0"], [41, "jz loc_4190B3"], [42, "cmp [rbp+var_4], 0FFFFFFFEh"], [43, "jz short loc_419058"], [44, "mov rax, [rbp+var_28]"], [45, "mov rax, [rax+30h]"], [46, "mov edx, [rbp+var_4]"], [47, "mov ecx, edx"], [48, "mov rdx, rax"], [49, "mov esi, offset aLibbpfProgSErr"], [50, "mov edi, 0"], [51, "mov eax, 0"], [52, "call sub_409E9F"], [53, "mov eax, [rbp+var_4]"], [54, "jmp locret_4191B2"], [55, "mov rax, [rbp+var_20]"], [56, "mov rax, [rax+0B0h]"], [57, "test rax, rax"], [58, "jz short loc_41908F"], [59, "mov rax, [rbp+var_28]"], [60, "mov rax, [rax+30h]"], [61, "mov rdx, rax"], [62, "mov esi, offset aLibbpfProgSMis"], [63, "mov edi, 0"], [64, "mov eax, 0"], [65, "call sub_409E9F"], [66, "mov eax, [rbp+var_4]"], [67, "jmp locret_4191B2"], [68, "mov rax, [rbp+var_28]"], [69, "mov rax, [rax+30h]"], [70, "mov rdx, rax"], [71, "mov esi, offset aLibbpfProgSMis_0"], [72, "mov edi, 0"], [73, "mov eax, 0"], [74, "call sub_409E9F"], [75, "jmp short loc_4190B4"], [76, "nop"], [77, "jmp short loc_4190B4"], [78, "nop"], [79, "mov rax, [rbp+var_20]"], [80, "cmp rax, [rbp+var_28]"], [81, "jz short loc_4190D8"], [82, "mov rax, [rbp+var_20]"], [83, "mov rax, [rax+0C0h]"], [84, "test rax, rax"], [85, "jnz short loc_4190D8"], [86, "mov eax, 0"], [87, "jmp locret_4191B2"], [88, "mov rax, [rbp+var_20]"], [89, "lea r8, [rax+0C8h]"], [90, "mov rax, [rbp+var_20]"], [91, "lea rdi, [rax+0CCh]"], [92, "mov rax, [rbp+var_20]"], [93, "lea rcx, [rax+0C0h]"], [94, "mov rax, [rbp+var_18]"], [95, "mov rax, [rax+180h]"], [96, "lea rdx, [rax+18h]"], [97, "mov rsi, [rbp+var_28]"], [98, "mov rax, [rbp+var_18]"], [99, "mov r9, r8"], [100, "mov r8, rdi"], [101, "mov rdi, rax"], [102, "call sub_418C97"], [103, "mov [rbp+var_4], eax"], [104, "cmp [rbp+var_4], 0"], [105, "jz loc_4191AD"], [106, "cmp [rbp+var_4], 0FFFFFFFEh"], [107, "jz short loc_41915A"], [108, "mov rax, [rbp+var_28]"], [109, "mov rax, [rax+30h]"], [110, "mov edx, [rbp+var_4]"], [111, "mov ecx, edx"], [112, "mov rdx, rax"], [113, "mov esi, offset aLibbpfProgSErr_0"], [114, "mov edi, 0"], [115, "mov eax, 0"], [116, "call sub_409E9F"], [117, "mov eax, [rbp+var_4]"], [118, "jmp short locret_4191B2"], [119, "mov rax, [rbp+var_20]"], [120, "mov rax, [rax+0C0h]"], [121, "test rax, rax"], [122, "jz short loc_41918E"], [123, "mov rax, [rbp+var_28]"], [124, "mov rax, [rax+30h]"], [125, "mov rdx, rax"], [126, "mov esi, offset aLibbpfProgSMis_1"], [127, "mov edi, 0"], [128, "mov eax, 0"], [129, "call sub_409E9F"], [130, "mov eax, [rbp+var_4]"], [131, "jmp short locret_4191B2"], [132, "mov rax, [rbp+var_28]"], [133, "mov rax, [rax+30h]"], [134, "mov rdx, rax"], [135, "mov esi, offset aLibbpfProgSMis_2"], [136, "mov edi, 0"], [137, "mov eax, 0"], [138, "call sub_409E9F"], [139, "mov eax, 0"], [140, "leave"], [141, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 8], [12, 11], [13, 12], [14, 13], [17, 4], [18, 17], [18, 5], [19, 18], [20, 4], [21, 20], [22, 21], [23, 22], [24, 4], [25, 24], [26, 4], [27, 26], [27, 10], [28, 4], [29, 28], [30, 3], [31, 30], [32, 31], [33, 5], [34, 3], [35, 25], [36, 27], [37, 34], [39, 38], [40, 39], [41, 40], [42, 39], [43, 42], [44, 5], [45, 44], [46, 39], [47, 46], [48, 45], [53, 39], [55, 4], [56, 55], [57, 56], [58, 57], [59, 5], [60, 59], [61, 60], [66, 39], [68, 5], [69, 68], [70, 69], [79, 4], [80, 5], [80, 79], [81, 80], [82, 4], [83, 82], [84, 83], [85, 84], [88, 4], [89, 36], [89, 88], [90, 4], [91, 72], [91, 90], [91, 10], [91, 37], [92, 4], [93, 92], [93, 29], [94, 3], [95, 94], [96, 95], [96, 32], [96, 70], [97, 5], [98, 3], [99, 89], [100, 91], [101, 98], [103, 102], [104, 103], [105, 104], [106, 103], [107, 106], [108, 5], [109, 108], [110, 103], [111, 110], [112, 109], [117, 103], [119, 4], [120, 119], [121, 120], [122, 121], [123, 5], [124, 123], [125, 124], [130, 103], [132, 5], [133, 132], [134, 133], [141, 53], [141, 117], [141, 66], [141, 130], [141, 139], [141, 86], [141, 15]]}
static int load_and_enter_debugger(struct sd_state *state, char *filename) { uint8_t response[8]; uint8_t file[512+(4*sizeof(uint16_t))]; memset(file, 0xff, sizeof(file)); // Load in the debugger stub if (read_file(filename, file, 512)) return 1; sd_mmc_dat4_crc16(file, file+(sizeof(file)-8), sizeof(file)-8); while(1) { int ret; int tries; // Actually enter factory mode (sends CMD63/APPO and waits for response) ret = -1; for (tries=0; ret<0; tries++) { ret = sd_enter_factory_mode(state, 0); if (-1 == ret) printf("Couldn't enter factory mode, trying again\n"); } // Couldn't enter factory mode, abort if (-1 == ret) return 1; xmit_mmc_dat4(state, file, sizeof(file)); sd_toggle_clk(state, 8); //rcvr_mmc_cmd(state, response, 1); //printf("Immediate code-load response: %02x\n", response[0]); for (tries=0; tries<2; tries++) { if (-1 != rcvr_mmc_cmd_start(state, 50)) break; usleep(50000); } // Couldn't enter debugger, try again if (-1 == rcvr_mmc_cmd_start(state, 32)) { printf("Never got start-of-data command from debugger\n"); continue; } rcvr_mmc_cmd(state, response, sizeof(response)); break; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405CC0", "function_addr": 4218048, "binary_name": "a2460b8f783498371f2bba9d16c5d85a8b8d9490a9973b0156d824eb54dd785f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 230h"], [3, "mov [rbp+var_228], rdi"], [4, "mov [rbp+var_230], rsi"], [5, "lea rax, [rbp+s]"], [6, "mov edx, 208h"], [7, "mov esi, 0FFh"], [8, "mov rdi, rax"], [9, "call _memset"], [10, "lea rcx, [rbp+s]"], [11, "mov rax, [rbp+var_230]"], [12, "mov edx, 200h"], [13, "mov rsi, rcx"], [14, "mov rdi, rax"], [15, "call sub_405C38"], [16, "test eax, eax"], [17, "jz short loc_405D1E"], [18, "mov eax, 1"], [19, "jmp locret_405E47"], [20, "lea rax, [rbp+s]"], [21, "add rax, 200h"], [22, "lea rcx, [rbp+s]"], [23, "mov edx, 200h"], [24, "mov rsi, rax"], [25, "mov rdi, rcx"], [26, "call sub_405088"], [27, "mov [rbp+var_4], 0FFFFFFFFh"], [28, "mov [rbp+var_8], 0"], [29, "jmp short loc_405D7D"], [30, "mov rax, [rbp+var_228]"], [31, "mov esi, 0"], [32, "mov rdi, rax"], [33, "call sub_404E94"], [34, "mov [rbp+var_4], eax"], [35, "cmp [rbp+var_4], 0FFFFFFFFh"], [36, "jnz short loc_405D79"], [37, "mov edi, offset aCouldnTEnterFa"], [38, "call _puts"], [39, "add [rbp+var_8], 1"], [40, "cmp [rbp+var_4], 0"], [41, "js short loc_405D52"], [42, "cmp [rbp+var_4], 0FFFFFFFFh"], [43, "jnz short loc_405D93"], [44, "mov eax, 1"], [45, "jmp locret_405E47"], [46, "lea rcx, [rbp+s]"], [47, "mov rax, [rbp+var_228]"], [48, "mov edx, 208h"], [49, "mov rsi, rcx"], [50, "mov rdi, rax"], [51, "call sub_402E5F"], [52, "mov rax, [rbp+var_228]"], [53, "mov esi, 8"], [54, "mov rdi, rax"], [55, "call sub_4029F7"], [56, "mov [rbp+var_8], 0"], [57, "jmp short loc_405DF5"], [58, "mov rax, [rbp+var_228]"], [59, "mov esi, 32h "], [60, "mov rdi, rax"], [61, "call sub_4031C2"], [62, "cmp eax, 0FFFFFFFFh"], [63, "jnz short loc_405DFD"], [64, "mov edi, 0C350h"], [65, "call _usleep"], [66, "add [rbp+var_8], 1"], [67, "cmp [rbp+var_8], 1"], [68, "jle short loc_405DCE"], [69, "jmp short loc_405DFE"], [70, "nop"], [71, "mov rax, [rbp+var_228]"], [72, "mov esi, 20h "], [73, "mov rdi, rax"], [74, "call sub_4031C2"], [75, "cmp eax, 0FFFFFFFFh"], [76, "jnz short loc_405E26"], [77, "mov edi, offset aNeverGotStartO"], [78, "call _puts"], [79, "jmp loc_405D42"], [80, "lea rcx, [rbp+var_10]"], [81, "mov rax, [rbp+var_228]"], [82, "mov edx, 8"], [83, "mov rsi, rcx"], [84, "mov rdi, rax"], [85, "call sub_40377A"], [86, "nop"], [87, "mov eax, 0"], [88, "leave"], [89, "retn"]], "data_dep": [[8, 5], [11, 4], [13, 10], [14, 11], [16, 15], [17, 16], [20, 16], [21, 20], [22, 10], [24, 21], [25, 22], [30, 3], [32, 30], [34, 33], [35, 34], [36, 35], [39, 39], [39, 28], [40, 34], [40, 27], [41, 40], [42, 34], [42, 27], [43, 42], [46, 22], [46, 46], [47, 3], [49, 46], [50, 47], [52, 3], [54, 52], [58, 3], [60, 58], [62, 61], [63, 62], [66, 66], [66, 56], [67, 66], [67, 56], [68, 67], [71, 3], [73, 71], [75, 74], [76, 75], [80, 46], [81, 3], [83, 80], [84, 81], [89, 18], [89, 87], [89, 44]]}
static void doc_exec_scope(const struct doc *dc, struct doc_state *st) { st->st_stats.nlines = 0; doc_exec1(dc->dc_doc, st); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407CF0", "function_addr": 4226288, "binary_name": "52717776acda8a7daffd4b2004e65afc2870dcccd317c12ec9c51d6ff44b5c63.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rax, [rbp+var_10]"], [6, "mov dword ptr [rax+64h], 0"], [7, "mov rax, [rbp+var_8]"], [8, "mov rax, [rax+18h]"], [9, "mov rdx, [rbp+var_10]"], [10, "mov rsi, rdx"], [11, "mov rdi, rax"], [12, "call sub_406CE3"], [13, "nop"], [14, "leave"], [15, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 3], [8, 7], [8, 6], [9, 4], [10, 9], [11, 8], [15, 12]]}
int spn_value_equal(const SpnValue *lhs, const SpnValue *rhs) { /* first, make sure that we compare values of the same type * (values of different types cannot possibly be equal) */ if (valtype(lhs) != valtype(rhs)) { return 0; } switch (valtype(lhs)) { case SPN_TTAG_NIL: { return 1; /* nil can only be nil */ } case SPN_TTAG_BOOL: { return boolvalue(lhs) == boolvalue(rhs); } case SPN_TTAG_NUMBER: { return numeric_equal(lhs, rhs); } case SPN_TTAG_RAWPTR: { return ptrvalue(lhs) == ptrvalue(rhs); } case SPN_TTAG_OBJECT: { return spn_object_equal(objvalue(lhs), objvalue(rhs)); } default: SHANT_BE_REACHED(); } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "spn_value_equal", "function_addr": 4285882, "binary_name": "473b941682ea09b07b603dfb71d2a7d8480485ec92dc551c93613ac8ed3c5b1d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "call cs:mcount_ptr"], [4, "mov [rbp+var_8], rdi"], [5, "mov [rbp+var_10], rsi"], [6, "mov rax, [rbp+var_8]"], [7, "mov edx, [rax]"], [8, "mov rax, [rbp+var_10]"], [9, "mov eax, [rax]"], [10, "xor eax, edx"], [11, "movzx eax, al"], [12, "test eax, eax"], [13, "jz short loc_4165EF"], [14, "mov eax, 0"], [15, "jmp locret_4166B1"], [16, "mov rax, [rbp+var_8]"], [17, "mov eax, [rax]"], [18, "movzx eax, al"], [19, "cmp eax, 4"], [20, "ja def_416621"], [21, "mov eax, eax"], [22, "lea rdx, ds:0[rax*4]"], [23, "lea rax, jpt_416621"], [24, "mov eax, ds:(jpt_416621 - 42E460h)[rdx+rax]"], [25, "cdqe"], [26, "lea rdx, jpt_416621"], [27, "add rax, rdx"], [28, "jmp rax"], [29, "mov eax, 1"], [30, "jmp locret_4166B1"], [31, "mov rax, [rbp+var_8]"], [32, "mov edx, [rax+8]"], [33, "mov rax, [rbp+var_10]"], [34, "mov eax, [rax+8]"], [35, "cmp edx, eax"], [36, "setz al"], [37, "movzx eax, al"], [38, "jmp short locret_4166B1"], [39, "mov rdx, [rbp+var_10]"], [40, "mov rax, [rbp+var_8]"], [41, "mov rsi, rdx"], [42, "mov rdi, rax"], [43, "call sub_416462"], [44, "jmp short locret_4166B1"], [45, "mov rax, [rbp+var_8]"], [46, "mov rdx, [rax+8]"], [47, "mov rax, [rbp+var_10]"], [48, "mov rax, [rax+8]"], [49, "cmp rdx, rax"], [50, "setz al"], [51, "movzx eax, al"], [52, "jmp short locret_4166B1"], [53, "mov rax, [rbp+var_10]"], [54, "mov rdx, [rax+8]"], [55, "mov rax, [rbp+var_8]"], [56, "mov rax, [rax+8]"], [57, "mov rsi, rdx"], [58, "mov rdi, rax"], [59, "call spn_object_equal"], [60, "jmp short locret_4166B1"], [61, "lea rcx, aSpnValueEqual_0"], [62, "mov edx, 0EDh"], [63, "lea rsi, aSrcApiC"], [64, "lea rdi, aVoidCodePathMu_2"], [65, "call ___assert_fail"], [66, "leave"], [67, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 5], [9, 8], [10, 9], [10, 7], [11, 10], [12, 11], [13, 12], [16, 4], [17, 16], [18, 17], [19, 18], [20, 19], [21, 18], [22, 7], [23, 21], [26, 22], [27, 24], [27, 26], [28, 27], [31, 4], [32, 31], [33, 5], [34, 33], [35, 32], [35, 34], [36, 34], [36, 35], [37, 36], [39, 5], [40, 4], [41, 39], [42, 40], [45, 4], [46, 45], [47, 5], [48, 47], [49, 46], [49, 48], [50, 49], [50, 48], [51, 50], [53, 5], [54, 53], [55, 4], [56, 55], [57, 54], [58, 56], [67, 59], [67, 37], [67, 43], [67, 51], [67, 14], [67, 29]]}
void dev_pic32_uart_reset (cpu_mips_t * cpu, struct vdevice *dev) { struct pic32_uart_data *d = dev->priv_data; d->mode = 0; d->sta = PIC32_USTA_RIDLE | /* Receiver is idle */ PIC32_USTA_TRMT; /* Transmit shift register is empty */ d->txreg = 0; d->rxreg = 0; d->brg = 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406012", "function_addr": 4218898, "binary_name": "88424ee5a5245c37ff242a8659d5e1bc52d42784d25fa569a567fbb8ea10d4c1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_20], rsi"], [4, "mov rax, [rbp+var_20]"], [5, "mov rax, [rax+20h]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_8]"], [8, "mov dword ptr [rax+28h], 0"], [9, "mov rax, [rbp+var_8]"], [10, "mov dword ptr [rax+2Ch], 110h"], [11, "mov rax, [rbp+var_8]"], [12, "mov dword ptr [rax+30h], 0"], [13, "mov rax, [rbp+var_8]"], [14, "mov dword ptr [rax+34h], 0"], [15, "mov rax, [rbp+var_8]"], [16, "mov dword ptr [rax+38h], 0"], [17, "nop"], [18, "pop rbp"], [19, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 6], [10, 9], [11, 6], [12, 11], [13, 6], [14, 13], [15, 6], [16, 15], [18, 0], [19, 15]]}
DUK_EXTERNAL duk_bool_t duk_is_dynamic_buffer(duk_hthread *thr, duk_idx_t idx) { duk_tval *tv; DUK_ASSERT_API_ENTRY(thr); tv = duk_get_tval_or_unused(thr, idx); DUK_ASSERT(tv != NULL); if (DUK_TVAL_IS_BUFFER(tv)) { duk_hbuffer *h = DUK_TVAL_GET_BUFFER(tv); DUK_ASSERT(h != NULL); return (DUK_HBUFFER_HAS_DYNAMIC(h) && !DUK_HBUFFER_HAS_EXTERNAL(h) ? 1 : 0); } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412287", "function_addr": 4268679, "binary_name": "8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov edx, [rbp+var_1C]"], [6, "mov rax, [rbp+var_18]"], [7, "mov esi, edx"], [8, "mov rdi, rax"], [9, "call sub_40D2D8"], [10, "mov [rbp+var_8], rax"], [11, "mov rax, [rbp+var_8]"], [12, "mov eax, [rax]"], [13, "cmp eax, 0Ah"], [14, "jnz short loc_4122F4"], [15, "mov rax, [rbp+var_8]"], [16, "mov rax, [rax+8]"], [17, "mov [rbp+var_10], rax"], [18, "mov rax, [rbp+var_10]"], [19, "mov eax, [rax]"], [20, "mov eax, eax"], [21, "and eax, 80h"], [22, "test rax, rax"], [23, "jz short loc_4122ED"], [24, "mov rax, [rbp+var_10]"], [25, "mov eax, [rax]"], [26, "mov eax, eax"], [27, "and eax, 100h"], [28, "test rax, rax"], [29, "jnz short loc_4122ED"], [30, "mov eax, 1"], [31, "jmp short locret_4122F9"], [32, "mov eax, 0"], [33, "jmp short locret_4122F9"], [34, "mov eax, 0"], [35, "leave"], [36, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 5], [8, 6], [10, 9], [11, 10], [12, 11], [13, 12], [14, 13], [15, 10], [16, 15], [17, 16], [18, 17], [19, 18], [20, 19], [21, 20], [22, 21], [23, 22], [24, 17], [25, 24], [26, 25], [27, 26], [28, 27], [29, 28], [36, 34], [36, 30], [36, 32]]}
void avdtp_sink_register_reporting_category(uint8_t seid){ avdtp_stream_endpoint_t * stream_endpoint = avdtp_stream_endpoint_for_seid(seid, avdtp_sink_context); avdtp_register_reporting_category(stream_endpoint); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44C260", "function_addr": 4506208, "binary_name": "4f50d4a61abfbd8c407aba68361e53a458c52f761b528ded37cf6ddc166819b1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov eax, edi"], [4, "mov [rbp+var_14], al"], [5, "mov rdx, cs:qword_489D20"], [6, "movzx eax, [rbp+var_14]"], [7, "mov rsi, rdx"], [8, "mov edi, eax"], [9, "call sub_4416DE"], [10, "mov [rbp+var_8], rax"], [11, "mov rax, [rbp+var_8]"], [12, "mov rdi, rax"], [13, "call sub_444C17"], [14, "nop"], [15, "leave"], [16, "retn"]], "data_dep": [[4, 3], [6, 4], [7, 5], [8, 6], [10, 9], [11, 10], [12, 11], [16, 13]]}
bool mycss_declaration_state_ident(mycss_entry_t* entry, mycss_token_t* token, bool last_response) { switch (token->type) { case MyCSS_TOKEN_TYPE_WHITESPACE: { break; } case MyCSS_TOKEN_TYPE_COLON: { entry->parser = entry->parser_switch; break; } default: { /* parse error */ entry->parser = mycss_declaration_state_parse_error; return false; } } return true; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4100B9", "function_addr": 4260025, "binary_name": "fae6ec7055d349e9fa0a2e92e40c5a6b2d3d093ec925c965855a0e8611ff28e5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_10], rsi"], [4, "mov eax, edx"], [5, "mov [rbp+var_14], al"], [6, "mov rax, [rbp+var_10]"], [7, "mov eax, [rax]"], [8, "cmp eax, 1"], [9, "jz short loc_41010B"], [10, "cmp eax, 18h"], [11, "jnz short loc_4100F2"], [12, "mov rax, [rbp+var_8]"], [13, "mov rdx, [rax+0A0h]"], [14, "mov rax, [rbp+var_8]"], [15, "mov [rax+98h], rdx"], [16, "jmp short loc_41010C"], [17, "mov rax, [rbp+var_8]"], [18, "mov rdx, offset sub_4103F7"], [19, "mov [rax+98h], rdx"], [20, "mov eax, 0"], [21, "jmp short loc_410111"], [22, "nop"], [23, "mov eax, 1"], [24, "pop rbp"], [25, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 6], [8, 7], [9, 8], [10, 7], [11, 10], [12, 2], [13, 12], [14, 2], [15, 14], [15, 13], [17, 2], [19, 17], [19, 18], [24, 0], [25, 23], [25, 20]]}
static bool IsSpace(int64_t c) { return c == '\n' || c == '\t' || c == '\r' || c == ' '; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406FCC", "function_addr": 4222924, "binary_name": "bd3828dfb34ba781bec33c1de282f318297bb654233245dae251c4e307355d55.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "cmp [rbp+var_8], 0Ah"], [4, "jz short loc_406FF0"], [5, "cmp [rbp+var_8], 9"], [6, "jz short loc_406FF0"], [7, "cmp [rbp+var_8], 0Dh"], [8, "jz short loc_406FF0"], [9, "cmp [rbp+var_8], 20h "], [10, "jnz short loc_406FF7"], [11, "mov eax, 1"], [12, "jmp short loc_406FFC"], [13, "mov eax, 0"], [14, "and eax, 1"], [15, "pop rbp"], [16, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 2], [6, 5], [7, 2], [8, 7], [9, 2], [10, 9], [14, 11], [14, 13], [15, 0], [16, 14]]}
DUK_LOCAL void duk__enc_double(duk_json_enc_ctx *js_ctx) { duk_hthread *thr; duk_context *ctx; duk_tval *tv; duk_double_t d; duk_small_int_t c; duk_small_int_t s; duk_small_uint_t stridx; duk_small_uint_t n2s_flags; duk_hstring *h_str; DUK_ASSERT(js_ctx != NULL); thr = js_ctx->thr; DUK_ASSERT(thr != NULL); ctx = (duk_context *) thr; /* Caller must ensure 'tv' is indeed a double and not a fastint! */ tv = DUK_GET_TVAL_NEGIDX(ctx, -1); DUK_ASSERT(DUK_TVAL_IS_DOUBLE(tv)); d = DUK_TVAL_GET_DOUBLE(tv); c = (duk_small_int_t) DUK_FPCLASSIFY(d); s = (duk_small_int_t) DUK_SIGNBIT(d); DUK_UNREF(s); if (DUK_LIKELY(!(c == DUK_FP_INFINITE || c == DUK_FP_NAN))) { DUK_ASSERT(DUK_ISFINITE(d)); #if defined(DUK_USE_JX) || defined(DUK_USE_JC) /* Negative zero needs special handling in JX/JC because * it would otherwise serialize to '0', not '-0'. */ if (DUK_UNLIKELY(c == DUK_FP_ZERO && s != 0 && (js_ctx->flag_ext_custom_or_compatible))) { duk_push_hstring_stridx(ctx, DUK_STRIDX_MINUS_ZERO); /* '-0' */ } else #endif /* DUK_USE_JX || DUK_USE_JC */ { n2s_flags = 0; /* [ ... number ] -> [ ... string ] */ duk_numconv_stringify(ctx, 10 /*radix*/, 0 /*digits*/, n2s_flags); } h_str = duk_to_hstring(ctx, -1); DUK_ASSERT(h_str != NULL); DUK__EMIT_HSTR(js_ctx, h_str); return; } #if defined(DUK_USE_JX) || defined(DUK_USE_JC) if (!(js_ctx->flags & (DUK_JSON_FLAG_EXT_CUSTOM | DUK_JSON_FLAG_EXT_COMPATIBLE))) { stridx = DUK_STRIDX_LC_NULL; } else if (c == DUK_FP_NAN) { stridx = js_ctx->stridx_custom_nan; } else if (s == 0) { stridx = js_ctx->stridx_custom_posinf; } else { stridx = js_ctx->stridx_custom_neginf; } #else stridx = DUK_STRIDX_LC_NULL; #endif DUK__EMIT_STRIDX(js_ctx, stridx); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43FEF1", "function_addr": 4456177, "binary_name": "3eef51aaf1b7c436a69b2722242bd3a427d13d57fe49c5d2c5815175a4745eea.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_48], rdi"], [4, "cmp [rbp+var_48], 0"], [5, "jnz short loc_43FF13"], [6, "mov esi, offset aAssertionFaile_4078"], [7, "mov edi, 36h "], [8, "call sub_402AA8"], [9, "mov rax, [rbp+var_48]"], [10, "mov rax, [rax]"], [11, "mov [rbp+var_10], rax"], [12, "cmp [rbp+var_10], 0"], [13, "jnz short loc_43FF34"], [14, "mov esi, offset aAssertionFaile_4079"], [15, "mov edi, 36h "], [16, "call sub_402AA8"], [17, "mov rax, [rbp+var_10]"], [18, "mov [rbp+var_18], rax"], [19, "mov rax, [rbp+var_18]"], [20, "mov esi, 0FFFFFFFFh"], [21, "mov rdi, rax"], [22, "call sub_4128F9"], [23, "test eax, eax"], [24, "jnz short loc_43FF60"], [25, "mov esi, offset aAssertionFaile_4080"], [26, "mov edi, 36h "], [27, "call sub_402AA8"], [28, "mov rax, [rbp+var_18]"], [29, "mov rax, [rax+88h]"], [30, "sub rax, 10h"], [31, "mov [rbp+var_20], rax"], [32, "mov rax, [rbp+var_20]"], [33, "mov eax, [rax]"], [34, "test eax, eax"], [35, "jz short loc_43FF8C"], [36, "mov esi, offset aAssertionFaile_4081"], [37, "mov edi, 36h "], [38, "call sub_402AA8"], [39, "mov rax, [rbp+var_20]"], [40, "movsd xmm0, qword ptr [rax+8]"], [41, "movsd [rbp+var_28], xmm0"], [42, "movsd xmm0, [rbp+var_28]"], [43, "movq xmm1, cs:qword_53B8E0"], [44, "andpd xmm0, xmm1"], [45, "ucomisd xmm0, xmm0"], [46, "jp short loc_43FFF5"], [47, "ucomisd xmm0, cs:qword_53B8F0"], [48, "ja short loc_43FFEE"], [49, "comisd xmm0, cs:qword_53B8F8"], [50, "jb short loc_43FFCC"], [51, "mov eax, 4"], [52, "jmp short loc_43FFFA"], [53, "pxor xmm1, xmm1"], [54, "ucomisd xmm0, xmm1"], [55, "jp short loc_43FFE7"], [56, "pxor xmm1, xmm1"], [57, "ucomisd xmm0, xmm1"], [58, "jnz short loc_43FFE7"], [59, "mov eax, 2"], [60, "jmp short loc_43FFFA"], [61, "mov eax, 3"], [62, "jmp short loc_43FFFA"], [63, "mov eax, 1"], [64, "jmp short loc_43FFFA"], [65, "mov eax, 0"], [66, "mov [rbp+var_2C], eax"], [67, "movsd xmm0, [rbp+var_28]"], [68, "movmskpd eax, xmm0"], [69, "and eax, 1"], [70, "mov [rbp+var_30], eax"], [71, "cmp [rbp+var_2C], 1"], [72, "setnz al"], [73, "movzx eax, al"], [74, "test rax, rax"], [75, "jz loc_440117"], [76, "cmp [rbp+var_2C], 0"], [77, "setnz al"], [78, "movzx eax, al"], [79, "test rax, rax"], [80, "jz loc_440117"], [81, "movsd xmm0, [rbp+var_28]"], [82, "movq xmm1, cs:qword_53B8E0"], [83, "andpd xmm1, xmm0"], [84, "movsd xmm0, cs:qword_53B8F0"], [85, "ucomisd xmm0, xmm1"], [86, "jnb short loc_440060"], [87, "mov esi, offset aAssertionFaile_4082"], [88, "mov edi, 36h "], [89, "call sub_402AA8"], [90, "cmp [rbp+var_2C], 2"], [91, "setz al"], [92, "movzx eax, al"], [93, "test rax, rax"], [94, "jz short loc_440085"], [95, "cmp [rbp+var_30], 0"], [96, "setnz al"], [97, "movzx eax, al"], [98, "test rax, rax"], [99, "jz short loc_440085"], [100, "mov eax, 1"], [101, "jmp short loc_44008A"], [102, "mov eax, 0"], [103, "test eax, eax"], [104, "jz short loc_4400B5"], [105, "mov rax, [rbp+var_48]"], [106, "mov eax, [rax+54h]"], [107, "test eax, eax"], [108, "setnz al"], [109, "movzx eax, al"], [110, "test rax, rax"], [111, "jz short loc_4400B5"], [112, "mov rax, [rbp+var_18]"], [113, "mov esi, 3Dh "], [114, "mov rdi, rax"], [115, "call sub_428EC0"], [116, "jmp short loc_4400D7"], [117, "mov [rbp+var_34], 0"], [118, "mov edx, [rbp+var_34]"], [119, "mov rax, [rbp+var_18]"], [120, "mov ecx, edx"], [121, "mov edx, 0"], [122, "mov esi, 0Ah"], [123, "mov rdi, rax"], [124, "call sub_48C025"], [125, "mov rax, [rbp+var_18]"], [126, "mov esi, 0FFFFFFFFh"], [127, "mov rdi, rax"], [128, "call sub_41DC90"], [129, "mov [rbp+var_40], rax"], [130, "cmp [rbp+var_40], 0"], [131, "jnz short loc_440102"], [132, "mov esi, offset aAssertionFaile_4083"], [133, "mov edi, 36h "], [134, "call sub_402AA8"], [135, "mov rdx, [rbp+var_40]"], [136, "mov rax, [rbp+var_48]"], [137, "mov rsi, rdx"], [138, "mov rdi, rax"], [139, "call sub_43F577"], [140, "jmp short locret_44016D"], [141, "mov rax, [rbp+var_48]"], [142, "mov eax, [rax+40h]"], [143, "and eax, 0Ch"], [144, "test eax, eax"], [145, "jnz short loc_44012E"], [146, "mov [rbp+var_4], 0B3h"], [147, "jmp short loc_44015C"], [148, "cmp [rbp+var_2C], 0"], [149, "jnz short loc_440140"], [150, "mov rax, [rbp+var_48]"], [151, "mov eax, [rax+68h]"], [152, "mov [rbp+var_4], eax"], [153, "jmp short loc_44015C"], [154, "cmp [rbp+var_30], 0"], [155, "jnz short loc_440152"], [156, "mov rax, [rbp+var_48]"], [157, "mov eax, [rax+70h]"], [158, "mov [rbp+var_4], eax"], [159, "jmp short loc_44015C"], [160, "mov rax, [rbp+var_48]"], [161, "mov eax, [rax+6Ch]"], [162, "mov [rbp+var_4], eax"], [163, "mov edx, [rbp+var_4]"], [164, "mov rax, [rbp+var_48]"], [165, "mov esi, edx"], [166, "mov rdi, rax"], [167, "call sub_43F806"], [168, "leave"], [169, "retn"]], "data_dep": [[4, 3], [5, 4], [9, 3], [10, 9], [11, 10], [12, 11], [13, 12], [17, 11], [18, 17], [19, 18], [21, 19], [23, 22], [24, 23], [28, 18], [29, 28], [30, 29], [31, 30], [32, 31], [33, 32], [34, 33], [35, 34], [39, 31], [40, 39], [41, 40], [42, 41], [44, 42], [44, 43], [45, 44], [46, 34], [47, 45], [48, 34], [49, 47], [50, 34], [54, 49], [54, 53], [55, 34], [57, 54], [57, 56], [58, 34], [66, 59], [66, 61], [66, 63], [66, 51], [66, 65], [67, 41], [68, 67], [69, 68], [70, 69], [71, 66], [72, 69], [72, 71], [73, 72], [74, 73], [75, 74], [76, 66], [77, 76], [77, 74], [78, 77], [79, 78], [80, 79], [81, 41], [83, 82], [83, 81], [85, 84], [85, 83], [86, 79], [90, 66], [91, 79], [91, 90], [92, 91], [93, 92], [94, 93], [95, 70], [96, 95], [96, 93], [97, 96], [98, 97], [99, 98], [103, 102], [103, 100], [104, 103], [105, 3], [106, 105], [107, 106], [108, 107], [109, 108], [110, 109], [111, 110], [112, 18], [114, 112], [118, 117], [119, 18], [120, 118], [123, 119], [125, 18], [127, 125], [129, 128], [130, 129], [131, 130], [135, 129], [136, 3], [137, 135], [138, 136], [141, 3], [142, 141], [143, 142], [144, 143], [145, 144], [148, 66], [149, 148], [150, 3], [151, 150], [152, 151], [154, 70], [155, 154], [156, 3], [157, 156], [158, 157], [160, 3], [161, 160], [162, 161], [163, 152], [163, 158], [163, 162], [163, 146], [164, 3], [165, 163], [166, 164], [169, 167], [169, 139]]}
static pj_bool_t handle_up_down(cli_telnet_sess *sess, pj_bool_t is_up) { pj_str_t *history; PJ_ASSERT_RETURN(sess, PJ_FALSE); history = get_prev_history(sess, is_up); if (history) { pj_str_t send_data; char str[PJ_CLI_MAX_CMDBUF]; enum { MOVE_CURSOR_LEFT = 0x08, CLEAR_CHAR = 0x20 }; send_data.ptr = str; send_data.slen = 0; /* Move cursor position to the beginning of line */ if (sess->rcmd->cur_pos > 0) { pj_memset(send_data.ptr, MOVE_CURSOR_LEFT, sess->rcmd->cur_pos); send_data.slen = sess->rcmd->cur_pos; } if (sess->rcmd->len > (unsigned)history->slen) { /* Clear the command currently shown*/ unsigned buf_len = sess->rcmd->len; pj_memset(&send_data.ptr[send_data.slen], CLEAR_CHAR, buf_len); send_data.slen += buf_len; /* Move cursor position to the beginning of line */ pj_memset(&send_data.ptr[send_data.slen], MOVE_CURSOR_LEFT, buf_len); send_data.slen += buf_len; } /* Send data */ pj_strcat(&send_data, history); telnet_sess_send(sess, &send_data); pj_ansi_strncpy((char*)&sess->rcmd->rbuf, history->ptr, history->slen); sess->rcmd->rbuf[history->slen] = 0; sess->rcmd->len = (unsigned)history->slen; sess->rcmd->cur_pos = sess->rcmd->len; return PJ_TRUE; } return PJ_FALSE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40AF16", "function_addr": 4239126, "binary_name": "98c1b283e9476c8bb95f42e4df7f4804ca1f7d9923e0f8202de3a9c87c2fc447.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 230h"], [3, "mov [rbp+var_228], rdi"], [4, "mov [rbp+var_22C], esi"], [5, "cmp [rbp+var_228], 0"], [6, "jnz short loc_40AF65"], [7, "cmp [rbp+var_228], 0"], [8, "jnz short loc_40AF5B"], [9, "mov ecx, offset aHandleUpDown"], [10, "mov edx, 474h"], [11, "mov esi, offset aSrcPjlibUtilCl_1"], [12, "mov edi, offset aSess_1"], [13, "call ___assert_fail"], [14, "mov eax, 0"], [15, "jmp locret_40B14A"], [16, "mov edx, [rbp+var_22C]"], [17, "mov rax, [rbp+var_228]"], [18, "mov esi, edx"], [19, "mov rdi, rax"], [20, "call sub_409630"], [21, "mov [rbp+var_8], rax"], [22, "cmp [rbp+var_8], 0"], [23, "jz loc_40B145"], [24, "lea rax, [rbp+var_220]"], [25, "mov [rbp+var_20], rax"], [26, "mov [rbp+var_18], 0"], [27, "mov rax, [rbp+var_228]"], [28, "mov rax, [rax+1180h]"], [29, "mov eax, [rax+204h]"], [30, "test eax, eax"], [31, "jz short loc_40AFF7"], [32, "mov rax, [rbp+var_228]"], [33, "mov rax, [rax+1180h]"], [34, "mov eax, [rax+204h]"], [35, "mov edx, eax"], [36, "mov rax, [rbp+var_20]"], [37, "mov esi, 8"], [38, "mov rdi, rax"], [39, "call sub_4091C7"], [40, "mov rax, [rbp+var_228]"], [41, "mov rax, [rax+1180h]"], [42, "mov eax, [rax+204h]"], [43, "mov eax, eax"], [44, "mov [rbp+var_18], rax"], [45, "mov rax, [rbp+var_228]"], [46, "mov rax, [rax+1180h]"], [47, "mov edx, [rax+200h]"], [48, "mov rax, [rbp+var_8]"], [49, "mov rax, [rax+8]"], [50, "cmp edx, eax"], [51, "jbe short loc_40B086"], [52, "mov rax, [rbp+var_228]"], [53, "mov rax, [rax+1180h]"], [54, "mov eax, [rax+200h]"], [55, "mov [rbp+var_C], eax"], [56, "mov eax, [rbp+var_C]"], [57, "mov rcx, [rbp+var_20]"], [58, "mov rdx, [rbp+var_18]"], [59, "add rcx, rdx"], [60, "mov rdx, rax"], [61, "mov esi, 20h "], [62, "mov rdi, rcx"], [63, "call sub_4091C7"], [64, "mov rdx, [rbp+var_18]"], [65, "mov eax, [rbp+var_C]"], [66, "add rax, rdx"], [67, "mov [rbp+var_18], rax"], [68, "mov eax, [rbp+var_C]"], [69, "mov rcx, [rbp+var_20]"], [70, "mov rdx, [rbp+var_18]"], [71, "add rcx, rdx"], [72, "mov rdx, rax"], [73, "mov esi, 8"], [74, "mov rdi, rcx"], [75, "call sub_4091C7"], [76, "mov rdx, [rbp+var_18]"], [77, "mov eax, [rbp+var_C]"], [78, "add rax, rdx"], [79, "mov [rbp+var_18], rax"], [80, "mov rdx, [rbp+var_8]"], [81, "lea rax, [rbp+var_20]"], [82, "mov rsi, rdx"], [83, "mov rdi, rax"], [84, "call sub_440483"], [85, "lea rdx, [rbp+var_20]"], [86, "mov rax, [rbp+var_228]"], [87, "mov rsi, rdx"], [88, "mov rdi, rax"], [89, "call sub_40B236"], [90, "mov rax, [rbp+var_8]"], [91, "mov rax, [rax+8]"], [92, "mov rsi, rax"], [93, "mov rax, [rbp+var_8]"], [94, "mov rax, [rax]"], [95, "mov rdx, [rbp+var_228]"], [96, "mov rdx, [rdx+1180h]"], [97, "mov rcx, rdx"], [98, "mov rdx, rsi"], [99, "mov rsi, rax"], [100, "mov rdi, rcx"], [101, "call _strncpy"], [102, "mov rax, [rbp+var_228]"], [103, "mov rdx, [rax+1180h]"], [104, "mov rax, [rbp+var_8]"], [105, "mov rax, [rax+8]"], [106, "mov byte ptr [rdx+rax], 0"], [107, "mov rax, [rbp+var_8]"], [108, "mov rdx, [rax+8]"], [109, "mov rax, [rbp+var_228]"], [110, "mov rax, [rax+1180h]"], [111, "mov [rax+200h], edx"], [112, "mov rax, [rbp+var_228]"], [113, "mov rdx, [rax+1180h]"], [114, "mov rax, [rbp+var_228]"], [115, "mov rax, [rax+1180h]"], [116, "mov edx, [rdx+200h]"], [117, "mov [rax+204h], edx"], [118, "mov eax, 1"], [119, "jmp short locret_40B14A"], [120, "mov eax, 0"], [121, "leave"], [122, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 3], [8, 7], [16, 4], [17, 3], [18, 16], [19, 17], [21, 20], [22, 21], [23, 22], [24, 20], [25, 24], [27, 3], [28, 27], [29, 28], [30, 29], [31, 30], [32, 3], [33, 32], [34, 33], [35, 34], [36, 25], [38, 36], [40, 3], [41, 40], [42, 41], [43, 42], [44, 43], [45, 3], [46, 45], [47, 46], [48, 21], [49, 48], [50, 47], [50, 49], [51, 50], [52, 3], [53, 52], [54, 53], [55, 54], [56, 55], [57, 25], [58, 26], [58, 44], [59, 57], [59, 58], [60, 56], [62, 59], [64, 26], [64, 44], [65, 55], [66, 64], [66, 65], [67, 66], [68, 55], [69, 25], [70, 67], [71, 69], [71, 70], [72, 68], [74, 71], [76, 67], [77, 55], [78, 77], [78, 76], [79, 78], [80, 21], [81, 78], [81, 25], [81, 49], [82, 80], [83, 81], [85, 80], [85, 25], [86, 3], [87, 85], [88, 86], [90, 21], [91, 90], [92, 91], [93, 21], [94, 93], [95, 3], [96, 95], [97, 96], [98, 92], [99, 94], [100, 97], [102, 3], [103, 102], [104, 21], [105, 104], [106, 105], [107, 21], [108, 107], [108, 106], [109, 3], [110, 109], [110, 106], [111, 110], [111, 108], [112, 3], [113, 112], [113, 111], [114, 3], [115, 114], [115, 111], [116, 111], [116, 113], [117, 116], [117, 115], [122, 14], [122, 118], [122, 120]]}
static int hostapd_cli_cmd_hs20_wnm_notif(struct wpa_ctrl *ctrl, int argc, char *argv[]) { char buf[300]; int res; if (argc < 2) { printf("Invalid 'hs20_wnm_notif' command - two arguments (STA " "addr and URL) are needed\n"); return -1; } res = os_snprintf(buf, sizeof(buf), "HS20_WNM_NOTIF %s %s", argv[0], argv[1]); if (os_snprintf_error(sizeof(buf), res)) return -1; return wpa_ctrl_command(ctrl, buf); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4038BE", "function_addr": 4208830, "binary_name": "ee14ea6e9f43a82e3de6fce33b02cf5140d44e7949e0765606a08ccbc19a37c0.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 150h"], [3, "mov [rbp+var_138], rdi"], [4, "mov [rbp+var_13C], esi"], [5, "mov [rbp+var_148], rdx"], [6, "cmp [rbp+var_13C], 1"], [7, "jg short loc_4038F7"], [8, "mov edi, offset aInvalidHs20Wnm"], [9, "call _puts"], [10, "mov eax, 0FFFFFFFFh"], [11, "jmp short locret_403969"], [12, "mov rax, [rbp+var_148]"], [13, "add rax, 8"], [14, "mov rcx, [rax]"], [15, "mov rax, [rbp+var_148]"], [16, "mov rdx, [rax]"], [17, "lea rax, [rbp+s]"], [18, "mov r8, rcx"], [19, "mov rcx, rdx"], [20, "mov edx, offset aHs20WnmNotifSS"], [21, "mov esi, 12Ch"], [22, "mov rdi, rax"], [23, "mov eax, 0"], [24, "call _snprintf"], [25, "mov [rbp+var_4], eax"], [26, "mov eax, [rbp+var_4]"], [27, "mov esi, eax"], [28, "mov edi, 12Ch"], [29, "call sub_40262F"], [30, "test eax, eax"], [31, "jz short loc_403950"], [32, "mov eax, 0FFFFFFFFh"], [33, "jmp short locret_403969"], [34, "lea rdx, [rbp+s]"], [35, "mov rax, [rbp+var_138]"], [36, "mov rsi, rdx"], [37, "mov rdi, rax"], [38, "call sub_402B09"], [39, "leave"], [40, "retn"]], "data_dep": [[6, 4], [7, 6], [12, 5], [13, 12], [14, 13], [15, 5], [16, 15], [17, 15], [18, 14], [19, 16], [22, 17], [25, 24], [26, 25], [27, 26], [30, 29], [31, 30], [34, 20], [35, 3], [36, 34], [37, 35], [40, 32], [40, 38], [40, 10]]}
static void rbd_io_u_wait_complete(struct io_u *io_u) { struct fio_rbd_iou *fri = io_u->engine_data; rbd_aio_wait_for_complete(fri->completion); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4B9852", "function_addr": 4954194, "binary_name": "da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov rax, [rax+98h]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_8]"], [8, "mov rax, [rax+8]"], [9, "mov rdi, rax"], [10, "call _rbd_aio_wait_for_complete"], [11, "nop"], [12, "leave"], [13, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [13, 10]]}
static int path_cmp(const void *a, const void *b) { file_entry_t *fa = *((file_entry_t **) a); file_entry_t *fb = *((file_entry_t **) b); return strcmp(fa->path, fb->path); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "compar", "function_addr": 4218688, "binary_name": "ce6238578c46b0be420ee05d5faa73253ad947408d8a965cba7aba12ccf1ef79.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_18]"], [6, "mov rax, [rax]"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_20]"], [9, "mov rax, [rax]"], [10, "mov [rbp+var_10], rax"], [11, "mov rax, [rbp+var_10]"], [12, "mov rdx, [rax]"], [13, "mov rax, [rbp+var_8]"], [14, "mov rax, [rax]"], [15, "mov rsi, rdx"], [16, "mov rdi, rax"], [17, "call _strcmp"], [18, "leave"], [19, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 4], [9, 8], [10, 9], [11, 10], [12, 11], [13, 7], [14, 13], [15, 12], [16, 14], [19, 17]]}
int zsl_mtx_gram_schmidt(struct zsl_mtx *m, struct zsl_mtx *mort) { ZSL_VECTOR_DEF(v, m->sz_rows); ZSL_VECTOR_DEF(w, m->sz_rows); ZSL_VECTOR_DEF(q, m->sz_rows); for (size_t t = 0; t < m->sz_cols; t++) { zsl_vec_init(&q); zsl_mtx_get_col(m, t, v.data); for (size_t g = 0; g < t; g++) { zsl_mtx_get_col(mort, g, w.data); /* Calculate the projection of every column vector * before 'g' on the 't'th column. */ zsl_vec_project(&w, &v, &w); zsl_vec_add(&q, &w, &q); } /* Substract the sum of the projections on the 't'th column from * the 't'th column and set this vector as the 't'th column of * the output matrix. */ zsl_vec_sub(&v, &q, &v); zsl_mtx_set_col(mort, t, v.data); } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403FA2", "function_addr": 4210594, "binary_name": "4b5ed34b4fdd7db8f6011127b925e233316dd9c6084837aab7ac931b7ad71ffd.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r15"], [3, "push r14"], [4, "push r13"], [5, "push r12"], [6, "push rbx"], [7, "sub rsp, 0A8h"], [8, "mov [rbp+var_A8], rdi"], [9, "mov [rbp+var_B0], rsi"], [10, "mov rax, rsp"], [11, "mov rbx, rax"], [12, "mov rax, [rbp+var_A8]"], [13, "mov rax, [rax]"], [14, "mov rdx, rax"], [15, "sub rdx, 1"], [16, "mov [rbp+var_38], rdx"], [17, "mov [rbp+var_C0], rax"], [18, "mov [rbp+var_B8], 0"], [19, "mov [rbp+var_D0], rax"], [20, "mov [rbp+var_C8], 0"], [21, "lea rdx, ds:0[rax*8]"], [22, "mov eax, 10h"], [23, "sub rax, 1"], [24, "add rax, rdx"], [25, "mov esi, 10h"], [26, "mov edx, 0"], [27, "div rsi"], [28, "imul rax, 10h"], [29, "sub rsp, rax"], [30, "mov rax, rsp"], [31, "add rax, 7"], [32, "shr rax, 3"], [33, "shl rax, 3"], [34, "mov [rbp+var_50], rax"], [35, "mov rax, [rbp+var_A8]"], [36, "mov rax, [rax]"], [37, "mov [rbp+var_80], rax"], [38, "mov rax, [rbp+var_50]"], [39, "mov [rbp+var_78], rax"], [40, "mov rax, [rbp+var_A8]"], [41, "mov rax, [rax]"], [42, "mov rdx, rax"], [43, "sub rdx, 1"], [44, "mov [rbp+var_58], rdx"], [45, "mov r14, rax"], [46, "mov r15d, 0"], [47, "mov r12, rax"], [48, "mov r13d, 0"], [49, "lea rdx, ds:0[rax*8]"], [50, "mov eax, 10h"], [51, "sub rax, 1"], [52, "add rax, rdx"], [53, "mov edi, 10h"], [54, "mov edx, 0"], [55, "div rdi"], [56, "imul rax, 10h"], [57, "sub rsp, rax"], [58, "mov rax, rsp"], [59, "add rax, 7"], [60, "shr rax, 3"], [61, "shl rax, 3"], [62, "mov [rbp+var_60], rax"], [63, "mov rax, [rbp+var_A8]"], [64, "mov rax, [rax]"], [65, "mov [rbp+var_90], rax"], [66, "mov rax, [rbp+var_60]"], [67, "mov [rbp+var_88], rax"], [68, "mov rax, [rbp+var_A8]"], [69, "mov rax, [rax]"], [70, "mov rdx, rax"], [71, "sub rdx, 1"], [72, "mov [rbp+var_68], rdx"], [73, "mov r10, rax"], [74, "mov r11d, 0"], [75, "mov r8, rax"], [76, "mov r9d, 0"], [77, "lea rdx, ds:0[rax*8]"], [78, "mov eax, 10h"], [79, "sub rax, 1"], [80, "add rax, rdx"], [81, "mov esi, 10h"], [82, "mov edx, 0"], [83, "div rsi"], [84, "imul rax, 10h"], [85, "sub rsp, rax"], [86, "mov rax, rsp"], [87, "add rax, 7"], [88, "shr rax, 3"], [89, "shl rax, 3"], [90, "mov [rbp+var_70], rax"], [91, "mov rax, [rbp+var_A8]"], [92, "mov rax, [rax]"], [93, "mov [rbp+var_A0], rax"], [94, "mov rax, [rbp+var_70]"], [95, "mov [rbp+var_98], rax"], [96, "mov [rbp+var_48], 0"], [97, "jmp loc_404232"], [98, "lea rax, [rbp+var_A0]"], [99, "mov rdi, rax"], [100, "call sub_4083E5"], [101, "mov rdx, [rbp+var_78]"], [102, "mov rcx, [rbp+var_48]"], [103, "mov rax, [rbp+var_A8]"], [104, "mov rsi, rcx"], [105, "mov rdi, rax"], [106, "call sub_4016F9"], [107, "mov [rbp+var_40], 0"], [108, "jmp short loc_4041EF"], [109, "mov rdx, [rbp+var_88]"], [110, "mov rcx, [rbp+var_40]"], [111, "mov rax, [rbp+var_B0]"], [112, "mov rsi, rcx"], [113, "mov rdi, rax"], [114, "call sub_4016F9"], [115, "lea rdx, [rbp+var_90]"], [116, "lea rcx, [rbp+var_80]"], [117, "lea rax, [rbp+var_90]"], [118, "mov rsi, rcx"], [119, "mov rdi, rax"], [120, "call sub_408A4A"], [121, "lea rdx, [rbp+var_A0]"], [122, "lea rcx, [rbp+var_90]"], [123, "lea rax, [rbp+var_A0]"], [124, "mov rsi, rcx"], [125, "mov rdi, rax"], [126, "call sub_408511"], [127, "add [rbp+var_40], 1"], [128, "mov rax, [rbp+var_40]"], [129, "cmp rax, [rbp+var_48]"], [130, "jb short loc_404190"], [131, "lea rdx, [rbp+var_80]"], [132, "lea rcx, [rbp+var_A0]"], [133, "lea rax, [rbp+var_80]"], [134, "mov rsi, rcx"], [135, "mov rdi, rax"], [136, "call sub_40858D"], [137, "mov rdx, [rbp+var_78]"], [138, "mov rcx, [rbp+var_48]"], [139, "mov rax, [rbp+var_B0]"], [140, "mov rsi, rcx"], [141, "mov rdi, rax"], [142, "call sub_401772"], [143, "add [rbp+var_48], 1"], [144, "mov rax, [rbp+var_A8]"], [145, "mov rax, [rax+8]"], [146, "cmp [rbp+var_48], rax"], [147, "jb loc_40415D"], [148, "mov eax, 0"], [149, "mov rsp, rbx"], [150, "lea rsp, [rbp-28h]"], [151, "pop rbx"], [152, "pop r12"], [153, "pop r13"], [154, "pop r14"], [155, "pop r15"], [156, "pop rbp"], [157, "retn"]], "data_dep": [[10, 7], [11, 10], [12, 8], [13, 12], [14, 13], [15, 14], [16, 15], [17, 13], [19, 13], [21, 15], [23, 22], [24, 21], [24, 23], [27, 25], [28, 24], [29, 28], [29, 7], [30, 29], [31, 30], [32, 31], [33, 32], [34, 33], [35, 8], [36, 35], [37, 36], [38, 34], [39, 38], [40, 8], [41, 40], [42, 41], [43, 42], [44, 43], [45, 41], [47, 41], [49, 43], [51, 50], [52, 49], [52, 51], [55, 53], [56, 52], [57, 29], [57, 56], [58, 57], [59, 58], [60, 59], [61, 60], [62, 61], [63, 8], [64, 63], [65, 64], [66, 62], [67, 66], [68, 8], [69, 68], [70, 69], [71, 70], [72, 71], [73, 69], [75, 69], [77, 71], [79, 78], [80, 77], [80, 79], [83, 81], [84, 80], [85, 57], [85, 84], [86, 85], [87, 86], [88, 87], [89, 88], [90, 89], [91, 8], [92, 91], [93, 92], [94, 90], [95, 94], [98, 93], [98, 145], [99, 98], [101, 39], [102, 143], [102, 96], [103, 8], [104, 102], [105, 103], [109, 67], [110, 127], [110, 107], [111, 9], [112, 110], [113, 111], [115, 109], [115, 65], [116, 37], [116, 110], [117, 114], [117, 65], [118, 116], [119, 117], [121, 93], [121, 115], [122, 116], [122, 65], [123, 93], [123, 120], [124, 122], [125, 123], [127, 107], [127, 127], [128, 107], [128, 127], [129, 128], [129, 143], [129, 96], [130, 129], [131, 37], [131, 101], [131, 121], [132, 93], [132, 102], [132, 122], [133, 37], [133, 128], [134, 132], [135, 133], [137, 39], [138, 96], [138, 143], [139, 9], [140, 138], [141, 139], [143, 96], [143, 143], [144, 8], [145, 144], [146, 143], [146, 145], [146, 96], [147, 146], [149, 11], [150, 149], [151, 6], [152, 5], [153, 4], [154, 3], [155, 2], [156, 0], [157, 148]]}
int mtd_is_locked(const struct mtd_dev_info *mtd, int fd, int eb) { int ret; erase_info_t ei; ei.start = eb * mtd->eb_size; ei.length = mtd->eb_size; ret = ioctl(fd, MEMISLOCKED, &ei); if (ret < 0) { if (errno != ENOTTY && errno != EOPNOTSUPP) return mtd_ioctl_error(mtd, eb, "MEMISLOCKED"); else errno = EOPNOTSUPP; } return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "mtd_is_locked", "function_addr": 4854274, "binary_name": "da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+fd], esi"], [5, "mov [rbp+var_20], edx"], [6, "mov rax, [rbp+var_18]"], [7, "mov eax, [rax+0E4h]"], [8, "imul eax, [rbp+var_20]"], [9, "mov [rbp+var_C], eax"], [10, "mov rax, [rbp+var_18]"], [11, "mov eax, [rax+0E4h]"], [12, "mov [rbp+var_8], eax"], [13, "lea rdx, [rbp+var_C]"], [14, "mov eax, [rbp+fd]"], [15, "mov esi, 80084D17h"], [16, "mov edi, eax"], [17, "mov eax, 0"], [18, "call _ioctl"], [19, "mov [rbp+var_4], eax"], [20, "cmp [rbp+var_4], 0"], [21, "jns short loc_4A128E"], [22, "call ___errno_location"], [23, "mov eax, [rax]"], [24, "cmp eax, 19h"], [25, "jz short loc_4A1283"], [26, "call ___errno_location"], [27, "mov eax, [rax]"], [28, "cmp eax, 5Fh "], [29, "jz short loc_4A1283"], [30, "mov ecx, [rbp+var_20]"], [31, "mov rax, [rbp+var_18]"], [32, "mov edx, offset aMemislocked"], [33, "mov esi, ecx"], [34, "mov rdi, rax"], [35, "call sub_4A0D87"], [36, "jmp short locret_4A1291"], [37, "call ___errno_location"], [38, "mov dword ptr [rax], 5Fh "], [39, "mov eax, [rbp+var_4]"], [40, "leave"], [41, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 5], [8, 7], [9, 8], [10, 3], [11, 10], [12, 11], [13, 9], [14, 4], [16, 14], [19, 18], [20, 19], [21, 20], [23, 22], [24, 23], [25, 24], [27, 26], [28, 27], [29, 28], [30, 5], [31, 3], [33, 30], [34, 31], [38, 37], [39, 19], [41, 39], [41, 35]]}
uint8_t mlx90614_get_ir_sensor(mlx90614_handle_t *handle, mlx90614_ir_sensor_t *sensor) { uint8_t res; uint16_t prev; if (handle == NULL) /* check handle */ { return 2; /* return error */ } if (handle->inited != 1) /* check handle initialization */ { return 3; /* return error */ } res = a_mlx90614_read(handle, MLX90614_REG_EEPROM_CONFIG1, (uint16_t *)&prev); /* read config */ if (res != 0) /* check result */ { handle->debug_print("mlx90614: read config failed.\n"); /* return error */ return 1; } prev &= (0x01 << 6); /* get config */ *sensor = (mlx90614_ir_sensor_t)(0x01 & (prev >> 6)); /* ge sensor */ return 0; /* success return 0 */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401B72", "function_addr": 4201330, "binary_name": "bdd09f880961d5d488722db5049dec2e430ce24e171974006130814f47079e8d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "cmp [rbp+var_18], 0"], [6, "jnz short loc_401B90"], [7, "mov eax, 2"], [8, "jmp short locret_401C00"], [9, "mov rax, [rbp+var_18]"], [10, "movzx eax, byte ptr [rax+48h]"], [11, "cmp al, 1"], [12, "jz short loc_401BA3"], [13, "mov eax, 3"], [14, "jmp short locret_401C00"], [15, "lea rdx, [rbp+var_4]"], [16, "mov rax, [rbp+var_18]"], [17, "mov esi, 25h "], [18, "mov rdi, rax"], [19, "call sub_401290"], [20, "mov [rbp+var_1], al"], [21, "cmp [rbp+var_1], 0"], [22, "jz short loc_401BDC"], [23, "mov rax, [rbp+var_18]"], [24, "mov rdx, [rax+30h]"], [25, "mov edi, offset aMlx90614ReadCo"], [26, "mov eax, 0"], [27, "call rdx"], [28, "mov eax, 1"], [29, "jmp short locret_401C00"], [30, "movzx eax, [rbp+var_4]"], [31, "and eax, 40h"], [32, "mov [rbp+var_4], ax"], [33, "movzx eax, [rbp+var_4]"], [34, "shr ax, 6"], [35, "and eax, 1"], [36, "movzx edx, ax"], [37, "mov rax, [rbp+var_20]"], [38, "mov [rax], edx"], [39, "mov eax, 0"], [40, "leave"], [41, "retn"]], "data_dep": [[5, 3], [6, 5], [9, 3], [10, 9], [11, 10], [12, 11], [16, 3], [18, 16], [20, 19], [21, 20], [22, 21], [23, 3], [24, 23], [27, 24], [31, 30], [32, 31], [33, 32], [34, 33], [35, 34], [36, 35], [37, 4], [38, 37], [38, 36], [41, 39], [41, 7], [41, 13], [41, 28]]}
static void color_age_on(time_t t) { time_t age = now - t; int c; if (!Gflag) return; if (age < 0LL) c = 196; else if (age < 60LL) c = 255; else if (age < 60*60LL) c = 252; else if (age < 24*60*60LL) c = 250; else if (age < 7*24*60*60LL) c = 244; else if (age < 4*7*24*60*60LL) c = 244; else if (age < 26*7*24*60*60LL) c = 242; else if (age < 52*7*24*60*60LL) c = 240; else if (age < 2*52*7*24*60*60LL) c = 238; else c = 236; fg256(c); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406BB8", "function_addr": 4221880, "binary_name": "f61639a4f3ccfd452706cec584dd79ef5321998064c29d5e749b84492ac9281d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, cs:timer"], [5, "sub rax, [rbp+var_18]"], [6, "mov [rbp+var_10], rax"], [7, "mov eax, cs:dword_40E620"], [8, "test eax, eax"], [9, "jz loc_406C9F"], [10, "cmp [rbp+var_10], 0"], [11, "jns short loc_406BF4"], [12, "mov [rbp+var_4], 0C4h"], [13, "jmp loc_406C93"], [14, "cmp [rbp+var_10], 3Bh "], [15, "jg short loc_406C07"], [16, "mov [rbp+var_4], 0FFh"], [17, "jmp loc_406C93"], [18, "cmp [rbp+var_10], 0E0Fh"], [19, "jg short loc_406C1A"], [20, "mov [rbp+var_4], 0FCh"], [21, "jmp short loc_406C93"], [22, "cmp [rbp+var_10], 1517Fh"], [23, "jg short loc_406C2D"], [24, "mov [rbp+var_4], 0FAh"], [25, "jmp short loc_406C93"], [26, "cmp [rbp+var_10], 93A7Fh"], [27, "jg short loc_406C40"], [28, "mov [rbp+var_4], 0F4h"], [29, "jmp short loc_406C93"], [30, "cmp [rbp+var_10], 24E9FFh"], [31, "jg short loc_406C53"], [32, "mov [rbp+var_4], 0F4h"], [33, "jmp short loc_406C93"], [34, "cmp [rbp+var_10], 0EFF0FFh"], [35, "jg short loc_406C66"], [36, "mov [rbp+var_4], 0F2h"], [37, "jmp short loc_406C93"], [38, "cmp [rbp+var_10], 1DFE1FFh"], [39, "jg short loc_406C79"], [40, "mov [rbp+var_4], 0F0h"], [41, "jmp short loc_406C93"], [42, "cmp [rbp+var_10], 3BFC3FFh"], [43, "jg short loc_406C8C"], [44, "mov [rbp+var_4], 0EEh"], [45, "jmp short loc_406C93"], [46, "mov [rbp+var_4], 0ECh"], [47, "mov eax, [rbp+var_4]"], [48, "mov edi, eax"], [49, "call sub_40600B"], [50, "jmp short locret_406CA0"], [51, "nop"], [52, "leave"], [53, "retn"]], "data_dep": [[5, 4], [5, 3], [6, 5], [8, 7], [9, 8], [10, 6], [11, 10], [14, 6], [15, 14], [18, 6], [19, 18], [22, 6], [23, 22], [26, 6], [27, 26], [30, 6], [31, 30], [34, 6], [35, 34], [38, 6], [39, 38], [42, 6], [43, 42], [47, 16], [47, 28], [47, 40], [47, 46], [47, 12], [47, 24], [47, 36], [47, 20], [47, 32], [47, 44], [48, 47], [53, 49], [53, 8]]}
boolean j_load_lm(Recog *recog, JCONF_LM *lmconf) { JCONF_SEARCH *sh; PROCESS_LM *lm; PROCESS_AM *am, *atmp; jlog("STAT: *** loading LM%02d %s\n", lmconf->id, lmconf->name); /* find which am process instance to assign to each LM */ am = NULL; for(sh=recog->jconf->search_root;sh;sh=sh->next) { if (sh->lmconf == lmconf) { for(atmp=recog->amlist;atmp;atmp=atmp->next) { if (sh->amconf == atmp->config) { am = atmp; } } } } if (am == NULL) { jlog("ERROR: cannot find corresponding AM for LM%02d %s\n", lmconf->id, lmconf->name); jlog("ERROR: you should write all AM/LM combinations to be used for recognition with \"-SR\"\n"); return FALSE; } /* create LM process instance */ lm = j_process_lm_new(recog, lmconf); /* assign AM process instance to the LM instance */ lm->am = am; /* load language model */ if (lm->lmtype == LM_PROB) { /* LM (N-gram) */ if ((lm->winfo = initialize_dict(lm->config, lm->am->hmminfo)) == NULL) { jlog("ERROR: m_fusion: failed to initialize dictionary\n"); return FALSE; } if (lm->config->ngram_filename_lr_arpa || lm->config->ngram_filename_rl_arpa || lm->config->ngram_filename) { if ((lm->ngram = initialize_ngram(lm->config, lm->winfo)) == NULL) { jlog("ERROR: m_fusion: failed to initialize N-gram\n"); return FALSE; } } } if (lm->lmtype == LM_DFA) { /* DFA */ if (lm->config->dfa_filename != NULL && lm->config->dictfilename != NULL) { /* here add grammar specified by "-dfa" and "-v" to grammar list */ multigram_add_gramlist(lm->config->dfa_filename, lm->config->dictfilename, lm->config, LM_DFA_GRAMMAR); } /* load all the specified grammars */ if (multigram_load_all_gramlist(lm) == FALSE) { jlog("ERROR: m_fusion: some error occured in reading grammars\n"); return FALSE; } /* setup for later wchmm building */ multigram_update(lm); /* the whole lexicon will be forced to built in the boot sequence, so reset the global modification flag here */ lm->global_modified = FALSE; } jlog("STAT: *** LM%02d %s loaded\n", lmconf->id, lmconf->name); return TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_419DA9", "function_addr": 4300201, "binary_name": "9b85fa48a868983d7ee8c1ec5b0fcd80355cfe0cf4a097485a7f6533d5af5dbe.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rax, [rbp+var_30]"], [6, "lea rdx, [rax+2]"], [7, "mov rax, [rbp+var_30]"], [8, "movzx eax, word ptr [rax]"], [9, "cwde"], [10, "mov esi, eax"], [11, "lea rdi, aStatLoadingLm0"], [12, "mov eax, 0"], [13, "call sub_466AFB"], [14, "mov [rbp+var_10], 0"], [15, "mov rax, [rbp+var_28]"], [16, "mov rax, [rax]"], [17, "mov rax, [rax+90h]"], [18, "mov [rbp+var_8], rax"], [19, "jmp short loc_419E55"], [20, "mov rax, [rbp+var_8]"], [21, "mov rax, [rax+50h]"], [22, "cmp [rbp+var_30], rax"], [23, "jnz short loc_419E46"], [24, "mov rax, [rbp+var_28]"], [25, "mov rax, [rax+48h]"], [26, "mov [rbp+var_18], rax"], [27, "jmp short loc_419E3F"], [28, "mov rax, [rbp+var_8]"], [29, "mov rdx, [rax+48h]"], [30, "mov rax, [rbp+var_18]"], [31, "mov rax, [rax]"], [32, "cmp rdx, rax"], [33, "jnz short loc_419E30"], [34, "mov rax, [rbp+var_18]"], [35, "mov [rbp+var_10], rax"], [36, "mov rax, [rbp+var_18]"], [37, "mov rax, [rax+380h]"], [38, "mov [rbp+var_18], rax"], [39, "cmp [rbp+var_18], 0"], [40, "jnz short loc_419E14"], [41, "mov rax, [rbp+var_8]"], [42, "mov rax, [rax+0F8h]"], [43, "mov [rbp+var_8], rax"], [44, "cmp [rbp+var_8], 0"], [45, "jnz short loc_419DF8"], [46, "cmp [rbp+var_10], 0"], [47, "jnz short loc_419EA1"], [48, "mov rax, [rbp+var_30]"], [49, "lea rdx, [rax+2]"], [50, "mov rax, [rbp+var_30]"], [51, "movzx eax, word ptr [rax]"], [52, "cwde"], [53, "mov esi, eax"], [54, "lea rdi, aErrorCannotFin"], [55, "mov eax, 0"], [56, "call sub_466AFB"], [57, "lea rdi, aErrorYouShould_0"], [58, "mov eax, 0"], [59, "call sub_466AFB"], [60, "mov eax, 0"], [61, "jmp locret_41A063"], [62, "mov rdx, [rbp+var_30]"], [63, "mov rax, [rbp+var_28]"], [64, "mov rsi, rdx"], [65, "mov rdi, rax"], [66, "call sub_406CF3"], [67, "mov [rbp+var_20], rax"], [68, "mov rax, [rbp+var_20]"], [69, "mov rdx, [rbp+var_10]"], [70, "mov [rax+8], rdx"], [71, "mov rax, [rbp+var_20]"], [72, "mov eax, [rax+10h]"], [73, "cmp eax, 1"], [74, "jnz loc_419F9F"], [75, "mov rax, [rbp+var_20]"], [76, "mov rax, [rax+8]"], [77, "mov rdx, [rax+10h]"], [78, "mov rax, [rbp+var_20]"], [79, "mov rax, [rax]"], [80, "mov rsi, rdx"], [81, "mov rdi, rax"], [82, "call sub_419495"], [83, "mov rdx, [rbp+var_20]"], [84, "mov [rdx+18h], rax"], [85, "mov rax, [rbp+var_20]"], [86, "mov rax, [rax+18h]"], [87, "test rax, rax"], [88, "jnz short loc_419F22"], [89, "lea rdi, aErrorMFusionFa_9"], [90, "mov eax, 0"], [91, "call sub_466AFB"], [92, "mov eax, 0"], [93, "jmp locret_41A063"], [94, "mov rax, [rbp+var_20]"], [95, "mov rax, [rax]"], [96, "mov rax, [rax+78h]"], [97, "test rax, rax"], [98, "jnz short loc_419F55"], [99, "mov rax, [rbp+var_20]"], [100, "mov rax, [rax]"], [101, "mov rax, [rax+80h]"], [102, "test rax, rax"], [103, "jnz short loc_419F55"], [104, "mov rax, [rbp+var_20]"], [105, "mov rax, [rax]"], [106, "mov rax, [rax+70h]"], [107, "test rax, rax"], [108, "jz short loc_419F9F"], [109, "mov rax, [rbp+var_20]"], [110, "mov rdx, [rax+18h]"], [111, "mov rax, [rbp+var_20]"], [112, "mov rax, [rax]"], [113, "mov rsi, rdx"], [114, "mov rdi, rax"], [115, "call sub_419906"], [116, "mov rdx, [rbp+var_20]"], [117, "mov [rdx+20h], rax"], [118, "mov rax, [rbp+var_20]"], [119, "mov rax, [rax+20h]"], [120, "test rax, rax"], [121, "jnz short loc_419F9F"], [122, "lea rdi, aErrorMFusionFa_10"], [123, "mov eax, 0"], [124, "call sub_466AFB"], [125, "mov eax, 0"], [126, "jmp locret_41A063"], [127, "mov rax, [rbp+var_20]"], [128, "mov eax, [rax+10h]"], [129, "cmp eax, 2"], [130, "jnz loc_41A03B"], [131, "mov rax, [rbp+var_20]"], [132, "mov rax, [rax]"], [133, "mov rax, [rax+88h]"], [134, "test rax, rax"], [135, "jz short loc_419FFF"], [136, "mov rax, [rbp+var_20]"], [137, "mov rax, [rax]"], [138, "mov rax, [rax+50h]"], [139, "test rax, rax"], [140, "jz short loc_419FFF"], [141, "mov rax, [rbp+var_20]"], [142, "mov rdx, [rax]"], [143, "mov rax, [rbp+var_20]"], [144, "mov rax, [rax]"], [145, "mov rsi, [rax+50h]"], [146, "mov rax, [rbp+var_20]"], [147, "mov rax, [rax]"], [148, "mov rax, [rax+88h]"], [149, "mov ecx, 1"], [150, "mov rdi, rax"], [151, "call sub_41E405"], [152, "mov rax, [rbp+var_20]"], [153, "mov rdi, rax"], [154, "call sub_41DE39"], [155, "test al, al"], [156, "jnz short loc_41A027"], [157, "lea rdi, aErrorMFusionSo"], [158, "mov eax, 0"], [159, "call sub_466AFB"], [160, "mov eax, 0"], [161, "jmp short locret_41A063"], [162, "mov rax, [rbp+var_20]"], [163, "mov rdi, rax"], [164, "call sub_41D482"], [165, "mov rax, [rbp+var_20]"], [166, "mov byte ptr [rax+40h], 0"], [167, "mov rax, [rbp+var_30]"], [168, "lea rdx, [rax+2]"], [169, "mov rax, [rbp+var_30]"], [170, "movzx eax, word ptr [rax]"], [171, "cwde"], [172, "mov esi, eax"], [173, "lea rdi, aStatLm02dSLoad"], [174, "mov eax, 0"], [175, "call sub_466AFB"], [176, "mov eax, 1"], [177, "leave"], [178, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 4], [8, 7], [10, 8], [15, 3], [16, 15], [17, 16], [18, 17], [20, 18], [20, 43], [21, 20], [22, 21], [22, 4], [23, 22], [24, 3], [25, 24], [26, 25], [28, 18], [28, 43], [29, 28], [30, 38], [30, 26], [31, 30], [32, 29], [32, 31], [33, 32], [34, 38], [34, 26], [35, 34], [36, 38], [36, 26], [37, 36], [38, 37], [39, 26], [39, 38], [40, 39], [41, 18], [41, 43], [42, 41], [43, 42], [44, 18], [44, 43], [45, 44], [46, 35], [46, 14], [47, 46], [48, 4], [49, 48], [49, 29], [49, 6], [50, 4], [51, 50], [53, 51], [54, 11], [57, 54], [62, 4], [63, 3], [64, 62], [65, 63], [67, 66], [68, 67], [69, 35], [69, 14], [70, 68], [70, 69], [71, 67], [72, 70], [72, 71], [73, 72], [74, 73], [75, 67], [76, 70], [76, 75], [76, 84], [77, 76], [77, 84], [77, 70], [78, 67], [79, 78], [79, 84], [79, 70], [80, 77], [81, 79], [83, 67], [84, 83], [84, 82], [85, 67], [86, 85], [86, 84], [87, 86], [88, 87], [89, 81], [94, 67], [95, 84], [95, 70], [95, 94], [96, 95], [96, 84], [96, 70], [97, 96], [98, 97], [99, 67], [100, 84], [100, 70], [100, 99], [101, 84], [101, 70], [101, 100], [102, 101], [103, 102], [104, 67], [105, 70], [105, 104], [105, 84], [106, 84], [106, 70], [106, 105], [107, 106], [108, 107], [109, 67], [110, 84], [110, 70], [110, 109], [110, 117], [111, 67], [112, 84], [112, 70], [112, 111], [112, 117], [113, 110], [114, 112], [116, 67], [117, 116], [117, 115], [118, 67], [119, 118], [119, 117], [120, 119], [121, 120], [122, 114], [127, 67], [128, 117], [128, 84], [128, 70], [128, 127], [129, 128], [130, 129], [131, 67], [132, 84], [132, 70], [132, 131], [132, 117], [133, 132], [133, 70], [133, 117], [133, 84], [134, 133], [135, 134], [136, 67], [137, 117], [137, 84], [137, 70], [137, 136], [138, 137], [138, 84], [138, 70], [138, 117], [139, 138], [140, 139], [141, 67], [142, 84], [142, 141], [142, 70], [142, 117], [143, 67], [144, 70], [144, 143], [144, 117], [144, 84], [145, 117], [145, 144], [145, 84], [145, 70], [146, 67], [147, 146], [147, 84], [147, 70], [147, 117], [148, 70], [148, 147], [148, 117], [148, 84], [150, 148], [152, 67], [153, 152], [155, 154], [156, 155], [157, 153], [162, 67], [163, 162], [165, 67], [166, 165], [167, 4], [168, 116], [168, 84], [168, 166], [168, 70], [168, 83], [168, 69], [168, 142], [168, 117], [168, 167], [169, 4], [170, 169], [170, 84], [170, 166], [170, 70], [170, 117], [172, 170], [173, 163], [173, 114], [173, 81], [173, 65], [178, 125], [178, 60], [178, 92], [178, 176], [178, 160]]}
void print_nuvoton_chips(void) { print_vendor_chips("Nuvoton", reg_table); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40357F", "function_addr": 4207999, "binary_name": "8f546fdfb581421fdfbfeb375ad304f6d5289eb31a93e4934d4f651ec840ff14.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov esi, offset unk_544880"], [3, "mov edi, offset aNuvoton"], [4, "call sub_401DAA"], [5, "nop"], [6, "pop rbp"], [7, "retn"]], "data_dep": [[6, 0], [7, 4]]}
MEM_STATIC unsigned BITv06_highbit32 (register U32 val) { # if defined(_MSC_VER) /* Visual */ unsigned long r=0; _BitScanReverse ( &r, val ); return (unsigned) r; # elif defined(__GNUC__) && (__GNUC__ >= 3) /* Use GCC Intrinsic */ return 31 - __builtin_clz (val); # else /* Software version */ static const unsigned DeBruijnClz[32] = { 0, 9, 1, 10, 13, 21, 2, 29, 11, 14, 16, 18, 22, 25, 3, 30, 8, 12, 20, 28, 15, 17, 24, 7, 19, 27, 23, 6, 26, 5, 4, 31 }; U32 v = val; unsigned r; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; r = DeBruijnClz[ (U32) (v * 0x07C4ACDDU) >> 27]; return r; # endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_460986", "function_addr": 4589958, "binary_name": "2f91978c4963d9d742b336bb9bf6c83ff51c5a97f2b6e1fd1fbd2d6ab517b224.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, edi"], [3, "bsr eax, eax"], [4, "xor eax, 1Fh"], [5, "mov edx, 1Fh"], [6, "sub edx, eax"], [7, "mov eax, edx"], [8, "pop rbp"], [9, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 5], [6, 4], [7, 6], [8, 0], [9, 7]]}
static int FL2_initEncoders(FL2_CCtx* const cctx) { for(unsigned u = 0; u < cctx->jobCount; ++u) { if (LZMA2_hashAlloc(cctx->jobs[u].enc, &cctx->params.cParams) != 0) return 1; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40BD26", "function_addr": 4242726, "binary_name": "24d78b488ac6efd29907ebed989997e5db3f729ef5517ddab75dceaf3790cdd4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_4], 0"], [5, "jmp short loc_40BD7D"], [6, "mov rax, [rbp+var_18]"], [7, "lea rdx, [rax+58h]"], [8, "mov rsi, [rbp+var_18]"], [9, "mov ecx, [rbp+var_4]"], [10, "mov rax, rcx"], [11, "add rax, rax"], [12, "add rax, rcx"], [13, "shl rax, 4"], [14, "add rax, rsi"], [15, "add rax, 138h"], [16, "mov rax, [rax]"], [17, "mov rsi, rdx"], [18, "mov rdi, rax"], [19, "call sub_410FE1"], [20, "test eax, eax"], [21, "jz short loc_40BD79"], [22, "mov eax, 1"], [23, "jmp short locret_40BD91"], [24, "add [rbp+var_4], 1"], [25, "mov rax, [rbp+var_18]"], [26, "mov eax, [rax+128h]"], [27, "cmp [rbp+var_4], eax"], [28, "jb short loc_40BD3B"], [29, "mov eax, 0"], [30, "leave"], [31, "retn"]], "data_dep": [[6, 3], [7, 7], [7, 6], [8, 3], [9, 4], [9, 24], [10, 9], [11, 10], [12, 9], [12, 11], [13, 12], [14, 13], [14, 8], [15, 14], [16, 15], [17, 7], [18, 16], [20, 19], [21, 20], [24, 4], [24, 24], [25, 3], [26, 25], [27, 4], [27, 24], [27, 26], [28, 27], [31, 29], [31, 22]]}
static int get_tun_device(char tapif[IFNAMSIZ]) { struct ifreq ifr; int netfd; /* Start with this zeroed. Messy but sure. */ memset(&ifr, 0, sizeof(ifr)); /* We open the /dev/net/tun device and tell it we want a tap device. A * tap device is like a tun device, only somehow different. To tell * the truth, I completely blundered my way through this code, but it * works now! */ netfd = open_or_die("/dev/net/tun", O_RDWR); ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_VNET_HDR; strcpy(ifr.ifr_name, "tap%d"); if (ioctl(netfd, TUNSETIFF, &ifr) != 0) err(1, "configuring /dev/net/tun"); if (ioctl(netfd, TUNSETOFFLOAD, TUN_F_CSUM|TUN_F_TSO4|TUN_F_TSO6|TUN_F_TSO_ECN) != 0) err(1, "Could not set features for tun device"); /* We don't need checksums calculated for packets coming in this * device: trust us! */ ioctl(netfd, TUNSETNOCSUM, 1); memcpy(tapif, ifr.ifr_name, IFNAMSIZ); return netfd; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40507C", "function_addr": 4214908, "binary_name": "892d4ad8f5dfe4411c8390258729963722141430ec472d7869a6e65f44b91019.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_38], rdi"], [4, "lea rax, [rbp+s]"], [5, "mov edx, 28h "], [6, "mov esi, 0"], [7, "mov rdi, rax"], [8, "call _memset"], [9, "mov esi, 2"], [10, "mov edi, offset aDevNetTun"], [11, "call sub_40272C"], [12, "mov [rbp+fd], eax"], [13, "mov [rbp+var_20], 5002h"], [14, "lea rax, [rbp+s]"], [15, "mov dword ptr [rax], 25706174h"], [16, "mov word ptr [rax+4], 64h "], [17, "lea rdx, [rbp+s]"], [18, "mov eax, [rbp+fd]"], [19, "mov esi, 400454CAh"], [20, "mov edi, eax"], [21, "mov eax, 0"], [22, "call _ioctl"], [23, "test eax, eax"], [24, "jz short loc_4050F6"], [25, "mov esi, offset aConfiguringDev"], [26, "mov edi, 1"], [27, "mov eax, 0"], [28, "call _err"], [29, "mov eax, [rbp+fd]"], [30, "mov edx, 0Fh"], [31, "mov esi, 400454D0h"], [32, "mov edi, eax"], [33, "mov eax, 0"], [34, "call _ioctl"], [35, "test eax, eax"], [36, "jz short loc_405127"], [37, "mov esi, offset aCouldNotSetFea"], [38, "mov edi, 1"], [39, "mov eax, 0"], [40, "call _err"], [41, "mov eax, [rbp+fd]"], [42, "mov edx, 1"], [43, "mov esi, 400454C8h"], [44, "mov edi, eax"], [45, "mov eax, 0"], [46, "call _ioctl"], [47, "mov rax, [rbp+s]"], [48, "mov rdx, [rbp+var_28]"], [49, "mov rcx, [rbp+var_38]"], [50, "mov [rcx], rax"], [51, "mov [rcx+8], rdx"], [52, "mov eax, [rbp+fd]"], [53, "leave"], [54, "retn"]], "data_dep": [[7, 4], [12, 11], [14, 11], [15, 14], [16, 14], [17, 5], [18, 12], [20, 18], [23, 22], [24, 23], [29, 12], [32, 29], [35, 34], [36, 35], [41, 12], [44, 41], [49, 3], [50, 49], [50, 47], [51, 49], [51, 48], [52, 12], [54, 52]]}
void goep_client_request_create_put(uint16_t goep_cid){ goep_client_t * goep_client = goep_client_for_cid(goep_cid); if (goep_client == NULL){ return; } goep_client_packet_init(goep_client, OBEX_OPCODE_PUT | OBEX_OPCODE_FINAL_BIT_MASK); uint8_t * buffer = goep_client_get_outgoing_buffer(goep_client); uint16_t buffer_len = goep_client_get_outgoing_buffer_len(goep_client); obex_message_builder_request_create_put(buffer, buffer_len, goep_client->obex_connection_id); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4488C5", "function_addr": 4491461, "binary_name": "ef3e83fa7cd2ea82c8d52009344d188bc01d84108831282655bc59beb173d4ac.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov eax, edi"], [4, "mov [rbp+var_24], ax"], [5, "movzx eax, [rbp+var_24]"], [6, "mov edi, eax"], [7, "call sub_447591"], [8, "mov [rbp+var_8], rax"], [9, "cmp [rbp+var_8], 0"], [10, "jz short loc_448935"], [11, "mov rax, [rbp+var_8]"], [12, "mov esi, 82h"], [13, "mov rdi, rax"], [14, "call sub_4480ED"], [15, "mov rax, [rbp+var_8]"], [16, "mov rdi, rax"], [17, "call sub_448092"], [18, "mov [rbp+var_10], rax"], [19, "mov rax, [rbp+var_8]"], [20, "mov rdi, rax"], [21, "call sub_4480B9"], [22, "mov [rbp+var_12], ax"], [23, "mov rax, [rbp+var_8]"], [24, "mov edx, [rax+64h]"], [25, "movzx ecx, [rbp+var_12]"], [26, "mov rax, [rbp+var_10]"], [27, "mov esi, ecx"], [28, "mov rdi, rax"], [29, "call sub_446996"], [30, "jmp short locret_448936"], [31, "nop"], [32, "leave"], [33, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [8, 7], [9, 8], [10, 9], [11, 8], [13, 11], [15, 8], [16, 15], [18, 17], [19, 8], [20, 19], [22, 21], [23, 8], [24, 23], [25, 22], [26, 18], [27, 25], [28, 26], [33, 29], [33, 7]]}
SQLITE_PRIVATE int sqlite3MemJournalSize(void){ return sizeof(MemJournal); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_453FA7", "function_addr": 4538279, "binary_name": "1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, 30h "], [3, "pop rbp"], [4, "retn"]], "data_dep": [[3, 0], [4, 2]]}
int main(void) { wireless_scan_head head; wireless_scan *presult = NULL; memset(&head, 0, sizeof(head)); assert(0 == wifi_scan("wlan0", &head)); /* Traverse the results */ presult = head.result; while (NULL != presult) { print_ap_info(presult); presult = presult->next; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4198850, "binary_name": "155215a5e60d9de6b617701ffe3bbb4c4223ad731ef61ee59bb01bc6ac812026.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], 0"], [4, "lea rax, [rbp+s]"], [5, "mov edx, 10h"], [6, "mov esi, 0"], [7, "mov rdi, rax"], [8, "call _memset"], [9, "lea rax, [rbp+s]"], [10, "mov rsi, rax"], [11, "mov edi, offset aWlan0"], [12, "call sub_40125D"], [13, "test eax, eax"], [14, "jz short loc_401216"], [15, "mov ecx, offset function"], [16, "mov edx, 0Ah"], [17, "mov esi, offset file"], [18, "mov edi, offset assertion"], [19, "call ___assert_fail"], [20, "mov rax, [rbp+s]"], [21, "mov [rbp+var_8], rax"], [22, "jmp short loc_401237"], [23, "mov rax, [rbp+var_8]"], [24, "mov rdi, rax"], [25, "call sub_4014BB"], [26, "mov rax, [rbp+var_8]"], [27, "mov rax, [rax]"], [28, "mov [rbp+var_8], rax"], [29, "cmp [rbp+var_8], 0"], [30, "jnz short loc_401220"], [31, "mov eax, 0"], [32, "leave"], [33, "retn"]], "data_dep": [[7, 4], [9, 8], [10, 9], [13, 12], [14, 13], [21, 20], [23, 28], [23, 21], [24, 23], [26, 21], [26, 28], [27, 26], [28, 27], [29, 21], [29, 28], [30, 29], [33, 31]]}
static int db_getuservalue (lua_State *L) { int n = (int)luaL_optinteger(L, 2, 1); if (lua_type(L, 1) != LUA_TUSERDATA) luaL_pushfail(L); else if (lua_getiuservalue(L, 1, n) != LUA_TNONE) { lua_pushboolean(L, 1); return 2; } return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_432912", "function_addr": 4401426, "binary_name": "38bb5bcc430e0fa7d34733714ee56efeac7c173483e07cba4dab1c923e34ac41.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov edx, 1"], [6, "mov esi, 2"], [7, "mov rdi, rax"], [8, "call luaL_optinteger"], [9, "mov [rbp+var_4], eax"], [10, "mov rax, [rbp+var_18]"], [11, "mov esi, 1"], [12, "mov rdi, rax"], [13, "call lua_type"], [14, "cmp eax, 7"], [15, "jz short loc_43295B"], [16, "mov rax, [rbp+var_18]"], [17, "mov rdi, rax"], [18, "call lua_pushnil"], [19, "jmp short loc_43298C"], [20, "mov edx, [rbp+var_4]"], [21, "mov rax, [rbp+var_18]"], [22, "mov esi, 1"], [23, "mov rdi, rax"], [24, "call lua_getiuservalue"], [25, "cmp eax, 0FFFFFFFFh"], [26, "jz short loc_43298C"], [27, "mov rax, [rbp+var_18]"], [28, "mov esi, 1"], [29, "mov rdi, rax"], [30, "call lua_pushboolean"], [31, "mov eax, 2"], [32, "jmp short locret_432991"], [33, "mov eax, 1"], [34, "leave"], [35, "retn"]], "data_dep": [[4, 3], [7, 4], [9, 8], [10, 3], [12, 10], [14, 13], [15, 14], [16, 3], [17, 16], [20, 9], [21, 3], [23, 21], [25, 24], [26, 25], [27, 3], [29, 27], [35, 33], [35, 31]]}
static RD_BOOL licence_parse_platform_challange(STREAM s, uint8 ** token, uint8 ** signature) { uint16 tokenlen; in_uint8s(s, 6); /* unknown: f8 3d 15 00 04 f6 */ in_uint16_le(s, tokenlen); if (tokenlen != LICENCE_TOKEN_SIZE) { error("token len %d\n", tokenlen); return False; } in_uint8p(s, *token, tokenlen); in_uint8p(s, *signature, LICENCE_SIGNATURE_SIZE); return s_check_end(s); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40D121", "function_addr": 4247841, "binary_name": "0751e249e278081842d74c20af54dbc95f1a371e2f46402cafa4c4cbd3d44694.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, [rbp+var_18]"], [7, "mov rax, [rax]"], [8, "lea rdx, [rax+6]"], [9, "mov rax, [rbp+var_18]"], [10, "mov [rax], rdx"], [11, "mov rax, [rbp+var_18]"], [12, "mov rax, [rax]"], [13, "movzx eax, word ptr [rax]"], [14, "mov [rbp+var_2], ax"], [15, "mov rax, [rbp+var_18]"], [16, "mov rax, [rax]"], [17, "lea rdx, [rax+2]"], [18, "mov rax, [rbp+var_18]"], [19, "mov [rax], rdx"], [20, "cmp [rbp+var_2], 0Ah"], [21, "jz short loc_40D18A"], [22, "movzx eax, [rbp+var_2]"], [23, "mov esi, eax"], [24, "mov edi, offset aTokenLenD"], [25, "mov eax, 0"], [26, "call error"], [27, "mov eax, 0"], [28, "jmp short locret_40D1E5"], [29, "mov rax, [rbp+var_18]"], [30, "mov rdx, [rax]"], [31, "mov rax, [rbp+var_20]"], [32, "mov [rax], rdx"], [33, "mov rax, [rbp+var_18]"], [34, "mov rdx, [rax]"], [35, "movzx eax, [rbp+var_2]"], [36, "add rdx, rax"], [37, "mov rax, [rbp+var_18]"], [38, "mov [rax], rdx"], [39, "mov rax, [rbp+var_18]"], [40, "mov rdx, [rax]"], [41, "mov rax, [rbp+var_28]"], [42, "mov [rax], rdx"], [43, "mov rax, [rbp+var_18]"], [44, "mov rax, [rax]"], [45, "lea rdx, [rax+10h]"], [46, "mov rax, [rbp+var_18]"], [47, "mov [rax], rdx"], [48, "mov rax, [rbp+var_18]"], [49, "mov rdx, [rax]"], [50, "mov rax, [rbp+var_18]"], [51, "mov rax, [rax+8]"], [52, "cmp rdx, rax"], [53, "setz al"], [54, "movzx eax, al"], [55, "leave"], [56, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 3], [10, 9], [10, 8], [11, 3], [12, 10], [12, 11], [13, 10], [13, 12], [14, 13], [15, 3], [16, 10], [16, 15], [17, 8], [17, 10], [17, 16], [18, 3], [19, 18], [19, 17], [20, 14], [21, 20], [22, 14], [23, 22], [29, 3], [30, 42], [30, 32], [30, 29], [30, 38], [30, 47], [30, 10], [30, 19], [31, 4], [32, 31], [32, 30], [33, 3], [34, 33], [34, 32], [35, 14], [36, 34], [36, 35], [37, 3], [38, 37], [38, 36], [39, 3], [40, 38], [40, 39], [41, 5], [42, 41], [42, 40], [43, 3], [44, 42], [44, 43], [45, 40], [45, 42], [45, 44], [46, 3], [47, 46], [47, 45], [48, 3], [49, 47], [49, 48], [50, 3], [51, 47], [51, 50], [52, 49], [52, 51], [53, 52], [53, 51], [54, 53], [56, 27], [56, 54]]}
static void explain(void) { fprintf(stderr, "Usage: ... codel [ limit PACKETS ] [ target TIME ]\n" " [ interval TIME ] [ ecn | noecn ]\n" " [ ce_threshold TIME ]\n"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4505D7", "function_addr": 4523479, "binary_name": "5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov rax, cs:stderr"], [3, "mov rcx, rax"], [4, "mov edx, 71h "], [5, "mov esi, 1"], [6, "mov edi, offset aUsageCodelLimi"], [7, "call _fwrite"], [8, "nop"], [9, "pop rbp"], [10, "retn"]], "data_dep": [[3, 2], [9, 0], [10, 7]]}
MODULE insert_xml_node (THREAD *thread) { tcb = thread-> tcb; /* Point to thread's context */ insert_simple_node (GG_XML); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41A547", "function_addr": 4302151, "binary_name": "09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rax, [rax+30h]"], [6, "mov cs:qword_49FB30, rax"], [7, "mov edi, 26h "], [8, "call sub_41845B"], [9, "nop"], [10, "leave"], [11, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [11, 8]]}
static int32 textyedge(void) { if (vdu2316byte & 4) return twintop; return twinbottom; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41469D", "function_addr": 4277917, "binary_name": "8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "movzx eax, cs:byte_47CD24"], [3, "movzx eax, al"], [4, "and eax, 4"], [5, "test eax, eax"], [6, "jz short loc_4146BA"], [7, "mov eax, cs:dword_483144"], [8, "jmp short loc_4146C0"], [9, "mov eax, cs:dword_483148"], [10, "pop rbp"], [11, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [10, 0], [11, 7], [11, 9]]}
static double errMax(unsigned fdim, const esterr *ee) { double errmax = 0; unsigned k; for (k = 0; k < fdim; ++k) if (ee[k].err > errmax) errmax = ee[k].err; return errmax; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40236C", "function_addr": 4203372, "binary_name": "1ac925d894a20d994a1cbc6c6fc0883208c23aa1c414bbc036efd491ff15476d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_14], edi"], [3, "mov [rbp+var_20], rsi"], [4, "pxor xmm0, xmm0"], [5, "movsd [rbp+var_8], xmm0"], [6, "mov [rbp+var_C], 0"], [7, "jmp short loc_4023C5"], [8, "mov eax, [rbp+var_C]"], [9, "shl rax, 4"], [10, "mov rdx, rax"], [11, "mov rax, [rbp+var_20]"], [12, "add rax, rdx"], [13, "movsd xmm0, qword ptr [rax+8]"], [14, "comisd xmm0, [rbp+var_8]"], [15, "jbe short loc_4023C1"], [16, "mov eax, [rbp+var_C]"], [17, "shl rax, 4"], [18, "mov rdx, rax"], [19, "mov rax, [rbp+var_20]"], [20, "add rax, rdx"], [21, "movsd xmm0, qword ptr [rax+8]"], [22, "movsd [rbp+var_8], xmm0"], [23, "add [rbp+var_C], 1"], [24, "mov eax, [rbp+var_C]"], [25, "cmp eax, [rbp+var_14]"], [26, "jb short loc_402389"], [27, "movsd xmm0, [rbp+var_8]"], [28, "movq rax, xmm0"], [29, "movq xmm0, rax"], [30, "pop rbp"], [31, "retn"]], "data_dep": [[5, 4], [8, 6], [8, 23], [9, 8], [10, 9], [11, 3], [12, 10], [12, 11], [13, 12], [14, 13], [14, 22], [14, 5], [15, 12], [16, 6], [16, 23], [17, 16], [18, 17], [19, 3], [20, 19], [20, 18], [21, 20], [22, 21], [23, 6], [23, 23], [24, 23], [24, 6], [25, 24], [25, 2], [26, 25], [27, 22], [27, 5], [28, 27], [29, 28], [30, 0], [31, 28]]}
static void PostDec (ExprDesc* Expr) /* Handle the postdecrement operator */ { unsigned Flags; NextToken (); /* The expression to increment must be an lvalue */ if (!ED_IsLVal (Expr)) { Error ("Invalid lvalue"); return; } /* We cannot modify const values */ if (IsQualConst (Expr->Type)) { Error ("Decrement of read-only variable"); } /* Get the data type */ Flags = TypeOf (Expr->Type); /* Push the address if needed */ PushAddr (Expr); /* Fetch the value and save it (since it's the result of the expression) */ LoadExpr (CF_NONE, Expr); g_save (Flags | CF_FORCECHAR); /* If we have a pointer expression, increment by the size of the type */ if (IsTypePtr (Expr->Type)) { g_dec (Flags | CF_CONST | CF_FORCECHAR, CheckedSizeOf (Expr->Type + 1)); } else { g_dec (Flags | CF_CONST | CF_FORCECHAR, 1); } /* Store the result back */ Store (Expr, 0); /* Restore the original value in the primary register */ g_restore (Flags | CF_FORCECHAR); /* The result is always an expression, no reference */ ED_MakeRValExpr (Expr); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43E043", "function_addr": 4448323, "binary_name": "cc514aea46329b2bbe7d1ede9a05315966bd71bcf8cc0ff6e5ffa267e88c9796.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "call sub_41C0B9"], [5, "mov rax, [rbp+var_18]"], [6, "mov rdi, rax"], [7, "call sub_43BB84"], [8, "test eax, eax"], [9, "jnz short loc_43E078"], [10, "mov edi, offset aInvalidLvalue"], [11, "mov eax, 0"], [12, "call sub_42C55B"], [13, "jmp locret_43E154"], [14, "mov rax, [rbp+var_18]"], [15, "mov rax, [rax+8]"], [16, "mov rdi, rax"], [17, "call sub_43BA9E"], [18, "test eax, eax"], [19, "jz short loc_43E09B"], [20, "mov edi, offset aDecrementOfRea"], [21, "mov eax, 0"], [22, "call sub_42C55B"], [23, "mov rax, [rbp+var_18]"], [24, "mov rax, [rax+8]"], [25, "mov rdi, rax"], [26, "call sub_43894D"], [27, "mov [rbp+var_4], eax"], [28, "mov rax, [rbp+var_18]"], [29, "mov rdi, rax"], [30, "call sub_43C0B9"], [31, "mov rax, [rbp+var_18]"], [32, "mov rsi, rax"], [33, "mov edi, 0"], [34, "call sub_4243FB"], [35, "mov eax, [rbp+var_4]"], [36, "or ah, 2"], [37, "mov edi, eax"], [38, "call sub_412D98"], [39, "mov rax, [rbp+var_18]"], [40, "mov rax, [rax+8]"], [41, "mov rdi, rax"], [42, "call sub_43B8D8"], [43, "test eax, eax"], [44, "jz short loc_43E116"], [45, "mov rax, [rbp+var_18]"], [46, "mov rax, [rax+8]"], [47, "add rax, 10h"], [48, "mov rdi, rax"], [49, "call sub_4388D5"], [50, "mov edx, eax"], [51, "mov eax, [rbp+var_4]"], [52, "or eax, 220h"], [53, "mov rsi, rdx"], [54, "mov edi, eax"], [55, "call sub_414DC2"], [56, "jmp short loc_43E12A"], [57, "mov eax, [rbp+var_4]"], [58, "or eax, 220h"], [59, "mov esi, 1"], [60, "mov edi, eax"], [61, "call sub_414DC2"], [62, "mov rax, [rbp+var_18]"], [63, "mov esi, 0"], [64, "mov rdi, rax"], [65, "call sub_43D98B"], [66, "mov eax, [rbp+var_4]"], [67, "or ah, 2"], [68, "mov edi, eax"], [69, "call sub_412E1A"], [70, "mov rax, [rbp+var_18]"], [71, "mov rdi, rax"], [72, "call sub_42B189"], [73, "leave"], [74, "retn"]], "data_dep": [[5, 3], [6, 5], [8, 7], [9, 8], [14, 3], [15, 14], [16, 15], [18, 17], [19, 18], [23, 3], [24, 23], [25, 24], [27, 26], [28, 3], [29, 28], [31, 3], [32, 31], [35, 27], [36, 35], [37, 36], [39, 3], [40, 39], [41, 40], [43, 42], [44, 43], [45, 3], [46, 45], [47, 46], [48, 47], [50, 49], [51, 27], [52, 51], [53, 50], [54, 52], [57, 27], [58, 57], [60, 58], [62, 3], [64, 62], [66, 27], [67, 66], [68, 67], [70, 3], [71, 70], [74, 12], [74, 72]]}
void fmsynthop_delete(FAR fmsynth_op_t *op) { if (op != NULL && op->own_allocate == 1) { if (op->eg) { fmsyntheg_delete(op->eg); } free(op); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401910", "function_addr": 4200720, "binary_name": "9224249fb00fcb1441a62a65be326c655615d3a8caf5fcdfdd9fd3bcc657c3d7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+ptr], rdi"], [4, "cmp [rbp+ptr], 0"], [5, "jz short loc_40194A"], [6, "mov rax, [rbp+ptr]"], [7, "mov rax, [rax]"], [8, "test rax, rax"], [9, "jz short loc_40193E"], [10, "mov rax, [rbp+ptr]"], [11, "mov rax, [rax]"], [12, "mov rdi, rax"], [13, "call _free"], [14, "mov rax, [rbp+ptr]"], [15, "mov rdi, rax"], [16, "call _free"], [17, "nop"], [18, "leave"], [19, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 7], [9, 8], [10, 3], [11, 10], [12, 11], [14, 3], [15, 14], [19, 16]]}