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
|
---|---|---|---|---|---|---|---|---|
u8g2_DrawStrX2 | bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46 | olikraus | u8g2 | NA | u8g2_uint_t u8g2_DrawStrX2(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, const char *str)
{
u8g2->u8x8.next_cb = u8x8_ascii_next;
return u8g2_draw_string_2x(u8g2, x, y, str);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_422A85", "function_addr": 4336261, "binary_name": "bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov eax, edx"], [5, "mov [rbp+var_18], rcx"], [6, "mov edx, esi"], [7, "mov [rbp+var_C], dx"], [8, "mov [rbp+var_10], ax"], [9, "mov rax, [rbp+var_8]"], [10, "mov qword ptr [rax+8], offset sub_427107"], [11, "movzx edx, [rbp+var_10]"], [12, "movzx esi, [rbp+var_C]"], [13, "mov rcx, [rbp+var_18]"], [14, "mov rax, [rbp+var_8]"], [15, "mov rdi, rax"], [16, "call sub_4229AC"], [17, "leave"], [18, "retn"]], "data_dep": [[7, 6], [8, 4], [9, 3], [10, 9], [11, 8], [12, 7], [13, 5], [14, 3], [15, 14], [18, 16]]}
| {"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/bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46_bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46.jsonl.gz", "strip_func_name": "sub_422A85", "query": "\n\n\n__int64 __fastcall sub_422A85(__int64 a1, __int16 a2, __int16 a3, unsigned __int8 *a4)\n{\n*(_QWORD *)(a1 + 8) = sub_427107;\nreturn sub_4229AC(a1, a2, a3, a4);\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_422A85,sub_427107,sub_4229AC,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'y', 'a4': 'str', 'a1': 'u8g2', 'a2': 'x', 'sub_422A85': 'u8g2_DrawStrX2', 'sub_427107': 'u8x8_ascii_next', 'sub_4229AC': 'u8g2_draw_string_2x'}"} |
|
QProblem_solveRegularisedQP | 766fcda9ae8f843f16029f36de9fe2b19ddfd2d7a292f41ecb27d8ce5fd424d3 | mindThomas | Kugle-MATLAB | NA | returnValue QProblem_solveRegularisedQP( QProblem* _THIS,
const real_t* const g_new,
const real_t* const lb_new, const real_t* const ub_new,
const real_t* const lbA_new, const real_t* const ubA_new,
int* nWSR, real_t* const cputime, int nWSRperformed,
BooleanType isFirstCall
)
{
int i, step;
int nV = QProblem_getNV( _THIS );
returnValue returnvalue;
int nWSR_max = *nWSR;
int nWSR_total = nWSRperformed;
real_t cputime_total = 0.0;
real_t cputime_cur = 0.0;
myStatic real_t gMod[NVMAX];
/* Perform normal QP solution if QP has not been regularised. */
if ( QProblem_usingRegularisation( _THIS ) == BT_FALSE )
return QProblem_solveQP( _THIS,g_new,lb_new,ub_new,lbA_new,ubA_new, nWSR,cputime,nWSRperformed,isFirstCall );
/* I) SOLVE USUAL REGULARISED QP */
if ( cputime == 0 )
{
returnvalue = QProblem_solveQP( _THIS,g_new,lb_new,ub_new,lbA_new,ubA_new, nWSR,0,nWSRperformed,isFirstCall );
}
else
{
cputime_cur = *cputime;
returnvalue = QProblem_solveQP( _THIS,g_new,lb_new,ub_new,lbA_new,ubA_new, nWSR,&cputime_cur,nWSRperformed,isFirstCall );
}
nWSR_total = *nWSR;
cputime_total += cputime_cur;
isFirstCall = BT_FALSE;
/* Only continue if QP solution has been successful. */
if ( returnvalue != SUCCESSFUL_RETURN )
{
if ( cputime != 0 )
*cputime = cputime_total;
if ( returnvalue == RET_MAX_NWSR_REACHED )
THROWWARNING( RET_NO_REGSTEP_NWSR );
return returnvalue;
}
/* II) PERFORM SUCCESSIVE REGULARISATION STEPS */
for( step=0; step<_THIS->options.numRegularisationSteps; ++step )
{
/* 1) Modify gradient: gMod = g - eps*xOpt
* (assuming regularisation matrix to be regVal*Id). */
for( i=0; i<nV; ++i )
gMod[i] = g_new[i] - _THIS->regVal*_THIS->x[i];
/* 2) Solve regularised QP with modified gradient allowing
* only as many working set recalculations and CPU time
* as have been left from previous QP solutions. */
*nWSR = nWSR_max;
if ( cputime == 0 )
{
returnvalue = QProblem_solveQP( _THIS,gMod,lb_new,ub_new,lbA_new,ubA_new, nWSR,0,nWSR_total,isFirstCall );
}
else
{
cputime_cur = *cputime - cputime_total;
returnvalue = QProblem_solveQP( _THIS,gMod,lb_new,ub_new,lbA_new,ubA_new, nWSR,&cputime_cur,nWSR_total,isFirstCall );
}
nWSR_total = *nWSR;
cputime_total += cputime_cur;
/* Only continue if QP solution has been successful. */
if ( returnvalue != SUCCESSFUL_RETURN )
{
if ( cputime != 0 )
*cputime = cputime_total;
if ( returnvalue == RET_MAX_NWSR_REACHED )
THROWWARNING( RET_FEWER_REGSTEPS_NWSR );
return returnvalue;
}
}
for( i=0; i<nV; ++i )
_THIS->g[i] = g_new[i];
if ( cputime != 0 )
*cputime = cputime_total;
return SUCCESSFUL_RETURN;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40C8DD", "function_addr": 4245725, "binary_name": "766fcda9ae8f843f16029f36de9fe2b19ddfd2d7a292f41ecb27d8ce5fd424d3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [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_58], r8"], [8, "mov [rbp+var_60], r9"], [9, "mov rax, [rbp+var_38]"], [10, "mov rdi, rax"], [11, "call sub_404251"], [12, "mov [rbp+var_1C], eax"], [13, "mov rax, [rbp+arg_0]"], [14, "mov eax, [rax]"], [15, "mov [rbp+var_20], eax"], [16, "mov eax, [rbp+arg_10]"], [17, "mov [rbp+var_10], eax"], [18, "pxor xmm0, xmm0"], [19, "movsd [rbp+var_18], xmm0"], [20, "pxor xmm0, xmm0"], [21, "movsd [rbp+var_28], xmm0"], [22, "mov rax, [rbp+var_38]"], [23, "mov rdi, rax"], [24, "call sub_404389"], [25, "test eax, eax"], [26, "jnz short loc_40C974"], [27, "mov r9, [rbp+var_60]"], [28, "mov r8, [rbp+var_58]"], [29, "mov rcx, [rbp+var_50]"], [30, "mov rdx, [rbp+var_48]"], [31, "mov rsi, [rbp+var_40]"], [32, "mov rax, [rbp+var_38]"], [33, "mov edi, [rbp+arg_18]"], [34, "push rdi"], [35, "mov edi, [rbp+arg_10]"], [36, "push rdi"], [37, "push [rbp+arg_8]"], [38, "push [rbp+arg_0]"], [39, "mov rdi, rax"], [40, "call sub_40BFEE"], [41, "add rsp, 20h"], [42, "jmp locret_40CC87"], [43, "cmp [rbp+arg_8], 0"], [44, "jnz short loc_40C9B1"], [45, "mov r9, [rbp+var_60]"], [46, "mov r8, [rbp+var_58]"], [47, "mov rcx, [rbp+var_50]"], [48, "mov rdx, [rbp+var_48]"], [49, "mov rsi, [rbp+var_40]"], [50, "mov rax, [rbp+var_38]"], [51, "mov edi, [rbp+arg_18]"], [52, "push rdi"], [53, "mov edi, [rbp+arg_10]"], [54, "push rdi"], [55, "push 0"], [56, "push [rbp+arg_0]"], [57, "mov rdi, rax"], [58, "call sub_40BFEE"], [59, "add rsp, 20h"], [60, "mov [rbp+var_C], eax"], [61, "jmp short loc_40C9F5"], [62, "mov rax, [rbp+arg_8]"], [63, "movsd xmm0, qword ptr [rax]"], [64, "movsd [rbp+var_28], xmm0"], [65, "mov r9, [rbp+var_60]"], [66, "mov r8, [rbp+var_58]"], [67, "mov rcx, [rbp+var_50]"], [68, "mov rdx, [rbp+var_48]"], [69, "mov rsi, [rbp+var_40]"], [70, "mov rax, [rbp+var_38]"], [71, "mov edi, [rbp+arg_18]"], [72, "push rdi"], [73, "mov edi, [rbp+arg_10]"], [74, "push rdi"], [75, "lea rdi, [rbp+var_28]"], [76, "push rdi"], [77, "push [rbp+arg_0]"], [78, "mov rdi, rax"], [79, "call sub_40BFEE"], [80, "add rsp, 20h"], [81, "mov [rbp+var_C], eax"], [82, "mov rax, [rbp+arg_0]"], [83, "mov eax, [rax]"], [84, "mov [rbp+var_10], eax"], [85, "movsd xmm0, [rbp+var_28]"], [86, "movsd xmm1, [rbp+var_18]"], [87, "addsd xmm0, xmm1"], [88, "movsd [rbp+var_18], xmm0"], [89, "mov [rbp+arg_18], 0"], [90, "cmp [rbp+var_C], 0"], [91, "jz short loc_40CA7A"], [92, "cmp [rbp+arg_8], 0"], [93, "jz short loc_40CA32"], [94, "mov rax, [rbp+arg_8]"], [95, "movsd xmm0, [rbp+var_18]"], [96, "movsd qword ptr [rax], xmm0"], [97, "cmp [rbp+var_C], 40h "], [98, "jnz short loc_40CA72"], [99, "mov eax, 0"], [100, "call sub_4354EA"], [101, "sub rsp, 8"], [102, "push 1"], [103, "mov r9d, 0A8Eh"], [104, "lea r8, aQproblemC"], [105, "lea rcx, aNoFunctionName_0"], [106, "mov edx, 0"], [107, "mov esi, 74h "], [108, "mov rdi, rax"], [109, "call sub_434EF0"], [110, "add rsp, 10h"], [111, "mov eax, [rbp+var_C]"], [112, "jmp locret_40CC87"], [113, "mov [rbp+var_8], 0"], [114, "jmp loc_40CC17"], [115, "mov [rbp+var_4], 0"], [116, "jmp short loc_40CAEF"], [117, "mov eax, [rbp+var_4]"], [118, "cdqe"], [119, "lea rdx, ds:0[rax*8]"], [120, "mov rax, [rbp+var_40]"], [121, "add rax, rdx"], [122, "movsd xmm0, qword ptr [rax]"], [123, "mov rax, [rbp+var_38]"], [124, "movsd xmm2, qword ptr [rax+0FD90h]"], [125, "mov rax, [rbp+var_38]"], [126, "mov edx, [rbp+var_4]"], [127, "movsxd rdx, edx"], [128, "add rdx, 1EE6h"], [129, "movsd xmm1, qword ptr [rax+rdx*8+8]"], [130, "mulsd xmm1, xmm2"], [131, "subsd xmm0, xmm1"], [132, "mov eax, [rbp+var_4]"], [133, "cdqe"], [134, "lea rdx, ds:0[rax*8]"], [135, "lea rax, unk_453840"], [136, "movsd qword ptr [rdx+rax], xmm0"], [137, "add [rbp+var_4], 1"], [138, "mov eax, [rbp+var_4]"], [139, "cmp eax, [rbp+var_1C]"], [140, "jl short loc_40CA8F"], [141, "mov rax, [rbp+arg_0]"], [142, "mov edx, [rbp+var_20]"], [143, "mov [rax], edx"], [144, "cmp [rbp+arg_8], 0"], [145, "jnz short loc_40CB46"], [146, "mov r8, [rbp+var_60]"], [147, "mov rdi, [rbp+var_58]"], [148, "mov rcx, [rbp+var_50]"], [149, "mov rdx, [rbp+var_48]"], [150, "mov rax, [rbp+var_38]"], [151, "mov esi, [rbp+arg_18]"], [152, "push rsi"], [153, "mov esi, [rbp+var_10]"], [154, "push rsi"], [155, "push 0"], [156, "push [rbp+arg_0]"], [157, "mov r9, r8"], [158, "mov r8, rdi"], [159, "lea rsi, unk_453840"], [160, "mov rdi, rax"], [161, "call sub_40BFEE"], [162, "add rsp, 20h"], [163, "mov [rbp+var_C], eax"], [164, "jmp short loc_40CB98"], [165, "mov rax, [rbp+arg_8]"], [166, "movsd xmm0, qword ptr [rax]"], [167, "subsd xmm0, [rbp+var_18]"], [168, "movsd [rbp+var_28], xmm0"], [169, "mov r8, [rbp+var_60]"], [170, "mov rdi, [rbp+var_58]"], [171, "mov rcx, [rbp+var_50]"], [172, "mov rdx, [rbp+var_48]"], [173, "mov rax, [rbp+var_38]"], [174, "mov esi, [rbp+arg_18]"], [175, "push rsi"], [176, "mov esi, [rbp+var_10]"], [177, "push rsi"], [178, "lea rsi, [rbp+var_28]"], [179, "push rsi"], [180, "push [rbp+arg_0]"], [181, "mov r9, r8"], [182, "mov r8, rdi"], [183, "lea rsi, unk_453840"], [184, "mov rdi, rax"], [185, "call sub_40BFEE"], [186, "add rsp, 20h"], [187, "mov [rbp+var_C], eax"], [188, "mov rax, [rbp+arg_0]"], [189, "mov eax, [rax]"], [190, "mov [rbp+var_10], eax"], [191, "movsd xmm0, [rbp+var_28]"], [192, "movsd xmm1, [rbp+var_18]"], [193, "addsd xmm0, xmm1"], [194, "movsd [rbp+var_18], xmm0"], [195, "cmp [rbp+var_C], 0"], [196, "jz short loc_40CC13"], [197, "cmp [rbp+arg_8], 0"], [198, "jz short loc_40CBCE"], [199, "mov rax, [rbp+arg_8]"], [200, "movsd xmm0, [rbp+var_18]"], [201, "movsd qword ptr [rax], xmm0"], [202, "cmp [rbp+var_C], 40h "], [203, "jnz short loc_40CC0E"], [204, "mov eax, 0"], [205, "call sub_4354EA"], [206, "sub rsp, 8"], [207, "push 1"], [208, "mov r9d, 0AB5h"], [209, "lea r8, aQproblemC"], [210, "lea rcx, aNoFunctionName_0"], [211, "mov edx, 0"], [212, "mov esi, 75h "], [213, "mov rdi, rax"], [214, "call sub_434EF0"], [215, "add rsp, 10h"], [216, "mov eax, [rbp+var_C]"], [217, "jmp short locret_40CC87"], [218, "add [rbp+var_8], 1"], [219, "mov rax, [rbp+var_38]"], [220, "mov eax, [rax+0FFD8h]"], [221, "cmp [rbp+var_8], eax"], [222, "jl loc_40CA86"], [223, "mov [rbp+var_4], 0"], [224, "jmp short loc_40CC66"], [225, "mov eax, [rbp+var_4]"], [226, "cdqe"], [227, "lea rdx, ds:0[rax*8]"], [228, "mov rax, [rbp+var_40]"], [229, "add rax, rdx"], [230, "movsd xmm0, qword ptr [rax]"], [231, "mov rax, [rbp+var_38]"], [232, "mov edx, [rbp+var_4]"], [233, "movsxd rdx, edx"], [234, "add rdx, 138Ah"], [235, "movsd qword ptr [rax+rdx*8+8], xmm0"], [236, "add [rbp+var_4], 1"], [237, "mov eax, [rbp+var_4]"], [238, "cmp eax, [rbp+var_1C]"], [239, "jl short loc_40CC33"], [240, "cmp [rbp+arg_8], 0"], [241, "jz short loc_40CC82"], [242, "mov rax, [rbp+arg_8]"], [243, "movsd xmm0, [rbp+var_18]"], [244, "movsd qword ptr [rax], xmm0"], [245, "mov eax, 0"], [246, "leave"], [247, "retn"]], "data_dep": [[9, 3], [10, 9], [12, 11], [14, 13], [15, 14], [17, 16], [19, 18], [21, 20], [22, 3], [23, 22], [25, 24], [26, 25], [27, 8], [28, 7], [29, 6], [30, 5], [31, 4], [32, 3], [33, 19], [34, 33], [35, 17], [36, 35], [39, 32], [41, 2], [44, 43], [45, 8], [46, 7], [47, 6], [48, 5], [49, 4], [50, 3], [51, 19], [52, 51], [53, 17], [54, 53], [57, 50], [59, 2], [60, 58], [63, 62], [64, 63], [65, 8], [66, 7], [67, 6], [68, 5], [69, 4], [70, 3], [71, 19], [72, 71], [73, 17], [74, 73], [75, 64], [75, 73], [76, 75], [78, 70], [80, 2], [81, 79], [83, 82], [84, 83], [85, 64], [85, 21], [86, 19], [87, 86], [87, 85], [88, 87], [90, 60], [90, 81], [91, 90], [93, 92], [95, 89], [96, 95], [96, 94], [97, 81], [97, 60], [98, 97], [101, 80], [101, 59], [104, 66], [104, 46], [105, 47], [105, 67], [108, 100], [110, 101], [111, 60], [111, 81], [117, 137], [117, 115], [119, 68], [119, 134], [119, 172], [119, 149], [119, 48], [120, 4], [121, 119], [121, 120], [122, 121], [122, 143], [122, 136], [123, 3], [124, 123], [124, 143], [124, 136], [125, 3], [126, 137], [126, 115], [127, 126], [128, 127], [129, 125], [129, 143], [129, 136], [130, 124], [130, 129], [131, 122], [131, 130], [132, 137], [132, 115], [134, 128], [135, 132], [136, 135], [136, 131], [137, 115], [137, 137], [138, 137], [138, 115], [139, 12], [139, 138], [140, 139], [142, 15], [143, 142], [143, 141], [144, 113], [144, 218], [145, 144], [146, 8], [147, 7], [148, 6], [149, 5], [150, 3], [151, 194], [151, 89], [152, 151], [153, 84], [153, 190], [154, 153], [157, 146], [158, 147], [159, 153], [160, 150], [162, 186], [162, 80], [162, 162], [162, 59], [163, 161], [165, 113], [165, 218], [166, 165], [166, 143], [166, 136], [167, 194], [167, 166], [167, 89], [168, 167], [169, 8], [170, 7], [171, 6], [172, 5], [173, 3], [174, 194], [174, 89], [175, 174], [176, 84], [176, 190], [177, 176], [178, 168], [178, 176], [179, 178], [181, 169], [182, 170], [183, 178], [184, 173], [186, 186], [186, 59], [186, 80], [186, 162], [187, 185], [189, 143], [189, 136], [189, 188], [190, 189], [191, 64], [191, 168], [191, 21], [192, 89], [192, 194], [193, 191], [193, 192], [194, 193], [195, 163], [195, 187], [196, 195], [197, 218], [197, 113], [198, 197], [199, 218], [199, 113], [200, 194], [201, 200], [201, 199], [202, 187], [202, 163], [203, 202], [206, 162], [206, 186], [209, 182], [209, 158], [210, 171], [210, 148], [213, 205], [215, 206], [216, 163], [216, 187], [218, 218], [218, 113], [219, 3], [220, 136], [220, 219], [220, 143], [221, 218], [221, 220], [221, 113], [222, 221], [225, 223], [225, 236], [227, 68], [227, 234], [227, 149], [227, 172], [227, 48], [228, 4], [229, 228], [229, 227], [230, 229], [230, 235], [230, 143], [230, 136], [231, 3], [232, 236], [232, 223], [233, 232], [234, 233], [235, 231], [235, 230], [236, 223], [236, 236], [237, 236], [237, 223], [238, 237], [238, 12], [239, 238], [240, 113], [240, 218], [241, 240], [242, 218], [242, 113], [243, 194], [243, 89], [244, 243], [244, 242], [247, 245], [247, 111], [247, 40], [247, 216]]}
| {"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/766fcda9ae8f843f16029f36de9fe2b19ddfd2d7a292f41ecb27d8ce5fd424d3_766fcda9ae8f843f16029f36de9fe2b19ddfd2d7a292f41ecb27d8ce5fd424d3.jsonl.gz", "strip_func_name": "sub_40C8DD", "query": "\n\n\n__int64 __fastcall sub_40C8DD(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, unsigned int *a7, double *a8, unsigned int a9, unsigned int a10)\n{\n__int64 result; // rax\nint v11; // eax\n__int64 v12; // rdi\nint v13; // eax\ndouble v19; // [rsp+38h] [rbp-28h] BYREF\nunsigned int v20; // [rsp+40h] [rbp-20h]\nint v21; // [rsp+44h] [rbp-1Ch]\ndouble v22; // [rsp+48h] [rbp-18h]\nunsigned int v23; // [rsp+50h] [rbp-10h]\nunsigned int v24; // [rsp+54h] [rbp-Ch]\nint i; // [rsp+58h] [rbp-8h]\nint j; // [rsp+5Ch] [rbp-4h]\n\nv21 = sub_404251(a1);\nv20 = *a7;\nv23 = a9;\nv22 = 0.0;\nv19 = 0.0;\nif ( !sub_404389(a1) )\nreturn sub_40BFEE(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);\nif ( a8 )\n{\nv19 = *a8;\nv24 = sub_40BFEE(a1, a2, a3, a4, a5, a6, a7, &v19, a9, a10);\n}\nelse\n{\nv24 = sub_40BFEE(a1, a2, a3, a4, a5, a6, a7, 0LL, a9, a10);\n}\nv23 = *a7;\nv22 = v19 + v22;\nif ( v24 )\n{\nif ( a8 )\n*a8 = v22;\nif ( v24 == 64 )\n{\nv11 = sub_4354EA(a1, a2);\nsub_434EF0(v11, 116, 0, (unsigned int)\"(no function name provided)\", (unsigned int)\"QProblem.c\", 2702, 1);\n}\nresult = v24;\n}\nelse\n{\nfor ( i = 0; ; ++i )\n{\nif ( i >= *(_DWORD *)(a1 + 65496) )\n{\nfor ( j = 0; j < v21; ++j )\n*(_QWORD *)(a1 + 8 * (j + 5002LL) + 8) = *(_QWORD *)(8LL * j + a2);\nif ( a8 )\n*a8 = v22;\nreturn 0LL;\n}\nfor ( j = 0; j < v21; ++j )\ndbl_453840[j] = *(double *)(8LL * j + a2) - *(double *)(a1 + 8 * (j + 7910LL) + 8) * *(double *)(a1 + 64912);\n*a7 = v20;\nif ( a8 )\n{\nv19 = *a8 - v22;\nv12 = a1;\nv24 = sub_40BFEE(a1, (__int64)dbl_453840, a3, a4, a5, a6, a7, &v19, v23, 0);\n}\nelse\n{\nv12 = a1;\nv24 = sub_40BFEE(a1, (__int64)dbl_453840, a3, a4, a5, a6, a7, 0LL, v23, 0);\n}\nv23 = *a7;\nv22 = v19 + v22;\nif ( v24 )\nbreak;\n}\nif ( a8 )\n*a8 = v22;\nif ( v24 == 64 )\n{\nv13 = sub_4354EA(v12, dbl_453840);\nsub_434EF0(v13, 117, 0, (unsigned int)\"(no function name provided)\", (unsigned int)\"QProblem.c\", 2741, 1);\n}\nresult = v24;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,a7,a8,a9,a10,v12,v19,v20,v21,v22,v23,v24,i,sub_40C8DD,sub_404251,sub_404389,sub_40BFEE,sub_4354EA,sub_434EF0,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'lb_new', 'a4': 'ub_new', 'a1': '_THIS', 'a2': 'g_new', 'a5': 'lbA_new', 'a6': 'ubA_new', 'a7': 'nWSR', 'a8': 'cputime', 'a9': 'nWSRperformed', 'a10': 'isFirstCall', 'v12': '_THIS', 'v19': 'cputime_cur', 'v20': 'nWSR_max', 'v21': 'nV', 'v22': 'cputime_total', 'v23': 'nWSR_total', 'v24': 'returnvalue', 'i': 'step', 'sub_40C8DD': 'QProblem_solveRegularisedQP', 'sub_404251': 'QProblem_getNV_0', 'sub_404389': 'QProblem_usingRegularisation_0', 'sub_40BFEE': 'QProblem_solveQP', 'sub_4354EA': 'qpOASES_getGlobalMessageHandler', 'sub_434EF0': 'MessageHandling_throwWarning'}"} |
|
LsEmitOffsetTableEntry | 1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822 | bitdefender | napoca | NA | static void
LsEmitOffsetTableEntry (
UINT32 FileId,
ACPI_NAMESPACE_NODE *Node,
UINT32 NamepathOffset,
UINT32 Offset,
char *OpName,
UINT64 Value,
UINT8 AmlOpcode,
UINT16 ParentOpcode)
{
ACPI_BUFFER TargetPath;
ACPI_STATUS Status;
/* Get the full pathname to the namespace node */
TargetPath.Length = ACPI_ALLOCATE_LOCAL_BUFFER;
Status = AcpiNsHandleToPathname (Node, &TargetPath, FALSE);
if (ACPI_FAILURE (Status))
{
return;
}
/* [1] - Skip the opening backslash for the path */
strcpy (AslGbl_MsgBuffer, "\"");
strcat (AslGbl_MsgBuffer, &((char *) TargetPath.Pointer)[1]);
strcat (AslGbl_MsgBuffer, "\",");
ACPI_FREE (TargetPath.Pointer);
/*
* Max offset is 4G, constrained by 32-bit ACPI table length.
* Max Length for Integers is 8 bytes.
*/
FlPrintFile (FileId,
" {%-29s 0x%4.4X, 0x%8.8X, 0x%2.2X, 0x%8.8X, 0x%8.8X%8.8X}, /* %s */\n",
AslGbl_MsgBuffer, ParentOpcode, NamepathOffset, AmlOpcode,
Offset, ACPI_FORMAT_UINT64 (Value), OpName);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42CDEA", "function_addr": 4378090, "binary_name": "1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_24], edi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_28], edx"], [6, "mov [rbp+var_34], ecx"], [7, "mov [rbp+var_40], r8"], [8, "mov [rbp+var_48], r9"], [9, "mov edx, [rbp+arg_0]"], [10, "mov eax, [rbp+arg_8]"], [11, "mov [rbp+var_38], dl"], [12, "mov [rbp+var_4C], ax"], [13, "mov [rbp+var_20], 0FFFFFFFFFFFFFFFEh"], [14, "lea rcx, [rbp+var_20]"], [15, "mov rax, [rbp+var_30]"], [16, "mov edx, 0"], [17, "mov rsi, rcx"], [18, "mov rdi, rax"], [19, "call sub_478789"], [20, "mov [rbp+var_4], eax"], [21, "cmp [rbp+var_4], 0"], [22, "jnz loc_42CED1"], [23, "mov cs:s, 22h "], [24, "mov rax, [rbp+var_18]"], [25, "add rax, 1"], [26, "mov rsi, rax"], [27, "mov edi, offset s"], [28, "call _strcat"], [29, "mov edi, offset s"], [30, "call _strlen"], [31, "add rax, 51BE00h"], [32, "mov word ptr [rax], 2C22h"], [33, "mov byte ptr [rax+2], 0"], [34, "mov rax, [rbp+var_18]"], [35, "mov rdi, rax"], [36, "call sub_47BF0C"], [37, "mov rax, [rbp+var_48]"], [38, "mov r8d, eax"], [39, "mov rax, [rbp+var_48]"], [40, "shr rax, 20h"], [41, "mov ecx, eax"], [42, "movzx edi, [rbp+var_38]"], [43, "movzx edx, [rbp+var_4C]"], [44, "mov esi, [rbp+var_28]"], [45, "mov eax, [rbp+var_24]"], [46, "push [rbp+var_40]"], [47, "push r8"], [48, "push rcx"], [49, "mov ecx, [rbp+var_34]"], [50, "push rcx"], [51, "mov r9d, edi"], [52, "mov r8d, esi"], [53, "mov ecx, edx"], [54, "mov edx, offset s"], [55, "mov esi, offset a29s0x44x0x88x0"], [56, "mov edi, eax"], [57, "mov eax, 0"], [58, "call sub_42423C"], [59, "add rsp, 20h"], [60, "jmp short locret_42CED2"], [61, "nop"], [62, "leave"], [63, "retn"]], "data_dep": [[11, 9], [12, 10], [14, 13], [15, 4], [17, 14], [18, 15], [20, 19], [21, 20], [22, 21], [25, 24], [26, 25], [31, 30], [32, 31], [33, 31], [35, 34], [37, 8], [38, 37], [39, 8], [40, 39], [41, 40], [42, 11], [43, 12], [44, 5], [45, 3], [46, 7], [47, 38], [48, 41], [49, 6], [50, 49], [51, 42], [52, 44], [53, 43], [56, 45], [59, 2], [63, 19], [63, 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/1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822_1af1ae2e55417ac009d60b916804817b31888fa80e08f75439dc6c514c24a822.jsonl.gz", "strip_func_name": "sub_42CDEA", "query": "\n\n\nint __fastcall sub_42CDEA(unsigned int a1, __int64 a2, unsigned int a3, unsigned int a4, __int64 a5, __int64 a6, unsigned __int8 a7, unsigned __int16 a8)\n{\nint result; // eax\n__int64 v13; // [rsp+30h] [rbp-20h] BYREF\n__int64 v14; // [rsp+38h] [rbp-18h]\nint v15; // [rsp+4Ch] [rbp-4h]\n\nv13 = -2LL;\nresult = sub_478789(a2, &v13, 0LL);\nv15 = result;\nif ( !result )\n{\nstrcpy(s, \"\\\"\");\nstrcat(s, (const char *)(v14 + 1));\nstrcpy((char *)(strlen(s) + 5357056), \"\\\",\");\nsub_47BF0C(v14);\nresult = sub_42423C(\na1,\n\" {%-29s 0x%4.4X, 0x%8.8X, 0x%2.2X, 0x%8.8X, 0x%8.8X%8.8X}, /* %s */\\n\",\n(__int64)s,\na8,\na3,\na7,\na4,\nHIDWORD(a6),\n(unsigned int)a6,\na5);\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,a7,a8,v13,sub_42CDEA,sub_478789,sub_47BF0C,sub_42423C,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'NamepathOffset', 'a4': 'Offset', 'a1': 'FileId', 'a2': 'Node', 'a5': 'OpName', 'a6': 'Value', 'a7': 'AmlOpcode', 'a8': 'ParentOpcode', 'v13': 'TargetPath', 'sub_42CDEA': 'LsEmitOffsetTableEntry', 'sub_478789': 'AcpiNsHandleToPathname', 'sub_47BF0C': 'AcpiOsFree', 'sub_42423C': 'FlPrintFile'}"} |
|
remove_control_chars | aeeba047b696d501269ee0b33dc8c09e9a6b473fd1274edb35f2d80474fa8dbf | hughbarney | femto | NA | void remove_control_chars(char_t *s)
{
char_t *p = s;
while (*p != '\0') {
if (*p < 32)
*p = ' ';
p++;
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40AA99", "function_addr": 4237977, "binary_name": "aeeba047b696d501269ee0b33dc8c09e9a6b473fd1274edb35f2d80474fa8dbf.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov rax, [rbp+var_18]"], [4, "mov [rbp+var_8], rax"], [5, "jmp short loc_40AAC2"], [6, "mov rax, [rbp+var_8]"], [7, "movzx eax, byte ptr [rax]"], [8, "cmp al, 1Fh"], [9, "ja short loc_40AABD"], [10, "mov rax, [rbp+var_8]"], [11, "mov byte ptr [rax], 20h "], [12, "add [rbp+var_8], 1"], [13, "mov rax, [rbp+var_8]"], [14, "movzx eax, byte ptr [rax]"], [15, "test al, al"], [16, "jnz short loc_40AAAB"], [17, "nop"], [18, "nop"], [19, "pop rbp"], [20, "retn"]], "data_dep": [[3, 2], [4, 3], [6, 12], [6, 4], [7, 6], [7, 11], [8, 7], [9, 8], [10, 12], [10, 4], [11, 10], [12, 4], [12, 12], [13, 4], [13, 12], [14, 13], [14, 11], [15, 14], [16, 15], [19, 0], [20, 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/aeeba047b696d501269ee0b33dc8c09e9a6b473fd1274edb35f2d80474fa8dbf_aeeba047b696d501269ee0b33dc8c09e9a6b473fd1274edb35f2d80474fa8dbf.jsonl.gz", "strip_func_name": "sub_40AA99", "query": "\n\n\n__int64 __fastcall sub_40AA99(_BYTE *a1)\n{\n__int64 result; // rax\n\nwhile ( 1 )\n{\nresult = (unsigned __int8)*a1;\nif ( !(_BYTE)result )\nbreak;\nif ( *a1 <= 0x1Fu )\n*a1 = 32;\n++a1;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_40AA99,]\nAssistant: ", "hints": "[]", "response": "{'a1': 's', 'sub_40AA99': 'remove_control_chars'}"} |
|
hci_add_connection_flags_for_flipped_bd_addr | 1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586 | bluekitchen | btstack | NA | static void hci_add_connection_flags_for_flipped_bd_addr(uint8_t *bd_addr, hci_authentication_flags_t flags){
bd_addr_t addr;
reverse_bd_addr(bd_addr, addr);
hci_connection_t * conn = hci_connection_for_bd_addr_and_type(addr, BD_ADDR_TYPE_ACL);
if (conn) {
connectionSetAuthenticationFlags(conn, flags);
hci_connection_timestamp(conn);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F5E3", "function_addr": 4257251, "binary_name": "1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "lea rdx, [rbp+var_E]"], [6, "mov rax, [rbp+var_18]"], [7, "mov rsi, rdx"], [8, "mov rdi, rax"], [9, "call sub_4061EB"], [10, "lea rax, [rbp+var_E]"], [11, "mov esi, 0FDh"], [12, "mov rdi, rax"], [13, "call sub_40F441"], [14, "mov [rbp+var_8], rax"], [15, "cmp [rbp+var_8], 0"], [16, "jz short loc_40F63E"], [17, "mov edx, [rbp+var_1C]"], [18, "mov rax, [rbp+var_8]"], [19, "mov esi, edx"], [20, "mov rdi, rax"], [21, "call sub_40F4F4"], [22, "mov rax, [rbp+var_8]"], [23, "mov rdi, rax"], [24, "call sub_40F5C5"], [25, "nop"], [26, "leave"], [27, "retn"]], "data_dep": [[6, 3], [7, 5], [8, 6], [10, 9], [12, 10], [14, 13], [15, 14], [16, 15], [17, 4], [18, 14], [19, 17], [20, 18], [22, 14], [23, 22], [27, 24], [27, 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/1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586_1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.jsonl.gz", "strip_func_name": "sub_40F5E3", "query": "\n\n\n__int64 __fastcall sub_40F5E3(__int64 a1, __int16 a2)\n{\n__int64 result; // rax\nchar v3[6]; // [rsp+12h] [rbp-Eh] BYREF\n__int64 v4; // [rsp+18h] [rbp-8h]\n\nsub_4061EB(a1, (__int64)v3);\nresult = sub_40F441(v3, 253);\nv4 = result;\nif ( result )\n{\nsub_40F4F4(v4, a2);\nresult = sub_40F5C5(v4);\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v3,v4,sub_40F5E3,sub_4061EB,sub_40F441,sub_40F4F4,sub_40F5C5,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'bd_addr', 'a2': 'flags', 'v3': 'addr', 'v4': 'conn', 'sub_40F5E3': 'hci_add_connection_flags_for_flipped_bd_addr', 'sub_4061EB': 'reverse_bd_addr', 'sub_40F441': 'hci_connection_for_bd_addr_and_type', 'sub_40F4F4': 'connectionSetAuthenticationFlags', 'sub_40F5C5': 'hci_connection_timestamp'}"} |
|
verbose | afd6f7fa4392dabc32b63826e39cc99780c2d7bfff68c84fb9ce54be2e7882c8 | TLINDEN | udpxd | NA | void verbose(const char * fmt, ...) {
if(VERBOSE) {
char *msg = NULL;
va_list ap;
va_start(ap, fmt);
if(vasprintf(&msg, fmt, ap) >= 0) {
if(FORKED) {
syslog(LOG_INFO, "%s", msg);
}
else {
fprintf(stderr, "%s", msg);
}
free(msg);
va_end(ap);
}
else {
fprintf(stderr, "Fatal: could not store log message!\n");
exit(1);
}
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4053F7", "function_addr": 4215799, "binary_name": "afd6f7fa4392dabc32b63826e39cc99780c2d7bfff68c84fb9ce54be2e7882c8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0E0h"], [3, "mov [rbp+f], rdi"], [4, "mov [rbp+var_A8], rsi"], [5, "mov [rbp+var_A0], 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_405450"], [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, cs:dword_409450"], [20, "test eax, eax"], [21, "jz loc_405536"], [22, "mov [rbp+ptr], 0"], [23, "mov [rbp+arg], 8"], [24, "mov [rbp+var_CC], 30h "], [25, "lea rax, [rbp+arg_0]"], [26, "mov [rbp+var_C8], rax"], [27, "lea rax, [rbp+var_B0]"], [28, "mov [rbp+var_C0], rax"], [29, "lea rdx, [rbp+arg]"], [30, "mov rcx, [rbp+f]"], [31, "lea rax, [rbp+ptr]"], [32, "mov rsi, rcx"], [33, "mov rdi, rax"], [34, "call _vasprintf"], [35, "test eax, eax"], [36, "js short loc_40550E"], [37, "mov eax, cs:dword_409454"], [38, "test eax, eax"], [39, "jz short loc_4054E4"], [40, "mov rax, [rbp+ptr]"], [41, "mov rdx, rax"], [42, "mov esi, offset fmt"], [43, "mov edi, 6"], [44, "mov eax, 0"], [45, "call _syslog"], [46, "jmp short loc_4054FD"], [47, "mov rax, [rbp+ptr]"], [48, "mov rdx, cs:stderr"], [49, "mov rsi, rdx"], [50, "mov rdi, rax"], [51, "call _fputs"], [52, "mov rax, [rbp+ptr]"], [53, "mov rdi, rax"], [54, "call _free"], [55, "jmp short loc_405536"], [56, "mov rax, cs:stderr"], [57, "mov rcx, rax"], [58, "mov edx, 24h "], [59, "mov esi, 1"], [60, "mov edi, offset aFatalCouldNotS"], [61, "call _fwrite"], [62, "mov edi, 1"], [63, "call _exit"], [64, "nop"], [65, "leave"], [66, "retn"]], "data_dep": [[10, 9], [20, 19], [21, 20], [25, 20], [26, 25], [27, 25], [28, 27], [29, 23], [30, 3], [31, 22], [31, 27], [32, 30], [33, 31], [35, 34], [36, 35], [38, 37], [39, 38], [40, 22], [41, 40], [47, 22], [49, 48], [50, 47], [52, 22], [53, 52], [57, 56], [66, 54], [66, 20]]}
| {"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/afd6f7fa4392dabc32b63826e39cc99780c2d7bfff68c84fb9ce54be2e7882c8_afd6f7fa4392dabc32b63826e39cc99780c2d7bfff68c84fb9ce54be2e7882c8.jsonl.gz", "strip_func_name": "sub_4053F7", "query": "\n\n\nvoid sub_4053F7(const char *a1, char *a2, char *a3, char *a4, char *a5, char *a6, ...)\n{\ngcc_va_list arg; // [rsp+10h] [rbp-D0h] BYREF\nchar *ptr[7]; // [rsp+28h] [rbp-B8h] BYREF\n\nptr[2] = a2;\nptr[3] = a3;\nptr[4] = a4;\nptr[5] = a5;\nptr[6] = a6;\nif ( dword_409450 )\n{\nptr[0] = 0LL;\narg[0].gp_offset = 8;\nva_start(arg, a6);\nif ( vasprintf(ptr, a1, arg) < 0 )\n{\nfwrite(\"Fatal: could not store log message!\\n\", 1uLL, 0x24uLL, stderr);\nexit(1);\n}\nif ( dword_409454 )\nsyslog(6, \"%s\", ptr[0]);\nelse\nfputs(ptr[0], stderr);\nfree(ptr[0]);\n}\n}\n\n\n\nQ:[a1,arg,ptr,sub_4053F7,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fmt', 'arg': 'ap', 'ptr': 'msg', 'sub_4053F7': 'verbose'}"} |
|
vreverse | 3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406 | luser-dr00g | inca | NA | object vreverse(object w, verb v){
//printf("reverse\n");
//print(w, 0, 1);
object shapew = vshapeof(w, VT(RHO));
//print(shapew, 0, 1);
object plus = vplus(-1,shapew, VT(PLUS));
//print(plus, 0, 1);
object iot = viota(vreshape(nil, shapew, VT(RHO)), VT(IOTA));
//print(iot, 0, 1);
object idx = vminus(plus, iot , VT(SUB));
//print(idx, 0, 1);
object idxw = vectorindexleft(idx, w, VT(INDL));
//print(idxw, 0, 1);
return idxw;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40CDB4", "function_addr": 4246964, "binary_name": "3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 38h"], [4, "mov [rbp+var_34], edi"], [5, "mov [rbp+var_40], rsi"], [6, "mov eax, cs:dword_41F7E8"], [7, "mov edi, eax"], [8, "call sub_41051C"], [9, "mov rdx, rax"], [10, "mov eax, [rbp+var_34]"], [11, "mov rsi, rdx"], [12, "mov edi, eax"], [13, "call sub_40A714"], [14, "mov [rbp+var_14], eax"], [15, "mov eax, cs:dword_41F7C0"], [16, "mov edi, eax"], [17, "call sub_41051C"], [18, "mov rdx, rax"], [19, "mov eax, [rbp+var_14]"], [20, "mov esi, eax"], [21, "mov edi, 0FFFFFFFFh"], [22, "call sub_409E49"], [23, "mov [rbp+var_18], eax"], [24, "mov eax, cs:dword_41F7F4"], [25, "mov edi, eax"], [26, "call sub_41051C"], [27, "mov rbx, rax"], [28, "mov eax, cs:dword_41F7E8"], [29, "mov edi, eax"], [30, "call sub_41051C"], [31, "mov rdx, rax"], [32, "mov eax, cs:dword_41F850"], [33, "mov ecx, [rbp+var_14]"], [34, "mov esi, ecx"], [35, "mov edi, eax"], [36, "call sub_40A812"], [37, "mov rsi, rbx"], [38, "mov edi, eax"], [39, "call sub_40AFF8"], [40, "mov [rbp+var_1C], eax"], [41, "mov eax, cs:dword_41F7C4"], [42, "mov edi, eax"], [43, "call sub_41051C"], [44, "mov rdx, rax"], [45, "mov ecx, [rbp+var_1C]"], [46, "mov eax, [rbp+var_18]"], [47, "mov esi, ecx"], [48, "mov edi, eax"], [49, "call sub_40A001"], [50, "mov [rbp+var_20], eax"], [51, "mov eax, cs:dword_41F804"], [52, "mov edi, eax"], [53, "call sub_41051C"], [54, "mov rdx, rax"], [55, "mov ecx, [rbp+var_34]"], [56, "mov eax, [rbp+var_20]"], [57, "mov esi, ecx"], [58, "mov edi, eax"], [59, "call sub_40BCCA"], [60, "mov [rbp+var_24], eax"], [61, "mov eax, [rbp+var_24]"], [62, "mov rbx, [rbp+var_8]"], [63, "leave"], [64, "retn"]], "data_dep": [[7, 6], [9, 8], [10, 4], [11, 9], [12, 10], [14, 13], [16, 15], [18, 17], [19, 14], [20, 19], [23, 22], [25, 24], [27, 26], [29, 28], [31, 30], [33, 14], [34, 33], [35, 32], [37, 27], [38, 36], [40, 39], [42, 41], [44, 43], [45, 40], [46, 23], [47, 45], [48, 46], [50, 49], [52, 51], [54, 53], [55, 4], [56, 50], [57, 55], [58, 56], [60, 59], [61, 60], [64, 61]]}
| {"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_40CDB4", "query": "\n\n\n__int64 __fastcall sub_40CDB4(unsigned int a1)\n{\nchar v1; // al\n__int64 v2; // rax\n__int64 v3; // rbx\n__int64 v4; // rax\nunsigned int v5; // eax\n__int64 v6; // rax\n__int64 v7; // rax\nint v9; // [rsp+20h] [rbp-20h]\nunsigned int v10; // [rsp+24h] [rbp-1Ch]\nunsigned int v11; // [rsp+28h] [rbp-18h]\nunsigned int v12; // [rsp+2Ch] [rbp-14h]\n\nv1 = sub_41051C((unsigned int)dword_41F7E8);\nv12 = sub_40A714(a1, v1);\nv2 = sub_41051C((unsigned int)dword_41F7C0);\nv11 = sub_409E49(0xFFFFFFFF, v12, v2);\nv3 = sub_41051C((unsigned int)dword_41F7F4);\nv4 = sub_41051C((unsigned int)dword_41F7E8);\nv5 = sub_40A812(dword_41F850, v12, v4);\nv10 = sub_40AFF8(v5, v3);\nv6 = sub_41051C((unsigned int)dword_41F7C4);\nv9 = sub_40A001(v11, v10, v6);\nv7 = sub_41051C((unsigned int)dword_41F804);\nreturn (unsigned int)sub_40BCCA(v9, a1, v7);\n}\n\n\n\nQ:[a1,v9,v10,v11,v12,sub_40CDB4,sub_41051C,sub_40A714,sub_409E49,sub_40A812,sub_40AFF8,sub_40A001,sub_40BCCA,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'w', 'v9': 'idx', 'v10': 'iot', 'v11': 'plus', 'v12': 'shapew', 'sub_40CDB4': 'vreverse', 'sub_41051C': 'getptr', 'sub_40A714': 'vshapeof', 'sub_409E49': 'vplus', 'sub_40A812': 'vreshape', 'sub_40AFF8': 'viota', 'sub_40A001': 'vminus', 'sub_40BCCA': 'vectorindexleft'}"} |
|
addrule | c018c938eb3aa3ea4d3ffb5d27cd33359101ebb403a0aa9debb51ed4af4a135e | rmyorston | pdpmake | NA | void
addrule(struct name *np, struct depend *dp, struct cmd *cp, int flag)
{
struct rule *rp;
struct rule **rpp;
#if ENABLE_FEATURE_MAKE_EXTENSIONS
// Can't mix single-colon and double-colon rules
if (!posix && (np->n_flag & N_TARGET)) {
if (!(np->n_flag & N_DOUBLE) != !flag) // like xor
error("inconsistent rules for target %s", np->n_name);
}
#endif
// Clear out prerequisites and commands
if ((np->n_flag & N_SPECIAL) && !dp && !cp) {
#if ENABLE_FEATURE_MAKE_POSIX_202X
if (strcmp(np->n_name, ".PHONY") == 0)
return;
#endif
#if ENABLE_FEATURE_MAKE_EXTENSIONS
if (strcmp(np->n_name, ".PRAGMA") == 0)
pragma = 0;
#endif
freerules(np->n_rule);
np->n_rule = NULL;
return;
}
if (cp && !(np->n_flag & N_DOUBLE) && getcmd(np)) {
// Handle the inference rule redefinition case
if ((np->n_flag & N_SPECIAL) && !dp) {
freerules(np->n_rule);
np->n_rule = NULL;
} else {
error("commands defined twice for target %s", np->n_name);
}
}
rpp = &np->n_rule;
while (*rpp)
rpp = &(*rpp)->r_next;
*rpp = rp = xmalloc(sizeof(struct rule));
rp->r_next = NULL;
rp->r_dep = inc_ref(dp);
rp->r_cmd = inc_ref(cp);
np->n_flag |= N_TARGET;
if (flag)
np->n_flag |= N_DOUBLE;
#if ENABLE_FEATURE_MAKE_EXTENSIONS
if (strcmp(np->n_name, ".PRAGMA") == 0) {
for (; dp; dp = dp->d_next) {
set_pragma(dp->d_name->n_name);
}
}
#endif
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408230", "function_addr": 4227632, "binary_name": "c018c938eb3aa3ea4d3ffb5d27cd33359101ebb403a0aa9debb51ed4af4a135e.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_2C], ecx"], [7, "movzx eax, cs:byte_40C978"], [8, "xor eax, 1"], [9, "test al, al"], [10, "jz short loc_4082A1"], [11, "mov rax, [rbp+var_18]"], [12, "movzx eax, word ptr [rax+28h]"], [13, "movzx eax, ax"], [14, "and eax, 4"], [15, "test eax, eax"], [16, "jz short loc_4082A1"], [17, "mov rax, [rbp+var_18]"], [18, "movzx eax, word ptr [rax+28h]"], [19, "movzx eax, ax"], [20, "and eax, 10h"], [21, "test eax, eax"], [22, "setz dl"], [23, "cmp [rbp+var_2C], 0"], [24, "setz al"], [25, "xor eax, edx"], [26, "test al, al"], [27, "jz short loc_4082A1"], [28, "mov rax, [rbp+var_18]"], [29, "mov rax, [rax+8]"], [30, "mov rsi, rax"], [31, "mov edi, offset aInconsistentRu"], [32, "mov eax, 0"], [33, "call error"], [34, "mov rax, [rbp+var_18]"], [35, "movzx eax, word ptr [rax+28h]"], [36, "movzx eax, ax"], [37, "and eax, 80h"], [38, "test eax, eax"], [39, "jz short loc_408321"], [40, "cmp [rbp+var_20], 0"], [41, "jnz short loc_408321"], [42, "cmp [rbp+var_28], 0"], [43, "jnz short loc_408321"], [44, "mov rax, [rbp+var_18]"], [45, "mov rax, [rax+8]"], [46, "mov esi, offset aPhony_0"], [47, "mov rdi, rax"], [48, "call _strcmp"], [49, "test eax, eax"], [50, "jz loc_408482"], [51, "mov rax, [rbp+var_18]"], [52, "mov rax, [rax+8]"], [53, "mov esi, offset aPragma"], [54, "mov rdi, rax"], [55, "call _strcmp"], [56, "test eax, eax"], [57, "jnz short loc_408300"], [58, "mov cs:byte_40C988, 0"], [59, "mov rax, [rbp+var_18]"], [60, "mov rax, [rax+10h]"], [61, "mov rdi, rax"], [62, "call sub_40810F"], [63, "mov rax, [rbp+var_18]"], [64, "mov qword ptr [rax+10h], 0"], [65, "jmp locret_408483"], [66, "cmp [rbp+var_28], 0"], [67, "jz short loc_40839E"], [68, "mov rax, [rbp+var_18]"], [69, "movzx eax, word ptr [rax+28h]"], [70, "movzx eax, ax"], [71, "and eax, 10h"], [72, "test eax, eax"], [73, "jnz short loc_40839E"], [74, "mov rax, [rbp+var_18]"], [75, "mov rdi, rax"], [76, "call sub_4080BB"], [77, "test rax, rax"], [78, "jz short loc_40839E"], [79, "mov rax, [rbp+var_18]"], [80, "movzx eax, word ptr [rax+28h]"], [81, "movzx eax, ax"], [82, "and eax, 80h"], [83, "test eax, eax"], [84, "jz short loc_408384"], [85, "cmp [rbp+var_20], 0"], [86, "jnz short loc_408384"], [87, "mov rax, [rbp+var_18]"], [88, "mov rax, [rax+10h]"], [89, "mov rdi, rax"], [90, "call sub_40810F"], [91, "mov rax, [rbp+var_18]"], [92, "mov qword ptr [rax+10h], 0"], [93, "jmp short loc_40839E"], [94, "mov rax, [rbp+var_18]"], [95, "mov rax, [rax+8]"], [96, "mov rsi, rax"], [97, "mov edi, offset aCommandsDefine"], [98, "mov eax, 0"], [99, "call error"], [100, "mov rax, [rbp+var_18]"], [101, "add rax, 10h"], [102, "mov [rbp+var_8], rax"], [103, "jmp short loc_4083B7"], [104, "mov rax, [rbp+var_8]"], [105, "mov rax, [rax]"], [106, "mov [rbp+var_8], rax"], [107, "mov rax, [rbp+var_8]"], [108, "mov rax, [rax]"], [109, "test rax, rax"], [110, "jnz short loc_4083AC"], [111, "mov edi, 18h"], [112, "call sub_4086B3"], [113, "mov [rbp+var_10], rax"], [114, "mov rax, [rbp+var_8]"], [115, "mov rdx, [rbp+var_10]"], [116, "mov [rax], rdx"], [117, "mov rax, [rbp+var_10]"], [118, "mov qword ptr [rax], 0"], [119, "mov rax, [rbp+var_20]"], [120, "mov rdi, rax"], [121, "call sub_408167"], [122, "mov rdx, [rbp+var_10]"], [123, "mov [rdx+8], rax"], [124, "mov rax, [rbp+var_28]"], [125, "mov rdi, rax"], [126, "call sub_408167"], [127, "mov rdx, [rbp+var_10]"], [128, "mov [rdx+10h], rax"], [129, "mov rax, [rbp+var_18]"], [130, "movzx eax, word ptr [rax+28h]"], [131, "or eax, 4"], [132, "mov edx, eax"], [133, "mov rax, [rbp+var_18]"], [134, "mov [rax+28h], dx"], [135, "cmp [rbp+var_2C], 0"], [136, "jz short loc_40843F"], [137, "mov rax, [rbp+var_18]"], [138, "movzx eax, word ptr [rax+28h]"], [139, "or eax, 10h"], [140, "mov edx, eax"], [141, "mov rax, [rbp+var_18]"], [142, "mov [rax+28h], dx"], [143, "mov rax, [rbp+var_18]"], [144, "mov rax, [rax+8]"], [145, "mov esi, offset aPragma"], [146, "mov rdi, rax"], [147, "call _strcmp"], [148, "test eax, eax"], [149, "jnz short locret_408483"], [150, "jmp short loc_408479"], [151, "mov rax, [rbp+var_20]"], [152, "mov rax, [rax+8]"], [153, "mov rax, [rax+8]"], [154, "mov rdi, rax"], [155, "call sub_4081B6"], [156, "mov rax, [rbp+var_20]"], [157, "mov rax, [rax]"], [158, "mov [rbp+var_20], rax"], [159, "cmp [rbp+var_20], 0"], [160, "jnz short loc_40845A"], [161, "jmp short locret_408483"], [162, "nop"], [163, "leave"], [164, "retn"]], "data_dep": [[8, 7], [9, 8], [10, 9], [11, 3], [12, 11], [13, 12], [14, 13], [15, 14], [16, 15], [17, 3], [18, 17], [19, 18], [20, 19], [21, 20], [22, 21], [23, 6], [24, 21], [24, 23], [25, 22], [25, 24], [26, 25], [27, 26], [28, 3], [29, 28], [30, 29], [34, 3], [35, 34], [36, 35], [37, 36], [38, 37], [39, 38], [40, 4], [41, 40], [42, 5], [43, 42], [44, 3], [45, 44], [47, 45], [49, 48], [50, 49], [51, 3], [52, 51], [54, 52], [56, 55], [57, 56], [59, 3], [60, 59], [61, 60], [63, 3], [64, 63], [66, 5], [67, 66], [68, 3], [69, 68], [70, 69], [71, 70], [72, 71], [73, 72], [74, 3], [75, 74], [77, 76], [78, 77], [79, 3], [80, 79], [81, 80], [82, 81], [83, 82], [84, 83], [85, 4], [86, 85], [87, 3], [88, 87], [89, 88], [91, 3], [92, 91], [94, 3], [95, 94], [96, 95], [100, 3], [101, 100], [102, 101], [104, 102], [104, 106], [105, 104], [105, 92], [106, 105], [107, 106], [107, 102], [108, 107], [108, 92], [109, 108], [110, 109], [113, 112], [114, 102], [114, 106], [115, 113], [116, 115], [116, 114], [117, 113], [118, 117], [119, 4], [120, 119], [122, 113], [123, 121], [123, 122], [124, 5], [125, 124], [127, 113], [128, 126], [128, 127], [129, 3], [130, 128], [130, 129], [131, 130], [132, 131], [133, 3], [134, 133], [134, 132], [135, 6], [136, 135], [137, 3], [138, 142], [138, 128], [138, 137], [138, 123], [138, 116], [138, 134], [138, 118], [138, 92], [139, 138], [140, 139], [141, 3], [142, 141], [142, 140], [143, 3], [144, 123], [144, 116], [144, 134], [144, 143], [144, 118], [144, 92], [144, 142], [144, 128], [146, 144], [148, 147], [149, 148], [151, 4], [151, 158], [152, 92], [152, 128], [152, 142], [152, 151], [152, 116], [152, 123], [152, 134], [152, 118], [153, 128], [153, 123], [153, 116], [153, 134], [153, 152], [153, 118], [153, 92], [153, 142], [154, 153], [156, 158], [156, 4], [157, 123], [157, 116], [157, 134], [157, 118], [157, 156], [157, 92], [157, 128], [157, 142], [158, 157], [159, 4], [159, 158], [160, 159], [164, 148], [164, 157], [164, 63], [164, 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/c018c938eb3aa3ea4d3ffb5d27cd33359101ebb403a0aa9debb51ed4af4a135e_c018c938eb3aa3ea4d3ffb5d27cd33359101ebb403a0aa9debb51ed4af4a135e.jsonl.gz", "strip_func_name": "sub_408230", "query": "\n\n\nint __fastcall sub_408230(__int64 a1, __int64 a2, __int64 a3, int a4, int a5, int a6)\n{\n_QWORD *v6; // rax\nint v7; // edx\nint v8; // ecx\nint v9; // er8\nint v10; // er9\nint v11; // ecx\nint v12; // er8\nint v13; // er9\nint v14; // ecx\nint v15; // er8\nint v16; // er9\nint v17; // edx\nint v18; // ecx\nint v19; // er8\nint v20; // er9\n__int64 v23; // [rsp+8h] [rbp-28h]\n_QWORD *v24; // [rsp+10h] [rbp-20h]\n_QWORD *v25; // [rsp+20h] [rbp-10h]\n_QWORD *i; // [rsp+28h] [rbp-8h]\n\nv24 = (_QWORD *)a2;\nv23 = a3;\nif ( byte_40C978 != 1 && (*(_WORD *)(a1 + 40) & 4) != 0 )\n{\nLOBYTE(a3) = (*(_WORD *)(a1 + 40) & 0x10) == 0;\nif ( (unsigned __int8)a3 != (a4 == 0) )\nerror((unsigned int)\"inconsistent rules for target %s\", *(_QWORD *)(a1 + 8), a3, a4, a5, a6);\n}\nif ( (*(_WORD *)(a1 + 40) & 0x80) == 0 || a2 || v23 )\n{\nif ( v23 && (*(_WORD *)(a1 + 40) & 0x10) == 0 && sub_4080BB(a1) )\n{\nif ( (*(_WORD *)(a1 + 40) & 0x80) == 0 || a2 )\nerror((unsigned int)\"commands defined twice for target %s\", *(_QWORD *)(a1 + 8), v7, v8, v9, v10);\nsub_40810F(*(void **)(a1 + 16));\n*(_QWORD *)(a1 + 16) = 0LL;\n}\nfor ( i = (_QWORD *)(a1 + 16); *i; i = (_QWORD *)*i )\n;\nv25 = (_QWORD *)sub_4086B3(24LL);\n*i = v25;\n*v25 = 0LL;\nv25[1] = sub_408167(a2, a2, (int)v25, v11, v12, v13);\nv25[2] = sub_408167(v23, a2, (int)v25, v14, v15, v16);\n*(_WORD *)(a1 + 40) |= 4u;\nif ( a4 )\n*(_WORD *)(a1 + 40) |= 0x10u;\nLODWORD(v6) = strcmp(*(const char **)(a1 + 8), \".PRAGMA\");\nif ( !(_DWORD)v6 )\n{\nwhile ( v24 )\n{\nsub_4081B6(*(const char **)(v24[1] + 8LL), (__int64)\".PRAGMA\", v17, v18, v19, v20);\nv6 = (_QWORD *)*v24;\nv24 = (_QWORD *)*v24;\n}\n}\n}\nelse\n{\nLODWORD(v6) = strcmp(*(const char **)(a1 + 8), \".PHONY\");\nif ( (_DWORD)v6 )\n{\nif ( !strcmp(*(const char **)(a1 + 8), \".PRAGMA\") )\nbyte_40C988 = 0;\nsub_40810F(*(void **)(a1 + 16));\nLODWORD(v6) = a1;\n*(_QWORD *)(a1 + 16) = 0LL;\n}\n}\nreturn (int)v6;\n}\n\n\n\nQ:[a3,a4,a1,a2,v17,v8,v24,v25,i,sub_408230,sub_4080BB,sub_40810F,sub_4086B3,sub_408167,sub_4081B6,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'cp', 'a4': 'flag', 'a1': 'np', 'a2': 'dp', 'v17': 'cp', 'v8': 'flag', 'v24': 'dpa', 'v25': 'rp', 'i': 'rpp', 'sub_408230': 'addrule', 'sub_4080BB': 'getcmd', 'sub_40810F': 'freerules', 'sub_4086B3': 'xmalloc', 'sub_408167': 'inc_ref', 'sub_4081B6': 'set_pragma'}"} |
|
xdr_qcsapi_wifi_get_pairing_enable_rpcdata | 501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30 | coolsnowwolf | lede | NA | bool_t
xdr_qcsapi_wifi_get_pairing_enable_rpcdata (XDR *xdrs, qcsapi_wifi_get_pairing_enable_rpcdata *objp)
{
register int32_t *buf;
if (!xdr_pointer (xdrs, (char **)&objp->ifname, sizeof (__rpc_string), (xdrproc_t) xdr___rpc_string))
return FALSE;
if (!xdr_pointer (xdrs, (char **)&objp->enable, sizeof (__rpc_string), (xdrproc_t) xdr___rpc_string))
return FALSE;
if (!xdr_int (xdrs, &objp->return_code))
return FALSE;
return TRUE;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_444B93", "function_addr": 4475795, "binary_name": "501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+xdrs], rdi"], [4, "mov [rbp+objpp], rsi"], [5, "mov rsi, [rbp+objpp]"], [6, "mov rax, [rbp+xdrs]"], [7, "mov rdx, offset xdr_obj"], [8, "mov rcx, rdx"], [9, "mov edx, 8"], [10, "mov rdi, rax"], [11, "call _xdr_pointer"], [12, "test eax, eax"], [13, "jnz short loc_444BCD"], [14, "mov eax, 0"], [15, "jmp short locret_444C22"], [16, "mov rax, [rbp+objpp]"], [17, "lea rsi, [rax+8]"], [18, "mov rax, [rbp+xdrs]"], [19, "mov rdx, offset xdr_obj"], [20, "mov rcx, rdx"], [21, "mov edx, 8"], [22, "mov rdi, rax"], [23, "call _xdr_pointer"], [24, "test eax, eax"], [25, "jnz short loc_444BFB"], [26, "mov eax, 0"], [27, "jmp short locret_444C22"], [28, "mov rax, [rbp+objpp]"], [29, "lea rdx, [rax+10h]"], [30, "mov rax, [rbp+xdrs]"], [31, "mov rsi, rdx"], [32, "mov rdi, rax"], [33, "call xdr_int"], [34, "test eax, eax"], [35, "jnz short loc_444C1D"], [36, "mov eax, 0"], [37, "jmp short locret_444C22"], [38, "mov eax, 1"], [39, "leave"], [40, "retn"]], "data_dep": [[5, 4], [6, 3], [8, 7], [10, 6], [12, 11], [13, 12], [16, 4], [17, 5], [17, 16], [18, 3], [20, 19], [22, 18], [24, 23], [25, 24], [28, 4], [29, 28], [29, 21], [30, 3], [31, 29], [32, 30], [34, 33], [35, 34], [40, 14], [40, 26], [40, 38], [40, 36]]}
| {"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/501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30_501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30.jsonl.gz", "strip_func_name": "sub_444B93", "query": "\n\n\n_BOOL8 __fastcall sub_444B93(XDR *a1, void *a2)\n{\nif ( !xdr_pointer(a1, (char **)a2, 8u, (xdrproc_t)xdr_obj) )\nreturn 0LL;\nif ( xdr_pointer(a1, (char **)a2 + 1, 8u, (xdrproc_t)xdr_obj) )\nreturn xdr_int(a1, (int *)a2 + 4) != 0;\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,sub_444B93,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'xdrs', 'a2': 'objp', 'sub_444B93': 'xdr_qcsapi_wifi_get_pairing_enable_rpcdata'}"} |
|
gt_alignment_set_read | 063ddcb6b93f710a6859e9ff7c9b8b71767c1cbf3d7ad04e0e84f9003001e3af | smarco | gem3-mapper | NA | GT_INLINE void gt_alignment_set_read(gt_alignment* const alignment,char* const read,const uint64_t length) {
GT_ALIGNMENT_CHECK(alignment);
GT_NULL_CHECK(read);
gt_string_set_nstring(alignment->read,read,length);
gt_fatal_check(!gt_string_is_null(alignment->qualities) &&
gt_string_get_length(alignment->qualities)!=gt_string_get_length(alignment->read),ALIGNMENT_READ_QUAL_LENGTH);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_447B50", "function_addr": 4488016, "binary_name": "063ddcb6b93f710a6859e9ff7c9b8b71767c1cbf3d7ad04e0e84f9003001e3af.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, "mov rax, [rax+10h]"], [8, "mov rdx, [rbp+var_18]"], [9, "mov rcx, [rbp+var_10]"], [10, "mov rsi, rcx"], [11, "mov rdi, rax"], [12, "call sub_43FF06"], [13, "nop"], [14, "leave"], [15, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 5], [9, 4], [10, 9], [11, 7], [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/063ddcb6b93f710a6859e9ff7c9b8b71767c1cbf3d7ad04e0e84f9003001e3af_063ddcb6b93f710a6859e9ff7c9b8b71767c1cbf3d7ad04e0e84f9003001e3af.jsonl.gz", "strip_func_name": "sub_447B50", "query": "\n\n\n_QWORD *__fastcall sub_447B50(__int64 a1, __int64 a2, __int64 a3)\n{\nreturn sub_43FF06(*(_QWORD **)(a1 + 16), a2, a3);\n}\n\n\n\nQ:[a3,a1,a2,sub_447B50,sub_43FF06,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'length', 'a1': 'alignment', 'a2': 'read', 'sub_447B50': 'gt_alignment_set_read', 'sub_43FF06': 'gt_string_set_nstring'}"} |
|
png_get_compression_buffer_size | fffb6272767da13c39d1d18926358bd63f012dd0292202aa9c26bfad4d90e94a | oxUnd | node-pngcrush | NA | png_size_t PNGAPI
png_get_compression_buffer_size(png_const_structp png_ptr)
{
return (png_ptr ? png_ptr->zbuf_size : 0);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413389", "function_addr": 4273033, "binary_name": "fffb6272767da13c39d1d18926358bd63f012dd0292202aa9c26bfad4d90e94a.elf_extract.pkl\n"}, "code": [[0, "mov [rsp+var_8], rdi"], [1, "cmp [rsp+var_8], 0"], [2, "jz short loc_4133A4"], [3, "mov rax, [rsp+var_8]"], [4, "mov eax, [rax+1A0h]"], [5, "mov eax, eax"], [6, "retn"], [7, "mov eax, 0"], [8, "retn"]], "data_dep": [[1, 0], [2, 1], [3, 0], [4, 3], [5, 4], [6, 5], [8, 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/fffb6272767da13c39d1d18926358bd63f012dd0292202aa9c26bfad4d90e94a_fffb6272767da13c39d1d18926358bd63f012dd0292202aa9c26bfad4d90e94a.jsonl.gz", "strip_func_name": "sub_413389", "query": "\n\n\n__int64 __fastcall sub_413389(__int64 a1)\n{\n__int64 result; // rax\n\nif ( a1 )\nresult = *(unsigned int *)(a1 + 416);\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a1,sub_413389,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'png_ptr', 'sub_413389': 'png_get_compression_buffer_size'}"} |
|
hts_set_fai_filename | fc3225fc170dc373bc36dcbfa801c68d9803a67c0fe0b996774e17328efb624c | liulab-dfci | MAESTRO | NA | int hts_set_fai_filename(htsFile *fp, const char *fn_aux)
{
free(fp->fn_aux);
if (fn_aux) {
fp->fn_aux = strdup(fn_aux);
if (fp->fn_aux == NULL) return -1;
}
else fp->fn_aux = NULL;
if (fp->format.format == cram)
if (cram_set_option(fp->fp.cram, CRAM_OPT_REFERENCE, fp->fn_aux))
return -1;
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_424D53", "function_addr": 4345171, "binary_name": "fc3225fc170dc373bc36dcbfa801c68d9803a67c0fe0b996774e17328efb624c.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+s], rsi"], [5, "mov rax, [rbp+var_8]"], [6, "mov rax, [rax+30h]"], [7, "mov rdi, rax"], [8, "call _free"], [9, "cmp [rbp+s], 0"], [10, "jz short loc_424DA5"], [11, "mov rax, [rbp+s]"], [12, "mov rdi, rax"], [13, "call _strdup"], [14, "mov rdx, rax"], [15, "mov rax, [rbp+var_8]"], [16, "mov [rax+30h], rdx"], [17, "mov rax, [rbp+var_8]"], [18, "mov rax, [rax+30h]"], [19, "test rax, rax"], [20, "jnz short loc_424DB1"], [21, "mov eax, 0FFFFFFFFh"], [22, "jmp short locret_424DEF"], [23, "mov rax, [rbp+var_8]"], [24, "mov qword ptr [rax+30h], 0"], [25, "mov rax, [rbp+var_8]"], [26, "mov eax, [rax+44h]"], [27, "cmp eax, 6"], [28, "jnz short loc_424DEA"], [29, "mov rax, [rbp+var_8]"], [30, "mov rdx, [rax+30h]"], [31, "mov rax, [rbp+var_8]"], [32, "mov rax, [rax+38h]"], [33, "mov esi, 9"], [34, "mov rdi, rax"], [35, "mov eax, 0"], [36, "call sub_43EA43"], [37, "test eax, eax"], [38, "jz short loc_424DEA"], [39, "mov eax, 0FFFFFFFFh"], [40, "jmp short locret_424DEF"], [41, "mov eax, 0"], [42, "leave"], [43, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [9, 4], [10, 9], [11, 4], [12, 11], [14, 13], [15, 3], [16, 15], [16, 14], [17, 3], [18, 17], [18, 16], [19, 18], [20, 19], [23, 3], [24, 23], [25, 3], [26, 24], [26, 16], [26, 25], [27, 26], [28, 27], [29, 3], [30, 24], [30, 29], [30, 16], [31, 3], [32, 31], [32, 24], [32, 16], [34, 32], [37, 36], [38, 37], [43, 21], [43, 39], [43, 41]]}
| {"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/fc3225fc170dc373bc36dcbfa801c68d9803a67c0fe0b996774e17328efb624c_fc3225fc170dc373bc36dcbfa801c68d9803a67c0fe0b996774e17328efb624c.jsonl.gz", "strip_func_name": "sub_424D53", "query": "\n\n\n__int64 __fastcall sub_424D53(__int64 a1, const char *a2)\n{\nint v2; // ecx\nint v3; // er8\nint v4; // er9\n__int64 result; // rax\n\nfree(*(void **)(a1 + 48));\nif ( a2 )\n{\n*(_QWORD *)(a1 + 48) = strdup(a2);\nif ( !*(_QWORD *)(a1 + 48) )\nreturn 0xFFFFFFFFLL;\n}\nelse\n{\n*(_QWORD *)(a1 + 48) = 0LL;\n}\nif ( *(_DWORD *)(a1 + 68) == 6 && (unsigned int)sub_43EA43(*(_QWORD *)(a1 + 56), 9, *(_QWORD *)(a1 + 48), v2, v3, v4) )\nresult = 0xFFFFFFFFLL;\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_424D53,sub_43EA43,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fp', 'a2': 'fn_aux', 'sub_424D53': 'hts_set_fai_filename', 'sub_43EA43': 'cram_set_option'}"} |
|
ssl_parse_client_psk_identity | 069897a66919e64b0e46b98fa4ff249d13ba120504065102080d0e852ae5343b | FreeRTOS | iot-reference-stm32u5 | NA | static int ssl_parse_client_psk_identity( mbedtls_ssl_context *ssl, unsigned char **p,
const unsigned char *end )
{
int ret = 0;
uint16_t n;
if( ssl_conf_has_psk_or_cb( ssl->conf ) == 0 )
{
MBEDTLS_SSL_DEBUG_MSG( 1, ( "got no pre-shared key" ) );
return( MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED );
}
/*
* Receive client pre-shared key identity name
*/
if( end - *p < 2 )
{
MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad client key exchange message" ) );
return( MBEDTLS_ERR_SSL_DECODE_ERROR );
}
n = ( (*p)[0] << 8 ) | (*p)[1];
*p += 2;
if( n == 0 || n > end - *p )
{
MBEDTLS_SSL_DEBUG_MSG( 1, ( "bad client key exchange message" ) );
return( MBEDTLS_ERR_SSL_DECODE_ERROR );
}
if( ssl->conf->f_psk != NULL )
{
if( ssl->conf->f_psk( ssl->conf->p_psk, ssl, *p, n ) != 0 )
ret = MBEDTLS_ERR_SSL_UNKNOWN_IDENTITY;
}
else
{
/* Identity is not a big secret since clients send it in the clear,
* but treat it carefully anyway, just in case */
if( n != ssl->conf->psk_identity_len ||
mbedtls_ct_memcmp( ssl->conf->psk_identity, *p, n ) != 0 )
{
ret = MBEDTLS_ERR_SSL_UNKNOWN_IDENTITY;
}
}
if( ret == MBEDTLS_ERR_SSL_UNKNOWN_IDENTITY )
{
MBEDTLS_SSL_DEBUG_BUF( 3, "Unknown PSK identity", *p, n );
mbedtls_ssl_send_alert_message( ssl, MBEDTLS_SSL_ALERT_LEVEL_FATAL,
MBEDTLS_SSL_ALERT_MSG_UNKNOWN_PSK_IDENTITY );
return( MBEDTLS_ERR_SSL_UNKNOWN_IDENTITY );
}
*p += n;
return( 0 );
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_429DAC", "function_addr": 4365740, "binary_name": "069897a66919e64b0e46b98fa4ff249d13ba120504065102080d0e852ae5343b.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_4], 0"], [7, "mov rax, [rbp+var_18]"], [8, "mov rax, [rax]"], [9, "mov rdi, rax"], [10, "call sub_423DC6"], [11, "test eax, eax"], [12, "jnz short loc_429E0A"], [13, "mov rax, [rbp+var_18]"], [14, "mov r8d, offset aGotNoPreShared"], [15, "mov ecx, 0E2Dh"], [16, "mov edx, offset aSslSrvC"], [17, "mov esi, 1"], [18, "mov rdi, rax"], [19, "mov eax, 0"], [20, "call sub_408E2B"], [21, "mov eax, 0FFFF8A00h"], [22, "jmp locret_429FDD"], [23, "mov rax, [rbp+var_20]"], [24, "mov rdx, [rax]"], [25, "mov rax, [rbp+var_28]"], [26, "sub rax, rdx"], [27, "cmp rax, 1"], [28, "jg short loc_429E4E"], [29, "mov rax, [rbp+var_18]"], [30, "mov r8d, offset aBadClientKeyEx"], [31, "mov ecx, 0E36h"], [32, "mov edx, offset aSslSrvC"], [33, "mov esi, 1"], [34, "mov rdi, rax"], [35, "mov eax, 0"], [36, "call sub_408E2B"], [37, "mov eax, 0FFFF8D00h"], [38, "jmp locret_429FDD"], [39, "mov rax, [rbp+var_20]"], [40, "mov rax, [rax]"], [41, "movzx eax, byte ptr [rax]"], [42, "movzx eax, al"], [43, "shl eax, 8"], [44, "mov edx, eax"], [45, "mov rax, [rbp+var_20]"], [46, "mov rax, [rax]"], [47, "add rax, 1"], [48, "movzx eax, byte ptr [rax]"], [49, "movzx eax, al"], [50, "or eax, edx"], [51, "mov [rbp+var_6], ax"], [52, "mov rax, [rbp+var_20]"], [53, "mov rax, [rax]"], [54, "lea rdx, [rax+2]"], [55, "mov rax, [rbp+var_20]"], [56, "mov [rax], rdx"], [57, "cmp [rbp+var_6], 0"], [58, "jz short loc_429EA7"], [59, "movzx edx, [rbp+var_6]"], [60, "mov rax, [rbp+var_20]"], [61, "mov rcx, [rax]"], [62, "mov rax, [rbp+var_28]"], [63, "sub rax, rcx"], [64, "cmp rdx, rax"], [65, "jle short loc_429ED7"], [66, "mov rax, [rbp+var_18]"], [67, "mov r8d, offset aBadClientKeyEx"], [68, "mov ecx, 0E3Fh"], [69, "mov edx, offset aSslSrvC"], [70, "mov esi, 1"], [71, "mov rdi, rax"], [72, "mov eax, 0"], [73, "call sub_408E2B"], [74, "mov eax, 0FFFF8D00h"], [75, "jmp locret_429FDD"], [76, "mov rax, [rbp+var_18]"], [77, "mov rax, [rax]"], [78, "mov rax, [rax+70h]"], [79, "test rax, rax"], [80, "jz short loc_429F1F"], [81, "mov rax, [rbp+var_18]"], [82, "mov rax, [rax]"], [83, "mov r8, [rax+70h]"], [84, "movzx ecx, [rbp+var_6]"], [85, "mov rax, [rbp+var_20]"], [86, "mov rdx, [rax]"], [87, "mov rax, [rbp+var_18]"], [88, "mov rax, [rax]"], [89, "mov rax, [rax+78h]"], [90, "mov rsi, [rbp+var_18]"], [91, "mov rdi, rax"], [92, "call r8"], [93, "test eax, eax"], [94, "jz short loc_429F65"], [95, "mov [rbp+var_4], 0FFFF9380h"], [96, "jmp short loc_429F65"], [97, "movzx edx, [rbp+var_6]"], [98, "mov rax, [rbp+var_18]"], [99, "mov rax, [rax]"], [100, "mov rax, [rax+130h]"], [101, "cmp rdx, rax"], [102, "jnz short loc_429F5E"], [103, "movzx edx, [rbp+var_6]"], [104, "mov rax, [rbp+var_20]"], [105, "mov rcx, [rax]"], [106, "mov rax, [rbp+var_18]"], [107, "mov rax, [rax]"], [108, "mov rax, [rax+128h]"], [109, "mov rsi, rcx"], [110, "mov rdi, rax"], [111, "call sub_43C396"], [112, "test eax, eax"], [113, "jz short loc_429F65"], [114, "mov [rbp+var_4], 0FFFF9380h"], [115, "cmp [rbp+var_4], 0FFFF9380h"], [116, "jnz short loc_429FC3"], [117, "movzx edx, [rbp+var_6]"], [118, "mov rax, [rbp+var_20]"], [119, "mov rcx, [rax]"], [120, "mov rax, [rbp+var_18]"], [121, "sub rsp, 8"], [122, "push rdx"], [123, "mov r9, rcx"], [124, "mov r8d, offset aUnknownPskIden"], [125, "mov ecx, 0E55h"], [126, "mov edx, offset aSslSrvC"], [127, "mov esi, 3"], [128, "mov rdi, rax"], [129, "call sub_40908B"], [130, "add rsp, 10h"], [131, "mov rax, [rbp+var_18]"], [132, "mov edx, 73h "], [133, "mov esi, 2"], [134, "mov rdi, rax"], [135, "call sub_421E44"], [136, "mov eax, 0FFFF9380h"], [137, "jmp short locret_429FDD"], [138, "mov rax, [rbp+var_20]"], [139, "mov rdx, [rax]"], [140, "movzx eax, [rbp+var_6]"], [141, "add rdx, rax"], [142, "mov rax, [rbp+var_20]"], [143, "mov [rax], rdx"], [144, "mov eax, 0"], [145, "leave"], [146, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 8], [11, 10], [12, 11], [13, 3], [18, 13], [23, 4], [24, 23], [25, 5], [26, 25], [26, 24], [27, 26], [28, 27], [29, 3], [34, 29], [39, 4], [40, 39], [41, 40], [42, 41], [43, 42], [44, 43], [45, 4], [46, 45], [47, 46], [48, 47], [49, 48], [50, 49], [50, 44], [51, 50], [52, 4], [53, 52], [54, 44], [54, 53], [55, 4], [56, 55], [56, 54], [57, 51], [58, 57], [59, 51], [60, 4], [61, 56], [61, 60], [62, 5], [63, 61], [63, 62], [64, 59], [64, 63], [65, 64], [66, 3], [71, 66], [76, 3], [77, 76], [77, 56], [78, 77], [78, 56], [79, 78], [80, 79], [81, 3], [82, 56], [82, 81], [83, 82], [83, 56], [84, 51], [85, 4], [86, 56], [86, 85], [87, 3], [88, 56], [88, 87], [89, 56], [89, 88], [90, 3], [91, 89], [92, 83], [93, 92], [94, 93], [97, 51], [98, 3], [99, 56], [99, 98], [100, 56], [100, 99], [101, 97], [101, 100], [102, 101], [103, 51], [104, 4], [105, 56], [105, 104], [106, 3], [107, 106], [107, 56], [108, 107], [108, 56], [109, 105], [110, 108], [112, 111], [113, 112], [115, 114], [115, 6], [115, 95], [116, 115], [117, 51], [118, 4], [119, 118], [119, 56], [120, 3], [121, 2], [122, 117], [123, 119], [128, 120], [130, 121], [131, 3], [134, 131], [138, 4], [139, 143], [139, 56], [139, 138], [140, 51], [141, 140], [141, 139], [142, 4], [143, 142], [143, 141], [146, 136], [146, 74], [146, 37], [146, 21], [146, 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/069897a66919e64b0e46b98fa4ff249d13ba120504065102080d0e852ae5343b_069897a66919e64b0e46b98fa4ff249d13ba120504065102080d0e852ae5343b.jsonl.gz", "strip_func_name": "sub_429DAC", "query": "\n\n\n__int64 __fastcall sub_429DAC(_QWORD **a1, unsigned __int16 **a2, __int64 a3)\n{\n__int64 v3; // r9\n__int64 result; // rax\n__int64 v5; // rcx\n__int64 v6; // r8\n__int64 v7; // r9\nunsigned __int16 v9; // [rsp+2Ah] [rbp-6h]\nint v10; // [rsp+2Ch] [rbp-4h]\n\nv10 = 0;\nif ( sub_423DC6(*a1) )\n{\nif ( a3 - (__int64)*a2 > 1 )\n{\nv9 = _byteswap_ushort(*(*a2)++);\nif ( v9 && v9 <= a3 - (__int64)*a2 )\n{\nif ( (*a1)[14] )\n{\nif ( ((unsigned int (__fastcall *)(_QWORD, _QWORD **, unsigned __int16 *, _QWORD))(*a1)[14])(\n(*a1)[15],\na1,\n*a2,\nv9) )\n{\nv10 = -27776;\n}\n}\nelse if ( v9 != (*a1)[38] || (unsigned int)sub_43C396((*a1)[37], *a2, v9) )\n{\nv10 = -27776;\n}\nif ( v10 == -27776 )\n{\nsub_40908B((__int64)a1, 3, (__int64)\"ssl_srv.c\", 0xE55u, \"Unknown PSK identity\", (__int64)*a2, v9);\nsub_421E44((__int64)a1, 2u, 0x73u, v5, v6, v7);\nresult = 4294939520LL;\n}\nelse\n{\n*a2 = (unsigned __int16 *)((char *)*a2 + v9);\nresult = 0LL;\n}\n}\nelse\n{\nsub_408E2B((__int64)a1, 1, (__int64)\"ssl_srv.c\", 0xE3Fu, \"bad client key exchange message\", v3);\nresult = 4294937856LL;\n}\n}\nelse\n{\nsub_408E2B((__int64)a1, 1, (__int64)\"ssl_srv.c\", 0xE36u, \"bad client key exchange message\", v3);\nresult = 4294937856LL;\n}\n}\nelse\n{\nsub_408E2B((__int64)a1, 1, (__int64)\"ssl_srv.c\", 0xE2Du, \"got no pre-shared key\", v3);\nresult = 4294937088LL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v9,sub_429DAC,sub_423DC6,sub_43C396,sub_40908B,sub_421E44,sub_408E2B,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'end', 'a1': 'ssl', 'a2': 'p', 'v9': 'n', 'sub_429DAC': 'ssl_parse_client_psk_identity', 'sub_423DC6': 'ssl_conf_has_psk_or_cb', 'sub_43C396': 'mbedtls_ct_memcmp', 'sub_40908B': 'mbedtls_debug_print_buf', 'sub_421E44': 'mbedtls_ssl_send_alert_message', 'sub_408E2B': 'mbedtls_debug_print_msg'}"} |
|
DecodeECC_DSA_Sig | 7219b0ef569734ba548000b39f891b63e71d053f533c94257503597f308a3fd2 | wolfSSL | wolfBoot | NA | int DecodeECC_DSA_Sig(const byte* sig, word32 sigLen, mp_int* r, mp_int* s)
{
return DecodeECC_DSA_Sig_Ex(sig, sigLen, r, s, 1);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F7C7", "function_addr": 4257735, "binary_name": "7219b0ef569734ba548000b39f891b63e71d053f533c94257503597f308a3fd2.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_4], 0"], [8, "mov [rbp+var_8], 0"], [9, "mov ecx, [rbp+var_1C]"], [10, "lea rdx, [rbp+var_8]"], [11, "lea rsi, [rbp+var_4]"], [12, "mov rax, [rbp+var_18]"], [13, "mov rdi, rax"], [14, "call sub_404D18"], [15, "test eax, eax"], [16, "jns short loc_40F811"], [17, "mov eax, 0FFFFFF55h"], [18, "jmp locret_40F8A1"], [19, "mov edx, [rbp+var_4]"], [20, "mov eax, [rbp+var_8]"], [21, "add eax, edx"], [22, "cmp [rbp+var_1C], eax"], [23, "jz short loc_40F825"], [24, "mov eax, 0FFFFFF55h"], [25, "jmp short locret_40F8A1"], [26, "mov ecx, [rbp+var_1C]"], [27, "lea rdx, [rbp+var_4]"], [28, "mov rsi, [rbp+var_18]"], [29, "mov rax, [rbp+var_28]"], [30, "mov rdi, rax"], [31, "call sub_4055CC"], [32, "test eax, eax"], [33, "jns short loc_40F847"], [34, "mov eax, 0FFFFFF55h"], [35, "jmp short locret_40F8A1"], [36, "mov ecx, [rbp+var_1C]"], [37, "lea rdx, [rbp+var_4]"], [38, "mov rsi, [rbp+var_18]"], [39, "mov rax, [rbp+var_30]"], [40, "mov rdi, rax"], [41, "call sub_4055CC"], [42, "test eax, eax"], [43, "jns short loc_40F875"], [44, "mov rax, [rbp+var_28]"], [45, "mov rdi, rax"], [46, "call sub_47181F"], [47, "mov eax, 0FFFFFF55h"], [48, "jmp short locret_40F8A1"], [49, "mov eax, [rbp+var_4]"], [50, "cmp [rbp+var_1C], eax"], [51, "jz short loc_40F89C"], [52, "mov rax, [rbp+var_28]"], [53, "mov rdi, rax"], [54, "call sub_47181F"], [55, "mov rax, [rbp+var_30]"], [56, "mov rdi, rax"], [57, "call sub_47181F"], [58, "mov eax, 0FFFFFF55h"], [59, "jmp short locret_40F8A1"], [60, "mov eax, 0"], [61, "leave"], [62, "retn"]], "data_dep": [[9, 4], [10, 8], [11, 7], [12, 3], [13, 12], [15, 14], [16, 15], [19, 7], [20, 8], [21, 19], [21, 20], [22, 4], [22, 21], [23, 22], [26, 4], [27, 7], [27, 19], [28, 3], [29, 5], [30, 29], [32, 31], [33, 32], [36, 4], [37, 27], [37, 7], [38, 3], [39, 6], [40, 39], [42, 41], [43, 42], [44, 5], [45, 44], [49, 7], [50, 49], [50, 4], [51, 50], [52, 5], [53, 52], [55, 6], [56, 55], [62, 17], [62, 47], [62, 34], [62, 58], [62, 24], [62, 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/7219b0ef569734ba548000b39f891b63e71d053f533c94257503597f308a3fd2_7219b0ef569734ba548000b39f891b63e71d053f533c94257503597f308a3fd2.jsonl.gz", "strip_func_name": "sub_40F7C7", "query": "\n\n\n__int64 __fastcall sub_40F7C7(__int64 a1, unsigned int a2, __int64 a3, __int64 a4)\n{\n__int64 result; // rax\nunsigned int v7; // [rsp+28h] [rbp-8h] BYREF\nunsigned int v8; // [rsp+2Ch] [rbp-4h] BYREF\n\nv8 = 0;\nv7 = 0;\nif ( (int)sub_404D18(a1, &v8, &v7, a2) < 0 )\nreturn 4294967125LL;\nif ( a2 != v8 + v7 )\nreturn 4294967125LL;\nif ( (int)sub_4055CC(a3, a1, &v8, a2) < 0 )\nreturn 4294967125LL;\nif ( (int)sub_4055CC(a4, a1, &v8, a2) >= 0 )\n{\nif ( a2 == v8 )\n{\nresult = 0LL;\n}\nelse\n{\nsub_47181F(a3);\nsub_47181F(a4);\nresult = 4294967125LL;\n}\n}\nelse\n{\nsub_47181F(a3);\nresult = 4294967125LL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v7,v8,sub_40F7C7,sub_404D18,sub_4055CC,sub_47181F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'r', 'a4': 's', 'a1': 'sig', 'a2': 'sigLen', 'v7': 'len', 'v8': 'idx', 'sub_40F7C7': 'DecodeECC_DSA_Sig', 'sub_404D18': 'GetSequence', 'sub_4055CC': 'GetIntPositive', 'sub_47181F': 'mp_clear'}"} |
|
capture_traffic_from | 95fe85a8a780414155c52425dc590980642397a6fcef0c77e6c1af12b8a4e6c5 | mborgerson | l2tunnel | NA | static void capture_traffic_from(const uint8_t filter_mac[6], bool flt_by_src)
{
struct pcap_pkthdr *pkt_header;
const u_char *pkt_data;
const uint8_t *pkt_src;
const uint8_t *pkt_dest;
const char *bcast = "\xff\xff\xff\xff\xff\xff";
int status;
pcap_packet_len = 0;
pcap_packet_buf = NULL;
status = pcap_next_ex(p, &pkt_header, &pkt_data);
if (status == 1) {
/* Success */
} else if (status == 0) {
/* Timeout */
return;
} else if (status == -1) {
LOG_ERROR("pcap_next_ex error: %s\n", pcap_geterr(p));
exit(1);
return;
} else {
LOG_ERROR("unknown error %d\n", status);
exit(1);
return;
}
/* Assume we at least get an ethernet header */
assert(pkt_header->len >= 14);
/* Verify that we captured the entire packet */
assert(pkt_header->caplen == pkt_header->len);
if (flt_by_src) {
pkt_src = &pkt_data[6];
if (memcmp(pkt_src, filter_mac, 6) != 0) {
/* Not our packet */
return;
}
} else {
pkt_dest = &pkt_data[0];
if (memcmp(pkt_dest, filter_mac, 6) != 0 &&
memcmp(pkt_dest, bcast, 6) != 0) {
/* Not our packet */
return;
}
}
char to[24], from[24];
fmt_mac_addr(to, sizeof(to), &pkt_data[0]);
fmt_mac_addr(from, sizeof(from), &pkt_data[6]);
LOG_DEBUG("%s to %s\n", from, to);
pcap_packet_buf = pkt_data;
pcap_packet_len = pkt_header->len;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4018FA", "function_addr": 4200698, "binary_name": "95fe85a8a780414155c52425dc590980642397a6fcef0c77e6c1af12b8a4e6c5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "add rsp, 0FFFFFFFFFFFFFF80h"], [3, "mov [rbp+s2], rdi"], [4, "mov eax, esi"], [5, "mov [rbp+var_7C], al"], [6, "mov [rbp+var_8], offset unk_403228"], [7, "mov cs:n, 0"], [8, "mov cs:buf, 0"], [9, "mov rax, cs:qword_405180"], [10, "lea rdx, [rbp+var_30]"], [11, "lea rcx, [rbp+var_28]"], [12, "mov rsi, rcx"], [13, "mov rdi, rax"], [14, "call _pcap_next_ex"], [15, "mov [rbp+var_C], eax"], [16, "cmp [rbp+var_C], 1"], [17, "jz short loc_4019B7"], [18, "cmp [rbp+var_C], 0"], [19, "jz loc_401AE6"], [20, "cmp [rbp+var_C], 0FFFFFFFFh"], [21, "jnz short loc_401991"], [22, "mov rax, cs:qword_405180"], [23, "mov rdi, rax"], [24, "call _pcap_geterr"], [25, "mov rdx, rax"], [26, "mov rax, cs:stderr"], [27, "mov esi, offset aErrorPcapNextE"], [28, "mov rdi, rax"], [29, "mov eax, 0"], [30, "call _fprintf"], [31, "mov edi, 1"], [32, "call _exit"], [33, "mov rax, cs:stderr"], [34, "mov edx, [rbp+var_C]"], [35, "mov esi, offset aErrorUnknownEr"], [36, "mov rdi, rax"], [37, "mov eax, 0"], [38, "call _fprintf"], [39, "mov edi, 1"], [40, "call _exit"], [41, "mov rax, [rbp+var_28]"], [42, "mov eax, [rax+14h]"], [43, "cmp eax, 0Dh"], [44, "ja short loc_4019DC"], [45, "mov ecx, offset aCaptureTraffic"], [46, "mov edx, 106h"], [47, "mov esi, offset file"], [48, "mov edi, offset assertion"], [49, "call ___assert_fail"], [50, "mov rax, [rbp+var_28]"], [51, "mov edx, [rax+10h]"], [52, "mov rax, [rbp+var_28]"], [53, "mov eax, [rax+14h]"], [54, "cmp edx, eax"], [55, "jz short loc_401A07"], [56, "mov ecx, offset aCaptureTraffic"], [57, "mov edx, 109h"], [58, "mov esi, offset file"], [59, "mov edi, offset aPktHeaderCaple"], [60, "call ___assert_fail"], [61, "cmp [rbp+var_7C], 0"], [62, "jz short loc_401A3A"], [63, "mov rax, [rbp+var_30]"], [64, "add rax, 6"], [65, "mov [rbp+s1], rax"], [66, "mov rcx, [rbp+s2]"], [67, "mov rax, [rbp+s1]"], [68, "mov edx, 6"], [69, "mov rsi, rcx"], [70, "mov rdi, rax"], [71, "call _memcmp"], [72, "test eax, eax"], [73, "jz short loc_401A7A"], [74, "jmp locret_401AEA"], [75, "mov rax, [rbp+var_30]"], [76, "mov [rbp+var_18], rax"], [77, "mov rcx, [rbp+s2]"], [78, "mov rax, [rbp+var_18]"], [79, "mov edx, 6"], [80, "mov rsi, rcx"], [81, "mov rdi, rax"], [82, "call _memcmp"], [83, "test eax, eax"], [84, "jz short loc_401A7A"], [85, "mov rcx, [rbp+var_8]"], [86, "mov rax, [rbp+var_18]"], [87, "mov edx, 6"], [88, "mov rsi, rcx"], [89, "mov rdi, rax"], [90, "call _memcmp"], [91, "test eax, eax"], [92, "jnz short loc_401AE9"], [93, "mov rdx, [rbp+var_30]"], [94, "lea rax, [rbp+var_50]"], [95, "mov esi, 18h"], [96, "mov rdi, rax"], [97, "call sub_40146A"], [98, "mov rax, [rbp+var_30]"], [99, "lea rdx, [rax+6]"], [100, "lea rax, [rbp+var_70]"], [101, "mov esi, 18h"], [102, "mov rdi, rax"], [103, "call sub_40146A"], [104, "mov rax, cs:stderr"], [105, "lea rcx, [rbp+var_50]"], [106, "lea rdx, [rbp+var_70]"], [107, "mov esi, offset aSToS"], [108, "mov rdi, rax"], [109, "mov eax, 0"], [110, "call _fprintf"], [111, "mov rax, [rbp+var_30]"], [112, "mov cs:buf, rax"], [113, "mov rax, [rbp+var_28]"], [114, "mov eax, [rax+14h]"], [115, "mov eax, eax"], [116, "mov cs:n, rax"], [117, "jmp short locret_401AEA"], [118, "nop"], [119, "jmp short locret_401AEA"], [120, "nop"], [121, "leave"], [122, "retn"]], "data_dep": [[5, 4], [12, 11], [13, 9], [15, 14], [16, 15], [17, 16], [18, 15], [19, 18], [20, 15], [21, 20], [23, 22], [25, 24], [28, 26], [34, 15], [36, 33], [42, 41], [43, 42], [44, 43], [51, 50], [53, 52], [54, 51], [54, 53], [55, 54], [61, 5], [62, 61], [64, 63], [65, 64], [66, 3], [67, 65], [69, 66], [70, 67], [72, 71], [73, 72], [76, 75], [77, 3], [78, 76], [80, 77], [81, 78], [83, 82], [84, 83], [85, 6], [86, 76], [88, 85], [89, 86], [91, 90], [92, 91], [94, 91], [94, 72], [94, 83], [96, 94], [99, 93], [99, 98], [100, 98], [102, 100], [105, 85], [105, 66], [105, 77], [106, 99], [108, 104], [112, 111], [114, 113], [115, 114], [116, 115], [122, 91], [122, 115], [122, 72], [122, 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/95fe85a8a780414155c52425dc590980642397a6fcef0c77e6c1af12b8a4e6c5_95fe85a8a780414155c52425dc590980642397a6fcef0c77e6c1af12b8a4e6c5.jsonl.gz", "strip_func_name": "sub_4018FA", "query": "\n\n\nunsigned int __fastcall sub_4018FA(const void *a1, char a2)\n{\nunsigned int result; // eax\nconst char *v3; // rax\nchar v4[32]; // [rsp+10h] [rbp-70h] BYREF\nchar v5[32]; // [rsp+30h] [rbp-50h] BYREF\nunsigned __int8 *v6; // [rsp+50h] [rbp-30h]\n__int64 v7; // [rsp+58h] [rbp-28h]\nvoid *s1; // [rsp+60h] [rbp-20h]\nvoid *v9; // [rsp+68h] [rbp-18h]\nunsigned int v10; // [rsp+74h] [rbp-Ch]\nvoid *v11; // [rsp+78h] [rbp-8h]\n\nv11 = &unk_403228;\nn = 0LL;\nbuf = 0LL;\nresult = pcap_next_ex();\nv10 = result;\nif ( result == 1 )\n{\nif ( *(_DWORD *)(v7 + 20) <= 0xDu )\n__assert_fail(\"pkt_header->len >= 14\", \"l2tunnel.c\", 0x106u, \"capture_traffic_from\");\nif ( *(_DWORD *)(v7 + 16) != *(_DWORD *)(v7 + 20) )\n__assert_fail(\"pkt_header->caplen == pkt_header->len\", \"l2tunnel.c\", 0x109u, \"capture_traffic_from\");\nif ( a2 )\n{\ns1 = v6 + 6;\nresult = memcmp(v6 + 6, a1, 6uLL);\nif ( result )\nreturn result;\n}\nelse\n{\nv9 = v6;\nif ( memcmp(v6, a1, 6uLL) )\n{\nresult = memcmp(v9, v11, 6uLL);\nif ( result )\nreturn result;\n}\n}\nsub_40146A(v5, 0x18uLL, v6);\nsub_40146A(v4, 0x18uLL, v6 + 6);\nfprintf(stderr, \"%s to %s\\n\", v4, v5);\nbuf = v6;\nresult = *(_DWORD *)(v7 + 20);\nn = result;\nreturn result;\n}\nif ( v10 )\n{\nif ( v10 == -1 )\n{\nv3 = (const char *)pcap_geterr();\nfprintf(stderr, \"error: pcap_next_ex error: %s\\n\", v3);\nexit(1);\n}\nfprintf(stderr, \"error: unknown error %d\\n\", v10);\nexit(1);\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v4,v5,v6,v7,s1,v9,v10,v11,sub_4018FA,sub_40146A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'filter_mac', 'a2': 'flt_by_src', 'v4': 'from', 'v5': 'to', 'v6': 'pkt_data', 'v7': 'pkt_header', 's1': 'pkt_src', 'v9': 'pkt_dest', 'v10': 'status', 'v11': 'bcast', 'sub_4018FA': 'capture_traffic_from', 'sub_40146A': 'fmt_mac_addr'}"} |
|
OBJ_cleanup | 0b59b57dabde4c427bcd662d066b3478730f39d581bda2a4b76da7ccdd08ef23 | RKX1209 | bitvisor-gdb | NA | void OBJ_cleanup(void)
{
if (obj_cleanup_defer)
{
obj_cleanup_defer = 2;
return ;
}
if (added == NULL) return;
lh_ADDED_OBJ_down_load(added) = 0;
lh_ADDED_OBJ_doall(added,LHASH_DOALL_FN(cleanup1)); /* zero counters */
lh_ADDED_OBJ_doall(added,LHASH_DOALL_FN(cleanup2)); /* set counters */
lh_ADDED_OBJ_doall(added,LHASH_DOALL_FN(cleanup3)); /* free objects */
lh_ADDED_OBJ_free(added);
added=NULL;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40C349", "function_addr": 4244297, "binary_name": "0b59b57dabde4c427bcd662d066b3478730f39d581bda2a4b76da7ccdd08ef23.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, cs:dword_438388"], [3, "test eax, eax"], [4, "jz short loc_40C363"], [5, "mov cs:dword_438388, 2"], [6, "jmp short loc_40C3D7"], [7, "mov rax, cs:qword_438390"], [8, "test rax, rax"], [9, "jz short loc_40C3D6"], [10, "mov rax, cs:qword_438390"], [11, "mov qword ptr [rax+30h], 0"], [12, "mov rax, cs:qword_438390"], [13, "mov esi, offset sub_40C2B9"], [14, "mov rdi, rax"], [15, "call sub_40A7E5"], [16, "mov rax, cs:qword_438390"], [17, "mov esi, offset sub_40C2DC"], [18, "mov rdi, rax"], [19, "call sub_40A7E5"], [20, "mov rax, cs:qword_438390"], [21, "mov esi, offset sub_40C2FF"], [22, "mov rdi, rax"], [23, "call sub_40A7E5"], [24, "mov rax, cs:qword_438390"], [25, "mov rdi, rax"], [26, "call sub_40A3A9"], [27, "mov cs:qword_438390, 0"], [28, "jmp short loc_40C3D7"], [29, "nop"], [30, "pop rbp"], [31, "retn"]], "data_dep": [[3, 2], [4, 3], [8, 7], [9, 8], [11, 10], [14, 12], [18, 16], [22, 20], [25, 24], [30, 0], [31, 8], [31, 26], [31, 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/0b59b57dabde4c427bcd662d066b3478730f39d581bda2a4b76da7ccdd08ef23_0b59b57dabde4c427bcd662d066b3478730f39d581bda2a4b76da7ccdd08ef23.jsonl.gz", "strip_func_name": "sub_40C349", "query": "\n\n\n__int64 sub_40C349()\n{\n__int64 result; // rax\n\nresult = (unsigned int)dword_438388;\nif ( dword_438388 )\n{\ndword_438388 = 2;\n}\nelse\n{\nresult = qword_438390;\nif ( qword_438390 )\n{\n*(_QWORD *)(qword_438390 + 48) = 0LL;\nsub_40A7E5(qword_438390, (void (__fastcall *)(_QWORD))sub_40C2B9);\nsub_40A7E5(qword_438390, (void (__fastcall *)(_QWORD))sub_40C2DC);\nsub_40A7E5(qword_438390, (void (__fastcall *)(_QWORD))sub_40C2FF);\nresult = (__int64)sub_40A3A9(qword_438390);\nqword_438390 = 0LL;\n}\n}\nreturn result;\n}\n\n\n\nQ:[sub_40C349,sub_40A7E5,sub_40C2B9,sub_40C2DC,sub_40C2FF,sub_40A3A9,]\nAssistant: ", "hints": "[]", "response": "{'sub_40C349': 'OBJ_cleanup', 'sub_40A7E5': 'lh_doall', 'sub_40C2B9': 'cleanup1_LHASH_DOALL', 'sub_40C2DC': 'cleanup2_LHASH_DOALL', 'sub_40C2FF': 'cleanup3_LHASH_DOALL', 'sub_40A3A9': 'lh_free'}"} |
|
dump_rts_cts | 528c7001f9d8807d261c8686927c59834d74014bbf9e9e58bbbf862b07caa39e | deater | uarch-configure | NA | static void dump_rts_cts(int header_type) {
int fd;
void *gpio_map,*serial_map;
uint32_t temp;
uint32_t tx_gpio,rx_gpio,cts_gpio,rts_gpio;
int old_cts=10,old_rts=10;
fd = open("/dev/mem", O_RDWR|O_SYNC);
if (fd < 0) {
fprintf(stderr, "can't open /dev/mem (%s)\n", strerror(errno));
exit(EXIT_FAILURE);
}
/* Map GPIO region */
gpio_map = mmap(NULL, BLOCK_SIZE, PROT_READ|PROT_WRITE, MAP_SHARED,
fd, gpio_base);
/* Map Serial region */
serial_map = mmap(NULL, BLOCK_SIZE, PROT_READ|PROT_WRITE, MAP_SHARED,
fd, serial_base);
close(fd);
if (gpio_map == MAP_FAILED) {
fprintf(stderr, "gpio mmap error (%s)\n", strerror(errno));
exit(EXIT_FAILURE);
}
if (serial_map == MAP_FAILED) {
fprintf(stderr, "serial mmap error (%s)\n", strerror(errno));
exit(EXIT_FAILURE);
}
volatile uint32_t *gpio = (volatile uint32_t *)gpio_map;
volatile uint32_t *serial = (volatile uint32_t *)serial_map;
printf("*** Raspberry Pi Curent Serial Settings ***\n\n");
printf("GPIO pin settings:\n");
temp=gpio[GFPSEL1];
tx_gpio=(temp>>12)&0x7;
rx_gpio=(temp>>15)&0x7;
/* 0 = input */
/* 1 = output */
/* 4 = ALT0 */
/* 5 = ALT1 */
/* 6 = ALT2 */
/* 7 = ALT3 */
/* 3 = ALT4 */
/* 2 = ALT5 */
printf("\tPIN14/TX = ");
if (tx_gpio==4) printf("AMBA (ALT0)\n");
else if (tx_gpio==2) printf("mini-uart (ALT5)\n");
else printf("Unknown (%d)\n",tx_gpio);
printf("\tPIN15/RX = ");
if (rx_gpio==4) printf("AMBA (ALT0)\n");
else if (rx_gpio==2) printf("mini-uart (ALT5)\n");
else printf("Unknown (%d)\n",rx_gpio);
if (header_type == GPIO_HEADER_40) {
temp=gpio[GFPSEL1];
cts_gpio=(temp>>18)&0x7;
rts_gpio=(temp>>21)&0x7;
printf("\tPIN16/CTS = ");
if (cts_gpio==0) printf("not configured\n");
else if (cts_gpio==7) printf("AMBA (ALT3)\n");
else if (cts_gpio==2) printf("mini-uart (ALT5)\n");
else printf("Unknown (%d)\n",cts_gpio);
printf("\tPIN17/RTS = ");
if (rts_gpio==0) printf("not configured\n");
else if (rts_gpio==7) printf("AMBA (ALT3)\n");
else if (rts_gpio==2) printf("mini-uart (ALT5)\n");
else printf("Unknown (%d)\n",rts_gpio);
}
else {
printf("\tPIN30/CTS = \n");
printf("\tPIN31/RTS = \n");
}
printf("\nRTS/CTS pin readings:\n");
printf("Only printing if they change values\n");
#define UART_FR 6
#define UART_CR 12
while(1) {
int cts,rts;
temp=serial[UART_FR];
/* CTS */
cts=!(temp&(1<<0));
temp=serial[UART_CR];
/* RTS */
rts=!(temp&(1<<11));
if ((cts!=old_cts) || (rts!=old_rts)) {
printf("CTS=%d RTS=%d\n",cts,rts);
old_cts=cts;
old_rts=rts;
}
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4015EE", "function_addr": 4199918, "binary_name": "528c7001f9d8807d261c8686927c59834d74014bbf9e9e58bbbf862b07caa39e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_54], edi"], [4, "mov [rbp+var_4], 0Ah"], [5, "mov [rbp+var_8], 0Ah"], [6, "mov esi, 101002h"], [7, "mov edi, offset file"], [8, "mov eax, 0"], [9, "call _open"], [10, "mov [rbp+fd], eax"], [11, "cmp [rbp+fd], 0"], [12, "jns short loc_401658"], [13, "call ___errno_location"], [14, "mov eax, [rax]"], [15, "mov edi, eax"], [16, "call _strerror"], [17, "mov rdx, rax"], [18, "mov rax, cs:stderr"], [19, "mov esi, offset format"], [20, "mov rdi, rax"], [21, "mov eax, 0"], [22, "call _fprintf"], [23, "mov edi, 1"], [24, "call _exit"], [25, "mov eax, cs:offset"], [26, "mov edx, eax"], [27, "mov eax, [rbp+fd]"], [28, "mov r9, rdx"], [29, "mov r8d, eax"], [30, "mov ecx, 1"], [31, "mov edx, 3"], [32, "mov esi, 1000h"], [33, "mov edi, 0"], [34, "call _mmap"], [35, "mov [rbp+var_18], rax"], [36, "mov eax, cs:dword_4040A4"], [37, "mov edx, eax"], [38, "mov eax, [rbp+fd]"], [39, "mov r9, rdx"], [40, "mov r8d, eax"], [41, "mov ecx, 1"], [42, "mov edx, 3"], [43, "mov esi, 1000h"], [44, "mov edi, 0"], [45, "call _mmap"], [46, "mov [rbp+var_20], rax"], [47, "mov eax, [rbp+fd]"], [48, "mov edi, eax"], [49, "call _close"], [50, "cmp [rbp+var_18], 0FFFFFFFFFFFFFFFFh"], [51, "jnz short loc_4016F9"], [52, "call ___errno_location"], [53, "mov eax, [rax]"], [54, "mov edi, eax"], [55, "call _strerror"], [56, "mov rdx, rax"], [57, "mov rax, cs:stderr"], [58, "mov esi, offset aGpioMmapErrorS"], [59, "mov rdi, rax"], [60, "mov eax, 0"], [61, "call _fprintf"], [62, "mov edi, 1"], [63, "call _exit"], [64, "cmp [rbp+var_20], 0FFFFFFFFFFFFFFFFh"], [65, "jnz short loc_401734"], [66, "call ___errno_location"], [67, "mov eax, [rax]"], [68, "mov edi, eax"], [69, "call _strerror"], [70, "mov rdx, rax"], [71, "mov rax, cs:stderr"], [72, "mov esi, offset aSerialMmapErro"], [73, "mov rdi, rax"], [74, "mov eax, 0"], [75, "call _fprintf"], [76, "mov edi, 1"], [77, "call _exit"], [78, "mov rax, [rbp+var_18]"], [79, "mov [rbp+var_28], rax"], [80, "mov rax, [rbp+var_20]"], [81, "mov [rbp+var_30], rax"], [82, "mov edi, offset aRaspberryPiCur"], [83, "call _puts"], [84, "mov edi, offset aGpioPinSetting"], [85, "call _puts"], [86, "mov rax, [rbp+var_28]"], [87, "mov eax, [rax+4]"], [88, "mov [rbp+var_34], eax"], [89, "mov eax, [rbp+var_34]"], [90, "shr eax, 0Ch"], [91, "and eax, 7"], [92, "mov [rbp+var_38], eax"], [93, "mov eax, [rbp+var_34]"], [94, "shr eax, 0Fh"], [95, "and eax, 7"], [96, "mov [rbp+var_3C], eax"], [97, "mov edi, offset aPin14Tx"], [98, "mov eax, 0"], [99, "call _printf"], [100, "cmp [rbp+var_38], 4"], [101, "jnz short loc_40179B"], [102, "mov edi, offset aAmbaAlt0"], [103, "call _puts"], [104, "jmp short loc_4017C1"], [105, "cmp [rbp+var_38], 2"], [106, "jnz short loc_4017AD"], [107, "mov edi, offset aMiniUartAlt5"], [108, "call _puts"], [109, "jmp short loc_4017C1"], [110, "mov eax, [rbp+var_38]"], [111, "mov esi, eax"], [112, "mov edi, offset aUnknownD"], [113, "mov eax, 0"], [114, "call _printf"], [115, "mov edi, offset aPin15Rx"], [116, "mov eax, 0"], [117, "call _printf"], [118, "cmp [rbp+var_3C], 4"], [119, "jnz short loc_4017E2"], [120, "mov edi, offset aAmbaAlt0"], [121, "call _puts"], [122, "jmp short loc_401808"], [123, "cmp [rbp+var_3C], 2"], [124, "jnz short loc_4017F4"], [125, "mov edi, offset aMiniUartAlt5"], [126, "call _puts"], [127, "jmp short loc_401808"], [128, "mov eax, [rbp+var_3C]"], [129, "mov esi, eax"], [130, "mov edi, offset aUnknownD"], [131, "mov eax, 0"], [132, "call _printf"], [133, "cmp [rbp+var_54], 1"], [134, "jnz loc_4018E8"], [135, "mov rax, [rbp+var_28]"], [136, "mov eax, [rax+4]"], [137, "mov [rbp+var_34], eax"], [138, "mov eax, [rbp+var_34]"], [139, "shr eax, 12h"], [140, "and eax, 7"], [141, "mov [rbp+var_40], eax"], [142, "mov eax, [rbp+var_34]"], [143, "shr eax, 15h"], [144, "and eax, 7"], [145, "mov [rbp+var_44], eax"], [146, "mov edi, offset aPin16Cts"], [147, "mov eax, 0"], [148, "call _printf"], [149, "cmp [rbp+var_40], 0"], [150, "jnz short loc_401855"], [151, "mov edi, offset aNotConfigured"], [152, "call _puts"], [153, "jmp short loc_40188D"], [154, "cmp [rbp+var_40], 7"], [155, "jnz short loc_401867"], [156, "mov edi, offset aAmbaAlt3"], [157, "call _puts"], [158, "jmp short loc_40188D"], [159, "cmp [rbp+var_40], 2"], [160, "jnz short loc_401879"], [161, "mov edi, offset aMiniUartAlt5"], [162, "call _puts"], [163, "jmp short loc_40188D"], [164, "mov eax, [rbp+var_40]"], [165, "mov esi, eax"], [166, "mov edi, offset aUnknownD"], [167, "mov eax, 0"], [168, "call _printf"], [169, "mov edi, offset aPin17Rts"], [170, "mov eax, 0"], [171, "call _printf"], [172, "cmp [rbp+var_44], 0"], [173, "jnz short loc_4018AE"], [174, "mov edi, offset aNotConfigured"], [175, "call _puts"], [176, "jmp short loc_4018FC"], [177, "cmp [rbp+var_44], 7"], [178, "jnz short loc_4018C0"], [179, "mov edi, offset aAmbaAlt3"], [180, "call _puts"], [181, "jmp short loc_4018FC"], [182, "cmp [rbp+var_44], 2"], [183, "jnz short loc_4018D2"], [184, "mov edi, offset aMiniUartAlt5"], [185, "call _puts"], [186, "jmp short loc_4018FC"], [187, "mov eax, [rbp+var_44]"], [188, "mov esi, eax"], [189, "mov edi, offset aUnknownD"], [190, "mov eax, 0"], [191, "call _printf"], [192, "jmp short loc_4018FC"], [193, "mov edi, offset aPin30Cts"], [194, "call _puts"], [195, "mov edi, offset aPin31Rts"], [196, "call _puts"], [197, "mov edi, offset aRtsCtsPinReadi"], [198, "call _puts"], [199, "mov edi, offset aOnlyPrintingIf"], [200, "call _puts"], [201, "mov rax, [rbp+var_30]"], [202, "mov eax, [rax+18h]"], [203, "mov [rbp+var_34], eax"], [204, "mov eax, [rbp+var_34]"], [205, "and eax, 1"], [206, "test eax, eax"], [207, "setz al"], [208, "movzx eax, al"], [209, "mov [rbp+var_48], eax"], [210, "mov rax, [rbp+var_30]"], [211, "mov eax, [rax+30h]"], [212, "mov [rbp+var_34], eax"], [213, "mov eax, [rbp+var_34]"], [214, "and eax, 800h"], [215, "test eax, eax"], [216, "setz al"], [217, "movzx eax, al"], [218, "mov [rbp+var_4C], eax"], [219, "mov eax, [rbp+var_48]"], [220, "cmp eax, [rbp+var_4]"], [221, "jnz short loc_401958"], [222, "mov eax, [rbp+var_4C]"], [223, "cmp eax, [rbp+var_8]"], [224, "jz short loc_401910"], [225, "mov edx, [rbp+var_4C]"], [226, "mov eax, [rbp+var_48]"], [227, "mov esi, eax"], [228, "mov edi, offset aCtsDRtsD"], [229, "mov eax, 0"], [230, "call _printf"], [231, "mov eax, [rbp+var_48]"], [232, "mov [rbp+var_4], eax"], [233, "mov eax, [rbp+var_4C]"], [234, "mov [rbp+var_8], eax"], [235, "jmp short loc_401910"]], "data_dep": [[10, 9], [11, 10], [12, 11], [14, 13], [15, 14], [17, 16], [20, 18], [26, 25], [27, 10], [28, 26], [29, 27], [35, 34], [37, 36], [38, 10], [39, 37], [40, 38], [46, 45], [47, 10], [48, 47], [50, 35], [51, 50], [53, 52], [54, 53], [56, 55], [59, 57], [64, 46], [65, 64], [67, 66], [68, 67], [70, 69], [73, 71], [78, 35], [79, 78], [80, 46], [81, 80], [86, 79], [87, 86], [88, 87], [89, 88], [90, 89], [91, 90], [92, 91], [93, 88], [94, 93], [95, 94], [96, 95], [100, 92], [101, 100], [105, 92], [106, 105], [110, 92], [111, 110], [118, 96], [119, 118], [123, 96], [124, 123], [128, 96], [129, 128], [133, 3], [134, 133], [135, 79], [136, 135], [137, 136], [138, 137], [139, 138], [140, 139], [141, 140], [142, 137], [143, 142], [144, 143], [145, 144], [149, 141], [150, 149], [154, 141], [155, 154], [159, 141], [160, 159], [164, 141], [165, 164], [172, 145], [173, 172], [177, 145], [178, 177], [182, 145], [183, 182], [187, 145], [188, 187], [201, 81], [202, 201], [203, 202], [204, 203], [205, 204], [206, 205], [207, 206], [208, 207], [209, 208], [210, 81], [211, 210], [212, 211], [213, 212], [214, 213], [215, 214], [216, 215], [217, 216], [218, 217], [219, 209], [220, 219], [220, 4], [220, 232], [221, 220], [222, 218], [223, 234], [223, 5], [223, 222], [224, 223], [225, 218], [226, 209], [227, 226], [231, 209], [232, 231], [233, 218], [234, 233]]}
| {"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/528c7001f9d8807d261c8686927c59834d74014bbf9e9e58bbbf862b07caa39e_528c7001f9d8807d261c8686927c59834d74014bbf9e9e58bbbf862b07caa39e.jsonl.gz", "strip_func_name": "sub_4015EE", "query": "\n\n\nvoid __fastcall __noreturn sub_4015EE(int a1)\n{\nint *v1; // rax\nchar *v2; // rax\nint *v3; // rax\nchar *v4; // rax\nint *v5; // rax\nchar *v6; // rax\n__int64 v7; // [rsp+14h] [rbp-4Ch]\nunsigned int v8; // [rsp+1Ch] [rbp-44h]\nunsigned int v9; // [rsp+20h] [rbp-40h]\nunsigned int v10; // [rsp+24h] [rbp-3Ch]\nunsigned int v11; // [rsp+28h] [rbp-38h]\nunsigned int v12; // [rsp+2Ch] [rbp-34h]\nunsigned int v13; // [rsp+2Ch] [rbp-34h]\n_DWORD *v14; // [rsp+40h] [rbp-20h]\n_DWORD *v15; // [rsp+48h] [rbp-18h]\nint fd; // [rsp+54h] [rbp-Ch]\n__int64 v17; // [rsp+58h] [rbp-8h]\n\nv17 = 0xA0000000ALL;\nfd = open(\"/dev/mem\", 1052674);\nif ( fd < 0 )\n{\nv1 = __errno_location();\nv2 = strerror(*v1);\nfprintf(stderr, \"can't open /dev/mem (%s)\\n\", v2);\nexit(1);\n}\nv15 = mmap(0LL, 0x1000uLL, 3, 1, fd, (unsigned int)qword_4040A0);\nv14 = mmap(0LL, 0x1000uLL, 3, 1, fd, HIDWORD(qword_4040A0));\nclose(fd);\nif ( v15 == (_DWORD *)-1LL )\n{\nv3 = __errno_location();\nv4 = strerror(*v3);\nfprintf(stderr, \"gpio mmap error (%s)\\n\", v4);\nexit(1);\n}\nif ( v14 == (_DWORD *)-1LL )\n{\nv5 = __errno_location();\nv6 = strerror(*v5);\nfprintf(stderr, \"serial mmap error (%s)\\n\", v6);\nexit(1);\n}\nputs(\"*** Raspberry Pi Curent Serial Settings ***\\n\");\nputs(\"GPIO pin settings:\");\nv12 = v15[1];\nv11 = (v12 >> 12) & 7;\nv10 = (v12 >> 15) & 7;\nprintf(\"\\tPIN14/TX = \");\nif ( v11 == 4 )\n{\nputs(\"AMBA (ALT0)\");\n}\nelse if ( v11 == 2 )\n{\nputs(\"mini-uart (ALT5)\");\n}\nelse\n{\nprintf(\"Unknown (%d)\\n\", v11);\n}\nprintf(\"\\tPIN15/RX = \");\nif ( v10 == 4 )\n{\nputs(\"AMBA (ALT0)\");\n}\nelse if ( v10 == 2 )\n{\nputs(\"mini-uart (ALT5)\");\n}\nelse\n{\nprintf(\"Unknown (%d)\\n\", v10);\n}\nif ( a1 == 1 )\n{\nv13 = v15[1];\nv9 = (v13 >> 18) & 7;\nv8 = (v13 >> 21) & 7;\nprintf(\"\\tPIN16/CTS = \");\nif ( v9 )\n{\nif ( v9 == 7 )\n{\nputs(\"AMBA (ALT3)\");\n}\nelse if ( v9 == 2 )\n{\nputs(\"mini-uart (ALT5)\");\n}\nelse\n{\nprintf(\"Unknown (%d)\\n\", v9);\n}\n}\nelse\n{\nputs(\"not configured\");\n}\nprintf(\"\\tPIN17/RTS = \");\nif ( v8 )\n{\nif ( v8 == 7 )\n{\nputs(\"AMBA (ALT3)\");\n}\nelse if ( v8 == 2 )\n{\nputs(\"mini-uart (ALT5)\");\n}\nelse\n{\nprintf(\"Unknown (%d)\\n\", v8);\n}\n}\nelse\n{\nputs(\"not configured\");\n}\n}\nelse\n{\nputs(\"\\tPIN30/CTS = \");\nputs(\"\\tPIN31/RTS = \");\n}\nputs(\"\\nRTS/CTS pin readings:\");\nputs(\"Only printing if they change values\");\nwhile ( 1 )\n{\ndo\n{\nHIDWORD(v7) = (v14[6] & 1) == 0;\nLODWORD(v7) = (v14[12] & 0x800) == 0;\n}\nwhile ( v7 == v17 );\nprintf(\"CTS=%d RTS=%d\\n\", (v14[6] & 1) == 0, (v14[12] & 0x800) == 0);\nv17 = v7;\n}\n}\n\n\n\nQ:[a1,v7,v8,v9,v10,v11,v13,v14,v15,v17,sub_4015EE,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'header_type', 'v7': 'rts', 'v8': 'rts_gpio', 'v9': 'cts_gpio', 'v10': 'rx_gpio', 'v11': 'tx_gpio', 'v13': 'tempa', 'v14': 'serial_map', 'v15': 'gpio_map', 'v17': 'old_rts', 'sub_4015EE': 'dump_rts_cts'}"} |
|
jal_op | 88424ee5a5245c37ff242a8659d5e1bc52d42784d25fa569a567fbb8ea10d4c1 | chettrick | discobsd | NA | static int jal_op (cpu_mips_t * cpu, mips_insn_t insn)
{
u_int instr_index = bits (insn, 0, 25);
m_va_t new_pc;
/* compute the new pc */
new_pc = (cpu->pc + 4) & ~((1 << 28) - 1);
new_pc |= instr_index << 2;
/* set the return address (instruction after the delay slot) */
cpu->reg_set (cpu, MIPS_GPR_RA, cpu->pc + 8);
int ins_res = mips_exec_bdslot (cpu);
if (likely (!ins_res))
cpu->pc = new_pc;
return (1);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_417669", "function_addr": 4290153, "binary_name": "88424ee5a5245c37ff242a8659d5e1bc52d42784d25fa569a567fbb8ea10d4c1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 48h"], [4, "mov [rbp+var_48], rdi"], [5, "mov [rbp+var_4C], esi"], [6, "mov eax, [rbp+var_4C]"], [7, "mov edx, 19h"], [8, "mov esi, 0"], [9, "mov edi, eax"], [10, "call sub_413532"], [11, "mov [rbp+var_14], eax"], [12, "mov rax, [rbp+var_48]"], [13, "mov eax, [rax+8]"], [14, "add eax, 4"], [15, "and eax, 0F0000000h"], [16, "mov [rbp+var_18], eax"], [17, "mov eax, [rbp+var_14]"], [18, "shl eax, 2"], [19, "or [rbp+var_18], eax"], [20, "mov rax, [rbp+var_48]"], [21, "mov rcx, [rax+580h]"], [22, "mov rax, [rbp+var_48]"], [23, "mov eax, [rax+8]"], [24, "lea edx, [rax+8]"], [25, "mov rax, [rbp+var_48]"], [26, "mov esi, 1Fh"], [27, "mov rdi, rax"], [28, "call rcx"], [29, "mov rax, [rbp+var_48]"], [30, "mov [rbp+var_28], rax"], [31, "mov [rbp+var_2C], 0"], [32, "mov rax, [rbp+var_28]"], [33, "mov eax, [rax+6C0h]"], [34, "mov [rbp+var_30], eax"], [35, "mov rax, [rbp+var_28]"], [36, "mov dword ptr [rax+6BCh], 1"], [37, "mov rax, [rbp+var_28]"], [38, "mov edx, [rax+8]"], [39, "mov eax, [rbp+var_30]"], [40, "lea ecx, [rdx+rax]"], [41, "lea rdx, [rbp+var_40]"], [42, "mov rax, [rbp+var_28]"], [43, "mov esi, ecx"], [44, "mov rdi, rax"], [45, "call sub_41369E"], [46, "mov [rbp+var_2C], eax"], [47, "cmp [rbp+var_2C], 1"], [48, "jnz short loc_417738"], [49, "mov rax, [rbp+var_28]"], [50, "mov dword ptr [rax+6BCh], 0"], [51, "mov eax, 1"], [52, "jmp loc_417869"], [53, "mov rax, [rbp+var_28]"], [54, "mov dword ptr [rax+6BCh], 1"], [55, "mov rax, [rbp+var_28]"], [56, "mov rax, [rax+0A0h]"], [57, "mov eax, [rax+68h]"], [58, "cmp eax, 2"], [59, "jg short loc_417792"], [60, "mov rax, [rbp+var_28]"], [61, "mov rax, [rax+0A0h]"], [62, "mov eax, [rax+68h]"], [63, "cmp eax, 1"], [64, "jle loc_4177F5"], [65, "mov rax, [rbp+var_28]"], [66, "mov eax, [rax+0E0h]"], [67, "and eax, 10h"], [68, "test eax, eax"], [69, "jz short loc_4177F5"], [70, "mov rax, [rbp+var_28]"], [71, "mov eax, [rax+0E0h]"], [72, "and eax, 2"], [73, "test eax, eax"], [74, "jnz short loc_4177F5"], [75, "mov eax, [rbp+var_40]"], [76, "mov rdx, [rbp+var_28]"], [77, "mov ecx, [rdx+8]"], [78, "mov edx, [rbp+var_30]"], [79, "add ecx, edx"], [80, "mov edx, eax"], [81, "mov esi, ecx"], [82, "mov edi, offset a08x08x_0"], [83, "mov eax, 0"], [84, "call _printf"], [85, "mov rdi, cs:stdout"], [86, "mov rax, [rbp+var_28]"], [87, "mov ecx, [rax+6C4h]"], [88, "mov esi, [rbp+var_40]"], [89, "mov rax, [rbp+var_28]"], [90, "mov eax, [rax+8]"], [91, "mov edx, [rbp+var_30]"], [92, "mov r8, rdi"], [93, "mov edi, eax"], [94, "call sub_42A2CE"], [95, "mov edi, 0Ah"], [96, "call _putchar"], [97, "mov rax, cs:stdout"], [98, "mov rdi, rax"], [99, "call _fflush"], [100, "mov eax, [rbp+var_40]"], [101, "mov rdx, [rbp+var_28]"], [102, "mov [rbp+var_38], rdx"], [103, "mov [rbp+var_3C], eax"], [104, "mov rax, [rbp+var_38]"], [105, "mov eax, [rax+6C4h]"], [106, "cdqe"], [107, "test rax, rax"], [108, "jz short loc_417827"], [109, "mov edx, [rbp+var_3C]"], [110, "mov rax, [rbp+var_38]"], [111, "mov esi, edx"], [112, "mov rdi, rax"], [113, "call sub_41B905"], [114, "jmp short loc_417855"], [115, "mov eax, [rbp+var_3C]"], [116, "shr eax, 1Ah"], [117, "mov ebx, eax"], [118, "mov edx, ebx"], [119, "mov rax, rdx"], [120, "add rax, rax"], [121, "add rax, rdx"], [122, "shl rax, 3"], [123, "add rax, offset funcs_41382D"], [124, "mov rcx, [rax]"], [125, "mov edx, [rbp+var_3C]"], [126, "mov rax, [rbp+var_38]"], [127, "mov esi, edx"], [128, "mov rdi, rax"], [129, "call rcx"], [130, "mov [rbp+var_2C], eax"], [131, "mov rax, [rbp+var_28]"], [132, "mov dword ptr [rax+6BCh], 0"], [133, "mov eax, [rbp+var_2C]"], [134, "mov [rbp+var_1C], eax"], [135, "cmp [rbp+var_1C], 0"], [136, "setz al"], [137, "movzx eax, al"], [138, "test rax, rax"], [139, "jz short loc_417885"], [140, "mov rax, [rbp+var_48]"], [141, "mov edx, [rbp+var_18]"], [142, "mov [rax+8], edx"], [143, "mov eax, 1"], [144, "mov rbx, [rbp+var_8]"], [145, "leave"], [146, "retn"]], "data_dep": [[6, 5], [9, 6], [11, 10], [12, 4], [13, 12], [14, 13], [15, 14], [16, 15], [17, 11], [18, 17], [19, 18], [19, 16], [20, 4], [21, 20], [22, 4], [23, 22], [24, 23], [24, 7], [25, 4], [27, 25], [28, 21], [29, 4], [30, 29], [32, 30], [33, 32], [34, 33], [35, 30], [36, 35], [37, 30], [38, 36], [38, 37], [39, 34], [40, 36], [40, 21], [40, 39], [41, 38], [42, 30], [43, 40], [44, 42], [46, 45], [47, 46], [48, 47], [49, 30], [50, 49], [53, 30], [54, 53], [55, 30], [56, 55], [56, 54], [57, 54], [57, 56], [58, 57], [59, 58], [60, 30], [61, 36], [61, 54], [61, 60], [62, 61], [62, 36], [62, 54], [63, 62], [64, 63], [65, 30], [66, 36], [66, 54], [66, 65], [67, 66], [68, 67], [69, 68], [70, 30], [71, 70], [71, 36], [71, 54], [72, 71], [73, 72], [74, 73], [76, 30], [77, 76], [77, 36], [77, 54], [78, 34], [79, 78], [79, 77], [80, 75], [81, 79], [86, 30], [87, 36], [87, 54], [87, 86], [89, 30], [90, 89], [90, 36], [90, 54], [91, 34], [92, 85], [93, 90], [98, 97], [101, 30], [102, 101], [103, 100], [104, 102], [105, 36], [105, 54], [105, 104], [107, 105], [108, 107], [109, 103], [110, 102], [111, 109], [112, 110], [115, 103], [116, 115], [117, 116], [118, 117], [119, 118], [120, 119], [121, 118], [121, 120], [122, 121], [123, 122], [124, 36], [124, 123], [124, 54], [125, 103], [126, 102], [127, 125], [128, 126], [129, 124], [130, 129], [130, 113], [131, 30], [132, 131], [133, 130], [134, 133], [134, 51], [135, 134], [136, 135], [136, 51], [136, 133], [137, 136], [138, 137], [139, 138], [140, 4], [141, 19], [142, 141], [142, 140], [146, 143]]}
| {"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/88424ee5a5245c37ff242a8659d5e1bc52d42784d25fa569a567fbb8ea10d4c1_88424ee5a5245c37ff242a8659d5e1bc52d42784d25fa569a567fbb8ea10d4c1.jsonl.gz", "strip_func_name": "sub_417669", "query": "\n\n\n__int64 __fastcall sub_417669(__int64 a1, unsigned int a2)\n{\nint v2; // eax\nint v3; // eax\nunsigned int v5; // [rsp+10h] [rbp-40h] BYREF\nunsigned int v6; // [rsp+14h] [rbp-3Ch]\n__int64 v7; // [rsp+18h] [rbp-38h]\nunsigned int v8; // [rsp+20h] [rbp-30h]\nint v9; // [rsp+24h] [rbp-2Ch]\n__int64 v10; // [rsp+28h] [rbp-28h]\nint v11; // [rsp+34h] [rbp-1Ch]\nunsigned int v12; // [rsp+38h] [rbp-18h]\nint v13; // [rsp+3Ch] [rbp-14h]\n\nv13 = sub_413532(a2, 0, 25);\nv12 = (4 * v13) | (*(_DWORD *)(a1 + 8) + 4) & 0xF0000000;\n(*(void (__fastcall **)(__int64, __int64, _QWORD))(a1 + 1408))(a1, 31LL, (unsigned int)(*(_DWORD *)(a1 + 8) + 8));\nv10 = a1;\nv9 = 0;\nv8 = *(_DWORD *)(a1 + 1728);\n*(_DWORD *)(a1 + 1724) = 1;\nv9 = sub_41369E(v10, *(_DWORD *)(v10 + 8) + v8, (int *)&v5);\nif ( v9 == 1 )\n{\n*(_DWORD *)(v10 + 1724) = 0;\nv2 = 1;\n}\nelse\n{\n*(_DWORD *)(v10 + 1724) = 1;\nif ( *(int *)(*(_QWORD *)(v10 + 160) + 104LL) > 2\n|| *(int *)(*(_QWORD *)(v10 + 160) + 104LL) > 1\n&& (*(_DWORD *)(v10 + 224) & 0x10) != 0\n&& (*(_DWORD *)(v10 + 224) & 2) == 0 )\n{\nprintf(\"%08x: %08x \", v8 + *(_DWORD *)(v10 + 8), v5);\nsub_42A2CE(*(unsigned int *)(v10 + 8), v5, v8, *(unsigned int *)(v10 + 1732), stdout);\nputchar(10);\nfflush(stdout);\n}\nv7 = v10;\nv6 = v5;\nif ( *(_DWORD *)(v10 + 1732) )\nv3 = sub_41B905(v7, v6);\nelse\nv3 = ((__int64 (__fastcall *)(__int64, _QWORD))funcs_41382D[3 * (v6 >> 26)])(v7, v6);\nv9 = v3;\n*(_DWORD *)(v10 + 1724) = 0;\nv2 = v9;\n}\nv11 = v2;\nif ( !v2 )\n*(_DWORD *)(a1 + 8) = v12;\nreturn 1LL;\n}\n\n\n\nQ:[a1,a2,v5,v6,v8,v11,v12,v13,sub_417669,sub_413532,sub_41369E,sub_42A2CE,sub_41B905,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'cpu', 'a2': 'insn', 'v5': 'opcode', 'v6': 'instr', 'v8': 'nbytes', 'v11': 'ins_res', 'v12': 'new_pc', 'v13': 'instr_index', 'sub_417669': 'jal_op', 'sub_413532': 'bits_0', 'sub_41369E': 'mips_fetch_instruction', 'sub_42A2CE': 'print_mips', 'sub_41B905': 'mips_exec_mips16e'}"} |
|
main | 461fef2f1094350537d9aa398ddac055dc75ae66143fc51794e729a64c9b8b49 | cdown | dwm | NA | int
main(int argc, char *argv[])
{
if (argc == 2 && !strcmp("-v", argv[1]))
die("dwm-"VERSION);
else if (argc != 1)
die("usage: dwm [-v]");
if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())
fputs("warning: no locale support\n", stderr);
if (!(dpy = XOpenDisplay(NULL)))
die("dwm: cannot open display");
checkotherwm();
setup();
#ifdef __OpenBSD__
if (pledge("stdio rpath proc exec", NULL) == -1)
die("pledge");
#endif /* __OpenBSD__ */
scan();
run();
cleanup();
XCloseDisplay(dpy);
return EXIT_SUCCESS;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4249590, "binary_name": "461fef2f1094350537d9aa398ddac055dc75ae66143fc51794e729a64c9b8b49.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, "cmp [rbp+var_4], 2"], [6, "jnz short loc_40D838"], [7, "mov rax, [rbp+var_10]"], [8, "add rax, 8"], [9, "mov rax, [rax]"], [10, "mov rsi, rax"], [11, "mov edi, offset s1"], [12, "call _strcmp"], [13, "test eax, eax"], [14, "jnz short loc_40D838"], [15, "mov edi, offset aDwm64"], [16, "mov eax, 0"], [17, "call sub_40D8E3"], [18, "jmp short loc_40D84D"], [19, "cmp [rbp+var_4], 1"], [20, "jz short loc_40D84D"], [21, "mov edi, offset aUsageDwmV"], [22, "mov eax, 0"], [23, "call sub_40D8E3"], [24, "mov esi, offset locale"], [25, "mov edi, 0"], [26, "call _setlocale"], [27, "test rax, rax"], [28, "jz short loc_40D86A"], [29, "call _XSupportsLocale"], [30, "test eax, eax"], [31, "jnz short loc_40D888"], [32, "mov rax, cs:stderr"], [33, "mov rcx, rax"], [34, "mov edx, 1Bh"], [35, "mov esi, 1"], [36, "mov edi, offset aWarningNoLocal"], [37, "call _fwrite"], [38, "mov edi, 0"], [39, "call _XOpenDisplay"], [40, "mov cs:display, rax"], [41, "mov rax, cs:display"], [42, "test rax, rax"], [43, "jnz short loc_40D8B4"], [44, "mov edi, offset aDwmCannotOpenD"], [45, "mov eax, 0"], [46, "call sub_40D8E3"], [47, "call sub_405D42"], [48, "call sub_40AC14"], [49, "call sub_40A392"], [50, "call sub_40A316"], [51, "call sub_405E3A"], [52, "mov rax, cs:display"], [53, "mov rdi, rax"], [54, "call _XCloseDisplay"], [55, "mov eax, 0"], [56, "leave"], [57, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 4], [8, 7], [9, 8], [10, 9], [13, 12], [14, 13], [19, 3], [20, 19], [27, 26], [28, 27], [30, 29], [31, 30], [33, 32], [40, 39], [41, 40], [42, 41], [43, 42], [52, 40], [53, 52], [57, 55]]}
| {"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/461fef2f1094350537d9aa398ddac055dc75ae66143fc51794e729a64c9b8b49_461fef2f1094350537d9aa398ddac055dc75ae66143fc51794e729a64c9b8b49.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n__int64 __fastcall main(int a1, char **a2, char **a3, int a4, int a5, int a6)\n{\nconst char *v6; // rsi\nint v7; // edx\nint v8; // ecx\nint v9; // er8\nint v10; // er9\n\nif ( a1 == 2 )\n{\na2 = (char **)a2[1];\nif ( !strcmp(\"-v\", (const char *)a2) )\nsub_40D8E3((unsigned int)\"dwm-6.4\", (_DWORD)a2, (_DWORD)a3, a4, a5, a6);\n}\nif ( a1 != 1 )\nsub_40D8E3((unsigned int)\"usage: dwm [-v]\", (_DWORD)a2, (_DWORD)a3, a4, a5, a6);\nv6 = &locale;\nif ( !setlocale(0, &locale) || !XSupportsLocale() )\n{\nLODWORD(v6) = 1;\nfwrite(\"warning: no locale support\\n\", 1uLL, 0x1BuLL, stderr);\n}\ndisplay = XOpenDisplay(0LL);\nif ( !display )\nsub_40D8E3((unsigned int)\"dwm: cannot open display\", (_DWORD)v6, v7, v8, v9, v10);\nsub_405D42();\nsub_40AC14();\nsub_40A392();\nsub_40A316();\nsub_405E3A();\nXCloseDisplay(display);\nreturn 0LL;\n}\n\n\n\nQ:[a2,a3,a1,v6,v7,sub_40D8E3,sub_405D42,sub_40AC14,sub_40A392,sub_40A316,sub_405E3A,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v6': 'argv', 'v7': 'envp', 'sub_40D8E3': 'die', 'sub_405D42': 'checkotherwm', 'sub_40AC14': 'setup', 'sub_40A392': 'scan', 'sub_40A316': 'run', 'sub_405E3A': 'cleanup'}"} |
|
Error | 5b5f4126267df0a08f604051ee8f7ddb8d967791391527954d23609bdde48982 | hackedteam | vector-edk | NA | VOID
Error (
CHAR8 *FileName,
UINT32 LineNumber,
UINT32 MessageCode,
CHAR8 *Text,
CHAR8 *MsgFmt,
...
)
/*++
Routine Description:
Prints an error message.
Arguments:
All arguments are optional, though the printed message may be useless if
at least something valid is not specified.
FileName - name of the file or application. If not specified, then the
utilty name (as set by the utility calling SetUtilityName()
earlier) is used. Otherwise "Unknown utility" is used.
LineNumber - the line number of error, typically used by parsers. If the
utility is not a parser, then 0 should be specified. Otherwise
the FileName and LineNumber info can be used to cause
MS Visual Studio to jump to the error.
MessageCode - an application-specific error code that can be referenced in
other documentation.
Text - the text in question, typically used by parsers.
MsgFmt - the format string for the error message. Can contain formatting
controls for use with the varargs.
Returns:
None.
Notes:
We print the following (similar to the Warn() and Debug()
W
Typical error/warning message format:
bin\VfrCompile.cpp(330) : error C2660: 'AddVfrDataStructField' : function does not take 2 parameters
BUGBUG -- these three utility functions are almost identical, and
should be modified to share code.
Visual Studio does not find error messages with:
" error :"
" error 1:"
" error c1:"
" error 1000:"
" error c100:"
It does find:
" error c1000:"
--*/
{
va_list List;
//
// If limits have been set, then check that we have not exceeded them
//
if (mPrintLimitsSet) {
//
// See if we've exceeded our total count
//
if (mMaxWarningsPlusErrors != 0) {
if (mErrorCount + mWarningCount > mMaxWarningsPlusErrors) {
PrintLimitExceeded ();
return ;
}
}
//
// See if we've exceeded our error count
//
if (mMaxErrors != 0) {
if (mErrorCount > mMaxErrors) {
PrintLimitExceeded ();
return ;
}
}
}
mErrorCount++;
va_start (List, MsgFmt);
PrintMessage ("ERROR", FileName, LineNumber, MessageCode, Text, MsgFmt, List);
va_end (List);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405055", "function_addr": 4214869, "binary_name": "5b5f4126267df0a08f604051ee8f7ddb8d967791391527954d23609bdde48982.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0F0h"], [3, "mov qword ptr [rbp+var_D8], rdi"], [4, "mov [rbp+var_DC], esi"], [5, "mov [rbp+var_E0], edx"], [6, "mov qword ptr [rbp+var_E8], rcx"], [7, "mov qword ptr [rbp+var_F0], r8"], [8, "mov [rbp+var_88], r9"], [9, "test al, al"], [10, "jz short loc_4050AC"], [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, "movzx eax, cs:byte_40F258"], [20, "test al, al"], [21, "jz short loc_405107"], [22, "mov eax, cs:dword_40F254"], [23, "test eax, eax"], [24, "jz short loc_4050E3"], [25, "mov edx, cs:dword_40F244"], [26, "mov eax, cs:dword_40F248"], [27, "add edx, eax"], [28, "mov eax, cs:dword_40F254"], [29, "cmp edx, eax"], [30, "jbe short loc_4050E3"], [31, "call sub_405D02"], [32, "jmp locret_405187"], [33, "mov eax, cs:dword_40F24C"], [34, "test eax, eax"], [35, "jz short loc_405107"], [36, "mov edx, cs:dword_40F244"], [37, "mov eax, cs:dword_40F24C"], [38, "cmp edx, eax"], [39, "jbe short loc_405107"], [40, "call sub_405D02"], [41, "jmp locret_405187"], [42, "mov eax, cs:dword_40F244"], [43, "add eax, 1"], [44, "mov cs:dword_40F244, eax"], [45, "mov [rbp+__varargs], 28h "], [46, "mov [rbp+var_C4], 30h "], [47, "lea rax, [rbp+arg_0]"], [48, "mov [rbp+var_C0], rax"], [49, "lea rax, [rbp+var_B0]"], [50, "mov [rbp+var_B8], rax"], [51, "mov r8, qword ptr [rbp+var_F0]"], [52, "mov rdi, qword ptr [rbp+var_E8]"], [53, "mov ecx, [rbp+var_E0]"], [54, "mov edx, [rbp+var_DC]"], [55, "mov rax, qword ptr [rbp+var_D8]"], [56, "sub rsp, 8"], [57, "lea rsi, [rbp+__varargs]"], [58, "push rsi"], [59, "mov r9, r8"], [60, "mov r8, rdi"], [61, "mov rsi, rax"], [62, "mov edi, offset aError"], [63, "call sub_405618"], [64, "add rsp, 10h"], [65, "leave"], [66, "retn"]], "data_dep": [[10, 9], [20, 19], [21, 20], [23, 22], [24, 23], [27, 25], [27, 26], [29, 28], [29, 27], [30, 29], [34, 33], [35, 34], [38, 37], [38, 36], [39, 38], [43, 42], [44, 43], [47, 43], [48, 47], [49, 47], [50, 49], [51, 7], [52, 6], [53, 5], [54, 4], [55, 3], [56, 2], [57, 45], [58, 57], [59, 51], [60, 52], [61, 55], [64, 56], [66, 63], [66, 31], [66, 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/5b5f4126267df0a08f604051ee8f7ddb8d967791391527954d23609bdde48982_5b5f4126267df0a08f604051ee8f7ddb8d967791391527954d23609bdde48982.jsonl.gz", "strip_func_name": "sub_405055", "query": "\n\n\n__int64 sub_405055(__int64 a1, __int64 a2, int a3, __int64 a4, int a5, __int64 a6, ...)\n{\n__int64 v6; // rdx\ngcc_va_list __varargs; // [rsp+28h] [rbp-C8h] BYREF\n__int64 v10; // [rsp+68h] [rbp-88h]\n\nv10 = a6;\nif ( byte_40F258 )\n{\nif ( dword_40F254 )\n{\nv6 = (unsigned int)(dword_40F248 + dword_40F244);\nif ( (unsigned int)v6 > dword_40F254 )\nreturn sub_405D02(a1, a2, v6, a4);\n}\nif ( dword_40F24C )\n{\nv6 = (unsigned int)dword_40F244;\nif ( dword_40F244 > (unsigned int)dword_40F24C )\nreturn sub_405D02(a1, a2, v6, a4);\n}\n}\n++dword_40F244;\n__varargs[0].gp_offset = 40;\nva_start(__varargs, a6);\nreturn sub_405618((int)\"ERROR\", a1, a2, a3, a4, a5, __varargs);\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v6,__varargs,sub_405055,sub_405D02,sub_405618,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'MessageCode', 'a4': 'Text', 'a1': 'FileName', 'a2': 'LineNumber', 'a5': 'MsgFmt', 'v6': 'MessageCode', '__varargs': 'List', 'sub_405055': 'Error', 'sub_405D02': 'PrintLimitExceeded', 'sub_405618': 'PrintMessage'}"} |
|
do_getsockopt_tcp_info | 69773300cbfb9a2fe4e0cec800c2dd67d4ac7a2bb81d52aec3a0f12a6954147a | multipath-tcp | mptcp_net-next | NA | static void do_getsockopt_tcp_info(struct so_state *s, int fd, size_t r, size_t w)
{
struct my_tcp_info {
struct mptcp_subflow_data d;
struct tcp_info ti[2];
} ti;
int ret, tries = 5;
socklen_t olen;
do {
memset(&ti, 0, sizeof(ti));
ti.d.size_subflow_data = sizeof(struct mptcp_subflow_data);
ti.d.size_user = sizeof(struct tcp_info);
olen = sizeof(ti);
ret = getsockopt(fd, SOL_MPTCP, MPTCP_TCPINFO, &ti, &olen);
if (ret < 0)
xerror("getsockopt MPTCP_TCPINFO (tries %d, %m)");
assert(olen <= sizeof(ti));
assert(ti.d.size_kernel > 0);
assert(ti.d.size_user ==
MIN(ti.d.size_kernel, sizeof(struct tcp_info)));
assert(ti.d.num_subflows == 1);
assert(olen > (socklen_t)sizeof(struct mptcp_subflow_data));
olen -= sizeof(struct mptcp_subflow_data);
assert(olen == ti.d.size_user);
s->tcp_info = ti.ti[0];
if (ti.ti[0].tcpi_bytes_sent == w &&
ti.ti[0].tcpi_bytes_received == r)
goto done;
if (r == 0 && ti.ti[0].tcpi_bytes_sent == w &&
ti.ti[0].tcpi_bytes_received) {
s->tcpi_rcv_delta = ti.ti[0].tcpi_bytes_received;
goto done;
}
/* wait and repeat, might be that tx is still ongoing */
sleep(1);
} while (tries-- > 0);
xerror("tcpi_bytes_sent %" PRIu64 ", want %zu. tcpi_bytes_received %" PRIu64 ", want %zu",
ti.ti[0].tcpi_bytes_sent, w, ti.ti[0].tcpi_bytes_received, r);
done:
do_getsockopt_bogus_sf_data(fd, MPTCP_TCPINFO);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401E14", "function_addr": 4202004, "binary_name": "69773300cbfb9a2fe4e0cec800c2dd67d4ac7a2bb81d52aec3a0f12a6954147a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 218h"], [4, "mov [rbp+var_208], rdi"], [5, "mov [rbp+fd], esi"], [6, "mov [rbp+var_218], rdx"], [7, "mov [rbp+var_220], rcx"], [8, "mov [rbp+var_14], 5"], [9, "lea rax, [rbp+s]"], [10, "mov edx, 1D0h"], [11, "mov esi, 0"], [12, "mov rdi, rax"], [13, "call _memset"], [14, "mov [rbp+s], 10h"], [15, "mov [rbp+var_1E4], 0E0h"], [16, "mov [rbp+optlen], 1D0h"], [17, "lea rcx, [rbp+optlen]"], [18, "lea rdx, [rbp+s]"], [19, "mov eax, [rbp+fd]"], [20, "mov r8, rcx"], [21, "mov rcx, rdx"], [22, "mov edx, 2"], [23, "mov esi, 11Ch"], [24, "mov edi, eax"], [25, "call _getsockopt"], [26, "mov [rbp+var_18], eax"], [27, "cmp [rbp+var_18], 0"], [28, "jns short loc_401EBC"], [29, "mov edi, offset aGetsockoptMptc_0"], [30, "mov eax, 0"], [31, "call sub_4013B7"], [32, "mov eax, [rbp+optlen]"], [33, "cmp eax, 1D0h"], [34, "jbe short loc_401EE2"], [35, "mov ecx, offset aDoGetsockoptTc"], [36, "mov edx, 184h"], [37, "mov esi, offset file"], [38, "mov edi, offset aOlenSizeofTi"], [39, "call ___assert_fail"], [40, "mov edx, [rbp+var_1E4]"], [41, "mov eax, [rbp+var_1E8]"], [42, "cmp edx, eax"], [43, "jz short loc_401F0B"], [44, "mov ecx, offset aDoGetsockoptTc"], [45, "mov edx, 185h"], [46, "mov esi, offset file"], [47, "mov edi, offset aTiDSizeUserTiD"], [48, "call ___assert_fail"], [49, "mov eax, [rbp+var_1E4]"], [50, "cmp eax, 0E0h"], [51, "jz short loc_401F31"], [52, "mov ecx, offset aDoGetsockoptTc"], [53, "mov edx, 186h"], [54, "mov esi, offset file"], [55, "mov edi, offset aTiDSizeUserSiz"], [56, "call ___assert_fail"], [57, "mov eax, [rbp+var_1EC]"], [58, "cmp eax, 1"], [59, "jz short loc_401F55"], [60, "mov ecx, offset aDoGetsockoptTc"], [61, "mov edx, 187h"], [62, "mov esi, offset file"], [63, "mov edi, offset aTiDNumSubflows"], [64, "call ___assert_fail"], [65, "mov eax, [rbp+optlen]"], [66, "cmp eax, 10h"], [67, "ja short loc_401F79"], [68, "mov ecx, offset aDoGetsockoptTc"], [69, "mov edx, 189h"], [70, "mov esi, offset file"], [71, "mov edi, offset aOlenSocklenTSi"], [72, "call ___assert_fail"], [73, "mov eax, [rbp+optlen]"], [74, "sub eax, 10h"], [75, "mov [rbp+optlen], eax"], [76, "mov eax, [rbp+optlen]"], [77, "cmp eax, 0E0h"], [78, "jz short loc_401FAE"], [79, "mov ecx, offset aDoGetsockoptTc"], [80, "mov edx, 18Bh"], [81, "mov esi, offset file"], [82, "mov edi, offset aOlenSizeofStru"], [83, "call ___assert_fail"], [84, "mov rax, [rbp+var_208]"], [85, "mov rcx, [rbp+var_1E0]"], [86, "mov rbx, [rbp+var_1D8]"], [87, "mov [rax+0A0h], rcx"], [88, "mov [rax+0A8h], rbx"], [89, "mov rcx, [rbp+var_1D0]"], [90, "mov rbx, [rbp+var_1C8]"], [91, "mov [rax+0B0h], rcx"], [92, "mov [rax+0B8h], rbx"], [93, "mov rcx, [rbp+var_1C0]"], [94, "mov rbx, [rbp+var_1B8]"], [95, "mov [rax+0C0h], rcx"], [96, "mov [rax+0C8h], rbx"], [97, "mov rcx, [rbp+var_1B0]"], [98, "mov rbx, [rbp+var_1A8]"], [99, "mov [rax+0D0h], rcx"], [100, "mov [rax+0D8h], rbx"], [101, "mov rcx, [rbp+var_1A0]"], [102, "mov rbx, [rbp+var_198]"], [103, "mov [rax+0E0h], rcx"], [104, "mov [rax+0E8h], rbx"], [105, "mov rcx, [rbp+var_190]"], [106, "mov rbx, [rbp+var_188]"], [107, "mov [rax+0F0h], rcx"], [108, "mov [rax+0F8h], rbx"], [109, "mov rcx, [rbp+var_180]"], [110, "mov rbx, [rbp+var_178]"], [111, "mov [rax+100h], rcx"], [112, "mov [rax+108h], rbx"], [113, "mov rcx, [rbp+var_170]"], [114, "mov rbx, [rbp+var_168]"], [115, "mov [rax+110h], rcx"], [116, "mov [rax+118h], rbx"], [117, "mov rcx, [rbp+var_160]"], [118, "mov rbx, [rbp+var_158]"], [119, "mov [rax+120h], rcx"], [120, "mov [rax+128h], rbx"], [121, "mov rcx, [rbp+var_150]"], [122, "mov rbx, [rbp+var_148]"], [123, "mov [rax+130h], rcx"], [124, "mov [rax+138h], rbx"], [125, "mov rcx, [rbp+var_140]"], [126, "mov rbx, [rbp+var_138]"], [127, "mov [rax+140h], rcx"], [128, "mov [rax+148h], rbx"], [129, "mov rcx, [rbp+var_130]"], [130, "mov rbx, [rbp+var_128]"], [131, "mov [rax+150h], rcx"], [132, "mov [rax+158h], rbx"], [133, "mov rcx, [rbp+var_120]"], [134, "mov rbx, [rbp+var_118]"], [135, "mov [rax+160h], rcx"], [136, "mov [rax+168h], rbx"], [137, "mov rcx, [rbp+var_110]"], [138, "mov rbx, [rbp+var_108]"], [139, "mov [rax+170h], rcx"], [140, "mov [rax+178h], rbx"], [141, "mov rax, [rbp+var_118]"], [142, "cmp [rbp+var_220], rax"], [143, "jnz short loc_402161"], [144, "mov rax, [rbp+var_160]"], [145, "cmp [rbp+var_218], rax"], [146, "jz loc_4021EC"], [147, "cmp [rbp+var_218], 0"], [148, "jnz short loc_40219E"], [149, "mov rax, [rbp+var_118]"], [150, "cmp [rbp+var_220], rax"], [151, "jnz short loc_40219E"], [152, "mov rax, [rbp+var_160]"], [153, "test rax, rax"], [154, "jz short loc_40219E"], [155, "mov rdx, [rbp+var_160]"], [156, "mov rax, [rbp+var_208]"], [157, "mov [rax+288h], rdx"], [158, "jmp short loc_4021ED"], [159, "mov edi, 1"], [160, "call _sleep"], [161, "mov eax, [rbp+var_14]"], [162, "lea edx, [rax-1]"], [163, "mov [rbp+var_14], edx"], [164, "test eax, eax"], [165, "jg loc_401E42"], [166, "mov rcx, [rbp+var_160]"], [167, "mov rax, [rbp+var_118]"], [168, "mov rsi, [rbp+var_218]"], [169, "mov rdx, [rbp+var_220]"], [170, "mov r8, rsi"], [171, "mov rsi, rax"], [172, "mov edi, offset aTcpiBytesSentL"], [173, "mov eax, 0"], [174, "call sub_4013B7"], [175, "jmp short loc_4021ED"], [176, "nop"], [177, "mov eax, [rbp+fd]"], [178, "mov esi, 2"], [179, "mov edi, eax"], [180, "call sub_401845"], [181, "nop"], [182, "mov rbx, [rbp+var_8]"], [183, "leave"], [184, "retn"]], "data_dep": [[9, 14], [9, 164], [12, 9], [17, 16], [17, 137], [18, 10], [18, 14], [19, 5], [20, 17], [21, 18], [24, 19], [26, 25], [27, 26], [28, 27], [32, 16], [33, 32], [34, 33], [40, 15], [42, 41], [42, 40], [43, 42], [49, 15], [50, 49], [51, 50], [58, 57], [59, 58], [65, 16], [66, 65], [67, 66], [73, 16], [74, 73], [75, 74], [76, 75], [77, 76], [78, 77], [84, 4], [87, 84], [87, 85], [88, 86], [88, 84], [91, 89], [91, 84], [92, 90], [92, 84], [95, 84], [95, 93], [96, 94], [96, 84], [99, 97], [99, 84], [100, 98], [100, 84], [103, 101], [103, 84], [104, 84], [104, 102], [107, 105], [107, 84], [108, 84], [108, 106], [111, 84], [111, 109], [112, 84], [112, 110], [115, 84], [115, 113], [116, 84], [116, 114], [119, 84], [119, 117], [120, 84], [120, 118], [123, 121], [123, 84], [124, 122], [124, 84], [127, 125], [127, 84], [128, 126], [128, 84], [131, 129], [131, 84], [132, 130], [132, 84], [135, 133], [135, 84], [136, 84], [136, 134], [139, 137], [139, 84], [140, 84], [140, 138], [142, 7], [142, 141], [143, 142], [145, 144], [145, 6], [146, 145], [147, 6], [148, 147], [150, 149], [150, 7], [151, 150], [153, 152], [154, 153], [156, 4], [157, 155], [157, 156], [161, 8], [161, 163], [162, 40], [162, 104], [162, 131], [162, 140], [162, 161], [162, 115], [162, 124], [162, 99], [162, 108], [162, 135], [162, 92], [162, 119], [162, 128], [162, 103], [162, 112], [162, 87], [162, 96], [162, 107], [162, 91], [162, 100], [162, 139], [162, 123], [162, 132], [162, 95], [162, 116], [162, 88], [162, 127], [162, 136], [162, 111], [162, 120], [163, 162], [164, 161], [165, 164], [168, 6], [169, 7], [170, 168], [171, 167], [177, 5], [179, 177], [184, 180]]}
| {"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/69773300cbfb9a2fe4e0cec800c2dd67d4ac7a2bb81d52aec3a0f12a6954147a_69773300cbfb9a2fe4e0cec800c2dd67d4ac7a2bb81d52aec3a0f12a6954147a.jsonl.gz", "strip_func_name": "sub_401E14", "query": "\n\n\n__int64 __fastcall sub_401E14(_QWORD *a1, int a2, __int64 a3, __int64 a4)\n{\n__int64 v4; // rdx\n__int64 v5; // rcx\n__int64 v6; // r8\n__int64 v7; // r9\n__int64 v8; // rbx\n__int64 v9; // rbx\n__int64 v10; // rbx\n__int64 v11; // rbx\n__int64 v12; // rbx\n__int64 v13; // rbx\n__int64 v14; // rbx\n__int64 v15; // rbx\n__int64 v16; // rbx\n__int64 v17; // rbx\n__int64 v18; // rbx\n__int64 v19; // rbx\n__int64 v20; // rbx\n__int64 v21; // rbx\n__int64 v22; // r9\nint v23; // eax\nsocklen_t optlen; // [rsp+2Ch] [rbp-1F4h] BYREF\nint s[3]; // [rsp+30h] [rbp-1F0h] BYREF\nint v29; // [rsp+3Ch] [rbp-1E4h]\n__int64 v30; // [rsp+40h] [rbp-1E0h]\n__int64 v31; // [rsp+48h] [rbp-1D8h]\n__int64 v32; // [rsp+50h] [rbp-1D0h]\n__int64 v33; // [rsp+58h] [rbp-1C8h]\n__int64 v34; // [rsp+60h] [rbp-1C0h]\n__int64 v35; // [rsp+68h] [rbp-1B8h]\n__int64 v36; // [rsp+70h] [rbp-1B0h]\n__int64 v37; // [rsp+78h] [rbp-1A8h]\n__int64 v38; // [rsp+80h] [rbp-1A0h]\n__int64 v39; // [rsp+88h] [rbp-198h]\n__int64 v40; // [rsp+90h] [rbp-190h]\n__int64 v41; // [rsp+98h] [rbp-188h]\n__int64 v42; // [rsp+A0h] [rbp-180h]\n__int64 v43; // [rsp+A8h] [rbp-178h]\n__int64 v44; // [rsp+B0h] [rbp-170h]\n__int64 v45; // [rsp+B8h] [rbp-168h]\n__int64 v46; // [rsp+C0h] [rbp-160h]\n__int64 v47; // [rsp+C8h] [rbp-158h]\n__int64 v48; // [rsp+D0h] [rbp-150h]\n__int64 v49; // [rsp+D8h] [rbp-148h]\n__int64 v50; // [rsp+E0h] [rbp-140h]\n__int64 v51; // [rsp+E8h] [rbp-138h]\n__int64 v52; // [rsp+F0h] [rbp-130h]\n__int64 v53; // [rsp+F8h] [rbp-128h]\n__int64 v54; // [rsp+100h] [rbp-120h]\n__int64 v55; // [rsp+108h] [rbp-118h]\n__int64 v56; // [rsp+110h] [rbp-110h]\n__int64 v57; // [rsp+118h] [rbp-108h]\nint v58; // [rsp+208h] [rbp-18h]\nint v59; // [rsp+20Ch] [rbp-14h]\n\nv59 = 5;\nwhile ( 1 )\n{\nmemset(s, 0, 0x1D0uLL);\ns[0] = 16;\nv29 = 224;\noptlen = 464;\nv58 = getsockopt(a2, 284, 2, s, &optlen);\nif ( v58 < 0 )\nsub_4013B7(\"getsockopt MPTCP_TCPINFO (tries %d, %m)\", 284LL, v4, v5, v6, v7);\nif ( optlen > 0x1D0 )\n__assert_fail(\"olen <= sizeof(ti)\", \"mptcp_sockopt.c\", 0x184u, \"do_getsockopt_tcp_info\");\nif ( v29 != s[2] )\n__assert_fail(\"ti.d.size_user == ti.d.size_kernel\", \"mptcp_sockopt.c\", 0x185u, \"do_getsockopt_tcp_info\");\nif ( v29 != 224 )\n__assert_fail(\"ti.d.size_user == sizeof(struct tcp_info)\", \"mptcp_sockopt.c\", 0x186u, \"do_getsockopt_tcp_info\");\nif ( s[1] != 1 )\n__assert_fail(\"ti.d.num_subflows == 1\", \"mptcp_sockopt.c\", 0x187u, \"do_getsockopt_tcp_info\");\nif ( optlen <= 0x10 )\n__assert_fail(\n\"olen > (socklen_t)sizeof(struct mptcp_subflow_data)\",\n\"mptcp_sockopt.c\",\n0x189u,\n\"do_getsockopt_tcp_info\");\noptlen -= 16;\nif ( optlen != 224 )\n__assert_fail(\"olen == sizeof(struct tcp_info)\", \"mptcp_sockopt.c\", 0x18Bu, \"do_getsockopt_tcp_info\");\nv8 = v31;\na1[20] = v30;\na1[21] = v8;\nv9 = v33;\na1[22] = v32;\na1[23] = v9;\nv10 = v35;\na1[24] = v34;\na1[25] = v10;\nv11 = v37;\na1[26] = v36;\na1[27] = v11;\nv12 = v39;\na1[28] = v38;\na1[29] = v12;\nv13 = v41;\na1[30] = v40;\na1[31] = v13;\nv14 = v43;\na1[32] = v42;\na1[33] = v14;\nv15 = v45;\na1[34] = v44;\na1[35] = v15;\nv16 = v47;\na1[36] = v46;\na1[37] = v16;\nv17 = v49;\na1[38] = v48;\na1[39] = v17;\nv18 = v51;\na1[40] = v50;\na1[41] = v18;\nv19 = v53;\na1[42] = v52;\na1[43] = v19;\nv20 = v55;\na1[44] = v54;\na1[45] = v20;\nv21 = v57;\na1[46] = v56;\na1[47] = v21;\nif ( a4 == v55 && a3 == v46 )\nbreak;\nif ( !a3 && a4 == v55 && v46 )\n{\na1[81] = v46;\nreturn sub_401845(a2, 2);\n}\nsleep(1u);\nv23 = v59--;\nif ( v23 <= 0 )\nsub_4013B7(\"tcpi_bytes_sent %lu, want %zu. tcpi_bytes_received %lu, want %zu\", v55, a4, v46, a3, v22);\n}\nreturn sub_401845(a2, 2);\n}\n\n\n\nQ:[a3,a4,a1,a2,v4,v5,optlen,s,v59,sub_401E14,sub_4013B7,sub_401845,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'r', 'a4': 'w', 'a1': 's', 'a2': 'fd', 'v4': 'r', 'v5': 'w', 'optlen': 'olen', 's': 'ti', 'v59': 'tries', 'sub_401E14': 'do_getsockopt_tcp_info', 'sub_4013B7': 'xerror', 'sub_401845': 'do_getsockopt_bogus_sf_data'}"} |
|
mod_ua_unload | cf1695820213fbf6b72d0a2a2c8f7406ba3da1515cfec93bb0899b8d9d8f038e | AonCyberLabs | D-Modem | NA | static pj_status_t mod_ua_unload(void)
{
pj_thread_local_free(pjsip_dlg_lock_tls_id);
pj_mutex_destroy(mod_ua.mutex);
/* Release pool */
if (mod_ua.pool) {
pjsip_endpt_release_pool( mod_ua.endpt, mod_ua.pool );
}
return PJ_SUCCESS;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42D6F1", "function_addr": 4380401, "binary_name": "cf1695820213fbf6b72d0a2a2c8f7406ba3da1515cfec93bb0899b8d9d8f038e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov rax, cs:qword_4A6688"], [3, "mov rdi, rax"], [4, "call sub_46651C"], [5, "mov rax, cs:qword_4A03C0"], [6, "mov rdi, rax"], [7, "call sub_466ADD"], [8, "mov rax, cs:qword_4A03B0"], [9, "test rax, rax"], [10, "jz short loc_42D738"], [11, "mov rdx, cs:qword_4A03B0"], [12, "mov rax, cs:qword_4A03B8"], [13, "mov rsi, rdx"], [14, "mov rdi, rax"], [15, "call sub_416262"], [16, "mov eax, 0"], [17, "pop rbp"], [18, "retn"]], "data_dep": [[3, 2], [6, 5], [9, 8], [10, 9], [13, 11], [14, 12], [17, 0], [18, 16]]}
| {"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/cf1695820213fbf6b72d0a2a2c8f7406ba3da1515cfec93bb0899b8d9d8f038e_cf1695820213fbf6b72d0a2a2c8f7406ba3da1515cfec93bb0899b8d9d8f038e.jsonl.gz", "strip_func_name": "sub_42D6F1", "query": "\n\n\n__int64 sub_42D6F1()\n{\nsub_46651C(qword_4A6688);\nsub_466ADD(qword_4A03C0);\nif ( qword_4A03B0 )\nsub_416262(qword_4A03B8, qword_4A03B0);\nreturn 0LL;\n}\n\n\n\nQ:[sub_42D6F1,sub_46651C,sub_466ADD,sub_416262,]\nAssistant: ", "hints": "[]", "response": "{'sub_42D6F1': 'mod_ua_unload', 'sub_46651C': 'pj_thread_local_free', 'sub_466ADD': 'pj_mutex_destroy', 'sub_416262': 'pjsip_endpt_release_pool'}"} |
|
sim_host_speed_factor | 9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23 | open-simh | simh | NA | double
sim_host_speed_factor (void)
{
if (sim_precalibrate_ips > sim_vm_initial_ips)
return 1.0;
return (double)sim_vm_initial_ips / (double)sim_precalibrate_ips;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_471FDB", "function_addr": 4661211, "binary_name": "9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov edx, cs:dword_52D704"], [3, "mov eax, cs:dword_52D700"], [4, "cmp edx, eax"], [5, "jle short loc_471FF9"], [6, "movsd xmm0, cs:qword_4F5570"], [7, "jmp short loc_472019"], [8, "mov eax, cs:dword_52D700"], [9, "pxor xmm0, xmm0"], [10, "cvtsi2sd xmm0, eax"], [11, "mov eax, cs:dword_52D704"], [12, "pxor xmm1, xmm1"], [13, "cvtsi2sd xmm1, eax"], [14, "divsd xmm0, xmm1"], [15, "movq rax, xmm0"], [16, "movq xmm0, rax"], [17, "pop rbp"], [18, "retn"]], "data_dep": [[4, 3], [4, 2], [5, 4], [10, 8], [10, 9], [13, 12], [13, 11], [14, 10], [14, 13], [15, 14], [15, 6], [16, 15], [17, 0], [18, 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/9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23_9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23.jsonl.gz", "strip_func_name": "sub_471FDB", "query": "\n\n\n__int64 sub_471FDB()\n{\ndouble v0; // xmm0_8\n\nif ( dword_52D704 <= dword_52D700 )\nv0 = (double)dword_52D700 / (double)dword_52D704;\nelse\nv0 = 1.0;\nreturn *(_QWORD *)&v0;\n}\n\n\n\nQ:[v0,sub_471FDB,]\nAssistant: ", "hints": "[]", "response": "{'v0': 'result', 'sub_471FDB': 'sim_host_speed_factor'}"} |
|
u32_parse_eopt | 5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0 | multipath-tcp | iproute-mptcp | NA | static int u32_parse_eopt(struct nlmsghdr *n, struct tcf_ematch_hdr *hdr,
struct bstr *args)
{
struct bstr *a;
int align, nh_len;
unsigned long key, mask, offmask = 0, offset;
struct tc_u32_key u_key = {};
#define PARSE_ERR(CARG, FMT, ARGS...) \
em_parse_error(EINVAL, args, CARG, &u32_ematch_util, FMT, ##ARGS)
if (args == NULL)
return PARSE_ERR(args, "u32: missing arguments");
if (!bstrcmp(args, "u8"))
align = 1;
else if (!bstrcmp(args, "u16"))
align = 2;
else if (!bstrcmp(args, "u32"))
align = 4;
else
return PARSE_ERR(args, "u32: invalid alignment");
a = bstr_next(args);
if (a == NULL)
return PARSE_ERR(a, "u32: missing key");
key = bstrtoul(a);
if (key == ULONG_MAX)
return PARSE_ERR(a, "u32: invalid key, must be numeric");
a = bstr_next(a);
if (a == NULL)
return PARSE_ERR(a, "u32: missing mask");
mask = bstrtoul(a);
if (mask == ULONG_MAX)
return PARSE_ERR(a, "u32: invalid mask, must be numeric");
a = bstr_next(a);
if (a == NULL || bstrcmp(a, "at") != 0)
return PARSE_ERR(a, "u32: missing \"at\"");
a = bstr_next(a);
if (a == NULL)
return PARSE_ERR(a, "u32: missing offset");
nh_len = strlen("nexthdr+");
if (a->len > nh_len && !memcmp(a->data, "nexthdr+", nh_len)) {
char buf[a->len - nh_len + 1];
offmask = -1;
memcpy(buf, a->data + nh_len, a->len - nh_len);
offset = strtoul(buf, NULL, 0);
} else if (!bstrcmp(a, "nexthdr+")) {
a = bstr_next(a);
if (a == NULL)
return PARSE_ERR(a, "u32: missing offset");
offset = bstrtoul(a);
} else
offset = bstrtoul(a);
if (offset == ULONG_MAX)
return PARSE_ERR(a, "u32: invalid offset");
if (a->next)
return PARSE_ERR(a->next, "u32: unexpected trailer");
switch (align) {
case 1:
if (key > 0xFF)
return PARSE_ERR(a, "Illegal key (>0xFF)");
if (mask > 0xFF)
return PARSE_ERR(a, "Illegal mask (>0xFF)");
key <<= 24 - ((offset & 3) * 8);
mask <<= 24 - ((offset & 3) * 8);
offset &= ~3;
break;
case 2:
if (key > 0xFFFF)
return PARSE_ERR(a, "Illegal key (>0xFFFF)");
if (mask > 0xFFFF)
return PARSE_ERR(a, "Illegal mask (>0xFFFF)");
if ((offset & 3) == 0) {
key <<= 16;
mask <<= 16;
}
offset &= ~3;
break;
}
key = htonl(key);
mask = htonl(mask);
if (offset % 4)
return PARSE_ERR(a, "u32: invalid offset alignment, " \
"must be aligned to 4.");
key &= mask;
u_key.mask = mask;
u_key.val = key;
u_key.off = offset;
u_key.offmask = offmask;
addraw_l(n, MAX_MSG, hdr, sizeof(*hdr));
addraw_l(n, MAX_MSG, &u_key, sizeof(u_key));
#undef PARSE_ERR
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44D656", "function_addr": 4511318, "binary_name": "5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0.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_98], rdi"], [9, "mov [rbp+var_A0], rsi"], [10, "mov [rbp+var_A8], rdx"], [11, "mov [rbp+var_58], 0"], [12, "mov [rbp+var_90], 0"], [13, "mov [rbp+var_88], 0"], [14, "cmp [rbp+var_A8], 0"], [15, "jnz short loc_44D6D7"], [16, "mov rdx, [rbp+var_A8]"], [17, "mov rax, [rbp+var_A8]"], [18, "mov r8d, offset aU32MissingArgu"], [19, "mov ecx, offset u32_ematch_util"], [20, "mov rsi, rax"], [21, "mov edi, 16h"], [22, "mov eax, 0"], [23, "call em_parse_error"], [24, "jmp loc_44DD01"], [25, "mov rax, [rbp+var_A8]"], [26, "mov esi, offset aU8_5"], [27, "mov rdi, rax"], [28, "call sub_44D5C3"], [29, "test eax, eax"], [30, "jnz short loc_44D6F8"], [31, "mov [rbp+var_44], 1"], [32, "jmp short loc_44D76A"], [33, "mov rax, [rbp+var_A8]"], [34, "mov esi, offset aU16_5"], [35, "mov rdi, rax"], [36, "call sub_44D5C3"], [37, "test eax, eax"], [38, "jnz short loc_44D719"], [39, "mov [rbp+var_44], 2"], [40, "jmp short loc_44D76A"], [41, "mov rax, [rbp+var_A8]"], [42, "mov esi, offset aU32_5"], [43, "mov rdi, rax"], [44, "call sub_44D5C3"], [45, "test eax, eax"], [46, "jnz short loc_44D73A"], [47, "mov [rbp+var_44], 4"], [48, "jmp short loc_44D76A"], [49, "mov rdx, [rbp+var_A8]"], [50, "mov rax, [rbp+var_A8]"], [51, "mov r8d, offset aU32InvalidAlig"], [52, "mov ecx, offset u32_ematch_util"], [53, "mov rsi, rax"], [54, "mov edi, 16h"], [55, "mov eax, 0"], [56, "call em_parse_error"], [57, "jmp loc_44DD01"], [58, "mov rax, [rbp+var_A8]"], [59, "mov rdi, rax"], [60, "call sub_44D61A"], [61, "mov [rbp+var_50], rax"], [62, "cmp [rbp+var_50], 0"], [63, "jnz short loc_44D7B1"], [64, "mov rdx, [rbp+var_50]"], [65, "mov rax, [rbp+var_A8]"], [66, "mov r8d, offset aU32MissingKey"], [67, "mov ecx, offset u32_ematch_util"], [68, "mov rsi, rax"], [69, "mov edi, 16h"], [70, "mov eax, 0"], [71, "call em_parse_error"], [72, "jmp loc_44DD01"], [73, "mov rax, [rbp+var_50]"], [74, "mov rdi, rax"], [75, "call bstrtoul"], [76, "mov qword ptr [rbp+hostlong], rax"], [77, "cmp qword ptr [rbp+hostlong], 0FFFFFFFFFFFFFFFFh"], [78, "jnz short loc_44D7F5"], [79, "mov rdx, [rbp+var_50]"], [80, "mov rax, [rbp+var_A8]"], [81, "mov r8d, offset aU32InvalidKeyM"], [82, "mov ecx, offset u32_ematch_util"], [83, "mov rsi, rax"], [84, "mov edi, 16h"], [85, "mov eax, 0"], [86, "call em_parse_error"], [87, "jmp loc_44DD01"], [88, "mov rax, [rbp+var_50]"], [89, "mov rdi, rax"], [90, "call sub_44D61A"], [91, "mov [rbp+var_50], rax"], [92, "cmp [rbp+var_50], 0"], [93, "jnz short loc_44D839"], [94, "mov rdx, [rbp+var_50]"], [95, "mov rax, [rbp+var_A8]"], [96, "mov r8d, offset aU32MissingMask"], [97, "mov ecx, offset u32_ematch_util"], [98, "mov rsi, rax"], [99, "mov edi, 16h"], [100, "mov eax, 0"], [101, "call em_parse_error"], [102, "jmp loc_44DD01"], [103, "mov rax, [rbp+var_50]"], [104, "mov rdi, rax"], [105, "call bstrtoul"], [106, "mov qword ptr [rbp+var_38], rax"], [107, "cmp qword ptr [rbp+var_38], 0FFFFFFFFFFFFFFFFh"], [108, "jnz short loc_44D87D"], [109, "mov rdx, [rbp+var_50]"], [110, "mov rax, [rbp+var_A8]"], [111, "mov r8d, offset aU32InvalidMask"], [112, "mov ecx, offset u32_ematch_util"], [113, "mov rsi, rax"], [114, "mov edi, 16h"], [115, "mov eax, 0"], [116, "call em_parse_error"], [117, "jmp loc_44DD01"], [118, "mov rax, [rbp+var_50]"], [119, "mov rdi, rax"], [120, "call sub_44D61A"], [121, "mov [rbp+var_50], rax"], [122, "cmp [rbp+var_50], 0"], [123, "jz short loc_44D8A9"], [124, "mov rax, [rbp+var_50]"], [125, "mov esi, offset aAt_4"], [126, "mov rdi, rax"], [127, "call sub_44D5C3"], [128, "test eax, eax"], [129, "jz short loc_44D8D6"], [130, "mov rdx, [rbp+var_50]"], [131, "mov rax, [rbp+var_A8]"], [132, "mov r8d, offset aU32MissingAt"], [133, "mov ecx, offset u32_ematch_util"], [134, "mov rsi, rax"], [135, "mov edi, 16h"], [136, "mov eax, 0"], [137, "call em_parse_error"], [138, "jmp loc_44DD01"], [139, "mov rax, [rbp+var_50]"], [140, "mov rdi, rax"], [141, "call sub_44D61A"], [142, "mov [rbp+var_50], rax"], [143, "cmp [rbp+var_50], 0"], [144, "jnz short loc_44D91A"], [145, "mov rdx, [rbp+var_50]"], [146, "mov rax, [rbp+var_A8]"], [147, "mov r8d, offset aU32MissingOffs"], [148, "mov ecx, offset u32_ematch_util"], [149, "mov rsi, rax"], [150, "mov edi, 16h"], [151, "mov eax, 0"], [152, "call em_parse_error"], [153, "jmp loc_44DD01"], [154, "mov [rbp+var_64], 8"], [155, "mov rax, [rbp+var_50]"], [156, "mov edx, [rax+8]"], [157, "mov eax, [rbp+var_64]"], [158, "cmp edx, eax"], [159, "jbe loc_44DA0A"], [160, "mov eax, [rbp+var_64]"], [161, "movsxd rdx, eax"], [162, "mov rax, [rbp+var_50]"], [163, "mov rax, [rax]"], [164, "mov esi, offset aNexthdr_1"], [165, "mov rdi, rax"], [166, "call _memcmp"], [167, "test eax, eax"], [168, "jnz loc_44DA0A"], [169, "mov rax, rsp"], [170, "mov rbx, rax"], [171, "mov rax, [rbp+var_50]"], [172, "mov eax, [rax+8]"], [173, "mov edx, [rbp+var_64]"], [174, "sub eax, edx"], [175, "add eax, 1"], [176, "mov edx, eax"], [177, "sub rdx, 1"], [178, "mov [rbp+var_70], rdx"], [179, "mov edx, eax"], [180, "mov r14, rdx"], [181, "mov r15d, 0"], [182, "mov edx, eax"], [183, "mov r12, rdx"], [184, "mov r13d, 0"], [185, "mov edx, eax"], [186, "mov eax, 10h"], [187, "sub rax, 1"], [188, "add rax, rdx"], [189, "mov ecx, 10h"], [190, "mov edx, 0"], [191, "div rcx"], [192, "imul rax, 10h"], [193, "sub rsp, rax"], [194, "mov rax, rsp"], [195, "add rax, 0"], [196, "mov [rbp+dest], rax"], [197, "mov [rbp+var_58], 0FFFFFFFFFFFFFFFFh"], [198, "mov rax, [rbp+var_50]"], [199, "mov eax, [rax+8]"], [200, "mov edx, [rbp+var_64]"], [201, "sub eax, edx"], [202, "mov edx, eax"], [203, "mov rax, [rbp+var_50]"], [204, "mov rcx, [rax]"], [205, "mov eax, [rbp+var_64]"], [206, "cdqe"], [207, "add rcx, rax"], [208, "mov rax, [rbp+dest]"], [209, "mov rsi, rcx"], [210, "mov rdi, rax"], [211, "call _memcpy"], [212, "mov rax, [rbp+dest]"], [213, "mov edx, 0"], [214, "mov esi, 0"], [215, "mov rdi, rax"], [216, "call _strtoul"], [217, "mov [rbp+var_60], rax"], [218, "mov rsp, rbx"], [219, "jmp short loc_44DA85"], [220, "mov rax, [rbp+var_50]"], [221, "mov esi, offset aNexthdr_1"], [222, "mov rdi, rax"], [223, "call sub_44D5C3"], [224, "test eax, eax"], [225, "jnz short loc_44DA75"], [226, "mov rax, [rbp+var_50]"], [227, "mov rdi, rax"], [228, "call sub_44D61A"], [229, "mov [rbp+var_50], rax"], [230, "cmp [rbp+var_50], 0"], [231, "jnz short loc_44DA63"], [232, "mov rdx, [rbp+var_50]"], [233, "mov rax, [rbp+var_A8]"], [234, "mov r8d, offset aU32MissingOffs"], [235, "mov ecx, offset u32_ematch_util"], [236, "mov rsi, rax"], [237, "mov edi, 16h"], [238, "mov eax, 0"], [239, "call em_parse_error"], [240, "jmp loc_44DD01"], [241, "mov rax, [rbp+var_50]"], [242, "mov rdi, rax"], [243, "call bstrtoul"], [244, "mov [rbp+var_60], rax"], [245, "jmp short loc_44DA85"], [246, "mov rax, [rbp+var_50]"], [247, "mov rdi, rax"], [248, "call bstrtoul"], [249, "mov [rbp+var_60], rax"], [250, "cmp [rbp+var_60], 0FFFFFFFFFFFFFFFFh"], [251, "jnz short loc_44DAB9"], [252, "mov rdx, [rbp+var_50]"], [253, "mov rax, [rbp+var_A8]"], [254, "mov r8d, offset aU32InvalidOffs"], [255, "mov ecx, offset u32_ematch_util"], [256, "mov rsi, rax"], [257, "mov edi, 16h"], [258, "mov eax, 0"], [259, "call em_parse_error"], [260, "jmp loc_44DD01"], [261, "mov rax, [rbp+var_50]"], [262, "mov rax, [rax+10h]"], [263, "test rax, rax"], [264, "jz short loc_44DAF7"], [265, "mov rax, [rbp+var_50]"], [266, "mov rdx, [rax+10h]"], [267, "mov rax, [rbp+var_A8]"], [268, "mov r8d, offset aU32UnexpectedT"], [269, "mov ecx, offset u32_ematch_util"], [270, "mov rsi, rax"], [271, "mov edi, 16h"], [272, "mov eax, 0"], [273, "call em_parse_error"], [274, "jmp loc_44DD01"], [275, "cmp [rbp+var_44], 1"], [276, "jz short loc_44DB0C"], [277, "cmp [rbp+var_44], 2"], [278, "jz loc_44DBAA"], [279, "jmp loc_44DC34"], [280, "cmp qword ptr [rbp+hostlong], 0FFh"], [281, "jbe short loc_44DB43"], [282, "mov rdx, [rbp+var_50]"], [283, "mov rax, [rbp+var_A8]"], [284, "mov r8d, offset aIllegalKey0xff"], [285, "mov ecx, offset u32_ematch_util"], [286, "mov rsi, rax"], [287, "mov edi, 16h"], [288, "mov eax, 0"], [289, "call em_parse_error"], [290, "jmp loc_44DD01"], [291, "cmp qword ptr [rbp+var_38], 0FFh"], [292, "jbe short loc_44DB7A"], [293, "mov rdx, [rbp+var_50]"], [294, "mov rax, [rbp+var_A8]"], [295, "mov r8d, offset aIllegalMask0xf"], [296, "mov ecx, offset u32_ematch_util"], [297, "mov rsi, rax"], [298, "mov edi, 16h"], [299, "mov eax, 0"], [300, "call em_parse_error"], [301, "jmp loc_44DD01"], [302, "mov rax, [rbp+var_60]"], [303, "not rax"], [304, "and eax, 3"], [305, "shl eax, 3"], [306, "mov ecx, eax"], [307, "shl qword ptr [rbp+hostlong], cl"], [308, "mov rax, [rbp+var_60]"], [309, "not rax"], [310, "and eax, 3"], [311, "shl eax, 3"], [312, "mov ecx, eax"], [313, "shl qword ptr [rbp+var_38], cl"], [314, "and [rbp+var_60], 0FFFFFFFFFFFFFFFCh"], [315, "jmp loc_44DC34"], [316, "cmp qword ptr [rbp+hostlong], 0FFFFh"], [317, "jbe short loc_44DBE1"], [318, "mov rdx, [rbp+var_50]"], [319, "mov rax, [rbp+var_A8]"], [320, "mov r8d, offset aIllegalKey0xff_0"], [321, "mov ecx, offset u32_ematch_util"], [322, "mov rsi, rax"], [323, "mov edi, 16h"], [324, "mov eax, 0"], [325, "call em_parse_error"], [326, "jmp loc_44DD01"], [327, "cmp qword ptr [rbp+var_38], 0FFFFh"], [328, "jbe short loc_44DC18"], [329, "mov rdx, [rbp+var_50]"], [330, "mov rax, [rbp+var_A8]"], [331, "mov r8d, offset aIllegalMask0xf_0"], [332, "mov ecx, offset u32_ematch_util"], [333, "mov rsi, rax"], [334, "mov edi, 16h"], [335, "mov eax, 0"], [336, "call em_parse_error"], [337, "jmp loc_44DD01"], [338, "mov rax, [rbp+var_60]"], [339, "and eax, 3"], [340, "test rax, rax"], [341, "jnz short loc_44DC2E"], [342, "shl qword ptr [rbp+hostlong], 10h"], [343, "shl qword ptr [rbp+var_38], 10h"], [344, "and [rbp+var_60], 0FFFFFFFFFFFFFFFCh"], [345, "nop"], [346, "mov rax, qword ptr [rbp+hostlong]"], [347, "mov edi, eax"], [348, "call _htonl"], [349, "mov eax, eax"], [350, "mov qword ptr [rbp+hostlong], rax"], [351, "mov rax, qword ptr [rbp+var_38]"], [352, "mov edi, eax"], [353, "call _htonl"], [354, "mov eax, eax"], [355, "mov qword ptr [rbp+var_38], rax"], [356, "mov rax, [rbp+var_60]"], [357, "and eax, 3"], [358, "test rax, rax"], [359, "jz short loc_44DC8C"], [360, "mov rdx, [rbp+var_50]"], [361, "mov rax, [rbp+var_A8]"], [362, "mov r8d, offset aU32InvalidOffs_0"], [363, "mov ecx, offset u32_ematch_util"], [364, "mov rsi, rax"], [365, "mov edi, 16h"], [366, "mov eax, 0"], [367, "call em_parse_error"], [368, "jmp short loc_44DD01"], [369, "mov rax, qword ptr [rbp+var_38]"], [370, "and qword ptr [rbp+hostlong], rax"], [371, "mov rax, qword ptr [rbp+var_38]"], [372, "mov dword ptr [rbp+var_90], eax"], [373, "mov rax, qword ptr [rbp+hostlong]"], [374, "mov dword ptr [rbp+var_90+4], eax"], [375, "mov rax, [rbp+var_60]"], [376, "mov dword ptr [rbp+var_88], eax"], [377, "mov rax, [rbp+var_58]"], [378, "mov dword ptr [rbp+var_88+4], eax"], [379, "mov rdx, [rbp+var_A0]"], [380, "mov rax, [rbp+var_98]"], [381, "mov ecx, 8"], [382, "mov esi, 4000h"], [383, "mov rdi, rax"], [384, "call addraw_l"], [385, "lea rdx, [rbp+var_90]"], [386, "mov rax, [rbp+var_98]"], [387, "mov ecx, 10h"], [388, "mov esi, 4000h"], [389, "mov rdi, rax"], [390, "call addraw_l"], [391, "mov eax, 0"], [392, "lea rsp, [rbp-28h]"], [393, "pop rbx"], [394, "pop r12"], [395, "pop r13"], [396, "pop r14"], [397, "pop r15"], [398, "pop rbp"], [399, "retn"]], "data_dep": [[14, 10], [15, 14], [16, 10], [17, 10], [20, 17], [25, 10], [27, 25], [29, 28], [30, 29], [33, 10], [35, 33], [37, 36], [38, 37], [41, 10], [43, 41], [45, 44], [46, 45], [49, 10], [50, 10], [53, 50], [58, 10], [59, 58], [61, 60], [62, 61], [63, 62], [64, 61], [65, 10], [68, 65], [73, 61], [74, 73], [76, 75], [77, 76], [78, 77], [79, 61], [80, 10], [83, 80], [88, 61], [89, 88], [91, 90], [92, 91], [93, 92], [94, 91], [95, 10], [98, 95], [103, 91], [104, 103], [106, 105], [107, 106], [108, 107], [109, 91], [110, 10], [113, 110], [118, 91], [119, 118], [121, 120], [122, 121], [123, 122], [124, 121], [126, 124], [128, 127], [129, 128], [130, 121], [131, 10], [134, 131], [139, 121], [140, 139], [142, 141], [143, 142], [144, 143], [145, 142], [146, 10], [149, 146], [155, 142], [156, 155], [157, 154], [158, 156], [158, 157], [159, 158], [160, 154], [161, 160], [162, 142], [163, 162], [165, 163], [167, 166], [168, 167], [169, 7], [170, 169], [171, 142], [172, 171], [173, 154], [174, 173], [174, 172], [175, 174], [176, 175], [177, 176], [178, 177], [179, 175], [180, 179], [182, 175], [183, 182], [185, 175], [187, 186], [188, 187], [188, 185], [191, 189], [192, 188], [193, 7], [193, 192], [194, 193], [195, 194], [196, 195], [198, 142], [199, 198], [200, 154], [201, 200], [201, 199], [202, 201], [203, 142], [204, 203], [205, 154], [207, 204], [207, 205], [208, 196], [209, 207], [210, 208], [212, 196], [215, 212], [217, 216], [218, 170], [220, 142], [222, 220], [224, 223], [225, 224], [226, 142], [227, 226], [229, 228], [230, 229], [231, 230], [232, 229], [233, 10], [236, 233], [241, 229], [242, 241], [244, 243], [246, 142], [247, 246], [249, 248], [250, 249], [250, 217], [250, 244], [251, 250], [252, 229], [252, 142], [253, 10], [256, 253], [261, 229], [261, 142], [262, 261], [263, 262], [264, 263], [265, 229], [265, 142], [266, 265], [267, 10], [270, 267], [275, 39], [275, 47], [275, 31], [276, 275], [277, 39], [277, 47], [277, 31], [278, 277], [280, 76], [281, 280], [282, 229], [282, 142], [283, 10], [286, 283], [291, 106], [292, 291], [293, 229], [293, 142], [294, 10], [297, 294], [302, 217], [302, 249], [302, 244], [303, 302], [304, 303], [305, 304], [306, 305], [307, 76], [307, 306], [308, 249], [308, 244], [308, 217], [309, 308], [310, 309], [311, 310], [312, 311], [313, 312], [313, 106], [314, 217], [314, 249], [314, 244], [316, 76], [317, 316], [318, 229], [318, 142], [319, 10], [322, 319], [327, 106], [328, 327], [329, 229], [329, 142], [330, 10], [333, 330], [338, 217], [338, 249], [338, 244], [339, 338], [340, 339], [341, 340], [342, 76], [343, 106], [344, 244], [344, 217], [344, 249], [346, 342], [346, 307], [346, 76], [347, 346], [349, 348], [350, 349], [351, 343], [351, 313], [351, 106], [352, 351], [354, 353], [355, 354], [356, 314], [356, 217], [356, 249], [356, 244], [356, 344], [357, 356], [358, 357], [359, 358], [360, 229], [360, 142], [361, 10], [364, 361], [369, 355], [370, 369], [370, 350], [371, 355], [372, 371], [373, 370], [374, 373], [375, 314], [375, 344], [375, 217], [375, 249], [375, 244], [376, 375], [377, 11], [377, 197], [378, 377], [379, 9], [380, 8], [383, 380], [385, 379], [385, 372], [386, 8], [389, 386], [392, 218], [392, 7], [393, 6], [394, 5], [395, 4], [396, 3], [397, 2], [398, 0], [399, 86], [399, 239], [399, 116], [399, 152], [399, 273], [399, 56], [399, 367], [399, 259], [399, 289], [399, 325], [399, 300], [399, 391], [399, 101], [399, 23], [399, 71], [399, 336], [399, 137]]}
| {"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/5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0_5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0.jsonl.gz", "strip_func_name": "sub_44D656", "query": "\n\n\n__int64 __fastcall sub_44D656(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 v7; // r9\n__int64 v8; // r9\n__int64 v9; // r9\n__int64 v10; // r9\n__int64 v11; // r9\n__int64 v12; // r9\n__int64 v13; // r9\nunsigned int v14; // eax\nvoid *v15; // rsp\n__int64 v16; // r9\n__int64 v17; // r9\n__int64 v18; // [rsp+0h] [rbp-B0h] BYREF\n__int64 v19; // [rsp+8h] [rbp-A8h]\n__int64 v20; // [rsp+10h] [rbp-A0h]\n__int64 v21; // [rsp+18h] [rbp-98h]\nunsigned __int64 v22; // [rsp+20h] [rbp-90h] BYREF\nunsigned __int64 v23; // [rsp+28h] [rbp-88h]\nvoid *dest; // [rsp+38h] [rbp-78h]\n__int64 v25; // [rsp+40h] [rbp-70h]\nint v26; // [rsp+4Ch] [rbp-64h]\nunsigned __int64 v27; // [rsp+50h] [rbp-60h]\n__int64 v28; // [rsp+58h] [rbp-58h]\n__int64 v29; // [rsp+60h] [rbp-50h]\nint v30; // [rsp+6Ch] [rbp-44h]\nuint32_t hostlong[2]; // [rsp+70h] [rbp-40h]\nuint32_t v32[2]; // [rsp+78h] [rbp-38h]\n\nv21 = a1;\nv20 = a2;\nv19 = a3;\nv28 = 0LL;\nv22 = 0LL;\nv23 = 0LL;\nif ( !a3 )\nreturn em_parse_error(22, 0LL, 0LL, (__int64)&u32_ematch_util, \"u32: missing arguments\", a6);\nif ( sub_44D5C3(v19, \"u8\") )\n{\nif ( sub_44D5C3(v19, \"u16\") )\n{\nif ( sub_44D5C3(v19, \"u32\") )\nreturn em_parse_error(22, v19, v19, (__int64)&u32_ematch_util, \"u32: invalid alignment\", v7);\nv30 = 4;\n}\nelse\n{\nv30 = 2;\n}\n}\nelse\n{\nv30 = 1;\n}\nv29 = sub_44D61A(v19);\nif ( !v29 )\nreturn em_parse_error(22, v19, 0LL, (__int64)&u32_ematch_util, \"u32: missing key\", v8);\n*(_QWORD *)hostlong = bstrtoul(v29);\nif ( *(_QWORD *)hostlong == -1LL )\nreturn em_parse_error(22, v19, v29, (__int64)&u32_ematch_util, \"u32: invalid key, must be numeric\", v9);\nv29 = sub_44D61A(v29);\nif ( !v29 )\nreturn em_parse_error(22, v19, 0LL, (__int64)&u32_ematch_util, \"u32: missing mask\", v10);\n*(_QWORD *)v32 = bstrtoul(v29);\nif ( *(_QWORD *)v32 == -1LL )\nreturn em_parse_error(22, v19, v29, (__int64)&u32_ematch_util, \"u32: invalid mask, must be numeric\", v11);\nv29 = sub_44D61A(v29);\nif ( !v29 || sub_44D5C3(v29, \"at\") )\nreturn em_parse_error(22, v19, v29, (__int64)&u32_ematch_util, \"u32: missing \\\"at\\\"\", v12);\nv29 = sub_44D61A(v29);\nif ( !v29 )\nreturn em_parse_error(22, v19, 0LL, (__int64)&u32_ematch_util, \"u32: missing offset\", v13);\nv26 = 8;\nif ( *(_DWORD *)(v29 + 8) > 8u && !memcmp(*(const void **)v29, \"nexthdr+\", v26) )\n{\nv14 = *(_DWORD *)(v29 + 8) - v26 + 1;\nv25 = v14 - 1LL;\nv15 = alloca(16 * (((unsigned __int64)v14 + 15) / 0x10));\ndest = &v18;\nv28 = -1LL;\nmemcpy(&v18, (const void *)(v26 + *(_QWORD *)v29), (unsigned int)(*(_DWORD *)(v29 + 8) - v26));\nv27 = strtoul((const char *)dest, 0LL, 0);\n}\nelse\n{\nif ( !sub_44D5C3(v29, \"nexthdr+\") )\n{\nv29 = sub_44D61A(v29);\nif ( !v29 )\nreturn em_parse_error(22, v19, 0LL, (__int64)&u32_ematch_util, \"u32: missing offset\", v13);\n}\nv27 = bstrtoul(v29);\n}\nif ( v27 == -1LL )\nreturn em_parse_error(22, v19, v29, (__int64)&u32_ematch_util, \"u32: invalid offset\", v16);\nif ( *(_QWORD *)(v29 + 16) )\nreturn em_parse_error(22, v19, *(_QWORD *)(v29 + 16), (__int64)&u32_ematch_util, \"u32: unexpected trailer\", v16);\nif ( v30 == 1 )\n{\nif ( *(_QWORD *)hostlong > 0xFFuLL )\nreturn em_parse_error(22, v19, v29, (__int64)&u32_ematch_util, \"Illegal key (>0xFF)\", v16);\nif ( *(_QWORD *)v32 > 0xFFuLL )\nreturn em_parse_error(22, v19, v29, (__int64)&u32_ematch_util, \"Illegal mask (>0xFF)\", v16);\n*(_QWORD *)hostlong <<= 8 * (~(_BYTE)v27 & 3u);\n*(_QWORD *)v32 <<= 8 * (~(_BYTE)v27 & 3u);\nv27 &= 0xFFFFFFFFFFFFFFFCLL;\n}\nelse if ( v30 == 2 )\n{\nif ( *(_QWORD *)hostlong > 0xFFFFuLL )\nreturn em_parse_error(22, v19, v29, (__int64)&u32_ematch_util, \"Illegal key (>0xFFFF)\", v16);\nif ( *(_QWORD *)v32 > 0xFFFFuLL )\nreturn em_parse_error(22, v19, v29, (__int64)&u32_ematch_util, \"Illegal mask (>0xFFFF)\", v16);\nif ( (v27 & 3) == 0 )\n{\n*(_QWORD *)hostlong <<= 16;\n*(_QWORD *)v32 <<= 16;\n}\nv27 &= 0xFFFFFFFFFFFFFFFCLL;\n}\n*(_QWORD *)hostlong = htonl(hostlong[0]);\n*(_QWORD *)v32 = htonl(v32[0]);\nif ( (v27 & 3) != 0 )\nreturn em_parse_error(\n22,\nv19,\nv29,\n(__int64)&u32_ematch_util,\n\"u32: invalid offset alignment, must be aligned to 4.\",\nv17);\n*(_QWORD *)hostlong &= *(_QWORD *)v32;\nv22 = __PAIR64__(hostlong[0], v32[0]);\nv23 = __PAIR64__(v28, v27);\naddraw_l(v21, 0x4000LL, v20, 8LL);\naddraw_l(v21, 0x4000LL, &v22, 16LL);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v19,v20,v21,v22,dest,v26,v27,v28,v29,v30,hostlong,v32,sub_44D656,sub_44D5C3,sub_44D61A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'args', 'a1': 'n', 'a2': 'hdr', 'v19': 'argsa', 'v20': 'hdra', 'v21': 'na', 'v22': 'u_key', 'dest': 'p_buf', 'v26': 'nh_len', 'v27': 'offset', 'v28': 'offmask', 'v29': 'a', 'v30': 'align', 'hostlong': 'key', 'v32': 'mask', 'sub_44D656': 'u32_parse_eopt', 'sub_44D5C3': 'bstrcmp_1', 'sub_44D61A': 'bstr_next_2'}"} |
|
st_flush_bit_buffer | dd520d7ca9f517f5e2cb6c9233f8b48f077ac64349ef0986890cc58d2785bee8 | eerimoq | monolinux-jiffy | NA | static HSE_state st_flush_bit_buffer(heatshrink_encoder *hse,
output_info *oi) {
if (hse->bit_index == 0x80) {
LOG("-- done!\n");
return HSES_DONE;
} else if (can_take_byte(oi)) {
LOG("-- flushing remaining byte (bit_index == 0x%02x)\n", hse->bit_index);
oi->buf[(*oi->output_size)++] = hse->current_byte;
LOG("-- done!\n");
return HSES_DONE;
} else {
return HSES_FLUSH_BITS;
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4084B5", "function_addr": 4228277, "binary_name": "dd520d7ca9f517f5e2cb6c9233f8b48f077ac64349ef0986890cc58d2785bee8.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_8]"], [6, "movzx eax, byte ptr [rax+0Eh]"], [7, "cmp al, 80h"], [8, "jnz short loc_4084D8"], [9, "mov eax, 9"], [10, "jmp short locret_40851A"], [11, "mov rax, [rbp+var_10]"], [12, "mov rdi, rax"], [13, "call sub_4086A7"], [14, "test eax, eax"], [15, "jz short loc_408515"], [16, "mov rax, [rbp+var_10]"], [17, "mov rsi, [rax]"], [18, "mov rax, [rbp+var_10]"], [19, "mov rax, [rax+10h]"], [20, "mov rdx, [rax]"], [21, "lea rcx, [rdx+1]"], [22, "mov [rax], rcx"], [23, "add rdx, rsi"], [24, "mov rax, [rbp+var_8]"], [25, "movzx eax, byte ptr [rax+0Dh]"], [26, "mov [rdx], al"], [27, "mov eax, 9"], [28, "jmp short locret_40851A"], [29, "mov eax, 8"], [30, "leave"], [31, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [11, 4], [12, 11], [14, 13], [15, 14], [16, 4], [17, 16], [18, 4], [19, 18], [20, 19], [21, 20], [22, 19], [22, 21], [23, 17], [23, 20], [24, 3], [25, 22], [25, 24], [26, 23], [26, 25], [31, 29], [31, 9], [31, 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/dd520d7ca9f517f5e2cb6c9233f8b48f077ac64349ef0986890cc58d2785bee8_dd520d7ca9f517f5e2cb6c9233f8b48f077ac64349ef0986890cc58d2785bee8.jsonl.gz", "strip_func_name": "sub_4084B5", "query": "\n\n\n__int64 __fastcall sub_4084B5(__int64 a1, __int64 *a2)\n{\n__int64 v3; // rsi\n_QWORD *v4; // rax\n__int64 v5; // rdx\n\nif ( *(_BYTE *)(a1 + 14) == 0x80 )\nreturn 9LL;\nif ( !(unsigned int)sub_4086A7(a2) )\nreturn 8LL;\nv3 = *a2;\nv4 = (_QWORD *)a2[2];\nv5 = (*v4)++;\n*(_BYTE *)(v3 + v5) = *(_BYTE *)(a1 + 13);\nreturn 9LL;\n}\n\n\n\nQ:[a1,a2,sub_4084B5,sub_4086A7,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'hse', 'a2': 'oi', 'sub_4084B5': 'st_flush_bit_buffer', 'sub_4086A7': 'can_take_byte'}"} |
|
IOdemodFSK | 4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487 | nccgroup | proxmark3-amiimicyou | NA | int IOdemodFSK(uint8_t *dest, size_t size) {
if (justNoise(dest, size)) return -1;
//make sure buffer has data
if (size < 66*64) return -2;
// FSK demodulator
size = fskdemod(dest, size, 64, 1, 10, 8); // FSK2a RF/64
if (size < 65) return -3; //did we get a good demod?
//Index map
//0 10 20 30 40 50 60
//| | | | | | |
//01234567 8 90123456 7 89012345 6 78901234 5 67890123 4 56789012 3 45678901 23
//-----------------------------------------------------------------------------
//00000000 0 11110000 1 facility 1 version* 1 code*one 1 code*two 1 ???????? 11
//
//XSF(version)facility:codeone+codetwo
//Handle the data
size_t startIdx = 0;
uint8_t preamble[] = {0,0,0,0,0,0,0,0,0,1};
uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), &size, &startIdx);
if (errChk == 0) return -4; //preamble not found
if (!dest[startIdx+8] && dest[startIdx+17]==1 && dest[startIdx+26]==1 && dest[startIdx+35]==1 && dest[startIdx+44]==1 && dest[startIdx+53]==1){
//confirmed proper separator bits found
//return start position
return (int) startIdx;
}
return -5;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "IOdemodFSK", "function_addr": 4372038, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rdx, [rbp+var_30]"], [6, "mov rax, [rbp+var_28]"], [7, "mov rsi, rdx"], [8, "mov rdi, rax"], [9, "call justNoise"], [10, "test al, al"], [11, "jz short loc_42B677"], [12, "mov eax, 0FFFFFFFFh"], [13, "jmp locret_42B7A8"], [14, "mov rax, [rbp+var_30]"], [15, "cmp rax, 107Fh"], [16, "ja short loc_42B68D"], [17, "mov eax, 0FFFFFFFEh"], [18, "jmp locret_42B7A8"], [19, "mov rsi, [rbp+var_30]"], [20, "mov rax, [rbp+var_28]"], [21, "mov r9d, 8"], [22, "mov r8d, 0Ah"], [23, "mov ecx, 1"], [24, "mov edx, 40h "], [25, "mov rdi, rax"], [26, "call fskdemod"], [27, "cdqe"], [28, "mov [rbp+var_30], rax"], [29, "mov rax, [rbp+var_30]"], [30, "cmp rax, 40h "], [31, "ja short loc_42B6CD"], [32, "mov eax, 0FFFFFFFDh"], [33, "jmp locret_42B7A8"], [34, "mov [rbp+var_10], 0"], [35, "mov [rbp+var_1A], 0"], [36, "mov [rbp+var_12], 100h"], [37, "lea rcx, [rbp+var_10]"], [38, "lea rdx, [rbp+var_30]"], [39, "lea rsi, [rbp+var_1A]"], [40, "mov rax, [rbp+var_28]"], [41, "mov r8, rcx"], [42, "mov rcx, rdx"], [43, "mov edx, 0Ah"], [44, "mov rdi, rax"], [45, "call preambleSearch"], [46, "mov [rbp+var_1], al"], [47, "cmp [rbp+var_1], 0"], [48, "jnz short loc_42B719"], [49, "mov eax, 0FFFFFFFCh"], [50, "jmp locret_42B7A8"], [51, "mov rax, [rbp+var_10]"], [52, "lea rdx, [rax+8]"], [53, "mov rax, [rbp+var_28]"], [54, "add rax, rdx"], [55, "movzx eax, byte ptr [rax]"], [56, "test al, al"], [57, "jnz short loc_42B7A3"], [58, "mov rax, [rbp+var_10]"], [59, "lea rdx, [rax+11h]"], [60, "mov rax, [rbp+var_28]"], [61, "add rax, rdx"], [62, "movzx eax, byte ptr [rax]"], [63, "cmp al, 1"], [64, "jnz short loc_42B7A3"], [65, "mov rax, [rbp+var_10]"], [66, "lea rdx, [rax+1Ah]"], [67, "mov rax, [rbp+var_28]"], [68, "add rax, rdx"], [69, "movzx eax, byte ptr [rax]"], [70, "cmp al, 1"], [71, "jnz short loc_42B7A3"], [72, "mov rax, [rbp+var_10]"], [73, "lea rdx, [rax+23h]"], [74, "mov rax, [rbp+var_28]"], [75, "add rax, rdx"], [76, "movzx eax, byte ptr [rax]"], [77, "cmp al, 1"], [78, "jnz short loc_42B7A3"], [79, "mov rax, [rbp+var_10]"], [80, "lea rdx, [rax+2Ch]"], [81, "mov rax, [rbp+var_28]"], [82, "add rax, rdx"], [83, "movzx eax, byte ptr [rax]"], [84, "cmp al, 1"], [85, "jnz short loc_42B7A3"], [86, "mov rax, [rbp+var_10]"], [87, "lea rdx, [rax+35h]"], [88, "mov rax, [rbp+var_28]"], [89, "add rax, rdx"], [90, "movzx eax, byte ptr [rax]"], [91, "cmp al, 1"], [92, "jnz short loc_42B7A3"], [93, "mov rax, [rbp+var_10]"], [94, "jmp short locret_42B7A8"], [95, "mov eax, 0FFFFFFFBh"], [96, "leave"], [97, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 5], [8, 6], [10, 9], [11, 10], [14, 4], [15, 14], [16, 15], [19, 4], [20, 3], [25, 20], [28, 26], [29, 28], [30, 29], [31, 30], [37, 23], [37, 34], [38, 24], [38, 28], [39, 35], [39, 19], [40, 3], [41, 37], [42, 38], [44, 40], [46, 45], [47, 46], [48, 47], [51, 34], [52, 51], [52, 43], [53, 3], [54, 53], [54, 52], [55, 54], [56, 55], [57, 56], [58, 34], [59, 52], [59, 58], [60, 3], [61, 60], [61, 59], [62, 61], [63, 62], [64, 63], [65, 34], [66, 59], [66, 65], [67, 3], [68, 66], [68, 67], [69, 68], [70, 69], [71, 70], [72, 34], [73, 66], [73, 72], [74, 3], [75, 74], [75, 73], [76, 75], [77, 76], [78, 77], [79, 34], [80, 73], [80, 79], [81, 3], [82, 81], [82, 80], [83, 82], [84, 83], [85, 84], [86, 34], [87, 80], [87, 86], [88, 3], [89, 88], [89, 87], [90, 89], [91, 90], [92, 91], [93, 34], [97, 17], [97, 95], [97, 49], [97, 12], [97, 32], [97, 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/4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487_4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.jsonl.gz", "strip_func_name": "IOdemodFSK", "query": "\n\n\n__int64 __fastcall IOdemodFSK(bool *a1, unsigned __int64 a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10)\n{\n__m128 v10; // xmm4\n__m128 v11; // xmm5\ndouble v13; // xmm4_8\ndouble v14; // xmm5_8\nsize_t v15; // [rsp+0h] [rbp-30h] BYREF\nbool *v16; // [rsp+8h] [rbp-28h]\n__int64 v17; // [rsp+16h] [rbp-1Ah] BYREF\n__int16 v18; // [rsp+1Eh] [rbp-12h]\nunsigned __int64 v19; // [rsp+20h] [rbp-10h] BYREF\n\nv16 = a1;\nv15 = a2;\nif ( justNoise((__int64)a1, a2) )\nreturn 0xFFFFFFFFLL;\nif ( v15 <= 0x107F )\nreturn 4294967294LL;\nv15 = (int)fskdemod(v16, v15, 0x40u, 1u, 0xAu, 8u, a3, a4, a5, a6, v10, v11, a9, a10);\nif ( v15 <= 0x40 )\nreturn 4294967293LL;\nv19 = 0LL;\nv17 = 0LL;\nv18 = 256;\nif ( !(unsigned __int8)preambleSearch((__int64)v16, &v17, 0xAuLL, &v15, &v19, a3, a4, a5, a6, v13, v14, a9, a10) )\nreturn 4294967292LL;\nif ( !v16[v19 + 8] && v16[v19 + 17] && v16[v19 + 26] && v16[v19 + 35] && v16[v19 + 44] && v16[v19 + 53] )\nreturn v19;\nreturn 4294967291LL;\n}\n\n\n\nQ:[a1,a2,v15,v16,v17,v19,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dest', 'a2': 'size', 'v15': 'sizea', 'v16': 'desta', 'v17': 'preamble', 'v19': 'startIdx'}"} |
|
store_bigendian | 89d72e010c64b2011ec68cc132086734978f2552d2821686fb7fe804cf681765 | pq-crystals | kyber | NA | static void store_bigendian(uint8_t *x,uint32_t u)
{
x[3] = u; u >>= 8;
x[2] = u; u >>= 8;
x[1] = u; u >>= 8;
x[0] = u;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403922", "function_addr": 4208930, "binary_name": "89d72e010c64b2011ec68cc132086734978f2552d2821686fb7fe804cf681765.elf_extract.pkl\n"}, "code": [[0, "mov [rsp+var_8], rdi"], [1, "mov [rsp+var_C], esi"], [2, "mov rax, [rsp+var_8]"], [3, "add rax, 3"], [4, "mov edx, [rsp+var_C]"], [5, "mov [rax], dl"], [6, "shr [rsp+var_C], 8"], [7, "mov rax, [rsp+var_8]"], [8, "add rax, 2"], [9, "mov edx, [rsp+var_C]"], [10, "mov [rax], dl"], [11, "shr [rsp+var_C], 8"], [12, "mov rax, [rsp+var_8]"], [13, "add rax, 1"], [14, "mov edx, [rsp+var_C]"], [15, "mov [rax], dl"], [16, "shr [rsp+var_C], 8"], [17, "mov eax, [rsp+var_C]"], [18, "mov edx, eax"], [19, "mov rax, [rsp+var_8]"], [20, "mov [rax], dl"], [21, "nop"], [22, "retn"]], "data_dep": [[2, 0], [3, 2], [4, 1], [5, 4], [5, 3], [6, 1], [7, 0], [8, 7], [9, 6], [10, 9], [10, 8], [11, 6], [12, 0], [13, 12], [14, 11], [15, 14], [15, 13], [16, 11], [17, 16], [18, 17], [19, 0], [20, 19], [20, 18], [22, 19]]}
| {"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/89d72e010c64b2011ec68cc132086734978f2552d2821686fb7fe804cf681765_89d72e010c64b2011ec68cc132086734978f2552d2821686fb7fe804cf681765.jsonl.gz", "strip_func_name": "sub_403922", "query": "\n\n\n_BYTE *__fastcall sub_403922(_BYTE *a1, int a2)\n{\n_BYTE *result; // rax\n\na1[3] = a2;\na1[2] = BYTE1(a2);\na1[1] = BYTE2(a2);\nresult = a1;\n*a1 = HIBYTE(a2);\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_403922,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'x', 'a2': 'u', 'sub_403922': 'store_bigendian'}"} |
|
addextlibs | ba956bac7ddac629598ec5d8169c58ab94419be42f100c43e4419a0bc5dd27a7 | oridb | mc | NA | void
addextlibs(char **libs, size_t nlibs)
{
size_t i, j;
for (i = 0; i < nlibs; i++) {
for (j = 0; j < file.nextlibs; j++)
if (!strcmp(file.extlibs[j], libs[i]))
continue;
lappend(&file.extlibs, &file.nextlibs, libs[i]);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43949A", "function_addr": 4428954, "binary_name": "ba956bac7ddac629598ec5d8169c58ab94419be42f100c43e4419a0bc5dd27a7.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 [rbp+var_8], 0"], [6, "jmp loc_439538"], [7, "mov [rbp+var_10], 0"], [8, "jmp short loc_4394FE"], [9, "mov rax, [rbp+var_8]"], [10, "lea rdx, ds:0[rax*8]"], [11, "mov rax, [rbp+var_18]"], [12, "add rax, rdx"], [13, "mov rdx, [rax]"], [14, "mov rcx, cs:qword_47CDF0"], [15, "mov rax, [rbp+var_10]"], [16, "shl rax, 3"], [17, "add rax, rcx"], [18, "mov rax, [rax]"], [19, "mov rsi, rdx"], [20, "mov rdi, rax"], [21, "call _strcmp"], [22, "test eax, eax"], [23, "add [rbp+var_10], 1"], [24, "mov rax, cs:qword_47CDF8"], [25, "cmp [rbp+var_10], rax"], [26, "jb short loc_4394C1"], [27, "mov rax, [rbp+var_8]"], [28, "lea rdx, ds:0[rax*8]"], [29, "mov rax, [rbp+var_18]"], [30, "add rax, rdx"], [31, "mov rax, [rax]"], [32, "mov rdx, rax"], [33, "mov esi, offset qword_47CDF8"], [34, "mov edi, offset qword_47CDF0"], [35, "call sub_44681F"], [36, "add [rbp+var_8], 1"], [37, "mov rax, [rbp+var_8]"], [38, "cmp rax, [rbp+var_20]"], [39, "jb loc_4394B7"], [40, "nop"], [41, "nop"], [42, "leave"], [43, "retn"]], "data_dep": [[9, 5], [9, 36], [10, 32], [10, 13], [11, 3], [12, 10], [12, 11], [13, 12], [15, 23], [15, 7], [16, 15], [17, 14], [17, 16], [18, 17], [19, 13], [20, 18], [22, 21], [23, 7], [23, 23], [25, 23], [25, 7], [25, 24], [26, 25], [27, 36], [27, 5], [28, 32], [28, 13], [29, 3], [30, 29], [30, 28], [31, 30], [32, 31], [36, 36], [36, 5], [37, 36], [37, 5], [38, 4], [38, 37], [39, 38], [43, 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/ba956bac7ddac629598ec5d8169c58ab94419be42f100c43e4419a0bc5dd27a7_ba956bac7ddac629598ec5d8169c58ab94419be42f100c43e4419a0bc5dd27a7.jsonl.gz", "strip_func_name": "sub_43949A", "query": "\n\n\nunsigned __int64 __fastcall sub_43949A(__int64 a1, unsigned __int64 a2)\n{\nunsigned __int64 result; // rax\nunsigned __int64 j; // [rsp+10h] [rbp-10h]\nunsigned __int64 i; // [rsp+18h] [rbp-8h]\n\nfor ( i = 0LL; ; ++i )\n{\nresult = i;\nif ( i >= a2 )\nbreak;\nfor ( j = 0LL; j < qword_47CDF8; ++j )\nstrcmp(*(const char **)(qword_47CDF0 + 8 * j), *(const char **)(8 * i + a1));\nsub_44681F(&qword_47CDF0, &qword_47CDF8, *(_QWORD *)(8 * i + a1));\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_43949A,sub_44681F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'libs', 'a2': 'nlibs', 'sub_43949A': 'addextlibs', 'sub_44681F': 'lappend'}"} |
|
hammer_ld_flush | b0b5f1aee667e1c4b836bc0c8123f34a7870f05658c676a313ba9104bfc39b4a | vusec | hammertime | NA | void hammer_ld_flush(uintptr_t a, uintptr_t b, unsigned long iters, long opt)
{
volatile int *p = (volatile int *)a;
volatile int *q = (volatile int *)b;
for (; iters --> 0;) {
__asm__ volatile (
"clflush (%0)\n\t"
"clflush (%1)\n\t"
:
: "r" (p), "r" (q)
: "memory"
);
*p;
*q;
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40532F", "function_addr": 4215599, "binary_name": "b0b5f1aee667e1c4b836bc0c8123f34a7870f05658c676a313ba9104bfc39b4a.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 [rbp+var_30], rcx"], [6, "mov rax, [rbp+var_18]"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_20]"], [9, "mov [rbp+var_10], rax"], [10, "jmp short loc_40536F"], [11, "mov rax, [rbp+var_8]"], [12, "mov rdx, [rbp+var_10]"], [13, "clflush byte ptr [rax]"], [14, "clflush byte ptr [rdx]"], [15, "mov rax, [rbp+var_8]"], [16, "mov eax, [rax]"], [17, "mov rax, [rbp+var_10]"], [18, "mov eax, [rax]"], [19, "mov rax, [rbp+var_28]"], [20, "lea rdx, [rax-1]"], [21, "mov [rbp+var_28], rdx"], [22, "test rax, rax"], [23, "jnz short loc_405355"], [24, "nop"], [25, "nop"], [26, "pop rbp"], [27, "retn"]], "data_dep": [[6, 2], [7, 6], [8, 3], [9, 8], [11, 7], [12, 9], [13, 11], [13, 13], [14, 12], [14, 14], [15, 7], [16, 13], [16, 15], [17, 9], [18, 17], [18, 13], [19, 21], [19, 4], [20, 19], [20, 12], [21, 20], [22, 19], [23, 22], [26, 0], [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/b0b5f1aee667e1c4b836bc0c8123f34a7870f05658c676a313ba9104bfc39b4a_b0b5f1aee667e1c4b836bc0c8123f34a7870f05658c676a313ba9104bfc39b4a.jsonl.gz", "strip_func_name": "sub_40532F", "query": "\n\n\n__int64 __fastcall sub_40532F(const void *a1, const void *a2, __int64 a3)\n{\n__int64 result; // rax\n\nwhile ( 1 )\n{\nresult = a3--;\nif ( !result )\nbreak;\n_mm_clflush(a1);\n_mm_clflush(a2);\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,sub_40532F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'iters', 'a1': 'a', 'a2': 'b', 'sub_40532F': 'hammer_ld_flush'}"} |
|
lv_switch_constructor | 1ba19119f39f257e698158d43e5d3674346db96601f10ff9792919370406ff3a | FASTSHIFT | lv_gba_emu | NA | static void lv_switch_constructor(const lv_obj_class_t * class_p, lv_obj_t * obj)
{
LV_UNUSED(class_p);
LV_TRACE_OBJ_CREATE("begin");
lv_switch_t * sw = (lv_switch_t *)obj;
sw->anim_state = LV_SWITCH_ANIM_STATE_INV;
lv_obj_clear_flag(obj, LV_OBJ_FLAG_SCROLLABLE);
lv_obj_add_flag(obj, LV_OBJ_FLAG_CHECKABLE);
lv_obj_add_flag(obj, LV_OBJ_FLAG_SCROLL_ON_FOCUS);
LV_TRACE_OBJ_CREATE("finished");
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_47ACE5", "function_addr": 4697317, "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_20], rsi"], [5, "mov rax, [rbp+var_20]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_8]"], [8, "mov dword ptr [rax+38h], 0FFFFFFFFh"], [9, "mov rax, [rbp+var_20]"], [10, "mov esi, 10h"], [11, "mov rdi, rax"], [12, "call sub_42807E"], [13, "mov rax, [rbp+var_20]"], [14, "mov esi, 8"], [15, "mov rdi, rax"], [16, "call sub_427F9A"], [17, "mov rax, [rbp+var_20]"], [18, "mov esi, 400h"], [19, "mov rdi, rax"], [20, "call sub_427F9A"], [21, "nop"], [22, "leave"], [23, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 4], [11, 9], [13, 4], [15, 13], [17, 4], [19, 17], [23, 20]]}
| {"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_47ACE5", "query": "\n\n\n__int64 __fastcall sub_47ACE5(__int64 a1, __int64 a2)\n{\n*(_DWORD *)(a2 + 56) = -1;\nsub_42807E(a2, 16);\nsub_427F9A(a2, 8);\nreturn sub_427F9A(a2, 1024);\n}\n\n\n\nQ:[a2,a1,sub_47ACE5,sub_42807E,sub_427F9A,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'obj', 'a1': 'class_p', 'sub_47ACE5': 'lv_switch_constructor', 'sub_42807E': 'lv_obj_clear_flag', 'sub_427F9A': 'lv_obj_add_flag'}"} |
|
s1111 | e7691500f93bbaaebd95d46021255ed975e4aa272477671214427bf176fd55b4 | UoB-HPC | TSVC_2 | NA | real_t s1111(struct args_t * func_args)
{
// no dependence - vectorizable
// jump in data access
initialise_arrays(__func__);
gettimeofday(&func_args->t1, NULL);
for (int nl = 0; nl < 2*iterations; nl++) {
for (int i = 0; i < LEN_1D/2; i++) {
a[2*i] = c[i] * b[i] + d[i] * b[i] + c[i] * c[i] + d[i] * b[i] + d[i] * c[i];
}
dummy(a, b, c, d, e, aa, bb, cc, 0.);
}
gettimeofday(&func_args->t2, NULL);
return calc_checksum(__func__);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40135C", "function_addr": 4199260, "binary_name": "e7691500f93bbaaebd95d46021255ed975e4aa272477671214427bf176fd55b4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+tv], rdi"], [4, "mov edi, offset aS1111"], [5, "call sub_40D4E3"], [6, "mov rax, [rbp+tv]"], [7, "mov esi, 0"], [8, "mov rdi, rax"], [9, "call _gettimeofday"], [10, "mov [rbp+var_4], 0"], [11, "jmp loc_4014A7"], [12, "mov [rbp+var_8], 0"], [13, "jmp loc_40145F"], [14, "mov eax, [rbp+var_8]"], [15, "cdqe"], [16, "movss xmm1, ds:dword_4B4CC0[rax*4]"], [17, "mov eax, [rbp+var_8]"], [18, "cdqe"], [19, "movss xmm0, ds:x[rax*4]"], [20, "mulss xmm1, xmm0"], [21, "mov eax, [rbp+var_8]"], [22, "cdqe"], [23, "movss xmm2, ds:dword_4D40C0[rax*4]"], [24, "mov eax, [rbp+var_8]"], [25, "cdqe"], [26, "movss xmm0, ds:x[rax*4]"], [27, "mulss xmm0, xmm2"], [28, "addss xmm1, xmm0"], [29, "mov eax, [rbp+var_8]"], [30, "cdqe"], [31, "movss xmm2, ds:dword_4B4CC0[rax*4]"], [32, "mov eax, [rbp+var_8]"], [33, "cdqe"], [34, "movss xmm0, ds:dword_4B4CC0[rax*4]"], [35, "mulss xmm0, xmm2"], [36, "addss xmm1, xmm0"], [37, "mov eax, [rbp+var_8]"], [38, "cdqe"], [39, "movss xmm2, ds:dword_4D40C0[rax*4]"], [40, "mov eax, [rbp+var_8]"], [41, "cdqe"], [42, "movss xmm0, ds:x[rax*4]"], [43, "mulss xmm0, xmm2"], [44, "addss xmm1, xmm0"], [45, "mov eax, [rbp+var_8]"], [46, "cdqe"], [47, "movss xmm2, ds:dword_4D40C0[rax*4]"], [48, "mov eax, [rbp+var_8]"], [49, "cdqe"], [50, "movss xmm0, ds:dword_4B4CC0[rax*4]"], [51, "mulss xmm0, xmm2"], [52, "mov eax, [rbp+var_8]"], [53, "add eax, eax"], [54, "addss xmm0, xmm1"], [55, "cdqe"], [56, "movss ds:dword_4764C0[rax*4], xmm0"], [57, "add [rbp+var_8], 1"], [58, "cmp [rbp+var_8], 3E7Fh"], [59, "jle loc_40139B"], [60, "push offset dword_5928C0"], [61, "push offset dword_5528C0"], [62, "pxor xmm0, xmm0"], [63, "mov r9d, offset dword_5128C0"], [64, "mov r8d, offset dword_4F34C0"], [65, "mov ecx, offset dword_4D40C0"], [66, "mov edx, offset dword_4B4CC0"], [67, "mov esi, offset x"], [68, "mov edi, offset dword_4764C0"], [69, "call sub_40CF03"], [70, "add rsp, 10h"], [71, "add [rbp+var_4], 1"], [72, "cmp [rbp+var_4], 30D3Fh"], [73, "jle loc_40138F"], [74, "mov rax, [rbp+tv]"], [75, "add rax, 10h"], [76, "mov esi, 0"], [77, "mov rdi, rax"], [78, "call _gettimeofday"], [79, "mov edi, offset aS1111"], [80, "call sub_410C61"], [81, "leave"], [82, "retn"]], "data_dep": [[6, 3], [8, 6], [14, 12], [14, 57], [17, 12], [17, 57], [20, 16], [20, 19], [21, 12], [21, 57], [24, 57], [24, 12], [27, 23], [27, 26], [28, 27], [28, 20], [29, 12], [29, 57], [32, 12], [32, 57], [35, 31], [35, 34], [36, 28], [36, 35], [37, 12], [37, 57], [40, 12], [40, 57], [43, 39], [43, 42], [44, 36], [44, 43], [45, 12], [45, 57], [48, 57], [48, 12], [51, 47], [51, 50], [52, 12], [52, 57], [53, 52], [54, 51], [54, 44], [56, 54], [57, 57], [57, 12], [58, 12], [58, 57], [59, 58], [70, 70], [70, 2], [71, 71], [71, 10], [72, 10], [72, 71], [73, 72], [74, 3], [75, 74], [77, 75], [82, 80]]}
| {"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/e7691500f93bbaaebd95d46021255ed975e4aa272477671214427bf176fd55b4_e7691500f93bbaaebd95d46021255ed975e4aa272477671214427bf176fd55b4.jsonl.gz", "strip_func_name": "sub_40135C", "query": "\n\n\n__int64 __fastcall sub_40135C(struct timeval *a1)\n{\nint j; // [rsp+18h] [rbp-8h]\nint i; // [rsp+1Ch] [rbp-4h]\n\nsub_40D4E3(\"s1111\");\ngettimeofday(a1, 0LL);\nfor ( i = 0; i <= 199999; ++i )\n{\nfor ( j = 0; j <= 15999; ++j )\n*(float *)&dword_4764C0[2 * j] = (float)(*(&dword_4B4CC0 + j) * dword_4D40C0[j])\n+ (float)((float)((float)((float)(*(&dword_4B4CC0 + j) * *(&x + j))\n+ (float)(*(&x + j) * dword_4D40C0[j]))\n+ (float)(*(&dword_4B4CC0 + j) * *(&dword_4B4CC0 + j)))\n+ (float)(*(&x + j) * dword_4D40C0[j]));\nsub_40CF03(\ndword_4764C0,\n&x,\n&dword_4B4CC0,\ndword_4D40C0,\n&dword_4F34C0,\n&dword_5128C0,\n0.0,\n&dword_5528C0,\n&dword_5928C0);\n}\ngettimeofday(a1 + 1, 0LL);\nreturn sub_410C61(\"s1111\");\n}\n\n\n\nQ:[a1,i,sub_40135C,sub_40D4E3,sub_40CF03,sub_410C61,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'func_args', 'i': 'nl', 'sub_40135C': 's1111', 'sub_40D4E3': 'initialise_arrays', 'sub_40CF03': 'dummy', 'sub_410C61': 'calc_checksum'}"} |
|
smb1_parse_negotiate2 | 5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c | bi-zone | masscan-ng | NA | static size_t smb1_parse_negotiate2(struct SMBSTUFF *smb,
const unsigned char *px, size_t offset,
size_t max, struct BannerOutput *banout) {
size_t original_offset = offset;
unsigned state = smb->hdr.smb1.byte_state;
UNUSEDPARM(banout);
UNUSEDPARM(px);
if (max > offset + (smb->hdr.smb1.byte_count - smb->hdr.smb1.byte_offset))
max = offset + (smb->hdr.smb1.byte_count - smb->hdr.smb1.byte_offset);
for (; offset < max; offset++)
switch (state) {
case 0:
state = 1;
break;
default:
break;
}
smb->hdr.smb1.byte_state = (unsigned short)state;
smb->hdr.smb1.byte_offset += (unsigned short)(offset - original_offset);
return offset - original_offset;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_439DD3", "function_addr": 4431315, "binary_name": "5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c.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 [rbp+var_30], rcx"], [6, "mov [rbp+var_38], r8"], [7, "mov rax, [rbp+var_28]"], [8, "mov [rbp+var_10], rax"], [9, "mov rax, [rbp+var_18]"], [10, "movzx eax, word ptr [rax+36h]"], [11, "movzx eax, ax"], [12, "mov [rbp+var_4], eax"], [13, "mov rax, [rbp+var_18]"], [14, "movzx eax, word ptr [rax+32h]"], [15, "movzx edx, ax"], [16, "mov rax, [rbp+var_18]"], [17, "movzx eax, word ptr [rax+34h]"], [18, "movzx ecx, ax"], [19, "mov eax, edx"], [20, "sub eax, ecx"], [21, "movsxd rdx, eax"], [22, "mov rax, [rbp+var_28]"], [23, "add rax, rdx"], [24, "cmp [rbp+var_30], rax"], [25, "jbe short loc_439E6A"], [26, "mov rax, [rbp+var_18]"], [27, "movzx eax, word ptr [rax+32h]"], [28, "movzx edx, ax"], [29, "mov rax, [rbp+var_18]"], [30, "movzx eax, word ptr [rax+34h]"], [31, "movzx ecx, ax"], [32, "mov eax, edx"], [33, "sub eax, ecx"], [34, "movsxd rdx, eax"], [35, "mov rax, [rbp+var_28]"], [36, "add rax, rdx"], [37, "mov [rbp+var_30], rax"], [38, "jmp short loc_439E6A"], [39, "cmp [rbp+var_4], 0"], [40, "jnz short loc_439E64"], [41, "mov [rbp+var_4], 1"], [42, "jmp short loc_439E65"], [43, "nop"], [44, "add [rbp+var_28], 1"], [45, "mov rax, [rbp+var_28]"], [46, "cmp rax, [rbp+var_30]"], [47, "jb short loc_439E55"], [48, "mov eax, [rbp+var_4]"], [49, "mov edx, eax"], [50, "mov rax, [rbp+var_18]"], [51, "mov [rax+36h], dx"], [52, "mov rax, [rbp+var_18]"], [53, "movzx edx, word ptr [rax+34h]"], [54, "mov rax, [rbp+var_28]"], [55, "mov ecx, eax"], [56, "mov rax, [rbp+var_10]"], [57, "mov esi, eax"], [58, "mov eax, ecx"], [59, "sub eax, esi"], [60, "add edx, eax"], [61, "mov rax, [rbp+var_18]"], [62, "mov [rax+34h], dx"], [63, "mov rax, [rbp+var_28]"], [64, "sub rax, [rbp+var_10]"], [65, "pop rbp"], [66, "retn"]], "data_dep": [[7, 4], [8, 7], [9, 2], [10, 9], [11, 10], [12, 11], [13, 2], [14, 13], [15, 14], [16, 2], [17, 16], [18, 17], [19, 15], [20, 19], [20, 18], [21, 20], [22, 4], [23, 22], [23, 21], [24, 5], [24, 23], [25, 24], [26, 2], [27, 26], [28, 27], [29, 2], [30, 29], [31, 30], [32, 28], [33, 32], [33, 31], [34, 33], [35, 4], [36, 34], [36, 35], [37, 36], [39, 12], [39, 41], [40, 39], [44, 44], [44, 4], [45, 4], [45, 44], [46, 45], [46, 5], [46, 37], [47, 46], [48, 41], [48, 12], [49, 48], [50, 2], [51, 50], [51, 49], [52, 2], [53, 52], [53, 51], [54, 4], [54, 44], [55, 54], [56, 8], [57, 56], [58, 55], [59, 58], [59, 57], [60, 53], [60, 59], [61, 2], [62, 61], [62, 60], [63, 4], [63, 44], [64, 63], [64, 8], [65, 0], [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/5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c_5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c.jsonl.gz", "strip_func_name": "sub_439DD3", "query": "\n\n\nunsigned __int64 __fastcall sub_439DD3(unsigned __int16 *a1, __int64 a2, unsigned __int64 a3, unsigned __int64 a4)\n{\nunsigned __int64 v5; // [rsp+8h] [rbp-30h]\nunsigned __int64 v6; // [rsp+10h] [rbp-28h]\nint v7; // [rsp+34h] [rbp-4h]\n\nv6 = a3;\nv5 = a4;\nv7 = a1[27];\nif ( a4 > a1[25] - a1[26] + a3 )\nv5 = a1[25] - a1[26] + a3;\nwhile ( v6 < v5 )\n{\nif ( !v7 )\nv7 = 1;\n++v6;\n}\na1[27] = v7;\na1[26] += v6 - a3;\nreturn v6 - a3;\n}\n\n\n\nQ:[a3,a4,a1,a2,v5,v6,v7,sub_439DD3,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'offset', 'a4': 'max', 'a1': 'smb', 'a2': 'px', 'v5': 'maxa', 'v6': 'offseta', 'v7': 'state', 'sub_439DD3': 'smb1_parse_negotiate2'}"} |
|
close_pair | 26ed2b34fb46086588f2bdc8c38fd25410f82edabc1bab24213dd4c0c0fc7725 | XboxDev | xbox-linux | NA | static inline void close_pair(int fd[2])
{
close(fd[0]);
close(fd[1]);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41A468", "function_addr": 4301928, "binary_name": "26ed2b34fb46086588f2bdc8c38fd25410f82edabc1bab24213dd4c0c0fc7725.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, "mov edi, eax"], [7, "call _close"], [8, "mov rax, [rbp+var_8]"], [9, "add rax, 4"], [10, "mov eax, [rax]"], [11, "mov edi, eax"], [12, "call _close"], [13, "nop"], [14, "leave"], [15, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [8, 3], [9, 8], [10, 9], [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/26ed2b34fb46086588f2bdc8c38fd25410f82edabc1bab24213dd4c0c0fc7725_26ed2b34fb46086588f2bdc8c38fd25410f82edabc1bab24213dd4c0c0fc7725.jsonl.gz", "strip_func_name": "sub_41A468", "query": "\n\n\nint __fastcall sub_41A468(int *a1)\n{\nclose(*a1);\nreturn close(a1[1]);\n}\n\n\n\nQ:[a1,sub_41A468,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fd', 'sub_41A468': 'close_pair'}"} |
|
bpf_object__set_priv | f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a | Netronome | libkefir | NA | int bpf_object__set_priv(struct bpf_object *obj, void *priv,
bpf_object_clear_priv_t clear_priv)
{
if (obj->priv && obj->clear_priv)
obj->clear_priv(obj, obj->priv);
obj->priv = priv;
obj->clear_priv = clear_priv;
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_422CD6", "function_addr": 4336854, "binary_name": "f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a.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, "mov rax, [rax+188h]"], [8, "test rax, rax"], [9, "jz short loc_422D2C"], [10, "mov rax, [rbp+var_8]"], [11, "mov rax, [rax+190h]"], [12, "test rax, rax"], [13, "jz short loc_422D2C"], [14, "mov rax, [rbp+var_8]"], [15, "mov rcx, [rax+190h]"], [16, "mov rax, [rbp+var_8]"], [17, "mov rdx, [rax+188h]"], [18, "mov rax, [rbp+var_8]"], [19, "mov rsi, rdx"], [20, "mov rdi, rax"], [21, "call rcx"], [22, "mov rax, [rbp+var_8]"], [23, "mov rdx, [rbp+var_10]"], [24, "mov [rax+188h], rdx"], [25, "mov rax, [rbp+var_8]"], [26, "mov rdx, [rbp+var_18]"], [27, "mov [rax+190h], rdx"], [28, "mov eax, 0"], [29, "leave"], [30, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 8], [10, 3], [11, 10], [12, 11], [13, 12], [14, 3], [15, 14], [16, 3], [17, 16], [18, 3], [19, 17], [20, 18], [21, 15], [22, 3], [23, 4], [24, 23], [24, 22], [25, 3], [26, 5], [27, 25], [27, 26], [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/f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a_f697a76c1b8a68f879e8a28d13b1cbc21453acbdddc35cda76ca2582bbd7166a.jsonl.gz", "strip_func_name": "sub_422CD6", "query": "\n\n\n__int64 __fastcall sub_422CD6(__int64 a1, __int64 a2, __int64 a3)\n{\nif ( *(_QWORD *)(a1 + 392) && *(_QWORD *)(a1 + 400) )\n(*(void (__fastcall **)(__int64, _QWORD))(a1 + 400))(a1, *(_QWORD *)(a1 + 392));\n*(_QWORD *)(a1 + 392) = a2;\n*(_QWORD *)(a1 + 400) = a3;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,sub_422CD6,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'clear_priv', 'a1': 'obj', 'a2': 'priv', 'sub_422CD6': 'bpf_object__set_priv'}"} |
|
str_trim_len | d8fe1cf14c7797d41edff57ba0de767ca217a24d0250b7a5213b7f36c0c687c9 | sunmingbao | linux-dev-framework | NA | int str_trim_len(char *output, char * input, int len)
{
char str_temp[len+1];
char *head=str_temp;
char *tail=str_temp + (len - 1);
if (len <=0) return 0;
strcpy(str_temp, input);
while (len >0 && !(isgraph(*head)))
{
head++;
len--;
}
if (len <=0) return len;
while (len >0 && !(isgraph(*tail)))
{
*tail='\0';
tail--;
len--;
}
if (len <=0) return len;
strcpy(output, str_temp);
return len;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "str_trim_len", "function_addr": 4224636, "binary_name": "d8fe1cf14c7797d41edff57ba0de767ca217a24d0250b7a5213b7f36c0c687c9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 48h"], [4, "mov [rbp+var_38], rdi"], [5, "mov [rbp+src], rsi"], [6, "mov [rbp+var_44], edx"], [7, "mov rax, rsp"], [8, "mov rbx, rax"], [9, "mov eax, [rbp+var_44]"], [10, "add eax, 1"], [11, "movsxd rdx, eax"], [12, "sub rdx, 1"], [13, "mov [rbp+var_28], rdx"], [14, "movsxd rdx, eax"], [15, "mov r10, rdx"], [16, "mov r11d, 0"], [17, "movsxd rdx, eax"], [18, "mov r8, rdx"], [19, "mov r9d, 0"], [20, "cdqe"], [21, "mov edx, 10h"], [22, "sub rdx, 1"], [23, "add rax, rdx"], [24, "mov ecx, 10h"], [25, "mov edx, 0"], [26, "div rcx"], [27, "imul rax, 10h"], [28, "sub rsp, rax"], [29, "mov rax, rsp"], [30, "add rax, 0"], [31, "mov [rbp+dest], rax"], [32, "mov rax, [rbp+dest]"], [33, "mov [rbp+var_20], rax"], [34, "mov eax, [rbp+var_44]"], [35, "sub eax, 1"], [36, "movsxd rdx, eax"], [37, "mov rax, [rbp+dest]"], [38, "add rax, rdx"], [39, "mov [rbp+var_18], rax"], [40, "cmp [rbp+var_44], 0"], [41, "jg short loc_407718"], [42, "mov eax, 0"], [43, "jmp loc_4077C0"], [44, "mov rdx, [rbp+src]"], [45, "mov rax, [rbp+dest]"], [46, "mov rsi, rdx"], [47, "mov rdi, rax"], [48, "call _strcpy"], [49, "jmp short loc_407736"], [50, "add [rbp+var_20], 1"], [51, "sub [rbp+var_44], 1"], [52, "cmp [rbp+var_44], 0"], [53, "jle short loc_40775D"], [54, "call ___ctype_b_loc"], [55, "mov rdx, [rax]"], [56, "mov rax, [rbp+var_20]"], [57, "movzx eax, byte ptr [rax]"], [58, "movsx rax, al"], [59, "add rax, rax"], [60, "add rax, rdx"], [61, "movzx eax, word ptr [rax]"], [62, "test ax, ax"], [63, "jns short loc_40772D"], [64, "cmp [rbp+var_44], 0"], [65, "jg short loc_407778"], [66, "mov eax, [rbp+var_44]"], [67, "jmp short loc_4077C0"], [68, "mov rax, [rbp+var_18]"], [69, "mov byte ptr [rax], 0"], [70, "sub [rbp+var_18], 1"], [71, "sub [rbp+var_44], 1"], [72, "cmp [rbp+var_44], 0"], [73, "jle short loc_40779F"], [74, "call ___ctype_b_loc"], [75, "mov rdx, [rax]"], [76, "mov rax, [rbp+var_18]"], [77, "movzx eax, byte ptr [rax]"], [78, "movsx rax, al"], [79, "add rax, rax"], [80, "add rax, rdx"], [81, "movzx eax, word ptr [rax]"], [82, "test ax, ax"], [83, "jns short loc_407768"], [84, "cmp [rbp+var_44], 0"], [85, "jg short loc_4077AA"], [86, "mov eax, [rbp+var_44]"], [87, "jmp short loc_4077C0"], [88, "mov rdx, [rbp+dest]"], [89, "mov rax, [rbp+var_38]"], [90, "mov rsi, rdx"], [91, "mov rdi, rax"], [92, "call _strcpy"], [93, "mov eax, [rbp+var_44]"], [94, "mov rsp, rbx"], [95, "mov rbx, [rbp+var_8]"], [96, "leave"], [97, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 6], [10, 9], [11, 10], [12, 11], [13, 12], [14, 10], [15, 14], [17, 10], [18, 17], [22, 21], [23, 22], [23, 10], [26, 24], [27, 23], [28, 3], [28, 27], [29, 28], [30, 29], [31, 30], [32, 31], [33, 32], [34, 6], [35, 34], [36, 35], [37, 31], [38, 36], [38, 37], [39, 38], [40, 6], [41, 40], [44, 5], [45, 31], [46, 44], [47, 45], [50, 33], [50, 50], [51, 6], [51, 51], [52, 51], [52, 6], [53, 52], [55, 54], [56, 50], [56, 33], [57, 56], [58, 57], [59, 58], [60, 55], [60, 59], [61, 60], [62, 61], [63, 62], [64, 6], [64, 51], [65, 64], [66, 6], [66, 51], [68, 70], [68, 39], [69, 68], [70, 39], [70, 70], [71, 51], [71, 71], [71, 6], [72, 6], [72, 51], [72, 71], [73, 72], [75, 74], [75, 69], [76, 70], [76, 39], [77, 76], [77, 69], [78, 77], [79, 78], [80, 75], [80, 79], [81, 69], [81, 80], [82, 81], [83, 82], [84, 6], [84, 51], [84, 71], [85, 84], [86, 51], [86, 71], [86, 6], [88, 31], [89, 4], [90, 88], [91, 89], [93, 6], [93, 51], [93, 71], [94, 8], [97, 42], [97, 66], [97, 93], [97, 86]]}
| {"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/d8fe1cf14c7797d41edff57ba0de767ca217a24d0250b7a5213b7f36c0c687c9_d8fe1cf14c7797d41edff57ba0de767ca217a24d0250b7a5213b7f36c0c687c9.jsonl.gz", "strip_func_name": "str_trim_len", "query": "\n\n\n__int64 __fastcall str_trim_len(char *a1, char *a2, int a3)\n{\nvoid *v3; // rsp\n_BYTE v5[12]; // [rsp+0h] [rbp-50h] BYREF\nint v6; // [rsp+Ch] [rbp-44h]\nchar *src; // [rsp+10h] [rbp-40h]\nchar *v8; // [rsp+18h] [rbp-38h]\nchar *dest; // [rsp+20h] [rbp-30h]\n__int64 v10; // [rsp+28h] [rbp-28h]\nchar *v11; // [rsp+30h] [rbp-20h]\nchar *v12; // [rsp+38h] [rbp-18h]\n\nv8 = a1;\nsrc = a2;\nv6 = a3;\nv10 = a3 + 1 - 1LL;\nv3 = alloca(16 * ((a3 + 1 + 15LL) / 0x10uLL));\ndest = v5;\nv11 = v5;\nv12 = &v5[a3 - 1];\nif ( a3 <= 0 )\nreturn 0LL;\nstrcpy(dest, src);\nwhile ( v6 > 0 && ((*__ctype_b_loc())[*v11] & 0x8000u) == 0 )\n{\n++v11;\n--v6;\n}\nif ( v6 <= 0 )\nreturn (unsigned int)v6;\nwhile ( v6 > 0 && ((*__ctype_b_loc())[*v12] & 0x8000u) == 0 )\n{\n*v12-- = 0;\n--v6;\n}\nif ( v6 > 0 )\nstrcpy(v8, dest);\nreturn (unsigned int)v6;\n}\n\n\n\nQ:[a3,a1,a2,v6,src,v8,dest,v11,v12,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'len', 'a1': 'output', 'a2': 'input', 'v6': 'lena', 'src': 'inputa', 'v8': 'outputa', 'dest': 'p_str_temp', 'v11': 'head', 'v12': 'tail'}"} |
|
shellNomemError | 8efe7c3c3820e4b225da8754cc0c08714f5d3c9833a642e99478b7133b71820a | diegomacario | Poor-Fox | NA | static int shellNomemError(void){
raw_printf(stderr, "Error: out of memory\n");
return 1;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4A2FAE", "function_addr": 4861870, "binary_name": "8efe7c3c3820e4b225da8754cc0c08714f5d3c9833a642e99478b7133b71820a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov rax, cs:stderr"], [3, "mov rcx, rax"], [4, "mov edx, 15h"], [5, "mov esi, 1"], [6, "mov edi, offset aErrorOutOfMemo"], [7, "call _fwrite"], [8, "mov eax, 1"], [9, "pop rbp"], [10, "retn"]], "data_dep": [[3, 2], [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/8efe7c3c3820e4b225da8754cc0c08714f5d3c9833a642e99478b7133b71820a_8efe7c3c3820e4b225da8754cc0c08714f5d3c9833a642e99478b7133b71820a.jsonl.gz", "strip_func_name": "sub_4A2FAE", "query": "\n\n\n__int64 sub_4A2FAE()\n{\nfwrite(\"Error: out of memory\\n\", 1uLL, 0x15uLL, stderr);\nreturn 1LL;\n}\n\n\n\nQ:[sub_4A2FAE,]\nAssistant: ", "hints": "[]", "response": "{'sub_4A2FAE': 'shellNomemError'}"} |
|
cmd_identify_complete | 3deaa26b246f8964cefc554f8e45c3fa1927a4b1f93f252cc3bdaf69e1399b61 | EtchedPixels | EmulatorKit | NA | static void cmd_identify_complete(struct ide_taskfile *tf)
{
struct ide_drive *d = tf->drive;
memcpy(d->data, d->identify, 512);
data_in_state(tf);
/* Arrange to copy just the identify buffer */
d->dptr = d->data;
d->length = 1;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F371", "function_addr": 4256625, "binary_name": "3deaa26b246f8964cefc554f8e45c3fa1927a4b1f93f252cc3bdaf69e1399b61.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov rax, [rax+10h]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_8]"], [8, "lea rcx, [rax+226h]"], [9, "mov rax, [rbp+var_8]"], [10, "add rax, 26h "], [11, "mov edx, 200h"], [12, "mov rsi, rcx"], [13, "mov rdi, rax"], [14, "call _memcpy"], [15, "mov rax, [rbp+var_18]"], [16, "mov rdi, rax"], [17, "call sub_40F03A"], [18, "mov rax, [rbp+var_8]"], [19, "lea rdx, [rax+26h]"], [20, "mov rax, [rbp+var_8]"], [21, "mov [rax+428h], rdx"], [22, "mov rax, [rbp+var_8]"], [23, "mov dword ptr [rax+440h], 1"], [24, "nop"], [25, "leave"], [26, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 6], [10, 9], [12, 8], [13, 10], [15, 3], [16, 15], [18, 6], [19, 18], [19, 11], [20, 6], [21, 19], [21, 20], [22, 6], [23, 22], [26, 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/3deaa26b246f8964cefc554f8e45c3fa1927a4b1f93f252cc3bdaf69e1399b61_3deaa26b246f8964cefc554f8e45c3fa1927a4b1f93f252cc3bdaf69e1399b61.jsonl.gz", "strip_func_name": "sub_40F371", "query": "\n\n\n__int64 __fastcall sub_40F371(__int64 a1)\n{\n__int64 result; // rax\n__int64 v2; // [rsp+18h] [rbp-8h]\n\nv2 = *(_QWORD *)(a1 + 16);\nmemcpy((void *)(v2 + 38), (const void *)(v2 + 550), 0x200uLL);\nsub_40F03A(a1);\n*(_QWORD *)(v2 + 1064) = v2 + 38;\nresult = v2;\n*(_DWORD *)(v2 + 1088) = 1;\nreturn result;\n}\n\n\n\nQ:[a1,v2,sub_40F371,sub_40F03A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'tf_0', 'v2': 'd', 'sub_40F371': 'cmd_identify_complete', 'sub_40F03A': 'data_in_state'}"} |
|
DecodeCacheOpMM | 0ed415916a87ea50b57855dc7656ad162af56e16e4123e6135eccc15202117d8 | michalsc | Emu68 | NA | static DecodeStatus DecodeCacheOpMM(MCInst *Inst,
unsigned Insn, uint64_t Address, MCRegisterInfo *Decoder)
{
int Offset = SignExtend32(Insn & 0xfff, 12);
unsigned Base = fieldFromInstruction(Insn, 16, 5);
unsigned Hint = fieldFromInstruction(Insn, 21, 5);
Base = getReg(Decoder, Mips_GPR32RegClassID, Base);
MCOperand_CreateReg0(Inst, Base);
MCOperand_CreateImm0(Inst, Offset);
MCOperand_CreateImm0(Inst, Hint);
return MCDisassembler_Success;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4B4B35", "function_addr": 4934453, "binary_name": "0ed415916a87ea50b57855dc7656ad162af56e16e4123e6135eccc15202117d8.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 eax, [rbp+var_1C]"], [8, "and eax, 0FFFh"], [9, "mov esi, 0Ch"], [10, "mov edi, eax"], [11, "call sub_4A7DDD"], [12, "mov [rbp+var_4], eax"], [13, "mov eax, [rbp+var_1C]"], [14, "mov edx, 5"], [15, "mov esi, 10h"], [16, "mov edi, eax"], [17, "call sub_4A8D0B"], [18, "mov [rbp+var_8], eax"], [19, "mov eax, [rbp+var_1C]"], [20, "mov edx, 5"], [21, "mov esi, 15h"], [22, "mov edi, eax"], [23, "call sub_4A8D0B"], [24, "mov [rbp+var_C], eax"], [25, "mov edx, [rbp+var_8]"], [26, "mov rax, [rbp+var_30]"], [27, "mov esi, 8"], [28, "mov rdi, rax"], [29, "call sub_4B3C25"], [30, "mov [rbp+var_8], eax"], [31, "mov edx, [rbp+var_8]"], [32, "mov rax, [rbp+var_18]"], [33, "mov esi, edx"], [34, "mov rdi, rax"], [35, "call sub_437E96"], [36, "mov eax, [rbp+var_4]"], [37, "movsxd rdx, eax"], [38, "mov rax, [rbp+var_18]"], [39, "mov rsi, rdx"], [40, "mov rdi, rax"], [41, "call sub_437F1F"], [42, "mov edx, [rbp+var_C]"], [43, "mov rax, [rbp+var_18]"], [44, "mov rsi, rdx"], [45, "mov rdi, rax"], [46, "call sub_437F1F"], [47, "mov eax, 3"], [48, "leave"], [49, "retn"]], "data_dep": [[7, 4], [8, 7], [10, 8], [12, 11], [13, 4], [16, 13], [18, 17], [19, 4], [22, 19], [24, 23], [25, 18], [26, 6], [28, 26], [30, 29], [31, 30], [32, 3], [33, 31], [34, 32], [36, 12], [37, 36], [38, 3], [39, 37], [40, 38], [42, 24], [43, 3], [44, 42], [45, 43], [49, 47]]}
| {"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/0ed415916a87ea50b57855dc7656ad162af56e16e4123e6135eccc15202117d8_0ed415916a87ea50b57855dc7656ad162af56e16e4123e6135eccc15202117d8.jsonl.gz", "strip_func_name": "sub_4B4B35", "query": "\n\n\n__int64 __fastcall sub_4B4B35(__int64 a1, unsigned int a2, __int64 a3, __int64 a4)\n{\nunsigned int v6; // [rsp+24h] [rbp-Ch]\nunsigned int v7; // [rsp+28h] [rbp-8h]\nint v8; // [rsp+28h] [rbp-8h]\nint v9; // [rsp+2Ch] [rbp-4h]\n\nv9 = sub_4A7DDD(a2 & 0xFFF, 12);\nv7 = sub_4A8D0B(a2, 16, 5);\nv6 = sub_4A8D0B(a2, 21, 5);\nv8 = sub_4B3C25(a4, 8u, v7);\nsub_437E96(a1, v8);\nsub_437F1F(a1, v9);\nsub_437F1F(a1, v6);\nreturn 3LL;\n}\n\n\n\nQ:[a4,a1,a2,a3,v6,v8,v9,sub_4B4B35,sub_4A7DDD,sub_4A8D0B,sub_4B3C25,sub_437E96,sub_437F1F,]\nAssistant: ", "hints": "[]", "response": "{'a4': 'Decoder', 'a1': 'Inst', 'a2': 'Insn', 'a3': 'Address', 'v6': 'Hint', 'v8': 'Base', 'v9': 'Offset', 'sub_4B4B35': 'DecodeCacheOpMM', 'sub_4A7DDD': 'SignExtend32_0', 'sub_4A8D0B': 'fieldFromInstruction_0', 'sub_4B3C25': 'getReg', 'sub_437E96': 'MCOperand_CreateReg0', 'sub_437F1F': 'MCOperand_CreateImm0'}"} |
|
pj_turn_session_create | 24a2637591f28727b21989feacd6e39416a2c11ff374047913dc0e05514c7835 | AonCyberLabs | D-Modem | NA | PJ_DEF(pj_status_t) pj_turn_session_create( const pj_stun_config *cfg,
const char *name,
int af,
pj_turn_tp_type conn_type,
pj_grp_lock_t *grp_lock,
const pj_turn_session_cb *cb,
unsigned options,
void *user_data,
pj_turn_session **p_sess)
{
pj_pool_t *pool;
pj_turn_session *sess;
pj_stun_session_cb stun_cb;
pj_status_t status;
PJ_ASSERT_RETURN(cfg && cfg->pf && cb && p_sess, PJ_EINVAL);
PJ_ASSERT_RETURN(cb->on_send_pkt, PJ_EINVAL);
PJ_UNUSED_ARG(options);
if (name == NULL)
name = "turn%p";
/* Allocate and create TURN session */
pool = pj_pool_create(cfg->pf, name, PJNATH_POOL_LEN_TURN_SESS,
PJNATH_POOL_INC_TURN_SESS, NULL);
sess = PJ_POOL_ZALLOC_T(pool, pj_turn_session);
sess->pool = pool;
sess->obj_name = pool->obj_name;
sess->timer_heap = cfg->timer_heap;
sess->af = (pj_uint16_t)af;
sess->conn_type = conn_type;
sess->ka_interval = PJ_TURN_KEEP_ALIVE_SEC;
sess->user_data = user_data;
sess->next_ch = PJ_TURN_CHANNEL_MIN;
/* Copy STUN session */
pj_memcpy(&sess->stun_cfg, cfg, sizeof(pj_stun_config));
/* Copy callback */
pj_memcpy(&sess->cb, cb, sizeof(*cb));
/* Peer hash table */
sess->ch_table = pj_hash_create(pool, PJ_TURN_CHANNEL_HTABLE_SIZE);
/* Permission hash table */
sess->perm_table = pj_hash_create(pool, PJ_TURN_PERM_HTABLE_SIZE);
/* Session lock */
if (grp_lock) {
sess->grp_lock = grp_lock;
} else {
status = pj_grp_lock_create(pool, NULL, &sess->grp_lock);
if (status != PJ_SUCCESS) {
pj_pool_release(pool);
return status;
}
}
pj_grp_lock_add_ref(sess->grp_lock);
pj_grp_lock_add_handler(sess->grp_lock, pool, sess,
&turn_sess_on_destroy);
/* Timer */
pj_timer_entry_init(&sess->timer, TIMER_NONE, sess, &on_timer_event);
/* Create STUN session */
pj_bzero(&stun_cb, sizeof(stun_cb));
stun_cb.on_send_msg = &stun_on_send_msg;
stun_cb.on_request_complete = &stun_on_request_complete;
stun_cb.on_rx_indication = &stun_on_rx_indication;
status = pj_stun_session_create(&sess->stun_cfg, sess->obj_name, &stun_cb,
PJ_FALSE, sess->grp_lock, &sess->stun);
if (status != PJ_SUCCESS) {
do_destroy(sess);
return status;
}
/* Attach ourself to STUN session */
pj_stun_session_set_user_data(sess->stun, sess);
/* Done */
PJ_LOG(4,(sess->obj_name, "TURN client session created"));
*p_sess = sess;
return PJ_SUCCESS;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40D413", "function_addr": 4248595, "binary_name": "24a2637591f28727b21989feacd6e39416a2c11ff374047913dc0e05514c7835.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 70h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+var_50], rsi"], [5, "mov [rbp+var_54], edx"], [6, "mov [rbp+var_58], ecx"], [7, "mov [rbp+var_60], r8"], [8, "mov [rbp+var_68], r9"], [9, "cmp [rbp+var_48], 0"], [10, "jz short loc_40D452"], [11, "mov rax, [rbp+var_48]"], [12, "mov rax, [rax]"], [13, "test rax, rax"], [14, "jz short loc_40D452"], [15, "cmp [rbp+var_68], 0"], [16, "jz short loc_40D452"], [17, "cmp [rbp+arg_10], 0"], [18, "jnz short loc_40D496"], [19, "cmp [rbp+var_48], 0"], [20, "jz short loc_40D473"], [21, "mov rax, [rbp+var_48]"], [22, "mov rax, [rax]"], [23, "test rax, rax"], [24, "jz short loc_40D473"], [25, "cmp [rbp+var_68], 0"], [26, "jz short loc_40D473"], [27, "cmp [rbp+arg_10], 0"], [28, "jnz short loc_40D48C"], [29, "mov ecx, offset aPjTurnSessionC"], [30, "mov edx, 101h"], [31, "mov esi, offset aSrcPjnathTurnS"], [32, "mov edi, offset aCfgCfgPfCbPSes"], [33, "call ___assert_fail"], [34, "mov eax, 11174h"], [35, "jmp locret_40D771"], [36, "mov rax, [rbp+var_68]"], [37, "mov rax, [rax]"], [38, "test rax, rax"], [39, "jnz short loc_40D4D1"], [40, "mov rax, [rbp+var_68]"], [41, "mov rax, [rax]"], [42, "test rax, rax"], [43, "jnz short loc_40D4C7"], [44, "mov ecx, offset aPjTurnSessionC"], [45, "mov edx, 102h"], [46, "mov esi, offset aSrcPjnathTurnS"], [47, "mov edi, offset aCbOnSendPkt"], [48, "call ___assert_fail"], [49, "mov eax, 11174h"], [50, "jmp locret_40D771"], [51, "cmp [rbp+var_50], 0"], [52, "jnz short loc_40D4E0"], [53, "mov [rbp+var_50], offset aTurnP"], [54, "mov rax, [rbp+var_48]"], [55, "mov rax, [rax]"], [56, "mov rsi, [rbp+var_50]"], [57, "mov r8d, 0"], [58, "mov ecx, 3E8h"], [59, "mov edx, 3E8h"], [60, "mov rdi, rax"], [61, "call sub_433E97"], [62, "mov [rbp+var_8], rax"], [63, "mov rax, [rbp+var_8]"], [64, "mov esi, 0D38h"], [65, "mov rdi, rax"], [66, "call sub_40D37E"], [67, "mov [rbp+var_10], rax"], [68, "mov rax, [rbp+var_10]"], [69, "mov rdx, [rbp+var_8]"], [70, "mov [rax], rdx"], [71, "mov rax, [rbp+var_8]"], [72, "lea rdx, [rax+10h]"], [73, "mov rax, [rbp+var_10]"], [74, "mov [rax+8], rdx"], [75, "mov rax, [rbp+var_48]"], [76, "mov rdx, [rax+10h]"], [77, "mov rax, [rbp+var_10]"], [78, "mov [rax+0C8h], rdx"], [79, "mov eax, [rbp+var_54]"], [80, "mov edx, eax"], [81, "mov rax, [rbp+var_10]"], [82, "mov [rax+0F2h], dx"], [83, "mov rax, [rbp+var_10]"], [84, "mov edx, [rbp+var_58]"], [85, "mov [rax+0F4h], edx"], [86, "mov rax, [rbp+var_10]"], [87, "mov dword ptr [rax+0B4h], 0Fh"], [88, "mov rax, [rbp+var_10]"], [89, "mov rdx, [rbp+arg_8]"], [90, "mov [rax+48h], rdx"], [91, "mov rax, [rbp+var_10]"], [92, "mov word ptr [rax+0D34h], 4000h"], [93, "mov rax, [rbp+var_10]"], [94, "lea rcx, [rax+50h]"], [95, "mov rax, [rbp+var_48]"], [96, "mov edx, 38h "], [97, "mov rsi, rax"], [98, "mov rdi, rcx"], [99, "call sub_40D351"], [100, "mov rax, [rbp+var_10]"], [101, "lea rcx, [rax+10h]"], [102, "mov rax, [rbp+var_68]"], [103, "mov edx, 38h "], [104, "mov rsi, rax"], [105, "mov rdi, rcx"], [106, "call sub_40D351"], [107, "mov rax, [rbp+var_8]"], [108, "mov esi, 8"], [109, "mov rdi, rax"], [110, "call sub_430624"], [111, "mov rdx, [rbp+var_10]"], [112, "mov [rdx+160h], rax"], [113, "mov rax, [rbp+var_8]"], [114, "mov esi, 8"], [115, "mov rdi, rax"], [116, "call sub_430624"], [117, "mov rdx, [rbp+var_10]"], [118, "mov [rdx+168h], rax"], [119, "cmp [rbp+var_60], 0"], [120, "jz short loc_40D616"], [121, "mov rax, [rbp+var_10]"], [122, "mov rdx, [rbp+var_60]"], [123, "mov [rax+90h], rdx"], [124, "jmp short loc_40D64F"], [125, "mov rax, [rbp+var_10]"], [126, "lea rdx, [rax+90h]"], [127, "mov rax, [rbp+var_8]"], [128, "mov esi, 0"], [129, "mov rdi, rax"], [130, "call sub_4326C1"], [131, "mov [rbp+var_14], eax"], [132, "cmp [rbp+var_14], 0"], [133, "jz short loc_40D64F"], [134, "mov rax, [rbp+var_8]"], [135, "mov rdi, rax"], [136, "call sub_433EDA"], [137, "mov eax, [rbp+var_14]"], [138, "jmp locret_40D771"], [139, "mov rax, [rbp+var_10]"], [140, "mov rax, [rax+90h]"], [141, "mov rdi, rax"], [142, "call sub_432B39"], [143, "mov rax, [rbp+var_10]"], [144, "mov rax, [rax+90h]"], [145, "mov rdx, [rbp+var_10]"], [146, "mov rsi, [rbp+var_8]"], [147, "mov ecx, offset sub_40D773"], [148, "mov rdi, rax"], [149, "call sub_4329EC"], [150, "mov rax, [rbp+var_10]"], [151, "lea rdi, [rax+0D0h]"], [152, "mov rax, [rbp+var_10]"], [153, "mov ecx, offset sub_4113BA"], [154, "mov rdx, rax"], [155, "mov esi, 0"], [156, "call sub_4425E8"], [157, "lea rax, [rbp+var_40]"], [158, "mov esi, 20h "], [159, "mov rdi, rax"], [160, "call sub_40D329"], [161, "mov [rbp+var_40], offset sub_40F9A9"], [162, "mov [rbp+var_30], offset sub_410074"], [163, "mov [rbp+var_28], offset sub_410842"], [164, "mov rax, [rbp+var_10]"], [165, "lea rsi, [rax+0A8h]"], [166, "mov rax, [rbp+var_10]"], [167, "mov rcx, [rax+90h]"], [168, "mov rax, [rbp+var_10]"], [169, "mov rax, [rax+8]"], [170, "mov rdx, [rbp+var_10]"], [171, "lea rdi, [rdx+50h]"], [172, "lea rdx, [rbp+var_40]"], [173, "mov r9, rsi"], [174, "mov r8, rcx"], [175, "mov ecx, 0"], [176, "mov rsi, rax"], [177, "call sub_415AAD"], [178, "mov [rbp+var_14], eax"], [179, "cmp [rbp+var_14], 0"], [180, "jz short loc_40D723"], [181, "mov rax, [rbp+var_10]"], [182, "mov rdi, rax"], [183, "call sub_40D7C6"], [184, "mov eax, [rbp+var_14]"], [185, "jmp short locret_40D771"], [186, "mov rax, [rbp+var_10]"], [187, "mov rax, [rax+0A8h]"], [188, "mov rdx, [rbp+var_10]"], [189, "mov rsi, rdx"], [190, "mov rdi, rax"], [191, "call sub_415ECD"], [192, "call sub_433007"], [193, "cmp eax, 3"], [194, "jle short loc_40D761"], [195, "mov rax, [rbp+var_10]"], [196, "mov rax, [rax+8]"], [197, "mov esi, offset aTurnClientSess"], [198, "mov rdi, rax"], [199, "mov eax, 0"], [200, "call sub_43397B"], [201, "mov rax, [rbp+arg_10]"], [202, "mov rdx, [rbp+var_10]"], [203, "mov [rax], rdx"], [204, "mov eax, 0"], [205, "leave"], [206, "retn"]], "data_dep": [[9, 3], [10, 9], [11, 3], [12, 11], [13, 12], [14, 13], [15, 8], [16, 15], [18, 17], [19, 3], [20, 19], [21, 3], [22, 21], [23, 22], [24, 23], [25, 8], [26, 25], [28, 27], [36, 8], [37, 36], [38, 37], [39, 38], [40, 8], [41, 40], [42, 41], [43, 42], [51, 4], [52, 51], [54, 3], [55, 54], [56, 53], [56, 4], [60, 55], [62, 61], [63, 62], [65, 63], [67, 66], [68, 67], [69, 62], [70, 68], [70, 69], [71, 62], [72, 70], [72, 69], [72, 71], [73, 67], [74, 73], [74, 72], [75, 3], [76, 74], [76, 75], [77, 67], [78, 77], [78, 76], [79, 5], [80, 79], [81, 67], [82, 81], [82, 80], [83, 67], [84, 6], [85, 84], [85, 83], [86, 67], [87, 86], [88, 67], [89, 62], [90, 88], [90, 89], [91, 67], [92, 91], [93, 67], [94, 93], [94, 58], [94, 92], [95, 3], [97, 95], [98, 94], [100, 67], [101, 92], [101, 94], [101, 100], [102, 8], [104, 102], [105, 101], [107, 62], [109, 107], [111, 67], [112, 111], [112, 110], [113, 62], [115, 113], [117, 67], [118, 117], [118, 116], [119, 7], [120, 119], [121, 67], [122, 7], [123, 121], [123, 122], [125, 67], [126, 117], [126, 92], [126, 85], [126, 112], [126, 78], [126, 87], [126, 82], [126, 125], [126, 70], [126, 118], [126, 74], [126, 90], [127, 62], [129, 127], [131, 130], [132, 131], [133, 132], [134, 62], [135, 134], [137, 131], [139, 67], [140, 82], [140, 139], [140, 123], [140, 70], [140, 118], [140, 74], [140, 90], [140, 92], [140, 85], [140, 112], [140, 78], [140, 87], [141, 140], [143, 67], [144, 123], [144, 70], [144, 143], [144, 118], [144, 74], [144, 90], [144, 92], [144, 85], [144, 112], [144, 78], [144, 87], [144, 82], [145, 67], [146, 62], [148, 144], [150, 67], [151, 82], [151, 148], [151, 123], [151, 150], [151, 70], [151, 118], [151, 74], [151, 90], [151, 92], [151, 85], [151, 112], [151, 78], [151, 87], [152, 67], [154, 152], [157, 156], [159, 157], [164, 67], [165, 118], [165, 74], [165, 90], [165, 92], [165, 85], [165, 158], [165, 112], [165, 78], [165, 87], [165, 82], [165, 164], [165, 123], [165, 70], [166, 67], [167, 166], [167, 123], [167, 70], [167, 118], [167, 90], [167, 74], [167, 92], [167, 85], [167, 112], [167, 78], [167, 87], [167, 82], [168, 67], [169, 118], [169, 90], [169, 74], [169, 78], [169, 92], [169, 85], [169, 112], [169, 87], [169, 123], [169, 82], [169, 168], [169, 70], [170, 67], [171, 70], [171, 118], [171, 74], [171, 170], [171, 90], [171, 92], [171, 85], [171, 112], [171, 78], [171, 87], [171, 82], [171, 123], [171, 159], [172, 161], [172, 170], [173, 165], [174, 167], [176, 169], [178, 177], [179, 178], [180, 179], [181, 67], [182, 181], [184, 178], [186, 67], [187, 112], [187, 78], [187, 87], [187, 82], [187, 123], [187, 70], [187, 118], [187, 74], [187, 186], [187, 90], [187, 92], [187, 85], [188, 67], [189, 188], [190, 187], [193, 192], [194, 193], [195, 67], [196, 90], [196, 92], [196, 85], [196, 112], [196, 78], [196, 87], [196, 82], [196, 123], [196, 70], [196, 118], [196, 74], [196, 195], [198, 196], [201, 67], [202, 67], [203, 202], [203, 201], [206, 34], [206, 184], [206, 49], [206, 204], [206, 137]]}
| {"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/24a2637591f28727b21989feacd6e39416a2c11ff374047913dc0e05514c7835_24a2637591f28727b21989feacd6e39416a2c11ff374047913dc0e05514c7835.jsonl.gz", "strip_func_name": "sub_40D413", "query": "\n\n\n__int64 __fastcall sub_40D413(_QWORD *a1, const char *a2, __int16 a3, int a4, __int64 a5, _QWORD *a6, int a7, __int64 a8, _QWORD *a9)\n{\n__int64 result; // rax\nint v10; // edx\nint v11; // ecx\nint v12; // er8\nint v13; // er9\nconst char *v18; // [rsp+20h] [rbp-50h]\n__int64 v19[5]; // [rsp+30h] [rbp-40h] BYREF\nunsigned int v20; // [rsp+5Ch] [rbp-14h]\n__int64 v21; // [rsp+60h] [rbp-10h]\n__int64 v22; // [rsp+68h] [rbp-8h]\n\nv18 = a2;\nif ( a1 && *a1 && a6 && a9 )\n{\nif ( !*a6 )\n__assert_fail(\"cb->on_send_pkt\", \"../src/pjnath/turn_session.c\", 0x102u, \"pj_turn_session_create\");\nif ( !a2 )\nv18 = \"turn%p\";\nv22 = sub_433E97(*a1, v18, 1000LL, 1000LL, 0LL);\nv21 = sub_40D37E(v22, 3384LL);\n*(_QWORD *)v21 = v22;\n*(_QWORD *)(v21 + 8) = v22 + 16;\n*(_QWORD *)(v21 + 200) = a1[2];\n*(_WORD *)(v21 + 242) = a3;\n*(_DWORD *)(v21 + 244) = a4;\n*(_DWORD *)(v21 + 180) = 15;\n*(_QWORD *)(v21 + 72) = a8;\n*(_WORD *)(v21 + 3380) = 0x4000;\nsub_40D351((void *)(v21 + 80), a1, 0x38uLL);\nsub_40D351((void *)(v21 + 16), a6, 0x38uLL);\n*(_QWORD *)(v21 + 352) = sub_430624(v22, 8LL);\n*(_QWORD *)(v21 + 360) = sub_430624(v22, 8LL);\nif ( a5 )\n{\n*(_QWORD *)(v21 + 144) = a5;\n}\nelse\n{\nv20 = sub_4326C1(v22, 0LL, v21 + 144);\nif ( v20 )\n{\nsub_433EDA(v22);\nreturn v20;\n}\n}\nsub_432B39(*(_QWORD *)(v21 + 144));\nsub_4329EC(*(_QWORD *)(v21 + 144), v22, v21, sub_40D773);\nsub_4425E8(v21 + 208, 0LL, v21, sub_4113BA);\nsub_40D329(v19, 0x20uLL);\nv19[0] = (__int64)sub_40F9A9;\nv19[2] = (__int64)sub_410074;\nv19[3] = (__int64)sub_410842;\nv20 = sub_415AAD(v21 + 80, *(_QWORD *)(v21 + 8), v19, 0LL, *(_QWORD *)(v21 + 144), v21 + 168);\nif ( v20 )\n{\nsub_40D7C6(v21);\nresult = v20;\n}\nelse\n{\nsub_415ECD(*(_QWORD *)(v21 + 168), v21);\nif ( (int)sub_433007() > 3 )\nsub_43397B(*(_QWORD *)(v21 + 8), (unsigned int)\"TURN client session created\", v10, v11, v12, v13);\n*a9 = v21;\nresult = 0LL;\n}\n}\nelse\n{\nif ( !a1 || !*a1 || !a6 || !a9 )\n__assert_fail(\"cfg && cfg->pf && cb && p_sess\", \"../src/pjnath/turn_session.c\", 0x101u, \"pj_turn_session_create\");\nresult = 70004LL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,a7,a8,a9,v10,v11,v12,v13,v18,v19,v20,v21,v22,sub_40D413,sub_433E97,sub_40D37E,sub_40D351,sub_430624,sub_4326C1,sub_433EDA,sub_432B39,sub_4329EC,sub_40D773,sub_4425E8,sub_4113BA,sub_40D329,sub_40F9A9,sub_410074,sub_410842,sub_415AAD,sub_40D7C6,sub_415ECD,sub_433007,sub_43397B,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'af_0', 'a4': 'conn_type', 'a1': 'cfg', 'a2': 'name', 'a5': 'grp_lock', 'a6': 'cb', 'a7': 'options', 'a8': 'user_data', 'a9': 'p_sess', 'v10': 'af_0', 'v11': 'conn_type', 'v12': 'grp_lock', 'v13': 'cb', 'v18': 'namea', 'v19': 'stun_cb', 'v20': 'status', 'v21': 'sess', 'v22': 'pool', 'sub_40D413': 'pj_turn_session_create', 'sub_433E97': 'pj_pool_create', 'sub_40D37E': 'pj_pool_zalloc_1', 'sub_40D351': 'pj_memcpy_2', 'sub_430624': 'pj_hash_create', 'sub_4326C1': 'pj_grp_lock_create', 'sub_433EDA': 'pj_pool_release', 'sub_432B39': 'pj_grp_lock_add_ref', 'sub_4329EC': 'pj_grp_lock_add_handler', 'sub_40D773': 'turn_sess_on_destroy', 'sub_4425E8': 'pj_timer_entry_init', 'sub_4113BA': 'on_timer_event', 'sub_40D329': 'pj_bzero_1', 'sub_40F9A9': 'stun_on_send_msg', 'sub_410074': 'stun_on_request_complete', 'sub_410842': 'stun_on_rx_indication', 'sub_415AAD': 'pj_stun_session_create', 'sub_40D7C6': 'do_destroy', 'sub_415ECD': 'pj_stun_session_set_user_data', 'sub_433007': 'pj_log_get_level', 'sub_43397B': 'pj_log_4'}"} |
|
deflate_rle | fffb6272767da13c39d1d18926358bd63f012dd0292202aa9c26bfad4d90e94a | oxUnd | node-pngcrush | NA | local block_state deflate_rle(s, flush)
deflate_state *s;
int flush;
{
int bflush; /* set if current block must be flushed */
uInt prev; /* byte at distance one to match */
Bytef *scan, *strend; /* scan goes up to strend for length of run */
for (;;) {
/* Make sure that we always have enough lookahead, except
* at the end of the input file. We need MAX_MATCH bytes
* for the longest run, plus one for the unrolled loop.
*/
if (s->lookahead <= MAX_MATCH) {
fill_window(s);
if (s->lookahead <= MAX_MATCH && flush == Z_NO_FLUSH) {
return need_more;
}
if (s->lookahead == 0) break; /* flush the current block */
}
/* See how many times the previous byte repeats */
s->match_length = 0;
if (s->lookahead >= MIN_MATCH && s->strstart > 0) {
scan = s->window + s->strstart - 1;
prev = *scan;
if (prev == *++scan && prev == *++scan && prev == *++scan) {
strend = s->window + s->strstart + MAX_MATCH;
do {
} while (prev == *++scan && prev == *++scan &&
prev == *++scan && prev == *++scan &&
prev == *++scan && prev == *++scan &&
prev == *++scan && prev == *++scan &&
scan < strend);
s->match_length = MAX_MATCH - (int)(strend - scan);
if (s->match_length > s->lookahead)
s->match_length = s->lookahead;
}
Assert(scan <= s->window+(uInt)(s->window_size-1), "wild scan");
}
/* Emit match if have run of MIN_MATCH or longer, else emit literal */
if (s->match_length >= MIN_MATCH) {
check_match(s, s->strstart, s->strstart - 1, s->match_length);
_tr_tally_dist(s, 1, s->match_length - MIN_MATCH, bflush);
s->lookahead -= s->match_length;
s->strstart += s->match_length;
s->match_length = 0;
} else {
/* No match, output a literal byte */
Tracevv((stderr,"%c", s->window[s->strstart]));
_tr_tally_lit (s, s->window[s->strstart], bflush);
s->lookahead--;
s->strstart++;
}
if (bflush) FLUSH_BLOCK(s, 0);
}
s->insert = 0;
if (flush == Z_FINISH) {
FLUSH_BLOCK(s, 1);
return finish_done;
}
if (s->last_lit)
FLUSH_BLOCK(s, 0);
return block_done;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43F7C5", "function_addr": 4454341, "binary_name": "fffb6272767da13c39d1d18926358bd63f012dd0292202aa9c26bfad4d90e94a.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 48h"], [1, "mov [rsp+48h+var_40], rdi"], [2, "mov [rsp+48h+var_44], esi"], [3, "mov rax, [rsp+48h+var_40]"], [4, "mov eax, [rax+0A4h]"], [5, "cmp eax, 102h"], [6, "ja short loc_43F827"], [7, "mov rax, [rsp+48h+var_40]"], [8, "mov rdi, rax"], [9, "call sub_43DAAF"], [10, "mov rax, [rsp+48h+var_40]"], [11, "mov eax, [rax+0A4h]"], [12, "cmp eax, 102h"], [13, "ja short loc_43F814"], [14, "cmp [rsp+48h+var_44], 0"], [15, "jnz short loc_43F814"], [16, "mov eax, 0"], [17, "jmp loc_43FF0F"], [18, "mov rax, [rsp+48h+var_40]"], [19, "mov eax, [rax+0A4h]"], [20, "test eax, eax"], [21, "jz loc_43FD83"], [22, "mov rax, [rsp+48h+var_40]"], [23, "mov dword ptr [rax+90h], 0"], [24, "mov rax, [rsp+48h+var_40]"], [25, "mov eax, [rax+0A4h]"], [26, "cmp eax, 2"], [27, "jbe loc_43FA27"], [28, "mov rax, [rsp+48h+var_40]"], [29, "mov eax, [rax+9Ch]"], [30, "test eax, eax"], [31, "jz loc_43FA27"], [32, "mov rax, [rsp+48h+var_40]"], [33, "mov rdx, [rax+50h]"], [34, "mov rax, [rsp+48h+var_40]"], [35, "mov eax, [rax+9Ch]"], [36, "mov eax, eax"], [37, "sub rax, 1"], [38, "add rax, rdx"], [39, "mov [rsp+48h+var_18], rax"], [40, "mov rax, [rsp+48h+var_18]"], [41, "movzx eax, byte ptr [rax]"], [42, "movzx eax, al"], [43, "mov [rsp+48h+var_1C], eax"], [44, "add [rsp+48h+var_18], 1"], [45, "mov rax, [rsp+48h+var_18]"], [46, "movzx eax, byte ptr [rax]"], [47, "movzx eax, al"], [48, "cmp [rsp+48h+var_1C], eax"], [49, "jnz loc_43FA27"], [50, "add [rsp+48h+var_18], 1"], [51, "mov rax, [rsp+48h+var_18]"], [52, "movzx eax, byte ptr [rax]"], [53, "movzx eax, al"], [54, "cmp [rsp+48h+var_1C], eax"], [55, "jnz loc_43FA27"], [56, "add [rsp+48h+var_18], 1"], [57, "mov rax, [rsp+48h+var_18]"], [58, "movzx eax, byte ptr [rax]"], [59, "movzx eax, al"], [60, "cmp [rsp+48h+var_1C], eax"], [61, "jnz loc_43FA27"], [62, "mov rax, [rsp+48h+var_40]"], [63, "mov rdx, [rax+50h]"], [64, "mov rax, [rsp+48h+var_40]"], [65, "mov eax, [rax+9Ch]"], [66, "mov eax, eax"], [67, "add rax, 102h"], [68, "add rax, rdx"], [69, "mov [rsp+48h+var_28], rax"], [70, "add [rsp+48h+var_18], 1"], [71, "mov rax, [rsp+48h+var_18]"], [72, "movzx eax, byte ptr [rax]"], [73, "movzx eax, al"], [74, "cmp [rsp+48h+var_1C], eax"], [75, "jnz loc_43F9D7"], [76, "add [rsp+48h+var_18], 1"], [77, "mov rax, [rsp+48h+var_18]"], [78, "movzx eax, byte ptr [rax]"], [79, "movzx eax, al"], [80, "cmp [rsp+48h+var_1C], eax"], [81, "jnz loc_43F9D7"], [82, "add [rsp+48h+var_18], 1"], [83, "mov rax, [rsp+48h+var_18]"], [84, "movzx eax, byte ptr [rax]"], [85, "movzx eax, al"], [86, "cmp [rsp+48h+var_1C], eax"], [87, "jnz loc_43F9D7"], [88, "add [rsp+48h+var_18], 1"], [89, "mov rax, [rsp+48h+var_18]"], [90, "movzx eax, byte ptr [rax]"], [91, "movzx eax, al"], [92, "cmp [rsp+48h+var_1C], eax"], [93, "jnz short loc_43F9D7"], [94, "add [rsp+48h+var_18], 1"], [95, "mov rax, [rsp+48h+var_18]"], [96, "movzx eax, byte ptr [rax]"], [97, "movzx eax, al"], [98, "cmp [rsp+48h+var_1C], eax"], [99, "jnz short loc_43F9D7"], [100, "add [rsp+48h+var_18], 1"], [101, "mov rax, [rsp+48h+var_18]"], [102, "movzx eax, byte ptr [rax]"], [103, "movzx eax, al"], [104, "cmp [rsp+48h+var_1C], eax"], [105, "jnz short loc_43F9D7"], [106, "add [rsp+48h+var_18], 1"], [107, "mov rax, [rsp+48h+var_18]"], [108, "movzx eax, byte ptr [rax]"], [109, "movzx eax, al"], [110, "cmp [rsp+48h+var_1C], eax"], [111, "jnz short loc_43F9D7"], [112, "add [rsp+48h+var_18], 1"], [113, "mov rax, [rsp+48h+var_18]"], [114, "movzx eax, byte ptr [rax]"], [115, "movzx eax, al"], [116, "cmp [rsp+48h+var_1C], eax"], [117, "jnz short loc_43F9D7"], [118, "mov rax, [rsp+48h+var_18]"], [119, "cmp rax, [rsp+48h+var_28]"], [120, "jb loc_43F903"], [121, "mov rax, [rsp+48h+var_28]"], [122, "sub rax, [rsp+48h+var_18]"], [123, "mov edx, eax"], [124, "mov eax, 102h"], [125, "sub eax, edx"], [126, "mov edx, eax"], [127, "mov rax, [rsp+48h+var_40]"], [128, "mov [rax+90h], edx"], [129, "mov rax, [rsp+48h+var_40]"], [130, "mov edx, [rax+90h]"], [131, "mov rax, [rsp+48h+var_40]"], [132, "mov eax, [rax+0A4h]"], [133, "cmp edx, eax"], [134, "jbe short loc_43FA27"], [135, "mov rax, [rsp+48h+var_40]"], [136, "mov edx, [rax+0A4h]"], [137, "mov rax, [rsp+48h+var_40]"], [138, "mov [rax+90h], edx"], [139, "mov rax, [rsp+48h+var_40]"], [140, "mov eax, [rax+90h]"], [141, "cmp eax, 2"], [142, "jbe loc_43FBD5"], [143, "mov rax, [rsp+48h+var_40]"], [144, "mov eax, [rax+90h]"], [145, "sub eax, 3"], [146, "mov [rsp+48h+var_2A], al"], [147, "mov [rsp+48h+var_2C], 1"], [148, "mov rax, [rsp+48h+var_40]"], [149, "mov rdx, [rax+1700h]"], [150, "mov rax, [rsp+48h+var_40]"], [151, "mov eax, [rax+16FCh]"], [152, "mov eax, eax"], [153, "add rax, rax"], [154, "add rdx, rax"], [155, "movzx eax, [rsp+48h+var_2C]"], [156, "mov [rdx], ax"], [157, "mov rax, [rsp+48h+var_40]"], [158, "mov rsi, [rax+16F0h]"], [159, "mov rax, [rsp+48h+var_40]"], [160, "mov eax, [rax+16FCh]"], [161, "lea ecx, [rax+1]"], [162, "mov rdx, [rsp+48h+var_40]"], [163, "mov [rdx+16FCh], ecx"], [164, "mov eax, eax"], [165, "lea rdx, [rsi+rax]"], [166, "movzx eax, [rsp+48h+var_2A]"], [167, "mov [rdx], al"], [168, "movzx eax, [rsp+48h+var_2C]"], [169, "sub eax, 1"], [170, "mov [rsp+48h+var_2C], ax"], [171, "movzx eax, [rsp+48h+var_2A]"], [172, "cdqe"], [173, "movzx eax, ds:byte_457E00[rax]"], [174, "movzx eax, al"], [175, "add eax, 101h"], [176, "mov rdx, [rsp+48h+var_40]"], [177, "movsxd rcx, eax"], [178, "add rcx, 30h "], [179, "movzx edx, word ptr [rdx+rcx*4+4]"], [180, "lea ecx, [rdx+1]"], [181, "mov rdx, [rsp+48h+var_40]"], [182, "cdqe"], [183, "add rax, 30h "], [184, "mov [rdx+rax*4+4], cx"], [185, "cmp [rsp+48h+var_2C], 0FFh"], [186, "ja short loc_43FB10"], [187, "movzx eax, [rsp+48h+var_2C]"], [188, "cdqe"], [189, "movzx eax, ds:byte_457C00[rax]"], [190, "movzx eax, al"], [191, "jmp short loc_43FB2D"], [192, "movzx eax, [rsp+48h+var_2C]"], [193, "shr ax, 7"], [194, "movzx eax, ax"], [195, "add eax, 100h"], [196, "cdqe"], [197, "movzx eax, ds:byte_457C00[rax]"], [198, "movzx eax, al"], [199, "mov rdx, [rsp+48h+var_40]"], [200, "movsxd rcx, eax"], [201, "add rcx, 26Ch"], [202, "movzx edx, word ptr [rdx+rcx*4+8]"], [203, "lea ecx, [rdx+1]"], [204, "mov rdx, [rsp+48h+var_40]"], [205, "cdqe"], [206, "add rax, 26Ch"], [207, "mov [rdx+rax*4+8], cx"], [208, "mov rax, [rsp+48h+var_40]"], [209, "mov edx, [rax+16FCh]"], [210, "mov rax, [rsp+48h+var_40]"], [211, "mov eax, [rax+16F8h]"], [212, "sub eax, 1"], [213, "cmp edx, eax"], [214, "setz al"], [215, "movzx eax, al"], [216, "mov [rsp+48h+var_C], eax"], [217, "mov rax, [rsp+48h+var_40]"], [218, "mov edx, [rax+0A4h]"], [219, "mov rax, [rsp+48h+var_40]"], [220, "mov eax, [rax+90h]"], [221, "sub edx, eax"], [222, "mov rax, [rsp+48h+var_40]"], [223, "mov [rax+0A4h], edx"], [224, "mov rax, [rsp+48h+var_40]"], [225, "mov edx, [rax+9Ch]"], [226, "mov rax, [rsp+48h+var_40]"], [227, "mov eax, [rax+90h]"], [228, "add edx, eax"], [229, "mov rax, [rsp+48h+var_40]"], [230, "mov [rax+9Ch], edx"], [231, "mov rax, [rsp+48h+var_40]"], [232, "mov dword ptr [rax+90h], 0"], [233, "jmp loc_43FCCB"], [234, "mov rax, [rsp+48h+var_40]"], [235, "mov rdx, [rax+50h]"], [236, "mov rax, [rsp+48h+var_40]"], [237, "mov eax, [rax+9Ch]"], [238, "mov eax, eax"], [239, "add rax, rdx"], [240, "movzx eax, byte ptr [rax]"], [241, "mov [rsp+48h+var_29], al"], [242, "mov rax, [rsp+48h+var_40]"], [243, "mov rdx, [rax+1700h]"], [244, "mov rax, [rsp+48h+var_40]"], [245, "mov eax, [rax+16FCh]"], [246, "mov eax, eax"], [247, "add rax, rax"], [248, "add rax, rdx"], [249, "mov word ptr [rax], 0"], [250, "mov rax, [rsp+48h+var_40]"], [251, "mov rsi, [rax+16F0h]"], [252, "mov rax, [rsp+48h+var_40]"], [253, "mov eax, [rax+16FCh]"], [254, "lea ecx, [rax+1]"], [255, "mov rdx, [rsp+48h+var_40]"], [256, "mov [rdx+16FCh], ecx"], [257, "mov eax, eax"], [258, "lea rdx, [rsi+rax]"], [259, "movzx eax, [rsp+48h+var_29]"], [260, "mov [rdx], al"], [261, "movzx eax, [rsp+48h+var_29]"], [262, "mov rdx, [rsp+48h+var_40]"], [263, "movsxd rcx, eax"], [264, "add rcx, 30h "], [265, "movzx edx, word ptr [rdx+rcx*4+4]"], [266, "lea ecx, [rdx+1]"], [267, "mov rdx, [rsp+48h+var_40]"], [268, "cdqe"], [269, "add rax, 30h "], [270, "mov [rdx+rax*4+4], cx"], [271, "mov rax, [rsp+48h+var_40]"], [272, "mov edx, [rax+16FCh]"], [273, "mov rax, [rsp+48h+var_40]"], [274, "mov eax, [rax+16F8h]"], [275, "sub eax, 1"], [276, "cmp edx, eax"], [277, "setz al"], [278, "movzx eax, al"], [279, "mov [rsp+48h+var_C], eax"], [280, "mov rax, [rsp+48h+var_40]"], [281, "mov eax, [rax+0A4h]"], [282, "lea edx, [rax-1]"], [283, "mov rax, [rsp+48h+var_40]"], [284, "mov [rax+0A4h], edx"], [285, "mov rax, [rsp+48h+var_40]"], [286, "mov eax, [rax+9Ch]"], [287, "lea edx, [rax+1]"], [288, "mov rax, [rsp+48h+var_40]"], [289, "mov [rax+9Ch], edx"], [290, "cmp [rsp+48h+var_C], 0"], [291, "jz loc_43F7D2"], [292, "mov rax, [rsp+48h+var_40]"], [293, "mov eax, [rax+9Ch]"], [294, "mov ecx, eax"], [295, "mov rax, [rsp+48h+var_40]"], [296, "mov rdx, [rax+88h]"], [297, "mov rax, rcx"], [298, "sub rax, rdx"], [299, "mov rdx, rax"], [300, "mov rax, [rsp+48h+var_40]"], [301, "mov rax, [rax+88h]"], [302, "test rax, rax"], [303, "js short loc_43FD26"], [304, "mov rax, [rsp+48h+var_40]"], [305, "mov rcx, [rax+50h]"], [306, "mov rax, [rsp+48h+var_40]"], [307, "mov rax, [rax+88h]"], [308, "mov eax, eax"], [309, "lea rsi, [rcx+rax]"], [310, "jmp short loc_43FD2B"], [311, "mov esi, 0"], [312, "mov rax, [rsp+48h+var_40]"], [313, "mov ecx, 0"], [314, "mov rdi, rax"], [315, "call sub_448E87"], [316, "mov rax, [rsp+48h+var_40]"], [317, "mov eax, [rax+9Ch]"], [318, "mov edx, eax"], [319, "mov rax, [rsp+48h+var_40]"], [320, "mov [rax+88h], rdx"], [321, "mov rax, [rsp+48h+var_40]"], [322, "mov rax, [rax]"], [323, "mov rdi, rax"], [324, "call sub_43BC0A"], [325, "mov rax, [rsp+48h+var_40]"], [326, "mov rax, [rax]"], [327, "mov eax, [rax+20h]"], [328, "test eax, eax"], [329, "jnz loc_43F7D2"], [330, "mov eax, 0"], [331, "jmp loc_43FF0F"], [332, "nop"], [333, "mov rax, [rsp+48h+var_40]"], [334, "mov dword ptr [rax+171Ch], 0"], [335, "cmp [rsp+48h+var_44], 4"], [336, "jnz loc_43FE51"], [337, "mov rax, [rsp+48h+var_40]"], [338, "mov eax, [rax+9Ch]"], [339, "mov ecx, eax"], [340, "mov rax, [rsp+48h+var_40]"], [341, "mov rdx, [rax+88h]"], [342, "mov rax, rcx"], [343, "sub rax, rdx"], [344, "mov rdx, rax"], [345, "mov rax, [rsp+48h+var_40]"], [346, "mov rax, [rax+88h]"], [347, "test rax, rax"], [348, "js short loc_43FDEE"], [349, "mov rax, [rsp+48h+var_40]"], [350, "mov rcx, [rax+50h]"], [351, "mov rax, [rsp+48h+var_40]"], [352, "mov rax, [rax+88h]"], [353, "mov eax, eax"], [354, "lea rsi, [rcx+rax]"], [355, "jmp short loc_43FDF3"], [356, "mov esi, 0"], [357, "mov rax, [rsp+48h+var_40]"], [358, "mov ecx, 1"], [359, "mov rdi, rax"], [360, "call sub_448E87"], [361, "mov rax, [rsp+48h+var_40]"], [362, "mov eax, [rax+9Ch]"], [363, "mov edx, eax"], [364, "mov rax, [rsp+48h+var_40]"], [365, "mov [rax+88h], rdx"], [366, "mov rax, [rsp+48h+var_40]"], [367, "mov rax, [rax]"], [368, "mov rdi, rax"], [369, "call sub_43BC0A"], [370, "mov rax, [rsp+48h+var_40]"], [371, "mov rax, [rax]"], [372, "mov eax, [rax+20h]"], [373, "test eax, eax"], [374, "jnz short loc_43FE47"], [375, "mov eax, 2"], [376, "jmp loc_43FF0F"], [377, "mov eax, 3"], [378, "jmp loc_43FF0F"], [379, "mov rax, [rsp+48h+var_40]"], [380, "mov eax, [rax+16FCh]"], [381, "test eax, eax"], [382, "jz loc_43FF0A"], [383, "mov rax, [rsp+48h+var_40]"], [384, "mov eax, [rax+9Ch]"], [385, "mov ecx, eax"], [386, "mov rax, [rsp+48h+var_40]"], [387, "mov rdx, [rax+88h]"], [388, "mov rax, rcx"], [389, "sub rax, rdx"], [390, "mov rdx, rax"], [391, "mov rax, [rsp+48h+var_40]"], [392, "mov rax, [rax+88h]"], [393, "test rax, rax"], [394, "js short loc_43FEB4"], [395, "mov rax, [rsp+48h+var_40]"], [396, "mov rcx, [rax+50h]"], [397, "mov rax, [rsp+48h+var_40]"], [398, "mov rax, [rax+88h]"], [399, "mov eax, eax"], [400, "lea rsi, [rcx+rax]"], [401, "jmp short loc_43FEB9"], [402, "mov esi, 0"], [403, "mov rax, [rsp+48h+var_40]"], [404, "mov ecx, 0"], [405, "mov rdi, rax"], [406, "call sub_448E87"], [407, "mov rax, [rsp+48h+var_40]"], [408, "mov eax, [rax+9Ch]"], [409, "mov edx, eax"], [410, "mov rax, [rsp+48h+var_40]"], [411, "mov [rax+88h], rdx"], [412, "mov rax, [rsp+48h+var_40]"], [413, "mov rax, [rax]"], [414, "mov rdi, rax"], [415, "call sub_43BC0A"], [416, "mov rax, [rsp+48h+var_40]"], [417, "mov rax, [rax]"], [418, "mov eax, [rax+20h]"], [419, "test eax, eax"], [420, "jnz short loc_43FF0A"], [421, "mov eax, 0"], [422, "jmp short loc_43FF0F"], [423, "mov eax, 1"], [424, "add rsp, 48h"], [425, "retn"]], "data_dep": [[3, 1], [4, 230], [4, 207], [4, 184], [4, 232], [4, 320], [4, 156], [4, 289], [4, 256], [4, 223], [4, 167], [4, 23], [4, 3], [4, 270], [4, 260], [4, 138], [4, 128], [4, 249], [4, 163], [4, 284], [5, 4], [6, 5], [7, 1], [8, 7], [10, 1], [11, 256], [11, 223], [11, 167], [11, 270], [11, 260], [11, 184], [11, 138], [11, 128], [11, 249], [11, 163], [11, 284], [11, 230], [11, 207], [11, 10], [11, 23], [11, 232], [11, 320], [11, 156], [11, 289], [12, 11], [13, 12], [14, 2], [15, 14], [18, 1], [19, 18], [19, 260], [19, 184], [19, 138], [19, 128], [19, 249], [19, 163], [19, 284], [19, 230], [19, 207], [19, 23], [19, 232], [19, 320], [19, 156], [19, 289], [19, 256], [19, 223], [19, 167], [19, 270], [20, 19], [21, 20], [22, 1], [23, 22], [24, 1], [25, 24], [25, 223], [25, 23], [25, 284], [26, 25], [27, 26], [28, 1], [29, 156], [29, 289], [29, 256], [29, 223], [29, 167], [29, 28], [29, 270], [29, 260], [29, 184], [29, 138], [29, 128], [29, 249], [29, 163], [29, 284], [29, 230], [29, 207], [29, 23], [29, 232], [29, 320], [30, 29], [31, 30], [32, 1], [33, 270], [33, 260], [33, 184], [33, 138], [33, 128], [33, 249], [33, 163], [33, 284], [33, 230], [33, 207], [33, 23], [33, 232], [33, 320], [33, 32], [33, 156], [33, 289], [33, 256], [33, 223], [33, 167], [34, 1], [35, 184], [35, 138], [35, 128], [35, 249], [35, 163], [35, 284], [35, 230], [35, 207], [35, 167], [35, 23], [35, 232], [35, 320], [35, 156], [35, 34], [35, 289], [35, 256], [35, 223], [35, 270], [35, 260], [36, 35], [37, 36], [38, 33], [38, 37], [39, 38], [40, 39], [41, 163], [41, 284], [41, 230], [41, 207], [41, 167], [41, 23], [41, 232], [41, 320], [41, 156], [41, 289], [41, 256], [41, 223], [41, 270], [41, 260], [41, 184], [41, 40], [41, 138], [41, 128], [41, 249], [42, 41], [43, 42], [44, 39], [45, 44], [46, 232], [46, 320], [46, 45], [46, 156], [46, 289], [46, 256], [46, 223], [46, 270], [46, 260], [46, 184], [46, 138], [46, 128], [46, 249], [46, 163], [46, 284], [46, 230], [46, 207], [46, 167], [46, 23], [47, 46], [48, 47], [48, 43], [49, 48], [50, 44], [51, 50], [52, 51], [52, 270], [52, 260], [52, 207], [52, 184], [52, 138], [52, 128], [52, 249], [52, 163], [52, 284], [52, 230], [52, 167], [52, 23], [52, 232], [52, 320], [52, 156], [52, 289], [52, 256], [52, 223], [53, 52], [54, 53], [54, 43], [55, 54], [56, 50], [57, 56], [58, 163], [58, 284], [58, 230], [58, 167], [58, 23], [58, 232], [58, 320], [58, 156], [58, 57], [58, 289], [58, 256], [58, 223], [58, 270], [58, 260], [58, 207], [58, 184], [58, 138], [58, 128], [58, 249], [59, 58], [60, 43], [60, 59], [61, 60], [62, 1], [63, 270], [63, 260], [63, 184], [63, 138], [63, 128], [63, 249], [63, 62], [63, 163], [63, 284], [63, 230], [63, 207], [63, 23], [63, 232], [63, 320], [63, 156], [63, 289], [63, 256], [63, 223], [63, 167], [64, 1], [65, 232], [65, 320], [65, 156], [65, 289], [65, 256], [65, 138], [65, 223], [65, 270], [65, 260], [65, 207], [65, 184], [65, 128], [65, 249], [65, 163], [65, 284], [65, 64], [65, 230], [65, 167], [65, 23], [66, 65], [67, 66], [68, 63], [68, 67], [69, 68], [70, 56], [70, 112], [71, 70], [72, 71], [72, 270], [72, 260], [72, 207], [72, 184], [72, 128], [72, 249], [72, 163], [72, 284], [72, 230], [72, 167], [72, 23], [72, 232], [72, 320], [72, 156], [72, 289], [72, 256], [72, 138], [72, 223], [73, 72], [74, 43], [74, 73], [75, 74], [76, 70], [77, 76], [78, 156], [78, 289], [78, 256], [78, 223], [78, 270], [78, 260], [78, 207], [78, 184], [78, 138], [78, 128], [78, 249], [78, 163], [78, 284], [78, 77], [78, 230], [78, 167], [78, 23], [78, 232], [78, 320], [79, 78], [80, 43], [80, 79], [81, 80], [82, 76], [83, 82], [84, 223], [84, 270], [84, 260], [84, 83], [84, 207], [84, 184], [84, 138], [84, 128], [84, 249], [84, 163], [84, 284], [84, 230], [84, 167], [84, 23], [84, 232], [84, 320], [84, 156], [84, 289], [84, 256], [85, 84], [86, 85], [86, 43], [87, 86], [88, 82], [89, 88], [90, 163], [90, 284], [90, 230], [90, 89], [90, 167], [90, 23], [90, 232], [90, 320], [90, 156], [90, 289], [90, 256], [90, 223], [90, 270], [90, 260], [90, 207], [90, 184], [90, 138], [90, 128], [90, 249], [91, 90], [92, 91], [92, 43], [93, 92], [94, 88], [95, 94], [96, 167], [96, 23], [96, 232], [96, 320], [96, 156], [96, 289], [96, 256], [96, 138], [96, 223], [96, 270], [96, 260], [96, 207], [96, 184], [96, 128], [96, 249], [96, 95], [96, 163], [96, 284], [96, 230], [97, 96], [98, 43], [98, 97], [99, 98], [100, 94], [101, 100], [102, 270], [102, 260], [102, 207], [102, 184], [102, 128], [102, 249], [102, 163], [102, 284], [102, 230], [102, 167], [102, 23], [102, 232], [102, 101], [102, 320], [102, 156], [102, 289], [102, 256], [102, 138], [102, 223], [103, 102], [104, 43], [104, 103], [105, 104], [106, 100], [107, 106], [108, 156], [108, 289], [108, 256], [108, 223], [108, 270], [108, 260], [108, 207], [108, 184], [108, 138], [108, 128], [108, 249], [108, 163], [108, 284], [108, 107], [108, 230], [108, 167], [108, 23], [108, 232], [108, 320], [109, 108], [110, 109], [110, 43], [111, 110], [112, 106], [113, 112], [114, 232], [114, 156], [114, 113], [114, 289], [114, 256], [114, 138], [114, 249], [114, 270], [114, 260], [114, 230], [114, 207], [114, 184], [114, 128], [114, 163], [114, 284], [114, 320], [114, 223], [114, 167], [114, 23], [115, 114], [116, 43], [116, 115], [117, 116], [118, 112], [119, 118], [119, 69], [120, 119], [121, 69], [122, 82], [122, 94], [122, 106], [122, 76], [122, 121], [122, 88], [122, 100], [122, 112], [122, 70], [123, 122], [125, 124], [125, 123], [126, 125], [127, 1], [128, 126], [128, 127], [129, 1], [130, 129], [130, 128], [131, 1], [132, 128], [132, 131], [132, 284], [132, 223], [133, 130], [133, 132], [134, 133], [135, 1], [136, 135], [136, 138], [136, 128], [136, 249], [136, 270], [136, 260], [136, 230], [136, 207], [136, 184], [136, 163], [136, 284], [136, 320], [136, 289], [136, 256], [136, 223], [136, 167], [136, 23], [136, 232], [136, 156], [137, 1], [138, 136], [138, 137], [139, 1], [140, 128], [140, 163], [140, 284], [140, 320], [140, 256], [140, 223], [140, 167], [140, 23], [140, 232], [140, 156], [140, 289], [140, 138], [140, 249], [140, 270], [140, 139], [140, 260], [140, 230], [140, 207], [140, 184], [141, 140], [142, 141], [143, 1], [144, 232], [144, 320], [144, 156], [144, 289], [144, 256], [144, 138], [144, 249], [144, 270], [144, 260], [144, 207], [144, 184], [144, 128], [144, 163], [144, 284], [144, 143], [144, 230], [144, 223], [144, 167], [144, 23], [145, 144], [146, 145], [148, 1], [149, 249], [149, 270], [149, 260], [149, 207], [149, 184], [149, 128], [149, 163], [149, 284], [149, 230], [149, 223], [149, 167], [149, 23], [149, 232], [149, 320], [149, 156], [149, 289], [149, 256], [149, 148], [149, 138], [150, 1], [151, 150], [151, 270], [151, 260], [151, 230], [151, 207], [151, 184], [151, 163], [151, 284], [151, 320], [151, 256], [151, 223], [151, 167], [151, 23], [151, 232], [151, 156], [151, 289], [151, 138], [151, 128], [151, 249], [152, 151], [153, 152], [154, 153], [154, 149], [155, 147], [156, 155], [156, 154], [157, 1], [158, 157], [158, 156], [159, 1], [160, 156], [160, 159], [161, 156], [161, 313], [161, 203], [161, 160], [161, 266], [162, 1], [163, 162], [163, 161], [164, 160], [165, 162], [165, 164], [165, 163], [166, 146], [167, 166], [167, 165], [168, 147], [169, 168], [170, 169], [171, 146], [174, 173], [175, 174], [176, 1], [177, 175], [178, 177], [179, 178], [179, 167], [180, 178], [180, 167], [180, 179], [181, 1], [183, 175], [184, 180], [184, 183], [185, 170], [186, 185], [187, 170], [190, 189], [192, 170], [193, 192], [194, 193], [195, 194], [198, 197], [199, 1], [200, 198], [200, 190], [201, 200], [202, 260], [202, 138], [202, 128], [202, 249], [202, 163], [202, 284], [202, 230], [202, 207], [202, 184], [202, 232], [202, 320], [202, 156], [202, 201], [202, 289], [202, 256], [202, 223], [202, 167], [202, 23], [202, 270], [203, 184], [203, 163], [203, 284], [203, 320], [203, 289], [203, 256], [203, 223], [203, 167], [203, 23], [203, 232], [203, 202], [203, 156], [203, 270], [203, 201], [203, 138], [203, 128], [203, 249], [203, 260], [203, 230], [203, 207], [204, 1], [206, 198], [206, 190], [207, 203], [207, 206], [208, 1], [209, 208], [209, 207], [210, 1], [211, 210], [211, 207], [212, 211], [213, 209], [213, 212], [214, 213], [214, 212], [215, 214], [216, 215], [217, 1], [218, 284], [218, 217], [218, 207], [218, 223], [219, 1], [220, 207], [220, 219], [220, 23], [220, 138], [220, 128], [221, 218], [221, 220], [222, 1], [223, 221], [223, 222], [224, 1], [225, 289], [225, 223], [225, 224], [225, 230], [226, 1], [227, 223], [227, 23], [227, 138], [227, 128], [227, 226], [228, 225], [228, 227], [229, 1], [230, 228], [230, 229], [231, 1], [232, 231], [234, 1], [235, 270], [235, 260], [235, 184], [235, 138], [235, 128], [235, 249], [235, 163], [235, 284], [235, 230], [235, 207], [235, 23], [235, 232], [235, 320], [235, 156], [235, 234], [235, 289], [235, 256], [235, 223], [235, 167], [236, 1], [237, 260], [237, 230], [237, 207], [237, 184], [237, 232], [237, 320], [237, 156], [237, 289], [237, 256], [237, 223], [237, 167], [237, 23], [237, 270], [237, 138], [237, 236], [237, 128], [237, 249], [237, 163], [237, 284], [238, 237], [239, 235], [239, 238], [240, 230], [240, 207], [240, 23], [240, 232], [240, 320], [240, 156], [240, 289], [240, 256], [240, 223], [240, 167], [240, 270], [240, 260], [240, 184], [240, 138], [240, 128], [240, 249], [240, 239], [240, 163], [240, 284], [241, 240], [242, 1], [243, 256], [243, 223], [243, 167], [243, 23], [243, 270], [243, 260], [243, 138], [243, 128], [243, 249], [243, 163], [243, 284], [243, 230], [243, 207], [243, 184], [243, 242], [243, 232], [243, 320], [243, 156], [243, 289], [244, 1], [245, 320], [245, 156], [245, 244], [245, 289], [245, 256], [245, 223], [245, 167], [245, 270], [245, 260], [245, 184], [245, 138], [245, 128], [245, 249], [245, 163], [245, 284], [245, 230], [245, 207], [245, 23], [245, 232], [246, 245], [247, 246], [248, 243], [248, 247], [249, 248], [250, 1], [251, 250], [251, 249], [252, 1], [253, 252], [253, 249], [254, 253], [254, 266], [254, 313], [254, 249], [254, 203], [255, 1], [256, 255], [256, 254], [257, 253], [258, 256], [258, 255], [258, 257], [259, 241], [260, 258], [260, 259], [261, 241], [262, 1], [263, 261], [264, 263], [265, 260], [265, 264], [266, 260], [266, 265], [266, 264], [267, 1], [269, 261], [270, 266], [270, 269], [271, 1], [272, 270], [272, 271], [273, 1], [274, 270], [274, 273], [275, 274], [276, 275], [276, 272], [277, 276], [277, 275], [278, 277], [279, 278], [280, 1], [281, 284], [281, 223], [281, 280], [281, 270], [282, 270], [282, 272], [282, 281], [283, 1], [284, 283], [284, 282], [285, 1], [286, 230], [286, 285], [286, 289], [286, 284], [287, 284], [287, 286], [287, 282], [288, 1], [289, 288], [289, 287], [290, 216], [290, 279], [291, 290], [292, 1], [293, 289], [293, 256], [293, 223], [293, 167], [293, 270], [293, 260], [293, 292], [293, 184], [293, 138], [293, 128], [293, 249], [293, 163], [293, 284], [293, 230], [293, 207], [293, 23], [293, 232], [293, 320], [293, 156], [294, 293], [295, 1], [296, 270], [296, 260], [296, 184], [296, 138], [296, 128], [296, 249], [296, 163], [296, 284], [296, 230], [296, 207], [296, 295], [296, 23], [296, 232], [296, 320], [296, 156], [296, 289], [296, 256], [296, 223], [296, 167], [297, 294], [298, 296], [298, 297], [299, 298], [300, 1], [301, 163], [301, 284], [301, 230], [301, 207], [301, 23], [301, 232], [301, 320], [301, 300], [301, 156], [301, 289], [301, 256], [301, 223], [301, 167], [301, 270], [301, 260], [301, 184], [301, 138], [301, 128], [301, 249], [302, 301], [303, 302], [304, 1], [305, 232], [305, 320], [305, 156], [305, 289], [305, 256], [305, 223], [305, 167], [305, 270], [305, 260], [305, 138], [305, 128], [305, 249], [305, 304], [305, 163], [305, 284], [305, 230], [305, 207], [305, 184], [305, 23], [306, 1], [307, 156], [307, 289], [307, 256], [307, 223], [307, 167], [307, 270], [307, 260], [307, 184], [307, 138], [307, 128], [307, 249], [307, 163], [307, 284], [307, 306], [307, 230], [307, 207], [307, 23], [307, 232], [307, 320], [308, 307], [309, 207], [309, 308], [309, 167], [309, 23], [309, 232], [309, 320], [309, 156], [309, 289], [309, 158], [309, 256], [309, 223], [309, 270], [309, 260], [309, 184], [309, 138], [309, 128], [309, 249], [309, 163], [309, 284], [309, 251], [309, 230], [312, 1], [314, 312], [316, 1], [317, 163], [317, 284], [317, 316], [317, 230], [317, 207], [317, 23], [317, 232], [317, 320], [317, 156], [317, 289], [317, 256], [317, 223], [317, 167], [317, 270], [317, 260], [317, 184], [317, 138], [317, 128], [317, 249], [318, 317], [319, 1], [320, 319], [320, 318], [321, 1], [322, 320], [322, 321], [322, 249], [323, 322], [325, 1], [326, 325], [326, 249], [326, 320], [327, 320], [327, 326], [328, 327], [329, 328], [333, 1], [334, 333], [335, 2], [336, 335], [337, 1], [338, 232], [338, 320], [338, 156], [338, 289], [338, 256], [338, 223], [338, 334], [338, 167], [338, 270], [338, 260], [338, 184], [338, 138], [338, 128], [338, 249], [338, 337], [338, 163], [338, 284], [338, 230], [338, 207], [338, 23], [339, 338], [340, 1], [341, 167], [341, 23], [341, 232], [341, 320], [341, 156], [341, 289], [341, 256], [341, 223], [341, 334], [341, 270], [341, 260], [341, 184], [341, 138], [341, 128], [341, 249], [341, 340], [341, 163], [341, 284], [341, 230], [341, 207], [342, 339], [343, 341], [343, 342], [344, 343], [345, 1], [346, 223], [346, 334], [346, 270], [346, 260], [346, 184], [346, 138], [346, 128], [346, 249], [346, 163], [346, 284], [346, 230], [346, 207], [346, 167], [346, 23], [346, 232], [346, 320], [346, 156], [346, 345], [346, 289], [346, 256], [347, 346], [348, 347], [349, 1], [350, 163], [350, 284], [350, 349], [350, 230], [350, 207], [350, 167], [350, 23], [350, 232], [350, 320], [350, 156], [350, 289], [350, 256], [350, 223], [350, 334], [350, 270], [350, 260], [350, 184], [350, 138], [350, 128], [350, 249], [351, 1], [352, 163], [352, 284], [352, 230], [352, 351], [352, 167], [352, 23], [352, 232], [352, 320], [352, 156], [352, 289], [352, 256], [352, 223], [352, 334], [352, 270], [352, 260], [352, 207], [352, 184], [352, 138], [352, 128], [352, 249], [353, 352], [354, 207], [354, 184], [354, 138], [354, 128], [354, 249], [354, 163], [354, 284], [354, 251], [354, 309], [354, 230], [354, 311], [354, 167], [354, 23], [354, 232], [354, 353], [354, 320], [354, 156], [354, 289], [354, 158], [354, 256], [354, 223], [354, 334], [354, 270], [354, 260], [357, 1], [359, 357], [361, 1], [362, 334], [362, 270], [362, 260], [362, 361], [362, 207], [362, 184], [362, 138], [362, 128], [362, 249], [362, 163], [362, 284], [362, 230], [362, 167], [362, 23], [362, 232], [362, 320], [362, 156], [362, 365], [362, 289], [362, 256], [362, 223], [363, 362], [364, 1], [365, 363], [365, 364], [366, 1], [367, 249], [367, 366], [367, 365], [368, 367], [370, 1], [371, 365], [371, 249], [371, 370], [372, 365], [372, 371], [373, 372], [374, 373], [379, 1], [380, 289], [380, 256], [380, 138], [380, 223], [380, 334], [380, 379], [380, 270], [380, 260], [380, 207], [380, 184], [380, 128], [380, 249], [380, 163], [380, 284], [380, 230], [380, 167], [380, 23], [380, 232], [380, 320], [380, 156], [381, 380], [382, 381], [383, 1], [384, 260], [384, 207], [384, 184], [384, 138], [384, 128], [384, 249], [384, 383], [384, 163], [384, 284], [384, 230], [384, 167], [384, 23], [384, 232], [384, 320], [384, 156], [384, 289], [384, 256], [384, 223], [384, 334], [384, 270], [385, 384], [386, 1], [387, 270], [387, 260], [387, 207], [387, 184], [387, 128], [387, 249], [387, 163], [387, 284], [387, 230], [387, 167], [387, 23], [387, 386], [387, 232], [387, 320], [387, 156], [387, 289], [387, 256], [387, 138], [387, 223], [387, 334], [388, 385], [389, 387], [389, 388], [390, 389], [391, 1], [392, 230], [392, 167], [392, 23], [392, 232], [392, 320], [392, 156], [392, 289], [392, 256], [392, 138], [392, 223], [392, 334], [392, 270], [392, 391], [392, 260], [392, 207], [392, 184], [392, 128], [392, 249], [392, 163], [392, 284], [393, 392], [394, 393], [395, 1], [396, 289], [396, 256], [396, 138], [396, 223], [396, 334], [396, 270], [396, 260], [396, 207], [396, 184], [396, 128], [396, 249], [396, 163], [396, 284], [396, 395], [396, 230], [396, 167], [396, 23], [396, 232], [396, 320], [396, 156], [397, 1], [398, 256], [398, 138], [398, 249], [398, 334], [398, 270], [398, 260], [398, 207], [398, 184], [398, 128], [398, 163], [398, 284], [398, 397], [398, 230], [398, 223], [398, 167], [398, 23], [398, 232], [398, 320], [398, 156], [398, 289], [399, 398], [400, 207], [400, 184], [400, 138], [400, 128], [400, 249], [400, 163], [400, 284], [400, 251], [400, 309], [400, 230], [400, 311], [400, 167], [400, 23], [400, 399], [400, 232], [400, 320], [400, 156], [400, 289], [400, 158], [400, 256], [400, 223], [400, 334], [400, 270], [400, 260], [403, 1], [405, 403], [407, 1], [408, 407], [408, 230], [408, 223], [408, 167], [408, 23], [408, 232], [408, 320], [408, 156], [408, 411], [408, 289], [408, 256], [408, 138], [408, 334], [408, 270], [408, 260], [408, 207], [408, 184], [408, 128], [408, 249], [408, 163], [408, 284], [409, 408], [410, 1], [411, 410], [411, 409], [412, 1], [413, 411], [413, 412], [413, 249], [414, 413], [416, 1], [417, 416], [417, 249], [417, 411], [418, 417], [418, 411], [419, 418], [420, 419], [424, 0], [425, 375], [425, 377], [425, 421], [425, 423], [425, 16], [425, 330]]}
| {"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/fffb6272767da13c39d1d18926358bd63f012dd0292202aa9c26bfad4d90e94a_fffb6272767da13c39d1d18926358bd63f012dd0292202aa9c26bfad4d90e94a.jsonl.gz", "strip_func_name": "sub_43F7C5", "query": "\n\n\n__int64 __fastcall sub_43F7C5(unsigned __int64 a1, int a2)\n{\n__int64 result; // rax\n__int64 v3; // rsi\nunsigned int v4; // eax\nint v5; // eax\n__int64 v6; // rsi\nunsigned int v7; // eax\n__int64 v8; // rsi\n__int64 v9; // rsi\n__int64 v10; // rsi\nunsigned __int8 v12; // [rsp+1Eh] [rbp-2Ah]\nunsigned __int8 v13; // [rsp+1Fh] [rbp-29h]\nint v14; // [rsp+2Ch] [rbp-1Ch]\nunsigned __int8 *v15; // [rsp+30h] [rbp-18h]\nunsigned __int8 *v16; // [rsp+30h] [rbp-18h]\nunsigned __int8 *v17; // [rsp+30h] [rbp-18h]\n_BOOL4 v18; // [rsp+3Ch] [rbp-Ch]\n\nwhile ( 1 )\n{\nif ( *(_DWORD *)(a1 + 164) <= 0x102u )\n{\nsub_43DAAF(a1);\nif ( *(_DWORD *)(a1 + 164) <= 0x102u && !a2 )\nreturn 0LL;\nif ( !*(_DWORD *)(a1 + 164) )\nbreak;\n}\n*(_DWORD *)(a1 + 144) = 0;\nif ( *(_DWORD *)(a1 + 164) > 2u )\n{\nif ( *(_DWORD *)(a1 + 156) )\n{\nv14 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 80) + *(unsigned int *)(a1 + 156) - 1LL);\nv15 = (unsigned __int8 *)(*(_QWORD *)(a1 + 80) + *(unsigned int *)(a1 + 156));\nif ( v14 == *v15 )\n{\nv16 = v15 + 1;\nif ( v14 == *v16 )\n{\nv17 = v16 + 1;\nif ( v14 == *v17 )\n{\ndo\n{\nif ( v14 != *++v17 )\nbreak;\nif ( v14 != *++v17 )\nbreak;\nif ( v14 != *++v17 )\nbreak;\nif ( v14 != *++v17 )\nbreak;\nif ( v14 != *++v17 )\nbreak;\nif ( v14 != *++v17 )\nbreak;\nif ( v14 != *++v17 )\nbreak;\nif ( v14 != *++v17 )\nbreak;\n}\nwhile ( (unsigned __int64)v17 < *(_QWORD *)(a1 + 80) + (unsigned __int64)*(unsigned int *)(a1 + 156) + 258 );\n*(_DWORD *)(a1 + 144) = (_DWORD)v17 - (*(_DWORD *)(a1 + 80) + *(_DWORD *)(a1 + 156));\nif ( *(_DWORD *)(a1 + 144) > *(_DWORD *)(a1 + 164) )\n*(_DWORD *)(a1 + 144) = *(_DWORD *)(a1 + 164);\n}\n}\n}\n}\n}\nif ( *(_DWORD *)(a1 + 144) <= 2u )\n{\nv13 = *(_BYTE *)(*(_QWORD *)(a1 + 80) + *(unsigned int *)(a1 + 156));\n*(_WORD *)(*(_QWORD *)(a1 + 5888) + 2LL * *(unsigned int *)(a1 + 5884)) = 0;\nv6 = *(_QWORD *)(a1 + 5872);\nv7 = *(_DWORD *)(a1 + 5884);\n*(_DWORD *)(a1 + 5884) = v7 + 1;\n*(_BYTE *)(v6 + v7) = v13;\n++*(_WORD *)(a1 + 4 * (v13 + 48LL) + 4);\nv18 = *(_DWORD *)(a1 + 5884) == *(_DWORD *)(a1 + 5880) - 1;\n--*(_DWORD *)(a1 + 164);\n++*(_DWORD *)(a1 + 156);\n}\nelse\n{\nv12 = *(_DWORD *)(a1 + 144) - 3;\n*(_WORD *)(2LL * *(unsigned int *)(a1 + 5884) + *(_QWORD *)(a1 + 5888)) = 1;\nv3 = *(_QWORD *)(a1 + 5872);\nv4 = *(_DWORD *)(a1 + 5884);\n*(_DWORD *)(a1 + 5884) = v4 + 1;\n*(_BYTE *)(v3 + v4) = v12;\nv5 = (unsigned __int8)byte_457E00[v12] + 257;\n++*(_WORD *)(a1 + 4 * (v5 + 48LL) + 4);\n++*(_WORD *)(a1 + 2488);\nv18 = *(_DWORD *)(a1 + 5884) == *(_DWORD *)(a1 + 5880) - 1;\n*(_DWORD *)(a1 + 164) -= *(_DWORD *)(a1 + 144);\n*(_DWORD *)(a1 + 156) += *(_DWORD *)(a1 + 144);\n*(_DWORD *)(a1 + 144) = 0;\n}\nif ( v18 )\n{\nv8 = *(__int64 *)(a1 + 136) < 0 ? 0LL : *(_QWORD *)(a1 + 80) + (unsigned int)*(_QWORD *)(a1 + 136);\nsub_448E87(a1, v8, *(unsigned int *)(a1 + 156) - *(_QWORD *)(a1 + 136), 0LL);\n*(_QWORD *)(a1 + 136) = *(unsigned int *)(a1 + 156);\nsub_43BC0A(*(_QWORD *)a1);\nif ( !*(_DWORD *)(*(_QWORD *)a1 + 32LL) )\nreturn 0LL;\n}\n}\n*(_DWORD *)(a1 + 5916) = 0;\nif ( a2 != 4 )\nreturn !*(_DWORD *)(a1 + 5884)\n|| (*(__int64 *)(a1 + 136) < 0 ? (v10 = 0LL) : (v10 = *(_QWORD *)(a1 + 80) + (unsigned int)*(_QWORD *)(a1 + 136)),\nsub_448E87(a1, v10, *(unsigned int *)(a1 + 156) - *(_QWORD *)(a1 + 136), 0LL),\n*(_QWORD *)(a1 + 136) = *(unsigned int *)(a1 + 156),\nsub_43BC0A(*(_QWORD *)a1),\n*(_DWORD *)(*(_QWORD *)a1 + 32LL));\nif ( *(__int64 *)(a1 + 136) < 0 )\nv9 = 0LL;\nelse\nv9 = *(_QWORD *)(a1 + 80) + (unsigned int)*(_QWORD *)(a1 + 136);\nsub_448E87(a1, v9, *(unsigned int *)(a1 + 156) - *(_QWORD *)(a1 + 136), 1LL);\n*(_QWORD *)(a1 + 136) = *(unsigned int *)(a1 + 156);\nsub_43BC0A(*(_QWORD *)a1);\nif ( *(_DWORD *)(*(_QWORD *)a1 + 32LL) )\nresult = 3LL;\nelse\nresult = 2LL;\nreturn result;\n}\n\n\n\nQ:[a1,a2,v12,v13,v14,v15,v18,sub_43F7C5,sub_43DAAF,sub_448E87,sub_43BC0A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 's', 'a2': 'flush', 'v12': 'len', 'v13': 'cc', 'v14': 'prev', 'v15': 'scan', 'v18': 'bflush', 'sub_43F7C5': 'deflate_rle', 'sub_43DAAF': 'fill_window', 'sub_448E87': '_tr_flush_block', 'sub_43BC0A': 'flush_pending'}"} |
|
build_PSP_Legacy_CDB | 892fedff583f6ea4b46c284d049dc9df01238d46df2521e95544083c2b7f831f | Seagate | openSeaChest | NA | int build_PSP_Legacy_CDB(uint8_t *cdb, uint8_t *cdbLen, ataPassthroughCommand *ataCommandOptions)
{
int ret = SUCCESS;
if (ataCommandOptions->commandType == ATA_CMD_TYPE_EXTENDED_TASKFILE)
{
*cdbLen = PSP_EXT_COMMAND_CDB_LEN;
cdb[0] = PSP_OPCODE;
switch (ataCommandOptions->commandDirection)
{
case XFER_NO_DATA:
cdb[1] |= PSP_FUNC_NON_DATA_COMMAND;
break;
case XFER_DATA_IN:
cdb[1] |= PSP_FUNC_EXT_DATA_IN_COMMAND;
break;
case XFER_DATA_OUT:
cdb[1] |= PSP_FUNC_EXT_DATA_OUT_COMMAND;
break;
default:
return NOT_SUPPORTED;
}
cdb[2] = RESERVED;
cdb[3] = ataCommandOptions->tfr.SectorCount48;
cdb[4] = ataCommandOptions->tfr.LbaLow48;
cdb[5] = ataCommandOptions->tfr.LbaMid48;
cdb[6] = ataCommandOptions->tfr.LbaHi48;
cdb[7] = RESERVED;
cdb[8] = ataCommandOptions->tfr.SectorCount;
cdb[9] = ataCommandOptions->tfr.LbaLow;
cdb[10] = ataCommandOptions->tfr.LbaMid;
cdb[11] = ataCommandOptions->tfr.LbaHi;
cdb[12] = ataCommandOptions->tfr.DeviceHead;
cdb[13] = ataCommandOptions->tfr.CommandStatus;
cdb[14] = M_Byte0(ataCommandOptions->dataSize / LEGACY_DRIVE_SEC_SIZE);
cdb[15] = M_Byte1(ataCommandOptions->dataSize / LEGACY_DRIVE_SEC_SIZE);
cdb[16] = RESERVED;
//control byte. Set to 0
cdb[17] = 0;
}
else //assume 28bit command
{
*cdbLen = CDB_LEN_12;
cdb[0] = PSP_OPCODE;
switch (ataCommandOptions->commandDirection)
{
case XFER_NO_DATA:
cdb[1] |= PSP_FUNC_NON_DATA_COMMAND;
break;
case XFER_DATA_IN:
cdb[1] |= PSP_FUNC_DATA_IN_COMMAND;
break;
case XFER_DATA_OUT:
cdb[1] |= PSP_FUNC_DATA_OUT_COMMAND;
break;
default:
return NOT_SUPPORTED;
}
cdb[2] = ataCommandOptions->tfr.ErrorFeature;
cdb[3] = ataCommandOptions->tfr.SectorCount;
cdb[4] = ataCommandOptions->tfr.LbaLow;
cdb[5] = ataCommandOptions->tfr.LbaMid;
cdb[6] = ataCommandOptions->tfr.LbaHi;
cdb[7] = ataCommandOptions->tfr.DeviceHead;
cdb[8] = ataCommandOptions->tfr.CommandStatus;
//transfer length
cdb[9] = M_Byte0(ataCommandOptions->dataSize / LEGACY_DRIVE_SEC_SIZE);
cdb[10] = RESERVED;
//control, set to 0
cdb[11] = 0;
}
return ret;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_494E21", "function_addr": 4804129, "binary_name": "892fedff583f6ea4b46c284d049dc9df01238d46df2521e95544083c2b7f831f.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 [rbp+var_4], 0"], [6, "mov rax, [rbp+var_28]"], [7, "mov eax, [rax]"], [8, "cmp eax, 2"], [9, "jnz loc_494FE1"], [10, "mov rax, [rbp+var_20]"], [11, "mov byte ptr [rax], 12h"], [12, "mov rax, [rbp+var_18]"], [13, "mov byte ptr [rax], 0F0h"], [14, "mov rax, [rbp+var_28]"], [15, "mov eax, [rax+4]"], [16, "cmp eax, 2"], [17, "jz short loc_494EA5"], [18, "cmp eax, 2"], [19, "ja short loc_494EBF"], [20, "test eax, eax"], [21, "jz short loc_494E71"], [22, "cmp eax, 1"], [23, "jz short loc_494E8B"], [24, "jmp short loc_494EBF"], [25, "mov rax, [rbp+var_18]"], [26, "add rax, 1"], [27, "movzx edx, byte ptr [rax]"], [28, "mov rax, [rbp+var_18]"], [29, "add rax, 1"], [30, "or edx, 1"], [31, "mov [rax], dl"], [32, "jmp short loc_494EC9"], [33, "mov rax, [rbp+var_18]"], [34, "add rax, 1"], [35, "movzx edx, byte ptr [rax]"], [36, "mov rax, [rbp+var_18]"], [37, "add rax, 1"], [38, "or edx, 8"], [39, "mov [rax], dl"], [40, "jmp short loc_494EC9"], [41, "mov rax, [rbp+var_18]"], [42, "add rax, 1"], [43, "movzx edx, byte ptr [rax]"], [44, "mov rax, [rbp+var_18]"], [45, "add rax, 1"], [46, "or edx, 9"], [47, "mov [rax], dl"], [48, "jmp short loc_494EC9"], [49, "mov eax, 2"], [50, "jmp loc_495110"], [51, "mov rax, [rbp+var_18]"], [52, "add rax, 2"], [53, "mov byte ptr [rax], 0"], [54, "mov rax, [rbp+var_18]"], [55, "lea rdx, [rax+3]"], [56, "mov rax, [rbp+var_28]"], [57, "movzx eax, byte ptr [rax+17h]"], [58, "mov [rdx], al"], [59, "mov rax, [rbp+var_18]"], [60, "lea rdx, [rax+4]"], [61, "mov rax, [rbp+var_28]"], [62, "movzx eax, byte ptr [rax+12h]"], [63, "mov [rdx], al"], [64, "mov rax, [rbp+var_18]"], [65, "lea rdx, [rax+5]"], [66, "mov rax, [rbp+var_28]"], [67, "movzx eax, byte ptr [rax+13h]"], [68, "mov [rdx], al"], [69, "mov rax, [rbp+var_18]"], [70, "lea rdx, [rax+6]"], [71, "mov rax, [rbp+var_28]"], [72, "movzx eax, byte ptr [rax+14h]"], [73, "mov [rdx], al"], [74, "mov rax, [rbp+var_18]"], [75, "add rax, 7"], [76, "mov byte ptr [rax], 0"], [77, "mov rax, [rbp+var_18]"], [78, "lea rdx, [rax+8]"], [79, "mov rax, [rbp+var_28]"], [80, "movzx eax, byte ptr [rax+16h]"], [81, "mov [rdx], al"], [82, "mov rax, [rbp+var_18]"], [83, "lea rdx, [rax+9]"], [84, "mov rax, [rbp+var_28]"], [85, "movzx eax, byte ptr [rax+0Eh]"], [86, "mov [rdx], al"], [87, "mov rax, [rbp+var_18]"], [88, "lea rdx, [rax+0Ah]"], [89, "mov rax, [rbp+var_28]"], [90, "movzx eax, byte ptr [rax+0Fh]"], [91, "mov [rdx], al"], [92, "mov rax, [rbp+var_18]"], [93, "lea rdx, [rax+0Bh]"], [94, "mov rax, [rbp+var_28]"], [95, "movzx eax, byte ptr [rax+10h]"], [96, "mov [rdx], al"], [97, "mov rax, [rbp+var_18]"], [98, "lea rdx, [rax+0Ch]"], [99, "mov rax, [rbp+var_28]"], [100, "movzx eax, byte ptr [rax+11h]"], [101, "mov [rdx], al"], [102, "mov rax, [rbp+var_18]"], [103, "lea rdx, [rax+0Dh]"], [104, "mov rax, [rbp+var_28]"], [105, "movzx eax, byte ptr [rax+0Ch]"], [106, "mov [rdx], al"], [107, "mov rax, [rbp+var_28]"], [108, "mov eax, [rax+38h]"], [109, "shr eax, 9"], [110, "mov edx, eax"], [111, "mov rax, [rbp+var_18]"], [112, "add rax, 0Eh"], [113, "mov [rax], dl"], [114, "mov rax, [rbp+var_28]"], [115, "mov eax, [rax+38h]"], [116, "shr eax, 9"], [117, "mov eax, eax"], [118, "shr rax, 8"], [119, "mov rdx, rax"], [120, "mov rax, [rbp+var_18]"], [121, "add rax, 0Fh"], [122, "mov [rax], dl"], [123, "mov rax, [rbp+var_18]"], [124, "add rax, 10h"], [125, "mov byte ptr [rax], 0"], [126, "mov rax, [rbp+var_18]"], [127, "add rax, 11h"], [128, "mov byte ptr [rax], 0"], [129, "jmp loc_49510D"], [130, "mov rax, [rbp+var_20]"], [131, "mov byte ptr [rax], 0Ch"], [132, "mov rax, [rbp+var_18]"], [133, "mov byte ptr [rax], 0F0h"], [134, "mov rax, [rbp+var_28]"], [135, "mov eax, [rax+4]"], [136, "cmp eax, 2"], [137, "jz short loc_49503F"], [138, "cmp eax, 2"], [139, "ja short loc_495059"], [140, "test eax, eax"], [141, "jz short loc_49500B"], [142, "cmp eax, 1"], [143, "jz short loc_495025"], [144, "jmp short loc_495059"], [145, "mov rax, [rbp+var_18]"], [146, "add rax, 1"], [147, "movzx edx, byte ptr [rax]"], [148, "mov rax, [rbp+var_18]"], [149, "add rax, 1"], [150, "or edx, 1"], [151, "mov [rax], dl"], [152, "jmp short loc_495063"], [153, "mov rax, [rbp+var_18]"], [154, "add rax, 1"], [155, "movzx edx, byte ptr [rax]"], [156, "mov rax, [rbp+var_18]"], [157, "add rax, 1"], [158, "or edx, 3"], [159, "mov [rax], dl"], [160, "jmp short loc_495063"], [161, "mov rax, [rbp+var_18]"], [162, "add rax, 1"], [163, "movzx edx, byte ptr [rax]"], [164, "mov rax, [rbp+var_18]"], [165, "add rax, 1"], [166, "or edx, 7"], [167, "mov [rax], dl"], [168, "jmp short loc_495063"], [169, "mov eax, 2"], [170, "jmp loc_495110"], [171, "mov rax, [rbp+var_18]"], [172, "lea rdx, [rax+2]"], [173, "mov rax, [rbp+var_28]"], [174, "movzx eax, byte ptr [rax+0Dh]"], [175, "mov [rdx], al"], [176, "mov rax, [rbp+var_18]"], [177, "lea rdx, [rax+3]"], [178, "mov rax, [rbp+var_28]"], [179, "movzx eax, byte ptr [rax+16h]"], [180, "mov [rdx], al"], [181, "mov rax, [rbp+var_18]"], [182, "lea rdx, [rax+4]"], [183, "mov rax, [rbp+var_28]"], [184, "movzx eax, byte ptr [rax+0Eh]"], [185, "mov [rdx], al"], [186, "mov rax, [rbp+var_18]"], [187, "lea rdx, [rax+5]"], [188, "mov rax, [rbp+var_28]"], [189, "movzx eax, byte ptr [rax+0Fh]"], [190, "mov [rdx], al"], [191, "mov rax, [rbp+var_18]"], [192, "lea rdx, [rax+6]"], [193, "mov rax, [rbp+var_28]"], [194, "movzx eax, byte ptr [rax+10h]"], [195, "mov [rdx], al"], [196, "mov rax, [rbp+var_18]"], [197, "lea rdx, [rax+7]"], [198, "mov rax, [rbp+var_28]"], [199, "movzx eax, byte ptr [rax+11h]"], [200, "mov [rdx], al"], [201, "mov rax, [rbp+var_18]"], [202, "lea rdx, [rax+8]"], [203, "mov rax, [rbp+var_28]"], [204, "movzx eax, byte ptr [rax+0Ch]"], [205, "mov [rdx], al"], [206, "mov rax, [rbp+var_28]"], [207, "mov eax, [rax+38h]"], [208, "shr eax, 9"], [209, "mov edx, eax"], [210, "mov rax, [rbp+var_18]"], [211, "add rax, 9"], [212, "mov [rax], dl"], [213, "mov rax, [rbp+var_18]"], [214, "add rax, 0Ah"], [215, "mov byte ptr [rax], 0"], [216, "mov rax, [rbp+var_18]"], [217, "add rax, 0Bh"], [218, "mov byte ptr [rax], 0"], [219, "mov eax, [rbp+var_4]"], [220, "pop rbp"], [221, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [9, 8], [10, 3], [11, 10], [12, 2], [13, 12], [14, 4], [15, 14], [15, 13], [16, 15], [17, 16], [18, 15], [19, 18], [20, 15], [21, 20], [22, 20], [23, 22], [25, 2], [26, 25], [27, 13], [27, 31], [27, 26], [27, 11], [28, 2], [29, 28], [30, 27], [31, 29], [31, 30], [33, 2], [34, 33], [35, 11], [35, 39], [35, 34], [35, 13], [36, 2], [37, 36], [38, 35], [39, 38], [39, 37], [41, 2], [42, 41], [43, 11], [43, 47], [43, 42], [43, 13], [44, 2], [45, 44], [46, 43], [47, 46], [47, 45], [51, 2], [52, 51], [53, 52], [54, 2], [55, 38], [55, 46], [55, 54], [55, 53], [55, 30], [56, 4], [57, 53], [57, 56], [58, 57], [58, 55], [59, 2], [60, 55], [60, 59], [60, 58], [61, 4], [62, 58], [62, 61], [63, 60], [63, 62], [64, 2], [65, 64], [65, 63], [65, 60], [66, 4], [67, 63], [67, 66], [68, 67], [68, 65], [69, 2], [70, 68], [70, 65], [70, 69], [71, 4], [72, 71], [72, 68], [73, 72], [73, 70], [74, 2], [75, 74], [76, 75], [77, 2], [78, 77], [78, 76], [78, 70], [79, 4], [80, 76], [80, 79], [81, 78], [81, 80], [82, 2], [83, 81], [83, 78], [83, 82], [84, 4], [85, 84], [85, 81], [86, 85], [86, 83], [87, 2], [88, 86], [88, 83], [88, 87], [89, 4], [90, 86], [90, 89], [91, 90], [91, 88], [92, 2], [93, 88], [93, 92], [93, 91], [94, 4], [95, 91], [95, 94], [96, 95], [96, 93], [97, 2], [98, 97], [98, 96], [98, 93], [99, 4], [100, 96], [100, 99], [101, 100], [101, 98], [102, 2], [103, 102], [103, 101], [103, 98], [104, 4], [105, 104], [105, 101], [106, 105], [106, 103], [107, 4], [108, 107], [108, 106], [109, 108], [110, 109], [111, 2], [112, 111], [113, 112], [113, 110], [114, 4], [115, 114], [115, 113], [116, 115], [117, 116], [118, 117], [119, 118], [120, 2], [121, 120], [122, 119], [122, 121], [123, 2], [124, 123], [125, 124], [126, 2], [127, 126], [128, 127], [130, 3], [131, 130], [132, 2], [133, 132], [134, 4], [135, 134], [135, 133], [136, 135], [137, 136], [138, 135], [139, 138], [140, 135], [141, 140], [142, 140], [143, 142], [145, 2], [146, 145], [147, 133], [147, 151], [147, 146], [147, 131], [148, 2], [149, 148], [150, 147], [151, 150], [151, 149], [153, 2], [154, 153], [155, 133], [155, 159], [155, 131], [155, 154], [156, 2], [157, 156], [158, 155], [159, 158], [159, 157], [161, 2], [162, 161], [163, 133], [163, 131], [163, 167], [163, 162], [164, 2], [165, 164], [166, 163], [167, 166], [167, 165], [171, 2], [172, 205], [172, 200], [172, 218], [172, 195], [172, 190], [172, 158], [172, 167], [172, 185], [172, 171], [172, 180], [172, 166], [172, 133], [172, 212], [172, 175], [172, 151], [172, 150], [172, 159], [172, 131], [172, 215], [173, 4], [174, 180], [174, 133], [174, 212], [174, 175], [174, 151], [174, 173], [174, 159], [174, 131], [174, 215], [174, 205], [174, 200], [174, 218], [174, 195], [174, 190], [174, 167], [174, 185], [175, 172], [175, 174], [176, 2], [177, 176], [177, 175], [177, 172], [178, 4], [179, 175], [179, 178], [180, 177], [180, 179], [181, 2], [182, 177], [182, 181], [182, 180], [183, 4], [184, 180], [184, 183], [185, 184], [185, 182], [186, 2], [187, 182], [187, 186], [187, 185], [188, 4], [189, 185], [189, 188], [190, 189], [190, 187], [191, 2], [192, 187], [192, 191], [192, 190], [193, 4], [194, 190], [194, 193], [195, 192], [195, 194], [196, 2], [197, 196], [197, 195], [197, 192], [198, 4], [199, 195], [199, 198], [200, 197], [200, 199], [201, 2], [202, 200], [202, 197], [202, 201], [203, 4], [204, 203], [204, 200], [205, 204], [205, 202], [206, 4], [207, 206], [207, 205], [208, 207], [209, 208], [210, 2], [211, 210], [212, 211], [212, 209], [213, 2], [214, 213], [215, 214], [216, 2], [217, 216], [218, 217], [219, 5], [220, 0], [221, 219], [221, 49], [221, 169]]}
| {"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/892fedff583f6ea4b46c284d049dc9df01238d46df2521e95544083c2b7f831f_892fedff583f6ea4b46c284d049dc9df01238d46df2521e95544083c2b7f831f.jsonl.gz", "strip_func_name": "sub_494E21", "query": "\n\n\n__int64 __fastcall sub_494E21(__int64 a1, _BYTE *a2, __int64 a3)\n{\nunsigned int v3; // eax\nunsigned int v5; // eax\n\nif ( *(_DWORD *)a3 == 2 )\n{\n*a2 = 18;\n*(_BYTE *)a1 = -16;\nv3 = *(_DWORD *)(a3 + 4);\nif ( v3 == 2 )\n{\n*(_BYTE *)(a1 + 1) |= 9u;\n}\nelse\n{\nif ( v3 > 2 )\nreturn 2LL;\nif ( v3 )\n*(_BYTE *)(a1 + 1) |= 8u;\nelse\n*(_BYTE *)(a1 + 1) |= 1u;\n}\n*(_BYTE *)(a1 + 2) = 0;\n*(_BYTE *)(a1 + 3) = *(_BYTE *)(a3 + 23);\n*(_BYTE *)(a1 + 4) = *(_BYTE *)(a3 + 18);\n*(_BYTE *)(a1 + 5) = *(_BYTE *)(a3 + 19);\n*(_BYTE *)(a1 + 6) = *(_BYTE *)(a3 + 20);\n*(_BYTE *)(a1 + 7) = 0;\n*(_BYTE *)(a1 + 8) = *(_BYTE *)(a3 + 22);\n*(_BYTE *)(a1 + 9) = *(_BYTE *)(a3 + 14);\n*(_BYTE *)(a1 + 10) = *(_BYTE *)(a3 + 15);\n*(_BYTE *)(a1 + 11) = *(_BYTE *)(a3 + 16);\n*(_BYTE *)(a1 + 12) = *(_BYTE *)(a3 + 17);\n*(_BYTE *)(a1 + 13) = *(_BYTE *)(a3 + 12);\n*(_BYTE *)(a1 + 14) = *(_DWORD *)(a3 + 56) >> 9;\n*(_WORD *)(a1 + 15) = (unsigned __int8)((unsigned __int16)(*(_DWORD *)(a3 + 56) >> 9) >> 8);\n*(_BYTE *)(a1 + 17) = 0;\n}\nelse\n{\n*a2 = 12;\n*(_BYTE *)a1 = -16;\nv5 = *(_DWORD *)(a3 + 4);\nif ( v5 == 2 )\n{\n*(_BYTE *)(a1 + 1) |= 7u;\n}\nelse\n{\nif ( v5 > 2 )\nreturn 2LL;\nif ( v5 )\n*(_BYTE *)(a1 + 1) |= 3u;\nelse\n*(_BYTE *)(a1 + 1) |= 1u;\n}\n*(_BYTE *)(a1 + 2) = *(_BYTE *)(a3 + 13);\n*(_BYTE *)(a1 + 3) = *(_BYTE *)(a3 + 22);\n*(_BYTE *)(a1 + 4) = *(_BYTE *)(a3 + 14);\n*(_BYTE *)(a1 + 5) = *(_BYTE *)(a3 + 15);\n*(_BYTE *)(a1 + 6) = *(_BYTE *)(a3 + 16);\n*(_BYTE *)(a1 + 7) = *(_BYTE *)(a3 + 17);\n*(_BYTE *)(a1 + 8) = *(_BYTE *)(a3 + 12);\n*(_WORD *)(a1 + 9) = (unsigned __int8)(*(_DWORD *)(a3 + 56) >> 9);\n*(_BYTE *)(a1 + 11) = 0;\n}\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,sub_494E21,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'ataCommandOptions', 'a1': 'cdb', 'a2': 'cdbLen', 'sub_494E21': 'build_PSP_Legacy_CDB'}"} |
|
DecodeMem | 0ed415916a87ea50b57855dc7656ad162af56e16e4123e6135eccc15202117d8 | michalsc | Emu68 | NA | static DecodeStatus DecodeMem(MCInst *Inst,
unsigned Insn, uint64_t Address, const MCRegisterInfo *Decoder)
{
int Offset = SignExtend32(Insn & 0xffff, 16);
unsigned Reg = fieldFromInstruction(Insn, 16, 5);
unsigned Base = fieldFromInstruction(Insn, 21, 5);
int opcode = MCInst_getOpcode(Inst);
Reg = getReg(Decoder, Mips_GPR32RegClassID, Reg);
Base = getReg(Decoder, Mips_GPR32RegClassID, Base);
if (opcode == Mips_SC || opcode == Mips_SCD) {
MCOperand_CreateReg0(Inst, Reg);
}
MCOperand_CreateReg0(Inst, Reg);
MCOperand_CreateReg0(Inst, Base);
MCOperand_CreateImm0(Inst, Offset);
return MCDisassembler_Success;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4B498D", "function_addr": 4934029, "binary_name": "0ed415916a87ea50b57855dc7656ad162af56e16e4123e6135eccc15202117d8.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 eax, [rbp+var_1C]"], [8, "movzx eax, ax"], [9, "mov esi, 10h"], [10, "mov edi, eax"], [11, "call sub_4A7DDD"], [12, "mov [rbp+var_4], eax"], [13, "mov eax, [rbp+var_1C]"], [14, "mov edx, 5"], [15, "mov esi, 10h"], [16, "mov edi, eax"], [17, "call sub_4A8D0B"], [18, "mov [rbp+var_8], eax"], [19, "mov eax, [rbp+var_1C]"], [20, "mov edx, 5"], [21, "mov esi, 15h"], [22, "mov edi, eax"], [23, "call sub_4A8D0B"], [24, "mov [rbp+var_C], eax"], [25, "mov rax, [rbp+var_18]"], [26, "mov rdi, rax"], [27, "call sub_437CD0"], [28, "mov [rbp+var_10], eax"], [29, "mov edx, [rbp+var_8]"], [30, "mov rax, [rbp+var_30]"], [31, "mov esi, 8"], [32, "mov rdi, rax"], [33, "call sub_4B3C25"], [34, "mov [rbp+var_8], eax"], [35, "mov edx, [rbp+var_C]"], [36, "mov rax, [rbp+var_30]"], [37, "mov esi, 8"], [38, "mov rdi, rax"], [39, "call sub_4B3C25"], [40, "mov [rbp+var_C], eax"], [41, "cmp [rbp+var_10], 592h"], [42, "jz short loc_4B4A36"], [43, "cmp [rbp+var_10], 593h"], [44, "jnz short loc_4B4A47"], [45, "mov edx, [rbp+var_8]"], [46, "mov rax, [rbp+var_18]"], [47, "mov esi, edx"], [48, "mov rdi, rax"], [49, "call sub_437E96"], [50, "mov edx, [rbp+var_8]"], [51, "mov rax, [rbp+var_18]"], [52, "mov esi, edx"], [53, "mov rdi, rax"], [54, "call sub_437E96"], [55, "mov edx, [rbp+var_C]"], [56, "mov rax, [rbp+var_18]"], [57, "mov esi, edx"], [58, "mov rdi, rax"], [59, "call sub_437E96"], [60, "mov eax, [rbp+var_4]"], [61, "movsxd rdx, eax"], [62, "mov rax, [rbp+var_18]"], [63, "mov rsi, rdx"], [64, "mov rdi, rax"], [65, "call sub_437F1F"], [66, "mov eax, 3"], [67, "leave"], [68, "retn"]], "data_dep": [[7, 4], [8, 7], [10, 8], [12, 11], [13, 4], [16, 13], [18, 17], [19, 4], [22, 19], [24, 23], [25, 3], [26, 25], [28, 27], [29, 18], [30, 6], [32, 30], [34, 33], [35, 24], [36, 6], [38, 36], [40, 39], [41, 28], [42, 41], [43, 28], [44, 43], [45, 34], [46, 3], [47, 45], [48, 46], [50, 34], [51, 3], [52, 50], [53, 51], [55, 40], [56, 3], [57, 55], [58, 56], [60, 12], [61, 60], [62, 3], [63, 61], [64, 62], [68, 66]]}
| {"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/0ed415916a87ea50b57855dc7656ad162af56e16e4123e6135eccc15202117d8_0ed415916a87ea50b57855dc7656ad162af56e16e4123e6135eccc15202117d8.jsonl.gz", "strip_func_name": "sub_4B498D", "query": "\n\n\n__int64 __fastcall sub_4B498D(__int64 a1, unsigned int a2, __int64 a3, __int64 a4)\n{\nint v6; // [rsp+20h] [rbp-10h]\nunsigned int v7; // [rsp+24h] [rbp-Ch]\nint v8; // [rsp+24h] [rbp-Ch]\nunsigned int v9; // [rsp+28h] [rbp-8h]\nint v10; // [rsp+28h] [rbp-8h]\nint v11; // [rsp+2Ch] [rbp-4h]\n\nv11 = sub_4A7DDD((unsigned __int16)a2, 16);\nv9 = sub_4A8D0B(a2, 16, 5);\nv7 = sub_4A8D0B(a2, 21, 5);\nv6 = sub_437CD0(a1);\nv10 = sub_4B3C25(a4, 8u, v9);\nv8 = sub_4B3C25(a4, 8u, v7);\nif ( v6 == 1426 || v6 == 1427 )\nsub_437E96(a1, v10);\nsub_437E96(a1, v10);\nsub_437E96(a1, v8);\nsub_437F1F(a1, v11);\nreturn 3LL;\n}\n\n\n\nQ:[a4,a1,a2,a3,v6,v8,v9,v11,sub_4B498D,sub_4A7DDD,sub_4A8D0B,sub_437CD0,sub_4B3C25,sub_437E96,sub_437F1F,]\nAssistant: ", "hints": "[]", "response": "{'a4': 'Decoder', 'a1': 'Inst', 'a2': 'Insn', 'a3': 'Address', 'v6': 'opcode', 'v8': 'Base', 'v9': 'Rega', 'v11': 'Offset', 'sub_4B498D': 'DecodeMem', 'sub_4A7DDD': 'SignExtend32_0', 'sub_4A8D0B': 'fieldFromInstruction_0', 'sub_437CD0': 'MCInst_getOpcode', 'sub_4B3C25': 'getReg', 'sub_437E96': 'MCOperand_CreateReg0', 'sub_437F1F': 'MCOperand_CreateImm0'}"} |
|
launch_zone_message | 47dbb0334d900656507d737fe374672f3140f5fc6d4279824cf09bfea156759f | dm-vdo | vdo | NA | static int launch_zone_message(struct uds_zone_message message,
unsigned int zone,
struct uds_index *index)
{
int result;
struct uds_request *request;
result = UDS_ALLOCATE(1, struct uds_request, __func__, &request);
if (result != UDS_SUCCESS) {
return result;
}
request->index = index;
request->unbatched = true;
request->zone_number = zone;
request->zone_message = message;
enqueue_request(request, STAGE_MESSAGE);
return UDS_SUCCESS;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_425FA0", "function_addr": 4349856, "binary_name": "47dbb0334d900656507d737fe374672f3140f5fc6d4279824cf09bfea156759f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 70h"], [3, "mov rax, rsi"], [4, "mov r8d, edi"], [5, "mov rsi, r8"], [6, "mov rdi, r9"], [7, "mov rdi, rax"], [8, "mov [rbp+var_60], rsi"], [9, "mov [rbp+var_58], rdi"], [10, "mov [rbp+var_64], edx"], [11, "mov [rbp+var_70], rcx"], [12, "mov [rbp+var_10], 1"], [13, "mov [rbp+var_18], 90h"], [14, "mov [rbp+var_20], 0"], [15, "mov [rbp+var_28], 8"], [16, "lea rax, aLaunchZoneMess"], [17, "mov [rbp+var_30], rax"], [18, "lea rax, [rbp+var_48]"], [19, "mov [rbp+var_38], rax"], [20, "mov rax, [rbp+var_10]"], [21, "imul rax, [rbp+var_18]"], [22, "mov rdx, rax"], [23, "mov rax, [rbp+var_20]"], [24, "add rax, rdx"], [25, "mov [rbp+var_40], rax"], [26, "cmp [rbp+var_18], 0"], [27, "jz short loc_426035"], [28, "mov rax, [rbp+var_20]"], [29, "not rax"], [30, "mov edx, 0"], [31, "div [rbp+var_18]"], [32, "cmp [rbp+var_10], rax"], [33, "jbe short loc_426035"], [34, "mov [rbp+var_40], 0FFFFFFFFFFFFFFFFh"], [35, "mov rcx, [rbp+var_38]"], [36, "mov rdx, [rbp+var_30]"], [37, "mov rsi, [rbp+var_28]"], [38, "mov rax, [rbp+var_40]"], [39, "mov rdi, rax"], [40, "call sub_414A98"], [41, "mov [rbp+var_4], eax"], [42, "cmp [rbp+var_4], 0"], [43, "jz short loc_42605B"], [44, "mov eax, [rbp+var_4]"], [45, "jmp short locret_4260A3"], [46, "mov rax, [rbp+var_48]"], [47, "mov rdx, [rbp+var_70]"], [48, "mov [rax+60h], rdx"], [49, "mov rax, [rbp+var_48]"], [50, "mov byte ptr [rax+78h], 1"], [51, "mov rax, [rbp+var_48]"], [52, "mov edx, [rbp+var_64]"], [53, "mov [rax+4Ch], edx"], [54, "mov rcx, [rbp+var_48]"], [55, "mov rax, [rbp+var_60]"], [56, "mov rdx, [rbp+var_58]"], [57, "mov [rcx+68h], rax"], [58, "mov [rcx+70h], rdx"], [59, "mov rax, [rbp+var_48]"], [60, "mov esi, 2"], [61, "mov rdi, rax"], [62, "call sub_428D77"], [63, "mov eax, 0"], [64, "leave"], [65, "retn"]], "data_dep": [[5, 4], [7, 3], [8, 5], [9, 7], [16, 3], [17, 16], [18, 16], [19, 18], [20, 12], [21, 13], [21, 20], [22, 21], [23, 14], [24, 23], [24, 22], [25, 24], [26, 13], [27, 26], [28, 14], [29, 28], [31, 13], [32, 12], [32, 29], [33, 32], [35, 19], [36, 17], [37, 15], [38, 25], [38, 34], [39, 38], [41, 40], [42, 41], [43, 42], [44, 41], [47, 11], [48, 47], [48, 46], [50, 49], [52, 10], [53, 52], [53, 51], [55, 8], [56, 9], [57, 54], [57, 55], [58, 56], [58, 54], [61, 59], [65, 63], [65, 44]]}
| {"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/47dbb0334d900656507d737fe374672f3140f5fc6d4279824cf09bfea156759f_47dbb0334d900656507d737fe374672f3140f5fc6d4279824cf09bfea156759f.jsonl.gz", "strip_func_name": "sub_425FA0", "query": "\n\n\n__int64 __fastcall sub_425FA0(unsigned int a1, __int64 a2, int a3, __int64 a4)\n{\n_QWORD *v5; // rcx\nvoid *v8[8]; // [rsp+28h] [rbp-48h] BYREF\nunsigned int v9; // [rsp+6Ch] [rbp-4h]\n\nv8[7] = (void *)1;\nv8[6] = (void *)144;\nv8[5] = 0LL;\nv8[4] = (void *)8;\nv8[3] = \"launch_zone_message\";\nv8[2] = v8;\nv8[1] = (void *)144;\nv9 = sub_414A98(0x90uLL, 8uLL, (__int64)\"launch_zone_message\", v8);\nif ( v9 )\nreturn v9;\n*((_QWORD *)v8[0] + 12) = a4;\n*((_BYTE *)v8[0] + 120) = 1;\n*((_DWORD *)v8[0] + 19) = a3;\nv5 = v8[0];\n*((_QWORD *)v8[0] + 13) = a1;\nv5[14] = a2;\nsub_428D77(v8[0], 2LL);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,v8,v9,sub_425FA0,sub_414A98,sub_428D77,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'zone', 'a4': 'index', 'v8': 'request', 'v9': 'result', 'sub_425FA0': 'launch_zone_message', 'sub_414A98': 'uds_allocate_memory', 'sub_428D77': 'enqueue_request'}"} |
|
skip_spaces | 827407bc4b54c18411de29380a852137fa0a765e5473dda1980d82ef7496637e | vlang | tcc | NA | static inline void skip_spaces(void)
{
while (isidnum_table[ch - CH_EOF] & IS_SPC)
cinp();
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403E3D", "function_addr": 4210237, "binary_name": "827407bc4b54c18411de29380a852137fa0a765e5473dda1980d82ef7496637e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "jmp short loc_403E48"], [3, "call sub_40399E"], [4, "mov eax, cs:c"], [5, "add eax, 1"], [6, "cdqe"], [7, "movzx eax, ds:byte_468A00[rax]"], [8, "movzx eax, al"], [9, "and eax, 1"], [10, "test eax, eax"], [11, "jnz short loc_403E43"], [12, "nop"], [13, "nop"], [14, "pop rbp"], [15, "retn"]], "data_dep": [[5, 4], [8, 7], [9, 8], [10, 9], [11, 10], [14, 0], [15, 10]]}
| {"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/827407bc4b54c18411de29380a852137fa0a765e5473dda1980d82ef7496637e_827407bc4b54c18411de29380a852137fa0a765e5473dda1980d82ef7496637e.jsonl.gz", "strip_func_name": "sub_403E3D", "query": "\n\n\n__int64 __fastcall sub_403E3D(__int64 a1, int a2)\n{\n__int64 result; // rax\n\nwhile ( 1 )\n{\nresult = byte_468A00[c + 1] & 1;\nif ( (byte_468A00[c + 1] & 1) == 0 )\nbreak;\nsub_40399E(a1, a2);\n}\nreturn result;\n}\n\n\n\nQ:[sub_403E3D,sub_40399E,]\nAssistant: ", "hints": "[]", "response": "{'sub_403E3D': 'skip_spaces', 'sub_40399E': 'minp'}"} |
|
calc_broken | a3bb29302dcbadc3cc646d325f886c48f3a9739c79ada54a6dd32b27a3225533 | syzygy1 | tb | NA | void calc_broken(struct thread_data *thread)
{
uint64_t idx, idx2;
int i;
int n = numpcs;
assume(n >= 3 && n <= TBPIECES);
bitboard occ, bb;
uint64_t end = thread->end;
for (idx = thread->begin; idx < end; idx += 64) {
FILL_OCC64_cheap {
for (i = 0, bb = 1; i < 64; i++, bb <<= 1)
table_w[idx + i] = table_b[idx + i] = (occ & bb) ? WDL_BROKEN : 0;
} else {
for (i = 0; i < 64; i++)
table_w[idx + i] = table_b[idx + i] = WDL_BROKEN;
}
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40A672", "function_addr": 4236914, "binary_name": "a3bb29302dcbadc3cc646d325f886c48f3a9739c79ada54a6dd32b27a3225533.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 58h"], [3, "mov [rbp+var_58], rdi"], [4, "mov eax, cs:dword_41D370"], [5, "mov [rbp+var_2C], eax"], [6, "cmp [rbp+var_2C], 2"], [7, "jle short loc_40A693"], [8, "cmp [rbp+var_2C], 7"], [9, "jle short $+2"], [10, "mov rax, [rbp+var_58]"], [11, "mov rax, [rax+8]"], [12, "mov [rbp+var_38], rax"], [13, "mov rax, [rbp+var_58]"], [14, "mov rax, [rax]"], [15, "mov [rbp+var_8], rax"], [16, "jmp loc_40A811"], [17, "mov [rbp+var_20], 0"], [18, "mov eax, [rbp+var_2C]"], [19, "sub eax, 2"], [20, "mov [rbp+var_14], eax"], [21, "mov rax, [rbp+var_8]"], [22, "shr rax, 6"], [23, "mov [rbp+var_10], rax"], [24, "jmp short loc_40A6F2"], [25, "mov rax, [rbp+var_10]"], [26, "and eax, 3Fh"], [27, "mov [rbp+var_50], rax"], [28, "mov rdx, [rbp+var_50]"], [29, "mov rax, [rbp+var_20]"], [30, "bts rax, rdx"], [31, "mov [rbp+var_20], rax"], [32, "sub [rbp+var_14], 1"], [33, "shr [rbp+var_10], 6"], [34, "cmp [rbp+var_14], 1"], [35, "jg short loc_40A6CE"], [36, "mov rax, [rbp+var_10]"], [37, "movzx eax, ds:byte_5A9580[rax+rax]"], [38, "movzx eax, al"], [39, "mov [rbp+var_40], rax"], [40, "mov rdx, [rbp+var_40]"], [41, "mov rax, [rbp+var_20]"], [42, "bts rax, rdx"], [43, "mov [rbp+var_20], rax"], [44, "mov rax, [rbp+var_10]"], [45, "movzx eax, ds:byte_5A9581[rax+rax]"], [46, "movzx eax, al"], [47, "mov [rbp+var_48], rax"], [48, "mov rdx, [rbp+var_48]"], [49, "mov rax, [rbp+var_20]"], [50, "bts rax, rdx"], [51, "mov [rbp+var_20], rax"], [52, "mov rax, [rbp+var_20]"], [53, "mov rdi, rax"], [54, "call sub_402479"], [55, "mov edx, [rbp+var_2C]"], [56, "sub edx, 1"], [57, "cmp eax, edx"], [58, "jnz short loc_40A7C3"], [59, "mov [rbp+var_14], 0"], [60, "mov [rbp+var_28], 1"], [61, "jmp short loc_40A7BB"], [62, "mov rax, [rbp+var_20]"], [63, "and rax, [rbp+var_28]"], [64, "test rax, rax"], [65, "jz short loc_40A779"], [66, "mov edx, 0Dh"], [67, "jmp short loc_40A77E"], [68, "mov edx, 0"], [69, "mov rcx, cs:qword_41D368"], [70, "mov eax, [rbp+var_14]"], [71, "movsxd rsi, eax"], [72, "mov rax, [rbp+var_8]"], [73, "add rax, rsi"], [74, "add rax, rcx"], [75, "mov [rax], dl"], [76, "mov rcx, cs:qword_41D360"], [77, "mov edx, [rbp+var_14]"], [78, "movsxd rsi, edx"], [79, "mov rdx, [rbp+var_8]"], [80, "add rdx, rsi"], [81, "add rdx, rcx"], [82, "movzx eax, byte ptr [rax]"], [83, "mov [rdx], al"], [84, "add [rbp+var_14], 1"], [85, "shl [rbp+var_28], 1"], [86, "cmp [rbp+var_14], 3Fh "], [87, "jle short loc_40A765"], [88, "jmp short loc_40A80C"], [89, "mov [rbp+var_14], 0"], [90, "jmp short loc_40A806"], [91, "mov rdx, cs:qword_41D368"], [92, "mov eax, [rbp+var_14]"], [93, "movsxd rcx, eax"], [94, "mov rax, [rbp+var_8]"], [95, "add rax, rcx"], [96, "add rax, rdx"], [97, "mov byte ptr [rax], 0Dh"], [98, "mov rcx, cs:qword_41D360"], [99, "mov edx, [rbp+var_14]"], [100, "movsxd rsi, edx"], [101, "mov rdx, [rbp+var_8]"], [102, "add rdx, rsi"], [103, "add rdx, rcx"], [104, "movzx eax, byte ptr [rax]"], [105, "mov [rdx], al"], [106, "add [rbp+var_14], 1"], [107, "cmp [rbp+var_14], 3Fh "], [108, "jle short loc_40A7CC"], [109, "add [rbp+var_8], 40h "], [110, "mov rax, [rbp+var_8]"], [111, "cmp rax, [rbp+var_38]"], [112, "jb loc_40A6AF"], [113, "nop"], [114, "nop"], [115, "leave"], [116, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 5], [9, 8], [10, 3], [11, 10], [12, 11], [13, 3], [14, 13], [15, 14], [18, 5], [19, 18], [20, 19], [21, 109], [21, 15], [22, 21], [23, 22], [25, 23], [25, 33], [26, 25], [27, 26], [28, 27], [29, 31], [29, 17], [30, 29], [30, 28], [31, 30], [32, 32], [32, 20], [33, 33], [33, 23], [34, 32], [34, 20], [35, 34], [36, 33], [36, 23], [38, 37], [39, 38], [40, 39], [41, 17], [41, 31], [42, 41], [42, 40], [43, 42], [44, 33], [44, 23], [46, 45], [47, 46], [48, 47], [49, 43], [50, 49], [50, 48], [51, 50], [52, 51], [53, 52], [55, 5], [56, 55], [57, 54], [57, 56], [58, 57], [62, 51], [63, 85], [63, 60], [63, 62], [64, 63], [65, 64], [70, 59], [70, 84], [71, 70], [72, 15], [72, 109], [73, 71], [73, 72], [74, 73], [74, 69], [75, 74], [75, 66], [75, 68], [77, 84], [77, 59], [78, 77], [79, 15], [79, 109], [80, 78], [80, 79], [81, 76], [81, 80], [82, 74], [82, 75], [83, 82], [83, 81], [84, 84], [84, 59], [85, 60], [85, 85], [86, 84], [86, 59], [87, 86], [92, 106], [92, 89], [93, 92], [94, 15], [94, 109], [95, 93], [95, 94], [96, 95], [96, 91], [97, 96], [99, 106], [99, 89], [100, 99], [101, 15], [101, 109], [102, 100], [102, 101], [103, 102], [103, 98], [104, 96], [104, 97], [105, 104], [105, 103], [106, 106], [106, 89], [107, 106], [107, 89], [108, 107], [109, 15], [109, 109], [110, 15], [110, 109], [111, 110], [111, 12], [112, 111], [116, 110]]}
| {"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/a3bb29302dcbadc3cc646d325f886c48f3a9739c79ada54a6dd32b27a3225533_a3bb29302dcbadc3cc646d325f886c48f3a9739c79ada54a6dd32b27a3225533.jsonl.gz", "strip_func_name": "sub_40A672", "query": "\n\n\nunsigned __int64 __fastcall sub_40A672(unsigned __int64 *a1)\n{\nchar v1; // dl\nchar *v2; // rax\n_BYTE *v3; // rax\nunsigned __int64 result; // rax\nunsigned __int64 v5; // [rsp+20h] [rbp-38h]\nint v6; // [rsp+2Ch] [rbp-2Ch]\n__int64 v7; // [rsp+30h] [rbp-28h]\n__int64 v8; // [rsp+38h] [rbp-20h]\n__int64 v9; // [rsp+38h] [rbp-20h]\nint v10; // [rsp+44h] [rbp-14h]\nint v11; // [rsp+44h] [rbp-14h]\nint j; // [rsp+44h] [rbp-14h]\nunsigned __int64 v13; // [rsp+48h] [rbp-10h]\nunsigned __int64 i; // [rsp+50h] [rbp-8h]\n\nv6 = dword_41D370;\nv5 = a1[1];\nfor ( i = *a1; ; i += 64LL )\n{\nresult = i;\nif ( i >= v5 )\nbreak;\nv8 = 0LL;\nv10 = v6 - 2;\nv13 = i >> 6;\nwhile ( v10 > 1 )\n{\nv8 |= 1LL << (v13 & 0x3F);\n--v10;\nv13 >>= 6;\n}\nv9 = v8 | (1LL << byte_5A9580[2 * v13]) | (1LL << byte_5A9581[2 * v13]);\nif ( (unsigned int)sub_402479(v9) == v6 - 1 )\n{\nv11 = 0;\nv7 = 1LL;\nwhile ( v11 <= 63 )\n{\nif ( (v7 & v9) != 0 )\nv1 = 13;\nelse\nv1 = 0;\nv2 = (char *)(qword_41D368 + v11 + i);\n*v2 = v1;\n*(_BYTE *)(qword_41D360 + v11++ + i) = *v2;\nv7 *= 2LL;\n}\n}\nelse\n{\nfor ( j = 0; j <= 63; ++j )\n{\nv3 = (_BYTE *)(qword_41D368 + j + i);\n*v3 = 13;\n*(_BYTE *)(qword_41D360 + j + i) = *v3;\n}\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,v5,v6,v7,v8,v11,v13,i,sub_40A672,sub_402479,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'thread', 'v5': 'end', 'v6': 'n', 'v7': 'bb', 'v8': 'occ', 'v11': 'ib', 'v13': 'idx2', 'i': 'idx', 'sub_40A672': 'calc_broken', 'sub_402479': 'PopCount'}"} |
|
draw_keyboard | 53568429b7df50926a8c6ea06fa3ec4149a6d0258a8a232e68b46cef0d3fd984 | termbox | termbox2 | NA | void draw_keyboard()
{
int i;
tb_set_cell(0, 0, 0x250C, TB_WHITE, TB_DEFAULT);
tb_set_cell(79, 0, 0x2510, TB_WHITE, TB_DEFAULT);
tb_set_cell(0, 23, 0x2514, TB_WHITE, TB_DEFAULT);
tb_set_cell(79, 23, 0x2518, TB_WHITE, TB_DEFAULT);
for (i = 1; i < 79; ++i) {
tb_set_cell(i, 0, 0x2500, TB_WHITE, TB_DEFAULT);
tb_set_cell(i, 23, 0x2500, TB_WHITE, TB_DEFAULT);
tb_set_cell(i, 17, 0x2500, TB_WHITE, TB_DEFAULT);
tb_set_cell(i, 4, 0x2500, TB_WHITE, TB_DEFAULT);
}
for (i = 1; i < 23; ++i) {
tb_set_cell(0, i, 0x2502, TB_WHITE, TB_DEFAULT);
tb_set_cell(79, i, 0x2502, TB_WHITE, TB_DEFAULT);
}
tb_set_cell(0, 17, 0x251C, TB_WHITE, TB_DEFAULT);
tb_set_cell(79, 17, 0x2524, TB_WHITE, TB_DEFAULT);
tb_set_cell(0, 4, 0x251C, TB_WHITE, TB_DEFAULT);
tb_set_cell(79, 4, 0x2524, TB_WHITE, TB_DEFAULT);
for (i = 5; i < 17; ++i) {
tb_set_cell(1, i, 0x2588, TB_YELLOW, TB_YELLOW);
tb_set_cell(78, i, 0x2588, TB_YELLOW, TB_YELLOW);
}
draw_key(K_ESC, TB_WHITE, TB_BLUE);
draw_key(K_F1, TB_WHITE, TB_BLUE);
draw_key(K_F2, TB_WHITE, TB_BLUE);
draw_key(K_F3, TB_WHITE, TB_BLUE);
draw_key(K_F4, TB_WHITE, TB_BLUE);
draw_key(K_F5, TB_WHITE, TB_BLUE);
draw_key(K_F6, TB_WHITE, TB_BLUE);
draw_key(K_F7, TB_WHITE, TB_BLUE);
draw_key(K_F8, TB_WHITE, TB_BLUE);
draw_key(K_F9, TB_WHITE, TB_BLUE);
draw_key(K_F10, TB_WHITE, TB_BLUE);
draw_key(K_F11, TB_WHITE, TB_BLUE);
draw_key(K_F12, TB_WHITE, TB_BLUE);
draw_key(K_PRN, TB_WHITE, TB_BLUE);
draw_key(K_SCR, TB_WHITE, TB_BLUE);
draw_key(K_BRK, TB_WHITE, TB_BLUE);
draw_key(K_LED1, TB_WHITE, TB_BLUE);
draw_key(K_LED2, TB_WHITE, TB_BLUE);
draw_key(K_LED3, TB_WHITE, TB_BLUE);
draw_key(K_TILDE, TB_WHITE, TB_BLUE);
draw_key(K_1, TB_WHITE, TB_BLUE);
draw_key(K_2, TB_WHITE, TB_BLUE);
draw_key(K_3, TB_WHITE, TB_BLUE);
draw_key(K_4, TB_WHITE, TB_BLUE);
draw_key(K_5, TB_WHITE, TB_BLUE);
draw_key(K_6, TB_WHITE, TB_BLUE);
draw_key(K_7, TB_WHITE, TB_BLUE);
draw_key(K_8, TB_WHITE, TB_BLUE);
draw_key(K_9, TB_WHITE, TB_BLUE);
draw_key(K_0, TB_WHITE, TB_BLUE);
draw_key(K_MINUS, TB_WHITE, TB_BLUE);
draw_key(K_EQUALS, TB_WHITE, TB_BLUE);
draw_key(K_BACKSLASH, TB_WHITE, TB_BLUE);
draw_key(K_BACKSPACE, TB_WHITE, TB_BLUE);
draw_key(K_INS, TB_WHITE, TB_BLUE);
draw_key(K_HOM, TB_WHITE, TB_BLUE);
draw_key(K_PGU, TB_WHITE, TB_BLUE);
draw_key(K_K_NUMLOCK, TB_WHITE, TB_BLUE);
draw_key(K_K_SLASH, TB_WHITE, TB_BLUE);
draw_key(K_K_STAR, TB_WHITE, TB_BLUE);
draw_key(K_K_MINUS, TB_WHITE, TB_BLUE);
draw_key(K_TAB, TB_WHITE, TB_BLUE);
draw_key(K_q, TB_WHITE, TB_BLUE);
draw_key(K_w, TB_WHITE, TB_BLUE);
draw_key(K_e, TB_WHITE, TB_BLUE);
draw_key(K_r, TB_WHITE, TB_BLUE);
draw_key(K_t, TB_WHITE, TB_BLUE);
draw_key(K_y, TB_WHITE, TB_BLUE);
draw_key(K_u, TB_WHITE, TB_BLUE);
draw_key(K_i, TB_WHITE, TB_BLUE);
draw_key(K_o, TB_WHITE, TB_BLUE);
draw_key(K_p, TB_WHITE, TB_BLUE);
draw_key(K_LSQB, TB_WHITE, TB_BLUE);
draw_key(K_RSQB, TB_WHITE, TB_BLUE);
draw_key(K_ENTER, TB_WHITE, TB_BLUE);
draw_key(K_DEL, TB_WHITE, TB_BLUE);
draw_key(K_END, TB_WHITE, TB_BLUE);
draw_key(K_PGD, TB_WHITE, TB_BLUE);
draw_key(K_K_7, TB_WHITE, TB_BLUE);
draw_key(K_K_8, TB_WHITE, TB_BLUE);
draw_key(K_K_9, TB_WHITE, TB_BLUE);
draw_key(K_K_PLUS, TB_WHITE, TB_BLUE);
draw_key(K_CAPS, TB_WHITE, TB_BLUE);
draw_key(K_a, TB_WHITE, TB_BLUE);
draw_key(K_s, TB_WHITE, TB_BLUE);
draw_key(K_d, TB_WHITE, TB_BLUE);
draw_key(K_f, TB_WHITE, TB_BLUE);
draw_key(K_g, TB_WHITE, TB_BLUE);
draw_key(K_h, TB_WHITE, TB_BLUE);
draw_key(K_j, TB_WHITE, TB_BLUE);
draw_key(K_k, TB_WHITE, TB_BLUE);
draw_key(K_l, TB_WHITE, TB_BLUE);
draw_key(K_SEMICOLON, TB_WHITE, TB_BLUE);
draw_key(K_QUOTE, TB_WHITE, TB_BLUE);
draw_key(K_K_4, TB_WHITE, TB_BLUE);
draw_key(K_K_5, TB_WHITE, TB_BLUE);
draw_key(K_K_6, TB_WHITE, TB_BLUE);
draw_key(K_LSHIFT, TB_WHITE, TB_BLUE);
draw_key(K_z, TB_WHITE, TB_BLUE);
draw_key(K_x, TB_WHITE, TB_BLUE);
draw_key(K_c, TB_WHITE, TB_BLUE);
draw_key(K_v, TB_WHITE, TB_BLUE);
draw_key(K_b, TB_WHITE, TB_BLUE);
draw_key(K_n, TB_WHITE, TB_BLUE);
draw_key(K_m, TB_WHITE, TB_BLUE);
draw_key(K_COMMA, TB_WHITE, TB_BLUE);
draw_key(K_PERIOD, TB_WHITE, TB_BLUE);
draw_key(K_SLASH, TB_WHITE, TB_BLUE);
draw_key(K_RSHIFT, TB_WHITE, TB_BLUE);
draw_key(K_ARROW_UP, TB_WHITE, TB_BLUE);
draw_key(K_K_1, TB_WHITE, TB_BLUE);
draw_key(K_K_2, TB_WHITE, TB_BLUE);
draw_key(K_K_3, TB_WHITE, TB_BLUE);
draw_key(K_K_ENTER, TB_WHITE, TB_BLUE);
draw_key(K_LCTRL, TB_WHITE, TB_BLUE);
draw_key(K_LWIN, TB_WHITE, TB_BLUE);
draw_key(K_LALT, TB_WHITE, TB_BLUE);
draw_key(K_SPACE, TB_WHITE, TB_BLUE);
draw_key(K_RCTRL, TB_WHITE, TB_BLUE);
draw_key(K_RPROP, TB_WHITE, TB_BLUE);
draw_key(K_RWIN, TB_WHITE, TB_BLUE);
draw_key(K_RALT, TB_WHITE, TB_BLUE);
draw_key(K_ARROW_LEFT, TB_WHITE, TB_BLUE);
draw_key(K_ARROW_DOWN, TB_WHITE, TB_BLUE);
draw_key(K_ARROW_RIGHT, TB_WHITE, TB_BLUE);
draw_key(K_K_0, TB_WHITE, TB_BLUE);
draw_key(K_K_PERIOD, TB_WHITE, TB_BLUE);
printf_tb(33, 1, TB_MAGENTA | TB_BOLD, TB_DEFAULT, "Keyboard demo!");
printf_tb(21, 2, TB_MAGENTA, TB_DEFAULT, "(press CTRL+X and then CTRL+Q to exit)");
printf_tb(15, 3, TB_MAGENTA, TB_DEFAULT, "(press CTRL+X and then CTRL+C to change input mode)");
int inputmode = tb_set_input_mode(0);
char inputmode_str[64];
if (inputmode & TB_INPUT_ESC)
sprintf(inputmode_str, "TB_INPUT_ESC");
if (inputmode & TB_INPUT_ALT)
sprintf(inputmode_str, "TB_INPUT_ALT");
if (inputmode & TB_INPUT_MOUSE)
sprintf(inputmode_str + 12, " | TB_INPUT_MOUSE");
printf_tb(3, 18, TB_WHITE, TB_DEFAULT, "Input mode: %s", inputmode_str);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405D49", "function_addr": 4218185, "binary_name": "53568429b7df50926a8c6ea06fa3ec4149a6d0258a8a232e68b46cef0d3fd984.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov r8d, 0"], [4, "mov ecx, 8"], [5, "mov edx, 250Ch"], [6, "mov esi, 0"], [7, "mov edi, 0"], [8, "call sub_40198D"], [9, "mov r8d, 0"], [10, "mov ecx, 8"], [11, "mov edx, 2510h"], [12, "mov esi, 0"], [13, "mov edi, 4Fh "], [14, "call sub_40198D"], [15, "mov r8d, 0"], [16, "mov ecx, 8"], [17, "mov edx, 2514h"], [18, "mov esi, 17h"], [19, "mov edi, 0"], [20, "call sub_40198D"], [21, "mov r8d, 0"], [22, "mov ecx, 8"], [23, "mov edx, 2518h"], [24, "mov esi, 17h"], [25, "mov edi, 4Fh "], [26, "call sub_40198D"], [27, "mov [rbp+var_4], 1"], [28, "jmp loc_405E59"], [29, "mov eax, [rbp+var_4]"], [30, "mov r8d, 0"], [31, "mov ecx, 8"], [32, "mov edx, 2500h"], [33, "mov esi, 0"], [34, "mov edi, eax"], [35, "call sub_40198D"], [36, "mov eax, [rbp+var_4]"], [37, "mov r8d, 0"], [38, "mov ecx, 8"], [39, "mov edx, 2500h"], [40, "mov esi, 17h"], [41, "mov edi, eax"], [42, "call sub_40198D"], [43, "mov eax, [rbp+var_4]"], [44, "mov r8d, 0"], [45, "mov ecx, 8"], [46, "mov edx, 2500h"], [47, "mov esi, 11h"], [48, "mov edi, eax"], [49, "call sub_40198D"], [50, "mov eax, [rbp+var_4]"], [51, "mov r8d, 0"], [52, "mov ecx, 8"], [53, "mov edx, 2500h"], [54, "mov esi, 4"], [55, "mov edi, eax"], [56, "call sub_40198D"], [57, "add [rbp+var_4], 1"], [58, "cmp [rbp+var_4], 4Eh "], [59, "jle loc_405DD9"], [60, "mov [rbp+var_4], 1"], [61, "jmp short loc_405EAE"], [62, "mov eax, [rbp+var_4]"], [63, "mov r8d, 0"], [64, "mov ecx, 8"], [65, "mov edx, 2502h"], [66, "mov esi, eax"], [67, "mov edi, 0"], [68, "call sub_40198D"], [69, "mov eax, [rbp+var_4]"], [70, "mov r8d, 0"], [71, "mov ecx, 8"], [72, "mov edx, 2502h"], [73, "mov esi, eax"], [74, "mov edi, 4Fh "], [75, "call sub_40198D"], [76, "add [rbp+var_4], 1"], [77, "cmp [rbp+var_4], 16h"], [78, "jle short loc_405E6C"], [79, "mov r8d, 0"], [80, "mov ecx, 8"], [81, "mov edx, 251Ch"], [82, "mov esi, 11h"], [83, "mov edi, 0"], [84, "call sub_40198D"], [85, "mov r8d, 0"], [86, "mov ecx, 8"], [87, "mov edx, 2524h"], [88, "mov esi, 11h"], [89, "mov edi, 4Fh "], [90, "call sub_40198D"], [91, "mov r8d, 0"], [92, "mov ecx, 8"], [93, "mov edx, 251Ch"], [94, "mov esi, 4"], [95, "mov edi, 0"], [96, "call sub_40198D"], [97, "mov r8d, 0"], [98, "mov ecx, 8"], [99, "mov edx, 2524h"], [100, "mov esi, 4"], [101, "mov edi, 4Fh "], [102, "call sub_40198D"], [103, "mov [rbp+var_4], 5"], [104, "jmp short loc_405F7B"], [105, "mov eax, [rbp+var_4]"], [106, "mov r8d, 4"], [107, "mov ecx, 4"], [108, "mov edx, 2588h"], [109, "mov esi, eax"], [110, "mov edi, 1"], [111, "call sub_40198D"], [112, "mov eax, [rbp+var_4]"], [113, "mov r8d, 4"], [114, "mov ecx, 4"], [115, "mov edx, 2588h"], [116, "mov esi, eax"], [117, "mov edi, 4Eh "], [118, "call sub_40198D"], [119, "add [rbp+var_4], 1"], [120, "cmp [rbp+var_4], 10h"], [121, "jle short loc_405F39"], [122, "mov edx, 5"], [123, "mov esi, 8"], [124, "mov edi, offset unk_40DCA0"], [125, "call sub_405CE5"], [126, "mov edx, 5"], [127, "mov esi, 8"], [128, "mov edi, offset unk_40DCC0"], [129, "call sub_405CE5"], [130, "mov edx, 5"], [131, "mov esi, 8"], [132, "mov edi, offset unk_40DCE0"], [133, "call sub_405CE5"], [134, "mov edx, 5"], [135, "mov esi, 8"], [136, "mov edi, offset unk_40DD00"], [137, "call sub_405CE5"], [138, "mov edx, 5"], [139, "mov esi, 8"], [140, "mov edi, offset unk_40DD20"], [141, "call sub_405CE5"], [142, "mov edx, 5"], [143, "mov esi, 8"], [144, "mov edi, offset unk_40DD40"], [145, "call sub_405CE5"], [146, "mov edx, 5"], [147, "mov esi, 8"], [148, "mov edi, offset unk_40DD60"], [149, "call sub_405CE5"], [150, "mov edx, 5"], [151, "mov esi, 8"], [152, "mov edi, offset unk_40DD80"], [153, "call sub_405CE5"], [154, "mov edx, 5"], [155, "mov esi, 8"], [156, "mov edi, offset unk_40DDA0"], [157, "call sub_405CE5"], [158, "mov edx, 5"], [159, "mov esi, 8"], [160, "mov edi, offset unk_40DDC0"], [161, "call sub_405CE5"], [162, "mov edx, 5"], [163, "mov esi, 8"], [164, "mov edi, offset unk_40DDE0"], [165, "call sub_405CE5"], [166, "mov edx, 5"], [167, "mov esi, 8"], [168, "mov edi, offset unk_40DE00"], [169, "call sub_405CE5"], [170, "mov edx, 5"], [171, "mov esi, 8"], [172, "mov edi, offset unk_40DE20"], [173, "call sub_405CE5"], [174, "mov edx, 5"], [175, "mov esi, 8"], [176, "mov edi, offset unk_40DE40"], [177, "call sub_405CE5"], [178, "mov edx, 5"], [179, "mov esi, 8"], [180, "mov edi, offset unk_40DE60"], [181, "call sub_405CE5"], [182, "mov edx, 5"], [183, "mov esi, 8"], [184, "mov edi, offset unk_40DE80"], [185, "call sub_405CE5"], [186, "mov edx, 5"], [187, "mov esi, 8"], [188, "mov edi, offset unk_40DEA0"], [189, "call sub_405CE5"], [190, "mov edx, 5"], [191, "mov esi, 8"], [192, "mov edi, offset unk_40DEB0"], [193, "call sub_405CE5"], [194, "mov edx, 5"], [195, "mov esi, 8"], [196, "mov edi, offset unk_40DEC0"], [197, "call sub_405CE5"], [198, "mov edx, 5"], [199, "mov esi, 8"], [200, "mov edi, offset unk_40DED0"], [201, "call sub_405CE5"], [202, "mov edx, 5"], [203, "mov esi, 8"], [204, "mov edi, offset unk_40DEF0"], [205, "call sub_405CE5"], [206, "mov edx, 5"], [207, "mov esi, 8"], [208, "mov edi, offset unk_40DF10"], [209, "call sub_405CE5"], [210, "mov edx, 5"], [211, "mov esi, 8"], [212, "mov edi, offset unk_40DF30"], [213, "call sub_405CE5"], [214, "mov edx, 5"], [215, "mov esi, 8"], [216, "mov edi, offset unk_40DF50"], [217, "call sub_405CE5"], [218, "mov edx, 5"], [219, "mov esi, 8"], [220, "mov edi, offset unk_40DF70"], [221, "call sub_405CE5"], [222, "mov edx, 5"], [223, "mov esi, 8"], [224, "mov edi, offset unk_40DF90"], [225, "call sub_405CE5"], [226, "mov edx, 5"], [227, "mov esi, 8"], [228, "mov edi, offset unk_40DFB0"], [229, "call sub_405CE5"], [230, "mov edx, 5"], [231, "mov esi, 8"], [232, "mov edi, offset unk_40DFD0"], [233, "call sub_405CE5"], [234, "mov edx, 5"], [235, "mov esi, 8"], [236, "mov edi, offset unk_40DFF0"], [237, "call sub_405CE5"], [238, "mov edx, 5"], [239, "mov esi, 8"], [240, "mov edi, offset unk_40E010"], [241, "call sub_405CE5"], [242, "mov edx, 5"], [243, "mov esi, 8"], [244, "mov edi, offset unk_40E030"], [245, "call sub_405CE5"], [246, "mov edx, 5"], [247, "mov esi, 8"], [248, "mov edi, offset unk_40E050"], [249, "call sub_405CE5"], [250, "mov edx, 5"], [251, "mov esi, 8"], [252, "mov edi, offset unk_40E070"], [253, "call sub_405CE5"], [254, "mov edx, 5"], [255, "mov esi, 8"], [256, "mov edi, offset unk_40E0A0"], [257, "call sub_405CE5"], [258, "mov edx, 5"], [259, "mov esi, 8"], [260, "mov edi, offset unk_40E0C0"], [261, "call sub_405CE5"], [262, "mov edx, 5"], [263, "mov esi, 8"], [264, "mov edi, offset unk_40E0E0"], [265, "call sub_405CE5"], [266, "mov edx, 5"], [267, "mov esi, 8"], [268, "mov edi, offset unk_40E100"], [269, "call sub_405CE5"], [270, "mov edx, 5"], [271, "mov esi, 8"], [272, "mov edi, offset unk_40E120"], [273, "call sub_405CE5"], [274, "mov edx, 5"], [275, "mov esi, 8"], [276, "mov edi, offset unk_40E130"], [277, "call sub_405CE5"], [278, "mov edx, 5"], [279, "mov esi, 8"], [280, "mov edi, offset unk_40E140"], [281, "call sub_405CE5"], [282, "mov edx, 5"], [283, "mov esi, 8"], [284, "mov edi, offset unk_40E150"], [285, "call sub_405CE5"], [286, "mov edx, 5"], [287, "mov esi, 8"], [288, "mov edi, offset unk_40E160"], [289, "call sub_405CE5"], [290, "mov edx, 5"], [291, "mov esi, 8"], [292, "mov edi, offset unk_40E180"], [293, "call sub_405CE5"], [294, "mov edx, 5"], [295, "mov esi, 8"], [296, "mov edi, offset unk_40E1A0"], [297, "call sub_405CE5"], [298, "mov edx, 5"], [299, "mov esi, 8"], [300, "mov edi, offset unk_40E1C0"], [301, "call sub_405CE5"], [302, "mov edx, 5"], [303, "mov esi, 8"], [304, "mov edi, offset unk_40E1E0"], [305, "call sub_405CE5"], [306, "mov edx, 5"], [307, "mov esi, 8"], [308, "mov edi, offset unk_40E200"], [309, "call sub_405CE5"], [310, "mov edx, 5"], [311, "mov esi, 8"], [312, "mov edi, offset unk_40E220"], [313, "call sub_405CE5"], [314, "mov edx, 5"], [315, "mov esi, 8"], [316, "mov edi, offset unk_40E240"], [317, "call sub_405CE5"], [318, "mov edx, 5"], [319, "mov esi, 8"], [320, "mov edi, offset unk_40E260"], [321, "call sub_405CE5"], [322, "mov edx, 5"], [323, "mov esi, 8"], [324, "mov edi, offset unk_40E280"], [325, "call sub_405CE5"], [326, "mov edx, 5"], [327, "mov esi, 8"], [328, "mov edi, offset unk_40E2A0"], [329, "call sub_405CE5"], [330, "mov edx, 5"], [331, "mov esi, 8"], [332, "mov edi, offset unk_40E2C0"], [333, "call sub_405CE5"], [334, "mov edx, 5"], [335, "mov esi, 8"], [336, "mov edi, offset unk_40E2E0"], [337, "call sub_405CE5"], [338, "mov edx, 5"], [339, "mov esi, 8"], [340, "mov edi, offset unk_40E300"], [341, "call sub_405CE5"], [342, "mov edx, 5"], [343, "mov esi, 8"], [344, "mov edi, offset unk_40E380"], [345, "call sub_405CE5"], [346, "mov edx, 5"], [347, "mov esi, 8"], [348, "mov edi, offset unk_40E3A0"], [349, "call sub_405CE5"], [350, "mov edx, 5"], [351, "mov esi, 8"], [352, "mov edi, offset unk_40E3C0"], [353, "call sub_405CE5"], [354, "mov edx, 5"], [355, "mov esi, 8"], [356, "mov edi, offset unk_40E3E0"], [357, "call sub_405CE5"], [358, "mov edx, 5"], [359, "mov esi, 8"], [360, "mov edi, offset unk_40E3F0"], [361, "call sub_405CE5"], [362, "mov edx, 5"], [363, "mov esi, 8"], [364, "mov edi, offset unk_40E400"], [365, "call sub_405CE5"], [366, "mov edx, 5"], [367, "mov esi, 8"], [368, "mov edi, offset unk_40E420"], [369, "call sub_405CE5"], [370, "mov edx, 5"], [371, "mov esi, 8"], [372, "mov edi, offset unk_40E440"], [373, "call sub_405CE5"], [374, "mov edx, 5"], [375, "mov esi, 8"], [376, "mov edi, offset unk_40E470"], [377, "call sub_405CE5"], [378, "mov edx, 5"], [379, "mov esi, 8"], [380, "mov edi, offset unk_40E490"], [381, "call sub_405CE5"], [382, "mov edx, 5"], [383, "mov esi, 8"], [384, "mov edi, offset unk_40E4B0"], [385, "call sub_405CE5"], [386, "mov edx, 5"], [387, "mov esi, 8"], [388, "mov edi, offset unk_40E4D0"], [389, "call sub_405CE5"], [390, "mov edx, 5"], [391, "mov esi, 8"], [392, "mov edi, offset unk_40E4F0"], [393, "call sub_405CE5"], [394, "mov edx, 5"], [395, "mov esi, 8"], [396, "mov edi, offset unk_40E510"], [397, "call sub_405CE5"], [398, "mov edx, 5"], [399, "mov esi, 8"], [400, "mov edi, offset unk_40E530"], [401, "call sub_405CE5"], [402, "mov edx, 5"], [403, "mov esi, 8"], [404, "mov edi, offset unk_40E550"], [405, "call sub_405CE5"], [406, "mov edx, 5"], [407, "mov esi, 8"], [408, "mov edi, offset unk_40E570"], [409, "call sub_405CE5"], [410, "mov edx, 5"], [411, "mov esi, 8"], [412, "mov edi, offset unk_40E590"], [413, "call sub_405CE5"], [414, "mov edx, 5"], [415, "mov esi, 8"], [416, "mov edi, offset unk_40E5B0"], [417, "call sub_405CE5"], [418, "mov edx, 5"], [419, "mov esi, 8"], [420, "mov edi, offset unk_40E5D0"], [421, "call sub_405CE5"], [422, "mov edx, 5"], [423, "mov esi, 8"], [424, "mov edi, offset unk_40E5E0"], [425, "call sub_405CE5"], [426, "mov edx, 5"], [427, "mov esi, 8"], [428, "mov edi, offset unk_40E5F0"], [429, "call sub_405CE5"], [430, "mov edx, 5"], [431, "mov esi, 8"], [432, "mov edi, offset unk_40E600"], [433, "call sub_405CE5"], [434, "mov edx, 5"], [435, "mov esi, 8"], [436, "mov edi, offset unk_40E630"], [437, "call sub_405CE5"], [438, "mov edx, 5"], [439, "mov esi, 8"], [440, "mov edi, offset unk_40E650"], [441, "call sub_405CE5"], [442, "mov edx, 5"], [443, "mov esi, 8"], [444, "mov edi, offset unk_40E670"], [445, "call sub_405CE5"], [446, "mov edx, 5"], [447, "mov esi, 8"], [448, "mov edi, offset unk_40E690"], [449, "call sub_405CE5"], [450, "mov edx, 5"], [451, "mov esi, 8"], [452, "mov edi, offset unk_40E6B0"], [453, "call sub_405CE5"], [454, "mov edx, 5"], [455, "mov esi, 8"], [456, "mov edi, offset unk_40E6D0"], [457, "call sub_405CE5"], [458, "mov edx, 5"], [459, "mov esi, 8"], [460, "mov edi, offset unk_40E6F0"], [461, "call sub_405CE5"], [462, "mov edx, 5"], [463, "mov esi, 8"], [464, "mov edi, offset unk_40E710"], [465, "call sub_405CE5"], [466, "mov edx, 5"], [467, "mov esi, 8"], [468, "mov edi, offset unk_40E730"], [469, "call sub_405CE5"], [470, "mov edx, 5"], [471, "mov esi, 8"], [472, "mov edi, offset unk_40E750"], [473, "call sub_405CE5"], [474, "mov edx, 5"], [475, "mov esi, 8"], [476, "mov edi, offset unk_40E780"], [477, "call sub_405CE5"], [478, "mov edx, 5"], [479, "mov esi, 8"], [480, "mov edi, offset unk_40E7C0"], [481, "call sub_405CE5"], [482, "mov edx, 5"], [483, "mov esi, 8"], [484, "mov edi, offset unk_40E7E0"], [485, "call sub_405CE5"], [486, "mov edx, 5"], [487, "mov esi, 8"], [488, "mov edi, offset unk_40E7F0"], [489, "call sub_405CE5"], [490, "mov edx, 5"], [491, "mov esi, 8"], [492, "mov edi, offset unk_40E800"], [493, "call sub_405CE5"], [494, "mov edx, 5"], [495, "mov esi, 8"], [496, "mov edi, offset unk_40E820"], [497, "call sub_405CE5"], [498, "mov edx, 5"], [499, "mov esi, 8"], [500, "mov edi, offset unk_40E840"], [501, "call sub_405CE5"], [502, "mov edx, 5"], [503, "mov esi, 8"], [504, "mov edi, offset unk_40E880"], [505, "call sub_405CE5"], [506, "mov edx, 5"], [507, "mov esi, 8"], [508, "mov edi, offset unk_40E8A0"], [509, "call sub_405CE5"], [510, "mov edx, 5"], [511, "mov esi, 8"], [512, "mov edi, offset unk_40E8C0"], [513, "call sub_405CE5"], [514, "mov edx, 5"], [515, "mov esi, 8"], [516, "mov edi, offset unk_40E9C0"], [517, "call sub_405CE5"], [518, "mov edx, 5"], [519, "mov esi, 8"], [520, "mov edi, offset unk_40E980"], [521, "call sub_405CE5"], [522, "mov edx, 5"], [523, "mov esi, 8"], [524, "mov edi, offset unk_40E960"], [525, "call sub_405CE5"], [526, "mov edx, 5"], [527, "mov esi, 8"], [528, "mov edi, offset unk_40E940"], [529, "call sub_405CE5"], [530, "mov edx, 5"], [531, "mov esi, 8"], [532, "mov edi, offset unk_40EA00"], [533, "call sub_405CE5"], [534, "mov edx, 5"], [535, "mov esi, 8"], [536, "mov edi, offset unk_40EA20"], [537, "call sub_405CE5"], [538, "mov edx, 5"], [539, "mov esi, 8"], [540, "mov edi, offset unk_40EA40"], [541, "call sub_405CE5"], [542, "mov edx, 5"], [543, "mov esi, 8"], [544, "mov edi, offset unk_40EA60"], [545, "call sub_405CE5"], [546, "mov edx, 5"], [547, "mov esi, 8"], [548, "mov edi, offset unk_40EA90"], [549, "call sub_405CE5"], [550, "mov r8d, offset aKeyboardDemo"], [551, "mov ecx, 0"], [552, "mov edx, 106h"], [553, "mov esi, 1"], [554, "mov edi, 21h "], [555, "mov eax, 0"], [556, "call sub_405C08"], [557, "mov r8d, offset aPressCtrlXAndT"], [558, "mov ecx, 0"], [559, "mov edx, 6"], [560, "mov esi, 2"], [561, "mov edi, 15h"], [562, "mov eax, 0"], [563, "call sub_405C08"], [564, "mov r8d, offset aPressCtrlXAndT_0"], [565, "mov ecx, 0"], [566, "mov edx, 6"], [567, "mov esi, 3"], [568, "mov edi, 0Fh"], [569, "mov eax, 0"], [570, "call sub_405C08"], [571, "mov edi, 0"], [572, "call sub_401B80"], [573, "mov [rbp+var_8], eax"], [574, "mov eax, [rbp+var_8]"], [575, "and eax, 1"], [576, "test eax, eax"], [577, "jz short loc_406876"], [578, "lea rax, [rbp+s]"], [579, "mov esi, offset aTbInputEsc"], [580, "mov rdi, rax"], [581, "mov eax, 0"], [582, "call _sprintf"], [583, "mov eax, [rbp+var_8]"], [584, "and eax, 2"], [585, "test eax, eax"], [586, "jz short loc_406896"], [587, "lea rax, [rbp+s]"], [588, "mov esi, offset aTbInputAlt"], [589, "mov rdi, rax"], [590, "mov eax, 0"], [591, "call _sprintf"], [592, "mov eax, [rbp+var_8]"], [593, "and eax, 4"], [594, "test eax, eax"], [595, "jz short loc_4068BA"], [596, "lea rax, [rbp+s]"], [597, "add rax, 0Ch"], [598, "mov esi, offset aTbInputMouse"], [599, "mov rdi, rax"], [600, "mov eax, 0"], [601, "call _sprintf"], [602, "lea rax, [rbp+s]"], [603, "mov r9, rax"], [604, "mov r8d, offset aInputModeS"], [605, "mov ecx, 0"], [606, "mov edx, 8"], [607, "mov esi, 12h"], [608, "mov edi, 3"], [609, "mov eax, 0"], [610, "call sub_405C08"], [611, "nop"], [612, "leave"], [613, "retn"]], "data_dep": [[29, 27], [29, 57], [34, 29], [36, 27], [36, 57], [41, 36], [43, 27], [43, 57], [48, 43], [50, 27], [50, 57], [55, 50], [57, 57], [57, 27], [58, 27], [58, 57], [59, 58], [62, 76], [62, 60], [66, 62], [69, 76], [69, 60], [73, 69], [76, 76], [76, 60], [77, 76], [77, 60], [78, 77], [105, 119], [105, 103], [109, 105], [112, 103], [112, 119], [116, 112], [119, 119], [119, 103], [120, 119], [120, 103], [121, 120], [573, 572], [574, 573], [575, 574], [576, 575], [577, 576], [578, 576], [580, 578], [583, 573], [584, 583], [585, 584], [586, 585], [587, 585], [589, 587], [592, 573], [593, 592], [594, 593], [595, 594], [596, 594], [597, 596], [599, 597], [602, 601], [602, 594], [603, 602], [613, 610]]}
| {"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/53568429b7df50926a8c6ea06fa3ec4149a6d0258a8a232e68b46cef0d3fd984_53568429b7df50926a8c6ea06fa3ec4149a6d0258a8a232e68b46cef0d3fd984.jsonl.gz", "strip_func_name": "sub_405D49", "query": "\n\n\n__int64 sub_405D49()\n{\n__int64 v0; // r9\n__int64 v1; // r9\n__int64 v2; // r9\nchar s[12]; // [rsp+0h] [rbp-50h] BYREF\nchar v5[60]; // [rsp+Ch] [rbp-44h] BYREF\nint v6; // [rsp+48h] [rbp-8h]\nsigned int i; // [rsp+4Ch] [rbp-4h]\n\nsub_40198D(0, 0, 9484, 8u, 0);\nsub_40198D(0x4Fu, 0, 9488, 8u, 0);\nsub_40198D(0, 0x17u, 9492, 8u, 0);\nsub_40198D(0x4Fu, 0x17u, 9496, 8u, 0);\nfor ( i = 1; i <= 78; ++i )\n{\nsub_40198D(i, 0, 9472, 8u, 0);\nsub_40198D(i, 0x17u, 9472, 8u, 0);\nsub_40198D(i, 0x11u, 9472, 8u, 0);\nsub_40198D(i, 4u, 9472, 8u, 0);\n}\nfor ( i = 1; i <= 22; ++i )\n{\nsub_40198D(0, i, 9474, 8u, 0);\nsub_40198D(0x4Fu, i, 9474, 8u, 0);\n}\nsub_40198D(0, 0x11u, 9500, 8u, 0);\nsub_40198D(0x4Fu, 0x11u, 9508, 8u, 0);\nsub_40198D(0, 4u, 9500, 8u, 0);\nsub_40198D(0x4Fu, 4u, 9508, 8u, 0);\nfor ( i = 5; i <= 16; ++i )\n{\nsub_40198D(1u, i, 9608, 4u, 4u);\nsub_40198D(0x4Eu, i, 9608, 4u, 4u);\n}\nsub_405CE5(byte_40DCA0, 8u, 5u);\nsub_405CE5(byte_40DCC0, 8u, 5u);\nsub_405CE5(byte_40DCE0, 8u, 5u);\nsub_405CE5(byte_40DD00, 8u, 5u);\nsub_405CE5(byte_40DD20, 8u, 5u);\nsub_405CE5(byte_40DD40, 8u, 5u);\nsub_405CE5(byte_40DD60, 8u, 5u);\nsub_405CE5(byte_40DD80, 8u, 5u);\nsub_405CE5(byte_40DDA0, 8u, 5u);\nsub_405CE5(byte_40DDC0, 8u, 5u);\nsub_405CE5(byte_40DDE0, 8u, 5u);\nsub_405CE5(byte_40DE00, 8u, 5u);\nsub_405CE5(byte_40DE20, 8u, 5u);\nsub_405CE5(byte_40DE40, 8u, 5u);\nsub_405CE5(byte_40DE60, 8u, 5u);\nsub_405CE5(byte_40DE80, 8u, 5u);\nsub_405CE5(byte_40DEA0, 8u, 5u);\nsub_405CE5(byte_40DEB0, 8u, 5u);\nsub_405CE5(byte_40DEC0, 8u, 5u);\nsub_405CE5(byte_40DED0, 8u, 5u);\nsub_405CE5(byte_40DEF0, 8u, 5u);\nsub_405CE5(byte_40DF10, 8u, 5u);\nsub_405CE5(byte_40DF30, 8u, 5u);\nsub_405CE5(byte_40DF50, 8u, 5u);\nsub_405CE5(byte_40DF70, 8u, 5u);\nsub_405CE5(byte_40DF90, 8u, 5u);\nsub_405CE5(byte_40DFB0, 8u, 5u);\nsub_405CE5(byte_40DFD0, 8u, 5u);\nsub_405CE5(byte_40DFF0, 8u, 5u);\nsub_405CE5(byte_40E010, 8u, 5u);\nsub_405CE5(byte_40E030, 8u, 5u);\nsub_405CE5(byte_40E050, 8u, 5u);\nsub_405CE5(byte_40E070, 8u, 5u);\nsub_405CE5(byte_40E0A0, 8u, 5u);\nsub_405CE5(byte_40E0C0, 8u, 5u);\nsub_405CE5(byte_40E0E0, 8u, 5u);\nsub_405CE5(byte_40E100, 8u, 5u);\nsub_405CE5(byte_40E120, 8u, 5u);\nsub_405CE5(byte_40E130, 8u, 5u);\nsub_405CE5(byte_40E140, 8u, 5u);\nsub_405CE5(byte_40E150, 8u, 5u);\nsub_405CE5(byte_40E160, 8u, 5u);\nsub_405CE5(byte_40E180, 8u, 5u);\nsub_405CE5(byte_40E1A0, 8u, 5u);\nsub_405CE5(byte_40E1C0, 8u, 5u);\nsub_405CE5(byte_40E1E0, 8u, 5u);\nsub_405CE5(byte_40E200, 8u, 5u);\nsub_405CE5(byte_40E220, 8u, 5u);\nsub_405CE5(byte_40E240, 8u, 5u);\nsub_405CE5(byte_40E260, 8u, 5u);\nsub_405CE5(byte_40E280, 8u, 5u);\nsub_405CE5(byte_40E2A0, 8u, 5u);\nsub_405CE5(byte_40E2C0, 8u, 5u);\nsub_405CE5(byte_40E2E0, 8u, 5u);\nsub_405CE5(byte_40E300, 8u, 5u);\nsub_405CE5(byte_40E380, 8u, 5u);\nsub_405CE5(byte_40E3A0, 8u, 5u);\nsub_405CE5(byte_40E3C0, 8u, 5u);\nsub_405CE5(byte_40E3E0, 8u, 5u);\nsub_405CE5(byte_40E3F0, 8u, 5u);\nsub_405CE5(byte_40E400, 8u, 5u);\nsub_405CE5(byte_40E420, 8u, 5u);\nsub_405CE5(byte_40E440, 8u, 5u);\nsub_405CE5(byte_40E470, 8u, 5u);\nsub_405CE5(byte_40E490, 8u, 5u);\nsub_405CE5(byte_40E4B0, 8u, 5u);\nsub_405CE5(byte_40E4D0, 8u, 5u);\nsub_405CE5(byte_40E4F0, 8u, 5u);\nsub_405CE5(byte_40E510, 8u, 5u);\nsub_405CE5(byte_40E530, 8u, 5u);\nsub_405CE5(byte_40E550, 8u, 5u);\nsub_405CE5(byte_40E570, 8u, 5u);\nsub_405CE5(byte_40E590, 8u, 5u);\nsub_405CE5(byte_40E5B0, 8u, 5u);\nsub_405CE5(byte_40E5D0, 8u, 5u);\nsub_405CE5(byte_40E5E0, 8u, 5u);\nsub_405CE5(byte_40E5F0, 8u, 5u);\nsub_405CE5(byte_40E600, 8u, 5u);\nsub_405CE5(byte_40E630, 8u, 5u);\nsub_405CE5(byte_40E650, 8u, 5u);\nsub_405CE5(byte_40E670, 8u, 5u);\nsub_405CE5(byte_40E690, 8u, 5u);\nsub_405CE5(byte_40E6B0, 8u, 5u);\nsub_405CE5(byte_40E6D0, 8u, 5u);\nsub_405CE5(byte_40E6F0, 8u, 5u);\nsub_405CE5(byte_40E710, 8u, 5u);\nsub_405CE5(byte_40E730, 8u, 5u);\nsub_405CE5(byte_40E750, 8u, 5u);\nsub_405CE5(byte_40E780, 8u, 5u);\nsub_405CE5(byte_40E7C0, 8u, 5u);\nsub_405CE5(byte_40E7E0, 8u, 5u);\nsub_405CE5(byte_40E7F0, 8u, 5u);\nsub_405CE5(byte_40E800, 8u, 5u);\nsub_405CE5(byte_40E820, 8u, 5u);\nsub_405CE5(byte_40E840, 8u, 5u);\nsub_405CE5(byte_40E880, 8u, 5u);\nsub_405CE5(byte_40E8A0, 8u, 5u);\nsub_405CE5(byte_40E8C0, 8u, 5u);\nsub_405CE5(byte_40E9C0, 8u, 5u);\nsub_405CE5(byte_40E980, 8u, 5u);\nsub_405CE5(byte_40E960, 8u, 5u);\nsub_405CE5(byte_40E940, 8u, 5u);\nsub_405CE5(byte_40EA00, 8u, 5u);\nsub_405CE5(byte_40EA20, 8u, 5u);\nsub_405CE5(byte_40EA40, 8u, 5u);\nsub_405CE5(byte_40EA60, 8u, 5u);\nsub_405CE5(byte_40EA90, 8u, 5u);\nsub_405C08(0x21u, 1u, 0x106u, 0, \"Keyboard demo!\", v0);\nsub_405C08(0x15u, 2u, 6u, 0, \"(press CTRL+X and then CTRL+Q to exit)\", v1);\nsub_405C08(0xFu, 3u, 6u, 0, \"(press CTRL+X and then CTRL+C to change input mode)\", v2);\nv6 = sub_401B80(0);\nif ( (v6 & 1) != 0 )\nsprintf(s, \"TB_INPUT_ESC\");\nif ( (v6 & 2) != 0 )\nsprintf(s, \"TB_INPUT_ALT\");\nif ( (v6 & 4) != 0 )\nsprintf(v5, \" | TB_INPUT_MOUSE\");\nreturn sub_405C08(3u, 0x12u, 8u, 0, \"Input mode: %s\", (__int64)s);\n}\n\n\n\nQ:[s,v6,sub_405D49,sub_40198D,sub_405CE5,sub_405C08,sub_401B80,]\nAssistant: ", "hints": "[]", "response": "{'s': 'inputmode_str', 'v6': 'inputmode', 'sub_405D49': 'draw_keyboard', 'sub_40198D': 'tb_set_cell', 'sub_405CE5': 'draw_key', 'sub_405C08': 'printf_tb', 'sub_401B80': 'tb_set_input_mode'}"} |
|
u8g2_Setup_uc1608_erc240120_2 | bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46 | olikraus | u8g2 | NA | void u8g2_Setup_uc1608_erc240120_2(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_uc1608_erc240120, u8x8_cad_001, byte_cb, gpio_and_delay_cb);
buf = u8g2_m_30_15_2(&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_414726", "function_addr": 4278054, "binary_name": "bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46.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_428F61"], [13, "mov esi, offset sub_43DAB8"], [14, "mov rdi, rax"], [15, "call sub_44088A"], [16, "lea rax, [rbp+var_9]"], [17, "mov rdi, rax"], [18, "call sub_4082B0"], [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_423F48"], [27, "mov rdi, rax"], [28, "call sub_425671"], [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/bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46_bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46.jsonl.gz", "strip_func_name": "sub_414726", "query": "\n\n\n__int64 __fastcall sub_414726(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\nunsigned __int8 v5; // [rsp+27h] [rbp-9h] BYREF\nvoid *v6; // [rsp+28h] [rbp-8h]\n\nsub_44088A(a1, sub_43DAB8, sub_428F61, a3, a4);\nv6 = sub_4082B0(&v5);\nreturn sub_425671(a1, v6, v5, sub_423F48, a2);\n}\n\n\n\nQ:[a3,a4,a1,a2,v5,v6,sub_414726,sub_44088A,sub_43DAB8,sub_428F61,sub_4082B0,sub_425671,sub_423F48,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'byte_cb', 'a4': 'gpio_and_delay_cb', 'a1': 'u8g2', 'a2': 'rotation', 'v5': 'tile_buf_height', 'v6': 'buf', 'sub_414726': 'u8g2_Setup_uc1608_erc240120_2', 'sub_44088A': 'u8x8_Setup', 'sub_43DAB8': 'u8x8_d_uc1608_erc240120', 'sub_428F61': 'u8x8_cad_001', 'sub_4082B0': 'u8g2_m_30_15_2', 'sub_425671': 'u8g2_SetupBuffer', 'sub_423F48': 'u8g2_ll_hvline_vertical_top_lsb'}"} |
|
mz_zip_time_t_to_dos_time | 8b39c693ef01bd5cdaa90987e61e4cd7be3ceaaa2ca926e05669749937e737a3 | ryanries | GameB | NA | static void mz_zip_time_t_to_dos_time(MZ_TIME_T time, mz_uint16 *pDOS_time, mz_uint16 *pDOS_date)
{
#ifdef _MSC_VER
struct tm tm_struct;
struct tm *tm = &tm_struct;
errno_t err = localtime_s(tm, &time);
if (err)
{
*pDOS_date = 0;
*pDOS_time = 0;
return;
}
#else
struct tm *tm = localtime(&time);
#endif /* #ifdef _MSC_VER */
*pDOS_time = (mz_uint16)(((tm->tm_hour) << 11) + ((tm->tm_min) << 5) + ((tm->tm_sec) >> 1));
*pDOS_date = (mz_uint16)(((tm->tm_year + 1900 - 1980) << 9) + ((tm->tm_mon + 1) << 5) + tm->tm_mday);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41A078", "function_addr": 4300920, "binary_name": "8b39c693ef01bd5cdaa90987e61e4cd7be3ceaaa2ca926e05669749937e737a3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+timer], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "lea rax, [rbp+timer]"], [7, "mov rdi, rax"], [8, "call _localtime"], [9, "mov [rbp+var_8], rax"], [10, "mov rax, [rbp+var_8]"], [11, "mov eax, [rax+8]"], [12, "shl eax, 0Bh"], [13, "mov edx, eax"], [14, "mov rax, [rbp+var_8]"], [15, "mov eax, [rax+4]"], [16, "shl eax, 5"], [17, "add edx, eax"], [18, "mov rax, [rbp+var_8]"], [19, "mov eax, [rax]"], [20, "sar eax, 1"], [21, "add edx, eax"], [22, "mov rax, [rbp+var_20]"], [23, "mov [rax], dx"], [24, "mov rax, [rbp+var_8]"], [25, "mov eax, [rax+14h]"], [26, "sub eax, 50h "], [27, "shl eax, 9"], [28, "mov edx, eax"], [29, "mov rax, [rbp+var_8]"], [30, "mov eax, [rax+10h]"], [31, "add eax, 1"], [32, "shl eax, 5"], [33, "add edx, eax"], [34, "mov rax, [rbp+var_8]"], [35, "mov eax, [rax+0Ch]"], [36, "add edx, eax"], [37, "mov rax, [rbp+var_28]"], [38, "mov [rax], dx"], [39, "nop"], [40, "leave"], [41, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [14, 9], [15, 14], [16, 15], [17, 16], [17, 13], [18, 9], [19, 18], [20, 19], [21, 17], [21, 20], [22, 4], [23, 22], [23, 21], [24, 9], [25, 23], [25, 24], [26, 25], [27, 26], [28, 27], [29, 9], [30, 23], [30, 29], [31, 30], [32, 31], [33, 32], [33, 28], [34, 9], [35, 23], [35, 34], [36, 33], [36, 35], [37, 5], [38, 37], [38, 36], [41, 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/8b39c693ef01bd5cdaa90987e61e4cd7be3ceaaa2ca926e05669749937e737a3_8b39c693ef01bd5cdaa90987e61e4cd7be3ceaaa2ca926e05669749937e737a3.jsonl.gz", "strip_func_name": "sub_41A078", "query": "\n\n\n_WORD *__fastcall sub_41A078(time_t a1, _WORD *a2, _WORD *a3)\n{\n_WORD *result; // rax\ntime_t timer; // [rsp+18h] [rbp-18h] BYREF\nstruct tm *v6; // [rsp+28h] [rbp-8h]\n\ntimer = a1;\nv6 = localtime(&timer);\n*a2 = (v6->tm_sec >> 1) + 32 * v6->tm_min + ((unsigned __int16)v6->tm_hour << 11);\nresult = a3;\n*a3 = v6->tm_mday + 32 * (LOWORD(v6->tm_mon) + 1) + ((LOWORD(v6->tm_year) - 80) << 9);\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,timer,v6,sub_41A078,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'pDOS_date', 'a1': 'time', 'a2': 'pDOS_time', 'timer': 'timea', 'v6': 'tm', 'sub_41A078': 'mz_zip_time_t_to_dos_time'}"} |
|
cpu_init | cea8f48a10e44af45ecf359744ce895e505ad3e1a7d4921ca84280938436099d | shenango | caladan | NA | int cpu_init(void)
{
int ret = cpu_scan_topology();
if (ret)
return ret;
log_info("cpu: detected %d cores, %d nodes", cpu_count, numa_count);
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4020A2", "function_addr": 4202658, "binary_name": "cea8f48a10e44af45ecf359744ce895e505ad3e1a7d4921ca84280938436099d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "call sub_401D90"], [4, "mov [rbp+var_4], eax"], [5, "cmp [rbp+var_4], 0"], [6, "jz short loc_4020BD"], [7, "mov eax, [rbp+var_4]"], [8, "jmp short locret_4020E6"], [9, "mov edx, cs:dword_40A224"], [10, "mov eax, cs:dword_40A220"], [11, "mov ecx, edx"], [12, "mov edx, eax"], [13, "mov esi, offset aCpuDetectedDCo"], [14, "mov edi, 5"], [15, "mov eax, 0"], [16, "call sub_4016AA"], [17, "mov eax, 0"], [18, "leave"], [19, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 4], [11, 9], [12, 10], [19, 17], [19, 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/cea8f48a10e44af45ecf359744ce895e505ad3e1a7d4921ca84280938436099d_cea8f48a10e44af45ecf359744ce895e505ad3e1a7d4921ca84280938436099d.jsonl.gz", "strip_func_name": "sub_4020A2", "query": "\n\n\n__int64 sub_4020A2()\n{\n__int64 v0; // r8\n__int64 v1; // r9\nunsigned int v3; // [rsp+Ch] [rbp-4h]\n\nv3 = sub_401D90();\nif ( v3 )\nreturn v3;\nsub_4016AA(5, \"cpu: detected %d cores, %d nodes\", (unsigned int)dword_40A220, (unsigned int)dword_40A224, v0, v1);\nreturn 0LL;\n}\n\n\n\nQ:[sub_4020A2,sub_401D90,sub_4016AA,]\nAssistant: ", "hints": "[]", "response": "{'sub_4020A2': 'cpu_init', 'sub_401D90': 'cpu_scan_topology', 'sub_4016AA': 'logk'}"} |
|
u8x8_DrawUTF8 | 2b9fe636105b1c217d646f6f505ec5c5841c21218c68c54bdc83f742f945e2b5 | Ai-Thinker-Open | Ai-Thinker-WB2 | NA | uint8_t u8x8_DrawUTF8(u8x8_t *u8x8, uint8_t x, uint8_t y, const char *s)
{
u8x8->next_cb = u8x8_utf8_next;
return u8x8_draw_string(u8x8, x, y, s);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42A079", "function_addr": 4366457, "binary_name": "2b9fe636105b1c217d646f6f505ec5c5841c21218c68c54bdc83f742f945e2b5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov eax, edx"], [5, "mov [rbp+var_18], rcx"], [6, "mov edx, esi"], [7, "mov [rbp+var_C], dl"], [8, "mov [rbp+var_10], al"], [9, "mov rax, [rbp+var_8]"], [10, "mov qword ptr [rax+8], offset sub_429E8D"], [11, "movzx edx, [rbp+var_10]"], [12, "movzx esi, [rbp+var_C]"], [13, "mov rcx, [rbp+var_18]"], [14, "mov rax, [rbp+var_8]"], [15, "mov rdi, rax"], [16, "call sub_429F97"], [17, "leave"], [18, "retn"]], "data_dep": [[7, 6], [8, 4], [9, 3], [10, 9], [11, 8], [12, 7], [13, 5], [14, 3], [15, 14], [18, 16]]}
| {"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_42A079", "query": "\n\n\n__int64 __fastcall sub_42A079(__int64 a1, unsigned __int8 a2, unsigned __int8 a3, unsigned __int8 *a4)\n{\n*(_QWORD *)(a1 + 8) = sub_429E8D;\nreturn sub_429F97(a1, a2, a3, a4);\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_42A079,sub_429E8D,sub_429F97,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'y', 'a4': 's', 'a1': 'u8x8', 'a2': 'x', 'sub_42A079': 'u8x8_DrawUTF8', 'sub_429E8D': 'u8x8_utf8_next', 'sub_429F97': 'u8x8_draw_string'}"} |
|
atcacert_get_subj_public_key | 11d42d58f8783c9d414fd3ac05c1e7cfc511bc8aca265d5d1e3cf66df053dd09 | wirenboard | atecc-util | NA | int atcacert_get_subj_public_key(const atcacert_def_t* cert_def,
const uint8_t* cert,
size_t cert_size,
uint8_t subj_public_key[64])
{
if (cert_def == NULL || cert == NULL || subj_public_key == NULL)
{
return ATCACERT_E_BAD_PARAMS;
}
return atcacert_get_cert_element(cert_def, &cert_def->std_cert_elements[STDCERT_PUBLIC_KEY], cert, cert_size, subj_public_key, 64);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_418CAC", "function_addr": 4295852, "binary_name": "11d42d58f8783c9d414fd3ac05c1e7cfc511bc8aca265d5d1e3cf66df053dd09.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 [rbp+var_20], rcx"], [7, "cmp [rbp+var_8], 0"], [8, "jz short loc_418CD9"], [9, "cmp [rbp+var_10], 0"], [10, "jz short loc_418CD9"], [11, "cmp [rbp+var_20], 0"], [12, "jnz short loc_418CE0"], [13, "mov eax, 2"], [14, "jmp short locret_418D09"], [15, "mov rax, [rbp+var_8]"], [16, "lea rsi, [rax+36h]"], [17, "mov rdi, [rbp+var_20]"], [18, "mov rcx, [rbp+var_18]"], [19, "mov rdx, [rbp+var_10]"], [20, "mov rax, [rbp+var_8]"], [21, "mov r9d, 40h "], [22, "mov r8, rdi"], [23, "mov rdi, rax"], [24, "call sub_41A5CC"], [25, "leave"], [26, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 4], [10, 9], [11, 6], [12, 11], [15, 3], [16, 15], [17, 6], [18, 5], [19, 4], [20, 3], [22, 17], [23, 20], [26, 24], [26, 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/11d42d58f8783c9d414fd3ac05c1e7cfc511bc8aca265d5d1e3cf66df053dd09_11d42d58f8783c9d414fd3ac05c1e7cfc511bc8aca265d5d1e3cf66df053dd09.jsonl.gz", "strip_func_name": "sub_418CAC", "query": "\n\n\n__int64 __fastcall sub_418CAC(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n__int64 result; // rax\n\nif ( a1 && a2 && a4 )\nresult = sub_41A5CC(a1, a1 + 54, a2, a3, a4, 64LL);\nelse\nresult = 2LL;\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_418CAC,sub_41A5CC,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'cert_size', 'a4': 'subj_public_key', 'a1': 'cert_def', 'a2': 'cert', 'sub_418CAC': 'atcacert_get_subj_public_key', 'sub_41A5CC': 'atcacert_get_cert_element'}"} |
|
udp_create_socket | f507b6814eed2cbd95a66d3b76b84a411ee244da00524d66b14dc8c4e059062a | paullouisageneau | libplum | NA | socket_t udp_create_socket(const udp_socket_config_t *config) {
socket_t sock = INVALID_SOCKET;
if (config->family != AF_UNSPEC && config->family != AF_INET && config->family != AF_INET6) {
PLUM_LOG_ERROR("Unknown address family for UDP socket");
return INVALID_SOCKET;
}
// Obtain local Address
struct addrinfo hints;
memset(&hints, 0, sizeof(hints));
hints.ai_family = config->family;
hints.ai_socktype = SOCK_DGRAM;
hints.ai_protocol = IPPROTO_UDP;
hints.ai_flags = AI_PASSIVE | AI_NUMERICSERV;
char bind_service[8];
if (snprintf(bind_service, 8, "%hu", config->port) < 0)
return INVALID_SOCKET;
struct addrinfo *ai_list = NULL;
if (getaddrinfo(config->bind_address, bind_service, &hints, &ai_list) != 0) {
PLUM_LOG_ERROR("getaddrinfo for binding address failed, errno=%d", sockerrno);
return INVALID_SOCKET;
}
struct addrinfo *ai;
if (config->family == AF_UNSPEC) {
// Prefer IPv6
if ((ai = find_family(ai_list, AF_INET6)) == NULL &&
(ai = find_family(ai_list, AF_INET)) == NULL) {
PLUM_LOG_ERROR("getaddrinfo for binding address failed: no suitable "
"address family");
goto error;
}
} else {
ai = ai_list;
}
// Create socket
sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
if (sock == INVALID_SOCKET) {
PLUM_LOG_ERROR("UDP socket creation failed, errno=%d", sockerrno);
goto error;
}
const sockopt_t enabled = 1;
const sockopt_t disabled = 0;
// Listen on both IPv6 and IPv4
if (ai->ai_family == AF_INET6)
setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (const char *)&disabled, sizeof(disabled));
if (config->enable_broadcast)
setsockopt(sock, SOL_SOCKET, SO_BROADCAST, (const char *)(&enabled), sizeof(enabled));
if (config->enable_reuseaddr)
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (const char *)&enabled, sizeof(enabled));
if (config->enable_dontfrag) {
// Set DF flag
#ifndef NO_PMTUDISC
const sockopt_t mtu_disc = IP_PMTUDISC_DO;
setsockopt(sock, IPPROTO_IP, IP_MTU_DISCOVER, (const char *)&mtu_disc, sizeof(mtu_disc));
#ifdef IPV6_MTU_DISCOVER
if (ai->ai_family == AF_INET6)
setsockopt(sock, IPPROTO_IPV6, IPV6_MTU_DISCOVER, (const char *)&mtu_disc,
sizeof(mtu_disc));
#endif
#else
// It seems Mac OS lacks a way to set the DF flag...
#ifdef IP_DONTFRAG
setsockopt(sock, IPPROTO_IP, IP_DONTFRAG, (const char *)&enabled, sizeof(enabled));
#endif
#ifdef IPV6_DONTFRAG
if (ai->ai_family == AF_INET6)
setsockopt(sock, IPPROTO_IPV6, IPV6_DONTFRAG, (const char *)&enabled, sizeof(enabled));
#endif
#endif
}
if (config->multicast_group) {
struct ip_mreq mreq;
memset(&mreq, 0, sizeof(mreq));
if (inet_pton(AF_INET, config->multicast_group, &mreq.imr_multiaddr.s_addr) != 1) {
PLUM_LOG_ERROR("Invalid multicast group");
goto error;
}
if(ai->ai_addr->sa_family == AF_INET)
mreq.imr_interface.s_addr = ((const struct sockaddr_in *)ai->ai_addr)->sin_addr.s_addr;
else
mreq.imr_interface.s_addr = htonl(INADDR_ANY);
setsockopt(sock, IPPROTO_IP, IP_ADD_MEMBERSHIP, (const char *)&mreq, sizeof(mreq));
// TODO
// struct ipv6_mreq mreq;
// setsockopt(sock, IPPROTO_IPV6, IPV6_JOIN_GROUP, &mreq, sizeof(mreq))
}
ctl_t nbio = 1;
if (ioctlsocket(sock, FIONBIO, &nbio)) {
PLUM_LOG_ERROR("Setting non-blocking mode on UDP socket failed, errno=%d", sockerrno);
goto error;
}
// Bind it
if (bind(sock, ai->ai_addr, (socklen_t)ai->ai_addrlen)) {
PLUM_LOG_ERROR("UDP socket binding failed, errno=%d", sockerrno);
goto error;
}
freeaddrinfo(ai_list);
return sock;
error:
freeaddrinfo(ai_list);
if (sock != INVALID_SOCKET)
closesocket(sock);
return INVALID_SOCKET;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40A518", "function_addr": 4236568, "binary_name": "f507b6814eed2cbd95a66d3b76b84a411ee244da00524d66b14dc8c4e059062a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "add rsp, 0FFFFFFFFFFFFFF80h"], [3, "mov [rbp+var_78], rdi"], [4, "mov [rbp+fd], 0FFFFFFFFh"], [5, "mov rax, [rbp+var_78]"], [6, "mov eax, [rax]"], [7, "test eax, eax"], [8, "jz short loc_40A577"], [9, "mov rax, [rbp+var_78]"], [10, "mov eax, [rax]"], [11, "cmp eax, 2"], [12, "jz short loc_40A577"], [13, "mov rax, [rbp+var_78]"], [14, "mov eax, [rax]"], [15, "cmp eax, 0Ah"], [16, "jz short loc_40A577"], [17, "lea rcx, aUnknownAddress_2"], [18, "mov edx, 1Ch"], [19, "lea rsi, aSrcUdpC"], [20, "mov edi, 4"], [21, "mov eax, 0"], [22, "call sub_406D96"], [23, "mov eax, 0FFFFFFFFh"], [24, "jmp locret_40A98C"], [25, "lea rax, [rbp+s]"], [26, "mov edx, 30h "], [27, "mov esi, 0"], [28, "mov rdi, rax"], [29, "call _memset"], [30, "mov rax, [rbp+var_78]"], [31, "mov eax, [rax]"], [32, "mov [rbp+var_3C], eax"], [33, "mov [rbp+var_38], 2"], [34, "mov [rbp+var_34], 11h"], [35, "mov [rbp+s], 401h"], [36, "mov rax, [rbp+var_78]"], [37, "movzx eax, word ptr [rax+4]"], [38, "movzx edx, ax"], [39, "lea rax, [rbp+service]"], [40, "mov ecx, edx"], [41, "lea rdx, aHu_0"], [42, "mov esi, 8"], [43, "mov rdi, rax"], [44, "mov eax, 0"], [45, "call _snprintf"], [46, "test eax, eax"], [47, "jns short loc_40A5E3"], [48, "mov eax, 0FFFFFFFFh"], [49, "jmp locret_40A98C"], [50, "mov [rbp+pai], 0"], [51, "mov rax, [rbp+var_78]"], [52, "mov rax, [rax+8]"], [53, "lea rcx, [rbp+pai]"], [54, "lea rdx, [rbp+s]"], [55, "lea rsi, [rbp+service]"], [56, "mov rdi, rax"], [57, "call _getaddrinfo"], [58, "test eax, eax"], [59, "jz short loc_40A641"], [60, "call ___errno_location"], [61, "mov eax, [rax]"], [62, "mov r8d, eax"], [63, "lea rcx, aGetaddrinfoFor"], [64, "mov edx, 2Dh "], [65, "lea rsi, aSrcUdpC"], [66, "mov edi, 4"], [67, "mov eax, 0"], [68, "call sub_406D96"], [69, "mov eax, 0FFFFFFFFh"], [70, "jmp locret_40A98C"], [71, "mov rax, [rbp+var_78]"], [72, "mov eax, [rax]"], [73, "test eax, eax"], [74, "jnz short loc_40A6AA"], [75, "mov rax, [rbp+pai]"], [76, "mov esi, 0Ah"], [77, "mov rdi, rax"], [78, "call sub_40A4DE"], [79, "mov [rbp+var_10], rax"], [80, "cmp [rbp+var_10], 0"], [81, "jnz short loc_40A6B2"], [82, "mov rax, [rbp+pai]"], [83, "mov esi, 2"], [84, "mov rdi, rax"], [85, "call sub_40A4DE"], [86, "mov [rbp+var_10], rax"], [87, "cmp [rbp+var_10], 0"], [88, "jnz short loc_40A6B2"], [89, "lea rcx, aGetaddrinfoFor_0"], [90, "mov edx, 36h "], [91, "lea rsi, aSrcUdpC"], [92, "mov edi, 4"], [93, "mov eax, 0"], [94, "call sub_406D96"], [95, "jmp loc_40A96B"], [96, "mov rax, [rbp+pai]"], [97, "mov [rbp+var_10], rax"], [98, "mov rax, [rbp+var_10]"], [99, "mov edx, [rax+0Ch]"], [100, "mov rax, [rbp+var_10]"], [101, "mov ecx, [rax+8]"], [102, "mov rax, [rbp+var_10]"], [103, "mov eax, [rax+4]"], [104, "mov esi, ecx"], [105, "mov edi, eax"], [106, "call _socket"], [107, "mov [rbp+fd], eax"], [108, "cmp [rbp+fd], 0FFFFFFFFh"], [109, "jnz short loc_40A70A"], [110, "call ___errno_location"], [111, "mov eax, [rax]"], [112, "mov r8d, eax"], [113, "lea rcx, aUdpSocketCreat_1"], [114, "mov edx, 41h "], [115, "lea rsi, aSrcUdpC"], [116, "mov edi, 4"], [117, "mov eax, 0"], [118, "call sub_406D96"], [119, "jmp loc_40A96B"], [120, "mov [rbp+var_54], 1"], [121, "mov [rbp+optval], 0"], [122, "mov rax, [rbp+var_10]"], [123, "mov eax, [rax+4]"], [124, "cmp eax, 0Ah"], [125, "jnz short loc_40A745"], [126, "lea rdx, [rbp+optval]"], [127, "mov eax, [rbp+fd]"], [128, "mov r8d, 4"], [129, "mov rcx, rdx"], [130, "mov edx, 1Ah"], [131, "mov esi, 29h "], [132, "mov edi, eax"], [133, "call _setsockopt"], [134, "mov rax, [rbp+var_78]"], [135, "movzx eax, byte ptr [rax+18h]"], [136, "test al, al"], [137, "jz short loc_40A772"], [138, "lea rdx, [rbp+var_54]"], [139, "mov eax, [rbp+fd]"], [140, "mov r8d, 4"], [141, "mov rcx, rdx"], [142, "mov edx, 6"], [143, "mov esi, 1"], [144, "mov edi, eax"], [145, "call _setsockopt"], [146, "mov rax, [rbp+var_78]"], [147, "movzx eax, byte ptr [rax+19h]"], [148, "test al, al"], [149, "jz short loc_40A79F"], [150, "lea rdx, [rbp+var_54]"], [151, "mov eax, [rbp+fd]"], [152, "mov r8d, 4"], [153, "mov rcx, rdx"], [154, "mov edx, 2"], [155, "mov esi, 1"], [156, "mov edi, eax"], [157, "call _setsockopt"], [158, "mov rax, [rbp+var_78]"], [159, "movzx eax, byte ptr [rax+1Ah]"], [160, "test al, al"], [161, "jz short loc_40A800"], [162, "mov [rbp+var_60], 2"], [163, "lea rdx, [rbp+var_60]"], [164, "mov eax, [rbp+fd]"], [165, "mov r8d, 4"], [166, "mov rcx, rdx"], [167, "mov edx, 0Ah"], [168, "mov esi, 0"], [169, "mov edi, eax"], [170, "call _setsockopt"], [171, "mov rax, [rbp+var_10]"], [172, "mov eax, [rax+4]"], [173, "cmp eax, 0Ah"], [174, "jnz short loc_40A800"], [175, "lea rdx, [rbp+var_60]"], [176, "mov eax, [rbp+fd]"], [177, "mov r8d, 4"], [178, "mov rcx, rdx"], [179, "mov edx, 17h"], [180, "mov esi, 29h "], [181, "mov edi, eax"], [182, "call _setsockopt"], [183, "mov rax, [rbp+var_78]"], [184, "mov rax, [rax+10h]"], [185, "test rax, rax"], [186, "jz loc_40A8BB"], [187, "lea rax, [rbp+buf]"], [188, "mov edx, 8"], [189, "mov esi, 0"], [190, "mov rdi, rax"], [191, "call _memset"], [192, "mov rax, [rbp+var_78]"], [193, "mov rax, [rax+10h]"], [194, "lea rdx, [rbp+buf]"], [195, "mov rsi, rax"], [196, "mov edi, 2"], [197, "call _inet_pton"], [198, "cmp eax, 1"], [199, "jz short loc_40A86C"], [200, "lea rcx, aInvalidMultica"], [201, "mov edx, 6Ch "], [202, "lea rsi, aSrcUdpC"], [203, "mov edi, 4"], [204, "mov eax, 0"], [205, "call sub_406D96"], [206, "jmp loc_40A96B"], [207, "mov rax, [rbp+var_10]"], [208, "mov rax, [rax+18h]"], [209, "movzx eax, word ptr [rax]"], [210, "cmp ax, 2"], [211, "jnz short loc_40A88D"], [212, "mov rax, [rbp+var_10]"], [213, "mov rax, [rax+18h]"], [214, "mov eax, [rax+4]"], [215, "mov [rbp+var_64], eax"], [216, "jmp short loc_40A89A"], [217, "mov edi, 0"], [218, "call _htonl"], [219, "mov [rbp+var_64], eax"], [220, "lea rdx, [rbp+buf]"], [221, "mov eax, [rbp+fd]"], [222, "mov r8d, 8"], [223, "mov rcx, rdx"], [224, "mov edx, 23h "], [225, "mov esi, 0"], [226, "mov edi, eax"], [227, "call _setsockopt"], [228, "mov [rbp+var_5C], 1"], [229, "lea rdx, [rbp+var_5C]"], [230, "mov eax, [rbp+fd]"], [231, "mov esi, 5421h"], [232, "mov edi, eax"], [233, "mov eax, 0"], [234, "call _ioctl"], [235, "test eax, eax"], [236, "jz short loc_40A90C"], [237, "call ___errno_location"], [238, "mov eax, [rax]"], [239, "mov r8d, eax"], [240, "lea rcx, aSettingNonBloc_0"], [241, "mov edx, 7Eh "], [242, "lea rsi, aSrcUdpC"], [243, "mov edi, 4"], [244, "mov eax, 0"], [245, "call sub_406D96"], [246, "jmp short loc_40A96B"], [247, "mov rax, [rbp+var_10]"], [248, "mov edx, [rax+10h]"], [249, "mov rax, [rbp+var_10]"], [250, "mov rcx, [rax+18h]"], [251, "mov eax, [rbp+fd]"], [252, "mov rsi, rcx"], [253, "mov edi, eax"], [254, "call _bind"], [255, "test eax, eax"], [256, "jz short loc_40A95A"], [257, "call ___errno_location"], [258, "mov eax, [rax]"], [259, "mov r8d, eax"], [260, "lea rcx, aUdpSocketBindi"], [261, "mov edx, 84h"], [262, "lea rsi, aSrcUdpC"], [263, "mov edi, 4"], [264, "mov eax, 0"], [265, "call sub_406D96"], [266, "jmp short loc_40A96B"], [267, "mov rax, [rbp+pai]"], [268, "mov rdi, rax"], [269, "call _freeaddrinfo"], [270, "mov eax, [rbp+fd]"], [271, "jmp short locret_40A98C"], [272, "mov rax, [rbp+pai]"], [273, "mov rdi, rax"], [274, "call _freeaddrinfo"], [275, "cmp [rbp+fd], 0FFFFFFFFh"], [276, "jz short loc_40A987"], [277, "mov eax, [rbp+fd]"], [278, "mov edi, eax"], [279, "call _close"], [280, "mov eax, 0FFFFFFFFh"], [281, "leave"], [282, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [9, 3], [10, 9], [11, 10], [12, 11], [13, 3], [14, 13], [15, 14], [16, 15], [25, 10], [25, 14], [25, 7], [28, 25], [30, 3], [31, 30], [32, 31], [36, 3], [37, 36], [38, 37], [39, 37], [40, 38], [41, 38], [43, 39], [46, 45], [47, 46], [51, 3], [52, 51], [53, 50], [53, 40], [54, 35], [54, 41], [55, 42], [56, 52], [58, 57], [59, 58], [61, 60], [62, 61], [63, 53], [65, 55], [71, 3], [72, 71], [73, 72], [74, 73], [75, 50], [77, 75], [79, 78], [80, 79], [81, 80], [82, 50], [84, 82], [86, 85], [87, 86], [88, 87], [89, 53], [91, 83], [96, 50], [97, 96], [98, 86], [98, 79], [98, 97], [99, 98], [100, 86], [100, 79], [100, 97], [101, 100], [102, 86], [102, 79], [102, 97], [103, 102], [104, 101], [105, 103], [107, 106], [108, 107], [109, 108], [111, 110], [112, 111], [113, 101], [115, 104], [122, 97], [122, 86], [122, 79], [123, 122], [124, 123], [125, 124], [126, 121], [126, 99], [127, 107], [129, 126], [132, 127], [134, 3], [135, 134], [136, 135], [137, 136], [138, 130], [138, 120], [138, 99], [139, 107], [141, 138], [144, 139], [146, 3], [147, 146], [148, 147], [149, 148], [150, 130], [150, 120], [150, 99], [150, 142], [151, 107], [153, 150], [156, 151], [158, 3], [159, 158], [160, 159], [161, 160], [163, 130], [163, 154], [163, 99], [163, 142], [163, 162], [164, 107], [166, 163], [169, 164], [171, 79], [171, 97], [171, 86], [172, 171], [173, 172], [174, 173], [175, 167], [175, 162], [176, 107], [178, 175], [181, 176], [183, 3], [184, 183], [185, 184], [186, 185], [187, 185], [190, 187], [192, 3], [193, 192], [194, 188], [195, 193], [198, 197], [199, 198], [200, 101], [200, 178], [200, 153], [200, 166], [200, 141], [200, 129], [202, 195], [207, 86], [207, 79], [207, 97], [208, 207], [209, 208], [210, 209], [211, 210], [212, 86], [212, 79], [212, 97], [213, 212], [214, 213], [215, 214], [219, 218], [220, 194], [221, 107], [223, 220], [226, 221], [229, 228], [229, 130], [229, 154], [229, 179], [229, 142], [229, 99], [229, 167], [229, 224], [230, 107], [232, 230], [235, 234], [236, 235], [238, 237], [239, 238], [240, 178], [240, 153], [240, 166], [240, 141], [240, 223], [240, 129], [240, 101], [242, 231], [247, 86], [247, 79], [247, 97], [248, 247], [249, 86], [249, 79], [249, 97], [250, 249], [251, 107], [252, 250], [253, 251], [255, 254], [256, 255], [258, 257], [259, 258], [260, 250], [262, 252], [267, 50], [268, 267], [270, 107], [272, 50], [273, 272], [275, 4], [275, 107], [276, 275], [277, 4], [277, 107], [278, 277], [282, 280], [282, 69], [282, 23], [282, 270], [282, 48]]}
| {"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/f507b6814eed2cbd95a66d3b76b84a411ee244da00524d66b14dc8c4e059062a_f507b6814eed2cbd95a66d3b76b84a411ee244da00524d66b14dc8c4e059062a.jsonl.gz", "strip_func_name": "sub_40A518", "query": "\n\n\n__int64 __fastcall sub_40A518(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nint *v7; // rax\n__int64 v8; // r9\n__int64 v9; // r8\n__int64 v10; // r9\nint *v11; // rax\n__int64 v12; // r9\n__int64 v13; // r8\n__int64 v14; // r9\nint *v15; // rax\n__int64 v16; // r9\nint *v17; // rax\n__int64 v18; // r9\nchar buf[4]; // [rsp+18h] [rbp-68h] BYREF\nuint32_t v20; // [rsp+1Ch] [rbp-64h]\nint v21; // [rsp+20h] [rbp-60h] BYREF\nint v22; // [rsp+24h] [rbp-5Ch] BYREF\nint optval; // [rsp+28h] [rbp-58h] BYREF\nint v24; // [rsp+2Ch] [rbp-54h] BYREF\nstruct addrinfo *pai; // [rsp+30h] [rbp-50h] BYREF\nchar service[8]; // [rsp+38h] [rbp-48h] BYREF\nstruct addrinfo s; // [rsp+40h] [rbp-40h] BYREF\n__int64 v28; // [rsp+70h] [rbp-10h]\nint fd; // [rsp+7Ch] [rbp-4h]\n\nfd = -1;\nif ( *(_DWORD *)a1 && *(_DWORD *)a1 != 2 && *(_DWORD *)a1 != 10 )\n{\nsub_406D96(4u, \"src/udp.c\", 0x1Cu, \"Unknown address family for UDP socket\", a5, a6);\nreturn 0xFFFFFFFFLL;\n}\nmemset(&s, 0, sizeof(s));\ns.ai_family = *(_DWORD *)a1;\ns.ai_socktype = 2;\ns.ai_protocol = 17;\ns.ai_flags = 1025;\nif ( snprintf(service, 8uLL, \"%hu\", *(unsigned __int16 *)(a1 + 4)) < 0 )\nreturn 0xFFFFFFFFLL;\npai = 0LL;\nif ( getaddrinfo(*(const char **)(a1 + 8), service, &s, &pai) )\n{\nv7 = __errno_location();\nsub_406D96(4u, \"src/udp.c\", 0x2Du, \"getaddrinfo for binding address failed, errno=%d\", (unsigned int)*v7, v8);\nreturn 0xFFFFFFFFLL;\n}\nif ( *(_DWORD *)a1 )\n{\nv28 = (__int64)pai;\n}\nelse\n{\nv28 = sub_40A4DE((__int64)pai, 10);\nif ( !v28 )\n{\nv28 = sub_40A4DE((__int64)pai, 2);\nif ( !v28 )\n{\nsub_406D96(\n4u,\n\"src/udp.c\",\n0x36u,\n\"getaddrinfo for binding address failed: no suitable address family\",\nv9,\nv10);\ngoto LABEL_37;\n}\n}\n}\nfd = socket(*(_DWORD *)(v28 + 4), *(_DWORD *)(v28 + 8), *(_DWORD *)(v28 + 12));\nif ( fd == -1 )\n{\nv11 = __errno_location();\nsub_406D96(4u, \"src/udp.c\", 0x41u, \"UDP socket creation failed, errno=%d\", (unsigned int)*v11, v12);\n}\nelse\n{\nv24 = 1;\noptval = 0;\nif ( *(_DWORD *)(v28 + 4) == 10 )\nsetsockopt(fd, 41, 26, &optval, 4u);\nif ( *(_BYTE *)(a1 + 24) )\nsetsockopt(fd, 1, 6, &v24, 4u);\nif ( *(_BYTE *)(a1 + 25) )\nsetsockopt(fd, 1, 2, &v24, 4u);\nif ( *(_BYTE *)(a1 + 26) )\n{\nv21 = 2;\nsetsockopt(fd, 0, 10, &v21, 4u);\nif ( *(_DWORD *)(v28 + 4) == 10 )\nsetsockopt(fd, 41, 23, &v21, 4u);\n}\nif ( *(_QWORD *)(a1 + 16) )\n{\nmemset(buf, 0, 8uLL);\nif ( inet_pton(2, *(const char **)(a1 + 16), buf) != 1 )\n{\nsub_406D96(4u, \"src/udp.c\", 0x6Cu, \"Invalid multicast group\", v13, v14);\ngoto LABEL_37;\n}\nif ( **(_WORD **)(v28 + 24) == 2 )\nv20 = *(_DWORD *)(*(_QWORD *)(v28 + 24) + 4LL);\nelse\nv20 = htonl(0);\nsetsockopt(fd, 0, 35, buf, 8u);\n}\nv22 = 1;\nif ( ioctl(fd, 0x5421uLL, &v22) )\n{\nv15 = __errno_location();\nsub_406D96(\n4u,\n\"src/udp.c\",\n0x7Eu,\n\"Setting non-blocking mode on UDP socket failed, errno=%d\",\n(unsigned int)*v15,\nv16);\n}\nelse\n{\nif ( !bind(fd, *(const struct sockaddr **)(v28 + 24), *(_DWORD *)(v28 + 16)) )\n{\nfreeaddrinfo(pai);\nreturn (unsigned int)fd;\n}\nv17 = __errno_location();\nsub_406D96(4u, \"src/udp.c\", 0x84u, \"UDP socket binding failed, errno=%d\", (unsigned int)*v17, v18);\n}\n}\nLABEL_37:\nfreeaddrinfo(pai);\nif ( fd != -1 )\nclose(fd);\nreturn 0xFFFFFFFFLL;\n}\n\n\n\nQ:[a1,buf,v21,v22,optval,v24,pai,service,s,v28,fd,sub_40A518,sub_406D96,sub_40A4DE,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'config', 'buf': 'mreq', 'v21': 'mtu_disc', 'v22': 'nbio', 'optval': 'disabled', 'v24': 'enabled', 'pai': 'ai_list', 'service': 'bind_service', 's': 'hints', 'v28': 'ai', 'fd': 'sock', 'sub_40A518': 'udp_create_socket', 'sub_406D96': 'plum_log_write', 'sub_40A4DE': 'find_family'}"} |
|
JS_DefinePropertyGetSet | 14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243 | sunnyxx | quickjs-debug | NA | int JS_DefinePropertyGetSet(JSContext *ctx, JSValueConst this_obj,
JSAtom prop, JSValue getter, JSValue setter,
int flags)
{
int ret;
ret = JS_DefineProperty(ctx, this_obj, prop, JS_UNDEFINED, getter, setter,
flags | JS_PROP_HAS_GET | JS_PROP_HAS_SET |
JS_PROP_HAS_CONFIGURABLE | JS_PROP_HAS_ENUMERABLE);
JS_FreeValue(ctx, getter);
JS_FreeValue(ctx, setter);
return ret;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41E6ED", "function_addr": 4318957, "binary_name": "14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, rsi"], [5, "mov rsi, rdx"], [6, "mov rdx, rsi"], [7, "mov [rbp+var_30], rax"], [8, "mov [rbp+var_28], rdx"], [9, "mov [rbp+var_1C], ecx"], [10, "mov [rbp+var_40], r8"], [11, "mov [rbp+var_38], r9"], [12, "mov eax, [rbp+arg_10]"], [13, "or ah, 1Dh"], [14, "mov r8d, eax"], [15, "mov eax, 0"], [16, "mov edx, 0"], [17, "mov edx, 3"], [18, "mov ecx, [rbp+var_1C]"], [19, "mov rsi, [rbp+var_30]"], [20, "mov r10, [rbp+var_28]"], [21, "mov rdi, [rbp+var_18]"], [22, "sub rsp, 8"], [23, "push r8"], [24, "push [rbp+arg_8]"], [25, "push [rbp+arg_0]"], [26, "push [rbp+var_38]"], [27, "push [rbp+var_40]"], [28, "mov r8, rax"], [29, "mov r9, rdx"], [30, "mov rdx, r10"], [31, "call sub_41D2AF"], [32, "add rsp, 30h"], [33, "mov [rbp+var_4], eax"], [34, "mov rcx, [rbp+var_40]"], [35, "mov rdx, [rbp+var_38]"], [36, "mov rax, [rbp+var_18]"], [37, "mov rsi, rcx"], [38, "mov rdi, rax"], [39, "call sub_409FB3"], [40, "mov rcx, [rbp+arg_0]"], [41, "mov rdx, [rbp+arg_8]"], [42, "mov rax, [rbp+var_18]"], [43, "mov rsi, rcx"], [44, "mov rdi, rax"], [45, "call sub_409FB3"], [46, "mov ecx, [rbp+var_4]"], [47, "mov eax, ecx"], [48, "leave"], [49, "retn"]], "data_dep": [[6, 5], [7, 4], [8, 6], [13, 12], [14, 13], [18, 9], [19, 7], [20, 8], [21, 3], [22, 2], [23, 14], [26, 11], [27, 10], [28, 15], [29, 17], [30, 20], [32, 22], [33, 31], [34, 10], [35, 11], [36, 3], [37, 34], [38, 36], [42, 3], [43, 40], [44, 42], [46, 33], [47, 46], [49, 47]]}
| {"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/14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243_14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243.jsonl.gz", "strip_func_name": "sub_41E6ED", "query": "\n\n\n__int64 __fastcall sub_41E6ED(__int64 *a1, __int64 a2, __int64 a3, unsigned int a4, _DWORD *a5, __int64 a6, _DWORD *a7, __int64 a8, unsigned int a9)\n{\nunsigned int v9; // eax\nunsigned int v13; // [rsp+44h] [rbp-4h]\n\nv9 = a9;\nBYTE1(v9) = BYTE1(a9) | 0x1D;\nv13 = sub_41D2AF(a1, a2, a3, a4, 0LL, 3LL, a5, a6, a7, a8, v9);\nsub_409FB3((__int64)a1, a5, a6);\nsub_409FB3((__int64)a1, a7, a8);\nreturn v13;\n}\n\n\n\nQ:[a4,a1,a2,a5,a7,a9,sub_41E6ED,sub_41D2AF,sub_409FB3,]\nAssistant: ", "hints": "[]", "response": "{'a4': 'prop', 'a1': 'ctx', 'a2': 'this_obj', 'a5': 'getter', 'a7': 'setter', 'a9': 'flags', 'sub_41E6ED': 'JS_DefinePropertyGetSet', 'sub_41D2AF': 'JS_DefineProperty', 'sub_409FB3': 'JS_FreeValue_0'}"} |
|
cord_destroy | 09468258191b18dfeb863cc18681434973cbab8eed0642fdbffcc494aaf48931 | dfguan | asset | NA | void cord_destroy(cord_t *c, int n)
{
if (c) {
int i;
for ( i = 0; i < n; ++i ) {
if (c[i].coords) free(c[i].coords);
if (c[i].anno) {
int j ;
for (j=0; j < c[i].n; ++j) free(c[i].anno[j]);
free(c[i].anno);
}
}
free(c);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4037F3", "function_addr": 4208627, "binary_name": "09468258191b18dfeb863cc18681434973cbab8eed0642fdbffcc494aaf48931.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+ptr], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "cmp [rbp+ptr], 0"], [6, "jz loc_40394C"], [7, "mov [rbp+var_4], 0"], [8, "jmp loc_403934"], [9, "mov eax, [rbp+var_4]"], [10, "movsxd rdx, eax"], [11, "mov rax, rdx"], [12, "shl rax, 2"], [13, "add rax, rdx"], [14, "shl rax, 3"], [15, "mov rdx, rax"], [16, "mov rax, [rbp+ptr]"], [17, "add rax, rdx"], [18, "mov rax, [rax]"], [19, "test rax, rax"], [20, "jz short loc_403868"], [21, "mov eax, [rbp+var_4]"], [22, "movsxd rdx, eax"], [23, "mov rax, rdx"], [24, "shl rax, 2"], [25, "add rax, rdx"], [26, "shl rax, 3"], [27, "mov rdx, rax"], [28, "mov rax, [rbp+ptr]"], [29, "add rax, rdx"], [30, "mov rax, [rax]"], [31, "mov rdi, rax"], [32, "call _free"], [33, "mov eax, [rbp+var_4]"], [34, "movsxd rdx, eax"], [35, "mov rax, rdx"], [36, "shl rax, 2"], [37, "add rax, rdx"], [38, "shl rax, 3"], [39, "mov rdx, rax"], [40, "mov rax, [rbp+ptr]"], [41, "add rax, rdx"], [42, "mov rax, [rax+10h]"], [43, "test rax, rax"], [44, "jz loc_403930"], [45, "mov [rbp+var_8], 0"], [46, "jmp short loc_4038D9"], [47, "mov eax, [rbp+var_4]"], [48, "movsxd rdx, eax"], [49, "mov rax, rdx"], [50, "shl rax, 2"], [51, "add rax, rdx"], [52, "shl rax, 3"], [53, "mov rdx, rax"], [54, "mov rax, [rbp+ptr]"], [55, "add rax, rdx"], [56, "mov rdx, [rax+10h]"], [57, "mov eax, [rbp+var_8]"], [58, "cdqe"], [59, "shl rax, 3"], [60, "add rax, rdx"], [61, "mov rax, [rax]"], [62, "mov rdi, rax"], [63, "call _free"], [64, "add [rbp+var_8], 1"], [65, "mov eax, [rbp+var_8]"], [66, "movsxd rcx, eax"], [67, "mov eax, [rbp+var_4]"], [68, "movsxd rdx, eax"], [69, "mov rax, rdx"], [70, "shl rax, 2"], [71, "add rax, rdx"], [72, "shl rax, 3"], [73, "mov rdx, rax"], [74, "mov rax, [rbp+ptr]"], [75, "add rax, rdx"], [76, "mov rax, [rax+18h]"], [77, "cmp rcx, rax"], [78, "jb short loc_40389C"], [79, "mov eax, [rbp+var_4]"], [80, "movsxd rdx, eax"], [81, "mov rax, rdx"], [82, "shl rax, 2"], [83, "add rax, rdx"], [84, "shl rax, 3"], [85, "mov rdx, rax"], [86, "mov rax, [rbp+ptr]"], [87, "add rax, rdx"], [88, "mov rax, [rax+10h]"], [89, "mov rdi, rax"], [90, "call _free"], [91, "add [rbp+var_4], 1"], [92, "mov eax, [rbp+var_4]"], [93, "cmp eax, [rbp+var_1C]"], [94, "jl loc_403819"], [95, "mov rax, [rbp+ptr]"], [96, "mov rdi, rax"], [97, "call _free"], [98, "nop"], [99, "leave"], [100, "retn"]], "data_dep": [[5, 3], [6, 5], [9, 7], [9, 91], [10, 9], [11, 10], [12, 11], [13, 10], [13, 12], [14, 13], [15, 14], [16, 3], [17, 16], [17, 15], [18, 17], [19, 18], [20, 19], [21, 91], [21, 7], [22, 21], [23, 22], [24, 23], [25, 22], [25, 24], [26, 25], [27, 26], [28, 3], [29, 27], [29, 28], [30, 29], [31, 30], [33, 91], [33, 7], [34, 33], [35, 34], [36, 35], [37, 34], [37, 36], [38, 37], [39, 38], [40, 3], [41, 40], [41, 39], [42, 41], [43, 42], [44, 43], [47, 7], [47, 91], [48, 47], [49, 48], [50, 49], [51, 50], [51, 48], [52, 51], [53, 52], [54, 3], [55, 54], [55, 53], [56, 55], [57, 45], [57, 64], [59, 57], [60, 59], [60, 56], [61, 60], [62, 61], [64, 64], [64, 45], [65, 45], [65, 64], [66, 65], [67, 7], [67, 91], [68, 67], [69, 68], [70, 69], [71, 68], [71, 70], [72, 71], [73, 72], [74, 3], [75, 74], [75, 73], [76, 75], [77, 76], [77, 66], [78, 77], [79, 7], [79, 91], [80, 79], [81, 80], [82, 81], [83, 80], [83, 82], [84, 83], [85, 84], [86, 3], [87, 86], [87, 85], [88, 87], [89, 88], [91, 7], [91, 91], [92, 7], [92, 91], [93, 4], [93, 92], [94, 93], [95, 3], [96, 95], [100, 97]]}
| {"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/09468258191b18dfeb863cc18681434973cbab8eed0642fdbffcc494aaf48931_09468258191b18dfeb863cc18681434973cbab8eed0642fdbffcc494aaf48931.jsonl.gz", "strip_func_name": "sub_4037F3", "query": "\n\n\nvoid __fastcall sub_4037F3(void **a1, int a2)\n{\nint j; // [rsp+18h] [rbp-8h]\nint i; // [rsp+1Ch] [rbp-4h]\n\nif ( a1 )\n{\nfor ( i = 0; i < a2; ++i )\n{\nif ( a1[5 * i] )\nfree(a1[5 * i]);\nif ( a1[5 * i + 2] )\n{\nfor ( j = 0; j < (unsigned __int64)a1[5 * i + 3]; ++j )\nfree(*((void **)a1[5 * i + 2] + j));\nfree(a1[5 * i + 2]);\n}\n}\nfree(a1);\n}\n}\n\n\n\nQ:[a1,a2,sub_4037F3,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'a2': 'n', 'sub_4037F3': 'cord_destroy'}"} |
|
get_ipv4_address | 8fce6f6e0906e86bb48d227164b38af27b7121d3f52661720c177a7182de367b | brechtsanders | proxysocket | NA | uint32_t get_ipv4_address (const char* hostname)
{
uint32_t addr;
struct hostent* hostdata;
if (!hostname || !*hostname)
return INADDR_NONE;
//check if host is dotted IP address
if ((addr = inet_addr(hostname)) != INADDR_NONE)
return addr;
//look up hostname (this will block), note: gethostbyname() is not thread-safe
if ((hostdata = gethostbyname(hostname)) != NULL)
memcpy(&addr, hostdata->h_addr_list[0], sizeof(addr));
else
addr = INADDR_NONE;
return addr;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401D0A", "function_addr": 4201738, "binary_name": "8fce6f6e0906e86bb48d227164b38af27b7121d3f52661720c177a7182de367b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+cp], rdi"], [4, "cmp [rbp+cp], 0"], [5, "jz short loc_401D28"], [6, "mov rax, [rbp+cp]"], [7, "movzx eax, byte ptr [rax]"], [8, "test al, al"], [9, "jnz short loc_401D2F"], [10, "mov eax, 0FFFFFFFFh"], [11, "jmp short locret_401D7E"], [12, "mov rax, [rbp+cp]"], [13, "mov rdi, rax"], [14, "call _inet_addr"], [15, "mov [rbp+var_C], eax"], [16, "mov eax, [rbp+var_C]"], [17, "cmp eax, 0FFFFFFFFh"], [18, "jz short loc_401D4B"], [19, "mov eax, [rbp+var_C]"], [20, "jmp short locret_401D7E"], [21, "mov rax, [rbp+cp]"], [22, "mov rdi, rax"], [23, "call _gethostbyname"], [24, "mov [rbp+var_8], rax"], [25, "cmp [rbp+var_8], 0"], [26, "jz short loc_401D74"], [27, "mov rax, [rbp+var_8]"], [28, "mov rax, [rax+18h]"], [29, "mov rax, [rax]"], [30, "mov eax, [rax]"], [31, "mov [rbp+var_C], eax"], [32, "jmp short loc_401D7B"], [33, "mov [rbp+var_C], 0FFFFFFFFh"], [34, "mov eax, [rbp+var_C]"], [35, "leave"], [36, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 7], [9, 8], [12, 3], [13, 12], [15, 14], [16, 15], [17, 16], [18, 17], [19, 15], [21, 3], [22, 21], [24, 23], [25, 24], [26, 25], [27, 24], [28, 27], [29, 28], [30, 29], [31, 30], [34, 31], [34, 33], [36, 10], [36, 19], [36, 34]]}
| {"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/8fce6f6e0906e86bb48d227164b38af27b7121d3f52661720c177a7182de367b_8fce6f6e0906e86bb48d227164b38af27b7121d3f52661720c177a7182de367b.jsonl.gz", "strip_func_name": "sub_401D0A", "query": "\n\n\n__int64 __fastcall sub_401D0A(const char *a1)\n{\nin_addr_t v2; // [rsp+14h] [rbp-Ch]\nunsigned int v3; // [rsp+14h] [rbp-Ch]\nstruct hostent *v4; // [rsp+18h] [rbp-8h]\n\nif ( !a1 || !*a1 )\nreturn 0xFFFFFFFFLL;\nv2 = inet_addr(a1);\nif ( v2 != -1 )\nreturn v2;\nv4 = gethostbyname(a1);\nif ( v4 )\nv3 = **(_DWORD **)v4->h_addr_list;\nelse\nv3 = -1;\nreturn v3;\n}\n\n\n\nQ:[a1,v3,v4,sub_401D0A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'hostname', 'v3': 'addra', 'v4': 'hostdata', 'sub_401D0A': 'get_ipv4_address'}"} |
|
LzmaDec_InitStateReal | 937f4007de957c940b1185936df44785054b14face5f35a64f5564a5ca298d06 | ucsb-seclab | boomerang | NA | static void LzmaDec_InitStateReal(CLzmaDec *p)
{
UInt32 numProbs = Literal + ((UInt32)LZMA_LIT_SIZE << (p->prop.lc + p->prop.lp));
UInt32 i;
CLzmaProb *probs = p->probs;
for (i = 0; i < numProbs; i++)
probs[i] = kBitModelTotal >> 1;
p->reps[0] = p->reps[1] = p->reps[2] = p->reps[3] = 1;
p->state = 0;
p->needInitState = 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40747B", "function_addr": 4224123, "binary_name": "937f4007de957c940b1185936df44785054b14face5f35a64f5564a5ca298d06.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov rax, [rbp+var_18]"], [4, "mov edx, [rax]"], [5, "mov rax, [rbp+var_18]"], [6, "mov eax, [rax+4]"], [7, "add eax, edx"], [8, "mov edx, 300h"], [9, "mov ecx, eax"], [10, "shl edx, cl"], [11, "mov eax, edx"], [12, "add eax, 736h"], [13, "mov [rbp+var_8], eax"], [14, "mov rax, [rbp+var_18]"], [15, "mov rax, [rax+10h]"], [16, "mov [rbp+var_10], rax"], [17, "mov [rbp+var_4], 0"], [18, "jmp short loc_4074D1"], [19, "mov eax, [rbp+var_4]"], [20, "lea rdx, [rax+rax]"], [21, "mov rax, [rbp+var_10]"], [22, "add rax, rdx"], [23, "mov word ptr [rax], 400h"], [24, "add [rbp+var_4], 1"], [25, "mov eax, [rbp+var_4]"], [26, "cmp eax, [rbp+var_8]"], [27, "jb short loc_4074BA"], [28, "mov rax, [rbp+var_18]"], [29, "mov dword ptr [rax+58h], 1"], [30, "mov rax, [rbp+var_18]"], [31, "mov edx, [rax+58h]"], [32, "mov rax, [rbp+var_18]"], [33, "mov [rax+54h], edx"], [34, "mov rax, [rbp+var_18]"], [35, "mov edx, [rax+54h]"], [36, "mov rax, [rbp+var_18]"], [37, "mov [rax+50h], edx"], [38, "mov rax, [rbp+var_18]"], [39, "mov edx, [rax+50h]"], [40, "mov rax, [rbp+var_18]"], [41, "mov [rax+4Ch], edx"], [42, "mov rax, [rbp+var_18]"], [43, "mov dword ptr [rax+48h], 0"], [44, "mov rax, [rbp+var_18]"], [45, "mov dword ptr [rax+64h], 0"], [46, "nop"], [47, "pop rbp"], [48, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 2], [6, 5], [7, 4], [7, 6], [9, 7], [10, 9], [10, 8], [11, 10], [12, 11], [13, 12], [14, 2], [15, 14], [16, 15], [19, 24], [19, 17], [20, 23], [20, 20], [20, 10], [20, 19], [21, 16], [22, 20], [22, 21], [23, 22], [24, 17], [24, 24], [25, 24], [25, 17], [26, 13], [26, 25], [27, 26], [28, 2], [29, 28], [30, 2], [31, 29], [31, 30], [32, 2], [33, 32], [33, 31], [34, 2], [35, 33], [35, 34], [36, 2], [37, 36], [37, 35], [38, 2], [39, 38], [39, 37], [40, 2], [41, 40], [41, 39], [42, 2], [43, 42], [44, 2], [45, 44], [47, 0], [48, 44]]}
| {"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/937f4007de957c940b1185936df44785054b14face5f35a64f5564a5ca298d06_937f4007de957c940b1185936df44785054b14face5f35a64f5564a5ca298d06.jsonl.gz", "strip_func_name": "sub_40747B", "query": "\n\n\n__int64 __fastcall sub_40747B(__int64 a1)\n{\n__int64 result; // rax\n__int64 v2; // [rsp+8h] [rbp-10h]\nunsigned int v3; // [rsp+10h] [rbp-8h]\nunsigned int i; // [rsp+14h] [rbp-4h]\n\nv3 = (768 << (*(_BYTE *)a1 + *(_BYTE *)(a1 + 4))) + 1846;\nv2 = *(_QWORD *)(a1 + 16);\nfor ( i = 0; i < v3; ++i )\n*(_WORD *)(2LL * i + v2) = 1024;\n*(_DWORD *)(a1 + 88) = 1;\n*(_DWORD *)(a1 + 84) = *(_DWORD *)(a1 + 88);\n*(_DWORD *)(a1 + 80) = *(_DWORD *)(a1 + 84);\n*(_DWORD *)(a1 + 76) = *(_DWORD *)(a1 + 80);\n*(_DWORD *)(a1 + 72) = 0;\nresult = a1;\n*(_DWORD *)(a1 + 100) = 0;\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,sub_40747B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'p', 'v2': 'probs', 'v3': 'numProbs', 'sub_40747B': 'LzmaDec_InitStateReal'}"} |
|
handle_stop_sig | ad678b06bce5d6b0d0083d64458cd58aea1ad05107ba88ecb3cb7b66e0079784 | CGCL-codes | SCVDT | NA | static void handle_stop_sig(int sig) {
stop_soon = 1;
if (child_pid > 0) kill(child_pid, SIGKILL);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4041E3", "function_addr": 4211171, "binary_name": "ad678b06bce5d6b0d0083d64458cd58aea1ad05107ba88ecb3cb7b66e0079784.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov cs:byte_40A288, 1"], [5, "mov eax, cs:pid"], [6, "test eax, eax"], [7, "jle short loc_404211"], [8, "mov eax, cs:pid"], [9, "mov esi, 9"], [10, "mov edi, eax"], [11, "call _kill"], [12, "nop"], [13, "leave"], [14, "retn"]], "data_dep": [[6, 5], [7, 6], [10, 8], [14, 6], [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/ad678b06bce5d6b0d0083d64458cd58aea1ad05107ba88ecb3cb7b66e0079784_ad678b06bce5d6b0d0083d64458cd58aea1ad05107ba88ecb3cb7b66e0079784.jsonl.gz", "strip_func_name": "sub_4041E3", "query": "\n\n\nint sub_4041E3()\n{\nint result; // eax\n\nbyte_40A288 = 1;\nresult = pid;\nif ( pid > 0 )\nresult = kill(pid, 9);\nreturn result;\n}\n\n\n\nQ:[sub_4041E3,]\nAssistant: ", "hints": "[]", "response": "{'sub_4041E3': 'handle_stop_sig'}"} |
|
do_sync | a8599f58811422cdff45c6bab084bc3942e68efcd78a3458a98fb8608b4cbb7c | rastersoft | gsl1680 | NA | void do_sync(struct i2c_client *cliente,int file) {
struct input_event ev;
memset(&ev, 0, sizeof(struct input_event));
ev.type = EV_SYN;
ev.code = 0;
ev.value = 0;
write(file, &ev, sizeof(struct input_event));
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401928", "function_addr": 4200744, "binary_name": "a8599f58811422cdff45c6bab084bc3942e68efcd78a3458a98fb8608b4cbb7c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+fd], esi"], [5, "lea rax, [rbp+s]"], [6, "mov edx, 18h"], [7, "mov esi, 0"], [8, "mov rdi, rax"], [9, "call _memset"], [10, "mov [rbp+var_10], 0"], [11, "mov [rbp+var_E], 0"], [12, "mov [rbp+var_C], 0"], [13, "lea rcx, [rbp+s]"], [14, "mov eax, [rbp+fd]"], [15, "mov edx, 18h"], [16, "mov rsi, rcx"], [17, "mov edi, eax"], [18, "call _write"], [19, "nop"], [20, "leave"], [21, "retn"]], "data_dep": [[8, 5], [14, 4], [16, 13], [17, 14], [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/a8599f58811422cdff45c6bab084bc3942e68efcd78a3458a98fb8608b4cbb7c_a8599f58811422cdff45c6bab084bc3942e68efcd78a3458a98fb8608b4cbb7c.jsonl.gz", "strip_func_name": "sub_401928", "query": "\n\n\nssize_t __fastcall sub_401928(__int64 a1, int a2)\n{\nchar s[16]; // [rsp+10h] [rbp-20h] BYREF\n__int16 v4; // [rsp+20h] [rbp-10h]\n__int16 v5; // [rsp+22h] [rbp-Eh]\nint v6; // [rsp+24h] [rbp-Ch]\n\nmemset(s, 0, 0x18uLL);\nv4 = 0;\nv5 = 0;\nv6 = 0;\nreturn write(a2, s, 0x18uLL);\n}\n\n\n\nQ:[a2,a1,s,sub_401928,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'file', 'a1': 'cliente', 's': 'ev', 'sub_401928': 'do_sync'}"} |
|
lv_style_set_border_post | 53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783 | sukesh-ak | ESP32-TUX | NA | void lv_style_set_border_post(lv_style_t * style, bool value)
{
lv_style_value_t v = {
.num = (int32_t)value
};
lv_style_set_prop(style, LV_STYLE_BORDER_POST, v);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_471C75", "function_addr": 4660341, "binary_name": "53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783.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, "mov [rbp+var_8], 0"], [7, "movzx eax, [rbp+var_1C]"], [8, "mov dword ptr [rbp+var_8], eax"], [9, "mov rdx, [rbp+var_8]"], [10, "mov rax, [rbp+var_18]"], [11, "mov esi, 34h "], [12, "mov rdi, rax"], [13, "call sub_470D51"], [14, "nop"], [15, "leave"], [16, "retn"]], "data_dep": [[5, 4], [7, 5], [8, 7], [9, 8], [10, 3], [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/53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783_53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783.jsonl.gz", "strip_func_name": "sub_471C75", "query": "\n\n\n__int64 __fastcall sub_471C75(__int64 a1, unsigned __int8 a2)\n{\nreturn sub_470D51(a1, 0x34u, a2);\n}\n\n\n\nQ:[a1,a2,sub_471C75,sub_470D51,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'style', 'a2': 'value', 'sub_471C75': 'lv_style_set_border_post', 'sub_470D51': 'lv_style_set_prop'}"} |
|
fixup_branches | c01d3aec38f1f0fc6d283c3a670d938f7f9dc20a11765202b902e11a359342bd | teslamotors | coreboot | NA | static void fixup_branches(struct compile_state *state,
struct triple *cmp, struct triple *use, int jmp_op)
{
struct triple_set *entry, *next;
for(entry = use->use; entry; entry = next) {
next = entry->next;
if (entry->member->op == OP_COPY) {
fixup_branches(state, cmp, entry->member, jmp_op);
}
else if (entry->member->op == OP_CBRANCH) {
struct triple *branch;
struct triple *left, *right;
left = right = 0;
left = RHS(cmp, 0);
if (cmp->rhs > 1) {
right = RHS(cmp, 1);
}
branch = entry->member;
fixup_branch(state, branch, jmp_op,
cmp->op, cmp->type, left, right);
}
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43836F", "function_addr": 4424559, "binary_name": "c01d3aec38f1f0fc6d283c3a670d938f7f9dc20a11765202b902e11a359342bd.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_4C], ecx"], [7, "mov rax, [rbp+var_48]"], [8, "mov rax, [rax+10h]"], [9, "mov [rbp+var_8], rax"], [10, "jmp loc_4384A3"], [11, "mov rax, [rbp+var_8]"], [12, "mov rax, [rax]"], [13, "mov [rbp+var_18], rax"], [14, "mov rax, [rbp+var_8]"], [15, "mov rax, [rax+8]"], [16, "movzx eax, byte ptr [rax+20h]"], [17, "cmp al, 3Eh "], [18, "jnz short loc_4383D2"], [19, "mov rax, [rbp+var_8]"], [20, "mov rdx, [rax+8]"], [21, "mov ecx, [rbp+var_4C]"], [22, "mov rsi, [rbp+var_40]"], [23, "mov rax, [rbp+var_38]"], [24, "mov rdi, rax"], [25, "call sub_43836F"], [26, "jmp loc_43849B"], [27, "mov rax, [rbp+var_8]"], [28, "mov rax, [rax+8]"], [29, "movzx eax, byte ptr [rax+20h]"], [30, "cmp al, 52h "], [31, "jnz loc_43849B"], [32, "mov [rbp+var_10], 0"], [33, "mov rax, [rbp+var_10]"], [34, "mov [rbp+var_20], rax"], [35, "mov rax, [rbp+var_40]"], [36, "mov eax, [rax+20h]"], [37, "shr eax, 0Fh"], [38, "and eax, 3Fh"], [39, "movzx edx, al"], [40, "mov rax, [rbp+var_40]"], [41, "movsxd rdx, edx"], [42, "add rdx, 6"], [43, "mov rax, [rax+rdx*8+8]"], [44, "mov [rbp+var_20], rax"], [45, "mov rax, [rbp+var_40]"], [46, "movzx eax, word ptr [rax+22h]"], [47, "shr ax, 5"], [48, "and eax, 7Fh"], [49, "cmp al, 1"], [50, "jbe short loc_438454"], [51, "mov rax, [rbp+var_40]"], [52, "mov eax, [rax+20h]"], [53, "shr eax, 0Fh"], [54, "and eax, 3Fh"], [55, "movzx eax, al"], [56, "lea edx, [rax+1]"], [57, "mov rax, [rbp+var_40]"], [58, "movsxd rdx, edx"], [59, "add rdx, 6"], [60, "mov rax, [rax+rdx*8+8]"], [61, "mov [rbp+var_10], rax"], [62, "mov rax, [rbp+var_8]"], [63, "mov rax, [rax+8]"], [64, "mov [rbp+var_28], rax"], [65, "mov rax, [rbp+var_40]"], [66, "mov rdi, [rax+18h]"], [67, "mov rax, [rbp+var_40]"], [68, "movzx eax, byte ptr [rax+20h]"], [69, "movzx ecx, al"], [70, "mov r8, [rbp+var_20]"], [71, "mov edx, [rbp+var_4C]"], [72, "mov rsi, [rbp+var_28]"], [73, "mov rax, [rbp+var_38]"], [74, "sub rsp, 8"], [75, "push [rbp+var_10]"], [76, "mov r9, r8"], [77, "mov r8, rdi"], [78, "mov rdi, rax"], [79, "call sub_43818C"], [80, "add rsp, 10h"], [81, "mov rax, [rbp+var_18]"], [82, "mov [rbp+var_8], rax"], [83, "cmp [rbp+var_8], 0"], [84, "jnz loc_438397"], [85, "nop"], [86, "nop"], [87, "leave"], [88, "retn"]], "data_dep": [[7, 5], [8, 7], [9, 8], [11, 9], [11, 82], [12, 11], [13, 12], [14, 9], [14, 82], [15, 14], [16, 15], [17, 16], [18, 17], [19, 9], [19, 82], [20, 19], [21, 6], [22, 4], [23, 3], [24, 23], [27, 9], [27, 82], [28, 27], [29, 28], [30, 29], [31, 30], [33, 32], [34, 33], [35, 4], [36, 35], [37, 36], [38, 37], [39, 38], [40, 4], [41, 39], [42, 41], [43, 40], [44, 43], [45, 4], [46, 45], [47, 46], [48, 47], [49, 48], [50, 49], [51, 4], [52, 51], [53, 52], [54, 53], [55, 54], [56, 55], [56, 42], [57, 4], [58, 56], [59, 58], [60, 57], [61, 60], [62, 9], [62, 82], [63, 62], [64, 63], [65, 4], [66, 65], [67, 4], [68, 67], [69, 68], [70, 44], [71, 6], [72, 64], [73, 3], [74, 2], [74, 80], [75, 32], [75, 61], [76, 70], [77, 66], [78, 73], [80, 74], [81, 13], [82, 81], [83, 9], [83, 82], [84, 83], [88, 8], [88, 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/c01d3aec38f1f0fc6d283c3a670d938f7f9dc20a11765202b902e11a359342bd_c01d3aec38f1f0fc6d283c3a670d938f7f9dc20a11765202b902e11a359342bd.jsonl.gz", "strip_func_name": "sub_43836F", "query": "\n\n\n_QWORD *__fastcall sub_43836F(FILE **a1, __int64 a2, __int64 a3, unsigned int a4)\n{\n_QWORD *result; // rax\n_QWORD *v6; // [rsp+38h] [rbp-18h]\n__int64 v7; // [rsp+40h] [rbp-10h]\n_QWORD *i; // [rsp+48h] [rbp-8h]\n\nresult = *(_QWORD **)(a3 + 16);\nfor ( i = result; i; i = v6 )\n{\nv6 = (_QWORD *)*i;\nif ( *(_BYTE *)(i[1] + 32LL) == 62 )\n{\nsub_43836F(a1, a2, i[1], a4);\n}\nelse if ( *(_BYTE *)(i[1] + 32LL) == 82 )\n{\nv7 = 0LL;\nif ( ((*(_WORD *)(a2 + 34) >> 5) & 0x7Fu) > 1 )\nv7 = *(_QWORD *)(a2 + 8 * (((*(_DWORD *)(a2 + 32) >> 15) & 0x3F) + 1 + 6LL) + 8);\nsub_43818C(\na1,\ni[1],\na4,\n*(unsigned __int8 *)(a2 + 32),\n*(_QWORD *)(a2 + 24),\n*(_QWORD *)(a2 + 8 * (((*(_DWORD *)(a2 + 32) >> 15) & 0x3F) + 6LL) + 8),\nv7);\n}\nresult = v6;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v6,v7,i,sub_43836F,sub_43818C,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'use', 'a4': 'jmp_op', 'a1': 'state', 'a2': 'cmp', 'v6': 'next', 'v7': 'right', 'i': 'entry', 'sub_43836F': 'fixup_branches', 'sub_43818C': 'fixup_branch'}"} |
|
analyzerUnion | daf522ec791325a55c7ec4b0aa36a1929ad226357bee805d263ed61c8baffce7 | Fedjmike | fcc | NA | static void analyzerUnion (analyzerCtx* ctx, ast* Node) {
for (ast* Current = Node->firstChild;
Current;
Current = Current->nextSibling) {
analyzerDecl(ctx, Current, false);
}
Node->dt = typeCreateBasic(Node->symbol);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402561", "function_addr": 4203873, "binary_name": "daf522ec791325a55c7ec4b0aa36a1929ad226357bee805d263ed61c8baffce7.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 rax, [rax+18h]"], [7, "mov [rbp+var_8], rax"], [8, "jmp short loc_4025A3"], [9, "mov rcx, [rbp+var_8]"], [10, "mov rax, [rbp+var_18]"], [11, "mov edx, 0"], [12, "mov rsi, rcx"], [13, "mov rdi, rax"], [14, "call sub_401F2E"], [15, "mov rax, [rbp+var_8]"], [16, "mov rax, [rax+28h]"], [17, "mov [rbp+var_8], rax"], [18, "cmp [rbp+var_8], 0"], [19, "jnz short loc_40257F"], [20, "mov rax, [rbp+var_20]"], [21, "mov rax, [rax+60h]"], [22, "mov rdi, rax"], [23, "call sub_40CE2B"], [24, "mov rdx, [rbp+var_20]"], [25, "mov [rdx+58h], rax"], [26, "nop"], [27, "leave"], [28, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [9, 17], [9, 7], [10, 3], [12, 9], [13, 10], [15, 17], [15, 7], [16, 15], [17, 16], [18, 17], [18, 7], [19, 18], [20, 4], [21, 20], [22, 21], [24, 4], [25, 23], [25, 24], [28, 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_402561", "query": "\n\n\n__int64 __fastcall sub_402561(__int64 a1, _QWORD *a2)\n{\n__int64 result; // rax\n_QWORD *i; // [rsp+18h] [rbp-8h]\n\nfor ( i = (_QWORD *)a2[3]; i; i = (_QWORD *)i[5] )\nsub_401F2E(a1, i, 0);\nresult = sub_40CE2B(a2[12]);\na2[11] = result;\nreturn result;\n}\n\n\n\nQ:[a1,a2,i,sub_402561,sub_401F2E,sub_40CE2B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ctx', 'a2': 'Node', 'i': 'Current', 'sub_402561': 'analyzerUnion', 'sub_401F2E': 'analyzerDecl', 'sub_40CE2B': 'typeCreateBasic'}"} |
|
hex1byte | 35d5eba3be5a13e0fdb17edd2397afc5c0a83df75987e6b7f9168c7e69c8296b | cnlohr | cnovr | NA | unsigned char hex1byte( const char data )
{
if( data >= '0' && data <= '9' )
return (data - '0');
else if( data >= 'a' && data <= 'f' )
return (data - 'a'+10);
else if( data >= 'A' && data <= 'F' )
return (data - 'A'+10);
else
return 16;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402AA6", "function_addr": 4205222, "binary_name": "35d5eba3be5a13e0fdb17edd2397afc5c0a83df75987e6b7f9168c7e69c8296b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, edi"], [3, "mov [rbp+var_4], al"], [4, "cmp [rbp+var_4], 2Fh "], [5, "jle short loc_402AC4"], [6, "cmp [rbp+var_4], 39h "], [7, "jg short loc_402AC4"], [8, "movzx eax, [rbp+var_4]"], [9, "sub eax, 30h "], [10, "jmp short loc_402AF3"], [11, "cmp [rbp+var_4], 60h "], [12, "jle short loc_402AD9"], [13, "cmp [rbp+var_4], 66h "], [14, "jg short loc_402AD9"], [15, "movzx eax, [rbp+var_4]"], [16, "sub eax, 57h "], [17, "jmp short loc_402AF3"], [18, "cmp [rbp+var_4], 40h "], [19, "jle short loc_402AEE"], [20, "cmp [rbp+var_4], 46h "], [21, "jg short loc_402AEE"], [22, "movzx eax, [rbp+var_4]"], [23, "sub eax, 37h "], [24, "jmp short loc_402AF3"], [25, "mov eax, 10h"], [26, "pop rbp"], [27, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 3], [7, 6], [8, 3], [9, 8], [11, 3], [12, 11], [13, 3], [14, 13], [15, 3], [16, 15], [18, 3], [19, 18], [20, 3], [21, 20], [22, 3], [23, 22], [26, 0], [27, 16], [27, 25], [27, 9], [27, 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/35d5eba3be5a13e0fdb17edd2397afc5c0a83df75987e6b7f9168c7e69c8296b_35d5eba3be5a13e0fdb17edd2397afc5c0a83df75987e6b7f9168c7e69c8296b.jsonl.gz", "strip_func_name": "sub_402AA6", "query": "\n\n\n__int64 __fastcall sub_402AA6(char a1)\n{\nif ( a1 > 47 && a1 <= 57 )\nreturn (unsigned int)(unsigned __int8)a1 - 48;\nif ( a1 > 96 && a1 <= 102 )\nreturn (unsigned int)(unsigned __int8)a1 - 87;\nif ( a1 <= 64 || a1 > 70 )\nreturn 16LL;\nreturn (unsigned int)(unsigned __int8)a1 - 55;\n}\n\n\n\nQ:[a1,sub_402AA6,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'data', 'sub_402AA6': 'hex1byte'}"} |
|
PS_UnreadLastToken | 96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7 | zturtleman | lilium-voyager | NA | void PS_UnreadLastToken(script_t *script)
{
script->tokenavailable = 1;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4959A4", "function_addr": 4807076, "binary_name": "96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7.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+43Ch], 1"], [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/96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7_96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7.jsonl.gz", "strip_func_name": "sub_4959A4", "query": "\n\n\n__int64 __fastcall sub_4959A4(__int64 a1)\n{\n__int64 result; // rax\n\nresult = a1;\n*(_DWORD *)(a1 + 1084) = 1;\nreturn result;\n}\n\n\n\nQ:[a1,sub_4959A4,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'script', 'sub_4959A4': 'PS_UnreadLastToken'}"} |
|
fbg_clear | a5e86073c100148569b977a9da309b1b428cd0b5d9d1279452bf16ba74396409 | grz0zrg | fbg | NA | void fbg_clear(struct _fbg *fbg, unsigned char color) {
memset(fbg->back_buffer, color, fbg->size);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_430726", "function_addr": 4392742, "binary_name": "a5e86073c100148569b977a9da309b1b428cd0b5d9d1279452bf16ba74396409.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, esi"], [5, "mov [rbp+var_C], al"], [6, "mov rax, [rbp+var_8]"], [7, "mov eax, [rax]"], [8, "movsxd rdx, eax"], [9, "movzx ecx, [rbp+var_C]"], [10, "mov rax, [rbp+var_8]"], [11, "mov rax, [rax+10h]"], [12, "mov esi, ecx"], [13, "mov rdi, rax"], [14, "call _memset"], [15, "nop"], [16, "leave"], [17, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 6], [8, 7], [9, 5], [10, 3], [11, 10], [12, 9], [13, 11], [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/a5e86073c100148569b977a9da309b1b428cd0b5d9d1279452bf16ba74396409_a5e86073c100148569b977a9da309b1b428cd0b5d9d1279452bf16ba74396409.jsonl.gz", "strip_func_name": "sub_430726", "query": "\n\n\nvoid *__fastcall sub_430726(void **a1, unsigned __int8 a2)\n{\nreturn memset(a1[2], a2, *(int *)a1);\n}\n\n\n\nQ:[a1,a2,sub_430726,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fbg', 'a2': 'color', 'sub_430726': 'fbg_clear'}"} |
|
seq_char2nt6 | 2ceee776f3ad6c2f35b8f97c7cfeff38c006848a306dfa92217fdebcf0ec093f | lh3 | fermi2 | NA | void seq_char2nt6(int l, unsigned char *s)
{
int i;
for (i = 0; i < l; ++i)
s[i] = s[i] < 128? seq_nt6_table[s[i]] : 5;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_415B9F", "function_addr": 4283295, "binary_name": "2ceee776f3ad6c2f35b8f97c7cfeff38c006848a306dfa92217fdebcf0ec093f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_14], edi"], [3, "mov [rbp+var_20], rsi"], [4, "mov [rbp+var_4], 0"], [5, "jmp short loc_415BFD"], [6, "mov eax, [rbp+var_4]"], [7, "movsxd rdx, eax"], [8, "mov rax, [rbp+var_20]"], [9, "add rax, rdx"], [10, "movzx eax, byte ptr [rax]"], [11, "test al, al"], [12, "js short loc_415BE5"], [13, "mov eax, [rbp+var_4]"], [14, "movsxd rdx, eax"], [15, "mov rax, [rbp+var_20]"], [16, "add rax, rdx"], [17, "movzx eax, byte ptr [rax]"], [18, "movzx eax, al"], [19, "cdqe"], [20, "movzx eax, byte_435200[rax]"], [21, "jmp short loc_415BEA"], [22, "mov eax, 5"], [23, "mov edx, [rbp+var_4]"], [24, "movsxd rcx, edx"], [25, "mov rdx, [rbp+var_20]"], [26, "add rdx, rcx"], [27, "mov [rdx], al"], [28, "add [rbp+var_4], 1"], [29, "mov eax, [rbp+var_4]"], [30, "cmp eax, [rbp+var_14]"], [31, "jl short loc_415BB3"], [32, "nop"], [33, "nop"], [34, "pop rbp"], [35, "retn"]], "data_dep": [[6, 4], [6, 28], [7, 6], [8, 3], [9, 8], [9, 7], [10, 9], [10, 27], [11, 10], [12, 11], [13, 4], [13, 28], [14, 13], [15, 3], [16, 15], [16, 14], [17, 27], [17, 16], [18, 17], [23, 4], [23, 28], [24, 23], [25, 3], [26, 24], [26, 25], [27, 22], [27, 20], [27, 26], [28, 4], [28, 28], [29, 4], [29, 28], [30, 2], [30, 29], [31, 30], [34, 0], [35, 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/2ceee776f3ad6c2f35b8f97c7cfeff38c006848a306dfa92217fdebcf0ec093f_2ceee776f3ad6c2f35b8f97c7cfeff38c006848a306dfa92217fdebcf0ec093f.jsonl.gz", "strip_func_name": "sub_415B9F", "query": "\n\n\n__int64 __fastcall sub_415B9F(int a1, __int64 a2)\n{\nchar v2; // al\n__int64 result; // rax\nunsigned int i; // [rsp+1Ch] [rbp-4h]\n\nfor ( i = 0; ; ++i )\n{\nresult = i;\nif ( (int)i >= a1 )\nbreak;\nif ( *(char *)((int)i + a2) < 0 )\nv2 = 5;\nelse\nv2 = byte_435200[*(unsigned __int8 *)((int)i + a2)];\n*(_BYTE *)((int)i + a2) = v2;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_415B9F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'l', 'a2': 's', 'sub_415B9F': 'seq_char2nt6'}"} |
|
keywordCompare2 | 83572505cb19b8a809bc14c11936c71e793022a1dc0f1cc03dee5047c4e3db87 | NiLuJe | kfmon | NA | static int keywordCompare2(const void *a, const void *b){
const Keyword *pA = (Keyword*)a;
const Keyword *pB = (Keyword*)b;
int n = pB->longestSuffix - pA->longestSuffix;
if( n==0 ){
n = strcmp(pA->zName, pB->zName);
}
assert( n!=0 );
return n;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40121D", "function_addr": 4198941, "binary_name": "83572505cb19b8a809bc14c11936c71e793022a1dc0f1cc03dee5047c4e3db87.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rax, [rbp+var_28]"], [6, "mov [rbp+var_10], rax"], [7, "mov rax, [rbp+var_30]"], [8, "mov [rbp+var_18], rax"], [9, "mov rax, [rbp+var_18]"], [10, "mov edx, [rax+2Ch]"], [11, "mov rax, [rbp+var_10]"], [12, "mov ecx, [rax+2Ch]"], [13, "mov eax, edx"], [14, "sub eax, ecx"], [15, "mov [rbp+var_4], eax"], [16, "cmp [rbp+var_4], 0"], [17, "jnz short loc_401274"], [18, "mov rax, [rbp+var_18]"], [19, "mov rdx, [rax]"], [20, "mov rax, [rbp+var_10]"], [21, "mov rax, [rax]"], [22, "mov rsi, rdx"], [23, "mov rdi, rax"], [24, "call _strcmp"], [25, "mov [rbp+var_4], eax"], [26, "cmp [rbp+var_4], 0"], [27, "jnz short loc_401293"], [28, "mov ecx, offset aKeywordcompare_0"], [29, "mov edx, 15Fh"], [30, "mov esi, offset file"], [31, "mov edi, offset assertion"], [32, "call ___assert_fail"], [33, "mov eax, [rbp+var_4]"], [34, "leave"], [35, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 4], [8, 7], [9, 8], [10, 9], [11, 6], [12, 11], [13, 10], [14, 13], [14, 12], [15, 14], [16, 15], [17, 16], [18, 8], [19, 18], [20, 6], [21, 20], [22, 19], [23, 21], [25, 24], [26, 25], [26, 15], [27, 26], [33, 25], [33, 15], [35, 33]]}
| {"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/83572505cb19b8a809bc14c11936c71e793022a1dc0f1cc03dee5047c4e3db87_83572505cb19b8a809bc14c11936c71e793022a1dc0f1cc03dee5047c4e3db87.jsonl.gz", "strip_func_name": "sub_40121D", "query": "\n\n\n__int64 __fastcall sub_40121D(const void *a1, const void *a2)\n{\nunsigned int v3; // [rsp+2Ch] [rbp-4h]\n\nv3 = *((_DWORD *)a2 + 11) - *((_DWORD *)a1 + 11);\nif ( !v3 )\nv3 = strcmp(*(const char **)a1, *(const char **)a2);\nif ( !v3 )\n__assert_fail(\"n!=0\", \"/usr/src/repo/SQLiteBuild/../sqlite/tool/mkkeywordhash.c\", 0x15Fu, \"keywordCompare2\");\nreturn v3;\n}\n\n\n\nQ:[a1,a2,v3,sub_40121D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'a', 'a2': 'b', 'v3': 'n', 'sub_40121D': 'keywordCompare2'}"} |
|
grp_lock_acquire | a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8 | AonCyberLabs | D-Modem | NA | static pj_status_t grp_lock_acquire(LOCK_OBJ *p)
{
pj_grp_lock_t *glock = (pj_grp_lock_t*)p;
grp_lock_item *lck;
pj_assert(pj_atomic_get(glock->ref_cnt) > 0);
lck = glock->lock_list.next;
while (lck != &glock->lock_list) {
pj_lock_acquire(lck->lock);
lck = lck->next;
}
grp_lock_set_owner_thread(glock);
pj_grp_lock_add_ref(glock);
return PJ_SUCCESS;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_47B632", "function_addr": 4699698, "binary_name": "a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8.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_10], rax"], [6, "mov rax, [rbp+var_10]"], [7, "mov rax, [rax+30h]"], [8, "mov rdi, rax"], [9, "call sub_47411E"], [10, "test rax, rax"], [11, "jg short loc_47B674"], [12, "mov ecx, offset aGrpLockAcquire"], [13, "mov edx, 11Eh"], [14, "mov esi, offset aSrcPjLockC"], [15, "mov edi, offset aPjAtomicGetGlo"], [16, "call ___assert_fail"], [17, "mov rax, [rbp+var_10]"], [18, "mov rax, [rax+58h]"], [19, "mov [rbp+var_8], rax"], [20, "jmp short loc_47B69E"], [21, "mov rax, [rbp+var_8]"], [22, "mov rax, [rax+18h]"], [23, "mov rdi, rax"], [24, "call sub_47B3C5"], [25, "mov rax, [rbp+var_8]"], [26, "mov rax, [rax+8]"], [27, "mov [rbp+var_8], rax"], [28, "mov rax, [rbp+var_10]"], [29, "add rax, 50h "], [30, "cmp [rbp+var_8], rax"], [31, "jnz short loc_47B682"], [32, "mov rax, [rbp+var_10]"], [33, "mov rdi, rax"], [34, "call sub_47B525"], [35, "mov rax, [rbp+var_10]"], [36, "mov rdi, rax"], [37, "call sub_47BE44"], [38, "mov eax, 0"], [39, "leave"], [40, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [10, 9], [11, 10], [17, 5], [18, 17], [19, 18], [21, 19], [21, 27], [22, 21], [23, 22], [25, 19], [25, 27], [26, 25], [27, 26], [28, 5], [29, 28], [30, 27], [30, 29], [30, 19], [31, 30], [32, 5], [33, 32], [35, 5], [36, 35], [40, 38]]}
| {"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/a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8_a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8.jsonl.gz", "strip_func_name": "sub_47B632", "query": "\n\n\n__int64 __fastcall sub_47B632(__int64 a1)\n{\n__int64 i; // [rsp+18h] [rbp-8h]\n\nif ( sub_47411E(*(_QWORD **)(a1 + 48)) <= 0 )\n__assert_fail(\"pj_atomic_get(glock->ref_cnt) > 0\", \"../src/pj/lock.c\", 0x11Eu, \"grp_lock_acquire\");\nfor ( i = *(_QWORD *)(a1 + 88); i != a1 + 80; i = *(_QWORD *)(i + 8) )\nsub_47B3C5(*(_QWORD *)(i + 24));\nsub_47B525(a1);\nsub_47BE44(a1);\nreturn 0LL;\n}\n\n\n\nQ:[a1,i,sub_47B632,sub_47411E,sub_47B3C5,sub_47B525,sub_47BE44,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'p', 'i': 'lck', 'sub_47B632': 'grp_lock_acquire', 'sub_47411E': 'pj_atomic_get', 'sub_47B3C5': 'pj_lock_acquire', 'sub_47B525': 'grp_lock_set_owner_thread', 'sub_47BE44': 'pj_grp_lock_add_ref'}"} |
|
write_read | ed6dcd459b2ecf6efef41c6c2c7c4fcfc3ec75f2c73babad3bd73334d17e31c8 | OpenRTX | dmrconfig | NA | static int write_read(const unsigned char *data, unsigned length, unsigned char *reply, unsigned rlength)
{
if (! transfer) {
// Allocate transfer descriptor on first invocation.
transfer = libusb_alloc_transfer(0);
}
libusb_fill_interrupt_transfer(transfer, dev,
LIBUSB_RECIPIENT_INTERFACE|LIBUSB_ENDPOINT_IN,
reply, rlength, read_callback, 0, TIMEOUT_MSEC);
again:
nbytes_received = 0;
libusb_submit_transfer(transfer);
int result = libusb_control_transfer(dev,
LIBUSB_REQUEST_TYPE_CLASS|LIBUSB_RECIPIENT_INTERFACE|LIBUSB_ENDPOINT_OUT,
0x09/*HID Set_Report*/, (2/*HID output*/ << 8) | 0,
HID_INTERFACE, (unsigned char*)data, length, TIMEOUT_MSEC);
if (result < 0) {
fprintf(stderr, "Error %d transmitting data via control transfer: %s\n",
result, libusb_strerror(result));
libusb_cancel_transfer(transfer);
return -1;
}
while (nbytes_received == 0) {
result = libusb_handle_events(ctx);
if (result < 0) {
/* Break out of this loop only on fatal error.*/
if (result != LIBUSB_ERROR_BUSY &&
result != LIBUSB_ERROR_TIMEOUT &&
result != LIBUSB_ERROR_OVERFLOW &&
result != LIBUSB_ERROR_INTERRUPTED) {
fprintf(stderr, "Error %d receiving data via interrupt transfer: %s\n",
result, libusb_strerror(result));
return result;
}
}
}
if (nbytes_received == LIBUSB_ERROR_TIMEOUT) {
if (trace_flag > 0) {
fprintf(stderr, "No response from HID device!\n");
}
goto again;
}
return nbytes_received;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_429FE3", "function_addr": 4366307, "binary_name": "ed6dcd459b2ecf6efef41c6c2c7c4fcfc3ec75f2c73babad3bd73334d17e31c8.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_20], ecx"], [7, "mov rax, cs:qword_64EF70"], [8, "test rax, rax"], [9, "jnz short loc_42A016"], [10, "mov edi, 0"], [11, "call sub_42F100"], [12, "mov cs:qword_64EF70, rax"], [13, "mov ecx, [rbp+var_20]"], [14, "mov rsi, cs:qword_64EF68"], [15, "mov rax, cs:qword_64EF70"], [16, "mov rdx, [rbp+var_28]"], [17, "push 1F4h"], [18, "push 0"], [19, "mov r9d, offset sub_429F53"], [20, "mov r8d, ecx"], [21, "mov rcx, rdx"], [22, "mov edx, 81h"], [23, "mov rdi, rax"], [24, "call sub_429EDD"], [25, "add rsp, 10h"], [26, "mov cs:dword_64EFAC, 0"], [27, "mov rax, cs:qword_64EF70"], [28, "mov rdi, rax"], [29, "call sub_42F1A0"], [30, "mov eax, [rbp+var_1C]"], [31, "movzx edx, ax"], [32, "mov rax, cs:qword_64EF68"], [33, "mov rcx, [rbp+var_18]"], [34, "push 1F4h"], [35, "push rdx"], [36, "mov r9, rcx"], [37, "mov r8d, 0"], [38, "mov ecx, 200h"], [39, "mov edx, 9"], [40, "mov esi, 21h "], [41, "mov rdi, rax"], [42, "call sub_431660"], [43, "add rsp, 10h"], [44, "mov [rbp+var_4], eax"], [45, "cmp [rbp+var_4], 0"], [46, "jns loc_42A150"], [47, "mov eax, [rbp+var_4]"], [48, "mov edi, eax"], [49, "call sub_4313A0"], [50, "mov rcx, rax"], [51, "mov rax, cs:stderr"], [52, "mov edx, [rbp+var_4]"], [53, "mov esi, offset aErrorDTransmit"], [54, "mov rdi, rax"], [55, "mov eax, 0"], [56, "call _fprintf"], [57, "mov rax, cs:qword_64EF70"], [58, "mov rdi, rax"], [59, "call sub_42F610"], [60, "mov eax, 0FFFFFFFFh"], [61, "jmp locret_42A19C"], [62, "mov rax, cs:qword_64EF60"], [63, "mov rdi, rax"], [64, "call sub_430AE0"], [65, "mov [rbp+var_4], eax"], [66, "cmp [rbp+var_4], 0"], [67, "jns short loc_42A150"], [68, "cmp [rbp+var_4], 0FFFFFFFAh"], [69, "jz short loc_42A150"], [70, "cmp [rbp+var_4], 0FFFFFFF9h"], [71, "jz short loc_42A150"], [72, "cmp [rbp+var_4], 0FFFFFFF8h"], [73, "jz short loc_42A150"], [74, "cmp [rbp+var_4], 0FFFFFFF6h"], [75, "jz short loc_42A150"], [76, "mov eax, [rbp+var_4]"], [77, "mov edi, eax"], [78, "call sub_4313A0"], [79, "mov rcx, rax"], [80, "mov rax, cs:stderr"], [81, "mov edx, [rbp+var_4]"], [82, "mov esi, offset aErrorDReceivin"], [83, "mov rdi, rax"], [84, "mov eax, 0"], [85, "call _fprintf"], [86, "mov eax, [rbp+var_4]"], [87, "jmp short locret_42A19C"], [88, "mov eax, cs:dword_64EFAC"], [89, "test eax, eax"], [90, "jz short loc_42A0F2"], [91, "mov eax, cs:dword_64EFAC"], [92, "cmp eax, 0FFFFFFF9h"], [93, "jnz short loc_42A196"], [94, "mov eax, cs:dword_44EBF8"], [95, "test eax, eax"], [96, "jle loc_42A04F"], [97, "mov rax, cs:stderr"], [98, "mov rcx, rax"], [99, "mov edx, 1Dh"], [100, "mov esi, 1"], [101, "mov edi, offset aNoResponseFrom"], [102, "call _fwrite"], [103, "jmp loc_42A04F"], [104, "mov eax, cs:dword_64EFAC"], [105, "leave"], [106, "retn"]], "data_dep": [[8, 7], [9, 8], [12, 11], [13, 6], [15, 12], [16, 5], [20, 13], [21, 16], [23, 15], [25, 2], [27, 12], [28, 27], [30, 4], [31, 30], [33, 3], [35, 31], [36, 33], [41, 32], [43, 43], [43, 25], [44, 42], [45, 44], [46, 45], [47, 44], [48, 47], [50, 49], [52, 44], [54, 51], [57, 12], [58, 57], [63, 62], [65, 64], [66, 65], [67, 66], [68, 65], [69, 68], [70, 65], [71, 70], [72, 65], [73, 72], [74, 65], [75, 74], [76, 65], [77, 76], [79, 78], [81, 65], [83, 80], [86, 65], [88, 26], [89, 88], [90, 89], [91, 26], [92, 91], [93, 92], [95, 94], [96, 95], [98, 97], [104, 26], [106, 86], [106, 104], [106, 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/ed6dcd459b2ecf6efef41c6c2c7c4fcfc3ec75f2c73babad3bd73334d17e31c8_ed6dcd459b2ecf6efef41c6c2c7c4fcfc3ec75f2c73babad3bd73334d17e31c8.jsonl.gz", "strip_func_name": "sub_429FE3", "query": "\n\n\n__int64 __fastcall sub_429FE3(int a1, unsigned __int16 a2, __int64 a3, int a4)\n{\nconst char *v4; // rax\nconst char *v6; // rax\nint v9; // [rsp+2Ch] [rbp-4h]\nunsigned int v10; // [rsp+2Ch] [rbp-4h]\n\nif ( !qword_64EF70 )\nqword_64EF70 = sub_42F100(0LL);\nsub_429EDD(qword_64EF70, (__int64)qword_64EF68, 129, a3, a4, (__int64)sub_429F53, 0LL, 500);\nwhile ( 1 )\n{\ndword_64EFAC = 0;\nsub_42F1A0(qword_64EF70);\nv9 = sub_431660((_DWORD)qword_64EF68, 33, 9, 512, 0, a1, a2, 500);\nif ( v9 < 0 )\n{\nv4 = (const char *)sub_4313A0((unsigned int)v9);\nfprintf(stderr, \"Error %d transmitting data via control transfer: %s\\n\", (unsigned int)v9, v4);\nsub_42F610(qword_64EF70);\nreturn 0xFFFFFFFFLL;\n}\nwhile ( !dword_64EFAC )\n{\nv10 = sub_430AE0(qword_64EF60);\nif ( (v10 & 0x80000000) != 0 && v10 != -6 && v10 != -7 && v10 != -8 && v10 != -10 )\n{\nv6 = (const char *)sub_4313A0(v10);\nfprintf(stderr, \"Error %d receiving data via interrupt transfer: %s\\n\", v10, v6);\nreturn v10;\n}\n}\nif ( dword_64EFAC != -7 )\nbreak;\nif ( dword_44EBF8 > 0 )\nfwrite(\"No response from HID device!\\n\", 1uLL, 0x1DuLL, stderr);\n}\nreturn (unsigned int)dword_64EFAC;\n}\n\n\n\nQ:[a3,a4,a1,a2,v10,sub_429FE3,sub_42F100,sub_429EDD,sub_429F53,sub_42F1A0,sub_431660,sub_4313A0,sub_42F610,sub_430AE0,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'reply', 'a4': 'rlength', 'a1': 'data', 'a2': 'length', 'v10': 'resulta', 'sub_429FE3': 'write_read', 'sub_42F100': 'libusb_alloc_transfer', 'sub_429EDD': 'libusb_fill_interrupt_transfer', 'sub_429F53': 'read_callback', 'sub_42F1A0': 'libusb_submit_transfer', 'sub_431660': 'libusb_control_transfer', 'sub_4313A0': 'libusb_strerror', 'sub_42F610': 'libusb_cancel_transfer', 'sub_430AE0': 'libusb_handle_events'}"} |
|
fio_client_sum_jobs_eta | da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b | axboe | fio | NA | void fio_client_sum_jobs_eta(struct jobs_eta *dst, struct jobs_eta *je)
{
int i;
dst->nr_running += je->nr_running;
dst->nr_ramp += je->nr_ramp;
dst->nr_pending += je->nr_pending;
dst->nr_setting_up += je->nr_setting_up;
dst->files_open += je->files_open;
for (i = 0; i < DDIR_RWDIR_CNT; i++) {
dst->m_rate[i] += je->m_rate[i];
dst->t_rate[i] += je->t_rate[i];
dst->m_iops[i] += je->m_iops[i];
dst->t_iops[i] += je->t_iops[i];
dst->rate[i] += je->rate[i];
dst->iops[i] += je->iops[i];
}
dst->elapsed_sec += je->elapsed_sec;
if (je->eta_sec > dst->eta_sec)
dst->eta_sec = je->eta_sec;
dst->nr_threads += je->nr_threads;
/*
* This wont be correct for multiple strings, but at least it
* works for the basic cases.
*/
strcpy((char *) dst->run_str, (char *) je->run_str);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "fio_client_sum_jobs_eta", "function_addr": 4679007, "binary_name": "da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_18]"], [6, "mov edx, [rax]"], [7, "mov rax, [rbp+var_20]"], [8, "mov eax, [rax]"], [9, "add edx, eax"], [10, "mov rax, [rbp+var_18]"], [11, "mov [rax], edx"], [12, "mov rax, [rbp+var_18]"], [13, "mov edx, [rax+4]"], [14, "mov rax, [rbp+var_20]"], [15, "mov eax, [rax+4]"], [16, "add edx, eax"], [17, "mov rax, [rbp+var_18]"], [18, "mov [rax+4], edx"], [19, "mov rax, [rbp+var_18]"], [20, "mov edx, [rax+8]"], [21, "mov rax, [rbp+var_20]"], [22, "mov eax, [rax+8]"], [23, "add edx, eax"], [24, "mov rax, [rbp+var_18]"], [25, "mov [rax+8], edx"], [26, "mov rax, [rbp+var_18]"], [27, "mov edx, [rax+0Ch]"], [28, "mov rax, [rbp+var_20]"], [29, "mov eax, [rax+0Ch]"], [30, "add edx, eax"], [31, "mov rax, [rbp+var_18]"], [32, "mov [rax+0Ch], edx"], [33, "mov rax, [rbp+var_18]"], [34, "mov edx, [rax+9Ch]"], [35, "mov rax, [rbp+var_20]"], [36, "mov eax, [rax+9Ch]"], [37, "add edx, eax"], [38, "mov rax, [rbp+var_18]"], [39, "mov [rax+9Ch], edx"], [40, "mov [rbp+var_4], 0"], [41, "jmp loc_47674B"], [42, "mov rax, [rbp+var_18]"], [43, "mov edx, [rbp+var_4]"], [44, "movsxd rdx, edx"], [45, "add rdx, 2"], [46, "mov rcx, [rax+rdx*8]"], [47, "mov rax, [rbp+var_20]"], [48, "mov edx, [rbp+var_4]"], [49, "movsxd rdx, edx"], [50, "add rdx, 2"], [51, "mov rax, [rax+rdx*8]"], [52, "add rcx, rax"], [53, "mov rax, [rbp+var_18]"], [54, "mov edx, [rbp+var_4]"], [55, "movsxd rdx, edx"], [56, "add rdx, 2"], [57, "mov [rax+rdx*8], rcx"], [58, "mov rax, [rbp+var_18]"], [59, "mov edx, [rbp+var_4]"], [60, "movsxd rdx, edx"], [61, "add rdx, 4"], [62, "mov rcx, [rax+rdx*8+8]"], [63, "mov rax, [rbp+var_20]"], [64, "mov edx, [rbp+var_4]"], [65, "movsxd rdx, edx"], [66, "add rdx, 4"], [67, "mov rax, [rax+rdx*8+8]"], [68, "add rcx, rax"], [69, "mov rax, [rbp+var_18]"], [70, "mov edx, [rbp+var_4]"], [71, "movsxd rdx, edx"], [72, "add rdx, 4"], [73, "mov [rax+rdx*8+8], rcx"], [74, "mov rax, [rbp+var_18]"], [75, "mov edx, [rbp+var_4]"], [76, "movsxd rdx, edx"], [77, "add rdx, 14h"], [78, "mov ecx, [rax+rdx*4+8]"], [79, "mov rax, [rbp+var_20]"], [80, "mov edx, [rbp+var_4]"], [81, "movsxd rdx, edx"], [82, "add rdx, 14h"], [83, "mov eax, [rax+rdx*4+8]"], [84, "add ecx, eax"], [85, "mov rax, [rbp+var_18]"], [86, "mov edx, [rbp+var_4]"], [87, "movsxd rdx, edx"], [88, "add rdx, 14h"], [89, "mov [rax+rdx*4+8], ecx"], [90, "mov rax, [rbp+var_18]"], [91, "mov edx, [rbp+var_4]"], [92, "movsxd rdx, edx"], [93, "add rdx, 18h"], [94, "mov ecx, [rax+rdx*4+4]"], [95, "mov rax, [rbp+var_20]"], [96, "mov edx, [rbp+var_4]"], [97, "movsxd rdx, edx"], [98, "add rdx, 18h"], [99, "mov eax, [rax+rdx*4+4]"], [100, "add ecx, eax"], [101, "mov rax, [rbp+var_18]"], [102, "mov edx, [rbp+var_4]"], [103, "movsxd rdx, edx"], [104, "add rdx, 18h"], [105, "mov [rax+rdx*4+4], ecx"], [106, "mov rax, [rbp+var_18]"], [107, "mov edx, [rbp+var_4]"], [108, "movsxd rdx, edx"], [109, "add rdx, 8"], [110, "mov rcx, [rax+rdx*8]"], [111, "mov rax, [rbp+var_20]"], [112, "mov edx, [rbp+var_4]"], [113, "movsxd rdx, edx"], [114, "add rdx, 8"], [115, "mov rax, [rax+rdx*8]"], [116, "add rcx, rax"], [117, "mov rax, [rbp+var_18]"], [118, "mov edx, [rbp+var_4]"], [119, "movsxd rdx, edx"], [120, "add rdx, 8"], [121, "mov [rax+rdx*8], rcx"], [122, "mov rax, [rbp+var_18]"], [123, "mov edx, [rbp+var_4]"], [124, "movsxd rdx, edx"], [125, "add rdx, 1Ch"], [126, "mov ecx, [rax+rdx*4]"], [127, "mov rax, [rbp+var_20]"], [128, "mov edx, [rbp+var_4]"], [129, "movsxd rdx, edx"], [130, "add rdx, 1Ch"], [131, "mov eax, [rax+rdx*4]"], [132, "add ecx, eax"], [133, "mov rax, [rbp+var_18]"], [134, "mov edx, [rbp+var_4]"], [135, "movsxd rdx, edx"], [136, "add rdx, 1Ch"], [137, "mov [rax+rdx*4], ecx"], [138, "add [rbp+var_4], 1"], [139, "cmp [rbp+var_4], 2"], [140, "jle loc_4765F4"], [141, "mov rax, [rbp+var_18]"], [142, "mov rdx, [rax+80h]"], [143, "mov rax, [rbp+var_20]"], [144, "mov rax, [rax+80h]"], [145, "add rdx, rax"], [146, "mov rax, [rbp+var_18]"], [147, "mov [rax+80h], rdx"], [148, "mov rax, [rbp+var_20]"], [149, "mov rdx, [rax+88h]"], [150, "mov rax, [rbp+var_18]"], [151, "mov rax, [rax+88h]"], [152, "cmp rdx, rax"], [153, "jbe short loc_4767AA"], [154, "mov rax, [rbp+var_20]"], [155, "mov rdx, [rax+88h]"], [156, "mov rax, [rbp+var_18]"], [157, "mov [rax+88h], rdx"], [158, "mov rax, [rbp+var_18]"], [159, "mov edx, [rax+0A0h]"], [160, "mov rax, [rbp+var_20]"], [161, "mov eax, [rax+0A0h]"], [162, "add edx, eax"], [163, "mov rax, [rbp+var_18]"], [164, "mov [rax+0A0h], edx"], [165, "mov rax, [rbp+var_20]"], [166, "lea rdx, [rax+0A8h]"], [167, "mov rax, [rbp+var_18]"], [168, "add rax, 0A8h"], [169, "mov rsi, rdx"], [170, "mov rdi, rax"], [171, "call _strcpy"], [172, "nop"], [173, "leave"], [174, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 4], [8, 7], [9, 6], [9, 8], [10, 3], [11, 9], [11, 10], [12, 3], [13, 12], [13, 11], [14, 4], [15, 11], [15, 14], [16, 13], [16, 15], [17, 3], [18, 17], [18, 16], [19, 3], [20, 19], [20, 18], [21, 4], [22, 18], [22, 21], [23, 20], [23, 22], [24, 3], [25, 24], [25, 23], [26, 3], [27, 26], [27, 25], [28, 4], [29, 25], [29, 28], [30, 27], [30, 29], [31, 3], [32, 31], [32, 30], [33, 3], [34, 33], [34, 32], [35, 4], [36, 32], [36, 35], [37, 34], [37, 36], [38, 3], [39, 38], [39, 37], [42, 3], [43, 40], [43, 138], [44, 43], [45, 44], [46, 121], [46, 73], [46, 39], [46, 25], [46, 137], [46, 11], [46, 105], [46, 89], [46, 57], [46, 42], [46, 32], [46, 18], [47, 4], [48, 40], [48, 138], [49, 48], [50, 49], [51, 105], [51, 73], [51, 39], [51, 25], [51, 137], [51, 11], [51, 89], [51, 57], [51, 47], [51, 32], [51, 18], [51, 121], [52, 51], [52, 46], [53, 3], [54, 40], [54, 138], [55, 54], [56, 55], [57, 53], [57, 52], [58, 3], [59, 40], [59, 138], [60, 59], [61, 60], [62, 73], [62, 58], [62, 57], [63, 4], [64, 40], [64, 138], [65, 64], [66, 65], [67, 63], [67, 57], [67, 73], [68, 67], [68, 62], [69, 3], [70, 40], [70, 138], [71, 70], [72, 71], [73, 69], [73, 68], [74, 3], [75, 138], [75, 40], [76, 75], [77, 76], [78, 89], [78, 74], [78, 73], [79, 4], [80, 138], [80, 40], [81, 80], [82, 81], [83, 89], [83, 79], [83, 73], [84, 83], [84, 78], [85, 3], [86, 40], [86, 138], [87, 86], [88, 87], [89, 85], [89, 84], [90, 3], [91, 138], [91, 40], [92, 91], [93, 92], [94, 90], [94, 89], [94, 105], [95, 4], [96, 138], [96, 40], [97, 96], [98, 97], [99, 95], [99, 89], [99, 105], [100, 99], [100, 94], [101, 3], [102, 138], [102, 40], [103, 102], [104, 103], [105, 100], [105, 101], [106, 3], [107, 138], [107, 40], [108, 107], [109, 108], [110, 106], [110, 105], [110, 57], [111, 4], [112, 138], [112, 40], [113, 112], [114, 113], [115, 57], [115, 111], [115, 105], [116, 115], [116, 110], [117, 3], [118, 138], [118, 40], [119, 118], [120, 119], [121, 117], [121, 116], [122, 3], [123, 138], [123, 40], [124, 123], [125, 124], [126, 121], [126, 137], [126, 122], [127, 4], [128, 138], [128, 40], [129, 128], [130, 129], [131, 137], [131, 127], [131, 121], [132, 131], [132, 126], [133, 3], [134, 40], [134, 138], [135, 134], [136, 135], [137, 133], [137, 132], [138, 40], [138, 138], [139, 138], [139, 40], [140, 139], [141, 3], [142, 89], [142, 57], [142, 32], [142, 18], [142, 121], [142, 105], [142, 73], [142, 147], [142, 39], [142, 25], [142, 137], [142, 11], [142, 141], [143, 4], [144, 143], [144, 105], [144, 73], [144, 147], [144, 39], [144, 25], [144, 137], [144, 11], [144, 89], [144, 57], [144, 32], [144, 18], [144, 121], [145, 144], [145, 142], [146, 3], [147, 146], [147, 145], [148, 4], [149, 147], [149, 148], [150, 3], [151, 150], [151, 147], [152, 151], [152, 149], [153, 152], [154, 4], [155, 32], [155, 18], [155, 157], [155, 105], [155, 73], [155, 147], [155, 39], [155, 25], [155, 137], [155, 11], [155, 121], [155, 89], [155, 57], [155, 154], [156, 3], [157, 156], [157, 155], [158, 3], [159, 25], [159, 137], [159, 164], [159, 11], [159, 89], [159, 57], [159, 158], [159, 32], [159, 18], [159, 121], [159, 157], [159, 105], [159, 73], [159, 147], [159, 39], [160, 4], [161, 32], [161, 18], [161, 157], [161, 147], [161, 105], [161, 73], [161, 39], [161, 57], [161, 160], [161, 25], [161, 137], [161, 164], [161, 11], [161, 121], [161, 89], [162, 161], [162, 159], [163, 3], [164, 163], [164, 162], [165, 4], [166, 162], [166, 165], [166, 164], [167, 3], [168, 167], [169, 166], [170, 168], [174, 171]]}
| {"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/da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b_da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b.jsonl.gz", "strip_func_name": "fio_client_sum_jobs_eta", "query": "\n\n\nchar *__fastcall fio_client_sum_jobs_eta(__int64 a1, __int64 a2)\n{\nint i; // [rsp+1Ch] [rbp-4h]\n\n*(_DWORD *)a1 += *(_DWORD *)a2;\n*(_DWORD *)(a1 + 4) += *(_DWORD *)(a2 + 4);\n*(_DWORD *)(a1 + 8) += *(_DWORD *)(a2 + 8);\n*(_DWORD *)(a1 + 12) += *(_DWORD *)(a2 + 12);\n*(_DWORD *)(a1 + 156) += *(_DWORD *)(a2 + 156);\nfor ( i = 0; i <= 2; ++i )\n{\n*(_QWORD *)(a1 + 8 * (i + 2LL)) += *(_QWORD *)(a2 + 8 * (i + 2LL));\n*(_QWORD *)(a1 + 8 * (i + 4LL) + 8) += *(_QWORD *)(a2 + 8 * (i + 4LL) + 8);\n*(_DWORD *)(a1 + 4 * (i + 20LL) + 8) += *(_DWORD *)(a2 + 4 * (i + 20LL) + 8);\n*(_DWORD *)(a1 + 4 * (i + 24LL) + 4) += *(_DWORD *)(a2 + 4 * (i + 24LL) + 4);\n*(_QWORD *)(a1 + 8 * (i + 8LL)) += *(_QWORD *)(a2 + 8 * (i + 8LL));\n*(_DWORD *)(a1 + 4 * (i + 28LL)) += *(_DWORD *)(a2 + 4 * (i + 28LL));\n}\n*(_QWORD *)(a1 + 128) += *(_QWORD *)(a2 + 128);\nif ( *(_QWORD *)(a2 + 136) > *(_QWORD *)(a1 + 136) )\n*(_QWORD *)(a1 + 136) = *(_QWORD *)(a2 + 136);\n*(_DWORD *)(a1 + 160) += *(_DWORD *)(a2 + 160);\nreturn strcpy((char *)(a1 + 168), (const char *)(a2 + 168));\n}\n\n\n\nQ:[a1,a2,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dst', 'a2': 'je'}"} |
|
main | 0135b64b53c9b1ad53e1857338cd537508c222fe9ac94ce7e1d4697fd751d1e2 | raysan5 | raylib | NA | int main(int argc, char* argv[])
{
if (argc > 1) ProcessCommandLine(argc, argv);
if (inFileName[0] == '\0') MemoryCopy(inFileName, "../src/raylib.h\0", 16);
if (outFileName[0] == '\0') MemoryCopy(outFileName, "raylib_api.txt\0", 15);
if (apiDefine[0] == '\0') MemoryCopy(apiDefine, "RLAPI\0", 6);
int length = 0;
char *buffer = LoadFileText(inFileName, &length);
if (buffer == NULL)
{
printf("Could not read input file: %s\n", inFileName);
return 1;
}
// Preprocess buffer to get separate lines
// NOTE: GetTextLines() also removes leading spaces/tabs
int linesCount = 0;
char **lines = GetTextLines(buffer, length, &linesCount);
// Truncate lines
if (truncAfter[0] != '\0')
{
int newCount = -1;
for (int i = 0; i < linesCount; i++)
{
if (newCount > -1) free(lines[i]);
else if (TextFindIndex(lines[i], truncAfter) > -1) newCount = i;
}
if (newCount > -1) linesCount = newCount;
printf("Number of truncated text lines: %i\n", linesCount);
}
// Defines line indices
int *defineLines = (int *)malloc(MAX_DEFINES_TO_PARSE*sizeof(int));
// Structs line indices
int *structLines = (int *)malloc(MAX_STRUCTS_TO_PARSE*sizeof(int));
// Aliases line indices
int *aliasLines = (int *)malloc(MAX_ALIASES_TO_PARSE*sizeof(int));
// Enums line indices
int *enumLines = (int *)malloc(MAX_ENUMS_TO_PARSE*sizeof(int));
// Callbacks line indices
int *callbackLines = (int *)malloc(MAX_CALLBACKS_TO_PARSE*sizeof(int));
// Function line indices
int *funcLines = (int *)malloc(MAX_FUNCS_TO_PARSE*sizeof(int));
// Prepare required lines for parsing
//----------------------------------------------------------------------------------
// Read define lines
for (int i = 0; i < linesCount; i++)
{
int j = 0;
while ((lines[i][j] == ' ') || (lines[i][j] == '\t')) j++; // skip spaces and tabs in the begining
// Read define line
if (IsTextEqual(lines[i]+j, "#define ", 8))
{
// Keep the line position in the array of lines,
// so, we can scan that position and following lines
defineLines[defineCount] = i;
defineCount++;
}
}
// Read struct lines
for (int i = 0; i < linesCount; i++)
{
// Find structs
// starting with "typedef struct ... {" or "typedef struct ... ; \n struct ... {"
// ending with "} ... ;"
// i.e. excluding "typedef struct rAudioBuffer rAudioBuffer;" -> Typedef and forward declaration only
if (IsTextEqual(lines[i], "typedef struct", 14))
{
bool validStruct = IsTextEqual(lines[i + 1], "struct", 6);
if (!validStruct)
{
for (int c = 0; c < MAX_LINE_LENGTH; c++)
{
char v = lines[i][c];
if (v == '{') validStruct = true;
if ((v == '{') || (v == ';') || (v == '\0')) break;
}
}
if (!validStruct) continue;
structLines[structCount] = i;
while (lines[i][0] != '}') i++;
while (lines[i][0] != '\0') i++;
structCount++;
}
}
// Read alias lines
for (int i = 0; i < linesCount; i++)
{
// Find aliases (lines with "typedef ... ...;")
if (IsTextEqual(lines[i], "typedef", 7))
{
int spaceCount = 0;
bool validAlias = false;
for (int c = 0; c < MAX_LINE_LENGTH; c++)
{
char v = lines[i][c];
if (v == ' ') spaceCount++;
if ((v == ';') && (spaceCount == 2)) validAlias = true;
if ((v == ';') || (v == '(') || (v == '\0')) break;
}
if (!validAlias) continue;
aliasLines[aliasCount] = i;
aliasCount++;
}
}
// Read enum lines
for (int i = 0; i < linesCount; i++)
{
// Read enum line
if (IsTextEqual(lines[i], "typedef enum {", 14) && (lines[i][TextLength(lines[i])-1] != ';')) // ignore inline enums
{
// Keep the line position in the array of lines,
// so, we can scan that position and following lines
enumLines[enumCount] = i;
enumCount++;
}
}
// Read callback lines
for (int i = 0; i < linesCount; i++)
{
// Find callbacks (lines with "typedef ... (* ... )( ... );")
if (IsTextEqual(lines[i], "typedef", 7))
{
bool hasBeginning = false;
bool hasMiddle = false;
bool hasEnd = false;
for (int c = 0; c < MAX_LINE_LENGTH; c++)
{
if ((lines[i][c] == '(') && (lines[i][c + 1] == '*')) hasBeginning = true;
if ((lines[i][c] == ')') && (lines[i][c + 1] == '(')) hasMiddle = true;
if ((lines[i][c] == ')') && (lines[i][c + 1] == ';')) hasEnd = true;
if (hasEnd) break;
}
if (hasBeginning && hasMiddle && hasEnd)
{
callbackLines[callbackCount] = i;
callbackCount++;
}
}
}
// Read function lines
for (int i = 0; i < linesCount; i++)
{
// Read function line (starting with `define`, i.e. for raylib.h "RLAPI")
if (IsTextEqual(lines[i], apiDefine, TextLength(apiDefine)))
{
funcLines[funcCount] = i;
funcCount++;
}
}
// At this point we have all raylib defines, structs, aliases, enums, callbacks, functions lines data to start parsing
free(buffer); // Unload text buffer
// Parsing raylib data
//----------------------------------------------------------------------------------
// Define info data
defines = (DefineInfo *)calloc(MAX_DEFINES_TO_PARSE, sizeof(DefineInfo));
int defineIndex = 0;
for (int i = 0; i < defineCount; i++)
{
char *linePtr = lines[defineLines[i]];
int j = 0;
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs in the begining
j += 8; // Skip "#define "
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs after "#define "
// Extract name
int defineNameStart = j;
int openBraces = 0;
while (linePtr[j] != '\0')
{
if (((linePtr[j] == ' ') || (linePtr[j] == '\t')) && (openBraces == 0)) break;
if (linePtr[j] == '(') openBraces++;
if (linePtr[j] == ')') openBraces--;
j++;
}
int defineNameEnd = j-1;
// Skip duplicates
unsigned int nameLen = defineNameEnd - defineNameStart + 1;
bool isDuplicate = false;
for (int k = 0; k < defineIndex; k++)
{
if ((nameLen == TextLength(defines[k].name)) && IsTextEqual(defines[k].name, &linePtr[defineNameStart], nameLen))
{
isDuplicate = true;
break;
}
}
if (isDuplicate) continue;
MemoryCopy(defines[defineIndex].name, &linePtr[defineNameStart], nameLen);
// Determine type
if (linePtr[defineNameEnd] == ')') defines[defineIndex].type = MACRO;
while ((linePtr[j] == ' ') || (linePtr[j] == '\t')) j++; // Skip spaces and tabs after name
int defineValueStart = j;
if ((linePtr[j] == '\0') || (linePtr[j] == '/')) defines[defineIndex].type = GUARD;
if (linePtr[j] == '"') defines[defineIndex].type = STRING;
else if (linePtr[j] == '\'') defines[defineIndex].type = CHAR;
else if (IsTextEqual(linePtr+j, "CLITERAL(Color)", 15)) defines[defineIndex].type = COLOR;
else if (isdigit(linePtr[j])) // Parsing numbers
{
bool isFloat = false, isNumber = true, isHex = false;
while ((linePtr[j] != ' ') && (linePtr[j] != '\t') && (linePtr[j] != '\0'))
{
char ch = linePtr[j];
if (ch == '.') isFloat = true;
if (ch == 'x') isHex = true;
if (!(isdigit(ch) ||
((ch >= 'a') && (ch <= 'f')) ||
((ch >= 'A') && (ch <= 'F')) ||
(ch == 'x') ||
(ch == 'L') ||
(ch == '.') ||
(ch == '+') ||
(ch == '-'))) isNumber = false;
j++;
}
if (isNumber)
{
if (isFloat)
{
defines[defineIndex].type = (linePtr[j-1] == 'f')? FLOAT : DOUBLE;
}
else
{
defines[defineIndex].type = (linePtr[j-1] == 'L')? LONG : INT;
defines[defineIndex].isHex = isHex;
}
}
}
// Extracting value
while ((linePtr[j] != '\\') && (linePtr[j] != '\0') && !((linePtr[j] == '/') && (linePtr[j+1] == '/'))) j++;
int defineValueEnd = j-1;
while ((linePtr[defineValueEnd] == ' ') || (linePtr[defineValueEnd] == '\t')) defineValueEnd--; // Remove trailing spaces and tabs
if ((defines[defineIndex].type == LONG) || (defines[defineIndex].type == FLOAT)) defineValueEnd--; // Remove number postfix
int valueLen = defineValueEnd - defineValueStart + 1;
if (valueLen > 255) valueLen = 255;
if (valueLen > 0) MemoryCopy(defines[defineIndex].value, &linePtr[defineValueStart], valueLen);
// Extracting description
if ((linePtr[j] == '/') && linePtr[j + 1] == '/')
{
j += 2;
while (linePtr[j] == ' ') j++;
int commentStart = j;
while ((linePtr[j] != '\\') && (linePtr[j] != '\0')) j++;
int commentEnd = j-1;
int commentLen = commentEnd - commentStart + 1;
if (commentLen > 127) commentLen = 127;
MemoryCopy(defines[defineIndex].desc, &linePtr[commentStart], commentLen);
}
// Parse defines of type UNKNOWN to find calculated numbers
if (defines[defineIndex].type == UNKNOWN)
{
int largestType = UNKNOWN;
bool isMath = true;
char *valuePtr = defines[defineIndex].value;
for (unsigned int c = 0; c < TextLength(valuePtr); c++)
{
char ch = valuePtr[c];
// Skip operators and whitespace
if ((ch == '(') ||
(ch == ')') ||
(ch == '+') ||
(ch == '-') ||
(ch == '*') ||
(ch == '/') ||
(ch == ' ') ||
(ch == '\t')) continue;
// Read number operand
else if (isdigit(ch))
{
bool isNumber = true, isFloat = false;
while (!((ch == '(') ||
(ch == ')') ||
(ch == '*') ||
(ch == '/') ||
(ch == ' ') ||
(ch == '\t') ||
(ch == '\0')))
{
if (ch == '.') isFloat = true;
if (!(isdigit(ch) ||
((ch >= 'a') && (ch <= 'f')) ||
((ch >= 'A') && (ch <= 'F')) ||
(ch == 'x') ||
(ch == 'L') ||
(ch == '.') ||
(ch == '+') ||
(ch == '-')))
{
isNumber = false;
break;
}
c++;
ch = valuePtr[c];
}
if (isNumber)
{
// Found a valid number -> update largestType
int numberType;
if (isFloat) numberType = (valuePtr[c - 1] == 'f')? FLOAT_MATH : DOUBLE_MATH;
else numberType = (valuePtr[c - 1] == 'L')? LONG_MATH : INT_MATH;
if (numberType > largestType) largestType = numberType;
}
else
{
isMath = false;
break;
}
}
else // Read string operand
{
int operandStart = c;
while (!((ch == '\0') ||
(ch == ' ') ||
(ch == '(') ||
(ch == ')') ||
(ch == '+') ||
(ch == '-') ||
(ch == '*') ||
(ch == '/')))
{
c++;
ch = valuePtr[c];
}
int operandEnd = c;
int operandLength = operandEnd - operandStart;
// Search previous defines for operand
bool foundOperand = false;
for (int previousDefineIndex = 0; previousDefineIndex < defineIndex; previousDefineIndex++)
{
if (IsTextEqual(defines[previousDefineIndex].name, &valuePtr[operandStart], operandLength))
{
if ((defines[previousDefineIndex].type >= INT) && (defines[previousDefineIndex].type <= DOUBLE_MATH))
{
// Found operand and it's a number -> update largestType
if (defines[previousDefineIndex].type > largestType) largestType = defines[previousDefineIndex].type;
foundOperand = true;
}
break;
}
}
if (!foundOperand)
{
isMath = false;
break;
}
}
}
if (isMath)
{
// Define is a calculated number -> update type
if (largestType == INT) largestType = INT_MATH;
else if (largestType == LONG) largestType = LONG_MATH;
else if (largestType == FLOAT) largestType = FLOAT_MATH;
else if (largestType == DOUBLE) largestType = DOUBLE_MATH;
defines[defineIndex].type = largestType;
}
}
defineIndex++;
}
defineCount = defineIndex;
free(defineLines);
// Structs info data
structs = (StructInfo *)calloc(MAX_STRUCTS_TO_PARSE, sizeof(StructInfo));
for (int i = 0; i < structCount; i++)
{
char **linesPtr = &lines[structLines[i]];
// Parse struct description
GetDescription(linesPtr[-1], structs[i].desc);
// Get struct name: typedef struct name {
const int TDS_LEN = 15; // length of "typedef struct "
for (int c = TDS_LEN; c < 64 + TDS_LEN; c++)
{
if ((linesPtr[0][c] == '{') || (linesPtr[0][c] == ' '))
{
int nameLen = c - TDS_LEN;
while (linesPtr[0][TDS_LEN + nameLen - 1] == ' ') nameLen--;
MemoryCopy(structs[i].name, &linesPtr[0][TDS_LEN], nameLen);
break;
}
}
// Get struct fields and count them -> fields finish with ;
int l = 1;
while (linesPtr[l][0] != '}')
{
// WARNING: Some structs have empty spaces and comments -> OK, processed
if ((linesPtr[l][0] != ' ') && (linesPtr[l][0] != '\0'))
{
// Scan one field line
char *fieldLine = linesPtr[l];
int fieldEndPos = 0;
while (fieldLine[fieldEndPos] != ';') fieldEndPos++;
if ((fieldLine[0] != '/') && !IsTextEqual(fieldLine, "struct", 6)) // Field line is not a comment and not a struct declaration
{
//printf("Struct field: %s_\n", fieldLine); // OK!
// Get struct field type and name
GetDataTypeAndName(fieldLine, fieldEndPos, structs[i].fieldType[structs[i].fieldCount], structs[i].fieldName[structs[i].fieldCount]);
// Get the field description
GetDescription(&fieldLine[fieldEndPos], structs[i].fieldDesc[structs[i].fieldCount]);
structs[i].fieldCount++;
// Split field names containing multiple fields (like Matrix)
int additionalFields = 0;
int originalIndex = structs[i].fieldCount - 1;
for (unsigned int c = 0; c < TextLength(structs[i].fieldName[originalIndex]); c++)
{
if (structs[i].fieldName[originalIndex][c] == ',') additionalFields++;
}
if (additionalFields > 0)
{
int originalLength = -1;
int lastStart;
for (unsigned int c = 0; c < TextLength(structs[i].fieldName[originalIndex]) + 1; c++)
{
char v = structs[i].fieldName[originalIndex][c];
bool isEndOfString = (v == '\0');
if ((v == ',') || isEndOfString)
{
if (originalLength == -1)
{
// Save length of original field name
// Don't truncate yet, still needed for copying
originalLength = c;
}
else
{
// Copy field data from original field
int nameLength = c - lastStart;
MemoryCopy(structs[i].fieldName[structs[i].fieldCount], &structs[i].fieldName[originalIndex][lastStart], nameLength);
MemoryCopy(structs[i].fieldType[structs[i].fieldCount], &structs[i].fieldType[originalIndex][0], TextLength(structs[i].fieldType[originalIndex]));
MemoryCopy(structs[i].fieldDesc[structs[i].fieldCount], &structs[i].fieldDesc[originalIndex][0], TextLength(structs[i].fieldDesc[originalIndex]));
structs[i].fieldCount++;
}
if (!isEndOfString)
{
// Skip comma and spaces
c++;
while (structs[i].fieldName[originalIndex][c] == ' ') c++;
// Save position for next field
lastStart = c;
}
}
}
// Set length of original field to truncate the first field name
structs[i].fieldName[originalIndex][originalLength] = '\0';
}
// Split field types containing multiple fields (like MemNode)
additionalFields = 0;
originalIndex = structs[i].fieldCount - 1;
for (unsigned int c = 0; c < TextLength(structs[i].fieldType[originalIndex]); c++)
{
if (structs[i].fieldType[originalIndex][c] == ',') additionalFields++;
}
if (additionalFields > 0)
{
// Copy original name to last additional field
structs[i].fieldCount += additionalFields;
MemoryCopy(structs[i].fieldName[originalIndex + additionalFields], &structs[i].fieldName[originalIndex][0], TextLength(structs[i].fieldName[originalIndex]));
// Copy names from type to additional fields
int fieldsRemaining = additionalFields;
int nameStart = -1;
int nameEnd = -1;
for (int k = TextLength(structs[i].fieldType[originalIndex]); k > 0; k--)
{
char v = structs[i].fieldType[originalIndex][k];
if ((v == '*') || (v == ' ') || (v == ','))
{
if (nameEnd != -1) {
// Don't copy to last additional field
if (fieldsRemaining != additionalFields)
{
nameStart = k + 1;
MemoryCopy(structs[i].fieldName[originalIndex + fieldsRemaining], &structs[i].fieldType[originalIndex][nameStart], nameEnd - nameStart + 1);
}
nameEnd = -1;
fieldsRemaining--;
}
}
else if (nameEnd == -1) nameEnd = k;
}
// Truncate original field type
int fieldTypeLength = nameStart;
structs[i].fieldType[originalIndex][fieldTypeLength] = '\0';
// Set field type and description of additional fields
for (int j = 1; j <= additionalFields; j++)
{
MemoryCopy(structs[i].fieldType[originalIndex + j], &structs[i].fieldType[originalIndex][0], fieldTypeLength);
MemoryCopy(structs[i].fieldDesc[originalIndex + j], &structs[i].fieldDesc[originalIndex][0], TextLength(structs[i].fieldDesc[originalIndex]));
}
}
}
}
l++;
}
// Move array sizes from name to type
for (int j = 0; j < structs[i].fieldCount; j++)
{
MoveArraySize(structs[i].fieldName[j], structs[i].fieldType[j]);
}
}
free(structLines);
// Alias info data
aliases = (AliasInfo *)calloc(MAX_ALIASES_TO_PARSE, sizeof(AliasInfo));
for (int i = 0; i < aliasCount; i++)
{
// Description from previous line
GetDescription(lines[aliasLines[i] - 1], aliases[i].desc);
char *linePtr = lines[aliasLines[i]];
// Skip "typedef "
int c = 8;
// Type
int typeStart = c;
while(linePtr[c] != ' ') c++;
int typeLen = c - typeStart;
MemoryCopy(aliases[i].type, &linePtr[typeStart], typeLen);
// Skip space
c++;
// Name
int nameStart = c;
while(linePtr[c] != ';') c++;
int nameLen = c - nameStart;
MemoryCopy(aliases[i].name, &linePtr[nameStart], nameLen);
// Description
GetDescription(&linePtr[c], aliases[i].desc);
}
free(aliasLines);
// Enum info data
enums = (EnumInfo *)calloc(MAX_ENUMS_TO_PARSE, sizeof(EnumInfo));
for (int i = 0; i < enumCount; i++)
{
// Parse enum description
// NOTE: This is not necessarily from the line immediately before,
// some of the enums have extra lines between the "description"
// and the typedef enum
for (int j = enumLines[i] - 1; j > 0; j--)
{
char *linePtr = lines[j];
if ((linePtr[0] != '/') || (linePtr[2] != ' '))
{
GetDescription(&lines[j + 1][0], enums[i].desc);
break;
}
}
for (int j = 1; j < MAX_ENUM_VALUES*2; j++) // Maximum number of lines following enum first line
{
char *linePtr = lines[enumLines[i] + j];
if ((linePtr[0] >= 'A') && (linePtr[0] <= 'Z'))
{
// Parse enum value line, possible options:
//ENUM_VALUE_NAME,
//ENUM_VALUE_NAME
//ENUM_VALUE_NAME = 99
//ENUM_VALUE_NAME = 99,
//ENUM_VALUE_NAME = 0x00000040, // Value description
// We start reading the value name
int c = 0;
while ((linePtr[c] != ',') &&
(linePtr[c] != ' ') &&
(linePtr[c] != '=') &&
(linePtr[c] != '\0'))
{
enums[i].valueName[enums[i].valueCount][c] = linePtr[c];
c++;
}
// After the name we can have:
// '=' -> value is provided
// ',' -> value is equal to previous + 1, there could be a description if not '\0'
// ' ' -> value is equal to previous + 1, there could be a description if not '\0'
// '\0' -> value is equal to previous + 1
// Let's start checking if the line is not finished
if ((linePtr[c] != ',') && (linePtr[c] != '\0'))
{
// Two options:
// '=' -> value is provided
// ' ' -> value is equal to previous + 1, there could be a description if not '\0'
bool foundValue = false;
while ((linePtr[c] != '\0') && (linePtr[c] != '/'))
{
if (linePtr[c] == '=')
{
foundValue = true;
break;
}
c++;
}
if (foundValue)
{
if (linePtr[c + 1] == ' ') c += 2;
else c++;
// Parse integer value
int n = 0;
char integer[16] = { 0 };
while ((linePtr[c] != ',') && (linePtr[c] != ' ') && (linePtr[c] != '\0'))
{
integer[n] = linePtr[c];
c++; n++;
}
if (integer[1] == 'x') enums[i].valueInteger[enums[i].valueCount] = (int)strtol(integer, NULL, 16);
else enums[i].valueInteger[enums[i].valueCount] = atoi(integer);
}
else enums[i].valueInteger[enums[i].valueCount] = (enums[i].valueInteger[enums[i].valueCount - 1] + 1);
}
else enums[i].valueInteger[enums[i].valueCount] = (enums[i].valueInteger[enums[i].valueCount - 1] + 1);
// Parse value description
GetDescription(&linePtr[c], enums[i].valueDesc[enums[i].valueCount]);
enums[i].valueCount++;
}
else if (linePtr[0] == '}')
{
// Get enum name from typedef
int c = 0;
while (linePtr[2 + c] != ';')
{
enums[i].name[c] = linePtr[2 + c];
c++;
}
break; // Enum ended, break for() loop
}
}
}
free(enumLines);
// Callback info data
callbacks = (FunctionInfo *)calloc(MAX_CALLBACKS_TO_PARSE, sizeof(FunctionInfo));
for (int i = 0; i < callbackCount; i++)
{
char *linePtr = lines[callbackLines[i]];
// Skip "typedef "
unsigned int c = 8;
// Return type
int retTypeStart = c;
while(linePtr[c] != '(') c++;
int retTypeLen = c - retTypeStart;
while(linePtr[retTypeStart + retTypeLen - 1] == ' ') retTypeLen--;
MemoryCopy(callbacks[i].retType, &linePtr[retTypeStart], retTypeLen);
// Skip "(*"
c += 2;
// Name
int nameStart = c;
while(linePtr[c] != ')') c++;
int nameLen = c - nameStart;
MemoryCopy(callbacks[i].name, &linePtr[nameStart], nameLen);
// Skip ")("
c += 2;
// Params
int paramStart = c;
for (; c < MAX_LINE_LENGTH; c++)
{
if ((linePtr[c] == ',') || (linePtr[c] == ')'))
{
// Get parameter type + name, extract info
int paramLen = c - paramStart;
GetDataTypeAndName(&linePtr[paramStart], paramLen, callbacks[i].paramType[callbacks[i].paramCount], callbacks[i].paramName[callbacks[i].paramCount]);
callbacks[i].paramCount++;
paramStart = c + 1;
while(linePtr[paramStart] == ' ') paramStart++;
}
if (linePtr[c] == ')') break;
}
// Description
GetDescription(&linePtr[c], callbacks[i].desc);
// Move array sizes from name to type
for (int j = 0; j < callbacks[i].paramCount; j++)
{
MoveArraySize(callbacks[i].paramName[j], callbacks[i].paramType[j]);
}
}
free(callbackLines);
// Functions info data
funcs = (FunctionInfo *)calloc(MAX_FUNCS_TO_PARSE, sizeof(FunctionInfo));
for (int i = 0; i < funcCount; i++)
{
char *linePtr = lines[funcLines[i]];
int funcParamsStart = 0;
int funcEnd = 0;
// Get return type and function name from func line
for (int c = 0; (c < MAX_LINE_LENGTH) && (linePtr[c] != '\n'); c++)
{
if (linePtr[c] == '(') // Starts function parameters
{
funcParamsStart = c + 1;
// At this point we have function return type and function name
char funcRetTypeName[128] = { 0 };
int dc = TextLength(apiDefine) + 1;
int funcRetTypeNameLen = c - dc; // Substract `define` ("RLAPI " for raylib.h)
MemoryCopy(funcRetTypeName, &linePtr[dc], funcRetTypeNameLen);
GetDataTypeAndName(funcRetTypeName, funcRetTypeNameLen, funcs[i].retType, funcs[i].name);
break;
}
}
// Get parameters from func line
for (int c = funcParamsStart; c < MAX_LINE_LENGTH; c++)
{
if (linePtr[c] == ',') // Starts function parameters
{
// Get parameter type + name, extract info
char funcParamTypeName[128] = { 0 };
int funcParamTypeNameLen = c - funcParamsStart;
MemoryCopy(funcParamTypeName, &linePtr[funcParamsStart], funcParamTypeNameLen);
GetDataTypeAndName(funcParamTypeName, funcParamTypeNameLen, funcs[i].paramType[funcs[i].paramCount], funcs[i].paramName[funcs[i].paramCount]);
funcParamsStart = c + 1;
if (linePtr[c + 1] == ' ') funcParamsStart += 1;
funcs[i].paramCount++; // Move to next parameter
}
else if (linePtr[c] == ')')
{
funcEnd = c + 2;
// Check if previous word is void
if ((linePtr[c - 4] == 'v') && (linePtr[c - 3] == 'o') && (linePtr[c - 2] == 'i') && (linePtr[c - 1] == 'd')) break;
// Get parameter type + name, extract info
char funcParamTypeName[128] = { 0 };
int funcParamTypeNameLen = c - funcParamsStart;
MemoryCopy(funcParamTypeName, &linePtr[funcParamsStart], funcParamTypeNameLen);
GetDataTypeAndName(funcParamTypeName, funcParamTypeNameLen, funcs[i].paramType[funcs[i].paramCount], funcs[i].paramName[funcs[i].paramCount]);
funcs[i].paramCount++; // Move to next parameter
break;
}
}
// Get function description
GetDescription(&linePtr[funcEnd], funcs[i].desc);
// Move array sizes from name to type
for (int j = 0; j < funcs[i].paramCount; j++)
{
MoveArraySize(funcs[i].paramName[j], funcs[i].paramType[j]);
}
}
free(funcLines);
for (int i = 0; i < linesCount; i++) free(lines[i]);
free(lines);
// At this point, all raylib data has been parsed!
//----------------------------------------------------------------------------------
// defines[] -> We have all the defines decomposed into pieces for further analysis
// structs[] -> We have all the structs decomposed into pieces for further analysis
// aliases[] -> We have all the aliases decomposed into pieces for further analysis
// enums[] -> We have all the enums decomposed into pieces for further analysis
// callbacks[] -> We have all the callbacks decomposed into pieces for further analysis
// funcs[] -> We have all the functions decomposed into pieces for further analysis
printf("\nInput file: %s", inFileName);
printf("\nOutput file: %s", outFileName);
if (outputFormat == DEFAULT) printf("\nOutput format: DEFAULT\n\n");
else if (outputFormat == JSON) printf("\nOutput format: JSON\n\n");
else if (outputFormat == XML) printf("\nOutput format: XML\n\n");
else if (outputFormat == LUA) printf("\nOutput format: LUA\n\n");
else if (outputFormat == CODE) printf("\nOutput format: CODE\n\n");
ExportParsedData(outFileName, outputFormat);
free(defines);
free(structs);
free(aliases);
free(enums);
free(callbacks);
free(funcs);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4198962, "binary_name": "0135b64b53c9b1ad53e1857338cd537508c222fe9ac94ce7e1d4697fd751d1e2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 2D0h"], [5, "mov [rbp+var_2D4], edi"], [6, "mov [rbp+var_2E0], rsi"], [7, "cmp [rbp+var_2D4], 1"], [8, "jle short loc_40126D"], [9, "mov rdx, [rbp+var_2E0]"], [10, "mov eax, [rbp+var_2D4]"], [11, "mov rsi, rdx"], [12, "mov edi, eax"], [13, "call sub_404EE8"], [14, "movzx eax, cs:byte_40D180"], [15, "test al, al"], [16, "jnz short loc_40128C"], [17, "mov edx, 10h"], [18, "mov esi, offset aSrcRaylibH"], [19, "mov edi, offset byte_40D180"], [20, "call sub_405BBE"], [21, "movzx eax, cs:byte_40D380"], [22, "test al, al"], [23, "jnz short loc_4012AB"], [24, "mov edx, 0Fh"], [25, "mov esi, offset aRaylibApiTxt"], [26, "mov edi, offset byte_40D380"], [27, "call sub_405BBE"], [28, "movzx eax, cs:byte_40D140"], [29, "test al, al"], [30, "jnz short loc_4012CA"], [31, "mov edx, 6"], [32, "mov esi, offset aRlapi"], [33, "mov edi, offset byte_40D140"], [34, "call sub_405BBE"], [35, "mov [rbp+var_23C], 0"], [36, "lea rax, [rbp+var_23C]"], [37, "mov rsi, rax"], [38, "mov edi, offset byte_40D180"], [39, "call sub_405572"], [40, "mov [rbp+ptr], rax"], [41, "cmp [rbp+ptr], 0"], [42, "jnz short loc_401317"], [43, "mov esi, offset byte_40D180"], [44, "mov edi, offset format"], [45, "mov eax, 0"], [46, "call _printf"], [47, "mov eax, 1"], [48, "jmp loc_404D9F"], [49, "mov [rbp+var_240], 0"], [50, "mov ecx, [rbp+var_23C]"], [51, "lea rdx, [rbp+var_240]"], [52, "mov rax, [rbp+ptr]"], [53, "mov esi, ecx"], [54, "mov rdi, rax"], [55, "call sub_405683"], [56, "mov [rbp+var_140], rax"], [57, "movzx eax, cs:byte_40D160"], [58, "test al, al"], [59, "jz loc_4013F5"], [60, "mov [rbp+var_14], 0FFFFFFFFh"], [61, "mov [rbp+var_18], 0"], [62, "jmp short loc_4013C4"], [63, "cmp [rbp+var_14], 0"], [64, "js short loc_40138F"], [65, "mov eax, [rbp+var_18]"], [66, "cdqe"], [67, "lea rdx, ds:0[rax*8]"], [68, "mov rax, [rbp+var_140]"], [69, "add rax, rdx"], [70, "mov rax, [rax]"], [71, "mov rdi, rax"], [72, "call _free"], [73, "jmp short loc_4013C0"], [74, "mov eax, [rbp+var_18]"], [75, "cdqe"], [76, "lea rdx, ds:0[rax*8]"], [77, "mov rax, [rbp+var_140]"], [78, "add rax, rdx"], [79, "mov rax, [rax]"], [80, "mov esi, offset byte_40D160"], [81, "mov rdi, rax"], [82, "call sub_405B49"], [83, "test eax, eax"], [84, "js short loc_4013C0"], [85, "mov eax, [rbp+var_18]"], [86, "mov [rbp+var_14], eax"], [87, "add [rbp+var_18], 1"], [88, "mov eax, [rbp+var_240]"], [89, "cmp [rbp+var_18], eax"], [90, "jl short loc_401365"], [91, "cmp [rbp+var_14], 0"], [92, "js short loc_4013DE"], [93, "mov eax, [rbp+var_14]"], [94, "mov [rbp+var_240], eax"], [95, "mov eax, [rbp+var_240]"], [96, "mov esi, eax"], [97, "mov edi, offset aNumberOfTrunca"], [98, "mov eax, 0"], [99, "call _printf"], [100, "mov edi, 2000h"], [101, "call _malloc"], [102, "mov [rbp+var_148], rax"], [103, "mov edi, 100h"], [104, "call _malloc"], [105, "mov [rbp+var_150], rax"], [106, "mov edi, 100h"], [107, "call _malloc"], [108, "mov [rbp+var_158], rax"], [109, "mov edi, 100h"], [110, "call _malloc"], [111, "mov [rbp+var_160], rax"], [112, "mov edi, 100h"], [113, "call _malloc"], [114, "mov [rbp+var_168], rax"], [115, "mov edi, 1000h"], [116, "call _malloc"], [117, "mov [rbp+var_170], rax"], [118, "mov [rbp+var_1C], 0"], [119, "jmp loc_401530"], [120, "mov [rbp+var_20], 0"], [121, "jmp short loc_401474"], [122, "add [rbp+var_20], 1"], [123, "mov eax, [rbp+var_1C]"], [124, "cdqe"], [125, "lea rdx, ds:0[rax*8]"], [126, "mov rax, [rbp+var_140]"], [127, "add rax, rdx"], [128, "mov rdx, [rax]"], [129, "mov eax, [rbp+var_20]"], [130, "cdqe"], [131, "add rax, rdx"], [132, "movzx eax, byte ptr [rax]"], [133, "cmp al, 20h "], [134, "jz short loc_401470"], [135, "mov eax, [rbp+var_1C]"], [136, "cdqe"], [137, "lea rdx, ds:0[rax*8]"], [138, "mov rax, [rbp+var_140]"], [139, "add rax, rdx"], [140, "mov rdx, [rax]"], [141, "mov eax, [rbp+var_20]"], [142, "cdqe"], [143, "add rax, rdx"], [144, "movzx eax, byte ptr [rax]"], [145, "cmp al, 9"], [146, "jz short loc_401470"], [147, "mov eax, [rbp+var_1C]"], [148, "cdqe"], [149, "lea rdx, ds:0[rax*8]"], [150, "mov rax, [rbp+var_140]"], [151, "add rax, rdx"], [152, "mov rdx, [rax]"], [153, "mov eax, [rbp+var_20]"], [154, "cdqe"], [155, "add rax, rdx"], [156, "mov edx, 8"], [157, "mov esi, offset aDefine"], [158, "mov rdi, rax"], [159, "call sub_405AF7"], [160, "test al, al"], [161, "jz short loc_40152C"], [162, "mov eax, cs:dword_40D0E0"], [163, "cdqe"], [164, "lea rdx, ds:0[rax*4]"], [165, "mov rax, [rbp+var_148]"], [166, "add rdx, rax"], [167, "mov eax, [rbp+var_1C]"], [168, "mov [rdx], eax"], [169, "mov eax, cs:dword_40D0E0"], [170, "add eax, 1"], [171, "mov cs:dword_40D0E0, eax"], [172, "add [rbp+var_1C], 1"], [173, "mov eax, [rbp+var_240]"], [174, "cmp [rbp+var_1C], eax"], [175, "jl loc_401467"], [176, "mov [rbp+var_24], 0"], [177, "jmp loc_4016B4"], [178, "mov eax, [rbp+var_24]"], [179, "cdqe"], [180, "lea rdx, ds:0[rax*8]"], [181, "mov rax, [rbp+var_140]"], [182, "add rax, rdx"], [183, "mov rax, [rax]"], [184, "mov edx, 0Eh"], [185, "mov esi, offset aTypedefStruct"], [186, "mov rdi, rax"], [187, "call sub_405AF7"], [188, "test al, al"], [189, "jz loc_4016B0"], [190, "mov eax, [rbp+var_24]"], [191, "cdqe"], [192, "add rax, 1"], [193, "lea rdx, ds:0[rax*8]"], [194, "mov rax, [rbp+var_140]"], [195, "add rax, rdx"], [196, "mov rax, [rax]"], [197, "mov edx, 6"], [198, "mov esi, offset aStruct"], [199, "mov rdi, rax"], [200, "call sub_405AF7"], [201, "mov [rbp+var_25], al"], [202, "movzx eax, [rbp+var_25]"], [203, "xor eax, 1"], [204, "test al, al"], [205, "jz short loc_401626"], [206, "mov [rbp+var_2C], 0"], [207, "jmp short loc_40161D"], [208, "mov eax, [rbp+var_24]"], [209, "cdqe"], [210, "lea rdx, ds:0[rax*8]"], [211, "mov rax, [rbp+var_140]"], [212, "add rax, rdx"], [213, "mov rdx, [rax]"], [214, "mov eax, [rbp+var_2C]"], [215, "cdqe"], [216, "add rax, rdx"], [217, "movzx eax, byte ptr [rax]"], [218, "mov [rbp+var_236], al"], [219, "cmp [rbp+var_236], 7Bh "], [220, "jnz short loc_4015FE"], [221, "mov [rbp+var_25], 1"], [222, "cmp [rbp+var_236], 7Bh "], [223, "jz short loc_401626"], [224, "cmp [rbp+var_236], 3Bh "], [225, "jz short loc_401626"], [226, "cmp [rbp+var_236], 0"], [227, "jz short loc_401626"], [228, "add [rbp+var_2C], 1"], [229, "cmp [rbp+var_2C], 1FFh"], [230, "jle short loc_4015C6"], [231, "movzx eax, [rbp+var_25]"], [232, "xor eax, 1"], [233, "test al, al"], [234, "jnz short loc_4016AF"], [235, "mov eax, cs:dword_40D0E4"], [236, "cdqe"], [237, "lea rdx, ds:0[rax*4]"], [238, "mov rax, [rbp+var_150]"], [239, "add rdx, rax"], [240, "mov eax, [rbp+var_24]"], [241, "mov [rdx], eax"], [242, "jmp short loc_401656"], [243, "add [rbp+var_24], 1"], [244, "mov eax, [rbp+var_24]"], [245, "cdqe"], [246, "lea rdx, ds:0[rax*8]"], [247, "mov rax, [rbp+var_140]"], [248, "add rax, rdx"], [249, "mov rax, [rax]"], [250, "movzx eax, byte ptr [rax]"], [251, "cmp al, 7Dh "], [252, "jnz short loc_401652"], [253, "jmp short loc_40167D"], [254, "add [rbp+var_24], 1"], [255, "mov eax, [rbp+var_24]"], [256, "cdqe"], [257, "lea rdx, ds:0[rax*8]"], [258, "mov rax, [rbp+var_140]"], [259, "add rax, rdx"], [260, "mov rax, [rax]"], [261, "movzx eax, byte ptr [rax]"], [262, "test al, al"], [263, "jnz short loc_401679"], [264, "mov eax, cs:dword_40D0E4"], [265, "add eax, 1"], [266, "mov cs:dword_40D0E4, eax"], [267, "jmp short loc_4016B0"], [268, "nop"], [269, "add [rbp+var_24], 1"], [270, "mov eax, [rbp+var_240]"], [271, "cmp [rbp+var_24], eax"], [272, "jl loc_40154B"], [273, "mov [rbp+var_30], 0"], [274, "jmp loc_4017CA"], [275, "mov eax, [rbp+var_30]"], [276, "cdqe"], [277, "lea rdx, ds:0[rax*8]"], [278, "mov rax, [rbp+var_140]"], [279, "add rax, rdx"], [280, "mov rax, [rax]"], [281, "mov edx, 7"], [282, "mov esi, offset aTypedef"], [283, "mov rdi, rax"], [284, "call sub_405AF7"], [285, "test al, al"], [286, "jz loc_4017C6"], [287, "mov [rbp+var_34], 0"], [288, "mov [rbp+var_35], 0"], [289, "mov [rbp+var_3C], 0"], [290, "jmp short loc_401781"], [291, "mov eax, [rbp+var_30]"], [292, "cdqe"], [293, "lea rdx, ds:0[rax*8]"], [294, "mov rax, [rbp+var_140]"], [295, "add rax, rdx"], [296, "mov rdx, [rax]"], [297, "mov eax, [rbp+var_3C]"], [298, "cdqe"], [299, "add rax, rdx"], [300, "movzx eax, byte ptr [rax]"], [301, "mov [rbp+var_235], al"], [302, "cmp [rbp+var_235], 20h "], [303, "jnz short loc_40174F"], [304, "add [rbp+var_34], 1"], [305, "cmp [rbp+var_235], 3Bh "], [306, "jnz short loc_401762"], [307, "cmp [rbp+var_34], 2"], [308, "jnz short loc_401762"], [309, "mov [rbp+var_35], 1"], [310, "cmp [rbp+var_235], 3Bh "], [311, "jz short loc_40178A"], [312, "cmp [rbp+var_235], 28h "], [313, "jz short loc_40178A"], [314, "cmp [rbp+var_235], 0"], [315, "jz short loc_40178A"], [316, "add [rbp+var_3C], 1"], [317, "cmp [rbp+var_3C], 1FFh"], [318, "jle short loc_401717"], [319, "movzx eax, [rbp+var_35]"], [320, "xor eax, 1"], [321, "test al, al"], [322, "jnz short loc_4017C5"], [323, "mov eax, cs:dword_40D0E8"], [324, "cdqe"], [325, "lea rdx, ds:0[rax*4]"], [326, "mov rax, [rbp+var_158]"], [327, "add rdx, rax"], [328, "mov eax, [rbp+var_30]"], [329, "mov [rdx], eax"], [330, "mov eax, cs:dword_40D0E8"], [331, "add eax, 1"], [332, "mov cs:dword_40D0E8, eax"], [333, "jmp short loc_4017C6"], [334, "nop"], [335, "add [rbp+var_30], 1"], [336, "mov eax, [rbp+var_240]"], [337, "cmp [rbp+var_30], eax"], [338, "jl loc_4016CF"], [339, "mov [rbp+var_40], 0"], [340, "jmp loc_401892"], [341, "mov eax, [rbp+var_40]"], [342, "cdqe"], [343, "lea rdx, ds:0[rax*8]"], [344, "mov rax, [rbp+var_140]"], [345, "add rax, rdx"], [346, "mov rax, [rax]"], [347, "mov edx, 0Eh"], [348, "mov esi, offset aTypedefEnum"], [349, "mov rdi, rax"], [350, "call sub_405AF7"], [351, "test al, al"], [352, "jz short loc_40188E"], [353, "mov eax, [rbp+var_40]"], [354, "cdqe"], [355, "lea rdx, ds:0[rax*8]"], [356, "mov rax, [rbp+var_140]"], [357, "add rax, rdx"], [358, "mov rbx, [rax]"], [359, "mov eax, [rbp+var_40]"], [360, "cdqe"], [361, "lea rdx, ds:0[rax*8]"], [362, "mov rax, [rbp+var_140]"], [363, "add rax, rdx"], [364, "mov rax, [rax]"], [365, "mov rdi, rax"], [366, "call sub_405AC3"], [367, "sub eax, 1"], [368, "mov eax, eax"], [369, "add rax, rbx"], [370, "movzx eax, byte ptr [rax]"], [371, "cmp al, 3Bh "], [372, "jz short loc_40188E"], [373, "mov eax, cs:dword_40D0EC"], [374, "cdqe"], [375, "lea rdx, ds:0[rax*4]"], [376, "mov rax, [rbp+var_160]"], [377, "add rdx, rax"], [378, "mov eax, [rbp+var_40]"], [379, "mov [rdx], eax"], [380, "mov eax, cs:dword_40D0EC"], [381, "add eax, 1"], [382, "mov cs:dword_40D0EC, eax"], [383, "add [rbp+var_40], 1"], [384, "mov eax, [rbp+var_240]"], [385, "cmp [rbp+var_40], eax"], [386, "jl loc_4017E5"], [387, "mov [rbp+var_44], 0"], [388, "jmp loc_401A65"], [389, "mov eax, [rbp+var_44]"], [390, "cdqe"], [391, "lea rdx, ds:0[rax*8]"], [392, "mov rax, [rbp+var_140]"], [393, "add rax, rdx"], [394, "mov rax, [rax]"], [395, "mov edx, 7"], [396, "mov esi, offset aTypedef"], [397, "mov rdi, rax"], [398, "call sub_405AF7"], [399, "test al, al"], [400, "jz loc_401A61"], [401, "mov [rbp+var_45], 0"], [402, "mov [rbp+var_46], 0"], [403, "mov [rbp+var_47], 0"], [404, "mov [rbp+var_4C], 0"], [405, "jmp loc_401A11"], [406, "mov eax, [rbp+var_44]"], [407, "cdqe"], [408, "lea rdx, ds:0[rax*8]"], [409, "mov rax, [rbp+var_140]"], [410, "add rax, rdx"], [411, "mov rdx, [rax]"], [412, "mov eax, [rbp+var_4C]"], [413, "cdqe"], [414, "add rax, rdx"], [415, "movzx eax, byte ptr [rax]"], [416, "cmp al, 28h "], [417, "jnz short loc_401953"], [418, "mov eax, [rbp+var_44]"], [419, "cdqe"], [420, "lea rdx, ds:0[rax*8]"], [421, "mov rax, [rbp+var_140]"], [422, "add rax, rdx"], [423, "mov rdx, [rax]"], [424, "mov eax, [rbp+var_4C]"], [425, "cdqe"], [426, "add rax, 1"], [427, "add rax, rdx"], [428, "movzx eax, byte ptr [rax]"], [429, "cmp al, 2Ah "], [430, "jnz short loc_401953"], [431, "mov [rbp+var_45], 1"], [432, "mov eax, [rbp+var_44]"], [433, "cdqe"], [434, "lea rdx, ds:0[rax*8]"], [435, "mov rax, [rbp+var_140]"], [436, "add rax, rdx"], [437, "mov rdx, [rax]"], [438, "mov eax, [rbp+var_4C]"], [439, "cdqe"], [440, "add rax, rdx"], [441, "movzx eax, byte ptr [rax]"], [442, "cmp al, 29h "], [443, "jnz short loc_4019AD"], [444, "mov eax, [rbp+var_44]"], [445, "cdqe"], [446, "lea rdx, ds:0[rax*8]"], [447, "mov rax, [rbp+var_140]"], [448, "add rax, rdx"], [449, "mov rdx, [rax]"], [450, "mov eax, [rbp+var_4C]"], [451, "cdqe"], [452, "add rax, 1"], [453, "add rax, rdx"], [454, "movzx eax, byte ptr [rax]"], [455, "cmp al, 28h "], [456, "jnz short loc_4019AD"], [457, "mov [rbp+var_46], 1"], [458, "mov eax, [rbp+var_44]"], [459, "cdqe"], [460, "lea rdx, ds:0[rax*8]"], [461, "mov rax, [rbp+var_140]"], [462, "add rax, rdx"], [463, "mov rdx, [rax]"], [464, "mov eax, [rbp+var_4C]"], [465, "cdqe"], [466, "add rax, rdx"], [467, "movzx eax, byte ptr [rax]"], [468, "cmp al, 29h "], [469, "jnz short loc_401A07"], [470, "mov eax, [rbp+var_44]"], [471, "cdqe"], [472, "lea rdx, ds:0[rax*8]"], [473, "mov rax, [rbp+var_140]"], [474, "add rax, rdx"], [475, "mov rdx, [rax]"], [476, "mov eax, [rbp+var_4C]"], [477, "cdqe"], [478, "add rax, 1"], [479, "add rax, rdx"], [480, "movzx eax, byte ptr [rax]"], [481, "cmp al, 3Bh "], [482, "jnz short loc_401A07"], [483, "mov [rbp+var_47], 1"], [484, "cmp [rbp+var_47], 0"], [485, "jnz short loc_401A20"], [486, "add [rbp+var_4C], 1"], [487, "cmp [rbp+var_4C], 1FFh"], [488, "jle loc_4018F9"], [489, "jmp short loc_401A21"], [490, "nop"], [491, "cmp [rbp+var_45], 0"], [492, "jz short loc_401A61"], [493, "cmp [rbp+var_46], 0"], [494, "jz short loc_401A61"], [495, "cmp [rbp+var_47], 0"], [496, "jz short loc_401A61"], [497, "mov eax, cs:dword_40D0F0"], [498, "cdqe"], [499, "lea rdx, ds:0[rax*4]"], [500, "mov rax, [rbp+var_168]"], [501, "add rdx, rax"], [502, "mov eax, [rbp+var_44]"], [503, "mov [rdx], eax"], [504, "mov eax, cs:dword_40D0F0"], [505, "add eax, 1"], [506, "mov cs:dword_40D0F0, eax"], [507, "add [rbp+var_44], 1"], [508, "mov eax, [rbp+var_240]"], [509, "cmp [rbp+var_44], eax"], [510, "jl loc_4018AD"], [511, "mov [rbp+var_50], 0"], [512, "jmp short loc_401AE6"], [513, "mov edi, offset byte_40D140"], [514, "call sub_405AC3"], [515, "mov edx, eax"], [516, "mov eax, [rbp+var_50]"], [517, "cdqe"], [518, "lea rcx, ds:0[rax*8]"], [519, "mov rax, [rbp+var_140]"], [520, "add rax, rcx"], [521, "mov rax, [rax]"], [522, "mov esi, offset byte_40D140"], [523, "mov rdi, rax"], [524, "call sub_405AF7"], [525, "test al, al"], [526, "jz short loc_401AE2"], [527, "mov eax, cs:dword_40D0F4"], [528, "cdqe"], [529, "lea rdx, ds:0[rax*4]"], [530, "mov rax, [rbp+var_170]"], [531, "add rdx, rax"], [532, "mov eax, [rbp+var_50]"], [533, "mov [rdx], eax"], [534, "mov eax, cs:dword_40D0F4"], [535, "add eax, 1"], [536, "mov cs:dword_40D0F4, eax"], [537, "add [rbp+var_50], 1"], [538, "mov eax, [rbp+var_240]"], [539, "cmp [rbp+var_50], eax"], [540, "jl short loc_401A7D"], [541, "mov rax, [rbp+ptr]"], [542, "mov rdi, rax"], [543, "call _free"], [544, "mov esi, 1C8h"], [545, "mov edi, 800h"], [546, "call _calloc"], [547, "mov cs:ptr, rax"], [548, "mov [rbp+var_54], 0"], [549, "mov [rbp+var_58], 0"], [550, "jmp loc_4027EC"], [551, "mov eax, [rbp+var_58]"], [552, "cdqe"], [553, "lea rdx, ds:0[rax*4]"], [554, "mov rax, [rbp+var_148]"], [555, "add rax, rdx"], [556, "mov eax, [rax]"], [557, "cdqe"], [558, "lea rdx, ds:0[rax*8]"], [559, "mov rax, [rbp+var_140]"], [560, "add rax, rdx"], [561, "mov rax, [rax]"], [562, "mov [rbp+var_200], rax"], [563, "mov [rbp+var_5C], 0"], [564, "jmp short loc_401B6D"], [565, "add [rbp+var_5C], 1"], [566, "mov eax, [rbp+var_5C]"], [567, "movsxd rdx, eax"], [568, "mov rax, [rbp+var_200]"], [569, "add rax, rdx"], [570, "movzx eax, byte ptr [rax]"], [571, "cmp al, 20h "], [572, "jz short loc_401B69"], [573, "mov eax, [rbp+var_5C]"], [574, "movsxd rdx, eax"], [575, "mov rax, [rbp+var_200]"], [576, "add rax, rdx"], [577, "movzx eax, byte ptr [rax]"], [578, "cmp al, 9"], [579, "jz short loc_401B69"], [580, "add [rbp+var_5C], 8"], [581, "jmp short loc_401BA5"], [582, "add [rbp+var_5C], 1"], [583, "mov eax, [rbp+var_5C]"], [584, "movsxd rdx, eax"], [585, "mov rax, [rbp+var_200]"], [586, "add rax, rdx"], [587, "movzx eax, byte ptr [rax]"], [588, "cmp al, 20h "], [589, "jz short loc_401BA1"], [590, "mov eax, [rbp+var_5C]"], [591, "movsxd rdx, eax"], [592, "mov rax, [rbp+var_200]"], [593, "add rax, rdx"], [594, "movzx eax, byte ptr [rax]"], [595, "cmp al, 9"], [596, "jz short loc_401BA1"], [597, "mov eax, [rbp+var_5C]"], [598, "mov [rbp+var_204], eax"], [599, "mov [rbp+var_60], 0"], [600, "jmp short loc_401C53"], [601, "mov eax, [rbp+var_5C]"], [602, "movsxd rdx, eax"], [603, "mov rax, [rbp+var_200]"], [604, "add rax, rdx"], [605, "movzx eax, byte ptr [rax]"], [606, "cmp al, 20h "], [607, "jz short loc_401C13"], [608, "mov eax, [rbp+var_5C]"], [609, "movsxd rdx, eax"], [610, "mov rax, [rbp+var_200]"], [611, "add rax, rdx"], [612, "movzx eax, byte ptr [rax]"], [613, "cmp al, 9"], [614, "jnz short loc_401C19"], [615, "cmp [rbp+var_60], 0"], [616, "jz short loc_401C70"], [617, "mov eax, [rbp+var_5C]"], [618, "movsxd rdx, eax"], [619, "mov rax, [rbp+var_200]"], [620, "add rax, rdx"], [621, "movzx eax, byte ptr [rax]"], [622, "cmp al, 28h "], [623, "jnz short loc_401C34"], [624, "add [rbp+var_60], 1"], [625, "mov eax, [rbp+var_5C]"], [626, "movsxd rdx, eax"], [627, "mov rax, [rbp+var_200]"], [628, "add rax, rdx"], [629, "movzx eax, byte ptr [rax]"], [630, "cmp al, 29h "], [631, "jnz short loc_401C4F"], [632, "sub [rbp+var_60], 1"], [633, "add [rbp+var_5C], 1"], [634, "mov eax, [rbp+var_5C]"], [635, "movsxd rdx, eax"], [636, "mov rax, [rbp+var_200]"], [637, "add rax, rdx"], [638, "movzx eax, byte ptr [rax]"], [639, "test al, al"], [640, "jnz loc_401BE5"], [641, "jmp short loc_401C71"], [642, "nop"], [643, "mov eax, [rbp+var_5C]"], [644, "sub eax, 1"], [645, "mov [rbp+var_208], eax"], [646, "mov eax, [rbp+var_208]"], [647, "sub eax, [rbp+var_204]"], [648, "add eax, 1"], [649, "mov [rbp+var_20C], eax"], [650, "mov [rbp+var_61], 0"], [651, "mov [rbp+var_68], 0"], [652, "jmp short loc_401D10"], [653, "mov rdx, cs:ptr"], [654, "mov eax, [rbp+var_68]"], [655, "cdqe"], [656, "imul rax, 1C8h"], [657, "add rax, rdx"], [658, "mov rdi, rax"], [659, "call sub_405AC3"], [660, "cmp [rbp+var_20C], eax"], [661, "jnz short loc_401D0C"], [662, "mov eax, [rbp+var_204]"], [663, "movsxd rdx, eax"], [664, "mov rax, [rbp+var_200]"], [665, "lea rcx, [rdx+rax]"], [666, "mov rdx, cs:ptr"], [667, "mov eax, [rbp+var_68]"], [668, "cdqe"], [669, "imul rax, 1C8h"], [670, "add rax, rdx"], [671, "mov rdi, rax"], [672, "mov eax, [rbp+var_20C]"], [673, "mov edx, eax"], [674, "mov rsi, rcx"], [675, "call sub_405AF7"], [676, "test al, al"], [677, "jz short loc_401D0C"], [678, "mov [rbp+var_61], 1"], [679, "jmp short loc_401D18"], [680, "add [rbp+var_68], 1"], [681, "mov eax, [rbp+var_68]"], [682, "cmp eax, [rbp+var_54]"], [683, "jl short loc_401C9F"], [684, "cmp [rbp+var_61], 0"], [685, "jnz loc_4027E7"], [686, "mov eax, [rbp+var_204]"], [687, "movsxd rdx, eax"], [688, "mov rax, [rbp+var_200]"], [689, "lea rcx, [rdx+rax]"], [690, "mov rdx, cs:ptr"], [691, "mov eax, [rbp+var_54]"], [692, "cdqe"], [693, "imul rax, 1C8h"], [694, "add rax, rdx"], [695, "mov rdi, rax"], [696, "mov eax, [rbp+var_20C]"], [697, "mov edx, eax"], [698, "mov rsi, rcx"], [699, "call sub_405BBE"], [700, "mov eax, [rbp+var_208]"], [701, "movsxd rdx, eax"], [702, "mov rax, [rbp+var_200]"], [703, "add rax, rdx"], [704, "movzx eax, byte ptr [rax]"], [705, "cmp al, 29h "], [706, "jnz short loc_401D9C"], [707, "mov rdx, cs:ptr"], [708, "mov eax, [rbp+var_54]"], [709, "cdqe"], [710, "imul rax, 1C8h"], [711, "add rax, rdx"], [712, "mov dword ptr [rax+40h], 1"], [713, "jmp short loc_401D9C"], [714, "add [rbp+var_5C], 1"], [715, "mov eax, [rbp+var_5C]"], [716, "movsxd rdx, eax"], [717, "mov rax, [rbp+var_200]"], [718, "add rax, rdx"], [719, "movzx eax, byte ptr [rax]"], [720, "cmp al, 20h "], [721, "jz short loc_401D98"], [722, "mov eax, [rbp+var_5C]"], [723, "movsxd rdx, eax"], [724, "mov rax, [rbp+var_200]"], [725, "add rax, rdx"], [726, "movzx eax, byte ptr [rax]"], [727, "cmp al, 9"], [728, "jz short loc_401D98"], [729, "mov eax, [rbp+var_5C]"], [730, "mov [rbp+var_210], eax"], [731, "mov eax, [rbp+var_5C]"], [732, "movsxd rdx, eax"], [733, "mov rax, [rbp+var_200]"], [734, "add rax, rdx"], [735, "movzx eax, byte ptr [rax]"], [736, "test al, al"], [737, "jz short loc_401E01"], [738, "mov eax, [rbp+var_5C]"], [739, "movsxd rdx, eax"], [740, "mov rax, [rbp+var_200]"], [741, "add rax, rdx"], [742, "movzx eax, byte ptr [rax]"], [743, "cmp al, 2Fh "], [744, "jnz short loc_401E1E"], [745, "mov rdx, cs:ptr"], [746, "mov eax, [rbp+var_54]"], [747, "cdqe"], [748, "imul rax, 1C8h"], [749, "add rax, rdx"], [750, "mov dword ptr [rax+40h], 2"], [751, "mov eax, [rbp+var_5C]"], [752, "movsxd rdx, eax"], [753, "mov rax, [rbp+var_200]"], [754, "add rax, rdx"], [755, "movzx eax, byte ptr [rax]"], [756, "cmp al, 22h "], [757, "jnz short loc_401E57"], [758, "mov rdx, cs:ptr"], [759, "mov eax, [rbp+var_54]"], [760, "cdqe"], [761, "imul rax, 1C8h"], [762, "add rax, rdx"], [763, "mov dword ptr [rax+40h], 0Ch"], [764, "jmp loc_4020D1"], [765, "mov eax, [rbp+var_5C]"], [766, "movsxd rdx, eax"], [767, "mov rax, [rbp+var_200]"], [768, "add rax, rdx"], [769, "movzx eax, byte ptr [rax]"], [770, "cmp al, 27h "], [771, "jnz short loc_401E90"], [772, "mov rdx, cs:ptr"], [773, "mov eax, [rbp+var_54]"], [774, "cdqe"], [775, "imul rax, 1C8h"], [776, "add rax, rdx"], [777, "mov dword ptr [rax+40h], 0Bh"], [778, "jmp loc_4020D1"], [779, "mov eax, [rbp+var_5C]"], [780, "movsxd rdx, eax"], [781, "mov rax, [rbp+var_200]"], [782, "add rax, rdx"], [783, "mov edx, 0Fh"], [784, "mov esi, offset aCliteralColor"], [785, "mov rdi, rax"], [786, "call sub_405AF7"], [787, "test al, al"], [788, "jz short loc_401ED8"], [789, "mov rdx, cs:ptr"], [790, "mov eax, [rbp+var_54]"], [791, "cdqe"], [792, "imul rax, 1C8h"], [793, "add rax, rdx"], [794, "mov dword ptr [rax+40h], 0Dh"], [795, "jmp loc_4020D1"], [796, "call ___ctype_b_loc"], [797, "mov rdx, [rax]"], [798, "mov eax, [rbp+var_5C]"], [799, "movsxd rcx, eax"], [800, "mov rax, [rbp+var_200]"], [801, "add rax, rcx"], [802, "movzx eax, byte ptr [rax]"], [803, "movsx rax, al"], [804, "add rax, rax"], [805, "add rax, rdx"], [806, "movzx eax, word ptr [rax]"], [807, "movzx eax, ax"], [808, "and eax, 800h"], [809, "test eax, eax"], [810, "jz loc_4020D1"], [811, "mov [rbp+var_69], 0"], [812, "mov [rbp+var_6A], 1"], [813, "mov [rbp+var_6B], 0"], [814, "jmp loc_401FD2"], [815, "mov eax, [rbp+var_5C]"], [816, "movsxd rdx, eax"], [817, "mov rax, [rbp+var_200]"], [818, "add rax, rdx"], [819, "movzx eax, byte ptr [rax]"], [820, "mov [rbp+var_211], al"], [821, "cmp [rbp+var_211], 2Eh "], [822, "jnz short loc_401F47"], [823, "mov [rbp+var_69], 1"], [824, "cmp [rbp+var_211], 78h "], [825, "jnz short loc_401F54"], [826, "mov [rbp+var_6B], 1"], [827, "call ___ctype_b_loc"], [828, "mov rdx, [rax]"], [829, "movsx rax, [rbp+var_211]"], [830, "add rax, rax"], [831, "add rax, rdx"], [832, "movzx eax, word ptr [rax]"], [833, "movzx eax, ax"], [834, "and eax, 800h"], [835, "test eax, eax"], [836, "jnz short loc_401FCE"], [837, "cmp [rbp+var_211], 60h "], [838, "jle short loc_401F8B"], [839, "cmp [rbp+var_211], 66h "], [840, "jle short loc_401FCE"], [841, "cmp [rbp+var_211], 40h "], [842, "jle short loc_401F9D"], [843, "cmp [rbp+var_211], 46h "], [844, "jle short loc_401FCE"], [845, "cmp [rbp+var_211], 78h "], [846, "jz short loc_401FCE"], [847, "cmp [rbp+var_211], 4Ch "], [848, "jz short loc_401FCE"], [849, "cmp [rbp+var_211], 2Eh "], [850, "jz short loc_401FCE"], [851, "cmp [rbp+var_211], 2Bh "], [852, "jz short loc_401FCE"], [853, "cmp [rbp+var_211], 2Dh "], [854, "jz short loc_401FCE"], [855, "mov [rbp+var_6A], 0"], [856, "add [rbp+var_5C], 1"], [857, "mov eax, [rbp+var_5C]"], [858, "movsxd rdx, eax"], [859, "mov rax, [rbp+var_200]"], [860, "add rax, rdx"], [861, "movzx eax, byte ptr [rax]"], [862, "cmp al, 20h "], [863, "jz short loc_40201B"], [864, "mov eax, [rbp+var_5C]"], [865, "movsxd rdx, eax"], [866, "mov rax, [rbp+var_200]"], [867, "add rax, rdx"], [868, "movzx eax, byte ptr [rax]"], [869, "cmp al, 9"], [870, "jz short loc_40201B"], [871, "mov eax, [rbp+var_5C]"], [872, "movsxd rdx, eax"], [873, "mov rax, [rbp+var_200]"], [874, "add rax, rdx"], [875, "movzx eax, byte ptr [rax]"], [876, "test al, al"], [877, "jnz loc_401F21"], [878, "cmp [rbp+var_6A], 0"], [879, "jz loc_4020D1"], [880, "cmp [rbp+var_69], 0"], [881, "jz short loc_40206C"], [882, "mov eax, [rbp+var_5C]"], [883, "cdqe"], [884, "lea rdx, [rax-1]"], [885, "mov rax, [rbp+var_200]"], [886, "add rax, rdx"], [887, "movzx eax, byte ptr [rax]"], [888, "cmp al, 66h "], [889, "jnz short loc_40204C"], [890, "mov edx, 7"], [891, "jmp short loc_402051"], [892, "mov edx, 9"], [893, "mov rcx, cs:ptr"], [894, "mov eax, [rbp+var_54]"], [895, "cdqe"], [896, "imul rax, 1C8h"], [897, "add rax, rcx"], [898, "mov [rax+40h], edx"], [899, "jmp short loc_4020D1"], [900, "mov eax, [rbp+var_5C]"], [901, "cdqe"], [902, "lea rdx, [rax-1]"], [903, "mov rax, [rbp+var_200]"], [904, "add rax, rdx"], [905, "movzx eax, byte ptr [rax]"], [906, "cmp al, 4Ch "], [907, "jnz short loc_40208D"], [908, "mov edx, 5"], [909, "jmp short loc_402092"], [910, "mov edx, 3"], [911, "mov rcx, cs:ptr"], [912, "mov eax, [rbp+var_54]"], [913, "cdqe"], [914, "imul rax, 1C8h"], [915, "add rax, rcx"], [916, "mov [rax+40h], edx"], [917, "mov rdx, cs:ptr"], [918, "mov eax, [rbp+var_54]"], [919, "cdqe"], [920, "imul rax, 1C8h"], [921, "add rdx, rax"], [922, "movzx eax, [rbp+var_6B]"], [923, "mov [rdx+1C4h], al"], [924, "jmp short loc_4020D1"], [925, "add [rbp+var_5C], 1"], [926, "mov eax, [rbp+var_5C]"], [927, "movsxd rdx, eax"], [928, "mov rax, [rbp+var_200]"], [929, "add rax, rdx"], [930, "movzx eax, byte ptr [rax]"], [931, "cmp al, 5Ch "], [932, "jz short loc_402130"], [933, "mov eax, [rbp+var_5C]"], [934, "movsxd rdx, eax"], [935, "mov rax, [rbp+var_200]"], [936, "add rax, rdx"], [937, "movzx eax, byte ptr [rax]"], [938, "test al, al"], [939, "jz short loc_402130"], [940, "mov eax, [rbp+var_5C]"], [941, "movsxd rdx, eax"], [942, "mov rax, [rbp+var_200]"], [943, "add rax, rdx"], [944, "movzx eax, byte ptr [rax]"], [945, "cmp al, 2Fh "], [946, "jnz short loc_4020CD"], [947, "mov eax, [rbp+var_5C]"], [948, "cdqe"], [949, "lea rdx, [rax+1]"], [950, "mov rax, [rbp+var_200]"], [951, "add rax, rdx"], [952, "movzx eax, byte ptr [rax]"], [953, "cmp al, 2Fh "], [954, "jnz short loc_4020CD"], [955, "mov eax, [rbp+var_5C]"], [956, "sub eax, 1"], [957, "mov [rbp+var_70], eax"], [958, "jmp short loc_40213F"], [959, "sub [rbp+var_70], 1"], [960, "mov eax, [rbp+var_70]"], [961, "movsxd rdx, eax"], [962, "mov rax, [rbp+var_200]"], [963, "add rax, rdx"], [964, "movzx eax, byte ptr [rax]"], [965, "cmp al, 20h "], [966, "jz short loc_40213B"], [967, "mov eax, [rbp+var_70]"], [968, "movsxd rdx, eax"], [969, "mov rax, [rbp+var_200]"], [970, "add rax, rdx"], [971, "movzx eax, byte ptr [rax]"], [972, "cmp al, 9"], [973, "jz short loc_40213B"], [974, "mov rdx, cs:ptr"], [975, "mov eax, [rbp+var_54]"], [976, "cdqe"], [977, "imul rax, 1C8h"], [978, "add rax, rdx"], [979, "mov eax, [rax+40h]"], [980, "cmp eax, 5"], [981, "jz short loc_4021A9"], [982, "mov rdx, cs:ptr"], [983, "mov eax, [rbp+var_54]"], [984, "cdqe"], [985, "imul rax, 1C8h"], [986, "add rax, rdx"], [987, "mov eax, [rax+40h]"], [988, "cmp eax, 7"], [989, "jnz short loc_4021AD"], [990, "sub [rbp+var_70], 1"], [991, "mov eax, [rbp+var_70]"], [992, "sub eax, [rbp+var_210]"], [993, "add eax, 1"], [994, "mov [rbp+var_74], eax"], [995, "cmp [rbp+var_74], 0FFh"], [996, "jle short loc_4021CC"], [997, "mov [rbp+var_74], 0FFh"], [998, "cmp [rbp+var_74], 0"], [999, "jle short loc_40220E"], [1000, "mov eax, [rbp+var_74]"], [1001, "mov edx, [rbp+var_210]"], [1002, "movsxd rcx, edx"], [1003, "mov rdx, [rbp+var_200]"], [1004, "lea rsi, [rcx+rdx]"], [1005, "mov rcx, cs:ptr"], [1006, "mov edx, [rbp+var_54]"], [1007, "movsxd rdx, edx"], [1008, "imul rdx, 1C8h"], [1009, "add rdx, rcx"], [1010, "lea rcx, [rdx+44h]"], [1011, "mov edx, eax"], [1012, "mov rdi, rcx"], [1013, "call sub_405BBE"], [1014, "mov eax, [rbp+var_5C]"], [1015, "movsxd rdx, eax"], [1016, "mov rax, [rbp+var_200]"], [1017, "add rax, rdx"], [1018, "movzx eax, byte ptr [rax]"], [1019, "cmp al, 2Fh "], [1020, "jnz loc_40230F"], [1021, "mov eax, [rbp+var_5C]"], [1022, "cdqe"], [1023, "lea rdx, [rax+1]"], [1024, "mov rax, [rbp+var_200]"], [1025, "add rax, rdx"], [1026, "movzx eax, byte ptr [rax]"], [1027, "cmp al, 2Fh "], [1028, "jnz loc_40230F"], [1029, "add [rbp+var_5C], 2"], [1030, "jmp short loc_402251"], [1031, "add [rbp+var_5C], 1"], [1032, "mov eax, [rbp+var_5C]"], [1033, "movsxd rdx, eax"], [1034, "mov rax, [rbp+var_200]"], [1035, "add rax, rdx"], [1036, "movzx eax, byte ptr [rax]"], [1037, "cmp al, 20h "], [1038, "jz short loc_40224D"], [1039, "mov eax, [rbp+var_5C]"], [1040, "mov [rbp+var_218], eax"], [1041, "jmp short loc_402277"], [1042, "add [rbp+var_5C], 1"], [1043, "mov eax, [rbp+var_5C]"], [1044, "movsxd rdx, eax"], [1045, "mov rax, [rbp+var_200]"], [1046, "add rax, rdx"], [1047, "movzx eax, byte ptr [rax]"], [1048, "cmp al, 5Ch "], [1049, "jz short loc_4022A5"], [1050, "mov eax, [rbp+var_5C]"], [1051, "movsxd rdx, eax"], [1052, "mov rax, [rbp+var_200]"], [1053, "add rax, rdx"], [1054, "movzx eax, byte ptr [rax]"], [1055, "test al, al"], [1056, "jnz short loc_402273"], [1057, "mov eax, [rbp+var_5C]"], [1058, "sub eax, 1"], [1059, "mov [rbp+var_21C], eax"], [1060, "mov eax, [rbp+var_21C]"], [1061, "sub eax, [rbp+var_218]"], [1062, "add eax, 1"], [1063, "mov [rbp+var_78], eax"], [1064, "cmp [rbp+var_78], 7Fh"], [1065, "jle short loc_4022D0"], [1066, "mov [rbp+var_78], 7Fh"], [1067, "mov eax, [rbp+var_78]"], [1068, "mov edx, [rbp+var_218]"], [1069, "movsxd rcx, edx"], [1070, "mov rdx, [rbp+var_200]"], [1071, "lea rsi, [rcx+rdx]"], [1072, "mov rcx, cs:ptr"], [1073, "mov edx, [rbp+var_54]"], [1074, "movsxd rdx, edx"], [1075, "imul rdx, 1C8h"], [1076, "add rdx, rcx"], [1077, "lea rcx, [rdx+144h]"], [1078, "mov edx, eax"], [1079, "mov rdi, rcx"], [1080, "call sub_405BBE"], [1081, "mov rdx, cs:ptr"], [1082, "mov eax, [rbp+var_54]"], [1083, "cdqe"], [1084, "imul rax, 1C8h"], [1085, "add rax, rdx"], [1086, "mov eax, [rax+40h]"], [1087, "test eax, eax"], [1088, "jnz loc_4027E1"], [1089, "mov [rbp+var_7C], 0"], [1090, "mov [rbp+var_7D], 1"], [1091, "mov rdx, cs:ptr"], [1092, "mov eax, [rbp+var_54]"], [1093, "cdqe"], [1094, "imul rax, 1C8h"], [1095, "add rax, rdx"], [1096, "add rax, 44h "], [1097, "mov [rbp+var_228], rax"], [1098, "mov [rbp+var_84], 0"], [1099, "jmp loc_40276A"], [1100, "mov edx, [rbp+var_84]"], [1101, "mov rax, [rbp+var_228]"], [1102, "add rax, rdx"], [1103, "movzx eax, byte ptr [rax]"], [1104, "mov [rbp+var_85], al"], [1105, "cmp [rbp+var_85], 28h "], [1106, "jz loc_402762"], [1107, "cmp [rbp+var_85], 29h "], [1108, "jz loc_402762"], [1109, "cmp [rbp+var_85], 2Bh "], [1110, "jz loc_402762"], [1111, "cmp [rbp+var_85], 2Dh "], [1112, "jz loc_402762"], [1113, "cmp [rbp+var_85], 2Ah "], [1114, "jz loc_402762"], [1115, "cmp [rbp+var_85], 2Fh "], [1116, "jz loc_402762"], [1117, "cmp [rbp+var_85], 20h "], [1118, "jz loc_402762"], [1119, "cmp [rbp+var_85], 9"], [1120, "jz loc_402762"], [1121, "call ___ctype_b_loc"], [1122, "mov rdx, [rax]"], [1123, "movsx rax, [rbp+var_85]"], [1124, "add rax, rax"], [1125, "add rax, rdx"], [1126, "movzx eax, word ptr [rax]"], [1127, "movzx eax, ax"], [1128, "and eax, 800h"], [1129, "test eax, eax"], [1130, "jz loc_4025B4"], [1131, "mov [rbp+var_86], 1"], [1132, "mov [rbp+var_87], 0"], [1133, "jmp loc_4024D7"], [1134, "cmp [rbp+var_85], 2Eh "], [1135, "jnz short loc_402438"], [1136, "mov [rbp+var_87], 1"], [1137, "call ___ctype_b_loc"], [1138, "mov rdx, [rax]"], [1139, "movsx rax, [rbp+var_85]"], [1140, "add rax, rax"], [1141, "add rax, rdx"], [1142, "movzx eax, word ptr [rax]"], [1143, "movzx eax, ax"], [1144, "and eax, 800h"], [1145, "test eax, eax"], [1146, "jnz short loc_4024B7"], [1147, "cmp [rbp+var_85], 60h "], [1148, "jle short loc_40246F"], [1149, "cmp [rbp+var_85], 66h "], [1150, "jle short loc_4024B7"], [1151, "cmp [rbp+var_85], 40h "], [1152, "jle short loc_402481"], [1153, "cmp [rbp+var_85], 46h "], [1154, "jle short loc_4024B7"], [1155, "cmp [rbp+var_85], 78h "], [1156, "jz short loc_4024B7"], [1157, "cmp [rbp+var_85], 4Ch "], [1158, "jz short loc_4024B7"], [1159, "cmp [rbp+var_85], 2Eh "], [1160, "jz short loc_4024B7"], [1161, "cmp [rbp+var_85], 2Bh "], [1162, "jz short loc_4024B7"], [1163, "cmp [rbp+var_85], 2Dh "], [1164, "jz short loc_4024B7"], [1165, "mov [rbp+var_86], 0"], [1166, "jmp short loc_40251A"], [1167, "add [rbp+var_84], 1"], [1168, "mov edx, [rbp+var_84]"], [1169, "mov rax, [rbp+var_228]"], [1170, "add rax, rdx"], [1171, "movzx eax, byte ptr [rax]"], [1172, "mov [rbp+var_85], al"], [1173, "cmp [rbp+var_85], 28h "], [1174, "jz short loc_40251A"], [1175, "cmp [rbp+var_85], 29h "], [1176, "jz short loc_40251A"], [1177, "cmp [rbp+var_85], 2Ah "], [1178, "jz short loc_40251A"], [1179, "cmp [rbp+var_85], 2Fh "], [1180, "jz short loc_40251A"], [1181, "cmp [rbp+var_85], 20h "], [1182, "jz short loc_40251A"], [1183, "cmp [rbp+var_85], 9"], [1184, "jz short loc_40251A"], [1185, "cmp [rbp+var_85], 0"], [1186, "jnz loc_402428"], [1187, "cmp [rbp+var_86], 0"], [1188, "jz loc_4025AB"], [1189, "cmp [rbp+var_87], 0"], [1190, "jz short loc_402560"], [1191, "mov eax, [rbp+var_84]"], [1192, "sub eax, 1"], [1193, "mov edx, eax"], [1194, "mov rax, [rbp+var_228]"], [1195, "add rax, rdx"], [1196, "movzx eax, byte ptr [rax]"], [1197, "cmp al, 66h "], [1198, "jnz short loc_402553"], [1199, "mov eax, 8"], [1200, "jmp short loc_402558"], [1201, "mov eax, 0Ah"], [1202, "mov [rbp+var_8C], eax"], [1203, "jmp short loc_40258E"], [1204, "mov eax, [rbp+var_84]"], [1205, "sub eax, 1"], [1206, "mov edx, eax"], [1207, "mov rax, [rbp+var_228]"], [1208, "add rax, rdx"], [1209, "movzx eax, byte ptr [rax]"], [1210, "cmp al, 4Ch "], [1211, "jnz short loc_402583"], [1212, "mov eax, 6"], [1213, "jmp short loc_402588"], [1214, "mov eax, 4"], [1215, "mov [rbp+var_8C], eax"], [1216, "mov eax, [rbp+var_8C]"], [1217, "cmp eax, [rbp+var_7C]"], [1218, "jle loc_402763"], [1219, "mov eax, [rbp+var_8C]"], [1220, "mov [rbp+var_7C], eax"], [1221, "jmp loc_402763"], [1222, "mov [rbp+var_7D], 0"], [1223, "jmp loc_402785"], [1224, "mov eax, [rbp+var_84]"], [1225, "mov [rbp+var_22C], eax"], [1226, "jmp short loc_4025E2"], [1227, "add [rbp+var_84], 1"], [1228, "mov edx, [rbp+var_84]"], [1229, "mov rax, [rbp+var_228]"], [1230, "add rax, rdx"], [1231, "movzx eax, byte ptr [rax]"], [1232, "mov [rbp+var_85], al"], [1233, "cmp [rbp+var_85], 0"], [1234, "jz short loc_40262A"], [1235, "cmp [rbp+var_85], 20h "], [1236, "jz short loc_40262A"], [1237, "cmp [rbp+var_85], 28h "], [1238, "jz short loc_40262A"], [1239, "cmp [rbp+var_85], 29h "], [1240, "jz short loc_40262A"], [1241, "cmp [rbp+var_85], 2Bh "], [1242, "jz short loc_40262A"], [1243, "cmp [rbp+var_85], 2Dh "], [1244, "jz short loc_40262A"], [1245, "cmp [rbp+var_85], 2Ah "], [1246, "jz short loc_40262A"], [1247, "cmp [rbp+var_85], 2Fh "], [1248, "jnz short loc_4025C2"], [1249, "mov eax, [rbp+var_84]"], [1250, "mov [rbp+var_230], eax"], [1251, "mov eax, [rbp+var_230]"], [1252, "sub eax, [rbp+var_22C]"], [1253, "mov [rbp+var_234], eax"], [1254, "mov [rbp+var_8D], 0"], [1255, "mov [rbp+var_94], 0"], [1256, "jmp loc_40273C"], [1257, "mov eax, [rbp+var_234]"], [1258, "mov edx, [rbp+var_22C]"], [1259, "movsxd rcx, edx"], [1260, "mov rdx, [rbp+var_228]"], [1261, "add rcx, rdx"], [1262, "mov rsi, cs:ptr"], [1263, "mov edx, [rbp+var_94]"], [1264, "movsxd rdx, edx"], [1265, "imul rdx, 1C8h"], [1266, "add rdx, rsi"], [1267, "mov rdi, rdx"], [1268, "mov edx, eax"], [1269, "mov rsi, rcx"], [1270, "call sub_405AF7"], [1271, "test al, al"], [1272, "jz loc_402735"], [1273, "mov rdx, cs:ptr"], [1274, "mov eax, [rbp+var_94]"], [1275, "cdqe"], [1276, "imul rax, 1C8h"], [1277, "add rax, rdx"], [1278, "mov eax, [rax+40h]"], [1279, "cmp eax, 2"], [1280, "jle loc_40274D"], [1281, "mov rdx, cs:ptr"], [1282, "mov eax, [rbp+var_94]"], [1283, "cdqe"], [1284, "imul rax, 1C8h"], [1285, "add rax, rdx"], [1286, "mov eax, [rax+40h]"], [1287, "cmp eax, 0Ah"], [1288, "jg short loc_40274D"], [1289, "mov rdx, cs:ptr"], [1290, "mov eax, [rbp+var_94]"], [1291, "cdqe"], [1292, "imul rax, 1C8h"], [1293, "add rax, rdx"], [1294, "mov eax, [rax+40h]"], [1295, "cmp [rbp+var_7C], eax"], [1296, "jge short loc_40272C"], [1297, "mov rdx, cs:ptr"], [1298, "mov eax, [rbp+var_94]"], [1299, "cdqe"], [1300, "imul rax, 1C8h"], [1301, "add rax, rdx"], [1302, "mov eax, [rax+40h]"], [1303, "mov [rbp+var_7C], eax"], [1304, "mov [rbp+var_8D], 1"], [1305, "jmp short loc_40274D"], [1306, "add [rbp+var_94], 1"], [1307, "mov eax, [rbp+var_94]"], [1308, "cmp eax, [rbp+var_54]"], [1309, "jl loc_40265E"], [1310, "jmp short loc_40274E"], [1311, "nop"], [1312, "movzx eax, [rbp+var_8D]"], [1313, "xor eax, 1"], [1314, "test al, al"], [1315, "jz short loc_402763"], [1316, "mov [rbp+var_7D], 0"], [1317, "jmp short loc_402785"], [1318, "nop"], [1319, "add [rbp+var_84], 1"], [1320, "mov rax, [rbp+var_228]"], [1321, "mov rdi, rax"], [1322, "call sub_405AC3"], [1323, "cmp [rbp+var_84], eax"], [1324, "jb loc_40236B"], [1325, "cmp [rbp+var_7D], 0"], [1326, "jz short loc_4027E1"], [1327, "cmp [rbp+var_7C], 3"], [1328, "jnz short loc_40279A"], [1329, "mov [rbp+var_7C], 4"], [1330, "jmp short loc_4027C5"], [1331, "cmp [rbp+var_7C], 5"], [1332, "jnz short loc_4027A9"], [1333, "mov [rbp+var_7C], 6"], [1334, "jmp short loc_4027C5"], [1335, "cmp [rbp+var_7C], 7"], [1336, "jnz short loc_4027B8"], [1337, "mov [rbp+var_7C], 8"], [1338, "jmp short loc_4027C5"], [1339, "cmp [rbp+var_7C], 9"], [1340, "jnz short loc_4027C5"], [1341, "mov [rbp+var_7C], 0Ah"], [1342, "mov rdx, cs:ptr"], [1343, "mov eax, [rbp+var_54]"], [1344, "cdqe"], [1345, "imul rax, 1C8h"], [1346, "add rdx, rax"], [1347, "mov eax, [rbp+var_7C]"], [1348, "mov [rdx+40h], eax"], [1349, "add [rbp+var_54], 1"], [1350, "jmp short loc_4027E8"], [1351, "nop"], [1352, "add [rbp+var_58], 1"], [1353, "mov eax, cs:dword_40D0E0"], [1354, "cmp [rbp+var_58], eax"], [1355, "jl loc_401B29"], [1356, "mov eax, [rbp+var_54]"], [1357, "mov cs:dword_40D0E0, eax"], [1358, "mov rax, [rbp+var_148]"], [1359, "mov rdi, rax"], [1360, "call _free"], [1361, "mov esi, 40C4h"], [1362, "mov edi, 40h "], [1363, "call _calloc"], [1364, "mov cs:qword_40D100, rax"], [1365, "mov [rbp+var_98], 0"], [1366, "jmp loc_4036A1"], [1367, "mov eax, [rbp+var_98]"], [1368, "cdqe"], [1369, "lea rdx, ds:0[rax*4]"], [1370, "mov rax, [rbp+var_150]"], [1371, "add rax, rdx"], [1372, "mov eax, [rax]"], [1373, "cdqe"], [1374, "lea rdx, ds:0[rax*8]"], [1375, "mov rax, [rbp+var_140]"], [1376, "add rax, rdx"], [1377, "mov [rbp+var_1D0], rax"], [1378, "mov rdx, cs:qword_40D100"], [1379, "mov eax, [rbp+var_98]"], [1380, "cdqe"], [1381, "imul rax, 40C4h"], [1382, "add rax, rdx"], [1383, "lea rdx, [rax+40h]"], [1384, "mov rax, [rbp+var_1D0]"], [1385, "sub rax, 8"], [1386, "mov rax, [rax]"], [1387, "mov rsi, rdx"], [1388, "mov rdi, rax"], [1389, "call sub_40594D"], [1390, "mov [rbp+var_1D4], 0Fh"], [1391, "mov eax, [rbp+var_1D4]"], [1392, "mov [rbp+var_9C], eax"], [1393, "jmp loc_40298B"], [1394, "mov rax, [rbp+var_1D0]"], [1395, "mov rdx, [rax]"], [1396, "mov eax, [rbp+var_9C]"], [1397, "cdqe"], [1398, "add rax, rdx"], [1399, "movzx eax, byte ptr [rax]"], [1400, "cmp al, 7Bh "], [1401, "jz short loc_4028FC"], [1402, "mov rax, [rbp+var_1D0]"], [1403, "mov rdx, [rax]"], [1404, "mov eax, [rbp+var_9C]"], [1405, "cdqe"], [1406, "add rax, rdx"], [1407, "movzx eax, byte ptr [rax]"], [1408, "cmp al, 20h "], [1409, "jnz loc_402984"], [1410, "mov eax, [rbp+var_9C]"], [1411, "sub eax, [rbp+var_1D4]"], [1412, "mov [rbp+var_A0], eax"], [1413, "jmp short loc_402917"], [1414, "sub [rbp+var_A0], 1"], [1415, "mov rax, [rbp+var_1D0]"], [1416, "mov rdx, [rax]"], [1417, "mov ecx, [rbp+var_1D4]"], [1418, "mov eax, [rbp+var_A0]"], [1419, "add eax, ecx"], [1420, "cdqe"], [1421, "sub rax, 1"], [1422, "add rax, rdx"], [1423, "movzx eax, byte ptr [rax]"], [1424, "cmp al, 20h "], [1425, "jz short loc_402910"], [1426, "mov eax, [rbp+var_A0]"], [1427, "mov rdx, [rbp+var_1D0]"], [1428, "mov rcx, [rdx]"], [1429, "mov edx, [rbp+var_1D4]"], [1430, "movsxd rdx, edx"], [1431, "add rcx, rdx"], [1432, "mov rsi, cs:qword_40D100"], [1433, "mov edx, [rbp+var_98]"], [1434, "movsxd rdx, edx"], [1435, "imul rdx, 40C4h"], [1436, "add rdx, rsi"], [1437, "mov rdi, rdx"], [1438, "mov edx, eax"], [1439, "mov rsi, rcx"], [1440, "call sub_405BBE"], [1441, "jmp short loc_4029A0"], [1442, "add [rbp+var_9C], 1"], [1443, "mov eax, [rbp+var_1D4]"], [1444, "add eax, 3Fh "], [1445, "cmp [rbp+var_9C], eax"], [1446, "jle loc_4028C0"], [1447, "mov [rbp+var_A4], 1"], [1448, "jmp loc_4035C9"], [1449, "mov eax, [rbp+var_A4]"], [1450, "cdqe"], [1451, "lea rdx, ds:0[rax*8]"], [1452, "mov rax, [rbp+var_1D0]"], [1453, "add rax, rdx"], [1454, "mov rax, [rax]"], [1455, "movzx eax, byte ptr [rax]"], [1456, "cmp al, 20h "], [1457, "jz loc_4035C2"], [1458, "mov eax, [rbp+var_A4]"], [1459, "cdqe"], [1460, "lea rdx, ds:0[rax*8]"], [1461, "mov rax, [rbp+var_1D0]"], [1462, "add rax, rdx"], [1463, "mov rax, [rax]"], [1464, "movzx eax, byte ptr [rax]"], [1465, "test al, al"], [1466, "jz loc_4035C2"], [1467, "mov eax, [rbp+var_A4]"], [1468, "cdqe"], [1469, "lea rdx, ds:0[rax*8]"], [1470, "mov rax, [rbp+var_1D0]"], [1471, "add rax, rdx"], [1472, "mov rax, [rax]"], [1473, "mov [rbp+var_1E0], rax"], [1474, "mov [rbp+var_A8], 0"], [1475, "jmp short loc_402A36"], [1476, "add [rbp+var_A8], 1"], [1477, "mov eax, [rbp+var_A8]"], [1478, "movsxd rdx, eax"], [1479, "mov rax, [rbp+var_1E0]"], [1480, "add rax, rdx"], [1481, "movzx eax, byte ptr [rax]"], [1482, "cmp al, 3Bh "], [1483, "jnz short loc_402A2F"], [1484, "mov rax, [rbp+var_1E0]"], [1485, "movzx eax, byte ptr [rax]"], [1486, "cmp al, 2Fh "], [1487, "jz loc_4035C2"], [1488, "mov rax, [rbp+var_1E0]"], [1489, "mov edx, 6"], [1490, "mov esi, offset aStruct"], [1491, "mov rdi, rax"], [1492, "call sub_405AF7"], [1493, "xor eax, 1"], [1494, "test al, al"], [1495, "jz loc_4035C2"], [1496, "mov rdx, cs:qword_40D100"], [1497, "mov eax, [rbp+var_98]"], [1498, "cdqe"], [1499, "imul rax, 40C4h"], [1500, "lea rcx, [rdx+rax]"], [1501, "mov rdx, cs:qword_40D100"], [1502, "mov eax, [rbp+var_98]"], [1503, "cdqe"], [1504, "imul rax, 40C4h"], [1505, "add rax, rdx"], [1506, "mov eax, [rax+0C0h]"], [1507, "cdqe"], [1508, "add rax, 43h "], [1509, "shl rax, 6"], [1510, "add rax, rcx"], [1511, "lea rcx, [rax+4]"], [1512, "mov rdx, cs:qword_40D100"], [1513, "mov eax, [rbp+var_98]"], [1514, "cdqe"], [1515, "imul rax, 40C4h"], [1516, "lea rsi, [rdx+rax]"], [1517, "mov rdx, cs:qword_40D100"], [1518, "mov eax, [rbp+var_98]"], [1519, "cdqe"], [1520, "imul rax, 40C4h"], [1521, "add rax, rdx"], [1522, "mov eax, [rax+0C0h]"], [1523, "cdqe"], [1524, "add rax, 3"], [1525, "shl rax, 6"], [1526, "add rax, rsi"], [1527, "lea rdx, [rax+4]"], [1528, "mov esi, [rbp+var_A8]"], [1529, "mov rax, [rbp+var_1E0]"], [1530, "mov rdi, rax"], [1531, "call sub_405806"], [1532, "mov rdx, cs:qword_40D100"], [1533, "mov eax, [rbp+var_98]"], [1534, "cdqe"], [1535, "imul rax, 40C4h"], [1536, "lea rcx, [rdx+rax]"], [1537, "mov rdx, cs:qword_40D100"], [1538, "mov eax, [rbp+var_98]"], [1539, "cdqe"], [1540, "imul rax, 40C4h"], [1541, "add rax, rdx"], [1542, "mov eax, [rax+0C0h]"], [1543, "cdqe"], [1544, "shl rax, 7"], [1545, "add rax, 20C0h"], [1546, "add rax, rcx"], [1547, "lea rdx, [rax+4]"], [1548, "mov eax, [rbp+var_A8]"], [1549, "movsxd rcx, eax"], [1550, "mov rax, [rbp+var_1E0]"], [1551, "add rax, rcx"], [1552, "mov rsi, rdx"], [1553, "mov rdi, rax"], [1554, "call sub_40594D"], [1555, "mov rdx, cs:qword_40D100"], [1556, "mov eax, [rbp+var_98]"], [1557, "cdqe"], [1558, "imul rax, 40C4h"], [1559, "add rax, rdx"], [1560, "mov edx, [rax+0C0h]"], [1561, "add edx, 1"], [1562, "mov [rax+0C0h], edx"], [1563, "mov [rbp+var_AC], 0"], [1564, "mov rdx, cs:qword_40D100"], [1565, "mov eax, [rbp+var_98]"], [1566, "cdqe"], [1567, "imul rax, 40C4h"], [1568, "add rax, rdx"], [1569, "mov eax, [rax+0C0h]"], [1570, "sub eax, 1"], [1571, "mov [rbp+var_1E4], eax"], [1572, "mov [rbp+var_B0], 0"], [1573, "jmp short loc_402C4C"], [1574, "mov rdx, cs:qword_40D100"], [1575, "mov eax, [rbp+var_98]"], [1576, "cdqe"], [1577, "imul rax, 40C4h"], [1578, "lea rcx, [rdx+rax]"], [1579, "mov edx, [rbp+var_B0]"], [1580, "mov eax, [rbp+var_1E4]"], [1581, "cdqe"], [1582, "shl rax, 6"], [1583, "add rax, rcx"], [1584, "add rax, rdx"], [1585, "add rax, 10C4h"], [1586, "movzx eax, byte ptr [rax]"], [1587, "cmp al, 2Ch "], [1588, "jnz short loc_402C45"], [1589, "add [rbp+var_AC], 1"], [1590, "add [rbp+var_B0], 1"], [1591, "mov rdx, cs:qword_40D100"], [1592, "mov eax, [rbp+var_98]"], [1593, "cdqe"], [1594, "imul rax, 40C4h"], [1595, "add rdx, rax"], [1596, "mov eax, [rbp+var_1E4]"], [1597, "cdqe"], [1598, "add rax, 43h "], [1599, "shl rax, 6"], [1600, "add rax, rdx"], [1601, "add rax, 4"], [1602, "mov rdi, rax"], [1603, "call sub_405AC3"], [1604, "cmp [rbp+var_B0], eax"], [1605, "jb loc_402BFF"], [1606, "cmp [rbp+var_AC], 0"], [1607, "jle loc_40308B"], [1608, "mov [rbp+var_B4], 0FFFFFFFFh"], [1609, "mov [rbp+var_BC], 0"], [1610, "jmp loc_403006"], [1611, "mov rdx, cs:qword_40D100"], [1612, "mov eax, [rbp+var_98]"], [1613, "cdqe"], [1614, "imul rax, 40C4h"], [1615, "lea rcx, [rdx+rax]"], [1616, "mov edx, [rbp+var_BC]"], [1617, "mov eax, [rbp+var_1E4]"], [1618, "cdqe"], [1619, "shl rax, 6"], [1620, "add rax, rcx"], [1621, "add rax, rdx"], [1622, "add rax, 10C4h"], [1623, "movzx eax, byte ptr [rax]"], [1624, "mov [rbp+var_1E5], al"], [1625, "cmp [rbp+var_1E5], 0"], [1626, "setz al"], [1627, "mov [rbp+var_1E6], al"], [1628, "cmp [rbp+var_1E5], 2Ch "], [1629, "jz short loc_402D1D"], [1630, "cmp [rbp+var_1E6], 0"], [1631, "jz loc_402FFF"], [1632, "cmp [rbp+var_B4], 0FFFFFFFFh"], [1633, "jnz short loc_402D37"], [1634, "mov eax, [rbp+var_BC]"], [1635, "mov [rbp+var_B4], eax"], [1636, "jmp loc_402F96"], [1637, "mov edx, [rbp+var_B8]"], [1638, "mov eax, [rbp+var_BC]"], [1639, "sub eax, edx"], [1640, "mov [rbp+var_1EC], eax"], [1641, "mov eax, [rbp+var_1EC]"], [1642, "mov rcx, cs:qword_40D100"], [1643, "mov edx, [rbp+var_98]"], [1644, "movsxd rdx, edx"], [1645, "imul rdx, 40C4h"], [1646, "lea rsi, [rcx+rdx]"], [1647, "mov edx, [rbp+var_B8]"], [1648, "movsxd rcx, edx"], [1649, "mov edx, [rbp+var_1E4]"], [1650, "movsxd rdx, edx"], [1651, "shl rdx, 6"], [1652, "add rdx, rcx"], [1653, "add rdx, 10C0h"], [1654, "add rdx, rsi"], [1655, "lea rsi, [rdx+4]"], [1656, "mov rcx, cs:qword_40D100"], [1657, "mov edx, [rbp+var_98]"], [1658, "movsxd rdx, edx"], [1659, "imul rdx, 40C4h"], [1660, "lea rdi, [rcx+rdx]"], [1661, "mov rcx, cs:qword_40D100"], [1662, "mov edx, [rbp+var_98]"], [1663, "movsxd rdx, edx"], [1664, "imul rdx, 40C4h"], [1665, "add rdx, rcx"], [1666, "mov edx, [rdx+0C0h]"], [1667, "movsxd rdx, edx"], [1668, "add rdx, 43h "], [1669, "shl rdx, 6"], [1670, "add rdx, rdi"], [1671, "lea rcx, [rdx+4]"], [1672, "mov edx, eax"], [1673, "mov rdi, rcx"], [1674, "call sub_405BBE"], [1675, "mov rdx, cs:qword_40D100"], [1676, "mov eax, [rbp+var_98]"], [1677, "cdqe"], [1678, "imul rax, 40C4h"], [1679, "add rdx, rax"], [1680, "mov eax, [rbp+var_1E4]"], [1681, "cdqe"], [1682, "add rax, 3"], [1683, "shl rax, 6"], [1684, "add rax, rdx"], [1685, "add rax, 4"], [1686, "mov rdi, rax"], [1687, "call sub_405AC3"], [1688, "mov edx, eax"], [1689, "mov rcx, cs:qword_40D100"], [1690, "mov eax, [rbp+var_98]"], [1691, "cdqe"], [1692, "imul rax, 40C4h"], [1693, "add rcx, rax"], [1694, "mov eax, [rbp+var_1E4]"], [1695, "cdqe"], [1696, "add rax, 3"], [1697, "shl rax, 6"], [1698, "add rax, rcx"], [1699, "lea rcx, [rax+4]"], [1700, "mov rsi, cs:qword_40D100"], [1701, "mov eax, [rbp+var_98]"], [1702, "cdqe"], [1703, "imul rax, 40C4h"], [1704, "lea rdi, [rsi+rax]"], [1705, "mov rsi, cs:qword_40D100"], [1706, "mov eax, [rbp+var_98]"], [1707, "cdqe"], [1708, "imul rax, 40C4h"], [1709, "add rax, rsi"], [1710, "mov eax, [rax+0C0h]"], [1711, "cdqe"], [1712, "add rax, 3"], [1713, "shl rax, 6"], [1714, "add rax, rdi"], [1715, "add rax, 4"], [1716, "mov rsi, rcx"], [1717, "mov rdi, rax"], [1718, "call sub_405BBE"], [1719, "mov rdx, cs:qword_40D100"], [1720, "mov eax, [rbp+var_98]"], [1721, "cdqe"], [1722, "imul rax, 40C4h"], [1723, "add rdx, rax"], [1724, "mov eax, [rbp+var_1E4]"], [1725, "cdqe"], [1726, "shl rax, 7"], [1727, "add rax, 20C0h"], [1728, "add rax, rdx"], [1729, "add rax, 4"], [1730, "mov rdi, rax"], [1731, "call sub_405AC3"], [1732, "mov edx, eax"], [1733, "mov rcx, cs:qword_40D100"], [1734, "mov eax, [rbp+var_98]"], [1735, "cdqe"], [1736, "imul rax, 40C4h"], [1737, "add rcx, rax"], [1738, "mov eax, [rbp+var_1E4]"], [1739, "cdqe"], [1740, "shl rax, 7"], [1741, "add rax, 20C0h"], [1742, "add rax, rcx"], [1743, "lea rcx, [rax+4]"], [1744, "mov rsi, cs:qword_40D100"], [1745, "mov eax, [rbp+var_98]"], [1746, "cdqe"], [1747, "imul rax, 40C4h"], [1748, "lea rdi, [rsi+rax]"], [1749, "mov rsi, cs:qword_40D100"], [1750, "mov eax, [rbp+var_98]"], [1751, "cdqe"], [1752, "imul rax, 40C4h"], [1753, "add rax, rsi"], [1754, "mov eax, [rax+0C0h]"], [1755, "cdqe"], [1756, "shl rax, 7"], [1757, "add rax, 20C0h"], [1758, "add rax, rdi"], [1759, "add rax, 4"], [1760, "mov rsi, rcx"], [1761, "mov rdi, rax"], [1762, "call sub_405BBE"], [1763, "mov rdx, cs:qword_40D100"], [1764, "mov eax, [rbp+var_98]"], [1765, "cdqe"], [1766, "imul rax, 40C4h"], [1767, "add rax, rdx"], [1768, "mov edx, [rax+0C0h]"], [1769, "add edx, 1"], [1770, "mov [rax+0C0h], edx"], [1771, "movzx eax, [rbp+var_1E6]"], [1772, "xor eax, 1"], [1773, "test al, al"], [1774, "jz short loc_402FFF"], [1775, "add [rbp+var_BC], 1"], [1776, "jmp short loc_402FB4"], [1777, "add [rbp+var_BC], 1"], [1778, "mov rdx, cs:qword_40D100"], [1779, "mov eax, [rbp+var_98]"], [1780, "cdqe"], [1781, "imul rax, 40C4h"], [1782, "lea rcx, [rdx+rax]"], [1783, "mov edx, [rbp+var_BC]"], [1784, "mov eax, [rbp+var_1E4]"], [1785, "cdqe"], [1786, "shl rax, 6"], [1787, "add rax, rcx"], [1788, "add rax, rdx"], [1789, "add rax, 10C4h"], [1790, "movzx eax, byte ptr [rax]"], [1791, "cmp al, 20h "], [1792, "jz short loc_402FAD"], [1793, "mov eax, [rbp+var_BC]"], [1794, "mov [rbp+var_B8], eax"], [1795, "add [rbp+var_BC], 1"], [1796, "mov rdx, cs:qword_40D100"], [1797, "mov eax, [rbp+var_98]"], [1798, "cdqe"], [1799, "imul rax, 40C4h"], [1800, "add rdx, rax"], [1801, "mov eax, [rbp+var_1E4]"], [1802, "cdqe"], [1803, "add rax, 43h "], [1804, "shl rax, 6"], [1805, "add rax, rdx"], [1806, "add rax, 4"], [1807, "mov rdi, rax"], [1808, "call sub_405AC3"], [1809, "add eax, 1"], [1810, "cmp [rbp+var_BC], eax"], [1811, "jb loc_402CB6"], [1812, "mov rdx, cs:qword_40D100"], [1813, "mov eax, [rbp+var_98]"], [1814, "cdqe"], [1815, "imul rax, 40C4h"], [1816, "lea rcx, [rdx+rax]"], [1817, "mov eax, [rbp+var_B4]"], [1818, "movsxd rdx, eax"], [1819, "mov eax, [rbp+var_1E4]"], [1820, "cdqe"], [1821, "shl rax, 6"], [1822, "add rax, rcx"], [1823, "add rax, rdx"], [1824, "add rax, 10C4h"], [1825, "mov byte ptr [rax], 0"], [1826, "mov [rbp+var_AC], 0"], [1827, "mov rdx, cs:qword_40D100"], [1828, "mov eax, [rbp+var_98]"], [1829, "cdqe"], [1830, "imul rax, 40C4h"], [1831, "add rax, rdx"], [1832, "mov eax, [rax+0C0h]"], [1833, "sub eax, 1"], [1834, "mov [rbp+var_1E4], eax"], [1835, "mov [rbp+var_C0], 0"], [1836, "jmp short loc_403116"], [1837, "mov rdx, cs:qword_40D100"], [1838, "mov eax, [rbp+var_98]"], [1839, "cdqe"], [1840, "imul rax, 40C4h"], [1841, "lea rcx, [rdx+rax]"], [1842, "mov edx, [rbp+var_C0]"], [1843, "mov eax, [rbp+var_1E4]"], [1844, "cdqe"], [1845, "shl rax, 6"], [1846, "add rax, rcx"], [1847, "add rax, rdx"], [1848, "add rax, 0C4h"], [1849, "movzx eax, byte ptr [rax]"], [1850, "cmp al, 2Ch "], [1851, "jnz short loc_40310F"], [1852, "add [rbp+var_AC], 1"], [1853, "add [rbp+var_C0], 1"], [1854, "mov rdx, cs:qword_40D100"], [1855, "mov eax, [rbp+var_98]"], [1856, "cdqe"], [1857, "imul rax, 40C4h"], [1858, "add rdx, rax"], [1859, "mov eax, [rbp+var_1E4]"], [1860, "cdqe"], [1861, "add rax, 3"], [1862, "shl rax, 6"], [1863, "add rax, rdx"], [1864, "add rax, 4"], [1865, "mov rdi, rax"], [1866, "call sub_405AC3"], [1867, "cmp [rbp+var_C0], eax"], [1868, "jb loc_4030C9"], [1869, "cmp [rbp+var_AC], 0"], [1870, "jle loc_4035C2"], [1871, "mov rdx, cs:qword_40D100"], [1872, "mov eax, [rbp+var_98]"], [1873, "cdqe"], [1874, "imul rax, 40C4h"], [1875, "add rax, rdx"], [1876, "mov ecx, [rax+0C0h]"], [1877, "mov rdx, cs:qword_40D100"], [1878, "mov eax, [rbp+var_98]"], [1879, "cdqe"], [1880, "imul rax, 40C4h"], [1881, "add rax, rdx"], [1882, "mov edx, [rbp+var_AC]"], [1883, "add edx, ecx"], [1884, "mov [rax+0C0h], edx"], [1885, "mov rdx, cs:qword_40D100"], [1886, "mov eax, [rbp+var_98]"], [1887, "cdqe"], [1888, "imul rax, 40C4h"], [1889, "add rdx, rax"], [1890, "mov eax, [rbp+var_1E4]"], [1891, "cdqe"], [1892, "add rax, 43h "], [1893, "shl rax, 6"], [1894, "add rax, rdx"], [1895, "add rax, 4"], [1896, "mov rdi, rax"], [1897, "call sub_405AC3"], [1898, "mov edx, eax"], [1899, "mov rcx, cs:qword_40D100"], [1900, "mov eax, [rbp+var_98]"], [1901, "cdqe"], [1902, "imul rax, 40C4h"], [1903, "add rcx, rax"], [1904, "mov eax, [rbp+var_1E4]"], [1905, "cdqe"], [1906, "add rax, 43h "], [1907, "shl rax, 6"], [1908, "add rax, rcx"], [1909, "lea rcx, [rax+4]"], [1910, "mov rsi, cs:qword_40D100"], [1911, "mov eax, [rbp+var_98]"], [1912, "cdqe"], [1913, "imul rax, 40C4h"], [1914, "lea rdi, [rsi+rax]"], [1915, "mov esi, [rbp+var_1E4]"], [1916, "mov eax, [rbp+var_AC]"], [1917, "add eax, esi"], [1918, "cdqe"], [1919, "add rax, 43h "], [1920, "shl rax, 6"], [1921, "add rax, rdi"], [1922, "add rax, 4"], [1923, "mov rsi, rcx"], [1924, "mov rdi, rax"], [1925, "call sub_405BBE"], [1926, "mov eax, [rbp+var_AC]"], [1927, "mov [rbp+var_C4], eax"], [1928, "mov [rbp+var_C8], 0FFFFFFFFh"], [1929, "mov [rbp+var_CC], 0FFFFFFFFh"], [1930, "mov rdx, cs:qword_40D100"], [1931, "mov eax, [rbp+var_98]"], [1932, "cdqe"], [1933, "imul rax, 40C4h"], [1934, "add rdx, rax"], [1935, "mov eax, [rbp+var_1E4]"], [1936, "cdqe"], [1937, "add rax, 3"], [1938, "shl rax, 6"], [1939, "add rax, rdx"], [1940, "add rax, 4"], [1941, "mov rdi, rax"], [1942, "call sub_405AC3"], [1943, "mov [rbp+var_D0], eax"], [1944, "jmp loc_403412"], [1945, "mov rdx, cs:qword_40D100"], [1946, "mov eax, [rbp+var_98]"], [1947, "cdqe"], [1948, "imul rax, 40C4h"], [1949, "lea rcx, [rdx+rax]"], [1950, "mov eax, [rbp+var_D0]"], [1951, "movsxd rdx, eax"], [1952, "mov eax, [rbp+var_1E4]"], [1953, "cdqe"], [1954, "shl rax, 6"], [1955, "add rax, rcx"], [1956, "add rax, rdx"], [1957, "add rax, 0C4h"], [1958, "movzx eax, byte ptr [rax]"], [1959, "mov [rbp+var_1F1], al"], [1960, "cmp [rbp+var_1F1], 2Ah "], [1961, "jz short loc_403321"], [1962, "cmp [rbp+var_1F1], 20h "], [1963, "jz short loc_403321"], [1964, "cmp [rbp+var_1F1], 2Ch "], [1965, "jnz loc_4033F6"], [1966, "cmp [rbp+var_CC], 0FFFFFFFFh"], [1967, "jz loc_40340B"], [1968, "mov eax, [rbp+var_C4]"], [1969, "cmp eax, [rbp+var_AC]"], [1970, "jz loc_4033E3"], [1971, "mov eax, [rbp+var_D0]"], [1972, "add eax, 1"], [1973, "mov [rbp+var_C8], eax"], [1974, "mov eax, [rbp+var_CC]"], [1975, "sub eax, [rbp+var_C8]"], [1976, "add eax, 1"], [1977, "mov edx, eax"], [1978, "mov rcx, cs:qword_40D100"], [1979, "mov eax, [rbp+var_98]"], [1980, "cdqe"], [1981, "imul rax, 40C4h"], [1982, "lea rsi, [rcx+rax]"], [1983, "mov eax, [rbp+var_C8]"], [1984, "movsxd rcx, eax"], [1985, "mov eax, [rbp+var_1E4]"], [1986, "cdqe"], [1987, "shl rax, 6"], [1988, "add rax, rcx"], [1989, "add rax, 0C0h"], [1990, "add rax, rsi"], [1991, "lea rcx, [rax+4]"], [1992, "mov rsi, cs:qword_40D100"], [1993, "mov eax, [rbp+var_98]"], [1994, "cdqe"], [1995, "imul rax, 40C4h"], [1996, "lea rdi, [rsi+rax]"], [1997, "mov esi, [rbp+var_1E4]"], [1998, "mov eax, [rbp+var_C4]"], [1999, "add eax, esi"], [2000, "cdqe"], [2001, "add rax, 43h "], [2002, "shl rax, 6"], [2003, "add rax, rdi"], [2004, "add rax, 4"], [2005, "mov rsi, rcx"], [2006, "mov rdi, rax"], [2007, "call sub_405BBE"]], "data_dep": [[7, 5], [8, 7], [9, 6], [10, 5], [11, 9], [12, 10], [15, 14], [16, 15], [22, 21], [23, 22], [29, 28], [30, 29], [36, 29], [36, 35], [36, 34], [37, 36], [40, 39], [41, 40], [42, 41], [50, 35], [51, 24], [51, 49], [51, 17], [51, 9], [51, 31], [52, 40], [53, 50], [54, 52], [56, 55], [58, 57], [59, 58], [63, 60], [63, 86], [64, 63], [65, 61], [65, 87], [67, 51], [67, 76], [67, 67], [68, 56], [69, 68], [69, 67], [70, 69], [71, 70], [74, 87], [74, 61], [76, 67], [76, 76], [76, 51], [77, 56], [78, 77], [78, 76], [79, 78], [81, 79], [83, 82], [84, 83], [85, 61], [85, 87], [86, 85], [87, 87], [87, 61], [88, 49], [89, 88], [89, 61], [89, 87], [90, 89], [91, 60], [91, 86], [92, 91], [93, 60], [93, 86], [94, 93], [95, 49], [95, 94], [96, 95], [102, 101], [105, 104], [108, 107], [111, 110], [114, 113], [117, 116], [122, 120], [122, 122], [123, 172], [123, 118], [125, 166], [125, 156], [125, 67], [125, 51], [125, 128], [125, 140], [125, 76], [126, 56], [127, 126], [127, 125], [128, 168], [128, 127], [129, 122], [129, 120], [131, 128], [131, 129], [132, 131], [132, 168], [133, 132], [134, 133], [135, 172], [135, 118], [137, 128], [138, 56], [139, 138], [139, 137], [140, 168], [140, 139], [141, 120], [141, 122], [143, 141], [143, 140], [144, 168], [144, 143], [145, 144], [146, 145], [147, 172], [147, 118], [149, 140], [150, 56], [151, 150], [151, 149], [152, 151], [152, 168], [153, 120], [153, 122], [155, 152], [155, 153], [158, 155], [160, 159], [161, 160], [162, 171], [164, 156], [165, 102], [166, 164], [166, 165], [167, 172], [167, 118], [168, 166], [168, 167], [169, 171], [170, 169], [171, 170], [172, 172], [172, 118], [173, 49], [173, 94], [174, 118], [174, 173], [174, 172], [175, 174], [178, 269], [178, 176], [180, 213], [180, 51], [180, 184], [180, 197], [180, 67], [180, 76], [180, 166], [180, 156], [180, 257], [181, 56], [182, 180], [182, 181], [183, 168], [183, 182], [183, 241], [186, 183], [188, 187], [189, 188], [190, 176], [190, 269], [192, 190], [193, 184], [194, 56], [195, 194], [195, 193], [196, 195], [196, 241], [196, 168], [199, 196], [201, 200], [202, 201], [203, 202], [204, 203], [205, 204], [208, 269], [208, 176], [210, 213], [210, 197], [211, 56], [212, 211], [212, 210], [213, 168], [213, 241], [213, 212], [214, 206], [214, 228], [216, 214], [216, 213], [217, 241], [217, 168], [217, 216], [218, 217], [219, 218], [220, 219], [222, 218], [223, 222], [224, 218], [225, 224], [226, 218], [227, 226], [228, 206], [228, 228], [229, 206], [229, 228], [230, 229], [231, 221], [231, 201], [232, 231], [233, 232], [234, 233], [235, 266], [237, 197], [237, 213], [238, 105], [239, 237], [239, 238], [240, 176], [240, 269], [241, 239], [241, 240], [243, 269], [243, 176], [243, 243], [244, 243], [244, 269], [244, 176], [246, 239], [246, 246], [247, 56], [248, 246], [248, 247], [249, 241], [249, 168], [249, 248], [250, 241], [250, 168], [250, 249], [251, 250], [252, 251], [254, 176], [254, 254], [254, 243], [254, 269], [255, 243], [255, 269], [255, 176], [255, 254], [257, 246], [257, 257], [258, 56], [259, 258], [259, 257], [260, 168], [260, 259], [260, 241], [261, 168], [261, 260], [261, 241], [262, 261], [263, 262], [264, 266], [265, 264], [266, 265], [269, 176], [269, 254], [269, 243], [269, 269], [270, 49], [270, 94], [271, 176], [271, 270], [271, 269], [272, 271], [275, 335], [275, 273], [277, 67], [277, 213], [277, 281], [277, 257], [277, 184], [277, 327], [277, 51], [277, 296], [277, 76], [277, 197], [277, 166], [277, 156], [278, 56], [279, 277], [279, 278], [280, 241], [280, 329], [280, 168], [280, 279], [283, 280], [285, 284], [286, 285], [291, 335], [291, 273], [293, 281], [293, 296], [294, 56], [295, 293], [295, 294], [296, 241], [296, 329], [296, 295], [296, 168], [297, 316], [297, 289], [299, 296], [299, 297], [300, 241], [300, 329], [300, 299], [300, 168], [301, 300], [302, 301], [303, 302], [304, 304], [304, 287], [305, 301], [306, 305], [307, 304], [307, 287], [308, 307], [310, 301], [311, 310], [312, 301], [313, 312], [314, 301], [315, 314], [316, 316], [316, 289], [317, 316], [317, 289], [318, 317], [319, 288], [319, 309], [320, 319], [321, 320], [322, 321], [323, 332], [325, 281], [325, 296], [326, 108], [327, 326], [327, 325], [328, 335], [328, 273], [329, 327], [329, 328], [330, 332], [331, 330], [332, 331], [335, 273], [335, 335], [336, 49], [336, 94], [337, 273], [337, 335], [337, 336], [338, 337], [341, 383], [341, 339], [343, 213], [343, 281], [343, 257], [343, 184], [343, 347], [343, 327], [343, 51], [343, 296], [343, 361], [343, 76], [343, 197], [343, 166], [343, 156], [343, 67], [343, 377], [344, 56], [345, 343], [345, 344], [346, 379], [346, 241], [346, 329], [346, 345], [346, 168], [349, 346], [351, 350], [352, 351], [353, 383], [353, 339], [355, 347], [356, 56], [357, 355], [357, 356], [358, 168], [358, 357], [358, 379], [358, 241], [358, 329], [359, 383], [359, 339], [361, 355], [362, 56], [363, 361], [363, 362], [364, 379], [364, 241], [364, 329], [364, 363], [364, 168], [365, 364], [367, 366], [368, 367], [369, 368], [369, 358], [370, 241], [370, 329], [370, 168], [370, 379], [370, 369], [371, 370], [372, 371], [373, 382], [375, 361], [376, 111], [377, 376], [377, 375], [378, 383], [378, 339], [379, 377], [379, 378], [380, 382], [381, 380], [382, 381], [383, 383], [383, 339], [384, 49], [384, 94], [385, 339], [385, 384], [385, 383], [386, 385], [389, 387], [389, 507], [391, 76], [391, 197], [391, 475], [391, 166], [391, 156], [391, 257], [391, 377], [391, 501], [391, 213], [391, 347], [391, 281], [391, 51], [391, 361], [391, 184], [391, 327], [391, 395], [391, 463], [391, 296], [391, 67], [392, 56], [393, 392], [393, 391], [394, 168], [394, 379], [394, 503], [394, 393], [394, 241], [394, 329], [397, 394], [399, 398], [400, 399], [406, 507], [406, 387], [408, 463], [408, 475], [408, 395], [409, 56], [410, 409], [410, 408], [411, 329], [411, 410], [411, 379], [411, 168], [411, 503], [411, 241], [412, 404], [412, 486], [414, 411], [414, 412], [415, 168], [415, 379], [415, 503], [415, 414], [415, 241], [415, 329], [416, 415], [417, 416], [418, 387], [418, 507], [420, 411], [421, 56], [422, 420], [422, 421], [423, 422], [423, 168], [423, 379], [423, 503], [423, 241], [423, 329], [424, 404], [424, 486], [426, 424], [427, 423], [427, 426], [428, 379], [428, 503], [428, 427], [428, 241], [428, 329], [428, 168], [429, 428], [430, 429], [432, 507], [432, 387], [434, 411], [434, 423], [435, 56], [436, 434], [436, 435], [437, 503], [437, 241], [437, 329], [437, 379], [437, 168], [437, 436], [438, 486], [438, 404], [440, 437], [440, 438], [441, 241], [441, 329], [441, 440], [441, 379], [441, 168], [441, 503], [442, 441], [443, 442], [444, 387], [444, 507], [446, 437], [447, 56], [448, 446], [448, 447], [449, 241], [449, 329], [449, 168], [449, 448], [449, 379], [449, 503], [450, 404], [450, 486], [452, 450], [453, 449], [453, 452], [454, 453], [454, 168], [454, 379], [454, 503], [454, 241], [454, 329], [455, 454], [456, 455], [458, 387], [458, 507], [460, 437], [460, 449], [461, 56], [462, 460], [462, 461], [463, 379], [463, 503], [463, 462], [463, 241], [463, 329], [463, 168], [464, 404], [464, 486], [466, 463], [466, 464], [467, 503], [467, 241], [467, 329], [467, 379], [467, 466], [467, 168], [468, 467], [469, 468], [470, 507], [470, 387], [472, 463], [473, 56], [474, 473], [474, 472], [475, 168], [475, 379], [475, 503], [475, 474], [475, 241], [475, 329], [476, 404], [476, 486], [478, 476], [479, 478], [479, 475], [480, 241], [480, 329], [480, 479], [480, 168], [480, 379], [480, 503], [481, 480], [482, 481], [484, 483], [484, 403], [485, 484], [486, 404], [486, 486], [487, 486], [487, 404], [488, 487], [491, 431], [491, 401], [492, 491], [493, 402], [493, 457], [494, 493], [495, 403], [495, 483], [496, 495], [497, 506], [499, 395], [499, 463], [499, 475], [500, 114], [501, 500], [501, 499], [502, 507], [502, 387], [503, 502], [503, 501], [504, 506], [505, 504], [506, 505], [507, 387], [507, 507], [508, 49], [508, 94], [509, 507], [509, 387], [509, 508], [510, 509], [515, 514], [516, 537], [516, 511], [518, 518], [518, 50], [519, 56], [520, 519], [520, 518], [521, 241], [521, 168], [521, 520], [521, 533], [521, 379], [521, 503], [521, 329], [523, 521], [525, 524], [526, 525], [527, 536], [529, 515], [530, 117], [531, 529], [531, 530], [532, 537], [532, 511], [533, 531], [533, 532], [534, 536], [535, 534], [536, 535], [537, 511], [537, 537], [538, 49], [538, 94], [539, 511], [539, 538], [539, 537], [540, 539], [541, 40], [542, 541], [547, 546], [551, 549], [551, 1352], [553, 184], [553, 1273], [553, 635], [553, 602], [553, 327], [553, 1122], [553, 395], [553, 296], [553, 1091], [553, 515], [553, 361], [553, 76], [553, 197], [553, 1100], [553, 475], [553, 1168], [553, 1289], [553, 166], [553, 673], [553, 156], [553, 1193], [553, 653], [553, 1268], [553, 257], [553, 1281], [553, 463], [553, 67], [553, 1081], [553, 1346], [553, 531], [553, 377], [553, 609], [553, 501], [553, 213], [553, 347], [553, 281], [553, 1138], [553, 1206], [553, 51], [553, 1297], [553, 1228], [554, 102], [555, 554], [555, 553], [556, 1348], [556, 916], [556, 533], [556, 379], [556, 555], [556, 777], [556, 898], [556, 503], [556, 712], [556, 329], [556, 923], [556, 794], [556, 241], [556, 168], [556, 750], [556, 763], [558, 553], [559, 56], [560, 559], [560, 558], [561, 1348], [561, 533], [561, 379], [561, 712], [561, 777], [561, 898], [561, 923], [561, 503], [561, 241], [561, 329], [561, 750], [561, 560], [561, 916], [561, 794], [561, 168], [561, 763], [562, 561], [565, 563], [565, 565], [566, 563], [566, 565], [567, 566], [568, 562], [569, 568], [569, 567], [570, 916], [570, 794], [570, 168], [570, 750], [570, 763], [570, 1348], [570, 533], [570, 379], [570, 777], [570, 898], [570, 923], [570, 569], [570, 503], [570, 241], [570, 712], [570, 329], [571, 570], [572, 571], [573, 565], [573, 563], [574, 573], [575, 562], [576, 575], [576, 574], [577, 379], [577, 712], [577, 777], [577, 898], [577, 923], [577, 503], [577, 241], [577, 329], [577, 750], [577, 916], [577, 794], [577, 168], [577, 763], [577, 576], [577, 1348], [577, 533], [578, 577], [579, 578], [580, 563], [580, 565], [582, 582], [582, 580], [583, 580], [583, 582], [584, 583], [585, 562], [586, 584], [586, 585], [587, 916], [587, 794], [587, 168], [587, 763], [587, 586], [587, 1348], [587, 533], [587, 379], [587, 712], [587, 777], [587, 898], [587, 923], [587, 503], [587, 241], [587, 329], [587, 750], [588, 587], [589, 588], [590, 580], [590, 582], [591, 590], [592, 562], [593, 592], [593, 591], [594, 1348], [594, 533], [594, 379], [594, 712], [594, 777], [594, 898], [594, 923], [594, 503], [594, 241], [594, 329], [594, 593], [594, 750], [594, 916], [594, 794], [594, 168], [594, 763], [595, 594], [596, 595], [597, 580], [597, 582], [598, 597], [601, 633], [601, 580], [601, 582], [602, 601], [603, 562], [604, 603], [604, 602], [605, 241], [605, 604], [605, 329], [605, 750], [605, 916], [605, 794], [605, 168], [605, 763], [605, 1348], [605, 533], [605, 379], [605, 712], [605, 777], [605, 898], [605, 923], [605, 503], [606, 605], [607, 606], [608, 633], [608, 580], [608, 582], [609, 608], [610, 562], [611, 609], [611, 610], [612, 168], [612, 763], [612, 1348], [612, 533], [612, 379], [612, 611], [612, 503], [612, 712], [612, 777], [612, 898], [612, 923], [612, 241], [612, 329], [612, 750], [612, 916], [612, 794], [613, 612], [614, 613], [615, 632], [615, 599], [615, 624], [616, 615], [617, 633], [617, 580], [617, 582], [618, 617], [619, 562], [620, 618], [620, 619], [621, 329], [621, 750], [621, 916], [621, 794], [621, 620], [621, 168], [621, 763], [621, 1348], [621, 533], [621, 379], [621, 712], [621, 777], [621, 898], [621, 923], [621, 503], [621, 241], [622, 621], [623, 622], [624, 632], [624, 599], [624, 624], [625, 633], [625, 580], [625, 582], [626, 625], [627, 562], [628, 627], [628, 626], [629, 923], [629, 503], [629, 241], [629, 329], [629, 750], [629, 916], [629, 628], [629, 794], [629, 168], [629, 763], [629, 1348], [629, 533], [629, 379], [629, 712], [629, 777], [629, 898], [630, 629], [631, 630], [632, 632], [632, 599], [632, 624], [633, 633], [633, 580], [633, 582], [634, 633], [634, 580], [634, 582], [635, 634], [636, 562], [637, 636], [637, 635], [638, 637], [638, 241], [638, 329], [638, 750], [638, 916], [638, 794], [638, 168], [638, 763], [638, 1348], [638, 533], [638, 379], [638, 503], [638, 712], [638, 777], [638, 898], [638, 923], [639, 638], [640, 639], [643, 633], [643, 580], [643, 582], [644, 643], [645, 644], [646, 645], [647, 646], [647, 598], [648, 647], [649, 648], [653, 547], [654, 651], [654, 680], [656, 654], [657, 653], [657, 656], [658, 657], [660, 659], [660, 649], [661, 660], [662, 598], [663, 662], [664, 562], [665, 50], [665, 1077], [665, 923], [665, 241], [665, 329], [665, 518], [665, 750], [665, 916], [665, 893], [665, 664], [665, 794], [665, 1261], [665, 168], [665, 665], [665, 763], [665, 799], [665, 1348], [665, 533], [665, 379], [665, 503], [665, 1010], [665, 712], [665, 689], [665, 777], [665, 898], [665, 911], [666, 547], [667, 651], [667, 680], [669, 667], [670, 666], [670, 669], [671, 670], [672, 649], [673, 672], [674, 665], [676, 675], [677, 676], [680, 680], [680, 651], [681, 680], [681, 651], [682, 548], [682, 681], [682, 1349], [683, 682], [684, 650], [684, 678], [685, 684], [686, 598], [687, 686], [688, 562], [689, 794], [689, 1261], [689, 168], [689, 688], [689, 665], [689, 763], [689, 799], [689, 1348], [689, 533], [689, 379], [689, 503], [689, 1010], [689, 712], [689, 689], [689, 777], [689, 898], [689, 911], [689, 50], [689, 1077], [689, 923], [689, 241], [689, 329], [689, 518], [689, 750], [689, 916], [689, 893], [690, 547], [691, 1349], [691, 548], [693, 691], [694, 690], [694, 693], [695, 694], [696, 649], [697, 696], [698, 689], [700, 645], [701, 700], [702, 562], [703, 702], [703, 701], [704, 703], [704, 794], [704, 241], [704, 329], [704, 750], [704, 763], [704, 1348], [704, 916], [704, 898], [704, 168], [704, 533], [704, 379], [704, 503], [704, 712], [704, 777], [704, 923], [705, 704], [706, 705], [707, 547], [708, 1349], [708, 548], [710, 708], [711, 710], [711, 707], [712, 711], [714, 580], [714, 714], [714, 582], [714, 633], [715, 580], [715, 714], [715, 582], [715, 633], [716, 715], [717, 562], [718, 716], [718, 717], [719, 329], [719, 718], [719, 750], [719, 763], [719, 1348], [719, 916], [719, 898], [719, 168], [719, 533], [719, 379], [719, 503], [719, 712], [719, 777], [719, 923], [719, 794], [719, 241], [720, 719], [721, 720], [722, 633], [722, 580], [722, 714], [722, 582], [723, 722], [724, 562], [725, 723], [725, 724], [726, 750], [726, 763], [726, 1348], [726, 916], [726, 533], [726, 379], [726, 777], [726, 898], [726, 168], [726, 503], [726, 712], [726, 725], [726, 923], [726, 794], [726, 241], [726, 329], [727, 726], [728, 727], [729, 580], [729, 714], [729, 582], [729, 633], [730, 729], [731, 582], [731, 633], [731, 580], [731, 714], [732, 731], [733, 562], [734, 733], [734, 732], [735, 923], [735, 794], [735, 241], [735, 329], [735, 750], [735, 763], [735, 1348], [735, 916], [735, 777], [735, 898], [735, 168], [735, 533], [735, 379], [735, 503], [735, 712], [735, 734], [736, 735], [737, 736], [738, 633], [738, 580], [738, 714], [738, 582], [739, 738], [740, 562], [741, 739], [741, 740], [742, 763], [742, 1348], [742, 916], [742, 533], [742, 379], [742, 741], [742, 777], [742, 898], [742, 168], [742, 503], [742, 712], [742, 923], [742, 794], [742, 241], [742, 329], [742, 750], [743, 742], [744, 743], [745, 547], [746, 548], [746, 1349], [748, 746], [749, 745], [749, 748], [750, 749], [751, 582], [751, 633], [751, 580], [751, 714], [752, 751], [753, 562], [754, 753], [754, 752], [755, 1348], [755, 916], [755, 898], [755, 754], [755, 168], [755, 533], [755, 379], [755, 503], [755, 712], [755, 777], [755, 923], [755, 794], [755, 241], [755, 329], [755, 750], [755, 763], [756, 755], [757, 756], [758, 547], [759, 1349], [759, 548], [761, 759], [762, 758], [762, 761], [763, 762], [765, 714], [765, 582], [765, 633], [765, 580], [766, 765], [767, 562], [768, 766], [768, 767], [769, 1348], [769, 916], [769, 898], [769, 168], [769, 533], [769, 379], [769, 503], [769, 768], [769, 712], [769, 777], [769, 923], [769, 794], [769, 241], [769, 329], [769, 750], [769, 763], [770, 769], [771, 770], [772, 547], [773, 1349], [773, 548], [775, 773], [776, 772], [776, 775], [777, 776], [779, 580], [779, 714], [779, 582], [779, 633], [780, 779], [781, 562], [782, 781], [782, 780], [785, 782], [787, 786], [788, 787], [789, 547], [790, 1349], [790, 548], [792, 790], [793, 789], [793, 792], [794, 793], [797, 777], [797, 898], [797, 503], [797, 241], [797, 712], [797, 329], [797, 923], [797, 794], [797, 168], [797, 796], [797, 750], [797, 763], [797, 1348], [797, 916], [797, 533], [797, 379], [798, 580], [798, 714], [798, 582], [798, 633], [799, 798], [800, 562], [801, 799], [801, 800], [802, 750], [802, 763], [802, 1348], [802, 916], [802, 533], [802, 379], [802, 777], [802, 898], [802, 168], [802, 801], [802, 503], [802, 712], [802, 923], [802, 794], [802, 241], [802, 329], [803, 802], [804, 803], [805, 797], [805, 804], [806, 168], [806, 750], [806, 763], [806, 1348], [806, 916], [806, 533], [806, 379], [806, 777], [806, 898], [806, 503], [806, 712], [806, 329], [806, 923], [806, 805], [806, 794], [806, 241], [807, 806], [808, 807], [809, 808], [810, 809], [815, 580], [815, 582], [815, 856], [815, 714], [815, 633], [816, 815], [817, 562], [818, 817], [818, 816], [819, 168], [819, 750], [819, 763], [819, 818], [819, 1348], [819, 916], [819, 533], [819, 379], [819, 777], [819, 898], [819, 503], [819, 712], [819, 923], [819, 794], [819, 241], [819, 329], [820, 819], [821, 820], [822, 821], [824, 820], [825, 824], [828, 503], [828, 241], [828, 712], [828, 329], [828, 923], [828, 916], [828, 827], [828, 794], [828, 168], [828, 750], [828, 763], [828, 1348], [828, 533], [828, 379], [828, 777], [828, 898], [829, 820], [830, 829], [831, 828], [831, 830], [832, 777], [832, 898], [832, 923], [832, 503], [832, 241], [832, 329], [832, 750], [832, 916], [832, 794], [832, 168], [832, 763], [832, 1348], [832, 831], [832, 533], [832, 379], [832, 712], [833, 832], [834, 833], [835, 834], [836, 835], [837, 820], [838, 837], [839, 820], [840, 839], [841, 820], [842, 841], [843, 820], [844, 843], [845, 820], [846, 845], [847, 820], [848, 847], [849, 820], [850, 849], [851, 820], [852, 851], [853, 820], [854, 853], [856, 633], [856, 580], [856, 582], [856, 856], [856, 714], [857, 633], [857, 580], [857, 582], [857, 856], [857, 714], [858, 857], [859, 562], [860, 859], [860, 858], [861, 794], [861, 168], [861, 763], [861, 1348], [861, 533], [861, 379], [861, 503], [861, 712], [861, 777], [861, 898], [861, 923], [861, 241], [861, 329], [861, 750], [861, 916], [861, 860], [862, 861], [863, 862], [864, 714], [864, 633], [864, 580], [864, 582], [864, 856], [865, 864], [866, 562], [867, 866], [867, 865], [868, 867], [868, 503], [868, 241], [868, 329], [868, 750], [868, 916], [868, 794], [868, 168], [868, 763], [868, 1348], [868, 533], [868, 379], [868, 712], [868, 777], [868, 898], [868, 923], [869, 868], [870, 869], [871, 633], [871, 580], [871, 582], [871, 856], [871, 714], [872, 871], [873, 562], [874, 872], [874, 873], [875, 794], [875, 168], [875, 763], [875, 874], [875, 1348], [875, 533], [875, 379], [875, 712], [875, 777], [875, 898], [875, 923], [875, 503], [875, 241], [875, 329], [875, 750], [875, 916], [876, 875], [877, 876], [878, 855], [878, 812], [879, 878], [880, 823], [880, 811], [881, 880], [882, 856], [882, 633], [882, 580], [882, 714], [882, 582], [884, 503], [884, 241], [884, 329], [884, 858], [884, 750], [884, 916], [884, 794], [884, 882], [884, 872], [884, 168], [884, 763], [884, 1348], [884, 533], [884, 379], [884, 712], [884, 777], [884, 898], [884, 865], [884, 923], [885, 562], [886, 885], [886, 884], [887, 241], [887, 329], [887, 750], [887, 916], [887, 794], [887, 168], [887, 763], [887, 1348], [887, 533], [887, 379], [887, 886], [887, 503], [887, 712], [887, 777], [887, 898], [887, 923], [888, 887], [889, 888], [893, 547], [894, 548], [894, 1349], [896, 894], [897, 893], [897, 896], [898, 890], [898, 892], [898, 897], [900, 856], [900, 633], [900, 580], [900, 714], [900, 582], [902, 794], [902, 872], [902, 168], [902, 763], [902, 1348], [902, 533], [902, 379], [902, 712], [902, 777], [902, 898], [902, 865], [902, 923], [902, 900], [902, 503], [902, 241], [902, 329], [902, 858], [902, 750], [902, 916], [903, 562], [904, 902], [904, 903], [905, 794], [905, 168], [905, 763], [905, 1348], [905, 533], [905, 379], [905, 712], [905, 777], [905, 898], [905, 923], [905, 503], [905, 241], [905, 329], [905, 904], [905, 750], [905, 916], [906, 905], [907, 906], [911, 547], [912, 548], [912, 1349], [914, 912], [915, 914], [915, 911], [916, 915], [916, 908], [916, 910], [917, 547], [918, 1349], [918, 548], [920, 918], [921, 917], [921, 920], [922, 813], [922, 826], [923, 921], [923, 922], [925, 633], [925, 856], [925, 580], [925, 714], [925, 582], [925, 925], [926, 856], [926, 633], [926, 580], [926, 714], [926, 582], [926, 925], [927, 926], [928, 562], [929, 927], [929, 928], [930, 503], [930, 241], [930, 329], [930, 750], [930, 916], [930, 794], [930, 168], [930, 763], [930, 1348], [930, 929], [930, 533], [930, 379], [930, 712], [930, 777], [930, 898], [930, 923], [931, 930], [932, 931], [933, 582], [933, 925], [933, 856], [933, 633], [933, 580], [933, 714], [934, 933], [935, 562], [936, 935], [936, 934], [937, 794], [937, 168], [937, 763], [937, 1348], [937, 533], [937, 379], [937, 503], [937, 712], [937, 777], [937, 898], [937, 923], [937, 241], [937, 329], [937, 750], [937, 936], [937, 916], [938, 937], [939, 938], [940, 633], [940, 580], [940, 582], [940, 925], [940, 856], [940, 714], [941, 940], [942, 562], [943, 942], [943, 941], [944, 503], [944, 241], [944, 329], [944, 750], [944, 916], [944, 794], [944, 168], [944, 763], [944, 1348], [944, 533], [944, 379], [944, 712], [944, 777], [944, 898], [944, 943], [944, 923], [945, 944], [946, 945], [947, 582], [947, 925], [947, 856], [947, 633], [947, 580], [947, 714], [949, 241], [949, 329], [949, 947], [949, 750], [949, 916], [949, 794], [949, 941], [949, 168], [949, 763], [949, 1348], [949, 533], [949, 379], [949, 503], [949, 712], [949, 777], [949, 898], [949, 923], [950, 562], [951, 949], [951, 950], [952, 916], [952, 794], [952, 951], [952, 168], [952, 763], [952, 1348], [952, 533], [952, 379], [952, 712], [952, 777], [952, 898], [952, 923], [952, 503], [952, 241], [952, 329], [952, 750], [953, 952], [954, 953], [955, 633], [955, 856], [955, 580], [955, 714], [955, 582], [955, 925], [956, 955], [957, 956], [959, 957], [959, 959], [960, 957], [960, 959], [961, 960], [962, 562], [963, 961], [963, 962], [964, 923], [964, 241], [964, 329], [964, 750], [964, 916], [964, 794], [964, 168], [964, 963], [964, 763], [964, 1348], [964, 533], [964, 379], [964, 503], [964, 712], [964, 777], [964, 898], [965, 964], [966, 965], [967, 957], [967, 959], [968, 967], [969, 562], [970, 969], [970, 968], [971, 916], [971, 168], [971, 763], [971, 1348], [971, 533], [971, 379], [971, 503], [971, 712], [971, 777], [971, 898], [971, 923], [971, 794], [971, 241], [971, 329], [971, 970], [971, 750], [972, 971], [973, 972], [974, 547], [975, 548], [975, 1349], [977, 975], [978, 977], [978, 974], [979, 533], [979, 379], [979, 503], [979, 712], [979, 923], [979, 978], [979, 794], [979, 241], [979, 329], [979, 750], [979, 763], [979, 1348], [979, 916], [979, 777], [979, 898], [979, 168], [980, 979], [981, 980], [982, 547], [983, 1349], [983, 548], [985, 983], [986, 982], [986, 985], [987, 916], [987, 986], [987, 168], [987, 763], [987, 1348], [987, 533], [987, 379], [987, 503], [987, 712], [987, 777], [987, 898], [987, 923], [987, 794], [987, 241], [987, 329], [987, 750], [988, 987], [989, 988], [990, 957], [990, 959], [991, 959], [991, 990], [991, 957], [992, 991], [992, 730], [993, 992], [994, 993], [995, 994], [996, 995], [998, 994], [998, 997], [999, 998], [1000, 994], [1000, 997], [1001, 730], [1002, 1001], [1003, 562], [1004, 763], [1004, 1348], [1004, 916], [1004, 784], [1004, 898], [1004, 168], [1004, 698], [1004, 533], [1004, 379], [1004, 503], [1004, 712], [1004, 777], [1004, 923], [1004, 794], [1004, 241], [1004, 329], [1004, 1002], [1004, 750], [1005, 547], [1006, 548], [1006, 1349], [1007, 1006], [1008, 1007], [1009, 1008], [1009, 1005], [1010, 777], [1010, 898], [1010, 168], [1010, 379], [1010, 503], [1010, 712], [1010, 1009], [1010, 923], [1010, 794], [1010, 241], [1010, 329], [1010, 750], [1010, 763], [1010, 1005], [1010, 1348], [1010, 916], [1010, 533], [1011, 1000], [1012, 1010], [1014, 580], [1014, 714], [1014, 582], [1014, 925], [1014, 633], [1014, 856], [1015, 1014], [1016, 562], [1017, 1016], [1017, 1015], [1018, 750], [1018, 763], [1018, 1348], [1018, 916], [1018, 1017], [1018, 898], [1018, 168], [1018, 533], [1018, 379], [1018, 503], [1018, 712], [1018, 777], [1018, 923], [1018, 794], [1018, 241], [1018, 329], [1019, 1018], [1020, 1019], [1021, 633], [1021, 856], [1021, 580], [1021, 714], [1021, 582], [1021, 925], [1023, 898], [1023, 168], [1023, 533], [1023, 379], [1023, 503], [1023, 712], [1023, 777], [1023, 923], [1023, 1021], [1023, 794], [1023, 241], [1023, 329], [1023, 750], [1023, 1015], [1023, 763], [1023, 1348], [1023, 916], [1024, 562], [1025, 1024], [1025, 1023], [1026, 777], [1026, 898], [1026, 168], [1026, 503], [1026, 712], [1026, 923], [1026, 794], [1026, 241], [1026, 329], [1026, 1025], [1026, 750], [1026, 763], [1026, 1348], [1026, 916], [1026, 533], [1026, 379], [1027, 1026], [1028, 1027], [1029, 633], [1029, 580], [1029, 856], [1029, 714], [1029, 582], [1029, 925], [1031, 1029], [1031, 1031], [1032, 1029], [1032, 1031], [1033, 1032], [1034, 562], [1035, 1033], [1035, 1034], [1036, 794], [1036, 241], [1036, 329], [1036, 1035], [1036, 750], [1036, 763], [1036, 1348], [1036, 916], [1036, 533], [1036, 379], [1036, 777], [1036, 898], [1036, 168], [1036, 503], [1036, 712], [1036, 923], [1037, 1036], [1038, 1037], [1039, 1031], [1039, 1029], [1040, 1039], [1042, 1031], [1042, 1042], [1042, 1029], [1043, 1029], [1043, 1042], [1043, 1031], [1044, 1043], [1045, 562], [1046, 1044], [1046, 1045], [1047, 923], [1047, 1046], [1047, 794], [1047, 241], [1047, 329], [1047, 750], [1047, 763], [1047, 1348], [1047, 916], [1047, 533], [1047, 379], [1047, 777], [1047, 898], [1047, 168], [1047, 503], [1047, 712], [1048, 1047], [1049, 1048], [1050, 1029], [1050, 1042], [1050, 1031], [1051, 1050], [1052, 562], [1053, 1051], [1053, 1052], [1054, 168], [1054, 750], [1054, 763], [1054, 1348], [1054, 916], [1054, 533], [1054, 379], [1054, 777], [1054, 898], [1054, 1053], [1054, 503], [1054, 712], [1054, 329], [1054, 923], [1054, 794], [1054, 241], [1055, 1054], [1056, 1055], [1057, 1029], [1057, 1031], [1057, 1042], [1058, 1057], [1059, 1058], [1060, 1059], [1061, 1060], [1061, 1040], [1062, 1061], [1063, 1062], [1064, 1063], [1065, 1064], [1067, 1066], [1067, 1063], [1068, 1040], [1069, 1068], [1070, 562], [1071, 794], [1071, 241], [1071, 784], [1071, 168], [1071, 750], [1071, 763], [1071, 1348], [1071, 916], [1071, 533], [1071, 379], [1071, 777], [1071, 898], [1071, 698], [1071, 503], [1071, 712], [1071, 329], [1071, 923], [1071, 1004], [1071, 1069], [1072, 547], [1073, 1349], [1073, 548], [1074, 1073], [1075, 1074], [1076, 1072], [1076, 1075], [1077, 712], [1077, 923], [1077, 794], [1077, 241], [1077, 329], [1077, 750], [1077, 763], [1077, 1348], [1077, 916], [1077, 533], [1077, 379], [1077, 1072], [1077, 777], [1077, 898], [1077, 168], [1077, 1076], [1077, 503], [1078, 1067], [1079, 1077], [1081, 547], [1082, 1349], [1082, 548], [1084, 1082], [1085, 1081], [1085, 1084], [1086, 923], [1086, 794], [1086, 241], [1086, 168], [1086, 750], [1086, 763], [1086, 1348], [1086, 916], [1086, 533], [1086, 379], [1086, 1085], [1086, 777], [1086, 898], [1086, 503], [1086, 712], [1086, 329], [1087, 1086], [1088, 1087], [1091, 547], [1092, 1349], [1092, 548], [1094, 1092], [1095, 1091], [1095, 1094], [1096, 1095], [1097, 1096], [1100, 1098], [1100, 1319], [1101, 1097], [1102, 1101], [1102, 1100], [1103, 777], [1103, 898], [1103, 168], [1103, 503], [1103, 712], [1103, 923], [1103, 1102], [1103, 794], [1103, 241], [1103, 329], [1103, 750], [1103, 763], [1103, 1348], [1103, 916], [1103, 533], [1103, 379], [1104, 1103], [1105, 1104], [1106, 1105], [1107, 1104], [1108, 1107], [1109, 1104], [1110, 1109], [1111, 1104], [1112, 1111], [1113, 1104], [1114, 1113], [1115, 1104], [1116, 1115], [1117, 1104], [1118, 1117], [1119, 1104], [1120, 1119], [1122, 777], [1122, 898], [1122, 503], [1122, 1121], [1122, 712], [1122, 329], [1122, 923], [1122, 794], [1122, 241], [1122, 168], [1122, 750], [1122, 763], [1122, 1348], [1122, 916], [1122, 533], [1122, 379], [1123, 1104], [1124, 1123], [1125, 1122], [1125, 1124], [1126, 1348], [1126, 533], [1126, 379], [1126, 712], [1126, 777], [1126, 898], [1126, 923], [1126, 503], [1126, 241], [1126, 329], [1126, 750], [1126, 916], [1126, 1125], [1126, 794], [1126, 168], [1126, 763], [1127, 1126], [1128, 1127], [1129, 1128], [1130, 1129], [1134, 1104], [1134, 1172], [1135, 1134], [1138, 916], [1138, 794], [1138, 1137], [1138, 168], [1138, 763], [1138, 1348], [1138, 533], [1138, 379], [1138, 712], [1138, 777], [1138, 898], [1138, 923], [1138, 503], [1138, 241], [1138, 329], [1138, 750], [1139, 1104], [1139, 1172], [1140, 1139], [1141, 1140], [1141, 1138], [1142, 1348], [1142, 533], [1142, 379], [1142, 1141], [1142, 712], [1142, 777], [1142, 898], [1142, 923], [1142, 503], [1142, 241], [1142, 329], [1142, 750], [1142, 916], [1142, 794], [1142, 168], [1142, 763], [1143, 1142], [1144, 1143], [1145, 1144], [1146, 1145], [1147, 1104], [1147, 1172], [1148, 1147], [1149, 1104], [1149, 1172], [1150, 1149], [1151, 1104], [1151, 1172], [1152, 1151], [1153, 1104], [1153, 1172], [1154, 1153], [1155, 1104], [1155, 1172], [1156, 1155], [1157, 1104], [1157, 1172], [1158, 1157], [1159, 1172], [1159, 1104], [1160, 1159], [1161, 1104], [1161, 1172], [1162, 1161], [1163, 1104], [1163, 1172], [1164, 1163], [1167, 1098], [1167, 1319], [1167, 1167], [1168, 1167], [1169, 1097], [1170, 1168], [1170, 1169], [1171, 750], [1171, 916], [1171, 794], [1171, 1170], [1171, 168], [1171, 763], [1171, 1348], [1171, 533], [1171, 379], [1171, 503], [1171, 712], [1171, 777], [1171, 898], [1171, 923], [1171, 241], [1171, 329], [1172, 1171], [1173, 1172], [1173, 1104], [1174, 1173], [1175, 1104], [1175, 1172], [1176, 1175], [1177, 1104], [1177, 1172], [1178, 1177], [1179, 1104], [1179, 1172], [1180, 1179], [1181, 1104], [1181, 1172], [1182, 1181], [1183, 1104], [1183, 1172], [1184, 1183], [1185, 1104], [1185, 1172], [1186, 1185], [1187, 1131], [1187, 1165], [1188, 1187], [1189, 1132], [1189, 1136], [1190, 1189], [1191, 1098], [1191, 1319], [1191, 1167], [1192, 1191], [1193, 1192], [1194, 1097], [1195, 1194], [1195, 1193], [1196, 923], [1196, 241], [1196, 329], [1196, 750], [1196, 916], [1196, 794], [1196, 168], [1196, 1195], [1196, 763], [1196, 1348], [1196, 533], [1196, 379], [1196, 503], [1196, 712], [1196, 777], [1196, 898], [1197, 1196], [1198, 1197], [1202, 1199], [1202, 1201], [1204, 1098], [1204, 1319], [1204, 1167], [1205, 1204], [1206, 1205], [1207, 1097], [1208, 1207], [1208, 1206], [1209, 168], [1209, 763], [1209, 1348], [1209, 533], [1209, 379], [1209, 503], [1209, 712], [1209, 777], [1209, 898], [1209, 1208], [1209, 923], [1209, 241], [1209, 329], [1209, 750], [1209, 916], [1209, 794], [1210, 1209], [1211, 1210], [1215, 1212], [1215, 1214], [1216, 1202], [1216, 1215], [1217, 1216], [1217, 1303], [1217, 1220], [1217, 1089], [1218, 1217], [1219, 1202], [1219, 1215], [1220, 1219], [1224, 1319], [1224, 1098], [1225, 1224], [1227, 1319], [1227, 1227], [1227, 1098], [1228, 1227], [1229, 1097], [1230, 1228], [1230, 1229], [1231, 750], [1231, 916], [1231, 794], [1231, 168], [1231, 763], [1231, 1348], [1231, 533], [1231, 379], [1231, 712], [1231, 777], [1231, 898], [1231, 923], [1231, 1230], [1231, 503], [1231, 241], [1231, 329], [1232, 1231], [1233, 1104], [1233, 1232], [1234, 1233], [1235, 1232], [1235, 1104], [1236, 1235], [1237, 1104], [1237, 1232], [1238, 1237], [1239, 1104], [1239, 1232], [1240, 1239], [1241, 1232], [1241, 1104], [1242, 1241], [1243, 1232], [1243, 1104], [1244, 1243], [1245, 1104], [1245, 1232], [1246, 1245], [1247, 1232], [1247, 1104], [1248, 1247], [1249, 1227], [1249, 1098], [1249, 1319], [1250, 1249], [1251, 1250], [1252, 1251], [1252, 1225], [1253, 1252], [1257, 1253], [1258, 1225], [1259, 1258], [1260, 1097], [1261, 1259], [1261, 1260], [1262, 547], [1263, 1255], [1263, 1306], [1264, 1263], [1265, 1264], [1266, 1262], [1266, 1265], [1267, 1266], [1268, 1257], [1269, 1261], [1271, 1270], [1272, 1271], [1273, 547], [1274, 1255], [1274, 1306], [1276, 1274], [1277, 1276], [1277, 1273], [1278, 329], [1278, 1277], [1278, 750], [1278, 916], [1278, 794], [1278, 168], [1278, 763], [1278, 1348], [1278, 533], [1278, 379], [1278, 503], [1278, 712], [1278, 777], [1278, 898], [1278, 923], [1278, 241], [1279, 1278], [1280, 1279], [1281, 547], [1282, 1255], [1282, 1306], [1284, 1282], [1285, 1281], [1285, 1284], [1286, 168], [1286, 763], [1286, 1348], [1286, 533], [1286, 379], [1286, 1285], [1286, 503], [1286, 712], [1286, 777], [1286, 898], [1286, 923], [1286, 794], [1286, 241], [1286, 329], [1286, 750], [1286, 916], [1287, 1286], [1288, 1287], [1289, 547], [1290, 1255], [1290, 1306], [1292, 1290], [1293, 1289], [1293, 1292], [1294, 533], [1294, 379], [1294, 503], [1294, 712], [1294, 923], [1294, 794], [1294, 241], [1294, 329], [1294, 750], [1294, 763], [1294, 1348], [1294, 916], [1294, 777], [1294, 898], [1294, 168], [1294, 1293], [1295, 1294], [1295, 1303], [1295, 1220], [1295, 1089], [1296, 1295], [1297, 547], [1298, 1255], [1298, 1306], [1300, 1298], [1301, 1300], [1301, 1297], [1302, 168], [1302, 763], [1302, 1348], [1302, 533], [1302, 379], [1302, 503], [1302, 712], [1302, 777], [1302, 898], [1302, 923], [1302, 794], [1302, 241], [1302, 1301], [1302, 329], [1302, 750], [1302, 916], [1303, 1302], [1306, 1306], [1306, 1255], [1307, 1255], [1307, 1306], [1308, 1349], [1308, 548], [1308, 1307], [1309, 1308], [1312, 1254], [1312, 1304], [1313, 1312], [1314, 1313], [1315, 1314], [1319, 1227], [1319, 1098], [1319, 1319], [1319, 1167], [1320, 1097], [1321, 1320], [1323, 1098], [1323, 1319], [1323, 1322], [1324, 1323], [1325, 1316], [1325, 1222], [1325, 1090], [1326, 1325], [1327, 1220], [1327, 1089], [1327, 1303], [1328, 1327], [1331, 1089], [1331, 1303], [1331, 1220], [1332, 1331], [1335, 1220], [1335, 1089], [1335, 1303], [1336, 1335], [1339, 1220], [1339, 1089], [1339, 1303], [1340, 1339], [1342, 547], [1343, 548], [1343, 1349], [1345, 1343], [1346, 1342], [1346, 1345], [1347, 1333], [1347, 1303], [1347, 1337], [1347, 1329], [1347, 1220], [1347, 1341], [1347, 1089], [1348, 1346], [1348, 1347], [1349, 1349], [1349, 548], [1352, 1352], [1352, 549], [1353, 171], [1354, 1353], [1354, 1352], [1354, 549], [1355, 1354], [1356, 1349], [1356, 548], [1357, 1356], [1358, 102], [1359, 1358], [1364, 1363], [1371, 1370], [1371, 1369], [1372, 1371], [1374, 1369], [1376, 1374], [1376, 1375], [1377, 1376], [1381, 1379], [1382, 1378], [1382, 1381], [1383, 1382], [1383, 1378], [1384, 1377], [1385, 1384], [1386, 1385], [1387, 1383], [1388, 1386], [1391, 1390], [1392, 1391], [1394, 1377], [1395, 1394], [1396, 1442], [1396, 1392], [1398, 1395], [1398, 1396], [1399, 1398], [1400, 1399], [1401, 1400], [1402, 1377], [1403, 1402], [1404, 1442], [1404, 1392], [1406, 1403], [1406, 1404], [1407, 1406], [1408, 1407], [1409, 1408], [1410, 1442], [1410, 1392], [1411, 1410], [1411, 1390], [1412, 1411], [1414, 1412], [1414, 1414], [1415, 1377], [1416, 1415], [1417, 1390], [1418, 1414], [1418, 1412], [1419, 1418], [1419, 1417], [1421, 1419], [1422, 1416], [1422, 1421], [1423, 1422], [1424, 1423], [1425, 1424], [1426, 1412], [1426, 1414], [1427, 1377], [1428, 1427], [1429, 1390], [1430, 1429], [1431, 1428], [1431, 1430], [1434, 1433], [1435, 1434], [1436, 1435], [1436, 1432], [1437, 1436], [1438, 1426], [1439, 1431], [1442, 1442], [1442, 1392], [1443, 1390], [1444, 1443], [1445, 1444], [1445, 1392], [1445, 1442], [1446, 1445], [1453, 1451], [1453, 1452], [1454, 1453], [1455, 1454], [1456, 1455], [1457, 1456], [1460, 1451], [1462, 1461], [1462, 1460], [1463, 1462], [1464, 1463], [1465, 1464], [1466, 1465], [1469, 1460], [1471, 1470], [1471, 1469], [1472, 1471], [1473, 1472], [1476, 1474], [1476, 1476], [1477, 1476], [1477, 1474], [1478, 1477], [1479, 1473], [1480, 1479], [1480, 1478], [1481, 1480], [1482, 1481], [1483, 1482], [1484, 1473], [1485, 1484], [1486, 1485], [1487, 1486], [1488, 1473], [1491, 1488], [1493, 1492], [1494, 1493], [1495, 1494], [1499, 1497], [1500, 1499], [1504, 1502], [1505, 1501], [1505, 1504], [1506, 1505], [1508, 1506], [1509, 1508], [1510, 1500], [1510, 1509], [1511, 1510], [1511, 1500], [1515, 1513], [1516, 1490], [1516, 1515], [1520, 1518], [1521, 1517], [1521, 1520], [1522, 1521], [1524, 1522], [1525, 1524], [1526, 1516], [1526, 1525], [1527, 1517], [1527, 1526], [1528, 1476], [1528, 1474], [1529, 1473], [1530, 1529], [1535, 1533], [1536, 1511], [1536, 1535], [1540, 1538], [1541, 1540], [1541, 1537], [1542, 1541], [1544, 1542], [1545, 1544], [1546, 1545], [1546, 1536], [1547, 1546], [1547, 1537], [1548, 1474], [1548, 1476], [1549, 1548], [1550, 1473], [1551, 1550], [1551, 1549], [1552, 1547], [1553, 1551], [1558, 1556], [1559, 1555], [1559, 1558], [1560, 1559], [1561, 1560], [1562, 1561], [1562, 1559], [1567, 1565], [1568, 1567], [1568, 1564], [1569, 1568], [1569, 1562], [1570, 1569], [1571, 1570], [1577, 1575], [1578, 1578], [1578, 1577], [1578, 1549], [1578, 1562], [1579, 1590], [1579, 1572], [1580, 1571], [1582, 1580], [1583, 1578], [1583, 1582], [1584, 1579], [1584, 1583], [1585, 1584], [1586, 1585], [1586, 1562], [1587, 1586], [1588, 1587], [1589, 1563], [1589, 1589], [1590, 1572], [1590, 1590], [1594, 1592], [1595, 1594], [1595, 1591], [1596, 1571], [1598, 1596], [1599, 1598], [1600, 1595], [1600, 1599], [1601, 1600], [1602, 1601], [1604, 1603], [1604, 1572], [1604, 1590], [1605, 1604], [1606, 1563], [1606, 1589], [1607, 1606], [1614, 1612], [1615, 1743], [1615, 1614], [1615, 1770], [1615, 1782], [1615, 1615], [1615, 1549], [1615, 1562], [1615, 1578], [1616, 1609], [1616, 1795], [1617, 1571], [1619, 1617], [1620, 1615], [1620, 1619], [1621, 1616], [1621, 1620], [1622, 1621], [1623, 1770], [1623, 1562], [1623, 1622], [1624, 1623], [1625, 1624], [1626, 1623], [1626, 1625], [1627, 1626], [1628, 1624], [1629, 1628], [1630, 1627], [1631, 1630], [1632, 1608], [1632, 1635], [1633, 1632], [1634, 1795], [1634, 1609], [1635, 1634], [1637, 1794], [1638, 1609], [1638, 1795], [1639, 1637], [1639, 1638], [1640, 1639], [1641, 1640], [1644, 1643], [1645, 1644], [1646, 1770], [1646, 1760], [1646, 1562], [1646, 1552], [1646, 1642], [1647, 1794], [1648, 1647], [1649, 1571], [1650, 1649], [1651, 1650], [1652, 1648], [1652, 1651], [1653, 1652], [1654, 1653], [1654, 1646], [1655, 1770], [1655, 1562], [1655, 1654], [1655, 1646], [1658, 1657], [1659, 1658], [1660, 1562], [1660, 1807], [1660, 1656], [1660, 1770], [1663, 1662], [1664, 1663], [1665, 1661], [1665, 1664], [1666, 1665], [1666, 1770], [1666, 1562], [1667, 1666], [1668, 1667], [1669, 1668], [1670, 1660], [1670, 1669], [1671, 1670], [1671, 1770], [1671, 1661], [1671, 1562], [1672, 1641], [1673, 1671], [1678, 1676], [1679, 1678], [1679, 1675], [1680, 1571], [1682, 1680], [1683, 1682], [1684, 1679], [1684, 1683], [1685, 1684], [1686, 1685], [1688, 1687], [1692, 1690], [1693, 1689], [1693, 1692], [1694, 1571], [1696, 1694], [1697, 1696], [1698, 1697], [1698, 1693], [1699, 1698], [1699, 1693], [1699, 1770], [1699, 1562], [1703, 1701], [1704, 1703], [1704, 1770], [1704, 1562], [1704, 1686], [1708, 1706], [1709, 1708], [1709, 1705], [1710, 1562], [1710, 1709], [1710, 1770], [1712, 1710], [1713, 1712], [1714, 1713], [1714, 1704], [1715, 1714], [1716, 1699], [1717, 1715], [1722, 1720], [1723, 1719], [1723, 1722], [1724, 1571], [1726, 1724], [1727, 1726], [1728, 1723], [1728, 1727], [1729, 1728], [1730, 1729], [1732, 1731], [1736, 1734], [1737, 1736], [1737, 1733], [1738, 1571], [1740, 1738], [1741, 1740], [1742, 1737], [1742, 1741], [1743, 1742], [1743, 1562], [1743, 1770], [1743, 1737], [1747, 1745], [1748, 1730], [1748, 1747], [1748, 1562], [1748, 1770], [1752, 1750], [1753, 1749], [1753, 1752], [1754, 1562], [1754, 1753], [1754, 1770], [1756, 1754], [1757, 1756], [1758, 1748], [1758, 1757], [1759, 1758], [1760, 1743], [1761, 1759], [1766, 1764], [1767, 1763], [1767, 1766], [1768, 1767], [1768, 1770], [1768, 1562], [1769, 1768], [1770, 1767], [1770, 1769], [1771, 1627], [1772, 1771], [1773, 1772], [1774, 1773], [1775, 1795], [1775, 1609], [1777, 1775], [1777, 1777], [1781, 1779], [1782, 1743], [1782, 1770], [1782, 1782], [1782, 1615], [1782, 1562], [1782, 1781], [1783, 1777], [1783, 1775], [1784, 1571], [1786, 1784], [1787, 1782], [1787, 1786], [1788, 1783], [1788, 1787], [1789, 1788], [1790, 1770], [1790, 1789], [1790, 1562], [1791, 1790], [1792, 1791], [1793, 1775], [1793, 1777], [1794, 1793], [1795, 1609], [1795, 1777], [1795, 1795], [1795, 1775], [1799, 1797], [1800, 1796], [1800, 1799], [1801, 1571], [1803, 1801], [1804, 1803], [1805, 1800], [1805, 1804], [1806, 1805], [1807, 1806], [1809, 1808], [1810, 1609], [1810, 1795], [1810, 1809], [1811, 1810], [1815, 1813], [1816, 1825], [1816, 1782], [1816, 1615], [1816, 1549], [1816, 1562], [1816, 1770], [1816, 1815], [1816, 1743], [1816, 1578], [1817, 1635], [1817, 1608], [1818, 1817], [1819, 1571], [1821, 1819], [1822, 1816], [1822, 1821], [1823, 1818], [1823, 1822], [1824, 1823], [1825, 1824], [1830, 1828], [1831, 1830], [1831, 1827], [1832, 1831], [1832, 1770], [1832, 1825], [1832, 1562], [1833, 1832], [1834, 1833], [1840, 1838], [1841, 1549], [1841, 1562], [1841, 1816], [1841, 1841], [1841, 1840], [1841, 1578], [1841, 1770], [1841, 1825], [1842, 1853], [1842, 1835], [1843, 1834], [1845, 1843], [1846, 1841], [1846, 1845], [1847, 1842], [1847, 1846], [1848, 1847], [1849, 1770], [1849, 1825], [1849, 1562], [1849, 1848], [1850, 1849], [1851, 1850], [1852, 1826], [1852, 1852], [1853, 1835], [1853, 1853], [1857, 1855], [1858, 1857], [1858, 1854], [1859, 1834], [1861, 1859], [1862, 1861], [1863, 1858], [1863, 1862], [1864, 1863], [1865, 1864], [1867, 1866], [1867, 1835], [1867, 1853], [1868, 1867], [1869, 1826], [1869, 1852], [1870, 1869], [1874, 1872], [1875, 1874], [1875, 1871], [1876, 1562], [1876, 1884], [1876, 1875], [1876, 1770], [1876, 1825], [1880, 1878], [1881, 1877], [1881, 1880], [1882, 1826], [1882, 1852], [1883, 1876], [1883, 1882], [1884, 1881], [1884, 1883], [1888, 1886], [1889, 1885], [1889, 1888], [1890, 1834], [1892, 1890], [1893, 1892], [1894, 1889], [1894, 1893], [1895, 1894], [1896, 1895], [1898, 1897], [1902, 1900], [1903, 1899], [1903, 1902], [1904, 1834], [1906, 1904], [1907, 1906], [1908, 1903], [1908, 1907], [1909, 1884], [1909, 1908], [1909, 1903], [1913, 1911], [1914, 1896], [1914, 1913], [1914, 1884], [1915, 1834], [1916, 1826], [1916, 1852], [1917, 1916], [1917, 1915], [1919, 1917], [1920, 1919], [1921, 1920], [1921, 1914], [1922, 1921], [1923, 1909], [1924, 1922], [1926, 1852], [1926, 1826], [1927, 1926], [1933, 1931], [1934, 1933], [1934, 1930], [1935, 1834], [1937, 1935], [1938, 1937], [1939, 1938], [1939, 1934], [1940, 1939], [1941, 1940], [1943, 1942], [1948, 1946], [1949, 1948], [1951, 1950], [1954, 1952], [1955, 1949], [1955, 1954], [1956, 1951], [1956, 1955], [1957, 1956], [1958, 1957], [1959, 1958], [1960, 1959], [1961, 1960], [1962, 1959], [1963, 1962], [1964, 1959], [1965, 1964], [1967, 1966], [1969, 1968], [1970, 1969], [1972, 1971], [1973, 1972], [1975, 1973], [1975, 1974], [1976, 1975], [1977, 1976], [1981, 1979], [1982, 1981], [1983, 1973], [1984, 1983], [1987, 1985], [1988, 1984], [1988, 1987], [1989, 1988], [1990, 1982], [1990, 1989], [1991, 1984], [1991, 1990], [1995, 1993], [1996, 1995], [1999, 1998], [1999, 1997], [2001, 1999], [2002, 2001], [2003, 2002], [2003, 1996], [2004, 2003], [2005, 1991], [2006, 2004]]}
| {"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/0135b64b53c9b1ad53e1857338cd537508c222fe9ac94ce7e1d4697fd751d1e2_0135b64b53c9b1ad53e1857338cd537508c222fe9ac94ce7e1d4697fd751d1e2.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__int64 v4; // rbx\nunsigned int v5; // eax\nint v6; // eax\nint v7; // edx\nint v8; // edx\nint v9; // eax\nint v10; // eax\nunsigned int v11; // eax\nunsigned int v12; // eax\nunsigned int v13; // eax\nunsigned int v14; // eax\nint v15; // eax\nunsigned int v16; // eax\nunsigned int v17; // eax\nunsigned int v18; // eax\nint v19; // eax\nchar *v20; // rbx\nint v21; // er12\n__int64 v22; // [rsp+10h] [rbp-2D0h] BYREF\n__int64 v23; // [rsp+18h] [rbp-2C8h]\n__int64 v24; // [rsp+20h] [rbp-2C0h]\n__int64 v25; // [rsp+28h] [rbp-2B8h]\n__int64 v26; // [rsp+30h] [rbp-2B0h]\n__int64 v27; // [rsp+38h] [rbp-2A8h]\n__int64 v28; // [rsp+40h] [rbp-2A0h]\n__int64 v29; // [rsp+48h] [rbp-298h]\n__int64 v30; // [rsp+50h] [rbp-290h]\n__int64 v31; // [rsp+58h] [rbp-288h]\n__int64 v32; // [rsp+60h] [rbp-280h]\n__int64 v33; // [rsp+68h] [rbp-278h]\n__int64 v34; // [rsp+70h] [rbp-270h]\n__int64 v35; // [rsp+78h] [rbp-268h]\n__int64 v36; // [rsp+80h] [rbp-260h]\n__int64 v37; // [rsp+88h] [rbp-258h]\nchar nptr[8]; // [rsp+90h] [rbp-250h] BYREF\n__int64 v39; // [rsp+98h] [rbp-248h]\nint v40; // [rsp+A0h] [rbp-240h] BYREF\nunsigned int v41; // [rsp+A4h] [rbp-23Ch] BYREF\nchar v42; // [rsp+AAh] [rbp-236h]\nchar v43; // [rsp+ABh] [rbp-235h]\nunsigned int v44; // [rsp+ACh] [rbp-234h]\nunsigned int v45; // [rsp+B0h] [rbp-230h]\nunsigned int v46; // [rsp+B4h] [rbp-22Ch]\n__int64 v47; // [rsp+B8h] [rbp-228h]\nint v48; // [rsp+C4h] [rbp-21Ch]\nint v49; // [rsp+C8h] [rbp-218h]\nchar v50; // [rsp+CFh] [rbp-211h]\nint v51; // [rsp+D0h] [rbp-210h]\nunsigned int v52; // [rsp+D4h] [rbp-20Ch]\nint v53; // [rsp+D8h] [rbp-208h]\nint v54; // [rsp+DCh] [rbp-204h]\n__int64 v55; // [rsp+E0h] [rbp-200h]\nchar v56; // [rsp+EFh] [rbp-1F1h]\nunsigned int v57; // [rsp+F0h] [rbp-1F0h]\nunsigned int v58; // [rsp+F4h] [rbp-1ECh]\nbool v59; // [rsp+FAh] [rbp-1E6h]\nchar v60; // [rsp+FBh] [rbp-1E5h]\nint v61; // [rsp+FCh] [rbp-1E4h]\n_BYTE *v62; // [rsp+100h] [rbp-1E0h]\nint v63; // [rsp+10Ch] [rbp-1D4h]\n_QWORD *v64; // [rsp+110h] [rbp-1D0h]\nint v65; // [rsp+118h] [rbp-1C8h]\nint v66; // [rsp+11Ch] [rbp-1C4h]\nint v67; // [rsp+120h] [rbp-1C0h]\nint v68; // [rsp+124h] [rbp-1BCh]\n__int64 v69; // [rsp+128h] [rbp-1B8h]\nchar *v70; // [rsp+130h] [rbp-1B0h]\n_BYTE *v71; // [rsp+138h] [rbp-1A8h]\nunsigned int v72; // [rsp+140h] [rbp-1A0h]\nunsigned int v73; // [rsp+144h] [rbp-19Ch]\nunsigned int v74; // [rsp+148h] [rbp-198h]\nint v75; // [rsp+14Ch] [rbp-194h]\n__int64 v76; // [rsp+150h] [rbp-190h]\nunsigned int v77; // [rsp+158h] [rbp-188h]\nunsigned int v78; // [rsp+15Ch] [rbp-184h]\nunsigned int v79; // [rsp+160h] [rbp-180h]\nint v80; // [rsp+164h] [rbp-17Ch]\n__int64 v81; // [rsp+168h] [rbp-178h]\nvoid *v82; // [rsp+170h] [rbp-170h]\nvoid *v83; // [rsp+178h] [rbp-168h]\nvoid *v84; // [rsp+180h] [rbp-160h]\nvoid *v85; // [rsp+188h] [rbp-158h]\nvoid *v86; // [rsp+190h] [rbp-150h]\nvoid *v87; // [rsp+198h] [rbp-148h]\nvoid *v88; // [rsp+1A0h] [rbp-140h]\nvoid *ptr; // [rsp+1A8h] [rbp-138h]\nint i31; // [rsp+1B4h] [rbp-12Ch]\nint i30; // [rsp+1B8h] [rbp-128h]\nint i29; // [rsp+1BCh] [rbp-124h]\nint i28; // [rsp+1C0h] [rbp-120h]\nint v94; // [rsp+1C4h] [rbp-11Ch]\nint v95; // [rsp+1C8h] [rbp-118h]\nint i27; // [rsp+1CCh] [rbp-114h]\nint i26; // [rsp+1D0h] [rbp-110h]\nunsigned int i25; // [rsp+1D4h] [rbp-10Ch]\nunsigned int i24; // [rsp+1D8h] [rbp-108h]\nunsigned int v100; // [rsp+1DCh] [rbp-104h]\nint i23; // [rsp+1E0h] [rbp-100h]\nint i21; // [rsp+1E4h] [rbp-FCh]\nint v103; // [rsp+1E8h] [rbp-F8h]\nchar v104; // [rsp+1EFh] [rbp-F1h]\nint i22; // [rsp+1F0h] [rbp-F0h]\nint i20; // [rsp+1F4h] [rbp-ECh]\nint i19; // [rsp+1F8h] [rbp-E8h]\nint i18; // [rsp+1FCh] [rbp-E4h]\nint v109; // [rsp+200h] [rbp-E0h]\nint i17; // [rsp+204h] [rbp-DCh]\nint i16; // [rsp+208h] [rbp-D8h]\nint i15; // [rsp+20Ch] [rbp-D4h]\nint i14; // [rsp+210h] [rbp-D0h]\nint v114; // [rsp+214h] [rbp-CCh]\nunsigned int v115; // [rsp+218h] [rbp-C8h]\nint v116; // [rsp+21Ch] [rbp-C4h]\nunsigned int i13; // [rsp+220h] [rbp-C0h]\nunsigned int i12; // [rsp+224h] [rbp-BCh]\nunsigned int v119; // [rsp+228h] [rbp-B8h]\nunsigned int v120; // [rsp+22Ch] [rbp-B4h]\nunsigned int i11; // [rsp+230h] [rbp-B0h]\nint v122; // [rsp+234h] [rbp-ACh]\nunsigned int i10; // [rsp+238h] [rbp-A8h]\nint i9; // [rsp+23Ch] [rbp-A4h]\nunsigned int i8; // [rsp+240h] [rbp-A0h]\nint i7; // [rsp+244h] [rbp-9Ch]\nint i6; // [rsp+248h] [rbp-98h]\nint i5; // [rsp+24Ch] [rbp-94h]\nchar v129; // [rsp+253h] [rbp-8Dh]\nint v130; // [rsp+254h] [rbp-8Ch]\nchar v131; // [rsp+259h] [rbp-87h]\nchar v132; // [rsp+25Ah] [rbp-86h]\nchar v133; // [rsp+25Bh] [rbp-85h]\nunsigned int i4; // [rsp+25Ch] [rbp-84h]\nchar v135; // [rsp+263h] [rbp-7Dh]\nint v136; // [rsp+264h] [rbp-7Ch]\nunsigned int v137; // [rsp+268h] [rbp-78h]\nint v138; // [rsp+26Ch] [rbp-74h]\nint i3; // [rsp+270h] [rbp-70h]\nchar v140; // [rsp+275h] [rbp-6Bh]\nchar v141; // [rsp+276h] [rbp-6Ah]\nchar v142; // [rsp+277h] [rbp-69h]\nint i2; // [rsp+278h] [rbp-68h]\nchar v144; // [rsp+27Fh] [rbp-61h]\nint v145; // [rsp+280h] [rbp-60h]\nint i1; // [rsp+284h] [rbp-5Ch]\nint nn; // [rsp+288h] [rbp-58h]\nint v148; // [rsp+28Ch] [rbp-54h]\nint mm; // [rsp+290h] [rbp-50h]\nint ll; // [rsp+294h] [rbp-4Ch]\nchar v151; // [rsp+299h] [rbp-47h]\nchar v152; // [rsp+29Ah] [rbp-46h]\nchar v153; // [rsp+29Bh] [rbp-45h]\nint kk; // [rsp+29Ch] [rbp-44h]\nint jj; // [rsp+2A0h] [rbp-40h]\nint ii; // [rsp+2A4h] [rbp-3Ch]\nchar v157; // [rsp+2ABh] [rbp-35h]\nint v158; // [rsp+2ACh] [rbp-34h]\nint n; // [rsp+2B0h] [rbp-30h]\nint m; // [rsp+2B4h] [rbp-2Ch]\nchar v161; // [rsp+2BBh] [rbp-25h]\nint l; // [rsp+2BCh] [rbp-24h]\nint k; // [rsp+2C0h] [rbp-20h]\nint j; // [rsp+2C4h] [rbp-1Ch]\nint i; // [rsp+2C8h] [rbp-18h]\nint v166; // [rsp+2CCh] [rbp-14h]\n\nif ( a1 > 1 )\nsub_404EE8((unsigned int)a1, a2);\nif ( !byte_40D180 )\nsub_405BBE(&byte_40D180, \"../src/raylib.h\", 16LL);\nif ( !byte_40D380 )\nsub_405BBE(&byte_40D380, \"raylib_api.txt\", 15LL);\nif ( !byte_40D140 )\nsub_405BBE(&byte_40D140, \"RLAPI\", 6LL);\nv41 = 0;\nptr = (void *)sub_405572(&byte_40D180, &v41, a3);\nif ( ptr )\n{\nv40 = 0;\nv88 = (void *)sub_405683(ptr, v41, &v40);\nif ( byte_40D160 )\n{\nv166 = -1;\nfor ( i = 0; i < v40; ++i )\n{\nif ( v166 < 0 )\n{\nif ( (int)sub_405B49(*((_QWORD *)v88 + i), &byte_40D160) >= 0 )\nv166 = i;\n}\nelse\n{\nfree(*((void **)v88 + i));\n}\n}\nif ( v166 >= 0 )\nv40 = v166;\nprintf(\"Number of truncated text lines: %i\\n\", (unsigned int)v40);\n}\nv87 = malloc(0x2000uLL);\nv86 = malloc(0x100uLL);\nv85 = malloc(0x100uLL);\nv84 = malloc(0x100uLL);\nv83 = malloc(0x100uLL);\nv82 = malloc(0x1000uLL);\nfor ( j = 0; j < v40; ++j )\n{\nfor ( k = 0; *(_BYTE *)(*((_QWORD *)v88 + j) + k) == 32 || *(_BYTE *)(*((_QWORD *)v88 + j) + k) == 9; ++k )\n;\nif ( (unsigned __int8)sub_405AF7(*((_QWORD *)v88 + j) + k, \"#define \", 8LL) )\n*((_DWORD *)v87 + dword_40D0E0++) = j;\n}\nfor ( l = 0; l < v40; ++l )\n{\nif ( (unsigned __int8)sub_405AF7(*((_QWORD *)v88 + l), \"typedef struct\", 14LL) )\n{\nv161 = sub_405AF7(*((_QWORD *)v88 + l + 1), \"struct\", 6LL);\nif ( v161 != 1 )\n{\nfor ( m = 0; m <= 511; ++m )\n{\nv42 = *(_BYTE *)(*((_QWORD *)v88 + l) + m);\nif ( v42 == 123 )\nv161 = 1;\nif ( v42 == 123 || v42 == 59 || !v42 )\nbreak;\n}\n}\nif ( v161 == 1 )\n{\n*((_DWORD *)v86 + dword_40D0E4) = l;\nwhile ( **((_BYTE **)v88 + l) != 125 )\n++l;\nwhile ( **((_BYTE **)v88 + l) )\n++l;\n++dword_40D0E4;\n}\n}\n}\nfor ( n = 0; n < v40; ++n )\n{\nif ( (unsigned __int8)sub_405AF7(*((_QWORD *)v88 + n), \"typedef\", 7LL) )\n{\nv158 = 0;\nv157 = 0;\nfor ( ii = 0; ii <= 511; ++ii )\n{\nv43 = *(_BYTE *)(*((_QWORD *)v88 + n) + ii);\nif ( v43 == 32 )\n++v158;\nif ( v43 == 59 && v158 == 2 )\nv157 = 1;\nif ( v43 == 59 || v43 == 40 || !v43 )\nbreak;\n}\nif ( v157 == 1 )\n*((_DWORD *)v85 + dword_40D0E8++) = n;\n}\n}\nfor ( jj = 0; jj < v40; ++jj )\n{\nif ( (unsigned __int8)sub_405AF7(*((_QWORD *)v88 + jj), \"typedef enum {\", 14LL) )\n{\nv4 = *((_QWORD *)v88 + jj);\nif ( *(_BYTE *)(v4 + (unsigned int)sub_405AC3(v4) - 1) != 59 )\n*((_DWORD *)v84 + dword_40D0EC++) = jj;\n}\n}\nfor ( kk = 0; kk < v40; ++kk )\n{\nif ( (unsigned __int8)sub_405AF7(*((_QWORD *)v88 + kk), \"typedef\", 7LL) )\n{\nv153 = 0;\nv152 = 0;\nv151 = 0;\nfor ( ll = 0; ll <= 511; ++ll )\n{\nif ( *(_BYTE *)(*((_QWORD *)v88 + kk) + ll) == 40 && *(_BYTE *)(*((_QWORD *)v88 + kk) + ll + 1LL) == 42 )\nv153 = 1;\nif ( *(_BYTE *)(*((_QWORD *)v88 + kk) + ll) == 41 && *(_BYTE *)(*((_QWORD *)v88 + kk) + ll + 1LL) == 40 )\nv152 = 1;\nif ( *(_BYTE *)(*((_QWORD *)v88 + kk) + ll) == 41 && *(_BYTE *)(*((_QWORD *)v88 + kk) + ll + 1LL) == 59 )\nv151 = 1;\nif ( v151 )\nbreak;\n}\nif ( v153 && v152 && v151 )\n*((_DWORD *)v83 + dword_40D0F0++) = kk;\n}\n}\nfor ( mm = 0; mm < v40; ++mm )\n{\nv5 = sub_405AC3(&byte_40D140);\nif ( (unsigned __int8)sub_405AF7(*((_QWORD *)v88 + mm), &byte_40D140, v5) )\n*((_DWORD *)v82 + dword_40D0F4++) = mm;\n}\nfree(ptr);\n::ptr = calloc(0x800uLL, 0x1C8uLL);\nv148 = 0;\nfor ( nn = 0; nn < dword_40D0E0; ++nn )\n{\nv55 = *((_QWORD *)v88 + *((int *)v87 + nn));\nfor ( i1 = 0; *(_BYTE *)(i1 + v55) == 32 || *(_BYTE *)(i1 + v55) == 9; ++i1 )\n;\nfor ( i1 += 8; *(_BYTE *)(i1 + v55) == 32 || *(_BYTE *)(i1 + v55) == 9; ++i1 )\n;\nv54 = i1;\nv145 = 0;\nwhile ( *(_BYTE *)(i1 + v55) && (*(_BYTE *)(i1 + v55) != 32 && *(_BYTE *)(i1 + v55) != 9 || v145) )\n{\nif ( *(_BYTE *)(i1 + v55) == 40 )\n++v145;\nif ( *(_BYTE *)(i1 + v55) == 41 )\n--v145;\n++i1;\n}\nv53 = i1 - 1;\nv52 = i1 - v54;\nv144 = 0;\nfor ( i2 = 0; i2 < v148; ++i2 )\n{\nv6 = sub_405AC3((char *)::ptr + 456 * i2);\nif ( v52 == v6 && (unsigned __int8)sub_405AF7((char *)::ptr + 456 * i2, v54 + v55, v52) )\n{\nv144 = 1;\nbreak;\n}\n}\nif ( !v144 )\n{\nsub_405BBE((char *)::ptr + 456 * v148, v54 + v55, v52);\nif ( *(_BYTE *)(v53 + v55) == 41 )\n*((_DWORD *)::ptr + 114 * v148 + 16) = 1;\nwhile ( *(_BYTE *)(i1 + v55) == 32 || *(_BYTE *)(i1 + v55) == 9 )\n++i1;\nv51 = i1;\nif ( !*(_BYTE *)(i1 + v55) || *(_BYTE *)(i1 + v55) == 47 )\n*((_DWORD *)::ptr + 114 * v148 + 16) = 2;\nif ( *(_BYTE *)(i1 + v55) == 34 )\n{\n*((_DWORD *)::ptr + 114 * v148 + 16) = 12;\n}\nelse if ( *(_BYTE *)(i1 + v55) == 39 )\n{\n*((_DWORD *)::ptr + 114 * v148 + 16) = 11;\n}\nelse if ( (unsigned __int8)sub_405AF7(i1 + v55, \"CLITERAL(Color)\", 15LL) )\n{\n*((_DWORD *)::ptr + 114 * v148 + 16) = 13;\n}\nelse if ( ((*__ctype_b_loc())[*(char *)(i1 + v55)] & 0x800) != 0 )\n{\nv142 = 0;\nv141 = 1;\nv140 = 0;\nwhile ( *(_BYTE *)(i1 + v55) != 32 && *(_BYTE *)(i1 + v55) != 9 && *(_BYTE *)(i1 + v55) )\n{\nv50 = *(_BYTE *)(i1 + v55);\nif ( v50 == 46 )\nv142 = 1;\nif ( v50 == 120 )\nv140 = 1;\nif ( ((*__ctype_b_loc())[v50] & 0x800) == 0\n&& (v50 <= 96 || v50 > 102)\n&& (v50 <= 64 || v50 > 70)\n&& v50 != 120\n&& v50 != 76\n&& v50 != 46\n&& v50 != 43\n&& v50 != 45 )\n{\nv141 = 0;\n}\n++i1;\n}\nif ( v141 )\n{\nif ( v142 )\n{\nif ( *(_BYTE *)(i1 - 1LL + v55) == 102 )\nv7 = 7;\nelse\nv7 = 9;\n*((_DWORD *)::ptr + 114 * v148 + 16) = v7;\n}\nelse\n{\nif ( *(_BYTE *)(i1 - 1LL + v55) == 76 )\nv8 = 5;\nelse\nv8 = 3;\n*((_DWORD *)::ptr + 114 * v148 + 16) = v8;\n*((_BYTE *)::ptr + 456 * v148 + 452) = v140;\n}\n}\n}\nwhile ( *(_BYTE *)(i1 + v55) != 92\n&& *(_BYTE *)(i1 + v55)\n&& (*(_BYTE *)(i1 + v55) != 47 || *(_BYTE *)(i1 + 1LL + v55) != 47) )\n++i1;\nfor ( i3 = i1 - 1; *(_BYTE *)(i3 + v55) == 32 || *(_BYTE *)(i3 + v55) == 9; --i3 )\n;\nif ( *((_DWORD *)::ptr + 114 * v148 + 16) == 5 || *((_DWORD *)::ptr + 114 * v148 + 16) == 7 )\n--i3;\nv138 = i3 - v51 + 1;\nif ( v138 > 255 )\nv138 = 255;\nif ( v138 > 0 )\nsub_405BBE((char *)::ptr + 456 * v148 + 68, v51 + v55, (unsigned int)v138);\nif ( *(_BYTE *)(i1 + v55) == 47 && *(_BYTE *)(i1 + 1LL + v55) == 47 )\n{\nfor ( i1 += 2; *(_BYTE *)(i1 + v55) == 32; ++i1 )\n;\nv49 = i1;\nwhile ( *(_BYTE *)(i1 + v55) != 92 && *(_BYTE *)(i1 + v55) )\n++i1;\nv48 = i1 - 1;\nv137 = i1 - v49;\nif ( i1 - v49 > 127 )\nv137 = 127;\nsub_405BBE((char *)::ptr + 456 * v148 + 324, v49 + v55, v137);\n}\nif ( !*((_DWORD *)::ptr + 114 * v148 + 16) )\n{\nv136 = 0;\nv135 = 1;\nv47 = (__int64)::ptr + 456 * v148 + 68;\nfor ( i4 = 0; ; ++i4 )\n{\nv11 = sub_405AC3(v47);\nif ( i4 >= v11 )\nbreak;\nv133 = *(_BYTE *)(i4 + v47);\nif ( v133 != 40\n&& v133 != 41\n&& v133 != 43\n&& v133 != 45\n&& v133 != 42\n&& v133 != 47\n&& v133 != 32\n&& v133 != 9 )\n{\nif ( ((*__ctype_b_loc())[v133] & 0x800) != 0 )\n{\nv132 = 1;\nv131 = 0;\nwhile ( v133 != 40 && v133 != 41 && v133 != 42 && v133 != 47 && v133 != 32 && v133 != 9 && v133 )\n{\nif ( v133 == 46 )\nv131 = 1;\nif ( ((*__ctype_b_loc())[v133] & 0x800) == 0\n&& (v133 <= 96 || v133 > 102)\n&& (v133 <= 64 || v133 > 70)\n&& v133 != 120\n&& v133 != 76\n&& v133 != 46\n&& v133 != 43\n&& v133 != 45 )\n{\nv132 = 0;\nbreak;\n}\nv133 = *(_BYTE *)(++i4 + v47);\n}\nif ( !v132 )\n{\nv135 = 0;\nbreak;\n}\nif ( v131 )\n{\nif ( *(_BYTE *)(i4 - 1 + v47) == 102 )\nv9 = 8;\nelse\nv9 = 10;\nv130 = v9;\n}\nelse\n{\nif ( *(_BYTE *)(i4 - 1 + v47) == 76 )\nv10 = 6;\nelse\nv10 = 4;\nv130 = v10;\n}\nif ( v130 > v136 )\nv136 = v130;\n}\nelse\n{\nv46 = i4;\nwhile ( v133\n&& v133 != 32\n&& v133 != 40\n&& v133 != 41\n&& v133 != 43\n&& v133 != 45\n&& v133 != 42\n&& v133 != 47 )\nv133 = *(_BYTE *)(++i4 + v47);\nv45 = i4;\nv44 = i4 - v46;\nv129 = 0;\nfor ( i5 = 0; i5 < v148; ++i5 )\n{\nif ( (unsigned __int8)sub_405AF7((char *)::ptr + 456 * i5, v47 + (int)v46, v44) )\n{\nif ( *((int *)::ptr + 114 * i5 + 16) > 2 && *((int *)::ptr + 114 * i5 + 16) <= 10 )\n{\nif ( v136 < *((_DWORD *)::ptr + 114 * i5 + 16) )\nv136 = *((_DWORD *)::ptr + 114 * i5 + 16);\nv129 = 1;\n}\nbreak;\n}\n}\nif ( v129 != 1 )\n{\nv135 = 0;\nbreak;\n}\n}\n}\n}\nif ( v135 )\n{\nswitch ( v136 )\n{\ncase 3:\nv136 = 4;\nbreak;\ncase 5:\nv136 = 6;\nbreak;\ncase 7:\nv136 = 8;\nbreak;\ncase 9:\nv136 = 10;\nbreak;\n}\n*((_DWORD *)::ptr + 114 * v148 + 16) = v136;\n}\n}\n++v148;\n}\n}\ndword_40D0E0 = v148;\nfree(v87);\nqword_40D100 = calloc(0x40uLL, 0x40C4uLL);\nfor ( i6 = 0; i6 < dword_40D0E4; ++i6 )\n{\nv64 = (char *)v88 + 8 * *((int *)v86 + i6);\nsub_40594D(*(v64 - 1), (char *)qword_40D100 + 16580 * i6 + 64);\nv63 = 15;\nfor ( i7 = 15; i7 <= v63 + 63; ++i7 )\n{\nif ( *(_BYTE *)(*v64 + i7) == 123 || *(_BYTE *)(*v64 + i7) == 32 )\n{\nfor ( i8 = i7 - v63; *(_BYTE *)(*v64 + (int)(v63 + i8) - 1LL) == 32; --i8 )\n;\nsub_405BBE((char *)qword_40D100 + 16580 * i6, v63 + *v64, i8);\nbreak;\n}\n}\nfor ( i9 = 1; *(_BYTE *)v64[i9] != 125; ++i9 )\n{\nif ( *(_BYTE *)v64[i9] != 32 )\n{\nif ( *(_BYTE *)v64[i9] )\n{\nv62 = (_BYTE *)v64[i9];\nfor ( i10 = 0; v62[i10] != 59; ++i10 )\n;\nif ( *v62 != 47 && (unsigned __int8)sub_405AF7(v62, \"struct\", 6LL) != 1 )\n{\nsub_405806(\nv62,\ni10,\n(char *)qword_40D100 + 16580 * i6 + 64 * *((int *)qword_40D100 + 4145 * i6 + 48) + 196,\n(char *)qword_40D100 + 16580 * i6 + 64 * *((int *)qword_40D100 + 4145 * i6 + 48) + 4292);\nsub_40594D(\n&v62[i10],\n(char *)qword_40D100 + 16580 * i6 + 128 * (__int64)*((int *)qword_40D100 + 4145 * i6 + 48) + 8388);\n++*((_DWORD *)qword_40D100 + 4145 * i6 + 48);\nv122 = 0;\nv61 = *((_DWORD *)qword_40D100 + 4145 * i6 + 48) - 1;\nfor ( i11 = 0; ; ++i11 )\n{\nv12 = sub_405AC3((char *)qword_40D100 + 16580 * i6 + 64 * v61 + 4292);\nif ( i11 >= v12 )\nbreak;\nif ( *((_BYTE *)qword_40D100 + 16580 * i6 + 64 * (__int64)v61 + i11 + 4292) == 44 )\n++v122;\n}\nif ( v122 > 0 )\n{\nv120 = -1;\nfor ( i12 = 0; ; ++i12 )\n{\nv15 = sub_405AC3((char *)qword_40D100 + 16580 * i6 + 64 * v61 + 4292);\nif ( i12 >= v15 + 1 )\nbreak;\nv60 = *((_BYTE *)qword_40D100 + 16580 * i6 + 64 * (__int64)v61 + i12 + 4292);\nv59 = v60 == 0;\nif ( v60 == 44 || v59 )\n{\nif ( v120 == -1 )\n{\nv120 = i12;\n}\nelse\n{\nv58 = i12 - v119;\nsub_405BBE(\n(char *)qword_40D100 + 16580 * i6 + 64 * *((int *)qword_40D100 + 4145 * i6 + 48) + 4292,\n(char *)qword_40D100 + 16580 * i6 + 64 * (__int64)v61 + (int)v119 + 4292,\ni12 - v119);\nv13 = sub_405AC3((char *)qword_40D100 + 16580 * i6 + 64 * v61 + 196);\nsub_405BBE(\n(char *)qword_40D100 + 16580 * i6 + 64 * *((int *)qword_40D100 + 4145 * i6 + 48) + 196,\n(char *)qword_40D100 + 16580 * i6 + 64 * v61 + 196,\nv13);\nv14 = sub_405AC3((char *)qword_40D100 + 16580 * i6 + 128 * (__int64)v61 + 8388);\nsub_405BBE(\n(char *)qword_40D100\n+ 16580 * i6\n+ 128 * (__int64)*((int *)qword_40D100 + 4145 * i6 + 48)\n+ 8388,\n(char *)qword_40D100 + 16580 * i6 + 128 * (__int64)v61 + 8388,\nv14);\n++*((_DWORD *)qword_40D100 + 4145 * i6 + 48);\n}\nif ( !v59 )\n{\n++i12;\nwhile ( *((_BYTE *)qword_40D100 + 16580 * i6 + 64 * (__int64)v61 + i12 + 4292) == 32 )\n++i12;\nv119 = i12;\n}\n}\n}\n*((_BYTE *)qword_40D100 + 16580 * i6 + 64 * (__int64)v61 + (int)v120 + 4292) = 0;\n}\nv122 = 0;\nv61 = *((_DWORD *)qword_40D100 + 4145 * i6 + 48) - 1;\nfor ( i13 = 0; ; ++i13 )\n{\nv16 = sub_405AC3((char *)qword_40D100 + 16580 * i6 + 64 * v61 + 196);\nif ( i13 >= v16 )\nbreak;\nif ( *((_BYTE *)qword_40D100 + 16580 * i6 + 64 * (__int64)v61 + i13 + 196) == 44 )\n++v122;\n}\nif ( v122 > 0 )\n{\n*((_DWORD *)qword_40D100 + 4145 * i6 + 48) += v122;\nv17 = sub_405AC3((char *)qword_40D100 + 16580 * i6 + 64 * v61 + 4292);\nsub_405BBE(\n(char *)qword_40D100 + 16580 * i6 + 64 * v61 + 64 * v122 + 4292,\n(char *)qword_40D100 + 16580 * i6 + 64 * v61 + 4292,\nv17);\nv116 = v122;\nv115 = -1;\nv114 = -1;\nfor ( i14 = sub_405AC3((char *)qword_40D100 + 16580 * i6 + 64 * v61 + 196); i14 > 0; --i14 )\n{\nv56 = *((_BYTE *)qword_40D100 + 16580 * i6 + 64 * (__int64)v61 + i14 + 196);\nif ( v56 == 42 || v56 == 32 || v56 == 44 )\n{\nif ( v114 != -1 )\n{\nif ( v116 != v122 )\n{\nv115 = i14 + 1;\nsub_405BBE(\n(char *)qword_40D100 + 16580 * i6 + 64 * v61 + 64 * v116 + 4292,\n(char *)qword_40D100 + 16580 * i6 + 64 * (__int64)v61 + i14 + 197,\n(unsigned int)(v114 - i14));\n}\nv114 = -1;\n--v116;\n}\n}\nelse if ( v114 == -1 )\n{\nv114 = i14;\n}\n}\nv57 = v115;\n*((_BYTE *)qword_40D100 + 16580 * i6 + 64 * (__int64)v61 + (int)v115 + 196) = 0;\nfor ( i15 = 1; i15 <= v122; ++i15 )\n{\nsub_405BBE(\n(char *)qword_40D100 + 16580 * i6 + 64 * v61 + 64 * i15 + 196,\n(char *)qword_40D100 + 16580 * i6 + 64 * v61 + 196,\nv57);\nv18 = sub_405AC3((char *)qword_40D100 + 16580 * i6 + 128 * (__int64)v61 + 8388);\nsub_405BBE(\n(char *)qword_40D100 + 16580 * i6 + 128 * (__int64)(v61 + i15) + 8388,\n(char *)qword_40D100 + 16580 * i6 + 128 * (__int64)v61 + 8388,\nv18);\n}\n}\n}\n}\n}\n}\nfor ( i16 = 0; i16 < *((_DWORD *)qword_40D100 + 4145 * i6 + 48); ++i16 )\nsub_405A0E(\n(char *)qword_40D100 + 16580 * i6 + 64 * i16 + 4292,\n(char *)qword_40D100 + 16580 * i6 + 64 * i16 + 196);\n}\nfree(v86);\nqword_40D108 = calloc(0x40uLL, 0x100uLL);\nfor ( i17 = 0; i17 < dword_40D0E8; ++i17 )\n{\nsub_40594D(*((_QWORD *)v88 + *((int *)v85 + i17) - 1), (char *)qword_40D108 + 256 * (__int64)i17 + 128);\nv69 = *((_QWORD *)v88 + *((int *)v85 + i17));\nv109 = 8;\nv68 = 8;\nwhile ( *(_BYTE *)(v109 + v69) != 32 )\n++v109;\nv67 = v109 - v68;\nsub_405BBE((char *)qword_40D108 + 256 * (__int64)i17, v69 + v68, (unsigned int)(v109 - v68));\nv66 = ++v109;\nwhile ( *(_BYTE *)(v109 + v69) != 59 )\n++v109;\nv65 = v109 - v66;\nsub_405BBE((char *)qword_40D108 + 256 * (__int64)i17 + 64, v66 + v69, (unsigned int)(v109 - v66));\nsub_40594D(v109 + v69, (char *)qword_40D108 + 256 * (__int64)i17 + 128);\n}\nfree(v85);\nqword_40D110 = calloc(0x40uLL, 0x188C4uLL);\nfor ( i18 = 0; i18 < dword_40D0EC; ++i18 )\n{\nfor ( i19 = *((_DWORD *)v84 + i18) - 1; i19 > 0; --i19 )\n{\nv71 = (_BYTE *)*((_QWORD *)v88 + i19);\nif ( *v71 != 47 || v71[2] != 32 )\n{\nsub_40594D(*((_QWORD *)v88 + i19 + 1), (char *)qword_40D110 + 100548 * i18 + 64);\nbreak;\n}\n}\nfor ( i20 = 1; i20 <= 1023; ++i20 )\n{\nv70 = (char *)*((_QWORD *)v88 + *((_DWORD *)v84 + i18) + i20);\nif ( *v70 <= 64 || *v70 > 90 )\n{\nif ( *v70 == 125 )\n{\nfor ( i21 = 0; v70[i21 + 2] != 59; ++i21 )\n*((_BYTE *)qword_40D110 + 100548 * i18 + i21) = v70[i21 + 2];\nbreak;\n}\n}\nelse\n{\nfor ( i22 = 0; v70[i22] != 44 && v70[i22] != 32 && v70[i22] != 61 && v70[i22]; ++i22 )\n*((_BYTE *)qword_40D110 + 100548 * i18 + 64 * (__int64)*((int *)qword_40D110 + 25137 * i18 + 48) + i22 + 196) = v70[i22];\nif ( v70[i22] == 44 || !v70[i22] )\n{\n*((_DWORD *)qword_40D110 + 25137 * i18 + *((int *)qword_40D110 + 25137 * i18 + 48) + 8241) = *((_DWORD *)qword_40D110 + 25137 * i18 + *((_DWORD *)qword_40D110 + 25137 * i18 + 48) + 8240) + 1;\n}\nelse\n{\nv104 = 0;\nwhile ( v70[i22] && v70[i22] != 47 )\n{\nif ( v70[i22] == 61 )\n{\nv104 = 1;\nbreak;\n}\n++i22;\n}\nif ( v104 )\n{\nif ( v70[i22 + 1] == 32 )\ni22 += 2;\nelse\n++i22;\nv103 = 0;\n*(_QWORD *)nptr = 0LL;\nv39 = 0LL;\nwhile ( v70[i22] != 44 && v70[i22] != 32 && v70[i22] )\nnptr[v103++] = v70[i22++];\nif ( nptr[1] == 120 )\n{\nv19 = strtol(nptr, 0LL, 16);\n*((_DWORD *)qword_40D110 + 25137 * i18 + *((int *)qword_40D110 + 25137 * i18 + 48) + 8241) = v19;\n}\nelse\n{\nv20 = (char *)qword_40D110 + 100548 * i18;\nv21 = *((_DWORD *)v20 + 48);\n*(_DWORD *)&v20[4 * v21 + 32964] = atoi(nptr);\n}\n}\nelse\n{\n*((_DWORD *)qword_40D110 + 25137 * i18 + *((int *)qword_40D110 + 25137 * i18 + 48) + 8241) = *((_DWORD *)qword_40D110 + 25137 * i18 + *((_DWORD *)qword_40D110 + 25137 * i18 + 48) + 8240) + 1;\n}\n}\nsub_40594D(\n&v70[i22],\n(char *)qword_40D110 + 100548 * i18 + 128 * (__int64)*((int *)qword_40D110 + 25137 * i18 + 48) + 35012);\n++*((_DWORD *)qword_40D110 + 25137 * i18 + 48);\n}\n}\n}\nfree(v84);\nqword_40D118 = calloc(0x40uLL, 0x9E4uLL);\nfor ( i23 = 0; i23 < dword_40D0F0; ++i23 )\n{\nv76 = *((_QWORD *)v88 + *((int *)v83 + i23));\nv100 = 8;\nv75 = 8;\nwhile ( *(_BYTE *)(v100 + v76) != 40 )\n++v100;\nfor ( i24 = v100 - v75; *(_BYTE *)((int)(v75 + i24) - 1LL + v76) == 32; --i24 )\n;\nsub_405BBE((char *)qword_40D118 + 2532 * i23 + 192, v75 + v76, i24);\nv100 += 2;\nv74 = v100;\nwhile ( *(_BYTE *)(v100 + v76) != 41 )\n++v100;\nv73 = v100 - v74;\nsub_405BBE((char *)qword_40D118 + 2532 * i23, v76 + (int)v74, v100 - v74);\nv100 += 2;\ni25 = v100;\nwhile ( v100 <= 0x1FF )\n{\nif ( *(_BYTE *)(v100 + v76) == 44 || *(_BYTE *)(v100 + v76) == 41 )\n{\nv72 = v100 - i25;\nsub_405806(\n(int)i25 + v76,\nv100 - i25,\n(char *)qword_40D118 + 2532 * i23 + 32 * *((int *)qword_40D118 + 633 * i23 + 56) + 228,\n(char *)qword_40D118 + 2532 * i23 + 32 * *((int *)qword_40D118 + 633 * i23 + 56) + 612);\n++*((_DWORD *)qword_40D118 + 633 * i23 + 56);\nfor ( i25 = v100 + 1; *(_BYTE *)((int)i25 + v76) == 32; ++i25 )\n;\n}\nif ( *(_BYTE *)(v100 + v76) == 41 )\nbreak;\n++v100;\n}\nsub_40594D(v100 + v76, (char *)qword_40D118 + 2532 * i23 + 64);\nfor ( i26 = 0; i26 < *((_DWORD *)qword_40D118 + 633 * i23 + 56); ++i26 )\nsub_405A0E(\n(char *)qword_40D118 + 2532 * i23 + 32 * i26 + 612,\n(char *)qword_40D118 + 2532 * i23 + 32 * i26 + 228);\n}\nfree(v83);\nqword_40D120 = calloc(0x400uLL, 0x9E4uLL);\nfor ( i27 = 0; i27 < dword_40D0F4; ++i27 )\n{\nv81 = *((_QWORD *)v88 + *((int *)v82 + i27));\nv95 = 0;\nv94 = 0;\nfor ( i28 = 0; i28 <= 511 && *(_BYTE *)(i28 + v81) != 10; ++i28 )\n{\nif ( *(_BYTE *)(i28 + v81) == 40 )\n{\nv95 = i28 + 1;\nv22 = 0LL;\nv23 = 0LL;\nv24 = 0LL;\nv25 = 0LL;\nv26 = 0LL;\nv27 = 0LL;\nv28 = 0LL;\nv29 = 0LL;\nv30 = 0LL;\nv31 = 0LL;\nv32 = 0LL;\nv33 = 0LL;\nv34 = 0LL;\nv35 = 0LL;\nv36 = 0LL;\nv37 = 0LL;\nv80 = sub_405AC3(&byte_40D140) + 1;\nv79 = i28 - v80;\nsub_405BBE(&v22, v81 + v80, (unsigned int)(i28 - v80));\nsub_405806(&v22, v79, (char *)qword_40D120 + 2532 * i27 + 192, (char *)qword_40D120 + 2532 * i27);\nbreak;\n}\n}\nfor ( i29 = v95; i29 <= 511; ++i29 )\n{\nif ( *(_BYTE *)(i29 + v81) == 44 )\n{\nv22 = 0LL;\nv23 = 0LL;\nv24 = 0LL;\nv25 = 0LL;\nv26 = 0LL;\nv27 = 0LL;\nv28 = 0LL;\nv29 = 0LL;\nv30 = 0LL;\nv31 = 0LL;\nv32 = 0LL;\nv33 = 0LL;\nv34 = 0LL;\nv35 = 0LL;\nv36 = 0LL;\nv37 = 0LL;\nv77 = i29 - v95;\nsub_405BBE(&v22, v81 + v95, (unsigned int)(i29 - v95));\nsub_405806(\n&v22,\nv77,\n(char *)qword_40D120 + 2532 * i27 + 32 * *((int *)qword_40D120 + 633 * i27 + 56) + 228,\n(char *)qword_40D120 + 2532 * i27 + 32 * *((int *)qword_40D120 + 633 * i27 + 56) + 612);\nv95 = i29 + 1;\nif ( *(_BYTE *)(i29 + 1LL + v81) == 32 )\n++v95;\n++*((_DWORD *)qword_40D120 + 633 * i27 + 56);\n}\nelse if ( *(_BYTE *)(i29 + v81) == 41 )\n{\nv94 = i29 + 2;\nif ( *(_BYTE *)(i29 - 4LL + v81) != 118\n|| *(_BYTE *)(i29 - 3LL + v81) != 111\n|| *(_BYTE *)(i29 - 2LL + v81) != 105\n|| *(_BYTE *)(i29 - 1LL + v81) != 100 )\n{\nv22 = 0LL;\nv23 = 0LL;\nv24 = 0LL;\nv25 = 0LL;\nv26 = 0LL;\nv27 = 0LL;\nv28 = 0LL;\nv29 = 0LL;\nv30 = 0LL;\nv31 = 0LL;\nv32 = 0LL;\nv33 = 0LL;\nv34 = 0LL;\nv35 = 0LL;\nv36 = 0LL;\nv37 = 0LL;\nv78 = i29 - v95;\nsub_405BBE(&v22, v81 + v95, (unsigned int)(i29 - v95));\nsub_405806(\n&v22,\nv78,\n(char *)qword_40D120 + 2532 * i27 + 32 * *((int *)qword_40D120 + 633 * i27 + 56) + 228,\n(char *)qword_40D120 + 2532 * i27 + 32 * *((int *)qword_40D120 + 633 * i27 + 56) + 612);\n++*((_DWORD *)qword_40D120 + 633 * i27 + 56);\n}\nbreak;\n}\n}\nsub_40594D(v94 + v81, (char *)qword_40D120 + 2532 * i27 + 64);\nfor ( i30 = 0; i30 < *((_DWORD *)qword_40D120 + 633 * i27 + 56); ++i30 )\nsub_405A0E(\n(char *)qword_40D120 + 2532 * i27 + 32 * i30 + 612,\n(char *)qword_40D120 + 2532 * i27 + 32 * i30 + 228);\n}\nfree(v82);\nfor ( i31 = 0; i31 < v40; ++i31 )\nfree(*((void **)v88 + i31));\nfree(v88);\nprintf(\"\\nInput file: %s\", &byte_40D180);\nprintf(\"\\nOutput file: %s\", &byte_40D380);\nif ( dword_40D580 )\n{\nswitch ( dword_40D580 )\n{\ncase 1:\nputs(\"\\nOutput format: JSON\\n\");\nbreak;\ncase 2:\nputs(\"\\nOutput format: XML\\n\");\nbreak;\ncase 3:\nputs(\"\\nOutput format: LUA\\n\");\nbreak;\ncase 4:\nputs(\"\\nOutput format: CODE\\n\");\nbreak;\n}\n}\nelse\n{\nputs(\"\\nOutput format: DEFAULT\\n\");\n}\nsub_405D24(&byte_40D380, (unsigned int)dword_40D580);\nfree(::ptr);\nfree(qword_40D100);\nfree(qword_40D108);\nfree(qword_40D110);\nfree(qword_40D118);\nfree(qword_40D120);\nresult = 0LL;\n}\nelse\n{\nprintf(\"Could not read input file: %s\\n\", &byte_40D180);\nresult = 1LL;\n}\nreturn result;\n}\n\n\n\nQ:[a2,a3,a1,v22,nptr,v40,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51,v52,v53,v54,v55,v56,v57,v58,v59,v60,v61,v62,v63,v64,v65,v66,v67,v68,v69,v70,v71,v72,v73,v74,v75,v76,v77,v78,v79,v80,v81,v82,v83,v84,v85,v86,v87,v88,ptr,i31,i30,i29,i28,v94,v95,i27,i26,i25,i24,v100,i23,i21,v103,v104,i22,i20,i19,i18,v109,i17,i16,i15,i14,v114,v115,v116,i13,i12,v119,v120,i11,v122,i10,i9,i8,i7,i6,i5,v129,v130,v131,v132,v133,i4,v135,v136,v137,v138,i3,v140,v141,v142,v144,v145,i1,nn,v148,mm,ll,v151,v152,v153,kk,jj,ii,v157,v158,n,m,v161,l,j,v166,sub_404EE8,sub_405BBE,sub_405572,sub_405683,sub_405B49,sub_405AF7,sub_405AC3,sub_40594D,sub_405806,sub_405A0E,sub_405D24,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v22': 'funcParamTypeName', 'nptr': 'integer', 'v40': 'linesCount', 'v41': 'length', 'v42': 'v', 'v43': 'v_0', 'v44': 'operandLength', 'v45': 'operandEnd', 'v46': 'operandStart', 'v47': 'valuePtr', 'v48': 'commentEnd', 'v49': 'commentStart', 'v50': 'ch_0', 'v51': 'defineValueStart', 'v52': 'nameLen', 'v53': 'defineNameEnd', 'v54': 'defineNameStart', 'v55': 'linePtr', 'v56': 'v_2', 'v57': 'fieldTypeLength', 'v58': 'nameLength', 'v59': 'isEndOfString', 'v60': 'v_1', 'v61': 'originalIndex', 'v62': 'fieldLine', 'v63': 'TDS_LEN', 'v64': 'linesPtr', 'v65': 'nameLen_1', 'v66': 'nameStart_0', 'v67': 'typeLen', 'v68': 'typeStart', 'v69': 'linePtr_0', 'v70': 'linePtr_2', 'v71': 'linePtr_1', 'v72': 'paramLen', 'v73': 'nameLen_2', 'v74': 'nameStart_1', 'v75': 'retTypeStart', 'v76': 'linePtr_3', 'v77': 'funcParamTypeNameLen', 'v78': 'funcParamTypeNameLen_0', 'v79': 'funcRetTypeNameLen', 'v80': 'dc', 'v81': 'linePtr_4', 'v82': 'funcLines', 'v83': 'callbackLines', 'v84': 'enumLines', 'v85': 'aliasLines', 'v86': 'structLines', 'v87': 'defineLines', 'v88': 'lines', 'ptr': 'buffer', 'i31': 'i_12', 'i30': 'j_6', 'i29': 'c_12', 'i28': 'c_11', 'v94': 'funcEnd', 'v95': 'funcParamsStart', 'i27': 'i_11', 'i26': 'j_5', 'i25': 'paramStart', 'i24': 'retTypeLen', 'v100': 'c_10', 'i23': 'i_10', 'i21': 'c_9', 'v103': 'n', 'v104': 'foundValue', 'i22': 'c_8', 'i20': 'j_4', 'i19': 'j_3', 'i18': 'i_9', 'v109': 'c_7', 'i17': 'i_8', 'i16': 'j_2', 'i15': 'j_1', 'i14': 'k_0', 'v114': 'nameEnd', 'v115': 'nameStart', 'v116': 'fieldsRemaining', 'i13': 'c_6', 'i12': 'c_5', 'v119': 'lastStart', 'v120': 'originalLength', 'i11': 'c_4', 'v122': 'additionalFields', 'i10': 'fieldEndPos', 'i9': 'l', 'i8': 'nameLen_0', 'i7': 'c_3', 'i6': 'i_7', 'i5': 'previousDefineIndex', 'v129': 'foundOperand', 'v130': 'numberType', 'v131': 'isFloat_0', 'v132': 'isNumber_0', 'v133': 'ch_1', 'i4': 'c_2', 'v135': 'isMath', 'v136': 'largestType', 'v137': 'commentLen', 'v138': 'valueLen', 'i3': 'defineValueEnd', 'v140': 'isHex', 'v141': 'isNumber', 'v142': 'isFloat', 'v144': 'isDuplicate', 'v145': 'openBraces', 'i1': 'j_0', 'nn': 'i_6', 'v148': 'defineIndex', 'mm': 'i_5', 'll': 'c_1', 'v151': 'hasEnd', 'v152': 'hasMiddle', 'v153': 'hasBeginning', 'kk': 'i_4', 'jj': 'i_3', 'ii': 'c_0', 'v157': 'validAlias', 'v158': 'spaceCount', 'n': 'i_2', 'm': 'c', 'v161': 'validStruct', 'l': 'i_1', 'j': 'i_0', 'v166': 'newCount', 'sub_404EE8': 'ProcessCommandLine', 'sub_405BBE': 'MemoryCopy', 'sub_405572': 'LoadFileText', 'sub_405683': 'GetTextLines', 'sub_405B49': 'TextFindIndex', 'sub_405AF7': 'IsTextEqual', 'sub_405AC3': 'TextLength', 'sub_40594D': 'GetDescription', 'sub_405806': 'GetDataTypeAndName', 'sub_405A0E': 'MoveArraySize', 'sub_405D24': 'ExportParsedData'}"} |
|
perf_event_open_probe | 9f205b620f8387a5fbfe7bf4bf706460702c799bf48defca6e639a44084247c9 | multipath-tcp | mptcp | NA | static int perf_event_open_probe(bool uprobe, bool retprobe, const char *name,
uint64_t offset, int pid)
{
struct perf_event_attr attr = {};
char errmsg[STRERR_BUFSIZE];
int type, pfd, err;
type = uprobe ? determine_uprobe_perf_type()
: determine_kprobe_perf_type();
if (type < 0) {
pr_warning("failed to determine %s perf type: %s\n",
uprobe ? "uprobe" : "kprobe",
libbpf_strerror_r(type, errmsg, sizeof(errmsg)));
return type;
}
if (retprobe) {
int bit = uprobe ? determine_uprobe_retprobe_bit()
: determine_kprobe_retprobe_bit();
if (bit < 0) {
pr_warning("failed to determine %s retprobe bit: %s\n",
uprobe ? "uprobe" : "kprobe",
libbpf_strerror_r(bit, errmsg,
sizeof(errmsg)));
return bit;
}
attr.config |= 1 << bit;
}
attr.size = sizeof(attr);
attr.type = type;
attr.config1 = ptr_to_u64(name); /* kprobe_func or uprobe_path */
attr.config2 = offset; /* kprobe_addr or probe_offset */
/* pid filter is meaningful only for uprobes */
pfd = syscall(__NR_perf_event_open, &attr,
pid < 0 ? -1 : pid /* pid */,
pid == -1 ? 0 : -1 /* cpu */,
-1 /* group_fd */, PERF_FLAG_FD_CLOEXEC);
if (pfd < 0) {
err = -errno;
pr_warning("%s perf_event_open() failed: %s\n",
uprobe ? "uprobe" : "kprobe",
libbpf_strerror_r(err, errmsg, sizeof(errmsg)));
return err;
}
return pfd;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_410A89", "function_addr": 4262537, "binary_name": "9f205b620f8387a5fbfe7bf4bf706460702c799bf48defca6e639a44084247c9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 120h"], [3, "mov eax, esi"], [4, "mov [rbp+var_110], rdx"], [5, "mov [rbp+var_118], rcx"], [6, "mov [rbp+var_11C], r8d"], [7, "mov edx, edi"], [8, "mov [rbp+var_104], dl"], [9, "mov [rbp+var_108], al"], [10, "lea rdx, [rbp+var_80]"], [11, "mov eax, 0"], [12, "mov ecx, 0Eh"], [13, "mov rdi, rdx"], [14, "rep stosq"], [15, "cmp [rbp+var_104], 0"], [16, "jz short loc_410ADD"], [17, "call sub_410A11"], [18, "jmp short loc_410AE2"], [19, "call sub_4109E9"], [20, "mov [rbp+var_4], eax"], [21, "cmp [rbp+var_4], 0"], [22, "jns short loc_410B44"], [23, "lea rcx, [rbp+var_100]"], [24, "mov eax, [rbp+var_4]"], [25, "mov edx, 80h"], [26, "mov rsi, rcx"], [27, "mov edi, eax"], [28, "call sub_41A401"], [29, "mov rdx, rax"], [30, "cmp [rbp+var_104], 0"], [31, "jz short loc_410B19"], [32, "lea rax, aUprobe"], [33, "jmp short loc_410B20"], [34, "lea rax, aKprobe"], [35, "mov rcx, rdx"], [36, "mov rdx, rax"], [37, "lea rsi, aLibbpfFailedTo_40"], [38, "mov edi, 0"], [39, "mov eax, 0"], [40, "call sub_405356"], [41, "mov eax, [rbp+var_4]"], [42, "jmp locret_410CC8"], [43, "cmp [rbp+var_108], 0"], [44, "jz loc_410BE3"], [45, "cmp [rbp+var_104], 0"], [46, "jz short loc_410B61"], [47, "call sub_410A61"], [48, "jmp short loc_410B66"], [49, "call sub_410A39"], [50, "mov [rbp+var_8], eax"], [51, "cmp [rbp+var_8], 0"], [52, "jns short loc_410BC8"], [53, "lea rcx, [rbp+var_100]"], [54, "mov eax, [rbp+var_8]"], [55, "mov edx, 80h"], [56, "mov rsi, rcx"], [57, "mov edi, eax"], [58, "call sub_41A401"], [59, "mov rdx, rax"], [60, "cmp [rbp+var_104], 0"], [61, "jz short loc_410B9D"], [62, "lea rax, aUprobe"], [63, "jmp short loc_410BA4"], [64, "lea rax, aKprobe"], [65, "mov rcx, rdx"], [66, "mov rdx, rax"], [67, "lea rsi, aLibbpfFailedTo_41"], [68, "mov edi, 0"], [69, "mov eax, 0"], [70, "call sub_405356"], [71, "mov eax, [rbp+var_8]"], [72, "jmp locret_410CC8"], [73, "mov rdx, [rbp+var_78]"], [74, "mov eax, [rbp+var_8]"], [75, "mov esi, 1"], [76, "mov ecx, eax"], [77, "shl esi, cl"], [78, "mov eax, esi"], [79, "cdqe"], [80, "or rax, rdx"], [81, "mov [rbp+var_78], rax"], [82, "mov [rbp+var_7C], 70h "], [83, "mov eax, [rbp+var_4]"], [84, "mov [rbp+var_80], eax"], [85, "mov rax, [rbp+var_110]"], [86, "mov rdi, rax"], [87, "call sub_40540F"], [88, "mov [rbp+var_48], rax"], [89, "mov rax, [rbp+var_118]"], [90, "mov [rbp+var_40], rax"], [91, "cmp [rbp+var_11C], 0FFFFFFFFh"], [92, "jnz short loc_410C1E"], [93, "mov ecx, 0"], [94, "jmp short loc_410C23"], [95, "mov ecx, 0FFFFFFFFh"], [96, "mov eax, 0FFFFFFFFh"], [97, "cmp [rbp+var_11C], 0"], [98, "cmovns eax, [rbp+var_11C]"], [99, "mov edx, eax"], [100, "lea rax, [rbp+var_80]"], [101, "mov r9d, 8"], [102, "mov r8d, 0FFFFFFFFh"], [103, "mov rsi, rax"], [104, "mov edi, 12Ah"], [105, "mov eax, 0"], [106, "call _syscall"], [107, "mov [rbp+var_C], eax"], [108, "cmp [rbp+var_C], 0"], [109, "jns short loc_410CC5"], [110, "call ___errno_location"], [111, "mov eax, [rax]"], [112, "neg eax"], [113, "mov [rbp+var_10], eax"], [114, "lea rcx, [rbp+var_100]"], [115, "mov eax, [rbp+var_10]"], [116, "mov edx, 80h"], [117, "mov rsi, rcx"], [118, "mov edi, eax"], [119, "call sub_41A401"], [120, "mov rdx, rax"], [121, "cmp [rbp+var_104], 0"], [122, "jz short loc_410C9D"], [123, "lea rax, aUprobe"], [124, "jmp short loc_410CA4"], [125, "lea rax, aKprobe"], [126, "mov rcx, rdx"], [127, "mov rdx, rax"], [128, "lea rsi, aLibbpfSPerfEve"], [129, "mov edi, 0"], [130, "mov eax, 0"], [131, "call sub_405356"], [132, "mov eax, [rbp+var_10]"], [133, "jmp short locret_410CC8"], [134, "mov eax, [rbp+var_C]"], [135, "leave"], [136, "retn"]], "data_dep": [[8, 7], [9, 3], [10, 7], [13, 10], [15, 8], [16, 15], [20, 17], [20, 19], [21, 20], [22, 21], [23, 12], [24, 20], [26, 23], [27, 24], [29, 28], [30, 8], [31, 30], [32, 28], [34, 28], [35, 29], [36, 34], [36, 32], [37, 26], [41, 20], [43, 9], [44, 43], [45, 8], [46, 45], [50, 47], [50, 49], [51, 50], [52, 51], [53, 12], [54, 50], [56, 53], [57, 54], [59, 58], [60, 8], [61, 60], [62, 58], [64, 58], [65, 59], [66, 62], [66, 64], [67, 56], [71, 50], [74, 50], [76, 74], [77, 76], [77, 75], [78, 77], [80, 78], [80, 73], [81, 80], [83, 20], [84, 83], [85, 4], [86, 85], [88, 87], [89, 5], [90, 89], [91, 6], [92, 91], [97, 6], [98, 6], [98, 97], [99, 98], [100, 98], [100, 84], [103, 100], [107, 106], [108, 107], [109, 108], [111, 110], [112, 111], [113, 112], [114, 93], [114, 95], [115, 113], [117, 114], [118, 115], [120, 119], [121, 8], [122, 121], [123, 119], [125, 119], [126, 120], [127, 125], [127, 123], [128, 117], [132, 113], [134, 107], [136, 41], [136, 71], [136, 132], [136, 134]]}
| {"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/9f205b620f8387a5fbfe7bf4bf706460702c799bf48defca6e639a44084247c9_9f205b620f8387a5fbfe7bf4bf706460702c799bf48defca6e639a44084247c9.jsonl.gz", "strip_func_name": "sub_410A89", "query": "\n\n\n__int64 __fastcall sub_410A89(char a1, char a2, __int64 a3, __int64 a4, int a5)\n{\nint v5; // eax\n__int64 v6; // rdx\n__int64 v7; // r8\n__int64 v8; // r9\nconst char *v9; // rax\nint v11; // eax\n__int64 v12; // rdx\n__int64 v13; // r8\n__int64 v14; // r9\nconst char *v15; // rax\n__int64 v16; // rcx\nunsigned int v17; // eax\n__int64 v18; // rdx\n__int64 v19; // r8\n__int64 v20; // r9\nconst char *v21; // rax\nchar v25[128]; // [rsp+20h] [rbp-100h] BYREF\n_QWORD v26[14]; // [rsp+A0h] [rbp-80h] BYREF\nunsigned int v27; // [rsp+110h] [rbp-10h]\nunsigned int v28; // [rsp+114h] [rbp-Ch]\nunsigned int v29; // [rsp+118h] [rbp-8h]\nunsigned int v30; // [rsp+11Ch] [rbp-4h]\n\nmemset(v26, 0, sizeof(v26));\nif ( a1 )\nv5 = sub_410A11();\nelse\nv5 = sub_4109E9();\nv30 = v5;\nif ( v5 < 0 )\n{\nv6 = sub_41A401(v30, v25, 128LL);\nif ( a1 )\nv9 = \"uprobe\";\nelse\nv9 = \"kprobe\";\nsub_405356(0, (__int64)\"libbpf: failed to determine %s perf type: %s\\n\", (__int64)v9, v6, v7, v8);\nreturn v30;\n}\nif ( a2 )\n{\nif ( a1 )\nv11 = sub_410A61();\nelse\nv11 = sub_410A39();\nv29 = v11;\nif ( v11 < 0 )\n{\nv12 = sub_41A401(v29, v25, 128LL);\nif ( a1 )\nv15 = \"uprobe\";\nelse\nv15 = \"kprobe\";\nsub_405356(0, (__int64)\"libbpf: failed to determine %s retprobe bit: %s\\n\", (__int64)v15, v12, v13, v14);\nreturn v29;\n}\nv26[1] |= 1 << v29;\n}\nv26[0] = v30 | 0x7000000000LL;\nv26[7] = sub_40540F(a3);\nv26[8] = a4;\nif ( a5 == -1 )\nv16 = 0LL;\nelse\nv16 = 0xFFFFFFFFLL;\nv17 = -1;\nif ( a5 >= 0 )\nv17 = a5;\nv28 = syscall(298LL, v26, v17, v16, 0xFFFFFFFFLL, 8LL);\nif ( (v28 & 0x80000000) == 0 )\nreturn v28;\nv27 = -*__errno_location();\nv18 = sub_41A401(v27, v25, 128LL);\nif ( a1 )\nv21 = \"uprobe\";\nelse\nv21 = \"kprobe\";\nsub_405356(0, (__int64)\"libbpf: %s perf_event_open() failed: %s\\n\", (__int64)v21, v18, v19, v20);\nreturn v27;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v7,v25,v26,v27,v28,v29,v30,sub_410A89,sub_410A11,sub_4109E9,sub_41A401,sub_405356,sub_410A61,sub_410A39,sub_40540F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'name', 'a4': 'offset', 'a1': 'uprobe', 'a2': 'retprobe', 'a5': 'pid', 'v7': 'pid', 'v25': 'errmsg', 'v26': 'attr', 'v27': 'err', 'v28': 'pfd', 'v29': 'bit', 'v30': 'type', 'sub_410A89': 'perf_event_open_probe', 'sub_410A11': 'determine_uprobe_perf_type', 'sub_4109E9': 'determine_kprobe_perf_type', 'sub_41A401': 'libbpf_strerror_r', 'sub_405356': 'libbpf_print', 'sub_410A61': 'determine_uprobe_retprobe_bit', 'sub_410A39': 'determine_kprobe_retprobe_bit', 'sub_40540F': 'ptr_to_u64'}"} |
|
cdb_make_addbegin | 8dfe029ed4a37518aca4298134b481d562addd5f363b314a82d78c3ce0359d9b | radareorg | radare2 | NA | int cdb_make_addbegin(struct cdb_make *c, ut32 keylen, ut32 datalen) {
ut8 buf[KVLSZ];
if (!pack_kvlen (buf, keylen, datalen)) {
return 0;
}
return buffer_putalign (&c->b, (const char *)buf, KVLSZ);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4032FF", "function_addr": 4207359, "binary_name": "8dfe029ed4a37518aca4298134b481d562addd5f363b314a82d78c3ce0359d9b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_20], edx"], [6, "mov edx, [rbp+var_20]"], [7, "mov ecx, [rbp+var_1C]"], [8, "lea rax, [rbp+var_4]"], [9, "mov esi, ecx"], [10, "mov rdi, rax"], [11, "call sub_40328E"], [12, "test eax, eax"], [13, "jnz short loc_403330"], [14, "mov eax, 0"], [15, "jmp short locret_40334F"], [16, "mov rax, [rbp+var_18]"], [17, "lea rcx, [rax+2C20h]"], [18, "lea rax, [rbp+var_4]"], [19, "mov edx, 4"], [20, "mov rsi, rax"], [21, "mov rdi, rcx"], [22, "call sub_402D4F"], [23, "leave"], [24, "retn"]], "data_dep": [[6, 5], [7, 4], [9, 7], [10, 8], [12, 11], [13, 12], [16, 3], [17, 7], [17, 16], [18, 16], [20, 18], [21, 17], [24, 14], [24, 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/8dfe029ed4a37518aca4298134b481d562addd5f363b314a82d78c3ce0359d9b_8dfe029ed4a37518aca4298134b481d562addd5f363b314a82d78c3ce0359d9b.jsonl.gz", "strip_func_name": "sub_4032FF", "query": "\n\n\n__int64 __fastcall sub_4032FF(__int64 a1, unsigned int a2, unsigned int a3)\n{\n__int64 result; // rax\nchar v4[4]; // [rsp+1Ch] [rbp-4h] BYREF\n\nif ( (unsigned int)sub_40328E((__int64)v4, a2, a3) )\nresult = sub_402D4F(a1 + 11296, v4, 4u);\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v4,sub_4032FF,sub_40328E,sub_402D4F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'datalen', 'a1': 'c', 'a2': 'keylen', 'v4': 'buf', 'sub_4032FF': 'cdb_make_addbegin', 'sub_40328E': 'pack_kvlen', 'sub_402D4F': 'buffer_putalign'}"} |
|
print_remote_ip_port | 8acc1b96b85209529f9bfee065daf73906c1fc4ef9e94e1c4bf5d90fe57e3ab4 | bootlin | linux-cedrus | NA | static void print_remote_ip_port(int sockfd, const char *fmt)
{
print_ip_port(sockfd, getpeername, fmt);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4035B2", "function_addr": 4208050, "binary_name": "8acc1b96b85209529f9bfee065daf73906c1fc4ef9e94e1c4bf5d90fe57e3ab4.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 rdx, [rbp+var_10]"], [6, "mov eax, [rbp+var_4]"], [7, "mov esi, offset _getpeername"], [8, "mov edi, eax"], [9, "call sub_403453"], [10, "nop"], [11, "leave"], [12, "retn"]], "data_dep": [[5, 4], [6, 3], [8, 6], [12, 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/8acc1b96b85209529f9bfee065daf73906c1fc4ef9e94e1c4bf5d90fe57e3ab4_8acc1b96b85209529f9bfee065daf73906c1fc4ef9e94e1c4bf5d90fe57e3ab4.jsonl.gz", "strip_func_name": "sub_4035B2", "query": "\n\n\nint __fastcall sub_4035B2(unsigned int a1, const char *a2)\n{\nreturn sub_403453(a1, (__int64 (__fastcall *)(_QWORD, char *, size_t *))getpeername, a2);\n}\n\n\n\nQ:[a1,a2,sub_4035B2,sub_403453,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'sockfd', 'a2': 'fmt', 'sub_4035B2': 'print_remote_ip_port', 'sub_403453': 'print_ip_port'}"} |
|
write_repeated_sint32 | c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705 | eerimoq | pbtools | NA | static void write_repeated_sint32(struct pbtools_encoder_t *self_p,
int index,
int32_t *items_p)
{
encoder_write_varint(self_p, sint32_encode(items_p[index]));
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F18B", "function_addr": 4256139, "binary_name": "c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, cs:qword_4E4180"], [7, "add rax, 1"], [8, "mov cs:qword_4E4180, rax"], [9, "mov eax, [rbp+var_C]"], [10, "cdqe"], [11, "lea rdx, ds:0[rax*4]"], [12, "mov rax, [rbp+var_18]"], [13, "lea rcx, [rdx+rax]"], [14, "mov rax, rcx"], [15, "mov rdx, rax"], [16, "shr rdx, 3"], [17, "add rdx, 7FFF8000h"], [18, "movzx edx, byte ptr [rdx]"], [19, "test dl, dl"], [20, "setnz dil"], [21, "mov rsi, rax"], [22, "and esi, 7"], [23, "add esi, 3"], [24, "cmp sil, dl"], [25, "setnl dl"], [26, "and edx, edi"], [27, "test dl, dl"], [28, "jz short loc_40F1FC"], [29, "mov rdi, rax"], [30, "call ___asan_report_load4"], [31, "mov eax, [rcx]"], [32, "mov edi, eax"], [33, "call sub_40D4EE"], [34, "mov edx, eax"], [35, "mov rax, cs:qword_4E4188"], [36, "add rax, 1"], [37, "mov cs:qword_4E4188, rax"], [38, "mov edx, edx"], [39, "mov rax, [rbp+var_8]"], [40, "mov rsi, rdx"], [41, "mov rdi, rax"], [42, "call sub_40D069"], [43, "mov rax, cs:qword_4E4190"], [44, "add rax, 1"], [45, "mov cs:qword_4E4190, rax"], [46, "nop"], [47, "leave"], [48, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 4], [12, 5], [13, 12], [14, 13], [15, 14], [16, 15], [17, 16], [18, 17], [19, 18], [20, 19], [21, 14], [22, 21], [23, 22], [24, 23], [24, 19], [25, 19], [25, 24], [26, 20], [26, 25], [27, 26], [28, 27], [29, 14], [31, 13], [32, 31], [34, 33], [36, 35], [37, 36], [38, 34], [39, 3], [40, 38], [41, 39], [44, 43], [45, 44], [48, 44]]}
| {"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/c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705_c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705.jsonl.gz", "strip_func_name": "sub_40F18B", "query": "\n\n\n__int64 __fastcall sub_40F18B(unsigned __int64 a1, int a2, __int64 a3)\n{\nint *v3; // rcx\nunsigned int v4; // eax\n\n++qword_4E4180;\nv3 = (int *)(4LL * a2 + a3);\nif ( *(_BYTE *)(((unsigned __int64)v3 >> 3) + 0x7FFF8000) != 0\n&& (char)(((4 * a2 + a3) & 7) + 3) >= *(_BYTE *)(((unsigned __int64)v3 >> 3) + 0x7FFF8000) )\n{\n__asan_report_load4();\n}\nv4 = sub_40D4EE(*v3);\n++qword_4E4188;\nsub_40D069(a1, v4);\nreturn ++qword_4E4190;\n}\n\n\n\nQ:[a3,a1,a2,sub_40F18B,sub_40D4EE,sub_40D069,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'items_p', 'a1': 'self_p', 'a2': 'index', 'sub_40F18B': 'write_repeated_sint32', 'sub_40D4EE': 'sint32_encode', 'sub_40D069': 'encoder_write_varint'}"} |
|
gap_mitm_protection_required_for_security_level | 1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586 | bluekitchen | btstack | NA | bool gap_mitm_protection_required_for_security_level(gap_security_level_t level){
log_info("gap_mitm_protection_required_for_security_level %u", level);
return level > LEVEL_2;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41AD99", "function_addr": 4304281, "binary_name": "1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov eax, [rbp+var_4]"], [5, "mov r8d, eax"], [6, "mov ecx, 1EFBh"], [7, "mov edx, offset aHciC"], [8, "mov esi, offset aSUGapMitmProte"], [9, "mov edi, 1"], [10, "mov eax, 0"], [11, "call sub_41DE87"], [12, "cmp [rbp+var_4], 2"], [13, "setnbe al"], [14, "leave"], [15, "retn"]], "data_dep": [[4, 3], [5, 4], [12, 3], [13, 12], [13, 11], [15, 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/1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586_1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.jsonl.gz", "strip_func_name": "sub_41AD99", "query": "\n\n\nbool __fastcall sub_41AD99(unsigned int a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, int a6)\n{\nsub_41DE87(\n1,\n(unsigned int)\"%s.%u: gap_mitm_protection_required_for_security_level %u\",\n(unsigned int)\"hci.c\",\n7931,\na1,\na6);\nreturn a1 > 2;\n}\n\n\n\nQ:[a1,sub_41AD99,sub_41DE87,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'level', 'sub_41AD99': 'gap_mitm_protection_required_for_security_level', 'sub_41DE87': 'hci_dump_log'}"} |
|
psa_crypto_storage_load | 3b74425ebd08a392f4ae9edeeb2c0e66063e0975fecada2a05be00f888a73010 | Wiznet | RP2040-HAT-C | NA | static psa_status_t psa_crypto_storage_load(
const mbedtls_svc_key_id_t key, uint8_t *data, size_t data_size )
{
psa_status_t status;
psa_storage_uid_t data_identifier = psa_its_identifier_of_slot( key );
struct psa_storage_info_t data_identifier_info;
size_t data_length = 0;
status = psa_its_get_info( data_identifier, &data_identifier_info );
if( status != PSA_SUCCESS )
return( status );
status = psa_its_get( data_identifier, 0, (uint32_t) data_size, data, &data_length );
if( data_size != data_length )
return( PSA_ERROR_DATA_INVALID );
return( status );
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_466B09", "function_addr": 4614921, "binary_name": "3b74425ebd08a392f4ae9edeeb2c0e66063e0975fecada2a05be00f888a73010.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_24], edi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov eax, [rbp+var_24]"], [7, "mov edi, eax"], [8, "call sub_466AFD"], [9, "mov [rbp+var_8], rax"], [10, "mov [rbp+var_20], 0"], [11, "lea rdx, [rbp+var_14]"], [12, "mov rax, [rbp+var_8]"], [13, "mov rsi, rdx"], [14, "mov rdi, rax"], [15, "call sub_4675D9"], [16, "mov [rbp+var_C], eax"], [17, "cmp [rbp+var_C], 0"], [18, "jz short loc_466B53"], [19, "mov eax, [rbp+var_C]"], [20, "jmp short locret_466B91"], [21, "mov rax, [rbp+var_38]"], [22, "mov esi, eax"], [23, "lea rcx, [rbp+var_20]"], [24, "mov rdx, [rbp+var_30]"], [25, "mov rax, [rbp+var_8]"], [26, "mov r8, rcx"], [27, "mov rcx, rdx"], [28, "mov edx, esi"], [29, "mov esi, 0"], [30, "mov rdi, rax"], [31, "call sub_467625"], [32, "mov [rbp+var_C], eax"], [33, "mov rax, [rbp+var_20]"], [34, "cmp [rbp+var_38], rax"], [35, "jz short loc_466B8E"], [36, "mov eax, 0FFFFFF67h"], [37, "jmp short locret_466B91"], [38, "mov eax, [rbp+var_C]"], [39, "leave"], [40, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 8], [12, 9], [13, 11], [14, 12], [16, 15], [17, 16], [18, 17], [19, 16], [21, 5], [22, 21], [23, 10], [24, 4], [25, 9], [26, 23], [27, 24], [28, 22], [30, 25], [32, 31], [33, 10], [34, 33], [34, 5], [35, 34], [38, 32], [40, 38], [40, 19], [40, 36]]}
| {"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/3b74425ebd08a392f4ae9edeeb2c0e66063e0975fecada2a05be00f888a73010_3b74425ebd08a392f4ae9edeeb2c0e66063e0975fecada2a05be00f888a73010.jsonl.gz", "strip_func_name": "sub_466B09", "query": "\n\n\n__int64 __fastcall sub_466B09(unsigned int a1, __int64 a2, __int64 a3)\n{\n__int64 result; // rax\n__int64 v5; // [rsp+20h] [rbp-20h] BYREF\nchar v6[8]; // [rsp+2Ch] [rbp-14h] BYREF\nunsigned int v7; // [rsp+34h] [rbp-Ch]\n__int64 v8; // [rsp+38h] [rbp-8h]\n\nv8 = sub_466AFD(a1);\nv5 = 0LL;\nv7 = sub_4675D9(v8, v6);\nif ( v7 )\nreturn v7;\nv7 = sub_467625(v8, 0LL, (unsigned int)a3, a2, &v5);\nif ( a3 == v5 )\nresult = v7;\nelse\nresult = 4294967143LL;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v5,v6,v7,v8,sub_466B09,sub_466AFD,sub_4675D9,sub_467625,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'data_size', 'a1': 'key', 'a2': 'data', 'v5': 'data_length', 'v6': 'data_identifier_info', 'v7': 'status', 'v8': 'data_identifier', 'sub_466B09': 'psa_crypto_storage_load', 'sub_466AFD': 'psa_its_identifier_of_slot', 'sub_4675D9': 'psa_its_get_info', 'sub_467625': 'psa_its_get'}"} |
|
OptCodeName | 7037422a76958b214f93ea5142370c2e165b5d71f2357f46f92075d54e0e61e9 | MEGA65 | mega65-tools | NA | static void OptCodeName (const char* Opt attribute ((unused)), const char* Arg)
/* Handle the --code-name option */
{
CmdAddArg2 (&CC65, "--code-name", Arg);
CmdAddArg2 (&CO65, "--code-name", Arg);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4025AF", "function_addr": 4203951, "binary_name": "7037422a76958b214f93ea5142370c2e165b5d71f2357f46f92075d54e0e61e9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rax, [rbp+var_10]"], [6, "mov rdx, rax"], [7, "mov esi, offset aCodeName"], [8, "mov edi, offset unk_40F200"], [9, "call sub_401877"], [10, "mov rax, [rbp+var_10]"], [11, "mov rdx, rax"], [12, "mov esi, offset aCodeName"], [13, "mov edi, offset unk_40F280"], [14, "call sub_401877"], [15, "nop"], [16, "leave"], [17, "retn"]], "data_dep": [[5, 4], [6, 5], [10, 4], [11, 10], [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/7037422a76958b214f93ea5142370c2e165b5d71f2357f46f92075d54e0e61e9_7037422a76958b214f93ea5142370c2e165b5d71f2357f46f92075d54e0e61e9.jsonl.gz", "strip_func_name": "sub_4025AF", "query": "\n\n\n_QWORD *__fastcall sub_4025AF(__int64 a1, const char *a2)\n{\nsub_401877((__int64)&unk_40F200, \"--code-name\", a2);\nreturn sub_401877((__int64)&unk_40F280, \"--code-name\", a2);\n}\n\n\n\nQ:[a2,a1,sub_4025AF,sub_401877,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'Arg', 'a1': 'Opt', 'sub_4025AF': 'OptCodeName', 'sub_401877': 'CmdAddArg2'}"} |
|
sethtmlheader | ef7e7b432dc15868c3631e9c24c139b35caecd3ca53eb44b7cda0600c6504925 | HewlettPackard | nvthreads | NA | static void sethtmlheader(PARAMS *params, TCXSTR *obuf, TCADB *db){
XP("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
XP("\n");
XP("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
XP("\n");
XP("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n");
XP("\n");
XP("<head>\n");
XP("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n");
XP("<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />\n");
XP("<title>%@</title>\n", PAGETITLE);
XP("<style type=\"text/css\">html { margin: 0em; padding: 0em; }\n");
XP("body { margin :0em; padding: 0.5em 1em; background: #eeeeee; color: #111111; }\n");
XP("h1 { margin: 3px; padding: 0px; font-size: 125%%; }\n");
XP("h1 a { color: #000000; }\n");
XP("hr { margin: 0px 0px; height: 1px; border: none;"
" background: #999999; color: #999999; }\n");
XP("form { margin: 5px; padding: 0px; }\n");
XP("#list { margin: 5px; padding: 0px; }\n");
XP("p { margin: 5px; padding: 0px; }\n");
XP("a { color: #1122ee; text-decoration: none; }\n");
XP("a:hover { color: #2288ff; text-decoration: underline; }\n");
XP("span.void { color: #888888; }\n");
XP("span.value { font-size: 95%%; }\n");
XP("i { color: #333333; font-size: 70%%; }\n");
XP("</style>\n");
XP("</head>\n");
XP("\n");
XP("<body>\n");
XP("<h1><a href=\"%s\">%@</a></h1>\n", g_scriptname, PAGETITLE);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40241F", "function_addr": 4203551, "binary_name": "ef7e7b432dc15868c3631e9c24c139b35caecd3ca53eb44b7cda0600c6504925.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, [rbp+var_10]"], [7, "lea rsi, aXmlVersion10En"], [8, "mov rdi, rax"], [9, "mov eax, 0"], [10, "call _tcxstrprintf"], [11, "mov rax, [rbp+var_10]"], [12, "lea rsi, asc_403588"], [13, "mov rdi, rax"], [14, "mov eax, 0"], [15, "call _tcxstrprintf"], [16, "mov rax, [rbp+var_10]"], [17, "lea rsi, aDoctypeHtmlPub"], [18, "mov rdi, rax"], [19, "mov eax, 0"], [20, "call _tcxstrprintf"], [21, "mov rax, [rbp+var_10]"], [22, "lea rsi, asc_403588"], [23, "mov rdi, rax"], [24, "mov eax, 0"], [25, "call _tcxstrprintf"], [26, "mov rax, [rbp+var_10]"], [27, "lea rsi, aHtmlXmlnsHttpW"], [28, "mov rdi, rax"], [29, "mov eax, 0"], [30, "call _tcxstrprintf"], [31, "mov rax, [rbp+var_10]"], [32, "lea rsi, asc_403588"], [33, "mov rdi, rax"], [34, "mov eax, 0"], [35, "call _tcxstrprintf"], [36, "mov rax, [rbp+var_10]"], [37, "lea rsi, aHead"], [38, "mov rdi, rax"], [39, "mov eax, 0"], [40, "call _tcxstrprintf"], [41, "mov rax, [rbp+var_10]"], [42, "lea rsi, aMetaHttpEquivC"], [43, "mov rdi, rax"], [44, "mov eax, 0"], [45, "call _tcxstrprintf"], [46, "mov rax, [rbp+var_10]"], [47, "lea rsi, aMetaHttpEquivC_0"], [48, "mov rdi, rax"], [49, "mov eax, 0"], [50, "call _tcxstrprintf"], [51, "mov rax, [rbp+var_10]"], [52, "lea rdx, aAbstractDataba"], [53, "lea rsi, aTitleTitle"], [54, "mov rdi, rax"], [55, "mov eax, 0"], [56, "call _tcxstrprintf"], [57, "mov rax, [rbp+var_10]"], [58, "lea rsi, aStyleTypeTextC"], [59, "mov rdi, rax"], [60, "mov eax, 0"], [61, "call _tcxstrprintf"], [62, "mov rax, [rbp+var_10]"], [63, "lea rsi, aBodyMargin0emP"], [64, "mov rdi, rax"], [65, "mov eax, 0"], [66, "call _tcxstrprintf"], [67, "mov rax, [rbp+var_10]"], [68, "lea rsi, aH1Margin3pxPad"], [69, "mov rdi, rax"], [70, "mov eax, 0"], [71, "call _tcxstrprintf"], [72, "mov rax, [rbp+var_10]"], [73, "lea rsi, aH1AColor000000"], [74, "mov rdi, rax"], [75, "mov eax, 0"], [76, "call _tcxstrprintf"], [77, "mov rax, [rbp+var_10]"], [78, "lea rsi, aHrMargin0px0px"], [79, "mov rdi, rax"], [80, "mov eax, 0"], [81, "call _tcxstrprintf"], [82, "mov rax, [rbp+var_10]"], [83, "lea rsi, aFormMargin5pxP"], [84, "mov rdi, rax"], [85, "mov eax, 0"], [86, "call _tcxstrprintf"], [87, "mov rax, [rbp+var_10]"], [88, "lea rsi, aListMargin5pxP"], [89, "mov rdi, rax"], [90, "mov eax, 0"], [91, "call _tcxstrprintf"], [92, "mov rax, [rbp+var_10]"], [93, "lea rsi, aPMargin5pxPadd"], [94, "mov rdi, rax"], [95, "mov eax, 0"], [96, "call _tcxstrprintf"], [97, "mov rax, [rbp+var_10]"], [98, "lea rsi, aAColor1122eeTe"], [99, "mov rdi, rax"], [100, "mov eax, 0"], [101, "call _tcxstrprintf"], [102, "mov rax, [rbp+var_10]"], [103, "lea rsi, aAHoverColor228"], [104, "mov rdi, rax"], [105, "mov eax, 0"], [106, "call _tcxstrprintf"], [107, "mov rax, [rbp+var_10]"], [108, "lea rsi, aSpanVoidColor8"], [109, "mov rdi, rax"], [110, "mov eax, 0"], [111, "call _tcxstrprintf"], [112, "mov rax, [rbp+var_10]"], [113, "lea rsi, aSpanValueFontS"], [114, "mov rdi, rax"], [115, "mov eax, 0"], [116, "call _tcxstrprintf"], [117, "mov rax, [rbp+var_10]"], [118, "lea rsi, aIColor333333Fo"], [119, "mov rdi, rax"], [120, "mov eax, 0"], [121, "call _tcxstrprintf"], [122, "mov rax, [rbp+var_10]"], [123, "lea rsi, aStyle"], [124, "mov rdi, rax"], [125, "mov eax, 0"], [126, "call _tcxstrprintf"], [127, "mov rax, [rbp+var_10]"], [128, "lea rsi, aHead_0"], [129, "mov rdi, rax"], [130, "mov eax, 0"], [131, "call _tcxstrprintf"], [132, "mov rax, [rbp+var_10]"], [133, "lea rsi, asc_403588"], [134, "mov rdi, rax"], [135, "mov eax, 0"], [136, "call _tcxstrprintf"], [137, "mov rax, [rbp+var_10]"], [138, "lea rsi, aBody"], [139, "mov rdi, rax"], [140, "mov eax, 0"], [141, "call _tcxstrprintf"], [142, "mov rax, offset unk_4063A0"], [143, "mov rdx, [rax]"], [144, "mov rax, [rbp+var_10]"], [145, "lea rcx, aAbstractDataba"], [146, "lea rsi, aH1AHrefSAH1"], [147, "mov rdi, rax"], [148, "mov eax, 0"], [149, "call _tcxstrprintf"], [150, "nop"], [151, "leave"], [152, "retn"]], "data_dep": [[6, 4], [8, 6], [11, 4], [12, 7], [13, 11], [16, 4], [17, 12], [18, 16], [21, 4], [22, 17], [23, 21], [26, 4], [27, 22], [28, 26], [31, 4], [32, 27], [33, 31], [36, 4], [37, 32], [38, 36], [41, 4], [42, 37], [43, 41], [46, 4], [47, 42], [48, 46], [51, 4], [53, 47], [54, 51], [57, 4], [58, 53], [59, 57], [62, 4], [63, 58], [64, 62], [67, 4], [68, 63], [69, 67], [72, 4], [73, 68], [74, 72], [77, 4], [78, 73], [79, 77], [82, 4], [83, 78], [84, 82], [87, 4], [88, 83], [89, 87], [92, 4], [93, 88], [94, 92], [97, 4], [98, 93], [99, 97], [102, 4], [103, 98], [104, 102], [107, 4], [108, 103], [109, 107], [112, 4], [113, 108], [114, 112], [117, 4], [118, 113], [119, 117], [122, 4], [123, 118], [124, 122], [127, 4], [128, 123], [129, 127], [132, 4], [133, 128], [134, 132], [137, 4], [138, 133], [139, 137], [143, 142], [144, 4], [146, 138], [147, 144], [152, 149]]}
| {"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/ef7e7b432dc15868c3631e9c24c139b35caecd3ca53eb44b7cda0600c6504925_ef7e7b432dc15868c3631e9c24c139b35caecd3ca53eb44b7cda0600c6504925.jsonl.gz", "strip_func_name": "sub_40241F", "query": "\n\n\n__int64 sub_40241F()\n{\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\ntcxstrprintf();\nreturn tcxstrprintf();\n}\n\n\n\nQ:[sub_40241F,]\nAssistant: ", "hints": "[]", "response": "{'sub_40241F': 'sethtmlheader'}"} |
|
sim_tape_set_capac | 5a51c9d5ef2814c801fdc67e9191b92af84684b5df3273cfc43b189428836e99 | open-simh | simh | NA | t_stat sim_tape_set_capac (UNIT *uptr, int32 val, CONST char *cptr, void *desc)
{
t_addr cap;
t_stat r;
if ((cptr == NULL) || (*cptr == 0))
return SCPE_ARG;
if (uptr->flags & UNIT_ATT)
return SCPE_ALATT;
cap = (t_addr) get_uint (cptr, 10, sim_taddr_64? 2000000: 2000, &r);
if (r != SCPE_OK)
return SCPE_ARG;
uptr->capac = cap * ((t_addr) 1000000);
return SCPE_OK;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_476CBC", "function_addr": 4680892, "binary_name": "5a51c9d5ef2814c801fdc67e9191b92af84684b5df3273cfc43b189428836e99.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, "cmp [rbp+var_28], 0"], [8, "jz short loc_476CE5"], [9, "mov rax, [rbp+var_28]"], [10, "movzx eax, byte ptr [rax]"], [11, "test al, al"], [12, "jnz short loc_476CEC"], [13, "mov eax, 48h "], [14, "jmp short locret_476D57"], [15, "mov rax, [rbp+var_18]"], [16, "mov eax, [rax+38h]"], [17, "and eax, 10h"], [18, "test eax, eax"], [19, "jz short loc_476D01"], [20, "mov eax, 54h "], [21, "jmp short locret_476D57"], [22, "mov eax, cs:dword_54E7FC"], [23, "test eax, eax"], [24, "jz short loc_476D12"], [25, "mov esi, 1E8480h"], [26, "jmp short loc_476D17"], [27, "mov esi, 7D0h"], [28, "lea rdx, [rbp+var_8]"], [29, "mov rax, [rbp+var_28]"], [30, "mov rcx, rdx"], [31, "mov edx, esi"], [32, "mov esi, 0Ah"], [33, "mov rdi, rax"], [34, "call sub_42DBD2"], [35, "mov [rbp+var_4], eax"], [36, "mov eax, [rbp+var_8]"], [37, "test eax, eax"], [38, "jz short loc_476D42"], [39, "mov eax, 48h "], [40, "jmp short locret_476D57"], [41, "mov eax, [rbp+var_4]"], [42, "imul edx, eax, 0F4240h"], [43, "mov rax, [rbp+var_18]"], [44, "mov [rax+40h], edx"], [45, "mov eax, 0"], [46, "leave"], [47, "retn"]], "data_dep": [[7, 5], [8, 7], [9, 5], [10, 9], [11, 10], [12, 11], [15, 3], [16, 15], [17, 16], [18, 17], [19, 18], [23, 22], [24, 23], [29, 5], [30, 28], [31, 25], [31, 27], [33, 29], [35, 34], [37, 36], [38, 37], [41, 35], [42, 41], [42, 31], [43, 3], [44, 42], [44, 43], [47, 13], [47, 39], [47, 45], [47, 20]]}
| {"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_476CBC", "query": "\n\n\n__int64 __fastcall sub_476CBC(__int64 a1, __int64 a2, char *a3)\n{\nunsigned int v4; // esi\nint v5; // [rsp+28h] [rbp-8h] BYREF\nint v6; // [rsp+2Ch] [rbp-4h]\n\nif ( !a3 || !*a3 )\nreturn 72LL;\nif ( (*(_DWORD *)(a1 + 56) & 0x10) != 0 )\nreturn 84LL;\nif ( dword_54E7FC )\nv4 = 2000000;\nelse\nv4 = 2000;\nv6 = sub_42DBD2(a3, 0xAu, v4, &v5);\nif ( v5 )\nreturn 72LL;\n*(_DWORD *)(a1 + 64) = 1000000 * v6;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v5,v6,sub_476CBC,sub_42DBD2,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'cptr', 'a1': 'uptr', 'a2': 'val', 'v5': 'r', 'v6': 'cap', 'sub_476CBC': 'sim_tape_set_capac', 'sub_42DBD2': 'get_uint'}"} |
|
sq_ring_needs_enter | 830326b3d3ca9f1914b664a8cdd7fd554d968fdd14bff6ad08605edb7eb7020b | axboe | liburing | NA | static inline bool sq_ring_needs_enter(struct io_uring *ring,
unsigned submit,
unsigned *flags)
{
if (!submit)
return false;
if (!(ring->flags & IORING_SETUP_SQPOLL))
return true;
/*
* Ensure the kernel can see the store to the SQ tail before we read
* the flags.
*/
io_uring_smp_mb();
if (uring_unlikely(IO_URING_READ_ONCE(*ring->sq.kflags) &
IORING_SQ_NEED_WAKEUP)) {
*flags |= IORING_ENTER_SQ_WAKEUP;
return true;
}
return false;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405B7F", "function_addr": 4217727, "binary_name": "830326b3d3ca9f1914b664a8cdd7fd554d968fdd14bff6ad08605edb7eb7020b.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_28], rdx"], [5, "cmp [rbp+var_1C], 0"], [6, "jnz short loc_405B9B"], [7, "mov eax, 0"], [8, "jmp short loc_405BFB"], [9, "mov rax, [rbp+var_18]"], [10, "mov eax, [rax+0C0h]"], [11, "and eax, 2"], [12, "test eax, eax"], [13, "jnz short loc_405BB3"], [14, "mov eax, 1"], [15, "jmp short loc_405BFB"], [16, "mfence"], [17, "mov rax, [rbp+var_18]"], [18, "mov rax, [rax+20h]"], [19, "mov [rbp+var_8], rax"], [20, "mov rax, [rbp+var_8]"], [21, "mov eax, [rax]"], [22, "mov [rbp+var_C], eax"], [23, "mov eax, [rbp+var_C]"], [24, "and eax, 1"], [25, "test eax, eax"], [26, "setnz al"], [27, "movzx eax, al"], [28, "test rax, rax"], [29, "jz short loc_405BF6"], [30, "mov rax, [rbp+var_28]"], [31, "mov eax, [rax]"], [32, "or eax, 2"], [33, "mov edx, eax"], [34, "mov rax, [rbp+var_28]"], [35, "mov [rax], edx"], [36, "mov eax, 1"], [37, "jmp short loc_405BFB"], [38, "mov eax, 0"], [39, "pop rbp"], [40, "retn"]], "data_dep": [[5, 3], [6, 5], [9, 2], [10, 9], [11, 10], [12, 11], [13, 12], [17, 2], [18, 17], [19, 18], [20, 19], [21, 20], [22, 21], [23, 22], [24, 23], [25, 24], [26, 25], [27, 26], [28, 27], [29, 28], [30, 4], [31, 30], [32, 31], [33, 32], [34, 4], [35, 33], [35, 34], [39, 0], [40, 14], [40, 38], [40, 7], [40, 36]]}
| {"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/830326b3d3ca9f1914b664a8cdd7fd554d968fdd14bff6ad08605edb7eb7020b_830326b3d3ca9f1914b664a8cdd7fd554d968fdd14bff6ad08605edb7eb7020b.jsonl.gz", "strip_func_name": "sub_405B7F", "query": "\n\n\n__int64 __fastcall sub_405B7F(__int64 a1, int a2, _DWORD *a3)\n{\nif ( !a2 )\nreturn 0LL;\nif ( (*(_DWORD *)(a1 + 192) & 2) == 0 )\nreturn 1LL;\n_mm_mfence();\nif ( (**(_DWORD **)(a1 + 32) & 1) == 0 )\nreturn 0LL;\n*a3 |= 2u;\nreturn 1LL;\n}\n\n\n\nQ:[a3,a1,a2,sub_405B7F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'flags', 'a1': 'ring', 'a2': 'submit', 'sub_405B7F': 'sq_ring_needs_enter'}"} |
|
to_num | 53ddf215530c8c607482021e917326e47d297cdecd32b9a345456e4ad674a3aa | PX4 | PX4-Bootloader | NA | static int to_num(int c)
{
return c >= '0' && c <= '9' ? c - '0'
: c >= 'a' && c <= 'f' ? c - 'a' + 10
: c - 'A' + 10;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4012E7", "function_addr": 4199143, "binary_name": "53ddf215530c8c607482021e917326e47d297cdecd32b9a345456e4ad674a3aa.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "cmp [rbp+var_4], 2Fh "], [4, "jle short loc_401302"], [5, "cmp [rbp+var_4], 39h "], [6, "jg short loc_401302"], [7, "mov eax, [rbp+var_4]"], [8, "sub eax, 30h "], [9, "jmp short loc_40131C"], [10, "cmp [rbp+var_4], 60h "], [11, "jle short loc_401316"], [12, "cmp [rbp+var_4], 66h "], [13, "jg short loc_401316"], [14, "mov eax, [rbp+var_4]"], [15, "sub eax, 57h "], [16, "jmp short loc_40131C"], [17, "mov eax, [rbp+var_4]"], [18, "sub eax, 37h "], [19, "pop rbp"], [20, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 2], [6, 5], [7, 2], [8, 7], [10, 2], [11, 10], [12, 2], [13, 12], [14, 2], [15, 14], [17, 2], [18, 17], [19, 0], [20, 8], [20, 15], [20, 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/53ddf215530c8c607482021e917326e47d297cdecd32b9a345456e4ad674a3aa_53ddf215530c8c607482021e917326e47d297cdecd32b9a345456e4ad674a3aa.jsonl.gz", "strip_func_name": "sub_4012E7", "query": "\n\n\n__int64 __fastcall sub_4012E7(int a1)\n{\nif ( a1 > 47 && a1 <= 57 )\nreturn (unsigned int)(a1 - 48);\nif ( a1 <= 96 || a1 > 102 )\nreturn (unsigned int)(a1 - 55);\nreturn (unsigned int)(a1 - 87);\n}\n\n\n\nQ:[a1,sub_4012E7,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'sub_4012E7': 'to_num'}"} |
|
_eth_write | 9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23 | open-simh | simh | NA | static
t_stat _eth_write(ETH_DEV* dev, ETH_PACK* packet, ETH_PCALLBACK routine)
{
int status = 1; /* default to failure */
/* make sure device exists */
if ((!dev) || (dev->eth_api == ETH_API_NONE)) return SCPE_UNATT;
/* make sure packet exists */
if (!packet) return SCPE_ARG;
/* make sure packet is acceptable length */
if ((packet->len >= ETH_MIN_PACKET) && (packet->len <= ETH_MAX_PACKET)) {
int loopback_self_frame = LOOPBACK_SELF_FRAME(packet->msg, packet->msg);
int loopback_physical_response = LOOPBACK_PHYSICAL_RESPONSE(dev, packet->msg);
eth_packet_trace (dev, packet->msg, packet->len, "writing");
/* record sending of loopback packet (done before actual send to avoid race conditions with receiver) */
if (loopback_self_frame || loopback_physical_response) {
/* Direct loopback responses to the host physical address since our physical address
may not have been learned yet. */
if (loopback_self_frame && dev->have_host_nic_phy_addr) {
memcpy(&packet->msg[6], dev->host_nic_phy_hw_addr, sizeof(ETH_MAC));
memcpy(&packet->msg[18], dev->host_nic_phy_hw_addr, sizeof(ETH_MAC));
eth_packet_trace (dev, packet->msg, packet->len, "writing-fixed");
}
#ifdef USE_READER_THREAD
pthread_mutex_lock (&dev->self_lock);
#endif
dev->loopback_self_sent += dev->reflections;
dev->loopback_self_sent_total++;
#ifdef USE_READER_THREAD
pthread_mutex_unlock (&dev->self_lock);
#endif
}
/* dispatch write request (synchronous; no need to save write info to dev) */
switch (dev->eth_api) {
#ifdef HAVE_PCAP_NETWORK
case ETH_API_PCAP:
status = pcap_sendpacket((pcap_t*)dev->handle, (u_char*)packet->msg, packet->len);
break;
#endif
#ifdef HAVE_TAP_NETWORK
case ETH_API_TAP:
status = (((int)packet->len == write(dev->fd_handle, (void *)packet->msg, packet->len)) ? 0 : -1);
break;
#endif
#ifdef HAVE_VDE_NETWORK
case ETH_API_VDE:
status = vde_send((VDECONN*)dev->handle, (void *)packet->msg, packet->len, 0);
if ((status == (int)packet->len) || (status == 0))
status = 0;
else
if ((status == -1) && ((errno == EAGAIN) || (errno == EWOULDBLOCK)))
status = 0;
else
status = 1;
break;
#endif
#ifdef HAVE_SLIRP_NETWORK
case ETH_API_NAT:
status = sim_slirp_send((SLIRP*)dev->handle, (char *)packet->msg, (size_t)packet->len, 0);
if ((status == (int)packet->len) || (status == 0))
status = 0;
else
status = 1;
break;
#endif
case ETH_API_UDP:
status = (((int32)packet->len == sim_write_sock (dev->fd_handle, (char *)packet->msg, (int32)packet->len)) ? 0 : -1);
break;
}
++dev->packets_sent; /* basic bookkeeping */
/* On error, correct loopback bookkeeping */
if ((status != 0) && loopback_self_frame) {
#ifdef USE_READER_THREAD
pthread_mutex_lock (&dev->self_lock);
#endif
dev->loopback_self_sent -= dev->reflections;
dev->loopback_self_sent_total--;
#ifdef USE_READER_THREAD
pthread_mutex_unlock (&dev->self_lock);
#endif
}
if (status != 0) {
++dev->transmit_packet_errors;
_eth_error (dev, "_eth_write");
}
} /* if packet->len */
/* call optional write callback function */
if (routine)
(routine)(status);
return ((status == 0) ? SCPE_OK : SCPE_IOERR);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_48E09B", "function_addr": 4776091, "binary_name": "9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 38h"], [4, "mov [rbp+var_28], rdi"], [5, "mov [rbp+s1], rsi"], [6, "mov [rbp+var_38], rdx"], [7, "mov [rbp+var_14], 1"], [8, "cmp [rbp+var_28], 0"], [9, "jz short loc_48E0C9"], [10, "mov rax, [rbp+var_28]"], [11, "mov eax, [rax+20h]"], [12, "test eax, eax"], [13, "jnz short loc_48E0D3"], [14, "mov eax, 41h "], [15, "jmp loc_48E626"], [16, "cmp [rbp+s1], 0"], [17, "jnz short loc_48E0E4"], [18, "mov eax, 48h "], [19, "jmp loc_48E626"], [20, "mov rax, [rbp+s1]"], [21, "mov eax, [rax+5F8h]"], [22, "cmp eax, 3Bh "], [23, "jbe loc_48E602"], [24, "mov rax, [rbp+s1]"], [25, "mov eax, [rax+5F8h]"], [26, "cmp eax, 5EAh"], [27, "ja loc_48E602"], [28, "mov rax, [rbp+s1]"], [29, "movzx eax, byte ptr [rax+0Ch]"], [30, "cmp al, 90h"], [31, "jnz loc_48E19F"], [32, "mov rax, [rbp+s1]"], [33, "movzx eax, byte ptr [rax+0Dh]"], [34, "test al, al"], [35, "jnz short loc_48E19F"], [36, "mov rax, [rbp+s1]"], [37, "movzx eax, byte ptr [rax+10h]"], [38, "cmp al, 2"], [39, "jnz short loc_48E19F"], [40, "mov rax, [rbp+s1]"], [41, "movzx eax, byte ptr [rax+11h]"], [42, "test al, al"], [43, "jnz short loc_48E19F"], [44, "mov rax, [rbp+s1]"], [45, "movzx eax, byte ptr [rax+18h]"], [46, "cmp al, 1"], [47, "jnz short loc_48E19F"], [48, "mov rax, [rbp+s1]"], [49, "movzx eax, byte ptr [rax+19h]"], [50, "test al, al"], [51, "jnz short loc_48E19F"], [52, "mov rax, [rbp+s1]"], [53, "lea rcx, [rax+6]"], [54, "mov rax, [rbp+s1]"], [55, "mov edx, 6"], [56, "mov rsi, rcx"], [57, "mov rdi, rax"], [58, "call _memcmp"], [59, "test eax, eax"], [60, "jnz short loc_48E19F"], [61, "mov rax, [rbp+s1]"], [62, "lea rcx, [rax+12h]"], [63, "mov rax, [rbp+s1]"], [64, "mov edx, 6"], [65, "mov rsi, rcx"], [66, "mov rdi, rax"], [67, "call _memcmp"], [68, "test eax, eax"], [69, "jnz short loc_48E19F"], [70, "mov eax, 1"], [71, "jmp short loc_48E1A4"], [72, "mov eax, 0"], [73, "mov [rbp+var_18], eax"], [74, "mov rax, [rbp+var_28]"], [75, "mov eax, [rax+0E4h]"], [76, "test eax, eax"], [77, "jz loc_48E2AB"], [78, "mov rax, [rbp+s1]"], [79, "movzx eax, byte ptr [rax+0Ch]"], [80, "cmp al, 90h"], [81, "jnz loc_48E2AB"], [82, "mov rax, [rbp+s1]"], [83, "movzx eax, byte ptr [rax+0Dh]"], [84, "test al, al"], [85, "jnz loc_48E2AB"], [86, "mov rax, [rbp+s1]"], [87, "movzx eax, byte ptr [rax+0Eh]"], [88, "cmp al, 8"], [89, "jnz loc_48E2AB"], [90, "mov rax, [rbp+s1]"], [91, "movzx eax, byte ptr [rax+0Fh]"], [92, "test al, al"], [93, "jnz loc_48E2AB"], [94, "mov rax, [rbp+s1]"], [95, "movzx eax, byte ptr [rax+10h]"], [96, "cmp al, 2"], [97, "jnz loc_48E2AB"], [98, "mov rax, [rbp+s1]"], [99, "movzx eax, byte ptr [rax+11h]"], [100, "test al, al"], [101, "jnz loc_48E2AB"], [102, "mov rax, [rbp+s1]"], [103, "movzx eax, byte ptr [rax+18h]"], [104, "cmp al, 1"], [105, "jnz loc_48E2AB"], [106, "mov rax, [rbp+s1]"], [107, "movzx eax, byte ptr [rax+19h]"], [108, "test al, al"], [109, "jnz short loc_48E2AB"], [110, "mov rax, [rbp+s1]"], [111, "lea rcx, [rax+12h]"], [112, "mov rax, [rbp+var_28]"], [113, "add rax, 0E8h"], [114, "mov edx, 6"], [115, "mov rsi, rcx"], [116, "mov rdi, rax"], [117, "call _memcmp"], [118, "test eax, eax"], [119, "jnz short loc_48E2AB"], [120, "mov rax, [rbp+s1]"], [121, "mov rdx, [rbp+var_28]"], [122, "lea rcx, [rdx+0E8h]"], [123, "mov edx, 6"], [124, "mov rsi, rax"], [125, "mov rdi, rcx"], [126, "call _memcmp"], [127, "test eax, eax"], [128, "jnz short loc_48E2AB"], [129, "mov rax, [rbp+s1]"], [130, "lea rcx, [rax+6]"], [131, "mov rax, [rbp+var_28]"], [132, "add rax, 0DCh"], [133, "mov edx, 6"], [134, "mov rsi, rcx"], [135, "mov rdi, rax"], [136, "call _memcmp"], [137, "test eax, eax"], [138, "jnz short loc_48E2AB"], [139, "mov eax, 1"], [140, "jmp short loc_48E2B0"], [141, "mov eax, 0"], [142, "mov [rbp+var_1C], eax"], [143, "mov rax, [rbp+s1]"], [144, "mov eax, [rax+5F8h]"], [145, "mov edx, eax"], [146, "mov rsi, [rbp+s1]"], [147, "mov rax, [rbp+var_28]"], [148, "mov ecx, offset aWriting"], [149, "mov rdi, rax"], [150, "call sub_489526"], [151, "cmp [rbp+var_18], 0"], [152, "jnz short loc_48E2E4"], [153, "cmp [rbp+var_1C], 0"], [154, "jz loc_48E3BA"], [155, "cmp [rbp+var_18], 0"], [156, "jz short loc_48E35F"], [157, "mov rax, [rbp+var_28]"], [158, "mov eax, [rax+0E4h]"], [159, "test eax, eax"], [160, "jz short loc_48E35F"], [161, "mov rax, [rbp+var_28]"], [162, "lea rcx, [rax+0E8h]"], [163, "mov rax, [rbp+s1]"], [164, "add rax, 6"], [165, "mov edx, 6"], [166, "mov rsi, rcx"], [167, "mov rdi, rax"], [168, "call _memcpy"], [169, "mov rax, [rbp+var_28]"], [170, "lea rcx, [rax+0E8h]"], [171, "mov rax, [rbp+s1]"], [172, "add rax, 12h"], [173, "mov edx, 6"], [174, "mov rsi, rcx"], [175, "mov rdi, rax"], [176, "call _memcpy"], [177, "mov rax, [rbp+s1]"], [178, "mov eax, [rax+5F8h]"], [179, "mov edx, eax"], [180, "mov rsi, [rbp+s1]"], [181, "mov rax, [rbp+var_28]"], [182, "mov ecx, offset aWritingFixed"], [183, "mov rdi, rax"], [184, "call sub_489526"], [185, "mov rax, [rbp+var_28]"], [186, "add rax, 1D8h"], [187, "mov rdi, rax"], [188, "call _pthread_mutex_lock"], [189, "mov rax, [rbp+var_28]"], [190, "mov edx, [rax+0D0h]"], [191, "mov rax, [rbp+var_28]"], [192, "mov eax, [rax+12Ch]"], [193, "add edx, eax"], [194, "mov rax, [rbp+var_28]"], [195, "mov [rax+0D0h], edx"], [196, "mov rax, [rbp+var_28]"], [197, "mov eax, [rax+0D4h]"], [198, "lea edx, [rax+1]"], [199, "mov rax, [rbp+var_28]"], [200, "mov [rax+0D4h], edx"], [201, "mov rax, [rbp+var_28]"], [202, "add rax, 1D8h"], [203, "mov rdi, rax"], [204, "call _pthread_mutex_unlock"], [205, "mov rax, [rbp+var_28]"], [206, "mov eax, [rax+20h]"], [207, "cmp eax, 5"], [208, "ja def_48E3D4"], [209, "mov eax, eax"], [210, "mov rax, ds:jpt_48E3D4[rax*8]"], [211, "jmp rax"], [212, "mov rax, [rbp+s1]"], [213, "mov eax, [rax+5F8h]"], [214, "mov edx, eax"], [215, "mov rcx, [rbp+s1]"], [216, "mov rax, [rbp+var_28]"], [217, "mov rax, [rax+8]"], [218, "mov rsi, rcx"], [219, "mov rdi, rax"], [220, "call sub_48B192"], [221, "mov [rbp+var_14], eax"], [222, "jmp def_48E3D4"], [223, "mov rax, [rbp+s1]"], [224, "mov eax, [rax+5F8h]"], [225, "movsxd rbx, eax"], [226, "mov rax, [rbp+s1]"], [227, "mov eax, [rax+5F8h]"], [228, "mov edx, eax"], [229, "mov rcx, [rbp+s1]"], [230, "mov rax, [rbp+var_28]"], [231, "mov eax, [rax+10h]"], [232, "mov rsi, rcx"], [233, "mov edi, eax"], [234, "call _write"], [235, "cmp rbx, rax"], [236, "jnz short loc_48E43B"], [237, "mov eax, 0"], [238, "jmp short loc_48E440"], [239, "mov eax, 0FFFFFFFFh"], [240, "mov [rbp+var_14], eax"], [241, "jmp def_48E3D4"], [242, "mov rax, [rbp+s1]"], [243, "mov eax, [rax+5F8h]"], [244, "mov edx, eax"], [245, "mov rsi, [rbp+s1]"], [246, "mov rax, [rbp+var_28]"], [247, "mov rax, [rax+8]"], [248, "mov ecx, 0"], [249, "mov rdi, rax"], [250, "call _vde_send"], [251, "mov [rbp+var_14], eax"], [252, "mov rax, [rbp+s1]"], [253, "mov eax, [rax+5F8h]"], [254, "cmp [rbp+var_14], eax"], [255, "jz short loc_48E485"], [256, "cmp [rbp+var_14], 0"], [257, "jnz short loc_48E48E"], [258, "mov [rbp+var_14], 0"], [259, "jmp short loc_48E4C1"], [260, "cmp [rbp+var_14], 0FFFFFFFFh"], [261, "jnz short loc_48E4B5"], [262, "call ___errno_location"], [263, "mov eax, [rax]"], [264, "cmp eax, 0Bh"], [265, "jz short loc_48E4AC"], [266, "call ___errno_location"], [267, "mov eax, [rax]"], [268, "cmp eax, 0Bh"], [269, "jnz short loc_48E4B5"], [270, "mov [rbp+var_14], 0"], [271, "jmp short loc_48E4C1"], [272, "mov [rbp+var_14], 1"], [273, "jmp def_48E3D4"], [274, "jmp def_48E3D4"], [275, "mov rax, [rbp+s1]"], [276, "mov eax, [rax+5F8h]"], [277, "mov edx, eax"], [278, "mov rsi, [rbp+s1]"], [279, "mov rax, [rbp+var_28]"], [280, "mov rax, [rax+8]"], [281, "mov ecx, 0"], [282, "mov rdi, rax"], [283, "call sub_4CC11B"], [284, "mov [rbp+var_14], eax"], [285, "mov rax, [rbp+s1]"], [286, "mov eax, [rax+5F8h]"], [287, "cmp [rbp+var_14], eax"], [288, "jz short loc_48E503"], [289, "cmp [rbp+var_14], 0"], [290, "jnz short loc_48E50C"], [291, "mov [rbp+var_14], 0"], [292, "jmp short def_48E3D4"], [293, "mov [rbp+var_14], 1"], [294, "jmp short def_48E3D4"], [295, "mov rax, [rbp+s1]"], [296, "mov eax, [rax+5F8h]"], [297, "mov ebx, eax"], [298, "mov rax, [rbp+s1]"], [299, "mov eax, [rax+5F8h]"], [300, "mov edx, eax"], [301, "mov rcx, [rbp+s1]"], [302, "mov rax, [rbp+var_28]"], [303, "mov eax, [rax+10h]"], [304, "mov rsi, rcx"], [305, "mov edi, eax"], [306, "call sub_47477C"], [307, "cmp ebx, eax"], [308, "jnz short loc_48E54D"], [309, "mov eax, 0"], [310, "jmp short loc_48E552"], [311, "mov eax, 0FFFFFFFFh"], [312, "mov [rbp+var_14], eax"], [313, "nop"], [314, "mov rax, [rbp+var_28]"], [315, "mov eax, [rax+0FCh]"], [316, "lea edx, [rax+1]"], [317, "mov rax, [rbp+var_28]"], [318, "mov [rax+0FCh], edx"], [319, "cmp [rbp+var_14], 0"], [320, "jz short loc_48E5D4"], [321, "cmp [rbp+var_18], 0"], [322, "jz short loc_48E5D4"], [323, "mov rax, [rbp+var_28]"], [324, "add rax, 1D8h"], [325, "mov rdi, rax"], [326, "call _pthread_mutex_lock"], [327, "mov rax, [rbp+var_28]"], [328, "mov edx, [rax+0D0h]"], [329, "mov rax, [rbp+var_28]"], [330, "mov eax, [rax+12Ch]"], [331, "sub edx, eax"], [332, "mov rax, [rbp+var_28]"], [333, "mov [rax+0D0h], edx"], [334, "mov rax, [rbp+var_28]"], [335, "mov eax, [rax+0D4h]"], [336, "lea edx, [rax-1]"], [337, "mov rax, [rbp+var_28]"], [338, "mov [rax+0D4h], edx"], [339, "mov rax, [rbp+var_28]"], [340, "add rax, 1D8h"], [341, "mov rdi, rax"], [342, "call _pthread_mutex_unlock"], [343, "cmp [rbp+var_14], 0"], [344, "jz short loc_48E602"], [345, "mov rax, [rbp+var_28]"], [346, "mov eax, [rax+108h]"], [347, "lea edx, [rax+1]"], [348, "mov rax, [rbp+var_28]"], [349, "mov [rax+108h], edx"], [350, "mov rax, [rbp+var_28]"], [351, "mov esi, offset aEthWrite"], [352, "mov rdi, rax"], [353, "call sub_48DD3A"], [354, "cmp [rbp+var_38], 0"], [355, "jz short loc_48E614"], [356, "mov eax, [rbp+var_14]"], [357, "mov rdx, [rbp+var_38]"], [358, "mov edi, eax"], [359, "call rdx"], [360, "cmp [rbp+var_14], 0"], [361, "jnz short loc_48E621"], [362, "mov eax, 0"], [363, "jmp short loc_48E626"], [364, "mov eax, 42h "], [365, "mov rbx, [rbp+var_8]"], [366, "leave"], [367, "retn"]], "data_dep": [[8, 4], [9, 8], [10, 4], [11, 10], [12, 11], [13, 12], [16, 5], [17, 16], [20, 5], [21, 20], [22, 21], [23, 22], [24, 5], [25, 24], [26, 25], [27, 26], [28, 5], [29, 28], [30, 29], [31, 30], [32, 5], [33, 32], [34, 33], [35, 34], [36, 5], [37, 36], [38, 37], [39, 38], [40, 5], [41, 40], [42, 41], [43, 42], [44, 5], [45, 44], [46, 45], [47, 46], [48, 5], [49, 48], [50, 49], [51, 50], [52, 5], [53, 52], [54, 5], [56, 53], [57, 54], [59, 58], [60, 59], [61, 5], [62, 53], [62, 61], [63, 5], [65, 62], [66, 63], [68, 67], [69, 68], [73, 72], [73, 70], [74, 4], [75, 74], [76, 75], [77, 76], [78, 5], [79, 78], [80, 79], [81, 80], [82, 5], [83, 82], [84, 83], [85, 84], [86, 5], [87, 86], [88, 87], [89, 88], [90, 5], [91, 90], [92, 91], [93, 92], [94, 5], [95, 94], [96, 95], [97, 96], [98, 5], [99, 98], [100, 99], [101, 100], [102, 5], [103, 102], [104, 103], [105, 104], [106, 5], [107, 106], [108, 107], [109, 108], [110, 5], [111, 110], [111, 53], [111, 62], [112, 4], [113, 112], [115, 111], [116, 113], [118, 117], [119, 118], [120, 5], [121, 4], [122, 121], [122, 111], [124, 120], [125, 122], [127, 126], [128, 127], [129, 5], [130, 122], [130, 129], [131, 4], [132, 131], [134, 130], [135, 132], [137, 136], [138, 137], [142, 139], [142, 141], [143, 5], [144, 143], [145, 144], [146, 5], [147, 4], [149, 147], [151, 73], [152, 151], [153, 142], [154, 153], [155, 73], [156, 155], [157, 4], [158, 157], [159, 158], [160, 159], [161, 4], [162, 161], [162, 148], [163, 5], [164, 163], [166, 162], [167, 164], [169, 4], [170, 169], [170, 162], [171, 5], [172, 171], [174, 170], [175, 172], [177, 5], [178, 177], [179, 178], [180, 5], [181, 4], [183, 181], [185, 4], [186, 185], [187, 186], [189, 4], [190, 189], [191, 4], [192, 191], [193, 192], [193, 190], [194, 4], [195, 193], [195, 194], [196, 4], [197, 196], [197, 195], [198, 193], [198, 197], [198, 195], [199, 4], [200, 199], [200, 198], [201, 4], [202, 201], [203, 202], [205, 4], [206, 205], [206, 200], [206, 195], [207, 206], [208, 207], [209, 206], [211, 210], [212, 5], [213, 200], [213, 195], [213, 212], [214, 213], [215, 5], [216, 4], [217, 216], [217, 200], [217, 195], [218, 215], [219, 217], [221, 220], [223, 5], [224, 223], [224, 200], [224, 195], [225, 224], [226, 5], [227, 200], [227, 195], [227, 226], [228, 227], [229, 5], [230, 4], [231, 230], [231, 200], [231, 195], [232, 229], [233, 231], [235, 225], [235, 234], [236, 235], [240, 237], [240, 239], [242, 5], [243, 242], [243, 200], [243, 195], [244, 243], [245, 5], [246, 4], [247, 246], [247, 200], [247, 195], [249, 247], [251, 250], [252, 5], [253, 252], [253, 200], [253, 195], [254, 251], [254, 253], [255, 254], [256, 251], [257, 256], [260, 251], [261, 260], [263, 262], [263, 200], [263, 195], [264, 263], [265, 264], [267, 200], [267, 195], [267, 266], [268, 267], [269, 268], [275, 5], [276, 275], [276, 200], [276, 195], [277, 276], [278, 5], [279, 4], [280, 279], [280, 200], [280, 195], [282, 280], [284, 283], [285, 5], [286, 200], [286, 195], [286, 285], [287, 284], [287, 286], [288, 287], [289, 284], [290, 289], [295, 5], [296, 295], [296, 200], [296, 195], [297, 296], [298, 5], [299, 298], [299, 200], [299, 195], [300, 299], [301, 5], [302, 4], [303, 200], [303, 195], [303, 302], [304, 301], [305, 303], [307, 297], [307, 306], [308, 307], [312, 309], [312, 311], [314, 4], [315, 318], [315, 200], [315, 195], [315, 314], [316, 228], [316, 214], [316, 195], [316, 315], [316, 198], [316, 300], [316, 277], [316, 244], [316, 318], [316, 200], [316, 145], [317, 4], [318, 317], [318, 316], [319, 291], [319, 7], [319, 272], [319, 240], [319, 258], [319, 221], [319, 312], [319, 293], [319, 270], [320, 319], [321, 73], [322, 321], [323, 4], [324, 323], [325, 324], [327, 4], [328, 318], [328, 327], [328, 200], [328, 195], [328, 338], [328, 333], [329, 4], [330, 200], [330, 195], [330, 329], [330, 338], [330, 333], [330, 318], [331, 330], [331, 328], [332, 4], [333, 332], [333, 331], [334, 4], [335, 334], [335, 333], [335, 200], [336, 331], [336, 335], [336, 333], [337, 4], [338, 337], [338, 336], [339, 4], [340, 339], [341, 340], [343, 291], [343, 7], [343, 272], [343, 240], [343, 258], [343, 221], [343, 312], [343, 293], [343, 270], [344, 343], [345, 4], [346, 349], [346, 195], [346, 338], [346, 333], [346, 318], [346, 345], [346, 200], [347, 346], [347, 318], [347, 336], [347, 200], [347, 316], [347, 349], [347, 195], [347, 338], [347, 333], [348, 4], [349, 348], [349, 347], [350, 4], [352, 350], [354, 6], [355, 354], [356, 291], [356, 7], [356, 272], [356, 258], [356, 312], [356, 293], [356, 270], [356, 240], [356, 221], [357, 6], [358, 356], [359, 357], [360, 293], [360, 270], [360, 240], [360, 221], [360, 291], [360, 7], [360, 272], [360, 258], [360, 312], [361, 360], [367, 364], [367, 14], [367, 18], [367, 362]]}
| {"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/9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23_9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23.jsonl.gz", "strip_func_name": "sub_48E09B", "query": "\n\n\n__int64 __fastcall sub_48E09B(__int64 a1, __int64 a2, void (__fastcall *a3)(_QWORD))\n{\n__int64 result; // rax\n_BOOL4 v4; // eax\n_BOOL4 v5; // eax\n__int64 v6; // rbx\nint v7; // eax\nint v8; // ebx\nint v9; // eax\n_BOOL4 v11; // [rsp+24h] [rbp-1Ch]\n_BOOL4 v12; // [rsp+28h] [rbp-18h]\nunsigned int v13; // [rsp+2Ch] [rbp-14h]\nint v14; // [rsp+2Ch] [rbp-14h]\nint v15; // [rsp+2Ch] [rbp-14h]\n\nv13 = 1;\nif ( !a1 || !*(_DWORD *)(a1 + 32) )\nreturn 65LL;\nif ( !a2 )\nreturn 72LL;\nif ( *(_DWORD *)(a2 + 1528) > 0x3Bu && *(_DWORD *)(a2 + 1528) <= 0x5EAu )\n{\nv4 = *(_BYTE *)(a2 + 12) == 0x90\n&& !*(_BYTE *)(a2 + 13)\n&& *(_BYTE *)(a2 + 16) == 2\n&& !*(_BYTE *)(a2 + 17)\n&& *(_BYTE *)(a2 + 24) == 1\n&& !*(_BYTE *)(a2 + 25)\n&& !memcmp((const void *)a2, (const void *)(a2 + 6), 6uLL)\n&& !memcmp((const void *)a2, (const void *)(a2 + 18), 6uLL);\nv12 = v4;\nv5 = *(_DWORD *)(a1 + 228)\n&& *(_BYTE *)(a2 + 12) == 0x90\n&& !*(_BYTE *)(a2 + 13)\n&& *(_BYTE *)(a2 + 14) == 8\n&& !*(_BYTE *)(a2 + 15)\n&& *(_BYTE *)(a2 + 16) == 2\n&& !*(_BYTE *)(a2 + 17)\n&& *(_BYTE *)(a2 + 24) == 1\n&& !*(_BYTE *)(a2 + 25)\n&& !memcmp((const void *)(a1 + 232), (const void *)(a2 + 18), 6uLL)\n&& !memcmp((const void *)(a1 + 232), (const void *)a2, 6uLL)\n&& !memcmp((const void *)(a1 + 220), (const void *)(a2 + 6), 6uLL);\nv11 = v5;\nsub_489526(a1, (_BYTE *)a2, *(_DWORD *)(a2 + 1528), (__int64)\"writing\");\nif ( v12 || v11 )\n{\nif ( v12 && *(_DWORD *)(a1 + 228) )\n{\nmemcpy((void *)(a2 + 6), (const void *)(a1 + 232), 6uLL);\nmemcpy((void *)(a2 + 18), (const void *)(a1 + 232), 6uLL);\nsub_489526(a1, (_BYTE *)a2, *(_DWORD *)(a2 + 1528), (__int64)\"writing-fixed\");\n}\npthread_mutex_lock((pthread_mutex_t *)(a1 + 472));\n*(_DWORD *)(a1 + 208) += *(_DWORD *)(a1 + 300);\n++*(_DWORD *)(a1 + 212);\npthread_mutex_unlock((pthread_mutex_t *)(a1 + 472));\n}\nswitch ( *(_DWORD *)(a1 + 32) )\n{\ncase 1:\nv13 = sub_48B192(*(_QWORD *)(a1 + 8), a2, *(_DWORD *)(a2 + 1528));\nbreak;\ncase 2:\nv6 = *(int *)(a2 + 1528);\nif ( v6 == write(*(_DWORD *)(a1 + 16), (const void *)a2, *(unsigned int *)(a2 + 1528)) )\nv7 = 0;\nelse\nv7 = -1;\nv13 = v7;\nbreak;\ncase 3:\nv14 = vde_send();\nif ( v14 != *(_DWORD *)(a2 + 1528) && v14 )\nv13 = v14 != -1 || *__errno_location() != 11 && *__errno_location() != 11;\nelse\nv13 = 0;\nbreak;\ncase 4:\nv8 = *(_DWORD *)(a2 + 1528);\nif ( v8 == (unsigned int)sub_47477C(*(_DWORD *)(a1 + 16), (const void *)a2, v8) )\nv9 = 0;\nelse\nv9 = -1;\nv13 = v9;\nbreak;\ncase 5:\nv15 = sub_4CC11B(*(_QWORD *)(a1 + 8), a2, *(unsigned int *)(a2 + 1528), 0LL);\nv13 = v15 != *(_DWORD *)(a2 + 1528) && v15;\nbreak;\ndefault:\nbreak;\n}\n++*(_DWORD *)(a1 + 252);\nif ( v13 && v12 )\n{\npthread_mutex_lock((pthread_mutex_t *)(a1 + 472));\n*(_DWORD *)(a1 + 208) -= *(_DWORD *)(a1 + 300);\n--*(_DWORD *)(a1 + 212);\npthread_mutex_unlock((pthread_mutex_t *)(a1 + 472));\n}\nif ( v13 )\n{\n++*(_DWORD *)(a1 + 264);\nsub_48DD3A(a1, \"_eth_write\");\n}\n}\nif ( a3 )\na3(v13);\nif ( v13 )\nresult = 66LL;\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v11,v13,sub_48E09B,sub_489526,sub_48B192,sub_47477C,sub_4CC11B,sub_48DD3A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'routine', 'a1': 'dev', 'a2': 'packet', 'v11': 'loopback_physical_response', 'v13': 'statusb', 'sub_48E09B': '_eth_write', 'sub_489526': 'eth_packet_trace', 'sub_48B192': 'pcap_sendpacket', 'sub_47477C': 'sim_write_sock', 'sub_4CC11B': 'sim_slirp_send', 'sub_48DD3A': '_eth_error'}"} |
|
vdbeSorterCompare | 1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627 | andoma | movian | NA | static int vdbeSorterCompare(
SortSubtask *pTask, /* Subtask context (for pKeyInfo) */
int *pbKey2Cached, /* True if pTask->pUnpacked is pKey2 */
const void *pKey1, int nKey1, /* Left side of comparison */
const void *pKey2, int nKey2 /* Right side of comparison */
){
UnpackedRecord *r2 = pTask->pUnpacked;
if( !*pbKey2Cached ){
sqlite3VdbeRecordUnpack(pTask->pSorter->pKeyInfo, nKey2, pKey2, r2);
*pbKey2Cached = 1;
}
return sqlite3VdbeRecordCompare(nKey1, pKey1, r2);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4508FD", "function_addr": 4524285, "binary_name": "1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_2C], ecx"], [7, "mov [rbp+var_38], r8"], [8, "mov [rbp+var_30], r9d"], [9, "mov rax, [rbp+var_18]"], [10, "mov rax, [rax+18h]"], [11, "mov [rbp+var_8], rax"], [12, "mov rax, [rbp+var_20]"], [13, "mov eax, [rax]"], [14, "test eax, eax"], [15, "jnz short loc_45095B"], [16, "mov rax, [rbp+var_18]"], [17, "mov rax, [rax+10h]"], [18, "mov rax, [rax+28h]"], [19, "mov rcx, [rbp+var_8]"], [20, "mov rdx, [rbp+var_38]"], [21, "mov esi, [rbp+var_30]"], [22, "mov rdi, rax"], [23, "call sub_44192E"], [24, "mov rax, [rbp+var_20]"], [25, "mov dword ptr [rax], 1"], [26, "mov rdx, [rbp+var_8]"], [27, "mov rcx, [rbp+var_28]"], [28, "mov eax, [rbp+var_2C]"], [29, "mov rsi, rcx"], [30, "mov edi, eax"], [31, "call sub_442792"], [32, "leave"], [33, "retn"]], "data_dep": [[9, 3], [10, 9], [11, 10], [12, 4], [13, 12], [14, 13], [15, 14], [16, 3], [17, 16], [18, 17], [19, 11], [20, 7], [21, 8], [22, 18], [24, 4], [25, 24], [26, 11], [27, 5], [28, 6], [29, 27], [30, 28], [33, 31]]}
| {"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/1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627_1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627.jsonl.gz", "strip_func_name": "sub_4508FD", "query": "\n\n\n__int64 __fastcall sub_4508FD(__int64 a1, _DWORD *a2, unsigned __int8 *a3, unsigned int a4, unsigned __int8 *a5, int a6)\n{\n__int64 v9; // [rsp+38h] [rbp-8h]\n\nv9 = *(_QWORD *)(a1 + 24);\nif ( !*a2 )\n{\nsub_44192E(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 40LL), a6, a5, v9);\n*a2 = 1;\n}\nreturn sub_442792(a4, a3, v9);\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,v9,sub_4508FD,sub_44192E,sub_442792,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'pKey1', 'a4': 'nKey1', 'a1': 'pTask', 'a2': 'pbKey2Cached', 'a5': 'pKey2', 'a6': 'nKey2', 'v9': 'r2', 'sub_4508FD': 'vdbeSorterCompare', 'sub_44192E': 'sqlite3VdbeRecordUnpack', 'sub_442792': 'sqlite3VdbeRecordCompare'}"} |
|
u8g2_font_calc_vref_center | f223df43e71fd244b2d3fc8309aa4a9e557a38d76ce9c8ff7a1df98b1c82c5e4 | olikraus | u8g2 | NA | u8g2_uint_t u8g2_font_calc_vref_center(u8g2_t *u8g2)
{
int8_t tmp;
tmp = u8g2->font_ref_ascent;
tmp -= u8g2->font_ref_descent;
tmp /= 2;
tmp += u8g2->font_ref_descent;
return tmp;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_439DBE", "function_addr": 4431294, "binary_name": "f223df43e71fd244b2d3fc8309aa4a9e557a38d76ce9c8ff7a1df98b1c82c5e4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov rax, [rbp+var_18]"], [4, "movzx eax, byte ptr [rax+0EAh]"], [5, "mov [rbp+var_1], al"], [6, "movzx edx, [rbp+var_1]"], [7, "mov rax, [rbp+var_18]"], [8, "movzx eax, byte ptr [rax+0EBh]"], [9, "mov ecx, eax"], [10, "mov eax, edx"], [11, "sub eax, ecx"], [12, "mov [rbp+var_1], al"], [13, "movzx eax, [rbp+var_1]"], [14, "mov edx, eax"], [15, "shr dl, 7"], [16, "add eax, edx"], [17, "sar al, 1"], [18, "mov [rbp+var_1], al"], [19, "mov rax, [rbp+var_18]"], [20, "movzx eax, byte ptr [rax+0EBh]"], [21, "mov edx, eax"], [22, "movzx eax, [rbp+var_1]"], [23, "add eax, edx"], [24, "mov [rbp+var_1], al"], [25, "movsx ax, [rbp+var_1]"], [26, "pop rbp"], [27, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [7, 2], [8, 7], [9, 8], [10, 6], [11, 10], [11, 9], [12, 11], [13, 12], [14, 13], [15, 14], [16, 13], [16, 15], [17, 16], [18, 17], [19, 2], [20, 19], [21, 20], [22, 18], [23, 22], [23, 21], [24, 23], [25, 24], [26, 0], [27, 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/f223df43e71fd244b2d3fc8309aa4a9e557a38d76ce9c8ff7a1df98b1c82c5e4_f223df43e71fd244b2d3fc8309aa4a9e557a38d76ce9c8ff7a1df98b1c82c5e4.jsonl.gz", "strip_func_name": "sub_439DBE", "query": "\n\n\n__int16 __fastcall sub_439DBE(__int64 a1)\n{\nreturn (char)(*(_BYTE *)(a1 + 235) + (char)(*(_BYTE *)(a1 + 234) - *(_BYTE *)(a1 + 235)) / 2);\n}\n\n\n\nQ:[a1,sub_439DBE,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'u8g2', 'sub_439DBE': 'u8g2_font_calc_vref_center'}"} |
|
qcow2_cache_set_dependency | cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da | aclements | mtrace | NA | int qcow2_cache_set_dependency(BlockDriverState *bs, Qcow2Cache *c,
Qcow2Cache *dependency)
{
int ret;
if (dependency->depends) {
ret = qcow2_cache_flush_dependency(bs, dependency);
if (ret < 0) {
return ret;
}
}
if (c->depends && (c->depends != dependency)) {
ret = qcow2_cache_flush_dependency(bs, c);
if (ret < 0) {
return ret;
}
}
c->depends = dependency;
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4353D0", "function_addr": 4412368, "binary_name": "cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, fs:28h"], [7, "mov [rbp+var_8], rax"], [8, "xor eax, eax"], [9, "mov rax, [rbp+var_28]"], [10, "mov rax, [rax+8]"], [11, "test rax, rax"], [12, "jz short loc_435421"], [13, "mov rdx, [rbp+var_28]"], [14, "mov rax, [rbp+var_18]"], [15, "mov rsi, rdx"], [16, "mov rdi, rax"], [17, "call sub_435101"], [18, "mov [rbp+var_C], eax"], [19, "cmp [rbp+var_C], 0"], [20, "jns short loc_435421"], [21, "mov eax, [rbp+var_C]"], [22, "jmp short loc_43546E"], [23, "mov rax, [rbp+var_20]"], [24, "mov rax, [rax+8]"], [25, "test rax, rax"], [26, "jz short loc_43545D"], [27, "mov rax, [rbp+var_20]"], [28, "mov rax, [rax+8]"], [29, "cmp [rbp+var_28], rax"], [30, "jz short loc_43545D"], [31, "mov rdx, [rbp+var_20]"], [32, "mov rax, [rbp+var_18]"], [33, "mov rsi, rdx"], [34, "mov rdi, rax"], [35, "call sub_435101"], [36, "mov [rbp+var_C], eax"], [37, "cmp [rbp+var_C], 0"], [38, "jns short loc_43545D"], [39, "mov eax, [rbp+var_C]"], [40, "jmp short loc_43546E"], [41, "mov rax, [rbp+var_20]"], [42, "mov rdx, [rbp+var_28]"], [43, "mov [rax+8], rdx"], [44, "mov eax, 0"], [45, "mov rcx, [rbp+var_8]"], [46, "sub rcx, fs:28h"], [47, "jz short locret_435482"], [48, "call ___stack_chk_fail"], [49, "leave"], [50, "retn"]], "data_dep": [[7, 6], [9, 5], [10, 9], [11, 10], [12, 11], [13, 5], [14, 3], [15, 13], [16, 14], [18, 17], [19, 18], [20, 19], [21, 18], [23, 4], [24, 23], [25, 24], [26, 25], [27, 4], [28, 27], [29, 28], [29, 5], [30, 29], [31, 4], [32, 3], [33, 31], [34, 32], [36, 35], [37, 36], [38, 37], [39, 36], [41, 4], [42, 5], [43, 42], [43, 41], [45, 7], [46, 45], [47, 46], [50, 21], [50, 39], [50, 44]]}
| {"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/cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da_cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.jsonl.gz", "strip_func_name": "sub_4353D0", "query": "\n\n\n__int64 __fastcall sub_4353D0(__int64 a1, __int64 a2, __int64 a3)\n{\nint v5; // [rsp+24h] [rbp-Ch]\nint v6; // [rsp+24h] [rbp-Ch]\n\nif ( *(_QWORD *)(a3 + 8) )\n{\nv5 = sub_435101(a1, a3);\nif ( v5 < 0 )\nreturn (unsigned int)v5;\n}\nif ( *(_QWORD *)(a2 + 8) )\n{\nif ( a3 != *(_QWORD *)(a2 + 8) )\n{\nv6 = sub_435101(a1, a2);\nif ( v6 < 0 )\nreturn (unsigned int)v6;\n}\n}\n*(_QWORD *)(a2 + 8) = a3;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v5,sub_4353D0,sub_435101,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'dependency', 'a1': 'bs', 'a2': 'c', 'v5': 'reta', 'sub_4353D0': 'qcow2_cache_set_dependency', 'sub_435101': 'qcow2_cache_flush_dependency'}"} |
|
dop_1b | 614f31b237021943f00edd1722efa5c25b232a880ba0ce0b95bc8b4ce694ebc2 | EtchedPixels | EmulatorKit | NA | static void dop_1b (e86_disasm_t *op, unsigned char *src)
{
dop_reg16_ea16 (op, src, "SBB");
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40AB87", "function_addr": 4238215, "binary_name": "614f31b237021943f00edd1722efa5c25b232a880ba0ce0b95bc8b4ce694ebc2.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 rcx, [rbp+var_10]"], [6, "mov rax, [rbp+var_8]"], [7, "mov edx, offset off_423F26"], [8, "mov rsi, rcx"], [9, "mov rdi, rax"], [10, "call sub_40A312"], [11, "nop"], [12, "leave"], [13, "retn"]], "data_dep": [[5, 4], [6, 3], [8, 5], [9, 6], [13, 10]]}
| {"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/614f31b237021943f00edd1722efa5c25b232a880ba0ce0b95bc8b4ce694ebc2_614f31b237021943f00edd1722efa5c25b232a880ba0ce0b95bc8b4ce694ebc2.jsonl.gz", "strip_func_name": "sub_40AB87", "query": "\n\n\n__int64 __fastcall sub_40AB87(__int64 a1, __int64 a2)\n{\nreturn sub_40A312(a1, a2, (const char *)&off_423F26);\n}\n\n\n\nQ:[a1,a2,sub_40AB87,sub_40A312,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'op', 'a2': 'src', 'sub_40AB87': 'dop_1b', 'sub_40A312': 'dop_reg16_ea16'}"} |
|
mui_u8g2_u8_opt_parent_wm_pi | bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46 | olikraus | u8g2 | NA | uint8_t mui_u8g2_u8_opt_parent_wm_pi(mui_t *ui, uint8_t msg)
{
uint8_t *value = (uint8_t *)muif_get_data(ui->uif);
switch(msg)
{
case MUIF_MSG_DRAW:
if ( mui_fds_get_nth_token(ui, *value) == 0 )
{
*value = 0;
mui_fds_get_nth_token(ui, *value);
}
mui_u8g2_draw_button_pi(ui, 0, 1, ui->text);
//mui_u8g2_draw_button_utf(ui, mui_u8g2_get_pi_flags(ui), 0, 1, MUI_U8G2_V_PADDING, ui->text);
break;
case MUIF_MSG_FORM_START:
break;
case MUIF_MSG_FORM_END:
break;
case MUIF_MSG_CURSOR_ENTER:
break;
case MUIF_MSG_CURSOR_SELECT:
case MUIF_MSG_VALUE_INCREMENT:
case MUIF_MSG_VALUE_DECREMENT:
mui_SaveForm(ui); // store the current form and position so that the child can jump back
mui_GotoForm(ui, ui->arg, *value); // assumes that the selectable values are at the beginning of the form definition
break;
case MUIF_MSG_CURSOR_LEAVE:
break;
case MUIF_MSG_TOUCH_DOWN:
break;
case MUIF_MSG_TOUCH_UP:
break;
}
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40472C", "function_addr": 4212524, "binary_name": "bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46.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, "mov rax, [rbp+var_18]"], [7, "mov rax, [rax+60h]"], [8, "mov rax, [rax+8]"], [9, "mov [rbp+var_8], rax"], [10, "movzx eax, [rbp+var_1C]"], [11, "cmp eax, 0Ah"], [12, "ja def_404764"], [13, "mov eax, eax"], [14, "mov rax, ds:jpt_404764[rax*8]"], [15, "jmp rax"], [16, "mov rax, [rbp+var_8]"], [17, "movzx eax, byte ptr [rax]"], [18, "movzx edx, al"], [19, "mov rax, [rbp+var_18]"], [20, "mov esi, edx"], [21, "mov rdi, rax"], [22, "call sub_40147D"], [23, "test al, al"], [24, "jnz short loc_4047A1"], [25, "mov rax, [rbp+var_8]"], [26, "mov byte ptr [rax], 0"], [27, "mov rax, [rbp+var_8]"], [28, "movzx eax, byte ptr [rax]"], [29, "movzx edx, al"], [30, "mov rax, [rbp+var_18]"], [31, "mov esi, edx"], [32, "mov rdi, rax"], [33, "call sub_40147D"], [34, "mov rax, [rbp+var_18]"], [35, "lea rdx, [rax+68h]"], [36, "mov rax, [rbp+var_18]"], [37, "mov rcx, rdx"], [38, "mov edx, 1"], [39, "mov esi, 0"], [40, "mov rdi, rax"], [41, "call sub_40279B"], [42, "jmp short def_404764"], [43, "mov rax, [rbp+var_18]"], [44, "mov rdi, rax"], [45, "call sub_40219C"], [46, "mov rax, [rbp+var_8]"], [47, "movzx eax, byte ptr [rax]"], [48, "movzx edx, al"], [49, "mov rax, [rbp+var_18]"], [50, "movzx eax, byte ptr [rax+4Eh]"], [51, "movzx ecx, al"], [52, "mov rax, [rbp+var_18]"], [53, "mov esi, ecx"], [54, "mov rdi, rax"], [55, "call sub_402142"], [56, "nop"], [57, "mov eax, 0"], [58, "leave"], [59, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 6], [8, 7], [9, 8], [10, 5], [11, 10], [12, 11], [13, 10], [15, 14], [16, 9], [17, 16], [18, 17], [19, 3], [20, 18], [21, 19], [23, 22], [24, 23], [25, 9], [26, 25], [27, 9], [28, 27], [28, 26], [29, 28], [30, 3], [31, 29], [32, 30], [34, 3], [35, 26], [35, 29], [35, 34], [35, 18], [36, 3], [37, 35], [40, 36], [43, 3], [44, 43], [46, 9], [47, 46], [48, 47], [49, 3], [50, 49], [51, 50], [52, 3], [53, 51], [54, 52], [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/bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46_bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46.jsonl.gz", "strip_func_name": "sub_40472C", "query": "\n\n\n__int64 __fastcall sub_40472C(__int64 a1, char a2)\n{\nchar *v3; // [rsp+18h] [rbp-8h]\n\nv3 = *(char **)(*(_QWORD *)(a1 + 96) + 8LL);\nswitch ( a2 )\n{\ncase 1:\nif ( !(unsigned __int8)sub_40147D(a1, *v3) )\n{\n*v3 = 0;\nsub_40147D(a1, *v3);\n}\nsub_40279B(a1, 0, 1u, (void *)(a1 + 104));\nbreak;\ncase 5:\ncase 6:\ncase 7:\nsub_40219C(a1);\nsub_402142(a1, *(_BYTE *)(a1 + 78), *v3);\nbreak;\ndefault:\nreturn 0LL;\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,v3,sub_40472C,sub_40147D,sub_40279B,sub_40219C,sub_402142,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ui', 'a2': 'msg', 'v3': 'value', 'sub_40472C': 'mui_u8g2_u8_opt_parent_wm_pi', 'sub_40147D': 'mui_fds_get_nth_token', 'sub_40279B': 'mui_u8g2_draw_button_pi', 'sub_40219C': 'mui_SaveForm', 'sub_402142': 'mui_GotoForm'}"} |
|
vhd_offset | b57dc741ab89a18d2d7bde13dc91979a52dfdc00913ec7c57afdd64909a03a5c | open-simh | simtools | NA | int
vhd_offset(vhd_context_t *ctx, uint32_t sector, uint32_t *offset)
{
int err;
uint32_t block;
if (!vhd_type_dynamic(ctx))
return sector;
err = vhd_get_bat(ctx);
if (err)
return err;
block = sector / ctx->spb;
if (ctx->bat.bat[block] == DD_BLK_UNUSED)
*offset = DD_BLK_UNUSED;
else
*offset = ctx->bat.bat[block] +
ctx->bm_secs + (sector % ctx->spb);
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43675D", "function_addr": 4417373, "binary_name": "b57dc741ab89a18d2d7bde13dc91979a52dfdc00913ec7c57afdd64909a03a5c.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 rax, [rbp+var_18]"], [7, "mov rdi, rax"], [8, "call sub_431E52"], [9, "test eax, eax"], [10, "jnz short loc_436788"], [11, "mov eax, [rbp+var_1C]"], [12, "jmp locret_436820"], [13, "mov rax, [rbp+var_18]"], [14, "mov rdi, rax"], [15, "call sub_433B35"], [16, "mov [rbp+var_4], eax"], [17, "cmp [rbp+var_4], 0"], [18, "jz short loc_4367A2"], [19, "mov eax, [rbp+var_4]"], [20, "jmp short locret_436820"], [21, "mov rax, [rbp+var_18]"], [22, "mov ecx, [rax+18h]"], [23, "mov eax, [rbp+var_1C]"], [24, "mov edx, 0"], [25, "div ecx"], [26, "mov [rbp+var_8], eax"], [27, "mov rax, [rbp+var_18]"], [28, "mov rdx, [rax+628h]"], [29, "mov eax, [rbp+var_8]"], [30, "shl rax, 2"], [31, "add rax, rdx"], [32, "mov eax, [rax]"], [33, "cmp eax, 0FFFFFFFFh"], [34, "jnz short loc_4367DE"], [35, "mov rax, [rbp+var_28]"], [36, "mov dword ptr [rax], 0FFFFFFFFh"], [37, "jmp short loc_43681B"], [38, "mov rax, [rbp+var_18]"], [39, "mov rdx, [rax+628h]"], [40, "mov eax, [rbp+var_8]"], [41, "shl rax, 2"], [42, "add rax, rdx"], [43, "mov edx, [rax]"], [44, "mov rax, [rbp+var_18]"], [45, "mov eax, [rax+1Ch]"], [46, "lea esi, [rdx+rax]"], [47, "mov rax, [rbp+var_18]"], [48, "mov ecx, [rax+18h]"], [49, "mov eax, [rbp+var_1C]"], [50, "mov edx, 0"], [51, "div ecx"], [52, "mov eax, edx"], [53, "lea edx, [rsi+rax]"], [54, "mov rax, [rbp+var_28]"], [55, "mov [rax], edx"], [56, "mov eax, 0"], [57, "leave"], [58, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 8], [10, 9], [11, 4], [13, 3], [14, 13], [16, 15], [17, 16], [18, 17], [19, 16], [21, 3], [22, 21], [23, 4], [25, 22], [26, 23], [27, 3], [28, 27], [29, 26], [30, 29], [31, 28], [31, 30], [32, 31], [33, 32], [34, 33], [35, 5], [36, 35], [38, 3], [39, 38], [40, 26], [41, 40], [42, 39], [42, 41], [43, 42], [44, 3], [45, 44], [46, 45], [47, 3], [48, 47], [49, 4], [51, 48], [52, 50], [53, 50], [53, 52], [54, 5], [55, 53], [55, 54], [58, 56], [58, 19], [58, 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/b57dc741ab89a18d2d7bde13dc91979a52dfdc00913ec7c57afdd64909a03a5c_b57dc741ab89a18d2d7bde13dc91979a52dfdc00913ec7c57afdd64909a03a5c.jsonl.gz", "strip_func_name": "sub_43675D", "query": "\n\n\n__int64 __fastcall sub_43675D(__int64 a1, unsigned int a2, _DWORD *a3)\n{\nunsigned int v5; // [rsp+28h] [rbp-8h]\nunsigned int v6; // [rsp+2Ch] [rbp-4h]\n\nif ( !sub_431E52(a1) )\nreturn a2;\nv6 = sub_433B35(a1);\nif ( v6 )\nreturn v6;\nv5 = a2 / *(_DWORD *)(a1 + 24);\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 1576) + 4LL * v5) == -1 )\n*a3 = -1;\nelse\n*a3 = *(_DWORD *)(*(_QWORD *)(a1 + 1576) + 4LL * v5) + *(_DWORD *)(a1 + 28) + a2 % *(_DWORD *)(a1 + 24);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v5,v6,sub_43675D,sub_431E52,sub_433B35,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'offset', 'a1': 'ctx', 'a2': 'sector', 'v5': 'block', 'v6': 'err', 'sub_43675D': 'vhd_offset', 'sub_431E52': 'vhd_type_dynamic', 'sub_433B35': 'vhd_get_bat'}"} |
|
mos_adval | 8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb | stardot | MatrixBrandy | NA | int32 mos_adval(int32 x) {
size_t inputvalues[4]={0,0,0,0}; /* Initialise to zero to keep non-SDL builds happy */
x = x & 0xFFFF; /* arg is a 16-bit value */
if((x>6) & (x<10)) {
mos_mouse(inputvalues);
return inputvalues[x-7];
}
if (x == 0x007F) return kbd_get0(); /* Low-level examine of keyboard buffer */
if (x == 0xFFFF) return kbd_buffered(); /* ADVAL(-1), amount in keyboard buffer */
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43612F", "function_addr": 4415791, "binary_name": "8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb.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_20], 0"], [5, "mov [rbp+var_18], 0"], [6, "mov [rbp+var_10], 0"], [7, "mov [rbp+var_8], 0"], [8, "and [rbp+var_24], 0FFFFh"], [9, "cmp [rbp+var_24], 6"], [10, "setnle dl"], [11, "cmp [rbp+var_24], 9"], [12, "setle al"], [13, "and eax, edx"], [14, "test al, al"], [15, "jz short loc_436190"], [16, "lea rax, [rbp+var_20]"], [17, "mov rdi, rax"], [18, "call sub_436114"], [19, "mov eax, [rbp+var_24]"], [20, "sub eax, 7"], [21, "cdqe"], [22, "mov rax, [rbp+rax*8+var_20]"], [23, "jmp short locret_4361B2"], [24, "cmp [rbp+var_24], 7Fh"], [25, "jnz short loc_43619D"], [26, "call sub_44AF9D"], [27, "jmp short locret_4361B2"], [28, "cmp [rbp+var_24], 0FFFFh"], [29, "jnz short loc_4361AD"], [30, "call sub_44A503"], [31, "jmp short locret_4361B2"], [32, "mov eax, 0"], [33, "leave"], [34, "retn"]], "data_dep": [[8, 3], [9, 8], [11, 8], [13, 10], [13, 12], [14, 13], [15, 14], [16, 4], [16, 14], [17, 16], [19, 8], [20, 19], [22, 20], [24, 8], [25, 24], [28, 8], [29, 28], [34, 22], [34, 30], [34, 26], [34, 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/8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb_8ae2ab0464f0ac96a7fdeccbe9109d753af18ecfd065336c7a6978a11512a7eb.jsonl.gz", "strip_func_name": "sub_43612F", "query": "\n\n\n__int64 __fastcall sub_43612F(unsigned __int16 a1)\n{\n__int64 result; // rax\n__int64 v2; // [rsp+Ch] [rbp-24h] BYREF\nint v3; // [rsp+14h] [rbp-1Ch]\n__int64 v4; // [rsp+18h] [rbp-18h]\n__int64 v5; // [rsp+20h] [rbp-10h]\n__int64 v6; // [rsp+28h] [rbp-8h]\n\nv3 = 0;\nv4 = 0LL;\nv5 = 0LL;\nv6 = 0LL;\nv2 = a1;\nif ( a1 > 6u && a1 <= 9u )\n{\nsub_436114((__int64 *)((char *)&v2 + 4));\nresult = *(__int64 *)((char *)&v2 + 8 * (int)v2 - 52);\n}\nelse if ( (_DWORD)v2 == 127 )\n{\nresult = sub_44AF9D();\n}\nelse if ( (_DWORD)v2 == 0xFFFF )\n{\nresult = sub_44A503();\n}\nelse\n{\nresult = 0LL;\n}\nreturn result;\n}\n\n\n\nQ:[a1,v2,sub_43612F,sub_436114,sub_44AF9D,sub_44A503,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'x', 'v2': 'xa', 'sub_43612F': 'mos_adval', 'sub_436114': 'mos_mouse', 'sub_44AF9D': 'kbd_get0', 'sub_44A503': 'kbd_buffered'}"} |
|
dw_alog_number | 77fbd19b2c95fe20b7a0e6f71748eff8a68ed43bddbc5849712b4d5c2727b722 | samboy | MaraDNS | NA | void dw_alog_number(char *s1, int number, char *s2) {
#ifndef MINGW
printf("%s%d %s\n",s1,number,s2);
#else /* MINGW */
dw_win_time();
fprintf(LOG,"%s%d %s\n",s1,number,s2);
#endif /* MINGW */
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_411CF3", "function_addr": 4267251, "binary_name": "77fbd19b2c95fe20b7a0e6f71748eff8a68ed43bddbc5849712b4d5c2727b722.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rcx, [rbp+var_18]"], [7, "mov edx, [rbp+var_C]"], [8, "mov rax, [rbp+var_8]"], [9, "mov rsi, rax"], [10, "mov edi, offset aSDS_0"], [11, "mov eax, 0"], [12, "call _printf"], [13, "nop"], [14, "leave"], [15, "retn"]], "data_dep": [[6, 5], [7, 4], [8, 3], [9, 8], [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/77fbd19b2c95fe20b7a0e6f71748eff8a68ed43bddbc5849712b4d5c2727b722_77fbd19b2c95fe20b7a0e6f71748eff8a68ed43bddbc5849712b4d5c2727b722.jsonl.gz", "strip_func_name": "sub_411CF3", "query": "\n\n\nint __fastcall sub_411CF3(const char *a1, unsigned int a2, const char *a3)\n{\nreturn printf(\"%s%d %s\\n\", a1, a2, a3);\n}\n\n\n\nQ:[a3,a1,a2,sub_411CF3,]\nAssistant: ", "hints": "[]", "response": "{'a3': 's2', 'a1': 's1', 'a2': 'number', 'sub_411CF3': 'dw_alog_number'}"} |
|
send_tcp | bc8ec95c356a5151805d30e35e51438368429864cb1b72f62d356def984d42ad | sonyxperiadev | kernel | NA | static int send_tcp(int fd, char *data)
{
int ret, done = 0, count = 0;
while (done < cfg_payload_len) {
ret = send(fd, data + done, cfg_payload_len - done,
cfg_zerocopy ? MSG_ZEROCOPY : 0);
if (ret == -1)
error(1, errno, "write");
done += ret;
count++;
}
return count;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401AEB", "function_addr": 4201195, "binary_name": "bc8ec95c356a5151805d30e35e51438368429864cb1b72f62d356def984d42ad.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+fd], edi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_4], 0"], [6, "mov [rbp+var_8], 0"], [7, "jmp short loc_401B89"], [8, "movzx eax, cs:byte_40618D"], [9, "test al, al"], [10, "jz short loc_401B1C"], [11, "mov ecx, 4000000h"], [12, "jmp short loc_401B21"], [13, "mov ecx, 0"], [14, "mov eax, cs:dword_406100"], [15, "sub eax, [rbp+var_4]"], [16, "movsxd rdx, eax"], [17, "mov eax, [rbp+var_4]"], [18, "movsxd rsi, eax"], [19, "mov rax, [rbp+var_30]"], [20, "add rsi, rax"], [21, "mov eax, [rbp+fd]"], [22, "mov edi, eax"], [23, "call _send"], [24, "mov [rbp+var_C], eax"], [25, "cmp [rbp+var_C], 0FFFFFFFFh"], [26, "jnz short loc_401B7F"], [27, "call ___errno_location"], [28, "mov eax, [rax]"], [29, "mov [rbp+status], 1"], [30, "mov [rbp+errnum], eax"], [31, "mov [rbp+format], offset aWrite"], [32, "mov rdx, [rbp+format]"], [33, "mov ecx, [rbp+errnum]"], [34, "mov eax, [rbp+status]"], [35, "mov esi, ecx"], [36, "mov edi, eax"], [37, "mov eax, 0"], [38, "call _error"], [39, "nop"], [40, "mov eax, [rbp+var_C]"], [41, "add [rbp+var_4], eax"], [42, "add [rbp+var_8], 1"], [43, "mov eax, cs:dword_406100"], [44, "cmp [rbp+var_4], eax"], [45, "jl loc_401B0A"], [46, "mov eax, [rbp+var_8]"], [47, "leave"], [48, "retn"]], "data_dep": [[9, 8], [10, 9], [15, 5], [15, 14], [15, 41], [16, 15], [17, 5], [17, 41], [18, 17], [19, 4], [20, 19], [20, 18], [21, 3], [22, 21], [24, 23], [25, 24], [26, 25], [28, 27], [30, 28], [32, 31], [33, 30], [34, 29], [35, 33], [36, 34], [40, 24], [41, 40], [41, 5], [41, 41], [42, 6], [42, 42], [44, 5], [44, 41], [44, 43], [45, 44], [46, 42], [46, 6], [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/bc8ec95c356a5151805d30e35e51438368429864cb1b72f62d356def984d42ad_bc8ec95c356a5151805d30e35e51438368429864cb1b72f62d356def984d42ad.jsonl.gz", "strip_func_name": "sub_401AEB", "query": "\n\n\n__int64 __fastcall sub_401AEB(int a1, __int64 a2)\n{\nint v2; // ecx\nint errnum; // [rsp+1Ch] [rbp-14h]\nint v5; // [rsp+24h] [rbp-Ch]\nunsigned int v6; // [rsp+28h] [rbp-8h]\nint v7; // [rsp+2Ch] [rbp-4h]\n\nv7 = 0;\nv6 = 0;\nwhile ( v7 < dword_406100 )\n{\nif ( byte_40618D )\nv2 = 0x4000000;\nelse\nv2 = 0;\nv5 = send(a1, (const void *)(a2 + v7), dword_406100 - v7, v2);\nif ( v5 == -1 )\n{\nerrnum = *__errno_location();\nerror(1, errnum, \"write\");\n}\nv7 += v5;\n++v6;\n}\nreturn v6;\n}\n\n\n\nQ:[a1,a2,v6,v7,sub_401AEB,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fd', 'a2': 'data', 'v6': 'count', 'v7': 'done', 'sub_401AEB': 'send_tcp'}"} |
|
rfcomm_disconnect_ind | 9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3 | sj15712795029 | bluetooth_stack | NA | static err_t rfcomm_disconnect_ind(void *arg, l2cap_pcb_t *pcb, err_t err)
{
BT_RFCOMM_TRACE_DEBUG("bt_disconnect_ind\n");
if(pcb->psm == RFCOMM_PSM)
{
rfcomm_lp_disconnected(pcb);
}
l2cap_close(pcb);
return BT_ERR_OK;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41D3C3", "function_addr": 4314051, "binary_name": "9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.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 eax, edx"], [6, "mov [rbp+var_14], al"], [7, "mov rax, [rbp+var_10]"], [8, "movzx eax, word ptr [rax+1Ch]"], [9, "cmp ax, 3"], [10, "jnz short loc_41D3F2"], [11, "mov rax, [rbp+var_10]"], [12, "mov rdi, rax"], [13, "call sub_41D6A0"], [14, "mov rax, [rbp+var_10]"], [15, "mov rdi, rax"], [16, "call sub_410B9A"], [17, "mov eax, 0"], [18, "leave"], [19, "retn"]], "data_dep": [[6, 5], [7, 4], [8, 7], [9, 8], [10, 9], [11, 4], [12, 11], [14, 4], [15, 14], [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/9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3_9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.jsonl.gz", "strip_func_name": "sub_41D3C3", "query": "\n\n\n__int64 __fastcall sub_41D3C3(__int64 a1, __int64 a2)\n{\nif ( *(_WORD *)(a2 + 28) == 3 )\nsub_41D6A0(a2);\nsub_410B9A(a2);\nreturn 0LL;\n}\n\n\n\nQ:[a2,a1,sub_41D3C3,sub_41D6A0,sub_410B9A,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'pcb', 'a1': 'arg', 'sub_41D3C3': 'rfcomm_disconnect_ind', 'sub_41D6A0': 'rfcomm_lp_disconnected', 'sub_410B9A': 'l2cap_close'}"} |
|
print_header | deeb0e8feee98a2cccfc162e9490a1324be994d0f76f758884ae45aa64485c1d | OLIMEX | DIY-LAPTOP | NA | void print_header(void)
{
if (show_pkg)
outp += sprintf(outp, "pk");
if (show_pkg)
outp += sprintf(outp, " ");
if (show_core)
outp += sprintf(outp, "cor");
if (show_cpu)
outp += sprintf(outp, " CPU");
if (show_pkg || show_core || show_cpu)
outp += sprintf(outp, " ");
if (do_nhm_cstates)
outp += sprintf(outp, " %%c0");
if (has_aperf)
outp += sprintf(outp, " GHz");
outp += sprintf(outp, " TSC");
if (do_smi)
outp += sprintf(outp, " SMI");
if (extra_delta_offset32)
outp += sprintf(outp, " count 0x%03X", extra_delta_offset32);
if (extra_delta_offset64)
outp += sprintf(outp, " COUNT 0x%03X", extra_delta_offset64);
if (extra_msr_offset32)
outp += sprintf(outp, " MSR 0x%03X", extra_msr_offset32);
if (extra_msr_offset64)
outp += sprintf(outp, " MSR 0x%03X", extra_msr_offset64);
if (do_nhm_cstates)
outp += sprintf(outp, " %%c1");
if (do_nhm_cstates)
outp += sprintf(outp, " %%c3");
if (do_nhm_cstates)
outp += sprintf(outp, " %%c6");
if (do_snb_cstates)
outp += sprintf(outp, " %%c7");
if (do_dts)
outp += sprintf(outp, " CTMP");
if (do_ptm)
outp += sprintf(outp, " PTMP");
if (do_snb_cstates)
outp += sprintf(outp, " %%pc2");
if (do_nhm_cstates)
outp += sprintf(outp, " %%pc3");
if (do_nhm_cstates)
outp += sprintf(outp, " %%pc6");
if (do_snb_cstates)
outp += sprintf(outp, " %%pc7");
if (do_c8_c9_c10) {
outp += sprintf(outp, " %%pc8");
outp += sprintf(outp, " %%pc9");
outp += sprintf(outp, " %%pc10");
}
if (do_rapl & RAPL_PKG)
outp += sprintf(outp, " Pkg_W");
if (do_rapl & RAPL_CORES)
outp += sprintf(outp, " Cor_W");
if (do_rapl & RAPL_GFX)
outp += sprintf(outp, " GFX_W");
if (do_rapl & RAPL_DRAM)
outp += sprintf(outp, " RAM_W");
if (do_rapl & RAPL_PKG_PERF_STATUS)
outp += sprintf(outp, " PKG_%%");
if (do_rapl & RAPL_DRAM_PERF_STATUS)
outp += sprintf(outp, " RAM_%%");
outp += sprintf(outp, "\n");
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4016F7", "function_addr": 4200183, "binary_name": "deeb0e8feee98a2cccfc162e9490a1324be994d0f76f758884ae45aa64485c1d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, cs:dword_40D1E0"], [3, "test eax, eax"], [4, "jz short loc_401731"], [5, "mov rax, cs:s"], [6, "mov esi, offset aPk"], [7, "mov rdi, rax"], [8, "mov eax, 0"], [9, "call _sprintf"], [10, "mov rdx, cs:s"], [11, "cdqe"], [12, "add rax, rdx"], [13, "mov cs:s, rax"], [14, "mov eax, cs:dword_40D1E0"], [15, "test eax, eax"], [16, "jz short loc_401767"], [17, "mov rax, cs:s"], [18, "mov esi, offset asc_409043"], [19, "mov rdi, rax"], [20, "mov eax, 0"], [21, "call _sprintf"], [22, "mov rdx, cs:s"], [23, "cdqe"], [24, "add rax, rdx"], [25, "mov cs:s, rax"], [26, "mov eax, cs:dword_40D1E4"], [27, "test eax, eax"], [28, "jz short loc_40179D"], [29, "mov rax, cs:s"], [30, "mov esi, offset aCor"], [31, "mov rdi, rax"], [32, "mov eax, 0"], [33, "call _sprintf"], [34, "mov rdx, cs:s"], [35, "cdqe"], [36, "add rax, rdx"], [37, "mov cs:s, rax"], [38, "mov eax, cs:dword_40D1E8"], [39, "test eax, eax"], [40, "jz short loc_4017D3"], [41, "mov rax, cs:s"], [42, "mov esi, offset aCpu"], [43, "mov rdi, rax"], [44, "mov eax, 0"], [45, "call _sprintf"], [46, "mov rdx, cs:s"], [47, "cdqe"], [48, "add rax, rdx"], [49, "mov cs:s, rax"], [50, "mov eax, cs:dword_40D1E0"], [51, "test eax, eax"], [52, "jnz short loc_4017F1"], [53, "mov eax, cs:dword_40D1E4"], [54, "test eax, eax"], [55, "jnz short loc_4017F1"], [56, "mov eax, cs:dword_40D1E8"], [57, "test eax, eax"], [58, "jz short loc_40181D"], [59, "mov rax, cs:s"], [60, "mov esi, offset asc_409043"], [61, "mov rdi, rax"], [62, "mov eax, 0"], [63, "call _sprintf"], [64, "mov rdx, cs:s"], [65, "cdqe"], [66, "add rax, rdx"], [67, "mov cs:s, rax"], [68, "mov eax, cs:dword_40D198"], [69, "test eax, eax"], [70, "jz short loc_401853"], [71, "mov rax, cs:s"], [72, "mov esi, offset aC0"], [73, "mov rdi, rax"], [74, "mov eax, 0"], [75, "call _sprintf"], [76, "mov rdx, cs:s"], [77, "cdqe"], [78, "add rax, rdx"], [79, "mov cs:s, rax"], [80, "mov eax, cs:dword_40D1A4"], [81, "test eax, eax"], [82, "jz short loc_401889"], [83, "mov rax, cs:s"], [84, "mov esi, offset aGhz"], [85, "mov rdi, rax"], [86, "mov eax, 0"], [87, "call _sprintf"], [88, "mov rdx, cs:s"], [89, "cdqe"], [90, "add rax, rdx"], [91, "mov cs:s, rax"], [92, "mov rax, cs:s"], [93, "mov esi, offset aTsc"], [94, "mov rdi, rax"], [95, "mov eax, 0"], [96, "call _sprintf"], [97, "mov rdx, cs:s"], [98, "cdqe"], [99, "add rax, rdx"], [100, "mov cs:s, rax"], [101, "mov eax, cs:dword_40D1D0"], [102, "test eax, eax"], [103, "jz short loc_4018EB"], [104, "mov rax, cs:s"], [105, "mov esi, offset aSmi"], [106, "mov rdi, rax"], [107, "mov eax, 0"], [108, "call _sprintf"], [109, "mov rdx, cs:s"], [110, "cdqe"], [111, "add rax, rdx"], [112, "mov cs:s, rax"], [113, "mov eax, cs:dword_40D1C8"], [114, "test eax, eax"], [115, "jz short loc_401927"], [116, "mov edx, cs:dword_40D1C8"], [117, "mov rax, cs:s"], [118, "mov esi, offset aCount0x03x"], [119, "mov rdi, rax"], [120, "mov eax, 0"], [121, "call _sprintf"], [122, "mov rdx, cs:s"], [123, "cdqe"], [124, "add rax, rdx"], [125, "mov cs:s, rax"], [126, "mov eax, cs:dword_40D1CC"], [127, "test eax, eax"], [128, "jz short loc_401963"], [129, "mov edx, cs:dword_40D1CC"], [130, "mov rax, cs:s"], [131, "mov esi, offset aCount0x03x_0"], [132, "mov rdi, rax"], [133, "mov eax, 0"], [134, "call _sprintf"], [135, "mov rdx, cs:s"], [136, "cdqe"], [137, "add rax, rdx"], [138, "mov cs:s, rax"], [139, "mov eax, cs:dword_40D1C0"], [140, "test eax, eax"], [141, "jz short loc_40199F"], [142, "mov edx, cs:dword_40D1C0"], [143, "mov rax, cs:s"], [144, "mov esi, offset aMsr0x03x"], [145, "mov rdi, rax"], [146, "mov eax, 0"], [147, "call _sprintf"], [148, "mov rdx, cs:s"], [149, "cdqe"], [150, "add rax, rdx"], [151, "mov cs:s, rax"], [152, "mov eax, cs:dword_40D1C4"], [153, "test eax, eax"], [154, "jz short loc_4019DB"], [155, "mov edx, cs:dword_40D1C4"], [156, "mov rax, cs:s"], [157, "mov esi, offset aMsr0x03x_0"], [158, "mov rdi, rax"], [159, "mov eax, 0"], [160, "call _sprintf"], [161, "mov rdx, cs:s"], [162, "cdqe"], [163, "add rax, rdx"], [164, "mov cs:s, rax"], [165, "mov eax, cs:dword_40D198"], [166, "test eax, eax"], [167, "jz short loc_401A11"], [168, "mov rax, cs:s"], [169, "mov esi, offset aC1"], [170, "mov rdi, rax"], [171, "mov eax, 0"], [172, "call _sprintf"], [173, "mov rdx, cs:s"], [174, "cdqe"], [175, "add rax, rdx"], [176, "mov cs:s, rax"], [177, "mov eax, cs:dword_40D198"], [178, "test eax, eax"], [179, "jz short loc_401A47"], [180, "mov rax, cs:s"], [181, "mov esi, offset aC3"], [182, "mov rdi, rax"], [183, "mov eax, 0"], [184, "call _sprintf"], [185, "mov rdx, cs:s"], [186, "cdqe"], [187, "add rax, rdx"], [188, "mov cs:s, rax"], [189, "mov eax, cs:dword_40D198"], [190, "test eax, eax"], [191, "jz short loc_401A7D"], [192, "mov rax, cs:s"], [193, "mov esi, offset aC6"], [194, "mov rdi, rax"], [195, "mov eax, 0"], [196, "call _sprintf"], [197, "mov rdx, cs:s"], [198, "cdqe"], [199, "add rax, rdx"], [200, "mov cs:s, rax"], [201, "mov eax, cs:dword_40D19C"], [202, "test eax, eax"], [203, "jz short loc_401AB3"], [204, "mov rax, cs:s"], [205, "mov esi, offset aC7"], [206, "mov rdi, rax"], [207, "mov eax, 0"], [208, "call _sprintf"], [209, "mov rdx, cs:s"], [210, "cdqe"], [211, "add rax, rdx"], [212, "mov cs:s, rax"], [213, "mov eax, cs:dword_40D20C"], [214, "test eax, eax"], [215, "jz short loc_401AE9"], [216, "mov rax, cs:s"], [217, "mov esi, offset aCtmp"], [218, "mov rdi, rax"], [219, "mov eax, 0"], [220, "call _sprintf"], [221, "mov rdx, cs:s"], [222, "cdqe"], [223, "add rax, rdx"], [224, "mov cs:s, rax"], [225, "mov eax, cs:dword_40D210"], [226, "test eax, eax"], [227, "jz short loc_401B1F"], [228, "mov rax, cs:s"], [229, "mov esi, offset aPtmp"], [230, "mov rdi, rax"], [231, "mov eax, 0"], [232, "call _sprintf"], [233, "mov rdx, cs:s"], [234, "cdqe"], [235, "add rax, rdx"], [236, "mov cs:s, rax"], [237, "mov eax, cs:dword_40D19C"], [238, "test eax, eax"], [239, "jz short loc_401B55"], [240, "mov rax, cs:s"], [241, "mov esi, offset aPc2"], [242, "mov rdi, rax"], [243, "mov eax, 0"], [244, "call _sprintf"], [245, "mov rdx, cs:s"], [246, "cdqe"], [247, "add rax, rdx"], [248, "mov cs:s, rax"], [249, "mov eax, cs:dword_40D198"], [250, "test eax, eax"], [251, "jz short loc_401B8B"], [252, "mov rax, cs:s"], [253, "mov esi, offset aPc3"], [254, "mov rdi, rax"], [255, "mov eax, 0"], [256, "call _sprintf"], [257, "mov rdx, cs:s"], [258, "cdqe"], [259, "add rax, rdx"], [260, "mov cs:s, rax"], [261, "mov eax, cs:dword_40D198"], [262, "test eax, eax"], [263, "jz short loc_401BC1"], [264, "mov rax, cs:s"], [265, "mov esi, offset aPc6"], [266, "mov rdi, rax"], [267, "mov eax, 0"], [268, "call _sprintf"], [269, "mov rdx, cs:s"], [270, "cdqe"], [271, "add rax, rdx"], [272, "mov cs:s, rax"], [273, "mov eax, cs:dword_40D19C"], [274, "test eax, eax"], [275, "jz short loc_401BF7"], [276, "mov rax, cs:s"], [277, "mov esi, offset aPc7"], [278, "mov rdi, rax"], [279, "mov eax, 0"], [280, "call _sprintf"], [281, "mov rdx, cs:s"], [282, "cdqe"], [283, "add rax, rdx"], [284, "mov cs:s, rax"], [285, "mov eax, cs:dword_40D1A0"], [286, "test eax, eax"], [287, "jz loc_401C89"], [288, "mov rax, cs:s"], [289, "mov esi, offset aPc8"], [290, "mov rdi, rax"], [291, "mov eax, 0"], [292, "call _sprintf"], [293, "mov rdx, cs:s"], [294, "cdqe"], [295, "add rax, rdx"], [296, "mov cs:s, rax"], [297, "mov rax, cs:s"], [298, "mov esi, offset aPc9"], [299, "mov rdi, rax"], [300, "mov eax, 0"], [301, "call _sprintf"], [302, "mov rdx, cs:s"], [303, "cdqe"], [304, "add rax, rdx"], [305, "mov cs:s, rax"], [306, "mov rax, cs:s"], [307, "mov esi, offset aPc10"], [308, "mov rdi, rax"], [309, "mov eax, 0"], [310, "call _sprintf"], [311, "mov rdx, cs:s"], [312, "cdqe"], [313, "add rax, rdx"], [314, "mov cs:s, rax"], [315, "mov eax, cs:dword_40D208"], [316, "and eax, 1"], [317, "test eax, eax"], [318, "jz short loc_401CC2"], [319, "mov rax, cs:s"], [320, "mov esi, offset aPkgW"], [321, "mov rdi, rax"], [322, "mov eax, 0"], [323, "call _sprintf"], [324, "mov rdx, cs:s"], [325, "cdqe"], [326, "add rax, rdx"], [327, "mov cs:s, rax"], [328, "mov eax, cs:dword_40D208"], [329, "and eax, 2"], [330, "test eax, eax"], [331, "jz short loc_401CFB"], [332, "mov rax, cs:s"], [333, "mov esi, offset aCorW"], [334, "mov rdi, rax"], [335, "mov eax, 0"], [336, "call _sprintf"], [337, "mov rdx, cs:s"], [338, "cdqe"], [339, "add rax, rdx"], [340, "mov cs:s, rax"], [341, "mov eax, cs:dword_40D208"], [342, "and eax, 4"], [343, "test eax, eax"], [344, "jz short loc_401D34"], [345, "mov rax, cs:s"], [346, "mov esi, offset aGfxW"], [347, "mov rdi, rax"], [348, "mov eax, 0"], [349, "call _sprintf"], [350, "mov rdx, cs:s"], [351, "cdqe"], [352, "add rax, rdx"], [353, "mov cs:s, rax"], [354, "mov eax, cs:dword_40D208"], [355, "and eax, 8"], [356, "test eax, eax"], [357, "jz short loc_401D6D"], [358, "mov rax, cs:s"], [359, "mov esi, offset aRamW"], [360, "mov rdi, rax"], [361, "mov eax, 0"], [362, "call _sprintf"], [363, "mov rdx, cs:s"], [364, "cdqe"], [365, "add rax, rdx"], [366, "mov cs:s, rax"], [367, "mov eax, cs:dword_40D208"], [368, "and eax, 10h"], [369, "test eax, eax"], [370, "jz short loc_401DA6"], [371, "mov rax, cs:s"], [372, "mov esi, offset aPkg"], [373, "mov rdi, rax"], [374, "mov eax, 0"], [375, "call _sprintf"], [376, "mov rdx, cs:s"], [377, "cdqe"], [378, "add rax, rdx"], [379, "mov cs:s, rax"], [380, "mov eax, cs:dword_40D208"], [381, "and eax, 20h"], [382, "test eax, eax"], [383, "jz short loc_401DDF"], [384, "mov rax, cs:s"], [385, "mov esi, offset aRam"], [386, "mov rdi, rax"], [387, "mov eax, 0"], [388, "call _sprintf"], [389, "mov rdx, cs:s"], [390, "cdqe"], [391, "add rax, rdx"], [392, "mov cs:s, rax"], [393, "mov rax, cs:s"], [394, "mov esi, offset asc_409146"], [395, "mov rdi, rax"], [396, "mov eax, 0"], [397, "call _sprintf"], [398, "mov rdx, cs:s"], [399, "cdqe"], [400, "add rax, rdx"], [401, "mov cs:s, rax"], [402, "nop"], [403, "pop rbp"], [404, "retn"]], "data_dep": [[3, 2], [4, 3], [7, 5], [12, 10], [12, 9], [13, 12], [15, 14], [16, 15], [17, 13], [19, 17], [22, 13], [24, 22], [24, 21], [25, 24], [27, 26], [28, 27], [29, 13], [29, 25], [31, 29], [34, 25], [34, 13], [36, 34], [36, 33], [37, 36], [39, 38], [40, 39], [41, 37], [41, 13], [41, 25], [43, 41], [46, 13], [46, 25], [46, 37], [48, 45], [48, 46], [49, 48], [51, 50], [52, 51], [54, 53], [55, 54], [57, 56], [58, 57], [59, 13], [59, 49], [59, 25], [59, 37], [61, 59], [64, 25], [64, 37], [64, 13], [64, 49], [66, 64], [66, 63], [67, 66], [69, 68], [70, 69], [71, 37], [71, 13], [71, 49], [71, 25], [71, 67], [73, 71], [76, 49], [76, 67], [76, 25], [76, 37], [76, 13], [78, 76], [78, 75], [79, 78], [81, 80], [82, 81], [83, 25], [83, 67], [83, 37], [83, 13], [83, 79], [83, 49], [85, 83], [88, 67], [88, 37], [88, 13], [88, 79], [88, 49], [88, 25], [90, 88], [90, 87], [91, 90], [92, 79], [92, 49], [92, 25], [92, 91], [92, 67], [92, 37], [92, 13], [94, 92], [97, 49], [97, 67], [97, 25], [97, 79], [97, 37], [97, 13], [97, 91], [99, 97], [99, 96], [100, 99], [102, 101], [103, 102], [104, 100], [106, 104], [109, 100], [111, 109], [111, 108], [112, 111], [114, 113], [115, 114], [117, 100], [117, 112], [119, 117], [122, 100], [122, 112], [124, 122], [124, 121], [125, 124], [127, 126], [128, 127], [130, 100], [130, 112], [130, 125], [132, 130], [135, 112], [135, 125], [135, 100], [137, 135], [137, 134], [138, 137], [140, 139], [141, 140], [143, 112], [143, 125], [143, 138], [143, 100], [145, 143], [148, 112], [148, 125], [148, 138], [148, 100], [150, 148], [150, 147], [151, 150], [153, 152], [154, 153], [156, 112], [156, 125], [156, 138], [156, 100], [156, 151], [158, 156], [161, 125], [161, 138], [161, 100], [161, 151], [161, 112], [163, 161], [163, 160], [164, 163], [166, 165], [167, 166], [168, 100], [168, 151], [168, 164], [168, 112], [168, 125], [168, 138], [170, 168], [173, 151], [173, 164], [173, 112], [173, 125], [173, 138], [173, 100], [175, 173], [175, 172], [176, 175], [178, 177], [179, 178], [180, 176], [180, 125], [180, 138], [180, 100], [180, 151], [180, 164], [180, 112], [182, 180], [185, 125], [185, 138], [185, 100], [185, 151], [185, 164], [185, 112], [185, 176], [187, 184], [187, 185], [188, 187], [190, 189], [191, 190], [192, 188], [192, 151], [192, 164], [192, 112], [192, 176], [192, 125], [192, 138], [192, 100], [194, 192], [197, 112], [197, 125], [197, 176], [197, 138], [197, 100], [197, 188], [197, 151], [197, 164], [199, 196], [199, 197], [200, 199], [202, 201], [203, 202], [204, 176], [204, 125], [204, 138], [204, 100], [204, 188], [204, 151], [204, 164], [204, 112], [204, 200], [206, 204], [209, 138], [209, 100], [209, 188], [209, 151], [209, 164], [209, 112], [209, 200], [209, 176], [209, 125], [211, 209], [211, 208], [212, 211], [214, 213], [215, 214], [216, 112], [216, 200], [216, 176], [216, 125], [216, 138], [216, 100], [216, 212], [216, 188], [216, 151], [216, 164], [218, 216], [221, 112], [221, 200], [221, 176], [221, 125], [221, 138], [221, 100], [221, 212], [221, 188], [221, 151], [221, 164], [223, 221], [223, 220], [224, 223], [226, 225], [227, 226], [228, 151], [228, 100], [228, 212], [228, 188], [228, 164], [228, 112], [228, 224], [228, 125], [228, 200], [228, 176], [228, 138], [230, 228], [233, 100], [233, 212], [233, 188], [233, 164], [233, 112], [233, 224], [233, 125], [233, 200], [233, 176], [233, 138], [233, 151], [235, 233], [235, 232], [236, 235], [238, 237], [239, 238], [240, 224], [240, 125], [240, 200], [240, 176], [240, 138], [240, 151], [240, 236], [240, 100], [240, 212], [240, 188], [240, 164], [240, 112], [242, 240], [245, 176], [245, 138], [245, 151], [245, 236], [245, 100], [245, 212], [245, 188], [245, 164], [245, 112], [245, 224], [245, 125], [245, 200], [247, 245], [247, 244], [248, 247], [250, 249], [251, 250], [252, 188], [252, 224], [252, 164], [252, 112], [252, 125], [252, 200], [252, 236], [252, 176], [252, 138], [252, 151], [252, 100], [252, 212], [252, 248], [254, 252], [257, 164], [257, 112], [257, 125], [257, 200], [257, 236], [257, 176], [257, 138], [257, 151], [257, 100], [257, 212], [257, 248], [257, 188], [257, 224], [259, 256], [259, 257], [260, 259], [262, 261], [263, 262], [264, 176], [264, 212], [264, 138], [264, 151], [264, 100], [264, 248], [264, 188], [264, 224], [264, 164], [264, 112], [264, 260], [264, 125], [264, 200], [264, 236], [266, 264], [269, 138], [269, 151], [269, 236], [269, 100], [269, 212], [269, 188], [269, 164], [269, 248], [269, 112], [269, 224], [269, 260], [269, 125], [269, 200], [269, 176], [271, 269], [271, 268], [272, 271], [274, 273], [275, 274], [276, 164], [276, 112], [276, 224], [276, 260], [276, 125], [276, 200], [276, 236], [276, 176], [276, 138], [276, 151], [276, 272], [276, 100], [276, 212], [276, 248], [276, 188], [278, 276], [281, 112], [281, 224], [281, 260], [281, 125], [281, 200], [281, 236], [281, 176], [281, 138], [281, 151], [281, 272], [281, 100], [281, 212], [281, 248], [281, 188], [281, 164], [283, 281], [283, 280], [284, 283], [286, 285], [287, 286], [288, 125], [288, 138], [288, 236], [288, 272], [288, 100], [288, 212], [288, 188], [288, 151], [288, 164], [288, 248], [288, 284], [288, 112], [288, 224], [288, 200], [288, 176], [288, 260], [290, 288], [293, 212], [293, 248], [293, 188], [293, 224], [293, 164], [293, 284], [293, 112], [293, 260], [293, 125], [293, 200], [293, 236], [293, 176], [293, 138], [293, 151], [293, 272], [293, 100], [295, 293], [295, 292], [296, 295], [297, 296], [299, 297], [302, 296], [304, 302], [304, 301], [305, 304], [306, 305], [308, 306], [311, 305], [313, 311], [313, 310], [314, 313], [316, 315], [317, 316], [318, 317], [319, 112], [319, 260], [319, 125], [319, 200], [319, 236], [319, 176], [319, 212], [319, 314], [319, 138], [319, 151], [319, 272], [319, 100], [319, 248], [319, 188], [319, 224], [319, 164], [319, 284], [321, 319], [324, 200], [324, 236], [324, 176], [324, 314], [324, 138], [324, 151], [324, 272], [324, 100], [324, 212], [324, 248], [324, 188], [324, 224], [324, 164], [324, 284], [324, 112], [324, 260], [324, 125], [326, 323], [326, 324], [327, 326], [329, 328], [330, 329], [331, 330], [332, 176], [332, 212], [332, 314], [332, 188], [332, 138], [332, 151], [332, 272], [332, 100], [332, 248], [332, 224], [332, 327], [332, 164], [332, 200], [332, 284], [332, 112], [332, 260], [332, 125], [332, 236], [334, 332], [337, 314], [337, 138], [337, 151], [337, 272], [337, 100], [337, 248], [337, 188], [337, 224], [337, 327], [337, 164], [337, 200], [337, 284], [337, 112], [337, 260], [337, 125], [337, 236], [337, 176], [337, 212], [339, 336], [339, 337], [340, 339], [342, 341], [343, 342], [344, 343], [345, 151], [345, 272], [345, 100], [345, 248], [345, 188], [345, 224], [345, 327], [345, 340], [345, 164], [345, 284], [345, 112], [345, 260], [345, 125], [345, 200], [345, 236], [345, 176], [345, 212], [345, 314], [345, 138], [347, 345], [350, 100], [350, 248], [350, 188], [350, 224], [350, 327], [350, 340], [350, 164], [350, 284], [350, 112], [350, 260], [350, 125], [350, 200], [350, 236], [350, 176], [350, 212], [350, 314], [350, 138], [350, 151], [350, 272], [352, 349], [352, 350], [353, 352], [355, 354], [356, 355], [357, 356], [358, 224], [358, 327], [358, 340], [358, 164], [358, 200], [358, 284], [358, 112], [358, 260], [358, 125], [358, 353], [358, 236], [358, 176], [358, 212], [358, 314], [358, 188], [358, 138], [358, 151], [358, 272], [358, 100], [358, 248], [360, 358], [363, 340], [363, 164], [363, 200], [363, 284], [363, 112], [363, 260], [363, 125], [363, 353], [363, 236], [363, 176], [363, 212], [363, 314], [363, 188], [363, 138], [363, 151], [363, 272], [363, 100], [363, 248], [363, 224], [363, 327], [365, 362], [365, 363], [366, 365], [368, 367], [369, 368], [370, 369], [371, 284], [371, 112], [371, 260], [371, 125], [371, 353], [371, 200], [371, 236], [371, 366], [371, 176], [371, 212], [371, 314], [371, 138], [371, 151], [371, 272], [371, 100], [371, 248], [371, 188], [371, 224], [371, 327], [371, 340], [371, 164], [373, 371], [376, 112], [376, 260], [376, 125], [376, 353], [376, 200], [376, 236], [376, 366], [376, 176], [376, 212], [376, 314], [376, 138], [376, 151], [376, 272], [376, 100], [376, 248], [376, 188], [376, 224], [376, 327], [376, 340], [376, 164], [376, 284], [378, 375], [378, 376], [379, 378], [381, 380], [382, 381], [383, 382], [384, 260], [384, 125], [384, 353], [384, 236], [384, 366], [384, 176], [384, 212], [384, 314], [384, 188], [384, 138], [384, 151], [384, 272], [384, 379], [384, 100], [384, 248], [384, 224], [384, 327], [384, 340], [384, 164], [384, 200], [384, 284], [384, 112], [386, 384], [389, 366], [389, 176], [389, 212], [389, 314], [389, 188], [389, 138], [389, 151], [389, 272], [389, 379], [389, 100], [389, 248], [389, 224], [389, 327], [389, 340], [389, 164], [389, 200], [389, 284], [389, 112], [389, 260], [389, 125], [389, 353], [389, 236], [391, 388], [391, 389], [392, 391], [393, 327], [393, 340], [393, 164], [393, 200], [393, 284], [393, 112], [393, 260], [393, 125], [393, 353], [393, 236], [393, 366], [393, 176], [393, 212], [393, 314], [393, 188], [393, 138], [393, 151], [393, 272], [393, 379], [393, 100], [393, 392], [393, 248], [393, 224], [395, 393], [398, 176], [398, 260], [398, 125], [398, 138], [398, 353], [398, 236], [398, 366], [398, 100], [398, 212], [398, 314], [398, 188], [398, 151], [398, 272], [398, 164], [398, 379], [398, 392], [398, 248], [398, 112], [398, 224], [398, 327], [398, 340], [398, 200], [398, 284], [400, 398], [400, 397], [401, 400], [403, 0], [404, 400]]}
| {"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/deeb0e8feee98a2cccfc162e9490a1324be994d0f76f758884ae45aa64485c1d_deeb0e8feee98a2cccfc162e9490a1324be994d0f76f758884ae45aa64485c1d.jsonl.gz", "strip_func_name": "sub_4016F7", "query": "\n\n\nchar *sub_4016F7()\n{\nchar *result; // rax\n\nif ( dword_40D1E0 )\ns += sprintf(s, \"pk\");\nif ( dword_40D1E0 )\ns += sprintf(s, \" \");\nif ( dword_40D1E4 )\ns += sprintf(s, \"cor\");\nif ( dword_40D1E8 )\ns += sprintf(s, \" CPU\");\nif ( dword_40D1E0 || dword_40D1E4 || dword_40D1E8 )\ns += sprintf(s, \" \");\nif ( dword_40D198 )\ns += sprintf(s, \" %%c0\");\nif ( dword_40D1A4 )\ns += sprintf(s, \" GHz\");\ns += sprintf(s, \" TSC\");\nif ( dword_40D1D0 )\ns += sprintf(s, \" SMI\");\nif ( dword_40D1C8 )\ns += sprintf(s, \" count 0x%03X\", (unsigned int)dword_40D1C8);\nif ( dword_40D1CC )\ns += sprintf(s, \" COUNT 0x%03X\", (unsigned int)dword_40D1CC);\nif ( dword_40D1C0 )\ns += sprintf(s, \" MSR 0x%03X\", (unsigned int)dword_40D1C0);\nif ( dword_40D1C4 )\ns += sprintf(s, \" MSR 0x%03X\", (unsigned int)dword_40D1C4);\nif ( dword_40D198 )\ns += sprintf(s, \" %%c1\");\nif ( dword_40D198 )\ns += sprintf(s, \" %%c3\");\nif ( dword_40D198 )\ns += sprintf(s, \" %%c6\");\nif ( dword_40D19C )\ns += sprintf(s, \" %%c7\");\nif ( dword_40D20C )\ns += sprintf(s, \" CTMP\");\nif ( dword_40D210 )\ns += sprintf(s, \" PTMP\");\nif ( dword_40D19C )\ns += sprintf(s, \" %%pc2\");\nif ( dword_40D198 )\ns += sprintf(s, \" %%pc3\");\nif ( dword_40D198 )\ns += sprintf(s, \" %%pc6\");\nif ( dword_40D19C )\ns += sprintf(s, \" %%pc7\");\nif ( dword_40D1A0 )\n{\ns += sprintf(s, \" %%pc8\");\ns += sprintf(s, \" %%pc9\");\ns += sprintf(s, \" %%pc10\");\n}\nif ( (dword_40D208 & 1) != 0 )\ns += sprintf(s, \" Pkg_W\");\nif ( (dword_40D208 & 2) != 0 )\ns += sprintf(s, \" Cor_W\");\nif ( (dword_40D208 & 4) != 0 )\ns += sprintf(s, \" GFX_W\");\nif ( (dword_40D208 & 8) != 0 )\ns += sprintf(s, \" RAM_W\");\nif ( (dword_40D208 & 0x10) != 0 )\ns += sprintf(s, \" PKG_%%\");\nif ( (dword_40D208 & 0x20) != 0 )\ns += sprintf(s, \" RAM_%%\");\nresult = &s[sprintf(s, \"\\n\")];\ns = result;\nreturn result;\n}\n\n\n\nQ:[sub_4016F7,]\nAssistant: ", "hints": "[]", "response": "{'sub_4016F7': 'print_header'}"} |
|
DoFatal | aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1 | dmsc | fastbasic | NA | static void DoFatal (void)
/* Fatal user error */
{
if (CurTok.Tok != TOK_STRCON) {
ErrorSkip ("String constant expected");
} else {
Fatal ("User error: %m%p", &CurTok.SVal);
SkipUntilSep ();
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40E8D8", "function_addr": 4253912, "binary_name": "aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, cs:dword_43AC80"], [3, "cmp eax, 7"], [4, "jz short loc_40E8F8"], [5, "mov edi, offset aStringConstant_2"], [6, "mov eax, 0"], [7, "call sub_403D9C"], [8, "jmp short loc_40E90C"], [9, "mov esi, offset unk_43AC90"], [10, "mov edi, offset aUserErrorMP"], [11, "mov eax, 0"], [12, "call sub_403E96"], [13, "pop rbp"], [14, "retn"]], "data_dep": [[3, 2], [4, 3], [13, 0], [14, 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/aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1_aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.jsonl.gz", "strip_func_name": "sub_40E8D8", "query": "\n\n\n__int64 __fastcall sub_40E8D8(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nif ( dword_43AC80 == 7 )\nsub_403E96((__int64)\"User error: %m%p\", (__int64)qword_43AC90, a3, a4, a5, a6);\nreturn sub_403D9C((__int64)\"String constant expected\", a2, a3, a4, a5, a6);\n}\n\n\n\nQ:[sub_40E8D8,sub_403E96,sub_403D9C,]\nAssistant: ", "hints": "[]", "response": "{'sub_40E8D8': 'DoFatal', 'sub_403E96': 'Fatal', 'sub_403D9C': 'ErrorSkip'}"} |
|
TkBTreeDestroy | b714b50430dc155167fb13379f4e00d79d775ccac764ece9ad5d0d56db016e15 | interkosmos | micropolis | NA | void
TkBTreeDestroy(tree)
TkTextBTree tree; /* Pointer to tree to delete. */
{
BTree *treePtr = (BTree *) tree;
DestroyNode(treePtr->rootPtr);
ckfree((char *) treePtr);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41C376", "function_addr": 4309878, "binary_name": "b714b50430dc155167fb13379f4e00d79d775ccac764ece9ad5d0d56db016e15.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+ptr], rax"], [6, "mov rax, [rbp+ptr]"], [7, "mov rax, [rax]"], [8, "mov rdi, rax"], [9, "call sub_41C3A8"], [10, "mov rax, [rbp+ptr]"], [11, "mov rdi, rax"], [12, "call _free"], [13, "nop"], [14, "leave"], [15, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [10, 5], [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/b714b50430dc155167fb13379f4e00d79d775ccac764ece9ad5d0d56db016e15_b714b50430dc155167fb13379f4e00d79d775ccac764ece9ad5d0d56db016e15.jsonl.gz", "strip_func_name": "sub_41C376", "query": "\n\n\nvoid __fastcall sub_41C376(_QWORD *a1)\n{\nsub_41C3A8(*a1);\nfree(a1);\n}\n\n\n\nQ:[a1,sub_41C376,sub_41C3A8,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'tree', 'sub_41C376': 'TkBTreeDestroy', 'sub_41C3A8': 'DestroyNode'}"} |
|
gap_set_connection_parameter_range | c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252 | bluekitchen | btstack | NA | void gap_set_connection_parameter_range(le_connection_parameter_range_t *range){
hci_stack->le_connection_parameter_range = *range;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409A10", "function_addr": 4233744, "binary_name": "c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov rax, cs:ptr"], [4, "mov rdx, [rbp+var_8]"], [5, "mov rcx, [rdx]"], [6, "mov [rax+7F6h], rcx"], [7, "mov edx, [rdx+8]"], [8, "mov [rax+7FEh], edx"], [9, "nop"], [10, "pop rbp"], [11, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 5], [6, 3], [7, 4], [7, 6], [8, 7], [8, 3], [10, 0], [11, 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/c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252_c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252.jsonl.gz", "strip_func_name": "sub_409A10", "query": "\n\n\nchar *__fastcall sub_409A10(__int64 a1)\n{\nchar *result; // rax\n\nresult = (char *)ptr;\n*(_QWORD *)((char *)ptr + 2038) = *(_QWORD *)a1;\n*(_DWORD *)(result + 2046) = *(_DWORD *)(a1 + 8);\nreturn result;\n}\n\n\n\nQ:[a1,sub_409A10,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'range', 'sub_409A10': 'gap_set_connection_parameter_range'}"} |
|
bn_reduce | bd12db2ed01a8504cf4ae2f1af942c0198bdf91f927d0d226a3a2db85def0e61 | qwikrazor87 | pkgrip | NA | void bn_reduce(u8 *d, u8 *N, u32 n)
{
if (bn_compare(d, N, n) >= 0)
bn_sub_1(d, d, N, n);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40AC87", "function_addr": 4238471, "binary_name": "bd12db2ed01a8504cf4ae2f1af942c0198bdf91f927d0d226a3a2db85def0e61.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 18h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_14], edx"], [6, "mov edx, [rbp+var_14]"], [7, "mov rcx, [rbp+var_10]"], [8, "mov rax, [rbp+var_8]"], [9, "mov rsi, rcx"], [10, "mov rdi, rax"], [11, "call sub_40AB1A"], [12, "test eax, eax"], [13, "js short loc_40ACCB"], [14, "mov ecx, [rbp+var_14]"], [15, "mov rdx, [rbp+var_10]"], [16, "mov rsi, [rbp+var_8]"], [17, "mov rax, [rbp+var_8]"], [18, "mov rdi, rax"], [19, "call sub_40AC06"], [20, "nop"], [21, "leave"], [22, "retn"]], "data_dep": [[6, 5], [7, 4], [8, 3], [9, 7], [10, 8], [12, 11], [13, 12], [14, 5], [15, 4], [16, 3], [17, 3], [18, 17], [22, 19], [22, 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/bd12db2ed01a8504cf4ae2f1af942c0198bdf91f927d0d226a3a2db85def0e61_bd12db2ed01a8504cf4ae2f1af942c0198bdf91f927d0d226a3a2db85def0e61.jsonl.gz", "strip_func_name": "sub_40AC87", "query": "\n\n\nchar __fastcall sub_40AC87(__int64 a1, __int64 a2, unsigned int a3)\n{\nint v3; // eax\n\nv3 = sub_40AB1A(a1, a2, a3);\nif ( v3 >= 0 )\nLOBYTE(v3) = sub_40AC06(a1, a1, a2, a3);\nreturn v3;\n}\n\n\n\nQ:[a3,a1,a2,sub_40AC87,sub_40AB1A,sub_40AC06,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'n', 'a1': 'd', 'a2': 'N', 'sub_40AC87': 'bn_reduce', 'sub_40AB1A': 'bn_compare', 'sub_40AC06': 'bn_sub_1'}"} |
|
bnep_handle_can_send_now | 5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a | bluekitchen | btstack | NA | static void bnep_handle_can_send_now(uint16_t l2cap_cid){
btstack_linked_item_t *it;
btstack_linked_item_t *next;
for (it = (btstack_linked_item_t *) bnep_channels; it ; it = next){
next = it->next; // be prepared for removal of channel in state machine
bnep_channel_t * channel = ((bnep_channel_t *) it);
if (channel->l2cap_cid != l2cap_cid) continue;
//
bnep_channel_event_t channel_event = { BNEP_CH_EVT_READY_TO_SEND };
bnep_channel_state_machine(channel, &channel_event);
if (!l2cap_can_send_packet_now(channel->l2cap_cid)) {
l2cap_request_can_send_now_event(channel->l2cap_cid);
return;
}
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4412E0", "function_addr": 4461280, "binary_name": "5f5ebc3b2168d6c920c5b624ab2da0e280b9a03146ff50175d9a3c121396694a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov eax, edi"], [4, "mov [rbp+var_24], ax"], [5, "mov rax, cs:qword_48C9A0"], [6, "mov [rbp+var_8], rax"], [7, "jmp short loc_44136C"], [8, "mov rax, [rbp+var_8]"], [9, "mov rax, [rax]"], [10, "mov [rbp+var_10], rax"], [11, "mov rax, [rbp+var_8]"], [12, "mov [rbp+var_18], rax"], [13, "mov rax, [rbp+var_18]"], [14, "movzx eax, word ptr [rax+2Ch]"], [15, "cmp [rbp+var_24], ax"], [16, "jnz short loc_441363"], [17, "mov [rbp+var_1C], 0"], [18, "lea rdx, [rbp+var_1C]"], [19, "mov rax, [rbp+var_18]"], [20, "mov rsi, rdx"], [21, "mov rdi, rax"], [22, "call sub_440FEB"], [23, "mov rax, [rbp+var_18]"], [24, "movzx eax, word ptr [rax+2Ch]"], [25, "movzx eax, ax"], [26, "mov edi, eax"], [27, "call sub_41FFEE"], [28, "xor eax, 1"], [29, "test al, al"], [30, "jz short loc_441364"], [31, "mov rax, [rbp+var_18]"], [32, "movzx eax, word ptr [rax+2Ch]"], [33, "movzx eax, ax"], [34, "mov edi, eax"], [35, "call sub_41FF6C"], [36, "jmp short locret_441373"], [37, "nop"], [38, "mov rax, [rbp+var_10]"], [39, "mov [rbp+var_8], rax"], [40, "cmp [rbp+var_8], 0"], [41, "jnz short loc_4412FB"], [42, "leave"], [43, "retn"]], "data_dep": [[4, 3], [6, 5], [8, 6], [8, 39], [9, 8], [10, 9], [11, 39], [11, 6], [12, 11], [13, 12], [14, 13], [15, 14], [15, 4], [16, 15], [18, 17], [18, 18], [19, 12], [20, 18], [21, 19], [23, 12], [24, 23], [25, 24], [26, 25], [28, 27], [29, 28], [30, 29], [31, 12], [32, 31], [33, 32], [34, 33], [38, 10], [39, 38], [40, 6], [40, 39], [41, 40], [43, 5], [43, 35], [43, 38]]}
| {"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_4412E0", "query": "\n\n\n__int64 __fastcall sub_4412E0(__int16 a1)\n{\n__int64 result; // rax\nunsigned int v2; // [rsp+14h] [rbp-1Ch] BYREF\n__int64 v3; // [rsp+18h] [rbp-18h]\n__int64 v4; // [rsp+20h] [rbp-10h]\n__int64 i; // [rsp+28h] [rbp-8h]\n\nresult = qword_48C9A0;\nfor ( i = qword_48C9A0; i; i = v4 )\n{\nv4 = *(_QWORD *)i;\nv3 = i;\nif ( a1 == *(_WORD *)(i + 44) )\n{\nv2 = 0;\nsub_440FEB(v3, &v2);\nif ( !sub_41FFEE(*(_WORD *)(v3 + 44), (__int64)&v2) )\nreturn sub_41FF6C(*(_WORD *)(v3 + 44));\n}\nresult = v4;\n}\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,v4,i,sub_4412E0,sub_440FEB,sub_41FFEE,sub_41FF6C,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'l2cap_cid', 'v2': 'channel_event', 'v3': 'channel', 'v4': 'next', 'i': 'it', 'sub_4412E0': 'bnep_handle_can_send_now', 'sub_440FEB': 'bnep_channel_state_machine', 'sub_41FFEE': 'l2cap_can_send_packet_now', 'sub_41FF6C': 'l2cap_request_can_send_now_event'}"} |
|
CheckErrors | db371fd079e8c41b21e9bcd3c3be8ae67a4f9a7f2508add0dab2a26268301194 | syoyo | tinyobjloader-c | NA | static void CheckErrors(const char* desc) {
GLenum e = glGetError();
if (e != GL_NO_ERROR) {
fprintf(stderr, "OpenGL error in \"%s\": %d (%d)\n", desc, e, e);
exit(20);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406B92", "function_addr": 4221842, "binary_name": "db371fd079e8c41b21e9bcd3c3be8ae67a4f9a7f2508add0dab2a26268301194.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, cs:qword_412740"], [5, "call rax "], [6, "mov [rbp+var_4], eax"], [7, "cmp [rbp+var_4], 0"], [8, "jz short loc_406BE0"], [9, "mov rax, cs:__bss_start"], [10, "mov esi, [rbp+var_4]"], [11, "mov ecx, [rbp+var_4]"], [12, "mov rdx, [rbp+var_18]"], [13, "mov r8d, esi"], [14, "mov esi, offset aOpenglErrorInS"], [15, "mov rdi, rax"], [16, "mov eax, 0"], [17, "call _fprintf"], [18, "mov edi, 14h"], [19, "call _exit"], [20, "nop"], [21, "leave"], [22, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [10, 6], [11, 6], [12, 3], [13, 10], [15, 9], [22, 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/db371fd079e8c41b21e9bcd3c3be8ae67a4f9a7f2508add0dab2a26268301194_db371fd079e8c41b21e9bcd3c3be8ae67a4f9a7f2508add0dab2a26268301194.jsonl.gz", "strip_func_name": "sub_406B92", "query": "\n\n\n__int64 __fastcall sub_406B92(const char *a1)\n{\n__int64 result; // rax\n\nresult = qword_412740();\nif ( (_DWORD)result )\n{\nfprintf(_bss_start, \"OpenGL error in \\\"%s\\\": %d (%d)\\n\", a1, (unsigned int)result, (unsigned int)result);\nexit(20);\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_406B92,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'desc', 'sub_406B92': 'CheckErrors'}"} |
|
cord_push | 53f0ef4c6114a708683468b115d508b15158a35afa8381c6b02e6f5482d9d949 | dfguan | pin_hic | NA | void cord_push(cord_t *c, cors *cord)
{
if (c->n >= c->m) {
c->m = c->m ? c->m << 1 : 2;
c->coords = realloc(c->coords, c->m * sizeof(cors));
}
c->coords[c->n++] = *cord;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41BCA5", "function_addr": 4308133, "binary_name": "53f0ef4c6114a708683468b115d508b15158a35afa8381c6b02e6f5482d9d949.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_8]"], [6, "mov rdx, [rax+10h]"], [7, "mov rax, [rbp+var_8]"], [8, "mov rax, [rax+18h]"], [9, "cmp rdx, rax"], [10, "jb short loc_41BD1B"], [11, "mov rax, [rbp+var_8]"], [12, "mov rax, [rax+18h]"], [13, "test rax, rax"], [14, "jz short loc_41BCE5"], [15, "mov rax, [rbp+var_8]"], [16, "mov rax, [rax+18h]"], [17, "lea rdx, [rax+rax]"], [18, "jmp short loc_41BCEA"], [19, "mov edx, 2"], [20, "mov rax, [rbp+var_8]"], [21, "mov [rax+18h], rdx"], [22, "mov rax, [rbp+var_8]"], [23, "mov rax, [rax+18h]"], [24, "lea rdx, ds:0[rax*8]"], [25, "mov rax, [rbp+var_8]"], [26, "mov rax, [rax]"], [27, "mov rsi, rdx"], [28, "mov rdi, rax"], [29, "call _realloc"], [30, "mov rdx, [rbp+var_8]"], [31, "mov [rdx], rax"], [32, "mov rax, [rbp+var_8]"], [33, "mov rsi, [rax]"], [34, "mov rax, [rbp+var_8]"], [35, "mov rax, [rax+10h]"], [36, "lea rcx, [rax+1]"], [37, "mov rdx, [rbp+var_8]"], [38, "mov [rdx+10h], rcx"], [39, "shl rax, 3"], [40, "lea rdx, [rsi+rax]"], [41, "mov rax, [rbp+var_10]"], [42, "mov rax, [rax]"], [43, "mov [rdx], rax"], [44, "nop"], [45, "leave"], [46, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 3], [8, 7], [9, 8], [9, 6], [10, 9], [11, 3], [12, 11], [13, 12], [14, 13], [15, 3], [16, 15], [17, 6], [17, 16], [20, 3], [21, 19], [21, 17], [21, 20], [22, 3], [23, 22], [23, 21], [24, 17], [24, 19], [25, 3], [26, 21], [26, 25], [27, 24], [28, 26], [30, 3], [31, 29], [31, 30], [32, 3], [33, 32], [33, 38], [33, 31], [33, 43], [33, 21], [34, 3], [35, 38], [35, 31], [35, 34], [35, 43], [35, 21], [36, 31], [36, 43], [36, 21], [36, 35], [36, 38], [37, 3], [38, 37], [38, 36], [39, 35], [40, 38], [40, 37], [40, 39], [41, 4], [42, 38], [42, 41], [43, 40], [43, 42], [46, 42]]}
| {"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/53f0ef4c6114a708683468b115d508b15158a35afa8381c6b02e6f5482d9d949_53f0ef4c6114a708683468b115d508b15158a35afa8381c6b02e6f5482d9d949.jsonl.gz", "strip_func_name": "sub_41BCA5", "query": "\n\n\n__int64 __fastcall sub_41BCA5(void **a1, __int64 *a2)\n{\n__int64 v2; // rdx\nchar *v3; // rsi\nchar *v4; // rax\nchar *v5; // rdx\n__int64 result; // rax\n\nif ( a1[2] >= a1[3] )\n{\nif ( a1[3] )\nv2 = 2LL * (_QWORD)a1[3];\nelse\nv2 = 2LL;\na1[3] = (void *)v2;\n*a1 = realloc(*a1, 8LL * (_QWORD)a1[3]);\n}\nv3 = (char *)*a1;\nv4 = (char *)a1[2];\na1[2] = v4 + 1;\nv5 = &v3[8 * (_QWORD)v4];\nresult = *a2;\n*(_QWORD *)v5 = *a2;\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_41BCA5,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'a2': 'cord', 'sub_41BCA5': 'cord_push'}"} |