function_name
stringlengths
1
87
binary_name
stringlengths
64
64
author_name
stringlengths
2
36
project_name
stringlengths
1
48
opt
stringclasses
1 value
src
stringlengths
11
425k
dbg
stringclasses
1 value
codeart
stringlengths
257
560k
lmpa
stringlengths
619
152k
compilerInit
daf522ec791325a55c7ec4b0aa36a1929ad226357bee805d263ed61c8baffce7
Fedjmike
fcc
NA
void compilerInit (compilerCtx* ctx, const architecture* arch, const vector/*<char*>*/* searchPaths) { hashmapInit(&ctx->modules, 1024); ctx->arch = arch; ctx->searchPaths = searchPaths; ctx->errors = 0; ctx->warnings = 0; compilerInitSymbols(ctx); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409C29", "function_addr": 4234281, "binary_name": "daf522ec791325a55c7ec4b0aa36a1929ad226357bee805d263ed61c8baffce7.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_8]"], [7, "add rax, 10h"], [8, "mov esi, 400h"], [9, "mov rdi, rax"], [10, "call sub_410D1A"], [11, "mov rax, [rbp+var_8]"], [12, "mov rdx, [rbp+var_10]"], [13, "mov [rax+30h], rdx"], [14, "mov rax, [rbp+var_8]"], [15, "mov rdx, [rbp+var_18]"], [16, "mov [rax+38h], rdx"], [17, "mov rax, [rbp+var_8]"], [18, "mov dword ptr [rax+40h], 0"], [19, "mov rax, [rbp+var_8]"], [20, "mov dword ptr [rax+44h], 0"], [21, "mov rax, [rbp+var_8]"], [22, "mov rdi, rax"], [23, "call sub_409A0E"], [24, "nop"], [25, "leave"], [26, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 7], [11, 3], [12, 4], [13, 12], [13, 11], [14, 3], [15, 5], [16, 15], [16, 14], [17, 3], [18, 17], [19, 3], [20, 19], [21, 3], [22, 21], [26, 23]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/daf522ec791325a55c7ec4b0aa36a1929ad226357bee805d263ed61c8baffce7_daf522ec791325a55c7ec4b0aa36a1929ad226357bee805d263ed61c8baffce7.jsonl.gz", "strip_func_name": "sub_409C29", "query": "\n\n\n__int64 __fastcall sub_409C29(__int64 a1, __int64 a2, __int64 a3)\n{\nsub_410D1A(a1 + 16, 1024LL);\n*(_QWORD *)(a1 + 48) = a2;\n*(_QWORD *)(a1 + 56) = a3;\n*(_DWORD *)(a1 + 64) = 0;\n*(_DWORD *)(a1 + 68) = 0;\nreturn sub_409A0E((_QWORD *)a1);\n}\n\n\n\nQ:[a3,a1,a2,sub_409C29,sub_410D1A,sub_409A0E,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'searchPaths', 'a1': 'ctx', 'a2': 'arch', 'sub_409C29': 'compilerInit', 'sub_410D1A': 'hashmapInit', 'sub_409A0E': 'compilerInitSymbols'}"}
sm_handle_random_result_ph2_tk
c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252
bluekitchen
btstack
NA
static void sm_handle_random_result_ph2_tk(void * arg){ hci_con_handle_t con_handle = (hci_con_handle_t) (uintptr_t) arg; sm_connection_t * connection = sm_get_connection_for_handle(con_handle); if (connection == NULL) return; sm_reset_tk(); uint32_t tk; if (sm_fixed_passkey_in_display_role == 0xffffffffU){ // map random to 0-999999 without speding much cycles on a modulus operation tk = little_endian_read_32(sm_random_data,0); tk = tk & 0xfffff; // 1048575 if (tk >= 999999u){ tk = tk - 999999u; } } else { // override with pre-defined passkey tk = sm_fixed_passkey_in_display_role; } big_endian_store_32(setup->sm_tk, 12, tk); if (IS_RESPONDER(connection->sm_role)){ connection->sm_engine_state = SM_RESPONDER_PH1_SEND_PAIRING_RESPONSE; } else { if (setup->sm_use_secure_connections){ connection->sm_engine_state = SM_SC_SEND_PUBLIC_KEY_COMMAND; } else { connection->sm_engine_state = SM_PH1_W4_USER_RESPONSE; sm_trigger_user_response(connection); // response_idle == nothing <--> sm_trigger_user_response() did not require response if (setup->sm_user_response == SM_USER_RESPONSE_IDLE){ btstack_crypto_random_generate(&sm_crypto_random_request, setup->sm_local_random, 16, &sm_handle_random_result_ph2_random, (void *)(uintptr_t) connection->sm_handle); } } } sm_trigger_run(); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4216DB", "function_addr": 4331227, "binary_name": "c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252.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+var_6], ax"], [6, "movzx eax, [rbp+var_6]"], [7, "mov edi, eax"], [8, "call sub_4239A6"], [9, "mov [rbp+var_10], rax"], [10, "cmp [rbp+var_10], 0"], [11, "jz loc_4217FE"], [12, "call sub_41B30A"], [13, "mov eax, cs:dword_44C728"], [14, "cmp eax, 0FFFFFFFFh"], [15, "jnz short loc_421744"], [16, "mov esi, 0"], [17, "mov edi, offset unk_44C970"], [18, "call sub_408099"], [19, "mov [rbp+var_4], eax"], [20, "and [rbp+var_4], 0FFFFFh"], [21, "cmp [rbp+var_4], 0F423Eh"], [22, "jbe short loc_42174D"], [23, "sub [rbp+var_4], 0F423Fh"], [24, "jmp short loc_42174D"], [25, "mov eax, cs:dword_44C728"], [26, "mov [rbp+var_4], eax"], [27, "mov rax, cs:off_44B340"], [28, "lea rcx, [rax+2Ch]"], [29, "mov eax, [rbp+var_4]"], [30, "mov edx, eax"], [31, "mov esi, 0Ch"], [32, "mov rdi, rcx"], [33, "call sub_40845A"], [34, "mov rax, [rbp+var_10]"], [35, "movzx eax, byte ptr [rax+4]"], [36, "test al, al"], [37, "jz short loc_421783"], [38, "mov rax, [rbp+var_10]"], [39, "mov dword ptr [rax+18h], 22h "], [40, "jmp short loc_4217F7"], [41, "mov rax, cs:off_44B340"], [42, "movzx eax, byte ptr [rax+3Dh]"], [43, "test al, al"], [44, "jz short loc_42179F"], [45, "mov rax, [rbp+var_10]"], [46, "mov dword ptr [rax+18h], 31h "], [47, "jmp short loc_4217F7"], [48, "mov rax, [rbp+var_10]"], [49, "mov dword ptr [rax+18h], 4"], [50, "mov rax, [rbp+var_10]"], [51, "mov rdi, rax"], [52, "call sub_41C449"], [53, "mov rax, cs:off_44B340"], [54, "movzx eax, byte ptr [rax+20h]"], [55, "test al, al"], [56, "jnz short loc_4217F7"], [57, "mov rax, [rbp+var_10]"], [58, "movzx eax, word ptr [rax]"], [59, "movzx eax, ax"], [60, "mov rdx, rax"], [61, "mov rax, cs:off_44B340"], [62, "add rax, 5Ch "], [63, "mov r8, rdx"], [64, "mov ecx, offset sub_42169C"], [65, "mov edx, 10h"], [66, "mov rsi, rax"], [67, "mov edi, offset unk_44C8C0"], [68, "call sub_4186D4"], [69, "call sub_41B2D0"], [70, "jmp short locret_4217FF"], [71, "nop"], [72, "leave"], [73, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [9, 8], [10, 9], [11, 10], [14, 13], [15, 14], [19, 18], [20, 19], [21, 20], [22, 21], [23, 20], [26, 25], [28, 27], [29, 23], [29, 20], [29, 26], [30, 29], [32, 28], [34, 9], [35, 34], [36, 35], [37, 36], [38, 9], [39, 38], [42, 41], [43, 42], [44, 43], [45, 9], [46, 45], [48, 9], [49, 48], [50, 9], [51, 50], [54, 49], [54, 53], [55, 54], [56, 55], [57, 9], [58, 49], [58, 57], [59, 58], [60, 59], [62, 61], [63, 60], [66, 62], [73, 8], [73, 69]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252_c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252.jsonl.gz", "strip_func_name": "sub_4216DB", "query": "\n\n\n__int64 __fastcall sub_4216DB(unsigned __int16 a1)\n{\n__int64 result; // rax\nunsigned __int16 *v2; // [rsp+10h] [rbp-10h]\nunsigned int v3; // [rsp+1Ch] [rbp-4h]\n\nresult = sub_4239A6(a1);\nv2 = (unsigned __int16 *)result;\nif ( result )\n{\nsub_41B30A();\nif ( dword_44C728 == -1 )\n{\nv3 = sub_408099((__int64)&unk_44C970, 0) & 0xFFFFF;\nif ( v3 > 0xF423E )\nv3 -= 999999;\n}\nelse\n{\nv3 = dword_44C728;\n}\nsub_40845A((__int64)off_44B340 + 44, 0xCu, v3);\nif ( *((_BYTE *)v2 + 4) )\n{\n*((_DWORD *)v2 + 6) = 34;\n}\nelse if ( *((_BYTE *)off_44B340 + 61) )\n{\n*((_DWORD *)v2 + 6) = 49;\n}\nelse\n{\n*((_DWORD *)v2 + 6) = 4;\nsub_41C449((__int64)v2);\nif ( !*((_BYTE *)off_44B340 + 32) )\nsub_4186D4((__int64)&unk_44C8C0, (__int64)off_44B340 + 92, 16, (__int64)sub_42169C, *v2);\n}\nresult = sub_41B2D0();\n}\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,sub_4216DB,sub_4239A6,sub_41B30A,sub_408099,sub_40845A,sub_41C449,sub_4186D4,sub_42169C,sub_41B2D0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'arg', 'v2': 'connection', 'v3': 'tk', 'sub_4216DB': 'sm_handle_random_result_ph2_tk', 'sub_4239A6': 'sm_get_connection_for_handle_0', 'sub_41B30A': 'sm_reset_tk', 'sub_408099': 'little_endian_read_32', 'sub_40845A': 'big_endian_store_32', 'sub_41C449': 'sm_trigger_user_response', 'sub_4186D4': 'btstack_crypto_random_generate', 'sub_42169C': 'sm_handle_random_result_ph2_random', 'sub_41B2D0': 'sm_trigger_run'}"}
eloop_terminate
867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f
vanhoefm
hostap-wpa3
NA
void eloop_terminate(void) { eloop.terminate = 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_440537", "function_addr": 4457783, "binary_name": "867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov cs:dword_45AAC0, 1"], [3, "nop"], [4, "pop rbp"], [5, "retn"]], "data_dep": [[4, 0]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f_867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f.jsonl.gz", "strip_func_name": "sub_440537", "query": "\n\n\nvoid sub_440537()\n{\ndword_45AAC0 = 1;\n}\n\n\n\nQ:[sub_440537,]\nAssistant: ", "hints": "[]", "response": "{'sub_440537': 'eloop_terminate'}"}
autoset
6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17
RTimothyEdwards
XCircuit
NA
void autoset(xcWidget w, xcWidgetList entertext, caddr_t nulldata) { xobjs.pagelist[areawin->page]->pmode |= 2; updatetext(w, entertext, nulldata); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4800A0", "function_addr": 4718752, "binary_name": "6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17.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 rdx, cs:ptr"], [7, "mov rax, cs:qword_4E6B90"], [8, "movzx eax, word ptr [rax+6Ch]"], [9, "movsx rax, ax"], [10, "shl rax, 3"], [11, "add rax, rdx"], [12, "mov rax, [rax]"], [13, "movzx edx, word ptr [rax+3Ah]"], [14, "mov rcx, cs:ptr"], [15, "mov rax, cs:qword_4E6B90"], [16, "movzx eax, word ptr [rax+6Ch]"], [17, "movsx rax, ax"], [18, "shl rax, 3"], [19, "add rax, rcx"], [20, "mov rax, [rax]"], [21, "or edx, 2"], [22, "mov [rax+3Ah], dx"], [23, "mov rdx, [rbp+var_18]"], [24, "mov rcx, [rbp+var_10]"], [25, "mov rax, [rbp+var_8]"], [26, "mov rsi, rcx"], [27, "mov rdi, rax"], [28, "call sub_485478"], [29, "nop"], [30, "leave"], [31, "retn"]], "data_dep": [[8, 7], [9, 8], [10, 9], [11, 10], [11, 6], [12, 11], [13, 12], [16, 15], [17, 16], [18, 17], [19, 18], [19, 14], [20, 19], [21, 13], [22, 20], [22, 21], [23, 5], [24, 4], [25, 3], [26, 24], [27, 25], [31, 28]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17_6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17.jsonl.gz", "strip_func_name": "sub_4800A0", "query": "\n\n\n__int64 __fastcall sub_4800A0(__int64 a1, __int64 a2, __int64 a3)\n{\n*(_WORD *)(*((_QWORD *)ptr + *(__int16 *)(qword_4E6B90 + 108)) + 58LL) |= 2u;\nreturn sub_485478(a1, a2, a3);\n}\n\n\n\nQ:[a3,a1,a2,sub_4800A0,sub_485478,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'nulldata', 'a1': 'w', 'a2': 'entertext', 'sub_4800A0': 'autoset', 'sub_485478': 'updatetext'}"}
fnc_filter
c823bc55dc70527885c4a32fe372a4cbad8e31b982c6ff4cec767270fd7e72f1
PaulBatchelor
sndkit
NA
static LILCALLBACK lil_value_t fnc_filter(lil_t lil, size_t argc, lil_value_t* argv) { lil_list_t list, filtered; size_t i; lil_value_t r; const char* varname = "x"; int base = 0; if (argc < 1) return NULL; if (argc < 2) return lil_clone_value(argv[0]); if (argc > 2) { base = 1; varname = lil_to_string(argv[0]); } list = lil_subst_to_list(lil, argv[base]); filtered = lil_alloc_list(); for (i=0; i<list->c && !lil->env->breakrun; i++) { lil_set_var(lil, varname, list->v[i], LIL_SETVAR_LOCAL_ONLY); r = lil_eval_expr(lil, argv[base + 1]); if (lil_to_boolean(r)) lil_list_append(filtered, lil_clone_value(list->v[i])); lil_free_value(r); } lil_free_list(list); r = lil_list_to_value(filtered, 1); lil_free_list(filtered); return r; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4466BD", "function_addr": 4482749, "binary_name": "c823bc55dc70527885c4a32fe372a4cbad8e31b982c6ff4cec767270fd7e72f1.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_10], offset asc_44F0F3"], [7, "mov [rbp+var_14], 0"], [8, "cmp [rbp+var_40], 0"], [9, "jnz short loc_4466F1"], [10, "mov eax, 0"], [11, "jmp locret_44686D"], [12, "cmp [rbp+var_40], 1"], [13, "ja short loc_44670C"], [14, "mov rax, [rbp+var_48]"], [15, "mov rax, [rax]"], [16, "mov rdi, rax"], [17, "call sub_43E6F3"], [18, "jmp locret_44686D"], [19, "cmp [rbp+var_40], 2"], [20, "jbe short loc_44672D"], [21, "mov [rbp+var_14], 1"], [22, "mov rax, [rbp+var_48]"], [23, "mov rax, [rax]"], [24, "mov rdi, rax"], [25, "call sub_444047"], [26, "mov [rbp+var_10], rax"], [27, "mov eax, [rbp+var_14]"], [28, "cdqe"], [29, "lea rdx, ds:0[rax*8]"], [30, "mov rax, [rbp+var_48]"], [31, "add rax, rdx"], [32, "mov rdx, [rax]"], [33, "mov rax, [rbp+var_38]"], [34, "mov rsi, rdx"], [35, "mov rdi, rax"], [36, "call sub_440528"], [37, "mov [rbp+var_20], rax"], [38, "call sub_43EA24"], [39, "mov [rbp+var_28], rax"], [40, "mov [rbp+var_8], 0"], [41, "jmp loc_446815"], [42, "mov rax, [rbp+var_20]"], [43, "mov rdx, [rax]"], [44, "mov rax, [rbp+var_8]"], [45, "shl rax, 3"], [46, "add rax, rdx"], [47, "mov rdx, [rax]"], [48, "mov rsi, [rbp+var_10]"], [49, "mov rax, [rbp+var_38]"], [50, "mov ecx, 3"], [51, "mov rdi, rax"], [52, "call sub_43F30F"], [53, "mov eax, [rbp+var_14]"], [54, "cdqe"], [55, "add rax, 1"], [56, "lea rdx, ds:0[rax*8]"], [57, "mov rax, [rbp+var_48]"], [58, "add rax, rdx"], [59, "mov rdx, [rax]"], [60, "mov rax, [rbp+var_38]"], [61, "mov rsi, rdx"], [62, "mov rdi, rax"], [63, "call sub_443E01"], [64, "mov [rbp+var_30], rax"], [65, "mov rax, [rbp+var_30]"], [66, "mov rdi, rax"], [67, "call sub_4440C1"], [68, "test eax, eax"], [69, "jz short loc_446804"], [70, "mov rax, [rbp+var_20]"], [71, "mov rdx, [rax]"], [72, "mov rax, [rbp+var_8]"], [73, "shl rax, 3"], [74, "add rax, rdx"], [75, "mov rax, [rax]"], [76, "mov rdi, rax"], [77, "call sub_43E6F3"], [78, "mov rdx, rax"], [79, "mov rax, [rbp+var_28]"], [80, "mov rsi, rdx"], [81, "mov rdi, rax"], [82, "call sub_43EABD"], [83, "mov rax, [rbp+var_30]"], [84, "mov rdi, rax"], [85, "call sub_43E9F0"], [86, "add [rbp+var_8], 1"], [87, "mov rax, [rbp+var_20]"], [88, "mov rax, [rax+8]"], [89, "cmp [rbp+var_8], rax"], [90, "jnb short loc_44683C"], [91, "mov rax, [rbp+var_38]"], [92, "mov rax, [rax+1058h]"], [93, "mov eax, [rax+1034h]"], [94, "test eax, eax"], [95, "jz loc_44676D"], [96, "mov rax, [rbp+var_20]"], [97, "mov rdi, rax"], [98, "call sub_43EA50"], [99, "mov rax, [rbp+var_28]"], [100, "mov esi, 1"], [101, "mov rdi, rax"], [102, "call sub_43EC7C"], [103, "mov [rbp+var_30], rax"], [104, "mov rax, [rbp+var_28]"], [105, "mov rdi, rax"], [106, "call sub_43EA50"], [107, "mov rax, [rbp+var_30]"], [108, "leave"], [109, "retn"]], "data_dep": [[8, 4], [9, 8], [12, 4], [13, 12], [14, 5], [15, 14], [16, 15], [19, 4], [20, 19], [22, 5], [23, 22], [24, 23], [26, 25], [27, 21], [27, 7], [30, 5], [31, 29], [31, 30], [32, 31], [33, 3], [34, 32], [35, 33], [37, 36], [39, 38], [42, 37], [43, 42], [44, 86], [44, 40], [45, 44], [46, 43], [46, 45], [47, 46], [48, 26], [48, 6], [49, 3], [51, 49], [53, 7], [53, 21], [55, 53], [56, 47], [57, 5], [58, 56], [58, 57], [59, 58], [60, 3], [61, 59], [62, 60], [64, 63], [65, 64], [66, 65], [68, 67], [69, 68], [70, 37], [71, 70], [72, 86], [72, 40], [73, 72], [74, 73], [74, 71], [75, 74], [76, 75], [78, 77], [79, 39], [80, 78], [81, 79], [83, 64], [84, 83], [86, 40], [86, 86], [87, 37], [88, 87], [89, 86], [89, 40], [89, 88], [90, 89], [91, 3], [92, 91], [93, 92], [94, 93], [95, 94], [96, 37], [97, 96], [99, 39], [101, 99], [103, 102], [104, 39], [105, 104], [107, 103], [109, 17], [109, 10], [109, 107]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c823bc55dc70527885c4a32fe372a4cbad8e31b982c6ff4cec767270fd7e72f1_c823bc55dc70527885c4a32fe372a4cbad8e31b982c6ff4cec767270fd7e72f1.jsonl.gz", "strip_func_name": "sub_4466BD", "query": "\n\n\nvoid **__fastcall sub_4466BD(_QWORD *a1, unsigned __int64 a2, __int64 *a3)\n{\nchar *v4; // rax\nvoid **v6; // [rsp+20h] [rbp-30h]\nvoid **v7; // [rsp+20h] [rbp-30h]\nvoid **v8; // [rsp+28h] [rbp-28h]\n_QWORD *v9; // [rsp+30h] [rbp-20h]\nint v10; // [rsp+3Ch] [rbp-14h]\nchar *v11; // [rsp+40h] [rbp-10h]\nunsigned __int64 i; // [rsp+48h] [rbp-8h]\n\nv11 = \"x\";\nv10 = 0;\nif ( !a2 )\nreturn 0LL;\nif ( a2 <= 1 )\nreturn sub_43E6F3(*a3);\nif ( a2 > 2 )\n{\nv10 = 1;\nv11 = (char *)sub_444047((_QWORD *)*a3);\n}\nv9 = sub_440528((__int64)a1, (_QWORD *)a3[v10]);\nv8 = (void **)sub_43EA24();\nfor ( i = 0LL; i < v9[1] && !*(_DWORD *)(a1[523] + 4148LL); ++i )\n{\nsub_43F30F(a1, v11, *(_QWORD *)(*v9 + 8 * i), 3);\nv6 = (void **)sub_443E01((__int64)a1, (_QWORD *)a3[v10 + 1]);\nif ( (unsigned int)sub_4440C1(v6) )\n{\nv4 = (char *)sub_43E6F3(*(_QWORD *)(*v9 + 8 * i));\nsub_43EABD(v8, v4);\n}\nsub_43E9F0(v6);\n}\nsub_43EA50((__int64)v9);\nv7 = sub_43EC7C(v8, 1);\nsub_43EA50((__int64)v8);\nreturn v7;\n}\n\n\n\nQ:[a3,a1,a2,v6,v8,v9,v10,v11,sub_4466BD,sub_43E6F3,sub_444047,sub_440528,sub_43EA24,sub_43F30F,sub_443E01,sub_4440C1,sub_43EABD,sub_43E9F0,sub_43EA50,sub_43EC7C,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'argv', 'a1': 'lil', 'a2': 'argc', 'v6': 'r', 'v8': 'filtered', 'v9': 'list', 'v10': 'base', 'v11': 'varname', 'sub_4466BD': 'fnc_filter', 'sub_43E6F3': 'lil_clone_value', 'sub_444047': 'lil_to_string', 'sub_440528': 'lil_subst_to_list', 'sub_43EA24': 'lil_alloc_list', 'sub_43F30F': 'lil_set_var', 'sub_443E01': 'lil_eval_expr', 'sub_4440C1': 'lil_to_boolean', 'sub_43EABD': 'lil_list_append', 'sub_43E9F0': 'lil_free_value', 'sub_43EA50': 'lil_free_list', 'sub_43EC7C': 'lil_list_to_value'}"}
parse_decorate_color_slot
8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590
msysgit
msysgit
NA
static int parse_decorate_color_slot(const char *slot) { /* * We're comparing with 'ignore-case' on * (because config.c sets them all tolower), * but let's match the letters in the literal * string values here with how they are * documented in Documentation/config.txt, for * consistency. * * We love being consistent, don't we? */ if (!strcasecmp(slot, "branch")) return DECORATION_REF_LOCAL; if (!strcasecmp(slot, "remoteBranch")) return DECORATION_REF_REMOTE; if (!strcasecmp(slot, "tag")) return DECORATION_REF_TAG; if (!strcasecmp(slot, "stash")) return DECORATION_REF_STASH; if (!strcasecmp(slot, "HEAD")) return DECORATION_REF_HEAD; return -1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_488B35", "function_addr": 4754229, "binary_name": "8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+s1], rdi"], [4, "mov rax, [rbp+s1]"], [5, "mov esi, offset aBranch_1"], [6, "mov rdi, rax"], [7, "call _strcasecmp"], [8, "test eax, eax"], [9, "jnz short loc_488B5D"], [10, "mov eax, 1"], [11, "jmp short locret_488BD2"], [12, "mov rax, [rbp+s1]"], [13, "mov esi, offset aRemotebranch"], [14, "mov rdi, rax"], [15, "call _strcasecmp"], [16, "test eax, eax"], [17, "jnz short loc_488B79"], [18, "mov eax, 2"], [19, "jmp short locret_488BD2"], [20, "mov rax, [rbp+s1]"], [21, "mov esi, offset aTag_2"], [22, "mov rdi, rax"], [23, "call _strcasecmp"], [24, "test eax, eax"], [25, "jnz short loc_488B95"], [26, "mov eax, 3"], [27, "jmp short locret_488BD2"], [28, "mov rax, [rbp+s1]"], [29, "mov esi, offset aStash"], [30, "mov rdi, rax"], [31, "call _strcasecmp"], [32, "test eax, eax"], [33, "jnz short loc_488BB1"], [34, "mov eax, 4"], [35, "jmp short locret_488BD2"], [36, "mov rax, [rbp+s1]"], [37, "mov esi, offset aHead_7"], [38, "mov rdi, rax"], [39, "call _strcasecmp"], [40, "test eax, eax"], [41, "jnz short loc_488BCD"], [42, "mov eax, 5"], [43, "jmp short locret_488BD2"], [44, "mov eax, 0FFFFFFFFh"], [45, "leave"], [46, "retn"]], "data_dep": [[4, 3], [6, 4], [8, 7], [9, 8], [12, 3], [14, 12], [16, 15], [17, 16], [20, 3], [22, 20], [24, 23], [25, 24], [28, 3], [30, 28], [32, 31], [33, 32], [36, 3], [38, 36], [40, 39], [41, 40], [46, 42], [46, 26], [46, 44], [46, 10], [46, 34], [46, 18]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590_8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.jsonl.gz", "strip_func_name": "sub_488B35", "query": "\n\n\n__int64 __fastcall sub_488B35(const char *a1)\n{\nif ( !strcasecmp(a1, \"branch\") )\nreturn 1LL;\nif ( !strcasecmp(a1, \"remoteBranch\") )\nreturn 2LL;\nif ( !strcasecmp(a1, \"tag\") )\nreturn 3LL;\nif ( !strcasecmp(a1, \"stash\") )\nreturn 4LL;\nif ( !strcasecmp(a1, \"HEAD\") )\nreturn 5LL;\nreturn 0xFFFFFFFFLL;\n}\n\n\n\nQ:[a1,sub_488B35,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'slot', 'sub_488B35': 'parse_decorate_color_slot'}"}
sim_brk_test
f5f55431a8be04d049221013e4b7a1767d2084367d904e420b352ad44425444d
open-simh
simh
NA
uint32 sim_brk_test (t_addr loc, uint32 btyp) { BRKTAB *bp; uint32 spc = (btyp >> SIM_BKPT_V_SPC) & (SIM_BKPT_N_SPC - 1); if (sim_brk_summ & BRK_TYP_DYN_ALL) btyp |= BRK_TYP_DYN_ALL; if ((bp = sim_brk_fnd_ex (loc, btyp, TRUE, spc))) { /* in table, and type match? */ double s_gtime = sim_gtime (); /* get time now */ if (bp->time_fired[spc] == s_gtime) /* already taken? */ return 0; bp->time_fired[spc] = s_gtime; /* remember match time */ if (--bp->cnt > 0) /* count > 0? */ return 0; bp->cnt = 0; /* reset count */ sim_brk_setact (bp->act); /* set up actions */ sim_brk_match_type = btyp & bp->typ; /* set return value */ if (bp->typ & BRK_TYP_TEMP) sim_brk_clr (loc, bp->typ); /* delete one-shot breakpoint */ sim_brk_match_addr = loc; return sim_brk_match_type; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_439457", "function_addr": 4428887, "binary_name": "f5f55431a8be04d049221013e4b7a1767d2084367d904e420b352ad44425444d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_24], edi"], [4, "mov [rbp+var_28], esi"], [5, "mov eax, [rbp+var_28]"], [6, "shr eax, 1Dh"], [7, "mov [rbp+var_4], eax"], [8, "mov eax, cs:dword_4FB530"], [9, "and eax, 0C000000h"], [10, "test eax, eax"], [11, "jz short loc_439484"], [12, "or [rbp+var_28], 0C000000h"], [13, "mov edx, [rbp+var_4]"], [14, "mov esi, [rbp+var_28]"], [15, "mov eax, [rbp+var_24]"], [16, "mov ecx, edx"], [17, "mov edx, 1"], [18, "mov edi, eax"], [19, "call sub_438777"], [20, "mov [rbp+var_10], rax"], [21, "cmp [rbp+var_10], 0"], [22, "jz loc_43957B"], [23, "call sub_4383B2"], [24, "movq rax, xmm0"], [25, "mov [rbp+var_18], rax"], [26, "mov rax, [rbp+var_10]"], [27, "mov edx, [rbp+var_4]"], [28, "add rdx, 2"], [29, "movsd xmm0, qword ptr [rax+rdx*8+8]"], [30, "ucomisd xmm0, [rbp+var_18]"], [31, "jp short loc_4394E1"], [32, "ucomisd xmm0, [rbp+var_18]"], [33, "jnz short loc_4394E1"], [34, "mov eax, 0"], [35, "jmp locret_439580"], [36, "mov rax, [rbp+var_10]"], [37, "mov edx, [rbp+var_4]"], [38, "add rdx, 2"], [39, "movsd xmm0, [rbp+var_18]"], [40, "movsd qword ptr [rax+rdx*8+8], xmm0"], [41, "mov rax, [rbp+var_10]"], [42, "mov eax, [rax+8]"], [43, "lea edx, [rax-1]"], [44, "mov rax, [rbp+var_10]"], [45, "mov [rax+8], edx"], [46, "mov rax, [rbp+var_10]"], [47, "mov eax, [rax+8]"], [48, "test eax, eax"], [49, "jle short loc_43951A"], [50, "mov eax, 0"], [51, "jmp short locret_439580"], [52, "mov rax, [rbp+var_10]"], [53, "mov dword ptr [rax+8], 0"], [54, "mov rax, [rbp+var_10]"], [55, "mov rax, [rax+10h]"], [56, "mov rdi, rax"], [57, "call sub_43987F"], [58, "mov rax, [rbp+var_10]"], [59, "mov eax, [rax+4]"], [60, "and eax, [rbp+var_28]"], [61, "mov cs:dword_4FB544, eax"], [62, "mov rax, [rbp+var_10]"], [63, "mov eax, [rax+4]"], [64, "and eax, 10000000h"], [65, "test eax, eax"], [66, "jz short loc_43956A"], [67, "mov rax, [rbp+var_10]"], [68, "mov eax, [rax+4]"], [69, "mov edx, eax"], [70, "mov eax, [rbp+var_24]"], [71, "mov esi, edx"], [72, "mov edi, eax"], [73, "call sub_438C92"], [74, "mov eax, [rbp+var_24]"], [75, "mov cs:dword_4FB548, eax"], [76, "mov eax, cs:dword_4FB544"], [77, "jmp short locret_439580"], [78, "mov eax, 0"], [79, "leave"], [80, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [9, 8], [10, 9], [11, 10], [12, 4], [13, 7], [14, 12], [14, 4], [15, 3], [16, 13], [18, 15], [20, 19], [21, 20], [22, 21], [25, 24], [26, 20], [27, 7], [28, 27], [29, 26], [30, 29], [30, 25], [31, 28], [32, 30], [32, 25], [33, 28], [36, 20], [37, 7], [38, 37], [39, 25], [40, 36], [40, 39], [41, 20], [42, 41], [42, 40], [43, 38], [43, 40], [43, 42], [44, 20], [45, 43], [45, 44], [46, 20], [47, 45], [47, 46], [48, 47], [49, 48], [52, 20], [53, 52], [54, 20], [55, 54], [55, 53], [56, 55], [58, 20], [59, 58], [59, 53], [60, 12], [60, 59], [60, 4], [61, 60], [62, 20], [63, 53], [63, 62], [64, 63], [65, 64], [66, 65], [67, 20], [68, 45], [68, 40], [68, 53], [68, 67], [69, 68], [70, 3], [71, 69], [72, 70], [74, 3], [75, 74], [76, 61], [80, 76], [80, 78], [80, 34], [80, 50]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f5f55431a8be04d049221013e4b7a1767d2084367d904e420b352ad44425444d_f5f55431a8be04d049221013e4b7a1767d2084367d904e420b352ad44425444d.jsonl.gz", "strip_func_name": "sub_439457", "query": "\n\n\n__int64 __fastcall sub_439457(unsigned int a1, unsigned int a2)\n{\nint v3; // [rsp+8h] [rbp-28h]\ndouble v4; // [rsp+18h] [rbp-18h]\nunsigned int *v5; // [rsp+20h] [rbp-10h]\nunsigned int v6; // [rsp+2Ch] [rbp-4h]\n\nv3 = a2;\nv6 = a2 >> 29;\nif ( (dword_4FB530 & 0xC000000) != 0 )\nv3 = a2 | 0xC000000;\nv5 = sub_438777(a1, v3, 1, v6);\nif ( !v5 )\nreturn 0LL;\nv4 = sub_4383B2();\nif ( *(double *)&v5[2 * v6 + 6] == v4 )\nreturn 0LL;\n*(double *)&v5[2 * v6 + 6] = v4;\nif ( (int)--v5[2] > 0 )\nreturn 0LL;\nv5[2] = 0;\nsub_43987F(*((_QWORD *)v5 + 2));\ndword_4FB544 = v3 & v5[1];\nif ( (v5[1] & 0x10000000) != 0 )\nsub_438C92(a1, v5[1]);\ndword_4FB548 = a1;\nreturn (unsigned int)dword_4FB544;\n}\n\n\n\nQ:[a1,a2,v3,v4,v5,v6,sub_439457,sub_438777,sub_4383B2,sub_43987F,sub_438C92,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'loc', 'a2': 'btyp', 'v3': 'btypa', 'v4': 's_gtime', 'v5': 'bp_0', 'v6': 'spc', 'sub_439457': 'sim_brk_test', 'sub_438777': 'sim_brk_fnd_ex', 'sub_4383B2': 'sim_gtime', 'sub_43987F': 'sim_brk_setact', 'sub_438C92': 'sim_brk_clr'}"}
sim_disk_info_cmd
5a51c9d5ef2814c801fdc67e9191b92af84684b5df3273cfc43b189428836e99
open-simh
simh
NA
t_stat sim_disk_info_cmd (int32 flag, CONST char *cptr) { DISK_INFO_CTX disk_info_state; t_stat stat; if ((!cptr) || (*cptr == 0)) return SCPE_2FARG; GET_SWITCHES (cptr); /* get switches */ memset (&disk_info_state, 0, sizeof (disk_info_state)); disk_info_state.flag = flag; stat = sim_dir_scan (cptr, sim_disk_info_entry, &disk_info_state); if (stat == SCPE_OK) return disk_info_state.stat; return sim_messagef (SCPE_OK, "No such file or directory: %s\n", cptr); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_48C35A", "function_addr": 4768602, "binary_name": "5a51c9d5ef2814c801fdc67e9191b92af84684b5df3273cfc43b189428836e99.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+var_20], rsi"], [5, "cmp [rbp+var_20], 0"], [6, "jz short loc_48C37B"], [7, "mov rax, [rbp+var_20]"], [8, "movzx eax, byte ptr [rax]"], [9, "test al, al"], [10, "jnz short loc_48C382"], [11, "mov eax, 5Eh "], [12, "jmp short locret_48C3FA"], [13, "mov rax, [rbp+var_20]"], [14, "mov rdi, rax"], [15, "call sub_42F05B"], [16, "mov [rbp+var_20], rax"], [17, "cmp [rbp+var_20], 0"], [18, "jnz short loc_48C3A0"], [19, "mov eax, 5Ch "], [20, "jmp short locret_48C3FA"], [21, "lea rax, [rbp+s]"], [22, "mov edx, 8"], [23, "mov esi, 0"], [24, "mov rdi, rax"], [25, "call _memset"], [26, "mov eax, [rbp+var_14]"], [27, "mov [rbp+var_8], eax"], [28, "lea rdx, [rbp+s]"], [29, "mov rax, [rbp+var_20]"], [30, "mov esi, offset sub_48BA61"], [31, "mov rdi, rax"], [32, "call sub_44A316"], [33, "mov [rbp+var_4], eax"], [34, "cmp [rbp+var_4], 0"], [35, "jnz short loc_48C3DF"], [36, "mov eax, [rbp+s]"], [37, "jmp short locret_48C3FA"], [38, "mov rax, [rbp+var_20]"], [39, "mov rdx, rax"], [40, "mov esi, offset aNoSuchFileOrDi_0"], [41, "mov edi, 0"], [42, "mov eax, 0"], [43, "call sub_438351"], [44, "leave"], [45, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 4], [8, 7], [9, 8], [10, 9], [13, 4], [14, 13], [16, 15], [17, 16], [18, 17], [21, 15], [24, 21], [26, 3], [27, 26], [28, 22], [29, 16], [31, 29], [33, 32], [34, 33], [35, 34], [38, 16], [39, 38], [45, 19], [45, 43], [45, 36], [45, 11]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/5a51c9d5ef2814c801fdc67e9191b92af84684b5df3273cfc43b189428836e99_5a51c9d5ef2814c801fdc67e9191b92af84684b5df3273cfc43b189428836e99.jsonl.gz", "strip_func_name": "sub_48C35A", "query": "\n\n\n__int64 __fastcall sub_48C35A(int a1, char *a2)\n{\n__int64 result; // rax\n__int64 v3; // rcx\n__int64 v4; // r8\n__int64 v5; // r9\nchar *v6; // [rsp+0h] [rbp-20h]\nint s[2]; // [rsp+14h] [rbp-Ch] BYREF\n\nif ( !a2 || !*a2 )\nreturn 94LL;\nv6 = sub_42F05B(a2);\nif ( !v6 )\nreturn 92LL;\nmemset(s, 0, sizeof(s));\ns[1] = a1;\nif ( (unsigned int)sub_44A316(\nv6,\n(void (__fastcall *)(char *, char *, __int64, struct stat *, __int64))sub_48BA61,\n(__int64)s) )\nresult = sub_438351(0, \"No such file or directory: %s\\n\", (__int64)v6, v3, v4, v5);\nelse\nresult = (unsigned int)s[0];\nreturn result;\n}\n\n\n\nQ:[a1,a2,v6,s,sub_48C35A,sub_42F05B,sub_44A316,sub_48BA61,sub_438351,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'flag', 'a2': 'cptr', 'v6': 'cptra', 's': 'disk_info_state', 'sub_48C35A': 'sim_disk_info_cmd', 'sub_42F05B': 'get_sim_sw', 'sub_44A316': 'sim_dir_scan', 'sub_48BA61': 'sim_disk_info_entry', 'sub_438351': 'sim_messagef'}"}
gt_fm_read_mem
c6a651db590801fbbdac97ed19d45d97b63db6c724e59cfcfeaf87d2d3f13e43
smarco
gem3-mapper
NA
GT_INLINE uint64_t gt_fm_read_mem(gt_fm* const fm,void* const dst,const uint64_t num_bytes) { GT_FM_CHECK(fm); GT_NULL_CHECK(dst); GT_ZERO_CHECK(num_bytes); gt_fatal_check(fm->mode!=GT_FM_READ,FM_INVALID_MODE_READ,fm->file_name); // Read int64_t num_bytes_read = 0; switch (fm->file_type) { case GT_FM_STREAM: case GT_FM_REGULAR_FILE: num_bytes_read = fread(dst,1,num_bytes,fm->file); fm->eof = (num_bytes_read<num_bytes); break; #ifdef HAVE_ZLIB case GT_FM_GZIPPED_FILE: num_bytes_read = gzread(fm->gz_file,dst,num_bytes); gt_cond_fatal_error(num_bytes_read==-1,FM_GZREAD,num_bytes,fm->file_name); fm->eof = (num_bytes_read<num_bytes); break; #endif #ifdef HAVE_BZLIB case GT_FM_BZIPPED_FILE: if (!fm->eof) { int bzerror; num_bytes_read = BZ2_bzRead(&bzerror,fm->bz_file,dst,num_bytes); if (gt_expect_false(bzerror==BZ_STREAM_END)) { fm->eof = true; } else { gt_cond_fatal_error(bzerror!=BZ_OK,FM_BZREAD,num_bytes,fm->file_name); fm->eof = num_bytes_read<num_bytes; } } break; #endif default: GT_INVALID_CASE(); break; } // Update locator fm->byte_position += num_bytes_read; return num_bytes_read; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "gt_fm_read_mem", "function_addr": 4251987, "binary_name": "c6a651db590801fbbdac97ed19d45d97b63db6c724e59cfcfeaf87d2d3f13e43.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+ptr], rsi"], [5, "mov [rbp+n], rdx"], [6, "mov [rbp+var_8], 0"], [7, "mov rax, [rbp+var_48]"], [8, "mov eax, [rax+20h]"], [9, "cmp eax, 3"], [10, "jz loc_40E2B8"], [11, "cmp eax, 3"], [12, "ja loc_40E3D3"], [13, "cmp eax, 1"], [14, "jbe short loc_40E197"], [15, "cmp eax, 2"], [16, "jz short loc_40E1CF"], [17, "jmp loc_40E3D3"], [18, "mov rax, [rbp+var_48]"], [19, "mov rcx, [rax+8]"], [20, "mov rdx, [rbp+n]"], [21, "mov rax, [rbp+ptr]"], [22, "mov esi, 1"], [23, "mov rdi, rax"], [24, "call _fread"], [25, "mov [rbp+var_8], rax"], [26, "mov rax, [rbp+var_8]"], [27, "cmp [rbp+n], rax"], [28, "setnbe dl"], [29, "mov rax, [rbp+var_48]"], [30, "mov [rax+40h], dl"], [31, "jmp loc_40E457"], [32, "mov rax, [rbp+n]"], [33, "mov edx, eax"], [34, "mov rax, [rbp+var_48]"], [35, "mov rax, [rax+10h]"], [36, "mov rcx, [rbp+ptr]"], [37, "mov rsi, rcx"], [38, "mov rdi, rax"], [39, "call _gzread"], [40, "cdqe"], [41, "mov [rbp+var_8], rax"], [42, "cmp [rbp+var_8], 0FFFFFFFFFFFFFFFFh"], [43, "setz al"], [44, "movzx eax, al"], [45, "test rax, rax"], [46, "jz loc_40E2A1"], [47, "mov rax, offset mute_error_stream"], [48, "movzx eax, byte ptr [rax]"], [49, "xor eax, 1"], [50, "test al, al"], [51, "jz short loc_40E28D"], [52, "mov eax, 0"], [53, "call gt_error_get_stream"], [54, "mov [rbp+stream], rax"], [55, "mov rax, [rbp+var_48]"], [56, "mov rdx, [rax+28h]"], [57, "mov [rbp+var_28], 0"], [58, "cmp [rbp+var_28], 0"], [59, "jz short loc_40E246"], [60, "mov rax, [rbp+var_28]"], [61, "add rax, 1"], [62, "jmp short loc_40E24D"], [63, "lea rax, aGtFmC"], [64, "mov rcx, [rbp+n]"], [65, "mov rdi, [rbp+stream]"], [66, "sub rsp, 8"], [67, "push rdx"], [68, "mov r9, rcx"], [69, "lea r8, aGtFmReadMem_0"], [70, "mov ecx, 1AFh"], [71, "mov rdx, rax"], [72, "lea rsi, aFatalErrorSDSC_13"], [73, "mov eax, 0"], [74, "call _fprintf"], [75, "add rsp, 10h"], [76, "mov rax, [rbp+stream]"], [77, "mov rdi, rax"], [78, "call _fflush"], [79, "mov eax, 0"], [80, "call gt_print_stack_trace"], [81, "mov edi, 1"], [82, "call _exit"], [83, "mov rax, [rbp+var_8]"], [84, "cmp [rbp+n], rax"], [85, "setnbe dl"], [86, "mov rax, [rbp+var_48]"], [87, "mov [rax+40h], dl"], [88, "jmp loc_40E457"], [89, "mov rax, [rbp+var_48]"], [90, "movzx eax, byte ptr [rax+40h]"], [91, "xor eax, 1"], [92, "test al, al"], [93, "jz loc_40E456"], [94, "mov rax, [rbp+n]"], [95, "mov ecx, eax"], [96, "mov rax, [rbp+var_48]"], [97, "mov rsi, [rax+18h]"], [98, "mov rdx, [rbp+ptr]"], [99, "lea rax, [rbp+var_3C]"], [100, "mov rdi, rax"], [101, "call _BZ2_bzRead"], [102, "cdqe"], [103, "mov [rbp+var_8], rax"], [104, "mov eax, [rbp+var_3C]"], [105, "cmp eax, 4"], [106, "setz al"], [107, "movzx eax, al"], [108, "test rax, rax"], [109, "jz short loc_40E30D"], [110, "mov rax, [rbp+var_48]"], [111, "mov byte ptr [rax+40h], 1"], [112, "jmp loc_40E456"], [113, "mov eax, [rbp+var_3C]"], [114, "test eax, eax"], [115, "setnz al"], [116, "movzx eax, al"], [117, "test rax, rax"], [118, "jz loc_40E3BC"], [119, "mov rax, offset mute_error_stream"], [120, "movzx eax, byte ptr [rax]"], [121, "xor eax, 1"], [122, "test al, al"], [123, "jz short loc_40E3A8"], [124, "mov eax, 0"], [125, "call gt_error_get_stream"], [126, "mov [rbp+var_10], rax"], [127, "mov rax, [rbp+var_48]"], [128, "mov rdx, [rax+28h]"], [129, "mov [rbp+var_18], 0"], [130, "cmp [rbp+var_18], 0"], [131, "jz short loc_40E361"], [132, "mov rax, [rbp+var_18]"], [133, "add rax, 1"], [134, "jmp short loc_40E368"], [135, "lea rax, aGtFmC"], [136, "mov rcx, [rbp+n]"], [137, "mov rdi, [rbp+var_10]"], [138, "sub rsp, 8"], [139, "push rdx"], [140, "mov r9, rcx"], [141, "lea r8, aGtFmReadMem_0"], [142, "mov ecx, 1BBh"], [143, "mov rdx, rax"], [144, "lea rsi, aFatalErrorSDSC_14"], [145, "mov eax, 0"], [146, "call _fprintf"], [147, "add rsp, 10h"], [148, "mov rax, [rbp+var_10]"], [149, "mov rdi, rax"], [150, "call _fflush"], [151, "mov eax, 0"], [152, "call gt_print_stack_trace"], [153, "mov edi, 1"], [154, "call _exit"], [155, "mov rax, [rbp+var_8]"], [156, "cmp [rbp+n], rax"], [157, "setnbe dl"], [158, "mov rax, [rbp+var_48]"], [159, "mov [rax+40h], dl"], [160, "jmp loc_40E456"], [161, "mov rax, offset mute_error_stream"], [162, "movzx eax, byte ptr [rax]"], [163, "xor eax, 1"], [164, "test al, al"], [165, "jz short loc_40E442"], [166, "mov eax, 0"], [167, "call gt_error_get_stream"], [168, "mov [rbp+var_30], rax"], [169, "mov [rbp+var_38], 0"], [170, "cmp [rbp+var_38], 0"], [171, "jz short loc_40E40B"], [172, "mov rax, [rbp+var_38]"], [173, "add rax, 1"], [174, "jmp short loc_40E412"], [175, "lea rax, aGtFmC"], [176, "mov rdi, [rbp+var_30]"], [177, "lea r8, aGtFmReadMem_0"], [178, "mov ecx, 1C2h"], [179, "mov rdx, rax"], [180, "lea rsi, aFatalErrorSDSL_0"], [181, "mov eax, 0"], [182, "call _fprintf"], [183, "mov rax, [rbp+var_30]"], [184, "mov rdi, rax"], [185, "call _fflush"], [186, "mov eax, 0"], [187, "call gt_print_stack_trace"], [188, "mov edi, 1"], [189, "call _exit"], [190, "nop"], [191, "mov rax, [rbp+var_48]"], [192, "mov rdx, [rax+30h]"], [193, "mov rax, [rbp+var_8]"], [194, "add rdx, rax"], [195, "mov rax, [rbp+var_48]"], [196, "mov [rax+30h], rdx"], [197, "mov rax, [rbp+var_8]"], [198, "leave"], [199, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 8], [10, 9], [11, 8], [12, 11], [13, 8], [14, 13], [15, 8], [16, 15], [18, 3], [19, 18], [20, 5], [21, 4], [23, 21], [25, 24], [26, 25], [27, 26], [27, 5], [28, 27], [28, 20], [29, 3], [30, 29], [30, 28], [32, 5], [33, 32], [34, 3], [35, 34], [36, 4], [37, 36], [38, 35], [41, 39], [42, 41], [43, 39], [43, 42], [44, 43], [45, 44], [46, 45], [48, 47], [49, 48], [50, 49], [51, 50], [54, 53], [55, 3], [56, 55], [58, 57], [59, 58], [60, 57], [61, 60], [63, 55], [64, 5], [65, 54], [66, 2], [67, 56], [68, 64], [71, 61], [71, 63], [72, 37], [75, 66], [76, 54], [77, 76], [83, 41], [84, 83], [84, 5], [85, 84], [85, 33], [86, 3], [87, 86], [87, 85], [89, 3], [90, 89], [91, 90], [92, 91], [93, 92], [94, 5], [95, 94], [96, 3], [97, 96], [98, 4], [99, 96], [100, 99], [103, 101], [105, 104], [106, 104], [106, 105], [107, 106], [108, 107], [109, 108], [110, 3], [111, 110], [114, 113], [115, 114], [116, 115], [117, 116], [118, 117], [120, 119], [121, 120], [122, 121], [123, 122], [126, 125], [127, 3], [128, 127], [130, 129], [131, 130], [132, 129], [133, 132], [135, 127], [136, 5], [137, 126], [138, 2], [139, 128], [140, 136], [143, 133], [143, 135], [144, 97], [147, 138], [148, 126], [149, 148], [155, 103], [156, 5], [156, 155], [157, 98], [157, 156], [158, 3], [159, 157], [159, 158], [162, 161], [163, 162], [164, 163], [165, 164], [168, 167], [170, 169], [171, 170], [172, 169], [173, 172], [175, 167], [176, 168], [179, 173], [179, 175], [183, 168], [184, 183], [191, 3], [192, 111], [192, 30], [192, 87], [192, 196], [192, 159], [192, 191], [193, 6], [193, 103], [193, 41], [193, 25], [194, 192], [194, 193], [195, 3], [196, 194], [196, 195], [197, 6], [197, 103], [197, 41], [197, 25], [199, 197]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c6a651db590801fbbdac97ed19d45d97b63db6c724e59cfcfeaf87d2d3f13e43_c6a651db590801fbbdac97ed19d45d97b63db6c724e59cfcfeaf87d2d3f13e43.jsonl.gz", "strip_func_name": "gt_fm_read_mem", "query": "\n\n\nsize_t __fastcall gt_fm_read_mem(__int64 a1, void *a2, size_t a3)\n{\nunsigned int v3; // eax\nint v6; // [rsp+24h] [rbp-3Ch]\nstruct _IO_FILE *v7; // [rsp+30h] [rbp-30h]\nstruct _IO_FILE *stream; // [rsp+40h] [rbp-20h]\nstruct _IO_FILE *v9; // [rsp+50h] [rbp-10h]\nsize_t v10; // [rsp+58h] [rbp-8h]\n\nv10 = 0LL;\nv3 = *(_DWORD *)(a1 + 32);\nif ( v3 == 3 )\n{\nif ( *(_BYTE *)(a1 + 64) != 1 )\n{\nv10 = (int)BZ2_bzRead();\nif ( v6 == 4 )\n{\n*(_BYTE *)(a1 + 64) = 1;\n}\nelse\n{\nif ( v6 )\n{\nif ( mute_error_stream != 1 )\n{\nv9 = gt_error_get_stream();\nfprintf(\nv9,\n\"Fatal error (%s:%d,%s)\\n Could not read %lu bytes from BZip file '%s'\\n\",\n\"gt_fm.c\",\n443LL,\n\"gt_fm_read_mem\",\na3,\n*(const char **)(a1 + 40));\nfflush(v9);\n}\ngt_print_stack_trace();\nexit(1);\n}\n*(_BYTE *)(a1 + 64) = a3 > v10;\n}\n}\n}\nelse\n{\nif ( v3 > 3 )\n{\nif ( mute_error_stream != 1 )\n{\nv7 = gt_error_get_stream();\nfprintf(v7, \"Fatal error (%s:%d,%s)\\n Library error. Selection not valid\\n\", \"gt_fm.c\", 450LL, \"gt_fm_read_mem\");\nfflush(v7);\n}\ngt_print_stack_trace();\nexit(1);\n}\nif ( v3 > 1 )\n{\nv10 = (int)gzread();\nif ( v10 == -1LL )\n{\nif ( mute_error_stream != 1 )\n{\nstream = gt_error_get_stream();\nfprintf(\nstream,\n\"Fatal error (%s:%d,%s)\\n Could not read %lu bytes from GZip file '%s'\\n\",\n\"gt_fm.c\",\n431LL,\n\"gt_fm_read_mem\",\na3,\n*(const char **)(a1 + 40));\nfflush(stream);\n}\ngt_print_stack_trace();\nexit(1);\n}\n*(_BYTE *)(a1 + 64) = a3 > v10;\n}\nelse\n{\nv10 = fread(a2, 1uLL, a3, *(FILE **)(a1 + 8));\n*(_BYTE *)(a1 + 64) = a3 > v10;\n}\n}\n*(_QWORD *)(a1 + 48) += v10;\nreturn v10;\n}\n\n\n\nQ:[a3,a1,a2,v6,v7,stream,v9,v10,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'num_bytes', 'a1': 'fm', 'a2': 'dst', 'v6': 'bzerror', 'v7': 'error_stream_1', 'stream': 'error_stream', 'v9': 'error_stream_0', 'v10': 'num_bytes_read'}"}
main
26b8bcb4755f66caeec9722b278d0e1c095b1f3db864f39ad32b8a4e7f0d1796
MaaSTaaR
LSYSFS
NA
int main( int argc, char *argv[] ) { return fuse_main( argc, argv, &operations, NULL ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4200027, "binary_name": "26b8bcb4755f66caeec9722b278d0e1c095b1f3db864f39ad32b8a4e7f0d1796.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rsi, [rbp+var_10]"], [6, "mov eax, [rbp+var_4]"], [7, "mov r8d, 0"], [8, "mov ecx, 168h"], [9, "mov edx, offset off_4040A0"], [10, "mov edi, eax"], [11, "call _fuse_main_real"], [12, "leave"], [13, "retn"]], "data_dep": [[5, 4], [6, 3], [10, 6], [13, 11]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/26b8bcb4755f66caeec9722b278d0e1c095b1f3db864f39ad32b8a4e7f0d1796_26b8bcb4755f66caeec9722b278d0e1c095b1f3db864f39ad32b8a4e7f0d1796.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n__int64 __fastcall main(int a1, char **a2, char **a3)\n{\nreturn fuse_main_real();\n}\n\n\n\nQ:[a2,a3,a1,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc'}"}
pj_perror_2
ef4c36eeacadfe8b6eb18d340137236e21f0aa384fcf9c90e7559b9d85ae03a1
asterisk
pjproject-archive
NA
PJ_DEF(void) pj_perror_2(const char *sender, pj_status_t status, const char *title_fmt, ...) { va_list marker; va_start(marker, title_fmt); pj_perror_imp(2, sender, status, title_fmt, marker); va_end(marker); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42BA77", "function_addr": 4373111, "binary_name": "ef4c36eeacadfe8b6eb18d340137236e21f0aa384fcf9c90e7559b9d85ae03a1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0F0h"], [3, "mov [rbp+var_D8], rdi"], [4, "mov [rbp+var_DC], esi"], [5, "mov [rbp+var_E8], rdx"], [6, "mov [rbp+var_98], rcx"], [7, "mov [rbp+var_90], r8"], [8, "mov [rbp+var_88], r9"], [9, "test al, al"], [10, "jz short loc_42BACF"], [11, "movaps [rbp+var_80], xmm0"], [12, "movaps [rbp+var_70], xmm1"], [13, "movaps [rbp+var_60], xmm2"], [14, "movaps [rbp+var_50], xmm3"], [15, "movaps [rbp+var_40], xmm4"], [16, "movaps [rbp+var_30], xmm5"], [17, "movaps [rbp+var_20], xmm6"], [18, "movaps [rbp+var_10], xmm7"], [19, "mov [rbp+var_C8], 18h"], [20, "mov [rbp+var_C4], 30h "], [21, "lea rax, [rbp+arg_0]"], [22, "mov [rbp+var_C0], rax"], [23, "lea rax, [rbp+var_B0]"], [24, "mov [rbp+var_B8], rax"], [25, "lea rsi, [rbp+var_C8]"], [26, "mov rcx, [rbp+var_E8]"], [27, "mov edx, [rbp+var_DC]"], [28, "mov rax, [rbp+var_D8]"], [29, "mov r8, rsi"], [30, "mov rsi, rax"], [31, "mov edi, 2"], [32, "call sub_42B859"], [33, "nop"], [34, "leave"], [35, "retn"]], "data_dep": [[10, 9], [21, 9], [22, 21], [23, 21], [24, 23], [25, 19], [26, 5], [27, 4], [28, 3], [29, 25], [30, 28], [35, 32]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ef4c36eeacadfe8b6eb18d340137236e21f0aa384fcf9c90e7559b9d85ae03a1_ef4c36eeacadfe8b6eb18d340137236e21f0aa384fcf9c90e7559b9d85ae03a1.jsonl.gz", "strip_func_name": "sub_42BA77", "query": "\n\n\n__int64 sub_42BA77(__int64 a1, signed int a2, const char *a3, __int64 a4, __int64 a5, __int64 a6, ...)\n{\ngcc_va_list va; // [rsp+28h] [rbp-C8h] BYREF\n__int64 v8; // [rsp+58h] [rbp-98h]\n__int64 v9; // [rsp+60h] [rbp-90h]\n__int64 v10; // [rsp+68h] [rbp-88h]\n\nva_start(va, a6);\nv8 = a4;\nv9 = a5;\nv10 = a6;\nva[0].gp_offset = 24;\nreturn sub_42B859(2u, a1, a2, a3, va);\n}\n\n\n\nQ:[a3,a1,a2,va,sub_42BA77,sub_42B859,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'title_fmt', 'a1': 'sender', 'a2': 'status', 'va': 'marker', 'sub_42BA77': 'pj_perror_2', 'sub_42B859': 'pj_perror_imp'}"}
Q_WriteFileFromHandle
b2ffac86604c45f0d8a47d8c785fd901f3b09b518d4830b1c6d98f9da1a82c71
sezero
uhexen2
NA
int Q_WriteFileFromHandle (FILE *fromfile, const char *topath, size_t size) { char buf[COPY_READ_BUFSIZE]; FILE *out; /* off_t remaining, count;*/ size_t remaining, count; char temp[1024]; strcpy (temp, topath); CreatePath (temp); out = fopen (topath, "wb"); if (!out) COM_Error ("Unable to create file %s", topath); remaining = size; while (remaining) { if (remaining < sizeof(buf)) count = remaining; else count = sizeof(buf); if (fread(buf, 1, count, fromfile) != count) break; if (fwrite(buf, 1, count, out) != count) break; remaining -= count; } fclose (out); return (remaining == 0)? 0 : 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4027E4", "function_addr": 4204516, "binary_name": "b2ffac86604c45f0d8a47d8c785fd901f3b09b518d4830b1c6d98f9da1a82c71.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 2440h"], [3, "mov [rbp+stream], rdi"], [4, "mov [rbp+src], rsi"], [5, "mov [rbp+var_2438], rdx"], [6, "mov rdx, [rbp+src]"], [7, "lea rax, [rbp+dest]"], [8, "mov rsi, rdx"], [9, "mov rdi, rax"], [10, "call _strcpy"], [11, "lea rax, [rbp+dest]"], [12, "mov rdi, rax"], [13, "call sub_40260D"], [14, "mov rax, [rbp+src]"], [15, "mov esi, offset modes"], [16, "mov rdi, rax"], [17, "call _fopen"], [18, "mov [rbp+s], rax"], [19, "cmp [rbp+s], 0"], [20, "jnz short loc_402864"], [21, "mov rax, [rbp+src]"], [22, "mov rsi, rax"], [23, "mov edi, offset aUnableToCreate_0"], [24, "mov eax, 0"], [25, "call sub_401BEF"], [26, "mov rax, [rbp+var_2438]"], [27, "mov [rbp+var_8], rax"], [28, "jmp short loc_4028DC"], [29, "cmp [rbp+var_8], 1FFFh"], [30, "ja short loc_402885"], [31, "mov rax, [rbp+var_8]"], [32, "mov [rbp+n], rax"], [33, "jmp short loc_40288D"], [34, "mov [rbp+n], 2000h"], [35, "mov rcx, [rbp+stream]"], [36, "mov rdx, [rbp+n]"], [37, "lea rax, [rbp+ptr]"], [38, "mov esi, 1"], [39, "mov rdi, rax"], [40, "call _fread"], [41, "cmp [rbp+n], rax"], [42, "jnz short loc_4028E5"], [43, "mov rcx, [rbp+s]"], [44, "mov rdx, [rbp+n]"], [45, "lea rax, [rbp+ptr]"], [46, "mov esi, 1"], [47, "mov rdi, rax"], [48, "call _fwrite"], [49, "cmp [rbp+n], rax"], [50, "jnz short loc_4028E8"], [51, "mov rax, [rbp+n]"], [52, "sub [rbp+var_8], rax"], [53, "cmp [rbp+var_8], 0"], [54, "jnz short loc_402871"], [55, "jmp short loc_4028E9"], [56, "nop"], [57, "jmp short loc_4028E9"], [58, "nop"], [59, "mov rax, [rbp+s]"], [60, "mov rdi, rax"], [61, "call _fclose"], [62, "cmp [rbp+var_8], 0"], [63, "setnz al"], [64, "movzx eax, al"], [65, "leave"], [66, "retn"]], "data_dep": [[6, 4], [8, 6], [9, 7], [11, 10], [12, 11], [14, 4], [16, 14], [18, 17], [19, 18], [20, 19], [21, 4], [22, 21], [26, 5], [27, 26], [29, 52], [29, 27], [30, 29], [31, 52], [31, 27], [32, 31], [35, 3], [36, 34], [36, 32], [37, 51], [37, 26], [37, 31], [39, 37], [41, 40], [41, 32], [41, 34], [42, 41], [43, 18], [44, 32], [44, 34], [45, 40], [47, 45], [49, 32], [49, 34], [49, 48], [50, 49], [51, 34], [51, 32], [52, 52], [52, 27], [52, 51], [53, 52], [53, 27], [54, 53], [59, 18], [60, 59], [62, 52], [62, 27], [63, 62], [63, 61], [64, 63], [66, 64]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b2ffac86604c45f0d8a47d8c785fd901f3b09b518d4830b1c6d98f9da1a82c71_b2ffac86604c45f0d8a47d8c785fd901f3b09b518d4830b1c6d98f9da1a82c71.jsonl.gz", "strip_func_name": "sub_4027E4", "query": "\n\n\n_BOOL8 __fastcall sub_4027E4(FILE *a1, const char *a2, unsigned __int64 a3)\n{\n__int64 v3; // rdx\n__int64 v4; // rcx\n__int64 v5; // r8\n__int64 v6; // r9\nsize_t v7; // rax\nsize_t v8; // rax\nchar dest[1024]; // [rsp+20h] [rbp-2420h] BYREF\nchar ptr[8200]; // [rsp+420h] [rbp-2020h] BYREF\nFILE *s; // [rsp+2428h] [rbp-18h]\nsize_t n; // [rsp+2430h] [rbp-10h]\nunsigned __int64 i; // [rsp+2438h] [rbp-8h]\n\nstrcpy(dest, a2);\nsub_40260D(dest);\ns = fopen(a2, \"wb\");\nif ( !s )\nsub_401BEF(\"Unable to create file %s\", (__int64)a2, v3, v4, v5, v6);\nfor ( i = a3; i; i -= n )\n{\nn = i > 0x1FFF ? 0x2000LL : i;\nv7 = fread(ptr, 1uLL, n, a1);\nif ( n != v7 )\nbreak;\nv8 = fwrite(ptr, 1uLL, n, s);\nif ( n != v8 )\nbreak;\n}\nfclose(s);\nreturn i != 0;\n}\n\n\n\nQ:[a3,a1,a2,v3,dest,ptr,s,n,i,sub_4027E4,sub_40260D,sub_401BEF,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'size', 'a1': 'fromfile', 'a2': 'topath', 'v3': 'size', 'dest': 'temp', 'ptr': 'buf', 's': 'out', 'n': 'count', 'i': 'remaining', 'sub_4027E4': 'Q_WriteFileFromHandle', 'sub_40260D': 'CreatePath', 'sub_401BEF': 'COM_Error'}"}
policy_cache_new
03c200181d5bd9d9aef7e21f9916a04779b98f82f54c02e756e7d6abb15fdf67
RKX1209
bitvisor-gdb
NA
static int policy_cache_new(X509 *x) { X509_POLICY_CACHE *cache; ASN1_INTEGER *ext_any = NULL; POLICY_CONSTRAINTS *ext_pcons = NULL; CERTIFICATEPOLICIES *ext_cpols = NULL; POLICY_MAPPINGS *ext_pmaps = NULL; int i; cache = OPENSSL_malloc(sizeof(X509_POLICY_CACHE)); if (!cache) return 0; cache->anyPolicy = NULL; cache->data = NULL; cache->any_skip = -1; cache->explicit_skip = -1; cache->map_skip = -1; x->policy_cache = cache; /* Handle requireExplicitPolicy *first*. Need to process this * even if we don't have any policies. */ ext_pcons = X509_get_ext_d2i(x, NID_policy_constraints, &i, NULL); if (!ext_pcons) { if (i != -1) goto bad_cache; } else { if (!ext_pcons->requireExplicitPolicy && !ext_pcons->inhibitPolicyMapping) goto bad_cache; if (!policy_cache_set_int(&cache->explicit_skip, ext_pcons->requireExplicitPolicy)) goto bad_cache; if (!policy_cache_set_int(&cache->map_skip, ext_pcons->inhibitPolicyMapping)) goto bad_cache; } /* Process CertificatePolicies */ ext_cpols = X509_get_ext_d2i(x, NID_certificate_policies, &i, NULL); /* If no CertificatePolicies extension or problem decoding then * there is no point continuing because the valid policies will be * NULL. */ if (!ext_cpols) { /* If not absent some problem with extension */ if (i != -1) goto bad_cache; return 1; } i = policy_cache_create(x, ext_cpols, i); /* NB: ext_cpols freed by policy_cache_set_policies */ if (i <= 0) return i; ext_pmaps = X509_get_ext_d2i(x, NID_policy_mappings, &i, NULL); if (!ext_pmaps) { /* If not absent some problem with extension */ if (i != -1) goto bad_cache; } else { i = policy_cache_set_mapping(x, ext_pmaps); if (i <= 0) goto bad_cache; } ext_any = X509_get_ext_d2i(x, NID_inhibit_any_policy, &i, NULL); if (!ext_any) { if (i != -1) goto bad_cache; } else if (!policy_cache_set_int(&cache->any_skip, ext_any)) goto bad_cache; if (0) { bad_cache: x->ex_flags |= EXFLAG_INVALID_POLICY; } if(ext_pcons) POLICY_CONSTRAINTS_free(ext_pcons); if (ext_any) ASN1_INTEGER_free(ext_any); return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4517D8", "function_addr": 4528088, "binary_name": "03c200181d5bd9d9aef7e21f9916a04779b98f82f54c02e756e7d6abb15fdf67.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_8], 0"], [5, "mov [rbp+var_10], 0"], [6, "mov [rbp+var_18], 0"], [7, "mov [rbp+var_20], 0"], [8, "mov edx, 89h"], [9, "mov esi, offset aPcyCacheC"], [10, "mov edi, 28h "], [11, "call sub_409B6E"], [12, "mov [rbp+var_28], rax"], [13, "cmp [rbp+var_28], 0"], [14, "jnz short loc_45182D"], [15, "mov eax, 0"], [16, "jmp locret_451A51"], [17, "mov rax, [rbp+var_28]"], [18, "mov qword ptr [rax], 0"], [19, "mov rax, [rbp+var_28]"], [20, "mov qword ptr [rax+8], 0"], [21, "mov rax, [rbp+var_28]"], [22, "mov qword ptr [rax+10h], 0FFFFFFFFFFFFFFFFh"], [23, "mov rax, [rbp+var_28]"], [24, "mov qword ptr [rax+18h], 0FFFFFFFFFFFFFFFFh"], [25, "mov rax, [rbp+var_28]"], [26, "mov qword ptr [rax+20h], 0FFFFFFFFFFFFFFFFh"], [27, "mov rax, [rbp+var_38]"], [28, "mov rdx, [rbp+var_28]"], [29, "mov [rax+78h], rdx"], [30, "lea rdx, [rbp+var_2C]"], [31, "mov rax, [rbp+var_38]"], [32, "mov ecx, 0"], [33, "mov esi, 191h"], [34, "mov rdi, rax"], [35, "call sub_444B3A"], [36, "mov [rbp+var_10], rax"], [37, "cmp [rbp+var_10], 0"], [38, "jnz short loc_4518A6"], [39, "mov eax, [rbp+var_2C]"], [40, "cmp eax, 0FFFFFFFFh"], [41, "jz short loc_451908"], [42, "jmp loc_451A10"], [43, "mov rax, [rbp+var_10]"], [44, "mov rax, [rax]"], [45, "test rax, rax"], [46, "jnz short loc_4518C3"], [47, "mov rax, [rbp+var_10]"], [48, "mov rax, [rax+8]"], [49, "test rax, rax"], [50, "jz loc_451A03"], [51, "mov rax, [rbp+var_10]"], [52, "mov rax, [rax]"], [53, "mov rdx, [rbp+var_28]"], [54, "add rdx, 18h"], [55, "mov rsi, rax"], [56, "mov rdi, rdx"], [57, "call sub_451B9F"], [58, "test eax, eax"], [59, "jz loc_451A06"], [60, "mov rax, [rbp+var_10]"], [61, "mov rax, [rax+8]"], [62, "mov rdx, [rbp+var_28]"], [63, "add rdx, 20h "], [64, "mov rsi, rax"], [65, "mov rdi, rdx"], [66, "call sub_451B9F"], [67, "test eax, eax"], [68, "jz loc_451A09"], [69, "lea rdx, [rbp+var_2C]"], [70, "mov rax, [rbp+var_38]"], [71, "mov ecx, 0"], [72, "mov esi, 59h "], [73, "mov rdi, rax"], [74, "call sub_444B3A"], [75, "mov [rbp+var_18], rax"], [76, "cmp [rbp+var_18], 0"], [77, "jnz short loc_451943"], [78, "mov eax, [rbp+var_2C]"], [79, "cmp eax, 0FFFFFFFFh"], [80, "jnz loc_451A0C"], [81, "mov eax, 1"], [82, "jmp locret_451A51"], [83, "mov edx, [rbp+var_2C]"], [84, "mov rcx, [rbp+var_18]"], [85, "mov rax, [rbp+var_38]"], [86, "mov rsi, rcx"], [87, "mov rdi, rax"], [88, "call sub_451613"], [89, "mov [rbp+var_2C], eax"], [90, "mov eax, [rbp+var_2C]"], [91, "test eax, eax"], [92, "jg short loc_45196B"], [93, "mov eax, [rbp+var_2C]"], [94, "jmp locret_451A51"], [95, "lea rdx, [rbp+var_2C]"], [96, "mov rax, [rbp+var_38]"], [97, "mov ecx, 0"], [98, "mov esi, 2EBh"], [99, "mov rdi, rax"], [100, "call sub_444B3A"], [101, "mov [rbp+var_20], rax"], [102, "cmp [rbp+var_20], 0"], [103, "jnz short loc_45199A"], [104, "mov eax, [rbp+var_2C]"], [105, "cmp eax, 0FFFFFFFFh"], [106, "jz short loc_4519B7"], [107, "jmp short loc_451A10"], [108, "mov rdx, [rbp+var_20]"], [109, "mov rax, [rbp+var_38]"], [110, "mov rsi, rdx"], [111, "mov rdi, rax"], [112, "call sub_451D97"], [113, "mov [rbp+var_2C], eax"], [114, "mov eax, [rbp+var_2C]"], [115, "test eax, eax"], [116, "jle short loc_451A0F"], [117, "lea rdx, [rbp+var_2C]"], [118, "mov rax, [rbp+var_38]"], [119, "mov ecx, 0"], [120, "mov esi, 2ECh"], [121, "mov rdi, rax"], [122, "call sub_444B3A"], [123, "mov [rbp+var_8], rax"], [124, "cmp [rbp+var_8], 0"], [125, "jnz short loc_4519E6"], [126, "mov eax, [rbp+var_2C]"], [127, "cmp eax, 0FFFFFFFFh"], [128, "jz short loc_451A26"], [129, "jmp short loc_451A10"], [130, "mov rax, [rbp+var_28]"], [131, "lea rdx, [rax+10h]"], [132, "mov rax, [rbp+var_8]"], [133, "mov rsi, rax"], [134, "mov rdi, rdx"], [135, "call sub_451B9F"], [136, "test eax, eax"], [137, "jnz short loc_451A26"], [138, "jmp short loc_451A10"], [139, "nop"], [140, "jmp short loc_451A10"], [141, "nop"], [142, "jmp short loc_451A10"], [143, "nop"], [144, "jmp short loc_451A10"], [145, "nop"], [146, "jmp short loc_451A10"], [147, "nop"], [148, "mov rax, [rbp+var_38]"], [149, "mov rax, [rax+48h]"], [150, "or ah, 8"], [151, "mov rdx, rax"], [152, "mov rax, [rbp+var_38]"], [153, "mov [rax+48h], rdx"], [154, "cmp [rbp+var_10], 0"], [155, "jz short loc_451A39"], [156, "mov rax, [rbp+var_10]"], [157, "mov rdi, rax"], [158, "call sub_44F579"], [159, "cmp [rbp+var_8], 0"], [160, "jz short loc_451A4C"], [161, "mov rax, [rbp+var_8]"], [162, "mov rdi, rax"], [163, "call sub_430240"], [164, "mov eax, 1"], [165, "leave"], [166, "retn"]], "data_dep": [[12, 11], [13, 12], [14, 13], [17, 12], [18, 17], [19, 12], [20, 19], [21, 12], [22, 21], [23, 12], [24, 23], [25, 12], [26, 25], [27, 3], [28, 12], [29, 27], [29, 28], [30, 28], [31, 3], [34, 31], [36, 35], [37, 36], [38, 37], [40, 39], [41, 40], [43, 36], [44, 20], [44, 29], [44, 22], [44, 24], [44, 26], [44, 18], [44, 43], [45, 44], [46, 45], [47, 36], [48, 29], [48, 47], [48, 22], [48, 24], [48, 26], [48, 18], [48, 20], [49, 48], [50, 49], [51, 36], [52, 24], [52, 51], [52, 26], [52, 18], [52, 20], [52, 29], [52, 22], [53, 12], [54, 53], [55, 52], [56, 54], [58, 57], [59, 58], [60, 36], [61, 20], [61, 29], [61, 22], [61, 24], [61, 26], [61, 60], [61, 18], [62, 12], [63, 62], [64, 61], [65, 63], [67, 66], [68, 67], [69, 30], [69, 63], [70, 3], [73, 70], [75, 74], [76, 75], [77, 76], [79, 78], [80, 79], [84, 75], [85, 3], [86, 84], [87, 85], [89, 88], [90, 89], [91, 90], [92, 91], [93, 89], [95, 83], [95, 89], [96, 3], [99, 96], [101, 100], [102, 101], [103, 102], [104, 89], [105, 104], [106, 105], [108, 101], [109, 3], [110, 108], [111, 109], [113, 112], [114, 113], [115, 114], [116, 115], [117, 108], [117, 89], [117, 95], [117, 113], [118, 3], [121, 118], [123, 122], [124, 123], [125, 124], [126, 89], [126, 113], [127, 126], [128, 127], [130, 12], [131, 24], [131, 26], [131, 117], [131, 18], [131, 130], [131, 20], [131, 29], [131, 22], [132, 123], [133, 132], [134, 131], [136, 135], [137, 136], [148, 3], [149, 153], [149, 18], [149, 20], [149, 148], [149, 29], [149, 22], [149, 24], [149, 26], [150, 149], [151, 150], [152, 3], [153, 152], [153, 151], [154, 36], [155, 154], [156, 36], [157, 156], [159, 4], [159, 123], [160, 159], [161, 4], [161, 123], [162, 161], [166, 164], [166, 93], [166, 15], [166, 81]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/03c200181d5bd9d9aef7e21f9916a04779b98f82f54c02e756e7d6abb15fdf67_03c200181d5bd9d9aef7e21f9916a04779b98f82f54c02e756e7d6abb15fdf67.jsonl.gz", "strip_func_name": "sub_4517D8", "query": "\n\n\n__int64 __fastcall sub_4517D8(__int64 a1)\n{\n__int64 v2; // rax\nsigned int v3; // [rsp+14h] [rbp-2Ch] BYREF\n_QWORD *v4; // [rsp+18h] [rbp-28h]\n__int64 v5; // [rsp+20h] [rbp-20h]\nunsigned int *v6; // [rsp+28h] [rbp-18h]\n_QWORD *v7; // [rsp+30h] [rbp-10h]\n__int64 v8; // [rsp+38h] [rbp-8h]\n\nv8 = 0LL;\nv7 = 0LL;\nv6 = 0LL;\nv5 = 0LL;\nv4 = sub_409B6E(40, (__int64)\"pcy_cache.c\", 0x89u);\nif ( !v4 )\nreturn 0LL;\n*v4 = 0LL;\nv4[1] = 0LL;\nv4[2] = -1LL;\nv4[3] = -1LL;\nv4[4] = -1LL;\n*(_QWORD *)(a1 + 120) = v4;\nv7 = (_QWORD *)sub_444B3A(a1, 0x191u, (__int64)&v3, 0LL);\nif ( v7 )\n{\nif ( !*v7 && !v7[1] || !(unsigned int)sub_451B9F(v4 + 3, *v7) || !(unsigned int)sub_451B9F(v4 + 4, v7[1]) )\ngoto LABEL_23;\n}\nelse if ( v3 != -1 )\n{\ngoto LABEL_23;\n}\nv6 = (unsigned int *)sub_444B3A(a1, 0x59u, (__int64)&v3, 0LL);\nif ( !v6 )\n{\nif ( v3 == -1 )\nreturn 1LL;\ngoto LABEL_23;\n}\nv3 = sub_451613(a1, v6, v3);\nif ( v3 <= 0 )\nreturn (unsigned int)v3;\nv5 = sub_444B3A(a1, 0x2EBu, (__int64)&v3, 0LL);\nif ( v5 )\n{\nv3 = sub_451D97(a1, v5);\nif ( v3 <= 0 )\ngoto LABEL_23;\n}\nelse if ( v3 != -1 )\n{\ngoto LABEL_23;\n}\nv8 = sub_444B3A(a1, 0x2ECu, (__int64)&v3, 0LL);\nif ( v8 )\n{\nif ( (unsigned int)sub_451B9F(v4 + 2, v8) )\ngoto LABEL_24;\nLABEL_23:\nv2 = *(_QWORD *)(a1 + 72);\nBYTE1(v2) |= 8u;\n*(_QWORD *)(a1 + 72) = v2;\ngoto LABEL_24;\n}\nif ( v3 != -1 )\ngoto LABEL_23;\nLABEL_24:\nif ( v7 )\nsub_44F579((__int64)v7);\nif ( v8 )\nsub_430240(v8);\nreturn 1LL;\n}\n\n\n\nQ:[a1,v4,v5,v6,v7,v8,sub_4517D8,sub_409B6E,sub_444B3A,sub_451B9F,sub_451613,sub_451D97,sub_44F579,sub_430240,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'x', 'v4': 'cache', 'v5': 'ext_pmaps', 'v6': 'ext_cpols', 'v7': 'ext_pcons', 'v8': 'ext_any', 'sub_4517D8': 'policy_cache_new', 'sub_409B6E': 'CRYPTO_malloc', 'sub_444B3A': 'X509_get_ext_d2i', 'sub_451B9F': 'policy_cache_set_int', 'sub_451613': 'policy_cache_create', 'sub_451D97': 'policy_cache_set_mapping', 'sub_44F579': 'POLICY_CONSTRAINTS_free', 'sub_430240': 'ASN1_INTEGER_free'}"}
mbc_huc1_write_rom_bank_select
31edd0f0ae447e7af5eb88e621b90258cba9798d06caf6830842b9d85879f0ba
jkbenaim
cboy
NA
void mbc_huc1_write_rom_bank_select(uint16_t address, uint8_t data) { //if( address != 0x2000 || data > 0x1F ) // printf( "Wrote %04X:%02X\n", address, data ); huc1_bank_low = data; mbc_huc1_regs_changed(); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40CA6F", "function_addr": 4246127, "binary_name": "31edd0f0ae447e7af5eb88e621b90258cba9798d06caf6830842b9d85879f0ba.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 8"], [3, "mov eax, edi"], [4, "mov edx, esi"], [5, "mov [rbp+var_4], ax"], [6, "mov eax, edx"], [7, "mov [rbp+var_8], al"], [8, "movzx eax, [rbp+var_8]"], [9, "mov cs:byte_4437ED, al"], [10, "mov eax, 0"], [11, "call sub_40C92A"], [12, "nop"], [13, "leave"], [14, "retn"]], "data_dep": [[5, 3], [6, 4], [7, 6], [8, 7], [9, 8], [14, 11]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/31edd0f0ae447e7af5eb88e621b90258cba9798d06caf6830842b9d85879f0ba_31edd0f0ae447e7af5eb88e621b90258cba9798d06caf6830842b9d85879f0ba.jsonl.gz", "strip_func_name": "sub_40CA6F", "query": "\n\n\nchar *__fastcall sub_40CA6F(__int64 a1, char a2)\n{\nbyte_4437ED = a2;\nreturn sub_40C92A();\n}\n\n\n\nQ:[a2,a1,sub_40CA6F,sub_40C92A,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'data', 'a1': 'address', 'sub_40CA6F': 'mbc_huc1_write_rom_bank_select', 'sub_40C92A': 'mbc_huc1_regs_changed'}"}
tcp_tx_fast_retransmit_finish
02ab506b54df7f54386bbabc9f0031f99aeada0abe8b24d56b27e2544d2a9bfb
shenango
caladan
NA
void tcp_tx_fast_retransmit_finish(tcpconn_t *c, struct mbuf *m) { if (m) { tcp_tx_retransmit_one(c, m); mbuf_free(m); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412F54", "function_addr": 4271956, "binary_name": "02ab506b54df7f54386bbabc9f0031f99aeada0abe8b24d56b27e2544d2a9bfb.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, "cmp [rbp+var_10], 0"], [6, "jz short loc_412F8A"], [7, "mov rdx, [rbp+var_10]"], [8, "mov rax, [rbp+var_8]"], [9, "mov rsi, rdx"], [10, "mov rdi, rax"], [11, "call sub_412B1A"], [12, "mov rax, [rbp+var_10]"], [13, "mov rdi, rax"], [14, "call sub_411BC6"], [15, "nop"], [16, "leave"], [17, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 4], [8, 3], [9, 7], [10, 8], [12, 4], [13, 12], [17, 14]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/02ab506b54df7f54386bbabc9f0031f99aeada0abe8b24d56b27e2544d2a9bfb_02ab506b54df7f54386bbabc9f0031f99aeada0abe8b24d56b27e2544d2a9bfb.jsonl.gz", "strip_func_name": "sub_412F54", "query": "\n\n\n__int64 __fastcall sub_412F54(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\n\nif ( a2 )\n{\nsub_412B1A(a1, a2);\nresult = sub_411BC6(a2);\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_412F54,sub_412B1A,sub_411BC6,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'a2': 'm', 'sub_412F54': 'tcp_tx_fast_retransmit_finish', 'sub_412B1A': 'tcp_tx_retransmit_one', 'sub_411BC6': 'mbuf_free_5'}"}
main
1c43973d275b54524576415b5d87b871dc2bd5e0887618e049cec48852153908
analogdevicesinc
linux
NA
int main() { printf("\tSetting up a segment\n"); init_seg(); unsigned int val = dereference_seg_base(); if (val != EXPECTED_VALUE) { printf("[FAIL]\tseg[0] == %x; should be %x\n", val, EXPECTED_VALUE); return 1; } printf("[OK]\tThe segment points to the right place.\n"); pid_t chld = fork(); if (chld < 0) err(1, "fork"); if (chld == 0) { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0, 0); if (ptrace(PTRACE_TRACEME, 0, 0, 0) != 0) err(1, "PTRACE_TRACEME"); pid_t pid = getpid(), tid = syscall(SYS_gettid); printf("\tTracee will take a nap until signaled\n"); syscall(SYS_tgkill, pid, tid, SIGSTOP); printf("\tTracee was resumed. Will re-check segment.\n"); val = dereference_seg_base(); if (val != EXPECTED_VALUE) { printf("[FAIL]\tseg[0] == %x; should be %x\n", val, EXPECTED_VALUE); exit(1); } printf("[OK]\tThe segment points to the right place.\n"); exit(0); } int status; /* Wait for SIGSTOP. */ if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) err(1, "waitpid"); struct user_regs_struct regs; if (ptrace(PTRACE_GETREGS, chld, NULL, &regs) != 0) err(1, "PTRACE_GETREGS"); #ifdef __x86_64__ printf("\tChild GS=0x%lx, GSBASE=0x%lx\n", (unsigned long)regs.gs, (unsigned long)regs.gs_base); #else printf("\tChild FS=0x%lx\n", (unsigned long)regs.xfs); #endif struct user_regs_struct regs2 = regs; #ifdef __x86_64__ regs2.rip = (unsigned long)tracee_zap_segment; regs2.rsp -= 128; /* Don't clobber the redzone. */ #else regs2.eip = (unsigned long)tracee_zap_segment; #endif printf("\tTracer: redirecting tracee to tracee_zap_segment()\n"); if (ptrace(PTRACE_SETREGS, chld, NULL, &regs2) != 0) err(1, "PTRACE_GETREGS"); if (ptrace(PTRACE_CONT, chld, NULL, NULL) != 0) err(1, "PTRACE_GETREGS"); /* Wait for SIGSTOP. */ if (waitpid(chld, &status, 0) != chld || !WIFSTOPPED(status)) err(1, "waitpid"); printf("\tTracer: restoring tracee state\n"); if (ptrace(PTRACE_SETREGS, chld, NULL, &regs) != 0) err(1, "PTRACE_GETREGS"); if (ptrace(PTRACE_DETACH, chld, NULL, NULL) != 0) err(1, "PTRACE_GETREGS"); /* Wait for SIGSTOP. */ if (waitpid(chld, &status, 0) != chld) err(1, "waitpid"); if (WIFSIGNALED(status)) { printf("[FAIL]\tTracee crashed\n"); return 1; } if (!WIFEXITED(status)) { printf("[FAIL]\tTracee stopped for an unexpected reason: %d\n", status); return 1; } int exitcode = WEXITSTATUS(status); if (exitcode != 0) { printf("[FAIL]\tTracee reported failure\n"); return 1; } printf("[OK]\tAll is well.\n"); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4199420, "binary_name": "1c43973d275b54524576415b5d87b871dc2bd5e0887618e049cec48852153908.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 1D0h"], [3, "mov edi, offset aSettingUpASegm"], [4, "call _puts"], [5, "call sub_4011F6"], [6, "call sub_4011E2"], [7, "mov [rbp+var_4], eax"], [8, "cmp [rbp+var_4], 1337F00Dh"], [9, "jz short loc_40144A"], [10, "mov eax, [rbp+var_4]"], [11, "mov edx, 1337F00Dh"], [12, "mov esi, eax"], [13, "mov edi, offset aFailSeg0XShoul"], [14, "mov eax, 0"], [15, "call _printf"], [16, "mov eax, 1"], [17, "jmp locret_401950"], [18, "mov edi, offset aOkTheSegmentPo"], [19, "call _puts"], [20, "call _fork"], [21, "mov [rbp+pid], eax"], [22, "cmp [rbp+pid], 0"], [23, "jns short loc_401476"], [24, "mov esi, offset aFork_0"], [25, "mov edi, 1"], [26, "mov eax, 0"], [27, "call _err"], [28, "cmp [rbp+pid], 0"], [29, "jnz loc_401573"], [30, "mov r9d, 0"], [31, "mov r8d, 0"], [32, "mov ecx, 0"], [33, "mov edx, 0"], [34, "mov esi, 9"], [35, "mov edi, 1"], [36, "mov eax, 0"], [37, "call _prctl"], [38, "mov ecx, 0"], [39, "mov edx, 0"], [40, "mov esi, 0"], [41, "mov edi, 0"], [42, "mov eax, 0"], [43, "call _ptrace"], [44, "test rax, rax"], [45, "jz short loc_4014E1"], [46, "mov esi, offset aPtraceTraceme"], [47, "mov edi, 1"], [48, "mov eax, 0"], [49, "call _err"], [50, "call _getpid"], [51, "mov [rbp+var_10], eax"], [52, "mov edi, 0BAh"], [53, "mov eax, 0"], [54, "call _syscall"], [55, "mov [rbp+var_14], eax"], [56, "mov edi, offset aTraceeWillTake"], [57, "call _puts"], [58, "mov edx, [rbp+var_14]"], [59, "mov eax, [rbp+var_10]"], [60, "mov ecx, 13h"], [61, "mov esi, eax"], [62, "mov edi, 0EAh"], [63, "mov eax, 0"], [64, "call _syscall"], [65, "mov edi, offset aTraceeWasResum"], [66, "call _puts"], [67, "call sub_4011E2"], [68, "mov [rbp+var_4], eax"], [69, "cmp [rbp+var_4], 1337F00Dh"], [70, "jz short loc_40155F"], [71, "mov eax, [rbp+var_4]"], [72, "mov edx, 1337F00Dh"], [73, "mov esi, eax"], [74, "mov edi, offset aFailSeg0XShoul"], [75, "mov eax, 0"], [76, "call _printf"], [77, "mov edi, 1"], [78, "call _exit"], [79, "mov edi, offset aOkTheSegmentPo"], [80, "call _puts"], [81, "mov edi, 0"], [82, "call _exit"], [83, "lea rcx, [rbp+stat_loc]"], [84, "mov eax, [rbp+pid]"], [85, "mov edx, 0"], [86, "mov rsi, rcx"], [87, "mov edi, eax"], [88, "call _waitpid"], [89, "cmp [rbp+pid], eax"], [90, "jnz short loc_401599"], [91, "mov eax, [rbp+stat_loc]"], [92, "movzx eax, al"], [93, "cmp eax, 7Fh"], [94, "jz short loc_4015AD"], [95, "mov esi, offset aWaitpid_0"], [96, "mov edi, 1"], [97, "mov eax, 0"], [98, "call _err"], [99, "lea rdx, [rbp+var_F0]"], [100, "mov eax, [rbp+pid]"], [101, "mov rcx, rdx"], [102, "mov edx, 0"], [103, "mov esi, eax"], [104, "mov edi, 0Ch"], [105, "mov eax, 0"], [106, "call _ptrace"], [107, "test rax, rax"], [108, "jz short loc_4015E9"], [109, "mov esi, offset aPtraceGetregs"], [110, "mov edi, 1"], [111, "mov eax, 0"], [112, "call _err"], [113, "mov rdx, [rbp+var_40]"], [114, "mov rax, [rbp+var_20]"], [115, "mov rsi, rax"], [116, "mov edi, offset aChildGs0xLxGsb"], [117, "mov eax, 0"], [118, "call _printf"], [119, "mov rax, [rbp+var_F0]"], [120, "mov rdx, [rbp+var_E8]"], [121, "mov [rbp+var_1D0], rax"], [122, "mov [rbp+var_1C8], rdx"], [123, "mov rax, [rbp+var_E0]"], [124, "mov rdx, [rbp+var_D8]"], [125, "mov [rbp+var_1C0], rax"], [126, "mov [rbp+var_1B8], rdx"], [127, "mov rax, [rbp+var_D0]"], [128, "mov rdx, [rbp+var_C8]"], [129, "mov [rbp+var_1B0], rax"], [130, "mov [rbp+var_1A8], rdx"], [131, "mov rax, [rbp+var_C0]"], [132, "mov rdx, [rbp+var_B8]"], [133, "mov [rbp+var_1A0], rax"], [134, "mov [rbp+var_198], rdx"], [135, "mov rax, [rbp+var_B0]"], [136, "mov rdx, [rbp+var_A8]"], [137, "mov [rbp+var_190], rax"], [138, "mov [rbp+var_188], rdx"], [139, "mov rax, [rbp+var_A0]"], [140, "mov rdx, [rbp+var_98]"], [141, "mov [rbp+var_180], rax"], [142, "mov [rbp+var_178], rdx"], [143, "mov rax, [rbp+var_90]"], [144, "mov rdx, [rbp+var_88]"], [145, "mov [rbp+var_170], rax"], [146, "mov [rbp+var_168], rdx"], [147, "mov rax, [rbp+var_80]"], [148, "mov rdx, [rbp+var_78]"], [149, "mov [rbp+var_160], rax"], [150, "mov [rbp+var_158], rdx"], [151, "mov rax, [rbp+var_70]"], [152, "mov rdx, [rbp+var_68]"], [153, "mov [rbp+var_150], rax"], [154, "mov [rbp+var_148], rdx"], [155, "mov rax, [rbp+var_60]"], [156, "mov rdx, [rbp+var_58]"], [157, "mov [rbp+var_140], rax"], [158, "mov [rbp+var_138], rdx"], [159, "mov rax, [rbp+var_50]"], [160, "mov rdx, [rbp+var_48]"], [161, "mov [rbp+var_130], rax"], [162, "mov [rbp+var_128], rdx"], [163, "mov rax, [rbp+var_40]"], [164, "mov rdx, [rbp+var_38]"], [165, "mov [rbp+var_120], rax"], [166, "mov [rbp+var_118], rdx"], [167, "mov rax, [rbp+var_30]"], [168, "mov rdx, [rbp+var_28]"], [169, "mov [rbp+var_110], rax"], [170, "mov [rbp+var_108], rdx"], [171, "mov rax, [rbp+var_20]"], [172, "mov [rbp+var_100], rax"], [173, "mov eax, offset sub_401390"], [174, "mov [rbp+var_150], rax"], [175, "mov rax, [rbp+var_138]"], [176, "add rax, 0FFFFFFFFFFFFFF80h"], [177, "mov [rbp+var_138], rax"], [178, "mov edi, offset aTracerRedirect"], [179, "call _puts"], [180, "lea rdx, [rbp+var_1D0]"], [181, "mov eax, [rbp+pid]"], [182, "mov rcx, rdx"], [183, "mov edx, 0"], [184, "mov esi, eax"], [185, "mov edi, 0Dh"], [186, "mov eax, 0"], [187, "call _ptrace"], [188, "test rax, rax"], [189, "jz short loc_4017BA"], [190, "mov esi, offset aPtraceGetregs"], [191, "mov edi, 1"], [192, "mov eax, 0"], [193, "call _err"], [194, "mov eax, [rbp+pid]"], [195, "mov ecx, 0"], [196, "mov edx, 0"], [197, "mov esi, eax"], [198, "mov edi, 7"], [199, "mov eax, 0"], [200, "call _ptrace"], [201, "test rax, rax"], [202, "jz short loc_4017F1"], [203, "mov esi, offset aPtraceGetregs"], [204, "mov edi, 1"], [205, "mov eax, 0"], [206, "call _err"], [207, "lea rcx, [rbp+stat_loc]"], [208, "mov eax, [rbp+pid]"], [209, "mov edx, 0"], [210, "mov rsi, rcx"], [211, "mov edi, eax"], [212, "call _waitpid"], [213, "cmp [rbp+pid], eax"], [214, "jnz short loc_401817"], [215, "mov eax, [rbp+stat_loc]"], [216, "movzx eax, al"], [217, "cmp eax, 7Fh"], [218, "jz short loc_40182B"], [219, "mov esi, offset aWaitpid_0"], [220, "mov edi, 1"], [221, "mov eax, 0"], [222, "call _err"], [223, "mov edi, offset aTracerRestorin"], [224, "call _puts"], [225, "lea rdx, [rbp+var_F0]"], [226, "mov eax, [rbp+pid]"], [227, "mov rcx, rdx"], [228, "mov edx, 0"], [229, "mov esi, eax"], [230, "mov edi, 0Dh"], [231, "mov eax, 0"], [232, "call _ptrace"], [233, "test rax, rax"], [234, "jz short loc_401871"], [235, "mov esi, offset aPtraceGetregs"], [236, "mov edi, 1"], [237, "mov eax, 0"], [238, "call _err"], [239, "mov eax, [rbp+pid]"], [240, "mov ecx, 0"], [241, "mov edx, 0"], [242, "mov esi, eax"], [243, "mov edi, 11h"], [244, "mov eax, 0"], [245, "call _ptrace"], [246, "test rax, rax"], [247, "jz short loc_4018A8"], [248, "mov esi, offset aPtraceGetregs"], [249, "mov edi, 1"], [250, "mov eax, 0"], [251, "call _err"], [252, "lea rcx, [rbp+stat_loc]"], [253, "mov eax, [rbp+pid]"], [254, "mov edx, 0"], [255, "mov rsi, rcx"], [256, "mov edi, eax"], [257, "call _waitpid"], [258, "cmp [rbp+pid], eax"], [259, "jz short loc_4018D7"], [260, "mov esi, offset aWaitpid_0"], [261, "mov edi, 1"], [262, "mov eax, 0"], [263, "call _err"], [264, "mov eax, [rbp+stat_loc]"], [265, "and eax, 7Fh"], [266, "add eax, 1"], [267, "sar al, 1"], [268, "test al, al"], [269, "jle short loc_4018F7"], [270, "mov edi, offset aFailTraceeCras"], [271, "call _puts"], [272, "mov eax, 1"], [273, "jmp short locret_401950"], [274, "mov eax, [rbp+stat_loc]"], [275, "and eax, 7Fh"], [276, "test eax, eax"], [277, "jz short loc_40191C"], [278, "mov eax, [rbp+stat_loc]"], [279, "mov esi, eax"], [280, "mov edi, offset aFailTraceeStop"], [281, "mov eax, 0"], [282, "call _printf"], [283, "mov eax, 1"], [284, "jmp short locret_401950"], [285, "mov eax, [rbp+stat_loc]"], [286, "sar eax, 8"], [287, "and eax, 0FFh"], [288, "mov [rbp+var_C], eax"], [289, "cmp [rbp+var_C], 0"], [290, "jz short loc_401941"], [291, "mov edi, offset aFailTraceeRepo"], [292, "call _puts"], [293, "mov eax, 1"], [294, "jmp short locret_401950"], [295, "mov edi, offset aOkAllIsWell"], [296, "call _puts"], [297, "mov eax, 0"], [298, "leave"], [299, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [10, 7], [12, 10], [21, 20], [22, 21], [23, 22], [28, 21], [29, 28], [44, 43], [45, 44], [51, 50], [55, 54], [58, 55], [59, 51], [61, 59], [68, 67], [69, 68], [70, 69], [71, 68], [73, 71], [84, 21], [86, 83], [87, 84], [89, 88], [89, 21], [90, 89], [92, 91], [93, 92], [94, 93], [99, 85], [100, 21], [101, 99], [103, 100], [107, 106], [108, 107], [115, 114], [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], [169, 167], [170, 168], [172, 171], [174, 173], [175, 158], [176, 175], [177, 176], [180, 121], [180, 168], [181, 21], [182, 180], [184, 181], [188, 187], [189, 188], [194, 21], [197, 194], [201, 200], [202, 201], [207, 195], [208, 21], [210, 207], [211, 208], [213, 21], [213, 212], [214, 213], [216, 215], [217, 216], [218, 217], [225, 209], [226, 21], [227, 225], [229, 226], [233, 232], [234, 233], [239, 21], [242, 239], [246, 245], [247, 246], [252, 240], [253, 21], [255, 252], [256, 253], [258, 257], [258, 21], [259, 258], [265, 264], [266, 265], [267, 266], [268, 267], [269, 268], [275, 274], [276, 275], [277, 276], [279, 278], [286, 285], [287, 286], [288, 287], [289, 288], [290, 289], [299, 283], [299, 293], [299, 16], [299, 272], [299, 297]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1c43973d275b54524576415b5d87b871dc2bd5e0887618e049cec48852153908_1c43973d275b54524576415b5d87b871dc2bd5e0887618e049cec48852153908.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n__int64 __fastcall main(int a1, char **a2, char **a3)\n{\n__int64 result; // rax\n__pid_t v4; // eax\n__pid_t v5; // eax\n__pid_t v6; // eax\n__int64 v7[28]; // [rsp+0h] [rbp-1D0h] BYREF\n__int64 v8[22]; // [rsp+E0h] [rbp-F0h] BYREF\n__int64 v9; // [rsp+190h] [rbp-40h]\n__int64 v10; // [rsp+198h] [rbp-38h]\n__int64 v11; // [rsp+1A0h] [rbp-30h]\n__int64 v12; // [rsp+1A8h] [rbp-28h]\n__int64 v13; // [rsp+1B0h] [rbp-20h]\nint stat_loc; // [rsp+1B8h] [rbp-18h] BYREF\nunsigned int v15; // [rsp+1BCh] [rbp-14h]\nunsigned int v16; // [rsp+1C0h] [rbp-10h]\nint v17; // [rsp+1C4h] [rbp-Ch]\n__pid_t pid; // [rsp+1C8h] [rbp-8h]\nunsigned int v19; // [rsp+1CCh] [rbp-4h]\n\nputs(\"\\tSetting up a segment\");\nsub_4011F6(\"\\tSetting up a segment\", a2);\nv19 = sub_4011E2();\nif ( v19 == 322433037 )\n{\nputs(\"[OK]\\tThe segment points to the right place.\");\npid = fork();\nif ( pid < 0 )\nerr(1, \"fork\");\nif ( !pid )\n{\nprctl(1, 9LL, 0LL, 0LL, 0LL, 0LL);\nif ( ptrace(PTRACE_TRACEME, 0LL, 0LL, 0LL) )\nerr(1, \"PTRACE_TRACEME\");\nv16 = getpid();\nv15 = syscall(186LL);\nputs(\"\\tTracee will take a nap until signaled\");\nsyscall(234LL, v16, v15, 19LL);\nputs(\"\\tTracee was resumed. Will re-check segment.\");\nv19 = sub_4011E2();\nif ( v19 != 322433037 )\n{\nprintf(\"[FAIL]\\tseg[0] == %x; should be %x\\n\", v19, 322433037LL);\nexit(1);\n}\nputs(\"[OK]\\tThe segment points to the right place.\");\nexit(0);\n}\nv4 = waitpid(pid, &stat_loc, 0);\nif ( pid != v4 || (unsigned __int8)stat_loc != 127 )\nerr(1, \"waitpid\");\nif ( ptrace(PTRACE_GETREGS, (unsigned int)pid, 0LL, v8) )\nerr(1, \"PTRACE_GETREGS\");\nprintf(\"\\tChild GS=0x%lx, GSBASE=0x%lx\\n\", v13, v9);\nv7[0] = v8[0];\nv7[1] = v8[1];\nv7[2] = v8[2];\nv7[3] = v8[3];\nv7[4] = v8[4];\nv7[5] = v8[5];\nv7[6] = v8[6];\nv7[7] = v8[7];\nv7[8] = v8[8];\nv7[9] = v8[9];\nv7[10] = v8[10];\nv7[11] = v8[11];\nv7[12] = v8[12];\nv7[13] = v8[13];\nv7[14] = v8[14];\nv7[15] = v8[15];\nv7[17] = v8[17];\nv7[18] = v8[18];\nv7[20] = v8[20];\nv7[21] = v8[21];\nv7[22] = v9;\nv7[23] = v10;\nv7[24] = v11;\nv7[25] = v12;\nv7[26] = v13;\nv7[16] = (__int64)sub_401390;\nv7[19] = v8[19] - 128;\nputs(\"\\tTracer: redirecting tracee to tracee_zap_segment()\");\nif ( ptrace(PTRACE_SETREGS, (unsigned int)pid, 0LL, v7) )\nerr(1, \"PTRACE_GETREGS\");\nif ( ptrace(PTRACE_CONT, (unsigned int)pid, 0LL, 0LL) )\nerr(1, \"PTRACE_GETREGS\");\nv5 = waitpid(pid, &stat_loc, 0);\nif ( pid != v5 || (unsigned __int8)stat_loc != 127 )\nerr(1, \"waitpid\");\nputs(\"\\tTracer: restoring tracee state\");\nif ( ptrace(PTRACE_SETREGS, (unsigned int)pid, 0LL, v8) )\nerr(1, \"PTRACE_GETREGS\");\nif ( ptrace(PTRACE_DETACH, (unsigned int)pid, 0LL, 0LL) )\nerr(1, \"PTRACE_GETREGS\");\nv6 = waitpid(pid, &stat_loc, 0);\nif ( pid != v6 )\nerr(1, \"waitpid\");\nif ( (char)((stat_loc & 0x7F) + 1) >> 1 <= 0 )\n{\nif ( (stat_loc & 0x7F) != 0 )\n{\nprintf(\"[FAIL]\\tTracee stopped for an unexpected reason: %d\\n\", (unsigned int)stat_loc);\nresult = 1LL;\n}\nelse\n{\nv17 = BYTE1(stat_loc);\nif ( BYTE1(stat_loc) )\n{\nputs(\"[FAIL]\\tTracee reported failure\");\nresult = 1LL;\n}\nelse\n{\nputs(\"[OK]\\tAll is well.\");\nresult = 0LL;\n}\n}\n}\nelse\n{\nputs(\"[FAIL]\\tTracee crashed\");\nresult = 1LL;\n}\n}\nelse\n{\nprintf(\"[FAIL]\\tseg[0] == %x; should be %x\\n\", v19, 322433037LL);\nresult = 1LL;\n}\nreturn result;\n}\n\n\n\nQ:[a2,a3,a1,v7,v8,stat_loc,v15,v16,v17,pid,v19,sub_4011F6,sub_4011E2,sub_401390,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v7': 'regs2', 'v8': 'regs', 'stat_loc': 'status', 'v15': 'tid', 'v16': 'pid', 'v17': 'exitcode', 'pid': 'chld', 'v19': 'val', 'sub_4011F6': 'init_seg', 'sub_4011E2': 'dereference_seg_base', 'sub_401390': 'tracee_zap_segment'}"}
sim_tape_rdrecr_a
52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc
open-simh
simh
NA
t_stat sim_tape_rdrecr_a (UNIT *uptr, uint8 *buf, t_mtrlnt *bc, t_mtrlnt max, TAPE_PCALLBACK callback) { t_stat r = SCPE_OK; AIO_CALLSETUP r = sim_tape_rdrecr (uptr, buf, bc, max); AIO_CALL(TOP_RDRR, buf, bc, NULL, max, 0, 0, 0, NULL, callback); return r; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_472682", "function_addr": 4662914, "binary_name": "52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_3C], ecx"], [7, "mov [rbp+var_48], r8"], [8, "mov [rbp+var_4], 0"], [9, "mov rax, [rbp+var_28]"], [10, "mov rax, [rax+78h]"], [11, "mov [rbp+var_10], rax"], [12, "cmp [rbp+var_10], 0"], [13, "jnz short loc_4726D0"], [14, "mov esi, offset aBadAttach"], [15, "mov edi, 65h "], [16, "mov eax, 0"], [17, "call sub_439970"], [18, "jmp locret_4728A9"], [19, "cmp [rbp+var_48], 0"], [20, "jz short loc_4726E2"], [21, "mov rax, [rbp+var_10]"], [22, "mov eax, [rax+10h]"], [23, "test eax, eax"], [24, "jnz short loc_4726FC"], [25, "mov ecx, [rbp+var_3C]"], [26, "mov rdx, [rbp+var_38]"], [27, "mov rsi, [rbp+var_30]"], [28, "mov rax, [rbp+var_28]"], [29, "mov rdi, rax"], [30, "call sub_472422"], [31, "mov [rbp+var_4], eax"], [32, "mov rax, [rbp+var_10]"], [33, "mov eax, [rax+10h]"], [34, "test eax, eax"], [35, "jz loc_47288D"], [36, "mov rax, [rbp+var_28]"], [37, "mov rax, [rax+78h]"], [38, "mov [rbp+var_18], rax"], [39, "mov rax, [rbp+var_18]"], [40, "add rax, 48h "], [41, "mov rdi, rax"], [42, "call _pthread_mutex_lock"], [43, "mov rax, cs:qword_14EFB20"], [44, "test rax, rax"], [45, "jz loc_4727C6"], [46, "cmp [rbp+var_28], 0"], [47, "jz loc_4727C6"], [48, "mov rax, [rbp+var_28]"], [49, "mov rax, [rax+0B0h]"], [50, "test rax, rax"], [51, "jz short loc_4727C6"], [52, "mov rax, [rbp+var_28]"], [53, "mov edx, [rax+0B8h]"], [54, "mov rax, [rbp+var_28]"], [55, "mov rax, [rax+0B0h]"], [56, "mov eax, [rax+74h]"], [57, "or edx, eax"], [58, "mov rax, [rbp+var_18]"], [59, "mov eax, [rax+8]"], [60, "and eax, edx"], [61, "test eax, eax"], [62, "jz short loc_4727C6"], [63, "mov rax, [rbp+var_18]"], [64, "mov rax, [rax]"], [65, "mov rdx, [rax+8]"], [66, "mov rax, [rbp+var_28]"], [67, "sub rax, rdx"], [68, "sar rax, 3"], [69, "mov rdx, rax"], [70, "mov rax, 0F83E0F83E0F83E1h"], [71, "imul rax, rdx"], [72, "mov edx, eax"], [73, "mov rax, [rbp+var_18]"], [74, "mov eax, [rax+8]"], [75, "mov rsi, [rbp+var_28]"], [76, "mov r8d, edx"], [77, "mov ecx, 2"], [78, "mov edx, offset aSimTapeAioCall"], [79, "mov edi, eax"], [80, "mov eax, 0"], [81, "call sub_43A28A"], [82, "mov rax, [rbp+var_18]"], [83, "mov rax, [rax+138h]"], [84, "test rax, rax"], [85, "jz short loc_4727DB"], [86, "call _abort"], [87, "mov rax, [rbp+var_18]"], [88, "mov dword ptr [rax+100h], 2"], [89, "mov rax, [rbp+var_18]"], [90, "mov rdx, [rbp+var_30]"], [91, "mov [rax+108h], rdx"], [92, "mov rax, [rbp+var_18]"], [93, "mov rdx, [rbp+var_38]"], [94, "mov [rax+110h], rdx"], [95, "mov rax, [rbp+var_18]"], [96, "mov qword ptr [rax+118h], 0"], [97, "mov rax, [rbp+var_18]"], [98, "mov edx, [rbp+var_3C]"], [99, "mov [rax+124h], edx"], [100, "mov rax, [rbp+var_18]"], [101, "mov dword ptr [rax+120h], 0"], [102, "mov rax, [rbp+var_18]"], [103, "mov dword ptr [rax+128h], 0"], [104, "mov rax, [rbp+var_18]"], [105, "mov dword ptr [rax+12Ch], 0"], [106, "mov rax, [rbp+var_18]"], [107, "mov qword ptr [rax+130h], 0"], [108, "mov rax, [rbp+var_18]"], [109, "mov rdx, [rbp+var_48]"], [110, "mov [rax+138h], rdx"], [111, "mov rax, [rbp+var_18]"], [112, "add rax, 70h "], [113, "mov rdi, rax"], [114, "call _pthread_cond_signal"], [115, "mov rax, [rbp+var_18]"], [116, "add rax, 48h "], [117, "mov rdi, rax"], [118, "call _pthread_mutex_unlock"], [119, "jmp short loc_4728A6"], [120, "cmp [rbp+var_48], 0"], [121, "jz short loc_4728A6"], [122, "mov edx, [rbp+var_4]"], [123, "mov rax, [rbp+var_28]"], [124, "mov rcx, [rbp+var_48]"], [125, "mov esi, edx"], [126, "mov rdi, rax"], [127, "call rcx"], [128, "mov eax, [rbp+var_4]"], [129, "leave"], [130, "retn"]], "data_dep": [[9, 3], [10, 9], [11, 10], [12, 11], [13, 12], [19, 7], [20, 19], [21, 11], [22, 21], [23, 22], [24, 23], [25, 6], [26, 5], [27, 4], [28, 3], [29, 28], [31, 30], [32, 11], [33, 32], [34, 33], [35, 34], [36, 3], [37, 36], [38, 37], [39, 38], [40, 39], [41, 40], [44, 43], [45, 44], [46, 3], [47, 46], [48, 3], [49, 48], [50, 49], [51, 50], [52, 3], [53, 52], [54, 3], [55, 54], [56, 55], [57, 56], [57, 53], [58, 38], [59, 58], [60, 57], [60, 59], [61, 60], [62, 61], [63, 38], [64, 63], [65, 64], [66, 3], [67, 65], [67, 66], [68, 67], [69, 68], [71, 69], [71, 70], [72, 71], [73, 38], [74, 73], [75, 3], [76, 72], [79, 74], [82, 38], [83, 82], [84, 83], [85, 84], [87, 38], [88, 87], [89, 38], [90, 4], [91, 89], [91, 90], [92, 38], [93, 5], [94, 93], [94, 92], [95, 38], [96, 95], [97, 38], [98, 6], [99, 97], [99, 98], [100, 38], [101, 100], [102, 38], [103, 102], [104, 38], [105, 104], [106, 38], [107, 106], [108, 38], [109, 7], [110, 109], [110, 108], [111, 38], [112, 111], [113, 112], [115, 38], [116, 115], [117, 116], [120, 7], [121, 120], [122, 31], [122, 8], [123, 3], [124, 7], [125, 122], [126, 123], [127, 124], [128, 8], [128, 31], [130, 17], [130, 128]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc_52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc.jsonl.gz", "strip_func_name": "sub_472682", "query": "\n\n\n__int64 __fastcall sub_472682(__int64 a1, _BYTE *a2, int *a3, __int64 a4, void (__fastcall *a5)(__int64, _QWORD), __int64 a6)\n{\n__int64 v7; // r9\nint v9; // [rsp+14h] [rbp-3Ch]\n__int64 v11; // [rsp+38h] [rbp-18h]\n__int64 v12; // [rsp+40h] [rbp-10h]\nunsigned int v13; // [rsp+4Ch] [rbp-4h]\n\nv9 = a4;\nv13 = 0;\nv12 = *(_QWORD *)(a1 + 120);\nif ( !v12 )\nreturn sub_439970(101, \"Bad Attach\\n\", (__int64)a3, a4, (__int64)a5, a6);\nif ( !a5 || !*(_DWORD *)(v12 + 16) )\nv13 = sub_472422(a1, a2, a3, (unsigned int)a4, (__int64)a5, a6);\nif ( *(_DWORD *)(v12 + 16) )\n{\nv11 = *(_QWORD *)(a1 + 120);\npthread_mutex_lock((pthread_mutex_t *)(v11 + 72));\nif ( qword_14EFB20\n&& a1\n&& *(_QWORD *)(a1 + 176)\n&& ((*(_DWORD *)(*(_QWORD *)(a1 + 176) + 116LL) | *(_DWORD *)(a1 + 184)) & *(_DWORD *)(v11 + 8)) != 0 )\n{\nsub_43A28A(\n*(_DWORD *)(v11 + 8),\na1,\n\"sim_tape AIO_CALL(op=%d, unit=%d)\\n\",\n2LL,\n1041204193 * (unsigned int)((a1 - *(_QWORD *)(*(_QWORD *)v11 + 8LL)) >> 3),\nv7);\n}\nif ( *(_QWORD *)(v11 + 312) )\nabort();\n*(_DWORD *)(v11 + 256) = 2;\n*(_QWORD *)(v11 + 264) = a2;\n*(_QWORD *)(v11 + 272) = a3;\n*(_QWORD *)(v11 + 280) = 0LL;\n*(_DWORD *)(v11 + 292) = v9;\n*(_DWORD *)(v11 + 288) = 0;\n*(_DWORD *)(v11 + 296) = 0;\n*(_DWORD *)(v11 + 300) = 0;\n*(_QWORD *)(v11 + 304) = 0LL;\n*(_QWORD *)(v11 + 312) = a5;\npthread_cond_signal((pthread_cond_t *)(v11 + 112));\npthread_mutex_unlock((pthread_mutex_t *)(v11 + 72));\n}\nelse if ( a5 )\n{\na5(a1, v13);\n}\nreturn v13;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v11,v12,v13,sub_472682,sub_439970,sub_472422,sub_43A28A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'bc', 'a4': 'max', 'a1': 'uptr', 'a2': 'buf', 'a5': 'callback', 'v11': 'ctx_0', 'v12': 'ctx', 'v13': 'r', 'sub_472682': 'sim_tape_rdrecr_a', 'sub_439970': 'sim_messagef', 'sub_472422': 'sim_tape_rdrecr', 'sub_43A28A': '_sim_debug_unit'}"}
f_prep
fe48bf1ead1cc490c069ff963e663d5a53a5b8882a1eaca7f8aa8a89e063e520
Wikinaut
agrep
NA
static void f_prep(pat_index, Pattern) uchar *Pattern; int pat_index; { int i, m; register unsigned hash=0; #ifdef debug puts(Pattern); #endif m = p_size; for (i=m-1; i>=(1+LONG); i--) { hash = (tr1[Pattern[i]]); hash = (hash << Hbits) + (tr1[Pattern[i-1]]); if(LONG) hash = (hash << Hbits) + (tr1[Pattern[i-2]] ); if(SHIFT1[hash] >= m-1-i) SHIFT1[hash] = m-1-i; } i=m-1; hash = (tr1[Pattern[i]]); hash = (hash << Hbits) + (tr1[Pattern[i-1]]); if(LONG) hash = (hash << Hbits) + (tr1[Pattern[i-2]] ); if(SHORT) hash=tr[Pattern[0]]; #ifdef debug printf("hash = %d\n", hash); #endif HASH[hash]++; return; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_425B8A", "function_addr": 4348810, "binary_name": "fe48bf1ead1cc490c069ff963e663d5a53a5b8882a1eaca7f8aa8a89e063e520.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "mov [rbp+var_1C], edi"], [4, "mov [rbp+var_28], rsi"], [5, "mov eax, cs:dword_4DE148"], [6, "mov [rbp+var_10], eax"], [7, "mov eax, [rbp+var_10]"], [8, "sub eax, 1"], [9, "mov [rbp+var_C], eax"], [10, "jmp loc_425C60"], [11, "mov eax, [rbp+var_C]"], [12, "movsxd rdx, eax"], [13, "mov rax, [rbp+var_28]"], [14, "add rax, rdx"], [15, "movzx eax, byte ptr [rax]"], [16, "movzx eax, al"], [17, "cdqe"], [18, "movzx eax, ds:byte_4DE260[rax]"], [19, "movzx ebx, al"], [20, "shl ebx, 5"], [21, "mov edx, ebx"], [22, "mov eax, [rbp+var_C]"], [23, "cdqe"], [24, "lea rcx, [rax-1]"], [25, "mov rax, [rbp+var_28]"], [26, "add rax, rcx"], [27, "movzx eax, byte ptr [rax]"], [28, "movzx eax, al"], [29, "cdqe"], [30, "movzx eax, ds:byte_4DE260[rax]"], [31, "movzx eax, al"], [32, "lea ebx, [rdx+rax]"], [33, "mov eax, cs:dword_4DE140"], [34, "test eax, eax"], [35, "jz short loc_425C2A"], [36, "shl ebx, 5"], [37, "mov edx, ebx"], [38, "mov eax, [rbp+var_C]"], [39, "cdqe"], [40, "lea rcx, [rax-2]"], [41, "mov rax, [rbp+var_28]"], [42, "add rax, rcx"], [43, "movzx eax, byte ptr [rax]"], [44, "movzx eax, al"], [45, "cdqe"], [46, "movzx eax, ds:byte_4DE260[rax]"], [47, "movzx eax, al"], [48, "lea ebx, [rdx+rax]"], [49, "mov eax, ebx"], [50, "movzx eax, ds:byte_4D6140[rax]"], [51, "movzx edx, al"], [52, "mov eax, [rbp+var_10]"], [53, "sub eax, 1"], [54, "sub eax, [rbp+var_C]"], [55, "cmp edx, eax"], [56, "jl short loc_425C5C"], [57, "mov eax, [rbp+var_10]"], [58, "mov edx, eax"], [59, "mov eax, [rbp+var_C]"], [60, "mov ecx, eax"], [61, "mov eax, edx"], [62, "sub eax, ecx"], [63, "sub eax, 1"], [64, "mov edx, ebx"], [65, "mov ds:byte_4D6140[rdx], al"], [66, "sub [rbp+var_C], 1"], [67, "mov eax, cs:dword_4DE140"], [68, "cmp [rbp+var_C], eax"], [69, "jg loc_425BAD"], [70, "mov eax, [rbp+var_10]"], [71, "sub eax, 1"], [72, "mov [rbp+var_C], eax"], [73, "mov eax, [rbp+var_C]"], [74, "movsxd rdx, eax"], [75, "mov rax, [rbp+var_28]"], [76, "add rax, rdx"], [77, "movzx eax, byte ptr [rax]"], [78, "movzx eax, al"], [79, "cdqe"], [80, "movzx eax, ds:byte_4DE260[rax]"], [81, "movzx ebx, al"], [82, "mov edx, ebx"], [83, "shl edx, 5"], [84, "mov eax, [rbp+var_C]"], [85, "cdqe"], [86, "lea rcx, [rax-1]"], [87, "mov rax, [rbp+var_28]"], [88, "add rax, rcx"], [89, "movzx eax, byte ptr [rax]"], [90, "movzx eax, al"], [91, "cdqe"], [92, "movzx eax, ds:byte_4DE260[rax]"], [93, "movzx eax, al"], [94, "lea ebx, [rdx+rax]"], [95, "mov eax, cs:dword_4DE140"], [96, "test eax, eax"], [97, "jz short loc_425CF5"], [98, "shl ebx, 5"], [99, "mov edx, ebx"], [100, "mov eax, [rbp+var_C]"], [101, "cdqe"], [102, "lea rcx, [rax-2]"], [103, "mov rax, [rbp+var_28]"], [104, "add rax, rcx"], [105, "movzx eax, byte ptr [rax]"], [106, "movzx eax, al"], [107, "cdqe"], [108, "movzx eax, ds:byte_4DE260[rax]"], [109, "movzx eax, al"], [110, "lea ebx, [rdx+rax]"], [111, "mov eax, cs:dword_4DE144"], [112, "test eax, eax"], [113, "jz short loc_425D15"], [114, "mov rax, [rbp+var_28]"], [115, "movzx eax, byte ptr [rax]"], [116, "movzx eax, al"], [117, "cdqe"], [118, "movzx eax, ds:byte_4DE160[rax]"], [119, "movzx ebx, al"], [120, "mov eax, ebx"], [121, "mov eax, ds:dword_4DE360[rax*4]"], [122, "add eax, 1"], [123, "mov edx, ebx"], [124, "mov ds:dword_4DE360[rdx*4], eax"], [125, "nop"], [126, "mov rbx, [rbp+var_8]"], [127, "leave"], [128, "retn"]], "data_dep": [[6, 5], [7, 6], [8, 7], [9, 8], [11, 9], [11, 66], [12, 11], [13, 4], [14, 13], [14, 12], [15, 14], [16, 15], [19, 18], [20, 19], [21, 20], [22, 9], [22, 66], [24, 60], [24, 22], [24, 40], [24, 24], [25, 4], [26, 25], [26, 24], [27, 26], [28, 27], [31, 30], [32, 20], [32, 31], [34, 33], [35, 34], [36, 32], [37, 36], [38, 9], [38, 66], [40, 38], [40, 24], [41, 4], [42, 41], [42, 40], [43, 42], [44, 43], [47, 46], [48, 36], [48, 47], [49, 48], [49, 32], [51, 50], [52, 6], [53, 52], [54, 53], [54, 9], [54, 66], [55, 54], [55, 51], [56, 55], [57, 6], [58, 57], [59, 9], [59, 66], [60, 59], [61, 58], [62, 60], [62, 61], [63, 62], [64, 32], [64, 48], [65, 63], [66, 9], [66, 66], [68, 66], [68, 67], [68, 9], [69, 68], [70, 6], [71, 70], [72, 71], [73, 72], [74, 73], [75, 4], [76, 74], [76, 75], [77, 76], [78, 77], [81, 80], [82, 81], [83, 82], [84, 72], [86, 40], [86, 24], [86, 60], [86, 84], [87, 4], [88, 86], [88, 87], [89, 88], [90, 89], [93, 92], [94, 93], [94, 81], [96, 95], [97, 96], [98, 94], [99, 98], [100, 72], [102, 100], [102, 86], [103, 4], [104, 102], [104, 103], [105, 104], [106, 105], [109, 108], [110, 109], [110, 98], [112, 111], [113, 112], [114, 4], [115, 114], [116, 115], [119, 118], [120, 110], [120, 94], [120, 119], [122, 121], [123, 110], [123, 119], [123, 94], [124, 122], [128, 122]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/fe48bf1ead1cc490c069ff963e663d5a53a5b8882a1eaca7f8aa8a89e063e520_fe48bf1ead1cc490c069ff963e663d5a53a5b8882a1eaca7f8aa8a89e063e520.jsonl.gz", "strip_func_name": "sub_425B8A", "query": "\n\n\n__int64 __fastcall sub_425B8A(__int64 a1, unsigned __int8 *a2)\n{\nint v2; // ebx\nint v3; // ebx\n__int64 result; // rax\nint v5; // [rsp+18h] [rbp-10h]\nint i; // [rsp+1Ch] [rbp-Ch]\n\nv5 = dword_4DE148;\nfor ( i = dword_4DE148 - 1; i > dword_4DE140; --i )\n{\nv2 = 32 * (unsigned __int8)byte_4DE260[a2[i]] + (unsigned __int8)byte_4DE260[a2[i - 1]];\nif ( dword_4DE140 )\nv2 = 32 * v2 + (unsigned __int8)byte_4DE260[a2[i - 2]];\nif ( (unsigned __int8)byte_4D6140[v2] >= v5 - 1 - i )\nbyte_4D6140[v2] = v5 - i - 1;\n}\nv3 = 32 * (unsigned __int8)byte_4DE260[a2[v5 - 1]] + (unsigned __int8)byte_4DE260[a2[v5 - 2]];\nif ( dword_4DE140 )\nv3 = 32 * v3 + (unsigned __int8)byte_4DE260[a2[v5 - 3]];\nif ( dword_4DE144 )\nv3 = (unsigned __int8)byte_4DE160[*a2];\nresult = (unsigned int)(dword_4DE360[v3] + 1);\ndword_4DE360[v3] = result;\nreturn result;\n}\n\n\n\nQ:[a2,a1,v5,sub_425B8A,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'Pattern', 'a1': 'pat_index', 'v5': 'm', 'sub_425B8A': 'f_prep'}"}
lcat
ab255ff95aea848f5e75ce30d5178c77a5cd78bf1743b6b99d8aa551084bee8f
oridb
mc
NA
void lcat(void *dst, size_t *ndst, void *src, size_t nsrc) { size_t i; void ***d, **s; d = dst; s = src; for (i = 0; i < nsrc; i++) lappend(d, ndst, s[i]); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41E007", "function_addr": 4317191, "binary_name": "ab255ff95aea848f5e75ce30d5178c77a5cd78bf1743b6b99d8aa551084bee8f.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_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_40], rcx"], [7, "mov rax, [rbp+var_28]"], [8, "mov [rbp+var_10], rax"], [9, "mov rax, [rbp+var_38]"], [10, "mov [rbp+var_18], rax"], [11, "mov [rbp+var_8], 0"], [12, "jmp short loc_41E067"], [13, "mov rax, [rbp+var_8]"], [14, "lea rdx, ds:0[rax*8]"], [15, "mov rax, [rbp+var_18]"], [16, "add rax, rdx"], [17, "mov rdx, [rax]"], [18, "mov rcx, [rbp+var_30]"], [19, "mov rax, [rbp+var_10]"], [20, "mov rsi, rcx"], [21, "mov rdi, rax"], [22, "call sub_41DD59"], [23, "add [rbp+var_8], 1"], [24, "mov rax, [rbp+var_8]"], [25, "cmp rax, [rbp+var_40]"], [26, "jb short loc_41E039"], [27, "nop"], [28, "nop"], [29, "leave"], [30, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 5], [10, 9], [13, 11], [13, 23], [14, 17], [15, 10], [16, 15], [16, 14], [17, 16], [18, 4], [19, 8], [20, 18], [21, 19], [23, 11], [23, 23], [24, 11], [24, 23], [25, 6], [25, 24], [26, 25], [30, 24]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ab255ff95aea848f5e75ce30d5178c77a5cd78bf1743b6b99d8aa551084bee8f_ab255ff95aea848f5e75ce30d5178c77a5cd78bf1743b6b99d8aa551084bee8f.jsonl.gz", "strip_func_name": "sub_41E007", "query": "\n\n\nunsigned __int64 __fastcall sub_41E007(void **a1, _QWORD *a2, __int64 a3, unsigned __int64 a4)\n{\nunsigned __int64 result; // rax\nunsigned __int64 i; // [rsp+38h] [rbp-8h]\n\nfor ( i = 0LL; ; ++i )\n{\nresult = i;\nif ( i >= a4 )\nbreak;\nsub_41DD59(a1, a2, *(_QWORD *)(8 * i + a3));\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_41E007,sub_41DD59,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'src', 'a4': 'nsrc', 'a1': 'dst', 'a2': 'ndst', 'sub_41E007': 'lcat', 'sub_41DD59': 'lappend'}"}
DecodeT2LoadT
d6f1c4fccbb8fc2066c0c7749389636df7b33c67e152dc8852a86b3a79bd4c3d
google
honggfuzz
NA
static DecodeStatus DecodeT2LoadT(MCInst *Inst, unsigned Insn, uint64_t Address, const void* Decoder) { DecodeStatus S = MCDisassembler_Success; unsigned Rn = fieldFromInstruction_4(Insn, 16, 4); unsigned Rt = fieldFromInstruction_4(Insn, 12, 4); unsigned imm = fieldFromInstruction_4(Insn, 0, 8); imm |= (Rn << 9); if (Rn == 15) { switch (MCInst_getOpcode(Inst)) { case ARM_t2LDRT: MCInst_setOpcode(Inst, ARM_t2LDRpci); break; case ARM_t2LDRBT: MCInst_setOpcode(Inst, ARM_t2LDRBpci); break; case ARM_t2LDRHT: MCInst_setOpcode(Inst, ARM_t2LDRHpci); break; case ARM_t2LDRSBT: MCInst_setOpcode(Inst, ARM_t2LDRSBpci); break; case ARM_t2LDRSHT: MCInst_setOpcode(Inst, ARM_t2LDRSHpci); break; default: return MCDisassembler_Fail; } return DecodeT2LoadLabel(Inst, Insn, Address, Decoder); } if (!Check(&S, DecoderGPRRegisterClass(Inst, Rt, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeT2AddrModeImm8(Inst, imm, Address, Decoder))) return MCDisassembler_Fail; return S; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_46F17F", "function_addr": 4649343, "binary_name": "d6f1c4fccbb8fc2066c0c7749389636df7b33c67e152dc8852a86b3a79bd4c3d.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_1C], esi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_30], rcx"], [7, "mov [rbp+var_10], 3"], [8, "mov eax, [rbp+var_1C]"], [9, "mov edx, 4"], [10, "mov esi, 10h"], [11, "mov edi, eax"], [12, "call sub_452336"], [13, "mov [rbp+var_4], eax"], [14, "mov eax, [rbp+var_1C]"], [15, "mov edx, 4"], [16, "mov esi, 0Ch"], [17, "mov edi, eax"], [18, "call sub_452336"], [19, "mov [rbp+var_8], eax"], [20, "mov eax, [rbp+var_1C]"], [21, "mov edx, 8"], [22, "mov esi, 0"], [23, "mov edi, eax"], [24, "call sub_452336"], [25, "mov [rbp+var_C], eax"], [26, "mov eax, [rbp+var_4]"], [27, "shl eax, 9"], [28, "or [rbp+var_C], eax"], [29, "cmp [rbp+var_4], 0Fh"], [30, "jnz loc_46F2B3"], [31, "mov rax, [rbp+var_18]"], [32, "mov rdi, rax"], [33, "call sub_437FF9"], [34, "sub eax, 94Ah"], [35, "cmp eax, 27h"], [36, "ja def_46F22F"], [37, "mov eax, eax"], [38, "lea rdx, ds:0[rax*4]"], [39, "lea rax, jpt_46F22F"], [40, "mov eax, ds:(jpt_46F22F - 59B8E0h)[rdx+rax]"], [41, "cdqe"], [42, "lea rdx, jpt_46F22F"], [43, "add rax, rdx"], [44, "jmp rax"], [45, "mov rax, [rbp+var_18]"], [46, "mov esi, 976h"], [47, "mov rdi, rax"], [48, "call sub_437FCA"], [49, "jmp short loc_46F29A"], [50, "mov rax, [rbp+var_18]"], [51, "mov esi, 94Fh"], [52, "mov rdi, rax"], [53, "call sub_437FCA"], [54, "jmp short loc_46F29A"], [55, "mov rax, [rbp+var_18]"], [56, "mov esi, 95Eh"], [57, "mov rdi, rax"], [58, "call sub_437FCA"], [59, "jmp short loc_46F29A"], [60, "mov rax, [rbp+var_18]"], [61, "mov esi, 966h"], [62, "mov rdi, rax"], [63, "call sub_437FCA"], [64, "jmp short loc_46F29A"], [65, "mov rax, [rbp+var_18]"], [66, "mov esi, 96Eh"], [67, "mov rdi, rax"], [68, "call sub_437FCA"], [69, "jmp short loc_46F29A"], [70, "mov eax, 0"], [71, "jmp locret_46F320"], [72, "mov rcx, [rbp+var_30]"], [73, "mov rdx, [rbp+var_28]"], [74, "mov esi, [rbp+var_1C]"], [75, "mov rax, [rbp+var_18]"], [76, "mov rdi, rax"], [77, "call sub_46F322"], [78, "jmp short locret_46F320"], [79, "mov rcx, [rbp+var_30]"], [80, "mov rdx, [rbp+var_28]"], [81, "mov esi, [rbp+var_8]"], [82, "mov rax, [rbp+var_18]"], [83, "mov rdi, rax"], [84, "call sub_469957"], [85, "mov edx, eax"], [86, "lea rax, [rbp+var_10]"], [87, "mov esi, edx"], [88, "mov rdi, rax"], [89, "call sub_438931"], [90, "xor eax, 1"], [91, "test al, al"], [92, "jz short loc_46F2E8"], [93, "mov eax, 0"], [94, "jmp short locret_46F320"], [95, "mov rcx, [rbp+var_30]"], [96, "mov rdx, [rbp+var_28]"], [97, "mov esi, [rbp+var_C]"], [98, "mov rax, [rbp+var_18]"], [99, "mov rdi, rax"], [100, "call sub_46F6D6"], [101, "mov edx, eax"], [102, "lea rax, [rbp+var_10]"], [103, "mov esi, edx"], [104, "mov rdi, rax"], [105, "call sub_438931"], [106, "xor eax, 1"], [107, "test al, al"], [108, "jz short loc_46F31D"], [109, "mov eax, 0"], [110, "jmp short locret_46F320"], [111, "mov eax, [rbp+var_10]"], [112, "leave"], [113, "retn"]], "data_dep": [[8, 4], [11, 8], [13, 12], [14, 4], [17, 14], [19, 18], [20, 4], [23, 20], [25, 24], [26, 13], [27, 26], [28, 27], [28, 25], [29, 13], [30, 29], [31, 3], [32, 31], [34, 33], [35, 34], [36, 35], [37, 34], [38, 21], [39, 37], [42, 38], [43, 40], [43, 42], [44, 43], [45, 3], [47, 45], [50, 3], [52, 50], [55, 3], [57, 55], [60, 3], [62, 60], [65, 3], [67, 65], [72, 6], [73, 5], [74, 4], [75, 3], [76, 75], [79, 6], [80, 5], [81, 19], [82, 3], [83, 82], [85, 84], [86, 84], [86, 7], [87, 85], [88, 86], [90, 89], [91, 90], [92, 91], [95, 6], [96, 5], [97, 28], [98, 3], [99, 98], [101, 100], [102, 7], [102, 100], [103, 101], [104, 102], [106, 105], [107, 106], [108, 107], [111, 7], [113, 93], [113, 111], [113, 77], [113, 70], [113, 109]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d6f1c4fccbb8fc2066c0c7749389636df7b33c67e152dc8852a86b3a79bd4c3d_d6f1c4fccbb8fc2066c0c7749389636df7b33c67e152dc8852a86b3a79bd4c3d.jsonl.gz", "strip_func_name": "sub_46F17F", "query": "\n\n\n__int64 __fastcall sub_46F17F(__int64 a1, unsigned int a2, __int64 a3, __int64 a4)\n{\n__int64 result; // rax\nunsigned int v5; // eax\nunsigned int v6; // eax\nunsigned int v9; // [rsp+20h] [rbp-10h] BYREF\nunsigned int v10; // [rsp+24h] [rbp-Ch]\nunsigned int v11; // [rsp+28h] [rbp-8h]\nint v12; // [rsp+2Ch] [rbp-4h]\n\nv9 = 3;\nv12 = sub_452336(a2, 16, 4);\nv11 = sub_452336(a2, 12, 4);\nv10 = (v12 << 9) | sub_452336(a2, 0, 8);\nif ( v12 == 15 )\n{\nswitch ( (unsigned int)sub_437FF9(a1) )\n{\ncase 0x94Au:\nsub_437FCA(a1, 2383);\ngoto LABEL_9;\ncase 0x959u:\nsub_437FCA(a1, 2398);\ngoto LABEL_9;\ncase 0x961u:\nsub_437FCA(a1, 2406);\ngoto LABEL_9;\ncase 0x969u:\nsub_437FCA(a1, 2414);\ngoto LABEL_9;\ncase 0x971u:\nsub_437FCA(a1, 2422);\nLABEL_9:\nresult = sub_46F322(a1, a2, a3, a4);\nbreak;\ndefault:\nresult = 0LL;\nbreak;\n}\n}\nelse\n{\nv5 = sub_469957(a1, v11);\nif ( (unsigned __int8)sub_438931(&v9, v5) != 1 )\n{\nresult = 0LL;\n}\nelse\n{\nv6 = sub_46F6D6(a1, v10, a3, a4);\nif ( (unsigned __int8)sub_438931(&v9, v6) != 1 )\nresult = 0LL;\nelse\nresult = v9;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v9,v10,v11,v12,sub_46F17F,sub_452336,sub_437FF9,sub_437FCA,sub_46F322,sub_469957,sub_438931,sub_46F6D6,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'Address', 'a4': 'Decoder', 'a1': 'Inst', 'a2': 'Insn', 'v9': 'S', 'v10': 'imm', 'v11': 'Rt', 'v12': 'Rn', 'sub_46F17F': 'DecodeT2LoadT', 'sub_452336': 'fieldFromInstruction_4', 'sub_437FF9': 'MCInst_getOpcode', 'sub_437FCA': 'MCInst_setOpcode', 'sub_46F322': 'DecodeT2LoadLabel', 'sub_469957': 'DecoderGPRRegisterClass', 'sub_438931': 'Check_0', 'sub_46F6D6': 'DecodeT2AddrModeImm8'}"}
hc_load_fonts
3669bfa4208c69b56bb8add95bcd0a571a90a719f173610466e5597e0f17b30d
michaelrsweet
htmlcss
NA
static time_t /* O - Newest mtime */ hc_load_fonts(hc_pool_t *pool, /* I - Memory pool */ const char *d, /* I - Directory to load */ int scanonly) /* I - Just scan directory mtimes? */ { DIR *dir; /* Directory pointer */ struct dirent *dent; /* Directory entry */ char filename[1024], /* Filename */ *ext; /* Extension */ hc_file_t *file; /* File */ hc_font_t *font; /* Font */ struct stat info; /* Information about the current file */ time_t mtime = 0; /* Newest mtime */ if ((dir = opendir(d)) == NULL) return (mtime); while ((dent = readdir(dir)) != NULL) { if (dent->d_name[0] == '.') continue; snprintf(filename, sizeof(filename), "%s/%s", d, dent->d_name); if (lstat(filename, &info)) continue; if (info.st_mtime > mtime) mtime = info.st_mtime; if (S_ISDIR(info.st_mode)) { hc_load_fonts(pool, filename, scanonly); continue; } if (scanonly) continue; if ((ext = strrchr(dent->d_name, '.')) == NULL) continue; if (strcmp(ext, ".otc") && strcmp(ext, ".otf") && strcmp(ext, ".ttc") && strcmp(ext, ".ttf")) continue; file = hcFileNewURL(pool, filename, NULL); if ((font = hcFontNew(pool, file, 0)) != NULL) { if (!font->family || font->family[0] == '.') { /* * Ignore fonts starting with a "." since (on macOS at least) these are * hidden system fonts... */ hcFontDelete(font); } else { size_t num_fonts = hcFontGetNumFonts(font); /* Number of fonts */ hc_add_font(pool, font, filename, 1); if (num_fonts > 1) { size_t i; /* Looping var */ for (i = 1; i < num_fonts; i ++) { hcFileSeek(file, 0); if ((font = hcFontNew(pool, file, i)) != NULL) { if (font->family && font->family[0] != '.') hc_add_font(pool, font, filename, 1); else hcFontDelete(font); } } } } } hcFileDelete(file); } closedir(dir); return (mtime); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42AB07", "function_addr": 4369159, "binary_name": "3669bfa4208c69b56bb8add95bcd0a571a90a719f173610466e5597e0f17b30d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r14"], [3, "push r13"], [4, "push r12"], [5, "push rbx"], [6, "sub rsp, 5E0h"], [7, "mov [rbp+var_5E8], rdi"], [8, "mov [rbp+name], rsi"], [9, "mov [rbp+var_5F4], edx"], [10, "lea r13, [rbp+var_5A0]"], [11, "mov r14, r13"], [12, "cmp cs:__asan_option_detect_stack_use_after_return, 0"], [13, "jz short loc_42AB52"], [14, "mov edi, 580h"], [15, "call ___asan_stack_malloc_5"], [16, "test rax, rax"], [17, "jz short loc_42AB52"], [18, "mov r13, rax"], [19, "lea rax, [r13+580h]"], [20, "mov r12, rax"], [21, "mov qword ptr [r13+0], 41B58AB3h"], [22, "mov qword ptr [r13+8], offset a2481448Info555"], [23, "mov qword ptr [r13+10h], offset sub_42AB07"], [24, "mov rbx, r13"], [25, "shr rbx, 3"], [26, "mov dword ptr [rbx+7FFF8000h], 0F1F1F1F1h"], [27, "mov dword ptr [rbx+7FFF8004h], 0F1F1h"], [28, "mov dword ptr [rbx+7FFF8018h], 0F2F2F2F2h"], [29, "mov dword ptr [rbx+7FFF801Ch], 0F2F2F2F2h"], [30, "mov dword ptr [rbx+7FFF80A0h], 0F3F3F3F3h"], [31, "mov dword ptr [rbx+7FFF80A4h], 0F3F3F3F3h"], [32, "mov dword ptr [rbx+7FFF80A8h], 0F3F3F3F3h"], [33, "mov dword ptr [rbx+7FFF80ACh], 0F3F3F3F3h"], [34, "mov [rbp+var_5E0], 0"], [35, "mov rax, [rbp+name]"], [36, "mov rdi, rax"], [37, "call _opendir"], [38, "mov [rbp+dirp], rax"], [39, "cmp [rbp+dirp], 0"], [40, "jnz loc_42B072"], [41, "mov rax, [rbp+var_5E0]"], [42, "jmp loc_42B0AC"], [43, "mov rax, [rbp+var_5C8]"], [44, "add rax, 13h"], [45, "mov rdx, rax"], [46, "shr rdx, 3"], [47, "add rdx, 7FFF8000h"], [48, "movzx edx, byte ptr [rdx]"], [49, "test dl, dl"], [50, "setnz cl"], [51, "mov rsi, rax"], [52, "and esi, 7"], [53, "cmp sil, dl"], [54, "setnl dl"], [55, "and edx, ecx"], [56, "test dl, dl"], [57, "jz short loc_42AC41"], [58, "mov rdi, rax"], [59, "call ___asan_report_load1"], [60, "mov rax, [rbp+var_5C8]"], [61, "movzx eax, byte ptr [rax+13h]"], [62, "cmp al, 2Eh "], [63, "jnz short loc_42AC55"], [64, "jmp loc_42B072"], [65, "mov rax, [rbp+var_5C8]"], [66, "lea rcx, [rax+13h]"], [67, "mov rdx, [rbp+name]"], [68, "lea rax, [r12-480h]"], [69, "mov r8, rcx"], [70, "mov rcx, rdx"], [71, "mov edx, offset aSS_10"], [72, "mov esi, 400h"], [73, "mov rdi, rax"], [74, "mov eax, 0"], [75, "call _snprintf"], [76, "lea rdx, [r12-550h]"], [77, "lea rax, [r12-480h]"], [78, "mov rsi, rdx"], [79, "mov rdi, rax"], [80, "call sub_434660"], [81, "test eax, eax"], [82, "jz short loc_42ACB0"], [83, "jmp loc_42B072"], [84, "lea rax, [r12-550h]"], [85, "add rax, 58h "], [86, "mov rdx, rax"], [87, "shr rdx, 3"], [88, "add rdx, 7FFF8000h"], [89, "movzx edx, byte ptr [rdx]"], [90, "test dl, dl"], [91, "jz short loc_42ACD9"], [92, "mov rdi, rax"], [93, "call ___asan_report_load8"], [94, "mov rax, [r12-4F8h]"], [95, "cmp [rbp+var_5E0], rax"], [96, "jge short loc_42ACF9"], [97, "mov rax, [r12-4F8h]"], [98, "mov [rbp+var_5E0], rax"], [99, "lea rax, [r12-550h]"], [100, "add rax, 18h"], [101, "mov rdx, rax"], [102, "mov rax, rdx"], [103, "shr rax, 3"], [104, "add rax, 7FFF8000h"], [105, "movzx eax, byte ptr [rax]"], [106, "test al, al"], [107, "setnz cl"], [108, "cmp al, 3"], [109, "setle al"], [110, "and eax, ecx"], [111, "test al, al"], [112, "jz short loc_42AD30"], [113, "mov rdi, rdx"], [114, "call ___asan_report_load4"], [115, "mov eax, [r12-538h]"], [116, "and eax, 0F000h"], [117, "cmp eax, 4000h"], [118, "jnz short loc_42AD69"], [119, "mov edx, [rbp+var_5F4]"], [120, "lea rcx, [r12-480h]"], [121, "mov rax, [rbp+var_5E8]"], [122, "mov rsi, rcx"], [123, "mov rdi, rax"], [124, "call sub_42AB07"], [125, "jmp loc_42B072"], [126, "cmp [rbp+var_5F4], 0"], [127, "jz short loc_42AD77"], [128, "jmp loc_42B072"], [129, "mov rax, [rbp+var_5C8]"], [130, "add rax, 13h"], [131, "mov esi, 2Eh "], [132, "mov rdi, rax"], [133, "call _strrchr"], [134, "mov [rbp+s1], rax"], [135, "cmp [rbp+s1], 0"], [136, "jnz short loc_42ADA5"], [137, "jmp loc_42B072"], [138, "mov rax, [rbp+s1]"], [139, "mov esi, offset aOtc_0"], [140, "mov rdi, rax"], [141, "call _strcmp"], [142, "test eax, eax"], [143, "jz short loc_42AE0A"], [144, "mov rax, [rbp+s1]"], [145, "mov esi, offset aOtf_0"], [146, "mov rdi, rax"], [147, "call _strcmp"], [148, "test eax, eax"], [149, "jz short loc_42AE0A"], [150, "mov rax, [rbp+s1]"], [151, "mov esi, offset aTtc_0"], [152, "mov rdi, rax"], [153, "call _strcmp"], [154, "test eax, eax"], [155, "jz short loc_42AE0A"], [156, "mov rax, [rbp+s1]"], [157, "mov esi, offset aTtf_0"], [158, "mov rdi, rax"], [159, "call _strcmp"], [160, "test eax, eax"], [161, "jz short loc_42AE0A"], [162, "jmp loc_42B072"], [163, "lea rcx, [r12-480h]"], [164, "mov rax, [rbp+var_5E8]"], [165, "mov edx, 0"], [166, "mov rsi, rcx"], [167, "mov rdi, rax"], [168, "call sub_42230C"], [169, "mov [rbp+var_5B8], rax"], [170, "mov rcx, [rbp+var_5B8]"], [171, "mov rax, [rbp+var_5E8]"], [172, "mov edx, 0"], [173, "mov rsi, rcx"], [174, "mov rdi, rax"], [175, "call sub_422BB0"], [176, "mov [rbp+var_5B0], rax"], [177, "cmp [rbp+var_5B0], 0"], [178, "jz loc_42B063"], [179, "mov rax, [rbp+var_5B0]"], [180, "add rax, 20h "], [181, "mov rdx, rax"], [182, "shr rdx, 3"], [183, "add rdx, 7FFF8000h"], [184, "movzx edx, byte ptr [rdx]"], [185, "test dl, dl"], [186, "jz short loc_42AE8B"], [187, "mov rdi, rax"], [188, "call ___asan_report_load8"], [189, "mov rax, [rbp+var_5B0]"], [190, "mov rax, [rax+20h]"], [191, "test rax, rax"], [192, "jz short loc_42AEE1"], [193, "mov rax, [rbp+var_5B0]"], [194, "mov rdx, [rax+20h]"], [195, "mov rax, rdx"], [196, "mov rcx, rax"], [197, "shr rcx, 3"], [198, "add rcx, 7FFF8000h"], [199, "movzx ecx, byte ptr [rcx]"], [200, "test cl, cl"], [201, "setnz sil"], [202, "mov rdi, rax"], [203, "and edi, 7"], [204, "cmp dil, cl"], [205, "setnl cl"], [206, "and ecx, esi"], [207, "test cl, cl"], [208, "jz short loc_42AEDA"], [209, "mov rdi, rax"], [210, "call ___asan_report_load1"], [211, "movzx eax, byte ptr [rdx]"], [212, "cmp al, 2Eh "], [213, "jnz short loc_42AEF5"], [214, "mov rax, [rbp+var_5B0]"], [215, "mov rdi, rax"], [216, "call sub_4228ED"], [217, "jmp loc_42B063"], [218, "mov rax, [rbp+var_5B0]"], [219, "mov rdi, rax"], [220, "call sub_422A0D"], [221, "mov [rbp+var_5A8], rax"], [222, "lea rdx, [r12-480h]"], [223, "mov rsi, [rbp+var_5B0]"], [224, "mov rax, [rbp+var_5E8]"], [225, "mov ecx, 1"], [226, "mov rdi, rax"], [227, "call sub_4296B4"], [228, "cmp [rbp+var_5A8], 1"], [229, "jbe loc_42B063"], [230, "mov [rbp+var_5D8], 1"], [231, "jmp loc_42B04F"], [232, "mov rax, [rbp+var_5B8]"], [233, "mov esi, 0"], [234, "mov rdi, rax"], [235, "call sub_4225FC"], [236, "mov rdx, [rbp+var_5D8]"], [237, "mov rcx, [rbp+var_5B8]"], [238, "mov rax, [rbp+var_5E8]"], [239, "mov rsi, rcx"], [240, "mov rdi, rax"], [241, "call sub_422BB0"], [242, "mov [rbp+var_5B0], rax"], [243, "cmp [rbp+var_5B0], 0"], [244, "jz loc_42B047"], [245, "mov rax, [rbp+var_5B0]"], [246, "add rax, 20h "], [247, "mov rdx, rax"], [248, "shr rdx, 3"], [249, "add rdx, 7FFF8000h"], [250, "movzx edx, byte ptr [rdx]"], [251, "test dl, dl"], [252, "jz short loc_42AFBD"], [253, "mov rdi, rax"], [254, "call ___asan_report_load8"], [255, "mov rax, [rbp+var_5B0]"], [256, "mov rax, [rax+20h]"], [257, "test rax, rax"], [258, "jz short loc_42B038"], [259, "mov rax, [rbp+var_5B0]"], [260, "mov rdx, [rax+20h]"], [261, "mov rax, rdx"], [262, "mov rcx, rax"], [263, "shr rcx, 3"], [264, "add rcx, 7FFF8000h"], [265, "movzx ecx, byte ptr [rcx]"], [266, "test cl, cl"], [267, "setnz sil"], [268, "mov rdi, rax"], [269, "and edi, 7"], [270, "cmp dil, cl"], [271, "setnl cl"], [272, "and ecx, esi"], [273, "test cl, cl"], [274, "jz short loc_42B00C"], [275, "mov rdi, rax"], [276, "call ___asan_report_load1"], [277, "movzx eax, byte ptr [rdx]"], [278, "cmp al, 2Eh "], [279, "jz short loc_42B038"], [280, "lea rdx, [r12-480h]"], [281, "mov rsi, [rbp+var_5B0]"], [282, "mov rax, [rbp+var_5E8]"], [283, "mov ecx, 1"], [284, "mov rdi, rax"], [285, "call sub_4296B4"], [286, "jmp short loc_42B047"], [287, "mov rax, [rbp+var_5B0]"], [288, "mov rdi, rax"], [289, "call sub_4228ED"], [290, "add [rbp+var_5D8], 1"], [291, "mov rax, [rbp+var_5D8]"], [292, "cmp rax, [rbp+var_5A8]"], [293, "jb loc_42AF4C"], [294, "mov rax, [rbp+var_5B8]"], [295, "mov rdi, rax"], [296, "call sub_421856"], [297, "mov rax, [rbp+dirp]"], [298, "mov rdi, rax"], [299, "call _readdir"], [300, "mov [rbp+var_5C8], rax"], [301, "cmp [rbp+var_5C8], 0"], [302, "jnz loc_42AC06"], [303, "mov rax, [rbp+dirp]"], [304, "mov rdi, rax"], [305, "call _closedir"], [306, "mov rax, [rbp+var_5E0]"], [307, "mov r12, rax"], [308, "cmp r14, r13"], [309, "jz short loc_42B0CE"], [310, "mov qword ptr [r13+0], 45E0360Eh"], [311, "mov rdx, r14"], [312, "mov esi, 580h"], [313, "mov rdi, r13"], [314, "call ___asan_stack_free_5"], [315, "jmp short loc_42B0FA"], [316, "mov qword ptr [rbx+7FFF8000h], 0"], [317, "mov qword ptr [rbx+7FFF8018h], 0"], [318, "mov qword ptr [rbx+7FFF80A0h], 0"], [319, "mov qword ptr [rbx+7FFF80A8h], 0"], [320, "mov rax, r12"], [321, "add rsp, 5E0h"], [322, "pop rbx"], [323, "pop r12"], [324, "pop r13"], [325, "pop r14"], [326, "pop rbp"], [327, "retn"]], "data_dep": [[11, 10], [13, 12], [16, 15], [17, 16], [18, 16], [19, 18], [19, 16], [19, 10], [20, 19], [21, 18], [21, 10], [22, 10], [22, 18], [23, 10], [23, 18], [24, 10], [24, 18], [25, 24], [26, 25], [27, 25], [28, 25], [29, 25], [30, 25], [31, 25], [32, 25], [33, 25], [35, 8], [36, 35], [38, 37], [39, 38], [40, 39], [41, 34], [43, 300], [44, 43], [45, 44], [46, 45], [47, 46], [48, 22], [48, 31], [48, 26], [48, 21], [48, 30], [48, 29], [48, 47], [48, 33], [48, 28], [48, 23], [48, 32], [48, 27], [49, 48], [50, 207], [50, 225], [50, 70], [50, 107], [50, 237], [50, 120], [50, 50], [50, 283], [50, 49], [50, 170], [50, 273], [51, 44], [52, 51], [53, 52], [53, 49], [54, 49], [54, 53], [55, 50], [55, 54], [56, 55], [57, 56], [58, 44], [60, 300], [61, 29], [61, 33], [61, 28], [61, 23], [61, 32], [61, 60], [61, 27], [61, 22], [61, 31], [61, 26], [61, 21], [61, 30], [62, 61], [63, 62], [65, 300], [66, 29], [66, 33], [66, 28], [66, 23], [66, 32], [66, 65], [66, 50], [66, 27], [66, 22], [66, 31], [66, 26], [66, 21], [66, 30], [67, 8], [68, 22], [68, 31], [68, 26], [68, 21], [68, 30], [68, 20], [68, 29], [68, 65], [68, 33], [68, 28], [68, 23], [68, 32], [68, 27], [69, 66], [70, 67], [73, 68], [76, 31], [76, 26], [76, 21], [76, 30], [76, 20], [76, 29], [76, 71], [76, 33], [76, 28], [76, 23], [76, 32], [76, 27], [76, 22], [77, 75], [77, 33], [77, 28], [77, 23], [77, 32], [77, 27], [77, 22], [77, 31], [77, 26], [77, 21], [77, 30], [77, 20], [77, 29], [78, 76], [79, 77], [81, 80], [82, 81], [84, 22], [84, 31], [84, 26], [84, 21], [84, 30], [84, 20], [84, 81], [84, 29], [84, 33], [84, 28], [84, 23], [84, 32], [84, 27], [85, 84], [86, 85], [87, 86], [88, 87], [89, 22], [89, 31], [89, 26], [89, 21], [89, 30], [89, 29], [89, 33], [89, 28], [89, 23], [89, 32], [89, 27], [89, 88], [90, 89], [91, 90], [92, 85], [94, 21], [94, 30], [94, 20], [94, 29], [94, 33], [94, 28], [94, 23], [94, 32], [94, 27], [94, 22], [94, 31], [94, 26], [95, 34], [95, 94], [95, 98], [96, 95], [97, 31], [97, 26], [97, 21], [97, 30], [97, 20], [97, 29], [97, 33], [97, 28], [97, 23], [97, 32], [97, 27], [97, 22], [98, 97], [99, 94], [99, 29], [99, 33], [99, 28], [99, 23], [99, 32], [99, 27], [99, 97], [99, 22], [99, 31], [99, 26], [99, 21], [99, 30], [99, 20], [100, 99], [101, 100], [102, 101], [103, 102], [104, 103], [105, 31], [105, 26], [105, 21], [105, 30], [105, 104], [105, 29], [105, 33], [105, 28], [105, 23], [105, 32], [105, 27], [105, 22], [106, 105], [107, 70], [107, 106], [108, 106], [109, 106], [110, 109], [110, 107], [111, 110], [112, 111], [113, 101], [115, 29], [115, 33], [115, 28], [115, 23], [115, 32], [115, 27], [115, 22], [115, 31], [115, 26], [115, 21], [115, 30], [115, 20], [116, 115], [117, 116], [118, 117], [119, 9], [120, 33], [120, 28], [120, 23], [120, 32], [120, 27], [120, 107], [120, 22], [120, 31], [120, 26], [120, 21], [120, 30], [120, 20], [120, 29], [121, 7], [122, 120], [123, 121], [126, 9], [127, 126], [129, 300], [130, 129], [132, 130], [134, 133], [135, 134], [136, 135], [138, 134], [140, 138], [142, 141], [143, 142], [144, 134], [146, 144], [148, 147], [149, 148], [150, 134], [152, 150], [154, 153], [155, 154], [156, 134], [158, 156], [160, 159], [161, 160], [163, 22], [163, 107], [163, 31], [163, 26], [163, 21], [163, 30], [163, 20], [163, 29], [163, 33], [163, 28], [163, 23], [163, 32], [163, 27], [164, 7], [166, 163], [167, 164], [169, 168], [170, 169], [171, 7], [173, 170], [174, 171], [176, 175], [177, 176], [178, 177], [179, 176], [180, 179], [181, 180], [182, 181], [183, 182], [184, 31], [184, 26], [184, 183], [184, 21], [184, 30], [184, 29], [184, 33], [184, 28], [184, 23], [184, 32], [184, 27], [184, 22], [185, 184], [186, 185], [187, 180], [189, 176], [190, 21], [190, 189], [190, 30], [190, 29], [190, 33], [190, 28], [190, 23], [190, 32], [190, 27], [190, 22], [190, 31], [190, 26], [191, 190], [192, 191], [193, 176], [194, 28], [194, 23], [194, 32], [194, 27], [194, 22], [194, 31], [194, 26], [194, 193], [194, 21], [194, 30], [194, 29], [194, 33], [195, 194], [196, 195], [197, 196], [198, 197], [199, 28], [199, 23], [199, 32], [199, 27], [199, 22], [199, 31], [199, 26], [199, 198], [199, 21], [199, 30], [199, 29], [199, 33], [200, 199], [201, 173], [201, 200], [202, 195], [203, 202], [204, 203], [204, 200], [205, 200], [205, 204], [206, 201], [206, 205], [207, 206], [208, 207], [209, 195], [211, 30], [211, 29], [211, 33], [211, 28], [211, 194], [211, 23], [211, 32], [211, 27], [211, 22], [211, 31], [211, 26], [211, 21], [212, 211], [213, 212], [214, 176], [215, 214], [218, 176], [219, 218], [221, 220], [222, 30], [222, 20], [222, 29], [222, 33], [222, 28], [222, 194], [222, 23], [222, 32], [222, 27], [222, 22], [222, 31], [222, 26], [222, 21], [223, 176], [224, 7], [226, 224], [228, 221], [229, 228], [232, 169], [234, 232], [236, 230], [236, 290], [237, 169], [238, 7], [239, 237], [240, 238], [242, 241], [243, 242], [244, 243], [245, 242], [246, 245], [247, 246], [248, 247], [249, 248], [250, 22], [250, 31], [250, 26], [250, 249], [250, 21], [250, 30], [250, 29], [250, 33], [250, 28], [250, 23], [250, 32], [250, 27], [251, 250], [252, 251], [253, 246], [255, 242], [256, 32], [256, 27], [256, 22], [256, 31], [256, 26], [256, 21], [256, 30], [256, 29], [256, 33], [256, 28], [256, 23], [256, 255], [257, 256], [258, 257], [259, 242], [260, 29], [260, 33], [260, 28], [260, 23], [260, 32], [260, 27], [260, 22], [260, 31], [260, 26], [260, 21], [260, 259], [260, 30], [261, 260], [262, 261], [263, 262], [264, 263], [265, 33], [265, 28], [265, 23], [265, 32], [265, 27], [265, 22], [265, 31], [265, 26], [265, 264], [265, 21], [265, 30], [265, 29], [266, 265], [267, 239], [267, 266], [268, 261], [269, 268], [270, 269], [270, 266], [271, 266], [271, 270], [272, 267], [272, 271], [273, 272], [274, 273], [275, 261], [277, 30], [277, 29], [277, 33], [277, 28], [277, 23], [277, 260], [277, 32], [277, 27], [277, 22], [277, 31], [277, 26], [277, 21], [278, 277], [279, 278], [280, 32], [280, 27], [280, 22], [280, 31], [280, 26], [280, 21], [280, 30], [280, 20], [280, 29], [280, 33], [280, 28], [280, 23], [280, 260], [281, 242], [282, 7], [284, 282], [287, 242], [288, 287], [290, 290], [290, 230], [291, 230], [291, 290], [292, 291], [292, 221], [293, 292], [294, 169], [295, 294], [297, 38], [298, 297], [300, 299], [301, 300], [302, 301], [303, 38], [304, 303], [306, 34], [306, 98], [307, 41], [307, 306], [308, 11], [308, 10], [308, 18], [309, 308], [310, 10], [310, 18], [311, 11], [313, 10], [313, 18], [316, 25], [317, 25], [318, 25], [319, 25], [320, 307], [321, 6], [322, 5], [323, 4], [324, 3], [325, 2], [326, 0], [327, 320]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/3669bfa4208c69b56bb8add95bcd0a571a90a719f173610466e5597e0f17b30d_3669bfa4208c69b56bb8add95bcd0a571a90a719f173610466e5597e0f17b30d.jsonl.gz", "strip_func_name": "sub_42AB07", "query": "\n\n\n__int64 __fastcall sub_42AB07(__int64 a1, const char *a2, unsigned int a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11)\n{\nunsigned __int64 v11; // r13\n__int64 v12; // rax\n_DWORD *v13; // rbx\n__int64 v14; // rax\ndouble v15; // xmm4_8\ndouble v16; // xmm5_8\nunsigned __int64 v17; // rdx\ndouble v18; // xmm4_8\ndouble v19; // xmm5_8\nunsigned __int64 v20; // rdx\n__int64 v21; // r12\n__int64 v24; // [rsp+20h] [rbp-5E0h]\nunsigned __int64 i; // [rsp+28h] [rbp-5D8h]\nDIR *dirp; // [rsp+30h] [rbp-5D0h]\nstruct dirent *v27; // [rsp+38h] [rbp-5C8h]\nconst char *s1; // [rsp+40h] [rbp-5C0h]\n_QWORD *v29; // [rsp+48h] [rbp-5B8h]\n__int64 v30; // [rsp+50h] [rbp-5B0h]\n__int64 v31; // [rsp+50h] [rbp-5B0h]\nunsigned __int64 v32; // [rsp+58h] [rbp-5A8h]\nchar v33[1440]; // [rsp+60h] [rbp-5A0h] BYREF\n\nv11 = (unsigned __int64)v33;\nif ( _asan_option_detect_stack_use_after_return )\n{\nv12 = __asan_stack_malloc_5();\nif ( v12 )\nv11 = v12;\n}\n*(_QWORD *)v11 = 1102416563LL;\n*(_QWORD *)(v11 + 8) = \"2 48 144 8 info:555 256 1024 12 filename:551\";\n*(_QWORD *)(v11 + 16) = sub_42AB07;\nv13 = (_DWORD *)(v11 >> 3);\nv13[536862720] = -235802127;\nv13[536862721] = 61937;\nv13[536862726] = -218959118;\nv13[536862727] = -218959118;\nv13[536862760] = -202116109;\nv13[536862761] = -202116109;\nv13[536862762] = -202116109;\nv13[536862763] = -202116109;\nv24 = 0LL;\ndirp = opendir(a2);\nif ( dirp )\n{\nwhile ( 1 )\n{\nv27 = readdir(dirp);\nif ( !v27 )\nbreak;\nif ( *(_BYTE *)(((unsigned __int64)v27->d_name >> 3) + 0x7FFF8000) != 0\n&& (((unsigned __int8)v27 + 19) & 7) >= *(_BYTE *)(((unsigned __int64)v27->d_name >> 3) + 0x7FFF8000) )\n{\n__asan_report_load1();\n}\nif ( v27->d_name[0] != 46 )\n{\nsnprintf((char *)(v11 + 256), 0x400uLL, \"%s/%s\", a2, v27->d_name);\nif ( !(unsigned int)sub_434660((char *)(v11 + 256), (struct stat *)(v11 + 48)) )\n{\nif ( *(_BYTE *)(((v11 + 136) >> 3) + 0x7FFF8000) )\n__asan_report_load8();\nif ( v24 < *(_QWORD *)(v11 + 136) )\nv24 = *(_QWORD *)(v11 + 136);\nif ( *(_BYTE *)(((v11 + 72) >> 3) + 0x7FFF8000) != 0 && *(_BYTE *)(((v11 + 72) >> 3) + 0x7FFF8000) <= 3 )\n__asan_report_load4();\nif ( (*(_DWORD *)(v11 + 72) & 0xF000) == 0x4000 )\n{\nsub_42AB07(a1, v11 + 256, a3);\n}\nelse if ( !a3 )\n{\ns1 = strrchr(v27->d_name, 46);\nif ( s1 )\n{\nif ( !strcmp(s1, \".otc\") || !strcmp(s1, \".otf\") || !strcmp(s1, \".ttc\") || !strcmp(s1, \".ttf\") )\n{\nv29 = (_QWORD *)sub_42230C(a1, v11 + 256, 0LL);\nv30 = sub_422BB0(a1, (unsigned __int64)v29, 0LL, a4, a5, a6, a7, v15, v16, a10, a11);\nif ( v30 )\n{\nif ( *(_BYTE *)(((unsigned __int64)(v30 + 32) >> 3) + 0x7FFF8000) )\n__asan_report_load8();\nif ( !*(_QWORD *)(v30 + 32) )\ngoto LABEL_31;\nv17 = *(_QWORD *)(v30 + 32);\nif ( *(_BYTE *)((v17 >> 3) + 0x7FFF8000) != 0\n&& (*(_BYTE *)(v30 + 32) & 7) >= *(_BYTE *)((v17 >> 3) + 0x7FFF8000) )\n{\n__asan_report_load1();\n}\nif ( *(_BYTE *)v17 != 46 )\n{\nv32 = sub_422A0D(v30);\nsub_4296B4(a1, v30, v11 + 256, 1);\nif ( v32 > 1 )\n{\nfor ( i = 1LL; i < v32; ++i )\n{\nsub_4225FC(v29, 0LL);\nv31 = sub_422BB0(a1, (unsigned __int64)v29, i, a4, a5, a6, a7, v18, v19, a10, a11);\nif ( v31 )\n{\nif ( *(_BYTE *)(((unsigned __int64)(v31 + 32) >> 3) + 0x7FFF8000) )\n__asan_report_load8();\nif ( !*(_QWORD *)(v31 + 32) )\ngoto LABEL_42;\nv20 = *(_QWORD *)(v31 + 32);\nif ( *(_BYTE *)((v20 >> 3) + 0x7FFF8000) != 0\n&& (*(_BYTE *)(v31 + 32) & 7) >= *(_BYTE *)((v20 >> 3) + 0x7FFF8000) )\n{\n__asan_report_load1();\n}\nif ( *(_BYTE *)v20 == 46 )\nLABEL_42:\nsub_4228ED((void **)v31);\nelse\nsub_4296B4(a1, v31, v11 + 256, 1);\n}\n}\n}\n}\nelse\n{\nLABEL_31:\nsub_4228ED((void **)v30);\n}\n}\nsub_421856(v29);\n}\n}\n}\n}\n}\n}\nclosedir(dirp);\nv14 = v24;\n}\nelse\n{\nv14 = 0LL;\n}\nv21 = v14;\nif ( v33 == (char *)v11 )\n{\n*(_QWORD *)((v11 >> 3) + 0x7FFF8000) = 0LL;\n*(_QWORD *)((v11 >> 3) + 0x7FFF8018) = 0LL;\n*(_QWORD *)((v11 >> 3) + 0x7FFF80A0) = 0LL;\n*(_QWORD *)((v11 >> 3) + 0x7FFF80A8) = 0LL;\n}\nelse\n{\n*(_QWORD *)v11 = 1172321806LL;\n__asan_stack_free_5();\n}\nreturn v21;\n}\n\n\n\nQ:[a3,a1,a2,v24,dirp,v27,s1,v29,v31,v32,sub_42AB07,sub_434660,sub_42230C,sub_422BB0,sub_422A0D,sub_4296B4,sub_4225FC,sub_4228ED,sub_421856,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'scanonly', 'a1': 'pool', 'a2': 'd', 'v24': 'mtime', 'dirp': 'dir', 'v27': 'dent', 's1': 'ext', 'v29': 'file', 'v31': 'fonta', 'v32': 'num_fonts', 'sub_42AB07': 'hc_load_fonts', 'sub_434660': 'lstat', 'sub_42230C': 'hcFileNewURL', 'sub_422BB0': 'hcFontNew', 'sub_422A0D': 'hcFontGetNumFonts', 'sub_4296B4': 'hc_add_font', 'sub_4225FC': 'hcFileSeek', 'sub_4228ED': 'hcFontDelete', 'sub_421856': 'hcFileDelete'}"}
run_command
d2fc0ac00dfc26f78eaec1426a809a39309dfb557f1d3082055c6447be90a531
rustyrussell
ccan
NA
bool run_command(const void *ctx, unsigned int *time_ms, char **output, const char *fmt, ...) { va_list ap; char *cmd; bool ok; unsigned int default_time = default_timeout_ms; if (!time_ms) time_ms = &default_time; else if (*time_ms == 0) { *output = tal_strdup(ctx, "\n== TIMED OUT ==\n"); return false; } va_start(ap, fmt); cmd = tal_vfmt(ctx, fmt, ap); va_end(ap); *output = run_with_timeout(ctx, cmd, &ok, time_ms); if (ok) return true; if (!*output) err(1, "Problem running child"); if (*time_ms == 0) *output = tal_strcat(ctx, take(*output), "\n== TIMED OUT ==\n"); return false; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_419704", "function_addr": 4298500, "binary_name": "d2fc0ac00dfc26f78eaec1426a809a39309dfb557f1d3082055c6447be90a531.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 100h"], [3, "mov [rbp+var_E8], rdi"], [4, "mov [rbp+var_F0], rsi"], [5, "mov [rbp+var_F8], rdx"], [6, "mov [rbp+var_100], rcx"], [7, "mov [rbp+var_90], r8"], [8, "mov [rbp+var_88], r9"], [9, "test al, al"], [10, "jz short loc_41975D"], [11, "movaps [rbp+var_80], xmm0"], [12, "movaps [rbp+var_70], xmm1"], [13, "movaps [rbp+var_60], xmm2"], [14, "movaps [rbp+var_50], xmm3"], [15, "movaps [rbp+var_40], xmm4"], [16, "movaps [rbp+var_30], xmm5"], [17, "movaps [rbp+var_20], xmm6"], [18, "movaps [rbp+var_10], xmm7"], [19, "mov eax, 927C0h"], [20, "mov [rbp+var_D8], eax"], [21, "cmp [rbp+var_F0], 0"], [22, "jnz short loc_419782"], [23, "lea rax, [rbp+var_D8]"], [24, "mov [rbp+var_F0], rax"], [25, "jmp short loc_4197BC"], [26, "mov rax, [rbp+var_F0]"], [27, "mov eax, [rax]"], [28, "test eax, eax"], [29, "jnz short loc_4197BC"], [30, "mov rax, [rbp+var_E8]"], [31, "mov edx, offset aChar_51"], [32, "mov esi, offset aTimedOut"], [33, "mov rdi, rax"], [34, "call sub_4257BE"], [35, "mov rdx, [rbp+var_F8]"], [36, "mov [rdx], rax"], [37, "mov eax, 0"], [38, "jmp locret_4198C4"], [39, "mov [rbp+var_D0], 20h "], [40, "mov [rbp+var_CC], 30h "], [41, "lea rax, [rbp+arg_0]"], [42, "mov [rbp+var_C8], rax"], [43, "lea rax, [rbp+var_B0]"], [44, "mov [rbp+var_C0], rax"], [45, "lea rdx, [rbp+var_D0]"], [46, "mov rsi, [rbp+var_100]"], [47, "mov rax, [rbp+var_E8]"], [48, "mov ecx, offset aChar_51"], [49, "mov rdi, rax"], [50, "call sub_425A8D"], [51, "mov [rbp+var_B8], rax"], [52, "mov rcx, [rbp+var_F0]"], [53, "lea rdx, [rbp+var_D1]"], [54, "mov rsi, [rbp+var_B8]"], [55, "mov rax, [rbp+var_E8]"], [56, "mov rdi, rax"], [57, "call sub_419322"], [58, "mov rdx, [rbp+var_F8]"], [59, "mov [rdx], rax"], [60, "movzx eax, [rbp+var_D1]"], [61, "test al, al"], [62, "jz short loc_419852"], [63, "mov eax, 1"], [64, "jmp short locret_4198C4"], [65, "mov rax, [rbp+var_F8]"], [66, "mov rax, [rax]"], [67, "test rax, rax"], [68, "jnz short loc_419875"], [69, "mov esi, offset aProblemRunning"], [70, "mov edi, 1"], [71, "mov eax, 0"], [72, "call _err"], [73, "mov rax, [rbp+var_F0]"], [74, "mov eax, [rax]"], [75, "test eax, eax"], [76, "jnz short loc_4198BF"], [77, "mov rax, [rbp+var_F8]"], [78, "mov rax, [rax]"], [79, "mov esi, 0"], [80, "mov rdi, rax"], [81, "call sub_421D20"], [82, "mov rsi, rax"], [83, "mov rax, [rbp+var_E8]"], [84, "mov ecx, offset aChar_51"], [85, "mov edx, offset aTimedOut"], [86, "mov rdi, rax"], [87, "call sub_425C39"], [88, "mov rdx, [rbp+var_F8]"], [89, "mov [rdx], rax"], [90, "mov eax, 0"], [91, "leave"], [92, "retn"]], "data_dep": [[10, 9], [20, 19], [21, 4], [22, 21], [23, 19], [23, 20], [24, 23], [26, 4], [27, 26], [28, 27], [29, 28], [30, 3], [33, 30], [35, 5], [36, 34], [36, 35], [41, 23], [41, 28], [42, 41], [43, 41], [44, 43], [45, 39], [46, 6], [47, 3], [49, 47], [51, 50], [52, 24], [52, 4], [53, 45], [54, 51], [55, 3], [56, 55], [58, 5], [59, 58], [59, 57], [61, 60], [62, 61], [65, 5], [66, 59], [66, 65], [67, 66], [68, 67], [73, 4], [73, 24], [74, 73], [74, 59], [75, 74], [76, 75], [77, 5], [78, 59], [78, 77], [78, 89], [80, 78], [82, 81], [83, 3], [86, 83], [88, 5], [89, 88], [89, 87], [92, 63], [92, 90], [92, 37]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d2fc0ac00dfc26f78eaec1426a809a39309dfb557f1d3082055c6447be90a531_d2fc0ac00dfc26f78eaec1426a809a39309dfb557f1d3082055c6447be90a531.jsonl.gz", "strip_func_name": "sub_419704", "query": "\n\n\n__int64 sub_419704(__int64 a1, unsigned int *a2, const char **a3, __int64 a4, __int64 a5, __int64 a6, ...)\n{\n__int64 v7; // rax\nunsigned int *v9; // [rsp+10h] [rbp-F0h]\nint v10; // [rsp+28h] [rbp-D8h] BYREF\nbool v11; // [rsp+2Fh] [rbp-D1h] BYREF\ngcc_va_list va; // [rsp+30h] [rbp-D0h] BYREF\nconst char *v13; // [rsp+48h] [rbp-B8h]\n__int64 v14; // [rsp+70h] [rbp-90h]\n__int64 v15; // [rsp+78h] [rbp-88h]\n\nv9 = a2;\nv14 = a5;\nv15 = a6;\nv10 = 600000;\nif ( a2 )\n{\nif ( !*a2 )\n{\n*a3 = (const char *)sub_4257BE(a1, \"\\n== TIMED OUT ==\\n\", \"char[]\");\nreturn 0LL;\n}\n}\nelse\n{\nv9 = (unsigned int *)&v10;\n}\nva[0].gp_offset = 32;\nva_start(va, a6);\nv13 = (const char *)sub_425A8D(a1, a4, va, \"char[]\");\n*a3 = sub_419322(a1, v13, &v11, v9);\nif ( v11 )\nreturn 1LL;\nif ( !*a3 )\nerr(1, \"Problem running child\");\nif ( !*v9 )\n{\nv7 = sub_421D20(*a3, 0LL);\n*a3 = (const char *)sub_425C39(a1, v7, \"\\n== TIMED OUT ==\\n\", \"char[]\");\n}\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,v9,v10,v11,va,v13,sub_419704,sub_4257BE,sub_425A8D,sub_419322,sub_421D20,sub_425C39,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'output', 'a4': 'fmt', 'a1': 'ctx', 'a2': 'time_ms', 'v9': 'time_msa', 'v10': 'default_time', 'v11': 'ok', 'va': 'ap', 'v13': 'cmd', 'sub_419704': 'run_command', 'sub_4257BE': 'tal_strdup_', 'sub_425A8D': 'tal_vfmt_', 'sub_419322': 'run_with_timeout', 'sub_421D20': 'take_', 'sub_425C39': 'tal_strcat_'}"}
gf_buffer_holdu
c823bc55dc70527885c4a32fe372a4cbad8e31b982c6ff4cec767270fd7e72f1
PaulBatchelor
sndkit
NA
void gf_buffer_holdu(gf_buffer *buf) { buf->read = -2; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_411F4F", "function_addr": 4267855, "binary_name": "c823bc55dc70527885c4a32fe372a4cbad8e31b982c6ff4cec767270fd7e72f1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov rax, [rbp+var_8]"], [4, "mov dword ptr [rax+4], 0FFFFFFFEh"], [5, "nop"], [6, "pop rbp"], [7, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 0], [7, 3]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c823bc55dc70527885c4a32fe372a4cbad8e31b982c6ff4cec767270fd7e72f1_c823bc55dc70527885c4a32fe372a4cbad8e31b982c6ff4cec767270fd7e72f1.jsonl.gz", "strip_func_name": "sub_411F4F", "query": "\n\n\n__int64 __fastcall sub_411F4F(__int64 a1)\n{\n__int64 result; // rax\n\nresult = a1;\n*(_DWORD *)(a1 + 4) = -2;\nreturn result;\n}\n\n\n\nQ:[a1,sub_411F4F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'buf', 'sub_411F4F': 'gf_buffer_holdu'}"}
vb2_secdata_check_crc
b29cd8326c71a27a954c9cffa7ae7953b3cee64424271b7b9bb76db92416b48b
Telecominfraproject
OpenCellular
NA
int vb2_secdata_check_crc(const struct vb2_context *ctx) { const struct vb2_secdata *sec = (const struct vb2_secdata *)ctx->secdata; /* Verify CRC */ if (sec->crc8 != vb2_crc8(sec, offsetof(struct vb2_secdata, crc8))) return VB2_ERROR_SECDATA_CRC; /* CRC(<000...00>) is 0, so check version as well (should never be 0) */ if (!sec->struct_version) return VB2_ERROR_SECDATA_ZERO; return VB2_SUCCESS; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_422F82", "function_addr": 4337538, "binary_name": "b29cd8326c71a27a954c9cffa7ae7953b3cee64424271b7b9bb76db92416b48b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 28h"], [4, "mov [rbp+var_28], rdi"], [5, "mov rax, [rbp+var_28]"], [6, "add rax, 54h "], [7, "mov [rbp+var_18], rax"], [8, "mov rax, [rbp+var_18]"], [9, "movzx ebx, byte ptr [rax+9]"], [10, "mov rax, [rbp+var_18]"], [11, "mov esi, 9"], [12, "mov rdi, rax"], [13, "call sub_424826"], [14, "cmp bl, al"], [15, "jz short loc_422FBF"], [16, "mov eax, 10040001h"], [17, "jmp short loc_422FD6"], [18, "mov rax, [rbp+var_18]"], [19, "movzx eax, byte ptr [rax]"], [20, "test al, al"], [21, "jnz short loc_422FD1"], [22, "mov eax, 10040002h"], [23, "jmp short loc_422FD6"], [24, "mov eax, 0"], [25, "mov rbx, [rbp+var_8]"], [26, "leave"], [27, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 7], [12, 10], [14, 13], [14, 9], [15, 14], [18, 7], [19, 18], [20, 19], [21, 20], [27, 24], [27, 16], [27, 22]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b29cd8326c71a27a954c9cffa7ae7953b3cee64424271b7b9bb76db92416b48b_b29cd8326c71a27a954c9cffa7ae7953b3cee64424271b7b9bb76db92416b48b.jsonl.gz", "strip_func_name": "sub_422F82", "query": "\n\n\n__int64 __fastcall sub_422F82(__int64 a1)\n{\nchar v1; // bl\n\nv1 = *(_BYTE *)(a1 + 93);\nif ( v1 != (unsigned __int8)sub_424826(a1 + 84, 9LL) )\nreturn 268697601LL;\nif ( *(_BYTE *)(a1 + 84) )\nreturn 0LL;\nreturn 268697602LL;\n}\n\n\n\nQ:[a1,sub_422F82,sub_424826,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ctx', 'sub_422F82': 'vb2_secdata_check_crc', 'sub_424826': 'vb2_crc8'}"}
get_dc_val
42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48
RTimothyEdwards
irsim
NA
private Thev get_dc_val( n, tran, level ) nptr n; tptr tran; int level; { register lptr l; register tptr t; register nptr other; register Thev r; Thev cache, *pcache; NEW_THEV( r ); if( n->nflags & INPUT ) { *r = input_thev[ n->npot ]; return( r ); } *r = init_thev; switch( n->npot ) { case LOW : r->Clow.min = r->Clow.max = n->ncap; break; case X : r->Clow.max = r->Chigh.max = n->ncap; break; case HIGH : r->Chigh.min = r->Chigh.max = n->ncap; break; } for( l = n->nterm; l != NULL; l = l->next ) { t = l->xtor; /* ignore path going back or through a broken loop */ if( t == tran or t->state == OFF or (t->tflags & (BROKEN | PBROKEN)) ) continue; if( n == t->source ) { other = t->drain; pcache = &(t->dcache.r); } else { other = t->source; pcache = &(t->scache.r); } /* * if cache is not empty use the value found there, otherwise * compute what is on the other side of the transistor and * transmit the result through a series operation. */ if( (cache = *pcache) == NULL ) { cache = series_op( get_dc_val( other, t, level+inc_level ), t ); *pcache = cache; } parallel_op( r, cache ); } if( n->nflags & USERDELAY ) /* record user delays, if any */ { r->tplh = n->tplh; r->tphl = n->tphl; r->flags |= T_UDELAY; } if( level != 0 ) print_dc( n, r, level ); return( r ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4243DA", "function_addr": 4342746, "binary_name": "42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r14"], [3, "push r13"], [4, "push r12"], [5, "push rbx"], [6, "sub rsp, 30h"], [7, "mov [rbp+var_38], rdi"], [8, "mov [rbp+var_40], rsi"], [9, "mov [rbp+var_44], edx"], [10, "mov rbx, cs:qword_4567D0"], [11, "test rbx, rbx"], [12, "jnz short loc_424417"], [13, "mov esi, 1"], [14, "mov edi, 0C0h"], [15, "mov eax, 0"], [16, "call sub_41C67D"], [17, "mov rbx, rax"], [18, "mov rax, [rbx]"], [19, "mov cs:qword_4567D0, rax"], [20, "mov rax, [rbp+var_38]"], [21, "mov rax, [rax+58h]"], [22, "and eax, 10h"], [23, "test rax, rax"], [24, "jz loc_424565"], [25, "mov rax, [rbp+var_38]"], [26, "movzx eax, word ptr [rax+50h]"], [27, "cwde"], [28, "movsxd rdx, eax"], [29, "mov rax, rdx"], [30, "add rax, rax"], [31, "add rax, rdx"], [32, "shl rax, 6"], [33, "mov rdx, rax"], [34, "lea rax, unk_4568E0"], [35, "mov rsi, [rdx+rax]"], [36, "mov rdi, [rdx+rax+8]"], [37, "mov [rbx], rsi"], [38, "mov [rbx+8], rdi"], [39, "mov rsi, [rdx+rax+10h]"], [40, "mov rdi, [rdx+rax+18h]"], [41, "mov [rbx+10h], rsi"], [42, "mov [rbx+18h], rdi"], [43, "mov rsi, [rdx+rax+20h]"], [44, "mov rdi, [rdx+rax+28h]"], [45, "mov [rbx+20h], rsi"], [46, "mov [rbx+28h], rdi"], [47, "mov rsi, [rdx+rax+30h]"], [48, "mov rdi, [rdx+rax+38h]"], [49, "mov [rbx+30h], rsi"], [50, "mov [rbx+38h], rdi"], [51, "mov rsi, [rdx+rax+40h]"], [52, "mov rdi, [rdx+rax+48h]"], [53, "mov [rbx+40h], rsi"], [54, "mov [rbx+48h], rdi"], [55, "mov rsi, [rdx+rax+50h]"], [56, "mov rdi, [rdx+rax+58h]"], [57, "mov [rbx+50h], rsi"], [58, "mov [rbx+58h], rdi"], [59, "mov rsi, [rdx+rax+60h]"], [60, "mov rdi, [rdx+rax+68h]"], [61, "mov [rbx+60h], rsi"], [62, "mov [rbx+68h], rdi"], [63, "mov rsi, [rdx+rax+70h]"], [64, "mov rdi, [rdx+rax+78h]"], [65, "mov [rbx+70h], rsi"], [66, "mov [rbx+78h], rdi"], [67, "mov rsi, [rdx+rax+80h]"], [68, "mov rdi, [rdx+rax+88h]"], [69, "mov [rbx+80h], rsi"], [70, "mov [rbx+88h], rdi"], [71, "mov rsi, [rdx+rax+90h]"], [72, "mov rdi, [rdx+rax+98h]"], [73, "mov [rbx+90h], rsi"], [74, "mov [rbx+98h], rdi"], [75, "mov rsi, [rdx+rax+0A0h]"], [76, "mov rdi, [rdx+rax+0A8h]"], [77, "mov [rbx+0A0h], rsi"], [78, "mov [rbx+0A8h], rdi"], [79, "lea rdx, [rdx+rax+0B0h]"], [80, "mov rax, [rdx]"], [81, "mov rdx, [rdx+8]"], [82, "mov [rbx+0B0h], rax"], [83, "mov [rbx+0B8h], rdx"], [84, "mov rax, rbx"], [85, "jmp loc_42482A"], [86, "mov rax, cs:qword_456820"], [87, "mov rdx, cs:qword_456828"], [88, "mov [rbx], rax"], [89, "mov [rbx+8], rdx"], [90, "mov rax, cs:qword_456830"], [91, "mov rdx, cs:qword_456838"], [92, "mov [rbx+10h], rax"], [93, "mov [rbx+18h], rdx"], [94, "mov rax, cs:qword_456840"], [95, "mov rdx, cs:qword_456848"], [96, "mov [rbx+20h], rax"], [97, "mov [rbx+28h], rdx"], [98, "mov rax, cs:qword_456850"], [99, "mov rdx, cs:qword_456858"], [100, "mov [rbx+30h], rax"], [101, "mov [rbx+38h], rdx"], [102, "mov rax, cs:qword_456860"], [103, "mov rdx, cs:qword_456868"], [104, "mov [rbx+40h], rax"], [105, "mov [rbx+48h], rdx"], [106, "mov rax, cs:qword_456870"], [107, "mov rdx, cs:qword_456878"], [108, "mov [rbx+50h], rax"], [109, "mov [rbx+58h], rdx"], [110, "mov rax, cs:qword_456880"], [111, "mov rdx, cs:qword_456888"], [112, "mov [rbx+60h], rax"], [113, "mov [rbx+68h], rdx"], [114, "mov rax, cs:qword_456890"], [115, "mov rdx, cs:qword_456898"], [116, "mov [rbx+70h], rax"], [117, "mov [rbx+78h], rdx"], [118, "mov rax, cs:qword_4568A0"], [119, "mov rdx, cs:qword_4568A8"], [120, "mov [rbx+80h], rax"], [121, "mov [rbx+88h], rdx"], [122, "mov rax, cs:qword_4568B0"], [123, "mov rdx, cs:qword_4568B8"], [124, "mov [rbx+90h], rax"], [125, "mov [rbx+98h], rdx"], [126, "mov rax, cs:qword_4568C0"], [127, "mov rdx, cs:qword_4568C8"], [128, "mov [rbx+0A0h], rax"], [129, "mov [rbx+0A8h], rdx"], [130, "mov rax, cs:qword_4568D0"], [131, "mov rdx, cs:qword_4568D8"], [132, "mov [rbx+0B0h], rax"], [133, "mov [rbx+0B8h], rdx"], [134, "mov rax, [rbp+var_38]"], [135, "movzx eax, word ptr [rax+50h]"], [136, "cwde"], [137, "cmp eax, 3"], [138, "jz short loc_4246DE"], [139, "cmp eax, 3"], [140, "jg short loc_4246FB"], [141, "test eax, eax"], [142, "jz short loc_4246A2"], [143, "cmp eax, 1"], [144, "jz short loc_4246C0"], [145, "jmp short loc_4246FB"], [146, "mov rax, [rbp+var_38]"], [147, "movss xmm0, dword ptr [rax+28h]"], [148, "cvtss2sd xmm0, xmm0"], [149, "movsd qword ptr [rbx+18h], xmm0"], [150, "movsd xmm0, qword ptr [rbx+18h]"], [151, "movsd qword ptr [rbx+10h], xmm0"], [152, "jmp short loc_4246FB"], [153, "mov rax, [rbp+var_38]"], [154, "movss xmm0, dword ptr [rax+28h]"], [155, "cvtss2sd xmm0, xmm0"], [156, "movsd qword ptr [rbx+28h], xmm0"], [157, "movsd xmm0, qword ptr [rbx+28h]"], [158, "movsd qword ptr [rbx+18h], xmm0"], [159, "jmp short loc_4246FB"], [160, "mov rax, [rbp+var_38]"], [161, "movss xmm0, dword ptr [rax+28h]"], [162, "cvtss2sd xmm0, xmm0"], [163, "movsd qword ptr [rbx+28h], xmm0"], [164, "movsd xmm0, qword ptr [rbx+28h]"], [165, "movsd qword ptr [rbx+20h], xmm0"], [166, "nop"], [167, "mov rax, [rbp+var_38]"], [168, "mov r13, [rax+18h]"], [169, "jmp loc_4247CA"], [170, "mov r12, [r13+8]"], [171, "cmp r12, [rbp+var_40]"], [172, "jz loc_4247C5"], [173, "movzx eax, byte ptr [r12+2Ah]"], [174, "test al, al"], [175, "jz loc_4247C5"], [176, "movzx eax, byte ptr [r12+2Bh]"], [177, "movzx eax, al"], [178, "and eax, 6"], [179, "test eax, eax"], [180, "jnz loc_4247C5"], [181, "mov rax, [r12+8]"], [182, "cmp [rbp+var_38], rax"], [183, "jnz short loc_424753"], [184, "mov r14, [r12+10h]"], [185, "lea rax, [r12+20h]"], [186, "mov [rbp+var_30], rax"], [187, "jmp short loc_424761"], [188, "mov r14, [r12+8]"], [189, "lea rax, [r12+18h]"], [190, "mov [rbp+var_30], rax"], [191, "mov rax, [rbp+var_30]"], [192, "mov rax, [rax]"], [193, "mov [rbp+var_28], rax"], [194, "cmp [rbp+var_28], 0"], [195, "jnz short loc_4247AF"], [196, "mov edx, cs:dword_4567D8"], [197, "mov eax, [rbp+var_44]"], [198, "add eax, edx"], [199, "mov edx, eax"], [200, "mov rsi, r12"], [201, "mov rdi, r14"], [202, "mov eax, 0"], [203, "call sub_4243DA"], [204, "mov rsi, r12"], [205, "mov rdi, rax"], [206, "mov eax, 0"], [207, "call sub_424AA2"], [208, "mov [rbp+var_28], rax"], [209, "mov rax, [rbp+var_30]"], [210, "mov rdx, [rbp+var_28]"], [211, "mov [rax], rdx"], [212, "mov rax, [rbp+var_28]"], [213, "mov rsi, rax"], [214, "mov rdi, rbx"], [215, "mov eax, 0"], [216, "call sub_424ED7"], [217, "jmp short loc_4247C6"], [218, "nop"], [219, "mov r13, [r13+0]"], [220, "test r13, r13"], [221, "jnz loc_424708"], [222, "mov rax, [rbp+var_38]"], [223, "mov rax, [rax+58h]"], [224, "and eax, 8"], [225, "test rax, rax"], [226, "jz short loc_42480A"], [227, "mov rax, [rbp+var_38]"], [228, "movzx eax, word ptr [rax+3Ch]"], [229, "mov [rbx+0B8h], ax"], [230, "mov rax, [rbp+var_38]"], [231, "movzx eax, word ptr [rax+3Eh]"], [232, "mov [rbx+0BAh], ax"], [233, "mov eax, [rbx+8]"], [234, "or eax, 2"], [235, "mov [rbx+8], eax"], [236, "cmp [rbp+var_44], 0"], [237, "jz short loc_424827"], [238, "mov edx, [rbp+var_44]"], [239, "mov rax, [rbp+var_38]"], [240, "mov rsi, rbx"], [241, "mov rdi, rax"], [242, "mov eax, 0"], [243, "call sub_426A64"], [244, "mov rax, rbx"], [245, "add rsp, 30h"], [246, "pop rbx"], [247, "pop r12"], [248, "pop r13"], [249, "pop r14"], [250, "pop rbp"], [251, "retn"]], "data_dep": [[11, 10], [12, 11], [17, 16], [18, 17], [18, 11], [19, 18], [20, 7], [21, 20], [22, 21], [23, 22], [24, 23], [25, 7], [26, 25], [28, 26], [29, 28], [30, 29], [31, 28], [31, 30], [32, 31], [33, 32], [34, 32], [35, 34], [36, 34], [37, 17], [37, 35], [37, 11], [38, 36], [38, 17], [38, 11], [39, 38], [39, 34], [40, 34], [40, 38], [41, 17], [41, 39], [41, 11], [42, 11], [42, 40], [42, 17], [43, 34], [43, 42], [44, 42], [44, 34], [45, 11], [45, 43], [45, 17], [46, 17], [46, 44], [46, 11], [47, 34], [47, 46], [48, 34], [48, 46], [49, 17], [49, 11], [49, 47], [50, 48], [50, 17], [50, 11], [51, 50], [51, 34], [52, 50], [52, 34], [53, 11], [53, 51], [53, 17], [54, 17], [54, 11], [54, 52], [55, 54], [55, 34], [56, 34], [56, 54], [57, 55], [57, 17], [57, 11], [58, 56], [58, 17], [58, 11], [59, 58], [59, 34], [60, 58], [60, 34], [61, 59], [61, 17], [61, 11], [62, 60], [62, 17], [62, 11], [63, 34], [63, 62], [64, 34], [64, 62], [65, 63], [65, 17], [65, 11], [66, 64], [66, 17], [66, 11], [67, 66], [67, 34], [68, 34], [68, 66], [69, 67], [69, 17], [69, 11], [70, 68], [70, 17], [70, 11], [71, 34], [71, 70], [72, 70], [72, 34], [73, 17], [73, 11], [73, 71], [74, 72], [74, 17], [74, 11], [75, 34], [75, 74], [76, 34], [76, 74], [77, 75], [77, 17], [77, 11], [78, 17], [78, 11], [78, 76], [79, 33], [79, 78], [79, 34], [80, 79], [80, 78], [81, 78], [81, 79], [82, 17], [82, 11], [82, 80], [83, 11], [83, 81], [83, 17], [84, 17], [84, 11], [88, 86], [88, 17], [88, 11], [89, 17], [89, 11], [89, 87], [92, 17], [92, 11], [92, 90], [93, 17], [93, 91], [93, 11], [96, 94], [96, 17], [96, 11], [97, 11], [97, 95], [97, 17], [100, 17], [100, 11], [100, 98], [101, 17], [101, 11], [101, 99], [104, 102], [104, 17], [104, 11], [105, 17], [105, 11], [105, 103], [108, 17], [108, 11], [108, 106], [109, 107], [109, 17], [109, 11], [112, 110], [112, 17], [112, 11], [113, 11], [113, 111], [113, 17], [116, 17], [116, 11], [116, 114], [117, 115], [117, 17], [117, 11], [120, 17], [120, 11], [120, 118], [121, 119], [121, 11], [121, 17], [124, 11], [124, 122], [124, 17], [125, 17], [125, 11], [125, 123], [128, 17], [128, 11], [128, 126], [129, 11], [129, 127], [129, 17], [132, 11], [132, 130], [132, 17], [133, 17], [133, 11], [133, 131], [134, 7], [135, 134], [135, 133], [137, 135], [138, 137], [139, 135], [140, 139], [141, 135], [142, 141], [143, 141], [144, 143], [146, 7], [147, 149], [147, 125], [147, 120], [147, 129], [147, 97], [147, 124], [147, 133], [147, 92], [147, 101], [147, 128], [147, 96], [147, 105], [147, 100], [147, 109], [147, 151], [147, 146], [147, 132], [147, 104], [147, 113], [147, 108], [147, 117], [147, 112], [147, 121], [147, 89], [147, 116], [147, 93], [147, 88], [148, 147], [149, 11], [149, 148], [149, 17], [150, 149], [150, 17], [150, 11], [151, 11], [151, 150], [151, 17], [153, 7], [154, 156], [154, 128], [154, 132], [154, 109], [154, 104], [154, 113], [154, 108], [154, 117], [154, 112], [154, 89], [154, 93], [154, 88], [154, 158], [154, 153], [154, 121], [154, 116], [154, 125], [154, 120], [154, 129], [154, 97], [154, 124], [154, 133], [154, 92], [154, 101], [154, 96], [154, 105], [154, 100], [155, 154], [156, 17], [156, 155], [156, 11], [157, 156], [157, 11], [157, 17], [158, 157], [158, 17], [158, 11], [160, 7], [161, 93], [161, 88], [161, 163], [161, 116], [161, 125], [161, 120], [161, 129], [161, 97], [161, 124], [161, 133], [161, 92], [161, 101], [161, 128], [161, 96], [161, 105], [161, 100], [161, 165], [161, 160], [161, 132], [161, 109], [161, 104], [161, 113], [161, 108], [161, 117], [161, 112], [161, 121], [161, 89], [162, 161], [163, 17], [163, 11], [163, 162], [164, 163], [164, 17], [164, 11], [165, 164], [165, 11], [165, 17], [167, 7], [168, 100], [168, 109], [168, 156], [168, 165], [168, 151], [168, 132], [168, 104], [168, 113], [168, 108], [168, 117], [168, 112], [168, 121], [168, 89], [168, 116], [168, 93], [168, 88], [168, 97], [168, 163], [168, 149], [168, 158], [168, 167], [168, 125], [168, 120], [168, 129], [168, 124], [168, 133], [168, 92], [168, 101], [168, 128], [168, 96], [168, 105], [170, 151], [170, 128], [170, 132], [170, 109], [170, 104], [170, 113], [170, 108], [170, 117], [170, 220], [170, 112], [170, 121], [170, 89], [170, 93], [170, 88], [170, 163], [170, 149], [170, 158], [170, 116], [170, 125], [170, 120], [170, 129], [170, 97], [170, 124], [170, 133], [170, 92], [170, 101], [170, 96], [170, 105], [170, 100], [170, 211], [170, 156], [170, 165], [171, 8], [171, 170], [172, 171], [173, 170], [173, 156], [173, 165], [173, 151], [173, 132], [173, 104], [173, 113], [173, 108], [173, 117], [173, 112], [173, 121], [173, 89], [173, 116], [173, 93], [173, 88], [173, 97], [173, 163], [173, 149], [173, 158], [173, 125], [173, 120], [173, 129], [173, 124], [173, 133], [173, 92], [173, 101], [173, 128], [173, 96], [173, 105], [173, 100], [173, 109], [173, 211], [174, 173], [175, 174], [176, 96], [176, 105], [176, 100], [176, 211], [176, 170], [176, 156], [176, 165], [176, 151], [176, 128], [176, 132], [176, 109], [176, 104], [176, 113], [176, 108], [176, 117], [176, 112], [176, 121], [176, 89], [176, 93], [176, 88], [176, 163], [176, 149], [176, 158], [176, 116], [176, 125], [176, 120], [176, 129], [176, 97], [176, 124], [176, 133], [176, 92], [176, 101], [177, 176], [178, 177], [179, 178], [180, 179], [181, 165], [181, 151], [181, 132], [181, 163], [181, 113], [181, 149], [181, 108], [181, 117], [181, 112], [181, 121], [181, 89], [181, 116], [181, 93], [181, 88], [181, 97], [181, 92], [181, 158], [181, 125], [181, 120], [181, 129], [181, 156], [181, 124], [181, 133], [181, 101], [181, 128], [181, 96], [181, 105], [181, 100], [181, 109], [181, 104], [181, 211], [181, 170], [182, 7], [182, 181], [183, 182], [184, 170], [184, 156], [184, 165], [184, 151], [184, 128], [184, 132], [184, 109], [184, 104], [184, 113], [184, 108], [184, 117], [184, 211], [184, 112], [184, 89], [184, 93], [184, 88], [184, 163], [184, 149], [184, 158], [184, 121], [184, 116], [184, 125], [184, 120], [184, 129], [184, 97], [184, 124], [184, 133], [184, 92], [184, 101], [184, 96], [184, 105], [184, 100], [185, 125], [185, 120], [185, 129], [185, 156], [185, 124], [185, 133], [185, 92], [185, 101], [185, 128], [185, 96], [185, 105], [185, 100], [185, 109], [185, 104], [185, 211], [185, 170], [185, 165], [185, 151], [185, 132], [185, 113], [185, 149], [185, 108], [185, 117], [185, 112], [185, 121], [185, 89], [185, 116], [185, 93], [185, 88], [185, 97], [185, 163], [185, 181], [185, 158], [186, 185], [188, 88], [188, 163], [188, 149], [188, 158], [188, 125], [188, 120], [188, 129], [188, 97], [188, 124], [188, 133], [188, 92], [188, 101], [188, 128], [188, 96], [188, 105], [188, 100], [188, 109], [188, 211], [188, 170], [188, 156], [188, 165], [188, 151], [188, 132], [188, 104], [188, 113], [188, 108], [188, 117], [188, 112], [188, 121], [188, 89], [188, 116], [188, 93], [189, 132], [189, 113], [189, 149], [189, 108], [189, 117], [189, 112], [189, 121], [189, 89], [189, 116], [189, 93], [189, 88], [189, 97], [189, 163], [189, 181], [189, 158], [189, 125], [189, 120], [189, 129], [189, 124], [189, 133], [189, 92], [189, 101], [189, 128], [189, 96], [189, 105], [189, 100], [189, 109], [189, 104], [189, 211], [189, 170], [189, 156], [189, 165], [189, 151], [190, 189], [191, 186], [191, 190], [192, 211], [192, 156], [192, 165], [192, 151], [192, 132], [192, 104], [192, 113], [192, 108], [192, 117], [192, 112], [192, 121], [192, 89], [192, 93], [192, 88], [192, 191], [192, 163], [192, 149], [192, 158], [192, 116], [192, 125], [192, 120], [192, 129], [192, 97], [192, 124], [192, 133], [192, 92], [192, 101], [192, 128], [192, 96], [192, 105], [192, 100], [192, 109], [193, 192], [194, 193], [195, 194], [197, 9], [198, 197], [198, 196], [199, 198], [200, 170], [201, 184], [201, 188], [204, 170], [205, 203], [208, 207], [209, 186], [209, 190], [210, 208], [211, 210], [211, 209], [212, 193], [212, 208], [213, 212], [214, 11], [214, 17], [219, 165], [219, 163], [219, 149], [219, 158], [219, 108], [219, 117], [219, 112], [219, 121], [219, 89], [219, 116], [219, 125], [219, 93], [219, 88], [219, 97], [219, 92], [219, 120], [219, 129], [219, 156], [219, 124], [219, 133], [219, 151], [219, 101], [219, 128], [219, 96], [219, 105], [219, 132], [219, 100], [219, 109], [219, 104], [219, 113], [219, 211], [219, 220], [220, 168], [220, 219], [221, 220], [222, 7], [223, 120], [223, 129], [223, 156], [223, 124], [223, 133], [223, 151], [223, 101], [223, 128], [223, 222], [223, 96], [223, 105], [223, 100], [223, 109], [223, 104], [223, 211], [223, 165], [223, 132], [223, 163], [223, 113], [223, 149], [223, 108], [223, 117], [223, 112], [223, 121], [223, 89], [223, 116], [223, 125], [223, 93], [223, 88], [223, 97], [223, 92], [223, 158], [224, 223], [225, 224], [226, 225], [227, 7], [228, 124], [228, 133], [228, 151], [228, 101], [228, 128], [228, 96], [228, 105], [228, 235], [228, 100], [228, 109], [228, 104], [228, 211], [228, 165], [228, 132], [228, 163], [228, 113], [228, 149], [228, 108], [228, 117], [228, 229], [228, 112], [228, 121], [228, 89], [228, 116], [228, 125], [228, 93], [228, 232], [228, 88], [228, 97], [228, 227], [228, 156], [228, 92], [228, 158], [228, 120], [228, 129], [229, 228], [229, 17], [229, 11], [230, 7], [231, 230], [231, 229], [232, 17], [232, 231], [232, 11], [233, 11], [233, 89], [233, 232], [233, 17], [234, 233], [235, 17], [235, 11], [235, 234], [236, 9], [237, 236], [238, 9], [239, 7], [240, 17], [240, 11], [241, 239], [244, 11], [244, 17], [245, 6], [246, 5], [247, 4], [248, 3], [249, 2], [250, 0], [251, 84], [251, 244]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48_42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48.jsonl.gz", "strip_func_name": "sub_4243DA", "query": "\n\n\n__int64 __fastcall sub_4243DA(__int64 a1, __int64 a2, unsigned int a3)\n{\n__int64 v3; // rbx\n__int64 v4; // rdx\n__int64 v5; // rdi\n__int64 v6; // rdi\n__int64 v7; // rdi\n__int64 v8; // rdi\n__int64 v9; // rdi\n__int64 v10; // rdi\n__int64 v11; // rdi\n__int64 v12; // rdi\n__int64 v13; // rdi\n__int64 v14; // rdi\n__int64 v15; // rdi\n__int64 *v16; // rdx\n__int64 v17; // rax\n__int64 v18; // rdx\n__int64 result; // rax\n__int64 v20; // rdx\n__int64 v21; // rdx\n__int64 v22; // rdx\n__int64 v23; // rdx\n__int64 v24; // rdx\n__int64 v25; // rdx\n__int64 v26; // rdx\n__int64 v27; // rdx\n__int64 v28; // rdx\n__int64 v29; // rdx\n__int64 v30; // rdx\n__int64 v31; // rdx\n__int16 v32; // ax\n_QWORD *i; // r13\n__int64 v34; // r12\n__int64 v35; // r14\n__int64 v36; // rax\n__int64 *v38; // [rsp+20h] [rbp-30h]\n__int64 v39; // [rsp+28h] [rbp-28h]\n\nv3 = qword_4567D0;\nif ( !qword_4567D0 )\nv3 = sub_41C67D(192, 1u);\nqword_4567D0 = *(_QWORD *)v3;\nif ( (*(_QWORD *)(a1 + 88) & 0x10LL) != 0 )\n{\nv4 = 192LL * *(__int16 *)(a1 + 80);\nv5 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 8);\n*(_QWORD *)v3 = *(_QWORD *)((char *)&unk_4568E0 + v4);\n*(_QWORD *)(v3 + 8) = v5;\nv6 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 24);\n*(_QWORD *)(v3 + 16) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 16);\n*(_QWORD *)(v3 + 24) = v6;\nv7 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 40);\n*(_QWORD *)(v3 + 32) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 32);\n*(_QWORD *)(v3 + 40) = v7;\nv8 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 56);\n*(_QWORD *)(v3 + 48) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 48);\n*(_QWORD *)(v3 + 56) = v8;\nv9 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 72);\n*(_QWORD *)(v3 + 64) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 64);\n*(_QWORD *)(v3 + 72) = v9;\nv10 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 88);\n*(_QWORD *)(v3 + 80) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 80);\n*(_QWORD *)(v3 + 88) = v10;\nv11 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 104);\n*(_QWORD *)(v3 + 96) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 96);\n*(_QWORD *)(v3 + 104) = v11;\nv12 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 120);\n*(_QWORD *)(v3 + 112) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 112);\n*(_QWORD *)(v3 + 120) = v12;\nv13 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 136);\n*(_QWORD *)(v3 + 128) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 128);\n*(_QWORD *)(v3 + 136) = v13;\nv14 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 152);\n*(_QWORD *)(v3 + 144) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 144);\n*(_QWORD *)(v3 + 152) = v14;\nv15 = *(_QWORD *)((char *)&unk_4568E0 + v4 + 168);\n*(_QWORD *)(v3 + 160) = *(_QWORD *)((char *)&unk_4568E0 + v4 + 160);\n*(_QWORD *)(v3 + 168) = v15;\nv16 = (__int64 *)((char *)&unk_4568E0 + v4 + 176);\nv17 = *v16;\nv18 = v16[1];\n*(_QWORD *)(v3 + 176) = v17;\n*(_QWORD *)(v3 + 184) = v18;\nresult = v3;\n}\nelse\n{\nv20 = qword_456828;\n*(_QWORD *)v3 = qword_456820;\n*(_QWORD *)(v3 + 8) = v20;\nv21 = qword_456838;\n*(_QWORD *)(v3 + 16) = qword_456830;\n*(_QWORD *)(v3 + 24) = v21;\nv22 = qword_456848;\n*(_QWORD *)(v3 + 32) = qword_456840;\n*(_QWORD *)(v3 + 40) = v22;\nv23 = qword_456858;\n*(_QWORD *)(v3 + 48) = qword_456850;\n*(_QWORD *)(v3 + 56) = v23;\nv24 = qword_456868;\n*(_QWORD *)(v3 + 64) = qword_456860;\n*(_QWORD *)(v3 + 72) = v24;\nv25 = qword_456878;\n*(_QWORD *)(v3 + 80) = qword_456870;\n*(_QWORD *)(v3 + 88) = v25;\nv26 = qword_456888;\n*(_QWORD *)(v3 + 96) = qword_456880;\n*(_QWORD *)(v3 + 104) = v26;\nv27 = qword_456898;\n*(_QWORD *)(v3 + 112) = qword_456890;\n*(_QWORD *)(v3 + 120) = v27;\nv28 = qword_4568A8;\n*(_QWORD *)(v3 + 128) = qword_4568A0;\n*(_QWORD *)(v3 + 136) = v28;\nv29 = qword_4568B8;\n*(_QWORD *)(v3 + 144) = qword_4568B0;\n*(_QWORD *)(v3 + 152) = v29;\nv30 = qword_4568C8;\n*(_QWORD *)(v3 + 160) = qword_4568C0;\n*(_QWORD *)(v3 + 168) = v30;\nv31 = qword_4568D8;\n*(_QWORD *)(v3 + 176) = qword_4568D0;\n*(_QWORD *)(v3 + 184) = v31;\nv32 = *(_WORD *)(a1 + 80);\nif ( v32 == 3 )\n{\n*(double *)(v3 + 40) = *(float *)(a1 + 40);\n*(_QWORD *)(v3 + 32) = *(_QWORD *)(v3 + 40);\n}\nelse if ( v32 <= 3 )\n{\nif ( v32 )\n{\nif ( v32 == 1 )\n{\n*(double *)(v3 + 40) = *(float *)(a1 + 40);\n*(_QWORD *)(v3 + 24) = *(_QWORD *)(v3 + 40);\n}\n}\nelse\n{\n*(double *)(v3 + 24) = *(float *)(a1 + 40);\n*(_QWORD *)(v3 + 16) = *(_QWORD *)(v3 + 24);\n}\n}\nfor ( i = *(_QWORD **)(a1 + 24); i; i = (_QWORD *)*i )\n{\nv34 = i[1];\nif ( v34 != a2 && *(_BYTE *)(v34 + 42) && (*(_BYTE *)(v34 + 43) & 6) == 0 )\n{\nif ( a1 == *(_QWORD *)(v34 + 8) )\n{\nv35 = *(_QWORD *)(v34 + 16);\nv38 = (__int64 *)(v34 + 32);\n}\nelse\n{\nv35 = *(_QWORD *)(v34 + 8);\nv38 = (__int64 *)(v34 + 24);\n}\nv39 = *v38;\nif ( !*v38 )\n{\nv36 = sub_4243DA(v35, v34, dword_4567D8 + a3);\nv39 = sub_424AA2(v36, v34);\n*v38 = v39;\n}\nsub_424ED7(v3, v39);\n}\n}\nif ( (*(_QWORD *)(a1 + 88) & 8LL) != 0 )\n{\n*(_WORD *)(v3 + 184) = *(_WORD *)(a1 + 60);\n*(_WORD *)(v3 + 186) = *(_WORD *)(a1 + 62);\n*(_DWORD *)(v3 + 8) |= 2u;\n}\nif ( a3 )\nsub_426A64(a1, v3, a3);\nresult = v3;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v38,v39,sub_4243DA,sub_41C67D,sub_424AA2,sub_424ED7,sub_426A64,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'level', 'a1': 'n', 'a2': 'tran', 'v38': 'pcache', 'v39': 'cache', 'sub_4243DA': 'get_dc_val', 'sub_41C67D': 'MallocList', 'sub_424AA2': 'series_op', 'sub_424ED7': 'parallel_op', 'sub_426A64': 'print_dc'}"}
ipnetconf_reset_filter
bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb
multipath-tcp
iproute-mptcp
NA
void ipnetconf_reset_filter(int ifindex) { memset(&filter, 0, sizeof(filter)); filter.ifindex = ifindex; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "ipnetconf_reset_filter", "function_addr": 4527274, "binary_name": "bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov edx, 8"], [5, "mov esi, 0"], [6, "mov edi, offset dword_4BF5F0"], [7, "call _memset"], [8, "mov eax, [rbp+var_4]"], [9, "mov cs:dword_4BF5F4, eax"], [10, "nop"], [11, "leave"], [12, "retn"]], "data_dep": [[8, 3], [9, 8], [12, 8]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb_bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb.jsonl.gz", "strip_func_name": "ipnetconf_reset_filter", "query": "\n\n\n__int64 __fastcall ipnetconf_reset_filter(unsigned int a1)\n{\n__int64 result; // rax\n\nmemset(&dword_4BF5F0, 0, 8uLL);\nresult = a1;\ndword_4BF5F4 = a1;\nreturn result;\n}\n\n\n\nQ:[a1,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ifindex'}"}
wpa_msg_register_ifname_cb
867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f
vanhoefm
hostap-wpa3
NA
void wpa_msg_register_ifname_cb(wpa_msg_get_ifname_func func) { wpa_msg_ifname_cb = func; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43CDC9", "function_addr": 4443593, "binary_name": "867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov rax, [rbp+var_8]"], [4, "mov cs:qword_45AA30, rax"], [5, "nop"], [6, "pop rbp"], [7, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 0], [7, 3]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f_867a4d2c76d649bce7980aa0c0ebbed5186f9afe73f3b8af8223166d4971be0f.jsonl.gz", "strip_func_name": "sub_43CDC9", "query": "\n\n\n__int64 __fastcall sub_43CDC9(__int64 a1)\n{\n__int64 result; // rax\n\nresult = a1;\nqword_45AA30 = a1;\nreturn result;\n}\n\n\n\nQ:[a1,sub_43CDC9,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'func', 'sub_43CDC9': 'wpa_msg_register_ifname_cb'}"}
get_addr
299ed07bf885722ad349dff46246190c8fcda00a187a3757d0ce9caaff014378
alliedvision
linux_nvidia_jetson
NA
int get_addr(int fd, int pm_family, int argc, char *argv[]) { char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + NLMSG_ALIGN(sizeof(struct genlmsghdr)) + 1024]; struct rtattr *rta, *nest; struct nlmsghdr *nh; int nest_start; u_int8_t id; int off = 0; memset(data, 0, sizeof(data)); nh = (void *)data; off = init_genl_req(data, pm_family, MPTCP_PM_CMD_GET_ADDR, MPTCP_PM_VER); /* the only argument is the address id */ if (argc != 3) syntax(argv); id = atoi(argv[2]); nest_start = off; nest = (void *)(data + off); nest->rta_type = NLA_F_NESTED | MPTCP_PM_ATTR_ADDR; nest->rta_len = RTA_LENGTH(0); off += NLMSG_ALIGN(nest->rta_len); /* build a dummy addr with only the ID set */ rta = (void *)(data + off); rta->rta_type = MPTCP_PM_ADDR_ATTR_ID; rta->rta_len = RTA_LENGTH(1); memcpy(RTA_DATA(rta), &id, 1); off += NLMSG_ALIGN(rta->rta_len); nest->rta_len = off - nest_start; print_addrs(nh, pm_family, do_nl_req(fd, nh, off, sizeof(data))); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402722", "function_addr": 4204322, "binary_name": "299ed07bf885722ad349dff46246190c8fcda00a187a3757d0ce9caaff014378.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 470h"], [3, "mov [rbp+var_454], edi"], [4, "mov [rbp+var_458], esi"], [5, "mov [rbp+var_45C], edx"], [6, "mov [rbp+var_468], rcx"], [7, "mov [rbp+var_4], 0"], [8, "lea rax, [rbp+s]"], [9, "mov edx, 414h"], [10, "mov esi, 0"], [11, "mov rdi, rax"], [12, "call _memset"], [13, "lea rax, [rbp+s]"], [14, "mov [rbp+var_10], rax"], [15, "mov esi, [rbp+var_458]"], [16, "lea rax, [rbp+s]"], [17, "mov ecx, 1"], [18, "mov edx, 3"], [19, "mov rdi, rax"], [20, "call sub_40133C"], [21, "mov [rbp+var_4], eax"], [22, "cmp [rbp+var_45C], 3"], [23, "jz short loc_4027AB"], [24, "mov rax, [rbp+var_468]"], [25, "mov rdi, rax"], [26, "call sub_401252"], [27, "mov rax, [rbp+var_468]"], [28, "add rax, 10h"], [29, "mov rax, [rax]"], [30, "mov rdi, rax"], [31, "call _atoi"], [32, "mov [rbp+var_441], al"], [33, "mov eax, [rbp+var_4]"], [34, "mov [rbp+var_14], eax"], [35, "mov eax, [rbp+var_4]"], [36, "cdqe"], [37, "lea rdx, [rbp+s]"], [38, "add rax, rdx"], [39, "mov [rbp+var_20], rax"], [40, "mov rax, [rbp+var_20]"], [41, "mov word ptr [rax+2], 8001h"], [42, "mov rax, [rbp+var_20]"], [43, "mov word ptr [rax], 4"], [44, "mov rax, [rbp+var_20]"], [45, "movzx eax, word ptr [rax]"], [46, "movzx eax, ax"], [47, "add eax, 3"], [48, "and eax, 0FFFFFFFCh"], [49, "mov edx, eax"], [50, "mov eax, [rbp+var_4]"], [51, "add eax, edx"], [52, "mov [rbp+var_4], eax"], [53, "mov eax, [rbp+var_4]"], [54, "cdqe"], [55, "lea rdx, [rbp+s]"], [56, "add rax, rdx"], [57, "mov [rbp+var_28], rax"], [58, "mov rax, [rbp+var_28]"], [59, "mov word ptr [rax+2], 2"], [60, "mov rax, [rbp+var_28]"], [61, "mov word ptr [rax], 5"], [62, "mov rax, [rbp+var_28]"], [63, "lea rdx, [rax+4]"], [64, "movzx eax, [rbp+var_441]"], [65, "mov [rdx], al"], [66, "mov rax, [rbp+var_28]"], [67, "movzx eax, word ptr [rax]"], [68, "movzx eax, ax"], [69, "add eax, 3"], [70, "and eax, 0FFFFFFFCh"], [71, "mov edx, eax"], [72, "mov eax, [rbp+var_4]"], [73, "add eax, edx"], [74, "mov [rbp+var_4], eax"], [75, "mov eax, [rbp+var_4]"], [76, "mov edx, eax"], [77, "mov eax, [rbp+var_14]"], [78, "sub edx, eax"], [79, "mov rax, [rbp+var_20]"], [80, "mov [rax], dx"], [81, "mov edx, [rbp+var_4]"], [82, "mov rsi, [rbp+var_10]"], [83, "mov eax, [rbp+var_454]"], [84, "mov ecx, 414h"], [85, "mov edi, eax"], [86, "call sub_401521"], [87, "mov edx, eax"], [88, "mov ecx, [rbp+var_458]"], [89, "mov rax, [rbp+var_10]"], [90, "mov esi, ecx"], [91, "mov rdi, rax"], [92, "call sub_4025D8"], [93, "mov eax, 0"], [94, "leave"], [95, "retn"]], "data_dep": [[11, 8], [13, 12], [14, 13], [15, 4], [16, 13], [19, 16], [21, 20], [22, 5], [23, 22], [24, 6], [25, 24], [27, 6], [28, 27], [29, 28], [30, 29], [32, 31], [33, 21], [34, 33], [35, 21], [37, 18], [38, 35], [38, 37], [39, 38], [40, 39], [41, 40], [42, 39], [43, 42], [44, 39], [45, 43], [45, 44], [46, 45], [47, 46], [48, 47], [49, 48], [50, 21], [51, 50], [51, 49], [52, 51], [53, 52], [55, 49], [56, 53], [56, 55], [57, 56], [58, 57], [59, 58], [60, 57], [61, 60], [62, 57], [63, 61], [63, 62], [63, 55], [64, 32], [65, 63], [65, 64], [66, 57], [67, 61], [67, 65], [67, 66], [68, 67], [69, 68], [70, 69], [71, 70], [72, 52], [73, 71], [73, 72], [74, 73], [75, 74], [76, 75], [77, 34], [78, 77], [78, 76], [79, 39], [80, 78], [80, 79], [81, 74], [82, 14], [83, 3], [85, 83], [87, 86], [88, 4], [89, 14], [90, 88], [91, 89], [95, 93]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/299ed07bf885722ad349dff46246190c8fcda00a187a3757d0ce9caaff014378_299ed07bf885722ad349dff46246190c8fcda00a187a3757d0ce9caaff014378.jsonl.gz", "strip_func_name": "sub_402722", "query": "\n\n\n__int64 __fastcall sub_402722(int a1, __int16 a2, int a3, const char **a4)\n{\nint v4; // eax\nchar v8; // [rsp+2Fh] [rbp-441h]\nchar s[1048]; // [rsp+30h] [rbp-440h] BYREF\nchar *v10; // [rsp+448h] [rbp-28h]\nchar *v11; // [rsp+450h] [rbp-20h]\nunsigned int v12; // [rsp+45Ch] [rbp-14h]\nunsigned int *v13; // [rsp+460h] [rbp-10h]\nunsigned int v14; // [rsp+46Ch] [rbp-4h]\n\nv14 = 0;\nmemset(s, 0, 0x414uLL);\nv13 = (unsigned int *)s;\nv14 = sub_40133C((__int64)s, a2, 3, 1);\nif ( a3 != 3 )\nsub_401252(a4);\nv8 = atoi(a4[2]);\nv12 = v14;\nv11 = &s[v14];\n*((_WORD *)v11 + 1) = -32767;\n*(_WORD *)v11 = 4;\nv14 += (*(unsigned __int16 *)v11 + 3) & 0xFFFFFFFC;\nv10 = &s[v14];\n*((_WORD *)v10 + 1) = 2;\n*(_WORD *)v10 = 5;\nv10[4] = v8;\nv14 += (*(unsigned __int16 *)v10 + 3) & 0xFFFFFFFC;\n*(_WORD *)v11 = v14 - v12;\nv4 = sub_401521(a1, v13, v14, 1044);\nsub_4025D8((int *)v13, a2, v4);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,v8,s,v10,v11,v12,v13,v14,sub_402722,sub_40133C,sub_401252,sub_401521,sub_4025D8,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'argc', 'a4': 'argv', 'a1': 'fd', 'a2': 'pm_family', 'v8': 'id', 's': 'data', 'v10': 'rta', 'v11': 'nest', 'v12': 'nest_start', 'v13': 'nh', 'v14': 'off', 'sub_402722': 'get_addr', 'sub_40133C': 'init_genl_req', 'sub_401252': 'syntax', 'sub_401521': 'do_nl_req', 'sub_4025D8': 'print_addrs'}"}
do_defproperty
341056d7878ced47ed07b9fbb115ffe539bb10d26fa64b76cac642a07a3fa3d6
dbetz
advsys
NA
void do_defproperty(void) { int tkn; while ((tkn = token()) == T_IDENTIFIER) penter(t_token); require(tkn,T_CLOSE); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403947", "function_addr": 4208967, "binary_name": "341056d7878ced47ed07b9fbb115ffe539bb10d26fa64b76cac642a07a3fa3d6.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "jmp short loc_40395B"], [4, "mov edi, offset src"], [5, "call sub_402268"], [6, "call sub_404AF9"], [7, "mov [rbp+var_4], eax"], [8, "cmp [rbp+var_4], 4"], [9, "jz short loc_403951"], [10, "mov eax, [rbp+var_4]"], [11, "mov esi, 2"], [12, "mov edi, eax"], [13, "call sub_402429"], [14, "nop"], [15, "leave"], [16, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [10, 7], [12, 10], [16, 13]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/341056d7878ced47ed07b9fbb115ffe539bb10d26fa64b76cac642a07a3fa3d6_341056d7878ced47ed07b9fbb115ffe539bb10d26fa64b76cac642a07a3fa3d6.jsonl.gz", "strip_func_name": "sub_403947", "query": "\n\n\n__int64 sub_403947()\n{\nunsigned int v1; // [rsp+Ch] [rbp-4h]\n\nwhile ( 1 )\n{\nv1 = sub_404AF9();\nif ( v1 != 4 )\nbreak;\nsub_402268((__int64)src);\n}\nreturn sub_402429(v1, 2);\n}\n\n\n\nQ:[v1,sub_403947,sub_404AF9,sub_402268,sub_402429,]\nAssistant: ", "hints": "[]", "response": "{'v1': 'tkn', 'sub_403947': 'do_defproperty', 'sub_404AF9': 'token', 'sub_402268': 'penter', 'sub_402429': 'require'}"}
mbm_test_cleanup
90a309de8c4372a30f20aec32b5a08611d92ae490eca3b54c125bf33a3709861
SUSE
kernel
NA
void mbm_test_cleanup(void) { remove(RESULT_FILE_NAME); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40681C", "function_addr": 4220956, "binary_name": "90a309de8c4372a30f20aec32b5a08611d92ae490eca3b54c125bf33a3709861.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov edi, offset aResultMbm"], [3, "call _remove"], [4, "nop"], [5, "pop rbp"], [6, "retn"]], "data_dep": [[5, 0], [6, 3]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/90a309de8c4372a30f20aec32b5a08611d92ae490eca3b54c125bf33a3709861_90a309de8c4372a30f20aec32b5a08611d92ae490eca3b54c125bf33a3709861.jsonl.gz", "strip_func_name": "sub_40681C", "query": "\n\n\nint sub_40681C()\n{\nreturn remove(\"result_mbm\");\n}\n\n\n\nQ:[sub_40681C,]\nAssistant: ", "hints": "[]", "response": "{'sub_40681C': 'mbm_test_cleanup'}"}
calc_order_pawn
9e5ed998603d4a4bec6a0155dac36698df46b941b6fa147e44fcff659a57d6e8
syzygy1
tb
NA
void calc_order_pawn(int num, int ord, int ord2, int *order, uint8_t *norm) { int i, k; int tmp[TBPIECES]; i = norm[0]; if (ord2 < 0x0f) i += norm[i]; for (k = 0; i < num || k == ord || k == ord2; k++) if (k == ord) tmp[k] = 0; else if (k == ord2) tmp[k] = norm[0]; else { tmp[k] = i; i += norm[i]; } for (i = 0; i < k; i++) order[k - i - 1] = tmp[i]; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4040E6", "function_addr": 4210918, "binary_name": "9e5ed998603d4a4bec6a0155dac36698df46b941b6fa147e44fcff659a57d6e8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_34], edi"], [3, "mov [rbp+var_38], esi"], [4, "mov [rbp+var_3C], edx"], [5, "mov [rbp+var_48], rcx"], [6, "mov [rbp+var_50], r8"], [7, "mov rax, [rbp+var_50]"], [8, "movzx eax, byte ptr [rax]"], [9, "movzx eax, al"], [10, "mov [rbp+var_4], eax"], [11, "cmp [rbp+var_3C], 0Eh"], [12, "jg short loc_404124"], [13, "mov eax, [rbp+var_4]"], [14, "movsxd rdx, eax"], [15, "mov rax, [rbp+var_50]"], [16, "add rax, rdx"], [17, "movzx eax, byte ptr [rax]"], [18, "movzx eax, al"], [19, "add [rbp+var_4], eax"], [20, "mov [rbp+var_8], 0"], [21, "jmp short loc_404187"], [22, "mov eax, [rbp+var_8]"], [23, "cmp eax, [rbp+var_38]"], [24, "jnz short loc_404144"], [25, "mov eax, [rbp+var_8]"], [26, "cdqe"], [27, "mov [rbp+rax*4+var_30], 0"], [28, "jmp short loc_404183"], [29, "mov eax, [rbp+var_8]"], [30, "cmp eax, [rbp+var_3C]"], [31, "jnz short loc_404161"], [32, "mov rax, [rbp+var_50]"], [33, "movzx eax, byte ptr [rax]"], [34, "movzx edx, al"], [35, "mov eax, [rbp+var_8]"], [36, "cdqe"], [37, "mov [rbp+rax*4+var_30], edx"], [38, "jmp short loc_404183"], [39, "mov eax, [rbp+var_8]"], [40, "cdqe"], [41, "mov edx, [rbp+var_4]"], [42, "mov [rbp+rax*4+var_30], edx"], [43, "mov eax, [rbp+var_4]"], [44, "movsxd rdx, eax"], [45, "mov rax, [rbp+var_50]"], [46, "add rax, rdx"], [47, "movzx eax, byte ptr [rax]"], [48, "movzx eax, al"], [49, "add [rbp+var_4], eax"], [50, "add [rbp+var_8], 1"], [51, "mov eax, [rbp+var_4]"], [52, "cmp eax, [rbp+var_34]"], [53, "jl short loc_40412D"], [54, "mov eax, [rbp+var_8]"], [55, "cmp eax, [rbp+var_38]"], [56, "jz short loc_40412D"], [57, "mov eax, [rbp+var_8]"], [58, "cmp eax, [rbp+var_3C]"], [59, "jz short loc_40412D"], [60, "mov [rbp+var_4], 0"], [61, "jmp short loc_4041CE"], [62, "mov eax, [rbp+var_8]"], [63, "sub eax, [rbp+var_4]"], [64, "cdqe"], [65, "shl rax, 2"], [66, "lea rdx, [rax-4]"], [67, "mov rax, [rbp+var_48]"], [68, "add rdx, rax"], [69, "mov eax, [rbp+var_4]"], [70, "cdqe"], [71, "mov eax, [rbp+rax*4+var_30]"], [72, "mov [rdx], eax"], [73, "add [rbp+var_4], 1"], [74, "mov eax, [rbp+var_4]"], [75, "cmp eax, [rbp+var_8]"], [76, "jl short loc_4041A8"], [77, "nop"], [78, "nop"], [79, "pop rbp"], [80, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [10, 9], [11, 4], [12, 11], [13, 10], [14, 13], [15, 6], [16, 15], [16, 14], [17, 16], [18, 17], [19, 18], [19, 10], [22, 20], [22, 50], [23, 22], [23, 3], [24, 23], [25, 50], [25, 20], [27, 25], [29, 50], [29, 20], [30, 4], [30, 29], [31, 30], [32, 6], [33, 32], [34, 33], [35, 50], [35, 20], [37, 35], [37, 34], [39, 20], [39, 50], [41, 49], [41, 10], [41, 19], [42, 39], [42, 41], [43, 49], [43, 10], [43, 19], [44, 43], [45, 6], [46, 45], [46, 44], [47, 46], [48, 47], [49, 48], [49, 49], [49, 10], [49, 19], [50, 20], [50, 50], [51, 10], [51, 49], [51, 19], [52, 51], [52, 2], [53, 52], [54, 50], [54, 20], [55, 54], [55, 3], [56, 55], [57, 20], [57, 50], [58, 57], [58, 4], [59, 58], [62, 20], [62, 50], [63, 60], [63, 62], [63, 73], [65, 63], [66, 14], [66, 68], [66, 34], [66, 72], [66, 44], [66, 65], [67, 5], [68, 66], [68, 67], [69, 60], [69, 73], [71, 42], [71, 37], [71, 69], [71, 27], [72, 68], [72, 71], [73, 60], [73, 73], [74, 73], [74, 60], [75, 74], [75, 50], [75, 20], [76, 75], [79, 0], [80, 74]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/9e5ed998603d4a4bec6a0155dac36698df46b941b6fa147e44fcff659a57d6e8_9e5ed998603d4a4bec6a0155dac36698df46b941b6fa147e44fcff659a57d6e8.jsonl.gz", "strip_func_name": "sub_4040E6", "query": "\n\n\n__int64 __fastcall sub_4040E6(int a1, int a2, int a3, __int64 a4, unsigned __int8 *a5)\n{\n__int64 result; // rax\nint v6[10]; // [rsp+20h] [rbp-30h]\nint i; // [rsp+48h] [rbp-8h]\nint j; // [rsp+4Ch] [rbp-4h]\n\nj = *a5;\nif ( a3 <= 14 )\nj += a5[j];\nfor ( i = 0; j < a1 || i == a2 || i == a3; ++i )\n{\nif ( i == a2 )\n{\nv6[i] = 0;\n}\nelse if ( i == a3 )\n{\nv6[i] = *a5;\n}\nelse\n{\nv6[i] = j;\nj += a5[j];\n}\n}\nfor ( j = 0; ; ++j )\n{\nresult = (unsigned int)j;\nif ( j >= i )\nbreak;\n*(_DWORD *)(a4 + 4LL * (i - j) - 4) = v6[j];\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v6,sub_4040E6,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'ord2', 'a4': 'order', 'a1': 'num', 'a2': 'ord', 'a5': 'norm', 'v6': 'tmp', 'sub_4040E6': 'calc_order_pawn'}"}
get_rtnl_link_stats_rta
bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb
multipath-tcp
iproute-mptcp
NA
int get_rtnl_link_stats_rta(struct rtnl_link_stats64 *stats64, struct rtattr *tb[]) { struct rtnl_link_stats stats; void *s; struct rtattr *rta; int size, len; if (tb[IFLA_STATS64]) { rta = tb[IFLA_STATS64]; size = sizeof(struct rtnl_link_stats64); s = stats64; } else if (tb[IFLA_STATS]) { rta = tb[IFLA_STATS]; size = sizeof(struct rtnl_link_stats); s = &stats; } else if (tb[IFLA_PROTINFO]) { struct rtattr *ptb[IPSTATS_MIB_MAX_LEN + 1]; parse_rtattr_nested(ptb, IPSTATS_MIB_MAX_LEN, tb[IFLA_PROTINFO]); if (ptb[IFLA_INET6_STATS]) get_snmp_counters(stats64, ptb[IFLA_INET6_STATS]); return sizeof(*stats64); } else { return -1; } len = RTA_PAYLOAD(rta); if (len < size) memset(s + len, 0, size - len); else len = size; memcpy(s, RTA_DATA(rta), len); if (s != stats64) copy_rtnl_link_stats64(stats64, s); return size; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "get_rtnl_link_stats_rta", "function_addr": 4676645, "binary_name": "bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 9E0h"], [3, "mov [rbp+var_9D8], rdi"], [4, "mov [rbp+var_9E0], rsi"], [5, "mov rax, [rbp+var_9E0]"], [6, "add rax, 0B8h"], [7, "mov rax, [rax]"], [8, "test rax, rax"], [9, "jz short loc_475C7C"], [10, "mov rax, [rbp+var_9E0]"], [11, "mov rax, [rax+0B8h]"], [12, "mov [rbp+var_10], rax"], [13, "mov [rbp+var_14], 0C0h"], [14, "mov rax, [rbp+var_9D8]"], [15, "mov [rbp+dest], rax"], [16, "jmp loc_475D43"], [17, "mov rax, [rbp+var_9E0]"], [18, "add rax, 38h "], [19, "mov rax, [rax]"], [20, "test rax, rax"], [21, "jz short loc_475CB2"], [22, "mov rax, [rbp+var_9E0]"], [23, "mov rax, [rax+38h]"], [24, "mov [rbp+var_10], rax"], [25, "mov [rbp+var_14], 60h "], [26, "lea rax, [rbp+var_80]"], [27, "mov [rbp+dest], rax"], [28, "jmp loc_475D43"], [29, "mov rax, [rbp+var_9E0]"], [30, "add rax, 60h "], [31, "mov rax, [rax]"], [32, "test rax, rax"], [33, "jz short loc_475D39"], [34, "mov rax, [rbp+var_9E0]"], [35, "add rax, 60h "], [36, "mov rax, [rax]"], [37, "movzx eax, word ptr [rax]"], [38, "movzx eax, ax"], [39, "sub eax, 4"], [40, "mov ecx, eax"], [41, "mov rax, [rbp+var_9E0]"], [42, "add rax, 60h "], [43, "mov rax, [rax]"], [44, "lea rdx, [rax+4]"], [45, "lea rax, [rbp+var_9D0]"], [46, "mov r8d, 8000h"], [47, "mov esi, 128h"], [48, "mov rdi, rax"], [49, "call parse_rtattr_flags"], [50, "mov rax, [rbp+var_9B8]"], [51, "test rax, rax"], [52, "jz short loc_475D2F"], [53, "mov rdx, [rbp+var_9B8]"], [54, "mov rax, [rbp+var_9D8]"], [55, "mov rsi, rdx"], [56, "mov rdi, rax"], [57, "call sub_475B6B"], [58, "mov eax, 0C0h"], [59, "jmp locret_475DCB"], [60, "mov eax, 0FFFFFFFFh"], [61, "jmp locret_475DCB"], [62, "mov rax, [rbp+var_10]"], [63, "movzx eax, word ptr [rax]"], [64, "movzx eax, ax"], [65, "sub eax, 4"], [66, "mov [rbp+var_18], eax"], [67, "mov eax, [rbp+var_18]"], [68, "cmp eax, [rbp+var_14]"], [69, "jge short loc_475D82"], [70, "mov eax, [rbp+var_14]"], [71, "sub eax, [rbp+var_18]"], [72, "cdqe"], [73, "mov edx, [rbp+var_18]"], [74, "movsxd rcx, edx"], [75, "mov rdx, [rbp+dest]"], [76, "add rcx, rdx"], [77, "mov rdx, rax"], [78, "mov esi, 0"], [79, "mov rdi, rcx"], [80, "call _memset"], [81, "jmp short loc_475D88"], [82, "mov eax, [rbp+var_14]"], [83, "mov [rbp+var_18], eax"], [84, "mov eax, [rbp+var_18]"], [85, "movsxd rdx, eax"], [86, "mov rax, [rbp+var_10]"], [87, "lea rcx, [rax+4]"], [88, "mov rax, [rbp+dest]"], [89, "mov rsi, rcx"], [90, "mov rdi, rax"], [91, "call _memcpy"], [92, "mov rax, [rbp+dest]"], [93, "cmp rax, [rbp+var_9D8]"], [94, "jz short loc_475DC8"], [95, "mov rdx, [rbp+dest]"], [96, "mov rax, [rbp+var_9D8]"], [97, "mov rsi, rdx"], [98, "mov rdi, rax"], [99, "call sub_475B14"], [100, "mov eax, [rbp+var_14]"], [101, "leave"], [102, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 4], [11, 10], [12, 11], [14, 3], [15, 14], [17, 4], [18, 17], [19, 18], [20, 19], [21, 20], [22, 4], [23, 22], [24, 23], [26, 23], [27, 26], [29, 4], [30, 29], [31, 30], [32, 31], [33, 32], [34, 4], [35, 34], [36, 35], [37, 36], [38, 37], [39, 38], [40, 39], [41, 4], [42, 41], [43, 42], [44, 43], [45, 43], [48, 45], [51, 50], [52, 51], [54, 3], [55, 53], [56, 54], [62, 12], [62, 24], [63, 62], [64, 63], [65, 64], [66, 65], [67, 66], [68, 13], [68, 67], [68, 25], [69, 68], [70, 13], [70, 25], [71, 66], [71, 70], [73, 66], [74, 73], [75, 27], [75, 15], [76, 74], [76, 75], [77, 71], [79, 76], [82, 25], [82, 13], [83, 82], [84, 83], [84, 66], [85, 84], [86, 24], [86, 12], [87, 86], [87, 76], [88, 15], [88, 27], [89, 87], [90, 88], [92, 15], [92, 27], [93, 3], [93, 92], [94, 93], [95, 15], [95, 27], [96, 3], [97, 95], [98, 96], [100, 25], [100, 13], [102, 100], [102, 58], [102, 60]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb_bfd96a4a0bcbadab66a8166e80e069a5d2f416841ca5e57d273a4e4baea323cb.jsonl.gz", "strip_func_name": "get_rtnl_link_stats_rta", "query": "\n\n\n__int64 __fastcall get_rtnl_link_stats_rta(_QWORD *a1, _QWORD *a2)\n{\nchar v3[24]; // [rsp+10h] [rbp-9D0h] BYREF\n__int64 v4; // [rsp+28h] [rbp-9B8h]\nchar v5; // [rsp+960h] [rbp-80h] BYREF\nint v6; // [rsp+9C8h] [rbp-18h]\nunsigned int v7; // [rsp+9CCh] [rbp-14h]\nunsigned __int16 *v8; // [rsp+9D0h] [rbp-10h]\nvoid *dest; // [rsp+9D8h] [rbp-8h]\n\nif ( a2[23] )\n{\nv8 = (unsigned __int16 *)a2[23];\nv7 = 192;\ndest = a1;\nLABEL_10:\nv6 = *v8 - 4;\nif ( v6 >= (int)v7 )\nv6 = v7;\nelse\nmemset((char *)dest + v6, 0, (int)(v7 - v6));\nmemcpy(dest, v8 + 2, v6);\nif ( dest != a1 )\nsub_475B14(a1, (unsigned __int64)dest);\nreturn v7;\n}\nif ( a2[7] )\n{\nv8 = (unsigned __int16 *)a2[7];\nv7 = 96;\ndest = &v5;\ngoto LABEL_10;\n}\nif ( !a2[12] )\nreturn 0xFFFFFFFFLL;\nparse_rtattr_flags(v3, 296LL, a2[12] + 4LL, (unsigned int)*(unsigned __int16 *)a2[12] - 4, 0x8000LL);\nif ( v4 )\nsub_475B6B(a1, v4);\nreturn 192LL;\n}\n\n\n\nQ:[a1,a2,v3,v5,v6,v7,v8,dest,sub_475B14,sub_475B6B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'stats64', 'a2': 'tb', 'v3': 'ptb', 'v5': 'stats', 'v6': 'len', 'v7': 'size', 'v8': 'rta', 'dest': 's', 'sub_475B14': 'copy_rtnl_link_stats64', 'sub_475B6B': 'get_snmp_counters'}"}
aes_ctr_encrypt
20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640
sonic-net
sonic-buildimage
NA
int aes_ctr_encrypt(const u8 *key, size_t key_len, const u8 *nonce, u8 *data, size_t data_len) { void *ctx; size_t j, len, left = data_len; int i; u8 *pos = data; u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE]; ctx = aes_encrypt_init(key, key_len); if (ctx == NULL) return -1; os_memcpy(counter, nonce, AES_BLOCK_SIZE); while (left > 0) { aes_encrypt(ctx, counter, buf); len = (left < AES_BLOCK_SIZE) ? left : AES_BLOCK_SIZE; for (j = 0; j < len; j++) pos[j] ^= buf[j]; pos += len; left -= len; for (i = AES_BLOCK_SIZE - 1; i >= 0; i--) { counter[i]++; if (counter[i]) break; } } aes_encrypt_deinit(ctx); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_48613A", "function_addr": 4743482, "binary_name": "20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "add rsp, 0FFFFFFFFFFFFFF80h"], [3, "mov [rbp+var_58], rdi"], [4, "mov [rbp+var_60], rsi"], [5, "mov [rbp+var_68], rdx"], [6, "mov [rbp+var_70], rcx"], [7, "mov [rbp+var_78], r8"], [8, "mov rax, [rbp+var_78]"], [9, "mov [rbp+var_10], rax"], [10, "mov rax, [rbp+var_70]"], [11, "mov [rbp+var_20], rax"], [12, "mov rdx, [rbp+var_60]"], [13, "mov rax, [rbp+var_58]"], [14, "mov rsi, rdx"], [15, "mov rdi, rax"], [16, "call sub_486B11"], [17, "mov [rbp+var_28], rax"], [18, "cmp [rbp+var_28], 0"], [19, "jnz short loc_48618E"], [20, "mov eax, 0FFFFFFFFh"], [21, "jmp locret_486279"], [22, "mov rax, [rbp+var_68]"], [23, "mov rdx, [rax+8]"], [24, "mov rax, [rax]"], [25, "mov [rbp+var_40], rax"], [26, "mov [rbp+var_38], rdx"], [27, "jmp loc_48625D"], [28, "lea rdx, [rbp+var_50]"], [29, "lea rcx, [rbp+var_40]"], [30, "mov rax, [rbp+var_28]"], [31, "mov rsi, rcx"], [32, "mov rdi, rax"], [33, "call sub_486B8B"], [34, "mov eax, 10h"], [35, "cmp [rbp+var_10], 10h"], [36, "cmovbe rax, [rbp+var_10]"], [37, "mov [rbp+var_30], rax"], [38, "mov [rbp+var_8], 0"], [39, "jmp short loc_48620A"], [40, "mov rdx, [rbp+var_20]"], [41, "mov rax, [rbp+var_8]"], [42, "add rax, rdx"], [43, "movzx ecx, byte ptr [rax]"], [44, "lea rdx, [rbp+var_50]"], [45, "mov rax, [rbp+var_8]"], [46, "add rax, rdx"], [47, "movzx edx, byte ptr [rax]"], [48, "mov rsi, [rbp+var_20]"], [49, "mov rax, [rbp+var_8]"], [50, "add rax, rsi"], [51, "xor edx, ecx"], [52, "mov [rax], dl"], [53, "add [rbp+var_8], 1"], [54, "mov rax, [rbp+var_8]"], [55, "cmp rax, [rbp+var_30]"], [56, "jb short loc_4861DA"], [57, "mov rax, [rbp+var_30]"], [58, "add [rbp+var_20], rax"], [59, "mov rax, [rbp+var_30]"], [60, "sub [rbp+var_10], rax"], [61, "mov [rbp+var_14], 0Fh"], [62, "jmp short loc_486257"], [63, "mov eax, [rbp+var_14]"], [64, "cdqe"], [65, "movzx eax, byte ptr [rbp+rax+var_40]"], [66, "lea edx, [rax+1]"], [67, "mov eax, [rbp+var_14]"], [68, "cdqe"], [69, "mov byte ptr [rbp+rax+var_40], dl"], [70, "mov eax, [rbp+var_14]"], [71, "cdqe"], [72, "movzx eax, byte ptr [rbp+rax+var_40]"], [73, "test al, al"], [74, "jz short loc_486253"], [75, "jmp short loc_48625D"], [76, "sub [rbp+var_14], 1"], [77, "cmp [rbp+var_14], 0"], [78, "jns short loc_48622D"], [79, "cmp [rbp+var_10], 0"], [80, "jnz loc_4861A6"], [81, "mov rax, [rbp+var_28]"], [82, "mov rdi, rax"], [83, "call sub_486BD0"], [84, "mov eax, 0"], [85, "leave"], [86, "retn"]], "data_dep": [[8, 7], [9, 8], [10, 6], [11, 10], [12, 4], [13, 3], [14, 12], [15, 13], [17, 16], [18, 17], [19, 18], [22, 5], [23, 22], [24, 22], [25, 24], [26, 23], [28, 51], [28, 23], [28, 66], [28, 28], [29, 43], [29, 29], [29, 25], [30, 17], [31, 29], [32, 30], [35, 60], [35, 9], [36, 9], [36, 35], [36, 60], [37, 36], [40, 58], [40, 11], [41, 53], [41, 38], [42, 41], [42, 40], [43, 52], [43, 42], [44, 40], [45, 53], [45, 38], [46, 45], [46, 44], [47, 52], [47, 46], [48, 58], [48, 11], [49, 53], [49, 38], [50, 49], [50, 48], [51, 43], [51, 47], [52, 51], [52, 50], [53, 38], [53, 53], [54, 53], [54, 38], [55, 54], [55, 37], [56, 55], [57, 37], [58, 58], [58, 57], [58, 11], [59, 37], [60, 9], [60, 59], [60, 60], [63, 61], [63, 76], [65, 63], [65, 69], [66, 66], [66, 52], [66, 51], [66, 65], [66, 28], [67, 61], [67, 76], [69, 67], [69, 66], [70, 61], [70, 76], [72, 70], [72, 69], [73, 72], [74, 73], [76, 61], [76, 76], [77, 76], [77, 61], [78, 77], [79, 60], [79, 9], [80, 79], [81, 17], [82, 81], [86, 20], [86, 84]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640_20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640.jsonl.gz", "strip_func_name": "sub_48613A", "query": "\n\n\n__int64 __fastcall sub_48613A(__int64 a1, __int64 a2, __int64 *a3, __int64 a4, unsigned __int64 a5)\n{\n__int64 v6; // rdx\nunsigned __int64 v7; // rax\nchar v9[16]; // [rsp+30h] [rbp-50h] BYREF\n__int64 v10[2]; // [rsp+40h] [rbp-40h] BYREF\nunsigned __int64 v11; // [rsp+50h] [rbp-30h]\n__int64 v12; // [rsp+58h] [rbp-28h]\n__int64 v13; // [rsp+60h] [rbp-20h]\nint j; // [rsp+6Ch] [rbp-14h]\nunsigned __int64 v15; // [rsp+70h] [rbp-10h]\nunsigned __int64 i; // [rsp+78h] [rbp-8h]\n\nv15 = a5;\nv13 = a4;\nv12 = sub_486B11(a1, a2);\nif ( !v12 )\nreturn 0xFFFFFFFFLL;\nv6 = a3[1];\nv10[0] = *a3;\nv10[1] = v6;\nwhile ( v15 )\n{\nsub_486B8B(v12, v10, v9);\nv7 = 16LL;\nif ( v15 <= 0x10 )\nv7 = v15;\nv11 = v7;\nfor ( i = 0LL; i < v11; ++i )\n*(_BYTE *)(v13 + i) ^= v9[i];\nv13 += v11;\nv15 -= v11;\nfor ( j = 15; j >= 0; --j )\n{\nif ( ++*((_BYTE *)v10 + j) )\nbreak;\n}\n}\nsub_486BD0(v12);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v9,v10,v11,v12,v13,v15,sub_48613A,sub_486B11,sub_486B8B,sub_486BD0,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'nonce', 'a4': 'data', 'a1': 'key', 'a2': 'key_len', 'a5': 'data_len', 'v9': 'buf', 'v10': 'counter', 'v11': 'len', 'v12': 'ctx', 'v13': 'pos', 'v15': 'left', 'sub_48613A': 'aes_ctr_encrypt', 'sub_486B11': 'aes_encrypt_init', 'sub_486B8B': 'aes_encrypt', 'sub_486BD0': 'aes_encrypt_deinit'}"}
cannotBeFunction
8efe7c3c3820e4b225da8754cc0c08714f5d3c9833a642e99478b7133b71820a
diegomacario
Poor-Fox
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8efe7c3c3820e4b225da8754cc0c08714f5d3c9833a642e99478b7133b71820a_8efe7c3c3820e4b225da8754cc0c08714f5d3c9833a642e99478b7133b71820a.jsonl.gz", "strip_func_name": "sub_479360", "query": "\n\n\n__int64 __fastcall sub_479360(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nif ( (*(_BYTE *)(a2 + 61) & 4) == 0 )\nreturn 0LL;\nsub_40B0B6(a1, \"'%s' is not a function\", *(_QWORD *)(a2 + 16), a4, a5, a6);\nreturn 1LL;\n}\n\n\n\nQ:[a1,a2,sub_479360,sub_40B0B6,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pParse', 'a2': 'pFrom', 'sub_479360': 'cannotBeFunction', 'sub_40B0B6': 'sqlite3ErrorMsg'}"}
show_runlimit
f403d1d8b77541da522a0d0c3deff2e4197be390cb78692e79a5ebc1ff898374
open-simh
simh
NA
t_stat show_runlimit (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) { if (sim_runlimit_enabled) { if (sim_runlimit_switches & SWMASK ('T')) { if (sim_runlimit_d_initial != sim_runlimit_d) { fprintf (st, "%s initially, ", sim_fmt_secs (sim_runlimit_d_initial / 1000000.0)); if (sim_is_active (&sim_runlimit_unit)) fprintf (st, "and %s remaining\n", sim_fmt_secs (sim_runlimit_d / 1000000.0)); else fprintf (st, "expired now\n"); } else fprintf (st, "%s\n", sim_fmt_secs (sim_runlimit_d_initial / 1000000.0)); } else { if (sim_runlimit_initial != sim_runlimit) { fprintf (st, "%d %s initially, ", sim_runlimit_initial, sim_vm_interval_units); if (sim_is_active (&sim_runlimit_unit)) fprintf (st, "and %d %s remaining\n", sim_activate_time (&sim_runlimit_unit), sim_vm_interval_units); else fprintf (st, "expired now\n"); } else fprintf (st, "%d %s\n", sim_runlimit_initial, sim_vm_interval_units); } } else fprintf (st, "Run Limit Disabled\n"); return SCPE_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4517A3", "function_addr": 4528035, "binary_name": "f403d1d8b77541da522a0d0c3deff2e4197be390cb78692e79a5ebc1ff898374.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 38h"], [4, "mov [rbp+var_18], rdi"], [5, "mov [rbp+var_20], rsi"], [6, "mov [rbp+var_28], rdx"], [7, "mov [rbp+var_2C], ecx"], [8, "mov [rbp+var_38], r8"], [9, "mov eax, cs:dword_55C65C"], [10, "test eax, eax"], [11, "jz loc_451993"], [12, "mov eax, cs:dword_55C658"], [13, "and eax, 80000h"], [14, "test eax, eax"], [15, "jz loc_4518E7"], [16, "movsd xmm0, cs:qword_55C650"], [17, "movsd xmm1, cs:qword_55C648"], [18, "ucomisd xmm0, xmm1"], [19, "jp short loc_451800"], [20, "comisd xmm0, xmm1"], [21, "jz loc_4518A6"], [22, "movsd xmm0, cs:qword_55C650"], [23, "movsd xmm1, cs:qword_4E9970"], [24, "divsd xmm0, xmm1"], [25, "movq rax, xmm0"], [26, "movq xmm0, rax"], [27, "call sub_45C4A9"], [28, "mov rdx, rax"], [29, "mov rax, [rbp+var_18]"], [30, "mov esi, offset aSInitially"], [31, "mov rdi, rax"], [32, "mov eax, 0"], [33, "call sub_465054"], [34, "mov edi, offset unk_528700"], [35, "call sub_45DB3D"], [36, "test eax, eax"], [37, "jz short loc_45188B"], [38, "movsd xmm0, cs:qword_55C648"], [39, "movsd xmm1, cs:qword_4E9970"], [40, "divsd xmm0, xmm1"], [41, "movq rax, xmm0"], [42, "movq xmm0, rax"], [43, "call sub_45C4A9"], [44, "mov rdx, rax"], [45, "mov rax, [rbp+var_18]"], [46, "mov esi, offset aAndSRemaining"], [47, "mov rdi, rax"], [48, "mov eax, 0"], [49, "call sub_465054"], [50, "jmp loc_4519A9"], [51, "mov rax, [rbp+var_18]"], [52, "mov esi, offset aExpiredNow"], [53, "mov rdi, rax"], [54, "mov eax, 0"], [55, "call sub_465054"], [56, "jmp loc_4519A9"], [57, "movsd xmm0, cs:qword_55C650"], [58, "movsd xmm1, cs:qword_4E9970"], [59, "divsd xmm0, xmm1"], [60, "movq rax, xmm0"], [61, "movq xmm0, rax"], [62, "call sub_45C4A9"], [63, "mov rdx, rax"], [64, "mov rax, [rbp+var_18]"], [65, "mov esi, offset aS_11"], [66, "mov rdi, rax"], [67, "mov eax, 0"], [68, "call sub_465054"], [69, "jmp loc_4519A9"], [70, "mov edx, cs:dword_55C640"], [71, "mov eax, cs:dword_55C63C"], [72, "cmp edx, eax"], [73, "jz short loc_45196E"], [74, "mov rcx, cs:off_5284F8"], [75, "mov edx, cs:dword_55C640"], [76, "mov rax, [rbp+var_18]"], [77, "mov esi, offset aDSInitially"], [78, "mov rdi, rax"], [79, "mov eax, 0"], [80, "call sub_465054"], [81, "mov edi, offset unk_528700"], [82, "call sub_45DB3D"], [83, "test eax, eax"], [84, "jz short loc_451956"], [85, "mov rbx, cs:off_5284F8"], [86, "mov edi, offset unk_528700"], [87, "call sub_45DCDA"], [88, "mov edx, eax"], [89, "mov rax, [rbp+var_18]"], [90, "mov rcx, rbx"], [91, "mov esi, offset aAndDSRemaining"], [92, "mov rdi, rax"], [93, "mov eax, 0"], [94, "call sub_465054"], [95, "jmp short loc_4519A9"], [96, "mov rax, [rbp+var_18]"], [97, "mov esi, offset aExpiredNow"], [98, "mov rdi, rax"], [99, "mov eax, 0"], [100, "call sub_465054"], [101, "jmp short loc_4519A9"], [102, "mov rcx, cs:off_5284F8"], [103, "mov edx, cs:dword_55C640"], [104, "mov rax, [rbp+var_18]"], [105, "mov esi, offset aDS"], [106, "mov rdi, rax"], [107, "mov eax, 0"], [108, "call sub_465054"], [109, "jmp short loc_4519A9"], [110, "mov rax, [rbp+var_18]"], [111, "mov esi, offset aRunLimitDisabl"], [112, "mov rdi, rax"], [113, "mov eax, 0"], [114, "call sub_465054"], [115, "mov eax, 0"], [116, "mov rbx, [rbp+var_8]"], [117, "leave"], [118, "retn"]], "data_dep": [[10, 9], [11, 10], [13, 12], [14, 13], [15, 14], [18, 17], [18, 16], [19, 14], [20, 17], [20, 18], [21, 14], [24, 23], [24, 22], [25, 24], [26, 25], [28, 27], [29, 4], [31, 29], [36, 35], [37, 36], [40, 38], [40, 39], [41, 40], [42, 41], [44, 43], [45, 4], [47, 45], [51, 4], [53, 51], [59, 58], [59, 57], [60, 59], [61, 60], [63, 62], [64, 4], [66, 64], [72, 71], [72, 70], [73, 72], [76, 4], [78, 76], [83, 82], [84, 83], [88, 87], [89, 4], [90, 85], [92, 89], [96, 4], [98, 96], [104, 4], [106, 104], [110, 4], [112, 110], [118, 115]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f403d1d8b77541da522a0d0c3deff2e4197be390cb78692e79a5ebc1ff898374_f403d1d8b77541da522a0d0c3deff2e4197be390cb78692e79a5ebc1ff898374.jsonl.gz", "strip_func_name": "sub_4517A3", "query": "\n\n\n__int64 __fastcall sub_4517A3(int a1, __int64 a2, int a3, int a4, int a5, int a6)\n{\nint v6; // eax\nint v7; // ecx\nint v8; // er8\nint v9; // er9\nint v10; // edx\nint v11; // ecx\nint v12; // er8\nint v13; // er9\nint v14; // eax\nint v15; // ecx\nint v16; // er8\nint v17; // er9\nint v18; // eax\nint v19; // ecx\nint v20; // er8\nint v21; // er9\nint v22; // ebx\nint v23; // eax\nint v24; // er8\nint v25; // er9\n\nif ( !dword_55C65C )\n{\nsub_465054(a1, (unsigned int)\"Run Limit Disabled\\n\", a3, a4, a5, a6);\nreturn 0LL;\n}\nif ( (dword_55C658 & 0x80000) == 0 )\n{\nif ( dword_55C640 == dword_55C63C )\n{\nsub_465054(a1, (unsigned int)\"%d %s\\n\", dword_55C640, (_DWORD)off_5284F8, a5, a6);\nreturn 0LL;\n}\nsub_465054(a1, (unsigned int)\"%d %s initially, \", dword_55C640, (_DWORD)off_5284F8, a5, a6);\nif ( (unsigned int)sub_45DB3D(&unk_528700) )\n{\nv22 = (int)off_5284F8;\nv23 = sub_45DCDA(&unk_528700);\nsub_465054(a1, (unsigned int)\"and %d %s remaining\\n\", v23, v22, v24, v25);\nreturn 0LL;\n}\nLABEL_6:\nsub_465054(a1, (unsigned int)\"expired now\\n\", v10, v11, v12, v13);\nreturn 0LL;\n}\nif ( *(double *)&qword_55C650 == *(double *)&qword_55C648 )\n{\nv18 = sub_45C4A9(*(double *)&qword_55C650 / 1000000.0);\nsub_465054(a1, (unsigned int)\"%s\\n\", v18, v19, v20, v21);\nreturn 0LL;\n}\nv6 = sub_45C4A9(*(double *)&qword_55C650 / 1000000.0);\nsub_465054(a1, (unsigned int)\"%s initially, \", v6, v7, v8, v9);\nif ( !(unsigned int)sub_45DB3D(&unk_528700) )\ngoto LABEL_6;\nv14 = sub_45C4A9(*(double *)&qword_55C648 / 1000000.0);\nsub_465054(a1, (unsigned int)\"and %s remaining\\n\", v14, v15, v16, v17);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a1,a5,a2,v19,v20,v10,sub_4517A3,sub_465054,sub_45DB3D,sub_45DCDA,sub_45C4A9,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'uptr', 'a4': 'flag', 'a1': 'st', 'a5': 'cptr', 'a2': 'dptr', 'v19': 'flag', 'v20': 'cptr', 'v10': 'uptr', 'sub_4517A3': 'show_runlimit', 'sub_465054': 'Fprintf', 'sub_45DB3D': 'sim_is_active', 'sub_45DCDA': 'sim_activate_time', 'sub_45C4A9': 'sim_fmt_secs'}"}
native_aiot_onConnect
8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2
aliyun
haas-mini-program
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2_8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2.jsonl.gz", "strip_func_name": "sub_451E91", "query": "\n\n\n__int64 __fastcall sub_451E91(__int64 a1)\n{\nint v1; // er9\n__int64 v2; // rdx\n__int64 v3; // rcx\n__int64 v4; // r8\n__int64 v5; // r9\nint v7; // [rsp+18h] [rbp-8h]\n\nif ( sub_411D74(a1, 0) && (unsigned int)sub_412055(a1, 1) )\n{\nv7 = sub_40EAAA(a1, 0);\nif ( v7 >= 0 )\n{\nsub_40DD6B(a1, 1u, v2, v3, v4, v5);\ndword_50FDD4 = sub_44CD52(a1);\nsub_46CE8C(sub_451DCF);\n}\nelse\n{\nsub_46398E(\n4,\n(unsigned int)\"AIOT\",\n(unsigned int)\"addons/network/iot/module_iot.c\",\n695,\n(unsigned int)\"dev_id [%d] is invalid\",\nv7);\n}\n}\nelse\n{\nsub_46398E(\n4,\n(unsigned int)\"AIOT\",\n(unsigned int)\"addons/network/iot/module_iot.c\",\n689,\n(unsigned int)\"parameter must be (number, function)\",\nv1);\n}\nsub_412646(a1, -1);\nreturn 1LL;\n}\n\n\n\nQ:[a1,v7,sub_451E91,sub_411D74,sub_412055,sub_40EAAA,sub_40DD6B,sub_44CD52,sub_46CE8C,sub_46398E,sub_412646,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ctx', 'v7': 'dev_id', 'sub_451E91': 'native_aiot_onConnect', 'sub_411D74': 'duk_is_number', 'sub_412055': 'duk_is_function', 'sub_40EAAA': 'duk_get_int', 'sub_40DD6B': 'duk_dup', 'sub_44CD52': 'be_ref', 'sub_46CE8C': 'iotx_register_for_ITE_CONNECT_SUCC', 'sub_46398E': 'ulog', 'sub_412646': 'duk_push_int'}"}
psmc_delete_par
d8892ae8dea98a70ffb6f2933725053f9bdabe4e3ec667950c8a18330c81b823
lh3
psmc
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d8892ae8dea98a70ffb6f2933725053f9bdabe4e3ec667950c8a18330c81b823_d8892ae8dea98a70ffb6f2933725053f9bdabe4e3ec667950c8a18330c81b823.jsonl.gz", "strip_func_name": "sub_405362", "query": "\n\n\nvoid __fastcall sub_405362(__int64 a1)\n{\nint i; // [rsp+1Ch] [rbp-4h]\n\nif ( a1 )\n{\nfree(*(void **)(a1 + 8));\nfree(*(void **)(a1 + 64));\nfree(*(void **)(a1 + 88));\nfree(*(void **)(a1 + 96));\nfclose(*(FILE **)(a1 + 48));\nfor ( i = 0; i != *(_DWORD *)(a1 + 16); ++i )\n{\nfree(*(void **)(*(_QWORD *)(a1 + 24) + 32LL * i + 24));\nfree(*(void **)(*(_QWORD *)(a1 + 24) + 32LL * i + 16));\n}\nif ( *(_QWORD *)(a1 + 56) )\nfclose(*(FILE **)(a1 + 56));\nfree(*(void **)(a1 + 24));\nfree((void *)a1);\n}\n}\n\n\n\nQ:[a1,sub_405362,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'par', 'sub_405362': 'psmc_delete_par'}"}
null_op
a919fc39a5af9b1355a81d3146876c0fc5147fd6c16c81f57145538a5f7e2e46
asterisk
pjproject-archive
NA
static pj_status_t null_op(void *arg) { PJ_UNUSED_ARG(arg); return PJ_SUCCESS; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_435FE2", "function_addr": 4415458, "binary_name": "a919fc39a5af9b1355a81d3146876c0fc5147fd6c16c81f57145538a5f7e2e46.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov eax, 0"], [4, "pop rbp"], [5, "retn"]], "data_dep": [[4, 0], [5, 3]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a919fc39a5af9b1355a81d3146876c0fc5147fd6c16c81f57145538a5f7e2e46_a919fc39a5af9b1355a81d3146876c0fc5147fd6c16c81f57145538a5f7e2e46.jsonl.gz", "strip_func_name": "sub_435FE2", "query": "\n\n\n__int64 sub_435FE2()\n{\nreturn 0LL;\n}\n\n\n\nQ:[sub_435FE2,]\nAssistant: ", "hints": "[]", "response": "{'sub_435FE2': 'null_op'}"}
fp_adddb
69689a38c3d9f46a978bf43a0e018a9c944cfc002873c546c0e597ff603f6bc0
pahihu
t4
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/69689a38c3d9f46a978bf43a0e018a9c944cfc002873c546c0e597ff603f6bc0_69689a38c3d9f46a978bf43a0e018a9c944cfc002873c546c0e597ff603f6bc0.jsonl.gz", "strip_func_name": "sub_406A27", "query": "\n\n\n__int64 __fastcall sub_406A27(unsigned __int64 a1, unsigned __int64 a2)\n{\nreturn sub_40590A(a1, a2, (__int64 (__fastcall *)(unsigned __int64, unsigned __int64))sub_405D77);\n}\n\n\n\nQ:[a1,a2,sub_406A27,sub_40590A,sub_405D77,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fb', 'a2': 'fa', 'sub_406A27': 'fp_adddb', 'sub_40590A': 'db_binary', 'sub_405D77': 'db_add'}"}
ReadFilePosition
13f2671241114a962235990a8a53447d965ef69e183b81e214ebbded998f318a
open-simh
simh
NA
static t_stat ReadFilePosition(FILE *File, void *buf, size_t bufsize, uint32 *bytesread, uint64 position) { uint32 err = sim_fseeko (File, (t_offset)position, SEEK_SET); size_t i; if (bytesread) *bytesread = 0; if (!err) { i = fread (buf, 1, bufsize, File); if (bytesread) *bytesread = (uint32)i; err = ferror (File); } return (err ? SCPE_IOERR : SCPE_OK); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_485071", "function_addr": 4739185, "binary_name": "13f2671241114a962235990a8a53447d965ef69e183b81e214ebbded998f318a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+stream], rdi"], [4, "mov [rbp+ptr], rsi"], [5, "mov [rbp+n], rdx"], [6, "mov [rbp+var_30], rcx"], [7, "mov [rbp+var_38], r8"], [8, "mov rcx, [rbp+var_38]"], [9, "mov rax, [rbp+stream]"], [10, "mov edx, 0"], [11, "mov rsi, rcx"], [12, "mov rdi, rax"], [13, "call sub_4468EF"], [14, "mov [rbp+var_4], eax"], [15, "cmp [rbp+var_30], 0"], [16, "jz short loc_4850B9"], [17, "mov rax, [rbp+var_30]"], [18, "mov dword ptr [rax], 0"], [19, "cmp [rbp+var_4], 0"], [20, "jnz short loc_4850FE"], [21, "mov rcx, [rbp+stream]"], [22, "mov rdx, [rbp+n]"], [23, "mov rax, [rbp+ptr]"], [24, "mov esi, 1"], [25, "mov rdi, rax"], [26, "call _fread"], [27, "mov [rbp+var_10], rax"], [28, "cmp [rbp+var_30], 0"], [29, "jz short loc_4850EF"], [30, "mov rax, [rbp+var_10]"], [31, "mov edx, eax"], [32, "mov rax, [rbp+var_30]"], [33, "mov [rax], edx"], [34, "mov rax, [rbp+stream]"], [35, "mov rdi, rax"], [36, "call _ferror"], [37, "mov [rbp+var_4], eax"], [38, "cmp [rbp+var_4], 0"], [39, "jz short loc_48510B"], [40, "mov eax, 42h "], [41, "jmp short locret_485110"], [42, "mov eax, 0"], [43, "leave"], [44, "retn"]], "data_dep": [[8, 7], [9, 3], [11, 8], [12, 9], [14, 13], [15, 6], [16, 15], [17, 6], [18, 17], [19, 14], [20, 19], [21, 3], [22, 5], [23, 4], [25, 23], [27, 26], [28, 6], [29, 28], [30, 27], [31, 30], [32, 6], [33, 32], [33, 31], [34, 3], [35, 34], [37, 36], [38, 37], [38, 14], [39, 38], [44, 42], [44, 40]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/13f2671241114a962235990a8a53447d965ef69e183b81e214ebbded998f318a_13f2671241114a962235990a8a53447d965ef69e183b81e214ebbded998f318a.jsonl.gz", "strip_func_name": "sub_485071", "query": "\n\n\n__int64 __fastcall sub_485071(FILE *a1, void *a2, size_t a3, _DWORD *a4, __off64_t a5)\n{\n__int64 result; // rax\nint v8; // [rsp+30h] [rbp-10h]\nint v9; // [rsp+3Ch] [rbp-4h]\n\nv9 = sub_4468EF(a1, a5, 0);\nif ( a4 )\n*a4 = 0;\nif ( !v9 )\n{\nv8 = fread(a2, 1uLL, a3, a1);\nif ( a4 )\n*a4 = v8;\nv9 = ferror(a1);\n}\nif ( v9 )\nresult = 66LL;\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v9,sub_485071,sub_4468EF,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'bufsize', 'a4': 'bytesread', 'a1': 'File', 'a2': 'buf', 'a5': 'position', 'v9': 'err', 'sub_485071': 'ReadFilePosition', 'sub_4468EF': 'sim_fseeko'}"}
validate_symbol
26ed2b34fb46086588f2bdc8c38fd25410f82edabc1bab24213dd4c0c0fc7725
XboxDev
xbox-linux
NA
static int validate_symbol(struct objtool_file *file, struct section *sec, struct symbol *sym, struct insn_state *state) { struct instruction *insn; int ret; if (!sym->len) { WARN("%s() is missing an ELF size annotation", sym->name); return 1; } if (sym->pfunc != sym || sym->alias != sym) return 0; insn = find_insn(file, sec, sym->offset); if (!insn || insn->ignore || insn->visited) return 0; state->uaccess = sym->uaccess_safe; ret = validate_branch(file, insn->func, insn, *state); if (ret && backtrace) BT_FUNC("<=== (sym)", insn); return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40BF2E", "function_addr": 4243246, "binary_name": "26ed2b34fb46086588f2bdc8c38fd25410f82edabc1bab24213dd4c0c0fc7725.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_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_40], rcx"], [7, "mov rax, [rbp+var_38]"], [8, "mov eax, [rax+80h]"], [9, "test eax, eax"], [10, "jnz short loc_40BF86"], [11, "mov rax, [rbp+var_38]"], [12, "mov rcx, [rax+68h]"], [13, "mov rdx, cs:file"], [14, "mov rax, cs:stderr"], [15, "mov esi, offset aSWarningObjtoo_71"], [16, "mov rdi, rax"], [17, "mov eax, 0"], [18, "call _fprintf"], [19, "mov eax, 1"], [20, "jmp locret_40C0C4"], [21, "mov rax, [rbp+var_38]"], [22, "mov rax, [rax+88h]"], [23, "cmp [rbp+var_38], rax"], [24, "jnz short loc_40BFA8"], [25, "mov rax, [rbp+var_38]"], [26, "mov rax, [rax+98h]"], [27, "cmp [rbp+var_38], rax"], [28, "jz short loc_40BFB2"], [29, "mov eax, 0"], [30, "jmp locret_40C0C4"], [31, "mov rax, [rbp+var_38]"], [32, "mov rdx, [rax+78h]"], [33, "mov rcx, [rbp+var_30]"], [34, "mov rax, [rbp+var_28]"], [35, "mov rsi, rcx"], [36, "mov rdi, rax"], [37, "call sub_405CBC"], [38, "mov [rbp+var_8], rax"], [39, "cmp [rbp+var_8], 0"], [40, "jz short loc_40BFF0"], [41, "mov rax, [rbp+var_8]"], [42, "movzx eax, byte ptr [rax+41h]"], [43, "test al, al"], [44, "jnz short loc_40BFF0"], [45, "mov rax, [rbp+var_8]"], [46, "movzx eax, byte ptr [rax+46h]"], [47, "test al, al"], [48, "jz short loc_40BFFA"], [49, "mov eax, 0"], [50, "jmp locret_40C0C4"], [51, "mov rax, [rbp+var_38]"], [52, "movzx edx, byte ptr [rax+0A0h]"], [53, "mov rax, [rbp+var_40]"], [54, "mov [rax+12Ch], dl"], [55, "mov rax, [rbp+var_8]"], [56, "mov r9, [rax+80h]"], [57, "mov r10, [rbp+var_8]"], [58, "mov r8, [rbp+var_28]"], [59, "mov rax, [rbp+var_40]"], [60, "sub rsp, 130h"], [61, "mov rdx, rsp"], [62, "mov rsi, rax"], [63, "mov eax, 26h "], [64, "mov rdi, rdx"], [65, "mov rcx, rax"], [66, "rep movsq"], [67, "mov rdx, r10"], [68, "mov rsi, r9"], [69, "mov rdi, r8"], [70, "call sub_40AF7F"], [71, "add rsp, 130h"], [72, "mov [rbp+var_C], eax"], [73, "cmp [rbp+var_C], 0"], [74, "jz short loc_40C0C1"], [75, "movzx eax, cs:byte_C29764"], [76, "test al, al"], [77, "jz short loc_40C0C1"], [78, "mov rax, [rbp+var_8]"], [79, "mov [rbp+var_18], rax"], [80, "mov rax, [rbp+var_18]"], [81, "mov rdx, [rax+28h]"], [82, "mov rax, [rbp+var_18]"], [83, "mov rax, [rax+20h]"], [84, "mov rsi, rdx"], [85, "mov rdi, rax"], [86, "call sub_405BEF"], [87, "mov [rbp+ptr], rax"], [88, "mov rdx, cs:file"], [89, "mov rax, cs:stderr"], [90, "mov rcx, [rbp+ptr]"], [91, "mov esi, offset aSWarningObjtoo_72"], [92, "mov rdi, rax"], [93, "mov eax, 0"], [94, "call _fprintf"], [95, "mov rax, [rbp+ptr]"], [96, "mov rdi, rax"], [97, "call _free"], [98, "mov eax, [rbp+var_C]"], [99, "leave"], [100, "retn"]], "data_dep": [[7, 5], [8, 7], [9, 8], [10, 9], [11, 5], [12, 11], [16, 14], [21, 5], [22, 21], [23, 22], [23, 5], [24, 23], [25, 5], [26, 25], [27, 26], [27, 5], [28, 27], [31, 5], [32, 31], [33, 4], [34, 3], [35, 33], [36, 34], [38, 37], [39, 38], [40, 39], [41, 38], [42, 41], [43, 42], [44, 43], [45, 38], [46, 45], [47, 46], [48, 47], [51, 5], [52, 51], [53, 6], [54, 53], [54, 52], [55, 38], [56, 55], [56, 54], [57, 38], [58, 3], [59, 6], [60, 2], [61, 60], [62, 59], [64, 61], [65, 63], [67, 57], [68, 56], [69, 58], [71, 60], [72, 70], [73, 72], [74, 73], [76, 75], [77, 76], [78, 38], [79, 78], [80, 79], [81, 80], [81, 54], [82, 79], [83, 82], [83, 54], [84, 81], [85, 83], [87, 86], [90, 87], [92, 89], [95, 87], [96, 95], [98, 72], [100, 19], [100, 98], [100, 29], [100, 49]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/26ed2b34fb46086588f2bdc8c38fd25410f82edabc1bab24213dd4c0c0fc7725_26ed2b34fb46086588f2bdc8c38fd25410f82edabc1bab24213dd4c0c0fc7725.jsonl.gz", "strip_func_name": "sub_40BF2E", "query": "\n\n\n__int64 __fastcall sub_40BF2E(__int64 a1, __int64 a2, __int64 a3, _BYTE *a4)\n{\n__int64 result; // rax\n__int64 v5; // r9\n__int64 v6[38]; // [rsp-130h] [rbp-170h] BYREF\n_BYTE *v7; // [rsp+0h] [rbp-40h]\n__int64 v8; // [rsp+8h] [rbp-38h]\n__int64 v9; // [rsp+10h] [rbp-30h]\n__int64 v10; // [rsp+18h] [rbp-28h]\nvoid *ptr; // [rsp+20h] [rbp-20h]\n__int64 *v12; // [rsp+28h] [rbp-18h]\nunsigned int v13; // [rsp+34h] [rbp-Ch]\n__int64 *v14; // [rsp+38h] [rbp-8h]\n\nv10 = a1;\nv9 = a2;\nv8 = a3;\nv7 = a4;\nif ( *(_DWORD *)(a3 + 128) )\n{\nif ( v8 == *(_QWORD *)(v8 + 136) && v8 == *(_QWORD *)(v8 + 152) )\n{\nv14 = sub_405CBC(v10, v9, *(_QWORD *)(v8 + 120));\nif ( !v14 || *((_BYTE *)v14 + 65) || *((_BYTE *)v14 + 70) )\n{\nresult = 0LL;\n}\nelse\n{\nv7[300] = *(_BYTE *)(v8 + 160);\nv5 = v14[16];\nqmemcpy(v6, v7, sizeof(v6));\nv13 = sub_40AF7F(\nv10,\nv5,\nv14,\n0LL,\nv10,\nv5,\nv6[0],\nv6[1],\nv6[2],\nv6[3],\nv6[4],\nv6[5],\nv6[6],\nv6[7],\nv6[8],\nv6[9],\nv6[10],\nv6[11],\nv6[12],\nv6[13],\nv6[14],\nv6[15],\nv6[16],\nv6[17],\nv6[18],\nv6[19],\nv6[20],\nv6[21],\nv6[22],\nv6[23],\nv6[24],\nv6[25],\nv6[26],\nv6[27],\nv6[28],\nv6[29],\nv6[30],\nv6[31],\nv6[32],\nv6[33],\nv6[34],\nv6[35],\nv6[36],\nv6[37]);\nif ( v13 )\n{\nif ( byte_C29764 )\n{\nv12 = v14;\nptr = sub_405BEF(v14[4], v14[5]);\nfprintf(stderr, \"%s: warning: objtool: %s: <=== (sym)\\n\", file, (const char *)ptr);\nfree(ptr);\n}\n}\nresult = v13;\n}\n}\nelse\n{\nresult = 0LL;\n}\n}\nelse\n{\nfprintf(stderr, \"%s: warning: objtool: %s() is missing an ELF size annotation\\n\", file, *(const char **)(v8 + 104));\nresult = 1LL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v7,v8,v9,v10,ptr,v12,v14,sub_40BF2E,sub_405CBC,sub_40AF7F,sub_405BEF,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'sym', 'a4': 'state', 'a1': 'file', 'a2': 'sec', 'v7': 'statea', 'v8': 'syma', 'v9': 'seca', 'v10': 'filea', 'ptr': '_str', 'v12': '_insn', 'v14': 'insn', 'sub_40BF2E': 'validate_symbol', 'sub_405CBC': 'find_insn', 'sub_40AF7F': 'validate_branch', 'sub_405BEF': 'offstr'}"}
LdNamespace1Begin
1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822
bitdefender
napoca
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822_1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822.jsonl.gz", "strip_func_name": "sub_428257", "query": "\n\n\n__int64 __fastcall sub_428257(__int64 a1, __int64 a2, __int64 a3)\n{\nint v3; // eax\nint v5; // eax\n__int64 v6; // rbx\nunsigned int v7; // ebx\nunsigned int v8; // ebx\nint v9; // eax\nconst char *v10; // rax\nunsigned int v11; // ebx\nconst char *v12; // rax\nunsigned int v13; // ebx\n__int64 v14; // rax\nunsigned int v15; // ebx\nunsigned int v16; // ebx\nunsigned int v17; // ebx\n__int64 v18; // [rsp+28h] [rbp-68h] BYREF\n__int64 v19; // [rsp+30h] [rbp-60h]\n__int64 v20; // [rsp+38h] [rbp-58h]\nchar *s; // [rsp+40h] [rbp-50h]\n__int64 v22; // [rsp+48h] [rbp-48h]\n__int64 v23; // [rsp+50h] [rbp-40h]\n__int64 v24; // [rsp+58h] [rbp-38h]\nchar v25; // [rsp+67h] [rbp-29h]\nunsigned int j; // [rsp+68h] [rbp-28h]\nint v27; // [rsp+6Ch] [rbp-24h]\nunsigned int v28; // [rsp+70h] [rbp-20h]\nunsigned int v29; // [rsp+74h] [rbp-1Ch]\n__int64 i; // [rsp+78h] [rbp-18h]\n\nv24 = a3;\nv27 = 0;\nv25 = 0;\nif ( (dword_51AEB4 & 0x100) != 0 && (dword_51AEB8 & 0x1000) != 0 )\nsub_489643(\n256,\n530,\n(unsigned int)\"LdNamespace1Begin\",\n(unsigned int)\"aslload\",\n4096,\n(unsigned int)\"Op %p [%s]\\n\",\na1,\na1 + 261);\nv3 = *(unsigned __int16 *)(a1 + 10);\nif ( v3 == 23431 )\nreturn (unsigned int)sub_427DF7(10, a1, v24);\nif ( *(unsigned __int16 *)(a1 + 10) > 0x5B87u )\ngoto LABEL_14;\nif ( v3 == 23430 )\nreturn (unsigned int)sub_427DF7(17, a1, v24);\nif ( v3 != 56 )\n{\nif ( v3 != 23425 )\ngoto LABEL_14;\nreturn (unsigned int)sub_427DF7(10, a1, v24);\n}\nif ( *(_WORD *)(*(_QWORD *)(a1 + 144) + 10LL) == 45 )\n{\nv23 = *(_QWORD *)(a1 + 144);\nv29 = sub_47638A(*(_QWORD *)(v24 + 1680), *(_QWORD *)(v23 + 184), 0, 3, 1, v24, (__int64)&v18);\n}\nLABEL_14:\nif ( *(_QWORD *)(a1 + 32) )\nreturn 0LL;\nif ( *(_WORD *)(a1 + 256) == 440 || *(_WORD *)(a1 + 256) == 441 || *(_WORD *)(a1 + 256) == 432 )\n{\nv20 = *(_QWORD *)a1;\nv19 = sub_481BA3(*(unsigned __int16 *)(v20 + 10));\nif ( *(_WORD *)(a1 + 256) != 432 && *(_BYTE *)(v19 + 19) == 3 )\nreturn 0LL;\nv29 = sub_47638A(*(_QWORD *)(v24 + 1680), *(_QWORD *)(a1 + 40), 0, 3, 3, v24, (__int64)&v18);\nif ( v29 != 5 )\nreturn v29;\nif ( *(_WORD *)(v20 + 256) != 469 && *(_WORD *)(v20 + 256) != 566 )\n*(_DWORD *)(a1 + 252) |= 0x200000u;\nreturn 0LL;\n}\nv22 = *(_QWORD *)(a1 + 192);\nif ( !v22 )\nreturn 0LL;\nv5 = *(unsigned __int16 *)(a1 + 256);\nif ( v5 == 519 )\n{\nv29 = sub_47638A(*(_QWORD *)(v24 + 1680), v22, 0, 3, 1, v24, (__int64)&v18);\nif ( v29 )\n{\nif ( v29 != 5 )\n{\nsub_42216D(a1, v29, \"Failure from namespace lookup\", 0);\nv8 = v29;\nsub_489B9F(765LL, \"LdNamespace1Begin\", \"aslload\", 4096LL, v29);\nreturn v8;\n}\nv29 = sub_47638A(*(_QWORD *)(v24 + 1680), v22, 27, 1, v27, v24, (__int64)&v18);\nif ( v29 )\n{\nv7 = v29;\nsub_489B9F(743LL, \"LdNamespace1Begin\", \"aslload\", 4096LL, v29);\nreturn v7;\n}\nif ( strlen(*(const char **)(a1 + 184)) == 4 )\nsub_4220CC(5u, 0x55u, a1, *(char **)(a1 + 184));\nelse\nsub_4220CC(5u, 0xA1u, a1, *(char **)(a1 + 184));\ngoto LABEL_106;\n}\nif ( (*(_WORD *)(v18 + 10) & 8) != 0 && *(_DWORD *)off_50F528 == *(_DWORD *)\"DSDT\" )\n{\nfor ( i = *(_QWORD *)a1; i && *(_WORD *)(i + 256) != 431; i = *(_QWORD *)i )\n;\nif ( !i )\nsub_4220CC(5u, 0x94u, a1, 0LL);\n}\nv9 = *(unsigned __int8 *)(v18 + 9);\nif ( v9 == 27 )\ngoto LABEL_76;\nif ( *(unsigned __int8 *)(v18 + 9) > 0x1Bu || *(unsigned __int8 *)(v18 + 9) > 0xDu )\ngoto LABEL_74;\nif ( *(unsigned __int8 *)(v18 + 9) < 0xBu )\n{\nif ( *(unsigned __int8 *)(v18 + 9) > 3u )\n{\nif ( v9 != 6 )\ngoto LABEL_74;\n}\nelse\n{\nif ( !*(_BYTE *)(v18 + 9) )\n{\nLABEL_74:\nv12 = (const char *)sub_489ED9(*(unsigned __int8 *)(v18 + 9));\nsprintf(::s, \"%s [%s]\", *(const char **)(a1 + 184), v12);\nsub_4220CC(5u, 0x75u, a1, ::s);\n*(_BYTE *)(v18 + 9) = 27;\nv29 = sub_460547(v18, 27LL, v24);\nif ( v29 )\n{\nv13 = v29;\nsub_489B9F(856LL, \"LdNamespace1Begin\", \"aslload\", 4096LL, v29);\nreturn v13;\n}\ngoto LABEL_76;\n}\nv10 = (const char *)sub_489ED9(*(unsigned __int8 *)(v18 + 9));\nsprintf(::s, \"%s [%s], changing type to [Scope]\", *(const char **)(a1 + 184), v10);\nsub_4220CC(1u, 0x75u, a1, ::s);\n*(_BYTE *)(v18 + 9) = 27;\nv29 = sub_460547(v18, 27LL, v24);\nif ( v29 )\n{\nv11 = v29;\nsub_489B9F(834LL, \"LdNamespace1Begin\", \"aslload\", 4096LL, v29);\nreturn v11;\n}\n}\n}\nLABEL_76:\nv29 = 0;\ngoto LABEL_106;\n}\nif ( *(unsigned __int16 *)(a1 + 256) > 0x207u )\ngoto LABEL_77;\nif ( v5 == 439 )\n{\nv23 = *(_QWORD *)(a1 + 144);\nv23 = *(_QWORD *)(v23 + 24);\nif ( (*(_DWORD *)(a1 + 252) & 8) != 0 )\nv25 = 1;\nv28 = 1;\nfor ( j = 1; j < *(_DWORD *)(v23 + 232); j *= 2 )\n++v28;\n}\nelse\n{\nif ( *(unsigned __int16 *)(a1 + 256) > 0x1B7u )\ngoto LABEL_77;\nif ( v5 == 328 )\n{\nif ( *(_DWORD *)(a1 + 252) == 8 )\n{\nv6 = (unsigned int)sub_428080((_QWORD *)a1, v24);\nsub_489B9F(717LL, \"LdNamespace1Begin\", \"aslload\", 4096LL, v6);\nreturn (unsigned int)v6;\n}\ngoto LABEL_77;\n}\nif ( v5 != 356 )\n{\nLABEL_77:\nv28 = sub_429CF0(*(unsigned __int16 *)(a1 + 10));\ngoto LABEL_78;\n}\nv28 = (unsigned __int8)*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 144) + 24LL) + 40LL);\nv27 |= 0x22u;\n}\nLABEL_78:\nif ( (dword_51AEB4 & 0x100) != 0 && (dword_51AEB8 & 0x1000) != 0 )\n{\nv14 = sub_489ED9(v28);\nsub_489643(\n256,\n870,\n(unsigned int)\"LdNamespace1Begin\",\n(unsigned int)\"aslload\",\n4096,\n(unsigned int)\"Loading name: %s, (%s)\\n\",\n*(_QWORD *)(a1 + 184),\nv14);\n}\nv27 |= 8u;\n*(_QWORD *)(v24 + 1640) = sub_481BA3(*(unsigned __int16 *)(a1 + 10));\nif ( ((*(_WORD *)(*(_QWORD *)(v24 + 1640) + 16LL) & 0x40) != 0 || (*(_WORD *)(*(_QWORD *)(v24 + 1640) + 16LL) & 8) != 0)\n&& *(_WORD *)(a1 + 10) != 21 )\n{\nv27 |= 0x200u;\n}\nv29 = sub_47638A(*(_QWORD *)(v24 + 1680), v22, v28, 1, v27, v24, (__int64)&v18);\nif ( !v29 )\ngoto LABEL_102;\nif ( v29 != 7 )\n{\nv18 = qword_54CF78;\nv29 = 0;\nLABEL_102:\nsub_42904D(v18, a1);\nif ( v25 )\n{\nv29 = sub_460547(v18, v28, v24);\nif ( v29 )\n{\nv16 = v29;\nsub_489B9F(988LL, \"LdNamespace1Begin\", \"aslload\", 4096LL, v29);\nreturn v16;\n}\n}\n*(_QWORD *)(v18 + 48) = a1;\ngoto LABEL_106;\n}\nif ( *(_BYTE *)(v18 + 9) == 27 )\n{\n*(_BYTE *)(v18 + 9) = v28;\nv29 = 0;\ngoto LABEL_102;\n}\nif ( (*(_WORD *)(v18 + 10) & 8) != 0 || *(_WORD *)(a1 + 256) == 356 )\n{\nv29 = sub_428DFB(v18, a1, v28, v24);\nif ( v29 )\n{\nif ( v29 == 1 )\nv29 = 0;\nv15 = v29;\nsub_489B9F(926LL, \"LdNamespace1Begin\", \"aslload\", 4096LL, v29);\nreturn v15;\n}\nif ( (*(_WORD *)(v18 + 10) & 8) != 0 || *(_WORD *)(a1 + 256) != 356 )\ngoto LABEL_102;\nLABEL_106:\n*(_QWORD *)(a1 + 32) = v18;\nif ( *(_WORD *)(a1 + 256) == 431 )\n{\n*(_DWORD *)(v18 + 72) = *(unsigned __int8 *)(a1 + 260);\n}\nelse if ( *(_WORD *)(a1 + 256) == 356 && *(_BYTE *)(v18 + 9) == 8 && (*(_WORD *)(v18 + 10) & 8) != 0 )\n{\n*(_DWORD *)(v18 + 72) = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 144) + 24LL) + 24LL) + 40LL);\n}\nv17 = v29;\nsub_489B9F(1018LL, \"LdNamespace1Begin\", \"aslload\", 4096LL, v29);\nreturn v17;\n}\ns = (char *)sub_478B11(v18, 1LL);\nsub_421FA3(5, 0x4Au, a1, s, 0x97u, *(_QWORD *)(v18 + 48), s);\nif ( s )\nsub_47BF0C(s);\nsub_489B9F(956LL, \"LdNamespace1Begin\", \"aslload\", 4096LL, 0LL);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v18,v19,v20,s,v22,v23,v24,v25,v27,v28,v29,i,sub_428257,sub_489643,sub_427DF7,sub_47638A,sub_481BA3,sub_42216D,sub_489B9F,sub_4220CC,sub_489ED9,sub_460547,sub_428080,sub_429CF0,sub_42904D,sub_428DFB,sub_478B11,sub_421FA3,sub_47BF0C,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'Context', 'a1': 'Op', 'a2': 'Level', 'v18': 'Node', 'v19': 'OpInfo', 'v20': 'ParentOp', 's': 'ExternalPath', 'v22': 'Path', 'v23': 'Arg', 'v24': 'WalkState', 'v25': 'ForceNewScope', 'v27': 'Flags', 'v28': 'ObjectType', 'v29': 'Status', 'i': 'MethodOp', 'sub_428257': 'LdNamespace1Begin', 'sub_489643': 'AcpiDebugPrint', 'sub_427DF7': 'LdLoadFieldElements', 'sub_47638A': 'AcpiNsLookup', 'sub_481BA3': 'AcpiPsGetOpcodeInfo', 'sub_42216D': 'AslCoreSubsystemError', 'sub_489B9F': 'AcpiUtStatusExit', 'sub_4220CC': 'AslError', 'sub_489ED9': 'AcpiUtGetTypeName', 'sub_460547': 'AcpiDsScopeStackPush', 'sub_428080': 'LdLoadResourceElements', 'sub_429CF0': 'AslMapNamedOpcodeToDataType', 'sub_42904D': 'LdCheckSpecialNames', 'sub_428DFB': 'LdAnalyzeExternals', 'sub_478B11': 'AcpiNsGetNormalizedPathname', 'sub_421FA3': 'AslDualParseOpError', 'sub_47BF0C': 'AcpiOsFree'}"}
l2cap_request_can_send_fix_channel_now_event
ef3e83fa7cd2ea82c8d52009344d188bc01d84108831282655bc59beb173d4ac
bluekitchen
btstack
NA
void l2cap_request_can_send_fix_channel_now_event(hci_con_handle_t con_handle, uint16_t channel_id){ UNUSED(con_handle); // ok: there is no con handle l2cap_fixed_channel_t * channel = l2cap_fixed_channel_for_channel_id(channel_id); if (!channel) return; channel->waiting_for_can_send_now = 1; l2cap_notify_channel_can_send(); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42087C", "function_addr": 4327548, "binary_name": "ef3e83fa7cd2ea82c8d52009344d188bc01d84108831282655bc59beb173d4ac.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov edx, edi"], [4, "mov eax, esi"], [5, "mov [rbp+var_14], dx"], [6, "mov [rbp+var_18], ax"], [7, "movzx eax, [rbp+var_18]"], [8, "mov edi, eax"], [9, "call sub_4210F5"], [10, "mov [rbp+var_8], rax"], [11, "cmp [rbp+var_8], 0"], [12, "jz short loc_4208B5"], [13, "mov rax, [rbp+var_8]"], [14, "mov byte ptr [rax+18h], 1"], [15, "call sub_424098"], [16, "jmp short locret_4208B6"], [17, "nop"], [18, "leave"], [19, "retn"]], "data_dep": [[5, 3], [6, 4], [7, 6], [8, 7], [10, 9], [11, 10], [12, 11], [13, 10], [14, 13], [19, 9], [19, 15]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ef3e83fa7cd2ea82c8d52009344d188bc01d84108831282655bc59beb173d4ac_ef3e83fa7cd2ea82c8d52009344d188bc01d84108831282655bc59beb173d4ac.jsonl.gz", "strip_func_name": "sub_42087C", "query": "\n\n\n__int64 __fastcall sub_42087C(__int64 a1, unsigned __int16 a2)\n{\n__int64 result; // rax\n\nresult = sub_4210F5(a2);\nif ( result )\n{\n*(_BYTE *)(result + 24) = 1;\nresult = sub_424098();\n}\nreturn result;\n}\n\n\n\nQ:[a2,a1,sub_42087C,sub_4210F5,sub_424098,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'channel_id', 'a1': 'con_handle', 'sub_42087C': 'l2cap_request_can_send_fix_channel_now_event', 'sub_4210F5': 'l2cap_fixed_channel_for_channel_id', 'sub_424098': 'l2cap_notify_channel_can_send'}"}
logExitStatus
c0e109c02d23041cf557f0ac45598de9043334cedae0010bfabb46cc9f0ec43c
jech
polipo
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c0e109c02d23041cf557f0ac45598de9043334cedae0010bfabb46cc9f0ec43c_c0e109c02d23041cf557f0ac45598de9043334cedae0010bfabb46cc9f0ec43c.jsonl.gz", "strip_func_name": "sub_435861", "query": "\n\n\n__int64 __fastcall sub_435861(unsigned int a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nconst char *v7; // rax\nunsigned int v8; // eax\n__int64 v9; // [rsp+18h] [rbp-8h]\n\nif ( (a1 & 0x7F) == 0 && BYTE1(a1) == 142 )\nreturn sub_40EE82(1u, (__int64)\"Couldn't start redirector.\\n\", a3, a4, a5, a6);\nif ( (a1 & 0x7F) != 0 )\n{\nif ( (char)((a1 & 0x7F) + 1) >> 1 <= 0 )\nv7 = \"with unknown status\";\nelse\nv7 = \"on signal\";\n}\nelse\n{\nv7 = \"with status\";\n}\nv9 = (__int64)v7;\nif ( (a1 & 0x7F) != 0 )\n{\nif ( (char)((a1 & 0x7F) + 1) >> 1 <= 0 )\nv8 = a1;\nelse\nv8 = a1 & 0x7F;\n}\nelse\n{\nv8 = BYTE1(a1);\n}\nreturn sub_40EE82(1u, (__int64)\"Redirector exited %s %d.\\n\", v9, v8, a5, a6);\n}\n\n\n\nQ:[a1,v9,sub_435861,sub_40EE82,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'status', 'v9': 'reason', 'sub_435861': 'logExitStatus', 'sub_40EE82': 'really_do_log'}"}
tax
1311b7e7dc6fbb4b737efd00c3ef17ff79cf78a6b10ffa5b4dd9014fc71f68f7
mist64
kernalemu
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1311b7e7dc6fbb4b737efd00c3ef17ff79cf78a6b10ffa5b4dd9014fc71f68f7_1311b7e7dc6fbb4b737efd00c3ef17ff79cf78a6b10ffa5b4dd9014fc71f68f7.jsonl.gz", "strip_func_name": "sub_40800F", "query": "\n\n\n__int64 sub_40800F()\n{\n__int64 result; // rax\n\nLOBYTE(word_43030C) = unk_43030B;\nif ( unk_43030B )\nbyte_43030E &= 0xFDu;\nelse\nbyte_43030E |= 2u;\nif ( (word_43030C & 0x80u) == 0 )\n{\nresult = byte_43030E & 0x7F;\nbyte_43030E &= 0x7Fu;\n}\nelse\n{\nresult = (unsigned __int8)byte_43030E | 0xFFFFFF80;\nbyte_43030E |= 0x80u;\n}\nreturn result;\n}\n\n\n\nQ:[sub_40800F,]\nAssistant: ", "hints": "[]", "response": "{'sub_40800F': 'tax'}"}
pgfnames_cleanup
43408ffd93aa77ba43ec436018c0e9cfda03520527a70b6dfa0fc26faef7e8e8
DataSystemsLab
hippo-postgresql
NA
void pgfnames_cleanup(char **filenames) { char **fn; for (fn = filenames; *fn; fn++) pfree(*fn); pfree(filenames); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40D450", "function_addr": 4248656, "binary_name": "43408ffd93aa77ba43ec436018c0e9cfda03520527a70b6dfa0fc26faef7e8e8.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+var_8], rax"], [6, "jmp short loc_40D47A"], [7, "mov rax, [rbp+var_8]"], [8, "mov rax, [rax]"], [9, "mov rdi, rax"], [10, "call sub_40DDEF"], [11, "add [rbp+var_8], 8"], [12, "mov rax, [rbp+var_8]"], [13, "mov rax, [rax]"], [14, "test rax, rax"], [15, "jnz short loc_40D466"], [16, "mov rax, [rbp+var_18]"], [17, "mov rdi, rax"], [18, "call sub_40DDEF"], [19, "nop"], [20, "leave"], [21, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 5], [7, 11], [8, 7], [9, 8], [11, 5], [11, 11], [12, 11], [12, 5], [13, 12], [14, 13], [15, 14], [16, 3], [17, 16], [21, 18]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/43408ffd93aa77ba43ec436018c0e9cfda03520527a70b6dfa0fc26faef7e8e8_43408ffd93aa77ba43ec436018c0e9cfda03520527a70b6dfa0fc26faef7e8e8.jsonl.gz", "strip_func_name": "sub_40D450", "query": "\n\n\n__int64 __fastcall sub_40D450(_QWORD *a1)\n{\n_QWORD *i; // [rsp+18h] [rbp-8h]\n\nfor ( i = a1; *i; ++i )\nsub_40DDEF(*i);\nreturn sub_40DDEF(a1);\n}\n\n\n\nQ:[a1,i,sub_40D450,sub_40DDEF,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'filenames', 'i': 'fn', 'sub_40D450': 'pgfnames_cleanup', 'sub_40DDEF': 'pfree'}"}
free_index_page_map
2dd46d844c8e5b273ceef8e2bca5c6351a45086677eac11c21b23dd43f498a89
dm-vdo
vdo
NA
void free_index_page_map(struct index_page_map *map) { if (map != NULL) { UDS_FREE(map->entries); UDS_FREE(map); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41154E", "function_addr": 4265294, "binary_name": "2dd46d844c8e5b273ceef8e2bca5c6351a45086677eac11c21b23dd43f498a89.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "cmp [rbp+var_8], 0"], [5, "jz short loc_41157D"], [6, "mov rax, [rbp+var_8]"], [7, "mov rax, [rax+18h]"], [8, "mov rdi, rax"], [9, "call sub_412D10"], [10, "mov rax, [rbp+var_8]"], [11, "mov rdi, rax"], [12, "call sub_412D10"], [13, "nop"], [14, "leave"], [15, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 7], [10, 3], [11, 10], [15, 12]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/2dd46d844c8e5b273ceef8e2bca5c6351a45086677eac11c21b23dd43f498a89_2dd46d844c8e5b273ceef8e2bca5c6351a45086677eac11c21b23dd43f498a89.jsonl.gz", "strip_func_name": "sub_41154E", "query": "\n\n\n__int64 __fastcall sub_41154E(__int64 a1)\n{\n__int64 result; // rax\n\nif ( a1 )\n{\nsub_412D10(*(_QWORD *)(a1 + 24));\nresult = sub_412D10(a1);\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_41154E,sub_412D10,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'map', 'sub_41154E': 'free_index_page_map', 'sub_412D10': 'uds_free_memory'}"}
lv_style_set_bg_img_recolor
1ba19119f39f257e698158d43e5d3674346db96601f10ff9792919370406ff3a
FASTSHIFT
lv_gba_emu
NA
void lv_style_set_bg_img_recolor(lv_style_t * style, lv_color_t value) { lv_style_value_t v = { .color = value }; lv_style_set_prop(style, LV_STYLE_BG_IMG_RECOLOR, v); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F834", "function_addr": 4257844, "binary_name": "1ba19119f39f257e698158d43e5d3674346db96601f10ff9792919370406ff3a.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_1A], si"], [5, "mov [rbp+var_8], 0"], [6, "movzx eax, [rbp+var_1A]"], [7, "mov word ptr [rbp+var_8], ax"], [8, "mov rdx, [rbp+var_8]"], [9, "mov rax, [rbp+var_18]"], [10, "mov esi, 2Ah "], [11, "mov rdi, rax"], [12, "call sub_40E96D"], [13, "nop"], [14, "leave"], [15, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [9, 3], [11, 9], [15, 12]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1ba19119f39f257e698158d43e5d3674346db96601f10ff9792919370406ff3a_1ba19119f39f257e698158d43e5d3674346db96601f10ff9792919370406ff3a.jsonl.gz", "strip_func_name": "sub_40F834", "query": "\n\n\n__int64 __fastcall sub_40F834(__int64 a1, unsigned __int16 a2)\n{\nreturn sub_40E96D(a1, 0x2Au, a2);\n}\n\n\n\nQ:[a1,a2,sub_40F834,sub_40E96D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'style', 'a2': 'value', 'sub_40F834': 'lv_style_set_bg_img_recolor', 'sub_40E96D': 'lv_style_set_prop'}"}
parse_elf
42b7bb3daa242e2847b11ae8e23e10be8dfc6fadd65fe79d9f672661ebe9ac51
teslamotors
coreboot
NA
int parse_elf(const struct buffer *pinput, struct parsed_elf *pelf, int flags) { struct xdr *xdr = &xdr_le; int bit64 = 0; struct buffer input; Elf64_Ehdr *ehdr; /* Zero out the parsed elf structure. */ memset(pelf, 0, sizeof(*pelf)); if (!iself(buffer_get(pinput))) { ERROR("The stage file is not in ELF format!\n"); return -1; } buffer_clone(&input, pinput); ehdr = &pelf->ehdr; elf_eident(&input, ehdr); bit64 = ehdr->e_ident[EI_CLASS] == ELFCLASS64; /* Assume LE unless we are sure otherwise. * We're not going to take on the task of * fully validating the ELF file. That way * lies madness. */ if (ehdr->e_ident[EI_DATA] == ELFDATA2MSB) xdr = &xdr_be; elf_ehdr(&input, ehdr, xdr, bit64); /* Relocation processing requires section header parsing. */ if (flags & ELF_PARSE_RELOC) flags |= ELF_PARSE_SHDR; /* String table processing requires section header parsing. */ if (flags & ELF_PARSE_STRTAB) flags |= ELF_PARSE_SHDR; /* Symbole table processing requires section header parsing. */ if (flags & ELF_PARSE_SYMTAB) flags |= ELF_PARSE_SHDR; if ((flags & ELF_PARSE_PHDR) && phdr_read(pinput, pelf, xdr, bit64)) goto fail; if ((flags & ELF_PARSE_SHDR) && shdr_read(pinput, pelf, xdr, bit64)) goto fail; if ((flags & ELF_PARSE_RELOC) && reloc_read(pinput, pelf, xdr, bit64)) goto fail; if ((flags & ELF_PARSE_STRTAB) && strtab_read(pinput, pelf)) goto fail; if ((flags & ELF_PARSE_SYMTAB) && symtab_read(pinput, pelf, xdr, bit64)) goto fail; return 0; fail: parsed_elf_destroy(pelf); return -1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40DEC6", "function_addr": 4251334, "binary_name": "42b7bb3daa242e2847b11ae8e23e10be8dfc6fadd65fe79d9f672661ebe9ac51.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+s], rsi"], [5, "mov [rbp+var_54], edx"], [6, "mov [rbp+var_8], offset off_455FA0"], [7, "mov [rbp+var_C], 0"], [8, "mov rax, [rbp+s]"], [9, "mov edx, 68h "], [10, "mov esi, 0"], [11, "mov rdi, rax"], [12, "call _memset"], [13, "mov rax, [rbp+var_48]"], [14, "mov rdi, rax"], [15, "call sub_40CBE7"], [16, "mov rdi, rax"], [17, "call sub_40CD52"], [18, "test eax, eax"], [19, "jnz short loc_40DF3E"], [20, "mov rax, cs:stderr"], [21, "mov rcx, rax"], [22, "mov edx, 28h "], [23, "mov esi, 1"], [24, "mov edi, offset aETheStageFileI"], [25, "call _fwrite"], [26, "mov eax, 0FFFFFFFFh"], [27, "jmp locret_40E0B2"], [28, "mov rdx, [rbp+var_48]"], [29, "lea rax, [rbp+var_40]"], [30, "mov rsi, rdx"], [31, "mov rdi, rax"], [32, "call sub_40CCCB"], [33, "mov rax, [rbp+s]"], [34, "mov [rbp+var_18], rax"], [35, "mov rdx, [rbp+var_18]"], [36, "lea rax, [rbp+var_40]"], [37, "mov rsi, rdx"], [38, "mov rdi, rax"], [39, "call sub_40CD86"], [40, "mov rax, [rbp+var_18]"], [41, "movzx eax, byte ptr [rax+4]"], [42, "cmp al, 2"], [43, "setz al"], [44, "movzx eax, al"], [45, "mov [rbp+var_C], eax"], [46, "mov rax, [rbp+var_18]"], [47, "movzx eax, byte ptr [rax+5]"], [48, "cmp al, 2"], [49, "jnz short loc_40DF93"], [50, "mov [rbp+var_8], offset off_455F60"], [51, "mov ecx, [rbp+var_C]"], [52, "mov rdx, [rbp+var_8]"], [53, "mov rsi, [rbp+var_18]"], [54, "lea rax, [rbp+var_40]"], [55, "mov rdi, rax"], [56, "call sub_40CE53"], [57, "mov eax, [rbp+var_54]"], [58, "and eax, 4"], [59, "test eax, eax"], [60, "jz short loc_40DFB8"], [61, "or [rbp+var_54], 2"], [62, "mov eax, [rbp+var_54]"], [63, "and eax, 8"], [64, "test eax, eax"], [65, "jz short loc_40DFC6"], [66, "or [rbp+var_54], 2"], [67, "mov eax, [rbp+var_54]"], [68, "and eax, 10h"], [69, "test eax, eax"], [70, "jz short loc_40DFD4"], [71, "or [rbp+var_54], 2"], [72, "mov eax, [rbp+var_54]"], [73, "and eax, 1"], [74, "test eax, eax"], [75, "jz short loc_40DFFD"], [76, "mov ecx, [rbp+var_C]"], [77, "mov rdx, [rbp+var_8]"], [78, "mov rsi, [rbp+s]"], [79, "mov rax, [rbp+var_48]"], [80, "mov rdi, rax"], [81, "call sub_40D44F"], [82, "test eax, eax"], [83, "jnz loc_40E094"], [84, "mov eax, [rbp+var_54]"], [85, "and eax, 2"], [86, "test eax, eax"], [87, "jz short loc_40E022"], [88, "mov ecx, [rbp+var_C]"], [89, "mov rdx, [rbp+var_8]"], [90, "mov rsi, [rbp+s]"], [91, "mov rax, [rbp+var_48]"], [92, "mov rdi, rax"], [93, "call sub_40D5FE"], [94, "test eax, eax"], [95, "jnz short loc_40E097"], [96, "mov eax, [rbp+var_54]"], [97, "and eax, 4"], [98, "test eax, eax"], [99, "jz short loc_40E047"], [100, "mov ecx, [rbp+var_C]"], [101, "mov rdx, [rbp+var_8]"], [102, "mov rsi, [rbp+s]"], [103, "mov rax, [rbp+var_48]"], [104, "mov rdi, rax"], [105, "call sub_40D72F"], [106, "test eax, eax"], [107, "jnz short loc_40E09A"], [108, "mov eax, [rbp+var_54]"], [109, "and eax, 8"], [110, "test eax, eax"], [111, "jz short loc_40E068"], [112, "mov rdx, [rbp+s]"], [113, "mov rax, [rbp+var_48]"], [114, "mov rsi, rdx"], [115, "mov rdi, rax"], [116, "call sub_40DA47"], [117, "test eax, eax"], [118, "jnz short loc_40E09D"], [119, "mov eax, [rbp+var_54]"], [120, "and eax, 10h"], [121, "test eax, eax"], [122, "jz short loc_40E08D"], [123, "mov ecx, [rbp+var_C]"], [124, "mov rdx, [rbp+var_8]"], [125, "mov rsi, [rbp+s]"], [126, "mov rax, [rbp+var_48]"], [127, "mov rdi, rax"], [128, "call sub_40DBC0"], [129, "test eax, eax"], [130, "jnz short loc_40E0A0"], [131, "mov eax, 0"], [132, "jmp short locret_40E0B2"], [133, "nop"], [134, "jmp short loc_40E0A1"], [135, "nop"], [136, "jmp short loc_40E0A1"], [137, "nop"], [138, "jmp short loc_40E0A1"], [139, "nop"], [140, "jmp short loc_40E0A1"], [141, "nop"], [142, "mov rax, [rbp+s]"], [143, "mov rdi, rax"], [144, "call sub_40E0B4"], [145, "mov eax, 0FFFFFFFFh"], [146, "leave"], [147, "retn"]], "data_dep": [[8, 4], [11, 8], [13, 3], [14, 13], [16, 15], [18, 17], [19, 18], [21, 20], [28, 3], [29, 18], [30, 28], [31, 29], [33, 4], [34, 33], [35, 34], [36, 33], [37, 35], [38, 36], [40, 34], [41, 40], [42, 41], [43, 41], [43, 42], [44, 43], [45, 44], [46, 34], [47, 46], [48, 47], [49, 48], [51, 45], [52, 50], [52, 6], [53, 34], [54, 47], [55, 54], [57, 5], [58, 57], [59, 58], [60, 59], [61, 5], [62, 5], [62, 61], [63, 62], [64, 63], [65, 64], [66, 5], [66, 61], [67, 61], [67, 5], [67, 66], [68, 67], [69, 68], [70, 69], [71, 5], [71, 66], [71, 61], [72, 66], [72, 61], [72, 5], [72, 71], [73, 72], [74, 73], [75, 74], [76, 45], [77, 50], [77, 6], [78, 4], [79, 3], [80, 79], [82, 81], [83, 82], [84, 61], [84, 5], [84, 71], [84, 66], [85, 84], [86, 85], [87, 86], [88, 45], [89, 6], [89, 50], [90, 4], [91, 3], [92, 91], [94, 93], [95, 94], [96, 5], [96, 71], [96, 66], [96, 61], [97, 96], [98, 97], [99, 98], [100, 45], [101, 50], [101, 6], [102, 4], [103, 3], [104, 103], [106, 105], [107, 106], [108, 66], [108, 61], [108, 5], [108, 71], [109, 108], [110, 109], [111, 110], [112, 4], [113, 3], [114, 112], [115, 113], [117, 116], [118, 117], [119, 71], [119, 66], [119, 61], [119, 5], [120, 119], [121, 120], [122, 121], [123, 45], [124, 50], [124, 6], [125, 4], [126, 3], [127, 126], [129, 128], [130, 129], [142, 4], [143, 142], [147, 26], [147, 145], [147, 131]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/42b7bb3daa242e2847b11ae8e23e10be8dfc6fadd65fe79d9f672661ebe9ac51_42b7bb3daa242e2847b11ae8e23e10be8dfc6fadd65fe79d9f672661ebe9ac51.jsonl.gz", "strip_func_name": "sub_40DEC6", "query": "\n\n\n__int64 __fastcall sub_40DEC6(_QWORD *a1, void *a2, char a3)\n{\nconst void *v3; // rax\n__int64 result; // rax\n_QWORD v6[5]; // [rsp+20h] [rbp-40h] BYREF\n_BYTE *v7; // [rsp+48h] [rbp-18h]\nint v8; // [rsp+54h] [rbp-Ch]\n__int64 (__fastcall **v9)(); // [rsp+58h] [rbp-8h]\n\nv9 = off_455FA0;\nv8 = 0;\nmemset(a2, 0, 0x68uLL);\nv3 = (const void *)sub_40CBE7((__int64)a1);\nif ( sub_40CD52(v3) )\n{\nsub_40CCCB(v6, a1);\nv7 = a2;\nsub_40CD86((__int64)v6, (__int64)a2);\nv8 = v7[4] == 2;\nif ( v7[5] == 2 )\nv9 = off_455F60;\nsub_40CE53((__int64)v6, (__int64)v7, (__int64 (__fastcall **)(_QWORD))v9, v8);\nif ( (a3 & 4) != 0 )\na3 |= 2u;\nif ( (a3 & 8) != 0 )\na3 |= 2u;\nif ( (a3 & 0x10) != 0 )\na3 |= 2u;\nif ( (a3 & 1) != 0 && (unsigned int)sub_40D44F(a1, (__int64)a2, (__int64)v9, v8)\n|| (a3 & 2) != 0 && (unsigned int)sub_40D5FE(a1, (__int64)a2, (__int64)v9, v8)\n|| (a3 & 4) != 0 && (unsigned int)sub_40D72F(a1, (__int64)a2, (__int64)v9, v8)\n|| (a3 & 8) != 0 && (unsigned int)sub_40DA47(a1, (__int64)a2)\n|| (a3 & 0x10) != 0 && (unsigned int)sub_40DBC0(a1, (__int64)a2, (__int64 (__fastcall **)(_QWORD *))v9, v8) )\n{\nsub_40E0B4(a2);\nresult = 0xFFFFFFFFLL;\n}\nelse\n{\nresult = 0LL;\n}\n}\nelse\n{\nfwrite(\"E: The stage file is not in ELF format!\\n\", 1uLL, 0x28uLL, stderr);\nresult = 0xFFFFFFFFLL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v3,v6,v7,v8,v9,sub_40DEC6,sub_40CBE7,sub_40CD52,sub_40CCCB,sub_40CD86,sub_40CE53,sub_40D44F,sub_40D5FE,sub_40D72F,sub_40DA47,sub_40DBC0,sub_40E0B4,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'flags', 'a1': 'pinput', 'a2': 'pelf', 'v3': 'result', 'v6': 'input', 'v7': 'ehdr', 'v8': 'bit64', 'v9': 'xdr', 'sub_40DEC6': 'parse_elf', 'sub_40CBE7': 'buffer_get_3', 'sub_40CD52': 'iself', 'sub_40CCCB': 'buffer_clone_2', 'sub_40CD86': 'elf_eident', 'sub_40CE53': 'elf_ehdr', 'sub_40D44F': 'phdr_read', 'sub_40D5FE': 'shdr_read', 'sub_40D72F': 'reloc_read', 'sub_40DA47': 'strtab_read', 'sub_40DBC0': 'symtab_read', 'sub_40E0B4': 'parsed_elf_destroy'}"}
ZSTD_initCStream_usingDict
865724ebdf8f31c695b0022cc64ebcc76b491dfcaf7d0e9f4ffca1890f30b8c6
facebook
zstd
NA
size_t ZSTD_initCStream_usingDict(ZSTD_CStream* zcs, const void* dict, size_t dictSize, int compressionLevel) { DEBUGLOG(4, "ZSTD_initCStream_usingDict"); FORWARD_IF_ERROR( ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only) , ""); FORWARD_IF_ERROR( ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel) , ""); FORWARD_IF_ERROR( ZSTD_CCtx_loadDictionary(zcs, dict, dictSize) , ""); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41331B", "function_addr": 4272923, "binary_name": "865724ebdf8f31c695b0022cc64ebcc76b491dfcaf7d0e9f4ffca1890f30b8c6.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_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_3C], ecx"], [7, "mov rax, [rbp+var_28]"], [8, "mov esi, 1"], [9, "mov rdi, rax"], [10, "call sub_40B395"], [11, "mov [rbp+var_8], rax"], [12, "mov rax, [rbp+var_8]"], [13, "mov rdi, rax"], [14, "call sub_407C30"], [15, "test eax, eax"], [16, "jz short loc_41335D"], [17, "mov rax, [rbp+var_8]"], [18, "jmp short locret_4133C1"], [19, "mov edx, [rbp+var_3C]"], [20, "mov rax, [rbp+var_28]"], [21, "mov esi, 64h "], [22, "mov rdi, rax"], [23, "call sub_40A2BE"], [24, "mov [rbp+var_10], rax"], [25, "mov rax, [rbp+var_10]"], [26, "mov rdi, rax"], [27, "call sub_407C30"], [28, "test eax, eax"], [29, "jz short loc_41338B"], [30, "mov rax, [rbp+var_10]"], [31, "jmp short locret_4133C1"], [32, "mov rdx, [rbp+var_38]"], [33, "mov rcx, [rbp+var_30]"], [34, "mov rax, [rbp+var_28]"], [35, "mov rsi, rcx"], [36, "mov rdi, rax"], [37, "call sub_40B235"], [38, "mov [rbp+var_18], rax"], [39, "mov rax, [rbp+var_18]"], [40, "mov rdi, rax"], [41, "call sub_407C30"], [42, "test eax, eax"], [43, "jz short loc_4133BC"], [44, "mov rax, [rbp+var_18]"], [45, "jmp short locret_4133C1"], [46, "mov eax, 0"], [47, "leave"], [48, "retn"]], "data_dep": [[7, 3], [9, 7], [11, 10], [12, 11], [13, 12], [15, 14], [16, 15], [17, 11], [19, 6], [20, 3], [22, 20], [24, 23], [25, 24], [26, 25], [28, 27], [29, 28], [30, 24], [32, 5], [33, 4], [34, 3], [35, 33], [36, 34], [38, 37], [39, 38], [40, 39], [42, 41], [43, 42], [44, 38], [48, 30], [48, 17], [48, 44], [48, 46]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/865724ebdf8f31c695b0022cc64ebcc76b491dfcaf7d0e9f4ffca1890f30b8c6_865724ebdf8f31c695b0022cc64ebcc76b491dfcaf7d0e9f4ffca1890f30b8c6.jsonl.gz", "strip_func_name": "sub_41331B", "query": "\n\n\n__int64 __fastcall sub_41331B(__int64 a1, const void *a2, size_t a3, __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 result; // rax\n__int64 v7; // r8\n__int64 v8; // r9\nunsigned int v9; // [rsp+4h] [rbp-3Ch]\n__int64 v11; // [rsp+28h] [rbp-18h]\n__int64 v12; // [rsp+30h] [rbp-10h]\n__int64 v13; // [rsp+38h] [rbp-8h]\n\nv9 = a4;\nv13 = sub_40B395(a1, 1LL, a3, a4, a5, a6);\nif ( sub_407C30(v13) )\nreturn v13;\nv12 = sub_40A2BE(a1, 0x64u, v9);\nif ( sub_407C30(v12) )\nreturn v12;\nv11 = sub_40B235(a1, a2, a3, (__int64)a2, v7, v8);\nif ( sub_407C30(v11) )\nresult = v11;\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v11,v12,v13,sub_41331B,sub_40B395,sub_407C30,sub_40A2BE,sub_40B235,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'dictSize', 'a4': 'compressionLevel', 'a1': 'zcs', 'a2': 'dict', 'v11': 'err_code_1', 'v12': 'err_code_0', 'v13': 'err_code', 'sub_41331B': 'ZSTD_initCStream_usingDict', 'sub_40B395': 'ZSTD_CCtx_reset', 'sub_407C30': 'ERR_isError_0', 'sub_40A2BE': 'ZSTD_CCtx_setParameter', 'sub_40B235': 'ZSTD_CCtx_loadDictionary'}"}
traitpickle
ab255ff95aea848f5e75ce30d5178c77a5cd78bf1743b6b99d8aa551084bee8f
oridb
mc
NA
static void traitpickle(FILE *fd, Trait *tr) { size_t i; wrint(fd, tr->uid); wrint(fd, tr->vis); pickle(fd, tr->name); typickle(fd, tr->param); wrint(fd, tr->naux); for (i = 0; i < tr->naux; i++) wrtype(fd, tr->aux[i]); wrint(fd, tr->nproto); for (i = 0; i < tr->nproto; i++) wrsym(fd, tr->proto[i]); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_417F47", "function_addr": 4292423, "binary_name": "ab255ff95aea848f5e75ce30d5178c77a5cd78bf1743b6b99d8aa551084bee8f.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_20]"], [6, "mov eax, [rax]"], [7, "movsxd rdx, eax"], [8, "mov rax, [rbp+var_18]"], [9, "mov rsi, rdx"], [10, "mov rdi, rax"], [11, "call sub_41F97C"], [12, "mov rax, [rbp+var_20]"], [13, "mov eax, [rax+0Ch]"], [14, "mov edx, eax"], [15, "mov rax, [rbp+var_18]"], [16, "mov rsi, rdx"], [17, "mov rdi, rax"], [18, "call sub_41F97C"], [19, "mov rax, [rbp+var_20]"], [20, "mov rdx, [rax+10h]"], [21, "mov rax, [rbp+var_18]"], [22, "mov rsi, rdx"], [23, "mov rdi, rax"], [24, "call sub_418A9F"], [25, "mov rax, [rbp+var_20]"], [26, "mov rdx, [rax+18h]"], [27, "mov rax, [rbp+var_18]"], [28, "mov rsi, rdx"], [29, "mov rdi, rax"], [30, "call sub_41793D"], [31, "mov rax, [rbp+var_20]"], [32, "mov rax, [rax+28h]"], [33, "mov rdx, rax"], [34, "mov rax, [rbp+var_18]"], [35, "mov rsi, rdx"], [36, "mov rdi, rax"], [37, "call sub_41F97C"], [38, "mov [rbp+var_8], 0"], [39, "jmp short loc_418003"], [40, "mov rax, [rbp+var_20]"], [41, "mov rdx, [rax+20h]"], [42, "mov rax, [rbp+var_8]"], [43, "shl rax, 3"], [44, "add rax, rdx"], [45, "mov rdx, [rax]"], [46, "mov rax, [rbp+var_18]"], [47, "mov rsi, rdx"], [48, "mov rdi, rax"], [49, "call sub_418071"], [50, "add [rbp+var_8], 1"], [51, "mov rax, [rbp+var_20]"], [52, "mov rax, [rax+28h]"], [53, "cmp [rbp+var_8], rax"], [54, "jb short loc_417FD9"], [55, "mov rax, [rbp+var_20]"], [56, "mov rax, [rax+38h]"], [57, "mov rdx, rax"], [58, "mov rax, [rbp+var_18]"], [59, "mov rsi, rdx"], [60, "mov rdi, rax"], [61, "call sub_41F97C"], [62, "mov [rbp+var_8], 0"], [63, "jmp short loc_41805F"], [64, "mov rax, [rbp+var_20]"], [65, "mov rdx, [rax+30h]"], [66, "mov rax, [rbp+var_8]"], [67, "shl rax, 3"], [68, "add rax, rdx"], [69, "mov rdx, [rax]"], [70, "mov rax, [rbp+var_18]"], [71, "mov rsi, rdx"], [72, "mov rdi, rax"], [73, "call sub_417653"], [74, "add [rbp+var_8], 1"], [75, "mov rax, [rbp+var_20]"], [76, "mov rax, [rax+38h]"], [77, "cmp [rbp+var_8], rax"], [78, "jb short loc_418035"], [79, "nop"], [80, "nop"], [81, "leave"], [82, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 3], [9, 7], [10, 8], [12, 4], [13, 12], [14, 13], [15, 3], [16, 14], [17, 15], [19, 4], [20, 19], [21, 3], [22, 20], [23, 21], [25, 4], [26, 25], [27, 3], [28, 26], [29, 27], [31, 4], [32, 31], [33, 32], [34, 3], [35, 33], [36, 34], [40, 4], [41, 40], [42, 38], [42, 50], [43, 42], [44, 41], [44, 43], [45, 44], [46, 3], [47, 45], [48, 46], [50, 38], [50, 50], [51, 4], [52, 51], [53, 38], [53, 50], [53, 52], [54, 53], [55, 4], [56, 55], [57, 56], [58, 3], [59, 57], [60, 58], [64, 4], [65, 64], [66, 62], [66, 74], [67, 66], [68, 65], [68, 67], [69, 68], [70, 3], [71, 69], [72, 70], [74, 62], [74, 74], [75, 4], [76, 75], [77, 62], [77, 74], [77, 76], [78, 77], [82, 76]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ab255ff95aea848f5e75ce30d5178c77a5cd78bf1743b6b99d8aa551084bee8f_ab255ff95aea848f5e75ce30d5178c77a5cd78bf1743b6b99d8aa551084bee8f.jsonl.gz", "strip_func_name": "sub_417F47", "query": "\n\n\nunsigned __int64 __fastcall sub_417F47(__int64 a1, int *a2)\n{\nint v2; // ecx\nint v3; // er8\nint v4; // er9\nunsigned __int64 result; // rax\nunsigned __int64 i; // [rsp+18h] [rbp-8h]\nunsigned __int64 j; // [rsp+18h] [rbp-8h]\n\nsub_41F97C(a1, *a2);\nsub_41F97C(a1, (unsigned int)a2[3]);\nsub_418A9F(a1, *((_QWORD *)a2 + 2));\nsub_41793D(a1, *((_QWORD *)a2 + 3), *((_QWORD *)a2 + 3), v2, v3, v4);\nsub_41F97C(a1, *((_QWORD *)a2 + 5));\nfor ( i = 0LL; i < *((_QWORD *)a2 + 5); ++i )\nsub_418071(a1, *(_QWORD *)(*((_QWORD *)a2 + 4) + 8 * i));\nsub_41F97C(a1, *((_QWORD *)a2 + 7));\nfor ( j = 0LL; ; ++j )\n{\nresult = *((_QWORD *)a2 + 7);\nif ( j >= result )\nbreak;\nsub_417653(a1, *(int **)(*((_QWORD *)a2 + 6) + 8 * j));\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,i,sub_417F47,sub_41F97C,sub_418A9F,sub_41793D,sub_418071,sub_417653,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fd', 'a2': 'tr', 'i': 'ia', 'sub_417F47': 'traitpickle', 'sub_41F97C': 'wrint', 'sub_418A9F': 'pickle', 'sub_41793D': 'typickle', 'sub_418071': 'wrtype', 'sub_417653': 'wrsym'}"}
_avr_flags_sub_zns
370b4db309f59c8f514b381a85873bd083ea89f4439ad967e0d8d4c81708f0b3
buserror
simavr
NA
static void _avr_flags_sub_zns (struct avr_t * avr, uint8_t res, uint8_t rd, uint8_t rr) { /* carry & half carry */ uint8_t sub_carry = (~rd & rr) | (rr & res) | (res & ~rd); avr->sreg[S_H] = (sub_carry >> 3) & 1; avr->sreg[S_C] = (sub_carry >> 7) & 1; /* overflow */ avr->sreg[S_V] = (((rd & ~rr & ~res) | (~rd & rr & res)) >> 7) & 1; /* zns */ _avr_flags_zns(avr, res); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41029E", "function_addr": 4260510, "binary_name": "370b4db309f59c8f514b381a85873bd083ea89f4439ad967e0d8d4c81708f0b3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 28h"], [3, "mov [rbp+var_18], rdi"], [4, "mov eax, ecx"], [5, "mov ecx, esi"], [6, "mov [rbp+var_1C], cl"], [7, "mov [rbp+var_20], dl"], [8, "mov [rbp+var_24], al"], [9, "movzx eax, [rbp+var_20]"], [10, "not eax"], [11, "mov edx, eax"], [12, "movzx eax, [rbp+var_24]"], [13, "and edx, eax"], [14, "movzx eax, [rbp+var_24]"], [15, "and al, [rbp+var_1C]"], [16, "or edx, eax"], [17, "movzx eax, [rbp+var_20]"], [18, "not eax"], [19, "mov ecx, eax"], [20, "movzx eax, [rbp+var_1C]"], [21, "and eax, ecx"], [22, "or eax, edx"], [23, "mov [rbp+var_1], al"], [24, "movzx eax, [rbp+var_1]"], [25, "shr al, 3"], [26, "and eax, 1"], [27, "mov edx, eax"], [28, "mov rax, [rbp+var_18]"], [29, "mov [rax+0C5h], dl"], [30, "movzx eax, [rbp+var_1]"], [31, "shr al, 7"], [32, "mov edx, eax"], [33, "mov rax, [rbp+var_18]"], [34, "mov [rax+0C0h], dl"], [35, "movzx edx, [rbp+var_20]"], [36, "movzx eax, [rbp+var_24]"], [37, "not eax"], [38, "and edx, eax"], [39, "movzx eax, [rbp+var_1C]"], [40, "not eax"], [41, "and edx, eax"], [42, "movzx eax, [rbp+var_20]"], [43, "not eax"], [44, "mov ecx, eax"], [45, "movzx eax, [rbp+var_24]"], [46, "and ecx, eax"], [47, "movzx eax, [rbp+var_1C]"], [48, "and eax, ecx"], [49, "or eax, edx"], [50, "sar eax, 7"], [51, "and eax, 1"], [52, "mov edx, eax"], [53, "mov rax, [rbp+var_18]"], [54, "mov [rax+0C3h], dl"], [55, "movzx edx, [rbp+var_1C]"], [56, "mov rax, [rbp+var_18]"], [57, "mov esi, edx"], [58, "mov rdi, rax"], [59, "call sub_410129"], [60, "nop"], [61, "leave"], [62, "retn"]], "data_dep": [[6, 5], [8, 4], [9, 7], [10, 9], [11, 10], [12, 8], [13, 11], [13, 12], [14, 8], [15, 14], [15, 6], [16, 13], [16, 15], [17, 7], [18, 17], [19, 18], [20, 6], [21, 19], [21, 20], [22, 16], [22, 21], [23, 22], [24, 23], [25, 24], [26, 25], [27, 26], [28, 3], [29, 28], [29, 27], [30, 23], [31, 30], [32, 31], [33, 3], [34, 33], [34, 32], [35, 7], [36, 8], [37, 36], [38, 35], [38, 37], [39, 6], [40, 39], [41, 40], [41, 38], [42, 7], [43, 42], [44, 43], [45, 8], [46, 45], [46, 44], [47, 6], [48, 47], [48, 46], [49, 41], [49, 48], [50, 49], [51, 50], [52, 51], [53, 3], [54, 53], [54, 52], [55, 6], [56, 3], [57, 55], [58, 56], [62, 59]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/370b4db309f59c8f514b381a85873bd083ea89f4439ad967e0d8d4c81708f0b3_370b4db309f59c8f514b381a85873bd083ea89f4439ad967e0d8d4c81708f0b3.jsonl.gz", "strip_func_name": "sub_41029E", "query": "\n\n\n_BYTE *__fastcall sub_41029E(_BYTE *a1, unsigned __int8 a2, unsigned __int8 a3, unsigned __int8 a4)\n{\na1[197] = (((unsigned __int8)(a2 & a4 | a4 & ~a3) | (unsigned __int8)(~a3 & a2)) & 8) != 0;\na1[192] = (unsigned __int8)(a2 & a4 | a4 & ~a3 | ~a3 & a2) >> 7;\na1[195] = ((~a2 & ~a4 & a3 | (unsigned __int8)(a4 & ~a3 & a2)) >> 7) & 1;\nreturn sub_410129(a1, a2);\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_41029E,sub_410129,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'rd', 'a4': 'rr', 'a1': 'avr', 'a2': 'res', 'sub_41029E': '_avr_flags_sub_zns', 'sub_410129': '_avr_flags_zns'}"}
ex_fps_camera_resize
83a9aa4126c589a6f8453a0849c3fcd29d44c939e30436d38b3d30eb244fd78e
solenum
exengine
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/83a9aa4126c589a6f8453a0849c3fcd29d44c939e30436d38b3d30eb244fd78e_83a9aa4126c589a6f8453a0849c3fcd29d44c939e30436d38b3d30eb244fd78e.jsonl.gz", "strip_func_name": "sub_438F89", "query": "\n\n\nunsigned int *__fastcall sub_438F89(unsigned int *a1)\n{\nunsigned int *result; // rax\n__m128i v2; // xmm0\nfloat v3; // [rsp+4h] [rbp-2Ch]\nchar v4[8]; // [rsp+10h] [rbp-20h] BYREF\nunsigned int v5; // [rsp+18h] [rbp-18h]\nunsigned int v6; // [rsp+1Ch] [rbp-14h]\nunsigned int v7; // [rsp+28h] [rbp-8h]\nunsigned int v8; // [rsp+2Ch] [rbp-4h]\n\nqword_4A9C20(2978LL, v4);\nv8 = v5;\nv7 = v6;\nif ( v5 != a1[15] || (result = (unsigned int *)a1[16], v7 != (_DWORD)result) )\n{\nv3 = (float)(int)v8 / (float)(int)v7;\nv2 = _mm_cvtsi32_si128(a1[13]);\n*(float *)v2.m128i_i32 = sub_43791C(*(float *)v2.m128i_i32);\nsub_4387A5((__int64)(a1 + 36), COERCE_FLOAT(_mm_cvtsi128_si32(v2)), v3, 0.0099999998, 1000.0);\na1[15] = v8;\nresult = a1;\na1[16] = v7;\n}\nreturn result;\n}\n\n\n\nQ:[a1,v3,v4,v7,v8,sub_438F89,sub_43791C,sub_4387A5,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'cam', 'v3': 'aspect', 'v4': 'viewport', 'v7': 'height', 'v8': 'width', 'sub_438F89': 'ex_fps_camera_resize', 'sub_43791C': 'rad', 'sub_4387A5': 'mat4x4_perspective'}"}
_jxr_w_load_hpcbp_state
72303f375450332c393a8a753559999c0acc00cdc494ffcd4522a6d677c4ee69
ArtifexSoftware
ghostpdl
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/72303f375450332c393a8a753559999c0acc00cdc494ffcd4522a6d677c4ee69_72303f375450332c393a8a753559999c0acc00cdc494ffcd4522a6d677c4ee69.jsonl.gz", "strip_func_name": "sub_44B734", "query": "\n\n\n__int64 __fastcall sub_44B734(__int64 a1, int a2)\n{\n__int64 result; // rax\nunsigned int i; // [rsp+18h] [rbp-4h]\n\nfor ( i = 0; i <= 1; ++i )\n{\n*(_DWORD *)(a1 + 4 * (i + 664LL)) = *(_DWORD *)(16LL * a2 + *(_QWORD *)(a1 + 2672) + 4LL * i);\n*(_DWORD *)(a1 + 4 * (i + 664LL) + 8) = *(_DWORD *)(16LL * a2 + *(_QWORD *)(a1 + 2672) + 4LL * i + 8);\n*(_DWORD *)(a1 + 4 * (i + 420LL) + 8) = *(_DWORD *)(*(_QWORD *)(a1 + 2680) + 24LL * a2 + 4LL * i);\n*(_DWORD *)(a1 + 4 * (i + 420LL) + 16) = *(_DWORD *)(*(_QWORD *)(a1 + 2680) + 24LL * a2 + 4LL * i + 8);\nresult = a1;\n*(_DWORD *)(a1 + 4 * (i + 424LL) + 8) = *(_DWORD *)(*(_QWORD *)(a1 + 2680) + 24LL * a2 + 4 * (i + 4LL));\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,i,sub_44B734,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'image', 'a2': 'tx', 'i': 'idx', 'sub_44B734': '_jxr_w_load_hpcbp_state'}"}
check_data_dir
81615611eb13cf9a4fb3d460dcb3d94fef45de4faf895a7ec0e40c42cadbba6d
DataSystemsLab
hippo-postgresql
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/81615611eb13cf9a4fb3d460dcb3d94fef45de4faf895a7ec0e40c42cadbba6d_81615611eb13cf9a4fb3d460dcb3d94fef45de4faf895a7ec0e40c42cadbba6d.jsonl.gz", "strip_func_name": "sub_407492", "query": "\n\n\n__int64 __fastcall sub_407492(const char *a1)\n{\nconst char *v1; // rsi\nint v2; // ecx\nint v3; // er8\nint v4; // er9\nint *v5; // rax\nunsigned int v6; // eax\nint v7; // er8\nint v8; // er9\n__int64 result; // rax\nchar v10; // [rsp+0h] [rbp-500h]\nstruct stat stat_buf; // [rsp+10h] [rbp-4F0h] BYREF\n__int64 v12[10]; // [rsp+A0h] [rbp-460h]\nchar s[1036]; // [rsp+F0h] [rbp-410h] BYREF\nunsigned int i; // [rsp+4FCh] [rbp-4h]\n\nv12[0] = (__int64)&unk_4159FF;\nv12[1] = (__int64)\"base\";\nv12[2] = (__int64)\"global\";\nv12[3] = (__int64)\"pg_clog\";\nv12[4] = (__int64)\"pg_multixact\";\nv12[5] = (__int64)\"pg_subtrans\";\nv12[6] = (__int64)\"pg_tblspc\";\nv12[7] = (__int64)\"pg_twophase\";\nv12[8] = (__int64)\"pg_xlog\";\nfor ( i = 0; ; ++i )\n{\nresult = i;\nif ( i > 8 )\nbreak;\nif ( *(_BYTE *)v12[i] )\nv1 = \"/\";\nelse\nv1 = (const char *)&unk_4159FF;\nsnprintf(s, 0x400uLL, \"%s%s%s\", a1, v1, (const char *)v12[i]);\nif ( (unsigned int)sub_412270(s, &stat_buf) )\n{\nv5 = __errno_location();\nv6 = (unsigned int)strerror(*v5);\nsub_40CDA3(4, (unsigned int)\"check for \\\"%s\\\" failed: %s\\n\", (unsigned int)s, v6, v7, v8, v10);\n}\nelse if ( (stat_buf.st_mode & 0xF000) != 0x4000 )\n{\nsub_40CDA3(4, (unsigned int)\"%s is not a directory\\n\", (unsigned int)s, v2, v3, v4, v10);\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,stat_buf,v12,s,i,sub_407492,sub_412270,sub_40CDA3,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pg_data', 'stat_buf': 'statBuf', 'v12': 'requiredSubdirs', 's': 'subDirName', 'i': 'subdirnum', 'sub_407492': 'check_data_dir', 'sub_412270': 'stat_0', 'sub_40CDA3': 'report_status'}"}
main
1b3b7e18915057bf5f2efb5d0be4a6ebaf44986a9efad0adef334f26d4bfdb51
DataSystemsLab
hippo-postgresql
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1b3b7e18915057bf5f2efb5d0be4a6ebaf44986a9efad0adef334f26d4bfdb51_1b3b7e18915057bf5f2efb5d0be4a6ebaf44986a9efad0adef334f26d4bfdb51.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n_BOOL8 __fastcall main(int a1, char **a2, char **a3)\n{\n__mode_t v3; // eax\n_BOOL8 result; // rax\n__int64 v5; // rdx\n__int64 v6; // rcx\n__int64 v7; // r8\n__int64 v8; // r9\nconst char *v9; // rsi\n__int64 v10; // rdx\n__int64 v11; // rcx\n__int64 v12; // r8\n__int64 v13; // r9\nint v14; // [rsp+14h] [rbp-Ch]\nint l; // [rsp+18h] [rbp-8h]\nint n; // [rsp+18h] [rbp-8h]\nint i; // [rsp+1Ch] [rbp-4h]\nint j; // [rsp+1Ch] [rbp-4h]\nint k; // [rsp+1Ch] [rbp-4h]\nint m; // [rsp+1Ch] [rbp-4h]\n\nv3 = umask(0x12u);\numask(v3 | 0x12);\nqword_40E220 = (__int64)*a2;\nfor ( i = 1; i < a1; ++i )\n{\nif ( !strcmp(a2[i], \"--version\") )\n{\nprintf(\"zic %s\\n\", \"9.6.1\");\nsub_401791(stdout, 0LL, 0LL);\nreturn 0LL;\n}\nif ( !strcmp(a2[i], \"--help\") )\nsub_401874(stdout, 0);\n}\nwhile ( 1 )\n{\nv14 = getopt(a1, a2, \"d:l:p:L:vPsy:\");\nif ( v14 == -1 )\nbreak;\nswitch ( v14 )\n{\ncase 'L':\nif ( qword_40F250 )\n{\nfprintf(stderr, \"%s: More than one -L option specified\\n\", (const char *)qword_40E220);\nreturn 1LL;\n}\nqword_40F250 = (__int64)strdup(optarg);\nbreak;\ncase 'P':\nbyte_40E201 = 1;\nqword_40E208 = time(0LL);\ncontinue;\ncase 'd':\nif ( src )\n{\nfprintf(stderr, \"%s: More than one -d option specified\\n\", (const char *)qword_40E220);\nreturn 1LL;\n}\nsrc = strdup(optarg);\ncontinue;\ncase 'l':\nif ( qword_40F240 )\n{\nfprintf(stderr, \"%s: More than one -l option specified\\n\", (const char *)qword_40E220);\nreturn 1LL;\n}\nqword_40F240 = (__int64)strdup(optarg);\ncontinue;\ncase 'p':\nif ( qword_40F238 )\n{\nfprintf(stderr, \"%s: More than one -p option specified\\n\", (const char *)qword_40E220);\nreturn 1LL;\n}\nqword_40F238 = (__int64)strdup(optarg);\ncontinue;\ncase 's':\nsub_4016CA(\"-s ignored\", (__int64)a2, v5, v6, v7, v8);\ncontinue;\ncase 'v':\nbyte_40E200 = 1;\ncontinue;\ncase 'y':\nif ( qword_40F258 )\n{\nfprintf(stderr, \"%s: More than one -y option specified\\n\", (const char *)qword_40E220);\nreturn 1LL;\n}\nqword_40F258 = strdup(optarg);\ncontinue;\ndefault:\nsub_401874(stderr, 1);\n}\n}\nif ( a1 - 1 == optind && !strcmp(a2[optind], \"=\") )\nsub_401874(stderr, 1);\nif ( !src )\nsrc = \"data\";\nif ( !qword_40F258 )\nqword_40F258 = \"yearistype\";\nif ( a1 > optind && qword_40F250 )\n{\nsub_402E6B(qword_40F250);\nsub_40830A();\n}\nfor ( j = optind; j < a1; ++j )\nsub_402E6B(a2[j]);\nif ( byte_40E1C4 )\nreturn 1LL;\nsub_40293D();\nsub_4018D3(src);\nfor ( k = 0; k < dword_40E250; k = l )\n{\nfor ( l = k + 1; l < dword_40E250 && !*(_QWORD *)(qword_40E248 + 208LL * l + 16); ++l )\n;\nsub_406EA5(qword_40E248 + 208LL * k, (unsigned int)(l - k));\n}\nfor ( m = 0; m < dword_40E260; ++m )\n{\nsub_401551(*(_QWORD *)(qword_40E258 + 32LL * m), *(_DWORD *)(qword_40E258 + 32LL * m + 8));\nsub_40248C(*(_QWORD *)(qword_40E258 + 32LL * m + 16), *(_QWORD *)(qword_40E258 + 32LL * m + 24), 0LL);\nif ( byte_40E200 )\n{\nfor ( n = 0; n < dword_40E260; ++n )\n{\nv9 = *(const char **)(qword_40E258 + 32LL * n + 16);\nif ( !strcmp(*(const char **)(qword_40E258 + 32LL * m + 24), v9) )\nsub_4016CA(\"link to link\", (__int64)v9, v10, v11, v12, v13);\n}\n}\n}\nif ( qword_40F240 )\n{\nsub_401551((__int64)\"command line\", 1);\nsub_40248C(qword_40F240, \"localtime\", 1LL);\n}\nif ( qword_40F238 )\n{\nsub_401551((__int64)\"command line\", 1);\nsub_40248C(qword_40F238, \"posixrules\", 1LL);\n}\nif ( byte_40E1C5 && (ferror(stderr) || fclose(stderr)) )\nresult = 1LL;\nelse\nresult = byte_40E1C4 != 0;\nreturn result;\n}\n\n\n\nQ:[a2,a3,a1,v3,v10,v9,v14,j,sub_401791,sub_401874,sub_4016CA,sub_402E6B,sub_40830A,sub_40293D,sub_4018D3,sub_406EA5,sub_401551,sub_40248C,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v3': 'result', 'v10': 'envp', 'v9': 'argv', 'v14': 'c', 'j': 'ia', 'sub_401791': 'close_file', 'sub_401874': 'usage', 'sub_4016CA': 'warning', 'sub_402E6B': 'infile', 'sub_40830A': 'adjleap', 'sub_40293D': 'associate', 'sub_4018D3': 'change_directory', 'sub_406EA5': 'outzone', 'sub_401551': 'eat', 'sub_40248C': 'dolink'}"}
prefix_len_mask
eec34215ebfdb5a3218eeb77b1546d6d001312b1ea4361ffbda4ac1d3e99e353
tcp-acceleration-service
FlexTOE
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/eec34215ebfdb5a3218eeb77b1546d6d001312b1ea4361ffbda4ac1d3e99e353_eec34215ebfdb5a3218eeb77b1546d6d001312b1ea4361ffbda4ac1d3e99e353.jsonl.gz", "strip_func_name": "sub_406989", "query": "\n\n\n__int64 __fastcall sub_406989(char a1)\n{\nreturn (unsigned int)-(1 << (32 - a1));\n}\n\n\n\nQ:[a1,sub_406989,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'len', 'sub_406989': 'prefix_len_mask'}"}
_generator_gcsweep
efec0669d8928f35c10d441625aa516e9c89e71dc034afe38aaa2fe73d307505
klange
ponyos
NA
static void _generator_gcsweep(KrkInstance * self) { free(((struct generator*)self)->args); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_465ED0", "function_addr": 4611792, "binary_name": "efec0669d8928f35c10d441625aa516e9c89e71dc034afe38aaa2fe73d307505.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+40h]"], [6, "mov rdi, rax"], [7, "call _free"], [8, "nop"], [9, "leave"], [10, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [10, 7]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/efec0669d8928f35c10d441625aa516e9c89e71dc034afe38aaa2fe73d307505_efec0669d8928f35c10d441625aa516e9c89e71dc034afe38aaa2fe73d307505.jsonl.gz", "strip_func_name": "sub_465ED0", "query": "\n\n\nvoid __fastcall sub_465ED0(__int64 a1)\n{\nfree(*(void **)(a1 + 64));\n}\n\n\n\nQ:[a1,sub_465ED0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'self', 'sub_465ED0': '_generator_gcsweep'}"}
mbedtls_safer_memcmp
dd1bb0f93352aea0ff0f7e0a20f97ad9676f10a40a8c4b9354a3f6316a448e84
FreeRTOS
coreMQTT-Agent-Demos
NA
static inline int mbedtls_safer_memcmp( const void *a, const void *b, size_t n ) { size_t i; const unsigned char *A = (const unsigned char *) a; const unsigned char *B = (const unsigned char *) b; unsigned char diff = 0; for( i = 0; i < n; i++ ) diff |= A[i] ^ B[i]; return( diff ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45A29E", "function_addr": 4563614, "binary_name": "dd1bb0f93352aea0ff0f7e0a20f97ad9676f10a40a8c4b9354a3f6316a448e84.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_28], rdi"], [3, "mov [rbp+var_30], rsi"], [4, "mov [rbp+var_38], rdx"], [5, "mov rax, [rbp+var_28]"], [6, "mov [rbp+var_18], rax"], [7, "mov rax, [rbp+var_30]"], [8, "mov [rbp+var_20], rax"], [9, "mov [rbp+var_9], 0"], [10, "mov [rbp+var_8], 0"], [11, "jmp short loc_45A2F2"], [12, "mov rdx, [rbp+var_18]"], [13, "mov rax, [rbp+var_8]"], [14, "add rax, rdx"], [15, "movzx edx, byte ptr [rax]"], [16, "mov rcx, [rbp+var_20]"], [17, "mov rax, [rbp+var_8]"], [18, "add rax, rcx"], [19, "movzx eax, byte ptr [rax]"], [20, "xor eax, edx"], [21, "or [rbp+var_9], al"], [22, "add [rbp+var_8], 1"], [23, "mov rax, [rbp+var_8]"], [24, "cmp rax, [rbp+var_38]"], [25, "jb short loc_45A2CC"], [26, "movzx eax, [rbp+var_9]"], [27, "pop rbp"], [28, "retn"]], "data_dep": [[5, 2], [6, 5], [7, 3], [8, 7], [12, 6], [13, 10], [13, 22], [14, 13], [14, 12], [15, 14], [16, 8], [17, 10], [17, 22], [18, 17], [18, 16], [19, 18], [20, 19], [20, 15], [21, 9], [21, 21], [21, 20], [22, 10], [22, 22], [23, 10], [23, 22], [24, 23], [24, 4], [25, 24], [26, 21], [26, 9], [27, 0], [28, 26]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/dd1bb0f93352aea0ff0f7e0a20f97ad9676f10a40a8c4b9354a3f6316a448e84_dd1bb0f93352aea0ff0f7e0a20f97ad9676f10a40a8c4b9354a3f6316a448e84.jsonl.gz", "strip_func_name": "sub_45A29E", "query": "\n\n\n__int64 __fastcall sub_45A29E(__int64 a1, __int64 a2, unsigned __int64 a3)\n{\nunsigned __int8 v4; // [rsp+2Fh] [rbp-9h]\nunsigned __int64 i; // [rsp+30h] [rbp-8h]\n\nv4 = 0;\nfor ( i = 0LL; i < a3; ++i )\nv4 |= *(_BYTE *)(a1 + i) ^ *(_BYTE *)(a2 + i);\nreturn v4;\n}\n\n\n\nQ:[a3,a1,a2,v4,sub_45A29E,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'n', 'a1': 'a', 'a2': 'b', 'v4': 'diff', 'sub_45A29E': 'mbedtls_safer_memcmp'}"}
can_list
04452f3779b2526a171f2634a73f77e1977e56e76a8851784b367f85afc424d6
open-simh
simtools
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/04452f3779b2526a171f2634a73f77e1977e56e76a8851784b367f85afc424d6_04452f3779b2526a171f2634a73f77e1977e56e76a8851784b367f85afc424d6.jsonl.gz", "strip_func_name": "sub_40BD33", "query": "\n\n\n__int64 sub_40BD33()\n{\n__int64 result; // rax\n\nLODWORD(result) = stream && (dword_41FCE0 > 0 || dword_421820);\nreturn (unsigned int)result;\n}\n\n\n\nQ:[sub_40BD33,]\nAssistant: ", "hints": "[]", "response": "{'sub_40BD33': 'can_list'}"}
htlock_release
28f6ad65f7fa66250e563a876154972b2aa775cfae3dbaebca36f423e39d898a
LPD-EPFL
ASCYLIB
NA
void htlock_release(htlock_t* l) { htlock_local_t* localp = l->local[my_node]; #if defined(OPTERON_OPTIMIZE) PREFETCHW(localp); #endif int32_t local_cur = localp->cur; int32_t local_nxt = CAS_U32((volatile uint32_t*) &localp->nxt, local_cur, 0); if (local_cur == 0 || local_cur == local_nxt) /* global */ { #if defined(OPTERON_OPTIMIZE) PREFETCHW((l->global)); PREFETCHW(localp); #endif localp->cur = NB_TICKETS_LOCAL; l->global->cur++; } else /* local */ { #if defined(OPTERON_OPTIMIZE) PREFETCHW(localp); #endif localp->cur = local_cur - 1; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401EA4", "function_addr": 4202148, "binary_name": "28f6ad65f7fa66250e563a876154972b2aa775cfae3dbaebca36f423e39d898a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov edx, fs:0FFFFFFFFFFFFFF68h"], [4, "mov rax, [rbp+var_18]"], [5, "mov edx, edx"], [6, "mov rax, [rax+rdx*8+8]"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_8]"], [9, "mov eax, [rax+4]"], [10, "mov [rbp+var_C], eax"], [11, "mov eax, [rbp+var_C]"], [12, "mov rdx, [rbp+var_8]"], [13, "mov ecx, 0"], [14, "lock cmpxchg [rdx], ecx"], [15, "mov [rbp+var_10], eax"], [16, "cmp [rbp+var_C], 0"], [17, "jz short loc_401EEE"], [18, "mov eax, [rbp+var_C]"], [19, "cmp eax, [rbp+var_10]"], [20, "jnz short loc_401F0B"], [21, "mov rax, [rbp+var_8]"], [22, "mov dword ptr [rax+4], 80h"], [23, "mov rax, [rbp+var_18]"], [24, "mov rax, [rax]"], [25, "mov edx, [rax+4]"], [26, "add edx, 1"], [27, "mov [rax+4], edx"], [28, "jmp short loc_401F19"], [29, "mov eax, [rbp+var_C]"], [30, "lea edx, [rax-1]"], [31, "mov rax, [rbp+var_8]"], [32, "mov [rax+4], edx"], [33, "nop"], [34, "nop"], [35, "pop rbp"], [36, "retn"]], "data_dep": [[4, 2], [5, 3], [6, 4], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 7], [14, 13], [15, 11], [16, 10], [17, 16], [18, 10], [19, 18], [19, 15], [20, 19], [21, 7], [22, 21], [23, 2], [24, 23], [24, 22], [25, 22], [25, 24], [26, 25], [27, 24], [27, 26], [29, 10], [30, 12], [30, 29], [31, 7], [32, 31], [32, 30], [35, 0], [36, 31], [36, 24]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/28f6ad65f7fa66250e563a876154972b2aa775cfae3dbaebca36f423e39d898a_28f6ad65f7fa66250e563a876154972b2aa775cfae3dbaebca36f423e39d898a.jsonl.gz", "strip_func_name": "sub_401EA4", "query": "\n\n\n__int64 __fastcall sub_401EA4(__int64 *a1)\n{\n__int64 result; // rax\nsigned __int32 v2; // [rsp+8h] [rbp-10h]\nsigned __int32 v3; // [rsp+Ch] [rbp-Ch]\n__int64 v4; // [rsp+10h] [rbp-8h]\n\nv4 = a1[__readfsdword(0xFFFFFF68) + 1];\nv3 = *(_DWORD *)(v4 + 4);\nv2 = _InterlockedCompareExchange((volatile signed __int32 *)v4, 0, v3);\nif ( v3 && v3 != v2 )\n{\nresult = v4;\n*(_DWORD *)(v4 + 4) = v3 - 1;\n}\nelse\n{\n*(_DWORD *)(v4 + 4) = 128;\nresult = *a1;\n++*(_DWORD *)(*a1 + 4);\n}\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,v4,sub_401EA4,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'l', 'v2': 'local_nxt', 'v3': 'local_cur', 'v4': 'localp', 'sub_401EA4': 'htlock_release'}"}
sm_pairing_packet_get_max_encryption_key_size
5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a
bluekitchen
btstack
NA
static inline uint8_t sm_pairing_packet_get_max_encryption_key_size(sm_pairing_packet_t packet){ return packet[4]; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42C218", "function_addr": 4375064, "binary_name": "5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov rax, [rbp+var_8]"], [4, "movzx eax, byte ptr [rax+4]"], [5, "pop rbp"], [6, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 0], [6, 4]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a_5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a.jsonl.gz", "strip_func_name": "sub_42C218", "query": "\n\n\n__int64 __fastcall sub_42C218(__int64 a1)\n{\nreturn *(unsigned __int8 *)(a1 + 4);\n}\n\n\n\nQ:[a1,sub_42C218,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'packet', 'sub_42C218': 'sm_pairing_packet_get_max_encryption_key_size'}"}
load_ptable_flash
252818bc5ed0beb9415d5d771c24cc24721386a04ac6ccdf6ba5672d5ecfa737
forth32
qtools
NA
int load_ptable_flash() { unsigned int udsize=512; unsigned int blk; unsigned char buf[4096]; if (get_udflag()) udsize=516; for (blk=0;blk<12;blk++) { // Ищем блок с картами flash_read(blk, 0, 0); // Страница 0 сектор 0 - заголовок блока MIBIB memread(buf,sector_buf, udsize); // проверяем сигнатуру заголовка MIBIB if (memcmp(buf,"\xac\x9f\x56\xfe\x7a\x12\x7f\xcd",8) != 0) continue; // сигнатура не найдена - ищем дальше // найден блок MiBIB - страница 1 содержит системную таблицу разделов // загружаем эту страницу в наш буфер flash_read(blk, 1, 0); // Страница 1 сектор 0 - системная таблица разделов memread(buf,sector_buf, udsize); mempoke(nand_exec,1); // сектор 1 - продолжение таблицы nandwait(); memread(buf+udsize,sector_buf, udsize); // копируем образ таблицы в структуру memcpy(&fptable,buf,sizeof(fptable)); // проверяем сигнатуру системной таблицы if ((fptable.magic1 != FLASH_PART_MAGIC1) || (fptable.magic2 != FLASH_PART_MAGIC2)) continue; // нашли таблицу validpart=1; // корректируем длину последнего раздела if ((maxblock != 0) && (fptable.part[fptable.numparts-1].len == 0xffffffff)) fptable.part[fptable.numparts-1].len=maxblock-fptable.part[fptable.numparts-1].offset; // если длина - FFFF, то есть растущий раздел return 1; // все - таблица найдна, более тут делать нечего } validpart=0; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405AD5", "function_addr": 4217557, "binary_name": "252818bc5ed0beb9415d5d771c24cc24721386a04ac6ccdf6ba5672d5ecfa737.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 1010h"], [3, "mov [rbp+var_4], 200h"], [4, "mov eax, 0"], [5, "call sub_405A5A"], [6, "test eax, eax"], [7, "jz short loc_405AFC"], [8, "mov [rbp+var_4], 204h"], [9, "mov [rbp+var_8], 0"], [10, "jmp loc_405C95"], [11, "mov eax, [rbp+var_8]"], [12, "mov edx, 0"], [13, "mov esi, 0"], [14, "mov edi, eax"], [15, "call sub_40325D"], [16, "mov edx, [rbp+var_4]"], [17, "mov eax, cs:dword_4103C8"], [18, "mov ecx, eax"], [19, "lea rax, [rbp+s1]"], [20, "mov esi, ecx"], [21, "mov rdi, rax"], [22, "call sub_404750"], [23, "lea rax, [rbp+s1]"], [24, "mov edx, 8"], [25, "mov esi, offset unk_409AD0"], [26, "mov rdi, rax"], [27, "call _memcmp"], [28, "test eax, eax"], [29, "jnz loc_405C8D"], [30, "mov eax, [rbp+var_8]"], [31, "mov edx, 0"], [32, "mov esi, 1"], [33, "mov edi, eax"], [34, "call sub_40325D"], [35, "mov edx, [rbp+var_4]"], [36, "mov eax, cs:dword_4103C8"], [37, "mov ecx, eax"], [38, "lea rax, [rbp+s1]"], [39, "mov esi, ecx"], [40, "mov rdi, rax"], [41, "call sub_404750"], [42, "mov eax, cs:dword_4103AC"], [43, "mov esi, 1"], [44, "mov edi, eax"], [45, "call sub_404AE8"], [46, "mov eax, 0"], [47, "call sub_40312C"], [48, "mov eax, [rbp+var_4]"], [49, "mov edx, cs:dword_4103C8"], [50, "mov esi, edx"], [51, "mov edx, [rbp+var_4]"], [52, "lea rcx, [rbp+s1]"], [53, "add rcx, rdx"], [54, "mov edx, eax"], [55, "mov rdi, rcx"], [56, "call sub_404750"], [57, "lea rax, [rbp+s1]"], [58, "mov edx, 390h"], [59, "mov rsi, rax"], [60, "mov edi, offset dword_410400"], [61, "call _memcpy"], [62, "mov eax, cs:dword_410400"], [63, "cmp eax, 55EE73AAh"], [64, "jnz loc_405C90"], [65, "mov eax, cs:dword_410404"], [66, "cmp eax, 0E35EBDDBh"], [67, "jnz loc_405C90"], [68, "mov cs:dword_410790, 1"], [69, "mov eax, cs:dword_40C488"], [70, "test eax, eax"], [71, "jz short loc_405C86"], [72, "mov eax, cs:dword_41040C"], [73, "sub eax, 1"], [74, "mov edx, eax"], [75, "mov rax, rdx"], [76, "shl rax, 3"], [77, "sub rax, rdx"], [78, "shl rax, 2"], [79, "add rax, 410424h"], [80, "mov eax, [rax]"], [81, "cmp eax, 0FFFFFFFFh"], [82, "jnz short loc_405C86"], [83, "mov edx, cs:dword_40C488"], [84, "mov eax, cs:dword_41040C"], [85, "sub eax, 1"], [86, "mov ecx, eax"], [87, "mov rax, rcx"], [88, "shl rax, 3"], [89, "sub rax, rcx"], [90, "shl rax, 2"], [91, "add rax, 410420h"], [92, "mov ecx, [rax]"], [93, "mov eax, cs:dword_41040C"], [94, "sub eax, 1"], [95, "sub edx, ecx"], [96, "mov ecx, eax"], [97, "mov rax, rcx"], [98, "shl rax, 3"], [99, "sub rax, rcx"], [100, "shl rax, 2"], [101, "add rax, 410424h"], [102, "mov [rax], edx"], [103, "mov eax, 1"], [104, "jmp short locret_405CAE"], [105, "nop"], [106, "jmp short loc_405C91"], [107, "nop"], [108, "add [rbp+var_8], 1"], [109, "cmp [rbp+var_8], 0Bh"], [110, "jbe loc_405B08"], [111, "mov cs:dword_410790, 0"], [112, "mov eax, 0"], [113, "leave"], [114, "retn"]], "data_dep": [[6, 5], [7, 6], [11, 108], [11, 9], [14, 11], [16, 8], [16, 3], [18, 17], [19, 17], [20, 18], [21, 19], [23, 22], [26, 23], [28, 27], [29, 28], [30, 9], [30, 108], [33, 30], [35, 8], [35, 3], [37, 36], [38, 36], [39, 37], [40, 38], [44, 42], [48, 8], [48, 3], [50, 49], [51, 8], [51, 3], [52, 37], [53, 52], [53, 51], [54, 48], [55, 53], [57, 56], [59, 57], [63, 62], [64, 63], [66, 65], [67, 66], [70, 69], [71, 70], [73, 72], [74, 73], [75, 74], [76, 75], [77, 76], [77, 74], [78, 77], [79, 78], [80, 79], [81, 80], [82, 81], [85, 84], [86, 85], [87, 86], [88, 87], [89, 86], [89, 88], [90, 89], [91, 90], [92, 91], [94, 93], [95, 83], [95, 92], [96, 94], [97, 96], [98, 97], [99, 96], [99, 98], [100, 99], [101, 100], [102, 95], [102, 101], [108, 108], [108, 9], [109, 108], [109, 9], [110, 109], [114, 103], [114, 112]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/252818bc5ed0beb9415d5d771c24cc24721386a04ac6ccdf6ba5672d5ecfa737_252818bc5ed0beb9415d5d771c24cc24721386a04ac6ccdf6ba5672d5ecfa737.jsonl.gz", "strip_func_name": "sub_405AD5", "query": "\n\n\n__int64 sub_405AD5()\n{\nchar s1[4104]; // [rsp+0h] [rbp-1010h] BYREF\nunsigned int i; // [rsp+1008h] [rbp-8h]\nint v3; // [rsp+100Ch] [rbp-4h]\n\nv3 = 512;\nif ( (unsigned int)sub_405A5A() )\nv3 = 516;\nfor ( i = 0; ; ++i )\n{\nif ( i > 0xB )\n{\ndword_410790 = 0;\nreturn 0LL;\n}\nsub_40325D(i, 0, 0);\nsub_404750((__int64)s1, dword_4103C8, v3);\nif ( !memcmp(s1, &unk_409AD0, 8uLL) )\n{\nsub_40325D(i, 1, 0);\nsub_404750((__int64)s1, dword_4103C8, v3);\nsub_404AE8(dword_4103AC, 1);\nsub_40312C();\nsub_404750((__int64)&s1[v3], dword_4103C8, v3);\nmemcpy(&dword_410400, s1, 0x390uLL);\nif ( dword_410400 == 1441690538 && dword_410404 == -480330277 )\nbreak;\n}\n}\ndword_410790 = 1;\nif ( dword_40C488 )\n{\nif ( dword_410420[7 * (dword_41040C - 1) + 1] == -1 )\ndword_410420[7 * (dword_41040C - 1) + 1] = dword_40C488 - dword_410420[7 * (dword_41040C - 1)];\n}\nreturn 1LL;\n}\n\n\n\nQ:[s1,i,v3,sub_405AD5,sub_405A5A,sub_40325D,sub_404750,sub_404AE8,sub_40312C,]\nAssistant: ", "hints": "[]", "response": "{'s1': 'buf', 'i': 'blk', 'v3': 'udsize', 'sub_405AD5': 'load_ptable_flash', 'sub_405A5A': 'get_udflag', 'sub_40325D': 'flash_read', 'sub_404750': 'memread', 'sub_404AE8': 'mempoke', 'sub_40312C': 'nandwait'}"}
gap_delete_all_link_keys
1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca
micropython
micropython-unicorn
NA
void gap_delete_all_link_keys(void){ bd_addr_t addr; link_key_t link_key; link_key_type_t type; btstack_link_key_iterator_t it; int ok = gap_link_key_iterator_init(&it); if (!ok) { log_error("could not initialize iterator"); return; } while (gap_link_key_iterator_get_next(&it, addr, link_key, &type)){ gap_drop_link_key_for_bd_addr(addr); } gap_link_key_iterator_done(&it); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407835", "function_addr": 4225077, "binary_name": "1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "lea rax, [rbp+var_30]"], [4, "mov rdi, rax"], [5, "call sub_4078A8"], [6, "mov [rbp+var_4], eax"], [7, "cmp [rbp+var_4], 0"], [8, "jnz short loc_40787E"], [9, "mov ecx, 193h"], [10, "mov edx, offset aHciC"], [11, "mov esi, offset aSUCouldNotInit"], [12, "mov edi, 2"], [13, "mov eax, 0"], [14, "call sub_412F63"], [15, "jmp short locret_4078A6"], [16, "lea rax, [rbp+var_A]"], [17, "mov rdi, rax"], [18, "call sub_407751"], [19, "lea rcx, [rbp+var_24]"], [20, "lea rdx, [rbp+var_20]"], [21, "lea rsi, [rbp+var_A]"], [22, "lea rax, [rbp+var_30]"], [23, "mov rdi, rax"], [24, "call sub_407900"], [25, "test eax, eax"], [26, "jnz short loc_407872"], [27, "lea rax, [rbp+var_30]"], [28, "mov rdi, rax"], [29, "call sub_407956"], [30, "leave"], [31, "retn"]], "data_dep": [[4, 3], [6, 5], [7, 6], [8, 7], [16, 25], [17, 16], [19, 19], [20, 20], [21, 21], [22, 18], [22, 5], [23, 22], [25, 24], [26, 25], [27, 25], [28, 27], [31, 14], [31, 29]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca_1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.jsonl.gz", "strip_func_name": "sub_407835", "query": "\n\n\n__int64 sub_407835()\n{\nint v0; // er8\nint v1; // er9\nchar v3[12]; // [rsp+0h] [rbp-30h] BYREF\nchar v4[4]; // [rsp+Ch] [rbp-24h] BYREF\nchar v5[22]; // [rsp+10h] [rbp-20h] BYREF\nchar v6[6]; // [rsp+26h] [rbp-Ah] BYREF\n\nif ( !(unsigned int)sub_4078A8(v3) )\nreturn sub_412F63(2, (unsigned int)\"%s.%u: could not initialize iterator\", (unsigned int)\"hci.c\", 403, v0, v1);\nwhile ( (unsigned int)sub_407900(v3, v6, v5, v4) )\nsub_407751((__int64)v6);\nreturn sub_407956(v3);\n}\n\n\n\nQ:[v3,v4,v5,v6,sub_407835,sub_4078A8,sub_412F63,sub_407900,sub_407751,sub_407956,]\nAssistant: ", "hints": "[]", "response": "{'v3': 'it', 'v4': 'type', 'v5': 'link_key', 'v6': 'addr', 'sub_407835': 'gap_delete_all_link_keys', 'sub_4078A8': 'gap_link_key_iterator_init', 'sub_412F63': 'hci_dump_log', 'sub_407900': 'gap_link_key_iterator_get_next', 'sub_407751': 'gap_drop_link_key_for_bd_addr', 'sub_407956': 'gap_link_key_iterator_done'}"}
sm_sc_start_calculating_local_confirm
1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586
bluekitchen
btstack
NA
static void sm_sc_start_calculating_local_confirm(sm_connection_t * sm_conn){ if (setup->sm_stk_generation_method == OOB){ sm_conn->sm_engine_state = SM_SC_W2_CMAC_FOR_CONFIRMATION; } else { btstack_crypto_random_generate(&sm_crypto_random_request, setup->sm_local_nonce, 16, &sm_handle_random_result_sc_next_w2_cmac_for_confirmation, (void *)(uintptr_t) sm_conn->sm_handle); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42FAD1", "function_addr": 4389585, "binary_name": "1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.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:off_4874E0"], [5, "mov eax, [rax+28h]"], [6, "cmp eax, 5"], [7, "jnz short loc_42FAF9"], [8, "mov rax, [rbp+var_8]"], [9, "mov dword ptr [rax+18h], 34h "], [10, "jmp short loc_42FB2D"], [11, "mov rax, [rbp+var_8]"], [12, "movzx eax, word ptr [rax]"], [13, "movzx eax, ax"], [14, "mov rdx, rax"], [15, "mov rax, cs:off_4874E0"], [16, "add rax, 10Bh"], [17, "mov r8, rdx"], [18, "mov ecx, offset sub_433A41"], [19, "mov edx, 10h"], [20, "mov rsi, rax"], [21, "mov edi, offset unk_488F80"], [22, "call sub_42AA5F"], [23, "nop"], [24, "leave"], [25, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 3], [9, 8], [11, 3], [12, 11], [13, 12], [14, 13], [16, 15], [17, 14], [20, 16], [25, 22], [25, 8]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586_1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.jsonl.gz", "strip_func_name": "sub_42FAD1", "query": "\n\n\nchar __fastcall sub_42FAD1(unsigned __int16 *a1)\n{\nchar result; // al\n\nif ( *((_DWORD *)off_4874E0 + 10) != 5 )\nreturn sub_42AA5F((__int64)&unk_488F80, (__int64)off_4874E0 + 267, 16, (__int64)sub_433A41, *a1);\nresult = (char)a1;\n*((_DWORD *)a1 + 6) = 52;\nreturn result;\n}\n\n\n\nQ:[a1,sub_42FAD1,sub_42AA5F,sub_433A41,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'sm_conn', 'sub_42FAD1': 'sm_sc_start_calculating_local_confirm', 'sub_42AA5F': 'btstack_crypto_random_generate', 'sub_433A41': 'sm_handle_random_result_sc_next_w2_cmac_for_confirmation'}"}
GetIdleWorker
fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602
EnterpriseDB
zheap
NA
static int GetIdleWorker(ParallelState *pstate) { int i; for (i = 0; i < pstate->numWorkers; i++) { if (pstate->parallelSlot[i].workerStatus == WRKR_IDLE) return i; } return NO_SLOT; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4460C6", "function_addr": 4481222, "binary_name": "fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_4], 0"], [4, "jmp short loc_446105"], [5, "mov rax, [rbp+var_18]"], [6, "mov rcx, [rax+10h]"], [7, "mov eax, [rbp+var_4]"], [8, "movsxd rdx, eax"], [9, "mov rax, rdx"], [10, "shl rax, 3"], [11, "sub rax, rdx"], [12, "shl rax, 3"], [13, "add rax, rcx"], [14, "mov eax, [rax]"], [15, "test eax, eax"], [16, "jnz short loc_446101"], [17, "mov eax, [rbp+var_4]"], [18, "jmp short loc_446115"], [19, "add [rbp+var_4], 1"], [20, "mov rax, [rbp+var_18]"], [21, "mov eax, [rax]"], [22, "cmp [rbp+var_4], eax"], [23, "jl short loc_4460D7"], [24, "mov eax, 0FFFFFFFFh"], [25, "pop rbp"], [26, "retn"]], "data_dep": [[5, 2], [6, 5], [7, 19], [7, 3], [8, 7], [9, 8], [10, 9], [11, 8], [11, 10], [12, 11], [13, 6], [13, 12], [14, 13], [15, 14], [16, 15], [17, 3], [17, 19], [19, 3], [19, 19], [20, 2], [21, 20], [22, 19], [22, 3], [22, 21], [23, 22], [25, 0], [26, 24], [26, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602_fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602.jsonl.gz", "strip_func_name": "sub_4460C6", "query": "\n\n\n__int64 __fastcall sub_4460C6(__int64 a1)\n{\nunsigned int i; // [rsp+14h] [rbp-4h]\n\nfor ( i = 0; (signed int)i < *(_DWORD *)a1; ++i )\n{\nif ( !*(_DWORD *)(*(_QWORD *)(a1 + 16) + 56LL * (int)i) )\nreturn i;\n}\nreturn 0xFFFFFFFFLL;\n}\n\n\n\nQ:[a1,sub_4460C6,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pstate', 'sub_4460C6': 'GetIdleWorker'}"}
btstack_crypto_ecc_p256_calculate_dhkey_software
1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca
micropython
micropython-unicorn
NA
static void btstack_crypto_ecc_p256_calculate_dhkey_software(btstack_crypto_ecc_p256_t * btstack_crypto_ec_p192){ memset(btstack_crypto_ec_p192->dhkey, 0, 32); #ifdef USE_MICRO_ECC_P256 #if uECC_SUPPORTS_secp256r1 // standard version uECC_shared_secret(btstack_crypto_ec_p192->public_key, btstack_crypto_ecc_p256_d, btstack_crypto_ec_p192->dhkey, uECC_secp256r1()); #else // static version uECC_shared_secret(btstack_crypto_ec_p192->public_key, btstack_crypto_ecc_p256_d, btstack_crypto_ec_p192->dhkey); #endif #endif #ifdef USE_MBEDTLS_ECC_P256 // da * Pb mbedtls_mpi d; mbedtls_ecp_point Q; mbedtls_ecp_point DH; mbedtls_mpi_init(&d); mbedtls_ecp_point_init(&Q); mbedtls_ecp_point_init(&DH); mbedtls_mpi_read_binary(&d, btstack_crypto_ecc_p256_d, 32); mbedtls_mpi_read_binary(&Q.X, &btstack_crypto_ec_p192->public_key[0] , 32); mbedtls_mpi_read_binary(&Q.Y, &btstack_crypto_ec_p192->public_key[32], 32); mbedtls_mpi_lset(&Q.Z, 1); mbedtls_ecp_mul(&mbedtls_ec_group, &DH, &d, &Q, NULL, NULL); mbedtls_mpi_write_binary(&DH.X, btstack_crypto_ec_p192->dhkey, 32); mbedtls_ecp_point_free(&DH); mbedtls_mpi_free(&d); mbedtls_ecp_point_free(&Q); #endif log_info("dhkey"); log_info_hexdump(btstack_crypto_ec_p192->dhkey, 32); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_419F32", "function_addr": 4300594, "binary_name": "1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.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+28h]"], [6, "mov edx, 20h "], [7, "mov esi, 0"], [8, "mov rdi, rax"], [9, "call _memset"], [10, "mov rax, [rbp+var_8]"], [11, "mov rdx, [rax+28h]"], [12, "mov rax, [rbp+var_8]"], [13, "mov rax, [rax+20h]"], [14, "mov esi, offset qword_474560"], [15, "mov rdi, rax"], [16, "call sub_41D5D0"], [17, "mov ecx, 24Fh"], [18, "mov edx, offset aBtstackCryptoC"], [19, "mov esi, offset aSUDhkey"], [20, "mov edi, 1"], [21, "mov eax, 0"], [22, "call sub_412F63"], [23, "mov rax, [rbp+var_8]"], [24, "mov rax, [rax+28h]"], [25, "mov esi, 20h "], [26, "mov rdi, rax"], [27, "call sub_40666D"], [28, "nop"], [29, "leave"], [30, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 5], [10, 3], [11, 10], [12, 3], [13, 12], [15, 13], [23, 3], [24, 23], [26, 24], [30, 27]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca_1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.jsonl.gz", "strip_func_name": "sub_419F32", "query": "\n\n\n__int64 __fastcall sub_419F32(__int64 a1)\n{\n__int64 v1; // r8\n__int64 v2; // r9\n__int64 v3; // rdx\n__int64 v4; // rcx\n__int64 v5; // r8\nint v6; // er9\n\nmemset(*(void **)(a1 + 40), 0, 0x20uLL);\nsub_41D5D0(*(_QWORD *)(a1 + 32), &qword_474560, *(_QWORD *)(a1 + 40));\nsub_412F63(1, \"%s.%u: dhkey\", (__int64)\"btstack_crypto.c\", 591LL, v1, v2);\nreturn sub_40666D(*(_QWORD *)(a1 + 40), 32, v3, v4, v5, v6);\n}\n\n\n\nQ:[a1,sub_419F32,sub_41D5D0,sub_412F63,sub_40666D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'btstack_crypto_ec_p192', 'sub_419F32': 'btstack_crypto_ecc_p256_calculate_dhkey_software', 'sub_41D5D0': 'uECC_shared_secret', 'sub_412F63': 'hci_dump_log', 'sub_40666D': 'log_info_hexdump'}"}
vb2_sha512_update
a97a959f5a5bbcfbc13eaf601fe5a3d4d6f443efbaca9a1e6880d3b64fa82be1
Telecominfraproject
OpenCellular
NA
void vb2_sha512_update(struct vb2_sha512_context *ctx, const uint8_t *data, uint32_t size) { unsigned int block_nb; unsigned int new_size, rem_size, tmp_size; const uint8_t *shifted_data; tmp_size = VB2_SHA512_BLOCK_SIZE - ctx->size; rem_size = size < tmp_size ? size : tmp_size; memcpy(&ctx->block[ctx->size], data, rem_size); if (ctx->size + size < VB2_SHA512_BLOCK_SIZE) { ctx->size += size; return; } new_size = size - rem_size; block_nb = new_size / VB2_SHA512_BLOCK_SIZE; shifted_data = data + rem_size; vb2_sha512_transform(ctx, ctx->block, 1); vb2_sha512_transform(ctx, shifted_data, block_nb); rem_size = new_size % VB2_SHA512_BLOCK_SIZE; memcpy(ctx->block, &shifted_data[block_nb << 7], rem_size); ctx->size = rem_size; ctx->total_size += (block_nb + 1) << 7; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40692B", "function_addr": 4221227, "binary_name": "a97a959f5a5bbcfbc13eaf601fe5a3d4d6f443efbaca9a1e6880d3b64fa82be1.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+src], rsi"], [5, "mov [rbp+var_34], edx"], [6, "mov rax, [rbp+var_28]"], [7, "mov edx, [rax+44h]"], [8, "mov eax, 80h"], [9, "sub eax, edx"], [10, "mov dword ptr [rbp+n+4], eax"], [11, "mov eax, [rbp+var_34]"], [12, "cmp dword ptr [rbp+n+4], eax"], [13, "cmovbe eax, dword ptr [rbp+n+4]"], [14, "mov dword ptr [rbp+n], eax"], [15, "mov edx, dword ptr [rbp+n]"], [16, "mov rax, [rbp+var_28]"], [17, "mov eax, [rax+44h]"], [18, "mov eax, eax"], [19, "lea rcx, [rax+40h]"], [20, "mov rax, [rbp+var_28]"], [21, "add rax, rcx"], [22, "lea rcx, [rax+8]"], [23, "mov rax, [rbp+src]"], [24, "mov rsi, rax"], [25, "mov rdi, rcx"], [26, "call _memcpy"], [27, "mov rax, [rbp+var_28]"], [28, "mov edx, [rax+44h]"], [29, "mov eax, [rbp+var_34]"], [30, "add eax, edx"], [31, "cmp eax, 7Fh"], [32, "ja short loc_4069AF"], [33, "mov rax, [rbp+var_28]"], [34, "mov edx, [rax+44h]"], [35, "mov eax, [rbp+var_34]"], [36, "add edx, eax"], [37, "mov rax, [rbp+var_28]"], [38, "mov [rax+44h], edx"], [39, "jmp locret_406A53"], [40, "mov eax, [rbp+var_34]"], [41, "sub eax, dword ptr [rbp+n]"], [42, "mov [rbp+var_C], eax"], [43, "mov eax, [rbp+var_C]"], [44, "shr eax, 7"], [45, "mov [rbp+var_10], eax"], [46, "mov edx, dword ptr [rbp+n]"], [47, "mov rax, [rbp+src]"], [48, "add rax, rdx"], [49, "mov [rbp+var_18], rax"], [50, "mov rax, [rbp+var_28]"], [51, "lea rcx, [rax+48h]"], [52, "mov rax, [rbp+var_28]"], [53, "mov edx, 1"], [54, "mov rsi, rcx"], [55, "mov rdi, rax"], [56, "call sub_4064D1"], [57, "mov edx, [rbp+var_10]"], [58, "mov rcx, [rbp+var_18]"], [59, "mov rax, [rbp+var_28]"], [60, "mov rsi, rcx"], [61, "mov rdi, rax"], [62, "call sub_4064D1"], [63, "mov eax, [rbp+var_C]"], [64, "and eax, 7Fh"], [65, "mov dword ptr [rbp+n], eax"], [66, "mov eax, dword ptr [rbp+n]"], [67, "mov edx, [rbp+var_10]"], [68, "shl edx, 7"], [69, "mov ecx, edx"], [70, "mov rdx, [rbp+var_18]"], [71, "lea rsi, [rcx+rdx]"], [72, "mov rdx, [rbp+var_28]"], [73, "lea rcx, [rdx+48h]"], [74, "mov rdx, rax"], [75, "mov rdi, rcx"], [76, "call _memcpy"], [77, "mov rax, [rbp+var_28]"], [78, "mov edx, dword ptr [rbp+n]"], [79, "mov [rax+44h], edx"], [80, "mov rax, [rbp+var_28]"], [81, "mov edx, [rax+40h]"], [82, "mov eax, [rbp+var_10]"], [83, "add eax, 1"], [84, "shl eax, 7"], [85, "add edx, eax"], [86, "mov rax, [rbp+var_28]"], [87, "mov [rax+40h], edx"], [88, "leave"], [89, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 8], [9, 7], [10, 9], [11, 5], [12, 10], [12, 11], [13, 10], [13, 12], [14, 13], [15, 14], [16, 3], [17, 16], [18, 17], [19, 18], [20, 3], [21, 20], [21, 19], [22, 19], [22, 21], [23, 4], [24, 23], [25, 22], [27, 3], [28, 27], [29, 5], [30, 29], [30, 28], [31, 30], [32, 31], [33, 3], [34, 33], [35, 5], [36, 34], [36, 35], [37, 3], [38, 36], [38, 37], [40, 5], [41, 40], [41, 14], [42, 41], [43, 42], [44, 43], [45, 44], [46, 14], [47, 4], [48, 47], [48, 46], [49, 48], [50, 3], [51, 50], [51, 22], [52, 3], [54, 51], [55, 52], [57, 45], [58, 49], [59, 3], [60, 58], [61, 59], [63, 42], [64, 63], [65, 64], [66, 65], [67, 45], [68, 67], [69, 68], [70, 49], [71, 60], [71, 69], [72, 3], [73, 69], [73, 72], [74, 66], [75, 73], [77, 3], [78, 65], [79, 78], [79, 77], [80, 3], [81, 80], [81, 79], [82, 45], [83, 82], [84, 83], [85, 84], [85, 81], [86, 3], [87, 86], [87, 85], [89, 86], [89, 37]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a97a959f5a5bbcfbc13eaf601fe5a3d4d6f443efbaca9a1e6880d3b64fa82be1_a97a959f5a5bbcfbc13eaf601fe5a3d4d6f443efbaca9a1e6880d3b64fa82be1.jsonl.gz", "strip_func_name": "sub_40692B", "query": "\n\n\n_DWORD *__fastcall sub_40692B(_DWORD *a1, const void *a2, unsigned int a3)\n{\nunsigned int v3; // eax\n_DWORD *result; // rax\nunsigned int v5; // [rsp+Ch] [rbp-34h]\n__int64 v6; // [rsp+28h] [rbp-18h]\nint v7; // [rsp+30h] [rbp-10h]\nunsigned int n; // [rsp+38h] [rbp-8h]\n\nv5 = a3;\nv3 = a3;\nif ( 128 - a1[17] <= a3 )\nv3 = 128 - a1[17];\nn = v3;\nmemcpy((char *)a1 + (unsigned int)a1[17] + 72, a2, v3);\nif ( a1[17] + v5 > 0x7F )\n{\nv7 = (v5 - n) >> 7;\nv6 = (__int64)a2 + n;\nsub_4064D1((__int64)a1, (__int64)(a1 + 18), 1);\nsub_4064D1((__int64)a1, v6, v7);\nmemcpy(a1 + 18, (const void *)((unsigned int)(v7 << 7) + v6), ((_BYTE)v5 - (_BYTE)n) & 0x7F);\na1[17] = ((_BYTE)v5 - (_BYTE)n) & 0x7F;\nresult = a1;\na1[16] += (v7 + 1) << 7;\n}\nelse\n{\nresult = a1;\na1[17] += v5;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v5,v6,v7,n,sub_40692B,sub_4064D1,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'size', 'a1': 'ctx', 'a2': 'data', 'v5': 'sizea', 'v6': 'shifted_data', 'v7': 'block_nb', 'n': 'rem_size', 'sub_40692B': 'vb2_sha512_update', 'sub_4064D1': 'vb2_sha512_transform'}"}
add_z_fr
3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406
luser-dr00g
inca
NA
number_ptr add_z_fr(number_ptr x, number_ptr y){ number_ptr z = new_fr(); mpfr_add_z(z->fr.fr, y->fr.fr, x->z.z, MPFR_RNDN); return z; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_411C74", "function_addr": 4267124, "binary_name": "3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406.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 eax, 0"], [6, "call sub_411B04"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_18]"], [9, "lea rdx, [rax+8]"], [10, "mov rax, [rbp+var_20]"], [11, "lea rsi, [rax+8]"], [12, "mov rax, [rbp+var_8]"], [13, "add rax, 8"], [14, "mov ecx, 0"], [15, "mov rdi, rax"], [16, "call _mpfr_add_z"], [17, "mov rax, [rbp+var_8]"], [18, "leave"], [19, "retn"]], "data_dep": [[7, 6], [8, 3], [9, 8], [10, 4], [11, 10], [12, 7], [13, 12], [15, 13], [17, 7], [19, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406_3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406.jsonl.gz", "strip_func_name": "sub_411C74", "query": "\n\n\n_DWORD *sub_411C74()\n{\n_DWORD *v1; // [rsp+18h] [rbp-8h]\n\nv1 = sub_411B04();\nmpfr_add_z();\nreturn v1;\n}\n\n\n\nQ:[v1,sub_411C74,sub_411B04,]\nAssistant: ", "hints": "[]", "response": "{'v1': 'z', 'sub_411C74': 'add_z_fr', 'sub_411B04': 'new_fr'}"}
print_code_point_list
d653cedc509b0912954da6ce605ac1ad726df2892925942593effa0b57f10871
QubesOS
qubes-linux-utils
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d653cedc509b0912954da6ce605ac1ad726df2892925942593effa0b57f10871_d653cedc509b0912954da6ce605ac1ad726df2892925942593effa0b57f10871.jsonl.gz", "strip_func_name": "sub_403A81", "query": "\n\n\nint __fastcall sub_403A81(FILE *a1)\n{\nint v1; // eax\nint result; // eax\nchar v3; // [rsp+13h] [rbp-Dh]\nunsigned int i; // [rsp+14h] [rbp-Ch]\nunsigned int v5; // [rsp+18h] [rbp-8h]\nchar v6; // [rsp+1Fh] [rbp-1h]\n\nv6 = 0;\nv5 = 0;\nfor ( i = 32; i <= 0x10FFFF; ++i )\n{\nv3 = sub_4011D2(i);\nif ( v3 != v6 )\n{\nv6 = v3;\nif ( v3 )\n{\nv5 = i;\nif ( fprintf(a1, \" case 0x%06x\", i) != 17 )\nerr(1, \"fprintf()\");\n}\nelse if ( i - v5 <= 1 )\n{\nif ( fwrite(\":\\n\", 1uLL, 2uLL, a1) != 2 )\nerr(1, \"fprintf()\");\n}\nelse if ( fprintf(a1, \" ... 0x%06x:\\n\", i - 1) != 15 )\n{\nerr(1, \"fprintf()\");\n}\n}\n}\nif ( v6 )\nerrx(1, \"BUG: should not allow 0x10FFFF\");\nif ( fflush(a1) )\nerr(1, \"fflush()\");\nv1 = fileno(a1);\nresult = fsync(v1);\nif ( result == -1 )\n{\nresult = *__errno_location();\nif ( result != 30 )\n{\nresult = *__errno_location();\nif ( result != 22 )\nerr(1, \"fsync()\");\n}\n}\nelse if ( result )\n{\nabort();\n}\nreturn result;\n}\n\n\n\nQ:[a1,v3,i,v5,v6,sub_403A81,sub_4011D2,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'out', 'v3': 'this_allowed', 'i': 'v', 'v5': 'range_start', 'v6': 'last_allowed', 'sub_403A81': 'print_code_point_list', 'sub_4011D2': 'is_permitted_code_point'}"}
ZSTDv06_getcBlockSize
736ac1efb77f2dbc32d0a9777edafb74736c90c8d189555542a8a52274d7f7d0
powturbo
TurboPFor-Integer-Compression
NA
static size_t ZSTDv06_getcBlockSize(const void* src, size_t srcSize, blockProperties_t* bpPtr) { const BYTE* const in = (const BYTE*)src; U32 cSize; if (srcSize < ZSTDv06_blockHeaderSize) return ERROR(srcSize_wrong); bpPtr->blockType = (blockType_t)((*in) >> 6); cSize = in[2] + (in[1]<<8) + ((in[0] & 7)<<16); bpPtr->origSize = (bpPtr->blockType == bt_rle) ? cSize : 0; if (bpPtr->blockType == bt_end) return 0; if (bpPtr->blockType == bt_rle) return 1; return cSize; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41F872", "function_addr": 4323442, "binary_name": "736ac1efb77f2dbc32d0a9777edafb74736c90c8d189555542a8a52274d7f7d0.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 [rbp+var_28], rdx"], [5, "mov rax, [rbp+var_18]"], [6, "mov [rbp+var_8], rax"], [7, "mov eax, 3"], [8, "cmp [rbp+var_20], rax"], [9, "jnb short loc_41F8A1"], [10, "mov rax, 0FFFFFFFFFFFFFFB8h"], [11, "jmp loc_41F92F"], [12, "mov rax, [rbp+var_8]"], [13, "movzx eax, byte ptr [rax]"], [14, "shr al, 6"], [15, "movzx edx, al"], [16, "mov rax, [rbp+var_28]"], [17, "mov [rax], edx"], [18, "mov rax, [rbp+var_8]"], [19, "add rax, 2"], [20, "movzx eax, byte ptr [rax]"], [21, "movzx edx, al"], [22, "mov rax, [rbp+var_8]"], [23, "add rax, 1"], [24, "movzx eax, byte ptr [rax]"], [25, "movzx eax, al"], [26, "shl eax, 8"], [27, "add edx, eax"], [28, "mov rax, [rbp+var_8]"], [29, "movzx eax, byte ptr [rax]"], [30, "movzx eax, al"], [31, "shl eax, 10h"], [32, "and eax, 70000h"], [33, "add eax, edx"], [34, "mov [rbp+var_C], eax"], [35, "mov rax, [rbp+var_28]"], [36, "mov eax, [rax]"], [37, "cmp eax, 2"], [38, "jnz short loc_41F8FC"], [39, "mov eax, [rbp+var_C]"], [40, "jmp short loc_41F901"], [41, "mov eax, 0"], [42, "mov rdx, [rbp+var_28]"], [43, "mov [rdx+4], eax"], [44, "mov rax, [rbp+var_28]"], [45, "mov eax, [rax]"], [46, "cmp eax, 3"], [47, "jnz short loc_41F91A"], [48, "mov eax, 0"], [49, "jmp short loc_41F92F"], [50, "mov rax, [rbp+var_28]"], [51, "mov eax, [rax]"], [52, "cmp eax, 2"], [53, "jnz short loc_41F92C"], [54, "mov eax, 1"], [55, "jmp short loc_41F92F"], [56, "mov eax, [rbp+var_C]"], [57, "pop rbp"], [58, "retn"]], "data_dep": [[5, 2], [6, 5], [8, 3], [8, 7], [9, 8], [12, 6], [13, 12], [14, 13], [15, 14], [16, 4], [17, 15], [17, 16], [18, 6], [19, 18], [20, 17], [20, 19], [21, 20], [22, 6], [23, 22], [24, 17], [24, 23], [25, 24], [26, 25], [27, 21], [27, 26], [28, 6], [29, 17], [29, 28], [30, 29], [31, 30], [32, 31], [33, 32], [33, 27], [34, 33], [35, 4], [36, 17], [36, 35], [37, 36], [38, 37], [39, 34], [42, 4], [43, 39], [43, 42], [43, 41], [44, 4], [45, 43], [45, 17], [45, 44], [46, 45], [47, 46], [50, 4], [51, 50], [51, 43], [51, 17], [52, 51], [53, 52], [56, 34], [57, 0], [58, 56], [58, 10], [58, 48], [58, 54]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/736ac1efb77f2dbc32d0a9777edafb74736c90c8d189555542a8a52274d7f7d0_736ac1efb77f2dbc32d0a9777edafb74736c90c8d189555542a8a52274d7f7d0.jsonl.gz", "strip_func_name": "sub_41F872", "query": "\n\n\n__int64 __fastcall sub_41F872(unsigned __int8 *a1, unsigned __int64 a2, int *a3)\n{\nint v4; // eax\nunsigned int v5; // [rsp+1Ch] [rbp-Ch]\n\nif ( a2 < 3 )\nreturn -72LL;\n*a3 = *a1 >> 6;\nv5 = (a1[1] << 8) + a1[2] + ((*a1 << 16) & 0x70000);\nif ( *a3 == 2 )\nv4 = (a1[1] << 8) + a1[2] + ((*a1 << 16) & 0x70000);\nelse\nv4 = 0;\na3[1] = v4;\nif ( *a3 == 3 )\nreturn 0LL;\nif ( *a3 == 2 )\nreturn 1LL;\nreturn v5;\n}\n\n\n\nQ:[a3,a1,a2,v5,sub_41F872,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'bpPtr', 'a1': 'src', 'a2': 'srcSize', 'v5': 'cSize', 'sub_41F872': 'ZSTDv06_getcBlockSize'}"}
cdb_findstart
345e2c68c25dad6a084a3c53539a7cb8620e3db073e7f9dfc62b69896d2a1c26
radareorg
sdb
NA
void cdb_findstart(struct cdb *c) { c->loop = 0; #if !USE_MMAN if (c->fd != -1) { lseek (c->fd, 0, SEEK_SET); } #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41109E", "function_addr": 4264094, "binary_name": "345e2c68c25dad6a084a3c53539a7cb8620e3db073e7f9dfc62b69896d2a1c26.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov rax, [rbp+var_8]"], [4, "mov dword ptr [rax+10h], 0"], [5, "nop"], [6, "pop rbp"], [7, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 0], [7, 3]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/345e2c68c25dad6a084a3c53539a7cb8620e3db073e7f9dfc62b69896d2a1c26_345e2c68c25dad6a084a3c53539a7cb8620e3db073e7f9dfc62b69896d2a1c26.jsonl.gz", "strip_func_name": "sub_41109E", "query": "\n\n\n__int64 __fastcall sub_41109E(__int64 a1)\n{\n__int64 result; // rax\n\nresult = a1;\n*(_DWORD *)(a1 + 16) = 0;\nreturn result;\n}\n\n\n\nQ:[a1,sub_41109E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'sub_41109E': 'cdb_findstart'}"}
tns_translate
cfe278c510922ef18dc7267c8c085a9074e503ccf9ed8b44705a34f3ac066f2e
xyb3rt
sxiv
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/cfe278c510922ef18dc7267c8c085a9074e503ccf9ed8b44705a34f3ac066f2e_cfe278c510922ef18dc7267c8c085a9074e503ccf9ed8b44705a34f3ac066f2e.jsonl.gz", "strip_func_name": "sub_40DC3F", "query": "\n\n\n__int64 __fastcall sub_40DC3F(__int64 a1, int a2, int a3)\n{\nint v4; // [rsp+1Ch] [rbp-4h]\n\nif ( a2 < *(_DWORD *)(a1 + 64) || a3 < *(_DWORD *)(a1 + 68) )\nreturn 0xFFFFFFFFLL;\nv4 = (a3 - *(_DWORD *)(a1 + 68)) / *(_DWORD *)(a1 + 88) * *(_DWORD *)(a1 + 72)\n+ *(_DWORD *)(a1 + 40)\n+ (a2 - *(_DWORD *)(a1 + 64)) / *(_DWORD *)(a1 + 88);\nif ( v4 >= **(_DWORD **)(a1 + 16) )\nv4 = -1;\nreturn (unsigned int)v4;\n}\n\n\n\nQ:[a3,a1,a2,v4,sub_40DC3F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'y', 'a1': 'tns', 'a2': 'x', 'v4': 'n', 'sub_40DC3F': 'tns_translate'}"}
vb2_need_signed_kernel
cbde29e6b8731345dfc11224119de29bba8d1c61157c302bab41853f9d37c8c3
Telecominfraproject
OpenCellular
NA
static int vb2_need_signed_kernel(struct vb2_context *ctx) { /* Recovery kernels are always signed */ if (ctx->flags & VB2_CONTEXT_RECOVERY_MODE) return 1; /* Normal mode kernels are always signed */ if (!(ctx->flags & VB2_CONTEXT_DEVELOPER_MODE)) return 1; /* Developers may require signed kernels */ if (vb2_nv_get(ctx, VB2_NV_DEV_BOOT_SIGNED_ONLY)) return 1; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40970E", "function_addr": 4232974, "binary_name": "cbde29e6b8731345dfc11224119de29bba8d1c61157c302bab41853f9d37c8c3.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]"], [6, "and eax, 4"], [7, "test eax, eax"], [8, "jz short loc_40972E"], [9, "mov eax, 1"], [10, "jmp short locret_409763"], [11, "mov rax, [rbp+var_8]"], [12, "mov eax, [rax]"], [13, "and eax, 8"], [14, "test eax, eax"], [15, "jnz short loc_409742"], [16, "mov eax, 1"], [17, "jmp short locret_409763"], [18, "mov rax, [rbp+var_8]"], [19, "mov esi, 0Ah"], [20, "mov rdi, rax"], [21, "call sub_4038E3"], [22, "test eax, eax"], [23, "jz short loc_40975E"], [24, "mov eax, 1"], [25, "jmp short locret_409763"], [26, "mov eax, 0"], [27, "leave"], [28, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [11, 3], [12, 11], [13, 12], [14, 13], [15, 14], [18, 3], [20, 18], [22, 21], [23, 22], [28, 16], [28, 26], [28, 9], [28, 24]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/cbde29e6b8731345dfc11224119de29bba8d1c61157c302bab41853f9d37c8c3_cbde29e6b8731345dfc11224119de29bba8d1c61157c302bab41853f9d37c8c3.jsonl.gz", "strip_func_name": "sub_40970E", "query": "\n\n\n_BOOL8 __fastcall sub_40970E(_DWORD *a1)\n{\nif ( (*a1 & 4) != 0 )\nreturn 1LL;\nif ( (*a1 & 8) != 0 )\nreturn (unsigned int)sub_4038E3((__int64)a1, 10) != 0;\nreturn 1LL;\n}\n\n\n\nQ:[a1,sub_40970E,sub_4038E3,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ctx', 'sub_40970E': 'vb2_need_signed_kernel', 'sub_4038E3': 'vb2_nv_get'}"}
pj_enum_ip_interface2
a919fc39a5af9b1355a81d3146876c0fc5147fd6c16c81f57145538a5f7e2e46
asterisk
pjproject-archive
NA
PJ_DEF(pj_status_t) pj_enum_ip_interface2( const pj_enum_ip_option *opt, unsigned *p_cnt, pj_sockaddr ifs[]) { pj_enum_ip_option opt_; if (opt) opt_ = *opt; else pj_enum_ip_option_default(&opt_); if (opt_.af != pj_AF_INET() && opt_.omit_deprecated_ipv6) { pj_sockaddr addrs[*p_cnt]; pj_sockaddr deprecatedAddrs[*p_cnt]; unsigned deprecatedCount = *p_cnt; unsigned cnt = 0; int i; pj_status_t status; status = get_ipv6_deprecated(&deprecatedCount, deprecatedAddrs); if (status != PJ_SUCCESS) return status; status = pj_enum_ip_interface(opt_.af, p_cnt, addrs); if (status != PJ_SUCCESS) return status; for (i = 0; i < *p_cnt; ++i) { int j; ifs[cnt++] = addrs[i]; if (addrs[i].addr.sa_family != pj_AF_INET6()) continue; for (j = 0; j < deprecatedCount; ++j) { if (pj_sockaddr_cmp(&addrs[i], &deprecatedAddrs[j]) == 0) { cnt--; break; } } } *p_cnt = cnt; return *p_cnt ? PJ_SUCCESS : PJ_ENOTFOUND; } return pj_enum_ip_interface(opt_.af, p_cnt, ifs); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_440229", "function_addr": 4457001, "binary_name": "a919fc39a5af9b1355a81d3146876c0fc5147fd6c16c81f57145538a5f7e2e46.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, 88h"], [8, "mov [rbp+var_78], rdi"], [9, "mov [rbp+var_80], rsi"], [10, "mov [rbp+var_88], rdx"], [11, "cmp [rbp+var_78], 0"], [12, "jz short loc_440260"], [13, "mov rax, [rbp+var_78]"], [14, "mov rax, [rax]"], [15, "mov [rbp+var_6C], rax"], [16, "jmp short loc_44026C"], [17, "lea rax, [rbp+var_6C]"], [18, "mov rdi, rax"], [19, "call sub_43F992"], [20, "mov edx, dword ptr [rbp+var_6C]"], [21, "movzx eax, cs:word_448D54"], [22, "movzx eax, ax"], [23, "cmp edx, eax"], [24, "jz loc_4405BF"], [25, "mov eax, dword ptr [rbp+var_6C+4]"], [26, "test eax, eax"], [27, "jz loc_4405BF"], [28, "mov rax, rsp"], [29, "mov [rbp+var_90], rax"], [30, "mov rax, [rbp+var_80]"], [31, "mov ecx, [rax]"], [32, "mov eax, ecx"], [33, "sub rax, 1"], [34, "mov [rbp+var_48], rax"], [35, "mov eax, ecx"], [36, "mov [rbp+var_A0], rax"], [37, "mov [rbp+var_98], 0"], [38, "mov r10, [rbp+var_A0]"], [39, "mov r11, [rbp+var_98]"], [40, "imul rdx, r11, 0E0h"], [41, "imul rax, r10, 0"], [42, "lea rsi, [rdx+rax]"], [43, "mov eax, 0E0h"], [44, "mul r10"], [45, "add rsi, rdx"], [46, "mov rdx, rsi"], [47, "mov edx, ecx"], [48, "mov rax, rdx"], [49, "shl rax, 3"], [50, "sub rax, rdx"], [51, "shl rax, 2"], [52, "mov eax, ecx"], [53, "mov [rbp+var_B0], rax"], [54, "mov [rbp+var_A8], 0"], [55, "mov r8, [rbp+var_B0]"], [56, "mov r9, [rbp+var_A8]"], [57, "imul rdx, r9, 0E0h"], [58, "imul rax, r8, 0"], [59, "lea rsi, [rdx+rax]"], [60, "mov eax, 0E0h"], [61, "mul r8"], [62, "add rsi, rdx"], [63, "mov rdx, rsi"], [64, "mov edx, ecx"], [65, "mov rax, rdx"], [66, "shl rax, 3"], [67, "sub rax, rdx"], [68, "shl rax, 2"], [69, "mov rdx, rax"], [70, "mov eax, 10h"], [71, "sub rax, 1"], [72, "add rax, rdx"], [73, "mov ebx, 10h"], [74, "mov edx, 0"], [75, "div rbx"], [76, "imul rax, 10h"], [77, "sub rsp, rax"], [78, "mov rax, rsp"], [79, "add rax, 3"], [80, "shr rax, 2"], [81, "shl rax, 2"], [82, "mov [rbp+var_50], rax"], [83, "mov rax, [rbp+var_80]"], [84, "mov ecx, [rax]"], [85, "mov eax, ecx"], [86, "sub rax, 1"], [87, "mov [rbp+var_58], rax"], [88, "mov eax, ecx"], [89, "mov r14, rax"], [90, "mov r15d, 0"], [91, "imul rdx, r15, 0E0h"], [92, "imul rax, r14, 0"], [93, "lea rsi, [rdx+rax]"], [94, "mov eax, 0E0h"], [95, "mul r14"], [96, "add rsi, rdx"], [97, "mov rdx, rsi"], [98, "mov edx, ecx"], [99, "mov rax, rdx"], [100, "shl rax, 3"], [101, "sub rax, rdx"], [102, "shl rax, 2"], [103, "mov eax, ecx"], [104, "mov r12, rax"], [105, "mov r13d, 0"], [106, "imul rdx, r13, 0E0h"], [107, "imul rax, r12, 0"], [108, "lea rsi, [rdx+rax]"], [109, "mov eax, 0E0h"], [110, "mul r12"], [111, "add rsi, rdx"], [112, "mov rdx, rsi"], [113, "mov edx, ecx"], [114, "mov rax, rdx"], [115, "shl rax, 3"], [116, "sub rax, rdx"], [117, "shl rax, 2"], [118, "mov rdx, rax"], [119, "mov eax, 10h"], [120, "sub rax, 1"], [121, "add rax, rdx"], [122, "mov ebx, 10h"], [123, "mov edx, 0"], [124, "div rbx"], [125, "imul rax, 10h"], [126, "sub rsp, rax"], [127, "mov rax, rsp"], [128, "add rax, 3"], [129, "shr rax, 2"], [130, "shl rax, 2"], [131, "mov [rbp+var_60], rax"], [132, "mov rax, [rbp+var_80]"], [133, "mov eax, [rax]"], [134, "mov [rbp+var_70], eax"], [135, "mov [rbp+var_3C], 0"], [136, "mov rdx, [rbp+var_60]"], [137, "lea rax, [rbp+var_70]"], [138, "mov rsi, rdx"], [139, "mov rdi, rax"], [140, "call sub_43FE27"], [141, "mov [rbp+var_64], eax"], [142, "cmp [rbp+var_64], 0"], [143, "jz short loc_440464"], [144, "mov eax, [rbp+var_64]"], [145, "jmp loc_4405B6"], [146, "mov eax, dword ptr [rbp+var_6C]"], [147, "mov rdx, [rbp+var_50]"], [148, "mov rcx, [rbp+var_80]"], [149, "mov rsi, rcx"], [150, "mov edi, eax"], [151, "call sub_43FC17"], [152, "mov [rbp+var_64], eax"], [153, "cmp [rbp+var_64], 0"], [154, "jz short loc_44048A"], [155, "mov eax, [rbp+var_64]"], [156, "jmp loc_4405B6"], [157, "mov [rbp+var_38], 0"], [158, "jmp loc_440586"], [159, "mov eax, [rbp+var_3C]"], [160, "lea edx, [rax+1]"], [161, "mov [rbp+var_3C], edx"], [162, "mov edx, eax"], [163, "mov rax, rdx"], [164, "shl rax, 3"], [165, "sub rax, rdx"], [166, "shl rax, 2"], [167, "mov rdx, rax"], [168, "mov rax, [rbp+var_88]"], [169, "add rdx, rax"], [170, "mov rsi, [rbp+var_50]"], [171, "mov eax, [rbp+var_38]"], [172, "movsxd rcx, eax"], [173, "mov rax, rcx"], [174, "shl rax, 3"], [175, "sub rax, rcx"], [176, "shl rax, 2"], [177, "add rax, rsi"], [178, "mov rcx, [rax]"], [179, "mov rbx, [rax+8]"], [180, "mov [rdx], rcx"], [181, "mov [rdx+8], rbx"], [182, "mov rcx, [rax+10h]"], [183, "mov [rdx+10h], rcx"], [184, "mov eax, [rax+18h]"], [185, "mov [rdx+18h], eax"], [186, "mov rcx, [rbp+var_50]"], [187, "mov eax, [rbp+var_38]"], [188, "movsxd rdx, eax"], [189, "mov rax, rdx"], [190, "shl rax, 3"], [191, "sub rax, rdx"], [192, "shl rax, 2"], [193, "add rax, rcx"], [194, "movzx edx, word ptr [rax]"], [195, "movzx eax, cs:word_448D56"], [196, "cmp dx, ax"], [197, "jnz short loc_440581"], [198, "mov [rbp+var_34], 0"], [199, "jmp short loc_440575"], [200, "mov eax, [rbp+var_34]"], [201, "movsxd rdx, eax"], [202, "mov rax, rdx"], [203, "shl rax, 3"], [204, "sub rax, rdx"], [205, "shl rax, 2"], [206, "mov rdx, [rbp+var_60]"], [207, "add rdx, rax"], [208, "mov eax, [rbp+var_38]"], [209, "movsxd rcx, eax"], [210, "mov rax, rcx"], [211, "shl rax, 3"], [212, "sub rax, rcx"], [213, "shl rax, 2"], [214, "mov rcx, [rbp+var_50]"], [215, "add rax, rcx"], [216, "mov rsi, rdx"], [217, "mov rdi, rax"], [218, "call sub_439690"], [219, "test eax, eax"], [220, "jnz short loc_440571"], [221, "sub [rbp+var_3C], 1"], [222, "jmp short loc_440582"], [223, "add [rbp+var_34], 1"], [224, "mov edx, [rbp+var_34]"], [225, "mov eax, [rbp+var_70]"], [226, "cmp edx, eax"], [227, "jb short loc_440526"], [228, "jmp short loc_440582"], [229, "nop"], [230, "add [rbp+var_38], 1"], [231, "mov rax, [rbp+var_80]"], [232, "mov edx, [rax]"], [233, "mov eax, [rbp+var_38]"], [234, "cmp edx, eax"], [235, "ja loc_440496"], [236, "mov rax, [rbp+var_80]"], [237, "mov edx, [rbp+var_3C]"], [238, "mov [rax], edx"], [239, "mov rax, [rbp+var_80]"], [240, "mov eax, [rax]"], [241, "test eax, eax"], [242, "jz short loc_4405B1"], [243, "mov eax, 0"], [244, "jmp short loc_4405B6"], [245, "mov eax, 11176h"], [246, "mov rsp, [rbp+var_90]"], [247, "jmp short loc_4405D7"], [248, "mov eax, dword ptr [rbp+var_6C]"], [249, "mov rdx, [rbp+var_88]"], [250, "mov rcx, [rbp+var_80]"], [251, "mov rsi, rcx"], [252, "mov edi, eax"], [253, "call sub_43FC17"], [254, "lea rsp, [rbp-28h]"], [255, "pop rbx"], [256, "pop r12"], [257, "pop r13"], [258, "pop r14"], [259, "pop r15"], [260, "pop rbp"], [261, "retn"]], "data_dep": [[11, 8], [12, 11], [13, 8], [14, 13], [15, 14], [18, 17], [20, 15], [22, 21], [23, 20], [23, 22], [24, 23], [26, 25], [27, 26], [28, 7], [29, 28], [30, 9], [31, 30], [32, 31], [33, 32], [34, 33], [35, 31], [36, 35], [38, 36], [39, 37], [40, 20], [40, 39], [41, 35], [41, 38], [42, 41], [44, 38], [45, 40], [45, 42], [46, 45], [47, 31], [48, 47], [49, 48], [50, 47], [50, 49], [51, 50], [52, 31], [53, 52], [55, 53], [56, 54], [57, 47], [57, 56], [58, 55], [58, 52], [59, 45], [59, 58], [61, 55], [62, 57], [62, 59], [63, 62], [64, 31], [65, 64], [66, 65], [67, 64], [67, 66], [68, 67], [69, 68], [71, 70], [72, 69], [72, 71], [75, 73], [76, 72], [77, 76], [77, 7], [78, 77], [79, 78], [80, 79], [81, 80], [82, 81], [83, 9], [84, 83], [85, 84], [86, 85], [87, 86], [88, 84], [89, 88], [91, 74], [91, 90], [92, 88], [92, 89], [93, 62], [93, 92], [95, 89], [96, 91], [96, 93], [97, 96], [98, 84], [99, 98], [100, 99], [101, 98], [101, 100], [102, 101], [103, 84], [104, 103], [106, 105], [106, 98], [107, 104], [107, 103], [108, 107], [108, 96], [110, 104], [111, 106], [111, 108], [112, 111], [113, 84], [114, 113], [115, 114], [116, 113], [116, 115], [117, 116], [118, 117], [120, 119], [121, 118], [121, 120], [124, 122], [125, 121], [126, 77], [126, 125], [127, 126], [128, 127], [129, 128], [130, 129], [131, 130], [132, 9], [133, 132], [134, 133], [136, 131], [137, 133], [137, 134], [138, 136], [139, 137], [141, 140], [142, 141], [143, 142], [144, 141], [146, 15], [147, 82], [148, 9], [149, 148], [150, 146], [152, 151], [153, 152], [154, 153], [155, 152], [159, 135], [159, 221], [159, 161], [160, 183], [160, 185], [160, 159], [160, 180], [160, 232], [160, 181], [161, 160], [162, 159], [163, 162], [164, 163], [165, 162], [165, 164], [166, 165], [167, 166], [168, 10], [169, 167], [169, 168], [170, 82], [171, 157], [171, 230], [172, 171], [173, 172], [174, 173], [175, 172], [175, 174], [176, 175], [177, 176], [177, 170], [178, 177], [178, 181], [178, 183], [178, 185], [178, 180], [179, 181], [179, 183], [179, 185], [179, 180], [179, 177], [180, 169], [180, 178], [181, 169], [181, 179], [182, 177], [182, 181], [183, 169], [183, 182], [184, 177], [184, 183], [185, 169], [185, 184], [186, 82], [187, 157], [187, 230], [188, 187], [189, 188], [190, 189], [191, 188], [191, 190], [192, 191], [193, 186], [193, 192], [194, 185], [194, 193], [196, 194], [196, 195], [197, 196], [200, 223], [200, 198], [201, 200], [202, 201], [203, 202], [204, 201], [204, 203], [205, 204], [206, 131], [207, 206], [207, 205], [208, 157], [208, 230], [209, 208], [210, 209], [211, 210], [212, 209], [212, 211], [213, 212], [214, 82], [215, 214], [215, 213], [216, 207], [217, 215], [219, 218], [220, 219], [221, 161], [223, 223], [223, 198], [224, 223], [224, 198], [225, 134], [226, 225], [226, 224], [227, 226], [230, 157], [230, 230], [231, 9], [232, 181], [232, 183], [232, 231], [232, 185], [232, 180], [233, 157], [233, 230], [234, 233], [234, 232], [235, 234], [236, 9], [237, 161], [237, 135], [237, 221], [238, 236], [238, 237], [239, 9], [240, 238], [240, 239], [241, 240], [242, 241], [246, 29], [248, 15], [249, 10], [250, 9], [251, 250], [252, 248], [254, 7], [254, 246], [255, 6], [256, 5], [257, 4], [258, 3], [259, 2], [260, 0], [261, 253], [261, 155], [261, 243], [261, 245], [261, 144]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a919fc39a5af9b1355a81d3146876c0fc5147fd6c16c81f57145538a5f7e2e46_a919fc39a5af9b1355a81d3146876c0fc5147fd6c16c81f57145538a5f7e2e46.jsonl.gz", "strip_func_name": "sub_440229", "query": "\n\n\n__int64 __fastcall sub_440229(__int64 *a1, int *a2, __int64 a3)\n{\nunsigned int v3; // ecx\nvoid *v4; // rsp\nunsigned int v5; // ecx\nvoid *v6; // rsp\n__int64 result; // rax\nunsigned int v8; // eax\n__int64 v9; // rdx\n__int64 v10; // rax\n__int64 v11; // rbx\n__int64 v12[5]; // [rsp+0h] [rbp-B0h] BYREF\n__int64 v13; // [rsp+28h] [rbp-88h]\nint *v14; // [rsp+30h] [rbp-80h]\n__int64 *v15; // [rsp+38h] [rbp-78h]\nunsigned int v16; // [rsp+40h] [rbp-70h] BYREF\n__int64 v17; // [rsp+44h] [rbp-6Ch] BYREF\nunsigned int v18; // [rsp+4Ch] [rbp-64h]\n__int64 v19; // [rsp+50h] [rbp-60h]\n__int64 v20; // [rsp+58h] [rbp-58h]\n__int64 v21; // [rsp+60h] [rbp-50h]\n__int64 v22; // [rsp+68h] [rbp-48h]\nint v23; // [rsp+74h] [rbp-3Ch]\nunsigned int i; // [rsp+78h] [rbp-38h]\nunsigned int j; // [rsp+7Ch] [rbp-34h]\n\nv15 = a1;\nv14 = a2;\nv13 = a3;\nif ( a1 )\nv17 = *v15;\nelse\nsub_43F992(&v17);\nif ( (_DWORD)v17 == 2 || !HIDWORD(v17) )\nreturn sub_43FC17(v17, v14, v13);\nv12[4] = (__int64)v12;\nv3 = *v14;\nv22 = (unsigned int)*v14 - 1LL;\nv12[2] = v3;\nv12[3] = 0LL;\nv12[0] = v3;\nv12[1] = 0LL;\nv4 = alloca(16 * ((28 * (unsigned __int64)v3 + 15) / 0x10));\nv21 = 4 * (((unsigned __int64)v12 + 3) >> 2);\nv5 = *v14;\nv20 = (unsigned int)*v14 - 1LL;\nv6 = alloca(16 * ((28 * (unsigned __int64)v5 + 15) / 0x10));\nv19 = v21;\nv16 = *v14;\nv23 = 0;\nv18 = sub_43FE27(&v16, v21);\nif ( v18 )\nreturn v18;\nv18 = sub_43FC17(v17, v14, v21);\nif ( v18 )\nreturn v18;\nfor ( i = 0; *v14 > i; ++i )\n{\nv8 = v23++;\nv9 = v13 + 28LL * v8;\nv10 = v21 + 28LL * (int)i;\nv11 = *(_QWORD *)(v10 + 8);\n*(_QWORD *)v9 = *(_QWORD *)v10;\n*(_QWORD *)(v9 + 8) = v11;\n*(_QWORD *)(v9 + 16) = *(_QWORD *)(v10 + 16);\n*(_DWORD *)(v9 + 24) = *(_DWORD *)(v10 + 24);\nif ( *(_WORD *)(v21 + 28LL * (int)i) == 10 )\n{\nfor ( j = 0; j < v16; ++j )\n{\nif ( !(unsigned int)sub_439690((_WORD *)(v21 + 28LL * (int)i), (_WORD *)(28LL * (int)j + v19)) )\n{\n--v23;\nbreak;\n}\n}\n}\n}\n*v14 = v23;\nif ( *v14 )\nresult = 0LL;\nelse\nresult = 70006LL;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v13,v14,v15,v16,v17,v18,v19,v21,v23,sub_440229,sub_43F992,sub_43FC17,sub_43FE27,sub_439690,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'ifs', 'a1': 'opt', 'a2': 'p_cnt', 'v13': 'ifsa', 'v14': 'p_cnta', 'v15': 'opta', 'v16': 'deprecatedCount', 'v17': 'opt_', 'v18': 'status', 'v19': 'p_deprecatedAddrs', 'v21': 'p_addrs', 'v23': 'cnt', 'sub_440229': 'pj_enum_ip_interface2', 'sub_43F992': 'pj_enum_ip_option_default', 'sub_43FC17': 'pj_enum_ip_interface', 'sub_43FE27': 'get_ipv6_deprecated', 'sub_439690': 'pj_sockaddr_cmp'}"}
mg_global_lock
7be234ff1bf913b18e7f3dc63277693fbaa1a69ce49eeb885aa12327d52c2d59
Tina-Linux
tina-V83x
NA
FUNCTION_MAY_BE_UNUSED static void mg_global_lock(void) { (void)pthread_mutex_lock(&global_lock_mutex); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40733F", "function_addr": 4223807, "binary_name": "7be234ff1bf913b18e7f3dc63277693fbaa1a69ce49eeb885aa12327d52c2d59.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "lea rdi, mutex"], [3, "call _pthread_mutex_lock"], [4, "nop"], [5, "pop rbp"], [6, "retn"]], "data_dep": [[5, 0], [6, 3]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/7be234ff1bf913b18e7f3dc63277693fbaa1a69ce49eeb885aa12327d52c2d59_7be234ff1bf913b18e7f3dc63277693fbaa1a69ce49eeb885aa12327d52c2d59.jsonl.gz", "strip_func_name": "sub_40733F", "query": "\n\n\nint sub_40733F()\n{\nreturn pthread_mutex_lock(&mutex);\n}\n\n\n\nQ:[sub_40733F,]\nAssistant: ", "hints": "[]", "response": "{'sub_40733F': 'mg_global_lock'}"}
testBitStream
4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487
nccgroup
proxmark3-amiimicyou
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487_4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.jsonl.gz", "strip_func_name": "testBitStream", "query": "\n\n\n__int64 testBitStream()\n{\nbool v0; // al\nint v1; // edx\nint v2; // ecx\nint v3; // er8\nint v4; // er9\n__int64 result; // rax\nint v6; // ecx\nint v7; // er8\nint v8; // er9\n__int64 *v9; // [rsp+0h] [rbp-40h] BYREF\nchar v10; // [rsp+8h] [rbp-38h]\nchar v11; // [rsp+9h] [rbp-37h]\n__int64 *v12; // [rsp+10h] [rbp-30h] BYREF\nchar v13; // [rsp+18h] [rbp-28h]\nchar v14; // [rsp+19h] [rbp-27h]\n__int64 s2; // [rsp+2Fh] [rbp-11h] BYREF\n__int64 s1; // [rsp+37h] [rbp-9h] BYREF\nunsigned __int8 i; // [rsp+3Fh] [rbp-1h]\n\ns1 = 0xEFBEADDEEFBEADDELL;\ns2 = 0LL;\nv12 = &s1;\nv13 = 64;\nv14 = 0;\nv9 = &s2;\nv10 = 0;\nv11 = 0;\nwhile ( (int)bitsLeft((__int64)&v12) > 0 )\n{\nv0 = headBit((__int64)&v12);\npushBit((__int64)&v9, v0);\n}\nif ( !memcmp(&s1, &s2, 8uLL) )\n{\nprnlog((unsigned int)\" Bitstream test 1 ok\", (unsigned int)&s2, v1, v2, v3, v4);\nresult = 0LL;\n}\nelse\n{\nprnlog((unsigned int)\" Bitstream test 1 failed\", (unsigned int)&s2, v1, v2, v3, v4);\nfor ( i = 0; i <= 7u; ++i )\nprnlog(\n(unsigned int)\" IN %02x, OUT %02x\",\n*((unsigned __int8 *)&s1 + i),\n*((unsigned __int8 *)&s2 + i),\nv6,\nv7,\nv8);\nresult = 1LL;\n}\nreturn result;\n}\n\n\n\nQ:[v9,v12,s2,s1,]\nAssistant: ", "hints": "[]", "response": "{'v9': 'out', 'v12': 'in', 's2': 'output', 's1': 'input'}"}
as_batch_records_size_old
8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2
aerospike
aerospike-tools-backup
NA
static as_status as_batch_records_size_old( as_vector* records, as_vector* offsets, as_batch_builder* bb, as_error* err ) { as_batch_read_record* prev = 0; uint32_t n_offsets = offsets->size; for (uint32_t i = 0; i < n_offsets; i++) { uint32_t offset = *(uint32_t*)as_vector_get(offsets, i); as_batch_read_record* rec = as_vector_get(records, offset); if (rec->type != AS_BATCH_READ) { return as_error_set_message(err, AEROSPIKE_ERR_PARAM, "Batch write operations not supported on older servers"); } bb->size += AS_DIGEST_VALUE_SIZE + sizeof(uint32_t); if (prev && strcmp(prev->key.ns, rec->key.ns) == 0 && strcmp(prev->key.set, rec->key.set) == 0 && prev->bin_names == rec->bin_names && prev->read_all_bins == rec->read_all_bins && prev->ops == rec->ops) { // Can set repeat flag to save space. bb->size++; } else { // Size full message. as_status status = as_batch_read_record_size_old(&rec->key, rec, bb, err); if (status != AEROSPIKE_OK) { return status; } prev = rec; } } return AEROSPIKE_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_476342", "function_addr": 4678466, "binary_name": "8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2.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_8], 0"], [8, "mov rax, [rbp+var_40]"], [9, "mov eax, [rax+0Ch]"], [10, "mov [rbp+var_10], eax"], [11, "mov [rbp+var_C], 0"], [12, "jmp loc_4764D8"], [13, "mov edx, [rbp+var_C]"], [14, "mov rax, [rbp+var_40]"], [15, "mov esi, edx"], [16, "mov rdi, rax"], [17, "call sub_474AF5"], [18, "mov eax, [rax]"], [19, "mov [rbp+var_14], eax"], [20, "mov edx, [rbp+var_14]"], [21, "mov rax, [rbp+var_38]"], [22, "mov esi, edx"], [23, "mov rdi, rax"], [24, "call sub_474AF5"], [25, "mov [rbp+var_20], rax"], [26, "mov rax, [rbp+var_20]"], [27, "movzx eax, byte ptr [rax+184h]"], [28, "test al, al"], [29, "jz short loc_4763E3"], [30, "mov rax, [rbp+var_50]"], [31, "mov r9d, 23Dh"], [32, "lea r8, aSrcMainAerospi_19"], [33, "lea rcx, aAsBatchRecords"], [34, "lea rdx, aBatchWriteOper"], [35, "mov esi, 0FFFFFFFEh"], [36, "mov rdi, rax"], [37, "call sub_4748D2"], [38, "jmp locret_4764E9"], [39, "mov rax, [rbp+var_48]"], [40, "mov rax, [rax]"], [41, "lea rdx, [rax+18h]"], [42, "mov rax, [rbp+var_48]"], [43, "mov [rax], rdx"], [44, "cmp [rbp+var_8], 0"], [45, "jz loc_4764A6"], [46, "mov rax, [rbp+var_20]"], [47, "lea rdx, [rax+1]"], [48, "mov rax, [rbp+var_8]"], [49, "add rax, 1"], [50, "mov rsi, rdx"], [51, "mov rdi, rax"], [52, "call _strcmp"], [53, "test eax, eax"], [54, "jnz loc_4764A6"], [55, "mov rax, [rbp+var_20]"], [56, "lea rdx, [rax+21h]"], [57, "mov rax, [rbp+var_8]"], [58, "add rax, 21h "], [59, "mov rsi, rdx"], [60, "mov rdi, rax"], [61, "call _strcmp"], [62, "test eax, eax"], [63, "jnz short loc_4764A6"], [64, "mov rax, [rbp+var_8]"], [65, "mov rdx, [rax+198h]"], [66, "mov rax, [rbp+var_20]"], [67, "mov rax, [rax+198h]"], [68, "cmp rdx, rax"], [69, "jnz short loc_4764A6"], [70, "mov rax, [rbp+var_8]"], [71, "movzx edx, byte ptr [rax+1A4h]"], [72, "mov rax, [rbp+var_20]"], [73, "movzx eax, byte ptr [rax+1A4h]"], [74, "cmp dl, al"], [75, "jnz short loc_4764A6"], [76, "mov rax, [rbp+var_8]"], [77, "mov rdx, [rax+190h]"], [78, "mov rax, [rbp+var_20]"], [79, "mov rax, [rax+190h]"], [80, "cmp rdx, rax"], [81, "jnz short loc_4764A6"], [82, "mov rax, [rbp+var_48]"], [83, "mov rax, [rax]"], [84, "lea rdx, [rax+1]"], [85, "mov rax, [rbp+var_48]"], [86, "mov [rax], rdx"], [87, "jmp short loc_4764D4"], [88, "mov rax, [rbp+var_20]"], [89, "mov rcx, [rbp+var_50]"], [90, "mov rdx, [rbp+var_48]"], [91, "mov rsi, [rbp+var_20]"], [92, "mov rdi, rax"], [93, "call sub_476205"], [94, "mov [rbp+var_24], eax"], [95, "cmp [rbp+var_24], 0"], [96, "jz short loc_4764CC"], [97, "mov eax, [rbp+var_24]"], [98, "jmp short locret_4764E9"], [99, "mov rax, [rbp+var_20]"], [100, "mov [rbp+var_8], rax"], [101, "add [rbp+var_C], 1"], [102, "mov eax, [rbp+var_C]"], [103, "cmp eax, [rbp+var_10]"], [104, "jb loc_476378"], [105, "mov eax, 0"], [106, "leave"], [107, "retn"]], "data_dep": [[8, 4], [9, 8], [10, 9], [13, 101], [13, 11], [14, 4], [15, 13], [16, 14], [18, 17], [18, 43], [18, 86], [19, 18], [20, 19], [21, 3], [22, 20], [23, 21], [25, 24], [26, 25], [27, 43], [27, 86], [27, 26], [28, 27], [29, 28], [30, 6], [33, 89], [34, 20], [36, 30], [39, 5], [40, 43], [40, 86], [40, 39], [41, 40], [41, 20], [41, 43], [41, 86], [42, 5], [43, 41], [43, 42], [44, 100], [44, 7], [45, 44], [46, 25], [47, 41], [47, 43], [47, 86], [47, 46], [48, 100], [48, 7], [49, 48], [50, 47], [51, 49], [53, 52], [54, 53], [55, 25], [56, 55], [56, 43], [56, 47], [56, 86], [57, 100], [57, 7], [58, 57], [59, 56], [60, 58], [62, 61], [63, 62], [64, 7], [64, 100], [65, 43], [65, 64], [65, 86], [66, 25], [67, 43], [67, 86], [67, 66], [68, 65], [68, 67], [69, 68], [70, 100], [70, 7], [71, 86], [71, 43], [71, 70], [72, 25], [73, 43], [73, 72], [73, 86], [74, 73], [74, 71], [75, 74], [76, 7], [76, 100], [77, 76], [77, 86], [77, 43], [78, 25], [79, 78], [79, 43], [79, 86], [80, 77], [80, 79], [81, 80], [82, 5], [83, 82], [83, 43], [83, 86], [84, 77], [84, 43], [84, 86], [84, 83], [85, 5], [86, 85], [86, 84], [88, 25], [89, 6], [90, 5], [91, 25], [92, 88], [94, 93], [95, 94], [96, 95], [97, 94], [99, 25], [100, 99], [101, 101], [101, 11], [102, 11], [102, 101], [103, 102], [103, 10], [104, 103], [107, 97], [107, 37], [107, 105]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2_8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2.jsonl.gz", "strip_func_name": "sub_476342", "query": "\n\n\n__int64 __fastcall sub_476342(__int64 a1, __int64 a2, _QWORD *a3, unsigned int *a4)\n{\nint *v4; // rax\nunsigned int v8; // [rsp+2Ch] [rbp-24h]\n__int64 v9; // [rsp+30h] [rbp-20h]\nunsigned int v10; // [rsp+40h] [rbp-10h]\nunsigned int i; // [rsp+44h] [rbp-Ch]\n__int64 v12; // [rsp+48h] [rbp-8h]\n\nv12 = 0LL;\nv10 = *(_DWORD *)(a2 + 12);\nfor ( i = 0; i < v10; ++i )\n{\nv4 = (int *)sub_474AF5(a2, i);\nv9 = sub_474AF5(a1, *v4);\nif ( *(_BYTE *)(v9 + 388) )\nreturn sub_4748D2(\na4,\n0xFFFFFFFE,\n\"Batch write operations not supported on older servers\",\n(__int64)\"as_batch_records_size_old\",\n(__int64)\"src/main/aerospike/aerospike_batch.c\",\n0x23Du);\n*a3 += 24LL;\nif ( v12\n&& !strcmp((const char *)(v12 + 1), (const char *)(v9 + 1))\n&& !strcmp((const char *)(v12 + 33), (const char *)(v9 + 33))\n&& *(_QWORD *)(v12 + 408) == *(_QWORD *)(v9 + 408)\n&& *(_BYTE *)(v12 + 420) == *(_BYTE *)(v9 + 420)\n&& *(_QWORD *)(v12 + 400) == *(_QWORD *)(v9 + 400) )\n{\n++*a3;\n}\nelse\n{\nv8 = sub_476205(v9, v9, a3, a4);\nif ( v8 )\nreturn v8;\nv12 = v9;\n}\n}\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,v8,v9,v10,v12,sub_476342,sub_474AF5,sub_4748D2,sub_476205,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'bb', 'a4': 'err', 'a1': 'records', 'a2': 'offsets', 'v8': 'status', 'v9': 'rec', 'v10': 'n_offsets', 'v12': 'prev', 'sub_476342': 'as_batch_records_size_old', 'sub_474AF5': 'as_vector_get_8', 'sub_4748D2': 'as_error_setall_10', 'sub_476205': 'as_batch_read_record_size_old'}"}
pjsip_warning_hdr_create
a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c
AonCyberLabs
D-Modem
NA
PJ_DEF(pjsip_warning_hdr*) pjsip_warning_hdr_create( pj_pool_t *pool, int code, const pj_str_t *host, const pj_str_t *text) { const pj_str_t str_warning = { "Warning", 7 }; pj_str_t hvalue; hvalue.ptr = (char*) pj_pool_alloc(pool, 10 + /* code */ host->slen + 2 + /* host */ text->slen + 2); /* text */ hvalue.slen = pj_ansi_sprintf(hvalue.ptr, "%u %.*s \"%.*s\"", code, (int)host->slen, host->ptr, (int)text->slen, text->ptr); return pjsip_generic_string_hdr_create(pool, &str_warning, &hvalue); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41DCD3", "function_addr": 4316371, "binary_name": "a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.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_40], rcx"], [7, "mov [rbp+var_10], offset aWarning"], [8, "mov [rbp+var_8], 7"], [9, "mov rax, [rbp+var_38]"], [10, "mov rax, [rax+8]"], [11, "lea rdx, [rax+0Ch]"], [12, "mov rax, [rbp+var_40]"], [13, "mov rax, [rax+8]"], [14, "add rax, rdx"], [15, "add rax, 2"], [16, "mov rdx, rax"], [17, "mov rax, [rbp+var_28]"], [18, "mov rsi, rdx"], [19, "mov rdi, rax"], [20, "call sub_4BDE04"], [21, "mov [rbp+s], rax"], [22, "mov rax, [rbp+var_40]"], [23, "mov rcx, [rax]"], [24, "mov rax, [rbp+var_40]"], [25, "mov rax, [rax+8]"], [26, "mov r8d, eax"], [27, "mov rax, [rbp+var_38]"], [28, "mov rsi, [rax]"], [29, "mov rax, [rbp+var_38]"], [30, "mov rax, [rax+8]"], [31, "mov edi, eax"], [32, "mov rax, [rbp+s]"], [33, "mov edx, [rbp+var_2C]"], [34, "sub rsp, 8"], [35, "push rcx"], [36, "mov r9d, r8d"], [37, "mov r8, rsi"], [38, "mov ecx, edi"], [39, "mov esi, offset aUSS"], [40, "mov rdi, rax"], [41, "mov eax, 0"], [42, "call _sprintf"], [43, "add rsp, 10h"], [44, "cdqe"], [45, "mov [rbp+var_18], rax"], [46, "lea rdx, [rbp+s]"], [47, "lea rcx, [rbp+var_10]"], [48, "mov rax, [rbp+var_28]"], [49, "mov rsi, rcx"], [50, "mov rdi, rax"], [51, "call sub_41AD33"], [52, "leave"], [53, "retn"]], "data_dep": [[9, 5], [10, 9], [11, 10], [12, 6], [13, 12], [14, 13], [14, 11], [15, 14], [16, 15], [17, 3], [18, 16], [19, 17], [21, 20], [22, 6], [23, 22], [24, 6], [25, 24], [26, 25], [27, 5], [28, 27], [29, 5], [30, 29], [31, 30], [32, 21], [33, 4], [34, 2], [35, 23], [36, 26], [37, 28], [38, 31], [40, 32], [43, 34], [45, 42], [46, 33], [46, 21], [47, 7], [47, 38], [48, 3], [49, 47], [50, 48], [53, 51]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c_a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.jsonl.gz", "strip_func_name": "sub_41DCD3", "query": "\n\n\n_QWORD *__fastcall sub_41DCD3(__int64 a1, unsigned int a2, __int64 a3, __int64 a4)\n{\nchar *s[2]; // [rsp+20h] [rbp-20h] BYREF\n__int64 v8[2]; // [rsp+30h] [rbp-10h] BYREF\n\nv8[0] = (__int64)\"Warning\";\nv8[1] = 7LL;\ns[0] = (char *)sub_4BDE04(a1, *(_QWORD *)(a3 + 8) + 12LL + *(_QWORD *)(a4 + 8) + 2);\ns[1] = (char *)sprintf(\ns[0],\n\"%u %.*s \\\"%.*s\\\"\",\na2,\n*(_QWORD *)(a3 + 8),\n*(const char **)a3,\n*(_QWORD *)(a4 + 8),\n*(const char **)a4);\nreturn sub_41AD33(a1, (__int64)v8, (__int64)s);\n}\n\n\n\nQ:[a3,a4,a1,a2,s,v8,sub_41DCD3,sub_4BDE04,sub_41AD33,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'host', 'a4': 'text', 'a1': 'pool', 'a2': 'code', 's': 'hvalue', 'v8': 'str_warning', 'sub_41DCD3': 'pjsip_warning_hdr_create', 'sub_4BDE04': 'pj_pool_alloc', 'sub_41AD33': 'pjsip_generic_string_hdr_create'}"}
card_service
f403d1d8b77541da522a0d0c3deff2e4197be390cb78692e79a5ebc1ff898374
open-simh
simh
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f403d1d8b77541da522a0d0c3deff2e4197be390cb78692e79a5ebc1ff898374_f403d1d8b77541da522a0d0c3deff2e4197be390cb78692e79a5ebc1ff898374.jsonl.gz", "strip_func_name": "sub_42B1E3", "query": "\n\n\n__int64 __fastcall sub_42B1E3(_DWORD *a1, __int64 a2, __int64 a3, __int64 a4, int a5, int a6)\n{\n__int64 v6; // rcx\nunsigned int v8; // [rsp+1Ch] [rbp-4h]\n\nv8 = 0;\nif ( qword_55C6A0 && (*((_DWORD *)(&off_5197A0)[a1 == (_DWORD *)&unk_518C08] + 29) & 0x20) != 0 )\nsub_43C2D8(\n(unsigned int)(&off_5197A0)[a1 == (_DWORD *)&unk_518C08],\n32,\n(unsigned int)\"Poll delay %d service entered\\n\",\na1[22],\na5,\na6);\ndword_535B58[a1 == (_DWORD *)&unk_518C08] += a1[22];\nif ( *((_DWORD *)*(&off_518A80 + 2 * (a1 == (_DWORD *)&unk_518C08)) + 1) == 1 )\n{\n*((_DWORD *)*(&off_518A80 + 2 * (a1 == (_DWORD *)&unk_518C08)) + 1) = 0;\nv6 = a1 == (_DWORD *)&unk_518C08;\ndword_534AC0[6 * v6 + 1] = *((_DWORD *)*(&off_518A80 + 2 * v6) + 2);\nif ( qword_55C6A0 && (*((_DWORD *)(&off_5197A0)[a1 == (_DWORD *)&unk_518C08] + 29) & 0x40) != 0 )\nsub_43C2D8(\n(unsigned int)(&off_5197A0)[a1 == (_DWORD *)&unk_518C08],\n64,\n(unsigned int)\"Word %06o delta %u received from link\\n\",\ndword_534AC0[6 * (a1 == (_DWORD *)&unk_518C08) + 1],\ndword_535B58[a1 == (_DWORD *)&unk_518C08],\na6);\ndword_534AC0[6 * (a1 == (_DWORD *)&unk_518C08) + 5] = 1;\nsub_407C33((__int64)(&off_5197A0)[a1 == (_DWORD *)&unk_518C08], 0, a1 == (_DWORD *)&unk_518C08, v6, a5, a6);\n*((_DWORD *)*(&off_518A88 + 2 * (a1 == (_DWORD *)&unk_518C08)) + 1) = 0;\na1[22] = 1;\ndword_535B58[a1 == (_DWORD *)&unk_518C08] = 0;\n}\nelse\n{\na1[22] *= 2;\nif ( a1[22] > dword_518AA4 )\na1[22] = dword_518AA4;\nif ( !*(_DWORD *)*(&off_518A80 + 2 * (a1 == (_DWORD *)&unk_518C08)) && (unsigned int)sub_407878((__int64)a1) )\nv8 = 7;\n}\nif ( (a1[14] & 0x10) != 0 )\nsub_42BC6A(a1);\nreturn v8;\n}\n\n\n\nQ:[a1,v8,sub_42B1E3,sub_43C2D8,sub_407C33,sub_407878,sub_42BC6A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'uptr', 'v8': 'status', 'sub_42B1E3': 'card_service', 'sub_43C2D8': 'hp_trace', 'sub_407C33': 'io_assert', 'sub_407878': 'cpu_io_stop', 'sub_42BC6A': 'activate_unit_1'}"}
io_uring_register_files
42b9cb0422a1c78635feb8fba999ca2c8214840ffb0193952c8a598439ecf984
facebook
openbmc-linux
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/42b9cb0422a1c78635feb8fba999ca2c8214840ffb0193952c8a598439ecf984_42b9cb0422a1c78635feb8fba999ca2c8214840ffb0193952c8a598439ecf984.jsonl.gz", "strip_func_name": "sub_40138D", "query": "\n\n\n__int64 __fastcall sub_40138D(__int64 a1)\n{\nunsigned int i; // [rsp+1Ch] [rbp-4h]\n\nif ( dword_405B8C )\nreturn 0LL;\n*(_QWORD *)(a1 + 2224) = calloc(*(unsigned int *)(a1 + 2616), 4uLL);\nfor ( i = 0; i < *(_DWORD *)(a1 + 2616); ++i )\n{\n*(_DWORD *)(*(_QWORD *)(a1 + 2224) + 4LL * i) = *(_DWORD *)(a1 + 24LL * i + 2244);\n*(_DWORD *)(a1 + 24LL * i + 2248) = i;\n}\nreturn sub_4012A2(*(_DWORD *)(a1 + 8), 2u, *(_QWORD *)(a1 + 2224), *(_DWORD *)(a1 + 2616));\n}\n\n\n\nQ:[a1,sub_40138D,sub_4012A2,]\nAssistant: ", "hints": "[]", "response": "{'a1': 's', 'sub_40138D': 'io_uring_register_files', 'sub_4012A2': 'io_uring_register'}"}
isst_get_get_trl
f3289d91472f8ba82301152b86372819bacdda97fbdc2768a4880549cb47a846
SUSE
kernel
NA
int isst_get_get_trl(struct isst_id *id, int level, int avx_level, int *trl) { CHECK_CB(get_get_trl); return isst_ops->get_get_trl(id, level, avx_level, trl); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40A126", "function_addr": 4235558, "binary_name": "f3289d91472f8ba82301152b86372819bacdda97fbdc2768a4880549cb47a846.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_10], edx"], [6, "mov [rbp+var_18], rcx"], [7, "mov rax, cs:qword_41E240"], [8, "test rax, rax"], [9, "jz short loc_40A158"], [10, "mov rax, cs:qword_41E240"], [11, "mov rax, [rax+58h]"], [12, "test rax, rax"], [13, "jnz short loc_40A180"], [14, "mov rax, cs:stderr"], [15, "mov rcx, rax"], [16, "mov edx, 0Ch"], [17, "mov esi, 1"], [18, "mov edi, offset aInvalidOps"], [19, "call _fwrite"], [20, "mov edi, 0"], [21, "call _exit"], [22, "mov rax, cs:qword_41E240"], [23, "mov r8, [rax+58h]"], [24, "mov rcx, [rbp+var_18]"], [25, "mov edx, [rbp+var_10]"], [26, "mov esi, [rbp+var_C]"], [27, "mov rax, [rbp+var_8]"], [28, "mov rdi, rax"], [29, "call r8"], [30, "leave"], [31, "retn"]], "data_dep": [[8, 7], [9, 8], [11, 10], [12, 11], [13, 12], [15, 14], [23, 22], [24, 6], [25, 5], [26, 4], [27, 3], [28, 27], [29, 23], [31, 29]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f3289d91472f8ba82301152b86372819bacdda97fbdc2768a4880549cb47a846_f3289d91472f8ba82301152b86372819bacdda97fbdc2768a4880549cb47a846.jsonl.gz", "strip_func_name": "sub_40A126", "query": "\n\n\n__int64 __fastcall sub_40A126(__int64 a1, unsigned int a2, unsigned int a3, __int64 a4)\n{\nif ( !qword_41E240 || !*(_QWORD *)(qword_41E240 + 88) )\n{\nfwrite(\"Invalid ops\\n\", 1uLL, 0xCuLL, stderr);\nexit(0);\n}\nreturn (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD, __int64))(qword_41E240 + 88))(a1, a2, a3, a4);\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_40A126,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'avx_level', 'a4': 'trl', 'a1': 'id', 'a2': 'level', 'sub_40A126': 'isst_get_get_trl'}"}
OptLoad3
7a9fd741a95dae0778f24573dd0254b72607ff4da9f089d1feccd19f23d872f4
MEGA65
mega65-tools
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/7a9fd741a95dae0778f24573dd0254b72607ff4da9f089d1feccd19f23d872f4_7a9fd741a95dae0778f24573dd0254b72607ff4da9f089d1feccd19f23d872f4.jsonl.gz", "strip_func_name": "sub_45A867", "query": "\n\n\n__int64 __fastcall sub_45A867(__int64 a1)\n{\nunsigned int i; // eax\n__int64 v3; // [rsp+18h] [rbp-28h]\n__int64 v4; // [rsp+20h] [rbp-20h]\nunsigned int v5; // [rsp+2Ch] [rbp-14h]\n__int64 v6; // [rsp+30h] [rbp-10h]\nunsigned int v7; // [rsp+3Ch] [rbp-4h]\n\nv7 = 0;\nv6 = 0LL;\nv5 = 0;\nfor ( i = sub_45A404(a1); v5 < i; i = sub_45A404(a1) )\n{\nv4 = sub_45A422(a1, v5);\nif ( v6 && sub_45A39A(v4) )\nv6 = 0LL;\nif ( (*(_WORD *)(v4 + 24) & 0x40) != 0 )\n{\nif ( v6\n&& *(_BYTE *)v4 == *(_BYTE *)v6\n&& *(_BYTE *)(v4 + 1) == *(_BYTE *)(v6 + 1)\n&& (!*(_QWORD *)(v4 + 8) && !*(_QWORD *)(v6 + 8) || !strcmp(*(const char **)(v4 + 8), *(const char **)(v6 + 8))) )\n{\nv3 = sub_4644A5(a1, v5);\nif ( v3 )\n{\nif ( (*(_WORD *)(v3 + 24) & 2) == 0 )\n{\nsub_4642F3(a1, v5);\n++v7;\ncontinue;\n}\n}\n}\nv6 = v4;\n}\nelse if ( (*(_WORD *)(v4 + 24) & 0x1000) == 0 && (*(_WORD *)(v4 + 24) & 2) == 0 )\n{\nv6 = 0LL;\n}\n++v5;\n}\nreturn v7;\n}\n\n\n\nQ:[a1,v3,v4,v5,v6,v7,sub_45A867,sub_45A404,sub_45A422,sub_45A39A,sub_4644A5,sub_4642F3,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'S', 'v3': 'N', 'v4': 'E', 'v5': 'I', 'v6': 'Load', 'v7': 'Changes', 'sub_45A867': 'OptLoad3', 'sub_45A404': 'CS_GetEntryCount_15', 'sub_45A422': 'CS_GetEntry_14', 'sub_45A39A': 'CE_HasLabel_9', 'sub_4644A5': 'CS_GetNextEntry', 'sub_4642F3': 'CS_DelEntry'}"}
printCrossReference
9fb152280bc296402481effb363baf7e69e326337ee0cc1c947861f1826f4953
open-simh
simtools
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/9fb152280bc296402481effb363baf7e69e326337ee0cc1c947861f1826f4953_9fb152280bc296402481effb363baf7e69e326337ee0cc1c947861f1826f4953.jsonl.gz", "strip_func_name": "sub_40456A", "query": "\n\n\n__int64 sub_40456A()\n{\nint v0; // eax\n__int64 result; // rax\nint v2; // [rsp+0h] [rbp-20h]\nint v3; // [rsp+4h] [rbp-1Ch]\n__int64 i; // [rsp+8h] [rbp-18h]\nint v5; // [rsp+14h] [rbp-Ch]\nint j; // [rsp+18h] [rbp-8h]\nint v7; // [rsp+1Ch] [rbp-4h]\n\ndword_40C404 = 60;\ndword_40C30C = 0;\nv7 = 0;\nfor ( i = qword_409D80; ; i += 24LL )\n{\nresult = (unsigned int)dword_409D88;\nif ( v7 >= dword_409D88 )\nbreak;\nif ( (*(_DWORD *)i & 2) == 0 || *(_DWORD *)(qword_409EA8 + 4LL * *(int *)(i + 16)) )\n{\n++dword_40C30C;\nif ( ++dword_40C404 > 59 )\nsub_4047E0(&byte_40C320, aCrossReference);\nfprintf(stream, \"%5d\", (unsigned int)dword_40C30C);\nv3 = *(_DWORD *)(i + 20);\nv2 = *(_DWORD *)(i + 16);\nv0 = *(_DWORD *)i & 0x11;\nif ( v0 )\n{\nif ( v0 == 17 )\nfprintf(stream, \" M %5d \", *(unsigned int *)(qword_409EA8 + 4LL * v2));\nelse\nfprintf(stream, \" A %5d \", *(unsigned int *)(qword_409EA8 + 4LL * v2));\n}\nelse\n{\nfwrite(\" U \", 1uLL, 0xBuLL, stream);\n}\nfprintf(stream, \"%-6.6s \", (const char *)(i + 4));\nv5 = 0;\nfor ( j = 1; v3 >= j; ++j )\n{\nif ( v5 > 7 )\n{\nv5 = 0;\nif ( ++dword_40C404 > 59 )\nsub_4047E0(&byte_40C320, aCrossReference);\nfprintf(stream, \"\\n%5d%-19s\", (unsigned int)++dword_40C30C, \" \");\n}\nfprintf(stream, \" %5d\", *(unsigned int *)(qword_409EA8 + 4LL * (v2 + j)));\n++v5;\n}\nfputc(10, stream);\n}\n++v7;\n}\nreturn result;\n}\n\n\n\nQ:[v2,v3,i,v5,j,v7,sub_40456A,sub_4047E0,]\nAssistant: ", "hints": "[]", "response": "{'v2': 'xc_index', 'v3': 'xc_refcount', 'i': 'sym', 'v5': 'xc_cols', 'j': 'xc', 'v7': 'ix', 'sub_40456A': 'printCrossReference', 'sub_4047E0': 'topOfForm'}"}
setup_post
b966b6a0f98e2bb041caa7d7d60fcbc0a72a6bdc6378cc14f28644e8e2e82b2a
shellphish
driller-afl
NA
static void setup_post(void) { void* dh; u8* fn = getenv("AFL_POST_LIBRARY"); u32 tlen = 6; if (!fn) return; ACTF("Loading postprocessor from '%s'...", fn); dh = dlopen(fn, RTLD_NOW); if (!dh) FATAL("%s", dlerror()); post_handler = dlsym(dh, "afl_postprocess"); if (!post_handler) FATAL("Symbol 'afl_postprocess' not found."); /* Do a quick test. It's better to segfault now than later =) */ post_handler("hello", &tlen); OKF("Postprocessor installed successfully."); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405931", "function_addr": 4217137, "binary_name": "b966b6a0f98e2bb041caa7d7d60fcbc0a72a6bdc6378cc14f28644e8e2e82b2a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov edi, offset aAflPostLibrary"], [4, "call _getenv"], [5, "mov [rbp+file], rax"], [6, "mov [rbp+var_14], 6"], [7, "cmp [rbp+file], 0"], [8, "jz loc_405A5F"], [9, "mov rax, [rbp+file]"], [10, "mov rsi, rax"], [11, "mov edi, offset a134m0mloadingP"], [12, "mov eax, 0"], [13, "call _printf"], [14, "mov edi, offset a0m"], [15, "call _puts"], [16, "mov rax, [rbp+file]"], [17, "mov esi, 2"], [18, "mov rdi, rax"], [19, "call _dlopen"], [20, "mov [rbp+handle], rax"], [21, "cmp [rbp+handle], 0"], [22, "jnz short loc_4059D4"], [23, "call _dlerror"], [24, "mov rsi, rax"], [25, "mov edi, offset byte_41A6A8"], [26, "mov eax, 0"], [27, "call _printf"], [28, "mov ecx, 4CEh"], [29, "mov edx, offset aAflFuzzC"], [30, "mov esi, offset aSetupPost"], [31, "mov edi, offset a131mLocation0m"], [32, "mov eax, 0"], [33, "call _printf"], [34, "mov edi, 1"], [35, "call _exit"], [36, "mov rax, [rbp+handle]"], [37, "mov esi, offset aAflPostprocess"], [38, "mov rdi, rax"], [39, "call _dlsym"], [40, "mov cs:qword_585AC0, rax"], [41, "mov rax, cs:qword_585AC0"], [42, "test rax, rax"], [43, "jnz short loc_405A2F"], [44, "mov edi, offset byte_41A6E8"], [45, "mov eax, 0"], [46, "call _printf"], [47, "mov ecx, 4D1h"], [48, "mov edx, offset aAflFuzzC"], [49, "mov esi, offset aSetupPost"], [50, "mov edi, offset a131mLocation0m"], [51, "mov eax, 0"], [52, "call _printf"], [53, "mov edi, 1"], [54, "call _exit"], [55, "mov rdx, cs:qword_585AC0"], [56, "lea rax, [rbp+var_14]"], [57, "mov rsi, rax"], [58, "mov edi, offset aHello"], [59, "call rdx "], [60, "mov edi, offset a132m0mpostproc"], [61, "mov eax, 0"], [62, "call _printf"], [63, "mov edi, offset a0m"], [64, "call _puts"], [65, "jmp short locret_405A60"], [66, "nop"], [67, "leave"], [68, "retn"]], "data_dep": [[5, 4], [7, 5], [8, 7], [9, 5], [10, 9], [16, 5], [18, 16], [20, 19], [21, 20], [22, 21], [24, 23], [36, 20], [38, 36], [40, 39], [41, 40], [42, 41], [43, 42], [55, 40], [56, 6], [56, 42], [57, 56], [59, 55], [68, 4], [68, 64]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b966b6a0f98e2bb041caa7d7d60fcbc0a72a6bdc6378cc14f28644e8e2e82b2a_b966b6a0f98e2bb041caa7d7d60fcbc0a72a6bdc6378cc14f28644e8e2e82b2a.jsonl.gz", "strip_func_name": "sub_405931", "query": "\n\n\nint sub_405931()\n{\nchar *v0; // rax\nchar *v1; // rax\nint v3; // [rsp+Ch] [rbp-14h] BYREF\nvoid *handle; // [rsp+10h] [rbp-10h]\nchar *file; // [rsp+18h] [rbp-8h]\n\nv0 = getenv(\"AFL_POST_LIBRARY\");\nfile = v0;\nv3 = 6;\nif ( v0 )\n{\nprintf(\"\\x1B[1;34m[*] \\x1B[0mLoading postprocessor from '%s'...\", file);\nputs(\"\\x1B[0m\");\nhandle = dlopen(file, 2);\nif ( !handle )\n{\nv1 = dlerror();\nprintf(&byte_41A6A8, v1);\nprintf(\"\\x1B[1;31m\\n Location : \\x1B[0m%s(), %s:%u\\n\\n\", \"setup_post\", \"afl-fuzz.c\", 1230LL);\nexit(1);\n}\nqword_585AC0 = (__int64 (__fastcall *)(_QWORD, _QWORD))dlsym(handle, \"afl_postprocess\");\nif ( !qword_585AC0 )\n{\nprintf(&byte_41A6E8);\nprintf(\"\\x1B[1;31m\\n Location : \\x1B[0m%s(), %s:%u\\n\\n\", \"setup_post\", \"afl-fuzz.c\", 1233LL);\nexit(1);\n}\nqword_585AC0(\"hello\", &v3);\nprintf(\"\\x1B[1;32m[+] \\x1B[0mPostprocessor installed successfully.\");\nLODWORD(v0) = puts(\"\\x1B[0m\");\n}\nreturn (int)v0;\n}\n\n\n\nQ:[v3,handle,file,sub_405931,]\nAssistant: ", "hints": "[]", "response": "{'v3': 'tlen', 'handle': 'dh_0', 'file': 'fn', 'sub_405931': 'setup_post'}"}
r_case_special
9acf456e98009cb498ed5cac4153ab67c8dd7caf33921402739ca86e36cd0298
hthetiot
php-stemmer
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/9acf456e98009cb498ed5cac4153ab67c8dd7caf33921402739ca86e36cd0298_9acf456e98009cb498ed5cac4153ab67c8dd7caf33921402739ca86e36cd0298.jsonl.gz", "strip_func_name": "sub_417966", "query": "\n\n\n__int64 __fastcall sub_417966(__int64 a1)\n{\nint v2; // [rsp+1Ch] [rbp-14h]\nint v3; // [rsp+20h] [rbp-10h]\nint v4; // [rsp+24h] [rbp-Ch]\n_BOOL4 v5; // [rsp+28h] [rbp-8h]\nint v6; // [rsp+2Ch] [rbp-4h]\n\n*(_DWORD *)(a1 + 24) = *(_DWORD *)(a1 + 8);\nif ( *(_DWORD *)(a1 + 8) - 2 <= *(_DWORD *)(a1 + 16)\n|| *(_BYTE *)(*(_QWORD *)a1 + *(int *)(a1 + 8) - 1LL) != 110\n&& *(_BYTE *)(*(_QWORD *)a1 + *(int *)(a1 + 8) - 1LL) != 116 )\n{\nreturn 0LL;\n}\nv6 = sub_433800(a1, &unk_447D40, 3LL);\nif ( !v6 )\nreturn 0LL;\n*(_DWORD *)(a1 + 20) = *(_DWORD *)(a1 + 8);\nv5 = sub_417417(a1);\nif ( !v5 )\nreturn 0LL;\nif ( v5 < 0 )\nreturn v5;\nif ( v6 == 3 )\n{\nv4 = sub_433C7A(a1, 1LL, &unk_4360A8);\nif ( v4 < 0 )\nreturn (unsigned int)v4;\n}\nelse if ( v6 <= 3 )\n{\nif ( v6 == 2 )\n{\nv3 = sub_433C7A(a1, 1LL, &unk_4360A7);\nif ( v3 < 0 )\nreturn (unsigned int)v3;\n}\nelse if ( v6 == 1 )\n{\nv2 = sub_433C7A(a1, 1LL, &unk_4360A6);\nif ( v2 < 0 )\nreturn (unsigned int)v2;\n}\n}\nreturn 1LL;\n}\n\n\n\nQ:[a1,v2,v3,v4,v6,sub_417966,sub_433800,sub_417417,sub_433C7A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'z', 'v2': 'ret_0', 'v3': 'ret_1', 'v4': 'ret_2', 'v6': 'among_var', 'sub_417966': 'r_case_special_0', 'sub_433800': 'find_among_b', 'sub_417417': 'r_R1_8', 'sub_433C7A': 'slice_from_s'}"}
pjsip_ctype_hdr_print
0d02b74aea201d48cc3d38bf7d5dfeacbcaff9102bd8e2dbdd0b1813b49b64a0
AonCyberLabs
D-Modem
NA
static int pjsip_ctype_hdr_print( pjsip_ctype_hdr *hdr, char *buf, pj_size_t size) { char *p = buf; int len; const pj_str_t *hname = pjsip_cfg()->endpt.use_compact_form? &hdr->sname : &hdr->name; if ((pj_ssize_t)size < hname->slen + hdr->media.type.slen + hdr->media.subtype.slen + 8) { return -1; } pj_memcpy(p, hname->ptr, hname->slen); p += hname->slen; *p++ = ':'; *p++ = ' '; len = print_media_type(p, (unsigned)(buf+size-p), &hdr->media); p += len; *p = '\0'; return (int)(p-buf); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_418807", "function_addr": 4294663, "binary_name": "0d02b74aea201d48cc3d38bf7d5dfeacbcaff9102bd8e2dbdd0b1813b49b64a0.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_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov rax, [rbp+var_30]"], [7, "mov [rbp+var_8], rax"], [8, "call sub_415B32"], [9, "mov eax, [rax+28h]"], [10, "test eax, eax"], [11, "jz short loc_418839"], [12, "mov rax, [rbp+var_28]"], [13, "add rax, 28h "], [14, "jmp short loc_418841"], [15, "mov rax, [rbp+var_28]"], [16, "add rax, 18h"], [17, "mov [rbp+var_10], rax"], [18, "mov rax, [rbp+var_10]"], [19, "mov rdx, [rax+8]"], [20, "mov rax, [rbp+var_28]"], [21, "mov rax, [rax+48h]"], [22, "add rdx, rax"], [23, "mov rax, [rbp+var_28]"], [24, "mov rax, [rax+58h]"], [25, "add rax, rdx"], [26, "lea rdx, [rax+7]"], [27, "mov rax, [rbp+var_38]"], [28, "cmp rdx, rax"], [29, "jl short loc_41887A"], [30, "mov eax, 0FFFFFFFFh"], [31, "jmp locret_418907"], [32, "mov rax, [rbp+var_10]"], [33, "mov rax, [rax+8]"], [34, "mov rdx, rax"], [35, "mov rax, [rbp+var_10]"], [36, "mov rcx, [rax]"], [37, "mov rax, [rbp+var_8]"], [38, "mov rsi, rcx"], [39, "mov rdi, rax"], [40, "call sub_415E2F"], [41, "mov rax, [rbp+var_10]"], [42, "mov rax, [rax+8]"], [43, "add [rbp+var_8], rax"], [44, "mov rax, [rbp+var_8]"], [45, "lea rdx, [rax+1]"], [46, "mov [rbp+var_8], rdx"], [47, "mov byte ptr [rax], 3Ah "], [48, "mov rax, [rbp+var_8]"], [49, "lea rdx, [rax+1]"], [50, "mov [rbp+var_8], rdx"], [51, "mov byte ptr [rax], 20h "], [52, "mov rax, [rbp+var_28]"], [53, "lea rdx, [rax+40h]"], [54, "mov rcx, [rbp+var_30]"], [55, "mov rax, [rbp+var_38]"], [56, "add rax, rcx"], [57, "sub rax, [rbp+var_8]"], [58, "mov ecx, eax"], [59, "mov rax, [rbp+var_8]"], [60, "mov esi, ecx"], [61, "mov rdi, rax"], [62, "call sub_4186E1"], [63, "mov [rbp+var_14], eax"], [64, "mov eax, [rbp+var_14]"], [65, "cdqe"], [66, "add [rbp+var_8], rax"], [67, "mov rax, [rbp+var_8]"], [68, "mov byte ptr [rax], 0"], [69, "mov rax, [rbp+var_8]"], [70, "sub rax, [rbp+var_30]"], [71, "leave"], [72, "retn"]], "data_dep": [[6, 4], [7, 6], [9, 8], [10, 9], [11, 10], [12, 3], [13, 12], [15, 3], [16, 15], [17, 16], [17, 13], [18, 17], [19, 18], [20, 3], [21, 20], [22, 19], [22, 21], [23, 3], [24, 23], [25, 22], [25, 24], [26, 25], [26, 22], [27, 5], [28, 27], [28, 26], [29, 28], [32, 17], [33, 32], [34, 33], [35, 17], [36, 35], [37, 7], [38, 36], [39, 37], [41, 17], [42, 41], [43, 42], [43, 7], [44, 43], [45, 34], [45, 44], [46, 45], [47, 44], [48, 46], [49, 47], [49, 45], [49, 48], [50, 49], [51, 48], [52, 3], [53, 49], [53, 52], [53, 51], [54, 4], [55, 5], [56, 55], [56, 54], [57, 50], [57, 56], [58, 57], [59, 50], [60, 58], [61, 59], [63, 62], [64, 63], [66, 50], [66, 64], [67, 66], [68, 67], [69, 66], [70, 69], [70, 4], [72, 30], [72, 70]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/0d02b74aea201d48cc3d38bf7d5dfeacbcaff9102bd8e2dbdd0b1813b49b64a0_0d02b74aea201d48cc3d38bf7d5dfeacbcaff9102bd8e2dbdd0b1813b49b64a0.jsonl.gz", "strip_func_name": "sub_418807", "query": "\n\n\n__int64 __fastcall sub_418807(__int64 a1, char *a2, __int64 a3)\n{\n__int64 v3; // rax\nchar *v5; // rax\n__int64 v7; // [rsp+30h] [rbp-10h]\nchar *v8; // [rsp+38h] [rbp-8h]\n\nif ( *((_DWORD *)sub_415B32() + 10) )\nv3 = a1 + 40;\nelse\nv3 = a1 + 24;\nv7 = v3;\nif ( *(_QWORD *)(a1 + 72) + *(_QWORD *)(v3 + 8) + *(_QWORD *)(a1 + 88) + 7LL >= a3 )\nreturn 0xFFFFFFFFLL;\nsub_415E2F(a2, *(const void **)v3, *(_QWORD *)(v3 + 8));\nv5 = &a2[*(_QWORD *)(v7 + 8)];\n*v5++ = 58;\n*v5 = 32;\nv8 = &v5[(int)sub_4186E1(v5 + 1, (int)a2 + (int)a3 - ((int)v5 + 1), a1 + 64) + 1];\n*v8 = 0;\nreturn v8 - a2;\n}\n\n\n\nQ:[a3,a1,a2,v7,v8,sub_418807,sub_415B32,sub_415E2F,sub_4186E1,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'size', 'a1': 'hdr', 'a2': 'buf', 'v7': 'hname', 'v8': 'p', 'sub_418807': 'pjsip_ctype_hdr_print', 'sub_415B32': 'pjsip_cfg_3', 'sub_415E2F': 'pj_memcpy_2', 'sub_4186E1': 'print_media_type'}"}
parseURL
d90aaca07ffa1bc3a84ec58ad1444b3f3d20d339df099979f54c5839ac7b39ab
STJr
SRB2
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d90aaca07ffa1bc3a84ec58ad1444b3f3d20d339df099979f54c5839ac7b39ab_d90aaca07ffa1bc3a84ec58ad1444b3f3d20d339df099979f54c5839ac7b39ab.jsonl.gz", "strip_func_name": "sub_4099CF", "query": "\n\n\n__int64 __fastcall sub_4099CF(__int64 a1, void *a2, _WORD *a3, char **a4)\n{\n__int64 result; // rax\nint v5; // eax\nint v6; // eax\nint v7; // eax\nchar *v10; // [rsp+28h] [rbp-18h]\nchar *v11; // [rsp+28h] [rbp-18h]\nchar *src; // [rsp+30h] [rbp-10h]\nchar *srca; // [rsp+30h] [rbp-10h]\nchar *v14; // [rsp+38h] [rbp-8h]\n_BYTE *v15; // [rsp+38h] [rbp-8h]\nchar *i; // [rsp+38h] [rbp-8h]\nchar *v17; // [rsp+38h] [rbp-8h]\nchar *j; // [rsp+38h] [rbp-8h]\n\nif ( !a1 )\nreturn 0LL;\nsrc = strstr((const char *)a1, \"://\");\nif ( !src )\nreturn 0LL;\nsrca = src + 3;\nif ( *(_BYTE *)a1 != 104 || *(_BYTE *)(a1 + 1) != 116 || *(_BYTE *)(a1 + 2) != 116 || *(_BYTE *)(a1 + 3) != 112 )\nreturn 0LL;\nmemset(a2, 0, 0x41uLL);\nif ( *srca == 91 && (v14 = strchr(srca, 93), v10 = strchr(srca, 47), v14) && v10 )\n{\nv15 = v14 + 1;\nv5 = (_DWORD)v15 - (_DWORD)srca;\nif ( (int)v15 - (int)srca > 64 )\nv5 = 64;\nstrncpy((char *)a2, srca, v5);\nif ( *v15 == 58 )\n{\n*a3 = 0;\nfor ( i = v15 + 1; *i > 47 && *i <= 57; ++i )\n{\n*a3 *= 10;\n*a3 = *a3 + *i - 48;\n}\n}\nelse\n{\n*a3 = 80;\n}\n*a4 = v10;\nresult = 1LL;\n}\nelse\n{\nv17 = strchr(srca, 58);\nv11 = strchr(srca, 47);\nif ( v11 )\n{\nif ( v17 && v17 <= v11 )\n{\nv7 = (_DWORD)v17 - (_DWORD)srca;\nif ( (int)v17 - (int)srca > 64 )\nv7 = 64;\nstrncpy((char *)a2, srca, v7);\n*a3 = 0;\nfor ( j = v17 + 1; *j > 47 && *j <= 57; ++j )\n{\n*a3 *= 10;\n*a3 = *a3 + *j - 48;\n}\n}\nelse\n{\nv6 = (_DWORD)v11 - (_DWORD)srca;\nif ( (int)v11 - (int)srca > 64 )\nv6 = 64;\nstrncpy((char *)a2, srca, v6);\n*a3 = 80;\n}\n*a4 = v11;\nresult = 1LL;\n}\nelse\n{\nresult = 0LL;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v10,src,v14,sub_4099CF,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'port', 'a4': 'path', 'a1': 'url', 'a2': 'hostname', 'v10': 'p3a', 'src': 'p1a', 'v14': 'p2a', 'sub_4099CF': 'parseURL'}"}
_output_frames
1ddbab108cd0d70a91ae4b5bb08eed255eb7cd1972e06624c62bfb405562abae
ralph-irving
squeezelite
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1ddbab108cd0d70a91ae4b5bb08eed255eb7cd1972e06624c62bfb405562abae_1ddbab108cd0d70a91ae4b5bb08eed255eb7cd1972e06624c62bfb405562abae.jsonl.gz", "strip_func_name": "sub_40B346", "query": "\n\n\n__int64 __fastcall sub_40B346(unsigned int a1)\n{\nunsigned int v1; // eax\nunsigned int v2; // eax\nchar *v3; // rax\n__int64 v4; // r9\nunsigned int v5; // eax\nunsigned int v6; // ebx\nchar *v7; // rax\nunsigned int v8; // eax\nunsigned int v9; // ebx\nchar *v10; // rax\n__int64 v11; // r9\nunsigned int v12; // eax\nint v13; // eax\nunsigned int v14; // eax\nint v15; // eax\nunsigned int v16; // eax\nchar *v17; // rax\nunsigned int v18; // eax\nunsigned int v19; // er12\nunsigned int v20; // ebx\nchar *v21; // rax\nunsigned int v22; // eax\nchar *v23; // rax\n__int64 v24; // r8\n__int64 v25; // r9\nunsigned int v26; // eax\n__int64 v27; // rax\n__int64 v28; // rax\nchar *v29; // rax\n__int64 v30; // r8\n__int64 v31; // r9\nchar *v32; // rax\n__int64 v33; // r8\n__int64 v34; // r9\nunsigned int v35; // eax\nchar *v36; // rax\n__int64 v37; // r8\n__int64 v38; // r9\nchar *v39; // rax\n__int64 v40; // r8\n__int64 v41; // r9\nchar *v42; // rax\n__int64 v43; // r8\n__int64 v44; // r9\nunsigned int v45; // eax\n__m128i v46; // xmm0\nunsigned int v47; // eax\n__m128i v48; // xmm0\nchar *v49; // rax\n__int64 v50; // r8\n__int64 v51; // r9\nunsigned int v52; // eax\nchar *v53; // rax\n__int64 v54; // r9\n__int64 v56; // [rsp+18h] [rbp-68h] BYREF\nint v57; // [rsp+24h] [rbp-5Ch]\nunsigned int v58; // [rsp+28h] [rbp-58h]\nunsigned int v59; // [rsp+2Ch] [rbp-54h]\nint v60; // [rsp+30h] [rbp-50h]\nunsigned int v61; // [rsp+34h] [rbp-4Ch]\nunsigned int v62; // [rsp+38h] [rbp-48h]\nunsigned int v63; // [rsp+3Ch] [rbp-44h]\nunsigned __int8 v64; // [rsp+43h] [rbp-3Dh]\nunsigned int v65; // [rsp+44h] [rbp-3Ch]\nint v66; // [rsp+48h] [rbp-38h]\nunsigned int v67; // [rsp+4Ch] [rbp-34h]\nunsigned int v68; // [rsp+50h] [rbp-30h]\nunsigned int v69; // [rsp+54h] [rbp-2Ch]\nunsigned int v70; // [rsp+58h] [rbp-28h]\nunsigned int v71; // [rsp+5Ch] [rbp-24h]\nunsigned int v72; // [rsp+60h] [rbp-20h]\nunsigned __int8 v73; // [rsp+67h] [rbp-19h]\nunsigned int v74; // [rsp+68h] [rbp-18h]\nunsigned int v75; // [rsp+6Ch] [rbp-14h]\n\nv64 = dword_423800[2];\nv72 = 0;\nv71 = 0;\nv56 = 0LL;\nif ( dword_423800[41] )\nv1 = sub_410726((unsigned int)dword_423800[46], (unsigned int)dword_423800[41]);\nelse\nv1 = dword_423800[46];\nv70 = v1;\nif ( dword_423800[41] )\nv2 = sub_410726((unsigned int)dword_423800[47], (unsigned int)dword_423800[41]);\nelse\nv2 = dword_423800[47];\nv69 = v2;\nif ( LOBYTE(dword_423800[48]) )\n{\nv70 = -v70;\nv69 = -v69;\n}\nv75 = (unsigned int)sub_408AB2(off_4205B0) >> 3;\nv73 = 0;\nif ( dword_423800[0] == 1 && 8 * v75 > dword_423800[50] * dword_423800[43] / 0xAu && v75 > dword_423800[12] )\n{\ndword_423800[0] = 2;\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv3 = sub_40A8DB();\nsub_40A95A(\"%s %s:%d start buffer frames: %u\\n\", (__int64)v3, (__int64)\"_output_frames\", 65LL, v75, v4);\n}\nsub_408108();\n}\nif ( dword_423800[0] == 4 )\n{\nif ( v75 )\n{\nv5 = dword_423800[42];\nif ( v75 <= v5 )\nv5 = v75;\nv68 = v5;\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv6 = dword_423800[42];\nv7 = sub_40A8DB();\nsub_40A95A(\"%s %s:%d skip %u of %u frames\\n\", (__int64)v7, (__int64)\"_output_frames\", 73LL, v68, v6);\n}\nv75 -= v68;\ndword_423800[13] += v68;\nwhile ( v68 )\n{\nif ( v68 < (unsigned int)sub_408B41(off_4205B0) >> 3 )\nv8 = v68;\nelse\nv8 = (unsigned int)sub_408B41(off_4205B0) >> 3;\nv63 = v8;\nv68 -= v8;\nsub_408BDB(off_4205B0, 8 * v8);\n}\n}\ndword_423800[0] = 2;\n}\nif ( dword_423800[0] == 3 )\n{\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv9 = dword_423800[42];\nv10 = sub_40A8DB();\nsub_40A95A(\"%s %s:%d pause %u frames\\n\", (__int64)v10, (__int64)\"_output_frames\", 87LL, v9, v11);\n}\nif ( dword_423800[42] )\n{\nv73 = 1;\nv12 = dword_423800[42];\nif ( a1 <= v12 )\nv12 = a1;\nv75 = v12;\nv13 = 2048;\nif ( v75 <= 0x800 )\nv13 = v75;\nv75 = v13;\ndword_423800[42] -= v13;\n}\nelse\n{\ndword_423800[0] = 2;\n}\n}\nif ( dword_423800[0] == 5 )\n{\nv62 = sub_40AABF();\nif ( v62 < dword_423800[42] && dword_423800[42] <= v62 + 10000 )\n{\nv61 = (dword_423800[42] - v62) * dword_423800[15] / 0x3E8;\nv73 = 1;\nv14 = a1;\nif ( v61 <= a1 )\nv14 = v61;\nv75 = v14;\nv15 = 2048;\nif ( v75 <= 0x800 )\nv15 = v75;\nv75 = v15;\n}\nelse\n{\ndword_423800[0] = 2;\n}\n}\nif ( dword_423800[0] <= 1 || !v75 )\n{\nv73 = 1;\nv16 = 2048;\nif ( a1 <= 0x800 )\nv16 = a1;\nv75 = v16;\n}\nif ( (unsigned int)dword_422CA4 > 3 )\n{\nv17 = sub_40A8DB();\nsub_40A95A(\n\"%s %s:%d avail: %d frames: %d silence: %d\\n\",\n(__int64)v17,\n(__int64)\"_output_frames\",\n117LL,\na1,\nv75,\nv73);\n}\nv18 = v75;\nif ( a1 <= v75 )\nv18 = a1;\nv75 = v18;\nv74 = v18;\nwhile ( v74 )\n{\nv67 = (unsigned int)sub_408B41(off_4205B0) >> 3;\nif ( *(_QWORD *)&dword_423800[44] && v73 != 1 )\n{\nif ( *(_QWORD *)&dword_423800[44] == *((_QWORD *)off_4205B0 + 1) )\n{\nv66 = 0;\nif ( dword_423800[15] != dword_423800[43] )\nv66 = dword_423800[59];\nv75 -= v74;\nif ( v66 )\n{\ndword_423800[0] = 3;\nif ( LOBYTE(dword_423800[60]) != 1 )\n{\ndword_423800[42] = v66 * dword_423800[15] / 0x7D0u;\nLOBYTE(dword_423800[60]) = 1;\nbreak;\n}\ndword_423800[42] = v66 * dword_423800[43] / 0x7D0u;\nLOBYTE(dword_423800[60]) = 0;\n}\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv19 = dword_423800[49];\nv20 = dword_423800[43];\nv21 = sub_40A8DB();\nsub_40A95A(\n\"%s %s:%d track start sample rate: %u replay_gain: %u\\n\",\n(__int64)v21,\n(__int64)\"_output_frames\",\n153LL,\nv20,\nv19);\n}\ndword_423800[13] = 0;\nLOBYTE(dword_423800[8]) = 1;\ndword_423800[40] = sub_40AABF();\ndword_423800[15] = dword_423800[43];\nif ( !dword_423800[51] || dword_423800[57] != 1 )\ndword_423800[41] = dword_423800[49];\n*(_QWORD *)&dword_423800[44] = 0LL;\nbreak;\n}\nif ( *(_QWORD *)&dword_423800[44] > *((_QWORD *)off_4205B0 + 1) )\n{\nv22 = v67;\nif ( (*(_QWORD *)&dword_423800[44] - *((_QWORD *)off_4205B0 + 1)) / 8LL <= v67 )\nv22 = (*(_QWORD *)&dword_423800[44] - *((_QWORD *)off_4205B0 + 1)) / 8LL;\nv67 = v22;\n}\n}\nif ( dword_423800[51] && v73 != 1 )\n{\nif ( dword_423800[51] == 1 )\n{\nif ( *(_QWORD *)&dword_423800[52] == *((_QWORD *)off_4205B0 + 1) )\n{\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv23 = sub_40A8DB();\nsub_40A95A(\"%s %s:%d fade start reached\\n\", (__int64)v23, (__int64)\"_output_frames\", 181LL, v24, v25);\n}\ndword_423800[51] = 2;\n}\nelse if ( *(_QWORD *)&dword_423800[52] > *((_QWORD *)off_4205B0 + 1) )\n{\nv26 = v67;\nif ( (*(_QWORD *)&dword_423800[52] - *((_QWORD *)off_4205B0 + 1)) / 8LL <= v67 )\nv26 = (*(_QWORD *)&dword_423800[52] - *((_QWORD *)off_4205B0 + 1)) / 8LL;\nv67 = v26;\n}\n}\nif ( dword_423800[51] == 2 )\n{\nif ( *((_QWORD *)off_4205B0 + 1) < *(_QWORD *)&dword_423800[52] )\nv27 = (*((_QWORD *)off_4205B0 + 4) + *((_QWORD *)off_4205B0 + 1) - *(_QWORD *)&dword_423800[52]) / 8LL;\nelse\nv27 = (*((_QWORD *)off_4205B0 + 1) - *(_QWORD *)&dword_423800[52]) / 8LL;\nv65 = v27;\nif ( *(_QWORD *)&dword_423800[54] < *(_QWORD *)&dword_423800[52] )\nv28 = (*((_QWORD *)off_4205B0 + 4) + *(_QWORD *)&dword_423800[54] - *(_QWORD *)&dword_423800[52]) / 8LL;\nelse\nv28 = (*(_QWORD *)&dword_423800[54] - *(_QWORD *)&dword_423800[52]) / 8LL;\nv60 = v28;\nif ( v65 >= (unsigned int)v28 )\n{\nif ( dword_423800[57] == 4 && dword_423800[56] == 2 )\n{\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv29 = sub_40A8DB();\nsub_40A95A(\n\"%s %s:%d fade down complete, starting fade up\\n\",\n(__int64)v29,\n(__int64)\"_output_frames\",\n195LL,\nv30,\nv31);\n}\ndword_423800[56] = 1;\n*(_QWORD *)&dword_423800[52] = *((_QWORD *)off_4205B0 + 1);\n*(_QWORD *)&dword_423800[54] = (unsigned int)(8 * v60) + *((_QWORD *)off_4205B0 + 1);\nif ( *(_QWORD *)&dword_423800[54] >= *((_QWORD *)off_4205B0 + 3) )\n*(_QWORD *)&dword_423800[54] -= *((_QWORD *)off_4205B0 + 4);\nv65 = 0;\n}\nelse if ( dword_423800[57] == 1 )\n{\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv32 = sub_40A8DB();\nsub_40A95A(\"%s %s:%d crossfade complete\\n\", (__int64)v32, (__int64)\"_output_frames\", 204LL, v33, v34);\n}\nv35 = sub_408AB2(off_4205B0);\nif ( v35 < 8 * v60 )\n{\nif ( dword_422CA4 )\n{\nv39 = sub_40A8DB();\nsub_40A95A(\n\"%s %s:%d unable to skip crossfaded start\\n\",\n(__int64)v39,\n(__int64)\"_output_frames\",\n209LL,\nv40,\nv41);\n}\n}\nelse\n{\nsub_408BDB(off_4205B0, 8 * v60);\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv36 = sub_40A8DB();\nsub_40A95A(\n\"%s %s:%d skipped crossfaded start\\n\",\n(__int64)v36,\n(__int64)\"_output_frames\",\n207LL,\nv37,\nv38);\n}\n}\ndword_423800[51] = 0;\ndword_423800[41] = dword_423800[49];\n}\nelse\n{\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv42 = sub_40A8DB();\nsub_40A95A(\"%s %s:%d fade complete\\n\", (__int64)v42, (__int64)\"_output_frames\", 214LL, v43, v44);\n}\ndword_423800[51] = 0;\n}\n}\nif ( dword_423800[51] )\n{\nif ( *(_QWORD *)&dword_423800[54] > *((_QWORD *)off_4205B0 + 1) )\n{\nv45 = v67;\nif ( (*(_QWORD *)&dword_423800[54] - *((_QWORD *)off_4205B0 + 1)) / 8LL <= v67 )\nv45 = (*(_QWORD *)&dword_423800[54] - *((_QWORD *)off_4205B0 + 1)) / 8LL;\nv67 = v45;\n}\nif ( dword_423800[56] == 1 || dword_423800[56] == 2 )\n{\nif ( dword_423800[56] == 2 )\nv65 = v60 - v65;\nv46 = 0LL;\n*(float *)v46.m128i_i32 = (float)(int)v65 / (float)v60;\nv59 = sub_410789(*(double *)_mm_cvtsi32_si128(_mm_cvtsi128_si32(v46)).m128i_i64);\nv70 = sub_410726(v70, v59);\nv69 = sub_410726(v69, v59);\nif ( LOBYTE(dword_423800[48]) )\n{\nv70 = -v70;\nv69 = -v69;\n}\n}\nif ( dword_423800[56] == 3 )\n{\nv47 = sub_408AB2(off_4205B0);\nif ( v47 >> 3 <= v60 + v74 )\n{\nif ( (unsigned int)dword_422CA4 > 1 )\n{\nv49 = sub_40A8DB();\nsub_40A95A(\n\"%s %s:%d unable to continue crossfade - too few samples\\n\",\n(__int64)v49,\n(__int64)\"_output_frames\",\n251LL,\nv50,\nv51);\n}\ndword_423800[51] = 0;\n}\nelse\n{\nv48 = 0LL;\n*(float *)v48.m128i_i32 = (float)(int)v65 / (float)v60;\nv72 = sub_410789(*(double *)_mm_cvtsi32_si128(_mm_cvtsi128_si32(v48)).m128i_i64);\nv71 = 0x10000 - v72;\nif ( dword_423800[41] )\nv71 = sub_410726(v71, (unsigned int)dword_423800[41]);\nif ( dword_423800[49] )\nv72 = sub_410726(v72, (unsigned int)dword_423800[49]);\nv70 = dword_423800[46];\nv69 = dword_423800[47];\nif ( LOBYTE(dword_423800[48]) )\n{\nv70 = -v70;\nv69 = -v69;\n}\nv56 = *(_QWORD *)&dword_423800[54] + 8 * v65;\n}\n}\n}\n}\n}\nif ( v73 != 1 )\n{\nv52 = v74;\nif ( v67 <= v74 )\nv52 = v67;\n}\nelse\n{\nv52 = v74;\n}\nv58 = v52;\nv57 = (*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD, _QWORD, _QWORD, _QWORD, _QWORD, __int64 *))&dword_423800[10])(\nv52,\nv73,\nv70,\nv69,\nv64,\nv72,\nv71,\n&v56);\nif ( v57 <= 0 )\n{\nv75 -= v74;\nbreak;\n}\nv58 = v57;\nv74 -= v57;\nif ( v73 != 1 )\n{\nsub_408BDB(off_4205B0, 8 * v58);\ndword_423800[13] += v58;\n}\n}\nif ( (unsigned int)dword_422CA4 > 3 )\n{\nv53 = sub_40A8DB();\nsub_40A95A(\"%s %s:%d wrote %u frames\\n\", (__int64)v53, (__int64)\"_output_frames\", 286LL, v75, v54);\n}\nreturn v75;\n}\n\n\n\nQ:[a1,v56,v57,v58,v59,v60,v61,v62,v63,v64,v65,v66,v67,v68,v69,v70,v71,v72,v73,v74,v75,sub_40B346,sub_410726,sub_408AB2,sub_40A8DB,sub_40A95A,sub_408108,sub_408B41,sub_408BDB,sub_40AABF,sub_410789,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'avail', 'v56': 'cross_ptr', 'v57': 'wrote', 'v58': 'out_frames', 'v59': 'fade_gain', 'v60': 'dur_f', 'v61': 'delta_frames', 'v62': 'now', 'v63': 'cont_frames', 'v64': 'flags', 'v65': 'cur_f', 'v66': 'delay', 'v67': 'cont_frames_0', 'v68': 'skip', 'v69': 'gainR', 'v70': 'gainL', 'v71': 'cross_gain_out', 'v72': 'cross_gain_in', 'v73': 'silence', 'v74': 'size', 'v75': 'frames', 'sub_40B346': '_output_frames', 'sub_410726': 'gain.localalias', 'sub_408AB2': '_buf_used', 'sub_40A8DB': 'logtime', 'sub_40A95A': 'logprint', 'sub_408108': 'wake_controller', 'sub_408B41': '_buf_cont_read', 'sub_408BDB': '_buf_inc_readp', 'sub_40AABF': 'gettime_ms', 'sub_410789': 'to_gain'}"}
u8g2_Setup_st7567_64x32_f
2b9fe636105b1c217d646f6f505ec5c5841c21218c68c54bdc83f742f945e2b5
Ai-Thinker-Open
Ai-Thinker-WB2
NA
void u8g2_Setup_st7567_64x32_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_st7567_64x32, u8x8_cad_001, byte_cb, gpio_and_delay_cb); buf = u8g2_m_8_4_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_419F56", "function_addr": 4300630, "binary_name": "2b9fe636105b1c217d646f6f505ec5c5841c21218c68c54bdc83f742f945e2b5.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 [rbp+var_30], rcx"], [7, "mov rcx, [rbp+var_30]"], [8, "mov rdx, [rbp+var_28]"], [9, "mov rax, [rbp+var_18]"], [10, "mov r8, rcx"], [11, "mov rcx, rdx"], [12, "mov edx, offset sub_422AE0"], [13, "mov esi, offset sub_426667"], [14, "mov rdi, rax"], [15, "call sub_406F92"], [16, "lea rax, [rbp+var_9]"], [17, "mov rdi, rax"], [18, "call sub_4332CD"], [19, "mov [rbp+var_8], rax"], [20, "movzx eax, [rbp+var_9]"], [21, "movzx edx, al"], [22, "mov rcx, [rbp+var_20]"], [23, "mov rsi, [rbp+var_8]"], [24, "mov rax, [rbp+var_18]"], [25, "mov r8, rcx"], [26, "mov ecx, offset sub_402AE9"], [27, "mov rdi, rax"], [28, "call sub_42F582"], [29, "nop"], [30, "leave"], [31, "retn"]], "data_dep": [[7, 6], [8, 5], [9, 3], [10, 7], [11, 8], [14, 9], [16, 15], [17, 16], [19, 18], [21, 20], [22, 4], [23, 19], [24, 3], [25, 22], [27, 24], [31, 28]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/2b9fe636105b1c217d646f6f505ec5c5841c21218c68c54bdc83f742f945e2b5_2b9fe636105b1c217d646f6f505ec5c5841c21218c68c54bdc83f742f945e2b5.jsonl.gz", "strip_func_name": "sub_419F56", "query": "\n\n\n__int64 __fastcall sub_419F56(_QWORD *a1, __int64 a2, __int64 a3, __int64 a4)\n{\nunsigned __int8 v5; // [rsp+27h] [rbp-9h] BYREF\n__int64 v6; // [rsp+28h] [rbp-8h]\n\nsub_406F92(a1, (__int64)sub_426667, (__int64)sub_422AE0, a3, a4);\nv6 = sub_4332CD(&v5);\nreturn sub_42F582(a1, v6, v5, sub_402AE9, a2);\n}\n\n\n\nQ:[a3,a4,a1,a2,v5,v6,sub_419F56,sub_406F92,sub_426667,sub_422AE0,sub_4332CD,sub_42F582,sub_402AE9,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'byte_cb', 'a4': 'gpio_and_delay_cb', 'a1': 'u8g2', 'a2': 'rotation', 'v5': 'tile_buf_height', 'v6': 'buf', 'sub_419F56': 'u8g2_Setup_st7567_64x32_f', 'sub_406F92': 'u8x8_Setup', 'sub_426667': 'u8x8_d_st7567_64x32', 'sub_422AE0': 'u8x8_cad_001', 'sub_4332CD': 'u8g2_m_8_4_f', 'sub_42F582': 'u8g2_SetupBuffer', 'sub_402AE9': 'u8g2_ll_hvline_vertical_top_lsb'}"}
findattach
6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17
RTimothyEdwards
XCircuit
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17_6e348e984bd63ac982d83dafa4e61fb9925c759b418264e141a667eb3a0dba17.jsonl.gz", "strip_func_name": "sub_418166", "query": "\n\n\nunsigned __int64 __fastcall sub_418166(_WORD *a1, int *a2, __int16 *a3)\n{\n__m128i v3; // xmm0\n__int64 v4; // rdx\n__int64 v5; // rdx\ndouble v6; // xmm0_8\nfloat v7; // xmm0_4\nunsigned __int64 result; // rax\nfloat v9; // xmm0_4\ndouble v10; // xmm0_8\nfloat v11; // xmm0_4\n__int64 v12; // rdx\n__int64 v13; // rdx\n__int64 v14; // rdx\n__int64 v15; // rdx\n__int64 v16; // rdx\n__int64 v17; // rdx\n__int64 v18; // rdx\n__int64 v19; // rdx\ndouble v20; // [rsp+8h] [rbp-E8h]\ndouble v21; // [rsp+8h] [rbp-E8h]\ndouble v22; // [rsp+8h] [rbp-E8h]\ndouble v23; // [rsp+8h] [rbp-E8h]\ndouble v24; // [rsp+8h] [rbp-E8h]\ndouble v25; // [rsp+8h] [rbp-E8h]\ndouble v26; // [rsp+10h] [rbp-E0h]\ndouble v27; // [rsp+10h] [rbp-E0h]\ndouble v28; // [rsp+10h] [rbp-E0h]\ndouble v29; // [rsp+10h] [rbp-E0h]\ndouble v30; // [rsp+10h] [rbp-E0h]\ndouble v31; // [rsp+10h] [rbp-E0h]\nint v33; // [rsp+38h] [rbp-B8h] BYREF\n__int16 v34[2]; // [rsp+3Ch] [rbp-B4h] BYREF\n__int16 v35[2]; // [rsp+40h] [rbp-B0h] BYREF\nfloat v36; // [rsp+44h] [rbp-ACh] BYREF\n__int64 v37; // [rsp+48h] [rbp-A8h]\nunsigned int v38; // [rsp+54h] [rbp-9Ch]\n__int64 v39; // [rsp+58h] [rbp-98h]\n__int64 v40; // [rsp+60h] [rbp-90h]\n_WORD *v41; // [rsp+68h] [rbp-88h]\n__int64 v42; // [rsp+70h] [rbp-80h]\n__int64 v43; // [rsp+78h] [rbp-78h]\n__int64 v44; // [rsp+80h] [rbp-70h]\n__int16 *v45; // [rsp+88h] [rbp-68h]\n__int16 *v46; // [rsp+90h] [rbp-60h]\n__int64 v47; // [rsp+98h] [rbp-58h]\n__int64 v48; // [rsp+A0h] [rbp-50h]\n__int64 v49; // [rsp+A8h] [rbp-48h]\n__int16 *v50; // [rsp+B0h] [rbp-40h]\n__int16 *v51; // [rsp+B8h] [rbp-38h]\n__int16 *j; // [rsp+C0h] [rbp-30h]\n__int64 v53; // [rsp+C8h] [rbp-28h]\n__int64 *i; // [rsp+D0h] [rbp-20h]\nfloat v55; // [rsp+DCh] [rbp-14h]\nfloat v56; // [rsp+E0h] [rbp-10h]\nfloat v57; // [rsp+E4h] [rbp-Ch]\ndouble x; // [rsp+E8h] [rbp-8h]\n\nv3 = 0LL;\nv36 = 0.0;\nif ( a2 )\n{\nv3 = (__m128i)(unsigned int)*a2;\nv36 = *(float *)a2;\n}\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv4 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv4 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nif ( (unsigned __int8)**(_WORD **)(v4 + 8LL * *(__int16 *)(qword_4E6B90 + 184)) == 8 )\n{\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv5 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv5 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nv37 = *(_QWORD *)(v5 + 8LL * *(__int16 *)(qword_4E6B90 + 184));\nif ( *(__int16 *)(v37 + 32) >= 0 )\nv6 = (double)*(__int16 *)(v37 + 32);\nelse\nv6 = (double)-*(__int16 *)(v37 + 32);\nx = atan2(\nv6 * (double)(a3[1] - *(__int16 *)(v37 + 46)),\n(double)(*a3 - *(__int16 *)(v37 + 44)) * (double)*(__int16 *)(v37 + 34));\nv7 = 57.295779 * x;\nv57 = v7;\nif ( v7 < 0.0 )\nv57 = v57 + 360.0;\nif ( *(float *)(v37 + 40) > 360.0 && v57 > (float)(*(float *)(v37 + 40) - 360.0) && *(float *)(v37 + 36) > v57\n|| *(float *)(v37 + 36) < 0.0 && v57 > *(float *)(v37 + 40) && (float)(*(float *)(v37 + 36) + 360.0) > v57\n|| *(float *)(v37 + 36) >= 0.0\n&& *(float *)(v37 + 40) <= 360.0\n&& (v57 > *(float *)(v37 + 40) || *(float *)(v37 + 36) > v57) )\n{\nv56 = *(float *)(v37 + 36) - v57;\nv55 = v57 - *(float *)(v37 + 40);\nif ( v56 < 0.0 )\nv56 = v56 + 360.0;\nif ( v55 < 0.0 )\nv55 = v55 + 360.0;\nif ( (*(_WORD *)(v37 + 16) & 1) == 0 )\n{\nx = *(float *)(v37 + 36) / 57.295779;\nif ( *(__int16 *)(v37 + 32) >= 0 )\nv26 = (double)*(__int16 *)(v37 + 32);\nelse\nv26 = (double)-*(__int16 *)(v37 + 32);\nv20 = (double)*(__int16 *)(v37 + 44);\nv35[0] = (int)(cos(x) * v26 + v20);\nv27 = (double)*(__int16 *)(v37 + 46);\nv21 = (double)*(__int16 *)(v37 + 34);\nv35[1] = (int)(sin(x) * v21 + v27);\nx = *(float *)(v37 + 40) / 57.295779;\nif ( *(__int16 *)(v37 + 32) >= 0 )\nv28 = (double)*(__int16 *)(v37 + 32);\nelse\nv28 = (double)-*(__int16 *)(v37 + 32);\nv22 = (double)*(__int16 *)(v37 + 44);\nv34[0] = (int)(cos(x) * v28 + v22);\nv29 = (double)*(__int16 *)(v37 + 46);\nv23 = (double)*(__int16 *)(v37 + 34);\nv34[1] = (int)(sin(x) * v23 + v29);\nresult = (unsigned __int64)sub_417FAE(v35, v34, (__int64)a3, a1, &v36);\nif ( a2 )\n{\nresult = (unsigned __int64)a2;\n*(float *)a2 = v36;\n}\nreturn result;\n}\nif ( v55 <= v56 )\nv9 = *(float *)(v37 + 40);\nelse\nv9 = *(float *)(v37 + 36);\nx = v9 / 57.295779;\n}\nif ( *(__int16 *)(v37 + 32) >= 0 )\nv30 = (double)*(__int16 *)(v37 + 32);\nelse\nv30 = (double)-*(__int16 *)(v37 + 32);\nv24 = (double)*(__int16 *)(v37 + 44);\n*a1 = (int)(cos(x) * v30 + v24);\nv31 = (double)*(__int16 *)(v37 + 46);\nv25 = (double)*(__int16 *)(v37 + 34);\nv10 = sin(x);\nresult = (unsigned __int64)a1;\na1[1] = (int)(v10 * v25 + v31);\nif ( a2 )\n{\nv11 = 90.0 - x * 57.295779;\n*(float *)a2 = v11;\nresult = (unsigned __int64)a2;\nif ( *(float *)a2 < 0.0 )\n{\nresult = (unsigned __int64)a2;\n*(float *)a2 = *(float *)a2 + 360.0;\n}\n}\n}\nelse\n{\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv12 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv12 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nif ( (unsigned __int8)**(_WORD **)(v12 + 8LL * *(__int16 *)(qword_4E6B90 + 184)) == 16 )\n{\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv13 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv13 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nv39 = *(_QWORD *)(v13 + 8LL * *(__int16 *)(qword_4E6B90 + 184));\n*(double *)v3.m128i_i64 = sub_440B9C(v39, a3);\nv38 = _mm_cvtsi128_si32(v3);\nresult = sub_4408D5(v39, a1, &v36, *(double *)_mm_cvtsi32_si128(v38).m128i_i64);\nif ( a2 )\n{\nresult = (unsigned __int64)a2;\n*(float *)a2 = v36;\n}\n}\nelse\n{\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv14 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv14 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nif ( (unsigned __int8)**(_WORD **)(v14 + 8LL * *(__int16 *)(qword_4E6B90 + 184)) == 1 )\n{\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv15 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv15 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nv43 = *(_QWORD *)(v15 + 8LL * *(__int16 *)(qword_4E6B90 + 184));\nv42 = *(_QWORD *)(v43 + 32);\nv53 = 100000000LL;\nv33 = 0;\nsub_454FFB(v43, &v33, a1);\nfor ( i = *(__int64 **)(v42 + 104); ; ++i )\n{\nresult = *(_QWORD *)(v42 + 104) + 8LL * *(__int16 *)(v42 + 100);\nif ( (unsigned __int64)i >= result )\nbreak;\nif ( (*(_WORD *)*i & 0x1FF) == 2 )\n{\nv41 = (_WORD *)*i;\nif ( *((_BYTE *)v41 + 38) == 1 || *((_BYTE *)v41 + 38) == 2 )\n{\nsub_454FFB(v43, v41 + 12, &v33);\nv40 = sub_43F4FF(&v33, a3);\nif ( v40 < v53 )\n{\nv53 = v40;\n*(_DWORD *)a1 = v33;\n}\n}\n}\n}\n}\nelse\n{\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv16 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv16 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nif ( (unsigned __int8)**(_WORD **)(v16 + 8LL * *(__int16 *)(qword_4E6B90 + 184)) == 2 )\n{\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv17 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv17 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nv44 = *(_QWORD *)(v17 + 8LL * *(__int16 *)(qword_4E6B90 + 184));\n*a1 = *(_WORD *)(v44 + 24);\nresult = (unsigned __int64)a1;\na1[1] = *(_WORD *)(v44 + 26);\n}\nelse\n{\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv18 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv18 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nresult = (unsigned __int8)**(_WORD **)(v18 + 8LL * *(__int16 *)(qword_4E6B90 + 184));\nif ( (_DWORD)result == 4 )\n{\nif ( *(_QWORD *)(qword_4E6B90 + 224) )\nv19 = *(_QWORD *)(*(_QWORD *)(**(_QWORD **)(qword_4E6B90 + 224) + 32LL) + 104LL);\nelse\nv19 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(qword_4E6B90 + 192) + 32LL) + 104LL);\nv48 = *(_QWORD *)(v19 + 8LL * *(__int16 *)(qword_4E6B90 + 184));\nv49 = 100000000LL;\nv50 = *(__int16 **)(v48 + 40);\nv51 = v50;\nfor ( j = *(__int16 **)(v48 + 40);\n(unsigned __int64)j < *(_QWORD *)(v48 + 40) + 4LL * *(__int16 *)(v48 + 32) - 4;\nj += 2 )\n{\nv47 = sub_43F66B(j, j + 2, a3);\nif ( v47 < v49 )\n{\nv49 = v47;\nv51 = j;\nv50 = j + 2;\n}\n}\nif ( (*(_WORD *)(v48 + 16) & 1) == 0 )\n{\nv47 = sub_43F66B(j, *(_QWORD *)(v48 + 40), a3);\nif ( v47 < v49 )\n{\nv49 = v47;\nv51 = j;\nv50 = *(__int16 **)(v48 + 40);\n}\n}\nv46 = v51;\nv45 = v50;\nresult = (unsigned __int64)sub_417FAE(v51, v50, (__int64)a3, a1, &v36);\nif ( a2 )\n{\nresult = (unsigned __int64)a2;\n*(float *)a2 = v36;\n}\n}\n}\n}\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51,j,v53,i,v55,v56,v57,x,sub_418166,sub_417FAE,sub_440B9C,sub_4408D5,sub_454FFB,sub_43F4FF,sub_43F66B,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'userpt', 'a1': 'newpos', 'a2': 'rot', 'v33': 'mdpoint', 'v34': 'end2', 'v35': 'end1', 'v36': 'locrot', 'v37': 'aarc', 'v38': 'frac', 'v39': 'aspline', 'v40': 'testdist', 'v41': 'alab', 'v42': 'aobj', 'v43': 'ainst', 'v44': 'alabel', 'v45': 'endpt2', 'v46': 'endpt1', 'v47': 'testdist_0', 'v48': 'apoly', 'v49': 'mindist_0', 'v50': 'nxtpt', 'v51': 'minpt', 'j': 'testpt', 'v53': 'mindist', 'i': 'ggen', 'v55': 'testd2', 'v56': 'testd1', 'v57': 'tmpdeg', 'x': 'tmpang', 'sub_418166': 'findattach', 'sub_417FAE': 'findwirex', 'sub_440B9C': 'findsplinemin', 'sub_4408D5': 'findsplinepos', 'sub_454FFB': 'ReferencePosition', 'sub_43F4FF': 'sqwirelen', 'sub_43F66B': 'finddist'}"}
NET_Shutdown
b43552e0fff71d31c631eb65f8db1a5e8d498b174719b2349c5cb5565f0c6dac
sezero
uhexen2
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b43552e0fff71d31c631eb65f8db1a5e8d498b174719b2349c5cb5565f0c6dac_b43552e0fff71d31c631eb65f8db1a5e8d498b174719b2349c5cb5565f0c6dac.jsonl.gz", "strip_func_name": "sub_40EC2A", "query": "\n\n\n__int64 __fastcall sub_40EC2A(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\n_QWORD *i; // [rsp+8h] [rbp-10h]\n\nsub_40E170();\nfor ( i = (_QWORD *)qword_453D60; i; i = (_QWORD *)*i )\nsub_40E469((__int64)i, a2);\nfor ( dword_453E4C = 0; ; ++dword_453E4C )\n{\nresult = 1LL;\nif ( dword_453E4C >= 1 )\nbreak;\nif ( *(_DWORD *)&algn_44A728[96 * dword_453E4C] == 1 )\n{\n(*(&off_44A778 + 12 * dword_453E4C))();\n*(_DWORD *)&algn_44A728[96 * dword_453E4C] = 0;\n}\n}\nreturn result;\n}\n\n\n\nQ:[i,sub_40EC2A,sub_40E170,sub_40E469,]\nAssistant: ", "hints": "[]", "response": "{'i': 'sock', 'sub_40EC2A': 'NET_Shutdown', 'sub_40E170': 'SetNetTime', 'sub_40E469': 'NET_Close'}"}
mbedtls_mpi_shift_r
ff5699798398ae88f37e03e58544b6b9131de65c851c8a96bc8e095fd0cb9939
FreeRTOS
iot-reference-stm32u5
NA
int mbedtls_mpi_shift_r( mbedtls_mpi *X, size_t count ) { size_t i, v0, v1; mbedtls_mpi_uint r0 = 0, r1; MPI_VALIDATE_RET( X != NULL ); v0 = count / biL; v1 = count & (biL - 1); if( v0 > X->n || ( v0 == X->n && v1 > 0 ) ) return mbedtls_mpi_lset( X, 0 ); /* * shift by count / limb_size */ if( v0 > 0 ) { for( i = 0; i < X->n - v0; i++ ) X->p[i] = X->p[i + v0]; for( ; i < X->n; i++ ) X->p[i] = 0; } /* * shift by count % limb_size */ if( v1 > 0 ) { for( i = X->n; i > 0; i-- ) { r1 = X->p[i - 1] << (biL - v1); X->p[i - 1] >>= v1; X->p[i - 1] |= r0; r0 = r1; } } return( 0 ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4178E5", "function_addr": 4290789, "binary_name": "ff5699798398ae88f37e03e58544b6b9131de65c851c8a96bc8e095fd0cb9939.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_40], rsi"], [5, "mov [rbp+var_10], 0"], [6, "mov rax, [rbp+var_40]"], [7, "shr rax, 6"], [8, "mov [rbp+var_18], rax"], [9, "mov rax, [rbp+var_40]"], [10, "and eax, 3Fh"], [11, "mov [rbp+var_20], rax"], [12, "mov rax, [rbp+var_38]"], [13, "mov rax, [rax+8]"], [14, "cmp [rbp+var_18], rax"], [15, "ja short loc_417937"], [16, "mov rax, [rbp+var_38]"], [17, "mov rax, [rax+8]"], [18, "cmp [rbp+var_18], rax"], [19, "jnz short loc_41794D"], [20, "cmp [rbp+var_20], 0"], [21, "jz short loc_41794D"], [22, "mov rax, [rbp+var_38]"], [23, "mov esi, 0"], [24, "mov rdi, rax"], [25, "call sub_4164FA"], [26, "jmp locret_417ABD"], [27, "cmp [rbp+var_18], 0"], [28, "jz loc_4179DC"], [29, "mov [rbp+var_8], 0"], [30, "jmp short loc_41799B"], [31, "mov rax, [rbp+var_38]"], [32, "mov rdx, [rax+10h]"], [33, "mov rcx, [rbp+var_8]"], [34, "mov rax, [rbp+var_18]"], [35, "add rax, rcx"], [36, "shl rax, 3"], [37, "lea rcx, [rdx+rax]"], [38, "mov rax, [rbp+var_38]"], [39, "mov rdx, [rax+10h]"], [40, "mov rax, [rbp+var_8]"], [41, "shl rax, 3"], [42, "add rdx, rax"], [43, "mov rax, [rcx]"], [44, "mov [rdx], rax"], [45, "add [rbp+var_8], 1"], [46, "mov rax, [rbp+var_38]"], [47, "mov rax, [rax+8]"], [48, "sub rax, [rbp+var_18]"], [49, "cmp [rbp+var_8], rax"], [50, "jb short loc_417962"], [51, "jmp short loc_4179CE"], [52, "mov rax, [rbp+var_38]"], [53, "mov rdx, [rax+10h]"], [54, "mov rax, [rbp+var_8]"], [55, "shl rax, 3"], [56, "add rax, rdx"], [57, "mov qword ptr [rax], 0"], [58, "add [rbp+var_8], 1"], [59, "mov rax, [rbp+var_38]"], [60, "mov rax, [rax+8]"], [61, "cmp [rbp+var_8], rax"], [62, "jb short loc_4179AF"], [63, "cmp [rbp+var_20], 0"], [64, "jz loc_417AB8"], [65, "mov rax, [rbp+var_38]"], [66, "mov rax, [rax+8]"], [67, "mov [rbp+var_8], rax"], [68, "jmp loc_417AAD"], [69, "mov rax, [rbp+var_38]"], [70, "mov rdx, [rax+10h]"], [71, "mov rax, [rbp+var_8]"], [72, "shl rax, 3"], [73, "sub rax, 8"], [74, "add rax, rdx"], [75, "mov rdx, [rax]"], [76, "mov rax, [rbp+var_20]"], [77, "mov ecx, eax"], [78, "mov eax, 40h "], [79, "sub eax, ecx"], [80, "mov ecx, eax"], [81, "shl rdx, cl"], [82, "mov rax, rdx"], [83, "mov [rbp+var_28], rax"], [84, "mov rax, [rbp+var_38]"], [85, "mov rdx, [rax+10h]"], [86, "mov rax, [rbp+var_8]"], [87, "shl rax, 3"], [88, "sub rax, 8"], [89, "add rax, rdx"], [90, "mov rdx, [rax]"], [91, "mov rax, [rbp+var_20]"], [92, "mov ecx, eax"], [93, "mov rax, [rbp+var_38]"], [94, "mov rsi, [rax+10h]"], [95, "mov rax, [rbp+var_8]"], [96, "shl rax, 3"], [97, "sub rax, 8"], [98, "add rax, rsi"], [99, "shr rdx, cl"], [100, "mov [rax], rdx"], [101, "mov rax, [rbp+var_38]"], [102, "mov rdx, [rax+10h]"], [103, "mov rax, [rbp+var_8]"], [104, "shl rax, 3"], [105, "sub rax, 8"], [106, "add rax, rdx"], [107, "mov rax, [rax]"], [108, "mov rdx, [rbp+var_38]"], [109, "mov rcx, [rdx+10h]"], [110, "mov rdx, [rbp+var_8]"], [111, "shl rdx, 3"], [112, "sub rdx, 8"], [113, "add rdx, rcx"], [114, "or rax, [rbp+var_10]"], [115, "mov [rdx], rax"], [116, "mov rax, [rbp+var_28]"], [117, "mov [rbp+var_10], rax"], [118, "sub [rbp+var_8], 1"], [119, "cmp [rbp+var_8], 0"], [120, "jnz loc_4179F8"], [121, "mov eax, 0"], [122, "leave"], [123, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [9, 4], [10, 9], [11, 10], [12, 3], [13, 12], [14, 13], [14, 8], [15, 14], [16, 3], [17, 16], [18, 17], [18, 8], [19, 18], [20, 11], [21, 20], [22, 3], [24, 22], [27, 8], [28, 27], [31, 3], [32, 31], [32, 44], [33, 45], [33, 29], [34, 8], [35, 33], [35, 34], [36, 35], [37, 33], [37, 44], [37, 36], [38, 3], [39, 44], [39, 38], [40, 45], [40, 29], [41, 40], [42, 39], [42, 41], [43, 37], [43, 44], [44, 42], [44, 43], [45, 45], [45, 29], [46, 3], [47, 44], [47, 46], [48, 8], [48, 47], [49, 48], [49, 45], [49, 29], [50, 49], [52, 3], [53, 57], [53, 52], [53, 44], [54, 58], [54, 45], [54, 29], [55, 54], [56, 53], [56, 55], [57, 56], [58, 58], [58, 45], [58, 29], [59, 3], [60, 57], [60, 59], [60, 44], [61, 45], [61, 29], [61, 58], [61, 60], [62, 61], [63, 11], [64, 63], [65, 3], [66, 57], [66, 44], [66, 65], [67, 66], [69, 3], [70, 57], [70, 100], [70, 115], [70, 44], [70, 69], [71, 67], [71, 118], [72, 71], [73, 72], [74, 73], [74, 70], [75, 115], [75, 44], [75, 74], [75, 57], [75, 100], [76, 11], [77, 76], [79, 78], [79, 77], [80, 79], [81, 80], [81, 75], [82, 81], [83, 82], [84, 3], [85, 57], [85, 84], [85, 100], [85, 115], [85, 44], [86, 67], [86, 118], [87, 86], [88, 87], [89, 88], [89, 85], [90, 115], [90, 44], [90, 89], [90, 57], [90, 100], [91, 11], [92, 91], [93, 3], [94, 57], [94, 100], [94, 93], [94, 115], [94, 44], [95, 118], [95, 67], [96, 95], [97, 96], [98, 94], [98, 97], [99, 90], [99, 92], [100, 98], [100, 99], [101, 3], [102, 100], [102, 101], [103, 118], [103, 67], [104, 103], [105, 104], [106, 102], [106, 105], [107, 106], [107, 100], [108, 3], [109, 108], [109, 100], [110, 118], [110, 67], [111, 110], [112, 111], [113, 112], [113, 109], [114, 5], [114, 117], [114, 107], [115, 114], [115, 113], [116, 83], [117, 116], [118, 67], [118, 118], [119, 118], [119, 67], [120, 119], [123, 121], [123, 25]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ff5699798398ae88f37e03e58544b6b9131de65c851c8a96bc8e095fd0cb9939_ff5699798398ae88f37e03e58544b6b9131de65c851c8a96bc8e095fd0cb9939.jsonl.gz", "strip_func_name": "sub_4178E5", "query": "\n\n\n__int64 __fastcall sub_4178E5(__int64 a1, unsigned __int64 a2)\n{\n__int64 v3; // [rsp+18h] [rbp-28h]\n__int64 v4; // [rsp+20h] [rbp-20h]\nunsigned __int64 v5; // [rsp+28h] [rbp-18h]\n__int64 v6; // [rsp+30h] [rbp-10h]\nunsigned __int64 i; // [rsp+38h] [rbp-8h]\n__int64 j; // [rsp+38h] [rbp-8h]\n\nv6 = 0LL;\nv5 = a2 >> 6;\nv4 = a2 & 0x3F;\nif ( __PAIR128__(a2 >> 6, v4) > __PAIR128__(*(_QWORD *)(a1 + 8), 0LL) )\nreturn sub_4164FA(a1, 0LL);\nif ( v5 )\n{\nfor ( i = 0LL; i < *(_QWORD *)(a1 + 8) - v5; ++i )\n*(_QWORD *)(8 * i + *(_QWORD *)(a1 + 16)) = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8 * (i + v5));\nwhile ( i < *(_QWORD *)(a1 + 8) )\n*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8 * i++) = 0LL;\n}\nif ( (a2 & 0x3F) != 0 )\n{\nfor ( j = *(_QWORD *)(a1 + 8); j; --j )\n{\nv3 = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 8 * j - 8) << (64 - (unsigned __int8)v4);\n*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8 * j - 8) >>= v4;\n*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8 * j - 8) |= v6;\nv6 = v3;\n}\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,v3,v6,j,sub_4178E5,sub_4164FA,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'X', 'a2': 'count', 'v3': 'r1', 'v6': 'r0', 'j': 'ia', 'sub_4178E5': 'mbedtls_mpi_shift_r', 'sub_4164FA': 'mbedtls_mpi_lset'}"}
load_GL_NV_draw_texture
f5227d6b31190984a5b857df5f03cff4635a382d1852a53d4ff2fd0ada8a07c1
heuripedes
sdlarch
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f5227d6b31190984a5b857df5f03cff4635a382d1852a53d4ff2fd0ada8a07c1_f5227d6b31190984a5b857df5f03cff4635a382d1852a53d4ff2fd0ada8a07c1.jsonl.gz", "strip_func_name": "sub_412A96", "query": "\n\n\n__int64 __fastcall sub_412A96(__int64 (__fastcall *a1)(const char *))\n{\n__int64 result; // rax\n\nresult = (unsigned int)dword_43C020;\nif ( dword_43C020 )\n{\nresult = a1(\"glDrawTextureNV\");\nqword_43E860 = result;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_412A96,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'load', 'sub_412A96': 'load_GL_NV_draw_texture'}"}
cpu_help
bf7ae1a4450b359f92e96f59068a71bc49375889282b3e96663c3c09631e7838
open-simh
simh
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/bf7ae1a4450b359f92e96f59068a71bc49375889282b3e96663c3c09631e7838_bf7ae1a4450b359f92e96f59068a71bc49375889282b3e96663c3c09631e7838.jsonl.gz", "strip_func_name": "sub_40856C", "query": "\n\n\n__int64 __fastcall sub_40856C(int a1, int a2, int a3, int a4, int a5)\n{\nchar v6[4856]; // [rsp+30h] [rbp-1300h] BYREF\nchar v7[8]; // [rsp+1328h] [rbp-8h] BYREF\n\nqmemcpy(v6, aTheDDeviceIsA1, sizeof(v6));\nstrcpy(v7, \"\\n\");\nreturn sub_442E51(a1, a2, a3, a4, (unsigned int)v6, a5);\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v6,sub_40856C,sub_442E51,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'uptr', 'a4': 'flag', 'a1': 'st', 'a2': 'dptr', 'a5': 'cptr', 'v6': 'helpString', 'sub_40856C': 'cpu_help', 'sub_442E51': 'scp_help'}"}
FL2_initDStream_prop
24d78b488ac6efd29907ebed989997e5db3f729ef5517ddab75dceaf3790cdd4
powturbo
TurboBench
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/24d78b488ac6efd29907ebed989997e5db3f729ef5517ddab75dceaf3790cdd4_24d78b488ac6efd29907ebed989997e5db3f729ef5517ddab75dceaf3790cdd4.jsonl.gz", "strip_func_name": "sub_42FB4C", "query": "\n\n\n__int64 __fastcall sub_42FB4C(__int64 a1, unsigned __int8 a2)\n{\nunsigned __int8 v3; // [rsp+4h] [rbp-1Ch]\n__int64 v4; // [rsp+18h] [rbp-8h]\n\n*(_BYTE *)(a1 + 57308) = a2 >> 7;\nv3 = a2 & 0x3F;\nif ( !*(_QWORD *)a1 || (unsigned int)sub_42E608(*(_QWORD *)a1, v3) )\n{\nv4 = sub_4063CB(a1 + 16, v3, 0LL, 0LL);\nif ( sub_429695(v4) )\nreturn v4;\n}\nif ( *(_BYTE *)(a1 + 57308) )\n{\nif ( !*(_QWORD *)(a1 + 57280) )\n{\n*(_QWORD *)(a1 + 57280) = sub_4089ED();\nif ( !*(_QWORD *)(a1 + 57280) )\nreturn -10LL;\n}\nsub_408A4B(*(void **)(a1 + 57280), 0);\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,v3,v4,sub_42FB4C,sub_42E608,sub_4063CB,sub_429695,sub_4089ED,sub_408A4B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fds', 'a2': 'prop', 'v3': 'propa', 'v4': 'errcod', 'sub_42FB4C': 'FL2_initDStream_prop', 'sub_42E608': 'FL2_lzma2DecMt_initProp', 'sub_4063CB': 'LZMA2_initDecoder', 'sub_429695': 'FL2_isError', 'sub_4089ED': 'XXH32_createState', 'sub_408A4B': 'XXH32_reset'}"}
testHEX64ArrayNotWithinDeltaAndMessage
46f2098509954f9b46a13d7d65487eeec0d3b9bfe0bee64bfb7700b5b7a10d06
aws-samples
connected-drink-dispenser-workshop
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/46f2098509954f9b46a13d7d65487eeec0d3b9bfe0bee64bfb7700b5b7a10d06_46f2098509954f9b46a13d7d65487eeec0d3b9bfe0bee64bfb7700b5b7a10d06.jsonl.gz", "strip_func_name": "sub_419020", "query": "\n\n\n__int64 __fastcall sub_419020(__int64 a1, __int64 *a2, __int64 a3)\n{\n__int64 v3; // rdi\nint v4; // eax\n__int64 v5; // rdx\n__int64 result; // rax\n__int64 v7[4]; // [rsp+0h] [rbp-40h] BYREF\n__int64 v8[4]; // [rsp+20h] [rbp-20h] BYREF\n\n++qword_477840;\nv8[0] = 2882343476LL;\nv8[1] = 2882343202LL;\nv8[2] = 2882343543LL;\nv7[0] = 2882343527LL;\nv7[1] = 2882343304LL;\nv7[2] = 2882343596LL;\nsub_437A0C(a1, a2, a3);\n++qword_477848;\nv3 = (__int64)env;\nv4 = _setjmp(env);\nv5 = ++qword_477850;\nif ( !v4 )\n{\n++qword_477858;\na2 = v8;\nv3 = 1LL;\nsub_405029(1uLL, (__int64)v8, (__int64)v7, 3, \"Custom Message.\", 2372LL, 72, 1);\n++qword_477860;\n}\nsub_437A39(v3, a2, v5);\n++qword_477868;\nqword_46C120 = qword_46C120 != 1;\nresult = qword_46C120;\nif ( qword_46C120 == 1 )\n{\n++qword_477870;\ndword_46D624 = 1;\nsub_4018BD(qword_46C100);\n++qword_477878;\nsub_437A88(58LL);\n++qword_477880;\nsub_4014A8((char *)qword_46C0E8);\n++qword_477888;\nsub_4014A8(\":FAIL: [[[[ Test Should Have Failed But Did Not ]]]]\");\n++qword_477890;\nsub_437A88(10LL);\nresult = ++qword_477898;\n}\nreturn result;\n}\n\n\n\nQ:[v7,v8,sub_419020,sub_437A0C,sub_405029,sub_437A39,sub_4018BD,sub_437A88,sub_4014A8,]\nAssistant: ", "hints": "[]", "response": "{'v7': 'acutalBigDelta', 'v8': 'expected', 'sub_419020': 'testHEX64ArrayNotWithinDeltaAndMessage', 'sub_437A0C': 'startPutcharSpy', 'sub_405029': 'UnityAssertNumbersArrayWithin', 'sub_437A39': 'endPutcharSpy', 'sub_4018BD': 'UnityPrintNumberUnsigned', 'sub_437A88': 'putcharSpy', 'sub_4014A8': 'UnityPrint'}"}
getopt_register_missing
ce761886799fbe7ca746e3456e5459b296b2a47afefbc6522ec9b20ba1309730
Tarsnap
libcperciva
NA
void getopt_register_missing(size_t ln) { /* Can't reset here. */ if (optreset) DIE("Can't reset in the middle of getopt loop"); /* We should only be called during initialization. */ assert(!getopt_initialized); /* Record missing-argument value. */ opt_missing = ln; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4023FA", "function_addr": 4203514, "binary_name": "ce761886799fbe7ca746e3456e5459b296b2a47afefbc6522ec9b20ba1309730.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_4050A0"], [5, "test eax, eax"], [6, "jz short loc_402473"], [7, "mov rax, cs:qword_4050E0"], [8, "test rax, rax"], [9, "jz short loc_40243C"], [10, "mov rdx, cs:qword_4050E0"], [11, "mov rax, cs:stderr"], [12, "mov esi, offset format"], [13, "mov rdi, rax"], [14, "mov eax, 0"], [15, "call _fprintf"], [16, "mov rax, cs:stderr"], [17, "mov rcx, rax"], [18, "mov edx, 28h "], [19, "mov esi, 1"], [20, "mov edi, offset aCanTResetInThe"], [21, "call _fwrite"], [22, "mov rax, cs:stderr"], [23, "mov rsi, rax"], [24, "mov edi, 0Ah"], [25, "call _fputc"], [26, "call _abort"], [27, "mov eax, cs:dword_4050D8"], [28, "test eax, eax"], [29, "jz short loc_402496"], [30, "mov ecx, offset aGetoptRegister_0"], [31, "mov edx, 14Dh"], [32, "mov esi, offset file"], [33, "mov edi, offset aGetoptInitiali_0"], [34, "call ___assert_fail"], [35, "mov rax, [rbp+var_8]"], [36, "mov cs:qword_4050F8, rax"], [37, "nop"], [38, "leave"], [39, "retn"]], "data_dep": [[5, 4], [6, 5], [8, 7], [9, 8], [13, 11], [17, 16], [23, 22], [28, 27], [29, 28], [35, 3], [36, 35], [39, 35]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ce761886799fbe7ca746e3456e5459b296b2a47afefbc6522ec9b20ba1309730_ce761886799fbe7ca746e3456e5459b296b2a47afefbc6522ec9b20ba1309730.jsonl.gz", "strip_func_name": "sub_4023FA", "query": "\n\n\n__int64 __fastcall sub_4023FA(__int64 a1)\n{\n__int64 result; // rax\n\nif ( dword_4050A0 )\n{\nif ( qword_4050E0 )\nfprintf(stderr, \"%s: \", (const char *)qword_4050E0);\nfwrite(\"Can't reset in the middle of getopt loop\", 1uLL, 0x28uLL, stderr);\nfputc(10, stderr);\nabort();\n}\nif ( dword_4050D8 )\n__assert_fail(\"!getopt_initialized\", \"../util/getopt.c\", 0x14Du, \"getopt_register_missing\");\nresult = a1;\nqword_4050F8 = a1;\nreturn result;\n}\n\n\n\nQ:[a1,sub_4023FA,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ln', 'sub_4023FA': 'getopt_register_missing'}"}
mfd_assert_has_seals
16fb0f5d267c14e88e39c51c579f7df17ccb77f1d09ce2f3123eb3c20f7284e4
Seagate
SMR_FS-EXT4
NA
static void mfd_assert_has_seals(int fd, unsigned int seals) { unsigned int s; s = mfd_assert_get_seals(fd); if (s != seals) { printf("%u != %u = GET_SEALS(%d)\n", seals, s, fd); abort(); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4013FB", "function_addr": 4199419, "binary_name": "16fb0f5d267c14e88e39c51c579f7df17ccb77f1d09ce2f3123eb3c20f7284e4.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+var_18], esi"], [5, "mov eax, [rbp+var_14]"], [6, "mov edi, eax"], [7, "call sub_4013B5"], [8, "mov [rbp+var_4], eax"], [9, "mov eax, [rbp+var_4]"], [10, "cmp eax, [rbp+var_18]"], [11, "jz short loc_40143D"], [12, "mov ecx, [rbp+var_14]"], [13, "mov edx, [rbp+var_4]"], [14, "mov eax, [rbp+var_18]"], [15, "mov esi, eax"], [16, "mov edi, offset aUUGetSealsD"], [17, "mov eax, 0"], [18, "call _printf"], [19, "call _abort"], [20, "nop"], [21, "leave"], [22, "retn"]], "data_dep": [[5, 3], [6, 5], [8, 7], [9, 8], [10, 9], [10, 4], [11, 10], [12, 3], [13, 8], [14, 4], [15, 14], [22, 9]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/16fb0f5d267c14e88e39c51c579f7df17ccb77f1d09ce2f3123eb3c20f7284e4_16fb0f5d267c14e88e39c51c579f7df17ccb77f1d09ce2f3123eb3c20f7284e4.jsonl.gz", "strip_func_name": "sub_4013FB", "query": "\n\n\n__int64 __fastcall sub_4013FB(unsigned int a1, unsigned int a2)\n{\n__int64 result; // rax\nunsigned int v3; // [rsp+1Ch] [rbp-4h]\n\nv3 = sub_4013B5(a1);\nresult = v3;\nif ( v3 != a2 )\n{\nprintf(\"%u != %u = GET_SEALS(%d)\\n\", a2, v3, a1);\nabort();\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v3,sub_4013FB,sub_4013B5,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fd', 'a2': 'seals', 'v3': 's', 'sub_4013FB': 'mfd_assert_has_seals', 'sub_4013B5': 'mfd_assert_get_seals'}"}
ZSTD_decodeLiteralsBlock
a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821
acama
libxdisasm
NA
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]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821_a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.jsonl.gz", "strip_func_name": "sub_4095C7", "query": "\n\n\n__int64 __fastcall sub_4095C7(__int64 a1, __int64 a2, unsigned __int64 a3, __int64 a4, unsigned __int64 a5, int a6)\n{\n__int64 result; // rax\nunsigned __int64 v7; // rax\n_BOOL4 v8; // edx\nint v9; // eax\nunsigned __int64 v11; // rax\nunsigned __int64 v12; // rax\nunsigned __int64 v17; // [rsp+30h] [rbp-B0h]\nint v18; // [rsp+3Ch] [rbp-A4h]\nunsigned __int64 v19; // [rsp+40h] [rbp-A0h]\nint v20; // [rsp+4Ch] [rbp-94h]\nunsigned int v21; // [rsp+64h] [rbp-7Ch]\nunsigned __int64 v22; // [rsp+68h] [rbp-78h]\nunsigned int v23; // [rsp+70h] [rbp-70h]\nint v24; // [rsp+74h] [rbp-6Ch]\nunsigned __int64 v25; // [rsp+78h] [rbp-68h]\nunsigned int v26; // [rsp+84h] [rbp-5Ch]\n__int64 v27; // [rsp+90h] [rbp-50h]\nunsigned __int64 v28; // [rsp+98h] [rbp-48h]\n__int64 v29; // [rsp+A0h] [rbp-40h]\nunsigned __int64 n; // [rsp+A8h] [rbp-38h]\nunsigned __int64 i; // [rsp+B0h] [rbp-30h]\nunsigned __int64 v32; // [rsp+B8h] [rbp-28h]\n_BOOL4 v33; // [rsp+C4h] [rbp-1Ch]\nunsigned __int64 v34; // [rsp+C8h] [rbp-18h]\nunsigned __int64 v35; // [rsp+D0h] [rbp-10h]\n__int64 v36; // [rsp+D8h] [rbp-8h]\n\nif ( a3 <= 1 )\nreturn -20LL;\nv26 = *(_BYTE *)a2 & 3;\nv25 = sub_40938B(a1);\nif ( v26 == 3 )\n{\nif ( !*(_DWORD *)(a1 + 30000) )\nreturn -30LL;\nLABEL_10:\nif ( a3 <= 4 )\nreturn -20LL;\nv33 = 0;\nv24 = (*(_BYTE *)a2 >> 2) & 3;\nv23 = sub_408E46((unsigned int *)a2);\nv7 = v25;\nif ( a5 <= v25 )\nv7 = a5;\nv22 = v7;\nv8 = sub_40935C(a1) != 0;\nif ( *(_DWORD *)(a1 + 30228) )\nv9 = 16;\nelse\nv9 = 0;\nv21 = v8 | v9;\nif ( v24 == 2 )\n{\nv36 = 4LL;\nv35 = (v23 >> 4) & 0x3FFF;\nv34 = v23 >> 18;\n}\nelse if ( v24 == 3 )\n{\nv36 = 5LL;\nv35 = (v23 >> 4) & 0x3FFFF;\nv34 = (v23 >> 22) + ((unsigned __int64)*(unsigned __int8 *)(a2 + 4) << 10);\n}\nelse\n{\nv33 = v24 == 0;\nv36 = 3LL;\nv35 = (v23 >> 4) & 0x3FF;\nv34 = (v23 >> 14) & 0x3FF;\n}\nif ( v35 && !a4 )\nreturn -70LL;\nif ( v35 > v25 )\nreturn -20LL;\nif ( !v33 && v35 <= 5 )\nreturn -24LL;\nif ( a3 < v34 + v36 )\nreturn -20LL;\nif ( v22 < v35 )\nreturn -70LL;\nsub_409452(a1, a4, a5, v35, a6, v22, 0);\nif ( *(_DWORD *)(a1 + 30204) && v35 > 0x300 )\n{\nfor ( i = 0LL; i < 0x4004; i += 64LL )\n{\n_RAX = *(_QWORD *)(a1 + 24) + i;\n__asm { prefetcht1 byte ptr [rax] }\n}\n}\nif ( v26 == 3 )\n{\nif ( v33 )\nv32 = sub_46033B(*(_QWORD *)(a1 + 30368), v35, a2 + v36, v34, *(_QWORD *)(a1 + 24), v21);\nelse\nv32 = sub_460471(*(_QWORD *)(a1 + 30368), v35, a2 + v36, v34, *(_QWORD *)(a1 + 24), v21);\n}\nelse if ( v33 )\n{\nv32 = sub_4603C2(\n(int)a1 + 10296,\n*(_QWORD *)(a1 + 30368),\nv35,\n(int)a2 + (int)v36,\nv34,\n(int)a1 + 27324,\n2560LL,\nv21);\n}\nelse\n{\nv32 = sub_4604F8(\n(int)a1 + 10296,\n*(_QWORD *)(a1 + 30368),\nv35,\n(int)a2 + (int)v36,\nv34,\n(int)a1 + 27324,\n2560LL,\nv21);\n}\nif ( *(_DWORD *)(a1 + 30384) == 2 )\n{\nmemcpy((void *)(a1 + 30388), (const void *)(*(_QWORD *)(a1 + 30376) - 0x10000LL), 0x10000uLL);\nmemmove((void *)(*(_QWORD *)(a1 + 30368) + 65504LL), *(const void **)(a1 + 30368), v35 - 0x10000);\n*(_QWORD *)(a1 + 30368) += 65504LL;\n*(_QWORD *)(a1 + 30376) -= 32LL;\n}\nif ( sub_408EEB(v32) )\nreturn -20LL;\n*(_QWORD *)(a1 + 30120) = *(_QWORD *)(a1 + 30368);\n*(_QWORD *)(a1 + 30152) = v35;\n*(_DWORD *)(a1 + 30000) = 1;\nif ( v26 == 2 )\n*(_QWORD *)(a1 + 24) = a1 + 10296;\nreturn v34 + v36;\n}\nif ( v26 > 3 )\nreturn -20LL;\nif ( v26 == 2 )\ngoto LABEL_10;\nif ( v26 )\n{\nv20 = (*(_BYTE *)a2 >> 2) & 3;\nv12 = v25;\nif ( a5 <= v25 )\nv12 = a5;\nv19 = v12;\nif ( v20 == 1 )\n{\nv27 = 2LL;\nif ( a3 <= 2 )\nreturn -20LL;\nv28 = (unsigned __int16)sub_408DCC((unsigned __int16 *)a2) >> 4;\n}\nelse if ( v20 == 3 )\n{\nv27 = 3LL;\nif ( a3 <= 3 )\nreturn -20LL;\nv28 = (unsigned int)sub_408E16(a2) >> 4;\n}\nelse\n{\nv27 = 1LL;\nv28 = *(_BYTE *)a2 >> 3;\n}\nif ( !v28 || a4 )\n{\nif ( v28 <= v25 )\n{\nif ( v19 >= v28 )\n{\nsub_409452(a1, a4, a5, v28, a6, v19, 1);\nif ( *(_DWORD *)(a1 + 30384) == 2 )\n{\nmemset(*(void **)(a1 + 30368), *(unsigned __int8 *)(a2 + v27), v28 - 0x10000);\nmemset((void *)(a1 + 30388), *(unsigned __int8 *)(a2 + v27), 0x10000uLL);\n}\nelse\n{\nmemset(*(void **)(a1 + 30368), *(unsigned __int8 *)(a2 + v27), v28);\n}\n*(_QWORD *)(a1 + 30120) = *(_QWORD *)(a1 + 30368);\n*(_QWORD *)(a1 + 30152) = v28;\nresult = v27 + 1;\n}\nelse\n{\nresult = -70LL;\n}\n}\nelse\n{\nresult = -20LL;\n}\n}\nelse\n{\nresult = -70LL;\n}\n}\nelse\n{\nv18 = (*(_BYTE *)a2 >> 2) & 3;\nv11 = v25;\nif ( a5 <= v25 )\nv11 = a5;\nv17 = v11;\nif ( v18 == 1 )\n{\nv29 = 2LL;\nn = (unsigned __int16)sub_408DCC((unsigned __int16 *)a2) >> 4;\n}\nelse if ( v18 == 3 )\n{\nv29 = 3LL;\nif ( a3 <= 2 )\nreturn -20LL;\nn = (unsigned int)sub_408E16(a2) >> 4;\n}\nelse\n{\nv29 = 1LL;\nn = *(_BYTE *)a2 >> 3;\n}\nif ( !n || a4 )\n{\nif ( n <= v25 )\n{\nif ( v17 >= n )\n{\nsub_409452(a1, a4, a5, n, a6, v17, 1);\nif ( a3 >= v29 + n + 32 )\n{\n*(_QWORD *)(a1 + 30120) = v29 + a2;\n*(_QWORD *)(a1 + 30152) = n;\n*(_QWORD *)(a1 + 30376) = n + *(_QWORD *)(a1 + 30120);\n*(_DWORD *)(a1 + 30384) = 0;\nresult = v29 + n;\n}\nelse if ( a3 >= n + v29 )\n{\nif ( *(_DWORD *)(a1 + 30384) == 2 )\n{\nmemcpy(*(void **)(a1 + 30368), (const void *)(v29 + a2), n - 0x10000);\nmemcpy((void *)(a1 + 30388), (const void *)(a2 + v29 + n - 0x10000), 0x10000uLL);\n}\nelse\n{\nmemcpy(*(void **)(a1 + 30368), (const void *)(v29 + a2), n);\n}\n*(_QWORD *)(a1 + 30120) = *(_QWORD *)(a1 + 30368);\n*(_QWORD *)(a1 + 30152) = n;\nresult = v29 + n;\n}\nelse\n{\nresult = -20LL;\n}\n}\nelse\n{\nresult = -70LL;\n}\n}\nelse\n{\nresult = -20LL;\n}\n}\nelse\n{\nresult = -70LL;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29,n,i,v32,v33,v34,v35,v36,sub_4095C7,sub_40938B,sub_408E46,sub_40935C,sub_409452,sub_46033B,sub_460471,sub_4603C2,sub_4604F8,sub_408EEB,sub_408DCC,sub_408E16,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'srcSize', 'a4': 'dst', 'a1': 'dctx', 'a2': 'src', 'a5': 'dstCapacity', 'a6': 'streaming', 'v17': 'expectedWriteSize_0', 'v18': 'lhlCode_0', 'v19': 'expectedWriteSize_1', 'v20': 'lhlCode_1', 'v21': 'flags', 'v22': 'expectedWriteSize', 'v23': 'lhc', 'v24': 'lhlCode', 'v25': 'blockSizeMax', 'v26': 'litEncType', 'v27': 'lhSize_1', 'v28': 'litSize_1', 'v29': 'lhSize_0', 'n': 'litSize_0', 'i': '_pos', 'v32': 'hufSuccess', 'v33': 'singleStream', 'v34': 'litCSize', 'v35': 'litSize', 'v36': 'lhSize', 'sub_4095C7': 'ZSTD_decodeLiteralsBlock', 'sub_40938B': 'ZSTD_blockSizeMax', 'sub_408E46': 'MEM_readLE32_1', 'sub_40935C': 'ZSTD_DCtx_get_bmi2', 'sub_409452': 'ZSTD_allocateLiteralsBuffer', 'sub_46033B': 'HUF_decompress1X_usingDTable', 'sub_460471': 'HUF_decompress4X_usingDTable', 'sub_4603C2': 'HUF_decompress1X1_DCtx_wksp', 'sub_4604F8': 'HUF_decompress4X_hufOnly_wksp', 'sub_408EEB': 'ERR_isError_2', 'sub_408DCC': 'MEM_readLE16_0', 'sub_408E16': 'MEM_readLE24'}"}