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
rapl_perf
351bf03e07d4313bcab3f5446bc9afbe6701a862c0793ccd0156e5b7945adeda
deater
uarch-configure
NA
static int rapl_perf(int core) { FILE *fff; int type; int config[NUM_RAPL_DOMAINS]; char units[NUM_RAPL_DOMAINS][BUFSIZ]; char filename[BUFSIZ]; int fd[NUM_RAPL_DOMAINS][MAX_PACKAGES]; double scale[NUM_RAPL_DOMAINS]; struct perf_event_attr attr; long long value; int i,j; int paranoid_value; printf("\nTrying perf_event interface to gather results\n\n"); fff=fopen("/sys/bus/event_source/devices/power/type","r"); if (fff==NULL) { printf("\tNo perf_event rapl support found (requires Linux 3.14)\n"); printf("\tFalling back to raw msr support\n\n"); return -1; } fscanf(fff,"%d",&type); fclose(fff); for(i=0;i<NUM_RAPL_DOMAINS;i++) { sprintf(filename,"/sys/bus/event_source/devices/power/events/%s", rapl_domain_names[i]); fff=fopen(filename,"r"); if (fff!=NULL) { fscanf(fff,"event=%x",&config[i]); printf("\tEvent=%s Config=%d ",rapl_domain_names[i],config[i]); fclose(fff); } else { continue; } sprintf(filename,"/sys/bus/event_source/devices/power/events/%s.scale", rapl_domain_names[i]); fff=fopen(filename,"r"); if (fff!=NULL) { fscanf(fff,"%lf",&scale[i]); printf("scale=%g ",scale[i]); fclose(fff); } sprintf(filename,"/sys/bus/event_source/devices/power/events/%s.unit", rapl_domain_names[i]); fff=fopen(filename,"r"); if (fff!=NULL) { fscanf(fff,"%s",units[i]); printf("units=%s ",units[i]); fclose(fff); } printf("\n"); } for(j=0;j<total_packages;j++) { for(i=0;i<NUM_RAPL_DOMAINS;i++) { fd[i][j]=-1; memset(&attr,0x0,sizeof(attr)); attr.type=type; attr.config=config[i]; if (config[i]==0) continue; fd[i][j]=perf_event_open(&attr,-1, package_map[j],-1,0); if (fd[i][j]<0) { if (errno==EACCES) { paranoid_value=check_paranoid(); if (paranoid_value>0) { printf("\t/proc/sys/kernel/perf_event_paranoid is %d\n",paranoid_value); printf("\tThe value must be 0 or lower to read system-wide RAPL values\n"); } printf("\tPermission denied; run as root or adjust paranoid value\n\n"); return -1; } else { printf("\terror opening core %d config %d: %s\n\n", package_map[j], config[i], strerror(errno)); return -1; } } } } printf("\n\tSleeping 1 second\n\n"); sleep(1); for(j=0;j<total_packages;j++) { printf("\tPackage %d:\n",j); for(i=0;i<NUM_RAPL_DOMAINS;i++) { if (fd[i][j]!=-1) { read(fd[i][j],&value,8); close(fd[i][j]); printf("\t\t%s Energy Consumed: %lf %s\n", rapl_domain_names[i], (double)value*scale[i], units[i]); } } } printf("\n"); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40258D", "function_addr": 4203917, "binary_name": "351bf03e07d4313bcab3f5446bc9afbe6701a862c0793ccd0156e5b7945adeda.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0C230h"], [3, "mov [rbp+var_C224], edi"], [4, "mov edi, offset aTryingPerfEven"], [5, "call _puts"], [6, "mov esi, offset modes"], [7, "mov edi, offset aSysBusEventSou"], [8, "call _fopen"], [9, "mov [rbp+stream], rax"], [10, "cmp [rbp+stream], 0"], [11, "jnz short loc_4025E0"], [12, "mov edi, offset aNoPerfEventRap"], [13, "call _puts"], [14, "mov edi, offset aFallingBackToR"], [15, "call _puts"], [16, "mov eax, 0FFFFFFFFh"], [17, "jmp locret_402B17"], [18, "lea rdx, [rbp+var_18]"], [19, "mov rax, [rbp+stream]"], [20, "mov esi, offset aD"], [21, "mov rdi, rax"], [22, "mov eax, 0"], [23, "call ___isoc99_fscanf"], [24, "mov rax, [rbp+stream]"], [25, "mov rdi, rax"], [26, "call _fclose"], [27, "mov [rbp+var_4], 0"], [28, "jmp loc_402833"], [29, "mov eax, [rbp+var_4]"], [30, "movsxd rdx, eax"], [31, "mov rax, rdx"], [32, "shl rax, 4"], [33, "sub rax, rdx"], [34, "add rax, rax"], [35, "lea rdx, aEnergyCores[rax]"], [36, "lea rax, [rbp+s]"], [37, "mov esi, offset aSysBusEventSou_0"], [38, "mov rdi, rax"], [39, "mov eax, 0"], [40, "call _sprintf"], [41, "lea rax, [rbp+s]"], [42, "mov esi, offset modes"], [43, "mov rdi, rax"], [44, "call _fopen"], [45, "mov [rbp+stream], rax"], [46, "cmp [rbp+stream], 0"], [47, "jz loc_40282E"], [48, "lea rdx, [rbp+var_30]"], [49, "mov eax, [rbp+var_4]"], [50, "cdqe"], [51, "shl rax, 2"], [52, "add rdx, rax"], [53, "mov rax, [rbp+stream]"], [54, "mov esi, offset aEventX"], [55, "mov rdi, rax"], [56, "mov eax, 0"], [57, "call ___isoc99_fscanf"], [58, "mov eax, [rbp+var_4]"], [59, "cdqe"], [60, "mov edx, [rbp+rax*4+var_30]"], [61, "mov eax, [rbp+var_4]"], [62, "movsxd rcx, eax"], [63, "mov rax, rcx"], [64, "shl rax, 4"], [65, "sub rax, rcx"], [66, "add rax, rax"], [67, "add rax, 407100h"], [68, "mov rsi, rax"], [69, "mov edi, offset aEventSConfigD"], [70, "mov eax, 0"], [71, "call _printf"], [72, "mov rax, [rbp+stream]"], [73, "mov rdi, rax"], [74, "call _fclose"], [75, "mov eax, [rbp+var_4]"], [76, "movsxd rdx, eax"], [77, "mov rax, rdx"], [78, "shl rax, 4"], [79, "sub rax, rdx"], [80, "add rax, rax"], [81, "lea rdx, aEnergyCores[rax]"], [82, "lea rax, [rbp+s]"], [83, "mov esi, offset aSysBusEventSou_1"], [84, "mov rdi, rax"], [85, "mov eax, 0"], [86, "call _sprintf"], [87, "lea rax, [rbp+s]"], [88, "mov esi, offset modes"], [89, "mov rdi, rax"], [90, "call _fopen"], [91, "mov [rbp+stream], rax"], [92, "cmp [rbp+stream], 0"], [93, "jz short loc_402776"], [94, "lea rdx, [rbp+var_C1A0]"], [95, "mov eax, [rbp+var_4]"], [96, "cdqe"], [97, "shl rax, 3"], [98, "add rdx, rax"], [99, "mov rax, [rbp+stream]"], [100, "mov esi, offset aLf"], [101, "mov rdi, rax"], [102, "mov eax, 0"], [103, "call ___isoc99_fscanf"], [104, "mov eax, [rbp+var_4]"], [105, "cdqe"], [106, "mov rax, [rbp+rax*8+var_C1A0]"], [107, "movq xmm0, rax"], [108, "mov edi, offset aScaleG"], [109, "mov eax, 1"], [110, "call _printf"], [111, "mov rax, [rbp+stream]"], [112, "mov rdi, rax"], [113, "call _fclose"], [114, "mov eax, [rbp+var_4]"], [115, "movsxd rdx, eax"], [116, "mov rax, rdx"], [117, "shl rax, 4"], [118, "sub rax, rdx"], [119, "add rax, rax"], [120, "lea rdx, aEnergyCores[rax]"], [121, "lea rax, [rbp+s]"], [122, "mov esi, offset aSysBusEventSou_2"], [123, "mov rdi, rax"], [124, "mov eax, 0"], [125, "call _sprintf"], [126, "lea rax, [rbp+s]"], [127, "mov esi, offset modes"], [128, "mov rdi, rax"], [129, "call _fopen"], [130, "mov [rbp+stream], rax"], [131, "cmp [rbp+stream], 0"], [132, "jz short loc_402822"], [133, "lea rdx, [rbp+var_A030]"], [134, "mov eax, [rbp+var_4]"], [135, "cdqe"], [136, "shl rax, 0Dh"], [137, "add rdx, rax"], [138, "mov rax, [rbp+stream]"], [139, "mov esi, offset aS"], [140, "mov rdi, rax"], [141, "mov eax, 0"], [142, "call ___isoc99_fscanf"], [143, "lea rdx, [rbp+var_A030]"], [144, "mov eax, [rbp+var_4]"], [145, "cdqe"], [146, "shl rax, 0Dh"], [147, "add rax, rdx"], [148, "mov rsi, rax"], [149, "mov edi, offset aUnitsS"], [150, "mov eax, 0"], [151, "call _printf"], [152, "mov rax, [rbp+stream]"], [153, "mov rdi, rax"], [154, "call _fclose"], [155, "mov edi, 0Ah"], [156, "call _putchar"], [157, "jmp short loc_40282F"], [158, "nop"], [159, "add [rbp+var_4], 1"], [160, "cmp [rbp+var_4], 4"], [161, "jle loc_402612"], [162, "mov [rbp+var_8], 0"], [163, "jmp loc_4029BD"], [164, "mov [rbp+var_4], 0"], [165, "jmp loc_4029AF"], [166, "mov eax, [rbp+var_8]"], [167, "movsxd rdx, eax"], [168, "mov eax, [rbp+var_4]"], [169, "cdqe"], [170, "shl rax, 4"], [171, "add rax, rdx"], [172, "mov [rbp+rax*4+fd], 0FFFFFFFFh"], [173, "lea rax, [rbp+var_C210]"], [174, "mov edx, 70h "], [175, "mov esi, 0"], [176, "mov rdi, rax"], [177, "call _memset"], [178, "mov eax, [rbp+var_18]"], [179, "mov [rbp+var_C210], eax"], [180, "mov eax, [rbp+var_4]"], [181, "cdqe"], [182, "mov eax, [rbp+rax*4+var_30]"], [183, "cdqe"], [184, "mov [rbp+var_C208], rax"], [185, "mov eax, [rbp+var_4]"], [186, "cdqe"], [187, "mov eax, [rbp+rax*4+var_30]"], [188, "test eax, eax"], [189, "jz loc_4029AA"], [190, "mov eax, [rbp+var_8]"], [191, "cdqe"], [192, "mov edx, ds:dword_407220[rax*4]"], [193, "lea rax, [rbp+var_C210]"], [194, "mov r8d, 0"], [195, "mov ecx, 0FFFFFFFFh"], [196, "mov esi, 0FFFFFFFFh"], [197, "mov rdi, rax"], [198, "call sub_4024CB"], [199, "mov edx, [rbp+var_8]"], [200, "movsxd rcx, edx"], [201, "mov edx, [rbp+var_4]"], [202, "movsxd rdx, edx"], [203, "shl rdx, 4"], [204, "add rdx, rcx"], [205, "mov [rbp+rdx*4+fd], eax"], [206, "mov eax, [rbp+var_8]"], [207, "movsxd rdx, eax"], [208, "mov eax, [rbp+var_4]"], [209, "cdqe"], [210, "shl rax, 4"], [211, "add rax, rdx"], [212, "mov eax, [rbp+rax*4+fd]"], [213, "test eax, eax"], [214, "jns loc_4029AB"], [215, "call ___errno_location"], [216, "mov eax, [rax]"], [217, "cmp eax, 0Dh"], [218, "jnz short loc_402969"], [219, "call sub_40250F"], [220, "mov [rbp+var_14], eax"], [221, "cmp [rbp+var_14], 0"], [222, "jle short loc_402955"], [223, "mov eax, [rbp+var_14]"], [224, "mov esi, eax"], [225, "mov edi, offset aProcSysKernelP_0"], [226, "mov eax, 0"], [227, "call _printf"], [228, "mov edi, offset aTheValueMustBe"], [229, "call _puts"], [230, "mov edi, offset aPermissionDeni"], [231, "call _puts"], [232, "mov eax, 0FFFFFFFFh"], [233, "jmp locret_402B17"], [234, "call ___errno_location"], [235, "mov eax, [rax]"], [236, "mov edi, eax"], [237, "call _strerror"], [238, "mov rcx, rax"], [239, "mov eax, [rbp+var_4]"], [240, "cdqe"], [241, "mov edx, [rbp+rax*4+var_30]"], [242, "mov eax, [rbp+var_8]"], [243, "cdqe"], [244, "mov eax, ds:dword_407220[rax*4]"], [245, "mov esi, eax"], [246, "mov edi, offset aErrorOpeningCo"], [247, "mov eax, 0"], [248, "call _printf"], [249, "mov eax, 0FFFFFFFFh"], [250, "jmp locret_402B17"], [251, "nop"], [252, "add [rbp+var_4], 1"], [253, "cmp [rbp+var_4], 4"], [254, "jle loc_402855"], [255, "add [rbp+var_8], 1"], [256, "mov eax, cs:dword_407210"], [257, "cmp [rbp+var_8], eax"], [258, "jl loc_402849"], [259, "mov edi, offset aSleeping1Secon"], [260, "call _puts"], [261, "mov edi, 1"], [262, "call _sleep"], [263, "mov [rbp+var_8], 0"], [264, "jmp loc_402AF9"], [265, "mov eax, [rbp+var_8]"], [266, "mov esi, eax"], [267, "mov edi, offset aPackageD"], [268, "mov eax, 0"], [269, "call _printf"], [270, "mov [rbp+var_4], 0"], [271, "jmp loc_402AEB"], [272, "mov eax, [rbp+var_8]"], [273, "movsxd rdx, eax"], [274, "mov eax, [rbp+var_4]"], [275, "cdqe"], [276, "shl rax, 4"], [277, "add rax, rdx"], [278, "mov eax, [rbp+rax*4+fd]"], [279, "cmp eax, 0FFFFFFFFh"], [280, "jz loc_402AE7"], [281, "mov eax, [rbp+var_8]"], [282, "movsxd rdx, eax"], [283, "mov eax, [rbp+var_4]"], [284, "cdqe"], [285, "shl rax, 4"], [286, "add rax, rdx"], [287, "mov eax, [rbp+rax*4+fd]"], [288, "lea rcx, [rbp+buf]"], [289, "mov edx, 8"], [290, "mov rsi, rcx"], [291, "mov edi, eax"], [292, "call _read"], [293, "mov eax, [rbp+var_8]"], [294, "movsxd rdx, eax"], [295, "mov eax, [rbp+var_4]"], [296, "cdqe"], [297, "shl rax, 4"], [298, "add rax, rdx"], [299, "mov eax, [rbp+rax*4+fd]"], [300, "mov edi, eax"], [301, "call _close"], [302, "lea rdx, [rbp+var_A030]"], [303, "mov eax, [rbp+var_4]"], [304, "cdqe"], [305, "shl rax, 0Dh"], [306, "add rdx, rax"], [307, "mov rax, [rbp+buf]"], [308, "pxor xmm1, xmm1"], [309, "cvtsi2sd xmm1, rax"], [310, "mov eax, [rbp+var_4]"], [311, "cdqe"], [312, "movsd xmm0, [rbp+rax*8+var_C1A0]"], [313, "mulsd xmm1, xmm0"], [314, "movq rcx, xmm1"], [315, "mov eax, [rbp+var_4]"], [316, "movsxd rsi, eax"], [317, "mov rax, rsi"], [318, "shl rax, 4"], [319, "sub rax, rsi"], [320, "add rax, rax"], [321, "add rax, 407100h"], [322, "movq xmm0, rcx"], [323, "mov rsi, rax"], [324, "mov edi, offset aSEnergyConsume"], [325, "mov eax, 1"], [326, "call _printf"], [327, "add [rbp+var_4], 1"], [328, "cmp [rbp+var_4], 4"], [329, "jle loc_402A0C"], [330, "add [rbp+var_8], 1"], [331, "mov eax, cs:dword_407210"], [332, "cmp [rbp+var_8], eax"], [333, "jl loc_4029EC"], [334, "mov edi, 0Ah"], [335, "call _putchar"], [336, "mov eax, 0"], [337, "leave"], [338, "retn"]], "data_dep": [[9, 8], [10, 9], [11, 10], [19, 9], [21, 19], [24, 9], [25, 24], [29, 27], [29, 159], [30, 29], [31, 30], [32, 31], [33, 30], [33, 32], [34, 33], [35, 30], [36, 34], [38, 36], [41, 40], [43, 41], [45, 44], [46, 45], [47, 46], [48, 35], [49, 27], [49, 159], [51, 49], [52, 51], [52, 48], [53, 45], [55, 53], [58, 159], [58, 27], [60, 58], [61, 27], [61, 159], [62, 61], [63, 62], [64, 63], [65, 62], [65, 64], [66, 65], [67, 66], [68, 67], [72, 45], [73, 72], [75, 27], [75, 159], [76, 75], [77, 76], [78, 77], [79, 76], [79, 78], [80, 79], [81, 76], [82, 80], [84, 82], [87, 86], [89, 87], [91, 90], [92, 91], [93, 92], [94, 81], [95, 159], [95, 27], [97, 95], [98, 94], [98, 97], [99, 91], [101, 99], [104, 27], [104, 159], [106, 104], [107, 106], [111, 91], [112, 111], [114, 27], [114, 159], [115, 114], [116, 115], [117, 116], [118, 115], [118, 117], [119, 118], [120, 115], [121, 119], [123, 121], [126, 125], [128, 126], [130, 129], [131, 130], [132, 131], [133, 120], [134, 27], [134, 159], [136, 134], [137, 133], [137, 136], [138, 130], [140, 138], [143, 137], [144, 159], [144, 27], [146, 144], [147, 146], [147, 143], [148, 147], [152, 130], [153, 152], [159, 27], [159, 159], [160, 27], [160, 159], [161, 160], [166, 162], [166, 255], [167, 166], [168, 164], [168, 252], [170, 168], [171, 170], [171, 167], [172, 171], [173, 179], [173, 171], [176, 173], [179, 178], [180, 164], [180, 252], [182, 180], [184, 182], [185, 164], [185, 252], [187, 185], [188, 187], [189, 188], [190, 162], [190, 255], [193, 179], [193, 190], [197, 193], [199, 255], [199, 162], [200, 199], [201, 252], [201, 164], [202, 201], [203, 202], [204, 203], [204, 200], [205, 204], [205, 198], [206, 162], [206, 255], [207, 206], [208, 164], [208, 252], [210, 208], [211, 210], [211, 207], [212, 211], [212, 172], [213, 212], [214, 213], [216, 215], [217, 216], [218, 217], [220, 219], [221, 220], [222, 221], [223, 220], [224, 223], [235, 234], [236, 235], [238, 237], [239, 252], [239, 164], [241, 239], [242, 162], [242, 255], [245, 244], [252, 252], [252, 164], [253, 164], [253, 252], [254, 253], [255, 162], [255, 255], [257, 162], [257, 256], [257, 255], [258, 257], [265, 330], [265, 263], [266, 265], [272, 263], [272, 330], [273, 272], [274, 270], [274, 327], [276, 274], [277, 276], [277, 273], [278, 172], [278, 277], [279, 278], [280, 279], [281, 330], [281, 263], [282, 281], [283, 270], [283, 327], [285, 283], [286, 282], [286, 285], [287, 172], [287, 286], [288, 200], [288, 314], [288, 62], [290, 288], [291, 287], [293, 330], [293, 263], [294, 293], [295, 270], [295, 327], [297, 295], [298, 297], [298, 294], [299, 298], [299, 172], [300, 299], [302, 294], [303, 270], [303, 327], [305, 303], [306, 305], [306, 302], [309, 307], [309, 308], [310, 270], [310, 327], [312, 310], [313, 309], [313, 312], [314, 313], [315, 270], [315, 327], [316, 315], [317, 316], [318, 317], [319, 316], [319, 318], [320, 319], [321, 320], [322, 314], [323, 321], [327, 270], [327, 327], [328, 327], [328, 270], [329, 328], [330, 330], [330, 263], [332, 263], [332, 331], [332, 330], [333, 332], [338, 16], [338, 336], [338, 249], [338, 232]]}
{"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/351bf03e07d4313bcab3f5446bc9afbe6701a862c0793ccd0156e5b7945adeda_351bf03e07d4313bcab3f5446bc9afbe6701a862c0793ccd0156e5b7945adeda.jsonl.gz", "strip_func_name": "sub_40258D", "query": "\n\n\n__int64 sub_40258D()\n{\n__int64 result; // rax\nint v1; // eax\nint *v2; // rax\nchar *v3; // rax\n__int64 buf; // [rsp+18h] [rbp-C218h] BYREF\nint v5; // [rsp+20h] [rbp-C210h] BYREF\n__int64 v6; // [rsp+28h] [rbp-C208h]\ndouble v7[6]; // [rsp+90h] [rbp-C1A0h]\nint fd[80]; // [rsp+C0h] [rbp-C170h]\nchar s[49176]; // [rsp+200h] [rbp-C030h] BYREF\nint v10; // [rsp+C218h] [rbp-18h]\nunsigned int v11; // [rsp+C21Ch] [rbp-14h]\nFILE *stream; // [rsp+C220h] [rbp-10h]\nint j; // [rsp+C228h] [rbp-8h]\nint i; // [rsp+C22Ch] [rbp-4h]\n\nputs(\"\\nTrying perf_event interface to gather results\\n\");\nstream = fopen(\"/sys/bus/event_source/devices/power/type\", \"r\");\nif ( stream )\n{\n__isoc99_fscanf();\nfclose(stream);\nfor ( i = 0; i <= 4; ++i )\n{\nsprintf(s, \"/sys/bus/event_source/devices/power/events/%s\", &aEnergyCores[30 * i]);\nstream = fopen(s, \"r\");\nif ( stream )\n{\n__isoc99_fscanf();\nprintf(\"\\tEvent=%s Config=%d \", (const char *)(30LL * i + 4223232), *(unsigned int *)&s[4 * i + 49152]);\nfclose(stream);\nsprintf(s, \"/sys/bus/event_source/devices/power/events/%s.scale\", &aEnergyCores[30 * i]);\nstream = fopen(s, \"r\");\nif ( stream )\n{\n__isoc99_fscanf();\nprintf(\"scale=%g \", v7[i]);\nfclose(stream);\n}\nsprintf(s, \"/sys/bus/event_source/devices/power/events/%s.unit\", &aEnergyCores[30 * i]);\nstream = fopen(s, \"r\");\nif ( stream )\n{\n__isoc99_fscanf();\nprintf(\"units=%s \", &s[0x2000 * (__int64)i + 0x2000]);\nfclose(stream);\n}\nputchar(10);\n}\n}\nj = 0;\nLABEL_24:\nif ( j < dword_407210 )\n{\nfor ( i = 0; ; ++i )\n{\nif ( i > 4 )\n{\n++j;\ngoto LABEL_24;\n}\nfd[16 * i + j] = -1;\nmemset(&v5, 0, 0x70uLL);\nv5 = v10;\nv6 = *(int *)&s[4 * i + 49152];\nif ( *(_DWORD *)&s[4 * i + 49152] )\n{\nv1 = sub_4024CB((__int64)&v5, 0xFFFFFFFF, dword_407220[j], 0xFFFFFFFF, 0LL);\nfd[16 * i + j] = v1;\nif ( fd[16 * i + j] < 0 )\nbreak;\n}\n}\nif ( *__errno_location() == 13 )\n{\nv11 = sub_40250F();\nif ( (int)v11 > 0 )\n{\nprintf(\"\\t/proc/sys/kernel/perf_event_paranoid is %d\\n\", v11);\nputs(\"\\tThe value must be 0 or lower to read system-wide RAPL values\");\n}\nputs(\"\\tPermission denied; run as root or adjust paranoid value\\n\");\nresult = 0xFFFFFFFFLL;\n}\nelse\n{\nv2 = __errno_location();\nv3 = strerror(*v2);\nprintf(\n\"\\terror opening core %d config %d: %s\\n\\n\",\n(unsigned int)dword_407220[j],\n*(unsigned int *)&s[4 * i + 49152],\nv3);\nresult = 0xFFFFFFFFLL;\n}\n}\nelse\n{\nputs(\"\\n\\tSleeping 1 second\\n\");\nsleep(1u);\nfor ( j = 0; j < dword_407210; ++j )\n{\nprintf(\"\\tPackage %d:\\n\", (unsigned int)j);\nfor ( i = 0; i <= 4; ++i )\n{\nif ( fd[16 * i + j] != -1 )\n{\nread(fd[16 * i + j], &buf, 8uLL);\nclose(fd[16 * i + j]);\nprintf(\n\"\\t\\t%s Energy Consumed: %lf %s\\n\",\n(const char *)(30LL * i + 4223232),\n(double)(int)buf * v7[i],\n&s[0x2000 * (__int64)i + 0x2000]);\n}\n}\n}\nputchar(10);\nresult = 0LL;\n}\n}\nelse\n{\nputs(\"\\tNo perf_event rapl support found (requires Linux 3.14)\");\nputs(\"\\tFalling back to raw msr support\\n\");\nresult = 0xFFFFFFFFLL;\n}\nreturn result;\n}\n\n\n\nQ:[buf,v5,v7,s,v10,v11,stream,sub_40258D,sub_4024CB,sub_40250F,]\nAssistant: ", "hints": "[]", "response": "{'buf': 'value', 'v5': 'attr', 'v7': 'scale', 's': 'filename', 'v10': 'type', 'v11': 'paranoid_value', 'stream': 'fff', 'sub_40258D': 'rapl_perf', 'sub_4024CB': 'perf_event_open', 'sub_40250F': 'check_paranoid'}"}
cram_decode_seq
fc3225fc170dc373bc36dcbfa801c68d9803a67c0fe0b996774e17328efb624c
liulab-dfci
MAESTRO
NA
static int cram_decode_seq(cram_fd *fd, cram_container *c, cram_slice *s, cram_block *blk, cram_record *cr, SAM_hdr *bfd, int cf, char *seq, char *qual, int has_MD, int has_NM) { int prev_pos = 0, f, r = 0, out_sz = 1; int seq_pos = 1; int cig_len = 0, ref_pos = cr->apos; int32_t fn, i32; enum cigar_op cig_op = BAM_CMATCH; uint32_t *cigar = s->cigar; uint32_t ncigar = s->ncigar; uint32_t cigar_alloc = s->cigar_alloc; uint32_t nm = 0; int32_t md_dist = 0; int orig_aux = 0; int decode_md = fd->decode_md && s->ref && !has_MD; int decode_nm = fd->decode_md && s->ref && !has_NM; uint32_t ds = c->comp_hdr->data_series; if ((ds & CRAM_QS) && !(cf & CRAM_FLAG_PRESERVE_QUAL_SCORES)) { memset(qual, 255, cr->len); } if (cr->cram_flags & CRAM_FLAG_NO_SEQ) decode_md = decode_nm = 0; if (decode_md) { orig_aux = BLOCK_SIZE(s->aux_blk); BLOCK_APPEND(s->aux_blk, "MDZ", 3); } if (ds & CRAM_FN) { if (!c->comp_hdr->codecs[DS_FN]) return -1; r |= c->comp_hdr->codecs[DS_FN]->decode(s,c->comp_hdr->codecs[DS_FN], blk, (char *)&fn, &out_sz); if (r) return r; } else { fn = 0; } ref_pos--; // count from 0 cr->cigar = ncigar; if (!(ds & (CRAM_FC | CRAM_FP))) goto skip_cigar; for (f = 0; f < fn; f++) { int32_t pos = 0; char op; if (ncigar+2 >= cigar_alloc) { cigar_alloc = cigar_alloc ? cigar_alloc*2 : 1024; s->cigar = cigar; if (!(cigar = realloc(cigar, cigar_alloc * sizeof(*cigar)))) return -1; } if (ds & CRAM_FC) { if (!c->comp_hdr->codecs[DS_FC]) return -1; r |= c->comp_hdr->codecs[DS_FC]->decode(s, c->comp_hdr->codecs[DS_FC], blk, &op, &out_sz); if (r) return r; } if (!(ds & CRAM_FP)) continue; if (!c->comp_hdr->codecs[DS_FP]) return -1; r |= c->comp_hdr->codecs[DS_FP]->decode(s, c->comp_hdr->codecs[DS_FP], blk, (char *)&pos, &out_sz); if (r) return r; pos += prev_pos; if (pos <= 0) { fprintf(stderr, "Error: feature position %d before start of read.\n", pos); return -1; } if (pos > seq_pos) { if (pos > cr->len+1) return -1; if (s->ref && cr->ref_id >= 0) { if (ref_pos + pos - seq_pos > bfd->ref[cr->ref_id].len) { static int whinged = 0; int rlen; if (!whinged) fprintf(stderr, "Ref pos outside of ref " "sequence boundary\n"); whinged = 1; rlen = bfd->ref[cr->ref_id].len - ref_pos; // May miss MD/NM cases where both seq/ref are N, but this is a // malformed cram file anyway. if (rlen > 0) { memcpy(&seq[seq_pos-1], &s->ref[ref_pos - s->ref_start +1], rlen); if ((pos - seq_pos) - rlen > 0) memset(&seq[seq_pos-1+rlen], 'N', (pos - seq_pos) - rlen); } else { memset(&seq[seq_pos-1], 'N', cr->len - seq_pos + 1); } if (md_dist >= 0) md_dist += pos - seq_pos; } else { // 'N' in both ref and seq is also mismatch for NM/MD if (decode_md || decode_nm) { int i; for (i = 0; i < pos - seq_pos; i++) { // FIXME: not N, but nt16 lookup == 15? char base = s->ref[ref_pos - s->ref_start + 1 + i]; if (base == 'N') { add_md_char(s, decode_md, s->ref[ref_pos - s->ref_start + 1 + i], &md_dist); nm++; } else { md_dist++; } seq[seq_pos-1+i] = base; } } else { memcpy(&seq[seq_pos-1], &s->ref[ref_pos - s->ref_start +1], pos - seq_pos); } } } #ifdef USE_X if (cig_len && cig_op != BAM_CBASE_MATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } cig_op = BAM_CBASE_MATCH; #else if (cig_len && cig_op != BAM_CMATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } cig_op = BAM_CMATCH; #endif cig_len += pos - seq_pos; ref_pos += pos - seq_pos; seq_pos = pos; } prev_pos = pos; if (!(ds & CRAM_FC)) goto skip_cigar; switch(op) { case 'S': { // soft clip: IN int32_t out_sz2 = 1; int have_sc = 0; if (cig_len) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } switch (CRAM_MAJOR_VERS(fd->version)) { case 1: if (ds & CRAM_IN) { r |= c->comp_hdr->codecs[DS_IN] ? c->comp_hdr->codecs[DS_IN] ->decode(s, c->comp_hdr->codecs[DS_IN], blk, cr->len ? &seq[pos-1] : NULL, &out_sz2) : (seq[pos-1] = 'N', out_sz2 = 1, 0); have_sc = 1; } break; case 2: default: if (ds & CRAM_SC) { r |= c->comp_hdr->codecs[DS_SC] ? c->comp_hdr->codecs[DS_SC] ->decode(s, c->comp_hdr->codecs[DS_SC], blk, cr->len ? &seq[pos-1] : NULL, &out_sz2) : (seq[pos-1] = 'N', out_sz2 = 1, 0); have_sc = 1; } break; // default: // r |= c->comp_hdr->codecs[DS_BB] // ? c->comp_hdr->codecs[DS_BB] // ->decode(s, c->comp_hdr->codecs[DS_BB], // blk, &seq[pos-1], &out_sz2) // : (seq[pos-1] = 'N', out_sz2 = 1, 0); } if (have_sc) { if (r) return r; cigar[ncigar++] = (out_sz2<<4) + BAM_CSOFT_CLIP; cig_op = BAM_CSOFT_CLIP; seq_pos += out_sz2; } break; } case 'X': { // Substitution; BS unsigned char base; #ifdef USE_X if (cig_len && cig_op != BAM_CBASE_MISMATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_BS) { if (!c->comp_hdr->codecs[DS_BS]) return -1; r |= c->comp_hdr->codecs[DS_BS] ->decode(s, c->comp_hdr->codecs[DS_BS], blk, (char *)&base, &out_sz); if (pos-1 < cr->len) seq[pos-1] = 'N'; // FIXME look up BS=base value } cig_op = BAM_CBASE_MISMATCH; #else int ref_base; if (cig_len && cig_op != BAM_CMATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_BS) { if (!c->comp_hdr->codecs[DS_BS]) return -1; r |= c->comp_hdr->codecs[DS_BS] ->decode(s, c->comp_hdr->codecs[DS_BS], blk, (char *)&base, &out_sz); if (r) return -1; if (ref_pos >= bfd->ref[cr->ref_id].len || !s->ref) { if (pos-1 < cr->len) seq[pos-1] = c->comp_hdr-> substitution_matrix[fd->L1['N']][base]; if (decode_md || decode_nm) { if (md_dist >= 0 && decode_md) BLOCK_APPEND_UINT(s->aux_blk, md_dist); md_dist = -1; nm--; } } else { unsigned char ref_call = ref_pos <= s->ref_end ? (uc)s->ref[ref_pos - s->ref_start +1] : 'N'; ref_base = fd->L1[ref_call]; if (pos-1 < cr->len) seq[pos-1] = c->comp_hdr-> substitution_matrix[ref_base][base]; add_md_char(s, decode_md, ref_call, &md_dist); } } cig_op = BAM_CMATCH; #endif nm++; cig_len++; seq_pos++; ref_pos++; break; } case 'D': { // Deletion; DL if (cig_len && cig_op != BAM_CDEL) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_DL) { if (!c->comp_hdr->codecs[DS_DL]) return -1; r |= c->comp_hdr->codecs[DS_DL] ->decode(s, c->comp_hdr->codecs[DS_DL], blk, (char *)&i32, &out_sz); if (r) return r; if (decode_md || decode_nm) { if (md_dist >= 0 && decode_md) BLOCK_APPEND_UINT(s->aux_blk, md_dist); if (ref_pos + i32 <= bfd->ref[cr->ref_id].len) { if (decode_md) { BLOCK_APPEND_CHAR(s->aux_blk, '^'); BLOCK_APPEND(s->aux_blk, &s->ref[ref_pos - s->ref_start +1], i32); md_dist = 0; } nm += i32; } else { uint32_t dlen; if (bfd->ref[cr->ref_id].len >= ref_pos) { if (decode_md) { BLOCK_APPEND_CHAR(s->aux_blk, '^'); BLOCK_APPEND(s->aux_blk, &s->ref[ref_pos - s->ref_start+1], bfd->ref[cr->ref_id].len-ref_pos); BLOCK_APPEND_UINT(s->aux_blk, 0); } dlen = i32 - (bfd->ref[cr->ref_id].len - ref_pos); nm += i32 - dlen; } else { dlen = i32; } md_dist = -1; } } cig_op = BAM_CDEL; cig_len += i32; ref_pos += i32; //printf(" %d: DL = %d (ret %d)\n", f, i32, r); } break; } case 'I': { // Insertion (several bases); IN int32_t out_sz2 = 1; if (cig_len && cig_op != BAM_CINS) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_IN) { if (!c->comp_hdr->codecs[DS_IN]) return -1; r |= c->comp_hdr->codecs[DS_IN] ->decode(s, c->comp_hdr->codecs[DS_IN], blk, cr->len ? &seq[pos-1] : NULL, &out_sz2); if (r) return r; cig_op = BAM_CINS; cig_len += out_sz2; seq_pos += out_sz2; nm += out_sz2; //printf(" %d: IN(I) = %.*s (ret %d, out_sz %d)\n", f, out_sz2, dat, r, out_sz2); } break; } case 'i': { // Insertion (single base); BA if (cig_len && cig_op != BAM_CINS) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_BA) { if (!c->comp_hdr->codecs[DS_BA]) return -1; r |= c->comp_hdr->codecs[DS_BA] ->decode(s, c->comp_hdr->codecs[DS_BA], blk, cr->len ? &seq[pos-1] : NULL, &out_sz); if (r) return r; } cig_op = BAM_CINS; cig_len++; seq_pos++; nm++; break; } case 'b': { // Several bases int32_t len = 1; if (cig_len && cig_op != BAM_CMATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_BB) { if (!c->comp_hdr->codecs[DS_BB]) return -1; r |= c->comp_hdr->codecs[DS_BB] ->decode(s, c->comp_hdr->codecs[DS_BB], blk, cr->len ? &seq[pos-1] : NULL, &len); if (r) return r; if (decode_md || decode_nm) { int x; if (md_dist >= 0 && decode_md) BLOCK_APPEND_UINT(s->aux_blk, md_dist); for (x = 0; x < len; x++) { if (x && decode_md) BLOCK_APPEND_UINT(s->aux_blk, 0); if (ref_pos+x >= bfd->ref[cr->ref_id].len || !s->ref) { md_dist = -1; break; } else { if (decode_md) { char r = s->ref[ref_pos+x-s->ref_start +1]; BLOCK_APPEND_CHAR(s->aux_blk, r); } } } nm += x; } } cig_op = BAM_CMATCH; cig_len+=len; seq_pos+=len; ref_pos+=len; //prev_pos+=len; break; } case 'q': { // Several quality values int32_t len = 1; if (cig_len && cig_op != BAM_CMATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_QQ) { if (!c->comp_hdr->codecs[DS_QQ]) return -1; r |= c->comp_hdr->codecs[DS_QQ] ->decode(s, c->comp_hdr->codecs[DS_QQ], blk, (char *)&qual[pos-1], &len); if (r) return r; } cig_op = BAM_CMATCH; cig_len+=len; seq_pos+=len; ref_pos+=len; //prev_pos+=len; break; } case 'B': { // Read base; BA, QS #ifdef USE_X if (cig_len && cig_op != BAM_CBASE_MISMATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } #else if (cig_len && cig_op != BAM_CMATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } #endif if (ds & CRAM_BA) { if (!c->comp_hdr->codecs[DS_BA]) return -1; r |= c->comp_hdr->codecs[DS_BA] ->decode(s, c->comp_hdr->codecs[DS_BA], blk, cr->len ? &seq[pos-1] : NULL, &out_sz); if (decode_md || decode_nm) { if (md_dist >= 0 && decode_md) BLOCK_APPEND_UINT(s->aux_blk, md_dist); if (ref_pos >= bfd->ref[cr->ref_id].len || !s->ref) { md_dist = -1; } else { if (decode_md) BLOCK_APPEND_CHAR(s->aux_blk, s->ref[ref_pos-s->ref_start +1]); nm++; md_dist = 0; } } } if (ds & CRAM_QS) { if (!c->comp_hdr->codecs[DS_QS]) return -1; r |= c->comp_hdr->codecs[DS_QS] ->decode(s, c->comp_hdr->codecs[DS_QS], blk, (char *)&qual[pos-1], &out_sz); } #ifdef USE_X cig_op = BAM_CBASE_MISMATCH; #else cig_op = BAM_CMATCH; #endif cig_len++; seq_pos++; ref_pos++; //printf(" %d: BA/QS(B) = %c/%d (ret %d)\n", f, i32, qc, r); break; } case 'Q': { // Quality score; QS if (ds & CRAM_QS) { if (!c->comp_hdr->codecs[DS_QS]) return -1; r |= c->comp_hdr->codecs[DS_QS] ->decode(s, c->comp_hdr->codecs[DS_QS], blk, (char *)&qual[pos-1], &out_sz); //printf(" %d: QS = %d (ret %d)\n", f, qc, r); } break; } case 'H': { // hard clip; HC if (cig_len && cig_op != BAM_CHARD_CLIP) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_HC) { if (!c->comp_hdr->codecs[DS_HC]) return -1; r |= c->comp_hdr->codecs[DS_HC] ->decode(s, c->comp_hdr->codecs[DS_HC], blk, (char *)&i32, &out_sz); if (r) return r; cig_op = BAM_CHARD_CLIP; cig_len += i32; } break; } case 'P': { // padding; PD if (cig_len && cig_op != BAM_CPAD) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_PD) { if (!c->comp_hdr->codecs[DS_PD]) return -1; r |= c->comp_hdr->codecs[DS_PD] ->decode(s, c->comp_hdr->codecs[DS_PD], blk, (char *)&i32, &out_sz); if (r) return r; cig_op = BAM_CPAD; cig_len += i32; } break; } case 'N': { // Ref skip; RS if (cig_len && cig_op != BAM_CREF_SKIP) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } if (ds & CRAM_RS) { if (!c->comp_hdr->codecs[DS_RS]) return -1; r |= c->comp_hdr->codecs[DS_RS] ->decode(s, c->comp_hdr->codecs[DS_RS], blk, (char *)&i32, &out_sz); if (r) return r; cig_op = BAM_CREF_SKIP; cig_len += i32; ref_pos += i32; } break; } default: fprintf(stderr, "Error: Unknown feature code '%c'\n", op); return -1; } } if (!(ds & CRAM_FC)) goto skip_cigar; /* An implicit match op for any unaccounted for bases */ if ((ds & CRAM_FN) && cr->len >= seq_pos) { if (s->ref) { if (ref_pos + cr->len - seq_pos + 1 > bfd->ref[cr->ref_id].len) { static int whinged = 0; int rlen; if (!whinged) fprintf(stderr, "Ref pos outside of ref sequence boundary\n"); whinged = 1; rlen = bfd->ref[cr->ref_id].len - ref_pos; // May miss MD/NM cases where both seq/ref are N, but this is a // malformed cram file anyway. if (rlen > 0) { if (seq_pos-1 + rlen < cr->len) memcpy(&seq[seq_pos-1], &s->ref[ref_pos - s->ref_start +1], rlen); if ((cr->len - seq_pos + 1) - rlen > 0) memset(&seq[seq_pos-1+rlen], 'N', (cr->len - seq_pos + 1) - rlen); } else { if (cr->len - seq_pos + 1 > 0) memset(&seq[seq_pos-1], 'N', cr->len - seq_pos + 1); } if (md_dist >= 0) md_dist += cr->len - seq_pos + 1; } else { if (cr->len - seq_pos + 1 > 0) { if (decode_md || decode_nm) { int i; for (i = 0; i < cr->len - seq_pos + 1; i++) { // FIXME: not N, but nt16 lookup == 15? char base = s->ref[ref_pos - s->ref_start + 1 + i]; if (base == 'N') { add_md_char(s, decode_md, s->ref[ref_pos - s->ref_start + 1 + i], &md_dist); nm++; } else { md_dist++; } seq[seq_pos-1+i] = base; } } else { memcpy(&seq[seq_pos-1], &s->ref[ref_pos - s->ref_start +1], cr->len - seq_pos + 1); } } ref_pos += cr->len - seq_pos + 1; } } if (ncigar+1 >= cigar_alloc) { cigar_alloc = cigar_alloc ? cigar_alloc*2 : 1024; s->cigar = cigar; if (!(cigar = realloc(cigar, cigar_alloc * sizeof(*cigar)))) return -1; } #ifdef USE_X if (cig_len && cig_op != BAM_CBASE_MATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } cig_op = BAM_CBASE_MATCH; #else if (cig_len && cig_op != BAM_CMATCH) { cigar[ncigar++] = (cig_len<<4) + cig_op; cig_len = 0; } cig_op = BAM_CMATCH; #endif cig_len += cr->len - seq_pos+1; } skip_cigar: if ((ds & CRAM_FN) && decode_md) { if (md_dist >= 0) BLOCK_APPEND_UINT(s->aux_blk, md_dist); } if (cig_len) { if (ncigar >= cigar_alloc) { cigar_alloc = cigar_alloc ? cigar_alloc*2 : 1024; s->cigar = cigar; if (!(cigar = realloc(cigar, cigar_alloc * sizeof(*cigar)))) return -1; } cigar[ncigar++] = (cig_len<<4) + cig_op; } cr->ncigar = ncigar - cr->cigar; cr->aend = ref_pos; //printf("2: %.*s %d .. %d\n", cr->name_len, DSTRING_STR(name_ds) + cr->name, cr->apos, ref_pos); if (ds & CRAM_MQ) { if (!c->comp_hdr->codecs[DS_MQ]) return -1; r |= c->comp_hdr->codecs[DS_MQ] ->decode(s, c->comp_hdr->codecs[DS_MQ], blk, (char *)&cr->mqual, &out_sz); } else { cr->mqual = 40; } if ((ds & CRAM_QS) && (cf & CRAM_FLAG_PRESERVE_QUAL_SCORES)) { int32_t out_sz2 = cr->len; if (ds & CRAM_QS) { if (!c->comp_hdr->codecs[DS_QS]) return -1; r |= c->comp_hdr->codecs[DS_QS] ->decode(s, c->comp_hdr->codecs[DS_QS], blk, qual, &out_sz2); } } s->cigar = cigar; s->cigar_alloc = cigar_alloc; s->ncigar = ncigar; if (cr->cram_flags & CRAM_FLAG_NO_SEQ) cr->len = 0; if (decode_md) { BLOCK_APPEND_CHAR(s->aux_blk, '\0'); // null terminate MD:Z: cr->aux_size += BLOCK_SIZE(s->aux_blk) - orig_aux; } if (decode_nm) { char buf[7]; buf[0] = 'N'; buf[1] = 'M'; buf[2] = 'I'; buf[3] = (nm>> 0) & 0xff; buf[4] = (nm>> 8) & 0xff; buf[5] = (nm>>16) & 0xff; buf[6] = (nm>>24) & 0xff; BLOCK_APPEND(s->aux_blk, buf, 7); cr->aux_size += 7; } return r; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_464509", "function_addr": 4605193, "binary_name": "fc3225fc170dc373bc36dcbfa801c68d9803a67c0fe0b996774e17328efb624c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 128h"], [4, "mov [rbp+var_108], rdi"], [5, "mov [rbp+var_110], rsi"], [6, "mov [rbp+var_118], rdx"], [7, "mov [rbp+var_120], rcx"], [8, "mov [rbp+var_128], r8"], [9, "mov [rbp+var_130], r9"], [10, "mov [rbp+var_14], 0"], [11, "mov [rbp+var_1C], 0"], [12, "mov [rbp+var_C4], 1"], [13, "mov [rbp+var_20], 1"], [14, "mov [rbp+var_24], 0"], [15, "mov rax, [rbp+var_128]"], [16, "mov eax, [rax+18h]"], [17, "mov [rbp+var_28], eax"], [18, "mov [rbp+var_2C], 0"], [19, "mov rax, [rbp+var_118]"], [20, "mov rax, [rax+30h]"], [21, "mov [rbp+ptr], rax"], [22, "mov rax, [rbp+var_118]"], [23, "mov eax, [rax+3Ch]"], [24, "mov [rbp+var_3C], eax"], [25, "mov rax, [rbp+var_118]"], [26, "mov eax, [rax+38h]"], [27, "mov [rbp+var_40], eax"], [28, "mov [rbp+var_44], 0"], [29, "mov [rbp+var_D0], 0"], [30, "mov [rbp+var_48], 0"], [31, "mov rax, [rbp+var_108]"], [32, "mov eax, [rax+200h]"], [33, "test eax, eax"], [34, "jz short loc_4645EB"], [35, "mov rax, [rbp+var_118]"], [36, "mov rax, [rax+0A8h]"], [37, "test rax, rax"], [38, "jz short loc_4645EB"], [39, "cmp [rbp+arg_18], 0"], [40, "jnz short loc_4645EB"], [41, "mov eax, 1"], [42, "jmp short loc_4645F0"], [43, "mov eax, 0"], [44, "mov [rbp+var_4C], eax"], [45, "mov rax, [rbp+var_108]"], [46, "mov eax, [rax+200h]"], [47, "test eax, eax"], [48, "jz short loc_464624"], [49, "mov rax, [rbp+var_118]"], [50, "mov rax, [rax+0A8h]"], [51, "test rax, rax"], [52, "jz short loc_464624"], [53, "cmp [rbp+arg_20], 0"], [54, "jnz short loc_464624"], [55, "mov eax, 1"], [56, "jmp short loc_464629"], [57, "mov eax, 0"], [58, "mov [rbp+var_50], eax"], [59, "mov rax, [rbp+var_110]"], [60, "mov rax, [rax+40h]"], [61, "mov eax, [rax+410h]"], [62, "mov [rbp+var_64], eax"], [63, "mov eax, [rbp+var_64]"], [64, "and eax, 80h"], [65, "test eax, eax"], [66, "jz short loc_464674"], [67, "mov eax, [rbp+arg_0]"], [68, "and eax, 1"], [69, "test eax, eax"], [70, "jnz short loc_464674"], [71, "mov rax, [rbp+var_128]"], [72, "mov eax, [rax+14h]"], [73, "movsxd rdx, eax"], [74, "mov rax, [rbp+s]"], [75, "mov esi, 0FFh"], [76, "mov rdi, rax"], [77, "call _memset"], [78, "mov rax, [rbp+var_128]"], [79, "mov eax, [rax+10h]"], [80, "and eax, 8"], [81, "test eax, eax"], [82, "jz short loc_464692"], [83, "mov [rbp+var_50], 0"], [84, "mov eax, [rbp+var_50]"], [85, "mov [rbp+var_4C], eax"], [86, "cmp [rbp+var_4C], 0"], [87, "jz loc_46482F"], [88, "mov rax, [rbp+var_118]"], [89, "mov rax, [rax+88h]"], [90, "mov rax, [rax+30h]"], [91, "mov [rbp+var_48], eax"], [92, "jmp loc_46479D"], [93, "mov rax, [rbp+var_118]"], [94, "mov rax, [rax+88h]"], [95, "mov rax, [rax+28h]"], [96, "test rax, rax"], [97, "jz short loc_464745"], [98, "mov rax, [rbp+var_118]"], [99, "mov rax, [rax+88h]"], [100, "mov rax, [rax+28h]"], [101, "test rax, rax"], [102, "js short loc_4646EF"], [103, "pxor xmm0, xmm0"], [104, "cvtsi2sd xmm0, rax"], [105, "jmp short loc_464708"], [106, "mov rdx, rax"], [107, "shr rdx, 1"], [108, "and eax, 1"], [109, "or rdx, rax"], [110, "pxor xmm0, xmm0"], [111, "cvtsi2sd xmm0, rdx"], [112, "addsd xmm0, xmm0"], [113, "movsd xmm1, cs:qword_48A258"], [114, "mulsd xmm0, xmm1"], [115, "comisd xmm0, cs:qword_48A260"], [116, "jnb short loc_464725"], [117, "cvttsd2si rax, xmm0"], [118, "jmp short loc_46474A"], [119, "movsd xmm1, cs:qword_48A260"], [120, "subsd xmm0, xmm1"], [121, "cvttsd2si rax, xmm0"], [122, "mov rdx, 8000000000000000h"], [123, "xor rax, rdx"], [124, "jmp short loc_46474A"], [125, "mov eax, 400h"], [126, "mov rdx, [rbp+var_118]"], [127, "mov rdx, [rdx+88h]"], [128, "mov [rdx+28h], rax"], [129, "mov rax, [rbp+var_118]"], [130, "mov rax, [rax+88h]"], [131, "mov rdx, [rax+28h]"], [132, "mov rax, [rbp+var_118]"], [133, "mov rax, [rax+88h]"], [134, "mov rax, [rax+20h]"], [135, "mov rcx, [rbp+var_118]"], [136, "mov rbx, [rcx+88h]"], [137, "mov rsi, rdx"], [138, "mov rdi, rax"], [139, "call _realloc"], [140, "mov [rbx+20h], rax"], [141, "mov rax, [rbp+var_118]"], [142, "mov rax, [rax+88h]"], [143, "mov rdx, [rax+28h]"], [144, "mov rax, [rbp+var_118]"], [145, "mov rax, [rax+88h]"], [146, "mov rax, [rax+30h]"], [147, "add rax, 3"], [148, "cmp rdx, rax"], [149, "jbe loc_4646B6"], [150, "mov rax, [rbp+var_118]"], [151, "mov rax, [rax+88h]"], [152, "mov rdx, [rax+20h]"], [153, "mov rax, [rbp+var_118]"], [154, "mov rax, [rax+88h]"], [155, "mov rax, [rax+30h]"], [156, "add rax, rdx"], [157, "mov edx, 3"], [158, "mov esi, offset aMdz"], [159, "mov rdi, rax"], [160, "call _memcpy"], [161, "mov rax, [rbp+var_118]"], [162, "mov rax, [rax+88h]"], [163, "mov rdx, [rax+30h]"], [164, "mov rax, [rbp+var_118]"], [165, "mov rax, [rax+88h]"], [166, "add rdx, 3"], [167, "mov [rax+30h], rdx"], [168, "mov eax, [rbp+var_64]"], [169, "and eax, 200h"], [170, "test eax, eax"], [171, "jz short loc_4648BA"], [172, "mov rax, [rbp+var_110]"], [173, "mov rax, [rax+40h]"], [174, "mov rax, [rax+350h]"], [175, "test rax, rax"], [176, "jnz short loc_46485C"], [177, "mov eax, 0FFFFFFFFh"], [178, "jmp loc_467EB3"], [179, "mov rax, [rbp+var_110]"], [180, "mov rax, [rax+40h]"], [181, "mov rax, [rax+350h]"], [182, "mov r9, [rax+18h]"], [183, "mov rax, [rbp+var_110]"], [184, "mov rax, [rax+40h]"], [185, "mov rsi, [rax+350h]"], [186, "lea rdi, [rbp+var_C4]"], [187, "lea rcx, [rbp+var_C8]"], [188, "mov rdx, [rbp+var_120]"], [189, "mov rax, [rbp+var_118]"], [190, "mov r8, rdi"], [191, "mov rdi, rax"], [192, "call r9"], [193, "or [rbp+var_1C], eax"], [194, "cmp [rbp+var_1C], 0"], [195, "jz short loc_4648C4"], [196, "mov eax, [rbp+var_1C]"], [197, "jmp loc_467EB3"], [198, "mov [rbp+var_C8], 0"], [199, "sub [rbp+var_28], 1"], [200, "mov edx, [rbp+var_3C]"], [201, "mov rax, [rbp+var_128]"], [202, "mov [rax+54h], edx"], [203, "mov eax, [rbp+var_64]"], [204, "and eax, 104h"], [205, "test eax, eax"], [206, "jz loc_467736"], [207, "mov [rbp+var_18], 0"], [208, "jmp loc_4672E3"], [209, "mov [rbp+var_D4], 0"], [210, "mov eax, [rbp+var_3C]"], [211, "add eax, 2"], [212, "cmp [rbp+var_40], eax"], [213, "ja short loc_464959"], [214, "cmp [rbp+var_40], 0"], [215, "jz short loc_464913"], [216, "mov eax, [rbp+var_40]"], [217, "add eax, eax"], [218, "jmp short loc_464918"], [219, "mov eax, 400h"], [220, "mov [rbp+var_40], eax"], [221, "mov rax, [rbp+var_118]"], [222, "mov rdx, [rbp+ptr]"], [223, "mov [rax+30h], rdx"], [224, "mov eax, [rbp+var_40]"], [225, "lea rdx, ds:0[rax*4]"], [226, "mov rax, [rbp+ptr]"], [227, "mov rsi, rdx"], [228, "mov rdi, rax"], [229, "call _realloc"], [230, "mov [rbp+ptr], rax"], [231, "cmp [rbp+ptr], 0"], [232, "jnz short loc_464959"], [233, "mov eax, 0FFFFFFFFh"], [234, "jmp loc_467EB3"], [235, "mov eax, [rbp+var_64]"], [236, "and eax, 100h"], [237, "test eax, eax"], [238, "jz short loc_4649E4"], [239, "mov rax, [rbp+var_110]"], [240, "mov rax, [rax+40h]"], [241, "mov rax, [rax+358h]"], [242, "test rax, rax"], [243, "jnz short loc_464986"], [244, "mov eax, 0FFFFFFFFh"], [245, "jmp loc_467EB3"], [246, "mov rax, [rbp+var_110]"], [247, "mov rax, [rax+40h]"], [248, "mov rax, [rax+358h]"], [249, "mov r9, [rax+18h]"], [250, "mov rax, [rbp+var_110]"], [251, "mov rax, [rax+40h]"], [252, "mov rsi, [rax+358h]"], [253, "lea rdi, [rbp+var_C4]"], [254, "lea rcx, [rbp+var_D5]"], [255, "mov rdx, [rbp+var_120]"], [256, "mov rax, [rbp+var_118]"], [257, "mov r8, rdi"], [258, "mov rdi, rax"], [259, "call r9"], [260, "or [rbp+var_1C], eax"], [261, "cmp [rbp+var_1C], 0"], [262, "jz short loc_4649E4"], [263, "mov eax, [rbp+var_1C]"], [264, "jmp loc_467EB3"], [265, "mov eax, [rbp+var_64]"], [266, "and eax, 4"], [267, "test eax, eax"], [268, "jz loc_4672C9"], [269, "mov rax, [rbp+var_110]"], [270, "mov rax, [rax+40h]"], [271, "mov rax, [rax+360h]"], [272, "test rax, rax"], [273, "jnz short loc_464A13"], [274, "mov eax, 0FFFFFFFFh"], [275, "jmp loc_467EB3"], [276, "mov rax, [rbp+var_110]"], [277, "mov rax, [rax+40h]"], [278, "mov rax, [rax+360h]"], [279, "mov r9, [rax+18h]"], [280, "mov rax, [rbp+var_110]"], [281, "mov rax, [rax+40h]"], [282, "mov rsi, [rax+360h]"], [283, "lea rdi, [rbp+var_C4]"], [284, "lea rcx, [rbp+var_D4]"], [285, "mov rdx, [rbp+var_120]"], [286, "mov rax, [rbp+var_118]"], [287, "mov r8, rdi"], [288, "mov rdi, rax"], [289, "call r9"], [290, "or [rbp+var_1C], eax"], [291, "cmp [rbp+var_1C], 0"], [292, "jz short loc_464A71"], [293, "mov eax, [rbp+var_1C]"], [294, "jmp loc_467EB3"], [295, "mov edx, [rbp+var_D4]"], [296, "mov eax, [rbp+var_14]"], [297, "add eax, edx"], [298, "mov [rbp+var_D4], eax"], [299, "mov eax, [rbp+var_D4]"], [300, "test eax, eax"], [301, "jg short loc_464AB5"], [302, "mov edx, [rbp+var_D4]"], [303, "mov rax, cs:stderr"], [304, "mov esi, offset aErrorFeaturePo"], [305, "mov rdi, rax"], [306, "mov eax, 0"], [307, "call _fprintf"], [308, "mov eax, 0FFFFFFFFh"], [309, "jmp loc_467EB3"], [310, "mov eax, [rbp+var_D4]"], [311, "cmp [rbp+var_20], eax"], [312, "jge loc_464E3B"], [313, "mov rax, [rbp+var_128]"], [314, "mov eax, [rax+14h]"], [315, "lea edx, [rax+1]"], [316, "mov eax, [rbp+var_D4]"], [317, "cmp edx, eax"], [318, "jge short loc_464AE5"], [319, "mov eax, 0FFFFFFFFh"], [320, "jmp loc_467EB3"], [321, "mov rax, [rbp+var_118]"], [322, "mov rax, [rax+0A8h]"], [323, "test rax, rax"], [324, "jz loc_464DD7"], [325, "mov rax, [rbp+var_128]"], [326, "mov eax, [rax+8]"], [327, "test eax, eax"], [328, "js loc_464DD7"], [329, "mov edx, [rbp+var_D4]"], [330, "mov eax, [rbp+var_28]"], [331, "add eax, edx"], [332, "sub eax, [rbp+var_20]"], [333, "mov ecx, eax"], [334, "mov rax, [rbp+var_130]"], [335, "mov rdx, [rax+40h]"], [336, "mov rax, [rbp+var_128]"], [337, "mov eax, [rax+8]"], [338, "cdqe"], [339, "shl rax, 5"], [340, "add rax, rdx"], [341, "mov eax, [rax+8]"], [342, "cmp ecx, eax"], [343, "jbe loc_464C9C"], [344, "mov eax, cs:dword_499908"], [345, "test eax, eax"], [346, "jnz short loc_464B6F"], [347, "mov rax, cs:stderr"], [348, "mov rcx, rax"], [349, "mov edx, 29h "], [350, "mov esi, 1"], [351, "mov edi, offset aRefPosOutsideO"], [352, "call _fwrite"], [353, "mov cs:dword_499908, 1"], [354, "mov rax, [rbp+var_130]"], [355, "mov rdx, [rax+40h]"], [356, "mov rax, [rbp+var_128]"], [357, "mov eax, [rax+8]"], [358, "cdqe"], [359, "shl rax, 5"], [360, "add rax, rdx"], [361, "mov eax, [rax+8]"], [362, "mov edx, [rbp+var_28]"], [363, "sub eax, edx"], [364, "mov [rbp+var_74], eax"], [365, "cmp [rbp+var_74], 0"], [366, "jle loc_464C3D"], [367, "mov eax, [rbp+var_74]"], [368, "cdqe"], [369, "mov rdx, [rbp+var_118]"], [370, "mov rcx, [rdx+0A8h]"], [371, "mov rdx, [rbp+var_118]"], [372, "mov esi, [rdx+0B0h]"], [373, "mov edx, [rbp+var_28]"], [374, "sub edx, esi"], [375, "movsxd rdx, edx"], [376, "add rdx, 1"], [377, "lea rsi, [rcx+rdx]"], [378, "mov edx, [rbp+var_20]"], [379, "movsxd rdx, edx"], [380, "lea rcx, [rdx-1]"], [381, "mov rdx, [rbp+arg_8]"], [382, "add rcx, rdx"], [383, "mov rdx, rax"], [384, "mov rdi, rcx"], [385, "call _memcpy"], [386, "mov eax, [rbp+var_D4]"], [387, "sub eax, [rbp+var_20]"], [388, "sub eax, [rbp+var_74]"], [389, "test eax, eax"], [390, "jle short loc_464C70"], [391, "mov eax, [rbp+var_D4]"], [392, "sub eax, [rbp+var_20]"], [393, "sub eax, [rbp+var_74]"], [394, "cdqe"], [395, "mov edx, [rbp+var_20]"], [396, "lea ecx, [rdx-1]"], [397, "mov edx, [rbp+var_74]"], [398, "add edx, ecx"], [399, "movsxd rcx, edx"], [400, "mov rdx, [rbp+arg_8]"], [401, "add rcx, rdx"], [402, "mov rdx, rax"], [403, "mov esi, 4Eh "], [404, "mov rdi, rcx"], [405, "call _memset"], [406, "jmp short loc_464C70"], [407, "mov rax, [rbp+var_128]"], [408, "mov eax, [rax+14h]"], [409, "sub eax, [rbp+var_20]"], [410, "add eax, 1"], [411, "cdqe"], [412, "mov edx, [rbp+var_20]"], [413, "movsxd rdx, edx"], [414, "lea rcx, [rdx-1]"], [415, "mov rdx, [rbp+arg_8]"], [416, "add rcx, rdx"], [417, "mov rdx, rax"], [418, "mov esi, 4Eh "], [419, "mov rdi, rcx"], [420, "call _memset"], [421, "mov eax, [rbp+var_D0]"], [422, "test eax, eax"], [423, "js loc_464DD7"], [424, "mov eax, [rbp+var_D4]"], [425, "sub eax, [rbp+var_20]"], [426, "mov edx, eax"], [427, "mov eax, [rbp+var_D0]"], [428, "add eax, edx"], [429, "mov [rbp+var_D0], eax"], [430, "jmp loc_464DD7"], [431, "cmp [rbp+var_4C], 0"], [432, "jnz short loc_464CAC"], [433, "cmp [rbp+var_50], 0"], [434, "jz loc_464D85"], [435, "mov [rbp+var_54], 0"], [436, "jmp loc_464D71"], [437, "mov rax, [rbp+var_118]"], [438, "mov rdx, [rax+0A8h]"], [439, "mov rax, [rbp+var_118]"], [440, "mov ecx, [rax+0B0h]"], [441, "mov eax, [rbp+var_28]"], [442, "sub eax, ecx"], [443, "lea ecx, [rax+1]"], [444, "mov eax, [rbp+var_54]"], [445, "add eax, ecx"], [446, "cdqe"], [447, "add rax, rdx"], [448, "movzx eax, byte ptr [rax]"], [449, "mov [rbp+var_6D], al"], [450, "cmp [rbp+var_6D], 4Eh "], [451, "jnz short loc_464D43"], [452, "mov rax, [rbp+var_118]"], [453, "mov rdx, [rax+0A8h]"], [454, "mov rax, [rbp+var_118]"], [455, "mov ecx, [rax+0B0h]"], [456, "mov eax, [rbp+var_28]"], [457, "sub eax, ecx"], [458, "lea ecx, [rax+1]"], [459, "mov eax, [rbp+var_54]"], [460, "add eax, ecx"], [461, "cdqe"], [462, "add rax, rdx"], [463, "movzx eax, byte ptr [rax]"], [464, "movsx edx, al"], [465, "lea rcx, [rbp+var_D0]"], [466, "mov esi, [rbp+var_4C]"], [467, "mov rax, [rbp+var_118]"], [468, "mov rdi, rax"], [469, "call sub_464239"], [470, "add [rbp+var_44], 1"], [471, "jmp short loc_464D52"], [472, "mov eax, [rbp+var_D0]"], [473, "add eax, 1"], [474, "mov [rbp+var_D0], eax"], [475, "mov eax, [rbp+var_20]"], [476, "lea edx, [rax-1]"], [477, "mov eax, [rbp+var_54]"], [478, "add eax, edx"], [479, "movsxd rdx, eax"], [480, "mov rax, [rbp+arg_8]"], [481, "add rdx, rax"], [482, "movzx eax, [rbp+var_6D]"], [483, "mov [rdx], al"], [484, "add [rbp+var_54], 1"], [485, "mov eax, [rbp+var_D4]"], [486, "sub eax, [rbp+var_20]"], [487, "cmp [rbp+var_54], eax"], [488, "jl loc_464CB8"], [489, "jmp short loc_464DD7"], [490, "mov eax, [rbp+var_D4]"], [491, "sub eax, [rbp+var_20]"], [492, "cdqe"], [493, "mov rdx, [rbp+var_118]"], [494, "mov rcx, [rdx+0A8h]"], [495, "mov rdx, [rbp+var_118]"], [496, "mov esi, [rdx+0B0h]"], [497, "mov edx, [rbp+var_28]"], [498, "sub edx, esi"], [499, "movsxd rdx, edx"], [500, "add rdx, 1"], [501, "lea rsi, [rcx+rdx]"], [502, "mov edx, [rbp+var_20]"], [503, "movsxd rdx, edx"], [504, "lea rcx, [rdx-1]"], [505, "mov rdx, [rbp+arg_8]"], [506, "add rcx, rdx"], [507, "mov rdx, rax"], [508, "mov rdi, rcx"], [509, "call _memcpy"], [510, "cmp [rbp+var_24], 0"], [511, "jz short loc_464E13"], [512, "cmp [rbp+var_2C], 0"], [513, "jz short loc_464E13"], [514, "mov eax, [rbp+var_24]"], [515, "shl eax, 4"], [516, "mov ecx, eax"], [517, "mov eax, [rbp+var_3C]"], [518, "lea edx, [rax+1]"], [519, "mov [rbp+var_3C], edx"], [520, "mov eax, eax"], [521, "lea rdx, ds:0[rax*4]"], [522, "mov rax, [rbp+ptr]"], [523, "add rax, rdx"], [524, "mov edx, [rbp+var_2C]"], [525, "add edx, ecx"], [526, "mov [rax], edx"], [527, "mov [rbp+var_24], 0"], [528, "mov [rbp+var_2C], 0"], [529, "mov eax, [rbp+var_D4]"], [530, "sub eax, [rbp+var_20]"], [531, "add [rbp+var_24], eax"], [532, "mov eax, [rbp+var_D4]"], [533, "sub eax, [rbp+var_20]"], [534, "add [rbp+var_28], eax"], [535, "mov eax, [rbp+var_D4]"], [536, "mov [rbp+var_20], eax"], [537, "mov eax, [rbp+var_D4]"], [538, "mov [rbp+var_14], eax"], [539, "mov eax, [rbp+var_64]"], [540, "and eax, 100h"], [541, "test eax, eax"], [542, "jz loc_467739"], [543, "movzx eax, [rbp+var_D5]"], [544, "movsx eax, al"], [545, "sub eax, 42h "], [546, "cmp eax, 2Fh"], [547, "ja def_464E74"], [548, "mov eax, eax"], [549, "mov rax, ds:jpt_464E74[rax*8]"], [550, "jmp rax"], [551, "mov [rbp+var_DC], 1"], [552, "mov [rbp+var_58], 0"], [553, "cmp [rbp+var_24], 0"], [554, "jz short loc_464EBD"], [555, "mov eax, [rbp+var_24]"], [556, "shl eax, 4"], [557, "mov ecx, eax"], [558, "mov eax, [rbp+var_3C]"], [559, "lea edx, [rax+1]"], [560, "mov [rbp+var_3C], edx"], [561, "mov eax, eax"], [562, "lea rdx, ds:0[rax*4]"], [563, "mov rax, [rbp+ptr]"], [564, "add rax, rdx"], [565, "mov edx, [rbp+var_2C]"], [566, "add edx, ecx"], [567, "mov [rax], edx"], [568, "mov [rbp+var_24], 0"], [569, "mov rax, [rbp+var_108]"], [570, "mov eax, [rax+0Ch]"], [571, "sar eax, 8"], [572, "cmp eax, 1"], [573, "jnz loc_464F9F"], [574, "mov eax, [rbp+var_64]"], [575, "and eax, 800h"], [576, "test eax, eax"], [577, "jz loc_465068"], [578, "mov rax, [rbp+var_110]"], [579, "mov rax, [rax+40h]"], [580, "mov rax, [rax+2E8h]"], [581, "test rax, rax"], [582, "jz short loc_464F6B"], [583, "mov rax, [rbp+var_110]"], [584, "mov rax, [rax+40h]"], [585, "mov rax, [rax+2E8h]"], [586, "mov r9, [rax+18h]"], [587, "mov rax, [rbp+var_128]"], [588, "mov eax, [rax+14h]"], [589, "test eax, eax"], [590, "jz short loc_464F34"], [591, "mov eax, [rbp+var_D4]"], [592, "cdqe"], [593, "lea rdx, [rax-1]"], [594, "mov rax, [rbp+arg_8]"], [595, "lea rcx, [rdx+rax]"], [596, "jmp short loc_464F39"], [597, "mov ecx, 0"], [598, "mov rax, [rbp+var_110]"], [599, "mov rax, [rax+40h]"], [600, "mov rsi, [rax+2E8h]"], [601, "lea rdi, [rbp+var_DC]"], [602, "mov rdx, [rbp+var_120]"], [603, "mov rax, [rbp+var_118]"], [604, "mov r8, rdi"], [605, "mov rdi, rax"], [606, "call r9"], [607, "jmp short loc_464F90"], [608, "mov eax, [rbp+var_D4]"], [609, "cdqe"], [610, "lea rdx, [rax-1]"], [611, "mov rax, [rbp+arg_8]"], [612, "add rax, rdx"], [613, "mov byte ptr [rax], 4Eh "], [614, "mov [rbp+var_DC], 1"], [615, "mov eax, 0"], [616, "or [rbp+var_1C], eax"], [617, "mov [rbp+var_58], 1"], [618, "jmp loc_465068"], [619, "mov eax, [rbp+var_64]"], [620, "and eax, 2000000h"], [621, "test eax, eax"], [622, "jz loc_46506B"], [623, "mov rax, [rbp+var_110]"], [624, "mov rax, [rax+40h]"], [625, "mov rax, [rax+2F0h]"], [626, "test rax, rax"], [627, "jz short loc_465037"], [628, "mov rax, [rbp+var_110]"], [629, "mov rax, [rax+40h]"], [630, "mov rax, [rax+2F0h]"], [631, "mov r9, [rax+18h]"], [632, "mov rax, [rbp+var_128]"], [633, "mov eax, [rax+14h]"], [634, "test eax, eax"], [635, "jz short loc_465000"], [636, "mov eax, [rbp+var_D4]"], [637, "cdqe"], [638, "lea rdx, [rax-1]"], [639, "mov rax, [rbp+arg_8]"], [640, "lea rcx, [rdx+rax]"], [641, "jmp short loc_465005"], [642, "mov ecx, 0"], [643, "mov rax, [rbp+var_110]"], [644, "mov rax, [rax+40h]"], [645, "mov rsi, [rax+2F0h]"], [646, "lea rdi, [rbp+var_DC]"], [647, "mov rdx, [rbp+var_120]"], [648, "mov rax, [rbp+var_118]"], [649, "mov r8, rdi"], [650, "mov rdi, rax"], [651, "call r9"], [652, "jmp short loc_46505C"], [653, "mov eax, [rbp+var_D4]"], [654, "cdqe"], [655, "lea rdx, [rax-1]"], [656, "mov rax, [rbp+arg_8]"], [657, "add rax, rdx"], [658, "mov byte ptr [rax], 4Eh "], [659, "mov [rbp+var_DC], 1"], [660, "mov eax, 0"], [661, "or [rbp+var_1C], eax"], [662, "mov [rbp+var_58], 1"], [663, "jmp short loc_46506B"], [664, "nop"], [665, "jmp short loc_46506C"], [666, "nop"], [667, "cmp [rbp+var_58], 0"], [668, "jz loc_4672CC"], [669, "cmp [rbp+var_1C], 0"], [670, "jz short loc_465084"], [671, "mov eax, [rbp+var_1C]"], [672, "jmp loc_467EB3"], [673, "mov eax, [rbp+var_DC]"], [674, "shl eax, 4"], [675, "lea ecx, [rax+4]"], [676, "mov eax, [rbp+var_3C]"], [677, "lea edx, [rax+1]"], [678, "mov [rbp+var_3C], edx"], [679, "mov eax, eax"], [680, "lea rdx, ds:0[rax*4]"], [681, "mov rax, [rbp+ptr]"], [682, "add rax, rdx"], [683, "mov edx, ecx"], [684, "mov [rax], edx"], [685, "mov [rbp+var_2C], 4"], [686, "mov eax, [rbp+var_DC]"], [687, "add [rbp+var_20], eax"], [688, "jmp loc_4672DF"], [689, "cmp [rbp+var_24], 0"], [690, "jz short loc_4650FF"], [691, "cmp [rbp+var_2C], 0"], [692, "jz short loc_4650FF"], [693, "mov eax, [rbp+var_24]"], [694, "shl eax, 4"], [695, "mov ecx, eax"], [696, "mov eax, [rbp+var_3C]"], [697, "lea edx, [rax+1]"], [698, "mov [rbp+var_3C], edx"], [699, "mov eax, eax"], [700, "lea rdx, ds:0[rax*4]"], [701, "mov rax, [rbp+ptr]"], [702, "add rax, rdx"], [703, "mov edx, [rbp+var_2C]"], [704, "add edx, ecx"], [705, "mov [rax], edx"], [706, "mov [rbp+var_24], 0"], [707, "mov eax, [rbp+var_64]"], [708, "and eax, 400h"], [709, "test eax, eax"], [710, "jz loc_4654F2"], [711, "mov rax, [rbp+var_110]"], [712, "mov rax, [rax+40h]"], [713, "mov rax, [rax+378h]"], [714, "test rax, rax"], [715, "jnz short loc_465130"], [716, "mov eax, 0FFFFFFFFh"], [717, "jmp loc_467EB3"], [718, "mov rax, [rbp+var_110]"], [719, "mov rax, [rax+40h]"], [720, "mov rax, [rax+378h]"], [721, "mov r9, [rax+18h]"], [722, "mov rax, [rbp+var_110]"], [723, "mov rax, [rax+40h]"], [724, "mov rsi, [rax+378h]"], [725, "lea rdi, [rbp+var_C4]"], [726, "lea rcx, [rbp+var_DD]"], [727, "mov rdx, [rbp+var_120]"], [728, "mov rax, [rbp+var_118]"], [729, "mov r8, rdi"], [730, "mov rdi, rax"], [731, "call r9"], [732, "or [rbp+var_1C], eax"], [733, "cmp [rbp+var_1C], 0"], [734, "jz short loc_465190"], [735, "mov eax, 0FFFFFFFFh"], [736, "jmp loc_467EB3"], [737, "mov rax, [rbp+var_130]"], [738, "mov rdx, [rax+40h]"], [739, "mov rax, [rbp+var_128]"], [740, "mov eax, [rax+8]"], [741, "cdqe"], [742, "shl rax, 5"], [743, "add rax, rdx"], [744, "mov edx, [rax+8]"], [745, "mov eax, [rbp+var_28]"], [746, "cmp edx, eax"], [747, "jbe short loc_4651CF"], [748, "mov rax, [rbp+var_118]"], [749, "mov rax, [rax+0A8h]"], [750, "test rax, rax"], [751, "jnz loc_465405"], [752, "mov rax, [rbp+var_128]"], [753, "mov edx, [rax+14h]"], [754, "mov eax, [rbp+var_D4]"], [755, "cmp edx, eax"], [756, "jl short loc_465235"], [757, "mov rax, [rbp+var_110]"], [758, "mov rsi, [rax+40h]"], [759, "mov rax, [rbp+var_108]"], [760, "movzx eax, byte ptr [rax+828Eh]"], [761, "movzx eax, al"], [762, "movzx edx, [rbp+var_DD]"], [763, "movzx ecx, dl"], [764, "mov edx, [rbp+var_D4]"], [765, "movsxd rdx, edx"], [766, "lea rdi, [rdx-1]"], [767, "mov rdx, [rbp+arg_8]"], [768, "add rdx, rdi"], [769, "movsxd rcx, ecx"], [770, "cdqe"], [771, "shl rax, 2"], [772, "add rax, rsi"], [773, "add rax, rcx"], [774, "add rax, 38h "], [775, "movzx eax, byte ptr [rax]"], [776, "mov [rdx], al"], [777, "cmp [rbp+var_4C], 0"], [778, "jnz short loc_465245"], [779, "cmp [rbp+var_50], 0"], [780, "jz loc_4654F1"], [781, "mov eax, [rbp+var_D0]"], [782, "test eax, eax"], [783, "js loc_4653F2"], [784, "cmp [rbp+var_4C], 0"], [785, "jz loc_4653F2"], [786, "jmp loc_465349"], [787, "mov rax, [rbp+var_118]"], [788, "mov rax, [rax+88h]"], [789, "mov rax, [rax+28h]"], [790, "test rax, rax"], [791, "jz short loc_4652F1"], [792, "mov rax, [rbp+var_118]"], [793, "mov rax, [rax+88h]"], [794, "mov rax, [rax+28h]"], [795, "test rax, rax"], [796, "js short loc_46529B"], [797, "pxor xmm0, xmm0"], [798, "cvtsi2sd xmm0, rax"], [799, "jmp short loc_4652B4"], [800, "mov rdx, rax"], [801, "shr rdx, 1"], [802, "and eax, 1"], [803, "or rdx, rax"], [804, "pxor xmm0, xmm0"], [805, "cvtsi2sd xmm0, rdx"], [806, "addsd xmm0, xmm0"], [807, "movsd xmm1, cs:qword_48A258"], [808, "mulsd xmm0, xmm1"], [809, "comisd xmm0, cs:qword_48A260"], [810, "jnb short loc_4652D1"], [811, "cvttsd2si rax, xmm0"], [812, "jmp short loc_4652F6"], [813, "movsd xmm1, cs:qword_48A260"], [814, "subsd xmm0, xmm1"], [815, "cvttsd2si rax, xmm0"], [816, "mov rdx, 8000000000000000h"], [817, "xor rax, rdx"], [818, "jmp short loc_4652F6"], [819, "mov eax, 400h"], [820, "mov rdx, [rbp+var_118]"], [821, "mov rdx, [rdx+88h]"], [822, "mov [rdx+28h], rax"], [823, "mov rax, [rbp+var_118]"], [824, "mov rax, [rax+88h]"], [825, "mov rdx, [rax+28h]"], [826, "mov rax, [rbp+var_118]"], [827, "mov rax, [rax+88h]"], [828, "mov rax, [rax+20h]"], [829, "mov rcx, [rbp+var_118]"], [830, "mov rbx, [rcx+88h]"], [831, "mov rsi, rdx"], [832, "mov rdi, rax"], [833, "call _realloc"], [834, "mov [rbx+20h], rax"], [835, "mov rax, [rbp+var_118]"], [836, "mov rax, [rax+88h]"], [837, "mov rdx, [rax+28h]"], [838, "mov rax, [rbp+var_118]"], [839, "mov rax, [rax+88h]"], [840, "mov rax, [rax+30h]"], [841, "add rax, 0Bh"], [842, "cmp rdx, rax"], [843, "jbe loc_465262"], [844, "mov rax, [rbp+var_118]"], [845, "mov rax, [rax+88h]"], [846, "mov rdx, [rax+20h]"], [847, "mov rax, [rbp+var_118]"], [848, "mov rax, [rax+88h]"], [849, "mov rax, [rax+30h]"], [850, "add rax, rdx"], [851, "mov [rbp+var_98], rax"], [852, "mov eax, [rbp+var_D0]"], [853, "mov edx, eax"], [854, "mov rax, [rbp+var_98]"], [855, "mov esi, edx"], [856, "mov rdi, rax"], [857, "call sub_4602E4"], [858, "sub rax, [rbp+var_98]"], [859, "mov rdx, rax"], [860, "mov rax, [rbp+var_118]"], [861, "mov rax, [rax+88h]"], [862, "mov rcx, [rax+30h]"], [863, "mov rax, [rbp+var_118]"], [864, "mov rax, [rax+88h]"], [865, "add rdx, rcx"], [866, "mov [rax+30h], rdx"], [867, "mov [rbp+var_D0], 0FFFFFFFFh"], [868, "sub [rbp+var_44], 1"], [869, "jmp loc_4654F1"], [870, "mov rax, [rbp+var_118]"], [871, "mov eax, [rax+0B4h]"], [872, "cmp [rbp+var_28], eax"], [873, "jg short loc_465445"], [874, "mov rax, [rbp+var_118]"], [875, "mov rdx, [rax+0A8h]"], [876, "mov rax, [rbp+var_118]"], [877, "mov ecx, [rax+0B0h]"], [878, "mov eax, [rbp+var_28]"], [879, "sub eax, ecx"], [880, "cdqe"], [881, "add rax, 1"], [882, "add rax, rdx"], [883, "movzx eax, byte ptr [rax]"], [884, "jmp short loc_46544A"], [885, "mov eax, 4Eh "], [886, "mov [rbp+var_8A], al"], [887, "movzx eax, [rbp+var_8A]"], [888, "mov rdx, [rbp+var_108]"], [889, "cdqe"], [890, "movzx eax, byte ptr [rdx+rax+8240h]"], [891, "movzx eax, al"], [892, "mov [rbp+var_90], eax"], [893, "mov rax, [rbp+var_128]"], [894, "mov edx, [rax+14h]"], [895, "mov eax, [rbp+var_D4]"], [896, "cmp edx, eax"], [897, "jl short loc_4654CC"], [898, "mov rax, [rbp+var_110]"], [899, "mov rsi, [rax+40h]"], [900, "movzx eax, [rbp+var_DD]"], [901, "movzx eax, al"], [902, "mov edx, [rbp+var_D4]"], [903, "movsxd rdx, edx"], [904, "lea rcx, [rdx-1]"], [905, "mov rdx, [rbp+arg_8]"], [906, "add rdx, rcx"], [907, "movsxd rcx, eax"], [908, "mov eax, [rbp+var_90]"], [909, "cdqe"], [910, "shl rax, 2"], [911, "add rax, rsi"], [912, "add rax, rcx"], [913, "add rax, 38h "], [914, "movzx eax, byte ptr [rax]"], [915, "mov [rdx], al"], [916, "movzx eax, [rbp+var_8A]"], [917, "movsx edx, al"], [918, "lea rcx, [rbp+var_D0]"], [919, "mov esi, [rbp+var_4C]"], [920, "mov rax, [rbp+var_118]"], [921, "mov rdi, rax"], [922, "call sub_464239"], [923, "jmp short loc_4654F2"], [924, "nop"], [925, "mov [rbp+var_2C], 0"], [926, "add [rbp+var_44], 1"], [927, "add [rbp+var_24], 1"], [928, "add [rbp+var_20], 1"], [929, "add [rbp+var_28], 1"], [930, "jmp loc_4672DF"], [931, "cmp [rbp+var_24], 0"], [932, "jz short loc_46554A"], [933, "cmp [rbp+var_2C], 2"], [934, "jz short loc_46554A"], [935, "mov eax, [rbp+var_24]"], [936, "shl eax, 4"], [937, "mov ecx, eax"], [938, "mov eax, [rbp+var_3C]"], [939, "lea edx, [rax+1]"], [940, "mov [rbp+var_3C], edx"], [941, "mov eax, eax"], [942, "lea rdx, ds:0[rax*4]"], [943, "mov rax, [rbp+ptr]"], [944, "add rax, rdx"], [945, "mov edx, [rbp+var_2C]"], [946, "add edx, ecx"], [947, "mov [rax], edx"], [948, "mov [rbp+var_24], 0"], [949, "mov eax, [rbp+var_64]"], [950, "and eax, 10h"], [951, "test eax, eax"], [952, "jz loc_4672CF"], [953, "mov rax, [rbp+var_110]"], [954, "mov rax, [rax+40h]"], [955, "mov rax, [rax+368h]"], [956, "test rax, rax"], [957, "jnz short loc_465579"], [958, "mov eax, 0FFFFFFFFh"], [959, "jmp loc_467EB3"], [960, "mov rax, [rbp+var_110]"], [961, "mov rax, [rax+40h]"], [962, "mov rax, [rax+368h]"], [963, "mov r9, [rax+18h]"], [964, "mov rax, [rbp+var_110]"], [965, "mov rax, [rax+40h]"], [966, "mov rsi, [rax+368h]"], [967, "lea rdi, [rbp+var_C4]"], [968, "lea rcx, [rbp+var_CC]"], [969, "mov rdx, [rbp+var_120]"], [970, "mov rax, [rbp+var_118]"], [971, "mov r8, rdi"], [972, "mov rdi, rax"], [973, "call r9"], [974, "or [rbp+var_1C], eax"], [975, "cmp [rbp+var_1C], 0"], [976, "jz short loc_4655D7"], [977, "mov eax, [rbp+var_1C]"], [978, "jmp loc_467EB3"], [979, "cmp [rbp+var_4C], 0"], [980, "jnz short loc_4655E7"], [981, "cmp [rbp+var_50], 0"], [982, "jz loc_46607C"], [983, "mov eax, [rbp+var_D0]"], [984, "test eax, eax"], [985, "js loc_465794"], [986, "cmp [rbp+var_4C], 0"], [987, "jz loc_465794"], [988, "jmp loc_4656EB"], [989, "mov rax, [rbp+var_118]"], [990, "mov rax, [rax+88h]"], [991, "mov rax, [rax+28h]"], [992, "test rax, rax"], [993, "jz short loc_465693"], [994, "mov rax, [rbp+var_118]"], [995, "mov rax, [rax+88h]"], [996, "mov rax, [rax+28h]"], [997, "test rax, rax"], [998, "js short loc_46563D"], [999, "pxor xmm0, xmm0"], [1000, "cvtsi2sd xmm0, rax"], [1001, "jmp short loc_465656"], [1002, "mov rdx, rax"], [1003, "shr rdx, 1"], [1004, "and eax, 1"], [1005, "or rdx, rax"], [1006, "pxor xmm0, xmm0"], [1007, "cvtsi2sd xmm0, rdx"], [1008, "addsd xmm0, xmm0"], [1009, "movsd xmm1, cs:qword_48A258"], [1010, "mulsd xmm0, xmm1"], [1011, "comisd xmm0, cs:qword_48A260"], [1012, "jnb short loc_465673"], [1013, "cvttsd2si rax, xmm0"], [1014, "jmp short loc_465698"], [1015, "movsd xmm1, cs:qword_48A260"], [1016, "subsd xmm0, xmm1"], [1017, "cvttsd2si rax, xmm0"], [1018, "mov rdx, 8000000000000000h"], [1019, "xor rax, rdx"], [1020, "jmp short loc_465698"], [1021, "mov eax, 400h"], [1022, "mov rdx, [rbp+var_118]"], [1023, "mov rdx, [rdx+88h]"], [1024, "mov [rdx+28h], rax"], [1025, "mov rax, [rbp+var_118]"], [1026, "mov rax, [rax+88h]"], [1027, "mov rdx, [rax+28h]"], [1028, "mov rax, [rbp+var_118]"], [1029, "mov rax, [rax+88h]"], [1030, "mov rax, [rax+20h]"], [1031, "mov rcx, [rbp+var_118]"], [1032, "mov rbx, [rcx+88h]"], [1033, "mov rsi, rdx"], [1034, "mov rdi, rax"], [1035, "call _realloc"], [1036, "mov [rbx+20h], rax"], [1037, "mov rax, [rbp+var_118]"], [1038, "mov rax, [rax+88h]"], [1039, "mov rdx, [rax+28h]"], [1040, "mov rax, [rbp+var_118]"], [1041, "mov rax, [rax+88h]"], [1042, "mov rax, [rax+30h]"], [1043, "add rax, 0Bh"], [1044, "cmp rdx, rax"], [1045, "jbe loc_465604"], [1046, "mov rax, [rbp+var_118]"], [1047, "mov rax, [rax+88h]"], [1048, "mov rdx, [rax+20h]"], [1049, "mov rax, [rbp+var_118]"], [1050, "mov rax, [rax+88h]"], [1051, "mov rax, [rax+30h]"], [1052, "add rax, rdx"], [1053, "mov [rbp+var_A0], rax"], [1054, "mov eax, [rbp+var_D0]"], [1055, "mov edx, eax"], [1056, "mov rax, [rbp+var_A0]"], [1057, "mov esi, edx"], [1058, "mov rdi, rax"], [1059, "call sub_4602E4"], [1060, "sub rax, [rbp+var_A0]"], [1061, "mov rdx, rax"], [1062, "mov rax, [rbp+var_118]"], [1063, "mov rax, [rax+88h]"], [1064, "mov rcx, [rax+30h]"], [1065, "mov rax, [rbp+var_118]"], [1066, "mov rax, [rax+88h]"], [1067, "add rdx, rcx"], [1068, "mov [rax+30h], rdx"], [1069, "mov edx, [rbp+var_CC]"], [1070, "mov eax, [rbp+var_28]"], [1071, "add eax, edx"], [1072, "mov ecx, eax"], [1073, "mov rax, [rbp+var_130]"], [1074, "mov rdx, [rax+40h]"], [1075, "mov rax, [rbp+var_128]"], [1076, "mov eax, [rax+8]"], [1077, "cdqe"], [1078, "shl rax, 5"], [1079, "add rax, rdx"], [1080, "mov eax, [rax+8]"], [1081, "cmp ecx, eax"], [1082, "ja loc_465AF5"], [1083, "cmp [rbp+var_4C], 0"], [1084, "jz loc_465AE7"], [1085, "jmp loc_4658C0"], [1086, "mov rax, [rbp+var_118]"], [1087, "mov rax, [rax+88h]"], [1088, "mov rax, [rax+28h]"], [1089, "test rax, rax"], [1090, "jz short loc_465868"], [1091, "mov rax, [rbp+var_118]"], [1092, "mov rax, [rax+88h]"], [1093, "mov rax, [rax+28h]"], [1094, "test rax, rax"], [1095, "js short loc_465812"], [1096, "pxor xmm0, xmm0"], [1097, "cvtsi2sd xmm0, rax"], [1098, "jmp short loc_46582B"], [1099, "mov rdx, rax"], [1100, "shr rdx, 1"], [1101, "and eax, 1"], [1102, "or rdx, rax"], [1103, "pxor xmm0, xmm0"], [1104, "cvtsi2sd xmm0, rdx"], [1105, "addsd xmm0, xmm0"], [1106, "movsd xmm1, cs:qword_48A258"], [1107, "mulsd xmm0, xmm1"], [1108, "comisd xmm0, cs:qword_48A260"], [1109, "jnb short loc_465848"], [1110, "cvttsd2si rax, xmm0"], [1111, "jmp short loc_46586D"], [1112, "movsd xmm1, cs:qword_48A260"], [1113, "subsd xmm0, xmm1"], [1114, "cvttsd2si rax, xmm0"], [1115, "mov rdx, 8000000000000000h"], [1116, "xor rax, rdx"], [1117, "jmp short loc_46586D"], [1118, "mov eax, 400h"], [1119, "mov rdx, [rbp+var_118]"], [1120, "mov rdx, [rdx+88h]"], [1121, "mov [rdx+28h], rax"], [1122, "mov rax, [rbp+var_118]"], [1123, "mov rax, [rax+88h]"], [1124, "mov rdx, [rax+28h]"], [1125, "mov rax, [rbp+var_118]"], [1126, "mov rax, [rax+88h]"], [1127, "mov rax, [rax+20h]"], [1128, "mov rcx, [rbp+var_118]"], [1129, "mov rbx, [rcx+88h]"], [1130, "mov rsi, rdx"], [1131, "mov rdi, rax"], [1132, "call _realloc"], [1133, "mov [rbx+20h], rax"], [1134, "mov rax, [rbp+var_118]"], [1135, "mov rax, [rax+88h]"], [1136, "mov rdx, [rax+28h]"], [1137, "mov rax, [rbp+var_118]"], [1138, "mov rax, [rax+88h]"], [1139, "mov rax, [rax+30h]"], [1140, "add rax, 1"], [1141, "cmp rdx, rax"], [1142, "jbe loc_4657D9"], [1143, "mov rax, [rbp+var_118]"], [1144, "mov rax, [rax+88h]"], [1145, "mov rsi, [rax+20h]"], [1146, "mov rax, [rbp+var_118]"], [1147, "mov rax, [rax+88h]"], [1148, "mov rdx, [rax+30h]"], [1149, "lea rcx, [rdx+1]"], [1150, "mov [rax+30h], rcx"], [1151, "lea rax, [rsi+rdx]"], [1152, "mov byte ptr [rax], 5Eh "], [1153, "jmp loc_465A10"], [1154, "mov rax, [rbp+var_118]"], [1155, "mov rax, [rax+88h]"], [1156, "mov rax, [rax+28h]"], [1157, "test rax, rax"], [1158, "jz short loc_4659B8"], [1159, "mov rax, [rbp+var_118]"], [1160, "mov rax, [rax+88h]"], [1161, "mov rax, [rax+28h]"], [1162, "test rax, rax"], [1163, "js short loc_465962"], [1164, "pxor xmm0, xmm0"], [1165, "cvtsi2sd xmm0, rax"], [1166, "jmp short loc_46597B"], [1167, "mov rdx, rax"], [1168, "shr rdx, 1"], [1169, "and eax, 1"], [1170, "or rdx, rax"], [1171, "pxor xmm0, xmm0"], [1172, "cvtsi2sd xmm0, rdx"], [1173, "addsd xmm0, xmm0"], [1174, "movsd xmm1, cs:qword_48A258"], [1175, "mulsd xmm0, xmm1"], [1176, "comisd xmm0, cs:qword_48A260"], [1177, "jnb short loc_465998"], [1178, "cvttsd2si rax, xmm0"], [1179, "jmp short loc_4659BD"], [1180, "movsd xmm1, cs:qword_48A260"], [1181, "subsd xmm0, xmm1"], [1182, "cvttsd2si rax, xmm0"], [1183, "mov rdx, 8000000000000000h"], [1184, "xor rax, rdx"], [1185, "jmp short loc_4659BD"], [1186, "mov eax, 400h"], [1187, "mov rdx, [rbp+var_118]"], [1188, "mov rdx, [rdx+88h]"], [1189, "mov [rdx+28h], rax"], [1190, "mov rax, [rbp+var_118]"], [1191, "mov rax, [rax+88h]"], [1192, "mov rdx, [rax+28h]"], [1193, "mov rax, [rbp+var_118]"], [1194, "mov rax, [rax+88h]"], [1195, "mov rax, [rax+20h]"], [1196, "mov rcx, [rbp+var_118]"], [1197, "mov rbx, [rcx+88h]"], [1198, "mov rsi, rdx"], [1199, "mov rdi, rax"], [1200, "call _realloc"], [1201, "mov [rbx+20h], rax"], [1202, "mov rax, [rbp+var_118]"], [1203, "mov rax, [rax+88h]"], [1204, "mov rdx, [rax+28h]"], [1205, "mov rax, [rbp+var_118]"], [1206, "mov rax, [rax+88h]"], [1207, "mov rcx, [rax+30h]"], [1208, "mov eax, [rbp+var_CC]"], [1209, "cdqe"], [1210, "add rax, rcx"], [1211, "cmp rdx, rax"], [1212, "jbe loc_465929"], [1213, "mov eax, [rbp+var_CC]"], [1214, "cdqe"], [1215, "mov rdx, [rbp+var_118]"], [1216, "mov rcx, [rdx+0A8h]"], [1217, "mov rdx, [rbp+var_118]"], [1218, "mov esi, [rdx+0B0h]"], [1219, "mov edx, [rbp+var_28]"], [1220, "sub edx, esi"], [1221, "movsxd rdx, edx"], [1222, "add rdx, 1"], [1223, "lea rsi, [rcx+rdx]"], [1224, "mov rdx, [rbp+var_118]"], [1225, "mov rdx, [rdx+88h]"], [1226, "mov rcx, [rdx+20h]"], [1227, "mov rdx, [rbp+var_118]"], [1228, "mov rdx, [rdx+88h]"], [1229, "mov rdx, [rdx+30h]"], [1230, "add rcx, rdx"], [1231, "mov rdx, rax"], [1232, "mov rdi, rcx"], [1233, "call _memcpy"], [1234, "mov rax, [rbp+var_118]"], [1235, "mov rax, [rax+88h]"], [1236, "mov rcx, [rax+30h]"], [1237, "mov eax, [rbp+var_CC]"], [1238, "movsxd rdx, eax"], [1239, "mov rax, [rbp+var_118]"], [1240, "mov rax, [rax+88h]"], [1241, "add rdx, rcx"], [1242, "mov [rax+30h], rdx"], [1243, "mov [rbp+var_D0], 0"], [1244, "mov eax, [rbp+var_CC]"], [1245, "add [rbp+var_44], eax"], [1246, "jmp loc_46607C"], [1247, "mov rax, [rbp+var_130]"], [1248, "mov rdx, [rax+40h]"], [1249, "mov rax, [rbp+var_128]"], [1250, "mov eax, [rax+8]"], [1251, "cdqe"], [1252, "shl rax, 5"], [1253, "add rax, rdx"], [1254, "mov edx, [rax+8]"], [1255, "mov eax, [rbp+var_28]"], [1256, "cmp edx, eax"], [1257, "jb loc_466066"], [1258, "cmp [rbp+var_4C], 0"], [1259, "jz loc_466021"], [1260, "jmp loc_465C17"], [1261, "mov rax, [rbp+var_118]"], [1262, "mov rax, [rax+88h]"], [1263, "mov rax, [rax+28h]"], [1264, "test rax, rax"], [1265, "jz short loc_465BBF"], [1266, "mov rax, [rbp+var_118]"], [1267, "mov rax, [rax+88h]"], [1268, "mov rax, [rax+28h]"], [1269, "test rax, rax"], [1270, "js short loc_465B69"], [1271, "pxor xmm0, xmm0"], [1272, "cvtsi2sd xmm0, rax"], [1273, "jmp short loc_465B82"], [1274, "mov rdx, rax"], [1275, "shr rdx, 1"], [1276, "and eax, 1"], [1277, "or rdx, rax"], [1278, "pxor xmm0, xmm0"], [1279, "cvtsi2sd xmm0, rdx"], [1280, "addsd xmm0, xmm0"], [1281, "movsd xmm1, cs:qword_48A258"], [1282, "mulsd xmm0, xmm1"], [1283, "comisd xmm0, cs:qword_48A260"], [1284, "jnb short loc_465B9F"], [1285, "cvttsd2si rax, xmm0"], [1286, "jmp short loc_465BC4"], [1287, "movsd xmm1, cs:qword_48A260"], [1288, "subsd xmm0, xmm1"], [1289, "cvttsd2si rax, xmm0"], [1290, "mov rdx, 8000000000000000h"], [1291, "xor rax, rdx"], [1292, "jmp short loc_465BC4"], [1293, "mov eax, 400h"], [1294, "mov rdx, [rbp+var_118]"], [1295, "mov rdx, [rdx+88h]"], [1296, "mov [rdx+28h], rax"], [1297, "mov rax, [rbp+var_118]"], [1298, "mov rax, [rax+88h]"], [1299, "mov rdx, [rax+28h]"], [1300, "mov rax, [rbp+var_118]"], [1301, "mov rax, [rax+88h]"], [1302, "mov rax, [rax+20h]"], [1303, "mov rcx, [rbp+var_118]"], [1304, "mov rbx, [rcx+88h]"], [1305, "mov rsi, rdx"], [1306, "mov rdi, rax"], [1307, "call _realloc"], [1308, "mov [rbx+20h], rax"], [1309, "mov rax, [rbp+var_118]"], [1310, "mov rax, [rax+88h]"], [1311, "mov rdx, [rax+28h]"], [1312, "mov rax, [rbp+var_118]"], [1313, "mov rax, [rax+88h]"], [1314, "mov rax, [rax+30h]"], [1315, "add rax, 1"], [1316, "cmp rdx, rax"], [1317, "jbe loc_465B30"], [1318, "mov rax, [rbp+var_118]"], [1319, "mov rax, [rax+88h]"], [1320, "mov rsi, [rax+20h]"], [1321, "mov rax, [rbp+var_118]"], [1322, "mov rax, [rax+88h]"], [1323, "mov rdx, [rax+30h]"], [1324, "lea rcx, [rdx+1]"], [1325, "mov [rax+30h], rcx"], [1326, "lea rax, [rsi+rdx]"], [1327, "mov byte ptr [rax], 5Eh "], [1328, "jmp loc_465D67"], [1329, "mov rax, [rbp+var_118]"], [1330, "mov rax, [rax+88h]"], [1331, "mov rax, [rax+28h]"], [1332, "test rax, rax"], [1333, "jz short loc_465D0F"], [1334, "mov rax, [rbp+var_118]"], [1335, "mov rax, [rax+88h]"], [1336, "mov rax, [rax+28h]"], [1337, "test rax, rax"], [1338, "js short loc_465CB9"], [1339, "pxor xmm0, xmm0"], [1340, "cvtsi2sd xmm0, rax"], [1341, "jmp short loc_465CD2"], [1342, "mov rdx, rax"], [1343, "shr rdx, 1"], [1344, "and eax, 1"], [1345, "or rdx, rax"], [1346, "pxor xmm0, xmm0"], [1347, "cvtsi2sd xmm0, rdx"], [1348, "addsd xmm0, xmm0"], [1349, "movsd xmm1, cs:qword_48A258"], [1350, "mulsd xmm0, xmm1"], [1351, "comisd xmm0, cs:qword_48A260"], [1352, "jnb short loc_465CEF"], [1353, "cvttsd2si rax, xmm0"], [1354, "jmp short loc_465D14"], [1355, "movsd xmm1, cs:qword_48A260"], [1356, "subsd xmm0, xmm1"], [1357, "cvttsd2si rax, xmm0"], [1358, "mov rdx, 8000000000000000h"], [1359, "xor rax, rdx"], [1360, "jmp short loc_465D14"], [1361, "mov eax, 400h"], [1362, "mov rdx, [rbp+var_118]"], [1363, "mov rdx, [rdx+88h]"], [1364, "mov [rdx+28h], rax"], [1365, "mov rax, [rbp+var_118]"], [1366, "mov rax, [rax+88h]"], [1367, "mov rdx, [rax+28h]"], [1368, "mov rax, [rbp+var_118]"], [1369, "mov rax, [rax+88h]"], [1370, "mov rax, [rax+20h]"], [1371, "mov rcx, [rbp+var_118]"], [1372, "mov rbx, [rcx+88h]"], [1373, "mov rsi, rdx"], [1374, "mov rdi, rax"], [1375, "call _realloc"], [1376, "mov [rbx+20h], rax"], [1377, "mov rax, [rbp+var_118]"], [1378, "mov rax, [rax+88h]"], [1379, "mov rdx, [rax+28h]"], [1380, "mov rax, [rbp+var_118]"], [1381, "mov rax, [rax+88h]"], [1382, "mov rcx, [rax+30h]"], [1383, "mov rax, [rbp+var_130]"], [1384, "mov rsi, [rax+40h]"], [1385, "mov rax, [rbp+var_128]"], [1386, "mov eax, [rax+8]"], [1387, "cdqe"], [1388, "shl rax, 5"], [1389, "add rax, rsi"], [1390, "mov eax, [rax+8]"], [1391, "mov esi, [rbp+var_28]"], [1392, "sub eax, esi"], [1393, "mov eax, eax"], [1394, "add rax, rcx"], [1395, "cmp rdx, rax"], [1396, "jbe loc_465C80"], [1397, "mov rax, [rbp+var_130]"], [1398, "mov rdx, [rax+40h]"], [1399, "mov rax, [rbp+var_128]"], [1400, "mov eax, [rax+8]"], [1401, "cdqe"], [1402, "shl rax, 5"], [1403, "add rax, rdx"], [1404, "mov eax, [rax+8]"], [1405, "mov edx, [rbp+var_28]"], [1406, "sub eax, edx"], [1407, "mov edx, eax"], [1408, "mov rax, [rbp+var_118]"], [1409, "mov rcx, [rax+0A8h]"], [1410, "mov rax, [rbp+var_118]"], [1411, "mov esi, [rax+0B0h]"], [1412, "mov eax, [rbp+var_28]"], [1413, "sub eax, esi"], [1414, "cdqe"], [1415, "add rax, 1"], [1416, "add rcx, rax"], [1417, "mov rax, [rbp+var_118]"], [1418, "mov rax, [rax+88h]"], [1419, "mov rsi, [rax+20h]"], [1420, "mov rax, [rbp+var_118]"], [1421, "mov rax, [rax+88h]"], [1422, "mov rax, [rax+30h]"], [1423, "add rax, rsi"], [1424, "mov rsi, rcx"], [1425, "mov rdi, rax"], [1426, "call _memcpy"], [1427, "mov rax, [rbp+var_118]"], [1428, "mov rax, [rax+88h]"], [1429, "mov rdx, [rax+30h]"], [1430, "mov rax, [rbp+var_130]"], [1431, "mov rcx, [rax+40h]"], [1432, "mov rax, [rbp+var_128]"], [1433, "mov eax, [rax+8]"], [1434, "cdqe"], [1435, "shl rax, 5"], [1436, "add rax, rcx"], [1437, "mov eax, [rax+8]"], [1438, "mov ecx, [rbp+var_28]"], [1439, "sub eax, ecx"], [1440, "mov ecx, eax"], [1441, "mov rax, [rbp+var_118]"], [1442, "mov rax, [rax+88h]"], [1443, "add rdx, rcx"], [1444, "mov [rax+30h], rdx"], [1445, "jmp loc_465F7D"], [1446, "mov rax, [rbp+var_118]"], [1447, "mov rax, [rax+88h]"], [1448, "mov rax, [rax+28h]"], [1449, "test rax, rax"], [1450, "jz short loc_465F25"], [1451, "mov rax, [rbp+var_118]"], [1452, "mov rax, [rax+88h]"], [1453, "mov rax, [rax+28h]"], [1454, "test rax, rax"], [1455, "js short loc_465ECF"], [1456, "pxor xmm0, xmm0"], [1457, "cvtsi2sd xmm0, rax"], [1458, "jmp short loc_465EE8"], [1459, "mov rdx, rax"], [1460, "shr rdx, 1"], [1461, "and eax, 1"], [1462, "or rdx, rax"], [1463, "pxor xmm0, xmm0"], [1464, "cvtsi2sd xmm0, rdx"], [1465, "addsd xmm0, xmm0"], [1466, "movsd xmm1, cs:qword_48A258"], [1467, "mulsd xmm0, xmm1"], [1468, "comisd xmm0, cs:qword_48A260"], [1469, "jnb short loc_465F05"], [1470, "cvttsd2si rax, xmm0"], [1471, "jmp short loc_465F2A"], [1472, "movsd xmm1, cs:qword_48A260"], [1473, "subsd xmm0, xmm1"], [1474, "cvttsd2si rax, xmm0"], [1475, "mov rdx, 8000000000000000h"], [1476, "xor rax, rdx"], [1477, "jmp short loc_465F2A"], [1478, "mov eax, 400h"], [1479, "mov rdx, [rbp+var_118]"], [1480, "mov rdx, [rdx+88h]"], [1481, "mov [rdx+28h], rax"], [1482, "mov rax, [rbp+var_118]"], [1483, "mov rax, [rax+88h]"], [1484, "mov rdx, [rax+28h]"], [1485, "mov rax, [rbp+var_118]"], [1486, "mov rax, [rax+88h]"], [1487, "mov rax, [rax+20h]"], [1488, "mov rcx, [rbp+var_118]"], [1489, "mov rbx, [rcx+88h]"], [1490, "mov rsi, rdx"], [1491, "mov rdi, rax"], [1492, "call _realloc"], [1493, "mov [rbx+20h], rax"], [1494, "mov rax, [rbp+var_118]"], [1495, "mov rax, [rax+88h]"], [1496, "mov rdx, [rax+28h]"], [1497, "mov rax, [rbp+var_118]"], [1498, "mov rax, [rax+88h]"], [1499, "mov rax, [rax+30h]"], [1500, "add rax, 0Bh"], [1501, "cmp rdx, rax"], [1502, "jbe loc_465E96"], [1503, "mov rax, [rbp+var_118]"], [1504, "mov rax, [rax+88h]"], [1505, "mov rdx, [rax+20h]"], [1506, "mov rax, [rbp+var_118]"], [1507, "mov rax, [rax+88h]"], [1508, "mov rax, [rax+30h]"], [1509, "add rax, rdx"], [1510, "mov [rbp+var_B0], rax"], [1511, "mov rax, [rbp+var_B0]"], [1512, "mov esi, 0"], [1513, "mov rdi, rax"], [1514, "call sub_4602E4"], [1515, "sub rax, [rbp+var_B0]"], [1516, "mov rdx, rax"], [1517, "mov rax, [rbp+var_118]"], [1518, "mov rax, [rax+88h]"], [1519, "mov rcx, [rax+30h]"], [1520, "mov rax, [rbp+var_118]"], [1521, "mov rax, [rax+88h]"], [1522, "add rdx, rcx"], [1523, "mov [rax+30h], rdx"], [1524, "mov edx, [rbp+var_28]"], [1525, "mov rax, [rbp+var_130]"], [1526, "mov rcx, [rax+40h]"], [1527, "mov rax, [rbp+var_128]"], [1528, "mov eax, [rax+8]"], [1529, "cdqe"], [1530, "shl rax, 5"], [1531, "add rax, rcx"], [1532, "mov eax, [rax+8]"], [1533, "sub edx, eax"], [1534, "mov eax, [rbp+var_CC]"], [1535, "add eax, edx"], [1536, "mov [rbp+var_A4], eax"], [1537, "mov eax, [rbp+var_CC]"], [1538, "sub eax, [rbp+var_A4]"], [1539, "add [rbp+var_44], eax"], [1540, "jmp short loc_466072"], [1541, "mov eax, [rbp+var_CC]"], [1542, "mov [rbp+var_A4], eax"], [1543, "mov [rbp+var_D0], 0FFFFFFFFh"], [1544, "mov [rbp+var_2C], 2"], [1545, "mov eax, [rbp+var_CC]"], [1546, "add [rbp+var_24], eax"], [1547, "mov eax, [rbp+var_CC]"], [1548, "add [rbp+var_28], eax"], [1549, "jmp loc_4672CF"], [1550, "mov [rbp+var_E4], 1"], [1551, "cmp [rbp+var_24], 0"], [1552, "jz short loc_4660E0"], [1553, "cmp [rbp+var_2C], 1"], [1554, "jz short loc_4660E0"], [1555, "mov eax, [rbp+var_24]"], [1556, "shl eax, 4"], [1557, "mov ecx, eax"], [1558, "mov eax, [rbp+var_3C]"], [1559, "lea edx, [rax+1]"], [1560, "mov [rbp+var_3C], edx"], [1561, "mov eax, eax"], [1562, "lea rdx, ds:0[rax*4]"], [1563, "mov rax, [rbp+ptr]"], [1564, "add rax, rdx"], [1565, "mov edx, [rbp+var_2C]"], [1566, "add edx, ecx"], [1567, "mov [rax], edx"], [1568, "mov [rbp+var_24], 0"], [1569, "mov eax, [rbp+var_64]"], [1570, "and eax, 800h"], [1571, "test eax, eax"], [1572, "jz loc_4672D2"], [1573, "mov rax, [rbp+var_110]"], [1574, "mov rax, [rax+40h]"], [1575, "mov rax, [rax+2E8h]"], [1576, "test rax, rax"], [1577, "jnz short loc_466111"], [1578, "mov eax, 0FFFFFFFFh"], [1579, "jmp loc_467EB3"], [1580, "mov rax, [rbp+var_110]"], [1581, "mov rax, [rax+40h]"], [1582, "mov rax, [rax+2E8h]"], [1583, "mov r9, [rax+18h]"], [1584, "mov rax, [rbp+var_128]"], [1585, "mov eax, [rax+14h]"], [1586, "test eax, eax"], [1587, "jz short loc_46614B"], [1588, "mov eax, [rbp+var_D4]"], [1589, "cdqe"], [1590, "lea rdx, [rax-1]"], [1591, "mov rax, [rbp+arg_8]"], [1592, "lea rcx, [rdx+rax]"], [1593, "jmp short loc_466150"], [1594, "mov ecx, 0"], [1595, "mov rax, [rbp+var_110]"], [1596, "mov rax, [rax+40h]"], [1597, "mov rsi, [rax+2E8h]"], [1598, "lea rdi, [rbp+var_E4]"], [1599, "mov rdx, [rbp+var_120]"], [1600, "mov rax, [rbp+var_118]"], [1601, "mov r8, rdi"], [1602, "mov rdi, rax"], [1603, "call r9"], [1604, "or [rbp+var_1C], eax"], [1605, "cmp [rbp+var_1C], 0"], [1606, "jz short loc_466191"], [1607, "mov eax, [rbp+var_1C]"], [1608, "jmp loc_467EB3"], [1609, "mov [rbp+var_2C], 1"], [1610, "mov eax, [rbp+var_E4]"], [1611, "add [rbp+var_24], eax"], [1612, "mov eax, [rbp+var_E4]"], [1613, "add [rbp+var_20], eax"], [1614, "mov eax, [rbp+var_E4]"], [1615, "add [rbp+var_44], eax"], [1616, "jmp loc_4672DF"], [1617, "cmp [rbp+var_24], 0"], [1618, "jz short loc_4661F4"], [1619, "cmp [rbp+var_2C], 1"], [1620, "jz short loc_4661F4"], [1621, "mov eax, [rbp+var_24]"], [1622, "shl eax, 4"], [1623, "mov ecx, eax"], [1624, "mov eax, [rbp+var_3C]"], [1625, "lea edx, [rax+1]"], [1626, "mov [rbp+var_3C], edx"], [1627, "mov eax, eax"], [1628, "lea rdx, ds:0[rax*4]"], [1629, "mov rax, [rbp+ptr]"], [1630, "add rax, rdx"], [1631, "mov edx, [rbp+var_2C]"], [1632, "add edx, ecx"], [1633, "mov [rax], edx"], [1634, "mov [rbp+var_24], 0"], [1635, "mov eax, [rbp+var_64]"], [1636, "and eax, 40h"], [1637, "test eax, eax"], [1638, "jz loc_4662A3"], [1639, "mov rax, [rbp+var_110]"], [1640, "mov rax, [rax+40h]"], [1641, "mov rax, [rax+370h]"], [1642, "test rax, rax"], [1643, "jnz short loc_466223"], [1644, "mov eax, 0FFFFFFFFh"], [1645, "jmp loc_467EB3"], [1646, "mov rax, [rbp+var_110]"], [1647, "mov rax, [rax+40h]"], [1648, "mov rax, [rax+370h]"], [1649, "mov r9, [rax+18h]"], [1650, "mov rax, [rbp+var_128]"], [1651, "mov eax, [rax+14h]"], [1652, "test eax, eax"], [1653, "jz short loc_46625D"], [1654, "mov eax, [rbp+var_D4]"], [1655, "cdqe"], [1656, "lea rdx, [rax-1]"], [1657, "mov rax, [rbp+arg_8]"], [1658, "lea rcx, [rdx+rax]"], [1659, "jmp short loc_466262"], [1660, "mov ecx, 0"], [1661, "mov rax, [rbp+var_110]"], [1662, "mov rax, [rax+40h]"], [1663, "mov rsi, [rax+370h]"], [1664, "lea rdi, [rbp+var_C4]"], [1665, "mov rdx, [rbp+var_120]"], [1666, "mov rax, [rbp+var_118]"], [1667, "mov r8, rdi"], [1668, "mov rdi, rax"], [1669, "call r9"], [1670, "or [rbp+var_1C], eax"], [1671, "cmp [rbp+var_1C], 0"], [1672, "jz short loc_4662A3"], [1673, "mov eax, [rbp+var_1C]"], [1674, "jmp loc_467EB3"], [1675, "mov [rbp+var_2C], 1"], [1676, "add [rbp+var_24], 1"], [1677, "add [rbp+var_20], 1"], [1678, "add [rbp+var_44], 1"], [1679, "jmp loc_4672DF"], [1680, "mov [rbp+var_E8], 1"], [1681, "cmp [rbp+var_24], 0"], [1682, "jz short loc_466301"], [1683, "cmp [rbp+var_2C], 0"], [1684, "jz short loc_466301"], [1685, "mov eax, [rbp+var_24]"], [1686, "shl eax, 4"], [1687, "mov ecx, eax"], [1688, "mov eax, [rbp+var_3C]"], [1689, "lea edx, [rax+1]"], [1690, "mov [rbp+var_3C], edx"], [1691, "mov eax, eax"], [1692, "lea rdx, ds:0[rax*4]"], [1693, "mov rax, [rbp+ptr]"], [1694, "add rax, rdx"], [1695, "mov edx, [rbp+var_2C]"], [1696, "add edx, ecx"], [1697, "mov [rax], edx"], [1698, "mov [rbp+var_24], 0"], [1699, "mov eax, [rbp+var_64]"], [1700, "and eax, 4000000h"], [1701, "test eax, eax"], [1702, "jz loc_466918"], [1703, "mov rax, [rbp+var_110]"], [1704, "mov rax, [rax+40h]"], [1705, "mov rax, [rax+3A8h]"], [1706, "test rax, rax"], [1707, "jnz short loc_466332"], [1708, "mov eax, 0FFFFFFFFh"], [1709, "jmp loc_467EB3"], [1710, "mov rax, [rbp+var_110]"], [1711, "mov rax, [rax+40h]"], [1712, "mov rax, [rax+3A8h]"], [1713, "mov r9, [rax+18h]"], [1714, "mov rax, [rbp+var_128]"], [1715, "mov eax, [rax+14h]"], [1716, "test eax, eax"], [1717, "jz short loc_46636C"], [1718, "mov eax, [rbp+var_D4]"], [1719, "cdqe"], [1720, "lea rdx, [rax-1]"], [1721, "mov rax, [rbp+arg_8]"], [1722, "lea rcx, [rdx+rax]"], [1723, "jmp short loc_466371"], [1724, "mov ecx, 0"], [1725, "mov rax, [rbp+var_110]"], [1726, "mov rax, [rax+40h]"], [1727, "mov rsi, [rax+3A8h]"], [1728, "lea rdi, [rbp+var_E8]"], [1729, "mov rdx, [rbp+var_120]"], [1730, "mov rax, [rbp+var_118]"], [1731, "mov r8, rdi"], [1732, "mov rdi, rax"], [1733, "call r9"], [1734, "or [rbp+var_1C], eax"], [1735, "cmp [rbp+var_1C], 0"], [1736, "jz short loc_4663B2"], [1737, "mov eax, [rbp+var_1C]"], [1738, "jmp loc_467EB3"], [1739, "cmp [rbp+var_4C], 0"], [1740, "jnz short loc_4663C2"], [1741, "cmp [rbp+var_50], 0"], [1742, "jz loc_466918"], [1743, "mov eax, [rbp+var_D0]"], [1744, "test eax, eax"], [1745, "js loc_466566"], [1746, "cmp [rbp+var_4C], 0"], [1747, "jz loc_466566"], [1748, "jmp loc_4664C6"], [1749, "mov rax, [rbp+var_118]"], [1750, "mov rax, [rax+88h]"], [1751, "mov rax, [rax+28h]"], [1752, "test rax, rax"], [1753, "jz short loc_46646E"], [1754, "mov rax, [rbp+var_118]"], [1755, "mov rax, [rax+88h]"], [1756, "mov rax, [rax+28h]"], [1757, "test rax, rax"], [1758, "js short loc_466418"], [1759, "pxor xmm0, xmm0"], [1760, "cvtsi2sd xmm0, rax"], [1761, "jmp short loc_466431"], [1762, "mov rdx, rax"], [1763, "shr rdx, 1"], [1764, "and eax, 1"], [1765, "or rdx, rax"], [1766, "pxor xmm0, xmm0"], [1767, "cvtsi2sd xmm0, rdx"], [1768, "addsd xmm0, xmm0"], [1769, "movsd xmm1, cs:qword_48A258"], [1770, "mulsd xmm0, xmm1"], [1771, "comisd xmm0, cs:qword_48A260"], [1772, "jnb short loc_46644E"], [1773, "cvttsd2si rax, xmm0"], [1774, "jmp short loc_466473"], [1775, "movsd xmm1, cs:qword_48A260"], [1776, "subsd xmm0, xmm1"], [1777, "cvttsd2si rax, xmm0"], [1778, "mov rdx, 8000000000000000h"], [1779, "xor rax, rdx"], [1780, "jmp short loc_466473"], [1781, "mov eax, 400h"], [1782, "mov rdx, [rbp+var_118]"], [1783, "mov rdx, [rdx+88h]"], [1784, "mov [rdx+28h], rax"], [1785, "mov rax, [rbp+var_118]"], [1786, "mov rax, [rax+88h]"], [1787, "mov rdx, [rax+28h]"], [1788, "mov rax, [rbp+var_118]"], [1789, "mov rax, [rax+88h]"], [1790, "mov rax, [rax+20h]"], [1791, "mov rcx, [rbp+var_118]"], [1792, "mov rbx, [rcx+88h]"], [1793, "mov rsi, rdx"], [1794, "mov rdi, rax"], [1795, "call _realloc"], [1796, "mov [rbx+20h], rax"], [1797, "mov rax, [rbp+var_118]"], [1798, "mov rax, [rax+88h]"], [1799, "mov rdx, [rax+28h]"], [1800, "mov rax, [rbp+var_118]"], [1801, "mov rax, [rax+88h]"], [1802, "mov rax, [rax+30h]"], [1803, "add rax, 0Bh"], [1804, "cmp rdx, rax"], [1805, "jbe loc_4663DF"], [1806, "mov rax, [rbp+var_118]"], [1807, "mov rax, [rax+88h]"], [1808, "mov rdx, [rax+20h]"], [1809, "mov rax, [rbp+var_118]"], [1810, "mov rax, [rax+88h]"], [1811, "mov rax, [rax+30h]"], [1812, "add rax, rdx"], [1813, "mov [rbp+var_80], rax"], [1814, "mov eax, [rbp+var_D0]"], [1815, "mov edx, eax"], [1816, "mov rax, [rbp+var_80]"], [1817, "mov esi, edx"], [1818, "mov rdi, rax"], [1819, "call sub_4602E4"], [1820, "sub rax, [rbp+var_80]"], [1821, "mov rdx, rax"], [1822, "mov rax, [rbp+var_118]"], [1823, "mov rax, [rax+88h]"], [1824, "mov rcx, [rax+30h]"], [1825, "mov rax, [rbp+var_118]"], [1826, "mov rax, [rax+88h]"], [1827, "add rdx, rcx"], [1828, "mov [rax+30h], rdx"], [1829, "mov [rbp+var_5C], 0"], [1830, "jmp loc_466903"], [1831, "cmp [rbp+var_5C], 0"], [1832, "jz loc_466716"], [1833, "cmp [rbp+var_4C], 0"], [1834, "jz loc_466716"], [1835, "jmp loc_466672"], [1836, "mov rax, [rbp+var_118]"], [1837, "mov rax, [rax+88h]"], [1838, "mov rax, [rax+28h]"], [1839, "test rax, rax"], [1840, "jz short loc_46661A"], [1841, "mov rax, [rbp+var_118]"], [1842, "mov rax, [rax+88h]"], [1843, "mov rax, [rax+28h]"], [1844, "test rax, rax"], [1845, "js short loc_4665C4"], [1846, "pxor xmm0, xmm0"], [1847, "cvtsi2sd xmm0, rax"], [1848, "jmp short loc_4665DD"], [1849, "mov rdx, rax"], [1850, "shr rdx, 1"], [1851, "and eax, 1"], [1852, "or rdx, rax"], [1853, "pxor xmm0, xmm0"], [1854, "cvtsi2sd xmm0, rdx"], [1855, "addsd xmm0, xmm0"], [1856, "movsd xmm1, cs:qword_48A258"], [1857, "mulsd xmm0, xmm1"], [1858, "comisd xmm0, cs:qword_48A260"], [1859, "jnb short loc_4665FA"], [1860, "cvttsd2si rax, xmm0"], [1861, "jmp short loc_46661F"], [1862, "movsd xmm1, cs:qword_48A260"], [1863, "subsd xmm0, xmm1"], [1864, "cvttsd2si rax, xmm0"], [1865, "mov rdx, 8000000000000000h"], [1866, "xor rax, rdx"], [1867, "jmp short loc_46661F"], [1868, "mov eax, 400h"], [1869, "mov rdx, [rbp+var_118]"], [1870, "mov rdx, [rdx+88h]"], [1871, "mov [rdx+28h], rax"], [1872, "mov rax, [rbp+var_118]"], [1873, "mov rax, [rax+88h]"], [1874, "mov rdx, [rax+28h]"], [1875, "mov rax, [rbp+var_118]"], [1876, "mov rax, [rax+88h]"], [1877, "mov rax, [rax+20h]"], [1878, "mov rcx, [rbp+var_118]"], [1879, "mov rbx, [rcx+88h]"], [1880, "mov rsi, rdx"], [1881, "mov rdi, rax"], [1882, "call _realloc"], [1883, "mov [rbx+20h], rax"], [1884, "mov rax, [rbp+var_118]"], [1885, "mov rax, [rax+88h]"], [1886, "mov rdx, [rax+28h]"], [1887, "mov rax, [rbp+var_118]"], [1888, "mov rax, [rax+88h]"], [1889, "mov rax, [rax+30h]"], [1890, "add rax, 0Bh"], [1891, "cmp rdx, rax"], [1892, "jbe loc_46658B"], [1893, "mov rax, [rbp+var_118]"], [1894, "mov rax, [rax+88h]"], [1895, "mov rdx, [rax+20h]"], [1896, "mov rax, [rbp+var_118]"], [1897, "mov rax, [rax+88h]"], [1898, "mov rax, [rax+30h]"], [1899, "add rax, rdx"], [1900, "mov [rbp+var_88], rax"], [1901, "mov rax, [rbp+var_88]"], [1902, "mov esi, 0"], [1903, "mov rdi, rax"], [1904, "call sub_4602E4"], [1905, "sub rax, [rbp+var_88]"], [1906, "mov rdx, rax"], [1907, "mov rax, [rbp+var_118]"], [1908, "mov rax, [rax+88h]"], [1909, "mov rcx, [rax+30h]"], [1910, "mov rax, [rbp+var_118]"], [1911, "mov rax, [rax+88h]"], [1912, "add rdx, rcx"], [1913, "mov [rax+30h], rdx"], [1914, "mov edx, [rbp+var_28]"], [1915, "mov eax, [rbp+var_5C]"], [1916, "add eax, edx"], [1917, "mov ecx, eax"], [1918, "mov rax, [rbp+var_130]"], [1919, "mov rdx, [rax+40h]"], [1920, "mov rax, [rbp+var_128]"], [1921, "mov eax, [rax+8]"], [1922, "cdqe"], [1923, "shl rax, 5"], [1924, "add rax, rdx"], [1925, "mov eax, [rax+8]"], [1926, "cmp ecx, eax"], [1927, "jnb short loc_466758"], [1928, "mov rax, [rbp+var_118]"], [1929, "mov rax, [rax+0A8h]"], [1930, "test rax, rax"], [1931, "jnz short loc_466767"], [1932, "mov [rbp+var_D0], 0FFFFFFFFh"], [1933, "jmp loc_466912"], [1934, "cmp [rbp+var_4C], 0"], [1935, "jz loc_4668FF"], [1936, "mov rax, [rbp+var_118]"], [1937, "mov rcx, [rax+0A8h]"], [1938, "mov edx, [rbp+var_28]"], [1939, "mov eax, [rbp+var_5C]"], [1940, "add edx, eax"], [1941, "mov rax, [rbp+var_118]"], [1942, "mov esi, [rax+0B0h]"], [1943, "mov eax, edx"], [1944, "sub eax, esi"], [1945, "cdqe"], [1946, "add rax, 1"], [1947, "add rax, rcx"], [1948, "movzx eax, byte ptr [rax]"], [1949, "mov [rbp+var_89], al"], [1950, "jmp loc_466896"], [1951, "mov rax, [rbp+var_118]"], [1952, "mov rax, [rax+88h]"], [1953, "mov rax, [rax+28h]"], [1954, "test rax, rax"], [1955, "jz short loc_46683E"], [1956, "mov rax, [rbp+var_118]"], [1957, "mov rax, [rax+88h]"], [1958, "mov rax, [rax+28h]"], [1959, "test rax, rax"], [1960, "js short loc_4667E8"], [1961, "pxor xmm0, xmm0"], [1962, "cvtsi2sd xmm0, rax"], [1963, "jmp short loc_466801"], [1964, "mov rdx, rax"], [1965, "shr rdx, 1"], [1966, "and eax, 1"], [1967, "or rdx, rax"], [1968, "pxor xmm0, xmm0"], [1969, "cvtsi2sd xmm0, rdx"], [1970, "addsd xmm0, xmm0"], [1971, "movsd xmm1, cs:qword_48A258"], [1972, "mulsd xmm0, xmm1"], [1973, "comisd xmm0, cs:qword_48A260"], [1974, "jnb short loc_46681E"], [1975, "cvttsd2si rax, xmm0"], [1976, "jmp short loc_466843"], [1977, "movsd xmm1, cs:qword_48A260"], [1978, "subsd xmm0, xmm1"], [1979, "cvttsd2si rax, xmm0"], [1980, "mov rdx, 8000000000000000h"], [1981, "xor rax, rdx"], [1982, "jmp short loc_466843"], [1983, "mov eax, 400h"], [1984, "mov rdx, [rbp+var_118]"], [1985, "mov rdx, [rdx+88h]"], [1986, "mov [rdx+28h], rax"], [1987, "mov rax, [rbp+var_118]"], [1988, "mov rax, [rax+88h]"], [1989, "mov rdx, [rax+28h]"], [1990, "mov rax, [rbp+var_118]"], [1991, "mov rax, [rax+88h]"], [1992, "mov rax, [rax+20h]"], [1993, "mov rcx, [rbp+var_118]"], [1994, "mov rbx, [rcx+88h]"], [1995, "mov rsi, rdx"], [1996, "mov rdi, rax"], [1997, "call _realloc"], [1998, "mov [rbx+20h], rax"], [1999, "mov rax, [rbp+var_118]"], [2000, "mov rax, [rax+88h]"], [2001, "mov rdx, [rax+28h]"], [2002, "mov rax, [rbp+var_118]"], [2003, "mov rax, [rax+88h]"], [2004, "mov rax, [rax+30h]"], [2005, "add rax, 1"], [2006, "cmp rdx, rax"], [2007, "jbe loc_4667AF"]], "data_dep": [[15, 8], [16, 15], [17, 16], [19, 6], [20, 19], [21, 20], [22, 6], [23, 22], [24, 23], [25, 6], [26, 25], [27, 26], [31, 4], [32, 31], [33, 32], [34, 33], [35, 6], [36, 35], [37, 36], [38, 37], [40, 39], [44, 41], [44, 43], [45, 4], [46, 45], [47, 46], [48, 47], [49, 6], [50, 49], [51, 50], [52, 51], [53, 13], [54, 53], [58, 55], [58, 57], [59, 5], [60, 59], [61, 60], [62, 61], [63, 62], [64, 63], [65, 64], [66, 65], [68, 67], [69, 68], [70, 69], [71, 8], [72, 71], [73, 72], [76, 74], [78, 8], [79, 78], [80, 79], [81, 80], [82, 81], [84, 83], [85, 84], [86, 85], [86, 44], [87, 86], [88, 6], [89, 88], [90, 89], [91, 90], [93, 6], [94, 93], [94, 128], [94, 140], [95, 94], [95, 128], [95, 140], [96, 95], [97, 96], [98, 6], [99, 128], [99, 98], [99, 140], [100, 128], [100, 140], [100, 99], [101, 100], [102, 101], [104, 101], [104, 103], [106, 101], [107, 106], [108, 101], [109, 108], [109, 107], [111, 110], [111, 109], [112, 111], [114, 113], [114, 104], [114, 112], [115, 114], [116, 109], [116, 101], [117, 115], [117, 108], [117, 101], [120, 119], [120, 115], [121, 108], [121, 120], [121, 101], [123, 122], [123, 121], [126, 6], [127, 126], [127, 128], [127, 140], [128, 123], [128, 125], [128, 127], [128, 117], [129, 6], [130, 129], [130, 128], [131, 128], [131, 130], [132, 6], [133, 128], [133, 132], [134, 133], [134, 128], [135, 6], [136, 135], [136, 128], [137, 131], [138, 134], [140, 136], [140, 139], [141, 6], [142, 128], [142, 141], [142, 140], [143, 128], [143, 140], [143, 142], [144, 6], [145, 144], [145, 140], [145, 128], [146, 128], [146, 140], [146, 145], [147, 146], [148, 147], [148, 143], [149, 148], [150, 6], [151, 150], [151, 140], [151, 167], [151, 128], [152, 128], [152, 140], [152, 151], [152, 167], [153, 6], [154, 128], [154, 140], [154, 153], [154, 167], [155, 128], [155, 154], [155, 167], [155, 140], [156, 155], [156, 152], [159, 156], [161, 6], [162, 167], [162, 128], [162, 140], [162, 161], [163, 162], [163, 128], [163, 140], [163, 167], [164, 6], [165, 140], [165, 128], [165, 164], [165, 167], [166, 163], [167, 166], [167, 165], [168, 62], [169, 168], [170, 169], [171, 170], [172, 5], [173, 167], [173, 128], [173, 140], [173, 172], [174, 167], [174, 128], [174, 173], [174, 140], [175, 174], [176, 175], [179, 5], [180, 140], [180, 128], [180, 167], [180, 179], [181, 167], [181, 180], [181, 128], [181, 140], [182, 128], [182, 140], [182, 167], [182, 181], [183, 5], [184, 128], [184, 140], [184, 167], [184, 183], [185, 128], [185, 140], [185, 184], [185, 167], [186, 159], [186, 76], [186, 12], [187, 135], [188, 7], [189, 6], [190, 186], [191, 189], [192, 182], [193, 11], [193, 192], [194, 193], [195, 194], [196, 193], [199, 17], [200, 24], [201, 8], [202, 201], [202, 200], [203, 62], [204, 203], [205, 204], [206, 205], [211, 210], [212, 211], [213, 212], [215, 214], [217, 216], [220, 217], [220, 219], [223, 221], [223, 222], [224, 220], [225, 222], [227, 225], [228, 226], [230, 229], [231, 230], [232, 231], [236, 235], [237, 236], [238, 237], [240, 223], [240, 239], [241, 223], [241, 240], [242, 241], [243, 242], [247, 246], [247, 223], [248, 223], [248, 247], [249, 223], [249, 248], [251, 250], [251, 223], [252, 251], [252, 223], [253, 228], [257, 253], [258, 256], [259, 249], [260, 259], [261, 260], [262, 261], [263, 260], [266, 265], [267, 266], [268, 267], [270, 223], [270, 269], [271, 223], [271, 270], [272, 271], [273, 272], [277, 276], [277, 223], [278, 277], [278, 223], [279, 223], [279, 278], [281, 223], [281, 280], [282, 223], [282, 281], [283, 258], [283, 228], [284, 209], [284, 254], [287, 283], [288, 286], [289, 279], [290, 289], [290, 260], [291, 290], [292, 291], [293, 290], [295, 209], [297, 296], [297, 295], [298, 297], [299, 298], [300, 299], [301, 300], [302, 298], [305, 303], [310, 298], [311, 310], [312, 311], [314, 223], [314, 313], [315, 295], [315, 223], [315, 314], [316, 298], [317, 316], [317, 315], [318, 317], [322, 223], [322, 321], [323, 322], [324, 323], [326, 325], [326, 223], [327, 326], [328, 327], [329, 298], [331, 329], [331, 330], [332, 331], [333, 332], [335, 223], [335, 334], [337, 223], [337, 336], [339, 337], [340, 335], [340, 339], [341, 223], [341, 340], [342, 341], [342, 333], [343, 342], [345, 344], [346, 345], [348, 347], [355, 354], [355, 223], [357, 223], [357, 356], [359, 357], [360, 355], [360, 359], [361, 223], [361, 360], [363, 361], [363, 362], [364, 363], [365, 364], [366, 365], [367, 364], [370, 223], [370, 369], [372, 223], [372, 371], [374, 373], [374, 372], [375, 374], [376, 375], [377, 223], [377, 370], [377, 372], [379, 378], [380, 223], [380, 379], [380, 370], [382, 380], [382, 381], [383, 367], [384, 382], [386, 298], [387, 386], [388, 387], [388, 364], [389, 388], [390, 389], [391, 298], [392, 391], [393, 392], [393, 364], [396, 223], [396, 382], [396, 395], [397, 364], [398, 396], [398, 397], [399, 398], [401, 399], [401, 400], [402, 393], [404, 401], [408, 407], [408, 223], [409, 408], [410, 409], [413, 412], [414, 348], [414, 333], [414, 413], [414, 223], [416, 415], [416, 414], [417, 410], [419, 416], [422, 421], [423, 422], [424, 298], [425, 424], [426, 425], [428, 427], [428, 426], [429, 428], [432, 431], [434, 433], [438, 223], [438, 437], [438, 483], [440, 223], [440, 439], [440, 483], [442, 440], [442, 441], [443, 223], [443, 483], [443, 440], [443, 442], [444, 435], [444, 484], [445, 443], [445, 444], [447, 438], [447, 445], [448, 447], [448, 483], [448, 223], [449, 448], [450, 449], [451, 450], [453, 483], [453, 452], [453, 223], [455, 483], [455, 223], [455, 454], [457, 455], [457, 456], [458, 223], [458, 455], [458, 457], [458, 483], [459, 435], [459, 484], [460, 458], [460, 459], [462, 460], [462, 453], [463, 462], [463, 483], [463, 223], [464, 463], [465, 458], [465, 474], [468, 467], [470, 470], [472, 474], [473, 472], [474, 473], [476, 464], [476, 438], [476, 483], [476, 475], [476, 223], [477, 435], [477, 484], [478, 476], [478, 477], [479, 478], [481, 479], [481, 480], [482, 449], [483, 482], [483, 481], [484, 435], [484, 484], [485, 298], [486, 485], [487, 486], [487, 435], [487, 484], [488, 487], [490, 298], [491, 490], [494, 493], [494, 223], [496, 495], [496, 223], [498, 497], [498, 496], [499, 498], [500, 499], [501, 494], [501, 496], [501, 223], [503, 502], [504, 223], [504, 503], [504, 494], [506, 505], [506, 504], [507, 491], [508, 506], [511, 510], [513, 512], [515, 514], [516, 515], [518, 483], [518, 223], [518, 335], [518, 315], [518, 481], [518, 402], [518, 526], [518, 417], [518, 426], [518, 383], [518, 517], [518, 507], [519, 518], [520, 517], [521, 518], [522, 230], [523, 521], [523, 522], [525, 524], [525, 516], [526, 523], [526, 525], [529, 298], [530, 529], [531, 527], [531, 530], [532, 298], [533, 532], [534, 533], [535, 298], [536, 535], [537, 298], [538, 537], [540, 539], [541, 540], [542, 541], [544, 543], [545, 544], [546, 545], [547, 546], [548, 545], [550, 549], [553, 531], [554, 553], [555, 531], [556, 555], [557, 556], [558, 519], [559, 223], [559, 402], [559, 335], [559, 567], [559, 315], [559, 426], [559, 383], [559, 481], [559, 526], [559, 483], [559, 558], [559, 525], [559, 417], [559, 295], [559, 507], [560, 559], [561, 558], [562, 559], [563, 230], [564, 562], [564, 563], [565, 528], [566, 565], [566, 557], [567, 564], [567, 566], [570, 223], [570, 567], [570, 569], [570, 526], [570, 483], [571, 570], [572, 571], [573, 572], [575, 574], [576, 575], [577, 576], [579, 223], [579, 578], [579, 567], [579, 526], [579, 483], [580, 579], [580, 526], [580, 483], [580, 223], [580, 567], [581, 580], [582, 581], [584, 223], [584, 567], [584, 526], [584, 483], [584, 583], [585, 584], [585, 223], [585, 567], [585, 526], [585, 483], [586, 526], [586, 483], [586, 585], [586, 567], [586, 223], [588, 587], [588, 223], [588, 567], [588, 526], [588, 483], [589, 588], [590, 589], [591, 298], [593, 223], [593, 566], [593, 402], [593, 525], [593, 335], [593, 567], [593, 315], [593, 426], [593, 295], [593, 383], [593, 481], [593, 526], [593, 591], [593, 483], [593, 417], [593, 507], [595, 443], [595, 223], [595, 465], [595, 401], [595, 567], [595, 557], [595, 416], [595, 284], [595, 526], [595, 382], [595, 516], [595, 506], [595, 483], [595, 594], [595, 333], [599, 526], [599, 483], [599, 223], [599, 598], [599, 567], [600, 567], [600, 526], [600, 483], [600, 223], [600, 599], [601, 419], [601, 508], [601, 288], [601, 468], [601, 404], [601, 551], [601, 384], [604, 601], [605, 603], [606, 586], [608, 298], [610, 315], [610, 426], [610, 383], [610, 481], [610, 526], [610, 483], [610, 525], [610, 417], [610, 295], [610, 507], [610, 608], [610, 223], [610, 566], [610, 402], [610, 335], [610, 613], [610, 567], [612, 610], [612, 611], [613, 612], [616, 615], [616, 606], [616, 290], [620, 619], [621, 620], [622, 621], [624, 483], [624, 567], [624, 223], [624, 623], [624, 526], [625, 223], [625, 624], [625, 567], [625, 526], [625, 483], [626, 625], [627, 626], [629, 526], [629, 483], [629, 628], [629, 223], [629, 567], [630, 567], [630, 526], [630, 483], [630, 629], [630, 223], [631, 567], [631, 526], [631, 483], [631, 630], [631, 223], [633, 526], [633, 483], [633, 567], [633, 632], [633, 223], [634, 633], [635, 634], [636, 298], [638, 526], [638, 483], [638, 417], [638, 507], [638, 335], [638, 567], [638, 223], [638, 566], [638, 402], [638, 525], [638, 636], [638, 315], [638, 426], [638, 295], [638, 383], [638, 481], [640, 639], [640, 465], [640, 333], [640, 401], [640, 443], [640, 567], [640, 223], [640, 382], [640, 557], [640, 416], [640, 284], [640, 526], [640, 516], [640, 506], [640, 483], [644, 567], [644, 223], [644, 526], [644, 483], [644, 643], [645, 567], [645, 223], [645, 644], [645, 526], [645, 483], [646, 551], [646, 384], [646, 508], [646, 419], [646, 288], [646, 468], [646, 404], [649, 646], [650, 648], [651, 631], [653, 298], [655, 526], [655, 483], [655, 417], [655, 507], [655, 653], [655, 335], [655, 567], [655, 223], [655, 566], [655, 402], [655, 525], [655, 315], [655, 426], [655, 295], [655, 658], [655, 383], [655, 481], [657, 655], [657, 656], [658, 657], [661, 660], [661, 651], [661, 290], [667, 662], [667, 552], [667, 617], [668, 667], [669, 616], [669, 661], [669, 290], [670, 669], [671, 616], [671, 661], [671, 290], [673, 551], [673, 614], [673, 659], [674, 673], [675, 640], [675, 401], [675, 597], [675, 443], [675, 567], [675, 642], [675, 223], [675, 382], [675, 613], [675, 557], [675, 416], [675, 658], [675, 284], [675, 526], [675, 516], [675, 506], [675, 483], [675, 465], [675, 684], [675, 674], [675, 595], [675, 333], [676, 519], [676, 560], [677, 525], [677, 613], [677, 567], [677, 315], [677, 426], [677, 295], [677, 658], [677, 383], [677, 481], [677, 602], [677, 526], [677, 647], [677, 483], [677, 417], [677, 684], [677, 507], [677, 676], [677, 610], [677, 335], [677, 655], [677, 223], [677, 566], [677, 402], [678, 677], [679, 676], [680, 677], [681, 230], [682, 681], [682, 680], [683, 675], [684, 682], [684, 683], [686, 551], [686, 614], [686, 659], [687, 686], [687, 536], [689, 531], [690, 689], [691, 528], [692, 691], [693, 531], [694, 693], [695, 694], [696, 519], [697, 402], [697, 525], [697, 315], [697, 426], [697, 295], [697, 383], [697, 481], [697, 526], [697, 483], [697, 705], [697, 417], [697, 507], [697, 696], [697, 335], [697, 223], [698, 697], [699, 696], [700, 697], [701, 230], [702, 700], [702, 701], [703, 528], [704, 703], [704, 695], [705, 702], [705, 704], [708, 707], [709, 708], [710, 709], [712, 526], [712, 483], [712, 705], [712, 711], [712, 223], [713, 712], [713, 526], [713, 483], [713, 705], [713, 223], [714, 713], [715, 714], [719, 705], [719, 718], [719, 223], [719, 526], [719, 483], [720, 483], [720, 705], [720, 223], [720, 719], [720, 526], [721, 483], [721, 705], [721, 223], [721, 720], [721, 526], [723, 223], [723, 722], [723, 526], [723, 483], [723, 705], [724, 723], [724, 526], [724, 483], [724, 705], [724, 223], [725, 468], [725, 404], [725, 384], [725, 508], [725, 419], [725, 288], [726, 465], [726, 333], [726, 401], [726, 382], [726, 416], [726, 284], [726, 516], [726, 506], [726, 695], [726, 443], [729, 725], [730, 728], [731, 721], [732, 290], [732, 731], [733, 732], [734, 733], [738, 737], [738, 526], [738, 483], [738, 705], [738, 223], [740, 739], [740, 705], [740, 223], [740, 526], [740, 483], [742, 740], [743, 738], [743, 742], [744, 743], [744, 526], [744, 483], [744, 705], [744, 223], [745, 534], [746, 745], [746, 744], [747, 746], [749, 526], [749, 483], [749, 748], [749, 705], [749, 223], [750, 749], [751, 750], [753, 705], [753, 223], [753, 752], [753, 526], [753, 483], [754, 298], [755, 754], [755, 753], [756, 755], [758, 776], [758, 526], [758, 483], [758, 757], [758, 705], [758, 223], [760, 776], [760, 526], [760, 759], [760, 483], [760, 705], [760, 223], [761, 760], [763, 762], [764, 298], [765, 764], [766, 776], [766, 526], [766, 483], [766, 705], [766, 223], [766, 730], [766, 765], [768, 766], [768, 767], [769, 763], [771, 761], [772, 758], [772, 771], [773, 769], [773, 772], [774, 773], [775, 223], [775, 774], [775, 776], [775, 526], [775, 483], [775, 705], [776, 768], [776, 775], [778, 777], [780, 779], [781, 429], [781, 474], [782, 781], [783, 782], [785, 784], [788, 787], [788, 822], [788, 776], [788, 834], [788, 526], [788, 483], [788, 705], [788, 223], [789, 223], [789, 822], [789, 776], [789, 834], [789, 788], [789, 526], [789, 483], [789, 705], [790, 789], [791, 790], [793, 822], [793, 776], [793, 834], [793, 526], [793, 792], [793, 483], [793, 705], [793, 223], [794, 822], [794, 776], [794, 834], [794, 526], [794, 483], [794, 705], [794, 793], [794, 223], [795, 794], [796, 795], [798, 795], [798, 797], [800, 795], [801, 800], [802, 795], [803, 802], [803, 801], [805, 803], [805, 804], [806, 805], [808, 806], [808, 798], [808, 807], [809, 808], [810, 803], [810, 795], [811, 809], [811, 802], [811, 795], [814, 809], [814, 813], [815, 814], [815, 802], [815, 795], [817, 815], [817, 816], [821, 223], [821, 820], [821, 822], [821, 776], [821, 834], [821, 526], [821, 483], [821, 705], [822, 819], [822, 821], [822, 811], [822, 817], [824, 822], [824, 823], [825, 822], [825, 824], [827, 822], [827, 826], [828, 827], [828, 822], [830, 822], [830, 829], [831, 825], [832, 828], [834, 830], [834, 833], [836, 835], [836, 776], [836, 223], [836, 822], [836, 834], [836, 526], [836, 483], [836, 705], [837, 483], [837, 836], [837, 705], [837, 776], [837, 223], [837, 822], [837, 834], [837, 526], [839, 705], [839, 223], [839, 822], [839, 776], [839, 834], [839, 526], [839, 483], [839, 838], [840, 822], [840, 776], [840, 834], [840, 526], [840, 483], [840, 705], [840, 839], [840, 223], [841, 840], [842, 841], [842, 837], [843, 842], [845, 822], [845, 776], [845, 844], [845, 834], [845, 526], [845, 866], [845, 483], [845, 705], [845, 223], [846, 845], [846, 822], [846, 834], [846, 526], [846, 483], [846, 705], [846, 776], [846, 223], [846, 866], [848, 866], [848, 483], [848, 847], [848, 705], [848, 223], [848, 822], [848, 776], [848, 834], [848, 526], [849, 866], [849, 822], [849, 834], [849, 526], [849, 483], [849, 705], [849, 848], [849, 776], [849, 223], [850, 849], [850, 846], [851, 850], [852, 429], [852, 474], [853, 852], [854, 851], [855, 853], [856, 854], [858, 851], [858, 857], [859, 858], [861, 776], [861, 223], [861, 866], [861, 822], [861, 834], [861, 526], [861, 483], [861, 705], [861, 860], [862, 822], [862, 834], [862, 526], [862, 483], [862, 705], [862, 776], [862, 861], [862, 223], [862, 866], [864, 705], [864, 223], [864, 863], [864, 483], [864, 822], [864, 776], [864, 834], [864, 526], [864, 866], [865, 859], [865, 862], [866, 864], [866, 865], [868, 470], [871, 223], [871, 526], [871, 483], [871, 705], [871, 870], [872, 534], [872, 871], [873, 872], [875, 223], [875, 874], [875, 526], [875, 483], [875, 705], [877, 876], [877, 526], [877, 483], [877, 705], [877, 223], [878, 534], [879, 878], [879, 877], [881, 879], [882, 881], [882, 875], [883, 705], [883, 882], [883, 223], [883, 526], [883, 483], [886, 883], [886, 885], [887, 886], [890, 887], [890, 526], [890, 483], [890, 705], [890, 223], [891, 890], [892, 891], [894, 223], [894, 526], [894, 483], [894, 705], [894, 893], [895, 298], [896, 894], [896, 895], [897, 896], [899, 705], [899, 915], [899, 223], [899, 898], [899, 526], [899, 483], [901, 900], [902, 298], [903, 902], [904, 223], [904, 877], [904, 726], [904, 526], [904, 483], [904, 705], [904, 903], [904, 915], [906, 905], [906, 904], [907, 901], [908, 892], [910, 908], [911, 899], [911, 910], [912, 911], [912, 907], [913, 912], [914, 526], [914, 483], [914, 705], [914, 913], [914, 915], [914, 223], [915, 914], [915, 906], [916, 886], [917, 916], [918, 907], [918, 877], [918, 429], [918, 726], [918, 474], [921, 920], [926, 470], [926, 868], [927, 706], [927, 531], [928, 536], [929, 534], [931, 531], [932, 931], [933, 528], [934, 933], [935, 531], [936, 935], [937, 936], [938, 519], [939, 507], [939, 938], [939, 335], [939, 223], [939, 402], [939, 525], [939, 315], [939, 426], [939, 295], [939, 383], [939, 481], [939, 526], [939, 483], [939, 417], [939, 947], [940, 939], [941, 938], [942, 939], [943, 230], [944, 942], [944, 943], [945, 528], [946, 945], [946, 937], [947, 944], [947, 946], [950, 949], [951, 950], [952, 951], [954, 953], [954, 223], [954, 526], [954, 483], [954, 947], [955, 223], [955, 954], [955, 526], [955, 483], [955, 947], [956, 955], [957, 956], [961, 526], [961, 483], [961, 947], [961, 960], [961, 223], [962, 526], [962, 483], [962, 947], [962, 223], [962, 961], [963, 526], [963, 483], [963, 947], [963, 223], [963, 962], [965, 526], [965, 483], [965, 947], [965, 223], [965, 964], [966, 526], [966, 483], [966, 947], [966, 223], [966, 965], [967, 384], [967, 508], [967, 419], [967, 288], [967, 468], [967, 404], [968, 333], [968, 443], [968, 465], [968, 401], [968, 416], [968, 284], [968, 382], [968, 516], [968, 506], [968, 937], [971, 967], [972, 970], [973, 963], [974, 290], [974, 973], [975, 974], [976, 975], [977, 974], [980, 979], [982, 981], [983, 429], [983, 474], [984, 983], [985, 984], [987, 986], [990, 223], [990, 989], [990, 1024], [990, 526], [990, 1036], [990, 483], [990, 947], [991, 223], [991, 526], [991, 990], [991, 1024], [991, 1036], [991, 483], [991, 947], [992, 991], [993, 992], [995, 526], [995, 1024], [995, 1036], [995, 483], [995, 947], [995, 223], [995, 994], [996, 526], [996, 1024], [996, 1036], [996, 483], [996, 947], [996, 223], [996, 995], [997, 996], [998, 997], [1000, 999], [1000, 997], [1002, 997], [1003, 1002], [1004, 997], [1005, 1004], [1005, 1003], [1007, 1006], [1007, 1005], [1008, 1007], [1010, 1008], [1010, 1000], [1010, 1009], [1011, 1010], [1012, 1005], [1012, 997], [1013, 1011], [1013, 1004], [1013, 997], [1016, 1011], [1016, 1015], [1017, 1016], [1017, 1004], [1017, 997], [1019, 1017], [1019, 1018], [1023, 1022], [1023, 1024], [1023, 526], [1023, 1036], [1023, 483], [1023, 947], [1023, 223], [1024, 1019], [1024, 1021], [1024, 1023], [1024, 1013], [1026, 1024], [1026, 1025], [1027, 1024], [1027, 1026], [1029, 1024], [1029, 1028], [1030, 1024], [1030, 1029], [1032, 1031], [1032, 1024], [1033, 1027], [1034, 1030], [1036, 1035], [1036, 1032], [1038, 947], [1038, 223], [1038, 1037], [1038, 526], [1038, 483], [1038, 1024], [1038, 1036], [1039, 1024], [1039, 526], [1039, 1036], [1039, 483], [1039, 947], [1039, 1038], [1039, 223], [1041, 1036], [1041, 223], [1041, 1040], [1041, 526], [1041, 483], [1041, 947], [1041, 1024], [1042, 1041], [1042, 526], [1042, 1024], [1042, 1036], [1042, 483], [1042, 947], [1042, 223], [1043, 1042], [1044, 1039], [1044, 1043], [1045, 1044], [1047, 1024], [1047, 1046], [1047, 1036], [1047, 483], [1047, 947], [1047, 1068], [1047, 223], [1047, 526], [1048, 526], [1048, 483], [1048, 1068], [1048, 1047], [1048, 1024], [1048, 1036], [1048, 947], [1048, 223], [1050, 483], [1050, 947], [1050, 1068], [1050, 1024], [1050, 1036], [1050, 1049], [1050, 223], [1050, 526], [1051, 1068], [1051, 223], [1051, 1050], [1051, 526], [1051, 1024], [1051, 1036], [1051, 483], [1051, 947], [1052, 1048], [1052, 1051], [1053, 1052], [1054, 429], [1054, 474], [1055, 1054], [1056, 1053], [1057, 1055], [1058, 1056], [1060, 1053], [1060, 1059], [1061, 1060], [1063, 1068], [1063, 1024], [1063, 1036], [1063, 947], [1063, 223], [1063, 1062], [1063, 526], [1063, 483], [1064, 526], [1064, 483], [1064, 1068], [1064, 1024], [1064, 1036], [1064, 947], [1064, 223], [1064, 1063], [1066, 1065], [1066, 947], [1066, 1068], [1066, 1024], [1066, 1036], [1066, 223], [1066, 526], [1066, 483], [1067, 1061], [1067, 1064], [1068, 1066], [1068, 1067], [1070, 534], [1071, 1070], [1071, 1069], [1072, 1071], [1074, 1036], [1074, 223], [1074, 1073], [1074, 526], [1074, 483], [1074, 947], [1074, 1068], [1074, 1024], [1076, 1075], [1076, 526], [1076, 483], [1076, 947], [1076, 1068], [1076, 1024], [1076, 1036], [1076, 223], [1078, 1076], [1079, 1074], [1079, 1078], [1080, 483], [1080, 947], [1080, 1068], [1080, 1024], [1080, 1079], [1080, 1036], [1080, 223], [1080, 526], [1081, 1080], [1081, 1072], [1082, 1081], [1084, 1083], [1087, 223], [1087, 1086], [1087, 526], [1087, 1121], [1087, 483], [1087, 947], [1087, 1068], [1087, 1133], [1087, 1024], [1087, 1036], [1088, 1036], [1088, 223], [1088, 1087], [1088, 526], [1088, 1121], [1088, 483], [1088, 947], [1088, 1068], [1088, 1133], [1088, 1024], [1089, 1088], [1090, 1089], [1092, 526], [1092, 1121], [1092, 483], [1092, 947], [1092, 1068], [1092, 1133], [1092, 1024], [1092, 1036], [1092, 1091], [1092, 223], [1093, 526], [1093, 1121], [1093, 483], [1093, 947], [1093, 1068], [1093, 1133], [1093, 1024], [1093, 1092], [1093, 1036], [1093, 223], [1094, 1093], [1095, 1094], [1097, 1094], [1097, 1096], [1099, 1094], [1100, 1099], [1101, 1094], [1102, 1101], [1102, 1100], [1104, 1103], [1104, 1102], [1105, 1104], [1107, 1106], [1107, 1105], [1107, 1097], [1108, 1107], [1109, 1102], [1109, 1094], [1110, 1108], [1110, 1101], [1110, 1094], [1113, 1112], [1113, 1108], [1114, 1101], [1114, 1113], [1114, 1094], [1116, 1115], [1116, 1114], [1120, 1036], [1120, 223], [1120, 1119], [1120, 526], [1120, 1121], [1120, 483], [1120, 947], [1120, 1068], [1120, 1133], [1120, 1024], [1121, 1116], [1121, 1118], [1121, 1120], [1121, 1110], [1123, 1122], [1123, 1121], [1124, 1121], [1124, 1123], [1126, 1121], [1126, 1125], [1127, 1121], [1127, 1126], [1129, 1121], [1129, 1128], [1130, 1124], [1131, 1127], [1133, 1132], [1133, 1129], [1135, 1024], [1135, 1036], [1135, 223], [1135, 526], [1135, 1121], [1135, 483], [1135, 1134], [1135, 947], [1135, 1068], [1135, 1133], [1136, 526], [1136, 1121], [1136, 483], [1136, 947], [1136, 1068], [1136, 1133], [1136, 1024], [1136, 1135], [1136, 1036], [1136, 223], [1138, 1024], [1138, 1036], [1138, 1137], [1138, 223], [1138, 526], [1138, 1121], [1138, 483], [1138, 947], [1138, 1068], [1138, 1133], [1139, 1138], [1139, 526], [1139, 1121], [1139, 483], [1139, 947], [1139, 1068], [1139, 1133], [1139, 1024], [1139, 1036], [1139, 223], [1140, 1139], [1141, 1140], [1141, 1136], [1142, 1141], [1144, 1152], [1144, 526], [1144, 1121], [1144, 483], [1144, 947], [1144, 1068], [1144, 1143], [1144, 1133], [1144, 1024], [1144, 1036], [1144, 223], [1144, 1150], [1145, 1152], [1145, 526], [1145, 1144], [1145, 1036], [1145, 1121], [1145, 483], [1145, 947], [1145, 1068], [1145, 1133], [1145, 1024], [1145, 1150], [1145, 223], [1147, 1152], [1147, 526], [1147, 1121], [1147, 483], [1147, 947], [1147, 1068], [1147, 1133], [1147, 1146], [1147, 1024], [1147, 1036], [1147, 1150], [1147, 223], [1148, 1036], [1148, 1147], [1148, 223], [1148, 1150], [1148, 1152], [1148, 526], [1148, 1121], [1148, 483], [1148, 947], [1148, 1068], [1148, 1133], [1148, 1024], [1149, 1024], [1149, 1148], [1149, 1036], [1149, 223], [1149, 1128], [1149, 1072], [1149, 1150], [1149, 1152], [1149, 526], [1149, 1121], [1149, 483], [1149, 947], [1149, 1068], [1149, 1133], [1150, 1147], [1150, 1149], [1151, 1148], [1151, 1147], [1151, 1150], [1152, 1151], [1155, 1150], [1155, 1152], [1155, 526], [1155, 1154], [1155, 1121], [1155, 483], [1155, 947], [1155, 1068], [1155, 1189], [1155, 1133], [1155, 1201], [1155, 1024], [1155, 1036], [1155, 223], [1156, 223], [1156, 1150], [1156, 1152], [1156, 1155], [1156, 526], [1156, 1121], [1156, 483], [1156, 947], [1156, 1068], [1156, 1189], [1156, 1133], [1156, 1201], [1156, 1024], [1156, 1036], [1157, 1156], [1158, 1157], [1160, 526], [1160, 1121], [1160, 483], [1160, 947], [1160, 1068], [1160, 1189], [1160, 1133], [1160, 1201], [1160, 1024], [1160, 1036], [1160, 1159], [1160, 223], [1160, 1150], [1160, 1152], [1161, 1152], [1161, 526], [1161, 1121], [1161, 483], [1161, 947], [1161, 1068], [1161, 1189], [1161, 1133], [1161, 1201], [1161, 1024], [1161, 1036], [1161, 1160], [1161, 223], [1161, 1150], [1162, 1161], [1163, 1162], [1165, 1162], [1165, 1164], [1167, 1162], [1168, 1167], [1169, 1162], [1170, 1168], [1170, 1169], [1172, 1171], [1172, 1170], [1173, 1172], [1175, 1174], [1175, 1173], [1175, 1165], [1176, 1175], [1177, 1170], [1177, 1162], [1178, 1176], [1178, 1169], [1178, 1162], [1181, 1180], [1181, 1176], [1182, 1169], [1182, 1181], [1182, 1162], [1184, 1183], [1184, 1182], [1188, 1152], [1188, 1187], [1188, 526], [1188, 1121], [1188, 483], [1188, 947], [1188, 1068], [1188, 1189], [1188, 1133], [1188, 1201], [1188, 1024], [1188, 1036], [1188, 1150], [1188, 223], [1189, 1184], [1189, 1186], [1189, 1188], [1189, 1178], [1191, 1190], [1191, 1189], [1192, 1189], [1192, 1191], [1194, 1189], [1194, 1193], [1195, 1194], [1195, 1189], [1197, 1189], [1197, 1196], [1198, 1192], [1199, 1195], [1201, 1197], [1201, 1200], [1203, 1202], [1203, 223], [1203, 1152], [1203, 526], [1203, 1121], [1203, 483], [1203, 947], [1203, 1068], [1203, 1189], [1203, 1133], [1203, 1201], [1203, 1024], [1203, 1036], [1203, 1150], [1204, 1201], [1204, 1203], [1204, 1150], [1204, 223], [1204, 1152], [1204, 1121], [1204, 1133], [1204, 1024], [1204, 526], [1204, 1036], [1204, 483], [1204, 947], [1204, 1068], [1204, 1189], [1206, 1205], [1206, 223], [1206, 1152], [1206, 526], [1206, 1036], [1206, 1121], [1206, 483], [1206, 947], [1206, 1068], [1206, 1189], [1206, 1133], [1206, 1201], [1206, 1024], [1206, 1150], [1207, 1152], [1207, 526], [1207, 1121], [1207, 483], [1207, 947], [1207, 1068], [1207, 1189], [1207, 1133], [1207, 1201], [1207, 1024], [1207, 1036], [1207, 223], [1207, 1206], [1207, 1150], [1210, 1208], [1210, 1207], [1211, 1210], [1211, 1204], [1212, 1211], [1216, 1133], [1216, 1024], [1216, 526], [1216, 1036], [1216, 483], [1216, 947], [1216, 1068], [1216, 1189], [1216, 223], [1216, 1201], [1216, 1150], [1216, 1215], [1216, 1152], [1216, 1121], [1216, 1242], [1218, 947], [1218, 1068], [1218, 1189], [1218, 1201], [1218, 1150], [1218, 223], [1218, 1152], [1218, 1217], [1218, 1121], [1218, 1242], [1218, 1133], [1218, 1024], [1218, 526], [1218, 1036], [1218, 483], [1219, 534], [1220, 1219], [1220, 1218], [1221, 1220], [1222, 1221], [1223, 1216], [1223, 1150], [1223, 223], [1223, 1152], [1223, 1242], [1223, 1133], [1223, 1218], [1223, 1024], [1223, 526], [1223, 1036], [1223, 1121], [1223, 483], [1223, 947], [1223, 1068], [1223, 1189], [1223, 1201], [1225, 223], [1225, 1152], [1225, 1121], [1225, 1242], [1225, 1133], [1225, 1024], [1225, 526], [1225, 1036], [1225, 483], [1225, 947], [1225, 1068], [1225, 1189], [1225, 1224], [1225, 1201], [1225, 1150], [1226, 1152], [1226, 526], [1226, 1036], [1226, 1121], [1226, 483], [1226, 1242], [1226, 947], [1226, 1068], [1226, 1189], [1226, 1133], [1226, 1201], [1226, 1024], [1226, 1150], [1226, 1225], [1226, 223], [1228, 1242], [1228, 1133], [1228, 1024], [1228, 526], [1228, 1036], [1228, 1121], [1228, 483], [1228, 947], [1228, 1068], [1228, 1189], [1228, 1201], [1228, 1150], [1228, 223], [1228, 1152], [1228, 1227], [1229, 1024], [1229, 526], [1229, 1036], [1229, 483], [1229, 947], [1229, 1068], [1229, 1189], [1229, 1201], [1229, 1150], [1229, 1228], [1229, 223], [1229, 1152], [1229, 1121], [1229, 1242], [1229, 1133], [1230, 1226], [1230, 1229], [1231, 1213], [1232, 1230], [1235, 1036], [1235, 483], [1235, 947], [1235, 1068], [1235, 1189], [1235, 1234], [1235, 1201], [1235, 1150], [1235, 223], [1235, 1152], [1235, 1121], [1235, 1242], [1235, 1133], [1235, 1024], [1235, 526], [1236, 1150], [1236, 223], [1236, 1152], [1236, 526], [1236, 1036], [1236, 1121], [1236, 483], [1236, 1242], [1236, 1235], [1236, 947], [1236, 1068], [1236, 1189], [1236, 1133], [1236, 1201], [1236, 1024], [1238, 1237], [1240, 1150], [1240, 223], [1240, 1152], [1240, 1239], [1240, 1121], [1240, 1242], [1240, 1133], [1240, 1024], [1240, 526], [1240, 1036], [1240, 483], [1240, 947], [1240, 1068], [1240, 1189], [1240, 1201], [1241, 1236], [1241, 1238], [1242, 1240], [1242, 1241], [1245, 1244], [1245, 470], [1248, 947], [1248, 1068], [1248, 1247], [1248, 223], [1248, 1024], [1248, 526], [1248, 1036], [1248, 483], [1250, 1249], [1250, 223], [1250, 1024], [1250, 526], [1250, 1036], [1250, 483], [1250, 947], [1250, 1068], [1252, 1250], [1253, 1248], [1253, 1252], [1254, 1036], [1254, 483], [1254, 947], [1254, 1068], [1254, 223], [1254, 1253], [1254, 526], [1254, 1024], [1255, 534], [1256, 1254], [1256, 1255], [1257, 1256], [1259, 1258], [1262, 1024], [1262, 526], [1262, 1036], [1262, 483], [1262, 947], [1262, 1068], [1262, 223], [1262, 1261], [1262, 1296], [1262, 1308], [1263, 1024], [1263, 1036], [1263, 483], [1263, 947], [1263, 1068], [1263, 223], [1263, 1296], [1263, 1308], [1263, 526], [1263, 1262], [1264, 1263], [1265, 1264], [1267, 947], [1267, 1068], [1267, 223], [1267, 1296], [1267, 1308], [1267, 1024], [1267, 1266], [1267, 526], [1267, 1036], [1267, 483], [1268, 526], [1268, 1036], [1268, 483], [1268, 947], [1268, 1068], [1268, 1267], [1268, 223], [1268, 1296], [1268, 1308], [1268, 1024], [1269, 1268], [1270, 1269], [1272, 1271], [1272, 1269], [1274, 1269], [1275, 1274], [1276, 1269], [1277, 1275], [1277, 1276], [1279, 1277], [1279, 1278], [1280, 1279], [1282, 1280], [1282, 1281], [1282, 1272], [1283, 1282], [1284, 1269], [1284, 1277], [1285, 1276], [1285, 1269], [1285, 1283], [1288, 1283], [1288, 1287], [1289, 1269], [1289, 1276], [1289, 1288], [1291, 1289], [1291, 1290], [1295, 526], [1295, 1036], [1295, 483], [1295, 947], [1295, 1068], [1295, 1294], [1295, 223], [1295, 1296], [1295, 1024], [1295, 1308], [1296, 1285], [1296, 1291], [1296, 1293], [1296, 1295], [1298, 1296], [1298, 1297], [1299, 1298], [1299, 1296], [1301, 1300], [1301, 1296], [1302, 1296], [1302, 1301], [1304, 1296], [1304, 1303], [1305, 1299], [1306, 1302], [1308, 1304], [1308, 1307], [1310, 1308], [1310, 526], [1310, 1309], [1310, 1024], [1310, 1036], [1310, 483], [1310, 947], [1310, 1068], [1310, 223], [1310, 1296], [1311, 1296], [1311, 1308], [1311, 526], [1311, 1310], [1311, 1024], [1311, 1036], [1311, 483], [1311, 947], [1311, 1068], [1311, 223], [1313, 1308], [1313, 526], [1313, 483], [1313, 1068], [1313, 1312], [1313, 1024], [1313, 1036], [1313, 947], [1313, 223], [1313, 1296], [1314, 1036], [1314, 483], [1314, 947], [1314, 1068], [1314, 1313], [1314, 223], [1314, 1296], [1314, 1308], [1314, 526], [1314, 1024], [1315, 1314], [1316, 1315], [1316, 1311], [1317, 1316], [1319, 1327], [1319, 1296], [1319, 1318], [1319, 1308], [1319, 526], [1319, 1024], [1319, 1036], [1319, 483], [1319, 947], [1319, 1068], [1319, 223], [1319, 1325], [1320, 223], [1320, 1325], [1320, 1327], [1320, 1296], [1320, 1308], [1320, 526], [1320, 1319], [1320, 1024], [1320, 1036], [1320, 483], [1320, 947], [1320, 1068], [1322, 1327], [1322, 1296], [1322, 1308], [1322, 526], [1322, 483], [1322, 1024], [1322, 1321], [1322, 1036], [1322, 947], [1322, 1068], [1322, 223], [1322, 1325], [1323, 1322], [1323, 1024], [1323, 526], [1323, 1036], [1323, 483], [1323, 947], [1323, 1068], [1323, 223], [1323, 1325], [1323, 1327], [1323, 1296], [1323, 1308], [1324, 1308], [1324, 526], [1324, 1024], [1324, 1036], [1324, 483], [1324, 947], [1324, 1068], [1324, 1323], [1324, 1303], [1324, 223], [1324, 1325], [1324, 1072], [1324, 1327], [1324, 1296], [1325, 1322], [1325, 1324], [1326, 1322], [1326, 1323], [1326, 1325], [1327, 1326], [1330, 1296], [1330, 1364], [1330, 1308], [1330, 526], [1330, 483], [1330, 1376], [1330, 947], [1330, 1068], [1330, 1024], [1330, 1036], [1330, 223], [1330, 1325], [1330, 1327], [1330, 1329], [1331, 1364], [1331, 1036], [1331, 483], [1331, 1376], [1331, 947], [1331, 1068], [1331, 223], [1331, 1325], [1331, 1327], [1331, 1296], [1331, 1308], [1331, 526], [1331, 1330], [1331, 1024], [1332, 1331], [1333, 1332], [1335, 1327], [1335, 1296], [1335, 1308], [1335, 526], [1335, 1024], [1335, 1364], [1335, 1334], [1335, 1036], [1335, 483], [1335, 1376], [1335, 947], [1335, 1068], [1335, 223], [1335, 1325], [1336, 1335], [1336, 1325], [1336, 1327], [1336, 1296], [1336, 1308], [1336, 526], [1336, 1024], [1336, 1364], [1336, 1036], [1336, 483], [1336, 1376], [1336, 947], [1336, 1068], [1336, 223], [1337, 1336], [1338, 1337], [1340, 1337], [1340, 1339], [1342, 1337], [1343, 1342], [1344, 1337], [1345, 1344], [1345, 1343], [1347, 1346], [1347, 1345], [1348, 1347], [1350, 1348], [1350, 1349], [1350, 1340], [1351, 1350], [1352, 1337], [1352, 1345], [1353, 1337], [1353, 1351], [1353, 1344], [1356, 1351], [1356, 1355], [1357, 1344], [1357, 1356], [1357, 1337], [1359, 1357], [1359, 1358], [1363, 1296], [1363, 1364], [1363, 1308], [1363, 526], [1363, 483], [1363, 1376], [1363, 947], [1363, 1068], [1363, 1024], [1363, 1036], [1363, 223], [1363, 1362], [1363, 1325], [1363, 1327], [1364, 1359], [1364, 1361], [1364, 1363], [1364, 1353], [1366, 1365], [1366, 1364], [1367, 1364], [1367, 1366], [1369, 1368], [1369, 1364], [1370, 1369], [1370, 1364], [1372, 1371], [1372, 1364], [1373, 1367], [1374, 1370], [1376, 1375], [1376, 1372], [1378, 1024], [1378, 1364], [1378, 1377], [1378, 1036], [1378, 947], [1378, 223], [1378, 1325], [1378, 1327], [1378, 1296], [1378, 1308], [1378, 526], [1378, 483], [1378, 1376], [1378, 1068], [1379, 1296], [1379, 1364], [1379, 1308], [1379, 526], [1379, 483], [1379, 1376], [1379, 947], [1379, 1068], [1379, 1378], [1379, 1024], [1379, 1036], [1379, 223], [1379, 1325], [1379, 1327], [1381, 1024], [1381, 1036], [1381, 223], [1381, 1325], [1381, 1380], [1381, 1327], [1381, 1296], [1381, 1364], [1381, 1308], [1381, 526], [1381, 483], [1381, 1376], [1381, 947], [1381, 1068], [1382, 947], [1382, 1068], [1382, 1024], [1382, 1036], [1382, 223], [1382, 1381], [1382, 1325], [1382, 1327], [1382, 1296], [1382, 1364], [1382, 1308], [1382, 526], [1382, 483], [1382, 1376], [1384, 1024], [1384, 1036], [1384, 223], [1384, 1325], [1384, 1383], [1384, 1327], [1384, 1296], [1384, 1364], [1384, 1308], [1384, 526], [1384, 483], [1384, 1376], [1384, 947], [1384, 1068], [1386, 223], [1386, 1325], [1386, 1327], [1386, 1296], [1386, 1364], [1386, 1308], [1386, 526], [1386, 483], [1386, 1376], [1386, 947], [1386, 1068], [1386, 1385], [1386, 1024], [1386, 1036], [1388, 1386], [1389, 1384], [1389, 1388], [1390, 1296], [1390, 1364], [1390, 1308], [1390, 526], [1390, 483], [1390, 1376], [1390, 947], [1390, 1068], [1390, 1024], [1390, 1036], [1390, 1389], [1390, 223], [1390, 1325], [1390, 1327], [1391, 534], [1392, 1390], [1392, 1391], [1393, 1392], [1394, 1393], [1394, 1382], [1395, 1379], [1395, 1394], [1396, 1395], [1398, 947], [1398, 1068], [1398, 1024], [1398, 1036], [1398, 1444], [1398, 223], [1398, 1325], [1398, 1327], [1398, 1296], [1398, 1397], [1398, 1364], [1398, 1308], [1398, 526], [1398, 483], [1398, 1376], [1400, 1024], [1400, 1036], [1400, 223], [1400, 1325], [1400, 1327], [1400, 1296], [1400, 1364], [1400, 1308], [1400, 526], [1400, 483], [1400, 1399], [1400, 1376], [1400, 947], [1400, 1068], [1400, 1444], [1402, 1400], [1403, 1402], [1403, 1398], [1404, 1325], [1404, 1403], [1404, 1327], [1404, 1296], [1404, 1364], [1404, 1308], [1404, 526], [1404, 483], [1404, 1376], [1404, 947], [1404, 1068], [1404, 1444], [1404, 1024], [1404, 1036], [1404, 223], [1405, 534], [1406, 1405], [1406, 1404], [1407, 1406], [1409, 1296], [1409, 1364], [1409, 1308], [1409, 526], [1409, 483], [1409, 1376], [1409, 947], [1409, 1068], [1409, 1408], [1409, 1444], [1409, 1024], [1409, 1036], [1409, 223], [1409, 1325], [1409, 1327], [1411, 1024], [1411, 1410], [1411, 1036], [1411, 1444], [1411, 223], [1411, 1325], [1411, 1327], [1411, 1296], [1411, 1364], [1411, 1308], [1411, 526], [1411, 483], [1411, 1376], [1411, 947], [1411, 1068], [1412, 534], [1413, 1412], [1413, 1411], [1415, 1413], [1416, 1415], [1416, 1409], [1418, 223], [1418, 1325], [1418, 1327], [1418, 1296], [1418, 1417], [1418, 1364], [1418, 1308], [1418, 526], [1418, 483], [1418, 1376], [1418, 947], [1418, 1068], [1418, 1024], [1418, 1036], [1418, 1444], [1419, 223], [1419, 1325], [1419, 1327], [1419, 1418], [1419, 1296], [1419, 1364], [1419, 1308], [1419, 526], [1419, 483], [1419, 1376], [1419, 947], [1419, 1068], [1419, 1444], [1419, 1024], [1419, 1036], [1421, 223], [1421, 1325], [1421, 1327], [1421, 1296], [1421, 1364], [1421, 1308], [1421, 526], [1421, 483], [1421, 1376], [1421, 947], [1421, 1068], [1421, 1444], [1421, 1420], [1421, 1024], [1421, 1036], [1422, 223], [1422, 1325], [1422, 1327], [1422, 1296], [1422, 1364], [1422, 1308], [1422, 526], [1422, 483], [1422, 1376], [1422, 947], [1422, 1068], [1422, 1444], [1422, 1421], [1422, 1024], [1422, 1036], [1423, 1419], [1423, 1422], [1424, 1416], [1425, 1423], [1428, 947], [1428, 1068], [1428, 1024], [1428, 1036], [1428, 1444], [1428, 223], [1428, 1325], [1428, 1327], [1428, 1427], [1428, 1296], [1428, 1364], [1428, 1308], [1428, 526], [1428, 483], [1428, 1376], [1429, 1428], [1429, 1296], [1429, 1364], [1429, 1308], [1429, 526], [1429, 483], [1429, 1376], [1429, 947], [1429, 1068], [1429, 1444], [1429, 1024], [1429, 1325], [1429, 1036], [1429, 223], [1429, 1327], [1431, 947], [1431, 1068], [1431, 1444], [1431, 1024], [1431, 1036], [1431, 223], [1431, 1325], [1431, 1327], [1431, 1296], [1431, 1430], [1431, 1364], [1431, 1308], [1431, 526], [1431, 483], [1431, 1376], [1433, 1444], [1433, 223], [1433, 1325], [1433, 1327], [1433, 1296], [1433, 1364], [1433, 1308], [1433, 526], [1433, 483], [1433, 1376], [1433, 947], [1433, 1068], [1433, 1024], [1433, 1432], [1433, 1036], [1435, 1433], [1436, 1435], [1436, 1431], [1437, 1296], [1437, 1364], [1437, 1308], [1437, 526], [1437, 483], [1437, 1376], [1437, 947], [1437, 1068], [1437, 1024], [1437, 1036], [1437, 1444], [1437, 223], [1437, 1325], [1437, 1436], [1437, 1327], [1438, 534], [1439, 1437], [1439, 1438], [1440, 1439], [1442, 1296], [1442, 1364], [1442, 1308], [1442, 526], [1442, 483], [1442, 1376], [1442, 947], [1442, 1441], [1442, 1068], [1442, 1444], [1442, 1024], [1442, 1036], [1442, 223], [1442, 1325], [1442, 1327], [1443, 1440], [1443, 1429], [1444, 1443], [1444, 1442], [1447, 1068], [1447, 1444], [1447, 1024], [1447, 1036], [1447, 223], [1447, 1325], [1447, 1446], [1447, 1481], [1447, 1327], [1447, 1493], [1447, 1296], [1447, 1364], [1447, 1308], [1447, 526], [1447, 483], [1447, 1376], [1447, 947], [1448, 483], [1448, 1376], [1448, 947], [1448, 1068], [1448, 1444], [1448, 1024], [1448, 1036], [1448, 1447], [1448, 223], [1448, 1325], [1448, 1481], [1448, 1327], [1448, 1493], [1448, 1296], [1448, 1364], [1448, 1308], [1448, 526], [1449, 1448], [1450, 1449], [1452, 223], [1452, 1325], [1452, 1481], [1452, 1327], [1452, 1451], [1452, 1493], [1452, 1296], [1452, 1364], [1452, 1308], [1452, 526], [1452, 483], [1452, 1376], [1452, 947], [1452, 1068], [1452, 1444], [1452, 1024], [1452, 1036], [1453, 1036], [1453, 223], [1453, 1325], [1453, 1481], [1453, 1327], [1453, 1493], [1453, 1296], [1453, 1364], [1453, 1452], [1453, 1308], [1453, 526], [1453, 483], [1453, 1376], [1453, 947], [1453, 1068], [1453, 1444], [1453, 1024], [1454, 1453], [1455, 1454], [1457, 1454], [1457, 1456], [1459, 1454], [1460, 1459], [1461, 1454], [1462, 1461], [1462, 1460], [1464, 1463], [1464, 1462], [1465, 1464], [1467, 1466], [1467, 1457], [1467, 1465], [1468, 1467], [1469, 1462], [1469, 1454], [1470, 1461], [1470, 1454], [1470, 1468], [1473, 1472], [1473, 1468], [1474, 1461], [1474, 1473], [1474, 1454], [1476, 1475], [1476, 1474], [1480, 947], [1480, 1068], [1480, 1444], [1480, 1479], [1480, 1024], [1480, 1325], [1480, 223], [1480, 1481], [1480, 1327], [1480, 1493], [1480, 1296], [1480, 1364], [1480, 1308], [1480, 526], [1480, 1036], [1480, 483], [1480, 1376], [1481, 1476], [1481, 1478], [1481, 1480], [1481, 1470], [1483, 1482], [1483, 1481], [1484, 1481], [1484, 1483], [1486, 1481], [1486, 1485], [1487, 1481], [1487, 1486], [1489, 1488], [1489, 1481], [1490, 1484], [1491, 1487], [1493, 1489], [1493, 1492], [1495, 1364], [1495, 1308], [1495, 526], [1495, 483], [1495, 1376], [1495, 947], [1495, 1068], [1495, 1444], [1495, 1024], [1495, 1325], [1495, 1036], [1495, 223], [1495, 1481], [1495, 1494], [1495, 1327], [1495, 1493], [1495, 1296], [1496, 1444], [1496, 1024], [1496, 1325], [1496, 223], [1496, 1481], [1496, 1327], [1496, 1493], [1496, 1296], [1496, 1495], [1496, 1364], [1496, 1308], [1496, 526], [1496, 1036], [1496, 483], [1496, 1376], [1496, 947], [1496, 1068], [1498, 1024], [1498, 1364], [1498, 1308], [1498, 526], [1498, 1036], [1498, 483], [1498, 1376], [1498, 1497], [1498, 947], [1498, 1068], [1498, 1444], [1498, 1325], [1498, 1481], [1498, 1493], [1498, 223], [1498, 1327], [1498, 1296], [1499, 1036], [1499, 223], [1499, 1325], [1499, 1481], [1499, 1327], [1499, 1493], [1499, 1296], [1499, 1364], [1499, 1498], [1499, 1308], [1499, 526], [1499, 483], [1499, 1376], [1499, 947], [1499, 1068], [1499, 1444], [1499, 1024], [1500, 1499], [1501, 1500], [1501, 1496], [1502, 1501], [1504, 1481], [1504, 1327], [1504, 1493], [1504, 1296], [1504, 1364], [1504, 1308], [1504, 526], [1504, 483], [1504, 1376], [1504, 947], [1504, 1068], [1504, 1444], [1504, 1024], [1504, 1036], [1504, 1523], [1504, 1503], [1504, 223], [1504, 1325], [1505, 1481], [1505, 1327], [1505, 1523], [1505, 1493], [1505, 223], [1505, 1296], [1505, 1308], [1505, 1504], [1505, 1024], [1505, 1364], [1505, 526], [1505, 1036], [1505, 483], [1505, 1376], [1505, 947], [1505, 1068], [1505, 1444], [1505, 1325], [1507, 1481], [1507, 1327], [1507, 1506], [1507, 1296], [1507, 1024], [1507, 1364], [1507, 1308], [1507, 526], [1507, 1036], [1507, 483], [1507, 1376], [1507, 947], [1507, 1068], [1507, 1444], [1507, 1325], [1507, 1523], [1507, 1493], [1507, 223], [1508, 526], [1508, 483], [1508, 1507], [1508, 1376], [1508, 947], [1508, 1068], [1508, 1444], [1508, 1024], [1508, 1036], [1508, 1523], [1508, 223], [1508, 1325], [1508, 1481], [1508, 1327], [1508, 1493], [1508, 1296], [1508, 1364], [1508, 1308], [1509, 1508], [1509, 1505], [1510, 1509], [1511, 1510], [1513, 1511], [1515, 1514], [1515, 1510], [1516, 1515], [1518, 1481], [1518, 1523], [1518, 1493], [1518, 223], [1518, 1517], [1518, 1327], [1518, 1296], [1518, 1024], [1518, 1364], [1518, 1308], [1518, 526], [1518, 1036], [1518, 483], [1518, 1376], [1518, 947], [1518, 1068], [1518, 1444], [1518, 1325], [1519, 1325], [1519, 1481], [1519, 1327], [1519, 1523], [1519, 1493], [1519, 223], [1519, 1308], [1519, 1296], [1519, 1024], [1519, 1518], [1519, 1364], [1519, 526], [1519, 1036], [1519, 483], [1519, 1376], [1519, 947], [1519, 1068], [1519, 1444], [1521, 1481], [1521, 1327], [1521, 1523], [1521, 1493], [1521, 1296], [1521, 1308], [1521, 1024], [1521, 1364], [1521, 526], [1521, 1036], [1521, 483], [1521, 1520], [1521, 1376], [1521, 947], [1521, 1068], [1521, 1444], [1521, 223], [1521, 1325], [1522, 1516], [1522, 1519], [1523, 1522], [1523, 1521], [1524, 534], [1526, 1308], [1526, 1024], [1526, 1364], [1526, 526], [1526, 1036], [1526, 483], [1526, 1376], [1526, 947], [1526, 1068], [1526, 1444], [1526, 223], [1526, 1325], [1526, 1481], [1526, 1327], [1526, 1523], [1526, 1493], [1526, 1525], [1526, 1296], [1528, 1024], [1528, 1364], [1528, 1308], [1528, 526], [1528, 1036], [1528, 483], [1528, 1376], [1528, 947], [1528, 1068], [1528, 1444], [1528, 1325], [1528, 1523], [1528, 1493], [1528, 223], [1528, 1527], [1528, 1481], [1528, 1327], [1528, 1296], [1530, 1528], [1531, 1530], [1531, 1526], [1532, 1523], [1532, 1493], [1532, 223], [1532, 1481], [1532, 1327], [1532, 1296], [1532, 1024], [1532, 1531], [1532, 1364], [1532, 1308], [1532, 526], [1532, 1036], [1532, 483], [1532, 1376], [1532, 947], [1532, 1068], [1532, 1444], [1532, 1325], [1533, 1524], [1533, 1532], [1535, 1534], [1535, 1533], [1536, 1535], [1538, 1536], [1538, 1537], [1539, 470], [1539, 1538], [1542, 1541], [1546, 531], [1546, 1545], [1546, 948], [1548, 534], [1548, 1547], [1551, 531], [1552, 1551], [1553, 528], [1554, 1553], [1555, 531], [1556, 1555], [1557, 1556], [1558, 519], [1559, 481], [1559, 402], [1559, 526], [1559, 525], [1559, 417], [1559, 315], [1559, 426], [1559, 295], [1559, 383], [1559, 507], [1559, 483], [1559, 223], [1559, 1567], [1559, 335], [1559, 1558], [1560, 1559], [1561, 1558], [1562, 1559], [1563, 230], [1564, 1563], [1564, 1562], [1565, 528], [1566, 1557], [1566, 1565], [1567, 1564], [1567, 1566], [1570, 1569], [1571, 1570], [1572, 1571], [1574, 1573], [1574, 526], [1574, 483], [1574, 1567], [1574, 223], [1575, 1574], [1575, 526], [1575, 483], [1575, 1567], [1575, 223], [1576, 1575], [1577, 1576], [1581, 483], [1581, 223], [1581, 1567], [1581, 1580], [1581, 526], [1582, 223], [1582, 1567], [1582, 1581], [1582, 526], [1582, 483], [1583, 223], [1583, 1567], [1583, 1582], [1583, 526], [1583, 483], [1585, 223], [1585, 1567], [1585, 526], [1585, 1584], [1585, 483], [1586, 1585], [1587, 1586], [1588, 298], [1590, 335], [1590, 315], [1590, 481], [1590, 402], [1590, 526], [1590, 525], [1590, 417], [1590, 426], [1590, 295], [1590, 383], [1590, 507], [1590, 1566], [1590, 483], [1590, 1588], [1590, 223], [1590, 1567], [1592, 284], [1592, 526], [1592, 382], [1592, 483], [1592, 416], [1592, 516], [1592, 506], [1592, 443], [1592, 223], [1592, 465], [1592, 1567], [1592, 1557], [1592, 333], [1592, 401], [1592, 1591], [1596, 483], [1596, 223], [1596, 1567], [1596, 526], [1596, 1595], [1597, 1596], [1597, 223], [1597, 1567], [1597, 526], [1597, 483], [1598, 419], [1598, 288], [1598, 468], [1598, 1550], [1598, 404], [1598, 384], [1598, 508], [1601, 1598], [1602, 1600], [1603, 1583], [1604, 1603], [1604, 290], [1605, 1604], [1606, 1605], [1607, 1604], [1610, 1550], [1611, 531], [1611, 1568], [1611, 1610], [1612, 1550], [1613, 1612], [1613, 536], [1614, 1550], [1615, 1614], [1615, 470], [1617, 531], [1618, 1617], [1619, 528], [1620, 1619], [1621, 531], [1622, 1621], [1623, 1622], [1624, 519], [1625, 525], [1625, 417], [1625, 315], [1625, 426], [1625, 295], [1625, 383], [1625, 507], [1625, 483], [1625, 223], [1625, 1633], [1625, 335], [1625, 1624], [1625, 481], [1625, 402], [1625, 526], [1626, 1625], [1627, 1624], [1628, 1625], [1629, 230], [1630, 1629], [1630, 1628], [1631, 528], [1632, 1623], [1632, 1631], [1633, 1630], [1633, 1632], [1636, 1635], [1637, 1636], [1638, 1637], [1640, 1639], [1640, 526], [1640, 483], [1640, 223], [1640, 1633], [1641, 1640], [1641, 483], [1641, 223], [1641, 1633], [1641, 526], [1642, 1641], [1643, 1642], [1647, 483], [1647, 223], [1647, 1633], [1647, 1646], [1647, 526], [1648, 223], [1648, 1633], [1648, 1647], [1648, 526], [1648, 483], [1649, 223], [1649, 1633], [1649, 526], [1649, 1648], [1649, 483], [1651, 223], [1651, 1633], [1651, 526], [1651, 483], [1651, 1650], [1652, 1651], [1653, 1652], [1654, 298], [1656, 335], [1656, 315], [1656, 426], [1656, 481], [1656, 402], [1656, 526], [1656, 483], [1656, 525], [1656, 417], [1656, 295], [1656, 383], [1656, 507], [1656, 1632], [1656, 1654], [1656, 223], [1656, 1633], [1658, 483], [1658, 416], [1658, 516], [1658, 506], [1658, 443], [1658, 223], [1658, 465], [1658, 1633], [1658, 1623], [1658, 333], [1658, 401], [1658, 1657], [1658, 284], [1658, 526], [1658, 382], [1662, 223], [1662, 526], [1662, 1661], [1662, 1633], [1662, 483], [1663, 223], [1663, 1633], [1663, 1662], [1663, 526], [1663, 483], [1664, 508], [1664, 288], [1664, 468], [1664, 404], [1664, 384], [1664, 419], [1667, 1664], [1668, 1666], [1669, 1649], [1670, 290], [1670, 1669], [1671, 1670], [1672, 1671], [1673, 1670], [1676, 1634], [1676, 531], [1677, 536], [1678, 470], [1681, 531], [1682, 1681], [1683, 528], [1684, 1683], [1685, 531], [1686, 1685], [1687, 1686], [1688, 519], [1689, 525], [1689, 335], [1689, 315], [1689, 426], [1689, 383], [1689, 481], [1689, 526], [1689, 483], [1689, 417], [1689, 295], [1689, 507], [1689, 1688], [1689, 1697], [1689, 223], [1689, 402], [1690, 1689], [1691, 1688], [1692, 1689], [1693, 230], [1694, 1693], [1694, 1692], [1695, 528], [1696, 1687], [1696, 1695], [1697, 1694], [1697, 1696], [1700, 1699], [1701, 1700], [1702, 1701], [1704, 1703], [1704, 526], [1704, 483], [1704, 1697], [1704, 223], [1705, 1704], [1705, 526], [1705, 483], [1705, 1697], [1705, 223], [1706, 1705], [1707, 1706], [1711, 526], [1711, 483], [1711, 1697], [1711, 1710], [1711, 223], [1712, 1697], [1712, 223], [1712, 1711], [1712, 526], [1712, 483], [1713, 526], [1713, 1697], [1713, 483], [1713, 223], [1713, 1712], [1715, 1697], [1715, 526], [1715, 223], [1715, 1714], [1715, 483], [1716, 1715], [1717, 1716], [1718, 298], [1720, 402], [1720, 525], [1720, 335], [1720, 315], [1720, 426], [1720, 383], [1720, 481], [1720, 526], [1720, 483], [1720, 417], [1720, 1696], [1720, 295], [1720, 1718], [1720, 507], [1720, 1697], [1720, 223], [1722, 401], [1722, 416], [1722, 284], [1722, 526], [1722, 382], [1722, 516], [1722, 506], [1722, 483], [1722, 1721], [1722, 333], [1722, 1697], [1722, 1687], [1722, 443], [1722, 223], [1722, 465], [1726, 483], [1726, 1697], [1726, 223], [1726, 1725], [1726, 526], [1727, 526], [1727, 483], [1727, 1697], [1727, 223], [1727, 1726], [1728, 508], [1728, 288], [1728, 1680], [1728, 468], [1728, 404], [1728, 384], [1728, 419], [1731, 1728], [1732, 1730], [1733, 1713], [1734, 1733], [1734, 290], [1735, 1734], [1736, 1735], [1737, 1734], [1740, 1739], [1742, 1741], [1743, 429], [1743, 474], [1744, 1743], [1745, 1744], [1747, 1746], [1750, 526], [1750, 483], [1750, 1749], [1750, 1784], [1750, 1796], [1750, 1697], [1750, 223], [1751, 1796], [1751, 223], [1751, 1750], [1751, 526], [1751, 1697], [1751, 483], [1751, 1784], [1752, 1751], [1753, 1752], [1755, 526], [1755, 1697], [1755, 483], [1755, 1784], [1755, 1754], [1755, 1796], [1755, 223], [1756, 223], [1756, 526], [1756, 1697], [1756, 483], [1756, 1784], [1756, 1796], [1756, 1755], [1757, 1756], [1758, 1757], [1760, 1757], [1760, 1759], [1762, 1757], [1763, 1762], [1764, 1757], [1765, 1764], [1765, 1763], [1767, 1766], [1767, 1765], [1768, 1767], [1770, 1769], [1770, 1760], [1770, 1768], [1771, 1770], [1772, 1757], [1772, 1765], [1773, 1764], [1773, 1757], [1773, 1771], [1776, 1775], [1776, 1771], [1777, 1764], [1777, 1776], [1777, 1757], [1779, 1778], [1779, 1777], [1783, 526], [1783, 1782], [1783, 483], [1783, 1784], [1783, 1796], [1783, 1697], [1783, 223], [1784, 1781], [1784, 1779], [1784, 1783], [1784, 1773], [1786, 1785], [1786, 1784], [1787, 1784], [1787, 1786], [1789, 1784], [1789, 1788], [1790, 1784], [1790, 1789], [1792, 1791], [1792, 1784], [1793, 1787], [1794, 1790], [1796, 1795], [1796, 1792], [1798, 1784], [1798, 1797], [1798, 223], [1798, 1796], [1798, 526], [1798, 1697], [1798, 483], [1799, 1697], [1799, 526], [1799, 483], [1799, 1784], [1799, 1796], [1799, 1798], [1799, 223], [1801, 223], [1801, 1800], [1801, 1784], [1801, 1796], [1801, 526], [1801, 1697], [1801, 483], [1802, 526], [1802, 1697], [1802, 483], [1802, 1784], [1802, 1796], [1802, 1801], [1802, 223], [1803, 1802], [1804, 1803], [1804, 1799], [1805, 1804], [1807, 1806], [1807, 526], [1807, 1828], [1807, 1697], [1807, 483], [1807, 1784], [1807, 1796], [1807, 223], [1808, 1796], [1808, 526], [1808, 1828], [1808, 1697], [1808, 483], [1808, 1807], [1808, 1784], [1808, 223], [1810, 1784], [1810, 1796], [1810, 526], [1810, 1828], [1810, 1697], [1810, 483], [1810, 1809], [1810, 223], [1811, 1796], [1811, 1810], [1811, 223], [1811, 526], [1811, 1828], [1811, 1697], [1811, 483], [1811, 1784], [1812, 1811], [1812, 1808], [1813, 1812], [1814, 429], [1814, 474], [1815, 1814], [1816, 1813], [1817, 1815], [1818, 1816], [1820, 1813], [1820, 1819], [1821, 1820], [1823, 1796], [1823, 526], [1823, 1828], [1823, 1697], [1823, 483], [1823, 1784], [1823, 223], [1823, 1822], [1824, 1796], [1824, 526], [1824, 1828], [1824, 1697], [1824, 483], [1824, 1784], [1824, 1823], [1824, 223], [1826, 1796], [1826, 526], [1826, 1828], [1826, 1697], [1826, 483], [1826, 223], [1826, 1825], [1826, 1784], [1827, 1821], [1827, 1824], [1828, 1827], [1828, 1826], [1832, 1831], [1834, 1833], [1837, 1871], [1837, 1883], [1837, 1836], [1838, 1837], [1838, 1871], [1838, 1883], [1839, 1838], [1840, 1839], [1842, 1841], [1842, 1871], [1842, 1883], [1843, 1871], [1843, 1883], [1843, 1842], [1844, 1843], [1845, 1844], [1847, 1844], [1847, 1846], [1849, 1844], [1850, 1849], [1851, 1844], [1852, 1851], [1852, 1850], [1854, 1853], [1854, 1852], [1855, 1854], [1857, 1847], [1857, 1855], [1857, 1856], [1858, 1857], [1859, 1852], [1859, 1844], [1860, 1851], [1860, 1844], [1860, 1858], [1863, 1858], [1863, 1862], [1864, 1863], [1864, 1844], [1864, 1851], [1866, 1865], [1866, 1864], [1870, 1869], [1870, 1883], [1870, 1871], [1871, 1870], [1871, 1860], [1871, 1866], [1871, 1868], [1873, 1872], [1873, 1871], [1874, 1871], [1874, 1873], [1876, 1875], [1876, 1871], [1877, 1876], [1877, 1871], [1879, 1871], [1879, 1878], [1880, 1874], [1881, 1877], [1883, 1879], [1883, 1882], [1885, 1883], [1885, 1871], [1885, 1884], [1886, 1871], [1886, 1883], [1886, 1885], [1888, 1871], [1888, 1883], [1888, 1887], [1889, 1871], [1889, 1883], [1889, 1888], [1890, 1889], [1891, 1886], [1891, 1890], [1892, 1891], [1894, 1913], [1894, 1893], [1894, 1871], [1894, 1883], [1895, 1913], [1895, 1883], [1895, 1894], [1895, 1871], [1897, 1896], [1897, 1871], [1897, 1913], [1897, 1883], [1898, 1897], [1898, 1871], [1898, 1913], [1898, 1883], [1899, 1895], [1899, 1898], [1900, 1899], [1901, 1900], [1903, 1901], [1905, 1900], [1905, 1904], [1906, 1905], [1908, 1883], [1908, 1913], [1908, 1871], [1908, 1907], [1909, 1871], [1909, 1883], [1909, 1908], [1909, 1913], [1911, 1910], [1911, 1913], [1911, 1883], [1911, 1871], [1912, 1906], [1912, 1909], [1913, 1912], [1913, 1911], [1916, 1914], [1916, 1915], [1917, 1916], [1919, 1871], [1919, 1913], [1919, 1883], [1919, 1918], [1921, 1913], [1921, 1883], [1921, 1871], [1921, 1920], [1923, 1921], [1924, 1919], [1924, 1923], [1925, 1924], [1925, 1913], [1925, 1883], [1925, 1871], [1926, 1917], [1926, 1925], [1927, 1926], [1929, 1871], [1929, 1913], [1929, 1883], [1929, 1928], [1930, 1929], [1931, 1930], [1935, 1934], [1937, 1871], [1937, 1936], [1937, 1913], [1937, 1883], [1940, 1938], [1940, 1939], [1942, 1941], [1942, 1871], [1942, 1913], [1942, 1883], [1943, 1940], [1944, 1942], [1944, 1943], [1946, 1944], [1947, 1937], [1947, 1946], [1948, 1913], [1948, 1947], [1948, 1871], [1948, 1883], [1949, 1948], [1952, 1998], [1952, 1871], [1952, 1913], [1952, 1883], [1952, 1951], [1952, 1986], [1953, 1913], [1953, 1883], [1953, 1952], [1953, 1986], [1953, 1998], [1953, 1871], [1954, 1953], [1955, 1954], [1957, 1871], [1957, 1913], [1957, 1883], [1957, 1986], [1957, 1956], [1957, 1998], [1958, 1871], [1958, 1986], [1958, 1998], [1958, 1957], [1958, 1913], [1958, 1883], [1959, 1958], [1960, 1959], [1962, 1959], [1962, 1961], [1964, 1959], [1965, 1964], [1966, 1959], [1967, 1966], [1967, 1965], [1969, 1968], [1969, 1967], [1970, 1969], [1972, 1971], [1972, 1962], [1972, 1970], [1973, 1972], [1974, 1967], [1974, 1959], [1975, 1973], [1975, 1966], [1975, 1959], [1978, 1973], [1978, 1977], [1979, 1966], [1979, 1978], [1979, 1959], [1981, 1979], [1981, 1980], [1985, 1986], [1985, 1913], [1985, 1871], [1985, 1883], [1985, 1984], [1985, 1998], [1986, 1981], [1986, 1983], [1986, 1985], [1986, 1975], [1988, 1987], [1988, 1986], [1989, 1986], [1989, 1988], [1991, 1986], [1991, 1990], [1992, 1986], [1992, 1991], [1994, 1986], [1994, 1993], [1995, 1989], [1996, 1992], [1998, 1994], [1998, 1997], [2000, 1986], [2000, 1999], [2000, 1913], [2000, 1998], [2000, 1871], [2000, 1883], [2001, 1913], [2001, 2000], [2001, 1871], [2001, 1883], [2001, 1998], [2001, 1986], [2003, 2002], [2003, 1871], [2003, 1883], [2003, 1986], [2003, 1913], [2003, 1998], [2004, 2003], [2004, 1871], [2004, 1883], [2004, 1986], [2004, 1913], [2004, 1998], [2005, 2004], [2006, 2005], [2006, 2001], [2007, 2006]]}
{"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_464509", "query": "\n\n\n__int64 __fastcall sub_464509(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int *a5, __int64 a6, int a7, __int64 a8, void *s, int a10, int a11)\n{\n_BOOL4 v11; // eax\n_BOOL4 v12; // eax\n__int64 v13; // rax\ndouble v14; // xmm0_8\n__int64 v15; // rdx\ndouble v16; // xmm0_8\nunsigned __int64 v17; // rax\n__int64 v18; // rbx\nint v20; // eax\nint v21; // eax\nint v22; // eax\nint v23; // eax\nunsigned int v24; // eax\nunsigned int v25; // eax\n__int64 v26; // rcx\nint v27; // eax\n__int64 v28; // rcx\nint v29; // eax\nunsigned int v30; // eax\nunsigned int v31; // eax\nint v32; // eax\n__int64 v33; // rax\ndouble v34; // xmm0_8\n__int64 v35; // rdx\ndouble v36; // xmm0_8\nunsigned __int64 v37; // rax\n__int64 v38; // rbx\n_BYTE *v39; // rax\nunsigned __int8 v40; // al\nunsigned int v41; // eax\nint v42; // eax\n__int64 v43; // rax\ndouble v44; // xmm0_8\n__int64 v45; // rdx\ndouble v46; // xmm0_8\nunsigned __int64 v47; // rax\n__int64 v48; // rbx\n_BYTE *v49; // rax\n__int64 v50; // rax\ndouble v51; // xmm0_8\n__int64 v52; // rdx\ndouble v53; // xmm0_8\nunsigned __int64 v54; // rax\n__int64 v55; // rbx\n__int64 v56; // rsi\n__int64 v57; // rax\n__int64 v58; // rdx\n__int64 v59; // rax\ndouble v60; // xmm0_8\n__int64 v61; // rdx\ndouble v62; // xmm0_8\nunsigned __int64 v63; // rax\n__int64 v64; // rbx\n__int64 v65; // rax\ndouble v66; // xmm0_8\n__int64 v67; // rdx\ndouble v68; // xmm0_8\nunsigned __int64 v69; // rax\n__int64 v70; // rbx\n__int64 v71; // rsi\n__int64 v72; // rax\n__int64 v73; // rdx\n__int64 v74; // rax\ndouble v75; // xmm0_8\n__int64 v76; // rdx\ndouble v77; // xmm0_8\nunsigned __int64 v78; // rax\n__int64 v79; // rbx\n__int64 v80; // rax\ndouble v81; // xmm0_8\n__int64 v82; // rdx\ndouble v83; // xmm0_8\nunsigned __int64 v84; // rax\n__int64 v85; // rbx\n_BYTE *v86; // rax\nunsigned int v87; // edx\nunsigned int v88; // eax\n__int64 v89; // rcx\nint v90; // eax\nunsigned int v91; // eax\n__int64 v92; // rcx\nint v93; // eax\nunsigned int v94; // eax\n__int64 v95; // rcx\nint v96; // eax\n__int64 v97; // rax\ndouble v98; // xmm0_8\n__int64 v99; // rdx\ndouble v100; // xmm0_8\nunsigned __int64 v101; // rax\n__int64 v102; // rbx\n_BYTE *v103; // rax\n__int64 v104; // rax\ndouble v105; // xmm0_8\n__int64 v106; // rdx\ndouble v107; // xmm0_8\nunsigned __int64 v108; // rax\n__int64 v109; // rbx\n_BYTE *v110; // rax\n__int64 v111; // rax\ndouble v112; // xmm0_8\n__int64 v113; // rdx\ndouble v114; // xmm0_8\nunsigned __int64 v115; // rax\n__int64 v116; // rbx\n__int64 v117; // rsi\n__int64 v118; // rax\n__int64 v119; // rdx\nunsigned int v120; // eax\nint v121; // eax\nunsigned int v122; // eax\n__int64 v123; // rcx\nint v124; // eax\n__int64 v125; // rax\ndouble v126; // xmm0_8\n__int64 v127; // rdx\ndouble v128; // xmm0_8\nunsigned __int64 v129; // rax\n__int64 v130; // rbx\n_BYTE *v131; // rax\n__int64 v132; // rax\ndouble v133; // xmm0_8\n__int64 v134; // rdx\ndouble v135; // xmm0_8\nunsigned __int64 v136; // rax\n__int64 v137; // rbx\nchar v138; // si\n__int64 v139; // rdi\n__int64 v140; // rax\n__int64 v141; // rdx\nint v142; // eax\nint v143; // eax\nunsigned int v144; // eax\nint v145; // eax\nunsigned int v146; // eax\nint v147; // eax\nunsigned int v148; // eax\nint v149; // eax\nint v150; // eax\nunsigned int v151; // eax\n__int64 v152; // rax\ndouble v153; // xmm0_8\n__int64 v154; // rdx\ndouble v155; // xmm0_8\nunsigned __int64 v156; // rax\n__int64 v157; // rbx\n_BYTE *v158; // rax\nint v159; // eax\nunsigned int v160; // eax\nint v161; // eax\nint v162; // eax\n__int64 v163; // rax\ndouble v164; // xmm0_8\n__int64 v165; // rdx\ndouble v166; // xmm0_8\nunsigned __int64 v167; // rax\n__int64 v168; // rbx\n__int64 v169; // rsi\n__int64 v170; // rax\n__int64 v171; // rdx\n__int64 v172; // rax\ndouble v173; // xmm0_8\n__int64 v174; // rdx\ndouble v175; // xmm0_8\nunsigned __int64 v176; // rax\n__int64 v177; // rbx\n__int64 v178; // rax\n_BYTE v185[7]; // [rsp+39h] [rbp-F7h]\nint v186; // [rsp+40h] [rbp-F0h] BYREF\nint v187; // [rsp+44h] [rbp-ECh] BYREF\nint v188; // [rsp+48h] [rbp-E8h] BYREF\nint v189; // [rsp+4Ch] [rbp-E4h] BYREF\nunsigned __int8 v190; // [rsp+53h] [rbp-DDh] BYREF\nint v191; // [rsp+54h] [rbp-DCh] BYREF\nchar v192; // [rsp+5Bh] [rbp-D5h] BYREF\nint v193; // [rsp+5Ch] [rbp-D4h] BYREF\nsigned int v194; // [rsp+60h] [rbp-D0h] BYREF\nint v195; // [rsp+64h] [rbp-CCh] BYREF\nint v196; // [rsp+68h] [rbp-C8h] BYREF\nint v197; // [rsp+6Ch] [rbp-C4h] BYREF\n_BYTE *v198; // [rsp+70h] [rbp-C0h]\n_BYTE *v199; // [rsp+78h] [rbp-B8h]\n_BYTE *v200; // [rsp+80h] [rbp-B0h]\nint v201; // [rsp+8Ch] [rbp-A4h]\n_BYTE *v202; // [rsp+90h] [rbp-A0h]\n_BYTE *v203; // [rsp+98h] [rbp-98h]\nint v204; // [rsp+A0h] [rbp-90h]\nunsigned __int8 v205; // [rsp+A6h] [rbp-8Ah]\nchar v206; // [rsp+A7h] [rbp-89h]\n_BYTE *v207; // [rsp+A8h] [rbp-88h]\n_BYTE *v208; // [rsp+B0h] [rbp-80h]\nint v209; // [rsp+BCh] [rbp-74h]\nchar v210; // [rsp+C3h] [rbp-6Dh]\nint v211; // [rsp+C4h] [rbp-6Ch]\nchar v212; // [rsp+CBh] [rbp-65h]\nint v213; // [rsp+CCh] [rbp-64h]\nint l; // [rsp+D0h] [rbp-60h]\nint k; // [rsp+D4h] [rbp-5Ch]\nint v216; // [rsp+D8h] [rbp-58h]\nint j; // [rsp+DCh] [rbp-54h]\n_BOOL4 v218; // [rsp+E0h] [rbp-50h]\nint v219; // [rsp+E4h] [rbp-4Ch]\nint v220; // [rsp+E8h] [rbp-48h]\nint v221; // [rsp+ECh] [rbp-44h]\nunsigned int v222; // [rsp+F0h] [rbp-40h]\nunsigned int v223; // [rsp+F4h] [rbp-3Ch]\nvoid *ptr; // [rsp+F8h] [rbp-38h]\nint v225; // [rsp+104h] [rbp-2Ch]\nunsigned int v226; // [rsp+108h] [rbp-28h]\nint v227; // [rsp+10Ch] [rbp-24h]\nint v228; // [rsp+110h] [rbp-20h]\nunsigned int v229; // [rsp+114h] [rbp-1Ch]\nint i; // [rsp+118h] [rbp-18h]\nint v231; // [rsp+11Ch] [rbp-14h]\n\nv231 = 0;\nv229 = 0;\nv197 = 1;\nv228 = 1;\nv227 = 0;\nv226 = a5[6];\nv225 = 0;\nptr = *(void **)(a3 + 48);\nv223 = *(_DWORD *)(a3 + 60);\nv222 = *(_DWORD *)(a3 + 56);\nv221 = 0;\nv194 = 0;\nv220 = 0;\nv11 = *(_DWORD *)(a1 + 512) && *(_QWORD *)(a3 + 168) && !a10;\nv219 = v11;\nv12 = *(_DWORD *)(a1 + 512) && *(_QWORD *)(a3 + 168) && !a11;\nv218 = v12;\nv213 = *(_DWORD *)(*(_QWORD *)(a2 + 64) + 1040LL);\nif ( (v213 & 0x80) != 0 && (a7 & 1) == 0 )\nmemset(s, 255, a5[5]);\nif ( (a5[4] & 8) != 0 )\n{\nv218 = 0;\nv219 = 0;\n}\nif ( v219 )\n{\nv220 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL);\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 3LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv13 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v13 < 0 )\n{\nv15 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v13 >> 1);\nv14 = (double)(int)v15 + (double)(int)v15;\n}\nelse\n{\nv14 = (double)(int)v13;\n}\nv16 = v14 * 1.5;\nif ( v16 >= 9.223372036854776e18 )\nv17 = (unsigned int)(int)(v16 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv17 = (unsigned int)(int)v16;\n}\nelse\n{\nv17 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v17;\nv18 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v18 + 32) = realloc(*(void **)(v18 + 32), *(_QWORD *)(v18 + 40));\n}\nmemcpy((void *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)), \"MDZ\", 3uLL);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += 3LL;\n}\nif ( (v213 & 0x200) != 0 )\n{\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 848LL) )\nreturn 0xFFFFFFFFLL;\nv20 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, int *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64) + 848LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 848LL),\na4,\n&v196,\n&v197);\nv229 |= v20;\nif ( v229 )\nreturn v229;\n}\nelse\n{\nv196 = 0;\n}\n--v226;\na5[21] = v223;\nif ( (v213 & 0x104) != 0 )\n{\nfor ( i = 0; i < v196; ++i )\n{\nv193 = 0;\nif ( v222 <= v223 + 2 )\n{\nv21 = v222 ? 2 * v222 : 1024;\nv222 = v21;\n*(_QWORD *)(a3 + 48) = ptr;\nptr = realloc(ptr, 4LL * v222);\nif ( !ptr )\nreturn 0xFFFFFFFFLL;\n}\nif ( (v213 & 0x100) != 0 )\n{\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 856LL) )\nreturn 0xFFFFFFFFLL;\nv22 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, char *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 856LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 856LL),\na4,\n&v192,\n&v197);\nv229 |= v22;\nif ( v229 )\nreturn v229;\n}\nif ( (v213 & 4) != 0 )\n{\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 864LL) )\nreturn 0xFFFFFFFFLL;\nv23 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, int *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 864LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 864LL),\na4,\n&v193,\n&v197);\nv229 |= v23;\nif ( v229 )\nreturn v229;\nv193 += v231;\nif ( v193 <= 0 )\n{\nfprintf(stderr, \"Error: feature position %d before start of read.\\n\", (unsigned int)v193);\nreturn 0xFFFFFFFFLL;\n}\nif ( v228 < v193 )\n{\nif ( a5[5] + 1 < v193 )\nreturn 0xFFFFFFFFLL;\nif ( *(_QWORD *)(a3 + 168) && a5[2] >= 0 )\n{\nif ( v193 + v226 - v228 <= *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) )\n{\nif ( v219 || v218 )\n{\nfor ( j = 0; j < v193 - v228; ++j )\n{\nv210 = *(_BYTE *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176) + 1 + j));\nif ( v210 == 78 )\n{\nsub_464239(\na3,\nv219,\n*(char *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176) + 1 + j)),\n(unsigned int *)&v194);\n++v221;\n}\nelse\n{\n++v194;\n}\n*(_BYTE *)(a8 + v228 - 1 + j) = v210;\n}\n}\nelse\n{\nmemcpy(\n(void *)(a8 + v228 - 1LL),\n(const void *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176)) + 1LL),\nv193 - v228);\n}\n}\nelse\n{\nif ( !dword_499908 )\nfwrite(\"Ref pos outside of ref sequence boundary\\n\", 1uLL, 0x29uLL, stderr);\ndword_499908 = 1;\nv209 = *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) - v226;\nif ( v209 <= 0 )\n{\nmemset((void *)(a8 + v228 - 1LL), 78, a5[5] - v228 + 1);\n}\nelse\n{\nmemcpy(\n(void *)(a8 + v228 - 1LL),\n(const void *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176)) + 1LL),\nv209);\nif ( v193 - v228 - v209 > 0 )\nmemset((void *)(a8 + v228 - 1 + v209), 78, v193 - v228 - v209);\n}\nif ( v194 >= 0 )\nv194 += v193 - v228;\n}\n}\nif ( v227 && v225 )\n{\nv24 = v223++;\n*((_DWORD *)ptr + v24) = 16 * v227 + v225;\nv227 = 0;\n}\nv225 = 0;\nv227 += v193 - v228;\nv226 += v193 - v228;\nv228 = v193;\n}\nv231 = v193;\nif ( (v213 & 0x100) == 0 )\ngoto LABEL_448;\nswitch ( v192 )\n{\ncase 'B':\nif ( v227 && v225 )\n{\nv122 = v223++;\n*((_DWORD *)ptr + v122) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x40) == 0 )\ngoto LABEL_371;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 880LL) )\nreturn 0xFFFFFFFFLL;\nif ( a5[5] )\nv123 = v193 - 1LL + a8;\nelse\nv123 = 0LL;\nv124 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, __int64, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64) + 880LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 880LL),\na4,\nv123,\n&v197);\nv229 |= v124;\nif ( v219 || v218 )\n{\nif ( v194 >= 0 && v219 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136)\n+ 48LL)\n+ 11LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv125 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v125 < 0 )\n{\nv127 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v125 >> 1);\nv126 = (double)(int)v127 + (double)(int)v127;\n}\nelse\n{\nv126 = (double)(int)v125;\n}\nv128 = v126 * 1.5;\nif ( v128 >= 9.223372036854776e18 )\nv129 = (unsigned int)(int)(v128 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv129 = (unsigned int)(int)v128;\n}\nelse\n{\nv129 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v129;\nv130 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v130 + 32) = realloc(*(void **)(v130 + 32), *(_QWORD *)(v130 + 40));\n}\nv199 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL));\nv131 = sub_4602E4(v199, v194);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += v131 - v199;\n}\nif ( *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) > v226 && *(_QWORD *)(a3 + 168) )\n{\nif ( v219 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 1LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv132 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v132 < 0 )\n{\nv134 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v132 >> 1);\nv133 = (double)(int)v134 + (double)(int)v134;\n}\nelse\n{\nv133 = (double)(int)v132;\n}\nv135 = v133 * 1.5;\nif ( v135 >= 9.223372036854776e18 )\nv136 = (unsigned int)(int)(v135 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv136 = (unsigned int)(int)v135;\n}\nelse\n{\nv136 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v136;\nv137 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v137 + 32) = realloc(*(void **)(v137 + 32), *(_QWORD *)(v137 + 40));\n}\nv138 = *(_BYTE *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176)) + 1LL);\nv139 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL);\nv140 = *(_QWORD *)(a3 + 136);\nv141 = *(_QWORD *)(v140 + 48);\n*(_QWORD *)(v140 + 48) = v141 + 1;\n*(_BYTE *)(v139 + v141) = v138;\n}\n++v221;\nv194 = 0;\n}\nelse\n{\nv194 = -1;\n}\n}\nLABEL_371:\nif ( (v213 & 0x80) == 0 )\ngoto LABEL_375;\nif ( *(_QWORD *)(*(_QWORD *)(a2 + 64) + 736LL) )\n{\nv142 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, char *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64) + 736LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 736LL),\na4,\n(char *)s + v193 - 1,\n&v197);\nv229 |= v142;\nLABEL_375:\nv225 = 0;\n++v227;\n++v228;\n++v226;\ncontinue;\n}\nreturn 0xFFFFFFFFLL;\ncase 'D':\nif ( v227 && v225 != 2 )\n{\nv41 = v223++;\n*((_DWORD *)ptr + v41) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x10) == 0 )\ncontinue;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 872LL) )\nreturn 0xFFFFFFFFLL;\nv42 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, int *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 872LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 872LL),\na4,\n&v195,\n&v197);\nv229 |= v42;\nif ( v229 )\nreturn v229;\nif ( v219 || v218 )\n{\nif ( v194 >= 0 && v219 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136)\n+ 48LL)\n+ 11LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv43 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v43 < 0 )\n{\nv45 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v43 >> 1);\nv44 = (double)(int)v45 + (double)(int)v45;\n}\nelse\n{\nv44 = (double)(int)v43;\n}\nv46 = v44 * 1.5;\nif ( v46 >= 9.223372036854776e18 )\nv47 = (unsigned int)(int)(v46 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv47 = (unsigned int)(int)v46;\n}\nelse\n{\nv47 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v47;\nv48 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v48 + 32) = realloc(*(void **)(v48 + 32), *(_QWORD *)(v48 + 40));\n}\nv202 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL));\nv49 = sub_4602E4(v202, v194);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += v49 - v202;\n}\nif ( v195 + v226 > *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) )\n{\nif ( *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) < v226 )\n{\nv201 = v195;\n}\nelse\n{\nif ( v219 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 1LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv65 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v65 < 0 )\n{\nv67 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v65 >> 1);\nv66 = (double)(int)v67 + (double)(int)v67;\n}\nelse\n{\nv66 = (double)(int)v65;\n}\nv68 = v66 * 1.5;\nif ( v68 >= 9.223372036854776e18 )\nv69 = (unsigned int)(int)(v68 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv69 = (unsigned int)(int)v68;\n}\nelse\n{\nv69 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v69;\nv70 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v70 + 32) = realloc(*(void **)(v70 + 32), *(_QWORD *)(v70 + 40));\n}\nv71 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL);\nv72 = *(_QWORD *)(a3 + 136);\nv73 = *(_QWORD *)(v72 + 48);\n*(_QWORD *)(v72 + 48) = v73 + 1;\n*(_BYTE *)(v71 + v73) = 94;\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ (unsigned __int64)(*(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8)\n- v226) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv74 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v74 < 0 )\n{\nv76 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v74 >> 1);\nv75 = (double)(int)v76 + (double)(int)v76;\n}\nelse\n{\nv75 = (double)(int)v74;\n}\nv77 = v75 * 1.5;\nif ( v77 >= 9.223372036854776e18 )\nv78 = (unsigned int)(int)(v77 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv78 = (unsigned int)(int)v77;\n}\nelse\n{\nv78 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v78;\nv79 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v79 + 32) = realloc(*(void **)(v79 + 32), *(_QWORD *)(v79 + 40));\n}\nmemcpy(\n(void *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)),\n(const void *)((int)(v226 - *(_DWORD *)(a3 + 176)) + 1LL + *(_QWORD *)(a3 + 168)),\n*(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) - v226);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8)\n- v226;\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 11LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv80 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v80 < 0 )\n{\nv82 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v80 >> 1);\nv81 = (double)(int)v82 + (double)(int)v82;\n}\nelse\n{\nv81 = (double)(int)v80;\n}\nv83 = v81 * 1.5;\nif ( v83 >= 9.223372036854776e18 )\nv84 = (unsigned int)(int)(v83 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv84 = (unsigned int)(int)v83;\n}\nelse\n{\nv84 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v84;\nv85 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v85 + 32) = realloc(*(void **)(v85 + 32), *(_QWORD *)(v85 + 40));\n}\nv200 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL)\n+ *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL));\nv86 = sub_4602E4(v200, 0);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += v86 - v200;\n}\nv87 = v226 - *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8);\nv201 = v87 + v195;\nv221 -= v87;\n}\nv194 = -1;\n}\nelse\n{\nif ( v219 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 1LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv50 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v50 < 0 )\n{\nv52 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v50 >> 1);\nv51 = (double)(int)v52 + (double)(int)v52;\n}\nelse\n{\nv51 = (double)(int)v50;\n}\nv53 = v51 * 1.5;\nif ( v53 >= 9.223372036854776e18 )\nv54 = (unsigned int)(int)(v53 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv54 = (unsigned int)(int)v53;\n}\nelse\n{\nv54 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v54;\nv55 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v55 + 32) = realloc(*(void **)(v55 + 32), *(_QWORD *)(v55 + 40));\n}\nv56 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL);\nv57 = *(_QWORD *)(a3 + 136);\nv58 = *(_QWORD *)(v57 + 48);\n*(_QWORD *)(v57 + 48) = v58 + 1;\n*(_BYTE *)(v56 + v58) = 94;\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ v195) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv59 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v59 < 0 )\n{\nv61 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v59 >> 1);\nv60 = (double)(int)v61 + (double)(int)v61;\n}\nelse\n{\nv60 = (double)(int)v59;\n}\nv62 = v60 * 1.5;\nif ( v62 >= 9.223372036854776e18 )\nv63 = (unsigned int)(int)(v62 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv63 = (unsigned int)(int)v62;\n}\nelse\n{\nv63 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v63;\nv64 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v64 + 32) = realloc(*(void **)(v64 + 32), *(_QWORD *)(v64 + 40));\n}\nmemcpy(\n(void *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL)),\n(const void *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176)) + 1LL),\nv195);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += v195;\nv194 = 0;\n}\nv221 += v195;\n}\n}\nv225 = 2;\nv227 += v195;\nv226 += v195;\ncontinue;\ncase 'H':\nif ( v227 && v225 != 5 )\n{\nv144 = v223++;\n*((_DWORD *)ptr + v144) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x1000000) == 0 )\ncontinue;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 928LL) )\nreturn 0xFFFFFFFFLL;\nv145 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, int *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 928LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 928LL),\na4,\n&v195,\n&v197);\nv229 |= v145;\nif ( v229 )\nreturn v229;\nv225 = 5;\nv227 += v195;\ncontinue;\ncase 'I':\nv189 = 1;\nif ( v227 && v225 != 1 )\n{\nv88 = v223++;\n*((_DWORD *)ptr + v88) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x800) == 0 )\ncontinue;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 744LL) )\nreturn 0xFFFFFFFFLL;\nif ( a5[5] )\nv89 = v193 - 1LL + a8;\nelse\nv89 = 0LL;\nv90 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, __int64, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 744LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 744LL),\na4,\nv89,\n&v189);\nv229 |= v90;\nif ( v229 )\nreturn v229;\nv225 = 1;\nv227 += v189;\nv228 += v189;\nv221 += v189;\ncontinue;\ncase 'N':\nif ( v227 && v225 != 3 )\n{\nv148 = v223++;\n*((_DWORD *)ptr + v148) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x400000) == 0 )\ncontinue;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 912LL) )\nreturn 0xFFFFFFFFLL;\nv149 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, int *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 912LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 912LL),\na4,\n&v195,\n&v197);\nv229 |= v149;\nif ( v229 )\nreturn v229;\nv225 = 3;\nv227 += v195;\nv226 += v195;\nbreak;\ncase 'P':\nif ( v227 && v225 != 6 )\n{\nv146 = v223++;\n*((_DWORD *)ptr + v146) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x800000) == 0 )\ncontinue;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 920LL) )\nreturn 0xFFFFFFFFLL;\nv147 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, int *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 920LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 920LL),\na4,\n&v195,\n&v197);\nv229 |= v147;\nif ( v229 )\nreturn v229;\nv225 = 6;\nv227 += v195;\ncontinue;\ncase 'Q':\nif ( (v213 & 0x80) == 0 )\ncontinue;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 736LL) )\nreturn 0xFFFFFFFFLL;\nv143 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, char *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 736LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 736LL),\na4,\n(char *)s + v193 - 1,\n&v197);\nv229 |= v143;\ncontinue;\ncase 'S':\nv191 = 1;\nv216 = 0;\nif ( v227 )\n{\nv25 = v223++;\n*((_DWORD *)ptr + v25) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( *(int *)(a1 + 12) >> 8 == 1 )\n{\nif ( (v213 & 0x800) != 0 )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a2 + 64) + 744LL) )\n{\nif ( a5[5] )\nv26 = v193 - 1LL + a8;\nelse\nv26 = 0LL;\nv27 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, __int64, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64) + 744LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 744LL),\na4,\nv26,\n&v191);\n}\nelse\n{\n*(_BYTE *)(v193 - 1LL + a8) = 78;\nv191 = 1;\nv27 = 0;\n}\nv229 |= v27;\nv216 = 1;\n}\n}\nelse if ( (v213 & 0x2000000) != 0 )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a2 + 64) + 752LL) )\n{\nif ( a5[5] )\nv28 = v193 - 1LL + a8;\nelse\nv28 = 0LL;\nv29 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, __int64, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64) + 752LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 752LL),\na4,\nv28,\n&v191);\n}\nelse\n{\n*(_BYTE *)(v193 - 1LL + a8) = 78;\nv191 = 1;\nv29 = 0;\n}\nv229 |= v29;\nv216 = 1;\n}\nif ( !v216 )\ncontinue;\nif ( v229 )\nreturn v229;\nv30 = v223++;\n*((_DWORD *)ptr + v30) = 16 * v191 + 4;\nv225 = 4;\nv228 += v191;\ncontinue;\ncase 'X':\nif ( v227 && v225 )\n{\nv31 = v223++;\n*((_DWORD *)ptr + v31) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x400) == 0 )\ngoto LABEL_143;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 888LL) )\nreturn 0xFFFFFFFFLL;\nv32 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, unsigned __int8 *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64) + 888LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 888LL),\na4,\n&v190,\n&v197);\nv229 |= v32;\nif ( v229 )\nreturn 0xFFFFFFFFLL;\nif ( *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) > v226 && *(_QWORD *)(a3 + 168) )\n{\nif ( (signed int)v226 > *(_DWORD *)(a3 + 180) )\nv40 = 78;\nelse\nv40 = *(_BYTE *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176)) + 1LL);\nv205 = v40;\nv204 = *(unsigned __int8 *)(a1 + v40 + 33344);\nif ( a5[5] >= v193 )\n*(_BYTE *)(v193 - 1LL + a8) = *(_BYTE *)(v190 + *(_QWORD *)(a2 + 64) + 4LL * v204 + 56);\nsub_464239(a3, v219, (char)v205, (unsigned int *)&v194);\n}\nelse\n{\nif ( a5[5] >= v193 )\n*(_BYTE *)(v193 - 1LL + a8) = *(_BYTE *)(v190\n+ *(_QWORD *)(a2 + 64)\n+ 4LL * *(unsigned __int8 *)(a1 + 33422)\n+ 56);\nif ( v219 || v218 )\n{\nif ( v194 >= 0 && v219 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 11LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv33 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v33 < 0 )\n{\nv35 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v33 >> 1);\nv34 = (double)(int)v35 + (double)(int)v35;\n}\nelse\n{\nv34 = (double)(int)v33;\n}\nv36 = v34 * 1.5;\nif ( v36 >= 9.223372036854776e18 )\nv37 = (unsigned int)(int)(v36 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv37 = (unsigned int)(int)v36;\n}\nelse\n{\nv37 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v37;\nv38 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v38 + 32) = realloc(*(void **)(v38 + 32), *(_QWORD *)(v38 + 40));\n}\nv203 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL));\nv39 = sub_4602E4(v203, v194);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += v39 - v203;\n}\nv194 = -1;\n--v221;\n}\n}\nLABEL_143:\nv225 = 0;\n++v221;\n++v227;\n++v228;\n++v226;\ncontinue;\ncase 'b':\nv188 = 1;\nif ( v227 && v225 )\n{\nv94 = v223++;\n*((_DWORD *)ptr + v94) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x4000000) == 0 )\ngoto LABEL_319;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 936LL) )\nreturn 0xFFFFFFFFLL;\nif ( a5[5] )\nv95 = v193 - 1LL + a8;\nelse\nv95 = 0LL;\nv96 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, __int64, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 936LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 936LL),\na4,\nv95,\n&v188);\nv229 |= v96;\nif ( v229 )\nreturn v229;\nif ( v219 || v218 )\n{\nif ( v194 >= 0 && v219 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136)\n+ 48LL)\n+ 11LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv97 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v97 < 0 )\n{\nv99 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v97 >> 1);\nv98 = (double)(int)v99 + (double)(int)v99;\n}\nelse\n{\nv98 = (double)(int)v97;\n}\nv100 = v98 * 1.5;\nif ( v100 >= 9.223372036854776e18 )\nv101 = (unsigned int)(int)(v100 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv101 = (unsigned int)(int)v100;\n}\nelse\n{\nv101 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v101;\nv102 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v102 + 32) = realloc(*(void **)(v102 + 32), *(_QWORD *)(v102 + 40));\n}\nv208 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL));\nv103 = sub_4602E4(v208, v194);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += v103 - v208;\n}\nfor ( k = 0; k < v188; ++k )\n{\nif ( k && v219 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 11LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv104 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v104 < 0 )\n{\nv106 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v104 >> 1);\nv105 = (double)(int)v106 + (double)(int)v106;\n}\nelse\n{\nv105 = (double)(int)v104;\n}\nv107 = v105 * 1.5;\nif ( v107 >= 9.223372036854776e18 )\nv108 = (unsigned int)(int)(v107 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv108 = (unsigned int)(int)v107;\n}\nelse\n{\nv108 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v108;\nv109 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v109 + 32) = realloc(*(void **)(v109 + 32), *(_QWORD *)(v109 + 40));\n}\nv207 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL));\nv110 = sub_4602E4(v207, 0);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += v110 - v207;\n}\nif ( v226 + k >= *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) || !*(_QWORD *)(a3 + 168) )\n{\nv194 = -1;\nbreak;\n}\nif ( v219 )\n{\nv206 = *(_BYTE *)(*(_QWORD *)(a3 + 168) + (int)(k + v226 - *(_DWORD *)(a3 + 176)) + 1LL);\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 1LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv111 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v111 < 0 )\n{\nv113 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v111 >> 1);\nv112 = (double)(int)v113 + (double)(int)v113;\n}\nelse\n{\nv112 = (double)(int)v111;\n}\nv114 = v112 * 1.5;\nif ( v114 >= 9.223372036854776e18 )\nv115 = (unsigned int)(int)(v114 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv115 = (unsigned int)(int)v114;\n}\nelse\n{\nv115 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v115;\nv116 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v116 + 32) = realloc(*(void **)(v116 + 32), *(_QWORD *)(v116 + 40));\n}\nv117 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL);\nv118 = *(_QWORD *)(a3 + 136);\nv119 = *(_QWORD *)(v118 + 48);\n*(_QWORD *)(v118 + 48) = v119 + 1;\n*(_BYTE *)(v117 + v119) = v206;\n}\n}\nv221 += k;\n}\nLABEL_319:\nv225 = 0;\nv227 += v188;\nv228 += v188;\nv226 += v188;\ncontinue;\ncase 'i':\nif ( v227 && v225 != 1 )\n{\nv91 = v223++;\n*((_DWORD *)ptr + v91) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x40) == 0 )\ngoto LABEL_257;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 880LL) )\nreturn 0xFFFFFFFFLL;\nif ( a5[5] )\nv92 = v193 - 1LL + a8;\nelse\nv92 = 0LL;\nv93 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, __int64, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 880LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 880LL),\na4,\nv92,\n&v197);\nv229 |= v93;\nif ( v229 )\nreturn v229;\nLABEL_257:\nv225 = 1;\n++v227;\n++v228;\n++v221;\ncontinue;\ncase 'q':\nv187 = 1;\nif ( v227 && v225 )\n{\nv120 = v223++;\n*((_DWORD *)ptr + v120) = 16 * v227 + v225;\nv227 = 0;\n}\nif ( (v213 & 0x10000000) == 0 )\ngoto LABEL_328;\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 944LL) )\nreturn 0xFFFFFFFFLL;\nv121 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, char *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 944LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 944LL),\na4,\n(char *)s + v193 - 1,\n&v187);\nv229 |= v121;\nif ( v229 )\nreturn v229;\nLABEL_328:\nv225 = 0;\nv227 += v187;\nv228 += v187;\nv226 += v187;\ncontinue;\ndefault:\nfprintf(stderr, \"Error: Unknown feature code '%c'\\n\", (unsigned int)v192);\nreturn 0xFFFFFFFFLL;\n}\n}\n}\nif ( (v213 & 0x100) != 0 && (v213 & 0x200) != 0 && v228 <= a5[5] )\n{\nif ( *(_QWORD *)(a3 + 168) )\n{\nif ( a5[5] + v226 - v228 + 1 <= *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) )\n{\nif ( a5[5] - v228 >= 0 )\n{\nif ( v219 || v218 )\n{\nfor ( l = 0; l <= a5[5] - v228; ++l )\n{\nv212 = *(_BYTE *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176) + 1 + l));\nif ( v212 == 78 )\n{\nsub_464239(\na3,\nv219,\n*(char *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176) + 1 + l)),\n(unsigned int *)&v194);\n++v221;\n}\nelse\n{\n++v194;\n}\n*(_BYTE *)(a8 + v228 - 1 + l) = v212;\n}\n}\nelse\n{\nmemcpy(\n(void *)(a8 + v228 - 1LL),\n(const void *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176)) + 1LL),\na5[5] - v228 + 1);\n}\n}\nv226 += a5[5] - v228 + 1;\n}\nelse\n{\nif ( !dword_49990C )\nfwrite(\"Ref pos outside of ref sequence boundary\\n\", 1uLL, 0x29uLL, stderr);\ndword_49990C = 1;\nv211 = *(_DWORD *)(*(_QWORD *)(a6 + 64) + 32LL * a5[2] + 8) - v226;\nif ( v211 <= 0 )\n{\nif ( a5[5] - v228 >= 0 )\nmemset((void *)(a8 + v228 - 1LL), 78, a5[5] - v228 + 1);\n}\nelse\n{\nif ( v211 + v228 - 1 < a5[5] )\nmemcpy(\n(void *)(a8 + v228 - 1LL),\n(const void *)(*(_QWORD *)(a3 + 168) + (int)(v226 - *(_DWORD *)(a3 + 176)) + 1LL),\nv211);\nif ( a5[5] - v228 + 1 - v211 > 0 )\nmemset((void *)(a8 + v228 - 1 + v211), 78, a5[5] - v228 + 1 - v211);\n}\nif ( v194 >= 0 )\nv194 += a5[5] - v228 + 1;\n}\n}\nif ( v222 <= v223 + 1 )\n{\nv150 = v222 ? 2 * v222 : 1024;\nv222 = v150;\n*(_QWORD *)(a3 + 48) = ptr;\nptr = realloc(ptr, 4LL * v222);\nif ( !ptr )\nreturn 0xFFFFFFFFLL;\n}\nif ( v227 && v225 )\n{\nv151 = v223++;\n*((_DWORD *)ptr + v151) = 16 * v227 + v225;\nv227 = 0;\n}\nv225 = 0;\nv227 += a5[5] - v228 + 1;\n}\n}\nLABEL_448:\nif ( (v213 & 0x200) != 0 && v219 && v194 >= 0 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 11LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv152 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v152 < 0 )\n{\nv154 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v152 >> 1);\nv153 = (double)(int)v154 + (double)(int)v154;\n}\nelse\n{\nv153 = (double)(int)v152;\n}\nv155 = v153 * 1.5;\nif ( v155 >= 9.223372036854776e18 )\nv156 = (unsigned int)(int)(v155 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv156 = (unsigned int)(int)v155;\n}\nelse\n{\nv156 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v156;\nv157 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v157 + 32) = realloc(*(void **)(v157 + 32), *(_QWORD *)(v157 + 40));\n}\nv198 = (_BYTE *)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL));\nv158 = sub_4602E4(v198, v194);\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += v158 - v198;\n}\nif ( v227 )\n{\nif ( v223 >= v222 )\n{\nv159 = v222 ? 2 * v222 : 1024;\nv222 = v159;\n*(_QWORD *)(a3 + 48) = ptr;\nptr = realloc(ptr, 4LL * v222);\nif ( !ptr )\nreturn 0xFFFFFFFFLL;\n}\nv160 = v223++;\n*((_DWORD *)ptr + v160) = 16 * v227 + v225;\n}\na5[22] = v223 - a5[21];\na5[23] = v226;\nif ( (v213 & 0x2000) != 0 )\n{\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 792LL) )\nreturn 0xFFFFFFFFLL;\nv161 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, int *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64) + 792LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 792LL),\na4,\na5 + 24,\n&v197);\nv229 |= v161;\n}\nelse\n{\na5[24] = 40;\n}\nif ( (v213 & 0x80) != 0 && (a7 & 1) != 0 )\n{\nv186 = a5[5];\nif ( (v213 & 0x80) != 0 )\n{\nif ( !*(_QWORD *)(*(_QWORD *)(a2 + 64) + 736LL) )\nreturn 0xFFFFFFFFLL;\nv162 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, void *, int *))(*(_QWORD *)(*(_QWORD *)(a2 + 64)\n+ 736LL)\n+ 24LL))(\na3,\n*(_QWORD *)(*(_QWORD *)(a2 + 64) + 736LL),\na4,\ns,\n&v186);\nv229 |= v162;\n}\n}\n*(_QWORD *)(a3 + 48) = ptr;\n*(_DWORD *)(a3 + 56) = v222;\n*(_DWORD *)(a3 + 60) = v223;\nif ( (a5[4] & 8) != 0 )\na5[5] = 0;\nif ( v219 )\n{\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 1LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv163 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v163 < 0 )\n{\nv165 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v163 >> 1);\nv164 = (double)(int)v165 + (double)(int)v165;\n}\nelse\n{\nv164 = (double)(int)v163;\n}\nv166 = v164 * 1.5;\nif ( v166 >= 9.223372036854776e18 )\nv167 = (unsigned int)(int)(v166 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv167 = (unsigned int)(int)v166;\n}\nelse\n{\nv167 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v167;\nv168 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v168 + 32) = realloc(*(void **)(v168 + 32), *(_QWORD *)(v168 + 40));\n}\nv169 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL);\nv170 = *(_QWORD *)(a3 + 136);\nv171 = *(_QWORD *)(v170 + 48);\n*(_QWORD *)(v170 + 48) = v171 + 1;\n*(_BYTE *)(v169 + v171) = 0;\na5[16] += *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) - v220;\n}\nif ( v218 )\n{\n*(_WORD *)v185 = 19790;\nv185[2] = 73;\n*(_DWORD *)&v185[3] = v221;\nwhile ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) <= (unsigned __int64)(*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL)\n+ 7LL) )\n{\nif ( *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) )\n{\nv172 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL);\nif ( v172 < 0 )\n{\nv174 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) & 1LL | ((unsigned __int64)v172 >> 1);\nv173 = (double)(int)v174 + (double)(int)v174;\n}\nelse\n{\nv173 = (double)(int)v172;\n}\nv175 = v173 * 1.5;\nif ( v175 >= 9.223372036854776e18 )\nv176 = (unsigned int)(int)(v175 - 9.223372036854776e18) ^ 0x8000000000000000LL;\nelse\nv176 = (unsigned int)(int)v175;\n}\nelse\n{\nv176 = 1024LL;\n}\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 40LL) = v176;\nv177 = *(_QWORD *)(a3 + 136);\n*(_QWORD *)(v177 + 32) = realloc(*(void **)(v177 + 32), *(_QWORD *)(v177 + 40));\n}\nv178 = *(_QWORD *)(*(_QWORD *)(a3 + 136) + 32LL) + *(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL);\n*(_DWORD *)v178 = *(_DWORD *)v185;\n*(_WORD *)(v178 + 4) = *(_WORD *)&v185[4];\n*(_BYTE *)(v178 + 6) = v185[6];\n*(_QWORD *)(*(_QWORD *)(a3 + 136) + 48LL) += 7LL;\na5[16] += 7;\n}\nreturn v229;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,a7,a8,s,a10,a11,v185,v186,v187,v188,v189,v190,v191,v192,v193,v194,v195,v196,v197,v198,v199,v200,v201,v202,v203,v204,v205,v206,v207,v208,v209,v210,v211,v212,v213,l,k,v216,v218,v219,v220,v221,v222,v223,ptr,v225,v226,v227,v228,v229,i,v231,sub_464509,sub_464239,sub_4602E4,]\nAssistant: ", "hints": "[]", "response": "{'a3': 's', 'a4': 'blk', 'a1': 'fd', 'a2': 'c', 'a5': 'cr', 'a6': 'bfd', 'a7': 'cf_0', 'a8': 'seq', 's': 'qual', 'a10': 'has_MD', 'a11': 'has_NM', 'v185': 'buf', 'v186': 'out_sz2_1', 'v187': 'len_0', 'v188': 'len', 'v189': 'out_sz2_0', 'v190': 'base_0', 'v191': 'out_sz2', 'v192': 'op', 'v193': 'pos', 'v194': 'md_dist', 'v195': 'i32', 'v196': 'fn', 'v197': 'out_sz', 'v198': 'cp_5', 'v199': 'cp_4', 'v200': 'cp_1', 'v201': 'dlen', 'v202': 'cp_0', 'v203': 'cp', 'v204': 'ref_base', 'v205': 'ref_call', 'v206': 'r_0', 'v207': 'cp_3', 'v208': 'cp_2', 'v209': 'rlen', 'v210': 'base', 'v211': 'rlen_0', 'v212': 'base_1', 'v213': 'ds_0', 'l': 'i_0', 'k': 'x', 'v216': 'have_sc', 'v218': 'decode_nm', 'v219': 'decode_md', 'v220': 'orig_aux', 'v221': 'nm', 'v222': 'cigar_alloc', 'v223': 'ncigar', 'ptr': 'cigar', 'v225': 'cig_op', 'v226': 'ref_pos', 'v227': 'cig_len', 'v228': 'seq_pos', 'v229': 'r', 'i': 'f', 'v231': 'prev_pos', 'sub_464509': 'cram_decode_seq', 'sub_464239': 'add_md_char', 'sub_4602E4': 'append_uint32'}"}
ocware_create_command_debug_database
1bb8600ff54d3770b00319c465e287140b1e638e41a9ec62b38e2315c333ed80
Telecominfraproject
OpenCellular
NA
ocware_stub_ret ocware_create_command_debug_database(int8_t subsystemNbr, int16_t *gStructIndex, const Component *subSystem) { ocware_stub_ret ret = STUB_FAILED; const Component *component = NULL; const Component *subComponent = NULL; const Driver *driver = NULL; const Command *command = NULL; int8_t componentNbr = 1; int8_t count = 0; int8_t commandCount = 0; s_debugSubsystem = subsystemNbr; if((gStructIndex == NULL) || (subSystem == NULL)) { return STUB_FAILED; } for(component = subSystem->components; component && component->name; component++) { /* component loop */ subComponent = component->components; count = 1; while (subComponent && subComponent->name) { driver = subComponent->driver; if(driver !=NULL) { /* No Need to read every command as * current implementation is to have one entry * for one subsystem */ s_ocwareGlobalData[*gStructIndex].subsystemId = subsystemNbr; s_ocwareGlobalData[*gStructIndex].componentId = componentNbr; s_ocwareGlobalData[*gStructIndex].msgtype = OCMP_MSG_TYPE_COMMAND; s_ocwareGlobalData[*gStructIndex].paramPos = 0; if (strncmp(component->name,"I2C", strlen("I2C")) == 0) { s_ocwareGlobalData[*gStructIndex].paramId = count; s_ocwareGlobalData[*gStructIndex].paramSize = sizeof(OCWareDebugI2Cinfo) * MAX_I2C_COMP_NBR; s_ocwareGlobalData[*gStructIndex].data = malloc(s_ocwareGlobalData[*gStructIndex].paramSize); if (s_ocwareGlobalData[*gStructIndex].data == NULL) { printf("Malloc failed\n"); return STUB_FAILED; } else { memset(s_ocwareGlobalData[*gStructIndex].data, 0, s_ocwareGlobalData[*gStructIndex].paramSize); } ret = ocware_stub_fill_init_debug_value(*gStructIndex, OCSTUB_VALUE_TYPE_I2C_DEBUG); } else if (strncmp(component->name,"ethernet", strlen("ethernet")) == 0) { s_ocwareGlobalData[*gStructIndex].paramId = count; s_ocwareGlobalData[*gStructIndex].paramSize = sizeof(OCWareDebugMDIOinfo) * MAX_MDIO_COMP_NBR; s_ocwareGlobalData[*gStructIndex].data = malloc(s_ocwareGlobalData[*gStructIndex].paramSize); if (s_ocwareGlobalData[*gStructIndex].data == NULL) { printf("Malloc failed\n"); return STUB_FAILED; } else { memset(s_ocwareGlobalData[*gStructIndex].data, 0, s_ocwareGlobalData[*gStructIndex].paramSize); } ret = ocware_stub_fill_init_debug_value(*gStructIndex, OCSTUB_VALUE_TYPE_MDIO_DEBUG); } else { /* Currently its all GPIO */ s_ocwareGlobalData[*gStructIndex].paramId = count; s_ocwareGlobalData[*gStructIndex].paramSize = sizeof(OCWareDebugGPIOinfo) * MAX_GPIO_COMP_NBR; s_ocwareGlobalData[*gStructIndex].data = malloc(s_ocwareGlobalData[*gStructIndex].paramSize); if (s_ocwareGlobalData[*gStructIndex].data == NULL) { printf("Malloc failed\n"); return STUB_FAILED; } else { memset(s_ocwareGlobalData[*gStructIndex].data, 0, s_ocwareGlobalData[*gStructIndex].paramSize); } ret = ocware_stub_fill_init_debug_value(*gStructIndex, OCSTUB_VALUE_TYPE_GPIO_DEBUG); } (*gStructIndex)++; if((debugGetCommand == STUB_FAILED) || (debugSetCommand == STUB_FAILED)) { command = driver->commands; commandCount = 0; while(command && command->name) { if ((strncmp(command->name, "get", strlen("get"))) == 0) { debugGetCommand = commandCount; } else if ((strncmp(command->name, "set",strlen("set"))) == 0) { debugSetCommand = commandCount; } command += 1; commandCount++; } } } subComponent += 1; count ++; } componentNbr++; } return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402B9E", "function_addr": 4205470, "binary_name": "1bb8600ff54d3770b00319c465e287140b1e638e41a9ec62b38e2315c333ed80.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 58h"], [4, "mov eax, edi"], [5, "mov [rbp+var_50], rsi"], [6, "mov [rbp+var_58], rdx"], [7, "mov [rbp+var_44], al"], [8, "mov [rbp+var_11], 0FFh"], [9, "mov [rbp+var_20], 0"], [10, "mov [rbp+var_28], 0"], [11, "mov [rbp+var_40], 0"], [12, "mov [rbp+var_30], 0"], [13, "mov [rbp+var_31], 1"], [14, "mov [rbp+var_32], 0"], [15, "mov [rbp+var_33], 0"], [16, "movzx eax, [rbp+var_44]"], [17, "mov cs:byte_4132C0, al"], [18, "cmp [rbp+var_50], 0"], [19, "jz short loc_402BFC"], [20, "cmp [rbp+var_58], 0"], [21, "jnz short loc_402C06"], [22, "mov eax, 0FFFFFFFFh"], [23, "jmp loc_4031CE"], [24, "mov rax, [rbp+var_58]"], [25, "mov rax, [rax+8]"], [26, "mov [rbp+var_20], rax"], [27, "jmp loc_4031B3"], [28, "mov rax, [rbp+var_20]"], [29, "mov rax, [rax+8]"], [30, "mov [rbp+var_28], rax"], [31, "mov [rbp+var_32], 1"], [32, "jmp loc_40318D"], [33, "mov rax, [rbp+var_28]"], [34, "mov rax, [rax+10h]"], [35, "mov [rbp+var_40], rax"], [36, "cmp [rbp+var_40], 0"], [37, "jz loc_40317E"], [38, "mov rax, [rbp+var_50]"], [39, "movzx eax, word ptr [rax]"], [40, "cwde"], [41, "movzx edx, [rbp+var_44]"], [42, "movsxd rcx, eax"], [43, "mov rax, rcx"], [44, "add rax, rax"], [45, "add rax, rcx"], [46, "shl rax, 3"], [47, "add rax, 40EF80h"], [48, "mov [rax], dl"], [49, "mov rax, [rbp+var_50]"], [50, "movzx eax, word ptr [rax]"], [51, "cwde"], [52, "movzx edx, [rbp+var_31]"], [53, "movsxd rcx, eax"], [54, "mov rax, rcx"], [55, "add rax, rax"], [56, "add rax, rcx"], [57, "shl rax, 3"], [58, "add rax, 40EF81h"], [59, "mov [rax], dl"], [60, "mov rax, [rbp+var_50]"], [61, "movzx eax, word ptr [rax]"], [62, "cwde"], [63, "movsxd rdx, eax"], [64, "mov rax, rdx"], [65, "add rax, rax"], [66, "add rax, rdx"], [67, "shl rax, 3"], [68, "add rax, 40EF82h"], [69, "mov byte ptr [rax], 4"], [70, "mov rax, [rbp+var_50]"], [71, "movzx eax, word ptr [rax]"], [72, "cwde"], [73, "movsxd rdx, eax"], [74, "mov rax, rdx"], [75, "add rax, rax"], [76, "add rax, rdx"], [77, "shl rax, 3"], [78, "add rax, 40EF87h"], [79, "mov byte ptr [rax], 0"], [80, "mov rax, [rbp+var_20]"], [81, "mov rax, [rax]"], [82, "mov edx, 3"], [83, "mov esi, offset s2"], [84, "mov rdi, rax"], [85, "call _strncmp"], [86, "test eax, eax"], [87, "jnz loc_402E2F"], [88, "mov rax, [rbp+var_50]"], [89, "movzx eax, word ptr [rax]"], [90, "cwde"], [91, "movsx dx, [rbp+var_32]"], [92, "movsxd rcx, eax"], [93, "mov rax, rcx"], [94, "add rax, rax"], [95, "add rax, rcx"], [96, "shl rax, 3"], [97, "add rax, 40EF84h"], [98, "mov [rax], dx"], [99, "mov rax, [rbp+var_50]"], [100, "movzx eax, word ptr [rax]"], [101, "cwde"], [102, "movsxd rdx, eax"], [103, "mov rax, rdx"], [104, "add rax, rax"], [105, "add rax, rdx"], [106, "shl rax, 3"], [107, "add rax, 40EF86h"], [108, "mov byte ptr [rax], 6"], [109, "mov rax, [rbp+var_50]"], [110, "movzx eax, word ptr [rax]"], [111, "cwde"], [112, "movsxd rdx, eax"], [113, "mov rax, rdx"], [114, "add rax, rax"], [115, "add rax, rdx"], [116, "shl rax, 3"], [117, "add rax, 40EF86h"], [118, "movzx eax, byte ptr [rax]"], [119, "movzx eax, al"], [120, "mov rdx, [rbp+var_50]"], [121, "movzx edx, word ptr [rdx]"], [122, "movsx ebx, dx"], [123, "mov rdi, rax"], [124, "call _malloc"], [125, "mov rcx, rax"], [126, "movsxd rdx, ebx"], [127, "mov rax, rdx"], [128, "add rax, rax"], [129, "add rax, rdx"], [130, "shl rax, 3"], [131, "add rax, 40EF90h"], [132, "mov [rax], rcx"], [133, "mov rax, [rbp+var_50]"], [134, "movzx eax, word ptr [rax]"], [135, "cwde"], [136, "movsxd rdx, eax"], [137, "mov rax, rdx"], [138, "add rax, rax"], [139, "add rax, rdx"], [140, "shl rax, 3"], [141, "add rax, 40EF90h"], [142, "mov rax, [rax]"], [143, "test rax, rax"], [144, "jnz short loc_402DC1"], [145, "mov edi, offset aMallocFailed"], [146, "call _puts"], [147, "mov eax, 0FFFFFFFFh"], [148, "jmp loc_4031CE"], [149, "mov rax, [rbp+var_50]"], [150, "movzx eax, word ptr [rax]"], [151, "cwde"], [152, "movsxd rdx, eax"], [153, "mov rax, rdx"], [154, "add rax, rax"], [155, "add rax, rdx"], [156, "shl rax, 3"], [157, "add rax, 40EF86h"], [158, "movzx eax, byte ptr [rax]"], [159, "movzx edx, al"], [160, "mov rax, [rbp+var_50]"], [161, "movzx eax, word ptr [rax]"], [162, "cwde"], [163, "movsxd rcx, eax"], [164, "mov rax, rcx"], [165, "add rax, rax"], [166, "add rax, rcx"], [167, "shl rax, 3"], [168, "add rax, 40EF90h"], [169, "mov rax, [rax]"], [170, "mov esi, 0"], [171, "mov rdi, rax"], [172, "call _memset"], [173, "mov rax, [rbp+var_50]"], [174, "movzx eax, word ptr [rax]"], [175, "cwde"], [176, "mov esi, 9"], [177, "mov edi, eax"], [178, "call sub_4029DF"], [179, "mov [rbp+var_11], al"], [180, "jmp loc_4030CD"], [181, "mov rax, [rbp+var_20]"], [182, "mov rax, [rax]"], [183, "mov edx, 8"], [184, "mov esi, offset aEthernet"], [185, "mov rdi, rax"], [186, "call _strncmp"], [187, "test eax, eax"], [188, "jnz loc_402F91"], [189, "mov rax, [rbp+var_50]"], [190, "movzx eax, word ptr [rax]"], [191, "cwde"], [192, "movsx dx, [rbp+var_32]"], [193, "movsxd rcx, eax"], [194, "mov rax, rcx"], [195, "add rax, rax"], [196, "add rax, rcx"], [197, "shl rax, 3"], [198, "add rax, 40EF84h"], [199, "mov [rax], dx"], [200, "mov rax, [rbp+var_50]"], [201, "movzx eax, word ptr [rax]"], [202, "cwde"], [203, "movsxd rdx, eax"], [204, "mov rax, rdx"], [205, "add rax, rax"], [206, "add rax, rdx"], [207, "shl rax, 3"], [208, "add rax, 40EF86h"], [209, "mov byte ptr [rax], 4"], [210, "mov rax, [rbp+var_50]"], [211, "movzx eax, word ptr [rax]"], [212, "cwde"], [213, "movsxd rdx, eax"], [214, "mov rax, rdx"], [215, "add rax, rax"], [216, "add rax, rdx"], [217, "shl rax, 3"], [218, "add rax, 40EF86h"], [219, "movzx eax, byte ptr [rax]"], [220, "movzx eax, al"], [221, "mov rdx, [rbp+var_50]"], [222, "movzx edx, word ptr [rdx]"], [223, "movsx ebx, dx"], [224, "mov rdi, rax"], [225, "call _malloc"], [226, "mov rcx, rax"], [227, "movsxd rdx, ebx"], [228, "mov rax, rdx"], [229, "add rax, rax"], [230, "add rax, rdx"], [231, "shl rax, 3"], [232, "add rax, 40EF90h"], [233, "mov [rax], rcx"], [234, "mov rax, [rbp+var_50]"], [235, "movzx eax, word ptr [rax]"], [236, "cwde"], [237, "movsxd rdx, eax"], [238, "mov rax, rdx"], [239, "add rax, rax"], [240, "add rax, rdx"], [241, "shl rax, 3"], [242, "add rax, 40EF90h"], [243, "mov rax, [rax]"], [244, "test rax, rax"], [245, "jnz short loc_402F23"], [246, "mov edi, offset aMallocFailed"], [247, "call _puts"], [248, "mov eax, 0FFFFFFFFh"], [249, "jmp loc_4031CE"], [250, "mov rax, [rbp+var_50]"], [251, "movzx eax, word ptr [rax]"], [252, "cwde"], [253, "movsxd rdx, eax"], [254, "mov rax, rdx"], [255, "add rax, rax"], [256, "add rax, rdx"], [257, "shl rax, 3"], [258, "add rax, 40EF86h"], [259, "movzx eax, byte ptr [rax]"], [260, "movzx edx, al"], [261, "mov rax, [rbp+var_50]"], [262, "movzx eax, word ptr [rax]"], [263, "cwde"], [264, "movsxd rcx, eax"], [265, "mov rax, rcx"], [266, "add rax, rax"], [267, "add rax, rcx"], [268, "shl rax, 3"], [269, "add rax, 40EF90h"], [270, "mov rax, [rax]"], [271, "mov esi, 0"], [272, "mov rdi, rax"], [273, "call _memset"], [274, "mov rax, [rbp+var_50]"], [275, "movzx eax, word ptr [rax]"], [276, "cwde"], [277, "mov esi, 0Bh"], [278, "mov edi, eax"], [279, "call sub_4029DF"], [280, "mov [rbp+var_11], al"], [281, "jmp loc_4030CD"], [282, "mov rax, [rbp+var_50]"], [283, "movzx eax, word ptr [rax]"], [284, "cwde"], [285, "movsx dx, [rbp+var_32]"], [286, "movsxd rcx, eax"], [287, "mov rax, rcx"], [288, "add rax, rax"], [289, "add rax, rcx"], [290, "shl rax, 3"], [291, "add rax, 40EF84h"], [292, "mov [rax], dx"], [293, "mov rax, [rbp+var_50]"], [294, "movzx eax, word ptr [rax]"], [295, "cwde"], [296, "movsxd rdx, eax"], [297, "mov rax, rdx"], [298, "add rax, rax"], [299, "add rax, rdx"], [300, "shl rax, 3"], [301, "add rax, 40EF86h"], [302, "mov byte ptr [rax], 2"], [303, "mov rax, [rbp+var_50]"], [304, "movzx eax, word ptr [rax]"], [305, "cwde"], [306, "movsxd rdx, eax"], [307, "mov rax, rdx"], [308, "add rax, rax"], [309, "add rax, rdx"], [310, "shl rax, 3"], [311, "add rax, 40EF86h"], [312, "movzx eax, byte ptr [rax]"], [313, "movzx eax, al"], [314, "mov rdx, [rbp+var_50]"], [315, "movzx edx, word ptr [rdx]"], [316, "movsx ebx, dx"], [317, "mov rdi, rax"], [318, "call _malloc"], [319, "mov rcx, rax"], [320, "movsxd rdx, ebx"], [321, "mov rax, rdx"], [322, "add rax, rax"], [323, "add rax, rdx"], [324, "shl rax, 3"], [325, "add rax, 40EF90h"], [326, "mov [rax], rcx"], [327, "mov rax, [rbp+var_50]"], [328, "movzx eax, word ptr [rax]"], [329, "cwde"], [330, "movsxd rdx, eax"], [331, "mov rax, rdx"], [332, "add rax, rax"], [333, "add rax, rdx"], [334, "shl rax, 3"], [335, "add rax, 40EF90h"], [336, "mov rax, [rax]"], [337, "test rax, rax"], [338, "jnz short loc_403064"], [339, "mov edi, offset aMallocFailed"], [340, "call _puts"], [341, "mov eax, 0FFFFFFFFh"], [342, "jmp loc_4031CE"], [343, "mov rax, [rbp+var_50]"], [344, "movzx eax, word ptr [rax]"], [345, "cwde"], [346, "movsxd rdx, eax"], [347, "mov rax, rdx"], [348, "add rax, rax"], [349, "add rax, rdx"], [350, "shl rax, 3"], [351, "add rax, 40EF86h"], [352, "movzx eax, byte ptr [rax]"], [353, "movzx edx, al"], [354, "mov rax, [rbp+var_50]"], [355, "movzx eax, word ptr [rax]"], [356, "cwde"], [357, "movsxd rcx, eax"], [358, "mov rax, rcx"], [359, "add rax, rax"], [360, "add rax, rcx"], [361, "shl rax, 3"], [362, "add rax, 40EF90h"], [363, "mov rax, [rax]"], [364, "mov esi, 0"], [365, "mov rdi, rax"], [366, "call _memset"], [367, "mov rax, [rbp+var_50]"], [368, "movzx eax, word ptr [rax]"], [369, "cwde"], [370, "mov esi, 0Ah"], [371, "mov edi, eax"], [372, "call sub_4029DF"], [373, "mov [rbp+var_11], al"], [374, "mov rax, [rbp+var_50]"], [375, "movzx eax, word ptr [rax]"], [376, "add eax, 1"], [377, "mov edx, eax"], [378, "mov rax, [rbp+var_50]"], [379, "mov [rax], dx"], [380, "movzx eax, cs:byte_40A199"], [381, "cmp al, 0FFh"], [382, "jz short loc_4030FA"], [383, "movzx eax, cs:byte_40A19A"], [384, "cmp al, 0FFh"], [385, "jnz loc_40317E"], [386, "mov rax, [rbp+var_40]"], [387, "mov rax, [rax+28h]"], [388, "mov [rbp+var_30], rax"], [389, "mov [rbp+var_33], 0"], [390, "jmp short loc_40316B"], [391, "mov rax, [rbp+var_30]"], [392, "mov rax, [rax]"], [393, "mov edx, 3"], [394, "mov esi, offset aGet"], [395, "mov rdi, rax"], [396, "call _strncmp"], [397, "test eax, eax"], [398, "jnz short loc_403135"], [399, "movzx eax, [rbp+var_33]"], [400, "mov cs:byte_40A199, al"], [401, "jmp short loc_40315C"], [402, "mov rax, [rbp+var_30]"], [403, "mov rax, [rax]"], [404, "mov edx, 3"], [405, "mov esi, offset aSet"], [406, "mov rdi, rax"], [407, "call _strncmp"], [408, "test eax, eax"], [409, "jnz short loc_40315C"], [410, "movzx eax, [rbp+var_33]"], [411, "mov cs:byte_40A19A, al"], [412, "add [rbp+var_30], 18h"], [413, "movzx eax, [rbp+var_33]"], [414, "add eax, 1"], [415, "mov [rbp+var_33], al"], [416, "cmp [rbp+var_30], 0"], [417, "jz short loc_40317E"], [418, "mov rax, [rbp+var_30]"], [419, "mov rax, [rax]"], [420, "test rax, rax"], [421, "jnz short loc_40310C"], [422, "add [rbp+var_28], 48h "], [423, "movzx eax, [rbp+var_32]"], [424, "add eax, 1"], [425, "mov [rbp+var_32], al"], [426, "cmp [rbp+var_28], 0"], [427, "jz short loc_4031A4"], [428, "mov rax, [rbp+var_28]"], [429, "mov rax, [rax]"], [430, "test rax, rax"], [431, "jnz loc_402C2C"], [432, "movzx eax, [rbp+var_31]"], [433, "add eax, 1"], [434, "mov [rbp+var_31], al"], [435, "add [rbp+var_20], 48h "], [436, "cmp [rbp+var_20], 0"], [437, "jz short loc_4031CA"], [438, "mov rax, [rbp+var_20]"], [439, "mov rax, [rax]"], [440, "test rax, rax"], [441, "jnz loc_402C17"], [442, "movzx eax, [rbp+var_11]"], [443, "mov rbx, [rbp+var_8]"], [444, "leave"], [445, "retn"]], "data_dep": [[7, 4], [16, 7], [17, 16], [18, 5], [19, 18], [20, 6], [21, 20], [24, 6], [25, 24], [26, 25], [28, 435], [28, 26], [29, 59], [29, 292], [29, 132], [29, 379], [29, 108], [29, 48], [29, 326], [29, 28], [29, 233], [29, 98], [29, 79], [29, 209], [29, 69], [29, 199], [29, 302], [30, 29], [33, 422], [33, 30], [34, 132], [34, 379], [34, 108], [34, 48], [34, 326], [34, 33], [34, 233], [34, 98], [34, 79], [34, 209], [34, 69], [34, 199], [34, 302], [34, 59], [34, 292], [35, 34], [36, 35], [37, 36], [38, 5], [39, 108], [39, 233], [39, 98], [39, 48], [39, 79], [39, 326], [39, 38], [39, 302], [39, 209], [39, 69], [39, 199], [39, 59], [39, 292], [39, 132], [39, 379], [41, 7], [42, 39], [43, 42], [44, 43], [45, 42], [45, 44], [46, 45], [47, 46], [48, 47], [48, 41], [49, 5], [50, 48], [50, 49], [52, 13], [52, 434], [53, 50], [54, 53], [55, 54], [56, 53], [56, 55], [57, 56], [58, 57], [59, 58], [59, 52], [60, 5], [61, 60], [61, 59], [63, 61], [64, 63], [65, 64], [66, 65], [66, 63], [67, 66], [68, 67], [69, 68], [70, 5], [71, 69], [71, 70], [73, 71], [74, 73], [75, 74], [76, 73], [76, 75], [77, 76], [78, 77], [79, 78], [80, 435], [80, 26], [81, 80], [81, 79], [84, 81], [86, 85], [87, 86], [88, 5], [89, 59], [89, 292], [89, 132], [89, 379], [89, 108], [89, 233], [89, 98], [89, 48], [89, 79], [89, 326], [89, 302], [89, 88], [89, 209], [89, 69], [89, 199], [91, 425], [91, 31], [92, 89], [93, 92], [94, 93], [95, 92], [95, 94], [96, 95], [97, 96], [98, 97], [98, 91], [99, 5], [100, 99], [100, 98], [102, 100], [103, 102], [104, 103], [105, 104], [105, 102], [106, 105], [107, 106], [108, 107], [109, 5], [110, 109], [110, 108], [112, 110], [113, 112], [114, 113], [115, 112], [115, 114], [116, 115], [117, 116], [118, 108], [118, 117], [119, 118], [120, 5], [121, 108], [121, 120], [122, 121], [123, 119], [125, 124], [126, 122], [127, 126], [128, 127], [129, 128], [129, 126], [130, 129], [131, 130], [132, 131], [132, 125], [133, 5], [134, 133], [134, 132], [136, 134], [137, 136], [138, 137], [139, 138], [139, 136], [140, 139], [141, 140], [142, 132], [142, 141], [143, 142], [144, 143], [149, 5], [150, 79], [150, 326], [150, 209], [150, 69], [150, 302], [150, 149], [150, 292], [150, 199], [150, 59], [150, 48], [150, 132], [150, 379], [150, 108], [150, 233], [150, 98], [152, 150], [153, 152], [154, 153], [155, 152], [155, 154], [156, 155], [157, 156], [158, 302], [158, 292], [158, 157], [158, 69], [158, 199], [158, 59], [158, 48], [158, 132], [158, 379], [158, 108], [158, 233], [158, 98], [158, 79], [158, 326], [158, 209], [159, 158], [160, 5], [161, 79], [161, 326], [161, 209], [161, 69], [161, 302], [161, 292], [161, 199], [161, 59], [161, 48], [161, 160], [161, 132], [161, 379], [161, 108], [161, 233], [161, 98], [163, 161], [164, 163], [165, 164], [166, 165], [166, 163], [167, 166], [168, 167], [169, 79], [169, 326], [169, 209], [169, 69], [169, 199], [169, 302], [169, 59], [169, 292], [169, 379], [169, 48], [169, 132], [169, 168], [169, 108], [169, 233], [169, 98], [171, 169], [173, 5], [174, 59], [174, 292], [174, 379], [174, 48], [174, 173], [174, 132], [174, 108], [174, 233], [174, 98], [174, 79], [174, 326], [174, 209], [174, 69], [174, 199], [174, 302], [177, 174], [179, 178], [181, 26], [181, 435], [182, 379], [182, 59], [182, 48], [182, 132], [182, 108], [182, 233], [182, 98], [182, 79], [182, 326], [182, 209], [182, 69], [182, 181], [182, 199], [182, 302], [182, 292], [185, 182], [187, 186], [188, 187], [189, 5], [190, 379], [190, 189], [190, 48], [190, 132], [190, 108], [190, 233], [190, 98], [190, 79], [190, 326], [190, 209], [190, 69], [190, 199], [190, 302], [190, 59], [190, 292], [192, 425], [192, 31], [193, 190], [194, 193], [195, 194], [196, 193], [196, 195], [197, 196], [198, 197], [199, 198], [199, 192], [200, 5], [201, 199], [201, 200], [203, 201], [204, 203], [205, 204], [206, 203], [206, 205], [207, 206], [208, 207], [209, 208], [210, 5], [211, 210], [211, 209], [213, 211], [214, 213], [215, 214], [216, 215], [216, 213], [217, 216], [218, 217], [219, 209], [219, 218], [220, 219], [221, 5], [222, 209], [222, 221], [223, 222], [224, 220], [226, 225], [227, 223], [228, 227], [229, 228], [230, 229], [230, 227], [231, 230], [232, 231], [233, 232], [233, 226], [234, 5], [235, 233], [235, 234], [237, 235], [238, 237], [239, 238], [240, 237], [240, 239], [241, 240], [242, 241], [243, 233], [243, 242], [244, 243], [245, 244], [250, 5], [251, 108], [251, 233], [251, 98], [251, 79], [251, 326], [251, 209], [251, 69], [251, 199], [251, 302], [251, 59], [251, 292], [251, 250], [251, 379], [251, 48], [251, 132], [253, 251], [254, 253], [255, 254], [256, 253], [256, 255], [257, 256], [258, 257], [259, 233], [259, 98], [259, 79], [259, 326], [259, 209], [259, 69], [259, 199], [259, 302], [259, 59], [259, 292], [259, 258], [259, 132], [259, 379], [259, 48], [259, 108], [260, 259], [261, 5], [262, 261], [262, 108], [262, 233], [262, 98], [262, 79], [262, 326], [262, 209], [262, 69], [262, 199], [262, 302], [262, 59], [262, 292], [262, 379], [262, 48], [262, 132], [264, 262], [265, 264], [266, 265], [267, 264], [267, 266], [268, 267], [269, 268], [270, 233], [270, 98], [270, 79], [270, 326], [270, 209], [270, 69], [270, 199], [270, 302], [270, 59], [270, 292], [270, 269], [270, 132], [270, 379], [270, 48], [270, 108], [272, 270], [274, 5], [275, 326], [275, 209], [275, 69], [275, 199], [275, 302], [275, 59], [275, 292], [275, 132], [275, 379], [275, 48], [275, 108], [275, 274], [275, 233], [275, 98], [275, 79], [278, 275], [280, 279], [282, 5], [283, 69], [283, 199], [283, 302], [283, 59], [283, 292], [283, 282], [283, 132], [283, 379], [283, 108], [283, 48], [283, 326], [283, 233], [283, 98], [283, 79], [283, 209], [285, 31], [285, 425], [286, 283], [287, 286], [288, 287], [289, 286], [289, 288], [290, 289], [291, 290], [292, 291], [292, 285], [293, 5], [294, 292], [294, 293], [296, 294], [297, 296], [298, 297], [299, 296], [299, 298], [300, 299], [301, 300], [302, 301], [303, 5], [304, 303], [304, 302], [306, 304], [307, 306], [308, 307], [309, 308], [309, 306], [310, 309], [311, 310], [312, 302], [312, 311], [313, 312], [314, 5], [315, 302], [315, 314], [316, 315], [317, 313], [319, 318], [320, 316], [321, 320], [322, 321], [323, 322], [323, 320], [324, 323], [325, 324], [326, 325], [326, 319], [327, 5], [328, 327], [328, 326], [330, 328], [331, 330], [332, 331], [333, 330], [333, 332], [334, 333], [335, 334], [336, 326], [336, 335], [337, 336], [338, 337], [343, 5], [344, 79], [344, 326], [344, 302], [344, 292], [344, 209], [344, 69], [344, 343], [344, 199], [344, 59], [344, 132], [344, 379], [344, 108], [344, 233], [344, 98], [344, 48], [346, 344], [347, 346], [348, 347], [349, 348], [349, 346], [350, 349], [351, 350], [352, 302], [352, 233], [352, 98], [352, 79], [352, 209], [352, 69], [352, 199], [352, 59], [352, 292], [352, 132], [352, 379], [352, 351], [352, 108], [352, 48], [352, 326], [353, 352], [354, 5], [355, 48], [355, 326], [355, 302], [355, 233], [355, 98], [355, 354], [355, 79], [355, 209], [355, 69], [355, 199], [355, 59], [355, 292], [355, 132], [355, 379], [355, 108], [357, 355], [358, 357], [359, 358], [360, 357], [360, 359], [361, 360], [362, 361], [363, 48], [363, 79], [363, 326], [363, 302], [363, 362], [363, 209], [363, 69], [363, 199], [363, 59], [363, 292], [363, 132], [363, 379], [363, 108], [363, 233], [363, 98], [365, 363], [367, 5], [368, 302], [368, 367], [368, 209], [368, 69], [368, 199], [368, 59], [368, 292], [368, 132], [368, 379], [368, 108], [368, 233], [368, 98], [368, 48], [368, 79], [368, 326], [371, 368], [373, 372], [374, 5], [375, 48], [375, 132], [375, 379], [375, 374], [375, 108], [375, 233], [375, 98], [375, 79], [375, 326], [375, 302], [375, 292], [375, 209], [375, 69], [375, 199], [375, 59], [376, 375], [377, 376], [378, 5], [379, 377], [379, 378], [380, 400], [381, 380], [382, 381], [383, 411], [384, 383], [385, 384], [386, 35], [387, 292], [387, 386], [387, 69], [387, 199], [387, 59], [387, 48], [387, 132], [387, 379], [387, 108], [387, 233], [387, 98], [387, 79], [387, 326], [387, 209], [387, 302], [388, 387], [391, 388], [391, 412], [392, 69], [392, 199], [392, 59], [392, 48], [392, 132], [392, 379], [392, 108], [392, 233], [392, 98], [392, 79], [392, 326], [392, 209], [392, 302], [392, 391], [392, 292], [395, 392], [397, 396], [398, 397], [399, 415], [399, 389], [400, 399], [402, 388], [402, 412], [403, 199], [403, 59], [403, 48], [403, 402], [403, 132], [403, 379], [403, 108], [403, 233], [403, 98], [403, 79], [403, 326], [403, 209], [403, 69], [403, 302], [403, 292], [406, 403], [408, 407], [409, 408], [410, 415], [410, 389], [411, 410], [412, 412], [412, 388], [413, 415], [413, 389], [414, 413], [415, 414], [416, 412], [416, 388], [417, 416], [418, 388], [418, 412], [419, 199], [419, 59], [419, 48], [419, 132], [419, 379], [419, 108], [419, 233], [419, 98], [419, 79], [419, 326], [419, 209], [419, 69], [419, 302], [419, 418], [419, 292], [420, 419], [421, 420], [422, 422], [422, 30], [423, 31], [423, 425], [424, 423], [425, 424], [426, 422], [426, 30], [427, 426], [428, 422], [428, 30], [429, 132], [429, 379], [429, 108], [429, 233], [429, 98], [429, 79], [429, 326], [429, 209], [429, 69], [429, 428], [429, 302], [429, 292], [429, 199], [429, 59], [429, 48], [430, 429], [431, 430], [432, 434], [432, 13], [433, 432], [434, 433], [435, 435], [435, 26], [436, 435], [436, 26], [437, 436], [438, 435], [438, 26], [439, 79], [439, 326], [439, 438], [439, 209], [439, 69], [439, 302], [439, 292], [439, 199], [439, 59], [439, 48], [439, 132], [439, 379], [439, 108], [439, 233], [439, 98], [440, 439], [441, 440], [442, 8], [442, 179], [442, 280], [442, 373], [445, 341], [445, 442], [445, 22], [445, 147], [445, 248]]}
{"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/1bb8600ff54d3770b00319c465e287140b1e638e41a9ec62b38e2315c333ed80_1bb8600ff54d3770b00319c465e287140b1e638e41a9ec62b38e2315c333ed80.jsonl.gz", "strip_func_name": "sub_402B9E", "query": "\n\n\n__int64 __fastcall sub_402B9E(char a1, __int16 *a2, __int64 a3)\n{\nint v4; // ebx\nint v5; // ebx\nint v6; // ebx\n__int64 v7; // [rsp+20h] [rbp-40h]\nchar v8; // [rsp+2Dh] [rbp-33h]\nchar v9; // [rsp+2Eh] [rbp-32h]\nchar v10; // [rsp+2Fh] [rbp-31h]\nconst char **v11; // [rsp+30h] [rbp-30h]\n_QWORD *v12; // [rsp+38h] [rbp-28h]\n__int64 i; // [rsp+40h] [rbp-20h]\nunsigned __int8 v14; // [rsp+4Fh] [rbp-11h]\n\nv14 = -1;\nv10 = 1;\nbyte_4132C0 = a1;\nif ( !a2 || !a3 )\nreturn 0xFFFFFFFFLL;\nfor ( i = *(_QWORD *)(a3 + 8); i && *(_QWORD *)i; i += 72LL )\n{\nv12 = *(_QWORD **)(i + 8);\nv9 = 1;\nwhile ( v12 && *v12 )\n{\nv7 = v12[2];\nif ( v7 )\n{\n*((_BYTE *)&unk_40EF80 + 24 * *a2) = a1;\n*((_BYTE *)&unk_40EF81 + 24 * *a2) = v10;\n*((_BYTE *)&unk_40EF82 + 24 * *a2) = 4;\n*((_BYTE *)&unk_40EF87 + 24 * *a2) = 0;\nif ( !strncmp(*(const char **)i, \"I2C\", 3uLL) )\n{\n*((_WORD *)&unk_40EF84 + 12 * *a2) = v9;\n*((_BYTE *)&unk_40EF86 + 24 * *a2) = 6;\nv4 = *a2;\n*((_QWORD *)&unk_40EF90 + 3 * v4) = malloc(*((unsigned __int8 *)&unk_40EF86 + 24 * *a2));\nif ( !*((_QWORD *)&unk_40EF90 + 3 * *a2) )\ngoto LABEL_15;\nmemset(*((void **)&unk_40EF90 + 3 * *a2), 0, *((unsigned __int8 *)&unk_40EF86 + 24 * *a2));\nv14 = sub_4029DF(*a2, 9);\n}\nelse if ( !strncmp(*(const char **)i, \"ethernet\", 8uLL) )\n{\n*((_WORD *)&unk_40EF84 + 12 * *a2) = v9;\n*((_BYTE *)&unk_40EF86 + 24 * *a2) = 4;\nv5 = *a2;\n*((_QWORD *)&unk_40EF90 + 3 * v5) = malloc(*((unsigned __int8 *)&unk_40EF86 + 24 * *a2));\nif ( !*((_QWORD *)&unk_40EF90 + 3 * *a2) )\ngoto LABEL_15;\nmemset(*((void **)&unk_40EF90 + 3 * *a2), 0, *((unsigned __int8 *)&unk_40EF86 + 24 * *a2));\nv14 = sub_4029DF(*a2, 11);\n}\nelse\n{\n*((_WORD *)&unk_40EF84 + 12 * *a2) = v9;\n*((_BYTE *)&unk_40EF86 + 24 * *a2) = 2;\nv6 = *a2;\n*((_QWORD *)&unk_40EF90 + 3 * v6) = malloc(*((unsigned __int8 *)&unk_40EF86 + 24 * *a2));\nif ( !*((_QWORD *)&unk_40EF90 + 3 * *a2) )\n{\nLABEL_15:\nputs(\"Malloc failed\");\nreturn 0xFFFFFFFFLL;\n}\nmemset(*((void **)&unk_40EF90 + 3 * *a2), 0, *((unsigned __int8 *)&unk_40EF86 + 24 * *a2));\nv14 = sub_4029DF(*a2, 10);\n}\n++*a2;\nif ( byte_40A199 == -1 || byte_40A19A == -1 )\n{\nv11 = *(const char ***)(v7 + 40);\nv8 = 0;\nwhile ( v11 && *v11 )\n{\nif ( !strncmp(*v11, \"get\", 3uLL) )\n{\nbyte_40A199 = v8;\n}\nelse if ( !strncmp(*v11, \"set\", 3uLL) )\n{\nbyte_40A19A = v8;\n}\nv11 += 3;\n++v8;\n}\n}\n}\nv12 += 9;\n++v9;\n}\n++v10;\n}\nreturn v14;\n}\n\n\n\nQ:[a3,a1,a2,v7,v8,v9,v10,v11,v12,i,sub_402B9E,sub_4029DF,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'subSystem', 'a1': 'subsystemNbr', 'a2': 'gStructIndex', 'v7': 'driver', 'v8': 'commandCount', 'v9': 'count', 'v10': 'componentNbr', 'v11': 'command', 'v12': 'subComponent', 'i': 'component', 'sub_402B9E': 'ocware_create_command_debug_database', 'sub_4029DF': 'ocware_stub_fill_init_debug_value'}"}
lspVQ
6685c16f9be7e617351948e3bfca4b5a452c99150f0336caa504ed823939ea36
gegel
pairphone
NA
static void lspVQ(int16_t target[], int16_t weight[], int16_t qout[], const int16_t codebook[], int16_t tos, const int16_t cb_size[], int16_t cb_index[], int16_t dim, BOOLEAN flag) { register int16_t i, entry; register int16_t c1, s1; const int16_t *cdbk_ptr, *cdbk_ptr2, *ptr1; int16_t index[LSP_VQ_CAND][LSP_VQ_STAGES]; int16_t nextIndex[LSP_VQ_CAND][LSP_VQ_STAGES]; int16_t ncPrev; int16_t cand[LSP_VQ_CAND][2 * LPC_ORD]; int16_t max_dMin, dMin[LSP_VQ_CAND], distortion; int16_t *cand_target; int32_t L_temp; int16_t ptr_offset = 0; int16_t temp1, temp2; /*==================================================================* * Initialize the data before starting the tree search. * * - the number of candidates from the "previous" stage is set * * to 1 since there is no previous stage! * * - the candidate vector from the previous stage is set to zero * * - the list of indeces for each candidate is set to 1 * *==================================================================*/ for (i = 0; i < LSP_VQ_CAND; i++) { v_zap(cand[i], dim); v_zap(index[i], LSP_VQ_STAGES); v_zap(nextIndex[i], LSP_VQ_STAGES); } cand_target = v_get(dim); ncPrev = 1; /*==================================================================* * Now we start the search: * * For each stage * * For each candidate from the previous stage * * For each entry in the current stage codebook * * * add codebook vector to current candidate * * * compute the distortion with the target * * * retain candidate if one of the best so far * *==================================================================*/ cdbk_ptr = codebook; /* An observation for lspVQ() shows that if "flag" is FALSE, then we only */ /* need to keep track of the best one (instead of the best LSP_VQ_CAND, */ /* 8) cand[][] and index[][]. This has significant influence on */ /* execution speed. */ for (s1 = 0; s1 < tos; s1++) { /* set the distortions to huge values */ fill(dMin, SW_MAX, LSP_VQ_CAND); max_dMin = SW_MAX; /* Loop for each previous candidate selected, and try each entry */ for (c1 = 0; c1 < ncPrev; c1++) { ptr_offset = 0; /* cand_target[] is the target vector with cand[c1] removed. */ /* This moves some operations from the for-entry loop here. */ /* save_saturation(); */ v_equ(cand_target, target, dim); v_sub(cand_target, cand[c1], dim); /* restore_saturation(); */ for (entry = 0; entry < cb_size[s1]; entry++) { ptr1 = cdbk_ptr + ptr_offset; /* Pointer arithmetics. */ /* compute the distortion */ distortion = WeightedMSE(dim, weight, ptr1, cand_target, max_dMin); /*======================================================* * If the error for this entry is less than the worst * * retained candidate so far, keep it. Note that the * * error list is maintained in order of best to worst. * *=======================================================*/ if (distortion < max_dMin) { max_dMin = InsertCand(c1, s1, dMin, distortion, entry, nextIndex[0], index[0]); } ptr_offset = melpe_add(ptr_offset, dim); } } /* At this point ptr_offset is (cb_size[s1]*dim). */ /*==================================================================* * Compute the number of candidate vectors which we kept for the * * next stage. Note that if the size of the stages is less than * * the number of candidates, we build them up using all entries * * until we have kept numCand candidates. On the other hand, if * * flag is FALSE and (s1 == tos - 1), then we only need to use * * ncPrev = 1 because we only copy the best candidate before * * exiting lspVQ(). * *==================================================================*/ if (!flag && s1 == tos - 1) ncPrev = 1; else { /* ncPrev = Min(ncPrev*cb_size[s1], LSP_VQ_CAND) for regular */ /* loops, and ncPrev = Min(ncPrev*cb_size[s1], LSP_INP_CAND) for */ /* the last lap. Explanations are available near the end of this *//* function. */ L_temp = melpe_L_mult(ncPrev, cb_size[s1]); L_temp = melpe_L_shr(L_temp, 1); temp1 = melpe_extract_l(L_temp); /* temp1 = ncPrev * cb_size[s1] */ if (s1 == tos - 1) temp2 = LSP_INP_CAND; else temp2 = LSP_VQ_CAND; if (temp1 < temp2) ncPrev = temp1; else ncPrev = temp2; } /*==================================================================* * We now have the best indices for the stage just completed, so * * compute the new candidate vectors for the next stage... * *==================================================================*/ for (c1 = 0; c1 < ncPrev; c1++) { v_zap(cand[c1], dim); cdbk_ptr2 = codebook; temp1 = melpe_add(s1, 1); v_equ(index[c1], nextIndex[c1], temp1); for (i = 0; i < temp1; i++) { /* v_add(cand[c1], cdbk_ptr2 + index[c1][i]*dim, dim); */ L_temp = melpe_L_mult(index[c1][i], dim); L_temp = melpe_L_shr(L_temp, 1); temp2 = melpe_extract_l(L_temp); ptr1 = cdbk_ptr2 + temp2; v_add(cand[c1], ptr1, dim); /* cdbk_ptr2 += cb_size[i]*dim; */ L_temp = melpe_L_mult(cb_size[i], dim); L_temp = melpe_L_shr(L_temp, 1); temp2 = melpe_extract_l(L_temp); cdbk_ptr2 += temp2; } } /* cdbk_ptr += cb_size[s1] * dim; */ cdbk_ptr += ptr_offset; } /* Copy best candidate and indices into output. Here we use temp1 and */ /* temp2 to compute (c1*tos) and (c1*dim). */ /* Originally this function copies LSP_VQ_CAND (== 8) vectors before */ /* exiting if flag is TRUE. However, in the calling environment of */ /* lspVQ() when flag is passed in as TRUE, we only used LSP_INP_CAND */ /* (== 5). */ temp1 = 0; temp2 = 0; for (i = 0; i < ncPrev; i++) { v_equ(&(cb_index[temp1]), index[i], tos); v_equ(&qout[temp2], cand[i], dim); temp1 = melpe_add(temp1, tos); temp2 = melpe_add(temp2, dim); } v_free(cand_target); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4583F8", "function_addr": 4555768, "binary_name": "6685c16f9be7e617351948e3bfca4b5a452c99150f0336caa504ed823939ea36.elf_extract.pkl\n"}, "code": [[0, "push r12"], [1, "push rbp"], [2, "push rbx"], [3, "sub rsp, 2B0h"], [4, "mov [rsp+2C8h+var_290], rdi"], [5, "mov [rsp+2C8h+var_298], rsi"], [6, "mov [rsp+2C8h+var_2A0], rdx"], [7, "mov [rsp+2C8h+var_2A8], rcx"], [8, "mov ecx, r8d"], [9, "mov [rsp+2C8h+var_2B8], r9"], [10, "mov edx, [rsp+2C8h+arg_8]"], [11, "mov eax, [rsp+2C8h+arg_10]"], [12, "mov [rsp+2C8h+var_2AC], cx"], [13, "mov [rsp+2C8h+var_2B0], dx"], [14, "mov [rsp+2C8h+var_2BC], ax"], [15, "mov [rsp+2C8h+var_2E], 0"], [16, "mov ebx, 0"], [17, "jmp short loc_4584C1"], [18, "movsx edx, [rsp+2C8h+var_2B0]"], [19, "movsx eax, bx"], [20, "lea rsi, [rsp+2C8h+var_278]"], [21, "movsxd rcx, eax"], [22, "mov rax, rcx"], [23, "shl rax, 2"], [24, "add rax, rcx"], [25, "shl rax, 3"], [26, "add rax, rsi"], [27, "mov esi, edx"], [28, "mov rdi, rax"], [29, "call sub_48DC58"], [30, "movsx eax, bx"], [31, "lea rdx, [rsp+2C8h+var_F8]"], [32, "cdqe"], [33, "shl rax, 3"], [34, "add rax, rdx"], [35, "mov esi, 4"], [36, "mov rdi, rax"], [37, "call sub_48DC58"], [38, "movsx eax, bx"], [39, "lea rdx, [rsp+2C8h+var_138]"], [40, "cdqe"], [41, "shl rax, 3"], [42, "add rax, rdx"], [43, "mov esi, 4"], [44, "mov rdi, rax"], [45, "call sub_48DC58"], [46, "mov eax, ebx"], [47, "add eax, 1"], [48, "mov ebx, eax"], [49, "cmp bx, 7"], [50, "jle short loc_45844D"], [51, "movsx eax, [rsp+2C8h+var_2B0]"], [52, "mov edi, eax"], [53, "call sub_48DCA3"], [54, "mov [rsp+2C8h+var_40], rax"], [55, "mov [rsp+2C8h+var_2A], 1"], [56, "mov rax, [rsp+2C8h+var_2A8]"], [57, "mov [rsp+2C8h+var_20], rax"], [58, "mov r12d, 0"], [59, "jmp loc_458B50"], [60, "lea rax, [rsp+2C8h+var_288]"], [61, "mov edx, 8"], [62, "mov esi, 7FFFh"], [63, "mov rdi, rax"], [64, "call sub_467C59"], [65, "mov [rsp+2C8h+var_2C], 7FFFh"], [66, "mov ebp, 0"], [67, "jmp loc_4586BA"], [68, "mov [rsp+2C8h+var_2E], 0"], [69, "movsx edx, [rsp+2C8h+var_2B0]"], [70, "mov rcx, [rsp+2C8h+var_290]"], [71, "mov rax, [rsp+2C8h+var_40]"], [72, "mov rsi, rcx"], [73, "mov rdi, rax"], [74, "call sub_48CF4A"], [75, "movsx edx, [rsp+2C8h+var_2B0]"], [76, "movsx eax, bp"], [77, "lea rsi, [rsp+2C8h+var_278]"], [78, "movsxd rcx, eax"], [79, "mov rax, rcx"], [80, "shl rax, 2"], [81, "add rax, rcx"], [82, "shl rax, 3"], [83, "lea rcx, [rsi+rax]"], [84, "mov rax, [rsp+2C8h+var_40]"], [85, "mov rsi, rcx"], [86, "mov rdi, rax"], [87, "call sub_48DBB9"], [88, "mov ebx, 0"], [89, "jmp loc_458697"], [90, "movsx rax, [rsp+2C8h+var_2E]"], [91, "lea rdx, [rax+rax]"], [92, "mov rax, [rsp+2C8h+var_20]"], [93, "add rax, rdx"], [94, "mov [rsp+2C8h+var_50], rax"], [95, "movsx edi, [rsp+2C8h+var_2C]"], [96, "movsx eax, [rsp+2C8h+var_2B0]"], [97, "mov rcx, [rsp+2C8h+var_40]"], [98, "mov rdx, [rsp+2C8h+var_50]"], [99, "mov rsi, [rsp+2C8h+var_298]"], [100, "mov r8d, edi"], [101, "mov edi, eax"], [102, "call sub_458CE3"], [103, "mov [rsp+2C8h+var_52], ax"], [104, "movzx eax, [rsp+2C8h+var_52]"], [105, "cmp ax, [rsp+2C8h+var_2C]"], [106, "jge short loc_458634"], [107, "movsx r8d, bx"], [108, "movsx ecx, [rsp+2C8h+var_52]"], [109, "movsx esi, r12w"], [110, "movsx eax, bp"], [111, "lea r9, [rsp+2C8h+var_138]"], [112, "lea rdx, [rsp+2C8h+var_288]"], [113, "sub rsp, 8"], [114, "lea rdi, [rsp+2D0h+var_F8]"], [115, "push rdi"], [116, "mov edi, eax"], [117, "call sub_459616"], [118, "add rsp, 10h"], [119, "mov [rsp+2C8h+var_2C], ax"], [120, "movsx eax, [rsp+2C8h+var_2B0]"], [121, "movsx edx, [rsp+2C8h+var_2E]"], [122, "mov [rsp+2C8h+var_54], dx"], [123, "mov [rsp+2C8h+var_56], ax"], [124, "movsx edx, [rsp+2C8h+var_54]"], [125, "movsx eax, [rsp+2C8h+var_56]"], [126, "add eax, edx"], [127, "mov [rsp+2C8h+var_5C], eax"], [128, "mov eax, [rsp+2C8h+var_5C]"], [129, "mov edi, eax"], [130, "call sub_456A04"], [131, "mov [rsp+2C8h+var_5E], ax"], [132, "movzx eax, [rsp+2C8h+var_5E]"], [133, "mov [rsp+2C8h+var_2E], ax"], [134, "mov eax, ebx"], [135, "add eax, 1"], [136, "mov ebx, eax"], [137, "movsx rax, r12w"], [138, "lea rdx, [rax+rax]"], [139, "mov rax, [rsp+2C8h+var_2B8]"], [140, "add rax, rdx"], [141, "movzx eax, word ptr [rax]"], [142, "cmp bx, ax"], [143, "jl loc_45858E"], [144, "mov eax, ebp"], [145, "add eax, 1"], [146, "mov ebp, eax"], [147, "cmp bp, [rsp+2C8h+var_2A]"], [148, "jl loc_458528"], [149, "cmp [rsp+2C8h+var_2BC], 0"], [150, "jnz short loc_4586EF"], [151, "movsx eax, r12w"], [152, "movsx edx, [rsp+2C8h+var_2AC]"], [153, "sub edx, 1"], [154, "cmp eax, edx"], [155, "jnz short loc_4586EF"], [156, "mov [rsp+2C8h+var_2A], 1"], [157, "jmp loc_45881A"], [158, "movsx rax, r12w"], [159, "lea rdx, [rax+rax]"], [160, "mov rax, [rsp+2C8h+var_2B8]"], [161, "add rax, rdx"], [162, "movzx eax, word ptr [rax]"], [163, "cwde"], [164, "movsx edx, [rsp+2C8h+var_2A]"], [165, "mov [rsp+2C8h+var_68], dx"], [166, "mov [rsp+2C8h+var_6A], ax"], [167, "cmp [rsp+2C8h+var_68], 8000h"], [168, "jnz short loc_45874A"], [169, "cmp [rsp+2C8h+var_6A], 8000h"], [170, "jnz short loc_45874A"], [171, "mov eax, 0"], [172, "call sub_4877A5"], [173, "mov [rsp+2C8h+var_70], 7FFFFFFFh"], [174, "jmp short loc_45876B"], [175, "movsx edx, [rsp+2C8h+var_68]"], [176, "movsx eax, [rsp+2C8h+var_6A]"], [177, "imul eax, edx"], [178, "mov [rsp+2C8h+var_70], eax"], [179, "shl [rsp+2C8h+var_70], 1"], [180, "mov eax, [rsp+2C8h+var_70]"], [181, "mov [rsp+2C8h+var_44], eax"], [182, "mov eax, [rsp+2C8h+var_44]"], [183, "mov esi, 1"], [184, "mov edi, eax"], [185, "call sub_456C7D"], [186, "mov [rsp+2C8h+var_44], eax"], [187, "mov eax, [rsp+2C8h+var_44]"], [188, "mov [rsp+2C8h+var_64], eax"], [189, "mov eax, [rsp+2C8h+var_64]"], [190, "mov [rsp+2C8h+var_66], ax"], [191, "movzx eax, [rsp+2C8h+var_66]"], [192, "mov [rsp+2C8h+var_30], ax"], [193, "movsx eax, r12w"], [194, "movsx edx, [rsp+2C8h+var_2AC]"], [195, "sub edx, 1"], [196, "cmp eax, edx"], [197, "jnz short loc_4587DC"], [198, "mov [rsp+2C8h+var_32], 5"], [199, "jmp short loc_4587E6"], [200, "mov [rsp+2C8h+var_32], 8"], [201, "movzx eax, [rsp+2C8h+var_30]"], [202, "cmp ax, [rsp+2C8h+var_32]"], [203, "jge short loc_45880A"], [204, "movzx eax, [rsp+2C8h+var_30]"], [205, "mov [rsp+2C8h+var_2A], ax"], [206, "jmp short loc_45881A"], [207, "movzx eax, [rsp+2C8h+var_32]"], [208, "mov [rsp+2C8h+var_2A], ax"], [209, "mov ebp, 0"], [210, "jmp loc_458B25"], [211, "movsx edx, [rsp+2C8h+var_2B0]"], [212, "movsx eax, bp"], [213, "lea rsi, [rsp+2C8h+var_278]"], [214, "movsxd rcx, eax"], [215, "mov rax, rcx"], [216, "shl rax, 2"], [217, "add rax, rcx"], [218, "shl rax, 3"], [219, "add rax, rsi"], [220, "mov esi, edx"], [221, "mov rdi, rax"], [222, "call sub_48DC58"], [223, "mov rax, [rsp+2C8h+var_2A8]"], [224, "mov [rsp+2C8h+var_28], rax"], [225, "movsx eax, r12w"], [226, "mov [rsp+2C8h+var_72], ax"], [227, "mov [rsp+2C8h+var_74], 1"], [228, "movsx edx, [rsp+2C8h+var_72]"], [229, "movsx eax, [rsp+2C8h+var_74]"], [230, "add eax, edx"], [231, "mov [rsp+2C8h+var_78], eax"], [232, "mov eax, [rsp+2C8h+var_78]"], [233, "mov edi, eax"], [234, "call sub_456A04"], [235, "mov [rsp+2C8h+var_7A], ax"], [236, "movzx eax, [rsp+2C8h+var_7A]"], [237, "mov [rsp+2C8h+var_30], ax"], [238, "movsx eax, [rsp+2C8h+var_30]"], [239, "movsx edx, bp"], [240, "lea rcx, [rsp+2C8h+var_138]"], [241, "movsxd rdx, edx"], [242, "shl rdx, 3"], [243, "lea rsi, [rcx+rdx]"], [244, "movsx edx, bp"], [245, "lea rcx, [rsp+2C8h+var_F8]"], [246, "movsxd rdx, edx"], [247, "shl rdx, 3"], [248, "add rcx, rdx"], [249, "mov edx, eax"], [250, "mov rdi, rcx"], [251, "call sub_48CF4A"], [252, "mov ebx, 0"], [253, "jmp loc_458B10"], [254, "movsx eax, [rsp+2C8h+var_2B0]"], [255, "movsx edx, bp"], [256, "movsx ecx, bx"], [257, "movsxd rcx, ecx"], [258, "movsxd rdx, edx"], [259, "shl rdx, 2"], [260, "add rdx, rcx"], [261, "movzx edx, [rsp+rdx*2+2C8h+var_F8]"], [262, "movsx edx, dx"], [263, "mov [rsp+2C8h+var_94], dx"], [264, "mov [rsp+2C8h+var_96], ax"], [265, "cmp [rsp+2C8h+var_94], 8000h"], [266, "jnz short loc_45895A"], [267, "cmp [rsp+2C8h+var_96], 8000h"], [268, "jnz short loc_45895A"], [269, "mov eax, 0"], [270, "call sub_4877A5"], [271, "mov [rsp+2C8h+var_9C], 7FFFFFFFh"], [272, "jmp short loc_45897B"], [273, "movsx edx, [rsp+2C8h+var_94]"], [274, "movsx eax, [rsp+2C8h+var_96]"], [275, "imul eax, edx"], [276, "mov [rsp+2C8h+var_9C], eax"], [277, "shl [rsp+2C8h+var_9C], 1"], [278, "mov eax, [rsp+2C8h+var_9C]"], [279, "mov [rsp+2C8h+var_44], eax"], [280, "mov eax, [rsp+2C8h+var_44]"], [281, "mov esi, 1"], [282, "mov edi, eax"], [283, "call sub_456C7D"], [284, "mov [rsp+2C8h+var_44], eax"], [285, "mov eax, [rsp+2C8h+var_44]"], [286, "mov [rsp+2C8h+var_90], eax"], [287, "mov eax, [rsp+2C8h+var_90]"], [288, "mov [rsp+2C8h+var_92], ax"], [289, "movzx eax, [rsp+2C8h+var_92]"], [290, "mov [rsp+2C8h+var_32], ax"], [291, "movsx rax, [rsp+2C8h+var_32]"], [292, "lea rdx, [rax+rax]"], [293, "mov rax, [rsp+2C8h+var_28]"], [294, "add rax, rdx"], [295, "mov [rsp+2C8h+var_50], rax"], [296, "movsx edx, [rsp+2C8h+var_2B0]"], [297, "movsx eax, bp"], [298, "lea rsi, [rsp+2C8h+var_278]"], [299, "movsxd rcx, eax"], [300, "mov rax, rcx"], [301, "shl rax, 2"], [302, "add rax, rcx"], [303, "shl rax, 3"], [304, "lea rcx, [rsi+rax]"], [305, "mov rax, [rsp+2C8h+var_50]"], [306, "mov rsi, rax"], [307, "mov rdi, rcx"], [308, "call sub_48CEAB"], [309, "movsx eax, [rsp+2C8h+var_2B0]"], [310, "movsx rdx, bx"], [311, "lea rcx, [rdx+rdx]"], [312, "mov rdx, [rsp+2C8h+var_2B8]"], [313, "add rdx, rcx"], [314, "movzx edx, word ptr [rdx]"], [315, "movsx edx, dx"], [316, "mov [rsp+2C8h+var_84], dx"], [317, "mov [rsp+2C8h+var_86], ax"], [318, "cmp [rsp+2C8h+var_84], 8000h"], [319, "jnz short loc_458A7F"], [320, "cmp [rsp+2C8h+var_86], 8000h"], [321, "jnz short loc_458A7F"], [322, "mov eax, 0"], [323, "call sub_4877A5"], [324, "mov [rsp+2C8h+var_8C], 7FFFFFFFh"], [325, "jmp short loc_458AA0"], [326, "movsx edx, [rsp+2C8h+var_84]"], [327, "movsx eax, [rsp+2C8h+var_86]"], [328, "imul eax, edx"], [329, "mov [rsp+2C8h+var_8C], eax"], [330, "shl [rsp+2C8h+var_8C], 1"], [331, "mov eax, [rsp+2C8h+var_8C]"], [332, "mov [rsp+2C8h+var_44], eax"], [333, "mov eax, [rsp+2C8h+var_44]"], [334, "mov esi, 1"], [335, "mov edi, eax"], [336, "call sub_456C7D"], [337, "mov [rsp+2C8h+var_44], eax"], [338, "mov eax, [rsp+2C8h+var_44]"], [339, "mov [rsp+2C8h+var_80], eax"], [340, "mov eax, [rsp+2C8h+var_80]"], [341, "mov [rsp+2C8h+var_82], ax"], [342, "movzx eax, [rsp+2C8h+var_82]"], [343, "mov [rsp+2C8h+var_32], ax"], [344, "movsx rax, [rsp+2C8h+var_32]"], [345, "add rax, rax"], [346, "add [rsp+2C8h+var_28], rax"], [347, "mov eax, ebx"], [348, "add eax, 1"], [349, "mov ebx, eax"], [350, "cmp bx, [rsp+2C8h+var_30]"], [351, "jl loc_4588F8"], [352, "mov eax, ebp"], [353, "add eax, 1"], [354, "mov ebp, eax"], [355, "cmp bp, [rsp+2C8h+var_2A]"], [356, "jl loc_458824"], [357, "movsx rax, [rsp+2C8h+var_2E]"], [358, "add rax, rax"], [359, "add [rsp+2C8h+var_20], rax"], [360, "mov eax, r12d"], [361, "add eax, 1"], [362, "mov r12d, eax"], [363, "cmp r12w, [rsp+2C8h+var_2AC]"], [364, "jl loc_4584FD"], [365, "mov [rsp+2C8h+var_30], 0"], [366, "mov [rsp+2C8h+var_32], 0"], [367, "mov ebx, 0"], [368, "jmp loc_458CB8"], [369, "movsx eax, [rsp+2C8h+var_2AC]"], [370, "movsx edx, bx"], [371, "lea rcx, [rsp+2C8h+var_F8]"], [372, "movsxd rdx, edx"], [373, "shl rdx, 3"], [374, "lea rsi, [rcx+rdx]"], [375, "movsx rdx, [rsp+2C8h+var_30]"], [376, "lea rcx, [rdx+rdx]"], [377, "mov rdx, [rsp+2C8h+arg_0]"], [378, "add rcx, rdx"], [379, "mov edx, eax"], [380, "mov rdi, rcx"], [381, "call sub_48CF4A"], [382, "movsx edx, [rsp+2C8h+var_2B0]"], [383, "movsx eax, bx"], [384, "lea rsi, [rsp+2C8h+var_278]"], [385, "movsxd rcx, eax"], [386, "mov rax, rcx"], [387, "shl rax, 2"], [388, "add rax, rcx"], [389, "shl rax, 3"], [390, "lea rcx, [rsi+rax]"], [391, "movsx rax, [rsp+2C8h+var_32]"], [392, "lea rsi, [rax+rax]"], [393, "mov rax, [rsp+2C8h+var_2A0]"], [394, "add rax, rsi"], [395, "mov rsi, rcx"], [396, "mov rdi, rax"], [397, "call sub_48CF4A"], [398, "movsx eax, [rsp+2C8h+var_2AC]"], [399, "movsx edx, [rsp+2C8h+var_30]"], [400, "mov [rsp+2C8h+var_A8], dx"], [401, "mov [rsp+2C8h+var_AA], ax"], [402, "movsx edx, [rsp+2C8h+var_A8]"], [403, "movsx eax, [rsp+2C8h+var_AA]"], [404, "add eax, edx"], [405, "mov [rsp+2C8h+var_B0], eax"], [406, "mov eax, [rsp+2C8h+var_B0]"], [407, "mov edi, eax"], [408, "call sub_456A04"], [409, "mov [rsp+2C8h+var_B2], ax"], [410, "movzx eax, [rsp+2C8h+var_B2]"], [411, "mov [rsp+2C8h+var_30], ax"], [412, "movsx eax, [rsp+2C8h+var_2B0]"], [413, "movsx edx, [rsp+2C8h+var_32]"], [414, "mov [rsp+2C8h+var_9E], dx"], [415, "mov [rsp+2C8h+var_A0], ax"], [416, "movsx edx, [rsp+2C8h+var_9E]"], [417, "movsx eax, [rsp+2C8h+var_A0]"], [418, "add eax, edx"], [419, "mov [rsp+2C8h+var_A4], eax"], [420, "mov eax, [rsp+2C8h+var_A4]"], [421, "mov edi, eax"], [422, "call sub_456A04"], [423, "mov [rsp+2C8h+var_A6], ax"], [424, "movzx eax, [rsp+2C8h+var_A6]"], [425, "mov [rsp+2C8h+var_32], ax"], [426, "mov eax, ebx"], [427, "add eax, 1"], [428, "mov ebx, eax"], [429, "cmp bx, [rsp+2C8h+var_2A]"], [430, "jl loc_458B7A"], [431, "mov rax, [rsp+2C8h+var_40]"], [432, "mov rdi, rax"], [433, "call sub_48DD4E"], [434, "nop"], [435, "add rsp, 2B0h"], [436, "pop rbx"], [437, "pop rbp"], [438, "pop r12"], [439, "retn"]], "data_dep": [[12, 8], [13, 10], [14, 11], [18, 13], [19, 16], [19, 48], [20, 43], [21, 19], [22, 21], [23, 22], [24, 21], [24, 23], [25, 24], [26, 25], [26, 20], [27, 18], [28, 26], [30, 16], [30, 48], [31, 18], [33, 30], [34, 33], [34, 31], [36, 34], [38, 16], [38, 48], [39, 31], [41, 38], [42, 39], [42, 41], [44, 42], [46, 16], [46, 48], [47, 46], [48, 47], [49, 16], [49, 48], [50, 49], [51, 13], [52, 51], [54, 53], [56, 7], [57, 56], [60, 361], [60, 56], [63, 60], [69, 13], [70, 4], [71, 54], [72, 70], [73, 71], [75, 13], [76, 146], [76, 66], [77, 72], [78, 76], [79, 78], [80, 79], [81, 78], [81, 80], [82, 81], [83, 78], [83, 82], [84, 54], [85, 83], [86, 84], [90, 68], [90, 133], [91, 90], [91, 138], [92, 359], [92, 57], [93, 92], [93, 91], [94, 93], [95, 119], [95, 65], [96, 13], [97, 54], [98, 94], [99, 5], [100, 95], [101, 96], [103, 102], [104, 103], [105, 119], [105, 104], [105, 65], [106, 105], [107, 88], [107, 136], [108, 103], [109, 362], [109, 58], [110, 66], [110, 146], [111, 111], [112, 98], [113, 3], [113, 118], [114, 101], [115, 114], [116, 110], [118, 113], [119, 117], [120, 13], [121, 133], [121, 68], [122, 121], [123, 120], [124, 122], [125, 123], [126, 125], [126, 124], [127, 126], [128, 127], [129, 128], [131, 130], [132, 131], [133, 132], [134, 88], [134, 136], [135, 134], [136, 135], [137, 362], [137, 58], [138, 137], [138, 75], [138, 124], [139, 9], [140, 139], [140, 138], [141, 140], [142, 88], [142, 141], [142, 136], [143, 142], [144, 146], [144, 66], [145, 144], [146, 145], [147, 208], [147, 156], [147, 146], [147, 66], [147, 205], [147, 55], [148, 147], [149, 14], [150, 149], [151, 362], [151, 58], [152, 12], [153, 152], [154, 151], [154, 153], [155, 154], [158, 362], [158, 58], [159, 61], [159, 158], [159, 153], [159, 138], [160, 9], [161, 160], [161, 159], [162, 161], [164, 205], [164, 55], [164, 208], [164, 156], [165, 164], [166, 162], [167, 165], [168, 167], [169, 166], [170, 169], [175, 165], [176, 166], [177, 176], [177, 175], [178, 177], [179, 178], [180, 173], [180, 179], [181, 180], [182, 181], [184, 182], [186, 185], [187, 186], [188, 187], [189, 188], [190, 189], [191, 190], [192, 191], [193, 58], [193, 362], [194, 12], [195, 194], [196, 193], [196, 195], [197, 196], [201, 192], [202, 200], [202, 198], [202, 201], [203, 202], [204, 192], [205, 204], [207, 200], [207, 198], [208, 207], [211, 13], [212, 354], [212, 209], [213, 243], [213, 99], [213, 85], [213, 334], [213, 109], [213, 62], [213, 183], [214, 212], [215, 214], [216, 215], [217, 216], [217, 214], [218, 217], [219, 218], [219, 213], [220, 211], [221, 219], [223, 7], [224, 223], [225, 58], [225, 362], [226, 225], [228, 226], [229, 227], [230, 229], [230, 228], [231, 230], [232, 231], [233, 232], [235, 234], [236, 235], [237, 236], [238, 237], [239, 354], [239, 209], [240, 214], [241, 239], [242, 241], [243, 240], [243, 220], [244, 354], [244, 209], [245, 240], [246, 244], [247, 246], [248, 245], [248, 247], [249, 238], [250, 248], [254, 13], [255, 354], [255, 209], [256, 252], [256, 349], [257, 256], [258, 255], [259, 258], [260, 257], [260, 259], [261, 260], [262, 261], [263, 262], [264, 254], [265, 263], [266, 265], [267, 264], [268, 267], [273, 263], [274, 264], [275, 273], [275, 274], [276, 275], [277, 276], [278, 277], [278, 271], [279, 278], [280, 279], [282, 280], [284, 283], [285, 284], [286, 285], [287, 286], [288, 287], [289, 288], [290, 289], [291, 290], [292, 273], [292, 291], [292, 262], [293, 346], [293, 224], [294, 292], [294, 293], [295, 294], [296, 13], [297, 354], [297, 209], [298, 281], [299, 297], [300, 299], [301, 300], [302, 301], [302, 299], [303, 302], [304, 299], [304, 303], [305, 295], [306, 305], [307, 304], [309, 13], [310, 252], [310, 349], [311, 310], [311, 304], [312, 9], [313, 311], [313, 312], [314, 313], [315, 314], [316, 315], [317, 309], [318, 316], [319, 318], [320, 317], [321, 320], [326, 316], [327, 317], [328, 327], [328, 326], [329, 328], [330, 329], [331, 330], [331, 324], [332, 331], [333, 332], [335, 333], [337, 336], [338, 337], [339, 338], [340, 339], [341, 340], [342, 341], [343, 342], [344, 343], [345, 344], [346, 346], [346, 224], [346, 345], [347, 252], [347, 349], [348, 347], [349, 348], [350, 252], [350, 237], [350, 349], [351, 350], [352, 209], [352, 354], [353, 352], [354, 353], [355, 205], [355, 354], [355, 209], [355, 208], [355, 156], [356, 355], [357, 68], [357, 133], [357, 15], [358, 357], [359, 359], [359, 57], [359, 358], [360, 362], [360, 58], [361, 360], [362, 361], [363, 362], [363, 58], [363, 12], [364, 363], [369, 12], [370, 428], [370, 367], [371, 390], [371, 97], [371, 83], [371, 311], [371, 8], [371, 21], [371, 248], [371, 108], [372, 370], [373, 372], [374, 43], [374, 395], [374, 371], [374, 334], [374, 109], [374, 243], [374, 99], [374, 85], [374, 62], [374, 183], [375, 411], [375, 365], [376, 371], [376, 375], [378, 377], [378, 376], [379, 369], [380, 378], [382, 13], [383, 428], [383, 367], [384, 374], [385, 383], [386, 385], [387, 386], [388, 387], [388, 385], [389, 388], [390, 385], [390, 389], [391, 366], [391, 425], [392, 384], [392, 391], [393, 6], [394, 393], [394, 392], [395, 390], [396, 394], [398, 12], [399, 365], [399, 411], [400, 399], [401, 398], [402, 400], [403, 401], [404, 403], [404, 402], [405, 404], [406, 405], [407, 406], [409, 408], [410, 409], [411, 410], [412, 13], [413, 425], [413, 366], [414, 413], [415, 412], [416, 414], [417, 415], [418, 417], [418, 416], [419, 418], [420, 419], [421, 420], [423, 422], [424, 423], [425, 424], [426, 428], [426, 367], [427, 426], [428, 427], [429, 205], [429, 428], [429, 55], [429, 367], [429, 208], [429, 156], [430, 429], [431, 54], [432, 431], [435, 118], [435, 3], [436, 2], [437, 1], [438, 0], [439, 433]]}
{"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/6685c16f9be7e617351948e3bfca4b5a452c99150f0336caa504ed823939ea36_6685c16f9be7e617351948e3bfca4b5a452c99150f0336caa504ed823939ea36.jsonl.gz", "strip_func_name": "sub_4583F8", "query": "\n\n\n__int64 __fastcall sub_4583F8(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int16 a5, __int64 a6, __int64 a7, __int16 a8, __int16 a9)\n{\n__int16 i; // bx\n__int16 j; // r12\nchar *v11; // rdi\n__int16 k; // bp\n__int16 l; // bx\n__int16 v14; // ax\n__int16 m; // bp\n__int16 *v16; // rdi\n__int16 n; // bx\nchar *v18; // rdi\n__int16 ii; // bx\nchar v26[336]; // [rsp+40h] [rbp-288h] BYREF\n_QWORD v27[8]; // [rsp+190h] [rbp-138h] BYREF\n__int16 v28[35]; // [rsp+1D0h] [rbp-F8h] BYREF\n__int16 v29; // [rsp+216h] [rbp-B2h]\nunsigned int v30; // [rsp+218h] [rbp-B0h]\n__int16 v31; // [rsp+21Eh] [rbp-AAh]\n__int16 v32; // [rsp+220h] [rbp-A8h]\n__int16 v33; // [rsp+222h] [rbp-A6h]\nunsigned int v34; // [rsp+224h] [rbp-A4h]\n__int16 v35; // [rsp+228h] [rbp-A0h]\n__int16 v36; // [rsp+22Ah] [rbp-9Eh]\nunsigned int v37; // [rsp+22Ch] [rbp-9Ch]\n__int16 v38; // [rsp+232h] [rbp-96h]\n__int16 v39; // [rsp+234h] [rbp-94h]\n__int16 v40; // [rsp+236h] [rbp-92h]\nint v41; // [rsp+238h] [rbp-90h]\nunsigned int v42; // [rsp+23Ch] [rbp-8Ch]\n__int16 v43; // [rsp+242h] [rbp-86h]\n__int16 v44; // [rsp+244h] [rbp-84h]\n__int16 v45; // [rsp+246h] [rbp-82h]\nint v46; // [rsp+248h] [rbp-80h]\n__int16 v47; // [rsp+24Eh] [rbp-7Ah]\nunsigned int v48; // [rsp+250h] [rbp-78h]\n__int16 v49; // [rsp+254h] [rbp-74h]\n__int16 v50; // [rsp+256h] [rbp-72h]\nunsigned int v51; // [rsp+258h] [rbp-70h]\n__int16 v52; // [rsp+25Eh] [rbp-6Ah]\n__int16 v53; // [rsp+260h] [rbp-68h]\n__int16 v54; // [rsp+262h] [rbp-66h]\nint v55; // [rsp+264h] [rbp-64h]\n__int16 v56; // [rsp+26Ah] [rbp-5Eh]\nunsigned int v57; // [rsp+26Ch] [rbp-5Ch]\n__int16 v58; // [rsp+272h] [rbp-56h]\n__int16 v59; // [rsp+274h] [rbp-54h]\n__int16 v60; // [rsp+276h] [rbp-52h]\n__int64 v61; // [rsp+278h] [rbp-50h]\nint v62; // [rsp+284h] [rbp-44h]\nchar *v63; // [rsp+288h] [rbp-40h]\n__int16 v64; // [rsp+296h] [rbp-32h]\n__int16 v65; // [rsp+298h] [rbp-30h]\n__int16 v66; // [rsp+29Ah] [rbp-2Eh]\n__int16 v67; // [rsp+29Ch] [rbp-2Ch]\n__int16 v68; // [rsp+29Eh] [rbp-2Ah]\n__int64 v69; // [rsp+2A0h] [rbp-28h]\n__int64 v70; // [rsp+2A8h] [rbp-20h]\n\nv66 = 0;\nfor ( i = 0; i <= 7; ++i )\n{\nsub_48DC58(&v26[40 * i + 16], (unsigned int)a8);\nsub_48DC58(&v28[4 * i], 4LL);\nsub_48DC58(&v27[i], 4LL);\n}\nv63 = (char *)sub_48DCA3((unsigned int)a8);\nv68 = 1;\nv70 = a4;\nfor ( j = 0; j < a5; ++j )\n{\nv11 = v26;\nsub_467C59(v26, 0x7FFFLL, 8LL);\nv67 = 0x7FFF;\nfor ( k = 0; k < v68; ++k )\n{\nv66 = 0;\nsub_48CF4A(v63, a1, (unsigned int)a8);\nv11 = v63;\nsub_48DBB9(v63, &v26[40 * k + 16], (unsigned int)a8);\nfor ( l = 0; l < *(__int16 *)(2LL * j + a6); ++l )\n{\nv61 = 2LL * v66 + v70;\nv60 = sub_458CE3((unsigned int)a8, a2, v61, v63, (unsigned int)v67);\nif ( v60 < v67 )\nv67 = sub_459616(k, j, (unsigned int)v26, v60, l, (unsigned int)v27, (__int64)v28);\nv59 = v66;\nv58 = a8;\nv57 = v66 + a8;\nv11 = (char *)v57;\nv56 = sub_456A04(v57);\nv66 = v56;\n}\n}\nif ( a9 || j != a5 - 1 )\n{\nv14 = *(_WORD *)(2LL * j + a6);\nv53 = v68;\nv52 = v14;\nif ( v68 == (__int16)0x8000 && v52 == (__int16)0x8000 )\n{\nsub_4877A5(v11);\nv51 = 0x7FFFFFFF;\n}\nelse\n{\nv51 = v53 * v52;\nv51 *= 2;\n}\nv62 = v51;\nv62 = sub_456C7D(v51, 1);\nv55 = v62;\nv54 = v62;\nv65 = v62;\nif ( j == a5 - 1 )\nv64 = 5;\nelse\nv64 = 8;\nif ( v65 >= v64 )\nv68 = v64;\nelse\nv68 = v65;\n}\nelse\n{\nv68 = 1;\n}\nfor ( m = 0; m < v68; ++m )\n{\nsub_48DC58(&v26[40 * m + 16], (unsigned int)a8);\nv69 = a4;\nv50 = j;\nv49 = 1;\nv48 = j + 1;\nv47 = sub_456A04(v48);\nv65 = v47;\nv16 = &v28[4 * m];\nsub_48CF4A(v16, &v27[m], (unsigned int)v47);\nfor ( n = 0; n < v65; ++n )\n{\nv39 = v28[4 * m + n];\nv38 = a8;\nif ( v39 == (__int16)0x8000 && v38 == (__int16)0x8000 )\n{\nsub_4877A5(v16);\nv37 = 0x7FFFFFFF;\n}\nelse\n{\nv37 = v39 * v38;\nv37 *= 2;\n}\nv62 = v37;\nv62 = sub_456C7D(v37, 1);\nv41 = v62;\nv40 = v62;\nv64 = v62;\nv61 = 2LL * (__int16)v62 + v69;\nv18 = &v26[40 * m + 16];\nsub_48CEAB(v18, v61, (unsigned int)a8);\nv44 = *(_WORD *)(2LL * n + a6);\nv43 = a8;\nif ( v44 == (__int16)0x8000 && v43 == (__int16)0x8000 )\n{\nsub_4877A5(v18);\nv42 = 0x7FFFFFFF;\n}\nelse\n{\nv42 = v44 * v43;\nv42 *= 2;\n}\nv62 = v42;\nv16 = (__int16 *)v42;\nv62 = sub_456C7D(v42, 1);\nv46 = v62;\nv45 = v62;\nv64 = v62;\nv69 += 2LL * (__int16)v62;\n}\n}\nv70 += 2LL * v66;\n}\nv65 = 0;\nv64 = 0;\nfor ( ii = 0; ii < v68; ++ii )\n{\nsub_48CF4A(a7 + 2LL * v65, &v28[4 * ii], (unsigned int)a5);\nsub_48CF4A(2LL * v64 + a3, &v26[40 * ii + 16], (unsigned int)a8);\nv32 = v65;\nv31 = a5;\nv30 = v65 + a5;\nv29 = sub_456A04(v30);\nv65 = v29;\nv36 = v64;\nv35 = a8;\nv34 = v64 + a8;\nv33 = sub_456A04(v34);\nv64 = v33;\n}\nreturn sub_48DD4E(v63);\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,a7,a8,a9,i,v11,v26,v27,v28,v60,v61,v62,v63,v64,v65,v66,v67,v68,v69,v70,sub_4583F8,sub_48DC58,sub_48DCA3,sub_467C59,sub_48CF4A,sub_48DBB9,sub_458CE3,sub_459616,sub_456A04,sub_4877A5,sub_456C7D,sub_48CEAB,sub_48DD4E,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'qout', 'a4': 'codebook', 'a1': 'target', 'a2': 'weight', 'a5': 'tos', 'a6': 'cb_size', 'a7': 'cb_index', 'a8': 'dim', 'a9': 'flag', 'i': 'l', 'v11': 'target', 'v26': 'dMin', 'v27': 'nextIndex', 'v28': 'index', 'v60': 'distortion', 'v61': 'ptr1', 'v62': 'L_temp', 'v63': 'cand_target', 'v64': 'temp2', 'v65': 'temp1', 'v66': 'ptr_offset', 'v67': 'max_dMin', 'v68': 'ncPrev', 'v69': 'cdbk_ptr2', 'v70': 'cdbk_ptr', 'sub_4583F8': 'lspVQ', 'sub_48DC58': 'v_zap', 'sub_48DCA3': 'v_get', 'sub_467C59': 'fill', 'sub_48CF4A': 'v_equ', 'sub_48DBB9': 'v_sub', 'sub_458CE3': 'WeightedMSE', 'sub_459616': 'InsertCand', 'sub_456A04': 'saturate_7', 'sub_4877A5': 'inc_saturation', 'sub_456C7D': 'melpe_L_shr_6', 'sub_48CEAB': 'v_add', 'sub_48DD4E': 'v_free'}"}
tcmd5hash
812e8dfce92fa099466d25318f60cd3447e0cec291f3b4540a415d01df80fb51
HewlettPackard
nvthreads
NA
void tcmd5hash(const void *ptr, int size, char *buf){ assert(ptr && size >= 0 && buf); int i; md5_state_t ms; md5_init(&ms); md5_append(&ms, (md5_byte_t *)ptr, size); unsigned char digest[16]; md5_finish(&ms, (md5_byte_t *)digest); char *wp = buf; for(i = 0; i < 16; i++){ wp += sprintf(wp, "%02x", digest[i]); } *wp = '\0'; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4163D0", "function_addr": 4285392, "binary_name": "812e8dfce92fa099466d25318f60cd3447e0cec291f3b4540a415d01df80fb51.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0A0h"], [3, "mov [rbp+var_88], rdi"], [4, "mov [rbp+var_8C], esi"], [5, "mov [rbp+var_98], rdx"], [6, "lea rax, [rbp+var_70]"], [7, "mov rdi, rax"], [8, "call sub_447A0C"], [9, "mov edx, [rbp+var_8C]"], [10, "mov rcx, [rbp+var_88]"], [11, "lea rax, [rbp+var_70]"], [12, "mov rsi, rcx"], [13, "mov rdi, rax"], [14, "call sub_447A5B"], [15, "lea rdx, [rbp+var_80]"], [16, "lea rax, [rbp+var_70]"], [17, "mov rsi, rdx"], [18, "mov rdi, rax"], [19, "call sub_447BAF"], [20, "mov rax, [rbp+var_98]"], [21, "mov [rbp+s], rax"], [22, "mov [rbp+var_4], 0"], [23, "jmp short loc_41646D"], [24, "mov eax, [rbp+var_4]"], [25, "cdqe"], [26, "movzx eax, [rbp+rax+var_80]"], [27, "movzx edx, al"], [28, "mov rax, [rbp+s]"], [29, "lea rsi, a02x_0"], [30, "mov rdi, rax"], [31, "mov eax, 0"], [32, "call _sprintf"], [33, "cdqe"], [34, "add [rbp+s], rax"], [35, "add [rbp+var_4], 1"], [36, "cmp [rbp+var_4], 0Fh"], [37, "jle short loc_41643E"], [38, "mov rax, [rbp+s]"], [39, "mov byte ptr [rax], 0"], [40, "nop"], [41, "leave"], [42, "retn"]], "data_dep": [[7, 6], [9, 4], [10, 3], [11, 8], [12, 10], [13, 11], [15, 9], [16, 14], [17, 15], [18, 16], [20, 5], [21, 20], [24, 35], [24, 22], [26, 24], [27, 26], [28, 21], [28, 34], [29, 17], [29, 29], [30, 28], [34, 34], [34, 21], [34, 32], [35, 35], [35, 22], [36, 22], [36, 35], [37, 36], [38, 34], [38, 21], [39, 38], [42, 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/812e8dfce92fa099466d25318f60cd3447e0cec291f3b4540a415d01df80fb51_812e8dfce92fa099466d25318f60cd3447e0cec291f3b4540a415d01df80fb51.jsonl.gz", "strip_func_name": "sub_4163D0", "query": "\n\n\nchar *__fastcall sub_4163D0(__int64 a1, unsigned int a2, char *a3)\n{\nint v3; // eax\nchar *result; // rax\nchar v6[16]; // [rsp+20h] [rbp-80h] BYREF\nchar v7[96]; // [rsp+30h] [rbp-70h] BYREF\nchar *s; // [rsp+90h] [rbp-10h]\nint i; // [rsp+9Ch] [rbp-4h]\n\nsub_447A0C(v7);\nsub_447A5B(v7, a1, a2);\nsub_447BAF(v7, v6);\ns = a3;\nfor ( i = 0; i <= 15; ++i )\n{\nv3 = sprintf(s, \"%02x\", (unsigned __int8)v6[i]);\ns += v3;\n}\nresult = s;\n*s = 0;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v6,v7,s,sub_4163D0,sub_447A0C,sub_447A5B,sub_447BAF,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'buf', 'a1': 'ptr', 'a2': 'size', 'v6': 'digest', 'v7': 'ms', 's': 'wp', 'sub_4163D0': 'tcmd5hash', 'sub_447A0C': '_tc_md5_init', 'sub_447A5B': '_tc_md5_append', 'sub_447BAF': '_tc_md5_finish'}"}
u8g2_Setup_sh1108_i2c_160x160_f
bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46
olikraus
u8g2
NA
void u8g2_Setup_sh1108_i2c_160x160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb) { uint8_t tile_buf_height; uint8_t *buf; u8g2_SetupDisplay(u8g2, u8x8_d_sh1108_160x160, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb); buf = u8g2_m_20_20_f(&tile_buf_height); u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40D0B2", "function_addr": 4247730, "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_429387"], [13, "mov esi, offset sub_4300D3"], [14, "mov rdi, rax"], [15, "call sub_44088A"], [16, "lea rax, [rbp+var_9]"], [17, "mov rdi, rax"], [18, "call sub_407DE0"], [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_40D0B2", "query": "\n\n\n__int64 __fastcall sub_40D0B2(__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_4300D3, sub_429387, a3, a4);\nv6 = sub_407DE0(&v5);\nreturn sub_425671(a1, v6, v5, sub_423F48, a2);\n}\n\n\n\nQ:[a3,a4,a1,a2,v5,v6,sub_40D0B2,sub_44088A,sub_4300D3,sub_429387,sub_407DE0,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_40D0B2': 'u8g2_Setup_sh1108_i2c_160x160_f', 'sub_44088A': 'u8x8_Setup', 'sub_4300D3': 'u8x8_d_sh1108_160x160', 'sub_429387': 'u8x8_cad_ssd13xx_i2c', 'sub_407DE0': 'u8g2_m_20_20_f', 'sub_425671': 'u8g2_SetupBuffer', 'sub_423F48': 'u8g2_ll_hvline_vertical_top_lsb'}"}
FuncConcat
aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1
dmsc
fastbasic
NA
static void FuncConcat (void) /* Handle the .CONCAT function */ { StrBuf Buf = STATIC_STRBUF_INITIALIZER; /* Skip it */ NextTok (); /* Left paren expected */ ConsumeLParen (); /* Concatenate any number of strings */ while (1) { /* Next token must be a string */ if (!LookAtStrCon ()) { SB_Done (&Buf); return; } /* Append the string */ SB_Append (&Buf, &CurTok.SVal); /* Skip the string token */ NextTok (); /* Comma means another argument */ if (CurTok.Tok == TOK_COMMA) { NextTok (); } else { /* Done */ break; } } /* We expect a closing parenthesis, but will not skip it but replace it ** by the string token just created. */ if (CurTok.Tok != TOK_RPAREN) { Error ("')' expected"); } else { CurTok.Tok = TOK_STRCON; SB_Copy (&CurTok.SVal, &Buf); SB_Terminate (&CurTok.SVal); } /* Free the string buffer */ SB_Done (&Buf); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40BC9F", "function_addr": 4242591, "binary_name": "aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_20], 0"], [4, "mov [rbp+var_18], 0"], [5, "mov [rbp+var_14], 0"], [6, "mov [rbp+var_10], 0"], [7, "call sub_40C6E7"], [8, "call sub_40C7F2"], [9, "call sub_40BBD0"], [10, "test eax, eax"], [11, "jnz short loc_40BCE5"], [12, "lea rax, [rbp+var_20]"], [13, "mov rdi, rax"], [14, "call sub_41C55F"], [15, "jmp short locret_40BD5B"], [16, "lea rax, [rbp+var_20]"], [17, "mov esi, offset unk_43AC90"], [18, "mov rdi, rax"], [19, "call sub_40BB7F"], [20, "call sub_40C6E7"], [21, "mov eax, cs:dword_43AC80"], [22, "cmp eax, 28h "], [23, "jnz short loc_40BD0D"], [24, "call sub_40C6E7"], [25, "jmp short loc_40BCCE"], [26, "nop"], [27, "mov eax, cs:dword_43AC80"], [28, "cmp eax, 2Ch "], [29, "jz short loc_40BD2A"], [30, "mov edi, offset aExpected_5"], [31, "mov eax, 0"], [32, "call sub_403B44"], [33, "jmp short loc_40BD4F"], [34, "mov cs:dword_43AC80, 7"], [35, "lea rax, [rbp+var_20]"], [36, "mov rsi, rax"], [37, "mov edi, offset unk_43AC90"], [38, "call sub_40BB0D"], [39, "mov edi, offset unk_43AC90"], [40, "call sub_41C762"], [41, "lea rax, [rbp+var_20]"], [42, "mov rdi, rax"], [43, "call sub_41C55F"], [44, "leave"], [45, "retn"]], "data_dep": [[10, 9], [11, 10], [12, 10], [12, 3], [13, 12], [16, 10], [16, 3], [18, 16], [22, 21], [23, 22], [28, 27], [29, 28], [35, 27], [35, 3], [36, 35], [41, 40], [41, 3], [41, 32], [42, 41], [45, 43], [45, 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/aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1_aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.jsonl.gz", "strip_func_name": "sub_40BC9F", "query": "\n\n\n__int64 __fastcall sub_40BC9F(__int64 *a1, _QWORD *a2, __int64 a3)\n{\n__int64 v3; // rdx\n__int64 v4; // rdx\n__int64 v5; // rcx\n__int64 v6; // r8\n__int64 v7; // r9\n__int64 v8; // rdx\n__int64 v9; // rdx\n__int64 v10; // rcx\n__int64 v11; // r8\n__int64 v12; // r9\n__int64 v14; // [rsp+0h] [rbp-20h] BYREF\n__int64 v15; // [rsp+8h] [rbp-18h]\n__int64 v16; // [rsp+10h] [rbp-10h]\n\nv14 = 0LL;\nv15 = 0LL;\nLODWORD(v16) = 0;\nsub_40C6E7(a1, a2, a3);\nsub_40C7F2(a1, a2, v3);\nwhile ( (unsigned int)sub_40BBD0((__int64)a1, (__int64)a2, v4, v5, v6, v7) )\n{\na2 = qword_43AC90;\na1 = &v14;\nsub_40BB7F((__int64)&v14, (__int64)qword_43AC90);\nsub_40C6E7(&v14, qword_43AC90, v8);\nif ( dword_43AC80 != 40 )\n{\nif ( dword_43AC80 == 44 )\n{\ndword_43AC80 = 7;\nsub_40BB0D((__int64)qword_43AC90, (__int64)&v14);\nsub_41C762(qword_43AC90);\n}\nelse\n{\nsub_403B44((__int64)\"')' expected\", (__int64)qword_43AC90, v9, v10, v11, v12, v14, v15, v16);\n}\nreturn sub_41C55F(&v14);\n}\nsub_40C6E7(&v14, qword_43AC90, v9);\n}\nreturn sub_41C55F(&v14);\n}\n\n\n\nQ:[v14,sub_40BC9F,sub_40C6E7,sub_40C7F2,sub_40BBD0,sub_40BB7F,sub_40BB0D,sub_41C762,sub_403B44,sub_41C55F,]\nAssistant: ", "hints": "[]", "response": "{'v14': 'Buf', 'sub_40BC9F': 'FuncConcat', 'sub_40C6E7': 'NextTok', 'sub_40C7F2': 'ConsumeLParen', 'sub_40BBD0': 'LookAtStrCon', 'sub_40BB7F': 'SB_Append_0', 'sub_40BB0D': 'SB_Copy_2', 'sub_41C762': 'SB_Terminate', 'sub_403B44': 'Error', 'sub_41C55F': 'SB_Done'}"}
jas_stream_tell
f4745e82b1d0cff651d46375754e6291357312b85b3ec537e20de9075c6972a9
hagish
love-native-android
NA
long jas_stream_tell(jas_stream_t *stream) { int adjust; int offset; if (stream->bufmode_ & JAS_STREAM_RDBUF) { adjust = -stream->cnt_; } else if (stream->bufmode_ & JAS_STREAM_WRBUF) { adjust = stream->ptr_ - stream->bufstart_; } else { adjust = 0; } if ((offset = (*stream->ops_->seek_)(stream->obj_, 0, SEEK_CUR)) < 0) { return -1; } return offset + adjust; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409E3C", "function_addr": 4234812, "binary_name": "f4745e82b1d0cff651d46375754e6291357312b85b3ec537e20de9075c6972a9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov eax, [rax+4]"], [6, "and eax, 10h"], [7, "test eax, eax"], [8, "jz short loc_409E64"], [9, "mov rax, [rbp+var_18]"], [10, "mov eax, [rax+30h]"], [11, "neg eax"], [12, "mov [rbp+var_4], eax"], [13, "jmp short loc_409E94"], [14, "mov rax, [rbp+var_18]"], [15, "mov eax, [rax+4]"], [16, "and eax, 20h"], [17, "test eax, eax"], [18, "jz short loc_409E8D"], [19, "mov rax, [rbp+var_18]"], [20, "mov rdx, [rax+28h]"], [21, "mov rax, [rbp+var_18]"], [22, "mov rcx, [rax+18h]"], [23, "mov rax, rdx"], [24, "sub rax, rcx"], [25, "mov [rbp+var_4], eax"], [26, "jmp short loc_409E94"], [27, "mov [rbp+var_4], 0"], [28, "mov rax, [rbp+var_18]"], [29, "mov rax, [rax+48h]"], [30, "mov rcx, [rax+10h]"], [31, "mov rax, [rbp+var_18]"], [32, "mov rax, [rax+50h]"], [33, "mov edx, 1"], [34, "mov esi, 0"], [35, "mov rdi, rax"], [36, "call rcx"], [37, "mov [rbp+var_8], eax"], [38, "cmp [rbp+var_8], 0"], [39, "jns short loc_409EC9"], [40, "mov rax, 0FFFFFFFFFFFFFFFFh"], [41, "jmp short locret_409ED3"], [42, "mov edx, [rbp+var_8]"], [43, "mov eax, [rbp+var_4]"], [44, "add eax, edx"], [45, "cdqe"], [46, "leave"], [47, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 3], [10, 9], [11, 10], [12, 11], [14, 3], [15, 14], [16, 15], [17, 16], [18, 17], [19, 3], [20, 19], [21, 3], [22, 21], [23, 20], [24, 23], [24, 22], [25, 24], [28, 3], [29, 28], [30, 29], [31, 3], [32, 31], [35, 32], [36, 30], [37, 36], [38, 37], [39, 38], [42, 37], [43, 12], [43, 27], [43, 25], [44, 42], [44, 43], [47, 40], [47, 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/f4745e82b1d0cff651d46375754e6291357312b85b3ec537e20de9075c6972a9_f4745e82b1d0cff651d46375754e6291357312b85b3ec537e20de9075c6972a9.jsonl.gz", "strip_func_name": "sub_409E3C", "query": "\n\n\n__int64 __fastcall sub_409E3C(__int64 a1)\n{\n__int64 result; // rax\nint v2; // [rsp+18h] [rbp-8h]\nint v3; // [rsp+1Ch] [rbp-4h]\n\nif ( (*(_DWORD *)(a1 + 4) & 0x10) != 0 )\n{\nv3 = -*(_DWORD *)(a1 + 48);\n}\nelse if ( (*(_DWORD *)(a1 + 4) & 0x20) != 0 )\n{\nv3 = *(_QWORD *)(a1 + 40) - *(_QWORD *)(a1 + 24);\n}\nelse\n{\nv3 = 0;\n}\nv2 = (*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)(a1 + 72) + 16LL))(\n*(_QWORD *)(a1 + 80),\n0LL,\n1LL);\nif ( v2 >= 0 )\nresult = v2 + v3;\nelse\nresult = -1LL;\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,sub_409E3C,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'stream', 'v2': 'offset', 'v3': 'adjust', 'sub_409E3C': 'jas_stream_tell'}"}
InitArchiveFmt_Tar
fafe52d0ee1da781c296d6ceb298de717c05d433bbb7ac9007e04b1c1d7600ce
DataSystemsLab
hippo-postgresql
NA
void InitArchiveFmt_Tar(ArchiveHandle *AH) { lclContext *ctx; /* Assuming static functions, this can be copied for each format. */ AH->ArchiveEntryPtr = _ArchiveEntry; AH->StartDataPtr = _StartData; AH->WriteDataPtr = _WriteData; AH->EndDataPtr = _EndData; AH->WriteBytePtr = _WriteByte; AH->ReadBytePtr = _ReadByte; AH->WriteBufPtr = _WriteBuf; AH->ReadBufPtr = _ReadBuf; AH->ClosePtr = _CloseArchive; AH->ReopenPtr = NULL; AH->PrintTocDataPtr = _PrintTocData; AH->ReadExtraTocPtr = _ReadExtraToc; AH->WriteExtraTocPtr = _WriteExtraToc; AH->PrintExtraTocPtr = _PrintExtraToc; AH->StartBlobsPtr = _StartBlobs; AH->StartBlobPtr = _StartBlob; AH->EndBlobPtr = _EndBlob; AH->EndBlobsPtr = _EndBlobs; AH->ClonePtr = NULL; AH->DeClonePtr = NULL; AH->MasterStartParallelItemPtr = NULL; AH->MasterEndParallelItemPtr = NULL; AH->WorkerJobDumpPtr = NULL; AH->WorkerJobRestorePtr = NULL; /* * Set up some special context used in compressing data. */ ctx = (lclContext *) pg_malloc0(sizeof(lclContext)); AH->formatData = (void *) ctx; ctx->filePos = 0; ctx->isSpecialScript = 0; /* Initialize LO buffering */ AH->lo_buf_size = LOBBUFSIZE; AH->lo_buf = (void *) pg_malloc(LOBBUFSIZE); /* * Now open the tar file, and load the TOC if we're in read mode. */ if (AH->mode == archModeWrite) { if (AH->fSpec && strcmp(AH->fSpec, "") != 0) { ctx->tarFH = fopen(AH->fSpec, PG_BINARY_W); if (ctx->tarFH == NULL) exit_horribly(modulename, "could not open TOC file \"%s\" for output: %s\n", AH->fSpec, strerror(errno)); } else { ctx->tarFH = stdout; if (ctx->tarFH == NULL) exit_horribly(modulename, "could not open TOC file for output: %s\n", strerror(errno)); } ctx->tarFHpos = 0; /* * Make unbuffered since we will dup() it, and the buffers screw each * other */ /* setvbuf(ctx->tarFH, NULL, _IONBF, 0); */ ctx->hasSeek = checkSeek(ctx->tarFH); /* * We don't support compression because reading the files back is not * possible since gzdopen uses buffered IO which totally screws file * positioning. */ if (AH->compression != 0) exit_horribly(modulename, "compression is not supported by tar archive format\n"); } else { /* Read Mode */ if (AH->fSpec && strcmp(AH->fSpec, "") != 0) { ctx->tarFH = fopen(AH->fSpec, PG_BINARY_R); if (ctx->tarFH == NULL) exit_horribly(modulename, "could not open TOC file \"%s\" for input: %s\n", AH->fSpec, strerror(errno)); } else { ctx->tarFH = stdin; if (ctx->tarFH == NULL) exit_horribly(modulename, "could not open TOC file for input: %s\n", strerror(errno)); } /* * Make unbuffered since we will dup() it, and the buffers screw each * other */ /* setvbuf(ctx->tarFH, NULL, _IONBF, 0); */ ctx->tarFHpos = 0; ctx->hasSeek = checkSeek(ctx->tarFH); /* * Forcibly unmark the header as read since we use the lookahead * buffer */ AH->readHeader = 0; ctx->FH = (void *) tarOpen(AH, "toc.dat", 'r'); ReadHead(AH); ReadToc(AH); tarClose(AH, ctx->FH); /* Nothing else in the file... */ } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4101DB", "function_addr": 4260315, "binary_name": "fafe52d0ee1da781c296d6ceb298de717c05d433bbb7ac9007e04b1c1d7600ce.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 qword ptr [rax+0D0h], offset sub_410627"], [6, "mov rax, [rbp+var_18]"], [7, "mov qword ptr [rax+0D8h], offset sub_410840"], [8, "mov rax, [rbp+var_18]"], [9, "mov qword ptr [rax+0E0h], offset sub_410F4C"], [10, "mov rax, [rbp+var_18]"], [11, "mov qword ptr [rax+0E8h], offset sub_410FC3"], [12, "mov rax, [rbp+var_18]"], [13, "mov qword ptr [rax+0F0h], offset sub_411448"], [14, "mov rax, [rbp+var_18]"], [15, "mov qword ptr [rax+0F8h], offset sub_4114D0"], [16, "mov rax, [rbp+var_18]"], [17, "mov qword ptr [rax+100h], offset sub_411545"], [18, "mov rax, [rbp+var_18]"], [19, "mov qword ptr [rax+108h], offset sub_4115D3"], [20, "mov rax, [rbp+var_18]"], [21, "mov qword ptr [rax+110h], offset sub_411650"], [22, "mov rax, [rbp+var_18]"], [23, "mov qword ptr [rax+118h], 0"], [24, "mov rax, [rbp+var_18]"], [25, "mov qword ptr [rax+138h], offset sub_4110DD"], [26, "mov rax, [rbp+var_18]"], [27, "mov qword ptr [rax+128h], offset sub_410758"], [28, "mov rax, [rbp+var_18]"], [29, "mov qword ptr [rax+120h], offset sub_4106FF"], [30, "mov rax, [rbp+var_18]"], [31, "mov qword ptr [rax+130h], offset sub_4107E8"], [32, "mov rax, [rbp+var_18]"], [33, "mov qword ptr [rax+140h], offset sub_4118D9"], [34, "mov rax, [rbp+var_18]"], [35, "mov qword ptr [rax+150h], offset sub_411946"], [36, "mov rax, [rbp+var_18]"], [37, "mov qword ptr [rax+158h], offset sub_411A52"], [38, "mov rax, [rbp+var_18]"], [39, "mov qword ptr [rax+148h], offset sub_411A8D"], [40, "mov rax, [rbp+var_18]"], [41, "mov qword ptr [rax+188h], 0"], [42, "mov rax, [rbp+var_18]"], [43, "mov qword ptr [rax+190h], 0"], [44, "mov rax, [rbp+var_18]"], [45, "mov qword ptr [rax+160h], 0"], [46, "mov rax, [rbp+var_18]"], [47, "mov qword ptr [rax+168h], 0"], [48, "mov rax, [rbp+var_18]"], [49, "mov qword ptr [rax+178h], 0"], [50, "mov rax, [rbp+var_18]"], [51, "mov qword ptr [rax+180h], 0"], [52, "mov edi, 48h "], [53, "call sub_419386"], [54, "mov [rbp+var_8], rax"], [55, "mov rax, [rbp+var_18]"], [56, "mov rdx, [rbp+var_8]"], [57, "mov [rax+238h], rdx"], [58, "mov rax, [rbp+var_8]"], [59, "mov qword ptr [rax+8], 0"], [60, "mov rax, [rbp+var_8]"], [61, "mov dword ptr [rax+38h], 0"], [62, "mov rax, [rbp+var_18]"], [63, "mov qword ptr [rax+270h], 4000h"], [64, "mov edi, 4000h"], [65, "call sub_419367"], [66, "mov rdx, [rbp+var_18]"], [67, "mov [rdx+260h], rax"], [68, "mov rax, [rbp+var_18]"], [69, "mov eax, [rax+234h]"], [70, "cmp eax, 1"], [71, "jnz loc_4104D7"], [72, "mov rax, [rbp+var_18]"], [73, "mov rax, [rax+1E8h]"], [74, "test rax, rax"], [75, "jz short loc_410441"], [76, "mov rax, [rbp+var_18]"], [77, "mov rax, [rax+1E8h]"], [78, "movzx eax, byte ptr [rax]"], [79, "movzx eax, al"], [80, "test eax, eax"], [81, "jz short loc_410441"], [82, "mov rax, [rbp+var_18]"], [83, "mov rax, [rax+1E8h]"], [84, "mov esi, offset aW_3"], [85, "mov rdi, rax"], [86, "call _fopen"], [87, "mov rdx, [rbp+var_8]"], [88, "mov [rdx+18h], rax"], [89, "mov rax, [rbp+var_8]"], [90, "mov rax, [rax+18h]"], [91, "test rax, rax"], [92, "jnz short loc_410487"], [93, "call ___errno_location"], [94, "mov eax, [rax]"], [95, "mov edi, eax"], [96, "call _strerror"], [97, "mov rcx, rax"], [98, "mov rax, [rbp+var_18]"], [99, "mov rdx, [rax+1E8h]"], [100, "mov rax, cs:off_42B4E8"], [101, "mov esi, offset aCouldNotOpenTo_0"], [102, "mov rdi, rax"], [103, "mov eax, 0"], [104, "call sub_413E3D"], [105, "mov rdx, cs:stdout"], [106, "mov rax, [rbp+var_8]"], [107, "mov [rax+18h], rdx"], [108, "mov rax, [rbp+var_8]"], [109, "mov rax, [rax+18h]"], [110, "test rax, rax"], [111, "jnz short loc_410487"], [112, "call ___errno_location"], [113, "mov eax, [rax]"], [114, "mov edi, eax"], [115, "call _strerror"], [116, "mov rdx, rax"], [117, "mov rax, cs:off_42B4E8"], [118, "mov esi, offset aCouldNotOpenTo_1"], [119, "mov rdi, rax"], [120, "mov eax, 0"], [121, "call sub_413E3D"], [122, "mov rax, [rbp+var_8]"], [123, "mov qword ptr [rax+20h], 0"], [124, "mov rax, [rbp+var_8]"], [125, "mov rax, [rax+18h]"], [126, "mov rdi, rax"], [127, "call sub_40BC42"], [128, "movsx edx, al"], [129, "mov rax, [rbp+var_8]"], [130, "mov [rax], edx"], [131, "mov rax, [rbp+var_18]"], [132, "mov eax, [rax+230h]"], [133, "test eax, eax"], [134, "jz loc_410624"], [135, "mov rax, cs:off_42B4E8"], [136, "mov esi, offset aCompressionIsN"], [137, "mov rdi, rax"], [138, "mov eax, 0"], [139, "call sub_413E3D"], [140, "mov rax, [rbp+var_18]"], [141, "mov rax, [rax+1E8h]"], [142, "test rax, rax"], [143, "jz short loc_41055E"], [144, "mov rax, [rbp+var_18]"], [145, "mov rax, [rax+1E8h]"], [146, "movzx eax, byte ptr [rax]"], [147, "movzx eax, al"], [148, "test eax, eax"], [149, "jz short loc_41055E"], [150, "mov rax, [rbp+var_18]"], [151, "mov rax, [rax+1E8h]"], [152, "mov esi, offset aR_1"], [153, "mov rdi, rax"], [154, "call _fopen"], [155, "mov rdx, [rbp+var_8]"], [156, "mov [rdx+18h], rax"], [157, "mov rax, [rbp+var_8]"], [158, "mov rax, [rax+18h]"], [159, "test rax, rax"], [160, "jnz short loc_4105A4"], [161, "call ___errno_location"], [162, "mov eax, [rax]"], [163, "mov edi, eax"], [164, "call _strerror"], [165, "mov rcx, rax"], [166, "mov rax, [rbp+var_18]"], [167, "mov rdx, [rax+1E8h]"], [168, "mov rax, cs:off_42B4E8"], [169, "mov esi, offset aCouldNotOpenTo_2"], [170, "mov rdi, rax"], [171, "mov eax, 0"], [172, "call sub_413E3D"], [173, "mov rdx, cs:stdin"], [174, "mov rax, [rbp+var_8]"], [175, "mov [rax+18h], rdx"], [176, "mov rax, [rbp+var_8]"], [177, "mov rax, [rax+18h]"], [178, "test rax, rax"], [179, "jnz short loc_4105A4"], [180, "call ___errno_location"], [181, "mov eax, [rax]"], [182, "mov edi, eax"], [183, "call _strerror"], [184, "mov rdx, rax"], [185, "mov rax, cs:off_42B4E8"], [186, "mov esi, offset aCouldNotOpenTo_3"], [187, "mov rdi, rax"], [188, "mov eax, 0"], [189, "call sub_413E3D"], [190, "mov rax, [rbp+var_8]"], [191, "mov qword ptr [rax+20h], 0"], [192, "mov rax, [rbp+var_8]"], [193, "mov rax, [rax+18h]"], [194, "mov rdi, rax"], [195, "call sub_40BC42"], [196, "movsx edx, al"], [197, "mov rax, [rbp+var_8]"], [198, "mov [rax], edx"], [199, "mov rax, [rbp+var_18]"], [200, "mov dword ptr [rax+0A8h], 0"], [201, "mov rax, [rbp+var_18]"], [202, "mov edx, 72h "], [203, "mov esi, offset aTocDat"], [204, "mov rdi, rax"], [205, "call sub_410885"], [206, "mov rdx, [rbp+var_8]"], [207, "mov [rdx+30h], rax"], [208, "mov rax, [rbp+var_18]"], [209, "mov rdi, rax"], [210, "call sub_40B84F"], [211, "mov rax, [rbp+var_18]"], [212, "mov rdi, rax"], [213, "call sub_409044"], [214, "mov rax, [rbp+var_8]"], [215, "mov rdx, [rax+30h]"], [216, "mov rax, [rbp+var_18]"], [217, "mov rsi, rdx"], [218, "mov rdi, rax"], [219, "call sub_410A76"], [220, "nop"], [221, "leave"], [222, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 3], [9, 8], [10, 3], [11, 10], [12, 3], [13, 12], [14, 3], [15, 14], [16, 3], [17, 16], [18, 3], [19, 18], [20, 3], [21, 20], [22, 3], [23, 22], [24, 3], [25, 24], [26, 3], [27, 26], [28, 3], [29, 28], [30, 3], [31, 30], [32, 3], [33, 32], [34, 3], [35, 34], [36, 3], [37, 36], [38, 3], [39, 38], [40, 3], [41, 40], [42, 3], [43, 42], [44, 3], [45, 44], [46, 3], [47, 46], [48, 3], [49, 48], [50, 3], [51, 50], [54, 53], [55, 3], [56, 54], [57, 55], [57, 56], [58, 54], [59, 58], [60, 54], [61, 60], [62, 3], [63, 62], [66, 3], [67, 66], [67, 65], [68, 3], [69, 67], [69, 68], [70, 69], [71, 70], [72, 3], [73, 41], [73, 59], [73, 45], [73, 63], [73, 72], [73, 31], [73, 49], [73, 17], [73, 35], [73, 21], [73, 39], [73, 7], [73, 25], [73, 11], [73, 67], [73, 57], [73, 43], [73, 61], [73, 29], [73, 47], [73, 15], [73, 33], [73, 51], [73, 19], [73, 37], [73, 5], [73, 23], [73, 9], [73, 27], [73, 13], [74, 73], [75, 74], [76, 3], [77, 76], [77, 57], [77, 43], [77, 61], [77, 47], [77, 33], [77, 51], [77, 19], [77, 37], [77, 5], [77, 23], [77, 41], [77, 9], [77, 27], [77, 13], [77, 17], [77, 59], [77, 45], [77, 63], [77, 31], [77, 49], [77, 67], [77, 35], [77, 21], [77, 39], [77, 7], [77, 25], [77, 11], [77, 29], [77, 15], [78, 59], [78, 77], [78, 45], [78, 63], [78, 31], [78, 49], [78, 17], [78, 35], [78, 21], [78, 39], [78, 7], [78, 25], [78, 11], [78, 67], [78, 57], [78, 43], [78, 61], [78, 29], [78, 47], [78, 15], [78, 33], [78, 51], [78, 19], [78, 37], [78, 5], [78, 23], [78, 9], [78, 27], [78, 13], [78, 41], [79, 78], [80, 79], [81, 80], [82, 3], [83, 21], [83, 39], [83, 7], [83, 25], [83, 11], [83, 67], [83, 57], [83, 43], [83, 61], [83, 29], [83, 47], [83, 15], [83, 33], [83, 51], [83, 19], [83, 37], [83, 5], [83, 23], [83, 9], [83, 27], [83, 13], [83, 88], [83, 82], [83, 41], [83, 59], [83, 45], [83, 63], [83, 31], [83, 49], [83, 17], [83, 35], [85, 83], [87, 54], [88, 86], [88, 87], [89, 54], [90, 88], [90, 89], [91, 90], [92, 91], [94, 21], [94, 39], [94, 7], [94, 25], [94, 11], [94, 15], [94, 67], [94, 57], [94, 43], [94, 61], [94, 29], [94, 47], [94, 33], [94, 51], [94, 19], [94, 37], [94, 5], [94, 23], [94, 9], [94, 27], [94, 13], [94, 93], [94, 88], [94, 41], [94, 59], [94, 45], [94, 63], [94, 31], [94, 49], [94, 17], [94, 35], [95, 94], [97, 96], [98, 3], [99, 67], [99, 98], [99, 57], [99, 43], [99, 61], [99, 29], [99, 47], [99, 33], [99, 51], [99, 19], [99, 37], [99, 5], [99, 23], [99, 9], [99, 27], [99, 13], [99, 88], [99, 41], [99, 59], [99, 45], [99, 63], [99, 31], [99, 49], [99, 17], [99, 35], [99, 21], [99, 39], [99, 7], [99, 25], [99, 11], [99, 15], [102, 100], [106, 54], [107, 106], [107, 105], [108, 54], [109, 107], [109, 108], [110, 109], [111, 110], [113, 35], [113, 21], [113, 39], [113, 7], [113, 25], [113, 11], [113, 67], [113, 57], [113, 43], [113, 61], [113, 29], [113, 47], [113, 15], [113, 33], [113, 51], [113, 19], [113, 37], [113, 5], [113, 23], [113, 9], [113, 27], [113, 112], [113, 13], [113, 107], [113, 41], [113, 59], [113, 45], [113, 63], [113, 31], [113, 49], [113, 17], [114, 113], [116, 115], [119, 117], [122, 54], [123, 122], [124, 54], [125, 107], [125, 124], [125, 123], [126, 125], [128, 127], [129, 54], [130, 128], [130, 129], [131, 3], [132, 131], [132, 130], [133, 132], [134, 133], [137, 135], [140, 3], [141, 17], [141, 59], [141, 45], [141, 63], [141, 49], [141, 67], [141, 35], [141, 21], [141, 39], [141, 57], [141, 7], [141, 25], [141, 43], [141, 11], [141, 29], [141, 15], [141, 19], [141, 140], [141, 5], [141, 61], [141, 47], [141, 33], [141, 51], [141, 37], [141, 23], [141, 41], [141, 9], [141, 27], [141, 13], [141, 31], [142, 141], [143, 142], [144, 3], [145, 5], [145, 57], [145, 61], [145, 47], [145, 33], [145, 51], [145, 19], [145, 37], [145, 23], [145, 41], [145, 144], [145, 9], [145, 27], [145, 13], [145, 31], [145, 17], [145, 59], [145, 45], [145, 63], [145, 49], [145, 67], [145, 35], [145, 21], [145, 39], [145, 7], [145, 25], [145, 43], [145, 11], [145, 29], [145, 15], [146, 59], [146, 45], [146, 63], [146, 31], [146, 49], [146, 67], [146, 17], [146, 35], [146, 21], [146, 39], [146, 7], [146, 25], [146, 11], [146, 15], [146, 57], [146, 43], [146, 61], [146, 29], [146, 47], [146, 33], [146, 51], [146, 145], [146, 19], [146, 37], [146, 5], [146, 23], [146, 41], [146, 9], [146, 27], [146, 13], [147, 146], [148, 147], [149, 148], [150, 3], [151, 43], [151, 11], [151, 29], [151, 150], [151, 15], [151, 19], [151, 5], [151, 61], [151, 47], [151, 33], [151, 51], [151, 37], [151, 23], [151, 41], [151, 9], [151, 27], [151, 13], [151, 31], [151, 17], [151, 59], [151, 45], [151, 63], [151, 49], [151, 67], [151, 35], [151, 156], [151, 21], [151, 39], [151, 57], [151, 7], [151, 25], [153, 151], [155, 54], [156, 154], [156, 155], [157, 54], [158, 157], [158, 156], [159, 158], [160, 159], [162, 49], [162, 67], [162, 161], [162, 35], [162, 156], [162, 21], [162, 39], [162, 57], [162, 7], [162, 25], [162, 43], [162, 11], [162, 29], [162, 15], [162, 19], [162, 5], [162, 61], [162, 47], [162, 33], [162, 51], [162, 37], [162, 23], [162, 41], [162, 9], [162, 27], [162, 45], [162, 13], [162, 31], [162, 17], [162, 59], [162, 63], [163, 162], [165, 164], [166, 3], [167, 11], [167, 29], [167, 15], [167, 19], [167, 5], [167, 61], [167, 47], [167, 33], [167, 51], [167, 37], [167, 23], [167, 41], [167, 9], [167, 27], [167, 45], [167, 166], [167, 13], [167, 31], [167, 17], [167, 59], [167, 63], [167, 49], [167, 67], [167, 35], [167, 156], [167, 21], [167, 39], [167, 57], [167, 7], [167, 25], [167, 43], [170, 168], [174, 54], [175, 173], [175, 174], [176, 54], [177, 176], [177, 175], [178, 177], [179, 178], [181, 39], [181, 57], [181, 25], [181, 43], [181, 11], [181, 29], [181, 47], [181, 15], [181, 33], [181, 19], [181, 5], [181, 35], [181, 61], [181, 51], [181, 37], [181, 23], [181, 41], [181, 59], [181, 180], [181, 9], [181, 27], [181, 45], [181, 175], [181, 13], [181, 31], [181, 17], [181, 21], [181, 7], [181, 63], [181, 49], [181, 67], [182, 181], [184, 183], [187, 185], [190, 54], [191, 190], [192, 54], [193, 175], [193, 192], [193, 191], [194, 193], [196, 195], [197, 54], [198, 197], [198, 196], [199, 3], [200, 199], [201, 3], [204, 201], [206, 54], [207, 206], [207, 205], [208, 3], [209, 208], [211, 3], [212, 211], [214, 54], [215, 207], [215, 214], [216, 3], [217, 215], [218, 216], [222, 219], [222, 133]]}
{"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/fafe52d0ee1da781c296d6ceb298de717c05d433bbb7ac9007e04b1c1d7600ce_fafe52d0ee1da781c296d6ceb298de717c05d433bbb7ac9007e04b1c1d7600ce.jsonl.gz", "strip_func_name": "sub_4101DB", "query": "\n\n\n__int64 __fastcall sub_4101DB(__int64 a1)\n{\nint *v1; // rax\nunsigned int v2; // eax\nint v3; // er8\nint v4; // er9\nint *v5; // rax\nunsigned int v6; // eax\nint v7; // ecx\nint v8; // er8\nint v9; // er9\n_BOOL4 v10; // edx\nint v11; // ecx\nint v12; // er8\nint v13; // er9\n__int64 result; // rax\nint *v15; // rax\nunsigned int v16; // eax\nint v17; // er8\nint v18; // er9\nint *v19; // rax\nunsigned int v20; // eax\nint v21; // ecx\nint v22; // er8\nint v23; // er9\n__int64 v24; // [rsp+18h] [rbp-8h]\n\n*(_QWORD *)(a1 + 208) = sub_410627;\n*(_QWORD *)(a1 + 216) = sub_410840;\n*(_QWORD *)(a1 + 224) = sub_410F4C;\n*(_QWORD *)(a1 + 232) = sub_410FC3;\n*(_QWORD *)(a1 + 240) = sub_411448;\n*(_QWORD *)(a1 + 248) = sub_4114D0;\n*(_QWORD *)(a1 + 256) = sub_411545;\n*(_QWORD *)(a1 + 264) = sub_4115D3;\n*(_QWORD *)(a1 + 272) = sub_411650;\n*(_QWORD *)(a1 + 280) = 0LL;\n*(_QWORD *)(a1 + 312) = sub_4110DD;\n*(_QWORD *)(a1 + 296) = sub_410758;\n*(_QWORD *)(a1 + 288) = sub_4106FF;\n*(_QWORD *)(a1 + 304) = sub_4107E8;\n*(_QWORD *)(a1 + 320) = sub_4118D9;\n*(_QWORD *)(a1 + 336) = sub_411946;\n*(_QWORD *)(a1 + 344) = sub_411A52;\n*(_QWORD *)(a1 + 328) = sub_411A8D;\n*(_QWORD *)(a1 + 392) = 0LL;\n*(_QWORD *)(a1 + 400) = 0LL;\n*(_QWORD *)(a1 + 352) = 0LL;\n*(_QWORD *)(a1 + 360) = 0LL;\n*(_QWORD *)(a1 + 376) = 0LL;\n*(_QWORD *)(a1 + 384) = 0LL;\nv24 = sub_419386(72LL);\n*(_QWORD *)(a1 + 568) = v24;\n*(_QWORD *)(v24 + 8) = 0LL;\n*(_DWORD *)(v24 + 56) = 0;\n*(_QWORD *)(a1 + 624) = 0x4000LL;\n*(_QWORD *)(a1 + 608) = sub_419367(0x4000LL);\nif ( *(_DWORD *)(a1 + 564) == 1 )\n{\nif ( *(_QWORD *)(a1 + 488) && **(_BYTE **)(a1 + 488) )\n{\n*(_QWORD *)(v24 + 24) = fopen(*(const char **)(a1 + 488), \"w\");\nif ( !*(_QWORD *)(v24 + 24) )\n{\nv1 = __errno_location();\nv2 = (unsigned int)strerror(*v1);\nsub_413E3D(\noff_42B4E8[0],\n(unsigned int)\"could not open TOC file \\\"%s\\\" for output: %s\\n\",\n*(_QWORD *)(a1 + 488),\nv2,\nv3,\nv4);\n}\n}\nelse\n{\n*(_QWORD *)(v24 + 24) = stdout;\nif ( !*(_QWORD *)(v24 + 24) )\n{\nv5 = __errno_location();\nv6 = (unsigned int)strerror(*v5);\nsub_413E3D(off_42B4E8[0], (unsigned int)\"could not open TOC file for output: %s\\n\", v6, v7, v8, v9);\n}\n}\n*(_QWORD *)(v24 + 32) = 0LL;\nv10 = sub_40BC42(*(FILE **)(v24 + 24));\n*(_DWORD *)v24 = v10;\nresult = *(unsigned int *)(a1 + 560);\nif ( (_DWORD)result )\nsub_413E3D(\noff_42B4E8[0],\n(unsigned int)\"compression is not supported by tar archive format\\n\",\nv10,\nv11,\nv12,\nv13);\n}\nelse\n{\nif ( *(_QWORD *)(a1 + 488) && **(_BYTE **)(a1 + 488) )\n{\n*(_QWORD *)(v24 + 24) = fopen(*(const char **)(a1 + 488), \"r\");\nif ( !*(_QWORD *)(v24 + 24) )\n{\nv15 = __errno_location();\nv16 = (unsigned int)strerror(*v15);\nsub_413E3D(\noff_42B4E8[0],\n(unsigned int)\"could not open TOC file \\\"%s\\\" for input: %s\\n\",\n*(_QWORD *)(a1 + 488),\nv16,\nv17,\nv18);\n}\n}\nelse\n{\n*(_QWORD *)(v24 + 24) = stdin;\nif ( !*(_QWORD *)(v24 + 24) )\n{\nv19 = __errno_location();\nv20 = (unsigned int)strerror(*v19);\nsub_413E3D(off_42B4E8[0], (unsigned int)\"could not open TOC file for input: %s\\n\", v20, v21, v22, v23);\n}\n}\n*(_QWORD *)(v24 + 32) = 0LL;\n*(_DWORD *)v24 = sub_40BC42(*(FILE **)(v24 + 24));\n*(_DWORD *)(a1 + 168) = 0;\n*(_QWORD *)(v24 + 48) = sub_410885(a1, \"toc.dat\", 114LL);\nsub_40B84F(a1);\nsub_409044(a1);\nresult = sub_410A76(a1, *(_QWORD *)(v24 + 48));\n}\nreturn result;\n}\n\n\n\nQ:[a1,v24,sub_4101DB,sub_410627,sub_410840,sub_410F4C,sub_410FC3,sub_411448,sub_4114D0,sub_411545,sub_4115D3,sub_411650,sub_4110DD,sub_410758,sub_4106FF,sub_4107E8,sub_4118D9,sub_411946,sub_411A52,sub_411A8D,sub_419386,sub_419367,sub_413E3D,sub_40BC42,sub_410885,sub_40B84F,sub_409044,sub_410A76,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'AH_0', 'v24': 'ctx', 'sub_4101DB': 'InitArchiveFmt_Tar', 'sub_410627': '_ArchiveEntry_0', 'sub_410840': '_StartData_0', 'sub_410F4C': '_WriteData_1', 'sub_410FC3': '_EndData_1', 'sub_411448': '_WriteByte_1', 'sub_4114D0': '_ReadByte_0', 'sub_411545': '_WriteBuf_1', 'sub_4115D3': '_ReadBuf_0', 'sub_411650': '_CloseArchive_1', 'sub_4110DD': '_PrintTocData_1', 'sub_410758': '_ReadExtraToc_0', 'sub_4106FF': '_WriteExtraToc_0', 'sub_4107E8': '_PrintExtraToc_0', 'sub_4118D9': '_StartBlobs_1', 'sub_411946': '_StartBlob_1', 'sub_411A52': '_EndBlob_1', 'sub_411A8D': '_EndBlobs_1', 'sub_419386': 'pg_malloc0', 'sub_419367': 'pg_malloc', 'sub_413E3D': 'exit_horribly', 'sub_40BC42': 'checkSeek', 'sub_410885': 'tarOpen', 'sub_40B84F': 'ReadHead', 'sub_409044': 'ReadToc', 'sub_410A76': 'tarClose'}"}
mesh_model_publication_publish_now_model
0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb
bluekitchen
btstack
NA
static void mesh_model_publication_publish_now_model(void * arg){ mesh_model_t * mesh_model = (mesh_model_t *) arg; mesh_publication_model_t * publication_model = mesh_model->publication_model; if (publication_model == NULL) return; if (publication_model->publish_state_fn == NULL) return; uint16_t dest = publication_model->address; if (dest == MESH_ADDRESS_UNSASSIGNED) return; uint16_t appkey_index = publication_model->appkey_index; mesh_transport_key_t * app_key = mesh_transport_key_get(appkey_index); if (app_key == NULL) return; // compose message mesh_pdu_t * pdu = (*publication_model->publish_state_fn)(mesh_model); if (pdu == NULL) return; // handle ttl = default uint8_t ttl = publication_model->ttl; if (ttl == 0xff){ ttl = mesh_foundation_default_ttl_get(); } mesh_upper_transport_setup_access_pdu_header(pdu, app_key->netkey_index, appkey_index, ttl, mesh_access_get_element_address(mesh_model), dest, 0); mesh_access_send_unacknowledged_pdu(pdu); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43A87B", "function_addr": 4434043, "binary_name": "0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb.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 rax, [rbp+var_48]"], [6, "mov [rbp+var_20], rax"], [7, "mov rax, [rbp+var_20]"], [8, "mov rax, [rax+20h]"], [9, "mov [rbp+var_28], rax"], [10, "cmp [rbp+var_28], 0"], [11, "jz loc_43A978"], [12, "mov rax, [rbp+var_28]"], [13, "mov rax, [rax]"], [14, "test rax, rax"], [15, "jz loc_43A97B"], [16, "mov rax, [rbp+var_28]"], [17, "movzx eax, word ptr [rax+2Eh]"], [18, "mov [rbp+var_2A], ax"], [19, "cmp [rbp+var_2A], 0"], [20, "jz loc_43A97E"], [21, "mov rax, [rbp+var_28]"], [22, "movzx eax, word ptr [rax+30h]"], [23, "mov [rbp+var_2C], ax"], [24, "movzx eax, [rbp+var_2C]"], [25, "mov edi, eax"], [26, "call sub_4486FE"], [27, "mov [rbp+var_38], rax"], [28, "cmp [rbp+var_38], 0"], [29, "jz loc_43A981"], [30, "mov rax, [rbp+var_28]"], [31, "mov rdx, [rax]"], [32, "mov rax, [rbp+var_20]"], [33, "mov rdi, rax"], [34, "call rdx"], [35, "mov [rbp+var_40], rax"], [36, "cmp [rbp+var_40], 0"], [37, "jz short loc_43A984"], [38, "mov rax, [rbp+var_28]"], [39, "movzx eax, byte ptr [rax+35h]"], [40, "mov [rbp+var_11], al"], [41, "cmp [rbp+var_11], 0FFh"], [42, "jnz short loc_43A928"], [43, "call sub_44479F"], [44, "mov [rbp+var_11], al"], [45, "movzx ebx, [rbp+var_2A]"], [46, "mov rax, [rbp+var_20]"], [47, "mov rdi, rax"], [48, "call sub_44D161"], [49, "movzx edi, ax"], [50, "movzx ecx, [rbp+var_11]"], [51, "movzx edx, [rbp+var_2C]"], [52, "mov rax, [rbp+var_38]"], [53, "movzx eax, word ptr [rax+0Ah]"], [54, "movzx esi, ax"], [55, "mov rax, [rbp+var_40]"], [56, "sub rsp, 8"], [57, "push 0"], [58, "mov r9d, ebx"], [59, "mov r8d, edi"], [60, "mov rdi, rax"], [61, "call sub_4517B0"], [62, "add rsp, 10h"], [63, "mov rax, [rbp+var_40]"], [64, "mov rdi, rax"], [65, "call sub_438BB1"], [66, "jmp short loc_43A985"], [67, "nop"], [68, "jmp short loc_43A985"], [69, "nop"], [70, "jmp short loc_43A985"], [71, "nop"], [72, "jmp short loc_43A985"], [73, "nop"], [74, "jmp short loc_43A985"], [75, "nop"], [76, "mov rbx, [rbp+var_8]"], [77, "leave"], [78, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 9], [13, 12], [14, 13], [15, 14], [16, 9], [17, 16], [18, 17], [19, 18], [20, 19], [21, 9], [22, 21], [23, 22], [24, 23], [25, 24], [27, 26], [28, 27], [29, 28], [30, 9], [31, 30], [32, 6], [33, 32], [34, 31], [35, 34], [36, 35], [37, 36], [38, 9], [39, 38], [40, 39], [41, 40], [42, 41], [44, 43], [45, 18], [46, 6], [47, 46], [49, 48], [50, 44], [50, 40], [51, 23], [52, 27], [53, 52], [54, 53], [55, 35], [56, 3], [58, 45], [59, 49], [60, 55], [62, 56], [63, 35], [64, 63], [78, 65], [78, 34], [78, 8], [78, 14], [78, 17], [78, 26]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb_0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb.jsonl.gz", "strip_func_name": "sub_43A87B", "query": "\n\n\n__int64 __fastcall sub_43A87B(__int64 a1)\n{\n__int64 result; // rax\nunsigned __int16 v2; // ax\n__int64 v3; // [rsp+10h] [rbp-40h]\n__int64 v4; // [rsp+18h] [rbp-38h]\nunsigned __int16 v5; // [rsp+24h] [rbp-2Ch]\nunsigned __int16 v6; // [rsp+26h] [rbp-2Ah]\n__int64 v7; // [rsp+28h] [rbp-28h]\nunsigned __int8 v8; // [rsp+3Fh] [rbp-11h]\n\nresult = *(_QWORD *)(a1 + 32);\nv7 = result;\nif ( result )\n{\nresult = *(_QWORD *)result;\nif ( *(_QWORD *)v7 )\n{\nresult = *(unsigned __int16 *)(v7 + 46);\nv6 = *(_WORD *)(v7 + 46);\nif ( v6 )\n{\nv5 = *(_WORD *)(v7 + 48);\nresult = sub_4486FE(v5);\nv4 = result;\nif ( result )\n{\nresult = (*(__int64 (__fastcall **)(__int64))v7)(a1);\nv3 = result;\nif ( result )\n{\nv8 = *(_BYTE *)(v7 + 53);\nif ( v8 == 0xFF )\nv8 = sub_44479F();\nv2 = sub_44D161(a1);\nsub_4517B0(v3, *(unsigned __int16 *)(v4 + 10), v5, v8, v2, v6, 0);\nresult = sub_438BB1(v3);\n}\n}\n}\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,v3,v4,v5,v6,v7,v8,sub_43A87B,sub_4486FE,sub_44479F,sub_44D161,sub_4517B0,sub_438BB1,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'arg', 'v3': 'pdu', 'v4': 'app_key', 'v5': 'appkey_index', 'v6': 'dest', 'v7': 'publication_model', 'v8': 'ttl', 'sub_43A87B': 'mesh_model_publication_publish_now_model', 'sub_4486FE': 'mesh_transport_key_get', 'sub_44479F': 'mesh_foundation_default_ttl_get', 'sub_44D161': 'mesh_access_get_element_address', 'sub_4517B0': 'mesh_upper_transport_setup_access_pdu_header', 'sub_438BB1': 'mesh_access_send_unacknowledged_pdu'}"}
mythread_check_status
7301b6e819ff084818bf7bd8fce59c1aa17e3d4892c34b25c84a11ff0b5959c5
lexborisov
Modest
NA
mystatus_t mythread_check_status(mythread_t *mythread) { for (size_t i = 0; i < mythread->entries_length; i++) { if(mythread->entries[i].context.status) return mythread->entries[i].context.status; } return MyCORE_STATUS_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42041F", "function_addr": 4326431, "binary_name": "7301b6e819ff084818bf7bd8fce59c1aa17e3d4892c34b25c84a11ff0b5959c5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_8], 0"], [4, "jmp short loc_42047A"], [5, "mov rax, [rbp+var_18]"], [6, "mov rcx, [rax]"], [7, "mov rdx, [rbp+var_8]"], [8, "mov rax, rdx"], [9, "shl rax, 3"], [10, "add rax, rdx"], [11, "shl rax, 3"], [12, "add rax, rcx"], [13, "mov eax, [rax+24h]"], [14, "test eax, eax"], [15, "jz short loc_420475"], [16, "mov rax, [rbp+var_18]"], [17, "mov rcx, [rax]"], [18, "mov rdx, [rbp+var_8]"], [19, "mov rax, rdx"], [20, "shl rax, 3"], [21, "add rax, rdx"], [22, "shl rax, 3"], [23, "add rax, rcx"], [24, "mov eax, [rax+24h]"], [25, "jmp short loc_42048D"], [26, "add [rbp+var_8], 1"], [27, "mov rax, [rbp+var_18]"], [28, "mov rax, [rax+8]"], [29, "cmp [rbp+var_8], rax"], [30, "jb short loc_420431"], [31, "mov eax, 0"], [32, "pop rbp"], [33, "retn"]], "data_dep": [[5, 2], [6, 5], [7, 26], [7, 3], [8, 7], [9, 8], [10, 9], [10, 7], [11, 10], [12, 6], [12, 11], [13, 12], [14, 13], [15, 14], [16, 2], [17, 16], [18, 26], [18, 3], [19, 18], [20, 19], [21, 18], [21, 20], [22, 21], [23, 22], [23, 17], [24, 23], [26, 26], [26, 3], [27, 2], [28, 27], [29, 26], [29, 28], [29, 3], [30, 29], [32, 0], [33, 31], [33, 24]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/7301b6e819ff084818bf7bd8fce59c1aa17e3d4892c34b25c84a11ff0b5959c5_7301b6e819ff084818bf7bd8fce59c1aa17e3d4892c34b25c84a11ff0b5959c5.jsonl.gz", "strip_func_name": "sub_42041F", "query": "\n\n\n__int64 __fastcall sub_42041F(_QWORD *a1)\n{\nunsigned __int64 i; // [rsp+10h] [rbp-8h]\n\nfor ( i = 0LL; i < a1[1]; ++i )\n{\nif ( *(_DWORD *)(*a1 + 72 * i + 36) )\nreturn *(unsigned int *)(*a1 + 72 * i + 36);\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,sub_42041F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'mythread', 'sub_42041F': 'mythread_check_status'}"}
luaO_str2num
8b2aa30b47b161f5257fdaab242db0f782b78ef50ffbda0317d5092190fe61c9
robertdavidgraham
hellolua
NA
size_t luaO_str2num (const char *s, TValue *o) { lua_Integer i; lua_Number n; const char *e; if ((e = l_str2int(s, &i)) != NULL) { /* try as an integer */ setivalue(o, i); } else if ((e = l_str2d(s, &n)) != NULL) { /* else try as a float */ setfltvalue(o, n); } else return 0; /* conversion failed */ return (e - s) + 1; /* success; return string size */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F0F0", "function_addr": 4255984, "binary_name": "8b2aa30b47b161f5257fdaab242db0f782b78ef50ffbda0317d5092190fe61c9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_40], rsi"], [5, "lea rdx, [rbp+var_20]"], [6, "mov rax, [rbp+var_38]"], [7, "mov rsi, rdx"], [8, "mov rdi, rax"], [9, "call sub_40EEF1"], [10, "mov [rbp+var_8], rax"], [11, "cmp [rbp+var_8], 0"], [12, "jz short loc_40F13E"], [13, "mov rax, [rbp+var_40]"], [14, "mov [rbp+var_18], rax"], [15, "mov rdx, [rbp+var_20]"], [16, "mov rax, [rbp+var_18]"], [17, "mov [rax], rdx"], [18, "mov rax, [rbp+var_18]"], [19, "mov dword ptr [rax+8], 13h"], [20, "jmp short loc_40F185"], [21, "lea rdx, [rbp+var_28]"], [22, "mov rax, [rbp+var_38]"], [23, "mov rsi, rdx"], [24, "mov rdi, rax"], [25, "call sub_40EDA5"], [26, "mov [rbp+var_8], rax"], [27, "cmp [rbp+var_8], 0"], [28, "jz short loc_40F17E"], [29, "mov rax, [rbp+var_40]"], [30, "mov [rbp+var_10], rax"], [31, "movsd xmm0, [rbp+var_28]"], [32, "mov rax, [rbp+var_10]"], [33, "movsd qword ptr [rax], xmm0"], [34, "mov rax, [rbp+var_10]"], [35, "mov dword ptr [rax+8], 3"], [36, "jmp short loc_40F185"], [37, "mov eax, 0"], [38, "jmp short locret_40F191"], [39, "mov rax, [rbp+var_8]"], [40, "sub rax, [rbp+var_38]"], [41, "add rax, 1"], [42, "leave"], [43, "retn"]], "data_dep": [[6, 3], [7, 5], [8, 6], [10, 9], [11, 10], [12, 11], [13, 4], [14, 13], [16, 14], [17, 15], [17, 16], [18, 14], [19, 18], [21, 5], [22, 3], [23, 21], [24, 22], [26, 25], [27, 26], [28, 27], [29, 4], [30, 29], [32, 30], [33, 32], [33, 31], [34, 30], [35, 34], [39, 26], [39, 10], [40, 3], [40, 39], [41, 40], [43, 37], [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/8b2aa30b47b161f5257fdaab242db0f782b78ef50ffbda0317d5092190fe61c9_8b2aa30b47b161f5257fdaab242db0f782b78ef50ffbda0317d5092190fe61c9.jsonl.gz", "strip_func_name": "sub_40F0F0", "query": "\n\n\n__int64 __fastcall sub_40F0F0(char *a1, _QWORD *a2)\n{\n__int64 v3; // [rsp+18h] [rbp-28h] BYREF\n__int64 v4; // [rsp+20h] [rbp-20h] BYREF\n_QWORD *v5; // [rsp+28h] [rbp-18h]\n_QWORD *v6; // [rsp+30h] [rbp-10h]\nchar *v7; // [rsp+38h] [rbp-8h]\n\nv7 = sub_40EEF1(a1, &v4);\nif ( v7 )\n{\nv5 = a2;\n*a2 = v4;\n*((_DWORD *)v5 + 2) = 19;\n}\nelse\n{\nv7 = sub_40EDA5(a1, (double *)&v3);\nif ( !v7 )\nreturn 0LL;\nv6 = a2;\n*a2 = v3;\n*((_DWORD *)v6 + 2) = 3;\n}\nreturn v7 - a1 + 1;\n}\n\n\n\nQ:[a1,a2,v3,v5,v6,v7,sub_40F0F0,sub_40EEF1,sub_40EDA5,]\nAssistant: ", "hints": "[]", "response": "{'a1': 's', 'a2': 'o', 'v3': 'n', 'v5': 'io', 'v6': 'io_0', 'v7': 'e', 'sub_40F0F0': 'luaO_str2num', 'sub_40EEF1': 'l_str2int', 'sub_40EDA5': 'l_str2d'}"}
addpair
2aceb53a5f1e59697a55790128d9cd7587180fd4dea439ca24c3195ea3df8b53
BPI-SINOVOIP
BPI-R2-bsp
NA
static void addpair(int fp, int un) { int i; if ( un <= 0xfffe ) { /* Check it isn't a duplicate */ for ( i = 0 ; i < unicount[fp] ; i++ ) if ( unitable[fp][i] == un ) return; /* Add to list */ if ( unicount[fp] > 254 ) { fprintf(stderr, "ERROR: Only 255 unicodes/glyph permitted!\n"); exit(EX_DATAERR); } unitable[fp][unicount[fp]] = un; unicount[fp]++; } /* otherwise: ignore */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40139E", "function_addr": 4199326, "binary_name": "2aceb53a5f1e59697a55790128d9cd7587180fd4dea439ca24c3195ea3df8b53.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 28h"], [1, "mov [rsp+28h+var_1C], edi"], [2, "mov [rsp+28h+var_20], esi"], [3, "cmp [rsp+28h+var_20], 0FFFEh"], [4, "jg loc_401498"], [5, "mov [rsp+28h+var_C], 0"], [6, "jmp short loc_4013F7"], [7, "mov eax, [rsp+28h+var_C]"], [8, "movsxd rcx, eax"], [9, "mov eax, [rsp+28h+var_1C]"], [10, "movsxd rdx, eax"], [11, "mov rax, rdx"], [12, "shl rax, 8"], [13, "sub rax, rdx"], [14, "add rax, rcx"], [15, "movzx eax, ds:word_4040E0[rax+rax]"], [16, "movzx eax, ax"], [17, "cmp [rsp+28h+var_20], eax"], [18, "jz loc_401497"], [19, "add [rsp+28h+var_C], 1"], [20, "mov eax, [rsp+28h+var_1C]"], [21, "cdqe"], [22, "mov eax, ds:dword_423EE0[rax*4]"], [23, "cmp [rsp+28h+var_C], eax"], [24, "jl short loc_4013C2"], [25, "mov eax, [rsp+28h+var_1C]"], [26, "cdqe"], [27, "mov eax, ds:dword_423EE0[rax*4]"], [28, "cmp eax, 0FEh"], [29, "jle short loc_401446"], [30, "mov rax, cs:stderr"], [31, "mov rcx, rax"], [32, "mov edx, 2Ah "], [33, "mov esi, 1"], [34, "mov edi, offset aErrorOnly255Un"], [35, "call _fwrite"], [36, "mov edi, 41h "], [37, "call _exit"], [38, "mov eax, [rsp+28h+var_1C]"], [39, "cdqe"], [40, "mov eax, ds:dword_423EE0[rax*4]"], [41, "mov edx, [rsp+28h+var_20]"], [42, "mov ecx, edx"], [43, "movsxd rsi, eax"], [44, "mov eax, [rsp+28h+var_1C]"], [45, "movsxd rdx, eax"], [46, "mov rax, rdx"], [47, "shl rax, 8"], [48, "sub rax, rdx"], [49, "add rax, rsi"], [50, "mov ds:word_4040E0[rax+rax], cx"], [51, "mov eax, [rsp+28h+var_1C]"], [52, "cdqe"], [53, "mov eax, ds:dword_423EE0[rax*4]"], [54, "lea edx, [rax+1]"], [55, "mov eax, [rsp+28h+var_1C]"], [56, "cdqe"], [57, "mov ds:dword_423EE0[rax*4], edx"], [58, "jmp short loc_401498"], [59, "nop"], [60, "add rsp, 28h"], [61, "retn"]], "data_dep": [[3, 2], [4, 3], [7, 19], [7, 5], [8, 7], [9, 1], [10, 9], [11, 10], [12, 11], [13, 10], [13, 12], [14, 13], [14, 8], [16, 15], [17, 2], [17, 16], [18, 17], [19, 5], [19, 19], [20, 1], [23, 19], [23, 22], [23, 5], [24, 23], [25, 1], [28, 27], [29, 28], [31, 30], [38, 1], [41, 2], [42, 41], [43, 40], [44, 1], [45, 44], [46, 45], [47, 46], [48, 45], [48, 47], [49, 43], [49, 48], [50, 42], [51, 1], [54, 45], [54, 53], [55, 1], [57, 54], [60, 0], [61, 55], [61, 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/2aceb53a5f1e59697a55790128d9cd7587180fd4dea439ca24c3195ea3df8b53_2aceb53a5f1e59697a55790128d9cd7587180fd4dea439ca24c3195ea3df8b53.jsonl.gz", "strip_func_name": "sub_40139E", "query": "\n\n\n__int64 __fastcall sub_40139E(int a1, int a2)\n{\n__int64 result; // rax\nint i; // [rsp+1Ch] [rbp-Ch]\n\nif ( a2 <= 65534 )\n{\nfor ( i = 0; i < dword_423EE0[a1]; ++i )\n{\nresult = (unsigned __int16)word_4040E0[255 * a1 + i];\nif ( a2 == (_DWORD)result )\nreturn result;\n}\nif ( dword_423EE0[a1] > 254 )\n{\nfwrite(\"ERROR: Only 255 unicodes/glyph permitted!\\n\", 1uLL, 0x2AuLL, stderr);\nexit(65);\n}\nword_4040E0[255 * a1 + dword_423EE0[a1]] = a2;\nresult = a1;\n++dword_423EE0[a1];\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_40139E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fp', 'a2': 'un', 'sub_40139E': 'addpair'}"}
calc_component_size
419510bcecc994a3754e5ab47aa58d228bb38fb3eef1e1256af3b83aa3eae934
neilbrown
mdadm
NA
static unsigned long long calc_component_size(struct imsm_map *map, struct imsm_dev *dev) { unsigned long long component_size; unsigned long long dev_size = imsm_dev_size(dev); long long calc_dev_size = 0; unsigned int member_disks = imsm_num_data_members(map); if (member_disks == 0) return 0; component_size = per_dev_array_size(map); calc_dev_size = component_size * member_disks; /* Component size is rounded to 1MB so difference between size from * metadata and size calculated from num_data_stripes equals up to * 2048 blocks per each device. If the difference is higher it means * that array size was expanded and num_data_stripes was not updated. */ if (llabs(calc_dev_size - (long long)dev_size) > (1 << SECT_PER_MB_SHIFT) * member_disks) { component_size = dev_size / member_disks; dprintf("Invalid num_data_stripes in metadata; expected=%llu, found=%llu\n", component_size / map->blocks_per_strip, num_data_stripes(map)); } return component_size; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45F953", "function_addr": 4585811, "binary_name": "419510bcecc994a3754e5ab47aa58d228bb38fb3eef1e1256af3b83aa3eae934.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rax, [rbp+var_30]"], [6, "mov rdi, rax"], [7, "call sub_45B3D8"], [8, "mov [rbp+var_10], rax"], [9, "mov [rbp+var_18], 0"], [10, "mov rax, [rbp+var_28]"], [11, "mov rdi, rax"], [12, "call sub_45F8F2"], [13, "movzx eax, al"], [14, "mov [rbp+var_1C], eax"], [15, "cmp [rbp+var_1C], 0"], [16, "jnz short loc_45F99A"], [17, "mov eax, 0"], [18, "jmp short locret_45F9ED"], [19, "mov rax, [rbp+var_28]"], [20, "mov rdi, rax"], [21, "call sub_45B695"], [22, "mov [rbp+var_8], rax"], [23, "mov eax, [rbp+var_1C]"], [24, "imul rax, [rbp+var_8]"], [25, "mov [rbp+var_18], rax"], [26, "mov rdx, [rbp+var_10]"], [27, "mov rax, [rbp+var_18]"], [28, "sub rax, rdx"], [29, "cqo"], [30, "xor rax, rdx"], [31, "sub rax, rdx"], [32, "mov edx, [rbp+var_1C]"], [33, "shl edx, 0Bh"], [34, "mov edx, edx"], [35, "cmp rax, rdx"], [36, "jle short loc_45F9E9"], [37, "mov ecx, [rbp+var_1C]"], [38, "mov rax, [rbp+var_10]"], [39, "mov edx, 0"], [40, "div rcx"], [41, "mov [rbp+var_8], rax"], [42, "mov rax, [rbp+var_8]"], [43, "leave"], [44, "retn"]], "data_dep": [[5, 4], [6, 5], [8, 7], [10, 3], [11, 10], [13, 12], [14, 13], [15, 14], [16, 15], [19, 3], [20, 19], [22, 21], [23, 14], [24, 23], [24, 22], [25, 24], [26, 8], [27, 25], [28, 27], [28, 26], [30, 26], [30, 28], [31, 26], [31, 30], [32, 14], [33, 32], [34, 33], [35, 31], [35, 34], [36, 35], [37, 14], [38, 8], [40, 37], [41, 38], [42, 41], [42, 22], [44, 42], [44, 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/419510bcecc994a3754e5ab47aa58d228bb38fb3eef1e1256af3b83aa3eae934_419510bcecc994a3754e5ab47aa58d228bb38fb3eef1e1256af3b83aa3eae934.jsonl.gz", "strip_func_name": "sub_45F953", "query": "\n\n\nunsigned __int64 __fastcall sub_45F953(__int64 a1, __int64 a2)\n{\nunsigned __int8 v2; // al\n__int64 v4; // [rsp+14h] [rbp-1Ch]\nunsigned __int64 v5; // [rsp+20h] [rbp-10h]\nunsigned __int64 v6; // [rsp+28h] [rbp-8h]\n\nv5 = sub_45B3D8(a2);\nv2 = sub_45F8F2(a1);\nv4 = v2;\nif ( !v2 )\nreturn 0LL;\nv6 = sub_45B695(a1);\nif ( (__int64)abs64(v6 * (unsigned int)v4 - v5) > (unsigned int)((_DWORD)v4 << 11) )\nv6 = v5 / (unsigned int)v4;\nreturn v6;\n}\n\n\n\nQ:[a1,a2,v4,v5,v6,sub_45F953,sub_45B3D8,sub_45F8F2,sub_45B695,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'map', 'a2': 'dev', 'v4': 'member_disks', 'v5': 'dev_size', 'v6': 'component_size', 'sub_45F953': 'calc_component_size', 'sub_45B3D8': 'imsm_dev_size', 'sub_45F8F2': 'imsm_num_data_members', 'sub_45B695': 'per_dev_array_size'}"}
Rotate32By
38b4e49efdae20a5f18f27f6ddf9235f1740811cc1e9f8fd9c8e0ec88f19aafa
erthink
t1ha
NA
static void Rotate32By(uint64_t count, uint64_t lanes[4]) { int i; for (i = 0; i < 4; ++i) { uint32_t half0 = lanes[i] & 0xffffffff; uint32_t half1 = (lanes[i] >> 32); lanes[i] = (half0 << count) | (half0 >> (32 - count)); lanes[i] |= (uint64_t)((half1 << count) | (half1 >> (32 - count))) << 32; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4156B1", "function_addr": 4282033, "binary_name": "38b4e49efdae20a5f18f27f6ddf9235f1740811cc1e9f8fd9c8e0ec88f19aafa.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_4], 0"], [5, "jmp loc_415772"], [6, "mov eax, [rbp+var_4]"], [7, "cdqe"], [8, "lea rdx, ds:0[rax*8]"], [9, "mov rax, [rbp+var_20]"], [10, "add rax, rdx"], [11, "mov rax, [rax]"], [12, "mov [rbp+var_8], eax"], [13, "mov eax, [rbp+var_4]"], [14, "cdqe"], [15, "lea rdx, ds:0[rax*8]"], [16, "mov rax, [rbp+var_20]"], [17, "add rax, rdx"], [18, "mov rax, [rax]"], [19, "shr rax, 20h"], [20, "mov [rbp+var_C], eax"], [21, "mov rax, [rbp+var_18]"], [22, "mov edx, eax"], [23, "mov eax, [rbp+var_8]"], [24, "mov ecx, edx"], [25, "rol eax, cl"], [26, "mov edx, eax"], [27, "mov eax, [rbp+var_4]"], [28, "cdqe"], [29, "lea rcx, ds:0[rax*8]"], [30, "mov rax, [rbp+var_20]"], [31, "add rax, rcx"], [32, "mov edx, edx"], [33, "mov [rax], rdx"], [34, "mov eax, [rbp+var_4]"], [35, "cdqe"], [36, "lea rdx, ds:0[rax*8]"], [37, "mov rax, [rbp+var_20]"], [38, "add rax, rdx"], [39, "mov rdx, [rax]"], [40, "mov rax, [rbp+var_18]"], [41, "mov ecx, eax"], [42, "mov eax, [rbp+var_C]"], [43, "rol eax, cl"], [44, "mov eax, eax"], [45, "shl rax, 20h"], [46, "mov rcx, rax"], [47, "mov eax, [rbp+var_4]"], [48, "cdqe"], [49, "lea rsi, ds:0[rax*8]"], [50, "mov rax, [rbp+var_20]"], [51, "add rax, rsi"], [52, "or rdx, rcx"], [53, "mov [rax], rdx"], [54, "add [rbp+var_4], 1"], [55, "cmp [rbp+var_4], 3"], [56, "jle loc_4156C9"], [57, "nop"], [58, "nop"], [59, "pop rbp"], [60, "retn"]], "data_dep": [[6, 54], [6, 4], [8, 52], [9, 3], [10, 9], [10, 8], [11, 53], [11, 10], [11, 33], [12, 11], [13, 54], [13, 4], [15, 8], [16, 3], [17, 15], [17, 16], [18, 17], [18, 53], [18, 33], [19, 18], [20, 19], [21, 2], [22, 21], [23, 12], [24, 22], [25, 23], [25, 24], [26, 25], [27, 4], [27, 54], [29, 24], [30, 3], [31, 29], [31, 30], [32, 26], [33, 32], [33, 31], [34, 4], [34, 54], [36, 32], [37, 3], [38, 37], [38, 36], [39, 33], [39, 38], [40, 2], [41, 40], [42, 20], [43, 42], [43, 41], [44, 43], [45, 44], [46, 45], [47, 4], [47, 54], [49, 49], [50, 3], [51, 50], [51, 49], [52, 46], [52, 39], [53, 52], [53, 51], [54, 54], [54, 4], [55, 4], [55, 54], [56, 55], [59, 0], [60, 51]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/38b4e49efdae20a5f18f27f6ddf9235f1740811cc1e9f8fd9c8e0ec88f19aafa_38b4e49efdae20a5f18f27f6ddf9235f1740811cc1e9f8fd9c8e0ec88f19aafa.jsonl.gz", "strip_func_name": "sub_4156B1", "query": "\n\n\n_QWORD *__fastcall sub_4156B1(char a1, __int64 a2)\n{\n_QWORD *result; // rax\nint v3; // [rsp+14h] [rbp-Ch]\nint i; // [rsp+1Ch] [rbp-4h]\n\nfor ( i = 0; i <= 3; ++i )\n{\nv3 = HIDWORD(*(_QWORD *)(8LL * i + a2));\n*(_QWORD *)(8LL * i + a2) = (unsigned int)__ROL4__(*(_QWORD *)(8LL * i + a2), a1);\nresult = (_QWORD *)(8LL * i + a2);\n*result |= (unsigned __int64)(unsigned int)__ROL4__(v3, a1) << 32;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v3,sub_4156B1,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'count', 'a2': 'lanes', 'v3': 'half1', 'sub_4156B1': 'Rotate32By'}"}
primary_by_uuid_cb
89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334
IanHarvey
bluepy
NA
static void primary_by_uuid_cb(uint8_t status, GSList *ranges, void *user_data) { GSList *l; if (status) { DBG("status returned error : %s (0x%02x)", att_ecode2str(status), status); resp_att_error(status); return; } resp_begin(rsp_DISCOVERY); for (l = ranges; l; l = l->next) { struct att_range *range = l->data; send_uint(tag_RANGE_START, range->start); send_uint(tag_RANGE_END, range->end); } resp_end(); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404D89", "function_addr": 4214153, "binary_name": "89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov eax, edi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_14], al"], [7, "cmp [rbp+var_14], 0"], [8, "jz short loc_404DB1"], [9, "movzx eax, [rbp+var_14]"], [10, "mov edi, eax"], [11, "call sub_403AFC"], [12, "jmp short locret_404E29"], [13, "mov rax, cs:off_4428A8"], [14, "mov rdi, rax"], [15, "call sub_4038AC"], [16, "mov rax, [rbp+var_20]"], [17, "mov [rbp+var_8], rax"], [18, "jmp short loc_404E18"], [19, "mov rax, [rbp+var_8]"], [20, "mov rax, [rax]"], [21, "mov [rbp+var_10], rax"], [22, "mov rax, [rbp+var_10]"], [23, "movzx eax, word ptr [rax]"], [24, "movzx edx, ax"], [25, "mov rax, cs:off_442848"], [26, "mov esi, edx"], [27, "mov rdi, rax"], [28, "call sub_403905"], [29, "mov rax, [rbp+var_10]"], [30, "movzx eax, word ptr [rax+2]"], [31, "movzx edx, ax"], [32, "mov rax, cs:off_442850"], [33, "mov esi, edx"], [34, "mov rdi, rax"], [35, "call sub_403905"], [36, "mov rax, [rbp+var_8]"], [37, "mov rax, [rax+8]"], [38, "mov [rbp+var_8], rax"], [39, "cmp [rbp+var_8], 0"], [40, "jnz short loc_404DCA"], [41, "mov eax, 0"], [42, "call sub_403A46"], [43, "leave"], [44, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 6], [10, 9], [14, 13], [16, 4], [17, 16], [19, 17], [19, 38], [20, 19], [21, 20], [22, 21], [23, 22], [24, 23], [26, 24], [27, 25], [29, 21], [30, 29], [31, 30], [33, 31], [34, 32], [36, 17], [36, 38], [37, 36], [38, 37], [39, 17], [39, 38], [40, 39], [44, 42], [44, 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/89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334_89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334.jsonl.gz", "strip_func_name": "sub_404D89", "query": "\n\n\nint __fastcall sub_404D89(unsigned __int8 a1, unsigned __int16 *a2)\n{\n__int64 v3; // [rsp+20h] [rbp-10h]\n\nif ( a1 )\nreturn sub_403AFC(a1);\nsub_4038AC(off_4428A8[0]);\nwhile ( a2 )\n{\nv3 = *(_QWORD *)a2;\nsub_403905((__int64)off_442848[0], **(unsigned __int16 **)a2);\nsub_403905((__int64)off_442850[0], *(unsigned __int16 *)(v3 + 2));\na2 = (unsigned __int16 *)*((_QWORD *)a2 + 1);\n}\nreturn sub_403A46();\n}\n\n\n\nQ:[a1,a2,v3,sub_404D89,sub_403AFC,sub_4038AC,sub_403905,sub_403A46,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'status', 'a2': 'ranges', 'v3': 'range', 'sub_404D89': 'primary_by_uuid_cb', 'sub_403AFC': 'resp_att_error', 'sub_4038AC': 'resp_begin', 'sub_403905': 'send_uint', 'sub_403A46': 'resp_end'}"}
family_handler
f3289d91472f8ba82301152b86372819bacdda97fbdc2768a4880549cb47a846
SUSE
kernel
NA
static int family_handler(struct nl_msg *msg, void *arg) { struct family_data *res = arg; struct nlattr *tb[CTRL_ATTR_MAX + 1]; struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg)); struct nlattr *mcgrp; int i; nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0), genlmsg_attrlen(gnlh, 0), NULL); if (!tb[CTRL_ATTR_MCAST_GROUPS]) return NL_SKIP; nla_for_each_nested(mcgrp, tb[CTRL_ATTR_MCAST_GROUPS], i) { struct nlattr *tb2[CTRL_ATTR_MCAST_GRP_MAX + 1]; nla_parse(tb2, CTRL_ATTR_MCAST_GRP_MAX, nla_data(mcgrp), nla_len(mcgrp), NULL); if (!tb2[CTRL_ATTR_MCAST_GRP_NAME] || !tb2[CTRL_ATTR_MCAST_GRP_ID] || strncmp(nla_data(tb2[CTRL_ATTR_MCAST_GRP_NAME]), res->group, nla_len(tb2[CTRL_ATTR_MCAST_GRP_NAME])) != 0) continue; res->id = nla_get_u32(tb2[CTRL_ATTR_MCAST_GRP_ID]); break; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40E8DF", "function_addr": 4253919, "binary_name": "f3289d91472f8ba82301152b86372819bacdda97fbdc2768a4880549cb47a846.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 90h"], [5, "mov [rbp+var_98], rdi"], [6, "mov [rbp+var_A0], rsi"], [7, "mov rax, [rbp+var_A0]"], [8, "mov [rbp+var_20], rax"], [9, "mov rax, [rbp+var_98]"], [10, "mov rdi, rax"], [11, "call _nlmsg_hdr"], [12, "mov rdi, rax"], [13, "call _nlmsg_data"], [14, "mov [rbp+var_28], rax"], [15, "mov rax, [rbp+var_28]"], [16, "mov esi, 0"], [17, "mov rdi, rax"], [18, "call _genlmsg_attrlen"], [19, "mov ebx, eax"], [20, "mov rax, [rbp+var_28]"], [21, "mov esi, 0"], [22, "mov rdi, rax"], [23, "call _genlmsg_attrdata"], [24, "mov rdx, rax"], [25, "lea rax, [rbp+var_70]"], [26, "mov r8d, 0"], [27, "mov ecx, ebx"], [28, "mov esi, 7"], [29, "mov rdi, rax"], [30, "call _nla_parse"], [31, "mov rax, [rbp+var_38]"], [32, "test rax, rax"], [33, "jnz short loc_40E974"], [34, "mov eax, 1"], [35, "jmp loc_40EA6E"], [36, "mov rax, [rbp+var_38]"], [37, "mov rdi, rax"], [38, "call _nla_data"], [39, "mov [rbp+var_18], rax"], [40, "mov rax, [rbp+var_38]"], [41, "mov rdi, rax"], [42, "call _nla_len"], [43, "mov [rbp+var_74], eax"], [44, "jmp loc_40EA50"], [45, "mov rax, [rbp+var_18]"], [46, "mov rdi, rax"], [47, "call _nla_len"], [48, "mov ebx, eax"], [49, "mov rax, [rbp+var_18]"], [50, "mov rdi, rax"], [51, "call _nla_data"], [52, "mov rdx, rax"], [53, "lea rax, [rbp+var_90]"], [54, "mov r8d, 0"], [55, "mov ecx, ebx"], [56, "mov esi, 2"], [57, "mov rdi, rax"], [58, "call _nla_parse"], [59, "mov rax, [rbp+var_88]"], [60, "test rax, rax"], [61, "jz short loc_40EA20"], [62, "mov rax, [rbp+var_80]"], [63, "test rax, rax"], [64, "jz short loc_40EA20"], [65, "mov rax, [rbp+var_88]"], [66, "mov rdi, rax"], [67, "call _nla_len"], [68, "movsxd r12, eax"], [69, "mov rax, [rbp+var_20]"], [70, "mov rbx, [rax]"], [71, "mov rax, [rbp+var_88]"], [72, "mov rdi, rax"], [73, "call _nla_data"], [74, "mov rdx, r12"], [75, "mov rsi, rbx"], [76, "mov rdi, rax"], [77, "call _strncmp"], [78, "test eax, eax"], [79, "jz short loc_40EA39"], [80, "lea rdx, [rbp+var_74]"], [81, "mov rax, [rbp+var_18]"], [82, "mov rsi, rdx"], [83, "mov rdi, rax"], [84, "call _nla_next"], [85, "mov [rbp+var_18], rax"], [86, "jmp short loc_40EA50"], [87, "mov rax, [rbp+var_80]"], [88, "mov rdi, rax"], [89, "call _nla_get_u32"], [90, "mov edx, eax"], [91, "mov rax, [rbp+var_20]"], [92, "mov [rax+8], edx"], [93, "jmp short loc_40EA69"], [94, "mov edx, [rbp+var_74]"], [95, "mov rax, [rbp+var_18]"], [96, "mov esi, edx"], [97, "mov rdi, rax"], [98, "call _nla_ok"], [99, "test eax, eax"], [100, "jnz loc_40E998"], [101, "mov eax, 0"], [102, "add rsp, 90h"], [103, "pop rbx"], [104, "pop r12"], [105, "pop rbp"], [106, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 5], [10, 9], [12, 11], [14, 13], [15, 14], [17, 15], [19, 18], [20, 14], [22, 20], [24, 23], [25, 23], [27, 19], [29, 25], [32, 31], [33, 32], [37, 36], [39, 38], [41, 40], [43, 42], [45, 85], [45, 39], [46, 45], [48, 47], [49, 85], [49, 39], [50, 49], [52, 51], [53, 51], [55, 48], [57, 53], [60, 59], [61, 60], [63, 62], [64, 63], [66, 65], [68, 67], [69, 8], [70, 69], [72, 71], [74, 68], [75, 70], [76, 73], [78, 77], [79, 78], [80, 74], [80, 43], [80, 52], [81, 85], [81, 39], [82, 80], [83, 81], [85, 84], [88, 87], [90, 89], [91, 8], [92, 91], [92, 90], [94, 43], [95, 85], [95, 39], [96, 94], [97, 95], [99, 98], [100, 99], [102, 4], [103, 3], [104, 2], [105, 0], [106, 34], [106, 101]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f3289d91472f8ba82301152b86372819bacdda97fbdc2768a4880549cb47a846_f3289d91472f8ba82301152b86372819bacdda97fbdc2768a4880549cb47a846.jsonl.gz", "strip_func_name": "sub_40E8DF", "query": "\n\n\n__int64 __fastcall sub_40E8DF(__int64 a1, __int64 a2)\n{\nsize_t v3; // r12\nconst char *v4; // rbx\nconst char *v5; // rax\n__int64 v6; // [rsp+18h] [rbp-88h]\n__int64 v7; // [rsp+20h] [rbp-80h]\n__int64 v8; // [rsp+68h] [rbp-38h]\n\nnlmsg_hdr();\nnlmsg_data();\ngenlmsg_attrlen();\ngenlmsg_attrdata();\nnla_parse();\nif ( !v8 )\nreturn 1LL;\nnla_data();\nnla_len();\nwhile ( (unsigned int)nla_ok() )\n{\nnla_len();\nnla_data();\nnla_parse();\nif ( v6 )\n{\nif ( v7 )\n{\nv3 = (int)nla_len();\nv4 = *(const char **)a2;\nv5 = (const char *)nla_data();\nif ( !strncmp(v5, v4, v3) )\n{\n*(_DWORD *)(a2 + 8) = nla_get_u32();\nreturn 0LL;\n}\n}\n}\nnla_next();\n}\nreturn 0LL;\n}\n\n\n\nQ:[a2,a1,v6,v7,v8,sub_40E8DF,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'arg', 'a1': 'msg', 'v6': 'tb2_8', 'v7': 'tb2_16', 'v8': 'tb_56', 'sub_40E8DF': 'family_handler'}"}
main
6d884bbc662478f08ece497e031e389cf17a51473ef4d60b4d080aa5cb592c6d
aap
pdp11
NA
int main(int argc, char *argv[]) { int lport; uint32 sleep; memset(&cpu, 0, sizeof(cpu)); memset(&bus, 0, sizeof(Bus)); cpu.bus = &bus; busadddev(&bus, &membusdev); #ifndef KD11Bp busadddev(&bus, &kwbusdev); busadddev(&bus, &klbusdev); #endif busadddev(&bus, &kebusdev); busadddev(&bus, &tvbusdev); busadddev(&bus, &ten11busdev); port = 1110; lport = 11100; sleep = 0; debug = quiet; ARGBEGIN{ case 'p': port = atoi(EARGF(usage())); break; case 'l': lport = atoi(EARGF(usage())); break; case 's': sleep = atoi(EARGF(usage())); break; case 'd': logfile = stderr; debug = log; break; }ARGEND; if(argc < 1) usage(); host = argv[0]; ten11.cycle = 0; ten11.fd = -1; loadmem("mem.txt"); // if(loadpt("maindec/MAINDEC-11-D0NA-PB.ptap")) // if(loadpt("maindec/MAINDEC-11-D2AA-PB.ptap")) // return 0; // cpu.r[7] = 0200; // cpu.sw = 0104000; //void eaetest(KE11 *ke); //eaetest(&ke11); inittv(&tv); tv.ten11 = &ten11; reset(&cpu); ttyopen(&TTYDEV.tty); /* start the two threads for listening for * and handling TV display connections */ handletvs(&tv); servetv(&tv, lport); //void tvtest(TV *tv, Bus *bus); //tvtest(&tv, &bus); /* wait until we get some data from the 10 */ cpu.r[7] = 0; cpu.throttle = sleep; memory[0] = 0777; run(&cpu); closetv(&tv); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4206718, "binary_name": "6d884bbc662478f08ece497e031e389cf17a51473ef4d60b4d080aa5cb592c6d.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_30], rsi"], [5, "mov edx, 90h"], [6, "mov esi, 0"], [7, "mov edi, offset unk_415580"], [8, "call _memset"], [9, "mov edx, 18h"], [10, "mov esi, 0"], [11, "mov edi, offset unk_415560"], [12, "call _memset"], [13, "mov cs:qword_4155A8, offset unk_415560"], [14, "mov esi, offset unk_40F200"], [15, "mov edi, offset unk_415560"], [16, "call sub_402452"], [17, "mov esi, offset unk_40F2C0"], [18, "mov edi, offset unk_415560"], [19, "call sub_402452"], [20, "mov esi, offset unk_40F280"], [21, "mov edi, offset unk_415560"], [22, "call sub_402452"], [23, "mov esi, offset unk_40F240"], [24, "mov edi, offset unk_415560"], [25, "call sub_402452"], [26, "mov esi, offset unk_40F300"], [27, "mov edi, offset unk_415560"], [28, "call sub_402452"], [29, "mov esi, offset unk_40F340"], [30, "mov edi, offset unk_415560"], [31, "call sub_402452"], [32, "mov cs:dword_415548, 456h"], [33, "mov [rbp+var_4], 2B5Ch"], [34, "mov [rbp+var_8], 0"], [35, "mov cs:qword_415550, offset sub_40261F"], [36, "mov rax, cs:qword_496148"], [37, "test rax, rax"], [38, "jnz short loc_403161"], [39, "mov rax, [rbp+var_30]"], [40, "mov rax, [rax]"], [41, "mov cs:qword_496148, rax"], [42, "mov rax, cs:qword_496148"], [43, "test rax, rax"], [44, "add [rbp+var_30], 8"], [45, "sub [rbp+var_24], 1"], [46, "jmp loc_403346"], [47, "mov rax, [rbp+var_30]"], [48, "mov rax, [rax]"], [49, "add rax, 1"], [50, "mov [rbp+var_10], rax"], [51, "mov rax, [rbp+var_10]"], [52, "movzx eax, byte ptr [rax]"], [53, "cmp al, 2Dh "], [54, "jnz short loc_4031A6"], [55, "mov rax, [rbp+var_10]"], [56, "add rax, 1"], [57, "movzx eax, byte ptr [rax]"], [58, "test al, al"], [59, "jnz short loc_4031A6"], [60, "sub [rbp+var_24], 1"], [61, "add [rbp+var_30], 8"], [62, "jmp loc_403376"], [63, "mov [rbp+var_11], 0"], [64, "jmp loc_40330E"], [65, "movsx eax, [rbp+var_11]"], [66, "cmp eax, 73h "], [67, "jz loc_40329C"], [68, "cmp eax, 73h "], [69, "jg loc_40330E"], [70, "cmp eax, 70h "], [71, "jz short loc_4031E6"], [72, "cmp eax, 70h "], [73, "jg loc_40330E"], [74, "cmp eax, 64h "], [75, "jz loc_4032F4"], [76, "cmp eax, 6Ch "], [77, "jz short loc_403244"], [78, "jmp loc_40330E"], [79, "mov rax, [rbp+var_10]"], [80, "mov [rbp+var_20], rax"], [81, "mov [rbp+var_10], offset unk_40B008"], [82, "mov rax, [rbp+var_20]"], [83, "movzx eax, byte ptr [rax]"], [84, "test al, al"], [85, "jnz short loc_40322D"], [86, "mov rax, [rbp+var_30]"], [87, "add rax, 8"], [88, "mov rax, [rax]"], [89, "test rax, rax"], [90, "jz short loc_403223"], [91, "sub [rbp+var_24], 1"], [92, "add [rbp+var_30], 8"], [93, "mov rax, [rbp+var_30]"], [94, "mov rax, [rax]"], [95, "jmp short loc_403231"], [96, "call sub_402FF6"], [97, "call _abort"], [98, "mov rax, [rbp+var_20]"], [99, "mov rdi, rax"], [100, "call _atoi"], [101, "mov cs:dword_415548, eax"], [102, "jmp loc_40330E"], [103, "mov rax, [rbp+var_10]"], [104, "mov [rbp+var_20], rax"], [105, "mov [rbp+var_10], offset unk_40B008"], [106, "mov rax, [rbp+var_20]"], [107, "movzx eax, byte ptr [rax]"], [108, "test al, al"], [109, "jnz short loc_40328B"], [110, "mov rax, [rbp+var_30]"], [111, "add rax, 8"], [112, "mov rax, [rax]"], [113, "test rax, rax"], [114, "jz short loc_403281"], [115, "sub [rbp+var_24], 1"], [116, "add [rbp+var_30], 8"], [117, "mov rax, [rbp+var_30]"], [118, "mov rax, [rax]"], [119, "jmp short loc_40328F"], [120, "call sub_402FF6"], [121, "call _abort"], [122, "mov rax, [rbp+var_20]"], [123, "mov rdi, rax"], [124, "call _atoi"], [125, "mov [rbp+var_4], eax"], [126, "jmp short loc_40330E"], [127, "mov rax, [rbp+var_10]"], [128, "mov [rbp+var_20], rax"], [129, "mov [rbp+var_10], offset unk_40B008"], [130, "mov rax, [rbp+var_20]"], [131, "movzx eax, byte ptr [rax]"], [132, "test al, al"], [133, "jnz short loc_4032E3"], [134, "mov rax, [rbp+var_30]"], [135, "add rax, 8"], [136, "mov rax, [rax]"], [137, "test rax, rax"], [138, "jz short loc_4032D9"], [139, "sub [rbp+var_24], 1"], [140, "add [rbp+var_30], 8"], [141, "mov rax, [rbp+var_30]"], [142, "mov rax, [rax]"], [143, "jmp short loc_4032E7"], [144, "call sub_402FF6"], [145, "call _abort"], [146, "mov rax, [rbp+var_20]"], [147, "mov rdi, rax"], [148, "call _atoi"], [149, "mov [rbp+var_8], eax"], [150, "jmp short loc_40330E"], [151, "mov rax, cs:stderr"], [152, "mov cs:stream, rax"], [153, "mov cs:qword_415550, offset sub_4026A5"], [154, "nop"], [155, "mov rax, [rbp+var_10]"], [156, "movzx eax, byte ptr [rax]"], [157, "test al, al"], [158, "jz short loc_403335"], [159, "mov rax, [rbp+var_10]"], [160, "lea rdx, [rax+1]"], [161, "mov [rbp+var_10], rdx"], [162, "movzx eax, byte ptr [rax]"], [163, "mov [rbp+var_11], al"], [164, "cmp [rbp+var_11], 0"], [165, "jnz loc_4031AF"], [166, "mov [rbp+var_20], 0"], [167, "sub [rbp+var_24], 1"], [168, "add [rbp+var_30], 8"], [169, "mov rax, [rbp+var_30]"], [170, "mov rax, [rax]"], [171, "test rax, rax"], [172, "jz short loc_403376"], [173, "mov rax, [rbp+var_30]"], [174, "mov rax, [rax]"], [175, "movzx eax, byte ptr [rax]"], [176, "cmp al, 2Dh "], [177, "jnz short loc_403376"], [178, "mov rax, [rbp+var_30]"], [179, "mov rax, [rax]"], [180, "add rax, 1"], [181, "movzx eax, byte ptr [rax]"], [182, "test al, al"], [183, "jnz loc_40316F"], [184, "cmp [rbp+var_24], 0"], [185, "jg short loc_403381"], [186, "call sub_402FF6"], [187, "mov rax, [rbp+var_30]"], [188, "mov rax, [rax]"], [189, "mov cs:qword_415540, rax"], [190, "mov cs:dword_496140, 0"], [191, "mov cs:dword_496144, 0FFFFFFFFh"], [192, "mov edi, offset aMemTxt"], [193, "call sub_402B2E"], [194, "mov edi, offset qword_415660"], [195, "call sub_4040D4"], [196, "mov cs:qword_415660, offset dword_496140"], [197, "mov edi, offset unk_415580"], [198, "call sub_405559"], [199, "mov edi, offset unk_41564C"], [200, "call sub_40A6A0"], [201, "mov edi, offset qword_415660"], [202, "call sub_4051D1"], [203, "mov eax, [rbp+var_4]"], [204, "mov esi, eax"], [205, "mov edi, offset qword_415660"], [206, "call sub_40523E"], [207, "mov cs:word_41558E, 0"], [208, "mov eax, [rbp+var_8]"], [209, "mov cs:dword_4155C0, eax"], [210, "mov cs:word_40F540, 1FFh"], [211, "mov edi, offset unk_415580"], [212, "call sub_408D5C"], [213, "mov edi, offset qword_415660"], [214, "call sub_4048F6"], [215, "mov eax, 0"], [216, "leave"], [217, "retn"]], "data_dep": [[37, 36], [38, 37], [39, 4], [40, 39], [41, 40], [42, 41], [43, 42], [44, 4], [45, 3], [47, 168], [47, 44], [48, 47], [49, 48], [50, 49], [51, 50], [52, 51], [53, 52], [54, 53], [55, 50], [56, 55], [57, 56], [58, 57], [59, 58], [60, 167], [60, 45], [61, 168], [61, 44], [65, 163], [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, 161], [80, 79], [82, 80], [83, 82], [84, 83], [85, 84], [86, 168], [86, 44], [86, 92], [86, 140], [86, 116], [87, 86], [88, 87], [89, 88], [90, 89], [91, 91], [91, 139], [91, 45], [91, 115], [91, 167], [92, 44], [92, 92], [92, 140], [92, 116], [92, 168], [93, 92], [94, 93], [98, 80], [99, 94], [99, 98], [101, 100], [103, 161], [104, 103], [106, 104], [107, 106], [108, 107], [109, 108], [110, 116], [110, 168], [110, 140], [110, 44], [110, 92], [111, 110], [112, 111], [113, 112], [114, 113], [115, 91], [115, 139], [115, 45], [115, 115], [115, 167], [116, 116], [116, 168], [116, 44], [116, 92], [116, 140], [117, 116], [118, 117], [122, 104], [123, 118], [123, 122], [125, 124], [127, 161], [128, 127], [130, 128], [131, 130], [132, 131], [133, 132], [134, 140], [134, 116], [134, 168], [134, 44], [134, 92], [135, 134], [136, 135], [137, 136], [138, 137], [139, 167], [139, 91], [139, 139], [139, 45], [139, 115], [140, 116], [140, 168], [140, 140], [140, 44], [140, 92], [141, 140], [142, 141], [146, 128], [147, 142], [147, 146], [149, 148], [152, 151], [155, 105], [155, 50], [155, 81], [155, 129], [155, 161], [156, 155], [157, 156], [158, 157], [159, 105], [159, 50], [159, 81], [159, 129], [159, 161], [160, 160], [160, 9], [160, 159], [161, 160], [162, 159], [163, 162], [164, 163], [165, 164], [167, 91], [167, 45], [167, 139], [167, 115], [167, 167], [168, 116], [168, 168], [168, 140], [168, 44], [168, 92], [169, 44], [169, 168], [170, 169], [171, 170], [172, 171], [173, 168], [173, 44], [174, 173], [175, 174], [176, 175], [177, 176], [178, 168], [178, 44], [179, 178], [180, 179], [181, 180], [182, 181], [183, 182], [184, 45], [184, 60], [184, 167], [185, 184], [187, 61], [187, 168], [187, 44], [188, 187], [189, 188], [203, 33], [203, 125], [204, 203], [208, 34], [208, 149], [209, 208], [217, 215]]}
{"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/6d884bbc662478f08ece497e031e389cf17a51473ef4d60b4d080aa5cb592c6d_6d884bbc662478f08ece497e031e389cf17a51473ef4d60b4d080aa5cb592c6d.jsonl.gz", "strip_func_name": "main", "query": "\n\n\n__int64 __fastcall main(int a1, char **a2, char **a3)\n{\nconst char *v3; // rax\nconst char *v4; // rax\nconst char *v5; // rax\nconst char *v6; // rax\nchar **v8; // [rsp+0h] [rbp-30h]\nint v9; // [rsp+Ch] [rbp-24h]\nconst char *v10; // [rsp+10h] [rbp-20h]\nconst char *v11; // [rsp+10h] [rbp-20h]\nconst char *v12; // [rsp+10h] [rbp-20h]\nchar v13; // [rsp+1Fh] [rbp-11h]\nconst char *v14; // [rsp+20h] [rbp-10h]\nint v15; // [rsp+28h] [rbp-8h]\nunsigned int v16; // [rsp+2Ch] [rbp-4h]\n\nmemset(&unk_415580, 0, 0x90uLL);\nmemset(qword_415560, 0, 0x18uLL);\nqword_4155A8 = (__int64)qword_415560;\nsub_402452(qword_415560, off_40F200);\nsub_402452(qword_415560, off_40F2C0);\nsub_402452(qword_415560, off_40F280);\nsub_402452(qword_415560, off_40F240);\nsub_402452(qword_415560, off_40F300);\nsub_402452(qword_415560, off_40F340);\ndword_415548 = 1110;\nv16 = 11100;\nv15 = 0;\nqword_415550 = (__int64 (*)(const char *, ...))sub_40261F;\nif ( !qword_496148 )\nqword_496148 = (__int64)*a2;\nv8 = a2 + 1;\nv9 = a1 - 1;\nwhile ( *v8 && **v8 == 45 && (*v8)[1] )\n{\nv14 = *v8 + 1;\nif ( *v14 == 45 && !(*v8)[2] )\n{\n--v9;\n++v8;\nbreak;\n}\nwhile ( *v14 )\n{\nv6 = v14++;\nv13 = *v6;\nif ( !*v6 )\nbreak;\nif ( v13 == 115 )\n{\nv12 = v14;\nv14 = (const char *)&unk_40B008;\nif ( *v12 )\n{\nv5 = v12;\n}\nelse\n{\nif ( !v8[1] )\nsub_402FF6();\n--v9;\nv5 = *++v8;\n}\nv15 = atoi(v5);\n}\nelse if ( v13 <= 115 )\n{\nif ( v13 == 112 )\n{\nv10 = v14;\nv14 = (const char *)&unk_40B008;\nif ( *v10 )\n{\nv3 = v10;\n}\nelse\n{\nif ( !v8[1] )\nsub_402FF6();\n--v9;\nv3 = *++v8;\n}\ndword_415548 = atoi(v3);\n}\nelse if ( v13 <= 112 )\n{\nif ( v13 == 100 )\n{\nstream = stderr;\nqword_415550 = (__int64 (*)(const char *, ...))sub_4026A5;\n}\nelse if ( v13 == 108 )\n{\nv11 = v14;\nv14 = (const char *)&unk_40B008;\nif ( *v11 )\n{\nv4 = v11;\n}\nelse\n{\nif ( !v8[1] )\nsub_402FF6();\n--v9;\nv4 = *++v8;\n}\nv16 = atoi(v4);\n}\n}\n}\n}\n--v9;\n++v8;\n}\nif ( v9 <= 0 )\nsub_402FF6();\nqword_415540 = (__int64)*v8;\ndword_496140 = 0;\ndword_496144 = -1;\nsub_402B2E(\"mem.txt\");\nsub_4040D4(&qword_415660);\nqword_415660 = (__int64)&dword_496140;\nsub_405559(&unk_415580);\nsub_40A6A0(&unk_41564C);\nsub_4051D1(&qword_415660);\nsub_40523E(&qword_415660, v16);\nword_41558E = 0;\ndword_4155C0 = v15;\nword_40F540[0] = 511;\nsub_408D5C(&unk_415580);\nsub_4048F6(&qword_415660);\nreturn 0LL;\n}\n\n\n\nQ:[a2,a3,a1,v8,v9,v12,v13,v14,v15,v16,sub_402452,sub_40261F,sub_402FF6,sub_4026A5,sub_402B2E,sub_4040D4,sub_405559,sub_40A6A0,sub_4051D1,sub_40523E,sub_408D5C,sub_4048F6,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v8': 'argva', 'v9': 'argca', 'v12': '_argt', 'v13': '_argc', 'v14': '_args', 'v15': 'sleep', 'v16': 'lport', 'sub_402452': 'busadddev', 'sub_40261F': 'quiet', 'sub_402FF6': 'usage', 'sub_4026A5': 'log', 'sub_402B2E': 'loadmem', 'sub_4040D4': 'inittv', 'sub_405559': 'reset', 'sub_40A6A0': 'ttyopen', 'sub_4051D1': 'handletvs', 'sub_40523E': 'servetv', 'sub_408D5C': 'run', 'sub_4048F6': 'closetv'}"}
ZBUFFv05_freeDCtx
cf0f13b18d786551ec60dbb0ef7c9a852a8a4469a59c2f8b44477ffb0cde585e
dimkr
papaw
NA
size_t ZBUFFv05_freeDCtx(ZBUFFv05_DCtx* zbc) { if (zbc==NULL) return 0; /* support free on null */ ZSTDv05_freeDCtx(zbc->zc); free(zbc->inBuff); free(zbc->outBuff); free(zbc); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42BC2B", "function_addr": 4373547, "binary_name": "cf0f13b18d786551ec60dbb0ef7c9a852a8a4469a59c2f8b44477ffb0cde585e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+ptr], rdi"], [4, "cmp [rbp+ptr], 0"], [5, "jnz short loc_42BC45"], [6, "mov eax, 0"], [7, "jmp short locret_42BC85"], [8, "mov rax, [rbp+ptr]"], [9, "mov rax, [rax]"], [10, "mov rdi, rax"], [11, "call sub_42931A"], [12, "mov rax, [rbp+ptr]"], [13, "mov rax, [rax+30h]"], [14, "mov rdi, rax"], [15, "call _free"], [16, "mov rax, [rbp+ptr]"], [17, "mov rax, [rax+48h]"], [18, "mov rdi, rax"], [19, "call _free"], [20, "mov rax, [rbp+ptr]"], [21, "mov rdi, rax"], [22, "call _free"], [23, "mov eax, 0"], [24, "leave"], [25, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 3], [9, 8], [10, 9], [12, 3], [13, 12], [14, 13], [16, 3], [17, 16], [18, 17], [20, 3], [21, 20], [25, 23], [25, 6]]}
{"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/cf0f13b18d786551ec60dbb0ef7c9a852a8a4469a59c2f8b44477ffb0cde585e_cf0f13b18d786551ec60dbb0ef7c9a852a8a4469a59c2f8b44477ffb0cde585e.jsonl.gz", "strip_func_name": "sub_42BC2B", "query": "\n\n\n__int64 __fastcall sub_42BC2B(void **a1)\n{\nif ( a1 )\n{\nsub_42931A(*a1);\nfree(a1[6]);\nfree(a1[9]);\nfree(a1);\n}\nreturn 0LL;\n}\n\n\n\nQ:[a1,sub_42BC2B,sub_42931A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'zbc', 'sub_42BC2B': 'ZBUFFv05_freeDCtx', 'sub_42931A': 'ZSTDv05_freeDCtx'}"}
eq_v_b
5b6938bad03d81d7259ab119b0f98b7e32e338e7e13a62d83a386dfdf4ee2b55
goodform
RediSearch
NA
extern int eq_v_b(struct SN_env * z, const symbol * p) { return eq_s_b(z, SIZE(p), p); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43AAE6", "function_addr": 4434662, "binary_name": "5b6938bad03d81d7259ab119b0f98b7e32e338e7e13a62d83a386dfdf4ee2b55.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, "sub rax, 4"], [7, "mov ecx, [rax]"], [8, "mov rdx, [rbp+var_10]"], [9, "mov rax, [rbp+var_8]"], [10, "mov esi, ecx"], [11, "mov rdi, rax"], [12, "call sub_43AA37"], [13, "leave"], [14, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 4], [9, 3], [10, 7], [11, 9], [14, 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/5b6938bad03d81d7259ab119b0f98b7e32e338e7e13a62d83a386dfdf4ee2b55_5b6938bad03d81d7259ab119b0f98b7e32e338e7e13a62d83a386dfdf4ee2b55.jsonl.gz", "strip_func_name": "sub_43AAE6", "query": "\n\n\n__int64 __fastcall sub_43AAE6(__int64 a1, _DWORD *a2)\n{\nreturn sub_43AA37(a1, *(a2 - 1), a2);\n}\n\n\n\nQ:[a1,a2,sub_43AAE6,sub_43AA37,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'z', 'a2': 'p', 'sub_43AAE6': 'eq_v_b', 'sub_43AA37': 'eq_s_b'}"}
tcp_arg
1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586
bluekitchen
btstack
NA
void tcp_arg(struct tcp_pcb *pcb, void *arg) { LWIP_ASSERT_CORE_LOCKED(); /* This function is allowed to be called for both listen pcbs and connection pcbs. */ if (pcb != NULL) { pcb->callback_arg = arg; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44BE7A", "function_addr": 4505210, "binary_name": "1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_10], rsi"], [4, "cmp [rbp+var_8], 0"], [5, "jz short loc_44BE99"], [6, "mov rax, [rbp+var_8]"], [7, "mov rdx, [rbp+var_10]"], [8, "mov [rax+18h], rdx"], [9, "nop"], [10, "pop rbp"], [11, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 2], [7, 3], [8, 7], [8, 6], [10, 0], [11, 6]]}
{"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_44BE7A", "query": "\n\n\n__int64 __fastcall sub_44BE7A(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\n\nif ( a1 )\n{\nresult = a1;\n*(_QWORD *)(a1 + 24) = a2;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_44BE7A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pcb', 'a2': 'arg', 'sub_44BE7A': 'tcp_arg'}"}
TF_Send
7ea79ef44d1199e7e92d0513b9875f744dc7d06642dec9ab60ebc3f1415eed97
MightyPork
TinyFrame
NA
bool _TF_FN TF_Send(TinyFrame *tf, TF_Msg *msg) { return TF_SendFrame(tf, msg, NULL, NULL, 0); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402B11", "function_addr": 4205329, "binary_name": "7ea79ef44d1199e7e92d0513b9875f744dc7d06642dec9ab60ebc3f1415eed97.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 rsi, [rbp+var_10]"], [6, "mov rax, [rbp+var_8]"], [7, "mov r8d, 0"], [8, "mov ecx, 0"], [9, "mov edx, 0"], [10, "mov rdi, rax"], [11, "call sub_402A76"], [12, "leave"], [13, "retn"]], "data_dep": [[5, 4], [6, 3], [10, 6], [13, 11]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/7ea79ef44d1199e7e92d0513b9875f744dc7d06642dec9ab60ebc3f1415eed97_7ea79ef44d1199e7e92d0513b9875f744dc7d06642dec9ab60ebc3f1415eed97.jsonl.gz", "strip_func_name": "sub_402B11", "query": "\n\n\n__int64 __fastcall sub_402B11(__int64 a1, __int64 a2)\n{\nreturn sub_402A76(a1, a2, 0LL, 0LL, 0);\n}\n\n\n\nQ:[a1,a2,sub_402B11,sub_402A76,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'tf_0', 'a2': 'msg', 'sub_402B11': 'TF_Send', 'sub_402A76': 'TF_SendFrame'}"}
pj_get_timestamp
98c1b283e9476c8bb95f42e4df7f4804ca1f7d9923e0f8202de3a9c87c2fc447
asterisk
pjproject-archive
NA
PJ_DEF(pj_status_t) pj_get_timestamp(pj_timestamp *ts) { struct timespec tp; if (clock_gettime(CLOCK_MONOTONIC, &tp) != 0) { return PJ_RETURN_OS_ERROR(pj_get_native_os_error()); } ts->u64 = tp.tv_sec; ts->u64 *= NSEC_PER_SEC; ts->u64 += tp.tv_nsec; return PJ_SUCCESS; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43529A", "function_addr": 4412058, "binary_name": "98c1b283e9476c8bb95f42e4df7f4804ca1f7d9923e0f8202de3a9c87c2fc447.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "lea rax, [rbp+tp]"], [5, "mov rsi, rax"], [6, "mov edi, 1"], [7, "call _clock_gettime"], [8, "test eax, eax"], [9, "jz short loc_4352DB"], [10, "call ___errno_location"], [11, "mov eax, [rax]"], [12, "test eax, eax"], [13, "jz short loc_4352D4"], [14, "call ___errno_location"], [15, "mov eax, [rax]"], [16, "add eax, 1D4C0h"], [17, "jmp short locret_435318"], [18, "mov eax, 0FFFFFFFFh"], [19, "jmp short locret_435318"], [20, "mov rax, [rbp+tp.tv_sec]"], [21, "mov rdx, rax"], [22, "mov rax, [rbp+var_18]"], [23, "mov [rax], rdx"], [24, "mov rax, [rbp+var_18]"], [25, "mov rax, [rax]"], [26, "imul rdx, rax, 3B9ACA00h"], [27, "mov rax, [rbp+var_18]"], [28, "mov [rax], rdx"], [29, "mov rax, [rbp+var_18]"], [30, "mov rdx, [rax]"], [31, "mov rax, [rbp+tp.tv_nsec]"], [32, "add rdx, rax"], [33, "mov rax, [rbp+var_18]"], [34, "mov [rax], rdx"], [35, "mov eax, 0"], [36, "leave"], [37, "retn"]], "data_dep": [[5, 4], [8, 7], [9, 8], [11, 10], [12, 11], [13, 12], [15, 14], [16, 15], [21, 20], [22, 3], [23, 22], [23, 21], [24, 3], [25, 23], [25, 24], [26, 21], [26, 25], [27, 3], [28, 27], [28, 26], [29, 3], [30, 29], [30, 28], [32, 31], [32, 30], [33, 3], [34, 33], [34, 32], [37, 18], [37, 35], [37, 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/98c1b283e9476c8bb95f42e4df7f4804ca1f7d9923e0f8202de3a9c87c2fc447_98c1b283e9476c8bb95f42e4df7f4804ca1f7d9923e0f8202de3a9c87c2fc447.jsonl.gz", "strip_func_name": "sub_43529A", "query": "\n\n\n__int64 __fastcall sub_43529A(__time_t *a1)\n{\n__int64 result; // rax\nstruct timespec tp; // [rsp+10h] [rbp-10h] BYREF\n\nif ( clock_gettime(1, &tp) )\n{\nif ( *__errno_location() )\nresult = (unsigned int)(*__errno_location() + 120000);\nelse\nresult = 0xFFFFFFFFLL;\n}\nelse\n{\n*a1 = tp.tv_sec;\n*a1 *= 1000000000LL;\n*a1 += tp.tv_nsec;\nresult = 0LL;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_43529A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ts', 'sub_43529A': 'pj_get_timestamp'}"}
pj_str_unescape
a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8
AonCyberLabs
D-Modem
NA
PJ_DEF(pj_str_t) pj_str_unescape( pj_pool_t *pool, const pj_str_t *src_str) { char *src = src_str->ptr; char *end = src + src_str->slen; pj_str_t dst_str; char *dst; if (pj_strchr(src_str, '%')==NULL) return *src_str; dst = dst_str.ptr = (char*) pj_pool_alloc(pool, src_str->slen); while (src != end) { if (*src == '%' && src < end-2 && pj_isxdigit(*(src+1)) && pj_isxdigit(*(src+2))) { *dst = (pj_uint8_t) ((pj_hex_digit_to_val(*(src+1)) << 4) + pj_hex_digit_to_val(*(src+2))); ++dst; src += 3; } else { *dst++ = *src++; } } dst_str.slen = dst - dst_str.ptr; return dst_str; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_46FC92", "function_addr": 4652178, "binary_name": "a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8.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_50], rsi"], [6, "mov rax, [rbp+var_50]"], [7, "mov rax, [rax]"], [8, "mov [rbp+var_18], rax"], [9, "mov rax, [rbp+var_50]"], [10, "mov rax, [rax+8]"], [11, "mov rdx, rax"], [12, "mov rax, [rbp+var_18]"], [13, "add rax, rdx"], [14, "mov [rbp+var_28], rax"], [15, "mov rax, [rbp+var_50]"], [16, "mov esi, 25h "], [17, "mov rdi, rax"], [18, "call sub_46FC4D"], [19, "test rax, rax"], [20, "jnz short loc_46FCEA"], [21, "mov rax, [rbp+var_50]"], [22, "mov rdx, [rax+8]"], [23, "mov rax, [rax]"], [24, "jmp loc_46FDEB"], [25, "mov rax, [rbp+var_50]"], [26, "mov rax, [rax+8]"], [27, "mov rdx, rax"], [28, "mov rax, [rbp+var_48]"], [29, "mov rsi, rdx"], [30, "mov rdi, rax"], [31, "call sub_47D0E6"], [32, "mov [rbp+var_40], rax"], [33, "mov rax, [rbp+var_40]"], [34, "mov [rbp+var_20], rax"], [35, "jmp loc_46FDC6"], [36, "mov rax, [rbp+var_18]"], [37, "movzx eax, byte ptr [rax]"], [38, "cmp al, 25h "], [39, "jnz loc_46FDA9"], [40, "mov rax, [rbp+var_28]"], [41, "sub rax, 2"], [42, "cmp [rbp+var_18], rax"], [43, "jnb short loc_46FDA9"], [44, "mov rax, [rbp+var_18]"], [45, "add rax, 1"], [46, "movzx eax, byte ptr [rax]"], [47, "movzx eax, al"], [48, "mov edi, eax"], [49, "call sub_46FBA6"], [50, "test eax, eax"], [51, "jz short loc_46FDA9"], [52, "mov rax, [rbp+var_18]"], [53, "add rax, 2"], [54, "movzx eax, byte ptr [rax]"], [55, "movzx eax, al"], [56, "mov edi, eax"], [57, "call sub_46FBA6"], [58, "test eax, eax"], [59, "jz short loc_46FDA9"], [60, "mov rax, [rbp+var_18]"], [61, "add rax, 1"], [62, "movzx eax, byte ptr [rax]"], [63, "movzx eax, al"], [64, "mov edi, eax"], [65, "call sub_46FC17"], [66, "shl eax, 4"], [67, "mov ebx, eax"], [68, "mov rax, [rbp+var_18]"], [69, "add rax, 2"], [70, "movzx eax, byte ptr [rax]"], [71, "movzx eax, al"], [72, "mov edi, eax"], [73, "call sub_46FC17"], [74, "add eax, ebx"], [75, "mov edx, eax"], [76, "mov rax, [rbp+var_20]"], [77, "mov [rax], dl"], [78, "add [rbp+var_20], 1"], [79, "add [rbp+var_18], 3"], [80, "jmp short loc_46FDC6"], [81, "mov rdx, [rbp+var_18]"], [82, "lea rax, [rdx+1]"], [83, "mov [rbp+var_18], rax"], [84, "mov rax, [rbp+var_20]"], [85, "lea rcx, [rax+1]"], [86, "mov [rbp+var_20], rcx"], [87, "movzx edx, byte ptr [rdx]"], [88, "mov [rax], dl"], [89, "mov rax, [rbp+var_18]"], [90, "cmp rax, [rbp+var_28]"], [91, "jnz loc_46FD15"], [92, "mov rdx, [rbp+var_40]"], [93, "mov rax, [rbp+var_20]"], [94, "sub rax, rdx"], [95, "mov [rbp+var_38], rax"], [96, "mov rax, [rbp+var_40]"], [97, "mov rdx, [rbp+var_38]"], [98, "mov rbx, [rbp+var_8]"], [99, "leave"], [100, "retn"]], "data_dep": [[6, 5], [7, 6], [8, 7], [9, 5], [10, 9], [11, 10], [12, 8], [13, 12], [13, 11], [14, 13], [15, 5], [17, 15], [19, 18], [20, 19], [21, 5], [22, 21], [23, 21], [25, 5], [26, 25], [27, 26], [28, 4], [29, 27], [30, 28], [32, 31], [33, 32], [34, 33], [36, 79], [36, 8], [36, 83], [37, 88], [37, 36], [37, 77], [38, 37], [39, 38], [40, 14], [41, 40], [42, 41], [42, 79], [42, 8], [42, 83], [43, 42], [44, 79], [44, 8], [44, 83], [45, 44], [46, 77], [46, 45], [46, 88], [47, 46], [48, 47], [50, 49], [51, 50], [52, 79], [52, 8], [52, 83], [53, 52], [54, 77], [54, 88], [54, 53], [55, 54], [56, 55], [58, 57], [59, 58], [60, 83], [60, 79], [60, 8], [61, 60], [62, 77], [62, 61], [62, 88], [63, 62], [64, 63], [66, 65], [67, 66], [68, 79], [68, 8], [68, 83], [69, 68], [70, 77], [70, 88], [70, 69], [71, 70], [72, 71], [74, 73], [74, 67], [75, 74], [76, 78], [76, 34], [76, 86], [77, 76], [77, 75], [78, 34], [78, 86], [78, 78], [79, 83], [79, 79], [79, 8], [81, 79], [81, 8], [81, 83], [82, 58], [82, 88], [82, 81], [82, 37], [82, 41], [82, 50], [82, 77], [83, 82], [84, 86], [84, 78], [84, 34], [85, 84], [85, 77], [85, 88], [85, 85], [86, 85], [87, 77], [87, 88], [87, 81], [88, 87], [88, 84], [89, 79], [89, 8], [89, 83], [90, 14], [90, 89], [91, 90], [92, 32], [93, 86], [93, 78], [93, 34], [94, 93], [94, 92], [95, 94], [96, 32], [97, 95], [100, 23], [100, 96]]}
{"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_46FC92", "query": "\n\n\n_BYTE *__fastcall sub_46FC92(__int64 a1, _QWORD *a2)\n{\nint v3; // ebx\n_BYTE *v4; // rdx\n_BYTE *v5; // rax\n__int64 v6; // [rsp+10h] [rbp-40h]\n_BYTE *v7; // [rsp+28h] [rbp-28h]\n_BYTE *v8; // [rsp+30h] [rbp-20h]\n_BYTE *v9; // [rsp+38h] [rbp-18h]\n\nv9 = (_BYTE *)*a2;\nv7 = (_BYTE *)(a2[1] + *a2);\nif ( !sub_46FC4D((__int64)a2, 37) )\nreturn (_BYTE *)*a2;\nv6 = sub_47D0E6(a1, a2[1]);\nv8 = (_BYTE *)v6;\nwhile ( v9 != v7 )\n{\nif ( *v9 == 37 && v9 < v7 - 2 && (unsigned int)sub_46FBA6(v9[1]) && (unsigned int)sub_46FBA6(v9[2]) )\n{\nv3 = 16 * sub_46FC17(v9[1]);\n*v8++ = v3 + sub_46FC17(v9[2]);\nv9 += 3;\n}\nelse\n{\nv4 = v9++;\nv5 = v8++;\n*v5 = *v4;\n}\n}\nreturn (_BYTE *)v6;\n}\n\n\n\nQ:[a1,a2,v5,v6,v7,v8,v9,sub_46FC92,sub_46FC4D,sub_47D0E6,sub_46FBA6,sub_46FC17,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pool', 'a2': 'src_str', 'v5': 'result', 'v6': 'dst_str', 'v7': 'end', 'v8': 'dst', 'v9': 'src', 'sub_46FC92': 'pj_str_unescape', 'sub_46FC4D': 'pj_strchr_4', 'sub_47D0E6': 'pj_pool_alloc', 'sub_46FBA6': 'pj_isxdigit_0', 'sub_46FC17': 'pj_hex_digit_to_val_0'}"}
gas_serv_dialog_clear
20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640
sonic-net
sonic-buildimage
NA
void gas_serv_dialog_clear(struct gas_dialog_info *dia) { wpabuf_free(dia->sd_resp); os_memset(dia, 0, sizeof(*dia)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45D893", "function_addr": 4577427, "binary_name": "20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+s], rdi"], [4, "mov rax, [rbp+s]"], [5, "mov rax, [rax+8]"], [6, "mov rdi, rax"], [7, "call sub_47190A"], [8, "mov rax, [rbp+s]"], [9, "mov edx, 30h "], [10, "mov esi, 0"], [11, "mov rdi, rax"], [12, "call _memset"], [13, "nop"], [14, "leave"], [15, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [8, 3], [11, 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/20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640_20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640.jsonl.gz", "strip_func_name": "sub_45D893", "query": "\n\n\nvoid *__fastcall sub_45D893(_QWORD *a1)\n{\nsub_47190A(a1[1]);\nreturn memset(a1, 0, 0x30uLL);\n}\n\n\n\nQ:[a1,sub_45D893,sub_47190A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dia', 'sub_45D893': 'gas_serv_dialog_clear', 'sub_47190A': 'wpabuf_free'}"}
SPIFFS_unmount
52304f58fcc9ab3a0cdd7d4aed0f9528af9d9ebd823601e936453689219b88b5
lujji
esp-stm8-flasher
NA
void SPIFFS_unmount(spiffs *fs) { if (!SPIFFS_CHECK_CFG(fs) || !SPIFFS_CHECK_MOUNT(fs)) return; SPIFFS_LOCK(fs); u32_t i; spiffs_fd *fds = (spiffs_fd *)fs->fd_space; for (i = 0; i < fs->fd_count; i++) { spiffs_fd *cur_fd = &fds[i]; if (cur_fd->file_nbr != 0) { #if SPIFFS_CACHE (void)spiffs_fflush_cache(fs, cur_fd->file_nbr); #endif spiffs_fd_return(fs, cur_fd->file_nbr); } } fs->mounted = 0; SPIFFS_UNLOCK(fs); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40204B", "function_addr": 4202571, "binary_name": "52304f58fcc9ab3a0cdd7d4aed0f9528af9d9ebd823601e936453689219b88b5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov rax, [rbp+var_28]"], [5, "mov eax, [rax+0A8h]"], [6, "cmp eax, 20090315h"], [7, "jnz loc_40210F"], [8, "mov rax, [rbp+var_28]"], [9, "movzx eax, byte ptr [rax+98h]"], [10, "test al, al"], [11, "jz loc_40210F"], [12, "mov rax, [rbp+var_28]"], [13, "mov rax, [rax+58h]"], [14, "mov [rbp+var_10], rax"], [15, "mov [rbp+var_4], 0"], [16, "jmp short loc_4020F6"], [17, "mov edx, [rbp+var_4]"], [18, "mov rax, rdx"], [19, "shl rax, 3"], [20, "sub rax, rdx"], [21, "shl rax, 3"], [22, "mov rdx, rax"], [23, "mov rax, [rbp+var_10]"], [24, "add rax, rdx"], [25, "mov [rbp+var_18], rax"], [26, "mov rax, [rbp+var_18]"], [27, "movzx eax, word ptr [rax+8]"], [28, "test ax, ax"], [29, "jz short loc_4020F2"], [30, "mov rax, [rbp+var_18]"], [31, "movzx eax, word ptr [rax+8]"], [32, "movsx edx, ax"], [33, "mov rax, [rbp+var_28]"], [34, "mov esi, edx"], [35, "mov rdi, rax"], [36, "call sub_403A45"], [37, "mov rax, [rbp+var_18]"], [38, "movzx eax, word ptr [rax+8]"], [39, "movsx edx, ax"], [40, "mov rax, [rbp+var_28]"], [41, "mov esi, edx"], [42, "mov rdi, rax"], [43, "call sub_410078"], [44, "add [rbp+var_4], 1"], [45, "mov rax, [rbp+var_28]"], [46, "mov eax, [rax+60h]"], [47, "cmp [rbp+var_4], eax"], [48, "jb short loc_402094"], [49, "mov rax, [rbp+var_28]"], [50, "mov byte ptr [rax+98h], 0"], [51, "jmp short locret_402110"], [52, "nop"], [53, "leave"], [54, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 3], [9, 8], [10, 9], [11, 10], [12, 3], [13, 12], [14, 13], [17, 15], [17, 44], [18, 17], [19, 18], [20, 17], [20, 19], [21, 20], [22, 21], [23, 14], [24, 23], [24, 22], [25, 24], [26, 25], [27, 26], [28, 27], [29, 28], [30, 25], [31, 30], [32, 31], [33, 3], [34, 32], [35, 33], [37, 25], [38, 37], [39, 38], [40, 3], [41, 39], [42, 40], [44, 44], [44, 15], [45, 3], [46, 45], [47, 46], [47, 15], [47, 44], [48, 47], [49, 3], [50, 49], [54, 10], [54, 49], [54, 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/52304f58fcc9ab3a0cdd7d4aed0f9528af9d9ebd823601e936453689219b88b5_52304f58fcc9ab3a0cdd7d4aed0f9528af9d9ebd823601e936453689219b88b5.jsonl.gz", "strip_func_name": "sub_40204B", "query": "\n\n\n__int64 __fastcall sub_40204B(__int64 a1)\n{\n__int64 result; // rax\n__int64 v2; // [rsp+18h] [rbp-18h]\n__int64 v3; // [rsp+20h] [rbp-10h]\nunsigned int i; // [rsp+2Ch] [rbp-4h]\n\nresult = *(unsigned int *)(a1 + 168);\nif ( (_DWORD)result == 537461525 )\n{\nresult = *(unsigned __int8 *)(a1 + 152);\nif ( (_BYTE)result )\n{\nv3 = *(_QWORD *)(a1 + 88);\nfor ( i = 0; i < *(_DWORD *)(a1 + 96); ++i )\n{\nv2 = 56LL * i + v3;\nif ( *(_WORD *)(v2 + 8) )\n{\nsub_403A45(a1, (unsigned int)*(__int16 *)(v2 + 8));\nsub_410078(a1, (unsigned int)*(__int16 *)(v2 + 8));\n}\n}\nresult = a1;\n*(_BYTE *)(a1 + 152) = 0;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,sub_40204B,sub_403A45,sub_410078,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fs_0', 'v2': 'cur_fd', 'v3': 'fds', 'sub_40204B': 'SPIFFS_unmount', 'sub_403A45': 'spiffs_fflush_cache', 'sub_410078': 'spiffs_fd_return'}"}
mini_openlog
2e04690df87f941ea47afc05fca43c9cf16300130874a53a52ba8ad933f0e1ba
dm-vdo
vdo
NA
void mini_openlog(const char *ident, int option, int facility) { uds_lock_mutex(&mutex); close_locked(); UDS_FREE(log_ident); if (uds_duplicate_string(ident, NULL, &log_ident) != UDS_SUCCESS) { // on failure, NULL is okay log_ident = NULL; } log_option = option; default_facility = facility; if (log_option & LOG_NDELAY) { open_socket_locked(); } uds_unlock_mutex(&mutex); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4044F2", "function_addr": 4211954, "binary_name": "2e04690df87f941ea47afc05fca43c9cf16300130874a53a52ba8ad933f0e1ba.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_C], esi"], [5, "mov [rbp+var_10], edx"], [6, "lea rdi, unk_40D480"], [7, "call sub_4056F0"], [8, "call sub_404429"], [9, "mov rax, cs:qword_40D5D8"], [10, "mov rdi, rax"], [11, "call sub_404267"], [12, "mov rax, [rbp+var_8]"], [13, "lea rdx, qword_40D5D8"], [14, "mov esi, 0"], [15, "mov rdi, rax"], [16, "call sub_40433A"], [17, "test eax, eax"], [18, "jz short loc_40454B"], [19, "mov cs:qword_40D5D8, 0"], [20, "mov eax, [rbp+var_C]"], [21, "mov cs:dword_40D5E0, eax"], [22, "mov eax, [rbp+var_10]"], [23, "mov cs:dword_40D4AC, eax"], [24, "mov eax, cs:dword_40D5E0"], [25, "and eax, 8"], [26, "test eax, eax"], [27, "jz short loc_40456F"], [28, "call sub_404452"], [29, "lea rdi, unk_40D480"], [30, "call sub_40575A"], [31, "nop"], [32, "leave"], [33, "retn"]], "data_dep": [[10, 9], [12, 3], [15, 12], [17, 16], [18, 17], [20, 4], [21, 20], [22, 5], [23, 22], [24, 21], [25, 24], [26, 25], [27, 26], [29, 15], [33, 30]]}
{"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/2e04690df87f941ea47afc05fca43c9cf16300130874a53a52ba8ad933f0e1ba_2e04690df87f941ea47afc05fca43c9cf16300130874a53a52ba8ad933f0e1ba.jsonl.gz", "strip_func_name": "sub_4044F2", "query": "\n\n\n__int64 __fastcall sub_4044F2(const char *a1, int a2, int a3)\n{\nsub_4056F0(&unk_40D480);\nsub_404429();\nsub_404267((void *)qword_40D5D8);\nif ( (unsigned int)sub_40433A(a1, 0LL, (void **)&qword_40D5D8) )\nqword_40D5D8 = 0LL;\ndword_40D5E0 = a2;\ndword_40D4AC = a3;\nif ( (a2 & 8) != 0 )\nsub_404452();\nreturn sub_40575A(&unk_40D480);\n}\n\n\n\nQ:[a3,a1,a2,sub_4044F2,sub_4056F0,sub_404429,sub_404267,sub_40433A,sub_404452,sub_40575A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'facility', 'a1': 'ident', 'a2': 'option', 'sub_4044F2': 'mini_openlog', 'sub_4056F0': 'uds_lock_mutex', 'sub_404429': 'close_locked', 'sub_404267': 'uds_free_memory', 'sub_40433A': 'uds_duplicate_string', 'sub_404452': 'open_socket_locked', 'sub_40575A': 'uds_unlock_mutex'}"}
UG_WindowSetStyle
3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107
digitalbitbox
bitbox02-firmware
NA
UG_RESULT UG_WindowSetStyle( UG_WINDOW* wnd, UG_U8 style ) { if ( (wnd != NULL) && (wnd->state & WND_STATE_VALID) ) { /* 3D or 2D? */ if ( style & WND_STYLE_3D ) { wnd->style |= WND_STYLE_3D; } else { wnd->style &= ~WND_STYLE_3D; } /* Show title-bar? */ if ( style & WND_STYLE_SHOW_TITLE ) { wnd->style |= WND_STYLE_SHOW_TITLE; } else { wnd->style &= ~WND_STYLE_SHOW_TITLE; } wnd->state |= WND_STATE_UPDATE; return UG_RESULT_OK; } return UG_RESULT_FAIL; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4060CD", "function_addr": 4219085, "binary_name": "3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov eax, esi"], [4, "mov [rbp+var_C], al"], [5, "cmp [rbp+var_8], 0"], [6, "jz loc_406180"], [7, "mov rax, [rbp+var_8]"], [8, "movzx eax, byte ptr [rax+10h]"], [9, "movzx eax, al"], [10, "and eax, 2"], [11, "test eax, eax"], [12, "jz loc_406180"], [13, "movzx eax, [rbp+var_C]"], [14, "and eax, 1"], [15, "test eax, eax"], [16, "jz short loc_40611C"], [17, "mov rax, [rbp+var_8]"], [18, "movzx eax, byte ptr [rax+24h]"], [19, "or eax, 1"], [20, "mov edx, eax"], [21, "mov rax, [rbp+var_8]"], [22, "mov [rax+24h], dl"], [23, "jmp short loc_406130"], [24, "mov rax, [rbp+var_8]"], [25, "movzx eax, byte ptr [rax+24h]"], [26, "and eax, 0FFFFFFFEh"], [27, "mov edx, eax"], [28, "mov rax, [rbp+var_8]"], [29, "mov [rax+24h], dl"], [30, "movzx eax, [rbp+var_C]"], [31, "and eax, 2"], [32, "test eax, eax"], [33, "jz short loc_406151"], [34, "mov rax, [rbp+var_8]"], [35, "movzx eax, byte ptr [rax+24h]"], [36, "or eax, 2"], [37, "mov edx, eax"], [38, "mov rax, [rbp+var_8]"], [39, "mov [rax+24h], dl"], [40, "jmp short loc_406165"], [41, "mov rax, [rbp+var_8]"], [42, "movzx eax, byte ptr [rax+24h]"], [43, "and eax, 0FFFFFFFDh"], [44, "mov edx, eax"], [45, "mov rax, [rbp+var_8]"], [46, "mov [rax+24h], dl"], [47, "mov rax, [rbp+var_8]"], [48, "movzx eax, byte ptr [rax+10h]"], [49, "or eax, 20h"], [50, "mov edx, eax"], [51, "mov rax, [rbp+var_8]"], [52, "mov [rax+10h], dl"], [53, "mov eax, 0"], [54, "jmp short loc_406185"], [55, "mov eax, 0FFFFFFFFh"], [56, "pop rbp"], [57, "retn"]], "data_dep": [[4, 3], [5, 2], [6, 5], [7, 2], [8, 7], [9, 8], [10, 9], [11, 10], [12, 11], [13, 4], [14, 13], [15, 14], [16, 15], [17, 2], [18, 17], [19, 18], [20, 19], [21, 2], [22, 20], [22, 21], [24, 2], [25, 24], [26, 25], [27, 26], [28, 2], [29, 28], [29, 27], [30, 4], [31, 30], [32, 31], [33, 32], [34, 2], [35, 39], [35, 29], [35, 22], [35, 34], [36, 35], [37, 36], [38, 2], [39, 38], [39, 37], [41, 2], [42, 29], [42, 41], [42, 22], [42, 46], [43, 42], [44, 43], [45, 2], [46, 45], [46, 44], [47, 2], [48, 39], [48, 29], [48, 47], [48, 22], [48, 46], [48, 52], [49, 48], [50, 49], [51, 2], [52, 51], [52, 50], [56, 0], [57, 53], [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/3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107_3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.jsonl.gz", "strip_func_name": "sub_4060CD", "query": "\n\n\n__int64 __fastcall sub_4060CD(__int64 a1, char a2)\n{\nif ( !a1 || (*(_BYTE *)(a1 + 16) & 2) == 0 )\nreturn 0xFFFFFFFFLL;\nif ( (a2 & 1) != 0 )\n*(_BYTE *)(a1 + 36) |= 1u;\nelse\n*(_BYTE *)(a1 + 36) &= 0xFEu;\nif ( (a2 & 2) != 0 )\n*(_BYTE *)(a1 + 36) |= 2u;\nelse\n*(_BYTE *)(a1 + 36) &= 0xFDu;\n*(_BYTE *)(a1 + 16) |= 0x20u;\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,sub_4060CD,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'wnd', 'a2': 'style', 'sub_4060CD': 'UG_WindowSetStyle'}"}
die
0cb64094e11d75eb2aabf56dc8fb0d2c841aaa452a562a77867d8e1ee66d2f2c
0x36
BinTrace
NA
void die(const char *msg) { perror(msg); exit(errno); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403074", "function_addr": 4206708, "binary_name": "0cb64094e11d75eb2aabf56dc8fb0d2c841aaa452a562a77867d8e1ee66d2f2c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+s], rdi"], [4, "mov rax, [rbp+s]"], [5, "mov rdi, rax"], [6, "call _perror"], [7, "call ___errno_location"], [8, "mov eax, [rax]"], [9, "mov edi, eax"], [10, "call _exit"]], "data_dep": [[4, 3], [5, 4], [8, 7], [9, 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/0cb64094e11d75eb2aabf56dc8fb0d2c841aaa452a562a77867d8e1ee66d2f2c_0cb64094e11d75eb2aabf56dc8fb0d2c841aaa452a562a77867d8e1ee66d2f2c.jsonl.gz", "strip_func_name": "sub_403074", "query": "\n\n\nvoid __fastcall __noreturn sub_403074(const char *a1)\n{\nint *v1; // rax\n\nperror(a1);\nv1 = __errno_location();\nexit(*v1);\n}\n\n\n\nQ:[a1,sub_403074,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'msg', 'sub_403074': 'die'}"}
do_cmd_stop
3e328d3df154d084aac6496189e9c480505856acdf21e0a7e75ceb5c4c49e977
naver
nbase-arc
NA
static void do_cmd_stop (masterState * ms) { if (ms->workload_started) { workerCmd cmd; cmd.command = CMD_STOP; do_worker_cmd (ms, &cmd); ms->workload_started = 0; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405E7A", "function_addr": 4218490, "binary_name": "3e328d3df154d084aac6496189e9c480505856acdf21e0a7e75ceb5c4c49e977.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 2D0h"], [3, "mov [rbp+var_2C8], rdi"], [4, "mov rax, [rbp+var_2C8]"], [5, "mov eax, [rax+8]"], [6, "test eax, eax"], [7, "jz short loc_405ECB"], [8, "mov [rbp+var_2C0], 4"], [9, "lea rdx, [rbp+var_2C0]"], [10, "mov rax, [rbp+var_2C8]"], [11, "mov rsi, rdx"], [12, "mov rdi, rax"], [13, "call sub_40529E"], [14, "mov rax, [rbp+var_2C8]"], [15, "mov dword ptr [rax+8], 0"], [16, "nop"], [17, "leave"], [18, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [9, 8], [10, 3], [11, 9], [12, 10], [14, 3], [15, 14], [18, 6], [18, 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/3e328d3df154d084aac6496189e9c480505856acdf21e0a7e75ceb5c4c49e977_3e328d3df154d084aac6496189e9c480505856acdf21e0a7e75ceb5c4c49e977.jsonl.gz", "strip_func_name": "sub_405E7A", "query": "\n\n\n__int64 __fastcall sub_405E7A(__int64 a1)\n{\n__int64 result; // rax\nint v2[176]; // [rsp+10h] [rbp-2C0h] BYREF\n\nresult = *(unsigned int *)(a1 + 8);\nif ( (_DWORD)result )\n{\nv2[0] = 4;\nsub_40529E(a1, (__int64)v2);\nresult = a1;\n*(_DWORD *)(a1 + 8) = 0;\n}\nreturn result;\n}\n\n\n\nQ:[a1,v2,sub_405E7A,sub_40529E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ms', 'v2': 'cmd', 'sub_405E7A': 'do_cmd_stop', 'sub_40529E': 'do_worker_cmd'}"}
usage_with_options_internal
8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590
msysgit
msysgit
NA
static int usage_with_options_internal(struct parse_opt_ctx_t *ctx, const char * const *usagestr, const struct option *opts, int full, int err) { FILE *outfile = err ? stderr : stdout; if (!usagestr) return PARSE_OPT_HELP; if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL) fprintf(outfile, "cat <<\\EOF\n"); fprintf_ln(outfile, _("usage: %s"), _(*usagestr++)); while (*usagestr && **usagestr) /* TRANSLATORS: the colon here should align with the one in "usage: %s" translation */ fprintf_ln(outfile, _(" or: %s"), _(*usagestr++)); while (*usagestr) { if (**usagestr) fprintf_ln(outfile, _(" %s"), _(*usagestr)); else putchar('\n'); usagestr++; } if (opts->type != OPTION_GROUP) fputc('\n', outfile); for (; opts->type != OPTION_END; opts++) { size_t pos; int pad; if (opts->type == OPTION_GROUP) { fputc('\n', outfile); if (*opts->help) fprintf(outfile, "%s\n", _(opts->help)); continue; } if (!full && (opts->flags & PARSE_OPT_HIDDEN)) continue; pos = fprintf(outfile, " "); if (opts->short_name) { if (opts->flags & PARSE_OPT_NODASH) pos += fprintf(outfile, "%c", opts->short_name); else pos += fprintf(outfile, "-%c", opts->short_name); } if (opts->long_name && opts->short_name) pos += fprintf(outfile, ", "); if (opts->long_name) pos += fprintf(outfile, "--%s", opts->long_name); if (opts->type == OPTION_NUMBER) pos += utf8_fprintf(outfile, _("-NUM")); if ((opts->flags & PARSE_OPT_LITERAL_ARGHELP) || !(opts->flags & PARSE_OPT_NOARG)) pos += usage_argh(opts, outfile); if (pos <= USAGE_OPTS_WIDTH) pad = USAGE_OPTS_WIDTH - pos; else { fputc('\n', outfile); pad = USAGE_OPTS_WIDTH; } fprintf(outfile, "%*s%s\n", pad + USAGE_GAP, "", _(opts->help)); } fputc('\n', outfile); if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL) fputs("EOF\n", outfile); return PARSE_OPT_HELP; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_492318", "function_addr": 4793112, "binary_name": "8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.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+var_40], rsi"], [6, "mov [rbp+var_48], rdx"], [7, "mov [rbp+var_4C], ecx"], [8, "mov [rbp+var_50], r8d"], [9, "cmp [rbp+var_50], 0"], [10, "jz short loc_492343"], [11, "mov rax, cs:stderr"], [12, "jmp short loc_49234A"], [13, "mov rax, cs:stdout"], [14, "mov [rbp+s], rax"], [15, "cmp [rbp+var_40], 0"], [16, "jnz short loc_49235F"], [17, "mov eax, 0FFFFFFFFh"], [18, "jmp loc_492744"], [19, "cmp [rbp+var_50], 0"], [20, "jnz short loc_492397"], [21, "cmp [rbp+var_38], 0"], [22, "jz short loc_492397"], [23, "mov rax, [rbp+var_38]"], [24, "mov eax, [rax+20h]"], [25, "and eax, 100h"], [26, "test eax, eax"], [27, "jz short loc_492397"], [28, "mov rax, [rbp+s]"], [29, "mov rcx, rax"], [30, "mov edx, 0Bh"], [31, "mov esi, 1"], [32, "mov edi, offset aCatEof"], [33, "call _fwrite"], [34, "mov rax, [rbp+var_40]"], [35, "lea rdx, [rax+8]"], [36, "mov [rbp+var_40], rdx"], [37, "mov rax, [rax]"], [38, "mov rdi, rax"], [39, "call sub_490B7C"], [40, "mov rbx, rax"], [41, "mov edi, offset aUsageS"], [42, "call sub_490B7C"], [43, "mov rcx, rax"], [44, "mov rax, [rbp+s]"], [45, "mov rdx, rbx"], [46, "mov rsi, rcx"], [47, "mov rdi, rax"], [48, "mov eax, 0"], [49, "call sub_4428FA"], [50, "jmp short loc_492415"], [51, "mov rax, [rbp+var_40]"], [52, "lea rdx, [rax+8]"], [53, "mov [rbp+var_40], rdx"], [54, "mov rax, [rax]"], [55, "mov rdi, rax"], [56, "call sub_490B7C"], [57, "mov rbx, rax"], [58, "mov edi, offset aOrS"], [59, "call sub_490B7C"], [60, "mov rcx, rax"], [61, "mov rax, [rbp+s]"], [62, "mov rdx, rbx"], [63, "mov rsi, rcx"], [64, "mov rdi, rax"], [65, "mov eax, 0"], [66, "call sub_4428FA"], [67, "mov rax, [rbp+var_40]"], [68, "mov rax, [rax]"], [69, "test rax, rax"], [70, "jz short loc_492486"], [71, "mov rax, [rbp+var_40]"], [72, "mov rax, [rax]"], [73, "movzx eax, byte ptr [rax]"], [74, "test al, al"], [75, "jnz short loc_4923D7"], [76, "jmp short loc_492486"], [77, "mov rax, [rbp+var_40]"], [78, "mov rax, [rax]"], [79, "movzx eax, byte ptr [rax]"], [80, "test al, al"], [81, "jz short loc_492477"], [82, "mov rax, [rbp+var_40]"], [83, "mov rax, [rax]"], [84, "mov rdi, rax"], [85, "call sub_490B7C"], [86, "mov rbx, rax"], [87, "mov edi, offset aS_37"], [88, "call sub_490B7C"], [89, "mov rcx, rax"], [90, "mov rax, [rbp+s]"], [91, "mov rdx, rbx"], [92, "mov rsi, rcx"], [93, "mov rdi, rax"], [94, "mov eax, 0"], [95, "call sub_4428FA"], [96, "jmp short loc_492481"], [97, "mov edi, 0Ah"], [98, "call _putchar"], [99, "add [rbp+var_40], 8"], [100, "mov rax, [rbp+var_40]"], [101, "mov rax, [rax]"], [102, "test rax, rax"], [103, "jnz short loc_492431"], [104, "mov rax, [rbp+var_48]"], [105, "mov eax, [rax]"], [106, "cmp eax, 2"], [107, "jz loc_4926E8"], [108, "mov rax, [rbp+s]"], [109, "mov rsi, rax"], [110, "mov edi, 0Ah"], [111, "call _fputc"], [112, "jmp loc_4926E8"], [113, "mov rax, [rbp+var_48]"], [114, "mov eax, [rax]"], [115, "cmp eax, 2"], [116, "jnz short loc_492514"], [117, "mov rax, [rbp+s]"], [118, "mov rsi, rax"], [119, "mov edi, 0Ah"], [120, "call _fputc"], [121, "mov rax, [rbp+var_48]"], [122, "mov rax, [rax+20h]"], [123, "movzx eax, byte ptr [rax]"], [124, "test al, al"], [125, "jz loc_4926DF"], [126, "mov rax, [rbp+var_48]"], [127, "mov rax, [rax+20h]"], [128, "mov rdi, rax"], [129, "call sub_490B7C"], [130, "mov rdx, rax"], [131, "mov rax, [rbp+s]"], [132, "mov esi, offset aS_38"], [133, "mov rdi, rax"], [134, "mov eax, 0"], [135, "call _fprintf"], [136, "jmp loc_4926DF"], [137, "cmp [rbp+var_4C], 0"], [138, "jnz short loc_49252C"], [139, "mov rax, [rbp+var_48]"], [140, "mov eax, [rax+28h]"], [141, "and eax, 8"], [142, "test eax, eax"], [143, "jnz loc_4926E2"], [144, "mov rax, [rbp+s]"], [145, "mov esi, offset asc_4D6774"], [146, "mov rdi, rax"], [147, "mov eax, 0"], [148, "call _fprintf"], [149, "cdqe"], [150, "mov [rbp+var_18], rax"], [151, "mov rax, [rbp+var_48]"], [152, "mov eax, [rax+4]"], [153, "test eax, eax"], [154, "jz short loc_4925A9"], [155, "mov rax, [rbp+var_48]"], [156, "mov eax, [rax+28h]"], [157, "and eax, 20h"], [158, "test eax, eax"], [159, "jz short loc_492586"], [160, "mov rax, [rbp+var_48]"], [161, "mov edx, [rax+4]"], [162, "mov rax, [rbp+s]"], [163, "mov esi, offset aC_6"], [164, "mov rdi, rax"], [165, "mov eax, 0"], [166, "call _fprintf"], [167, "cdqe"], [168, "add [rbp+var_18], rax"], [169, "jmp short loc_4925A9"], [170, "mov rax, [rbp+var_48]"], [171, "mov edx, [rax+4]"], [172, "mov rax, [rbp+s]"], [173, "mov esi, offset aC_5"], [174, "mov rdi, rax"], [175, "mov eax, 0"], [176, "call _fprintf"], [177, "cdqe"], [178, "add [rbp+var_18], rax"], [179, "mov rax, [rbp+var_48]"], [180, "mov rax, [rax+8]"], [181, "test rax, rax"], [182, "jz short loc_4925DD"], [183, "mov rax, [rbp+var_48]"], [184, "mov eax, [rax+4]"], [185, "test eax, eax"], [186, "jz short loc_4925DD"], [187, "mov rax, [rbp+s]"], [188, "mov esi, offset asc_4D677C"], [189, "mov rdi, rax"], [190, "mov eax, 0"], [191, "call _fprintf"], [192, "cdqe"], [193, "add [rbp+var_18], rax"], [194, "mov rax, [rbp+var_48]"], [195, "mov rax, [rax+8]"], [196, "test rax, rax"], [197, "jz short loc_49260E"], [198, "mov rax, [rbp+var_48]"], [199, "mov rdx, [rax+8]"], [200, "mov rax, [rbp+s]"], [201, "mov esi, offset aS_30"], [202, "mov rdi, rax"], [203, "mov eax, 0"], [204, "call _fprintf"], [205, "cdqe"], [206, "add [rbp+var_18], rax"], [207, "mov rax, [rbp+var_48]"], [208, "mov eax, [rax]"], [209, "cmp eax, 3"], [210, "jnz short loc_492640"], [211, "mov edi, offset aNum"], [212, "call sub_490B7C"], [213, "mov rdx, rax"], [214, "mov rax, [rbp+s]"], [215, "mov rsi, rdx"], [216, "mov rdi, rax"], [217, "mov eax, 0"], [218, "call sub_44A696"], [219, "cdqe"], [220, "add [rbp+var_18], rax"], [221, "mov rax, [rbp+var_48]"], [222, "mov eax, [rax+28h]"], [223, "and eax, 40h"], [224, "test eax, eax"], [225, "jnz short loc_49265C"], [226, "mov rax, [rbp+var_48]"], [227, "mov eax, [rax+28h]"], [228, "and eax, 2"], [229, "test eax, eax"], [230, "jnz short loc_492675"], [231, "mov rdx, [rbp+s]"], [232, "mov rax, [rbp+var_48]"], [233, "mov rsi, rdx"], [234, "mov rdi, rax"], [235, "call sub_49223A"], [236, "cdqe"], [237, "add [rbp+var_18], rax"], [238, "cmp [rbp+var_18], 18h"], [239, "ja short loc_49268E"], [240, "mov rax, [rbp+var_18]"], [241, "mov edx, eax"], [242, "mov eax, 18h"], [243, "sub eax, edx"], [244, "mov [rbp+var_1C], eax"], [245, "jmp short loc_4926A6"], [246, "mov rax, [rbp+s]"], [247, "mov rsi, rax"], [248, "mov edi, 0Ah"], [249, "call _fputc"], [250, "mov [rbp+var_1C], 18h"], [251, "mov rax, [rbp+var_48]"], [252, "mov rax, [rax+20h]"], [253, "mov rdi, rax"], [254, "call sub_490B7C"], [255, "mov rcx, rax"], [256, "mov eax, [rbp+var_1C]"], [257, "lea edx, [rax+2]"], [258, "mov rax, [rbp+s]"], [259, "mov r8, rcx"], [260, "mov ecx, offset unk_4D6448"], [261, "mov esi, offset aSS_17"], [262, "mov rdi, rax"], [263, "mov eax, 0"], [264, "call _fprintf"], [265, "jmp short loc_4926E3"], [266, "nop"], [267, "jmp short loc_4926E3"], [268, "nop"], [269, "add [rbp+var_48], 40h "], [270, "mov rax, [rbp+var_48]"], [271, "mov eax, [rax]"], [272, "test eax, eax"], [273, "jnz loc_4924B7"], [274, "mov rax, [rbp+s]"], [275, "mov rsi, rax"], [276, "mov edi, 0Ah"], [277, "call _fputc"], [278, "cmp [rbp+var_50], 0"], [279, "jnz short loc_49273F"], [280, "cmp [rbp+var_38], 0"], [281, "jz short loc_49273F"], [282, "mov rax, [rbp+var_38]"], [283, "mov eax, [rax+20h]"], [284, "and eax, 100h"], [285, "test eax, eax"], [286, "jz short loc_49273F"], [287, "mov rax, [rbp+s]"], [288, "mov rcx, rax"], [289, "mov edx, 4"], [290, "mov esi, 1"], [291, "mov edi, offset aEof"], [292, "call _fwrite"], [293, "mov eax, 0FFFFFFFFh"], [294, "mov rbx, [rbp+var_8]"], [295, "leave"], [296, "retn"]], "data_dep": [[9, 8], [10, 9], [14, 13], [14, 11], [15, 5], [16, 15], [19, 8], [20, 19], [21, 4], [22, 21], [23, 4], [24, 23], [25, 24], [26, 25], [27, 26], [28, 14], [29, 28], [34, 5], [35, 30], [35, 34], [36, 35], [37, 34], [38, 37], [40, 39], [43, 42], [44, 14], [45, 40], [46, 43], [47, 44], [51, 36], [51, 53], [52, 51], [52, 62], [52, 45], [53, 52], [54, 51], [55, 54], [57, 56], [60, 59], [61, 14], [62, 57], [63, 60], [64, 61], [67, 36], [67, 53], [68, 67], [69, 68], [70, 69], [71, 53], [71, 36], [72, 71], [73, 72], [74, 73], [75, 74], [77, 99], [77, 53], [77, 36], [78, 77], [79, 78], [80, 79], [81, 80], [82, 99], [82, 53], [82, 36], [83, 82], [84, 83], [86, 85], [89, 88], [90, 14], [91, 86], [92, 89], [93, 90], [99, 36], [99, 99], [99, 53], [100, 36], [100, 99], [100, 53], [101, 100], [102, 101], [103, 102], [104, 6], [105, 104], [106, 105], [107, 106], [108, 14], [109, 108], [113, 269], [113, 6], [114, 113], [115, 114], [116, 115], [117, 14], [118, 117], [121, 269], [121, 6], [122, 121], [123, 122], [124, 123], [125, 124], [126, 269], [126, 6], [127, 126], [128, 127], [130, 129], [131, 14], [133, 131], [137, 7], [138, 137], [139, 269], [139, 6], [140, 139], [141, 140], [142, 141], [143, 142], [144, 14], [146, 144], [150, 148], [151, 269], [151, 6], [152, 151], [153, 152], [154, 153], [155, 269], [155, 6], [156, 155], [157, 156], [158, 157], [159, 158], [160, 269], [160, 6], [161, 160], [162, 14], [164, 162], [168, 166], [168, 150], [170, 269], [170, 6], [171, 170], [172, 14], [174, 172], [178, 150], [178, 176], [179, 269], [179, 6], [180, 179], [181, 180], [182, 181], [183, 269], [183, 6], [184, 183], [185, 184], [186, 185], [187, 14], [189, 187], [193, 150], [193, 168], [193, 191], [193, 178], [194, 269], [194, 6], [195, 194], [196, 195], [197, 196], [198, 269], [198, 6], [199, 198], [200, 14], [202, 200], [206, 150], [206, 168], [206, 193], [206, 204], [206, 178], [207, 269], [207, 6], [208, 207], [209, 208], [210, 209], [213, 212], [214, 14], [215, 213], [216, 214], [220, 218], [220, 193], [220, 206], [220, 178], [220, 150], [220, 168], [221, 269], [221, 6], [222, 221], [223, 222], [224, 223], [225, 224], [226, 6], [226, 269], [227, 226], [228, 227], [229, 228], [230, 229], [231, 14], [232, 269], [232, 6], [233, 231], [234, 232], [237, 168], [237, 193], [237, 220], [237, 206], [237, 178], [237, 235], [237, 150], [238, 206], [238, 178], [238, 237], [238, 150], [238, 168], [238, 193], [238, 220], [239, 238], [240, 178], [240, 237], [240, 150], [240, 168], [240, 220], [240, 206], [240, 193], [241, 240], [243, 242], [243, 241], [244, 243], [246, 14], [247, 246], [251, 269], [251, 6], [252, 251], [253, 252], [255, 254], [256, 250], [256, 244], [257, 231], [257, 130], [257, 171], [257, 91], [257, 45], [257, 241], [257, 161], [257, 257], [257, 213], [257, 62], [257, 199], [257, 256], [258, 14], [259, 255], [262, 258], [269, 269], [269, 6], [270, 269], [270, 6], [271, 270], [272, 271], [273, 272], [274, 14], [275, 274], [278, 8], [279, 278], [280, 4], [281, 280], [282, 4], [283, 282], [284, 283], [285, 284], [286, 285], [287, 14], [288, 287], [296, 293], [296, 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/8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590_8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.jsonl.gz", "strip_func_name": "sub_492318", "query": "\n\n\n__int64 __fastcall sub_492318(__int64 a1, const char **a2, __int64 a3, int a4, int a5)\n{\nFILE *v5; // rax\nchar *v7; // rbx\nchar *v8; // rax\n__int64 v9; // r8\n__int64 v10; // r9\nconst char **v11; // rax\nchar *v12; // rbx\nchar *v13; // rax\n__int64 v14; // r8\n__int64 v15; // r9\nchar *v16; // rbx\nchar *v17; // rax\n__int64 v18; // r8\n__int64 v19; // r9\nchar *v20; // rax\nchar *v21; // rax\n__int64 v22; // rcx\n__int64 v23; // r8\n__int64 v24; // r9\nchar *v25; // rax\nconst char **v29; // [rsp+10h] [rbp-40h]\nFILE *s; // [rsp+28h] [rbp-28h]\nint v31; // [rsp+34h] [rbp-1Ch]\nunsigned __int64 v32; // [rsp+38h] [rbp-18h]\n\nif ( a5 )\nv5 = stderr;\nelse\nv5 = stdout;\ns = v5;\nif ( !a2 )\nreturn 0xFFFFFFFFLL;\nif ( !a5 && a1 && (*(_DWORD *)(a1 + 32) & 0x100) != 0 )\nfwrite(\"cat <<\\\\EOF\\n\", 1uLL, 0xBuLL, v5);\nv29 = a2 + 1;\nv7 = sub_490B7C(*a2);\nv8 = sub_490B7C(\"usage: %s\");\nsub_4428FA(s, v8, (__int64)v7, (__int64)v8, v9, v10);\nwhile ( *v29 && **v29 )\n{\nv11 = v29++;\nv12 = sub_490B7C(*v11);\nv13 = sub_490B7C(\" or: %s\");\nsub_4428FA(s, v13, (__int64)v12, (__int64)v13, v14, v15);\n}\nwhile ( *v29 )\n{\nif ( **v29 )\n{\nv16 = sub_490B7C(*v29);\nv17 = sub_490B7C(\" %s\");\nsub_4428FA(s, v17, (__int64)v16, (__int64)v17, v18, v19);\n}\nelse\n{\nputchar(10);\n}\n++v29;\n}\nif ( *(_DWORD *)a3 != 2 )\nfputc(10, s);\nwhile ( *(_DWORD *)a3 )\n{\nif ( *(_DWORD *)a3 == 2 )\n{\nfputc(10, s);\nif ( **(_BYTE **)(a3 + 32) )\n{\nv20 = sub_490B7C(*(const char **)(a3 + 32));\nfprintf(s, \"%s\\n\", v20);\n}\n}\nelse if ( a4 || (*(_DWORD *)(a3 + 40) & 8) == 0 )\n{\nv32 = fprintf(s, \" \");\nif ( *(_DWORD *)(a3 + 4) )\n{\nif ( (*(_DWORD *)(a3 + 40) & 0x20) != 0 )\nv32 += fprintf(s, \"%c\", *(unsigned int *)(a3 + 4));\nelse\nv32 += fprintf(s, \"-%c\", *(unsigned int *)(a3 + 4));\n}\nif ( *(_QWORD *)(a3 + 8) && *(_DWORD *)(a3 + 4) )\nv32 += fprintf(s, \", \");\nif ( *(_QWORD *)(a3 + 8) )\nv32 += fprintf(s, \"--%s\", *(const char **)(a3 + 8));\nif ( *(_DWORD *)a3 == 3 )\n{\nv21 = sub_490B7C(\"-NUM\");\nv32 += (int)sub_44A696(s, v21, (__int64)v21, v22, v23, v24);\n}\nif ( (*(_DWORD *)(a3 + 40) & 0x40) != 0 || (*(_DWORD *)(a3 + 40) & 2) == 0 )\nv32 += (int)sub_49223A(a3, s);\nif ( v32 > 0x18 )\n{\nfputc(10, s);\nv31 = 24;\n}\nelse\n{\nv31 = 24 - v32;\n}\nv25 = sub_490B7C(*(const char **)(a3 + 32));\nfprintf(s, \"%*s%s\\n\", v31 + 2, (const char *)&unk_4D6448, v25);\n}\na3 += 64LL;\n}\nfputc(10, s);\nif ( !a5 && a1 && (*(_DWORD *)(a1 + 32) & 0x100) != 0 )\nfwrite(\"EOF\\n\", 1uLL, 4uLL, s);\nreturn 0xFFFFFFFFLL;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v14,v22,v29,s,v31,v32,sub_492318,sub_4428FA,sub_44A696,sub_49223A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'opts', 'a4': 'full', 'a1': 'ctx', 'a2': 'usagestr', 'a5': 'err', 'v14': 'err', 'v22': 'full', 'v29': 'usagestra', 's': 'outfile', 'v31': 'pad', 'v32': 'pos', 'sub_492318': 'usage_with_options_internal', 'sub_4428FA': 'fprintf_ln', 'sub_44A696': 'utf8_fprintf', 'sub_49223A': 'usage_argh'}"}
radius_msg_finish_srv
7876e4085e3f05c2871fec0d64f4ee6217ffb0986990fc0134d102ed22a0eaa1
sonic-net
sonic-buildimage
NA
int radius_msg_finish_srv(struct radius_msg *msg, const u8 *secret, size_t secret_len, const u8 *req_authenticator) { u8 auth[MD5_MAC_LEN]; struct radius_attr_hdr *attr; const u8 *addr[4]; size_t len[4]; os_memset(auth, 0, MD5_MAC_LEN); attr = radius_msg_add_attr(msg, RADIUS_ATTR_MESSAGE_AUTHENTICATOR, auth, MD5_MAC_LEN); if (attr == NULL) { wpa_printf(MSG_ERROR, "WARNING: Could not add Message-Authenticator"); return -1; } msg->hdr->length = host_to_be16(wpabuf_len(msg->buf)); os_memcpy(msg->hdr->authenticator, req_authenticator, sizeof(msg->hdr->authenticator)); hmac_md5(secret, secret_len, wpabuf_head(msg->buf), wpabuf_len(msg->buf), (u8 *) (attr + 1)); /* ResponseAuth = MD5(Code+ID+Length+RequestAuth+Attributes+Secret) */ addr[0] = (u8 *) msg->hdr; len[0] = 1 + 1 + 2; addr[1] = req_authenticator; len[1] = MD5_MAC_LEN; addr[2] = wpabuf_head_u8(msg->buf) + sizeof(struct radius_hdr); len[2] = wpabuf_len(msg->buf) - sizeof(struct radius_hdr); addr[3] = secret; len[3] = secret_len; md5_vector(4, addr, len, msg->hdr->authenticator); if (wpabuf_len(msg->buf) > 0xffff) { wpa_printf(MSG_WARNING, "RADIUS: Too long message (%lu)", (unsigned long) wpabuf_len(msg->buf)); return -1; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F289", "function_addr": 4256393, "binary_name": "7876e4085e3f05c2871fec0d64f4ee6217ffb0986990fc0134d102ed22a0eaa1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "add rsp, 0FFFFFFFFFFFFFF80h"], [5, "mov [rbp+var_78], rdi"], [6, "mov [rbp+var_80], rsi"], [7, "mov [rbp+var_88], rdx"], [8, "mov [rbp+var_90], rcx"], [9, "lea rax, [rbp+s]"], [10, "mov edx, 10h"], [11, "mov esi, 0"], [12, "mov rdi, rax"], [13, "call _memset"], [14, "lea rdx, [rbp+s]"], [15, "mov rax, [rbp+var_78]"], [16, "mov ecx, 10h"], [17, "mov esi, 50h "], [18, "mov rdi, rax"], [19, "call sub_40FC72"], [20, "mov [rbp+var_18], rax"], [21, "cmp [rbp+var_18], 0"], [22, "jnz short loc_40F303"], [23, "mov esi, offset aWarningCouldNo"], [24, "mov edi, 5"], [25, "mov eax, 0"], [26, "call sub_43B8F7"], [27, "mov eax, 0FFFFFFFFh"], [28, "jmp loc_40F460"], [29, "mov rax, [rbp+var_78]"], [30, "mov rax, [rax]"], [31, "mov rdi, rax"], [32, "call sub_40EACB"], [33, "movzx eax, ax"], [34, "mov rdx, [rbp+var_78]"], [35, "mov rbx, [rdx+8]"], [36, "mov edi, eax"], [37, "call sub_40E908"], [38, "mov [rbx+2], ax"], [39, "mov rax, [rbp+var_78]"], [40, "mov rax, [rax+8]"], [41, "lea rcx, [rax+4]"], [42, "mov rax, [rbp+var_90]"], [43, "mov rdx, [rax+8]"], [44, "mov rax, [rax]"], [45, "mov [rcx], rax"], [46, "mov [rcx+8], rdx"], [47, "mov rax, [rbp+var_18]"], [48, "lea r12, [rax+2]"], [49, "mov rax, [rbp+var_78]"], [50, "mov rax, [rax]"], [51, "mov rdi, rax"], [52, "call sub_40EACB"], [53, "mov rbx, rax"], [54, "mov rax, [rbp+var_78]"], [55, "mov rax, [rax]"], [56, "mov rdi, rax"], [57, "call sub_40EAFC"], [58, "mov rdx, rax"], [59, "mov rsi, [rbp+var_88]"], [60, "mov rax, [rbp+var_80]"], [61, "mov r8, r12"], [62, "mov rcx, rbx"], [63, "mov rdi, rax"], [64, "call sub_442C98"], [65, "mov rax, [rbp+var_78]"], [66, "mov rax, [rax+8]"], [67, "mov [rbp+var_50], rax"], [68, "mov [rbp+var_70], 4"], [69, "mov rax, [rbp+var_90]"], [70, "mov [rbp+var_48], rax"], [71, "mov [rbp+var_68], 10h"], [72, "mov rax, [rbp+var_78]"], [73, "mov rax, [rax]"], [74, "mov rdi, rax"], [75, "call sub_40EB0E"], [76, "add rax, 14h"], [77, "mov [rbp+var_40], rax"], [78, "mov rax, [rbp+var_78]"], [79, "mov rax, [rax]"], [80, "mov rdi, rax"], [81, "call sub_40EACB"], [82, "sub rax, 14h"], [83, "mov [rbp+var_60], rax"], [84, "mov rax, [rbp+var_80]"], [85, "mov [rbp+var_38], rax"], [86, "mov rax, [rbp+var_88]"], [87, "mov [rbp+var_58], rax"], [88, "mov rax, [rbp+var_78]"], [89, "mov rax, [rax+8]"], [90, "lea rcx, [rax+4]"], [91, "lea rdx, [rbp+var_70]"], [92, "lea rax, [rbp+var_50]"], [93, "mov rsi, rax"], [94, "mov edi, 4"], [95, "call sub_442CE0"], [96, "mov rax, [rbp+var_78]"], [97, "mov rax, [rax]"], [98, "mov rdi, rax"], [99, "call sub_40EACB"], [100, "cmp rax, 0FFFFh"], [101, "jbe short loc_40F45B"], [102, "mov rax, [rbp+var_78]"], [103, "mov rax, [rax]"], [104, "mov rdi, rax"], [105, "call sub_40EACB"], [106, "mov rdx, rax"], [107, "mov esi, offset aRadiusTooLongM"], [108, "mov edi, 4"], [109, "mov eax, 0"], [110, "call sub_43B8F7"], [111, "mov eax, 0FFFFFFFFh"], [112, "jmp short loc_40F460"], [113, "mov eax, 0"], [114, "sub rsp, 0FFFFFFFFFFFFFF80h"], [115, "pop rbx"], [116, "pop r12"], [117, "pop rbp"], [118, "retn"]], "data_dep": [[12, 9], [14, 10], [15, 5], [18, 15], [20, 19], [21, 20], [22, 21], [29, 5], [30, 29], [31, 30], [33, 32], [34, 5], [35, 34], [36, 33], [38, 35], [38, 37], [39, 5], [40, 38], [40, 39], [41, 40], [41, 16], [41, 38], [42, 8], [43, 38], [43, 42], [44, 38], [44, 42], [45, 41], [45, 44], [46, 41], [46, 43], [47, 20], [48, 47], [48, 46], [49, 5], [50, 49], [50, 46], [51, 50], [53, 52], [54, 5], [55, 54], [55, 46], [56, 55], [58, 57], [59, 7], [60, 6], [61, 48], [62, 53], [63, 60], [65, 5], [66, 46], [66, 65], [67, 66], [69, 8], [70, 69], [72, 5], [73, 46], [73, 72], [74, 73], [76, 75], [77, 76], [78, 5], [79, 46], [79, 78], [80, 79], [82, 81], [83, 82], [84, 6], [85, 84], [86, 7], [87, 86], [88, 5], [89, 88], [89, 46], [90, 46], [90, 62], [90, 89], [91, 68], [91, 58], [92, 67], [92, 89], [93, 92], [96, 5], [97, 46], [97, 96], [98, 97], [100, 99], [101, 100], [102, 5], [103, 45], [103, 38], [103, 102], [103, 46], [104, 103], [106, 105], [114, 4], [115, 3], [116, 2], [117, 0], [118, 113], [118, 27], [118, 111]]}
{"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/7876e4085e3f05c2871fec0d64f4ee6217ffb0986990fc0134d102ed22a0eaa1_7876e4085e3f05c2871fec0d64f4ee6217ffb0986990fc0134d102ed22a0eaa1.jsonl.gz", "strip_func_name": "sub_40F289", "query": "\n\n\n__int64 __fastcall sub_40F289(__int64 *a1, __int64 a2, __int64 a3, _QWORD *a4)\n{\nint v4; // edx\nint v5; // ecx\nint v6; // er8\nint v7; // er9\n__int64 result; // rax\n__int16 v9; // ax\n__int64 v10; // rbx\n_QWORD *v11; // rcx\n__int64 v12; // rdx\n__int64 v13; // r12\n__int64 v14; // rbx\n__int64 v15; // rax\nint v16; // eax\nint v17; // ecx\nint v18; // er8\nint v19; // er9\n__int64 v22[4]; // [rsp+20h] [rbp-70h] BYREF\n__int64 v23[4]; // [rsp+40h] [rbp-50h] BYREF\nchar s[24]; // [rsp+60h] [rbp-30h] BYREF\n__int64 v25; // [rsp+78h] [rbp-18h]\n\nmemset(s, 0, 0x10uLL);\nv25 = sub_40FC72(a1, 80LL, s, 16LL);\nif ( v25 )\n{\nv9 = sub_40EACB(*a1);\nv10 = a1[1];\n*(_WORD *)(v10 + 2) = sub_40E908(v9);\nv11 = (_QWORD *)(a1[1] + 4);\nv12 = a4[1];\n*v11 = *a4;\nv11[1] = v12;\nv13 = v25 + 2;\nv14 = sub_40EACB(*a1);\nv15 = sub_40EAFC(*a1);\nsub_442C98(a2, a3, v15, v14, v13);\nv23[0] = a1[1];\nv22[0] = 4LL;\nv23[1] = (__int64)a4;\nv22[1] = 16LL;\nv23[2] = sub_40EB0E(*a1) + 20;\nv22[2] = sub_40EACB(*a1) - 20;\nv23[3] = a2;\nv22[3] = a3;\nsub_442CE0(4LL, v23, v22, a1[1] + 4);\nif ( (unsigned __int64)sub_40EACB(*a1) <= 0xFFFF )\n{\nresult = 0LL;\n}\nelse\n{\nv16 = sub_40EACB(*a1);\nsub_43B8F7(4, (unsigned int)\"RADIUS: Too long message (%lu)\", v16, v17, v18, v19);\nresult = 0xFFFFFFFFLL;\n}\n}\nelse\n{\nsub_43B8F7(5, (unsigned int)\"WARNING: Could not add Message-Authenticator\", v4, v5, v6, v7);\nresult = 0xFFFFFFFFLL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v22,v23,s,v25,sub_40F289,sub_40FC72,sub_40EACB,sub_40EAFC,sub_442C98,sub_40EB0E,sub_442CE0,sub_43B8F7,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'secret_len', 'a4': 'req_authenticator', 'a1': 'msg', 'a2': 'secret', 'v22': 'len', 'v23': 'addr', 's': 'auth', 'v25': 'attr', 'sub_40F289': 'radius_msg_finish_srv', 'sub_40FC72': 'radius_msg_add_attr', 'sub_40EACB': 'wpabuf_len', 'sub_40EAFC': 'wpabuf_head', 'sub_442C98': 'hmac_md5', 'sub_40EB0E': 'wpabuf_head_u8', 'sub_442CE0': 'md5_vector', 'sub_43B8F7': 'wpa_printf'}"}
set_binary_values
1b8a13096bf65f66e4716efc98fa27cf2a8d09cd780374257f0483039d7913e8
myfluxi
xxICSKernel
NA
void set_binary_values(struct isci_orom *isci_orom) { int ctrl_idx, phy_idx, port_idx; /* setting OROM signature */ strncpy(isci_orom->hdr.signature, sig, strlen(sig)); isci_orom->hdr.version = version; isci_orom->hdr.total_block_length = sizeof(struct isci_orom); isci_orom->hdr.hdr_length = sizeof(struct sci_bios_oem_param_block_hdr); isci_orom->hdr.num_elements = num_elements; for (ctrl_idx = 0; ctrl_idx < 2; ctrl_idx++) { isci_orom->ctrl[ctrl_idx].controller.mode_type = mode_type; isci_orom->ctrl[ctrl_idx].controller.max_concurrent_dev_spin_up = max_num_concurrent_dev_spin_up; isci_orom->ctrl[ctrl_idx].controller.do_enable_ssc = enable_ssc; for (port_idx = 0; port_idx < 4; port_idx++) isci_orom->ctrl[ctrl_idx].ports[port_idx].phy_mask = phy_mask[ctrl_idx][port_idx]; for (phy_idx = 0; phy_idx < 4; phy_idx++) { isci_orom->ctrl[ctrl_idx].phys[phy_idx].sas_address.high = (__u32)(sas_addr[ctrl_idx][phy_idx] >> 32); isci_orom->ctrl[ctrl_idx].phys[phy_idx].sas_address.low = (__u32)(sas_addr[ctrl_idx][phy_idx]); isci_orom->ctrl[ctrl_idx].phys[phy_idx].afe_tx_amp_control0 = afe_tx_amp_control0; isci_orom->ctrl[ctrl_idx].phys[phy_idx].afe_tx_amp_control1 = afe_tx_amp_control1; isci_orom->ctrl[ctrl_idx].phys[phy_idx].afe_tx_amp_control2 = afe_tx_amp_control2; isci_orom->ctrl[ctrl_idx].phys[phy_idx].afe_tx_amp_control3 = afe_tx_amp_control3; } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40121D", "function_addr": 4198941, "binary_name": "1b8a13096bf65f66e4716efc98fa27cf2a8d09cd780374257f0483039d7913e8.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 rdi, 424D454F55435349h"], [5, "mov [rax], rdi"], [6, "mov edx, 10h"], [7, "mov rax, [rbp+var_18]"], [8, "mov [rax+0Bh], dl"], [9, "mov rax, [rbp+var_18]"], [10, "mov word ptr [rax+8], 0E8h"], [11, "mov rax, [rbp+var_18]"], [12, "mov byte ptr [rax+0Ah], 18h"], [13, "mov eax, 2"], [14, "mov edx, eax"], [15, "mov rax, [rbp+var_18]"], [16, "mov [rax+0Dh], dl"], [17, "mov [rbp+var_4], 0"], [18, "jmp loc_401546"], [19, "mov eax, 1"], [20, "mov ecx, eax"], [21, "mov rsi, [rbp+var_18]"], [22, "mov eax, [rbp+var_4]"], [23, "movsxd rdx, eax"], [24, "mov rax, rdx"], [25, "add rax, rax"], [26, "add rax, rdx"], [27, "shl rax, 2"], [28, "add rax, rdx"], [29, "shl rax, 3"], [30, "add rax, rsi"], [31, "add rax, 18h"], [32, "mov [rax], cl"], [33, "mov eax, 1"], [34, "mov ecx, eax"], [35, "mov rsi, [rbp+var_18]"], [36, "mov eax, [rbp+var_4]"], [37, "movsxd rdx, eax"], [38, "mov rax, rdx"], [39, "add rax, rax"], [40, "add rax, rdx"], [41, "shl rax, 2"], [42, "add rax, rdx"], [43, "shl rax, 3"], [44, "add rax, rsi"], [45, "add rax, 19h"], [46, "mov [rax], cl"], [47, "mov eax, 0"], [48, "mov ecx, eax"], [49, "mov rsi, [rbp+var_18]"], [50, "mov eax, [rbp+var_4]"], [51, "movsxd rdx, eax"], [52, "mov rax, rdx"], [53, "add rax, rax"], [54, "add rax, rdx"], [55, "shl rax, 2"], [56, "add rax, rdx"], [57, "shl rax, 3"], [58, "add rax, rsi"], [59, "add rax, 1Ah"], [60, "mov [rax], cl"], [61, "mov [rbp+var_C], 0"], [62, "jmp short loc_40133A"], [63, "mov ecx, 0"], [64, "mov rdi, [rbp+var_18]"], [65, "mov eax, [rbp+var_C]"], [66, "movsxd rsi, eax"], [67, "mov eax, [rbp+var_4]"], [68, "movsxd rdx, eax"], [69, "mov rax, rdx"], [70, "add rax, rax"], [71, "add rax, rdx"], [72, "shl rax, 2"], [73, "add rax, rdx"], [74, "shl rax, 3"], [75, "add rax, rdi"], [76, "add rax, rsi"], [77, "add rax, 1Ch"], [78, "mov [rax], cl"], [79, "add [rbp+var_C], 1"], [80, "cmp [rbp+var_C], 3"], [81, "jle short loc_401301"], [82, "mov [rbp+var_8], 0"], [83, "jmp loc_401538"], [84, "mov eax, [rbp+var_8]"], [85, "movsxd rdx, eax"], [86, "mov eax, [rbp+var_4]"], [87, "cdqe"], [88, "shl rax, 2"], [89, "add rax, rdx"], [90, "mov rax, ds:qword_402040[rax*8]"], [91, "shr rax, 20h"], [92, "mov esi, eax"], [93, "mov rdi, [rbp+var_18]"], [94, "mov eax, [rbp+var_8]"], [95, "cdqe"], [96, "mov edx, [rbp+var_4]"], [97, "movsxd rcx, edx"], [98, "mov rdx, rax"], [99, "add rdx, rdx"], [100, "add rdx, rax"], [101, "lea rax, ds:0[rdx*8]"], [102, "mov rdx, rax"], [103, "mov rax, rcx"], [104, "add rax, rax"], [105, "add rax, rcx"], [106, "shl rax, 2"], [107, "add rax, rcx"], [108, "shl rax, 3"], [109, "add rax, rdx"], [110, "add rax, rdi"], [111, "add rax, 10h"], [112, "mov [rax+10h], esi"], [113, "mov eax, [rbp+var_8]"], [114, "movsxd rdx, eax"], [115, "mov eax, [rbp+var_4]"], [116, "cdqe"], [117, "shl rax, 2"], [118, "add rax, rdx"], [119, "mov rax, ds:qword_402040[rax*8]"], [120, "mov esi, eax"], [121, "mov rdi, [rbp+var_18]"], [122, "mov eax, [rbp+var_8]"], [123, "cdqe"], [124, "mov edx, [rbp+var_4]"], [125, "movsxd rcx, edx"], [126, "mov rdx, rax"], [127, "add rdx, rdx"], [128, "add rdx, rax"], [129, "lea rax, ds:0[rdx*8]"], [130, "mov rdx, rax"], [131, "mov rax, rcx"], [132, "add rax, rax"], [133, "add rax, rcx"], [134, "shl rax, 2"], [135, "add rax, rcx"], [136, "shl rax, 3"], [137, "add rax, rdx"], [138, "add rax, rdi"], [139, "add rax, 10h"], [140, "mov [rax+14h], esi"], [141, "mov esi, 0BDD08h"], [142, "mov rdi, [rbp+var_18]"], [143, "mov eax, [rbp+var_8]"], [144, "cdqe"], [145, "mov edx, [rbp+var_4]"], [146, "movsxd rcx, edx"], [147, "mov rdx, rax"], [148, "add rdx, rdx"], [149, "add rdx, rax"], [150, "lea rax, ds:0[rdx*8]"], [151, "mov rdx, rax"], [152, "mov rax, rcx"], [153, "add rax, rax"], [154, "add rax, rcx"], [155, "shl rax, 2"], [156, "add rax, rcx"], [157, "shl rax, 3"], [158, "add rax, rdx"], [159, "add rax, rdi"], [160, "add rax, 10h"], [161, "mov [rax+18h], esi"], [162, "mov esi, 0FFC00h"], [163, "mov rdi, [rbp+var_18]"], [164, "mov eax, [rbp+var_8]"], [165, "cdqe"], [166, "mov edx, [rbp+var_4]"], [167, "movsxd rcx, edx"], [168, "mov rdx, rax"], [169, "add rdx, rdx"], [170, "add rdx, rax"], [171, "lea rax, ds:0[rdx*8]"], [172, "mov rdx, rax"], [173, "mov rax, rcx"], [174, "add rax, rax"], [175, "add rax, rcx"], [176, "shl rax, 2"], [177, "add rax, rcx"], [178, "shl rax, 3"], [179, "add rax, rdx"], [180, "add rax, rdi"], [181, "add rax, 10h"], [182, "mov [rax+1Ch], esi"], [183, "mov esi, 0B7C09h"], [184, "mov rdi, [rbp+var_18]"], [185, "mov eax, [rbp+var_8]"], [186, "cdqe"], [187, "mov edx, [rbp+var_4]"], [188, "movsxd rcx, edx"], [189, "mov rdx, rax"], [190, "add rdx, rdx"], [191, "add rdx, rax"], [192, "lea rax, ds:0[rdx*8]"], [193, "mov rdx, rax"], [194, "mov rax, rcx"], [195, "add rax, rax"], [196, "add rax, rcx"], [197, "shl rax, 2"], [198, "add rax, rcx"], [199, "shl rax, 3"], [200, "add rax, rdx"], [201, "add rax, rdi"], [202, "add rax, 20h "], [203, "mov [rax+10h], esi"], [204, "mov esi, 0AFC6Eh"], [205, "mov rdi, [rbp+var_18]"], [206, "mov eax, [rbp+var_8]"], [207, "cdqe"], [208, "mov edx, [rbp+var_4]"], [209, "movsxd rcx, edx"], [210, "mov rdx, rax"], [211, "add rdx, rdx"], [212, "add rdx, rax"], [213, "lea rax, ds:0[rdx*8]"], [214, "mov rdx, rax"], [215, "mov rax, rcx"], [216, "add rax, rax"], [217, "add rax, rcx"], [218, "shl rax, 2"], [219, "add rax, rcx"], [220, "shl rax, 3"], [221, "add rax, rdx"], [222, "add rax, rdi"], [223, "add rax, 20h "], [224, "mov [rax+14h], esi"], [225, "add [rbp+var_8], 1"], [226, "cmp [rbp+var_8], 3"], [227, "jle loc_40134C"], [228, "add [rbp+var_4], 1"], [229, "cmp [rbp+var_4], 1"], [230, "jle loc_40126E"], [231, "nop"], [232, "nop"], [233, "pop rbp"], [234, "retn"]], "data_dep": [[3, 2], [5, 3], [5, 4], [7, 2], [8, 6], [8, 7], [9, 2], [10, 9], [11, 2], [12, 11], [14, 13], [15, 2], [16, 15], [16, 14], [20, 19], [21, 2], [22, 17], [22, 228], [23, 22], [24, 23], [25, 24], [26, 23], [26, 25], [27, 26], [28, 23], [28, 27], [29, 28], [30, 29], [30, 21], [31, 30], [32, 20], [32, 31], [34, 33], [35, 2], [36, 228], [36, 17], [37, 36], [38, 37], [39, 38], [40, 37], [40, 39], [41, 40], [42, 41], [42, 37], [43, 42], [44, 35], [44, 43], [45, 44], [46, 34], [46, 45], [48, 47], [49, 2], [50, 228], [50, 17], [51, 50], [52, 51], [53, 52], [54, 51], [54, 53], [55, 54], [56, 55], [56, 51], [57, 56], [58, 49], [58, 57], [59, 58], [60, 48], [60, 59], [64, 2], [65, 61], [65, 79], [66, 65], [67, 228], [67, 17], [68, 67], [69, 68], [70, 69], [71, 68], [71, 70], [72, 71], [73, 68], [73, 72], [74, 73], [75, 74], [75, 64], [76, 66], [76, 75], [77, 76], [78, 77], [78, 63], [79, 61], [79, 79], [80, 61], [80, 79], [81, 80], [84, 225], [84, 82], [85, 84], [86, 17], [86, 228], [88, 86], [89, 88], [89, 85], [91, 90], [92, 91], [93, 2], [94, 82], [94, 225], [96, 17], [96, 228], [97, 96], [98, 94], [99, 98], [100, 94], [100, 99], [101, 94], [102, 101], [103, 97], [104, 103], [105, 104], [105, 97], [106, 105], [107, 97], [107, 106], [108, 107], [109, 108], [109, 102], [110, 93], [110, 109], [111, 110], [112, 111], [112, 92], [113, 82], [113, 225], [114, 113], [115, 228], [115, 17], [117, 115], [118, 117], [118, 114], [120, 119], [121, 2], [122, 82], [122, 225], [124, 228], [124, 17], [125, 124], [126, 122], [127, 126], [128, 127], [128, 122], [129, 122], [130, 129], [131, 125], [132, 131], [133, 132], [133, 125], [134, 133], [135, 125], [135, 134], [136, 135], [137, 130], [137, 136], [138, 137], [138, 121], [139, 138], [140, 139], [140, 120], [142, 2], [143, 82], [143, 225], [145, 228], [145, 17], [146, 145], [147, 143], [148, 147], [149, 148], [149, 143], [150, 143], [151, 150], [152, 146], [153, 152], [154, 153], [154, 146], [155, 154], [156, 146], [156, 155], [157, 156], [158, 151], [158, 157], [159, 142], [159, 158], [160, 159], [161, 141], [161, 160], [163, 2], [164, 82], [164, 225], [166, 228], [166, 17], [167, 166], [168, 164], [169, 168], [170, 169], [170, 164], [171, 164], [172, 171], [173, 167], [174, 173], [175, 174], [175, 167], [176, 175], [177, 167], [177, 176], [178, 177], [179, 172], [179, 178], [180, 179], [180, 163], [181, 180], [182, 181], [182, 162], [184, 2], [185, 82], [185, 225], [187, 228], [187, 17], [188, 187], [189, 185], [190, 189], [191, 190], [191, 185], [192, 185], [193, 192], [194, 188], [195, 194], [196, 188], [196, 195], [197, 196], [198, 188], [198, 197], [199, 198], [200, 199], [200, 193], [201, 200], [201, 184], [202, 201], [203, 202], [203, 183], [205, 2], [206, 82], [206, 225], [208, 228], [208, 17], [209, 208], [210, 206], [211, 210], [212, 211], [212, 206], [213, 206], [214, 213], [215, 209], [216, 215], [217, 216], [217, 209], [218, 217], [219, 209], [219, 218], [220, 219], [221, 214], [221, 220], [222, 221], [222, 205], [223, 222], [224, 204], [224, 223], [225, 82], [225, 225], [226, 225], [226, 82], [227, 226], [228, 228], [228, 17], [229, 228], [229, 17], [230, 229], [233, 0], [234, 59], [234, 77], [234, 223], [234, 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/1b8a13096bf65f66e4716efc98fa27cf2a8d09cd780374257f0483039d7913e8_1b8a13096bf65f66e4716efc98fa27cf2a8d09cd780374257f0483039d7913e8.jsonl.gz", "strip_func_name": "sub_40121D", "query": "\n\n\n_BYTE *__fastcall sub_40121D(__int64 a1)\n{\n_BYTE *result; // rax\n__int64 v2; // rdx\nint j; // [rsp+Ch] [rbp-Ch]\nint k; // [rsp+10h] [rbp-8h]\nint i; // [rsp+14h] [rbp-4h]\n\n*(_QWORD *)a1 = 0x424D454F55435349LL;\n*(_BYTE *)(a1 + 11) = 16;\n*(_WORD *)(a1 + 8) = 232;\n*(_BYTE *)(a1 + 10) = 24;\nresult = (_BYTE *)a1;\n*(_BYTE *)(a1 + 13) = 2;\nfor ( i = 0; i <= 1; ++i )\n{\n*(_BYTE *)(a1 + 104LL * i + 24) = 1;\n*(_BYTE *)(a1 + 104LL * i + 25) = 1;\nresult = (_BYTE *)(a1 + 104LL * i + 26);\n*result = 0;\nfor ( j = 0; j <= 3; ++j )\n{\nresult = (_BYTE *)(j + a1 + 104LL * i + 28);\n*result = 0;\n}\nfor ( k = 0; k <= 3; ++k )\n{\n*(_DWORD *)(a1 + 24LL * k + 104LL * i + 32) = HIDWORD(qword_402040[4 * i + k]);\n*(_DWORD *)(a1 + 24LL * k + 104LL * i + 36) = qword_402040[4 * i + k];\n*(_DWORD *)(a1 + 24LL * k + 104LL * i + 40) = 777480;\n*(_DWORD *)(a1 + 24LL * k + 104LL * i + 44) = 1047552;\n*(_DWORD *)(a1 + 24LL * k + 104LL * i + 48) = 752649;\nv2 = 24LL * k;\nresult = (_BYTE *)(a1 + v2 + 104LL * i + 32);\n*(_DWORD *)(a1 + v2 + 104LL * i + 52) = 719982;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,j,k,i,sub_40121D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'isci_orom', 'j': 'port_idx', 'k': 'phy_idx', 'i': 'ctrl_idx', 'sub_40121D': 'set_binary_values'}"}
grep_source_init
3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7
msysgit
msysgit
NA
void grep_source_init(struct grep_source *gs, enum grep_source_type type, const char *name, const char *path, const void *identifier) { gs->type = type; gs->name = name ? xstrdup(name) : NULL; gs->path = path ? xstrdup(path) : NULL; gs->buf = NULL; gs->size = 0; gs->driver = NULL; switch (type) { case GREP_SOURCE_FILE: gs->identifier = xstrdup(identifier); break; case GREP_SOURCE_SHA1: gs->identifier = xmalloc(20); memcpy(gs->identifier, identifier, 20); break; case GREP_SOURCE_BUF: gs->identifier = NULL; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_488ED9", "function_addr": 4755161, "binary_name": "3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov [rbp+var_20], rcx"], [7, "mov [rbp+src], r8"], [8, "mov rax, [rbp+var_8]"], [9, "mov edx, [rbp+var_C]"], [10, "mov [rax+8], edx"], [11, "cmp [rbp+var_18], 0"], [12, "jz short loc_488F13"], [13, "mov rax, [rbp+var_18]"], [14, "mov rdi, rax"], [15, "call sub_43534E"], [16, "jmp short loc_488F18"], [17, "mov eax, 0"], [18, "mov rdx, [rbp+var_8]"], [19, "mov [rdx], rax"], [20, "cmp [rbp+var_20], 0"], [21, "jz short loc_488F34"], [22, "mov rax, [rbp+var_20]"], [23, "mov rdi, rax"], [24, "call sub_43534E"], [25, "jmp short loc_488F39"], [26, "mov eax, 0"], [27, "mov rdx, [rbp+var_8]"], [28, "mov [rdx+28h], rax"], [29, "mov rax, [rbp+var_8]"], [30, "mov qword ptr [rax+18h], 0"], [31, "mov rax, [rbp+var_8]"], [32, "mov qword ptr [rax+20h], 0"], [33, "mov rax, [rbp+var_8]"], [34, "mov qword ptr [rax+30h], 0"], [35, "cmp [rbp+var_C], 2"], [36, "jz short loc_488FC3"], [37, "cmp [rbp+var_C], 2"], [38, "ja short loc_488FD1"], [39, "cmp [rbp+var_C], 0"], [40, "jz short loc_488F93"], [41, "cmp [rbp+var_C], 1"], [42, "jnz short loc_488FD1"], [43, "mov rax, [rbp+src]"], [44, "mov rdi, rax"], [45, "call sub_43534E"], [46, "mov rdx, [rbp+var_8]"], [47, "mov [rdx+10h], rax"], [48, "jmp short loc_488FD1"], [49, "mov edi, 14h"], [50, "call sub_4353BE"], [51, "mov rdx, [rbp+var_8]"], [52, "mov [rdx+10h], rax"], [53, "mov rax, [rbp+var_8]"], [54, "mov rax, [rax+10h]"], [55, "mov rcx, [rbp+src]"], [56, "mov edx, 14h"], [57, "mov rsi, rcx"], [58, "mov rdi, rax"], [59, "call _memcpy"], [60, "jmp short loc_488FD1"], [61, "mov rax, [rbp+var_8]"], [62, "mov qword ptr [rax+10h], 0"], [63, "jmp short $+2"], [64, "nop"], [65, "leave"], [66, "retn"]], "data_dep": [[8, 3], [9, 4], [10, 9], [10, 8], [11, 5], [12, 11], [13, 5], [14, 13], [18, 3], [19, 18], [19, 15], [19, 17], [20, 6], [21, 20], [22, 6], [23, 22], [27, 3], [28, 24], [28, 27], [28, 26], [29, 3], [30, 29], [31, 3], [32, 31], [33, 3], [34, 33], [35, 4], [36, 35], [37, 4], [38, 37], [39, 4], [40, 39], [41, 4], [42, 41], [43, 7], [44, 43], [46, 3], [47, 46], [47, 45], [51, 3], [52, 51], [52, 50], [53, 3], [54, 52], [54, 53], [55, 7], [57, 55], [58, 54], [61, 3], [62, 61], [66, 33], [66, 45], [66, 59], [66, 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/3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7_3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7.jsonl.gz", "strip_func_name": "sub_488ED9", "query": "\n\n\nvoid *__fastcall sub_488ED9(__int64 a1, __int64 a2, const char *a3, const char *a4, const char *a5, __int64 a6)\n{\nchar *v6; // rax\nchar *v7; // rax\nvoid *result; // rax\n\n*(_DWORD *)(a1 + 8) = a2;\nif ( a3 )\nv6 = sub_43534E(a3, a2);\nelse\nv6 = 0LL;\n*(_QWORD *)a1 = v6;\nif ( a4 )\nv7 = sub_43534E(a4, a2);\nelse\nv7 = 0LL;\n*(_QWORD *)(a1 + 40) = v7;\n*(_QWORD *)(a1 + 24) = 0LL;\n*(_QWORD *)(a1 + 32) = 0LL;\nresult = (void *)a1;\n*(_QWORD *)(a1 + 48) = 0LL;\nif ( (_DWORD)a2 == 2 )\n{\nresult = (void *)a1;\n*(_QWORD *)(a1 + 16) = 0LL;\n}\nelse if ( (unsigned int)a2 <= 2 )\n{\nif ( (_DWORD)a2 )\n{\nresult = sub_43534E(a5, a2);\n*(_QWORD *)(a1 + 16) = result;\n}\nelse\n{\n*(_QWORD *)(a1 + 16) = sub_4353BE(0x14uLL, a2, a1, (__int64)a4, (__int64)a5, a6);\nresult = memcpy(*(void **)(a1 + 16), a5, 0x14uLL);\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,sub_488ED9,sub_43534E,sub_4353BE,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'name', 'a4': 'path', 'a1': 'gs_0', 'a2': 'type', 'a5': 'identifier', 'sub_488ED9': 'grep_source_init', 'sub_43534E': 'xstrdup', 'sub_4353BE': 'xmalloc'}"}
krk_growStack
b96d14afe5a309f3d2768451909eadc66db3a51f9332c796791f24616961688b
klange
ponyos
NA
void krk_growStack(void) { size_t old = krk_currentThread.stackSize; size_t old_offset = krk_currentThread.stackTop - krk_currentThread.stack; krk_currentThread.stackSize = GROW_CAPACITY(old); krk_currentThread.stack = GROW_ARRAY(KrkValue, krk_currentThread.stack, old, krk_currentThread.stackSize); krk_currentThread.stackTop = krk_currentThread.stack + old_offset; krk_currentThread.stackMax = krk_currentThread.stack + krk_currentThread.stackSize; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45F46A", "function_addr": 4584554, "binary_name": "b96d14afe5a309f3d2768451909eadc66db3a51f9332c796791f24616961688b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov rax, cs:qword_488498"], [4, "mov [rbp+var_8], rax"], [5, "mov rax, cs:qword_4884A8"], [6, "mov rdx, cs:qword_4884A0"], [7, "sub rax, rdx"], [8, "sar rax, 3"], [9, "mov [rbp+var_10], rax"], [10, "cmp [rbp+var_8], 7"], [11, "jbe short loc_45F4A6"], [12, "mov rax, [rbp+var_8]"], [13, "add rax, rax"], [14, "jmp short loc_45F4AB"], [15, "mov eax, 8"], [16, "mov cs:qword_488498, rax"], [17, "mov rax, cs:qword_488498"], [18, "lea rdx, ds:0[rax*8]"], [19, "mov rax, [rbp+var_8]"], [20, "lea rcx, ds:0[rax*8]"], [21, "mov rax, cs:qword_4884A0"], [22, "mov rsi, rcx"], [23, "mov rdi, rax"], [24, "call sub_42A5F0"], [25, "mov cs:qword_4884A0, rax"], [26, "mov rdx, cs:qword_4884A0"], [27, "mov rax, [rbp+var_10]"], [28, "shl rax, 3"], [29, "add rax, rdx"], [30, "mov cs:qword_4884A8, rax"], [31, "mov rdx, cs:qword_4884A0"], [32, "mov rax, cs:qword_488498"], [33, "shl rax, 3"], [34, "add rax, rdx"], [35, "mov cs:qword_4884D8, rax"], [36, "nop"], [37, "leave"], [38, "retn"]], "data_dep": [[4, 3], [7, 6], [7, 5], [8, 7], [9, 8], [10, 4], [11, 10], [12, 4], [13, 12], [16, 13], [16, 15], [17, 16], [18, 6], [19, 4], [22, 20], [23, 21], [25, 24], [26, 25], [27, 9], [28, 27], [29, 26], [29, 28], [30, 29], [31, 25], [32, 16], [33, 32], [34, 31], [34, 33], [35, 34], [38, 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/b96d14afe5a309f3d2768451909eadc66db3a51f9332c796791f24616961688b_b96d14afe5a309f3d2768451909eadc66db3a51f9332c796791f24616961688b.jsonl.gz", "strip_func_name": "sub_45F46A", "query": "\n\n\n__int64 sub_45F46A()\n{\n__int64 v0; // rax\n__int64 result; // rax\n__int64 v2; // [rsp+0h] [rbp-10h]\n__int64 v3; // [rsp+8h] [rbp-8h]\n\nv3 = qword_488498;\nv2 = (qword_4884A8 - qword_4884A0) >> 3;\nif ( (unsigned __int64)qword_488498 <= 7 )\nv0 = 8LL;\nelse\nv0 = 2 * qword_488498;\nqword_488498 = v0;\nqword_4884A0 = (__int64)sub_42A5F0((void *)qword_4884A0, 8 * v3, 8 * v0);\nqword_4884A8 = qword_4884A0 + 8 * v2;\nresult = qword_4884A0 + 8 * qword_488498;\nqword_4884D8 = result;\nreturn result;\n}\n\n\n\nQ:[v2,v3,sub_45F46A,sub_42A5F0,]\nAssistant: ", "hints": "[]", "response": "{'v2': 'old_offset', 'v3': 'old', 'sub_45F46A': 'krk_growStack', 'sub_42A5F0': 'krk_reallocate'}"}
timerC
d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3
velorek1
C-edit
NA
int timerC(NTIMER *mytimer1){ clock_t difference = 0; long res; if (mytimer1->ticks == 0){ //First tick, set up values mytimer1->oldtime = clock(); mytimer1->ticks = 1; return 1; } else{ //subsequent ticks difference = clock() - mytimer1->oldtime; res = difference * 1000 / CLOCKS_PER_SEC; if (res < mytimer1->ms) { return 0; } else{ mytimer1->oldtime = clock(); mytimer1->ticks = mytimer1->ticks + 1; return 1; } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40A8B5", "function_addr": 4237493, "binary_name": "d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3.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_8], 0"], [5, "mov rax, [rbp+var_18]"], [6, "mov rax, [rax+10h]"], [7, "test rax, rax"], [8, "jnz short loc_40A8F6"], [9, "call _clock"], [10, "mov rdx, [rbp+var_18]"], [11, "mov [rdx+8], rax"], [12, "mov rax, [rbp+var_18]"], [13, "mov qword ptr [rax+10h], 1"], [14, "mov eax, 1"], [15, "jmp short locret_40A96E"], [16, "call _clock"], [17, "mov rdx, [rbp+var_18]"], [18, "mov rdx, [rdx+8]"], [19, "sub rax, rdx"], [20, "mov [rbp+var_8], rax"], [21, "mov rcx, [rbp+var_8]"], [22, "mov rdx, 20C49BA5E353F7CFh"], [23, "mov rax, rcx"], [24, "imul rdx"], [25, "mov rax, rdx"], [26, "sar rax, 7"], [27, "sar rcx, 3Fh"], [28, "mov rdx, rcx"], [29, "sub rax, rdx"], [30, "mov [rbp+var_10], rax"], [31, "mov rax, [rbp+var_18]"], [32, "mov eax, [rax]"], [33, "cdqe"], [34, "cmp [rbp+var_10], rax"], [35, "jge short loc_40A948"], [36, "mov eax, 0"], [37, "jmp short locret_40A96E"], [38, "call _clock"], [39, "mov rdx, [rbp+var_18]"], [40, "mov [rdx+8], rax"], [41, "mov rax, [rbp+var_18]"], [42, "mov rax, [rax+10h]"], [43, "lea rdx, [rax+1]"], [44, "mov rax, [rbp+var_18]"], [45, "mov [rax+10h], rdx"], [46, "mov eax, 1"], [47, "leave"], [48, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [10, 3], [11, 10], [11, 9], [12, 3], [13, 12], [17, 3], [18, 17], [19, 18], [19, 16], [20, 19], [21, 20], [23, 21], [24, 22], [25, 24], [26, 25], [27, 21], [28, 27], [29, 26], [29, 28], [30, 29], [31, 3], [32, 31], [34, 30], [34, 32], [35, 34], [39, 3], [40, 38], [40, 39], [41, 3], [42, 41], [42, 40], [43, 40], [43, 39], [43, 42], [44, 3], [45, 43], [45, 44], [48, 36], [48, 14], [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/d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3_d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3.jsonl.gz", "strip_func_name": "sub_40A8B5", "query": "\n\n\n__int64 __fastcall sub_40A8B5(int *a1)\n{\n__int64 result; // rax\n\nif ( *((_QWORD *)a1 + 2) )\n{\nif ( (clock() - *((_QWORD *)a1 + 1)) / 1000 >= *a1 )\n{\n*((_QWORD *)a1 + 1) = clock();\n++*((_QWORD *)a1 + 2);\nresult = 1LL;\n}\nelse\n{\nresult = 0LL;\n}\n}\nelse\n{\n*((_QWORD *)a1 + 1) = clock();\n*((_QWORD *)a1 + 2) = 1LL;\nresult = 1LL;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_40A8B5,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'mytimer1', 'sub_40A8B5': 'timerC'}"}
print_ocsp_summary
11d51f39d967e6c925cbbbf561559e32fec33ac3b7a84b8e1e75a62d16d81f0a
sniperHW
chuck
NA
static void print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req, STACK_OF(OPENSSL_STRING) *names, STACK_OF(OCSP_CERTID) *ids, long nsec, long maxage) { OCSP_CERTID *id; const char *name; int i, status, reason; ASN1_GENERALIZEDTIME *rev, *thisupd, *nextupd; if (!bs || !req || !sk_OPENSSL_STRING_num(names) || !sk_OCSP_CERTID_num(ids)) return; for (i = 0; i < sk_OCSP_CERTID_num(ids); i++) { id = sk_OCSP_CERTID_value(ids, i); name = sk_OPENSSL_STRING_value(names, i); BIO_printf(out, "%s: ", name); if (!OCSP_resp_find_status(bs, id, &status, &reason, &rev, &thisupd, &nextupd)) { BIO_puts(out, "ERROR: No Status found.\n"); continue; } /* * Check validity: if invalid write to output BIO so we know which * response this refers to. */ if (!OCSP_check_validity(thisupd, nextupd, nsec, maxage)) { BIO_puts(out, "WARNING: Status times invalid.\n"); ERR_print_errors(out); } BIO_printf(out, "%s\n", OCSP_cert_status_str(status)); BIO_puts(out, "\tThis Update: "); ASN1_GENERALIZEDTIME_print(out, thisupd); BIO_puts(out, "\n"); if (nextupd) { BIO_puts(out, "\tNext Update: "); ASN1_GENERALIZEDTIME_print(out, nextupd); BIO_puts(out, "\n"); } if (status != V_OCSP_CERTSTATUS_REVOKED) continue; if (reason != -1) BIO_printf(out, "\tReason: %s\n", OCSP_crl_reason_str(reason)); BIO_puts(out, "\tRevocation Time: "); ASN1_GENERALIZEDTIME_print(out, rev); BIO_puts(out, "\n"); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_437AA5", "function_addr": 4422309, "binary_name": "11d51f39d967e6c925cbbbf561559e32fec33ac3b7a84b8e1e75a62d16d81f0a.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_58], rdx"], [6, "mov [rbp+var_60], rcx"], [7, "mov [rbp+var_68], r8"], [8, "mov [rbp+var_70], r9"], [9, "cmp [rbp+var_50], 0"], [10, "jz loc_437CF5"], [11, "cmp [rbp+var_58], 0"], [12, "jz loc_437CF5"], [13, "mov rax, [rbp+var_60]"], [14, "mov rdi, rax"], [15, "call sub_435DC5"], [16, "test eax, eax"], [17, "jz loc_437CF5"], [18, "mov rax, [rbp+var_68]"], [19, "mov rdi, rax"], [20, "call sub_435F04"], [21, "test eax, eax"], [22, "jz loc_437CF5"], [23, "mov [rbp+var_4], 0"], [24, "jmp loc_437CDE"], [25, "mov edx, [rbp+var_4]"], [26, "mov rax, [rbp+var_68]"], [27, "mov esi, edx"], [28, "mov rdi, rax"], [29, "call sub_435F1E"], [30, "mov [rbp+var_10], rax"], [31, "mov edx, [rbp+var_4]"], [32, "mov rax, [rbp+var_60]"], [33, "mov esi, edx"], [34, "mov rdi, rax"], [35, "call sub_435DDF"], [36, "mov [rbp+var_18], rax"], [37, "mov rdx, [rbp+var_18]"], [38, "mov rax, [rbp+var_48]"], [39, "mov esi, offset aS_7"], [40, "mov rdi, rax"], [41, "mov eax, 0"], [42, "call _BIO_printf"], [43, "lea r9, [rbp+var_30]"], [44, "lea r8, [rbp+var_28]"], [45, "lea rcx, [rbp+var_20]"], [46, "lea rdx, [rbp+var_1C]"], [47, "mov rsi, [rbp+var_10]"], [48, "mov rax, [rbp+var_50]"], [49, "sub rsp, 8"], [50, "lea rdi, [rbp+var_38]"], [51, "push rdi"], [52, "mov rdi, rax"], [53, "call _OCSP_resp_find_status"], [54, "add rsp, 10h"], [55, "test eax, eax"], [56, "jnz short loc_437B9A"], [57, "mov rax, [rbp+var_48]"], [58, "mov esi, offset aErrorNoStatusF"], [59, "mov rdi, rax"], [60, "call _BIO_puts"], [61, "jmp loc_437CDA"], [62, "mov rsi, [rbp+var_38]"], [63, "mov rax, [rbp+var_30]"], [64, "mov rdx, [rbp+var_70]"], [65, "mov rcx, [rbp+arg_0]"], [66, "mov rdi, rax"], [67, "call _OCSP_check_validity"], [68, "test eax, eax"], [69, "jnz short loc_437BD3"], [70, "mov rax, [rbp+var_48]"], [71, "mov esi, offset aWarningStatusT"], [72, "mov rdi, rax"], [73, "call _BIO_puts"], [74, "mov rax, [rbp+var_48]"], [75, "mov rdi, rax"], [76, "call _ERR_print_errors"], [77, "mov eax, [rbp+var_1C]"], [78, "cdqe"], [79, "mov rdi, rax"], [80, "call _OCSP_cert_status_str"], [81, "mov rdx, rax"], [82, "mov rax, [rbp+var_48]"], [83, "mov esi, offset aS_8"], [84, "mov rdi, rax"], [85, "mov eax, 0"], [86, "call _BIO_printf"], [87, "mov rax, [rbp+var_48]"], [88, "mov esi, offset aThisUpdate"], [89, "mov rdi, rax"], [90, "call _BIO_puts"], [91, "mov rdx, [rbp+var_30]"], [92, "mov rax, [rbp+var_48]"], [93, "mov rsi, rdx"], [94, "mov rdi, rax"], [95, "call _ASN1_GENERALIZEDTIME_print"], [96, "mov rax, [rbp+var_48]"], [97, "mov esi, offset asc_4749CB"], [98, "mov rdi, rax"], [99, "call _BIO_puts"], [100, "mov rax, [rbp+var_38]"], [101, "test rax, rax"], [102, "jz short loc_437C6C"], [103, "mov rax, [rbp+var_48]"], [104, "mov esi, offset aNextUpdate"], [105, "mov rdi, rax"], [106, "call _BIO_puts"], [107, "mov rdx, [rbp+var_38]"], [108, "mov rax, [rbp+var_48]"], [109, "mov rsi, rdx"], [110, "mov rdi, rax"], [111, "call _ASN1_GENERALIZEDTIME_print"], [112, "mov rax, [rbp+var_48]"], [113, "mov esi, offset asc_4749CB"], [114, "mov rdi, rax"], [115, "call _BIO_puts"], [116, "mov eax, [rbp+var_1C]"], [117, "cmp eax, 1"], [118, "jnz short loc_437CD9"], [119, "mov eax, [rbp+var_20]"], [120, "cmp eax, 0FFFFFFFFh"], [121, "jz short loc_437CA2"], [122, "mov eax, [rbp+var_20]"], [123, "cdqe"], [124, "mov rdi, rax"], [125, "call _OCSP_crl_reason_str"], [126, "mov rdx, rax"], [127, "mov rax, [rbp+var_48]"], [128, "mov esi, offset aReasonS"], [129, "mov rdi, rax"], [130, "mov eax, 0"], [131, "call _BIO_printf"], [132, "mov rax, [rbp+var_48]"], [133, "mov esi, offset aRevocationTime"], [134, "mov rdi, rax"], [135, "call _BIO_puts"], [136, "mov rdx, [rbp+var_28]"], [137, "mov rax, [rbp+var_48]"], [138, "mov rsi, rdx"], [139, "mov rdi, rax"], [140, "call _ASN1_GENERALIZEDTIME_print"], [141, "mov rax, [rbp+var_48]"], [142, "mov esi, offset asc_4749CB"], [143, "mov rdi, rax"], [144, "call _BIO_puts"], [145, "jmp short loc_437CDA"], [146, "nop"], [147, "add [rbp+var_4], 1"], [148, "mov rax, [rbp+var_68]"], [149, "mov rdi, rax"], [150, "call sub_435F04"], [151, "cmp [rbp+var_4], eax"], [152, "jl loc_437B0F"], [153, "jmp short locret_437CF6"], [154, "nop"], [155, "leave"], [156, "retn"]], "data_dep": [[9, 4], [10, 9], [11, 5], [12, 11], [13, 6], [14, 13], [16, 15], [17, 16], [18, 7], [19, 18], [21, 20], [22, 21], [25, 23], [25, 147], [26, 7], [27, 25], [28, 26], [30, 29], [31, 147], [31, 23], [32, 6], [33, 31], [34, 32], [36, 35], [37, 36], [38, 3], [40, 38], [43, 43], [44, 44], [45, 65], [45, 45], [46, 37], [47, 30], [48, 4], [49, 2], [49, 54], [50, 40], [51, 50], [52, 48], [54, 49], [55, 53], [56, 55], [57, 3], [59, 57], [64, 8], [66, 63], [68, 67], [69, 68], [70, 3], [72, 70], [74, 3], [75, 74], [79, 77], [81, 80], [82, 3], [84, 82], [87, 3], [89, 87], [92, 3], [93, 91], [94, 92], [96, 3], [98, 96], [101, 100], [102, 101], [103, 3], [105, 103], [108, 3], [109, 107], [110, 108], [112, 3], [114, 112], [117, 116], [118, 117], [120, 119], [121, 120], [124, 122], [126, 125], [127, 3], [129, 127], [132, 3], [134, 132], [137, 3], [138, 136], [139, 137], [141, 3], [143, 141], [147, 23], [147, 147], [148, 7], [149, 148], [151, 150], [151, 147], [151, 23], [152, 151], [156, 21], [156, 16], [156, 150]]}
{"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/11d51f39d967e6c925cbbbf561559e32fec33ac3b7a84b8e1e75a62d16d81f0a_11d51f39d967e6c925cbbbf561559e32fec33ac3b7a84b8e1e75a62d16d81f0a.jsonl.gz", "strip_func_name": "sub_437AA5", "query": "\n\n\nvoid __fastcall sub_437AA5(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)\n{\n__int64 v7; // [rsp+38h] [rbp-38h]\nint v8; // [rsp+50h] [rbp-20h]\nint v9; // [rsp+54h] [rbp-1Ch]\nunsigned int i; // [rsp+6Ch] [rbp-4h]\n\nif ( a2 && a3 && (unsigned int)sub_435DC5(a4) && (unsigned int)sub_435F04(a5) )\n{\nfor ( i = 0; (int)i < (int)sub_435F04(a5); ++i )\n{\nsub_435F1E(a5, i);\nsub_435DDF(a4, i);\nBIO_printf();\nif ( (unsigned int)OCSP_resp_find_status() )\n{\nif ( !(unsigned int)OCSP_check_validity() )\n{\nBIO_puts();\nERR_print_errors();\n}\nOCSP_cert_status_str();\nBIO_printf();\nBIO_puts();\nASN1_GENERALIZEDTIME_print();\nBIO_puts();\nif ( v7 )\n{\nBIO_puts();\nASN1_GENERALIZEDTIME_print();\nBIO_puts();\n}\nif ( v9 == 1 )\n{\nif ( v8 != -1 )\n{\nOCSP_crl_reason_str();\nBIO_printf();\n}\nBIO_puts();\nASN1_GENERALIZEDTIME_print();\nBIO_puts();\n}\n}\nelse\n{\nBIO_puts();\n}\n}\n}\n}\n\n\n\nQ:[a3,a4,a2,a5,a1,v7,v8,v9,sub_437AA5,sub_435DC5,sub_435F04,sub_435F1E,sub_435DDF,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'req', 'a4': 'names', 'a2': 'bs', 'a5': 'ids', 'a1': 'out', 'v7': 'nextupd', 'v8': 'reason', 'v9': 'status', 'sub_437AA5': 'print_ocsp_summary', 'sub_435DC5': 'sk_OPENSSL_STRING_num_4', 'sub_435F04': 'sk_OCSP_CERTID_num', 'sub_435F1E': 'sk_OCSP_CERTID_value', 'sub_435DDF': 'sk_OPENSSL_STRING_value_4'}"}
lv_disp_set_theme
53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783
sukesh-ak
ESP32-TUX
NA
void lv_disp_set_theme(lv_disp_t * disp, lv_theme_t * th) { if(!disp) disp = lv_disp_get_default(); if(!disp) { LV_LOG_WARN("no display registered"); return; } disp->theme = th; if(disp->screen_cnt == 3 && lv_obj_get_child_cnt(disp->screens[0]) == 0 && lv_obj_get_child_cnt(disp->screens[1]) == 0 && lv_obj_get_child_cnt(disp->screens[2]) == 0) { lv_theme_apply(disp->screens[0]); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413A62", "function_addr": 4274786, "binary_name": "53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "cmp [rbp+var_8], 0"], [6, "jnz short loc_413A82"], [7, "call sub_467A09"], [8, "mov [rbp+var_8], rax"], [9, "cmp [rbp+var_8], 0"], [10, "jz short loc_413B03"], [11, "mov rax, [rbp+var_8]"], [12, "mov rdx, [rbp+var_10]"], [13, "mov [rax+10h], rdx"], [14, "mov rax, [rbp+var_8]"], [15, "mov eax, [rax+48h]"], [16, "cmp eax, 3"], [17, "jnz short locret_413B04"], [18, "mov rax, [rbp+var_8]"], [19, "mov rax, [rax+18h]"], [20, "mov rax, [rax]"], [21, "mov rdi, rax"], [22, "call sub_4285BE"], [23, "test eax, eax"], [24, "jnz short locret_413B04"], [25, "mov rax, [rbp+var_8]"], [26, "mov rax, [rax+18h]"], [27, "add rax, 8"], [28, "mov rax, [rax]"], [29, "mov rdi, rax"], [30, "call sub_4285BE"], [31, "test eax, eax"], [32, "jnz short locret_413B04"], [33, "mov rax, [rbp+var_8]"], [34, "mov rax, [rax+18h]"], [35, "add rax, 10h"], [36, "mov rax, [rax]"], [37, "mov rdi, rax"], [38, "call sub_4285BE"], [39, "test eax, eax"], [40, "jnz short locret_413B04"], [41, "mov rax, [rbp+var_8]"], [42, "mov rax, [rax+18h]"], [43, "mov rax, [rax]"], [44, "mov rdi, rax"], [45, "call sub_42C2ED"], [46, "jmp short locret_413B04"], [47, "nop"], [48, "leave"], [49, "retn"]], "data_dep": [[5, 3], [6, 5], [8, 7], [9, 8], [9, 3], [10, 9], [11, 8], [11, 3], [12, 4], [13, 11], [13, 12], [14, 3], [14, 8], [15, 14], [15, 13], [16, 15], [17, 16], [18, 3], [18, 8], [19, 18], [19, 13], [20, 13], [20, 19], [21, 20], [23, 22], [24, 23], [25, 3], [25, 8], [26, 13], [26, 25], [27, 26], [28, 27], [28, 13], [29, 28], [31, 30], [32, 31], [33, 8], [33, 3], [34, 13], [34, 33], [35, 34], [36, 13], [36, 35], [37, 36], [39, 38], [40, 39], [41, 3], [41, 8], [42, 41], [42, 13], [43, 42], [43, 13], [44, 43], [49, 23], [49, 7], [49, 31], [49, 15], [49, 39], [49, 45]]}
{"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_413A62", "query": "\n\n\nvoid __fastcall sub_413A62(__int64 a1, __int64 a2)\n{\n__int64 v2; // [rsp+8h] [rbp-8h]\n\nv2 = a1;\nif ( !a1 )\nv2 = sub_467A09();\nif ( v2 )\n{\n*(_QWORD *)(v2 + 16) = a2;\nif ( *(_DWORD *)(v2 + 72) == 3\n&& !(unsigned int)sub_4285BE(**(_QWORD **)(v2 + 24))\n&& !(unsigned int)sub_4285BE(*(_QWORD *)(*(_QWORD *)(v2 + 24) + 8LL))\n&& !(unsigned int)sub_4285BE(*(_QWORD *)(*(_QWORD *)(v2 + 24) + 16LL)) )\n{\nsub_42C2ED(**(_QWORD **)(v2 + 24));\n}\n}\n}\n\n\n\nQ:[a1,a2,v2,sub_413A62,sub_467A09,sub_4285BE,sub_42C2ED,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'disp', 'a2': 'th', 'v2': 'dispa', 'sub_413A62': 'lv_disp_set_theme', 'sub_467A09': 'lv_disp_get_default', 'sub_4285BE': 'lv_obj_get_child_cnt', 'sub_42C2ED': 'lv_theme_apply'}"}
HT_Compare
aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1
dmsc
fastbasic
NA
static int HT_Compare (const void* Key1, const void* Key2) /* Compare two keys. The function must return a value less than zero if ** Key1 is smaller than Key2, zero if both are equal, and a value greater ** than zero if Key1 is greater then Key2. */ { /* Convert both parameters to FileInfoKey pointers */ const LineInfoKey* K1 = Key1; const LineInfoKey* K2 = Key2; /* Compare line number, then file and type */ int Res = (int)K2->Pos.Line - (int)K1->Pos.Line; if (Res == 0) { Res = (int)K2->Pos.Name - (int)K1->Pos.Name; if (Res == 0) { Res = (int)K2->Type - (int)K1->Type; } } /* Done */ return Res; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40849F", "function_addr": 4228255, "binary_name": "aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_28], rdi"], [3, "mov [rbp+var_30], rsi"], [4, "mov rax, [rbp+var_28]"], [5, "mov [rbp+var_10], rax"], [6, "mov rax, [rbp+var_30]"], [7, "mov [rbp+var_18], rax"], [8, "mov rax, [rbp+var_18]"], [9, "mov eax, [rax]"], [10, "mov edx, eax"], [11, "mov rax, [rbp+var_10]"], [12, "mov eax, [rax]"], [13, "mov ecx, eax"], [14, "mov eax, edx"], [15, "sub eax, ecx"], [16, "mov [rbp+var_4], eax"], [17, "cmp [rbp+var_4], 0"], [18, "jnz short loc_408510"], [19, "mov rax, [rbp+var_18]"], [20, "mov eax, [rax+8]"], [21, "mov edx, eax"], [22, "mov rax, [rbp+var_10]"], [23, "mov eax, [rax+8]"], [24, "mov ecx, eax"], [25, "mov eax, edx"], [26, "sub eax, ecx"], [27, "mov [rbp+var_4], eax"], [28, "cmp [rbp+var_4], 0"], [29, "jnz short loc_408510"], [30, "mov rax, [rbp+var_18]"], [31, "mov eax, [rax+0Ch]"], [32, "mov edx, eax"], [33, "mov rax, [rbp+var_10]"], [34, "mov eax, [rax+0Ch]"], [35, "mov ecx, eax"], [36, "mov eax, edx"], [37, "sub eax, ecx"], [38, "mov [rbp+var_4], eax"], [39, "mov eax, [rbp+var_4]"], [40, "pop rbp"], [41, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 3], [7, 6], [8, 7], [9, 8], [10, 9], [11, 5], [12, 11], [13, 12], [14, 10], [15, 14], [15, 13], [16, 15], [17, 16], [18, 17], [19, 7], [20, 19], [21, 20], [22, 5], [23, 22], [24, 23], [25, 21], [26, 24], [26, 25], [27, 26], [28, 27], [29, 28], [30, 7], [31, 30], [32, 31], [33, 5], [34, 33], [35, 34], [36, 32], [37, 36], [37, 35], [38, 37], [39, 27], [39, 38], [39, 16], [40, 0], [41, 39]]}
{"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_40849F", "query": "\n\n\n__int64 __fastcall sub_40849F(_DWORD *a1, _DWORD *a2)\n{\nunsigned int v3; // [rsp+2Ch] [rbp-4h]\n\nv3 = *a2 - *a1;\nif ( !v3 )\n{\nv3 = a2[2] - a1[2];\nif ( !v3 )\nv3 = a2[3] - a1[3];\n}\nreturn v3;\n}\n\n\n\nQ:[a1,a2,v3,sub_40849F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'Key1', 'a2': 'Key2', 'v3': 'Res', 'sub_40849F': 'HT_Compare_0'}"}
lodepng_compress_settings_init
d023f3875f5955e9b385841f3271df143d3799e25ee4d6b02e0c5e40f1d519c2
Mikejmoffitt
mdk
NA
void lodepng_compress_settings_init(LodePNGCompressSettings* settings) { /*compress with dynamic huffman tree (not in the mathematical sense, just not the predefined one)*/ settings->btype = 2; settings->use_lz77 = 1; settings->windowsize = DEFAULT_WINDOWSIZE; settings->minmatch = 3; settings->nicematch = 128; settings->lazymatching = 1; settings->custom_zlib = 0; settings->custom_deflate = 0; settings->custom_context = 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407503", "function_addr": 4224259, "binary_name": "d023f3875f5955e9b385841f3271df143d3799e25ee4d6b02e0c5e40f1d519c2.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], 2"], [5, "mov rax, [rbp+var_8]"], [6, "mov dword ptr [rax+4], 1"], [7, "mov rax, [rbp+var_8]"], [8, "mov dword ptr [rax+8], 800h"], [9, "mov rax, [rbp+var_8]"], [10, "mov dword ptr [rax+0Ch], 3"], [11, "mov rax, [rbp+var_8]"], [12, "mov dword ptr [rax+10h], 80h"], [13, "mov rax, [rbp+var_8]"], [14, "mov dword ptr [rax+14h], 1"], [15, "mov rax, [rbp+var_8]"], [16, "mov qword ptr [rax+18h], 0"], [17, "mov rax, [rbp+var_8]"], [18, "mov qword ptr [rax+20h], 0"], [19, "mov rax, [rbp+var_8]"], [20, "mov qword ptr [rax+28h], 0"], [21, "nop"], [22, "pop rbp"], [23, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 2], [6, 5], [7, 2], [8, 7], [9, 2], [10, 9], [11, 2], [12, 11], [13, 2], [14, 13], [15, 2], [16, 15], [17, 2], [18, 17], [19, 2], [20, 19], [22, 0], [23, 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/d023f3875f5955e9b385841f3271df143d3799e25ee4d6b02e0c5e40f1d519c2_d023f3875f5955e9b385841f3271df143d3799e25ee4d6b02e0c5e40f1d519c2.jsonl.gz", "strip_func_name": "sub_407503", "query": "\n\n\n__int64 __fastcall sub_407503(__int64 a1)\n{\n__int64 result; // rax\n\n*(_DWORD *)a1 = 2;\n*(_DWORD *)(a1 + 4) = 1;\n*(_DWORD *)(a1 + 8) = 2048;\n*(_DWORD *)(a1 + 12) = 3;\n*(_DWORD *)(a1 + 16) = 128;\n*(_DWORD *)(a1 + 20) = 1;\n*(_QWORD *)(a1 + 24) = 0LL;\n*(_QWORD *)(a1 + 32) = 0LL;\nresult = a1;\n*(_QWORD *)(a1 + 40) = 0LL;\nreturn result;\n}\n\n\n\nQ:[a1,sub_407503,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'settings', 'sub_407503': 'lodepng_compress_settings_init'}"}
UG_WindowGetYStart
3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107
digitalbitbox
bitbox02-firmware
NA
UG_S16 UG_WindowGetYStart( UG_WINDOW* wnd ) { UG_S16 ys = -1; if ( (wnd != NULL) && (wnd->state & WND_STATE_VALID) ) { ys = wnd->ys; } return ys; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406458", "function_addr": 4219992, "binary_name": "3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_2], 0FFFFh"], [4, "cmp [rbp+var_18], 0"], [5, "jz short loc_40648B"], [6, "mov rax, [rbp+var_18]"], [7, "movzx eax, byte ptr [rax+10h]"], [8, "movzx eax, al"], [9, "and eax, 2"], [10, "test eax, eax"], [11, "jz short loc_40648B"], [12, "mov rax, [rbp+var_18]"], [13, "movzx eax, word ptr [rax+1Eh]"], [14, "mov [rbp+var_2], ax"], [15, "movzx eax, [rbp+var_2]"], [16, "pop rbp"], [17, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 2], [13, 12], [14, 13], [15, 14], [15, 3], [16, 0], [17, 15]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107_3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.jsonl.gz", "strip_func_name": "sub_406458", "query": "\n\n\n__int64 __fastcall sub_406458(__int64 a1)\n{\nunsigned __int16 v2; // [rsp+16h] [rbp-2h]\n\nv2 = -1;\nif ( a1 && (*(_BYTE *)(a1 + 16) & 2) != 0 )\nv2 = *(_WORD *)(a1 + 30);\nreturn v2;\n}\n\n\n\nQ:[a1,v2,sub_406458,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'wnd', 'v2': 'ys', 'sub_406458': 'UG_WindowGetYStart'}"}
xdr_qcsapi_get_phy_stats_rpcdata
501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30
coolsnowwolf
lede
NA
bool_t xdr_qcsapi_get_phy_stats_rpcdata (XDR *xdrs, qcsapi_get_phy_stats_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->stats, sizeof (__rpc_qcsapi_phy_stats), (xdrproc_t) xdr___rpc_qcsapi_phy_stats)) return FALSE; if (!xdr_int (xdrs, &objp->return_code)) return FALSE; return TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_444F19", "function_addr": 4476697, "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_444F53"], [14, "mov eax, 0"], [15, "jmp short locret_444FA8"], [16, "mov rax, [rbp+objpp]"], [17, "lea rsi, [rax+8]"], [18, "mov rax, [rbp+xdrs]"], [19, "mov rdx, offset sub_431D7D"], [20, "mov rcx, rdx"], [21, "mov edx, 80h"], [22, "mov rdi, rax"], [23, "call _xdr_pointer"], [24, "test eax, eax"], [25, "jnz short loc_444F81"], [26, "mov eax, 0"], [27, "jmp short locret_444FA8"], [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_444FA3"], [36, "mov eax, 0"], [37, "jmp short locret_444FA8"], [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_444F19", "query": "\n\n\n_BOOL8 __fastcall sub_444F19(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, 0x80u, (xdrproc_t)sub_431D7D) )\nreturn xdr_int(a1, (int *)a2 + 4) != 0;\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,sub_444F19,sub_431D7D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'xdrs', 'a2': 'objp', 'sub_444F19': 'xdr_qcsapi_get_phy_stats_rpcdata', 'sub_431D7D': 'xdr___rpc_qcsapi_phy_stats'}"}
u8g_pbxh24_Set4TPixel
afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84
olikraus
u8glib
NA
void u8g_pbxh24_Set4TPixel(u8g_pb_t *b, u8g_dev_arg_pixel_t *arg_pixel) { register uint8_t pixel = arg_pixel->pixel; u8g_uint_t dx = 0; u8g_uint_t dy = 0; switch( arg_pixel->dir ) { case 0: dx++; break; case 1: dy++; break; case 2: dx--; break; case 3: dy--; break; } do { u8g_pbxh24_SetTPixel(b, arg_pixel, pixel >> 6); arg_pixel->x += dx; arg_pixel->y += dy; pixel <<= 2; } while( pixel != 0 ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413009", "function_addr": 4272137, "binary_name": "afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 20h"], [4, "mov [rbp+var_20], rdi"], [5, "mov [rbp+var_28], rsi"], [6, "mov rax, [rbp+var_28]"], [7, "movzx ebx, byte ptr [rax+4]"], [8, "mov [rbp+var_A], 0"], [9, "mov [rbp+var_C], 0"], [10, "mov rax, [rbp+var_28]"], [11, "movzx eax, byte ptr [rax+5]"], [12, "movzx eax, al"], [13, "cmp eax, 3"], [14, "jz short loc_41307F"], [15, "cmp eax, 3"], [16, "jg short loc_41308E"], [17, "cmp eax, 2"], [18, "jz short loc_413072"], [19, "cmp eax, 2"], [20, "jg short loc_41308E"], [21, "test eax, eax"], [22, "jz short loc_413058"], [23, "cmp eax, 1"], [24, "jz short loc_413065"], [25, "jmp short loc_41308E"], [26, "movzx eax, [rbp+var_A]"], [27, "add eax, 1"], [28, "mov [rbp+var_A], ax"], [29, "jmp short loc_41308E"], [30, "movzx eax, [rbp+var_C]"], [31, "add eax, 1"], [32, "mov [rbp+var_C], ax"], [33, "jmp short loc_41308E"], [34, "movzx eax, [rbp+var_A]"], [35, "sub eax, 1"], [36, "mov [rbp+var_A], ax"], [37, "jmp short loc_41308E"], [38, "movzx eax, [rbp+var_C]"], [39, "sub eax, 1"], [40, "mov [rbp+var_C], ax"], [41, "nop"], [42, "jmp short loc_41308E"], [43, "nop"], [44, "mov eax, ebx"], [45, "shr al, 6"], [46, "movzx edx, al"], [47, "mov rcx, [rbp+var_28]"], [48, "mov rax, [rbp+var_20]"], [49, "mov rsi, rcx"], [50, "mov rdi, rax"], [51, "call sub_412E83"], [52, "mov rax, [rbp+var_28]"], [53, "movzx edx, word ptr [rax]"], [54, "movzx eax, [rbp+var_A]"], [55, "add edx, eax"], [56, "mov rax, [rbp+var_28]"], [57, "mov [rax], dx"], [58, "mov rax, [rbp+var_28]"], [59, "movzx edx, word ptr [rax+2]"], [60, "movzx eax, [rbp+var_C]"], [61, "add edx, eax"], [62, "mov rax, [rbp+var_28]"], [63, "mov [rax+2], dx"], [64, "shl ebx, 2"], [65, "test bl, bl"], [66, "jnz short loc_41308D"], [67, "nop"], [68, "nop"], [69, "mov rbx, [rbp+var_8]"], [70, "leave"], [71, "retn"]], "data_dep": [[6, 5], [7, 6], [10, 5], [11, 10], [12, 11], [13, 12], [14, 13], [15, 12], [16, 15], [17, 12], [18, 17], [19, 12], [20, 19], [21, 12], [22, 21], [23, 21], [24, 23], [26, 8], [27, 26], [28, 27], [30, 9], [31, 30], [32, 31], [34, 8], [35, 34], [36, 35], [38, 9], [39, 38], [40, 39], [44, 7], [44, 65], [45, 44], [46, 45], [47, 5], [48, 4], [49, 47], [50, 48], [52, 5], [53, 57], [53, 52], [53, 63], [54, 28], [54, 36], [54, 8], [55, 53], [55, 54], [56, 5], [57, 56], [57, 55], [58, 5], [59, 58], [59, 63], [59, 57], [60, 40], [60, 9], [60, 32], [61, 60], [61, 59], [62, 5], [63, 61], [63, 62], [64, 65], [64, 7], [65, 64], [66, 65], [71, 62]]}
{"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/afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84_afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84.jsonl.gz", "strip_func_name": "sub_413009", "query": "\n\n\n__int64 __fastcall sub_413009(unsigned __int16 *a1, __int64 a2)\n{\nint v2; // ebx\nint v3; // eax\n__int64 result; // rax\n__int16 v5; // [rsp+1Ch] [rbp-Ch]\n__int16 v6; // [rsp+1Eh] [rbp-Ah]\n\nv2 = *(unsigned __int8 *)(a2 + 4);\nv6 = 0;\nv5 = 0;\nv3 = *(unsigned __int8 *)(a2 + 5);\nif ( v3 == 3 )\n{\nv5 = -1;\n}\nelse if ( *(unsigned __int8 *)(a2 + 5) <= 3u )\n{\nif ( v3 == 2 )\n{\nv6 = -1;\n}\nelse if ( *(_BYTE *)(a2 + 5) )\n{\nv5 = 1;\n}\nelse\n{\nv6 = 1;\n}\n}\ndo\n{\nsub_412E83(a1, a2, (unsigned __int8)v2 >> 6);\n*(_WORD *)a2 += v6;\nresult = a2;\n*(_WORD *)(a2 + 2) += v5;\nv2 *= 4;\n}\nwhile ( (_BYTE)v2 );\nreturn result;\n}\n\n\n\nQ:[a1,a2,v5,v6,sub_413009,sub_412E83,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'b', 'a2': 'arg_pixel', 'v5': 'dy', 'v6': 'dx_0', 'sub_413009': 'u8g_pbxh24_Set4TPixel', 'sub_412E83': 'u8g_pbxh24_SetTPixel'}"}
sdp_uuid128_to_uuid
89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334
IanHarvey
bluepy
NA
int sdp_uuid128_to_uuid(uuid_t *uuid) { uint128_t *b = &bluetooth_base_uuid; uint128_t *u = &uuid->value.uuid128; uint32_t data; unsigned int i; if (uuid->type != SDP_UUID128) return 1; for (i = 4; i < sizeof(b->data); i++) if (b->data[i] != u->data[i]) return 0; memcpy(&data, u->data, 4); data = htonl(data); if (data <= 0xffff) { uuid->type = SDP_UUID16; uuid->value.uuid16 = (uint16_t) data; } else { uuid->type = SDP_UUID32; uuid->value.uuid32 = data; } return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41491E", "function_addr": 4278558, "binary_name": "89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334.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_10], offset qword_444420"], [5, "mov rax, [rbp+var_28]"], [6, "add rax, 4"], [7, "mov [rbp+var_18], rax"], [8, "mov rax, [rbp+var_28]"], [9, "movzx eax, byte ptr [rax]"], [10, "cmp al, 1Ch"], [11, "jz short loc_414953"], [12, "mov eax, 1"], [13, "jmp locret_4149D3"], [14, "mov [rbp+var_4], 4"], [15, "jmp short loc_414981"], [16, "mov rdx, [rbp+var_10]"], [17, "mov eax, [rbp+var_4]"], [18, "movzx ecx, byte ptr [rdx+rax]"], [19, "mov rdx, [rbp+var_18]"], [20, "mov eax, [rbp+var_4]"], [21, "movzx eax, byte ptr [rdx+rax]"], [22, "cmp cl, al"], [23, "jz short loc_41497D"], [24, "mov eax, 0"], [25, "jmp short locret_4149D3"], [26, "add [rbp+var_4], 1"], [27, "cmp [rbp+var_4], 0Fh"], [28, "jbe short loc_41495C"], [29, "mov rax, [rbp+var_18]"], [30, "mov eax, [rax]"], [31, "mov [rbp+hostlong], eax"], [32, "mov eax, [rbp+hostlong]"], [33, "mov edi, eax"], [34, "call _htonl"], [35, "mov [rbp+hostlong], eax"], [36, "mov eax, [rbp+hostlong]"], [37, "cmp eax, 0FFFFh"], [38, "ja short loc_4149BD"], [39, "mov rax, [rbp+var_28]"], [40, "mov byte ptr [rax], 19h"], [41, "mov eax, [rbp+hostlong]"], [42, "mov edx, eax"], [43, "mov rax, [rbp+var_28]"], [44, "mov [rax+4], dx"], [45, "jmp short loc_4149CE"], [46, "mov rax, [rbp+var_28]"], [47, "mov byte ptr [rax], 1Ah"], [48, "mov edx, [rbp+hostlong]"], [49, "mov rax, [rbp+var_28]"], [50, "mov [rax+4], edx"], [51, "mov eax, 1"], [52, "leave"], [53, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 3], [9, 8], [10, 9], [11, 10], [16, 4], [17, 14], [17, 26], [18, 17], [19, 7], [20, 14], [20, 26], [21, 20], [22, 18], [22, 21], [23, 22], [26, 14], [26, 26], [27, 14], [27, 26], [28, 27], [29, 7], [30, 29], [31, 30], [32, 31], [33, 32], [35, 34], [36, 35], [37, 36], [38, 37], [39, 3], [40, 39], [41, 35], [42, 41], [43, 3], [44, 42], [44, 43], [46, 3], [47, 46], [48, 35], [49, 3], [50, 49], [50, 48], [53, 12], [53, 24], [53, 51]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334_89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334.jsonl.gz", "strip_func_name": "sub_41491E", "query": "\n\n\n__int64 __fastcall sub_41491E(__int64 a1)\n{\nuint32_t hostlong; // [rsp+14h] [rbp-1Ch]\nuint32_t *v3; // [rsp+18h] [rbp-18h]\nunsigned int i; // [rsp+2Ch] [rbp-4h]\n\nv3 = (uint32_t *)(a1 + 4);\nif ( *(_BYTE *)a1 != 28 )\nreturn 1LL;\nfor ( i = 4; i <= 0xF; ++i )\n{\nif ( *((_BYTE *)&qword_444420 + i) != *((_BYTE *)v3 + i) )\nreturn 0LL;\n}\nhostlong = htonl(*v3);\nif ( hostlong > 0xFFFF )\n{\n*(_BYTE *)a1 = 26;\n*(_DWORD *)(a1 + 4) = hostlong;\n}\nelse\n{\n*(_BYTE *)a1 = 25;\n*(_WORD *)(a1 + 4) = hostlong;\n}\nreturn 1LL;\n}\n\n\n\nQ:[a1,hostlong,v3,sub_41491E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'uuid', 'hostlong': 'data', 'v3': 'u', 'sub_41491E': 'sdp_uuid128_to_uuid'}"}
bf_const_log2_rec
14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243
sunnyxx
quickjs-debug
NA
static void bf_const_log2_rec(bf_t *T, bf_t *P, bf_t *Q, limb_t n1, limb_t n2, BOOL need_P) { bf_context_t *s = T->ctx; if ((n2 - n1) == 1) { if (n1 == 0) { bf_set_ui(P, 3); } else { bf_set_ui(P, n1); P->sign = 1; } bf_set_ui(Q, 2 * n1 + 1); Q->expn += 2; bf_set(T, P); } else { limb_t m; bf_t T1_s, *T1 = &T1_s; bf_t P1_s, *P1 = &P1_s; bf_t Q1_s, *Q1 = &Q1_s; m = n1 + ((n2 - n1) >> 1); bf_const_log2_rec(T, P, Q, n1, m, TRUE); bf_init(s, T1); bf_init(s, P1); bf_init(s, Q1); bf_const_log2_rec(T1, P1, Q1, m, n2, need_P); bf_mul(T, T, Q1, BF_PREC_INF, BF_RNDZ); bf_mul(T1, T1, P, BF_PREC_INF, BF_RNDZ); bf_add(T, T, T1, BF_PREC_INF, BF_RNDZ); if (need_P) bf_mul(P, P, P1, BF_PREC_INF, BF_RNDZ); bf_mul(Q, Q, Q1, BF_PREC_INF, BF_RNDZ); bf_delete(T1); bf_delete(P1); bf_delete(Q1); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4AB20B", "function_addr": 4895243, "binary_name": "14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0E0h"], [3, "mov [rbp+var_B8], rdi"], [4, "mov [rbp+var_C0], rsi"], [5, "mov [rbp+var_C8], rdx"], [6, "mov [rbp+var_D0], rcx"], [7, "mov [rbp+var_D8], r8"], [8, "mov [rbp+var_DC], r9d"], [9, "mov rax, [rbp+var_B8]"], [10, "mov rax, [rax]"], [11, "mov [rbp+var_8], rax"], [12, "mov rax, [rbp+var_D8]"], [13, "sub rax, [rbp+var_D0]"], [14, "cmp rax, 1"], [15, "jnz loc_4AB305"], [16, "cmp [rbp+var_D0], 0"], [17, "jnz short loc_4AB286"], [18, "mov rax, [rbp+var_C0]"], [19, "mov esi, 3"], [20, "mov rdi, rax"], [21, "call sub_4A2788"], [22, "jmp short loc_4AB2AD"], [23, "mov rdx, [rbp+var_D0]"], [24, "mov rax, [rbp+var_C0]"], [25, "mov rsi, rdx"], [26, "mov rdi, rax"], [27, "call sub_4A2788"], [28, "mov rax, [rbp+var_C0]"], [29, "mov dword ptr [rax+8], 1"], [30, "mov rax, [rbp+var_D0]"], [31, "add rax, rax"], [32, "lea rdx, [rax+1]"], [33, "mov rax, [rbp+var_C8]"], [34, "mov rsi, rdx"], [35, "mov rdi, rax"], [36, "call sub_4A2788"], [37, "mov rax, [rbp+var_C8]"], [38, "mov rax, [rax+10h]"], [39, "lea rdx, [rax+2]"], [40, "mov rax, [rbp+var_C8]"], [41, "mov [rax+10h], rdx"], [42, "mov rdx, [rbp+var_C0]"], [43, "mov rax, [rbp+var_B8]"], [44, "mov rsi, rdx"], [45, "mov rdi, rax"], [46, "call sub_4A292D"], [47, "jmp loc_4AB4D4"], [48, "lea rax, [rbp+var_B0]"], [49, "mov [rbp+var_10], rax"], [50, "lea rax, [rbp+var_80]"], [51, "mov [rbp+var_18], rax"], [52, "lea rax, [rbp+var_50]"], [53, "mov [rbp+var_20], rax"], [54, "mov rax, [rbp+var_D8]"], [55, "sub rax, [rbp+var_D0]"], [56, "shr rax, 1"], [57, "mov rdx, rax"], [58, "mov rax, [rbp+var_D0]"], [59, "add rax, rdx"], [60, "mov [rbp+var_28], rax"], [61, "mov rdi, [rbp+var_28]"], [62, "mov rcx, [rbp+var_D0]"], [63, "mov rdx, [rbp+var_C8]"], [64, "mov rsi, [rbp+var_C0]"], [65, "mov rax, [rbp+var_B8]"], [66, "mov r9d, 1"], [67, "mov r8, rdi"], [68, "mov rdi, rax"], [69, "call sub_4AB20B"], [70, "mov rdx, [rbp+var_10]"], [71, "mov rax, [rbp+var_8]"], [72, "mov rsi, rdx"], [73, "mov rdi, rax"], [74, "call sub_4A26DE"], [75, "mov rdx, [rbp+var_18]"], [76, "mov rax, [rbp+var_8]"], [77, "mov rsi, rdx"], [78, "mov rdi, rax"], [79, "call sub_4A26DE"], [80, "mov rdx, [rbp+var_20]"], [81, "mov rax, [rbp+var_8]"], [82, "mov rsi, rdx"], [83, "mov rdi, rax"], [84, "call sub_4A26DE"], [85, "mov r8d, [rbp+var_DC]"], [86, "mov rdi, [rbp+var_D8]"], [87, "mov rcx, [rbp+var_28]"], [88, "mov rdx, [rbp+var_20]"], [89, "mov rsi, [rbp+var_18]"], [90, "mov rax, [rbp+var_10]"], [91, "mov r9d, r8d"], [92, "mov r8, rdi"], [93, "mov rdi, rax"], [94, "call sub_4AB20B"], [95, "mov rdx, [rbp+var_20]"], [96, "mov rsi, [rbp+var_B8]"], [97, "mov rax, [rbp+var_B8]"], [98, "mov r8d, 1"], [99, "mov rcx, 3FFFFFFFFFFFFFFFh"], [100, "mov rdi, rax"], [101, "call sub_4A5080"], [102, "mov rdx, [rbp+var_C0]"], [103, "mov rsi, [rbp+var_10]"], [104, "mov rax, [rbp+var_10]"], [105, "mov r8d, 1"], [106, "mov rcx, 3FFFFFFFFFFFFFFFh"], [107, "mov rdi, rax"], [108, "call sub_4A5080"], [109, "mov rdx, [rbp+var_10]"], [110, "mov rsi, [rbp+var_B8]"], [111, "mov rax, [rbp+var_B8]"], [112, "mov r8d, 1"], [113, "mov rcx, 3FFFFFFFFFFFFFFFh"], [114, "mov rdi, rax"], [115, "call sub_4A7312"], [116, "cmp [rbp+var_DC], 0"], [117, "jz short loc_4AB486"], [118, "mov rdx, [rbp+var_18]"], [119, "mov rsi, [rbp+var_C0]"], [120, "mov rax, [rbp+var_C0]"], [121, "mov r8d, 1"], [122, "mov rcx, 3FFFFFFFFFFFFFFFh"], [123, "mov rdi, rax"], [124, "call sub_4A5080"], [125, "mov rdx, [rbp+var_20]"], [126, "mov rsi, [rbp+var_C8]"], [127, "mov rax, [rbp+var_C8]"], [128, "mov r8d, 1"], [129, "mov rcx, 3FFFFFFFFFFFFFFFh"], [130, "mov rdi, rax"], [131, "call sub_4A5080"], [132, "mov rax, [rbp+var_10]"], [133, "mov rdi, rax"], [134, "call sub_4A2528"], [135, "mov rax, [rbp+var_18]"], [136, "mov rdi, rax"], [137, "call sub_4A2528"], [138, "mov rax, [rbp+var_20]"], [139, "mov rdi, rax"], [140, "call sub_4A2528"], [141, "nop"], [142, "leave"], [143, "retn"]], "data_dep": [[9, 3], [10, 9], [11, 10], [12, 7], [13, 12], [13, 6], [14, 13], [15, 14], [16, 6], [17, 16], [18, 4], [20, 18], [23, 6], [24, 4], [25, 23], [26, 24], [28, 4], [29, 28], [30, 6], [31, 30], [32, 23], [32, 41], [32, 29], [32, 31], [33, 5], [34, 32], [35, 33], [37, 5], [38, 41], [38, 29], [38, 37], [39, 32], [39, 41], [39, 29], [39, 38], [40, 5], [41, 40], [41, 39], [42, 4], [43, 3], [44, 42], [45, 43], [48, 13], [49, 48], [50, 48], [51, 50], [52, 50], [53, 52], [54, 7], [55, 6], [55, 54], [56, 55], [57, 56], [58, 6], [59, 57], [59, 58], [60, 59], [61, 60], [62, 6], [63, 5], [64, 4], [65, 3], [67, 61], [68, 65], [70, 49], [71, 11], [72, 70], [73, 71], [75, 51], [76, 11], [77, 75], [78, 76], [80, 53], [81, 11], [82, 80], [83, 81], [85, 8], [86, 7], [87, 60], [88, 53], [89, 51], [90, 49], [91, 85], [92, 86], [93, 90], [95, 53], [96, 3], [97, 3], [100, 97], [102, 4], [103, 49], [104, 49], [107, 104], [109, 49], [110, 3], [111, 3], [114, 111], [116, 8], [117, 116], [118, 51], [119, 4], [120, 4], [123, 120], [125, 53], [126, 5], [127, 5], [130, 127], [132, 49], [133, 132], [135, 51], [136, 135], [138, 53], [139, 138], [143, 46], [143, 140]]}
{"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_4AB20B", "query": "\n\n\n__int64 __fastcall sub_4AB20B(__int64 *a1, __int64 a2, __int64 *a3, unsigned __int64 a4, __int64 a5, unsigned int a6)\n{\n__int64 result; // rax\nchar v11; // [rsp+30h] [rbp-B0h] BYREF\nchar v12; // [rsp+60h] [rbp-80h] BYREF\nchar v13; // [rsp+90h] [rbp-50h] BYREF\nunsigned __int64 v14; // [rsp+B8h] [rbp-28h]\n__int64 *v15; // [rsp+C0h] [rbp-20h]\n__int64 *v16; // [rsp+C8h] [rbp-18h]\n__int64 *v17; // [rsp+D0h] [rbp-10h]\n__int64 v18; // [rsp+D8h] [rbp-8h]\n\nv18 = *a1;\nif ( a5 - a4 == 1 )\n{\nif ( a4 )\n{\nsub_4A2788(a2, a4);\n*(_DWORD *)(a2 + 8) = 1;\n}\nelse\n{\nsub_4A2788(a2, 3uLL);\n}\nsub_4A2788((__int64)a3, 2 * a4 + 1);\na3[2] += 2LL;\nresult = (__int64)sub_4A292D((__int64)a1, a2);\n}\nelse\n{\nv17 = (__int64 *)&v11;\nv16 = (__int64 *)&v12;\nv15 = (__int64 *)&v13;\nv14 = ((a5 - a4) >> 1) + a4;\nsub_4AB20B(a1, a2, a3, a4, v14, 1LL);\nsub_4A26DE(v18, (__int64)v17);\nsub_4A26DE(v18, (__int64)v16);\nsub_4A26DE(v18, (__int64)v15);\nsub_4AB20B(v17, v16, v15, v14, a5, a6);\nsub_4A5080(a1, (__int64)a1, (__int64)v15, 0x3FFFFFFFFFFFFFFFLL, 1u);\nsub_4A5080(v17, (__int64)v17, a2, 0x3FFFFFFFFFFFFFFFLL, 1u);\nsub_4A7312(a1, a1, v17, 0x3FFFFFFFFFFFFFFFLL, 1u);\nif ( a6 )\nsub_4A5080((__int64 *)a2, a2, (__int64)v16, 0x3FFFFFFFFFFFFFFFLL, 1u);\nsub_4A5080(a3, (__int64)a3, (__int64)v15, 0x3FFFFFFFFFFFFFFFLL, 1u);\nsub_4A2528(v17);\nsub_4A2528(v16);\nresult = sub_4A2528(v15);\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,v11,v12,v13,v14,v15,v16,v17,v18,sub_4AB20B,sub_4A2788,sub_4A292D,sub_4A26DE,sub_4A5080,sub_4A7312,sub_4A2528,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'Q', 'a4': 'n1', 'a1': 'T', 'a2': 'P', 'a5': 'n2', 'a6': 'need_P', 'v11': 'T1_s', 'v12': 'P1_s', 'v13': 'Q1_s', 'v14': 'm', 'v15': 'Q1', 'v16': 'P1', 'v17': 'T1', 'v18': 's', 'sub_4AB20B': 'bf_const_log2_rec', 'sub_4A2788': 'bf_set_ui', 'sub_4A292D': 'bf_set', 'sub_4A26DE': 'bf_init', 'sub_4A5080': 'bf_mul', 'sub_4A7312': 'bf_add', 'sub_4A2528': 'bf_delete_0'}"}
hci_le_clear_resolv_list
9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3
sj15712795029
bluetooth_stack
NA
err_t hci_le_clear_resolv_list(void) { struct bt_pbuf_t *p; if((p = bt_pbuf_alloc(BT_TRANSPORT_TYPE, HCI_CLEAR_RESOLV_LIST_PLEN, BT_PBUF_RAM)) == NULL) { BT_HCI_TRACE_ERROR("ERROR:file[%s],function[%s],line[%d] bt_pbuf_alloc fail\n",__FILE__,__FUNCTION__,__LINE__); return BT_ERR_MEM; } /* Assembling command packet */ p = hci_cmd_ass(p, HCI_LE_CLEAR_RESOLVING_LIST, HCI_LE, HCI_CLEAR_RESOLV_LIST_PLEN); phybusif_output(p, p->tot_len,PHYBUSIF_PACKET_TYPE_CMD); bt_pbuf_free(p); return BT_ERR_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40DEB8", "function_addr": 4251320, "binary_name": "9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov edx, 0"], [4, "mov esi, 3"], [5, "mov edi, 2"], [6, "call sub_4121B2"], [7, "mov [rbp+var_8], rax"], [8, "cmp [rbp+var_8], 0"], [9, "jnz short loc_40DF04"], [10, "mov ecx, 0E31h"], [11, "mov edx, offset aHciLeClearReso"], [12, "mov esi, offset aComponentBluet"], [13, "mov edi, offset a4036mHci0m4031_1"], [14, "mov eax, 0"], [15, "call _printf"], [16, "mov eax, 0FFFFFFFFh"], [17, "jmp short locret_40DF52"], [18, "mov rax, [rbp+var_8]"], [19, "mov ecx, 3"], [20, "mov edx, 8"], [21, "mov esi, 29h "], [22, "mov rdi, rax"], [23, "call sub_4094C4"], [24, "mov [rbp+var_8], rax"], [25, "mov rax, [rbp+var_8]"], [26, "movzx eax, word ptr [rax+10h]"], [27, "movzx ecx, ax"], [28, "mov rax, [rbp+var_8]"], [29, "mov edx, 1"], [30, "mov esi, ecx"], [31, "mov rdi, rax"], [32, "call sub_4028B6"], [33, "mov rax, [rbp+var_8]"], [34, "mov rdi, rax"], [35, "call sub_412805"], [36, "mov eax, 0"], [37, "leave"], [38, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [18, 7], [22, 18], [24, 23], [25, 24], [26, 25], [27, 26], [28, 24], [30, 27], [31, 28], [33, 24], [34, 33], [38, 36], [38, 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/9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3_9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.jsonl.gz", "strip_func_name": "sub_40DEB8", "query": "\n\n\n__int64 sub_40DEB8()\n{\n__int64 result; // rax\n__int64 v1; // [rsp+8h] [rbp-8h]\n__int64 v2; // [rsp+8h] [rbp-8h]\n\nv1 = sub_4121B2(2LL, 3LL, 0LL);\nif ( v1 )\n{\nv2 = sub_4094C4(v1, 41, 8, 3);\nsub_4028B6(v2, *(_WORD *)(v2 + 16), 1u);\nsub_412805(v2);\nresult = 0LL;\n}\nelse\n{\nprintf(\n\"\\x1B[40;36m[ HCI ] \\x1B[0m\\x1B[40;31mERROR:file[%s],function[%s],line[%d] bt_pbuf_alloc fail\\n\\x1B[0m\",\n\"../../component/bluetooth/src/core/bt_hci.c\",\n\"hci_le_clear_resolv_list\",\n3633LL);\nresult = 0xFFFFFFFFLL;\n}\nreturn result;\n}\n\n\n\nQ:[v2,sub_40DEB8,sub_4121B2,sub_4094C4,sub_4028B6,sub_412805,]\nAssistant: ", "hints": "[]", "response": "{'v2': 'pa', 'sub_40DEB8': 'hci_le_clear_resolv_list', 'sub_4121B2': 'bt_pbuf_alloc', 'sub_4094C4': 'hci_cmd_ass', 'sub_4028B6': 'phybusif_output', 'sub_412805': 'bt_pbuf_free'}"}
s351
e7691500f93bbaaebd95d46021255ed975e4aa272477671214427bf176fd55b4
UoB-HPC
TSVC_2
NA
real_t s351(struct args_t * func_args) { // loop rerolling // unrolled saxpy initialise_arrays(__func__); gettimeofday(&func_args->t1, NULL); real_t alpha = c[0]; for (int nl = 0; nl < 8*iterations; nl++) { for (int i = 0; i < LEN_1D; i += 5) { a[i] += alpha * b[i]; a[i + 1] += alpha * b[i + 1]; a[i + 2] += alpha * b[i + 2]; a[i + 3] += alpha * b[i + 3]; a[i + 4] += alpha * b[i + 4]; } 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_4095C1", "function_addr": 4232641, "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 aS351"], [5, "call sub_40D4E3"], [6, "mov rax, [rbp+tv]"], [7, "mov esi, 0"], [8, "mov rdi, rax"], [9, "call _gettimeofday"], [10, "movss xmm0, cs:dword_4B4CC0"], [11, "movss [rbp+var_C], xmm0"], [12, "mov [rbp+var_4], 0"], [13, "jmp loc_40977C"], [14, "mov [rbp+var_8], 0"], [15, "jmp loc_409734"], [16, "mov eax, [rbp+var_8]"], [17, "cdqe"], [18, "movss xmm1, ds:dword_4764C0[rax*4]"], [19, "mov eax, [rbp+var_8]"], [20, "cdqe"], [21, "movss xmm0, ds:x[rax*4]"], [22, "mulss xmm0, [rbp+var_C]"], [23, "addss xmm0, xmm1"], [24, "mov eax, [rbp+var_8]"], [25, "cdqe"], [26, "movss ds:dword_4764C0[rax*4], xmm0"], [27, "mov eax, [rbp+var_8]"], [28, "add eax, 1"], [29, "cdqe"], [30, "movss xmm1, ds:dword_4764C0[rax*4]"], [31, "mov eax, [rbp+var_8]"], [32, "add eax, 1"], [33, "cdqe"], [34, "movss xmm0, ds:x[rax*4]"], [35, "mulss xmm0, [rbp+var_C]"], [36, "mov eax, [rbp+var_8]"], [37, "add eax, 1"], [38, "addss xmm0, xmm1"], [39, "cdqe"], [40, "movss ds:dword_4764C0[rax*4], xmm0"], [41, "mov eax, [rbp+var_8]"], [42, "add eax, 2"], [43, "cdqe"], [44, "movss xmm1, ds:dword_4764C0[rax*4]"], [45, "mov eax, [rbp+var_8]"], [46, "add eax, 2"], [47, "cdqe"], [48, "movss xmm0, ds:x[rax*4]"], [49, "mulss xmm0, [rbp+var_C]"], [50, "mov eax, [rbp+var_8]"], [51, "add eax, 2"], [52, "addss xmm0, xmm1"], [53, "cdqe"], [54, "movss ds:dword_4764C0[rax*4], xmm0"], [55, "mov eax, [rbp+var_8]"], [56, "add eax, 3"], [57, "cdqe"], [58, "movss xmm1, ds:dword_4764C0[rax*4]"], [59, "mov eax, [rbp+var_8]"], [60, "add eax, 3"], [61, "cdqe"], [62, "movss xmm0, ds:x[rax*4]"], [63, "mulss xmm0, [rbp+var_C]"], [64, "mov eax, [rbp+var_8]"], [65, "add eax, 3"], [66, "addss xmm0, xmm1"], [67, "cdqe"], [68, "movss ds:dword_4764C0[rax*4], xmm0"], [69, "mov eax, [rbp+var_8]"], [70, "add eax, 4"], [71, "cdqe"], [72, "movss xmm1, ds:dword_4764C0[rax*4]"], [73, "mov eax, [rbp+var_8]"], [74, "add eax, 4"], [75, "cdqe"], [76, "movss xmm0, ds:x[rax*4]"], [77, "mulss xmm0, [rbp+var_C]"], [78, "mov eax, [rbp+var_8]"], [79, "add eax, 4"], [80, "addss xmm0, xmm1"], [81, "cdqe"], [82, "movss ds:dword_4764C0[rax*4], xmm0"], [83, "add [rbp+var_8], 5"], [84, "cmp [rbp+var_8], 7CFFh"], [85, "jle loc_40960D"], [86, "push offset dword_5928C0"], [87, "push offset dword_5528C0"], [88, "pxor xmm0, xmm0"], [89, "mov r9d, offset dword_5128C0"], [90, "mov r8d, offset dword_4F34C0"], [91, "mov ecx, offset dword_4D40C0"], [92, "mov edx, offset dword_4B4CC0"], [93, "mov esi, offset x"], [94, "mov edi, offset dword_4764C0"], [95, "call sub_40CF03"], [96, "add rsp, 10h"], [97, "add [rbp+var_4], 1"], [98, "cmp [rbp+var_4], 0C34FFh"], [99, "jle loc_409601"], [100, "mov rax, [rbp+tv]"], [101, "add rax, 10h"], [102, "mov esi, 0"], [103, "mov rdi, rax"], [104, "call _gettimeofday"], [105, "mov edi, offset aS351"], [106, "call sub_410C61"], [107, "leave"], [108, "retn"]], "data_dep": [[6, 3], [8, 6], [11, 10], [16, 83], [16, 14], [18, 82], [19, 83], [19, 14], [22, 21], [22, 11], [23, 22], [23, 18], [24, 83], [24, 14], [26, 23], [27, 83], [27, 14], [28, 27], [30, 26], [31, 83], [31, 14], [32, 31], [35, 11], [35, 34], [36, 83], [36, 14], [37, 36], [38, 35], [38, 30], [40, 38], [41, 83], [41, 14], [42, 41], [44, 40], [45, 83], [45, 14], [46, 45], [49, 48], [49, 11], [50, 83], [50, 14], [51, 50], [52, 49], [52, 44], [54, 52], [55, 83], [55, 14], [56, 55], [58, 54], [59, 83], [59, 14], [60, 59], [63, 62], [63, 11], [64, 14], [64, 83], [65, 64], [66, 63], [66, 58], [68, 66], [69, 83], [69, 14], [70, 69], [72, 68], [73, 83], [73, 14], [74, 73], [77, 76], [77, 11], [78, 83], [78, 14], [79, 78], [80, 77], [80, 72], [82, 80], [83, 14], [83, 83], [84, 83], [84, 14], [85, 84], [96, 96], [96, 2], [97, 97], [97, 12], [98, 12], [98, 97], [99, 98], [100, 3], [101, 100], [103, 101], [108, 106]]}
{"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_4095C1", "query": "\n\n\n__int64 __fastcall sub_4095C1(struct timeval *a1)\n{\nfloat v2; // [rsp+14h] [rbp-Ch]\nint j; // [rsp+18h] [rbp-8h]\nint i; // [rsp+1Ch] [rbp-4h]\n\nsub_40D4E3(\"s351\");\ngettimeofday(a1, 0LL);\nv2 = dword_4B4CC0;\nfor ( i = 0; i <= 799999; ++i )\n{\nfor ( j = 0; j <= 31999; j += 5 )\n{\n*(float *)&dword_4764C0[j] = (float)(*(&x + j) * v2) + *(float *)&dword_4764C0[j];\n*(float *)&dword_4764C0[j + 1] = (float)(*(&x + j + 1) * v2) + *(float *)&dword_4764C0[j + 1];\n*(float *)&dword_4764C0[j + 2] = (float)(*(&x + j + 2) * v2) + *(float *)&dword_4764C0[j + 2];\n*(float *)&dword_4764C0[j + 3] = (float)(*(&x + j + 3) * v2) + *(float *)&dword_4764C0[j + 3];\n*(float *)&dword_4764C0[j + 4] = (float)(*(&x + j + 4) * v2) + *(float *)&dword_4764C0[j + 4];\n}\nsub_40CF03(\ndword_4764C0,\n&x,\n&dword_4B4CC0,\ndword_4D40C0,\ndword_4F34C0,\ndword_5128C0,\n0.0,\ndword_5528C0,\ndword_5928C0);\n}\ngettimeofday(a1 + 1, 0LL);\nreturn sub_410C61(\"s351\");\n}\n\n\n\nQ:[a1,v2,i,sub_4095C1,sub_40D4E3,sub_40CF03,sub_410C61,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'func_args', 'v2': 'alpha', 'i': 'nl', 'sub_4095C1': 's351', 'sub_40D4E3': 'initialise_arrays', 'sub_40CF03': 'dummy', 'sub_410C61': 'calc_checksum'}"}
qual
df2108499522a80d76beef03a126f211d45b1835898ab5b155f04615dba54206
zturtleman
mint-arena
NA
Type qual(int op, Type ty) { if (isarray(ty)) ty = type(ARRAY, qual(op, ty->type), ty->size, ty->align, NULL); else if (isfunc(ty)) warning("qualified function type ignored\n"); else if ((isconst(ty) && op == CONST) || (isvolatile(ty) && op == VOLATILE)) error("illegal type `%k %t'\n", op, ty); else { if (isqual(ty)) { op += ty->op; ty = ty->type; } ty = type(op, ty, ty->size, ty->align, NULL); } return ty; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4313E9", "function_addr": 4396009, "binary_name": "df2108499522a80d76beef03a126f211d45b1835898ab5b155f04615dba54206.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 10h"], [5, "mov [rbp+var_14], edi"], [6, "mov [rbp+var_20], rsi"], [7, "mov rax, [rbp+var_20]"], [8, "mov eax, [rax]"], [9, "cmp eax, 0Eh"], [10, "jle short loc_431410"], [11, "mov rax, [rbp+var_20]"], [12, "mov rax, [rax+8]"], [13, "jmp short loc_431414"], [14, "mov rax, [rbp+var_20]"], [15, "mov eax, [rax]"], [16, "cmp eax, 0Ch"], [17, "jnz short loc_431460"], [18, "mov rax, [rbp+var_20]"], [19, "mov r12d, [rax+10h]"], [20, "mov rax, [rbp+var_20]"], [21, "mov ebx, [rax+14h]"], [22, "mov rax, [rbp+var_20]"], [23, "mov rdx, [rax+8]"], [24, "mov eax, [rbp+var_14]"], [25, "mov rsi, rdx"], [26, "mov edi, eax"], [27, "call sub_4313E9"], [28, "mov r8d, 0"], [29, "mov ecx, r12d"], [30, "mov edx, ebx"], [31, "mov rsi, rax"], [32, "mov edi, 0Ch"], [33, "call sub_43025E"], [34, "mov [rbp+var_20], rax"], [35, "jmp loc_43152C"], [36, "mov rax, [rbp+var_20]"], [37, "mov eax, [rax]"], [38, "cmp eax, 0Eh"], [39, "jle short loc_431475"], [40, "mov rax, [rbp+var_20]"], [41, "mov rax, [rax+8]"], [42, "jmp short loc_431479"], [43, "mov rax, [rbp+var_20]"], [44, "mov eax, [rax]"], [45, "cmp eax, 0Bh"], [46, "jnz short loc_431494"], [47, "mov edi, offset aQualifiedFunct"], [48, "mov eax, 0"], [49, "call sub_413E00"], [50, "jmp loc_43152C"], [51, "mov rax, [rbp+var_20]"], [52, "mov eax, [rax]"], [53, "cmp eax, 0Fh"], [54, "jz short loc_4314AA"], [55, "mov rax, [rbp+var_20]"], [56, "mov eax, [rax]"], [57, "cmp eax, 1Fh"], [58, "jnz short loc_4314B0"], [59, "cmp [rbp+var_14], 0Fh"], [60, "jz short loc_4314CC"], [61, "mov rax, [rbp+var_20]"], [62, "mov eax, [rax]"], [63, "cmp eax, 10h"], [64, "jz short loc_4314C6"], [65, "mov rax, [rbp+var_20]"], [66, "mov eax, [rax]"], [67, "cmp eax, 1Fh"], [68, "jnz short loc_4314E6"], [69, "cmp [rbp+var_14], 10h"], [70, "jnz short loc_4314E6"], [71, "mov rdx, [rbp+var_20]"], [72, "mov eax, [rbp+var_14]"], [73, "mov esi, eax"], [74, "mov edi, offset aIllegalTypeKT"], [75, "mov eax, 0"], [76, "call error"], [77, "jmp short loc_43152C"], [78, "mov rax, [rbp+var_20]"], [79, "mov eax, [rax]"], [80, "cmp eax, 0Eh"], [81, "jle short loc_431506"], [82, "mov rax, [rbp+var_20]"], [83, "mov eax, [rax]"], [84, "add [rbp+var_14], eax"], [85, "mov rax, [rbp+var_20]"], [86, "mov rax, [rax+8]"], [87, "mov [rbp+var_20], rax"], [88, "mov rax, [rbp+var_20]"], [89, "mov ecx, [rax+10h]"], [90, "mov rax, [rbp+var_20]"], [91, "mov edx, [rax+14h]"], [92, "mov rsi, [rbp+var_20]"], [93, "mov eax, [rbp+var_14]"], [94, "mov r8d, 0"], [95, "mov edi, eax"], [96, "call sub_43025E"], [97, "mov [rbp+var_20], rax"], [98, "mov rax, [rbp+var_20]"], [99, "add rsp, 10h"], [100, "pop rbx"], [101, "pop r12"], [102, "pop rbp"], [103, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [10, 9], [11, 6], [12, 11], [14, 6], [15, 14], [15, 12], [16, 15], [17, 16], [18, 6], [19, 18], [20, 6], [21, 20], [22, 6], [23, 22], [24, 5], [25, 23], [26, 24], [29, 19], [30, 21], [31, 27], [34, 33], [36, 6], [37, 36], [38, 37], [39, 38], [40, 6], [41, 40], [43, 6], [44, 41], [44, 43], [45, 44], [46, 45], [51, 6], [52, 51], [53, 52], [54, 53], [55, 6], [56, 55], [57, 56], [58, 57], [59, 5], [60, 59], [61, 6], [62, 61], [63, 62], [64, 63], [65, 6], [66, 65], [67, 66], [68, 67], [69, 5], [70, 69], [71, 6], [72, 5], [73, 72], [78, 6], [79, 78], [80, 79], [81, 80], [82, 6], [83, 82], [84, 83], [84, 5], [85, 6], [86, 85], [87, 86], [88, 87], [88, 6], [89, 88], [90, 87], [90, 6], [91, 90], [92, 87], [92, 6], [93, 5], [93, 84], [95, 93], [97, 96], [98, 34], [98, 6], [98, 97], [99, 4], [100, 3], [101, 2], [102, 0], [103, 98]]}
{"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/df2108499522a80d76beef03a126f211d45b1835898ab5b155f04615dba54206_df2108499522a80d76beef03a126f211d45b1835898ab5b155f04615dba54206.jsonl.gz", "strip_func_name": "sub_4313E9", "query": "\n\n\n_QWORD *__fastcall sub_4313E9(unsigned int a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\n_DWORD *v6; // rax\nint v7; // er12\nint v8; // ebx\nunsigned __int64 v9; // rax\n_DWORD *v10; // rax\n_QWORD *v12; // [rsp+0h] [rbp-20h]\nint v13; // [rsp+Ch] [rbp-14h]\n\nv13 = a1;\nv12 = (_QWORD *)a2;\nif ( *(int *)a2 <= 14 )\nv6 = (_DWORD *)a2;\nelse\nv6 = *(_DWORD **)(a2 + 8);\nif ( *v6 == 12 )\n{\nv7 = *(_DWORD *)(a2 + 16);\nv8 = *(_DWORD *)(a2 + 20);\nv9 = sub_4313E9(a1, *(_QWORD *)(a2 + 8));\nv12 = sub_43025E(12, v9, v8, v7, 0LL);\n}\nelse\n{\nif ( *(int *)a2 <= 14 )\nv10 = (_DWORD *)a2;\nelse\nv10 = *(_DWORD **)(a2 + 8);\nif ( *v10 == 11 )\n{\nsub_413E00((__int64)\"qualified function type ignored\\n\", a2, a3, a4, a5, a6);\n}\nelse if ( (*(_DWORD *)a2 == 15 || *(_DWORD *)a2 == 31) && a1 == 15\n|| (*(_DWORD *)a2 == 16 || *(_DWORD *)a2 == 31) && a1 == 16 )\n{\nerror((__int64)\"illegal type `%k %t'\\n\", a1, a2, a4, a5, a6, a2);\n}\nelse\n{\nif ( *(int *)a2 > 14 )\n{\nv13 = *(_DWORD *)a2 + a1;\nv12 = *(_QWORD **)(a2 + 8);\n}\nv12 = sub_43025E(v13, (unsigned __int64)v12, *((_DWORD *)v12 + 5), *((_DWORD *)v12 + 4), 0LL);\n}\n}\nreturn v12;\n}\n\n\n\nQ:[a1,a2,v12,v13,sub_4313E9,sub_43025E,sub_413E00,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'op', 'a2': 'ty', 'v12': 'tya', 'v13': 'opa', 'sub_4313E9': 'qual', 'sub_43025E': 'type_0', 'sub_413E00': 'warning'}"}
_l2cap_sig_cfg_rsp_process
9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3
sj15712795029
bluetooth_stack
NA
static err_t _l2cap_sig_cfg_rsp_process(l2cap_pcb_t *pcb,struct bt_pbuf_t *p,l2cap_sig_hdr_t *sighdr,l2cap_sig_t *sig) { uint16_t result, flags;; //uint16_t scid; uint16_t siglen; l2cap_cfgopt_hdr_t *opthdr; struct bt_pbuf_t *data; if(pcb == NULL) { return BT_ERR_CONN; } /* Remove signal from unresponded list and deallocate it */ L2CAP_SIG_RMV(&(pcb->unrsp_sigs), sig); bt_pbuf_free(sig->p); bt_memp_free(MEMP_L2CAP_SIG, sig); BT_ASSERT(("l2cap_process_sig: cfg rsp, active pcb->state == L2CAP_CONFIG\n"), pcb->state == L2CAP_CONFIG); siglen = sighdr->len; //scid = ((uint16_t *)p->payload)[0]; flags = ((uint16_t *)p->payload)[1]; result = ((uint16_t *)p->payload)[2]; if (siglen < 6) { return BT_ERR_VAL; } siglen -= 6; bt_pbuf_header(p, -6); BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Outgoing configuration result == %d continuation flag == %d\n", result, flags); /* Handle config request */ switch(result) { case L2CAP_CFG_SUCCESS: BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Successfull outgoing configuration\n"); pcb->cfg.l2capcfg |= L2CAP_CFG_IN_SUCCESS; /* Local side of the connection has been configured for outgoing data */ pcb->cfg.cfgto = L2CAP_CFG_TO; /* Reset configuration timeout */ if(pcb->cfg.outflushto != L2CAP_CFG_DEFAULT_OUTFLUSHTO) { hci_write_flush_timeout(&pcb->remote_bdaddr, pcb->cfg.outflushto); } /* L2CAP connection established if a successful configuration response has been sent */ if(pcb->cfg.l2capcfg & L2CAP_CFG_OUT_SUCCESS) { pcb->state = L2CAP_OPEN; if(pcb->cfg.l2capcfg & L2CAP_CFG_IR) { L2CA_ACTION_CONN_CFM(pcb, L2CAP_CONN_SUCCESS, 0x0000); } else { L2CA_ACTION_CONN_IND(pcb, BT_ERR_OK); } } break; case L2CAP_CFG_UNACCEPT: /* Parse and add options to pcb */ while(siglen > 0) { opthdr = p->payload; /* Check if type of action bit indicates a non-hint. Hints are ignored */ if(L2CAP_OPTH_TOA(opthdr) == 0) { switch(L2CAP_OPTH_TYPE(opthdr)) { case L2CAP_CFG_MTU: if(L2CAP_MTU > ((uint16_t *)p->payload)[1]) { pcb->cfg.outmtu = ((uint16_t *)p->payload)[1]; } else { BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Configuration of MTU failed\n"); l2cap_disconnect_req(pcb, NULL); return BT_ERR_ARG; } break; case L2CAP_FLUSHTO: pcb->cfg.influshto = ((uint16_t *)p->payload)[1]; break; case L2CAP_QOS: /* If service type Best Effort is not accepted we will close the connection */ if(((uint8_t *)p->payload)[3] != L2CAP_QOS_BEST_EFFORT) { BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Unsupported service type\n"); l2cap_disconnect_req(pcb, NULL); return BT_ERR_ARG; } break; default: /* Should not happen, skip option */ break; } /* switch */ } /* if(L2CAP_OPTH_TOA(opthdr) == 0) */ bt_pbuf_header(p, -(L2CAP_CFGOPTHDR_LEN + opthdr->len)); siglen -= L2CAP_CFGOPTHDR_LEN + opthdr->len; } /* while */ /* Send out a new configuration request if the continuation flag isn't set */ if((flags & 0x0001) == 0) { l2cap_config_req(pcb); } break; case L2CAP_CFG_REJ: /* Fallthrough */ case L2CAP_CFG_UNKNOWN: /* Fallthrough */ default: if((flags & 0x0001) == 0) { BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Configuration failed\n"); l2cap_disconnect_req(pcb, NULL); return BT_ERR_ARG; } break; } /* switch(result) */ /* If continuation flag is set we must send a NULL configuration request */ if((flags & 0x0001) == 1) { BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Continuation flag is set. Send empty (default) config request signal\n"); if((data = bt_pbuf_alloc(BT_PBUF_RAW, L2CAP_CFG_REQ_SIZE, BT_PBUF_RAM)) == NULL) { BT_L2CAP_TRACE_ERROR("ERROR:file[%s],function[%s],line[%d] bt_pbuf_alloc fail\n",__FILE__,__FUNCTION__,__LINE__); return BT_ERR_ARG; } /* Assemble config request packet */ ((uint16_t *)data->payload)[0] = pcb->scid; ((uint16_t *)data->payload)[2] = 0; _l2cap_signal_send(pcb, L2CAP_CFG_REQ, 0, &(pcb->remote_bdaddr), data); } return BT_ERR_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F34D", "function_addr": 4256589, "binary_name": "9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_40], rcx"], [7, "cmp [rbp+var_28], 0"], [8, "jnz short loc_40F376"], [9, "mov eax, 0FFFFFFF5h"], [10, "jmp locret_40F774"], [11, "mov rax, [rbp+var_28]"], [12, "mov rax, [rax+28h]"], [13, "cmp [rbp+var_40], rax"], [14, "jnz short loc_40F399"], [15, "mov rax, [rbp+var_28]"], [16, "mov rax, [rax+28h]"], [17, "mov rdx, [rax]"], [18, "mov rax, [rbp+var_28]"], [19, "mov [rax+28h], rdx"], [20, "jmp short loc_40F3F9"], [21, "mov rax, [rbp+var_28]"], [22, "mov rax, [rax+28h]"], [23, "mov cs:qword_45FFA8, rax"], [24, "jmp short loc_40F3ED"], [25, "mov rax, cs:qword_45FFA8"], [26, "mov rax, [rax]"], [27, "test rax, rax"], [28, "jz short loc_40F3DC"], [29, "mov rax, cs:qword_45FFA8"], [30, "mov rax, [rax]"], [31, "cmp [rbp+var_40], rax"], [32, "jnz short loc_40F3DC"], [33, "mov rax, cs:qword_45FFA8"], [34, "mov rdx, [rbp+var_40]"], [35, "mov rdx, [rdx]"], [36, "mov [rax], rdx"], [37, "jmp short loc_40F3F9"], [38, "mov rax, cs:qword_45FFA8"], [39, "mov rax, [rax]"], [40, "mov cs:qword_45FFA8, rax"], [41, "mov rax, cs:qword_45FFA8"], [42, "test rax, rax"], [43, "jnz short loc_40F3AA"], [44, "mov rax, [rbp+var_40]"], [45, "mov qword ptr [rax], 0"], [46, "mov rax, [rbp+var_40]"], [47, "mov rax, [rax+8]"], [48, "mov rdi, rax"], [49, "call sub_412805"], [50, "mov rax, [rbp+var_40]"], [51, "mov rsi, rax"], [52, "mov edi, 5"], [53, "call sub_413257"], [54, "mov rax, [rbp+var_28]"], [55, "mov eax, [rax+0Ch]"], [56, "cmp eax, 4"], [57, "jz short loc_40F43B"], [58, "mov edi, offset aL2capProcessSi_1"], [59, "call _puts"], [60, "mov rax, [rbp+var_38]"], [61, "movzx eax, word ptr [rax+2]"], [62, "mov [rbp+var_2], ax"], [63, "mov rax, [rbp+var_30]"], [64, "mov rax, [rax+8]"], [65, "movzx eax, word ptr [rax+2]"], [66, "mov [rbp+var_4], ax"], [67, "mov rax, [rbp+var_30]"], [68, "mov rax, [rax+8]"], [69, "movzx eax, word ptr [rax+4]"], [70, "mov [rbp+var_6], ax"], [71, "cmp [rbp+var_2], 5"], [72, "ja short loc_40F478"], [73, "mov eax, 0FFFFFFFAh"], [74, "jmp locret_40F774"], [75, "sub [rbp+var_2], 6"], [76, "mov rax, [rbp+var_30]"], [77, "mov esi, 0FFFFFFFAh"], [78, "mov rdi, rax"], [79, "call sub_4127DA"], [80, "movzx eax, [rbp+var_6]"], [81, "test eax, eax"], [82, "jz short loc_40F4A4"], [83, "cmp eax, 1"], [84, "jz loc_40F6A1"], [85, "jmp loc_40F6C5"], [86, "mov rax, [rbp+var_28]"], [87, "movzx eax, byte ptr [rax+49h]"], [88, "or eax, 2"], [89, "mov edx, eax"], [90, "mov rax, [rbp+var_28]"], [91, "mov [rax+49h], dl"], [92, "mov rax, [rbp+var_28]"], [93, "mov byte ptr [rax+48h], 1Eh"], [94, "mov rax, [rbp+var_28]"], [95, "movzx eax, word ptr [rax+3Eh]"], [96, "cmp ax, 0FFFFh"], [97, "jz short loc_40F4EB"], [98, "mov rax, [rbp+var_28]"], [99, "movzx eax, word ptr [rax+3Eh]"], [100, "movzx eax, ax"], [101, "mov rdx, [rbp+var_28]"], [102, "add rdx, 30h "], [103, "mov esi, eax"], [104, "mov rdi, rdx"], [105, "call sub_40C37E"], [106, "mov rax, [rbp+var_28]"], [107, "movzx eax, byte ptr [rax+49h]"], [108, "movzx eax, al"], [109, "and eax, 4"], [110, "test eax, eax"], [111, "jz loc_40F6EB"], [112, "mov rax, [rbp+var_28]"], [113, "mov dword ptr [rax+0Ch], 5"], [114, "mov rax, [rbp+var_28]"], [115, "movzx eax, byte ptr [rax+49h]"], [116, "movzx eax, al"], [117, "and eax, 1"], [118, "test eax, eax"], [119, "jz short loc_40F558"], [120, "mov rax, [rbp+var_28]"], [121, "mov rax, [rax+58h]"], [122, "test rax, rax"], [123, "jz loc_40F6EB"], [124, "mov rax, [rbp+var_28]"], [125, "mov r8, [rax+58h]"], [126, "mov rax, [rbp+var_28]"], [127, "mov rax, [rax+10h]"], [128, "mov rsi, [rbp+var_28]"], [129, "mov ecx, 0"], [130, "mov edx, 0"], [131, "mov rdi, rax"], [132, "call r8"], [133, "jmp loc_40F6EB"], [134, "mov rax, [rbp+var_28]"], [135, "mov rax, [rax+70h]"], [136, "test rax, rax"], [137, "jz loc_40F6EB"], [138, "mov rax, [rbp+var_28]"], [139, "mov r8, [rax+70h]"], [140, "mov rax, [rbp+var_28]"], [141, "mov rax, [rax+10h]"], [142, "mov rcx, [rbp+var_28]"], [143, "mov edx, 0"], [144, "mov rsi, rcx"], [145, "mov rdi, rax"], [146, "call r8"], [147, "jmp loc_40F6EB"], [148, "mov rax, [rbp+var_30]"], [149, "mov rax, [rax+8]"], [150, "mov [rbp+var_10], rax"], [151, "mov rax, [rbp+var_10]"], [152, "movzx eax, byte ptr [rax]"], [153, "test al, al"], [154, "js loc_40F65F"], [155, "mov rax, [rbp+var_10]"], [156, "movzx eax, byte ptr [rax]"], [157, "movzx eax, al"], [158, "and eax, 7Fh"], [159, "cmp eax, 3"], [160, "jz short loc_40F631"], [161, "cmp eax, 3"], [162, "jg loc_40F662"], [163, "cmp eax, 1"], [164, "jz short loc_40F5D5"], [165, "cmp eax, 2"], [166, "jz short loc_40F61B"], [167, "jmp loc_40F662"], [168, "mov rax, [rbp+var_30]"], [169, "mov rax, [rax+8]"], [170, "add rax, 2"], [171, "movzx eax, word ptr [rax]"], [172, "cmp ax, 3FFh"], [173, "ja short loc_40F600"], [174, "mov rax, [rbp+var_30]"], [175, "mov rax, [rax+8]"], [176, "movzx edx, word ptr [rax+2]"], [177, "mov rax, [rbp+var_28]"], [178, "mov [rax+3Ah], dx"], [179, "jmp short loc_40F666"], [180, "mov rax, [rbp+var_28]"], [181, "mov esi, 0"], [182, "mov rdi, rax"], [183, "call sub_411545"], [184, "mov eax, 0FFFFFFF0h"], [185, "jmp locret_40F774"], [186, "mov rax, [rbp+var_30]"], [187, "mov rax, [rax+8]"], [188, "movzx edx, word ptr [rax+2]"], [189, "mov rax, [rbp+var_28]"], [190, "mov [rax+3Ch], dx"], [191, "jmp short loc_40F666"], [192, "mov rax, [rbp+var_30]"], [193, "mov rax, [rax+8]"], [194, "add rax, 3"], [195, "movzx eax, byte ptr [rax]"], [196, "cmp al, 1"], [197, "jz short loc_40F665"], [198, "mov rax, [rbp+var_28]"], [199, "mov esi, 0"], [200, "mov rdi, rax"], [201, "call sub_411545"], [202, "mov eax, 0FFFFFFF0h"], [203, "jmp locret_40F774"], [204, "nop"], [205, "jmp short loc_40F666"], [206, "nop"], [207, "jmp short loc_40F666"], [208, "nop"], [209, "mov rax, [rbp+var_10]"], [210, "movzx eax, byte ptr [rax+1]"], [211, "movzx edx, al"], [212, "mov eax, 0FFFFFFFEh"], [213, "sub eax, edx"], [214, "movsx edx, ax"], [215, "mov rax, [rbp+var_30]"], [216, "mov esi, edx"], [217, "mov rdi, rax"], [218, "call sub_4127DA"], [219, "mov rax, [rbp+var_10]"], [220, "movzx eax, byte ptr [rax+1]"], [221, "movzx edx, al"], [222, "movzx eax, [rbp+var_2]"], [223, "sub eax, edx"], [224, "sub eax, 2"], [225, "mov [rbp+var_2], ax"], [226, "cmp [rbp+var_2], 0"], [227, "jnz loc_40F590"], [228, "movzx eax, [rbp+var_4]"], [229, "and eax, 1"], [230, "test eax, eax"], [231, "jnz short loc_40F6EE"], [232, "mov rax, [rbp+var_28]"], [233, "mov rdi, rax"], [234, "call sub_4113FB"], [235, "jmp short loc_40F6EE"], [236, "movzx eax, [rbp+var_4]"], [237, "and eax, 1"], [238, "test eax, eax"], [239, "jnz short loc_40F6F1"], [240, "mov rax, [rbp+var_28]"], [241, "mov esi, 0"], [242, "mov rdi, rax"], [243, "call sub_411545"], [244, "mov eax, 0FFFFFFF0h"], [245, "jmp locret_40F774"], [246, "nop"], [247, "jmp short loc_40F6F2"], [248, "nop"], [249, "jmp short loc_40F6F2"], [250, "nop"], [251, "movzx eax, [rbp+var_4]"], [252, "and eax, 1"], [253, "test eax, eax"], [254, "jz short loc_40F76F"], [255, "mov edx, 0"], [256, "mov esi, 4"], [257, "mov edi, 5"], [258, "call sub_4121B2"], [259, "mov [rbp+var_18], rax"], [260, "cmp [rbp+var_18], 0"], [261, "jnz short loc_40F723"], [262, "mov eax, 0FFFFFFF0h"], [263, "jmp short locret_40F774"], [264, "mov rax, [rbp+var_18]"], [265, "mov rax, [rax+8]"], [266, "mov rdx, [rbp+var_28]"], [267, "movzx edx, word ptr [rdx+18h]"], [268, "mov [rax], dx"], [269, "mov rax, [rbp+var_18]"], [270, "mov rax, [rax+8]"], [271, "add rax, 4"], [272, "mov word ptr [rax], 0"], [273, "mov rax, [rbp+var_28]"], [274, "lea rdx, [rax+30h]"], [275, "mov rcx, [rbp+var_18]"], [276, "mov rax, [rbp+var_28]"], [277, "mov r8, rcx"], [278, "mov rcx, rdx"], [279, "mov edx, 0"], [280, "mov esi, 4"], [281, "mov rdi, rax"], [282, "call sub_410E81"], [283, "mov eax, 0"], [284, "leave"], [285, "retn"]], "data_dep": [[7, 3], [8, 7], [11, 3], [12, 11], [13, 12], [13, 6], [14, 13], [15, 3], [16, 15], [17, 16], [18, 3], [19, 18], [19, 17], [21, 3], [22, 21], [23, 22], [25, 23], [25, 40], [26, 25], [27, 26], [28, 27], [29, 40], [29, 23], [30, 29], [31, 30], [31, 6], [32, 31], [33, 23], [33, 40], [34, 6], [35, 34], [36, 33], [36, 35], [38, 23], [38, 40], [39, 38], [40, 39], [41, 23], [41, 40], [42, 41], [43, 42], [44, 6], [45, 44], [46, 6], [47, 46], [47, 45], [48, 47], [50, 6], [51, 50], [54, 3], [55, 45], [55, 54], [56, 55], [57, 56], [60, 5], [61, 19], [61, 60], [61, 36], [61, 45], [62, 61], [63, 4], [64, 19], [64, 36], [64, 45], [64, 63], [65, 64], [65, 36], [65, 45], [65, 19], [66, 65], [67, 4], [68, 36], [68, 45], [68, 67], [68, 19], [69, 19], [69, 68], [69, 36], [69, 45], [70, 69], [71, 62], [72, 71], [75, 62], [76, 4], [78, 76], [80, 70], [81, 80], [82, 81], [83, 81], [84, 83], [86, 3], [87, 93], [87, 91], [87, 36], [87, 45], [87, 86], [87, 19], [88, 87], [89, 88], [90, 3], [91, 90], [91, 89], [92, 3], [93, 92], [94, 3], [95, 93], [95, 94], [96, 95], [97, 96], [98, 3], [99, 98], [99, 19], [99, 93], [99, 91], [99, 36], [99, 45], [100, 99], [101, 3], [102, 101], [103, 100], [104, 102], [106, 3], [107, 93], [107, 19], [107, 36], [107, 106], [107, 91], [107, 45], [108, 107], [109, 108], [110, 109], [111, 110], [112, 3], [113, 112], [114, 3], [115, 91], [115, 114], [115, 113], [116, 115], [117, 116], [118, 117], [119, 118], [120, 3], [121, 113], [121, 93], [121, 19], [121, 120], [121, 91], [121, 36], [121, 45], [122, 121], [123, 122], [124, 3], [125, 93], [125, 124], [125, 91], [125, 36], [125, 45], [125, 113], [125, 19], [126, 3], [127, 45], [127, 113], [127, 126], [127, 93], [127, 19], [127, 36], [127, 91], [128, 3], [131, 127], [132, 125], [134, 3], [135, 113], [135, 93], [135, 19], [135, 36], [135, 134], [135, 91], [135, 45], [136, 135], [137, 136], [138, 3], [139, 19], [139, 36], [139, 138], [139, 91], [139, 45], [139, 113], [139, 93], [140, 3], [141, 91], [141, 45], [141, 19], [141, 113], [141, 140], [141, 93], [141, 36], [142, 3], [144, 142], [145, 141], [146, 139], [148, 4], [149, 45], [149, 178], [149, 190], [149, 19], [149, 36], [149, 148], [150, 149], [151, 150], [152, 151], [152, 178], [152, 19], [152, 190], [152, 36], [152, 45], [153, 152], [154, 153], [155, 150], [156, 190], [156, 19], [156, 36], [156, 45], [156, 178], [156, 155], [157, 156], [158, 157], [159, 158], [160, 159], [161, 158], [162, 161], [163, 158], [164, 163], [165, 158], [166, 165], [168, 4], [169, 190], [169, 36], [169, 45], [169, 178], [169, 168], [169, 19], [170, 169], [171, 45], [171, 170], [171, 178], [171, 190], [171, 19], [171, 36], [172, 171], [173, 172], [174, 4], [175, 190], [175, 19], [175, 36], [175, 45], [175, 174], [175, 178], [176, 45], [176, 175], [176, 178], [176, 190], [176, 19], [176, 36], [177, 3], [178, 177], [178, 176], [180, 3], [182, 180], [186, 4], [187, 45], [187, 178], [187, 19], [187, 186], [187, 190], [187, 36], [188, 187], [188, 190], [188, 36], [188, 45], [188, 178], [188, 19], [189, 3], [190, 189], [190, 188], [192, 4], [193, 36], [193, 45], [193, 192], [193, 178], [193, 19], [193, 190], [194, 193], [195, 178], [195, 19], [195, 190], [195, 194], [195, 36], [195, 45], [196, 195], [197, 196], [198, 3], [200, 198], [209, 150], [210, 209], [210, 190], [210, 36], [210, 45], [210, 178], [210, 19], [211, 210], [213, 212], [213, 211], [214, 213], [215, 4], [216, 214], [217, 215], [219, 150], [220, 178], [220, 19], [220, 219], [220, 190], [220, 36], [220, 45], [221, 220], [222, 75], [222, 225], [223, 222], [223, 221], [224, 223], [225, 224], [226, 225], [226, 75], [227, 226], [228, 66], [229, 228], [230, 229], [231, 230], [232, 3], [233, 232], [236, 66], [237, 236], [238, 237], [239, 238], [240, 3], [242, 240], [251, 66], [252, 251], [253, 252], [254, 253], [259, 258], [260, 259], [261, 260], [264, 259], [265, 19], [265, 93], [265, 190], [265, 36], [265, 45], [265, 264], [265, 268], [265, 272], [265, 91], [265, 113], [265, 178], [266, 3], [267, 93], [267, 190], [267, 36], [267, 45], [267, 268], [267, 272], [267, 91], [267, 178], [267, 19], [267, 266], [267, 113], [268, 265], [268, 267], [269, 259], [270, 269], [270, 268], [271, 270], [272, 271], [273, 3], [274, 273], [274, 272], [274, 267], [275, 259], [276, 3], [277, 275], [278, 274], [281, 276], [285, 244], [285, 262], [285, 202], [285, 9], [285, 283], [285, 73], [285, 184]]}
{"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_40F34D", "query": "\n\n\n__int64 __fastcall sub_40F34D(__int64 a1, __int64 a2, __int64 a3, _QWORD *a4)\n{\nint v5; // eax\n__int64 v8; // [rsp+28h] [rbp-18h]\nchar *v9; // [rsp+30h] [rbp-10h]\n__int16 v10; // [rsp+3Ah] [rbp-6h]\n__int16 v11; // [rsp+3Ch] [rbp-4h]\nunsigned __int16 v12; // [rsp+3Eh] [rbp-2h]\n__int16 v13; // [rsp+3Eh] [rbp-2h]\n\nif ( !a1 )\nreturn 4294967285LL;\nif ( a4 == *(_QWORD **)(a1 + 40) )\n{\n*(_QWORD *)(a1 + 40) = **(_QWORD **)(a1 + 40);\n}\nelse\n{\nfor ( qword_45FFA8 = *(_QWORD *)(a1 + 40); qword_45FFA8; qword_45FFA8 = *(_QWORD *)qword_45FFA8 )\n{\nif ( *(_QWORD *)qword_45FFA8 && a4 == *(_QWORD **)qword_45FFA8 )\n{\n*(_QWORD *)qword_45FFA8 = *a4;\nbreak;\n}\n}\n}\n*a4 = 0LL;\nsub_412805(a4[1]);\nsub_413257(5LL, a4);\nif ( *(_DWORD *)(a1 + 12) != 4 )\nputs(\"l2cap_process_sig: cfg rsp, active pcb->state == L2CAP_CONFIG\");\nv12 = *(_WORD *)(a3 + 2);\nv11 = *(_WORD *)(*(_QWORD *)(a2 + 8) + 2LL);\nv10 = *(_WORD *)(*(_QWORD *)(a2 + 8) + 4LL);\nif ( v12 <= 5u )\nreturn 4294967290LL;\nv13 = v12 - 6;\nsub_4127DA(a2, 4294967290LL);\nif ( v10 )\n{\nif ( v10 == 1 )\n{\nwhile ( v13 )\n{\nv9 = *(char **)(a2 + 8);\nif ( *v9 >= 0 )\n{\nv5 = *v9 & 0x7F;\nif ( v5 == 3 )\n{\nif ( *(_BYTE *)(*(_QWORD *)(a2 + 8) + 3LL) != 1 )\ngoto LABEL_42;\n}\nelse if ( (*v9 & 0x7Fu) <= 3 )\n{\nif ( v5 == 1 )\n{\nif ( *(_WORD *)(*(_QWORD *)(a2 + 8) + 2LL) > 0x3FFu )\ngoto LABEL_42;\n*(_WORD *)(a1 + 58) = *(_WORD *)(*(_QWORD *)(a2 + 8) + 2LL);\n}\nelse if ( v5 == 2 )\n{\n*(_WORD *)(a1 + 60) = *(_WORD *)(*(_QWORD *)(a2 + 8) + 2LL);\n}\n}\n}\nsub_4127DA(a2, (unsigned int)(__int16)(-2 - (unsigned __int8)v9[1]));\nv13 = v13 - (unsigned __int8)v9[1] - 2;\n}\nif ( (v11 & 1) == 0 )\nsub_4113FB(a1);\n}\nelse if ( (v11 & 1) == 0 )\n{\nLABEL_42:\nsub_411545(a1, 0LL);\nreturn 4294967280LL;\n}\n}\nelse\n{\n*(_BYTE *)(a1 + 73) |= 2u;\n*(_BYTE *)(a1 + 72) = 30;\nif ( *(_WORD *)(a1 + 62) != 0xFFFF )\nsub_40C37E((_BYTE *)(a1 + 48), *(_WORD *)(a1 + 62));\nif ( (*(_BYTE *)(a1 + 73) & 4) != 0 )\n{\n*(_DWORD *)(a1 + 12) = 5;\nif ( (*(_BYTE *)(a1 + 73) & 1) != 0 )\n{\nif ( *(_QWORD *)(a1 + 88) )\n(*(void (__fastcall **)(_QWORD, __int64, _QWORD, _QWORD))(a1 + 88))(*(_QWORD *)(a1 + 16), a1, 0LL, 0LL);\n}\nelse if ( *(_QWORD *)(a1 + 112) )\n{\n(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(a1 + 112))(*(_QWORD *)(a1 + 16), a1, 0LL);\n}\n}\n}\nif ( (v11 & 1) != 0 )\n{\nv8 = sub_4121B2(5LL, 4LL, 0LL);\nif ( !v8 )\nreturn 4294967280LL;\n**(_WORD **)(v8 + 8) = *(_WORD *)(a1 + 24);\n*(_WORD *)(*(_QWORD *)(v8 + 8) + 4LL) = 0;\nsub_410E81(a1, 4LL, 0LL, a1 + 48, v8);\n}\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,v8,v9,v10,v11,v12,sub_40F34D,sub_412805,sub_413257,sub_4127DA,sub_4113FB,sub_411545,sub_40C37E,sub_4121B2,sub_410E81,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'sighdr', 'a4': 'sig', 'a1': 'pcb', 'a2': 'p', 'v8': 'data', 'v9': 'opthdr', 'v10': 'result', 'v11': 'flags', 'v12': 'siglena', 'sub_40F34D': '_l2cap_sig_cfg_rsp_process', 'sub_412805': 'bt_pbuf_free', 'sub_413257': 'bt_memp_free', 'sub_4127DA': 'bt_pbuf_header', 'sub_4113FB': 'l2cap_config_req', 'sub_411545': 'l2cap_disconnect_req', 'sub_40C37E': 'hci_write_flush_timeout', 'sub_4121B2': 'bt_pbuf_alloc', 'sub_410E81': '_l2cap_signal_send'}"}
print_power_limit_msr
cad4d22521742edf876040503bbe39b3ce719cb9e512e062ba388d649cba86a3
LineageOS
android_kernel_leeco_msm8996
NA
void print_power_limit_msr(int cpu, unsigned long long msr, char *label) { fprintf(stderr, "cpu%d: %s: %sabled (%f Watts, %f sec, clamp %sabled)\n", cpu, label, ((msr >> 15) & 1) ? "EN" : "DIS", ((msr >> 0) & 0x7FFF) * rapl_power_units, (1.0 + (((msr >> 22) & 0x3)/4.0)) * (1 << ((msr >> 17) & 0x1F)) * rapl_time_units, (((msr >> 16) & 1) ? "EN" : "DIS")); return; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406D50", "function_addr": 4222288, "binary_name": "cad4d22521742edf876040503bbe39b3ce719cb9e512e062ba388d649cba86a3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_4], edi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, [rbp+var_10]"], [7, "and eax, 10000h"], [8, "test rax, rax"], [9, "jz short loc_406D79"], [10, "mov r8d, offset aEn"], [11, "jmp short loc_406D7F"], [12, "mov r8d, offset aDis"], [13, "mov rax, [rbp+var_10]"], [14, "shr rax, 16h"], [15, "and eax, 3"], [16, "test rax, rax"], [17, "js short loc_406D9A"], [18, "pxor xmm0, xmm0"], [19, "cvtsi2sd xmm0, rax"], [20, "jmp short loc_406DB3"], [21, "mov rdx, rax"], [22, "shr rdx, 1"], [23, "and eax, 1"], [24, "or rdx, rax"], [25, "pxor xmm0, xmm0"], [26, "cvtsi2sd xmm0, rdx"], [27, "addsd xmm0, xmm0"], [28, "movsd xmm2, cs:qword_40AA40"], [29, "movapd xmm1, xmm0"], [30, "divsd xmm1, xmm2"], [31, "movsd xmm0, cs:qword_40AA18"], [32, "addsd xmm1, xmm0"], [33, "mov rax, [rbp+var_10]"], [34, "shr rax, 11h"], [35, "and eax, 1Fh"], [36, "mov edx, 1"], [37, "mov ecx, eax"], [38, "shl edx, cl"], [39, "mov eax, edx"], [40, "pxor xmm0, xmm0"], [41, "cvtsi2sd xmm0, eax"], [42, "mulsd xmm1, xmm0"], [43, "movsd xmm0, cs:qword_40D2C0"], [44, "movapd xmm2, xmm1"], [45, "mulsd xmm2, xmm0"], [46, "mov rax, [rbp+var_10]"], [47, "and eax, 7FFFh"], [48, "test rax, rax"], [49, "js short loc_406E1A"], [50, "pxor xmm0, xmm0"], [51, "cvtsi2sd xmm0, rax"], [52, "jmp short loc_406E33"], [53, "mov rdx, rax"], [54, "shr rdx, 1"], [55, "and eax, 1"], [56, "or rdx, rax"], [57, "pxor xmm0, xmm0"], [58, "cvtsi2sd xmm0, rdx"], [59, "addsd xmm0, xmm0"], [60, "movsd xmm1, cs:qword_40D2B0"], [61, "mulsd xmm0, xmm1"], [62, "movq rsi, xmm0"], [63, "mov rax, [rbp+var_10]"], [64, "and eax, 8000h"], [65, "test rax, rax"], [66, "jz short loc_406E59"], [67, "mov edi, offset aEn"], [68, "jmp short loc_406E5E"], [69, "mov edi, offset aDis"], [70, "mov rax, cs:stderr"], [71, "mov rcx, [rbp+var_18]"], [72, "mov edx, [rbp+var_4]"], [73, "mov r9, r8"], [74, "movapd xmm1, xmm2"], [75, "movq xmm0, rsi"], [76, "mov r8, rdi"], [77, "mov esi, offset aCpuDSSabledFWa"], [78, "mov rdi, rax"], [79, "mov eax, 2"], [80, "call _fprintf"], [81, "nop"], [82, "leave"], [83, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [9, 8], [13, 4], [14, 13], [15, 14], [16, 15], [17, 16], [19, 18], [19, 16], [21, 16], [22, 21], [23, 16], [24, 23], [24, 22], [26, 24], [26, 25], [27, 26], [29, 19], [29, 27], [30, 29], [30, 28], [32, 31], [32, 30], [33, 4], [34, 33], [35, 34], [37, 35], [38, 37], [38, 36], [39, 38], [41, 40], [41, 39], [42, 32], [42, 41], [44, 42], [45, 43], [45, 44], [46, 4], [47, 46], [48, 47], [49, 48], [51, 50], [51, 48], [53, 48], [54, 53], [55, 48], [56, 55], [56, 54], [58, 56], [58, 57], [59, 58], [61, 51], [61, 60], [61, 59], [62, 61], [63, 4], [64, 63], [65, 64], [66, 65], [71, 5], [72, 3], [73, 10], [73, 12], [74, 45], [75, 62], [76, 67], [76, 69], [78, 70], [83, 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/cad4d22521742edf876040503bbe39b3ce719cb9e512e062ba388d649cba86a3_cad4d22521742edf876040503bbe39b3ce719cb9e512e062ba388d649cba86a3.jsonl.gz", "strip_func_name": "sub_406D50", "query": "\n\n\nint __fastcall sub_406D50(unsigned int a1, unsigned __int64 a2, const char *a3)\n{\nconst char *v3; // r8\nconst char *v4; // rdi\n\nif ( (a2 & 0x10000) != 0 )\nv3 = \"EN\";\nelse\nv3 = \"DIS\";\nif ( (a2 & 0x8000) != 0 )\nv4 = \"EN\";\nelse\nv4 = \"DIS\";\nreturn fprintf(\nstderr,\n\"cpu%d: %s: %sabled (%f Watts, %f sec, clamp %sabled)\\n\",\na1,\na3,\nv4,\n(double)(a2 & 0x7FFF) * *(double *)&qword_40D2B0,\n((double)((a2 >> 22) & 3) / 4.0 + 1.0) * (double)(1 << ((a2 >> 17) & 0x1F)) * *(double *)&qword_40D2C0,\nv3);\n}\n\n\n\nQ:[a3,a1,a2,sub_406D50,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'label', 'a1': 'cpu', 'a2': 'msr', 'sub_406D50': 'print_power_limit_msr'}"}
cpu_check_pending_interrupt
6a9bdf88723c83e033ecc1cddcd8b0ba2b221b47b7f7d0d52a6cb645030822e1
ksco
nanoemu
NA
enum interrupt cpu_check_pending_interrupt(struct cpu* cpu) { if (cpu->mode == MACHINE) { if (((cpu_load_csr(cpu, MSTATUS) >> 3) & 1) == 0) { return NONE; } } else if (cpu->mode == SUPERVISOR) { if (((cpu_load_csr(cpu, SSTATUS) >> 1) & 1) == 0) { return NONE; } } uint64_t irq = 0; if (uart_interrupting(cpu->bus->uart)) { irq = UART_IRQ; } else if (virtio_is_interrupting(cpu->bus->virtio)) { bus_disk_access(cpu->bus); irq = VIRTIO_IRQ; } if (irq != 0) { bus_store(cpu->bus, PLIC_SCLAIM, 32, irq); cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) | MIP_SEIP); } uint64_t pending = cpu_load_csr(cpu, MIE) & cpu_load_csr(cpu, MIP); if (pending & MIP_MEIP) { cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_MEIP); return MACHINE_EXTERNAL_INTERRUPT; } if (pending & MIP_MSIP) { cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_MSIP); return MACHINE_SOFTWARE_INTERRUPT; } if (pending & MIP_MTIP) { cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_MTIP); return MACHINE_TIMER_INTERRUPT; } if (pending & MIP_SEIP) { cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_SEIP); return SUPERVISOR_EXTERNAL_INTERRUPT; } if (pending & MIP_SSIP) { cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_SSIP); return SUPERVISOR_SOFTWARE_INTERRUPT; } if (pending & MIP_STIP) { cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_STIP); return SUPERVISOR_TIMER_INTERRUPT; } return NONE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404AA3", "function_addr": 4213411, "binary_name": "6a9bdf88723c83e033ecc1cddcd8b0ba2b221b47b7f7d0d52a6cb645030822e1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 28h"], [4, "mov [rbp+var_28], rdi"], [5, "mov rax, [rbp+var_28]"], [6, "mov eax, [rax+8108h]"], [7, "cmp eax, 3"], [8, "jnz short loc_404AE2"], [9, "mov rax, [rbp+var_28]"], [10, "mov esi, 300h"], [11, "mov rdi, rax"], [12, "call sub_4026B2"], [13, "and eax, 8"], [14, "test rax, rax"], [15, "jnz short loc_404B14"], [16, "mov eax, 0FFFFFFFFh"], [17, "jmp loc_404D6E"], [18, "mov rax, [rbp+var_28]"], [19, "mov eax, [rax+8108h]"], [20, "cmp eax, 1"], [21, "jnz short loc_404B14"], [22, "mov rax, [rbp+var_28]"], [23, "mov esi, 100h"], [24, "mov rdi, rax"], [25, "call sub_4026B2"], [26, "and eax, 2"], [27, "test rax, rax"], [28, "jnz short loc_404B14"], [29, "mov eax, 0FFFFFFFFh"], [30, "jmp loc_404D6E"], [31, "mov [rbp+var_18], 0"], [32, "mov rax, [rbp+var_28]"], [33, "mov rax, [rax+8110h]"], [34, "mov rax, [rax+18h]"], [35, "mov rdi, rax"], [36, "call sub_4014F8"], [37, "test al, al"], [38, "jz short loc_404B41"], [39, "mov [rbp+var_18], 0Ah"], [40, "jmp short loc_404B77"], [41, "mov rax, [rbp+var_28]"], [42, "mov rax, [rax+8110h]"], [43, "mov rax, [rax+20h]"], [44, "mov rdi, rax"], [45, "call sub_40551F"], [46, "test al, al"], [47, "jz short loc_404B77"], [48, "mov rax, [rbp+var_28]"], [49, "mov rax, [rax+8110h]"], [50, "mov rdi, rax"], [51, "call sub_401E7D"], [52, "mov [rbp+var_18], 1"], [53, "cmp [rbp+var_18], 0"], [54, "jz short loc_404BCA"], [55, "mov rax, [rbp+var_28]"], [56, "mov rax, [rax+8110h]"], [57, "mov rdx, [rbp+var_18]"], [58, "mov rcx, rdx"], [59, "mov edx, 20h "], [60, "mov esi, 0C201004h"], [61, "mov rdi, rax"], [62, "call sub_401D68"], [63, "mov rax, [rbp+var_28]"], [64, "mov esi, 344h"], [65, "mov rdi, rax"], [66, "call sub_4026B2"], [67, "or ah, 2"], [68, "mov rdx, rax"], [69, "mov rax, [rbp+var_28]"], [70, "mov esi, 344h"], [71, "mov rdi, rax"], [72, "call sub_4026F9"], [73, "mov rax, [rbp+var_28]"], [74, "mov esi, 304h"], [75, "mov rdi, rax"], [76, "call sub_4026B2"], [77, "mov rbx, rax"], [78, "mov rax, [rbp+var_28]"], [79, "mov esi, 344h"], [80, "mov rdi, rax"], [81, "call sub_4026B2"], [82, "and rax, rbx"], [83, "mov [rbp+var_20], rax"], [84, "mov rax, [rbp+var_20]"], [85, "and eax, 800h"], [86, "test rax, rax"], [87, "jz short loc_404C36"], [88, "mov rax, [rbp+var_28]"], [89, "mov esi, 344h"], [90, "mov rdi, rax"], [91, "call sub_4026B2"], [92, "and ah, 0F7h"], [93, "mov rdx, rax"], [94, "mov rax, [rbp+var_28]"], [95, "mov esi, 344h"], [96, "mov rdi, rax"], [97, "call sub_4026F9"], [98, "mov eax, 0Bh"], [99, "jmp loc_404D6E"], [100, "mov rax, [rbp+var_20]"], [101, "and eax, 8"], [102, "test rax, rax"], [103, "jz short loc_404C75"], [104, "mov rax, [rbp+var_28]"], [105, "mov esi, 344h"], [106, "mov rdi, rax"], [107, "call sub_4026B2"], [108, "and rax, 0FFFFFFFFFFFFFFF7h"], [109, "mov rdx, rax"], [110, "mov rax, [rbp+var_28]"], [111, "mov esi, 344h"], [112, "mov rdi, rax"], [113, "call sub_4026F9"], [114, "mov eax, 3"], [115, "jmp loc_404D6E"], [116, "mov rax, [rbp+var_20]"], [117, "and eax, 80h"], [118, "test rax, rax"], [119, "jz short loc_404CB4"], [120, "mov rax, [rbp+var_28]"], [121, "mov esi, 344h"], [122, "mov rdi, rax"], [123, "call sub_4026B2"], [124, "and al, 7Fh"], [125, "mov rdx, rax"], [126, "mov rax, [rbp+var_28]"], [127, "mov esi, 344h"], [128, "mov rdi, rax"], [129, "call sub_4026F9"], [130, "mov eax, 7"], [131, "jmp loc_404D6E"], [132, "mov rax, [rbp+var_20]"], [133, "and eax, 200h"], [134, "test rax, rax"], [135, "jz short loc_404CF1"], [136, "mov rax, [rbp+var_28]"], [137, "mov esi, 344h"], [138, "mov rdi, rax"], [139, "call sub_4026B2"], [140, "and ah, 0FDh"], [141, "mov rdx, rax"], [142, "mov rax, [rbp+var_28]"], [143, "mov esi, 344h"], [144, "mov rdi, rax"], [145, "call sub_4026F9"], [146, "mov eax, 9"], [147, "jmp short loc_404D6E"], [148, "mov rax, [rbp+var_20]"], [149, "and eax, 2"], [150, "test rax, rax"], [151, "jz short loc_404D2D"], [152, "mov rax, [rbp+var_28]"], [153, "mov esi, 344h"], [154, "mov rdi, rax"], [155, "call sub_4026B2"], [156, "and rax, 0FFFFFFFFFFFFFFFDh"], [157, "mov rdx, rax"], [158, "mov rax, [rbp+var_28]"], [159, "mov esi, 344h"], [160, "mov rdi, rax"], [161, "call sub_4026F9"], [162, "mov eax, 1"], [163, "jmp short loc_404D6E"], [164, "mov rax, [rbp+var_20]"], [165, "and eax, 20h"], [166, "test rax, rax"], [167, "jz short loc_404D69"], [168, "mov rax, [rbp+var_28]"], [169, "mov esi, 344h"], [170, "mov rdi, rax"], [171, "call sub_4026B2"], [172, "and rax, 0FFFFFFFFFFFFFFDFh"], [173, "mov rdx, rax"], [174, "mov rax, [rbp+var_28]"], [175, "mov esi, 344h"], [176, "mov rdi, rax"], [177, "call sub_4026F9"], [178, "mov eax, 5"], [179, "jmp short loc_404D6E"], [180, "mov eax, 0FFFFFFFFh"], [181, "mov rbx, [rbp+var_8]"], [182, "leave"], [183, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 4], [11, 9], [13, 12], [14, 13], [15, 14], [18, 4], [19, 18], [20, 19], [21, 20], [22, 4], [24, 22], [26, 25], [27, 26], [28, 27], [32, 4], [33, 32], [34, 33], [35, 34], [37, 36], [38, 37], [41, 4], [42, 41], [43, 42], [44, 43], [46, 45], [47, 46], [48, 4], [49, 48], [50, 49], [53, 52], [53, 31], [53, 39], [54, 53], [55, 4], [56, 55], [57, 52], [57, 31], [57, 39], [58, 57], [61, 56], [63, 4], [65, 63], [67, 66], [68, 67], [69, 4], [71, 69], [73, 4], [75, 73], [77, 76], [78, 4], [80, 78], [82, 81], [82, 77], [83, 82], [84, 83], [85, 84], [86, 85], [87, 86], [88, 4], [90, 88], [92, 91], [93, 92], [94, 4], [96, 94], [100, 83], [101, 100], [102, 101], [103, 102], [104, 4], [106, 104], [108, 107], [109, 108], [110, 4], [112, 110], [116, 83], [117, 116], [118, 117], [119, 118], [120, 4], [122, 120], [124, 123], [125, 124], [126, 4], [128, 126], [132, 83], [133, 132], [134, 133], [135, 134], [136, 4], [138, 136], [140, 139], [141, 140], [142, 4], [144, 142], [148, 83], [149, 148], [150, 149], [151, 150], [152, 4], [154, 152], [156, 155], [157, 156], [158, 4], [160, 158], [164, 83], [165, 164], [166, 165], [167, 166], [168, 4], [170, 168], [172, 171], [173, 172], [174, 4], [176, 174], [183, 114], [183, 178], [183, 16], [183, 98], [183, 162], [183, 180], [183, 146], [183, 130], [183, 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/6a9bdf88723c83e033ecc1cddcd8b0ba2b221b47b7f7d0d52a6cb645030822e1_6a9bdf88723c83e033ecc1cddcd8b0ba2b221b47b7f7d0d52a6cb645030822e1.jsonl.gz", "strip_func_name": "sub_404AA3", "query": "\n\n\n__int64 __fastcall sub_404AA3(__int64 a1)\n{\n__int64 result; // rax\n__int64 v2; // rax\n__int16 v3; // bx\n__int64 v4; // rax\n__int64 v5; // rax\n__int64 v6; // rax\n__int64 v7; // rax\n__int64 v8; // rax\n__int64 v9; // rax\n__int16 v10; // [rsp+10h] [rbp-20h]\n__int64 v11; // [rsp+18h] [rbp-18h]\n\nif ( *(_DWORD *)(a1 + 33032) == 3 )\n{\nif ( (sub_4026B2(a1, 0x300u) & 8) == 0 )\nreturn 0xFFFFFFFFLL;\n}\nelse if ( *(_DWORD *)(a1 + 33032) == 1 && (sub_4026B2(a1, 0x100u) & 2) == 0 )\n{\nreturn 0xFFFFFFFFLL;\n}\nv11 = 0LL;\nif ( (unsigned __int8)sub_4014F8(*(_QWORD *)(*(_QWORD *)(a1 + 33040) + 24LL)) )\n{\nv11 = 10LL;\n}\nelse if ( (unsigned __int8)sub_40551F(*(_QWORD *)(*(_QWORD *)(a1 + 33040) + 32LL)) )\n{\nsub_401E7D(*(_QWORD *)(a1 + 33040));\nv11 = 1LL;\n}\nif ( v11 )\n{\nsub_401D68(*(_QWORD *)(a1 + 33040), 0xC201004uLL, 0x20uLL, v11);\nv2 = sub_4026B2(a1, 0x344u);\nBYTE1(v2) |= 2u;\nsub_4026F9(a1, 0x344u, v2);\n}\nv3 = sub_4026B2(a1, 0x304u);\nv10 = v3 & sub_4026B2(a1, 0x344u);\nif ( (v10 & 0x800) != 0 )\n{\nv4 = sub_4026B2(a1, 0x344u);\nBYTE1(v4) &= 0xF7u;\nsub_4026F9(a1, 0x344u, v4);\nresult = 11LL;\n}\nelse if ( (v10 & 8) != 0 )\n{\nv5 = sub_4026B2(a1, 0x344u);\nsub_4026F9(a1, 0x344u, v5 & 0xFFFFFFFFFFFFFFF7LL);\nresult = 3LL;\n}\nelse if ( (v10 & 0x80) != 0 )\n{\nv6 = sub_4026B2(a1, 0x344u);\nLOBYTE(v6) = v6 & 0x7F;\nsub_4026F9(a1, 0x344u, v6);\nresult = 7LL;\n}\nelse if ( (v10 & 0x200) != 0 )\n{\nv7 = sub_4026B2(a1, 0x344u);\nBYTE1(v7) &= 0xFDu;\nsub_4026F9(a1, 0x344u, v7);\nresult = 9LL;\n}\nelse if ( (v10 & 2) != 0 )\n{\nv8 = sub_4026B2(a1, 0x344u);\nsub_4026F9(a1, 0x344u, v8 & 0xFFFFFFFFFFFFFFFDLL);\nresult = 1LL;\n}\nelse if ( (v10 & 0x20) != 0 )\n{\nv9 = sub_4026B2(a1, 0x344u);\nsub_4026F9(a1, 0x344u, v9 & 0xFFFFFFFFFFFFFFDFLL);\nresult = 5LL;\n}\nelse\n{\nresult = 0xFFFFFFFFLL;\n}\nreturn result;\n}\n\n\n\nQ:[a1,v10,v11,sub_404AA3,sub_4026B2,sub_4014F8,sub_40551F,sub_401E7D,sub_401D68,sub_4026F9,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'cpu', 'v10': 'pending', 'v11': 'irq', 'sub_404AA3': 'cpu_check_pending_interrupt', 'sub_4026B2': 'cpu_load_csr', 'sub_4014F8': 'uart_interrupting', 'sub_40551F': 'virtio_is_interrupting', 'sub_401E7D': 'bus_disk_access', 'sub_401D68': 'bus_store', 'sub_4026F9': 'cpu_store_csr'}"}
bactext_segmentation_index
e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011
baidu
iot-edge-sdk-for-iot-parser
NA
bool bactext_segmentation_index( const char *search_name, unsigned *found_index) { return indtext_by_istring(bacnet_segmentation_names, search_name, found_index); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40D872", "function_addr": 4249714, "binary_name": "e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011.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 rdx, [rbp+var_10]"], [6, "mov rax, [rbp+var_8]"], [7, "mov rsi, rax"], [8, "mov edi, offset unk_42DE40"], [9, "call sub_40EECF"], [10, "leave"], [11, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 6], [11, 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/e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011_e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011.jsonl.gz", "strip_func_name": "sub_40D872", "query": "\n\n\n__int64 __fastcall sub_40D872(__int64 a1, __int64 a2)\n{\nreturn sub_40EECF(&unk_42DE40, a1, a2);\n}\n\n\n\nQ:[a1,a2,sub_40D872,sub_40EECF,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'search_name', 'a2': 'found_index', 'sub_40D872': 'bactext_segmentation_index', 'sub_40EECF': 'indtext_by_istring'}"}
cmp_uint32
3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7
msysgit
msysgit
NA
static int cmp_uint32(const void *a_, const void *b_) { uint32_t a = *((uint32_t *)a_); uint32_t b = *((uint32_t *)b_); return (a < b) ? -1 : (a != b); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45D774", "function_addr": 4577140, "binary_name": "3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_20], rsi"], [4, "mov rax, [rbp+var_18]"], [5, "mov eax, [rax]"], [6, "mov [rbp+var_4], eax"], [7, "mov rax, [rbp+var_20]"], [8, "mov eax, [rax]"], [9, "mov [rbp+var_8], eax"], [10, "mov eax, [rbp+var_4]"], [11, "cmp eax, [rbp+var_8]"], [12, "jb short loc_45D7A8"], [13, "mov eax, [rbp+var_4]"], [14, "cmp eax, [rbp+var_8]"], [15, "setnz al"], [16, "movzx eax, al"], [17, "jmp short loc_45D7AD"], [18, "mov eax, 0FFFFFFFFh"], [19, "pop rbp"], [20, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 5], [7, 3], [8, 7], [9, 8], [10, 6], [11, 10], [11, 9], [12, 11], [13, 6], [14, 13], [14, 9], [15, 14], [15, 13], [16, 15], [19, 0], [20, 16], [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/3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7_3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7.jsonl.gz", "strip_func_name": "sub_45D774", "query": "\n\n\n__int64 __fastcall sub_45D774(const void *a1, const void *a2)\n{\n__int64 result; // rax\n\nif ( *(_DWORD *)a1 < *(_DWORD *)a2 )\nresult = 0xFFFFFFFFLL;\nelse\nresult = *(_DWORD *)a1 != *(_DWORD *)a2;\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_45D774,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'a_', 'a2': 'b_', 'sub_45D774': 'cmp_uint32'}"}
s2n_cbc_cipher_3des_encrypt
7421faa8c444aeca9266add08f45c75a4f43aebd993f880cd35dd964f63fdfb2
aws
s2n-tls
NA
static int s2n_cbc_cipher_3des_encrypt(struct s2n_session_key *key, struct s2n_blob *iv, struct s2n_blob *in, struct s2n_blob *out) { POSIX_ENSURE_GTE(out->size, in->size); POSIX_GUARD_OSSL(EVP_EncryptInit_ex(key->evp_cipher_ctx, NULL, NULL, NULL, iv->data), S2N_ERR_KEY_INIT); /* len is set by EVP_EncryptUpdate and checked post operation */ int len = 0; POSIX_GUARD_OSSL(EVP_EncryptUpdate(key->evp_cipher_ctx, out->data, &len, in->data, in->size), S2N_ERR_ENCRYPT); POSIX_ENSURE((int64_t) len == (int64_t) in->size, S2N_ERR_ENCRYPT); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45AB25", "function_addr": 4565797, "binary_name": "7421faa8c444aeca9266add08f45c75a4f43aebd993f880cd35dd964f63fdfb2.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 rax, fs:28h"], [8, "mov [rbp+var_8], rax"], [9, "xor eax, eax"], [10, "mov rax, [rbp+var_30]"], [11, "mov edx, [rax+8]"], [12, "mov rax, [rbp+var_28]"], [13, "mov eax, [rax+8]"], [14, "cmp edx, eax"], [15, "jnb short loc_45AB9D"], [16, "mov rax, fs:0"], [17, "lea rax, [rax-18h]"], [18, "lea rdx, aErrorEncounter_1513"], [19, "mov [rax], rdx"], [20, "mov rax, fs:0"], [21, "lea rax, [rax-20h]"], [22, "mov dword ptr [rax], 1800000Ah"], [23, "call sub_46D9B7"], [24, "mov eax, 0FFFFFFFFh"], [25, "jmp loc_45ACD3"], [26, "mov rax, [rbp+var_20]"], [27, "mov rdx, [rax]"], [28, "mov rax, [rbp+var_18]"], [29, "mov rax, [rax]"], [30, "mov r8, rdx"], [31, "mov ecx, 0"], [32, "mov edx, 0"], [33, "mov esi, 0"], [34, "mov rdi, rax"], [35, "call _EVP_EncryptInit_ex"], [36, "cmp eax, 1"], [37, "jz short loc_45AC09"], [38, "mov rax, fs:0"], [39, "lea rax, [rax-18h]"], [40, "lea rdx, aErrorEncounter_1514"], [41, "mov [rax], rdx"], [42, "mov rax, fs:0"], [43, "lea rax, [rax-20h]"], [44, "mov dword ptr [rax], 14000003h"], [45, "call sub_46D9B7"], [46, "mov eax, 0FFFFFFFFh"], [47, "jmp loc_45ACD3"], [48, "mov [rbp+var_C], 0"], [49, "mov rax, [rbp+var_28]"], [50, "mov eax, [rax+8]"], [51, "mov edi, eax"], [52, "mov rax, [rbp+var_28]"], [53, "mov rcx, [rax]"], [54, "mov rax, [rbp+var_30]"], [55, "mov rsi, [rax]"], [56, "mov rax, [rbp+var_18]"], [57, "mov rax, [rax]"], [58, "lea rdx, [rbp+var_C]"], [59, "mov r8d, edi"], [60, "mov rdi, rax"], [61, "call _EVP_EncryptUpdate"], [62, "cmp eax, 1"], [63, "jz short loc_45AC7E"], [64, "mov rax, fs:0"], [65, "lea rax, [rax-18h]"], [66, "lea rdx, aErrorEncounter_1515"], [67, "mov [rax], rdx"], [68, "mov rax, fs:0"], [69, "lea rax, [rax-20h]"], [70, "mov dword ptr [rax], 14000000h"], [71, "call sub_46D9B7"], [72, "mov eax, 0FFFFFFFFh"], [73, "jmp short loc_45ACD3"], [74, "mov eax, [rbp+var_C]"], [75, "movsxd rdx, eax"], [76, "mov rax, [rbp+var_28]"], [77, "mov eax, [rax+8]"], [78, "mov eax, eax"], [79, "cmp rdx, rax"], [80, "jz short loc_45ACCE"], [81, "mov rax, fs:0"], [82, "lea rax, [rax-18h]"], [83, "lea rdx, aErrorEncounter_1516"], [84, "mov [rax], rdx"], [85, "mov rax, fs:0"], [86, "lea rax, [rax-20h]"], [87, "mov dword ptr [rax], 14000000h"], [88, "call sub_46D9B7"], [89, "mov eax, 0FFFFFFFFh"], [90, "jmp short loc_45ACD3"], [91, "mov eax, 0"], [92, "mov rcx, [rbp+var_8]"], [93, "sub rcx, fs:28h"], [94, "jz short locret_45ACE7"], [95, "call ___stack_chk_fail"], [96, "leave"], [97, "retn"]], "data_dep": [[8, 7], [10, 6], [11, 10], [12, 5], [13, 12], [14, 13], [14, 11], [15, 14], [17, 16], [18, 11], [19, 18], [19, 17], [21, 19], [21, 20], [22, 21], [26, 4], [27, 26], [28, 3], [29, 28], [30, 27], [34, 29], [36, 35], [37, 36], [39, 38], [40, 32], [41, 40], [41, 39], [43, 42], [43, 41], [44, 43], [49, 5], [50, 49], [51, 50], [52, 5], [53, 52], [54, 6], [55, 54], [56, 3], [57, 56], [58, 48], [58, 32], [59, 51], [60, 57], [62, 61], [63, 62], [65, 64], [66, 58], [67, 65], [67, 66], [69, 68], [69, 67], [70, 69], [74, 48], [75, 74], [76, 5], [77, 76], [78, 77], [79, 75], [79, 78], [80, 79], [82, 81], [83, 75], [84, 83], [84, 82], [86, 84], [86, 85], [87, 86], [92, 8], [93, 92], [94, 93], [97, 72], [97, 89], [97, 46], [97, 24], [97, 91]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/7421faa8c444aeca9266add08f45c75a4f43aebd993f880cd35dd964f63fdfb2_7421faa8c444aeca9266add08f45c75a4f43aebd993f880cd35dd964f63fdfb2.jsonl.gz", "strip_func_name": "sub_45AB25", "query": "\n\n\n__int64 __fastcall sub_45AB25(__int64 *a1, __int64 a2, __int64 a3, __int64 *a4)\n{\n__int64 result; // rax\n__int64 v5; // rdi\n__int64 v6; // rsi\n__int64 v7; // rdi\n\nif ( *((_DWORD *)a4 + 2) >= *(_DWORD *)(a3 + 8) )\n{\nv5 = *a1;\nif ( (unsigned int)EVP_EncryptInit_ex() == 1 )\n{\nv6 = *a4;\nv7 = *a1;\nif ( (unsigned int)EVP_EncryptUpdate() == 1 )\n{\nif ( *(_DWORD *)(a3 + 8) )\n{\n*(_QWORD *)(__readfsqword(0) - 24) = \"Error encountered in s2n_cbc_cipher_3des.c:38\";\n*(_DWORD *)(__readfsqword(0) - 32) = 335544320;\nsub_46D9B7(v7, v6);\nresult = 0xFFFFFFFFLL;\n}\nelse\n{\nresult = 0LL;\n}\n}\nelse\n{\n*(_QWORD *)(__readfsqword(0) - 24) = \"Error encountered in s2n_cbc_cipher_3des.c:37\";\n*(_DWORD *)(__readfsqword(0) - 32) = 335544320;\nsub_46D9B7(v7, v6);\nresult = 0xFFFFFFFFLL;\n}\n}\nelse\n{\n*(_QWORD *)(__readfsqword(0) - 24) = \"Error encountered in s2n_cbc_cipher_3des.c:33\";\n*(_DWORD *)(__readfsqword(0) - 32) = 335544323;\nsub_46D9B7(v5, 0LL);\nresult = 0xFFFFFFFFLL;\n}\n}\nelse\n{\n*(_QWORD *)(__readfsqword(0) - 24) = \"Error encountered in s2n_cbc_cipher_3des.c:31\";\n*(_DWORD *)(__readfsqword(0) - 32) = 402653194;\nsub_46D9B7(a1, a2);\nresult = 0xFFFFFFFFLL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v7,v6,sub_45AB25,sub_46D9B7,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'in', 'a4': 'out', 'a1': 'key', 'a2': 'iv', 'v7': 'key', 'v6': 'iv', 'sub_45AB25': 's2n_cbc_cipher_3des_encrypt', 'sub_46D9B7': 's2n_calculate_stacktrace'}"}
print_SAT_Info_Help
a4d54d05beb18ad1b4f231241af9abd05a83fae7396badbcb82c4abe627f13cc
Seagate
openSeaChest
NA
void print_SAT_Info_Help(bool shortHelp) { printf("\t--%s\n", SAT_INFO_LONG_OPT_STRING); if (!shortHelp) { printf("\t\tDisplays SATA device information on any interface\n"); printf("\t\tusing both SCSI Inquiry / VPD / Log reported data\n"); printf("\t\t(translated according to SAT) and the ATA Identify / Log\n"); printf("\t\treported data.\n\n"); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B018", "function_addr": 4239384, "binary_name": "a4d54d05beb18ad1b4f231241af9abd05a83fae7396badbcb82c4abe627f13cc.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov eax, edi"], [4, "mov [rbp+var_4], al"], [5, "mov esi, offset aSatinfo_0"], [6, "mov edi, offset aS_23"], [7, "mov eax, 0"], [8, "call _printf"], [9, "movzx eax, [rbp+var_4]"], [10, "xor eax, 1"], [11, "test al, al"], [12, "jz short loc_40B06C"], [13, "mov edi, offset aDisplaysSataDe"], [14, "call _puts"], [15, "mov edi, offset aUsingBothScsiI"], [16, "call _puts"], [17, "mov edi, offset aTranslatedAcco"], [18, "call _puts"], [19, "mov edi, offset aReportedData"], [20, "call _puts"], [21, "nop"], [22, "leave"], [23, "retn"]], "data_dep": [[4, 3], [9, 4], [10, 9], [11, 10], [12, 11], [23, 11], [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/a4d54d05beb18ad1b4f231241af9abd05a83fae7396badbcb82c4abe627f13cc_a4d54d05beb18ad1b4f231241af9abd05a83fae7396badbcb82c4abe627f13cc.jsonl.gz", "strip_func_name": "sub_40B018", "query": "\n\n\nint __fastcall sub_40B018(unsigned __int8 a1)\n{\nint result; // eax\n\nprintf(\"\\t--%s\\n\", \"SATInfo\");\nresult = a1 ^ 1;\nif ( a1 != 1 )\n{\nputs(\"\\t\\tDisplays SATA device information on any interface\");\nputs(\"\\t\\tusing both SCSI Inquiry / VPD / Log reported data\");\nputs(\"\\t\\t(translated according to SAT) and the ATA Identify / Log\");\nresult = puts(\"\\t\\treported data.\\n\");\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_40B018,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'shortHelp', 'sub_40B018': 'print_SAT_Info_Help'}"}
bc_idx_to_atom
bff35f3b7ff0bbf5e5e52ae6499ba776520880a991546f99df7df7f4351bfb13
sunnyxx
quickjs-debug
NA
static int bc_idx_to_atom(BCReaderState *s, JSAtom *patom, uint32_t idx) { JSAtom atom; if (__JS_AtomIsTaggedInt(idx)) { atom = idx; } else if (idx < s->first_atom) { atom = JS_DupAtom(s->ctx, idx); } else { idx -= s->first_atom; if (idx >= s->idx_to_atom_count) { JS_ThrowSyntaxError(s->ctx, "invalid atom index (pos=%u)", (unsigned int)(s->ptr - s->buf_start)); *patom = JS_ATOM_NULL; return s->error_state = -1; } atom = JS_DupAtom(s->ctx, s->idx_to_atom[idx]); } *patom = atom; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_451768", "function_addr": 4527976, "binary_name": "bff35f3b7ff0bbf5e5e52ae6499ba776520880a991546f99df7df7f4351bfb13.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_24], edx"], [6, "mov eax, [rbp+var_24]"], [7, "mov edi, eax"], [8, "call sub_406D8E"], [9, "test eax, eax"], [10, "jz short loc_451794"], [11, "mov eax, [rbp+var_24]"], [12, "mov [rbp+var_4], eax"], [13, "jmp loc_451849"], [14, "mov rax, [rbp+var_18]"], [15, "mov eax, [rax+20h]"], [16, "cmp [rbp+var_24], eax"], [17, "jnb short loc_4517BC"], [18, "mov rax, [rbp+var_18]"], [19, "mov rax, [rax]"], [20, "mov edx, [rbp+var_24]"], [21, "mov esi, edx"], [22, "mov rdi, rax"], [23, "call sub_4075D4"], [24, "mov [rbp+var_4], eax"], [25, "jmp loc_451849"], [26, "mov rax, [rbp+var_18]"], [27, "mov eax, [rax+20h]"], [28, "sub [rbp+var_24], eax"], [29, "mov rax, [rbp+var_18]"], [30, "mov eax, [rax+24h]"], [31, "cmp [rbp+var_24], eax"], [32, "jb short loc_451821"], [33, "mov rax, [rbp+var_18]"], [34, "mov rdx, [rax+10h]"], [35, "mov rax, [rbp+var_18]"], [36, "mov rcx, [rax+8]"], [37, "mov rax, rdx"], [38, "sub rax, rcx"], [39, "mov edx, eax"], [40, "mov rax, [rbp+var_18]"], [41, "mov rax, [rax]"], [42, "mov esi, offset aInvalidAtomInd"], [43, "mov rdi, rax"], [44, "mov eax, 0"], [45, "call sub_411A3F"], [46, "mov rax, [rbp+var_20]"], [47, "mov dword ptr [rax], 0"], [48, "mov rax, [rbp+var_18]"], [49, "mov dword ptr [rax+30h], 0FFFFFFFFh"], [50, "mov rax, [rbp+var_18]"], [51, "mov eax, [rax+30h]"], [52, "jmp short locret_451857"], [53, "mov rax, [rbp+var_18]"], [54, "mov rdx, [rax+28h]"], [55, "mov eax, [rbp+var_24]"], [56, "shl rax, 2"], [57, "add rax, rdx"], [58, "mov edx, [rax]"], [59, "mov rax, [rbp+var_18]"], [60, "mov rax, [rax]"], [61, "mov esi, edx"], [62, "mov rdi, rax"], [63, "call sub_4075D4"], [64, "mov [rbp+var_4], eax"], [65, "mov rax, [rbp+var_20]"], [66, "mov edx, [rbp+var_4]"], [67, "mov [rax], edx"], [68, "mov eax, 0"], [69, "leave"], [70, "retn"]], "data_dep": [[6, 5], [7, 6], [9, 8], [10, 9], [11, 5], [12, 11], [14, 3], [15, 14], [16, 15], [16, 5], [17, 16], [18, 3], [19, 18], [20, 5], [21, 20], [22, 19], [24, 23], [26, 3], [27, 26], [28, 27], [28, 5], [29, 3], [30, 29], [31, 28], [31, 30], [32, 31], [33, 3], [34, 33], [35, 3], [36, 35], [37, 34], [38, 37], [38, 36], [39, 38], [40, 3], [41, 40], [43, 41], [46, 4], [47, 46], [48, 3], [49, 48], [50, 3], [51, 50], [51, 49], [53, 3], [54, 53], [55, 28], [56, 55], [57, 54], [57, 56], [58, 57], [59, 3], [60, 59], [61, 58], [62, 60], [64, 63], [65, 4], [66, 64], [66, 12], [66, 24], [67, 65], [67, 66], [70, 51], [70, 68]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/bff35f3b7ff0bbf5e5e52ae6499ba776520880a991546f99df7df7f4351bfb13_bff35f3b7ff0bbf5e5e52ae6499ba776520880a991546f99df7df7f4351bfb13.jsonl.gz", "strip_func_name": "sub_451768", "query": "\n\n\n__int64 __fastcall sub_451768(__int64 a1, _DWORD *a2, unsigned int a3)\n{\n__int64 v3; // r8\n__int64 v4; // r9\nunsigned int v7; // [rsp+Ch] [rbp-24h]\nint v8; // [rsp+2Ch] [rbp-4h]\n\nif ( sub_406D8E(a3) )\n{\nv8 = a3;\n}\nelse if ( a3 >= *(_DWORD *)(a1 + 32) )\n{\nv7 = a3 - *(_DWORD *)(a1 + 32);\nif ( v7 >= *(_DWORD *)(a1 + 36) )\n{\nsub_411A3F(\n*(__int64 **)a1,\n\"invalid atom index (pos=%u)\",\n(unsigned int)*(_QWORD *)(a1 + 16) - (unsigned int)*(_QWORD *)(a1 + 8),\n*(_QWORD *)(a1 + 8),\nv3,\nv4);\n*a2 = 0;\n*(_DWORD *)(a1 + 48) = -1;\nreturn *(unsigned int *)(a1 + 48);\n}\nv8 = sub_4075D4(*(_QWORD *)a1, *(_DWORD *)(*(_QWORD *)(a1 + 40) + 4LL * v7));\n}\nelse\n{\nv8 = sub_4075D4(*(_QWORD *)a1, a3);\n}\n*a2 = v8;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v7,v8,sub_451768,sub_411A3F,sub_4075D4,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'idx', 'a1': 's', 'a2': 'patom', 'v7': 'idxb', 'v8': 'atom', 'sub_451768': 'bc_idx_to_atom', 'sub_411A3F': 'JS_ThrowSyntaxError', 'sub_4075D4': 'JS_DupAtom'}"}
pj_stun_sock_cfg_default
24a2637591f28727b21989feacd6e39416a2c11ff374047913dc0e05514c7835
AonCyberLabs
D-Modem
NA
PJ_DEF(void) pj_stun_sock_cfg_default(pj_stun_sock_cfg *cfg) { pj_bzero(cfg, sizeof(*cfg)); cfg->max_pkt_size = PJ_STUN_SOCK_PKT_LEN; cfg->async_cnt = 1; cfg->ka_interval = PJ_STUN_KEEP_ALIVE_SEC; cfg->qos_type = PJ_QOS_TYPE_BEST_EFFORT; cfg->qos_ignore_error = PJ_TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B545", "function_addr": 4240709, "binary_name": "24a2637591f28727b21989feacd6e39416a2c11ff374047913dc0e05514c7835.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 esi, 50h "], [6, "mov rdi, rax"], [7, "call sub_40B38B"], [8, "mov rax, [rbp+var_8]"], [9, "mov dword ptr [rax+8], 7D0h"], [10, "mov rax, [rbp+var_8]"], [11, "mov dword ptr [rax+0Ch], 1"], [12, "mov rax, [rbp+var_8]"], [13, "mov dword ptr [rax+30h], 0Fh"], [14, "mov rax, [rbp+var_8]"], [15, "mov dword ptr [rax+34h], 0"], [16, "mov rax, [rbp+var_8]"], [17, "mov dword ptr [rax+40h], 1"], [18, "nop"], [19, "leave"], [20, "retn"]], "data_dep": [[4, 3], [6, 4], [8, 3], [9, 8], [10, 3], [11, 10], [12, 3], [13, 12], [14, 3], [15, 14], [16, 3], [17, 16], [20, 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/24a2637591f28727b21989feacd6e39416a2c11ff374047913dc0e05514c7835_24a2637591f28727b21989feacd6e39416a2c11ff374047913dc0e05514c7835.jsonl.gz", "strip_func_name": "sub_40B545", "query": "\n\n\n_DWORD *__fastcall sub_40B545(_DWORD *a1)\n{\n_DWORD *result; // rax\n\nsub_40B38B(a1, 0x50uLL);\na1[2] = 2000;\na1[3] = 1;\na1[12] = 15;\na1[13] = 0;\nresult = a1;\na1[16] = 1;\nreturn result;\n}\n\n\n\nQ:[a1,sub_40B545,sub_40B38B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'cfg', 'sub_40B545': 'pj_stun_sock_cfg_default', 'sub_40B38B': 'pj_bzero_0'}"}
diff_get_patch_id
8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590
msysgit
msysgit
NA
static int diff_get_patch_id(struct diff_options *options, unsigned char *sha1) { struct diff_queue_struct *q = &diff_queued_diff; int i; git_SHA_CTX ctx; struct patch_id_t data; char buffer[PATH_MAX * 4 + 20]; git_SHA1_Init(&ctx); memset(&data, 0, sizeof(struct patch_id_t)); data.ctx = &ctx; for (i = 0; i < q->nr; i++) { xpparam_t xpp; xdemitconf_t xecfg; mmfile_t mf1, mf2; struct diff_filepair *p = q->queue[i]; int len1, len2; memset(&xpp, 0, sizeof(xpp)); memset(&xecfg, 0, sizeof(xecfg)); if (p->status == 0) return error("internal diff status error"); if (p->status == DIFF_STATUS_UNKNOWN) continue; if (diff_unmodified_pair(p)) continue; if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) || (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode))) continue; if (DIFF_PAIR_UNMERGED(p)) continue; diff_fill_sha1_info(p->one); diff_fill_sha1_info(p->two); if (fill_mmfile(&mf1, p->one) < 0 || fill_mmfile(&mf2, p->two) < 0) return error("unable to read files to diff"); len1 = remove_space(p->one->path, strlen(p->one->path)); len2 = remove_space(p->two->path, strlen(p->two->path)); if (p->one->mode == 0) len1 = snprintf(buffer, sizeof(buffer), "diff--gita/%.*sb/%.*s" "newfilemode%06o" "---/dev/null" "+++b/%.*s", len1, p->one->path, len2, p->two->path, p->two->mode, len2, p->two->path); else if (p->two->mode == 0) len1 = snprintf(buffer, sizeof(buffer), "diff--gita/%.*sb/%.*s" "deletedfilemode%06o" "---a/%.*s" "+++/dev/null", len1, p->one->path, len2, p->two->path, p->one->mode, len1, p->one->path); else len1 = snprintf(buffer, sizeof(buffer), "diff--gita/%.*sb/%.*s" "---a/%.*s" "+++b/%.*s", len1, p->one->path, len2, p->two->path, len1, p->one->path, len2, p->two->path); git_SHA1_Update(&ctx, buffer, len1); if (diff_filespec_is_binary(p->one) || diff_filespec_is_binary(p->two)) { git_SHA1_Update(&ctx, sha1_to_hex(p->one->sha1), 40); git_SHA1_Update(&ctx, sha1_to_hex(p->two->sha1), 40); continue; } xpp.flags = 0; xecfg.ctxlen = 3; xecfg.flags = 0; xdi_diff_outf(&mf1, &mf2, patch_id_consume, &data, &xpp, &xecfg); } git_SHA1_Final(sha1, &ctx); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_47643C", "function_addr": 4678716, "binary_name": "8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 4120h"], [3, "mov [rbp+var_4118], rdi"], [4, "mov [rbp+var_4120], rsi"], [5, "mov [rbp+var_10], offset qword_524900"], [6, "lea rax, [rbp+var_80]"], [7, "mov rdi, rax"], [8, "call _SHA1_Init"], [9, "lea rax, [rbp+s]"], [10, "mov edx, 10h"], [11, "mov esi, 0"], [12, "mov rdi, rax"], [13, "call _memset"], [14, "lea rax, [rbp+var_80]"], [15, "mov [rbp+s], rax"], [16, "mov [rbp+var_4], 0"], [17, "jmp loc_4768C9"], [18, "mov rax, [rbp+var_10]"], [19, "mov rdx, [rax]"], [20, "mov eax, [rbp+var_4]"], [21, "cdqe"], [22, "shl rax, 3"], [23, "add rax, rdx"], [24, "mov rax, [rax]"], [25, "mov [rbp+var_18], rax"], [26, "lea rax, [rbp+var_40B8]"], [27, "mov edx, 8"], [28, "mov esi, 0"], [29, "mov rdi, rax"], [30, "call _memset"], [31, "lea rax, [rbp+var_4110]"], [32, "mov edx, 30h "], [33, "mov esi, 0"], [34, "mov rdi, rax"], [35, "call _memset"], [36, "mov rax, [rbp+var_18]"], [37, "movzx eax, byte ptr [rax+12h]"], [38, "test al, al"], [39, "jnz short loc_47650A"], [40, "mov edi, offset aInternalDiffSt"], [41, "mov eax, 0"], [42, "call error"], [43, "mov eax, 0FFFFFFFFh"], [44, "jmp locret_4768F4"], [45, "mov rax, [rbp+var_18]"], [46, "movzx eax, byte ptr [rax+12h]"], [47, "cmp al, 58h "], [48, "jz loc_4768BB"], [49, "mov rax, [rbp+var_18]"], [50, "mov rdi, rax"], [51, "call sub_475975"], [52, "test eax, eax"], [53, "jnz loc_4768BE"], [54, "mov rax, [rbp+var_18]"], [55, "mov rax, [rax]"], [56, "movzx eax, word ptr [rax+40h]"], [57, "test ax, ax"], [58, "jz short loc_47655C"], [59, "mov rax, [rbp+var_18]"], [60, "mov rax, [rax]"], [61, "movzx eax, word ptr [rax+40h]"], [62, "movzx eax, ax"], [63, "and eax, 0F000h"], [64, "cmp eax, 4000h"], [65, "jz loc_4768C1"], [66, "mov rax, [rbp+var_18]"], [67, "mov rax, [rax+8]"], [68, "movzx eax, word ptr [rax+40h]"], [69, "test ax, ax"], [70, "jz short loc_47658C"], [71, "mov rax, [rbp+var_18]"], [72, "mov rax, [rax+8]"], [73, "movzx eax, word ptr [rax+40h]"], [74, "movzx eax, ax"], [75, "and eax, 0F000h"], [76, "cmp eax, 4000h"], [77, "jz loc_4768C1"], [78, "mov rax, [rbp+var_18]"], [79, "movzx eax, byte ptr [rax+13h]"], [80, "and eax, 4"], [81, "test al, al"], [82, "jnz loc_4768C4"], [83, "mov rax, [rbp+var_18]"], [84, "mov rax, [rax]"], [85, "mov rdi, rax"], [86, "call sub_472725"], [87, "mov rax, [rbp+var_18]"], [88, "mov rax, [rax+8]"], [89, "mov rdi, rax"], [90, "call sub_472725"], [91, "mov rax, [rbp+var_18]"], [92, "mov rdx, [rax]"], [93, "lea rax, [rbp+var_40D0]"], [94, "mov rsi, rdx"], [95, "mov rdi, rax"], [96, "call sub_46AEE0"], [97, "test eax, eax"], [98, "js short loc_4765F9"], [99, "mov rax, [rbp+var_18]"], [100, "mov rdx, [rax+8]"], [101, "lea rax, [rbp+var_40E0]"], [102, "mov rsi, rdx"], [103, "mov rdi, rax"], [104, "call sub_46AEE0"], [105, "test eax, eax"], [106, "jns short loc_476612"], [107, "mov edi, offset aUnableToReadFi"], [108, "mov eax, 0"], [109, "call error"], [110, "mov eax, 0FFFFFFFFh"], [111, "jmp locret_4768F4"], [112, "mov rax, [rbp+var_18]"], [113, "mov rax, [rax]"], [114, "mov rax, [rax+18h]"], [115, "mov rdi, rax"], [116, "call _strlen"], [117, "mov edx, eax"], [118, "mov rax, [rbp+var_18]"], [119, "mov rax, [rax]"], [120, "mov rax, [rax+18h]"], [121, "mov esi, edx"], [122, "mov rdi, rax"], [123, "call sub_476352"], [124, "mov [rbp+var_8], eax"], [125, "mov rax, [rbp+var_18]"], [126, "mov rax, [rax+8]"], [127, "mov rax, [rax+18h]"], [128, "mov rdi, rax"], [129, "call _strlen"], [130, "mov edx, eax"], [131, "mov rax, [rbp+var_18]"], [132, "mov rax, [rax+8]"], [133, "mov rax, [rax+18h]"], [134, "mov esi, edx"], [135, "mov rdi, rax"], [136, "call sub_476352"], [137, "mov [rbp+var_1C], eax"], [138, "mov rax, [rbp+var_18]"], [139, "mov rax, [rax]"], [140, "movzx eax, word ptr [rax+40h]"], [141, "test ax, ax"], [142, "jnz short loc_4766EA"], [143, "mov rax, [rbp+var_18]"], [144, "mov rax, [rax+8]"], [145, "mov rdi, [rax+18h]"], [146, "mov rax, [rbp+var_18]"], [147, "mov rax, [rax+8]"], [148, "movzx eax, word ptr [rax+40h]"], [149, "movzx esi, ax"], [150, "mov rax, [rbp+var_18]"], [151, "mov rax, [rax+8]"], [152, "mov rcx, [rax+18h]"], [153, "mov rax, [rbp+var_18]"], [154, "mov rax, [rax]"], [155, "mov r8, [rax+18h]"], [156, "mov r9d, [rbp+var_1C]"], [157, "mov edx, [rbp+var_8]"], [158, "lea rax, [rbp+var_40B0]"], [159, "push rdi"], [160, "mov edi, [rbp+var_1C]"], [161, "push rdi"], [162, "push rsi"], [163, "push rcx"], [164, "mov ecx, edx"], [165, "mov edx, offset aDiffGitaSbSnew"], [166, "mov esi, 4014h"], [167, "mov rdi, rax"], [168, "mov eax, 0"], [169, "call _snprintf"], [170, "add rsp, 20h"], [171, "mov [rbp+var_8], eax"], [172, "jmp loc_4767CD"], [173, "mov rax, [rbp+var_18]"], [174, "mov rax, [rax+8]"], [175, "movzx eax, word ptr [rax+40h]"], [176, "test ax, ax"], [177, "jnz short loc_476762"], [178, "mov rax, [rbp+var_18]"], [179, "mov rax, [rax]"], [180, "mov rdi, [rax+18h]"], [181, "mov rax, [rbp+var_18]"], [182, "mov rax, [rax]"], [183, "movzx eax, word ptr [rax+40h]"], [184, "movzx esi, ax"], [185, "mov rax, [rbp+var_18]"], [186, "mov rax, [rax+8]"], [187, "mov rcx, [rax+18h]"], [188, "mov rax, [rbp+var_18]"], [189, "mov rax, [rax]"], [190, "mov r8, [rax+18h]"], [191, "mov r9d, [rbp+var_1C]"], [192, "mov edx, [rbp+var_8]"], [193, "lea rax, [rbp+var_40B0]"], [194, "push rdi"], [195, "mov edi, [rbp+var_8]"], [196, "push rdi"], [197, "push rsi"], [198, "push rcx"], [199, "mov ecx, edx"], [200, "mov edx, offset aDiffGitaSbSdel"], [201, "mov esi, 4014h"], [202, "mov rdi, rax"], [203, "mov eax, 0"], [204, "call _snprintf"], [205, "add rsp, 20h"], [206, "mov [rbp+var_8], eax"], [207, "jmp short loc_4767CD"], [208, "mov rax, [rbp+var_18]"], [209, "mov rax, [rax+8]"], [210, "mov rdi, [rax+18h]"], [211, "mov rax, [rbp+var_18]"], [212, "mov rax, [rax]"], [213, "mov rsi, [rax+18h]"], [214, "mov rax, [rbp+var_18]"], [215, "mov rax, [rax+8]"], [216, "mov rcx, [rax+18h]"], [217, "mov rax, [rbp+var_18]"], [218, "mov rax, [rax]"], [219, "mov r8, [rax+18h]"], [220, "mov r9d, [rbp+var_1C]"], [221, "mov edx, [rbp+var_8]"], [222, "lea rax, [rbp+var_40B0]"], [223, "sub rsp, 8"], [224, "push rdi"], [225, "mov edi, [rbp+var_1C]"], [226, "push rdi"], [227, "push rsi"], [228, "mov esi, [rbp+var_8]"], [229, "push rsi"], [230, "push rcx"], [231, "mov ecx, edx"], [232, "mov edx, offset aDiffGitaSbSASB"], [233, "mov esi, 4014h"], [234, "mov rdi, rax"], [235, "mov eax, 0"], [236, "call _snprintf"], [237, "add rsp, 30h"], [238, "mov [rbp+var_8], eax"], [239, "mov eax, [rbp+var_8]"], [240, "movsxd rdx, eax"], [241, "lea rcx, [rbp+var_40B0]"], [242, "lea rax, [rbp+var_80]"], [243, "mov rsi, rcx"], [244, "mov rdi, rax"], [245, "call _SHA1_Update"], [246, "mov rax, [rbp+var_18]"], [247, "mov rax, [rax]"], [248, "mov rdi, rax"], [249, "call sub_46FDE7"], [250, "test eax, eax"], [251, "jnz short loc_476810"], [252, "mov rax, [rbp+var_18]"], [253, "mov rax, [rax+8]"], [254, "mov rdi, rax"], [255, "call sub_46FDE7"], [256, "test eax, eax"], [257, "jz short loc_47685F"], [258, "mov rax, [rbp+var_18]"], [259, "mov rax, [rax]"], [260, "mov rdi, rax"], [261, "call sub_4122CD"], [262, "mov rcx, rax"], [263, "lea rax, [rbp+var_80]"], [264, "mov edx, 28h "], [265, "mov rsi, rcx"], [266, "mov rdi, rax"], [267, "call _SHA1_Update"], [268, "mov rax, [rbp+var_18]"], [269, "mov rax, [rax+8]"], [270, "mov rdi, rax"], [271, "call sub_4122CD"], [272, "mov rcx, rax"], [273, "lea rax, [rbp+var_80]"], [274, "mov edx, 28h "], [275, "mov rsi, rcx"], [276, "mov rdi, rax"], [277, "call _SHA1_Update"], [278, "jmp short loc_4768C5"], [279, "mov [rbp+var_40B8], 0"], [280, "mov [rbp+var_4110], 3"], [281, "mov [rbp+var_4100], 0"], [282, "lea rdi, [rbp+var_4110]"], [283, "lea rcx, [rbp+var_40B8]"], [284, "lea rdx, [rbp+s]"], [285, "lea rsi, [rbp+var_40E0]"], [286, "lea rax, [rbp+var_40D0]"], [287, "mov r9, rdi"], [288, "mov r8, rcx"], [289, "mov rcx, rdx"], [290, "mov edx, offset sub_4763C0"], [291, "mov rdi, rax"], [292, "call sub_4A6B81"], [293, "jmp short loc_4768C5"], [294, "nop"], [295, "jmp short loc_4768C5"], [296, "nop"], [297, "jmp short loc_4768C5"], [298, "nop"], [299, "jmp short loc_4768C5"], [300, "nop"], [301, "add [rbp+var_4], 1"], [302, "mov rax, [rbp+var_10]"], [303, "mov eax, [rax+0Ch]"], [304, "cmp [rbp+var_4], eax"], [305, "jl loc_476499"], [306, "lea rdx, [rbp+var_80]"], [307, "mov rax, [rbp+var_4120]"], [308, "mov rsi, rdx"], [309, "mov rdi, rax"], [310, "call _SHA1_Final"], [311, "mov eax, 0"], [312, "leave"], [313, "retn"]], "data_dep": [[7, 6], [9, 8], [12, 9], [14, 13], [15, 14], [18, 5], [19, 18], [20, 16], [20, 301], [22, 20], [23, 22], [23, 19], [24, 23], [25, 24], [26, 279], [26, 24], [29, 26], [31, 280], [31, 30], [34, 31], [36, 25], [37, 36], [38, 37], [39, 38], [45, 25], [46, 45], [47, 46], [48, 47], [49, 25], [50, 49], [52, 51], [53, 52], [54, 25], [55, 54], [56, 55], [57, 56], [58, 57], [59, 25], [60, 59], [61, 60], [62, 61], [63, 62], [64, 63], [65, 64], [66, 25], [67, 66], [68, 67], [69, 68], [70, 69], [71, 25], [72, 71], [73, 72], [74, 73], [75, 74], [76, 75], [77, 76], [78, 25], [79, 78], [80, 79], [81, 80], [82, 81], [83, 25], [84, 83], [85, 84], [87, 25], [88, 87], [89, 88], [91, 25], [92, 91], [93, 91], [94, 92], [95, 93], [97, 96], [98, 97], [99, 25], [100, 99], [101, 99], [102, 100], [103, 101], [105, 104], [106, 105], [112, 25], [113, 112], [114, 113], [115, 114], [117, 116], [118, 25], [119, 118], [120, 119], [121, 117], [122, 120], [124, 123], [125, 25], [126, 125], [127, 126], [128, 127], [130, 129], [131, 25], [132, 131], [133, 132], [134, 130], [135, 133], [137, 136], [138, 25], [139, 138], [140, 139], [141, 140], [142, 141], [143, 25], [144, 143], [145, 144], [146, 25], [147, 146], [148, 147], [149, 148], [150, 25], [151, 150], [152, 151], [153, 25], [154, 153], [155, 154], [156, 137], [157, 124], [158, 154], [159, 145], [160, 137], [161, 160], [162, 149], [163, 152], [164, 157], [167, 158], [170, 2], [170, 205], [170, 237], [170, 170], [171, 169], [173, 25], [174, 173], [175, 174], [176, 175], [177, 176], [178, 25], [179, 178], [180, 179], [181, 25], [182, 181], [183, 182], [184, 183], [185, 25], [186, 185], [187, 186], [188, 25], [189, 188], [190, 189], [191, 137], [192, 124], [193, 189], [194, 180], [195, 124], [196, 195], [197, 184], [198, 187], [199, 192], [202, 193], [205, 237], [205, 170], [205, 2], [205, 205], [206, 204], [208, 25], [209, 208], [210, 209], [211, 25], [212, 211], [213, 212], [214, 25], [215, 214], [216, 215], [217, 25], [218, 217], [219, 218], [220, 137], [221, 124], [222, 218], [223, 237], [223, 205], [223, 170], [223, 2], [224, 210], [225, 137], [226, 225], [227, 213], [228, 124], [229, 228], [230, 216], [231, 221], [234, 222], [237, 223], [238, 236], [239, 206], [239, 238], [239, 171], [240, 239], [241, 199], [241, 231], [241, 164], [242, 239], [243, 241], [244, 242], [246, 25], [247, 246], [248, 247], [250, 249], [251, 250], [252, 25], [253, 252], [254, 253], [256, 255], [257, 256], [258, 25], [259, 258], [260, 259], [262, 261], [263, 261], [265, 262], [266, 263], [268, 25], [269, 268], [270, 269], [272, 271], [273, 271], [275, 272], [276, 273], [282, 280], [282, 254], [283, 279], [283, 241], [284, 15], [284, 240], [285, 243], [286, 256], [287, 282], [288, 283], [289, 284], [291, 286], [301, 301], [301, 16], [302, 5], [303, 302], [304, 16], [304, 301], [304, 303], [305, 304], [306, 10], [306, 32], [306, 290], [306, 274], [307, 4], [308, 306], [309, 307], [313, 110], [313, 311], [313, 43]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590_8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.jsonl.gz", "strip_func_name": "sub_47643C", "query": "\n\n\n__int64 __fastcall sub_47643C(__int64 a1, __int64 a2)\n{\n__int64 v2; // rdx\n__int64 v3; // rcx\n__int64 v4; // r8\n__int64 v5; // r9\n__int64 v7; // rsi\n__int64 v8; // rdx\n__int64 v9; // rcx\n__int64 v10; // r8\n__int64 v11; // r9\nint v12; // eax\nint v13; // eax\n__int64 v15[6]; // [rsp+10h] [rbp-4110h] BYREF\n_QWORD v16[2]; // [rsp+40h] [rbp-40E0h] BYREF\n_QWORD v17[3]; // [rsp+50h] [rbp-40D0h] BYREF\n__int64 v18; // [rsp+68h] [rbp-40B8h] BYREF\nchar v19[16416]; // [rsp+70h] [rbp-40B0h] BYREF\n__int64 s[2]; // [rsp+4090h] [rbp-90h] BYREF\nchar v21; // [rsp+40A0h] [rbp-80h] BYREF\nunsigned int v22; // [rsp+4104h] [rbp-1Ch]\n__int64 *v23; // [rsp+4108h] [rbp-18h]\nvoid **v24; // [rsp+4110h] [rbp-10h]\nint v25; // [rsp+4118h] [rbp-8h]\nint i; // [rsp+411Ch] [rbp-4h]\n\nv24 = &qword_524900;\nSHA1_Init();\nmemset(s, 0, sizeof(s));\ns[0] = (__int64)&v21;\nfor ( i = 0; i < *((_DWORD *)v24 + 3); ++i )\n{\nv23 = (__int64 *)*((_QWORD *)*v24 + i);\nmemset(&v18, 0, sizeof(v18));\nmemset(v15, 0, sizeof(v15));\nif ( !*((_BYTE *)v23 + 18) )\n{\nerror((__int64)\"internal diff status error\", 0LL, v2, v3, v4, v5, a2, a1);\nreturn 0xFFFFFFFFLL;\n}\nif ( *((_BYTE *)v23 + 18) != 88\n&& !sub_475975(v23)\n&& (!*(_WORD *)(*v23 + 64) || (*(_WORD *)(*v23 + 64) & 0xF000) != 0x4000)\n&& (!*(_WORD *)(v23[1] + 64) || (*(_WORD *)(v23[1] + 64) & 0xF000) != 0x4000)\n&& (*((_BYTE *)v23 + 19) & 4) == 0 )\n{\nsub_472725(*v23);\nsub_472725(v23[1]);\nv7 = *v23;\nif ( (int)sub_46AEE0(v17, *v23) < 0 || (v7 = v23[1], (int)sub_46AEE0(v16, v7) < 0) )\n{\nerror((__int64)\"unable to read files to diff\", v7, v8, v9, v10, v11, a2, a1);\nreturn 0xFFFFFFFFLL;\n}\nv12 = strlen(*(const char **)(*v23 + 24));\nv25 = (unsigned int)sub_476352(*(unsigned __int8 **)(*v23 + 24), v12);\nv13 = strlen(*(const char **)(v23[1] + 24));\nv22 = (unsigned int)sub_476352(*(unsigned __int8 **)(v23[1] + 24), v13);\nif ( *(_WORD *)(*v23 + 64) )\n{\nif ( *(_WORD *)(v23[1] + 64) )\nv25 = snprintf(\nv19,\n0x4014uLL,\n\"diff--gita/%.*sb/%.*s---a/%.*s+++b/%.*s\",\nv25,\n*(const char **)(*v23 + 24),\nv22,\n*(const char **)(v23[1] + 24),\nv25,\n*(const char **)(*v23 + 24),\nv22,\n*(const char **)(v23[1] + 24));\nelse\nv25 = snprintf(\nv19,\n0x4014uLL,\n\"diff--gita/%.*sb/%.*sdeletedfilemode%06o---a/%.*s+++/dev/null\",\nv25,\n*(const char **)(*v23 + 24),\nv22,\n*(const char **)(v23[1] + 24),\n*(unsigned __int16 *)(*v23 + 64),\nv25,\n*(const char **)(*v23 + 24));\n}\nelse\n{\nv25 = snprintf(\nv19,\n0x4014uLL,\n\"diff--gita/%.*sb/%.*snewfilemode%06o---/dev/null+++b/%.*s\",\nv25,\n*(const char **)(*v23 + 24),\nv22,\n*(const char **)(v23[1] + 24),\n*(unsigned __int16 *)(v23[1] + 64),\nv22,\n*(const char **)(v23[1] + 24));\n}\nSHA1_Update();\nif ( (unsigned int)sub_46FDE7(*v23) || (unsigned int)sub_46FDE7(v23[1]) )\n{\nsub_4122CD((unsigned __int8 *)*v23);\nSHA1_Update();\nsub_4122CD((unsigned __int8 *)v23[1]);\nSHA1_Update();\n}\nelse\n{\nv18 = 0LL;\nv15[0] = 3LL;\nv15[2] = 0LL;\nsub_4A6B81(v17, v16, sub_4763C0, s, &v18, v15);\n}\n}\n}\nSHA1_Final();\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,v7,v15,v16,v17,v18,v19,s,v21,v22,v23,v24,v25,sub_47643C,sub_475975,sub_472725,sub_46AEE0,sub_476352,sub_46FDE7,sub_4122CD,sub_4A6B81,sub_4763C0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'options', 'a2': 'sha1', 'v7': 'sha1', 'v15': 'xecfg', 'v16': 'mf2', 'v17': 'mf1', 'v18': 'xpp', 'v19': 'buffer', 's': 'data', 'v21': 'ctx', 'v22': 'len2', 'v23': 'p', 'v24': 'q', 'v25': 'len1', 'sub_47643C': 'diff_get_patch_id', 'sub_475975': 'diff_unmodified_pair', 'sub_472725': 'diff_fill_sha1_info', 'sub_46AEE0': 'fill_mmfile', 'sub_476352': 'remove_space', 'sub_46FDE7': 'diff_filespec_is_binary', 'sub_4122CD': 'sha1_to_hex', 'sub_4A6B81': 'xdi_diff_outf', 'sub_4763C0': 'patch_id_consume'}"}
main
234783f2d51a75cc48ab1364545ff6602913da4ea3f80fdfc9b7910ae3c3d04b
analogdevicesinc
linux
NA
int main(int argc, const char **argv) { static const char *UNUSED = "OBJTOOL_NOT_IMPLEMENTED"; /* libsubcmd init */ exec_cmd_init("objtool", UNUSED, UNUSED, UNUSED); pager_init(UNUSED); objtool_run(argc, argv); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4277772, "binary_name": "234783f2d51a75cc48ab1364545ff6602913da4ea3f80fdfc9b7910ae3c3d04b.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 rcx, cs:off_42D7F0"], [6, "mov rdx, cs:off_42D7F0"], [7, "mov rax, cs:off_42D7F0"], [8, "mov rsi, rax"], [9, "mov edi, offset aObjtool"], [10, "call sub_418D3A"], [11, "mov rax, cs:off_42D7F0"], [12, "mov rdi, rax"], [13, "call sub_41A407"], [14, "mov rax, [rbp+var_10]"], [15, "add rax, 8"], [16, "mov [rbp+var_10], rax"], [17, "mov eax, [rbp+var_4]"], [18, "sub eax, 1"], [19, "mov [rbp+var_4], eax"], [20, "lea rdx, [rbp+var_10]"], [21, "lea rax, [rbp+var_4]"], [22, "mov rsi, rdx"], [23, "mov rdi, rax"], [24, "call sub_4144C2"], [25, "mov eax, [rbp+var_4]"], [26, "test eax, eax"], [27, "jz short loc_414686"], [28, "movzx eax, cs:byte_42D920"], [29, "test al, al"], [30, "jz short loc_41468B"], [31, "call sub_4143A7"], [32, "mov rdx, [rbp+var_10]"], [33, "mov eax, [rbp+var_4]"], [34, "mov rsi, rdx"], [35, "mov edi, eax"], [36, "call sub_41457E"]], "data_dep": [[8, 7], [12, 11], [14, 4], [15, 14], [16, 15], [17, 3], [18, 17], [19, 18], [20, 16], [20, 6], [21, 19], [21, 18], [22, 20], [23, 21], [25, 19], [26, 25], [27, 26], [29, 28], [30, 29], [32, 16], [33, 19], [34, 32], [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/234783f2d51a75cc48ab1364545ff6602913da4ea3f80fdfc9b7910ae3c3d04b_234783f2d51a75cc48ab1364545ff6602913da4ea3f80fdfc9b7910ae3c3d04b.jsonl.gz", "strip_func_name": "main", "query": "\n\n\nvoid __fastcall __noreturn main(int a1, char **a2, char **a3)\n{\nchar **v3; // [rsp+0h] [rbp-10h] BYREF\nunsigned int v4; // [rsp+Ch] [rbp-4h] BYREF\n\nsub_418D3A(\"objtool\", off_42D7F0, off_42D7F0, off_42D7F0);\nsub_41A407(off_42D7F0);\nv3 = a2 + 1;\nv4 = a1 - 1;\nsub_4144C2((int *)&v4, &v3);\nif ( v4 )\n{\nif ( !byte_42D920 )\nsub_41457E(v4, v3);\n}\nsub_4143A7();\n}\n\n\n\nQ:[a2,a3,a1,v3,v4,sub_418D3A,sub_41A407,sub_4144C2,sub_41457E,sub_4143A7,]\nAssistant: ", "hints": "[]", "response": "{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'v3': 'argva', 'v4': 'argca', 'sub_418D3A': 'exec_cmd_init', 'sub_41A407': 'pager_init', 'sub_4144C2': 'handle_options', 'sub_41457E': 'handle_internal_command', 'sub_4143A7': 'cmd_usage'}"}
win_init
19729148c2fecc0159cbd120947156a1f58505e3a7e54d3fb0c2e0bd24f28bc1
zephray
Fobu
NA
static void win_init(void) { #if LV_USE_WIN != 0 #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43551B", "function_addr": 4412699, "binary_name": "19729148c2fecc0159cbd120947156a1f58505e3a7e54d3fb0c2e0bd24f28bc1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "nop"], [3, "pop rbp"], [4, "retn"]], "data_dep": [[3, 0]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/19729148c2fecc0159cbd120947156a1f58505e3a7e54d3fb0c2e0bd24f28bc1_19729148c2fecc0159cbd120947156a1f58505e3a7e54d3fb0c2e0bd24f28bc1.jsonl.gz", "strip_func_name": "sub_43551B", "query": "\n\n\nvoid sub_43551B()\n{\n;\n}\n\n\n\nQ:[sub_43551B,]\nAssistant: ", "hints": "[]", "response": "{'sub_43551B': 'win_init'}"}
pjsip_msg_body_clone
a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c
AonCyberLabs
D-Modem
NA
PJ_DEF(pjsip_msg_body*) pjsip_msg_body_clone( pj_pool_t *pool, const pjsip_msg_body *body ) { pjsip_msg_body *new_body; pj_status_t status; new_body = PJ_POOL_ALLOC_T(pool, pjsip_msg_body); PJ_ASSERT_RETURN(new_body, NULL); status = pjsip_msg_body_copy(pool, new_body, body); return (status==PJ_SUCCESS) ? new_body : NULL; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41DF4F", "function_addr": 4317007, "binary_name": "a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.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 esi, 70h "], [7, "mov rdi, rax"], [8, "call sub_4BDE04"], [9, "mov [rbp+var_8], rax"], [10, "cmp [rbp+var_8], 0"], [11, "jnz short loc_41DFA2"], [12, "cmp [rbp+var_8], 0"], [13, "jnz short loc_41DF9B"], [14, "mov ecx, offset aPjsipMsgBodyCl"], [15, "mov edx, 8B0h"], [16, "mov esi, offset aSrcPjsipSipMsg"], [17, "mov edi, offset aNewBody"], [18, "call ___assert_fail"], [19, "mov eax, 0"], [20, "jmp short locret_41DFCD"], [21, "mov rdx, [rbp+var_20]"], [22, "mov rcx, [rbp+var_8]"], [23, "mov rax, [rbp+var_18]"], [24, "mov rsi, rcx"], [25, "mov rdi, rax"], [26, "call sub_41DE89"], [27, "mov [rbp+var_C], eax"], [28, "cmp [rbp+var_C], 0"], [29, "jnz short loc_41DFC8"], [30, "mov rax, [rbp+var_8]"], [31, "jmp short locret_41DFCD"], [32, "mov eax, 0"], [33, "leave"], [34, "retn"]], "data_dep": [[5, 3], [7, 5], [9, 8], [10, 9], [11, 10], [12, 9], [13, 12], [21, 4], [22, 9], [23, 3], [24, 22], [25, 23], [27, 26], [28, 27], [29, 28], [30, 9], [34, 19], [34, 30], [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/a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c_a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.jsonl.gz", "strip_func_name": "sub_41DF4F", "query": "\n\n\n__int64 __fastcall sub_41DF4F(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\n__int64 v3; // [rsp+18h] [rbp-8h]\n\nv3 = sub_4BDE04(a1, 112LL);\nif ( !v3 )\n__assert_fail(\"new_body\", \"../src/pjsip/sip_msg.c\", 0x8B0u, \"pjsip_msg_body_clone\");\nif ( (unsigned int)sub_41DE89(a1, v3, a2) )\nresult = 0LL;\nelse\nresult = v3;\nreturn result;\n}\n\n\n\nQ:[a1,a2,v3,sub_41DF4F,sub_4BDE04,sub_41DE89,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pool', 'a2': 'body', 'v3': 'new_body', 'sub_41DF4F': 'pjsip_msg_body_clone', 'sub_4BDE04': 'pj_pool_alloc', 'sub_41DE89': 'pjsip_msg_body_copy'}"}
tc_sha256_init
268d83b303656ab331dd0d291df49aa6b32316180a99a3e821f8f7c188e03ff3
aws
amazon-freertos
NA
int tc_sha256_init(TCSha256State_t s) { /* input sanity check: */ if (s == (TCSha256State_t) 0) { return TC_CRYPTO_FAIL; } /* * Setting the initial state values. * These values correspond to the first 32 bits of the fractional parts * of the square roots of the first 8 primes: 2, 3, 5, 7, 11, 13, 17 * and 19. */ _set((uint8_t *) s, 0x00, sizeof(*s)); s->iv[0] = 0x6a09e667; s->iv[1] = 0xbb67ae85; s->iv[2] = 0x3c6ef372; s->iv[3] = 0xa54ff53a; s->iv[4] = 0x510e527f; s->iv[5] = 0x9b05688c; s->iv[6] = 0x1f83d9ab; s->iv[7] = 0x5be0cd19; return TC_CRYPTO_SUCCESS; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401D46", "function_addr": 4201798, "binary_name": "268d83b303656ab331dd0d291df49aa6b32316180a99a3e821f8f7c188e03ff3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "cmp [rbp+var_8], 0"], [5, "jnz short loc_401D60"], [6, "mov eax, 0"], [7, "jmp short locret_401DD2"], [8, "mov rax, [rbp+var_8]"], [9, "mov edx, 70h "], [10, "mov esi, 0"], [11, "mov rdi, rax"], [12, "call sub_40263E"], [13, "mov rax, [rbp+var_8]"], [14, "mov dword ptr [rax], 6A09E667h"], [15, "mov rax, [rbp+var_8]"], [16, "mov dword ptr [rax+4], 0BB67AE85h"], [17, "mov rax, [rbp+var_8]"], [18, "mov dword ptr [rax+8], 3C6EF372h"], [19, "mov rax, [rbp+var_8]"], [20, "mov dword ptr [rax+0Ch], 0A54FF53Ah"], [21, "mov rax, [rbp+var_8]"], [22, "mov dword ptr [rax+10h], 510E527Fh"], [23, "mov rax, [rbp+var_8]"], [24, "mov dword ptr [rax+14h], 9B05688Ch"], [25, "mov rax, [rbp+var_8]"], [26, "mov dword ptr [rax+18h], 1F83D9ABh"], [27, "mov rax, [rbp+var_8]"], [28, "mov dword ptr [rax+1Ch], 5BE0CD19h"], [29, "mov eax, 1"], [30, "leave"], [31, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 3], [11, 8], [13, 3], [14, 13], [15, 3], [16, 15], [17, 3], [18, 17], [19, 3], [20, 19], [21, 3], [22, 21], [23, 3], [24, 23], [25, 3], [26, 25], [27, 3], [28, 27], [31, 29], [31, 6]]}
{"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/268d83b303656ab331dd0d291df49aa6b32316180a99a3e821f8f7c188e03ff3_268d83b303656ab331dd0d291df49aa6b32316180a99a3e821f8f7c188e03ff3.jsonl.gz", "strip_func_name": "sub_401D46", "query": "\n\n\n__int64 __fastcall sub_401D46(_DWORD *a1)\n{\nif ( !a1 )\nreturn 0LL;\nsub_40263E(a1, 0LL, 112LL);\n*a1 = 1779033703;\na1[1] = -1150833019;\na1[2] = 1013904242;\na1[3] = -1521486534;\na1[4] = 1359893119;\na1[5] = -1694144372;\na1[6] = 528734635;\na1[7] = 1541459225;\nreturn 1LL;\n}\n\n\n\nQ:[a1,sub_401D46,sub_40263E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 's', 'sub_401D46': 'tc_sha256_init', 'sub_40263E': '_set'}"}
UG_WindowGetBackColor
3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107
digitalbitbox
bitbox02-firmware
NA
UG_COLOR UG_WindowGetBackColor( UG_WINDOW* wnd ) { UG_COLOR c = C_BLACK; if ( (wnd != NULL) && (wnd->state & WND_STATE_VALID) ) { c = wnd->bc; } return c; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4061BE", "function_addr": 4219326, "binary_name": "3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_4], 0"], [4, "cmp [rbp+var_18], 0"], [5, "jz short loc_4061F0"], [6, "mov rax, [rbp+var_18]"], [7, "movzx eax, byte ptr [rax+10h]"], [8, "movzx eax, al"], [9, "and eax, 2"], [10, "test eax, eax"], [11, "jz short loc_4061F0"], [12, "mov rax, [rbp+var_18]"], [13, "mov eax, [rax+18h]"], [14, "mov [rbp+var_4], eax"], [15, "mov eax, [rbp+var_4]"], [16, "pop rbp"], [17, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 2], [13, 12], [14, 13], [15, 14], [15, 3], [16, 0], [17, 15]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107_3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.jsonl.gz", "strip_func_name": "sub_4061BE", "query": "\n\n\n__int64 __fastcall sub_4061BE(__int64 a1)\n{\nunsigned int v2; // [rsp+14h] [rbp-4h]\n\nv2 = 0;\nif ( a1 && (*(_BYTE *)(a1 + 16) & 2) != 0 )\nv2 = *(_DWORD *)(a1 + 24);\nreturn v2;\n}\n\n\n\nQ:[a1,v2,sub_4061BE,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'wnd', 'v2': 'c', 'sub_4061BE': 'UG_WindowGetBackColor'}"}
mbedtls_x509_serial_gets
ce297ee2eb040ae897b55138df396bcca9b0e280a22ead4e0aa5cba0644de078
dazjo
nxtool
NA
int mbedtls_x509_serial_gets( char *buf, size_t size, const mbedtls_x509_buf *serial ) { int ret; size_t i, n, nr; char *p; p = buf; n = size; nr = ( serial->len <= 32 ) ? serial->len : 28; for( i = 0; i < nr; i++ ) { if( i == 0 && nr > 1 && serial->p[i] == 0x0 ) continue; ret = mbedtls_snprintf( p, n, "%02X%s", serial->p[i], ( i < nr - 1 ) ? ":" : "" ); MBEDTLS_X509_SAFE_SNPRINTF; } if( nr != serial->len ) { ret = mbedtls_snprintf( p, n, "...." ); MBEDTLS_X509_SAFE_SNPRINTF; } return( (int) ( size - n ) ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44F355", "function_addr": 4518741, "binary_name": "ce297ee2eb040ae897b55138df396bcca9b0e280a22ead4e0aa5cba0644de078.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 rax, [rbp+var_38]"], [7, "mov [rbp+s], rax"], [8, "mov rax, [rbp+var_40]"], [9, "mov [rbp+maxlen], rax"], [10, "mov rax, [rbp+var_48]"], [11, "mov rax, [rax+8]"], [12, "cmp rax, 20h "], [13, "ja short loc_44F391"], [14, "mov rax, [rbp+var_48]"], [15, "mov rax, [rax+8]"], [16, "jmp short loc_44F396"], [17, "mov eax, 1Ch"], [18, "mov [rbp+var_20], rax"], [19, "mov [rbp+var_8], 0"], [20, "jmp loc_44F455"], [21, "cmp [rbp+var_8], 0"], [22, "jnz short loc_44F3CF"], [23, "cmp [rbp+var_20], 1"], [24, "jbe short loc_44F3CF"], [25, "mov rax, [rbp+var_48]"], [26, "mov rdx, [rax+10h]"], [27, "mov rax, [rbp+var_8]"], [28, "add rax, rdx"], [29, "movzx eax, byte ptr [rax]"], [30, "test al, al"], [31, "jz loc_44F44F"], [32, "mov rax, [rbp+var_20]"], [33, "sub rax, 1"], [34, "cmp [rbp+var_8], rax"], [35, "jnb short loc_44F3E4"], [36, "mov ecx, offset asc_4A042A"], [37, "jmp short loc_44F3E9"], [38, "mov ecx, offset unk_4A042C"], [39, "mov rax, [rbp+var_48]"], [40, "mov rdx, [rax+10h]"], [41, "mov rax, [rbp+var_8]"], [42, "add rax, rdx"], [43, "movzx eax, byte ptr [rax]"], [44, "movzx edx, al"], [45, "mov rsi, [rbp+maxlen]"], [46, "mov rax, [rbp+s]"], [47, "mov r8, rcx"], [48, "mov ecx, edx"], [49, "mov edx, offset a02xS"], [50, "mov rdi, rax"], [51, "mov eax, 0"], [52, "call _snprintf"], [53, "mov [rbp+var_24], eax"], [54, "cmp [rbp+var_24], 0"], [55, "js short loc_44F431"], [56, "mov eax, [rbp+var_24]"], [57, "cdqe"], [58, "cmp [rbp+maxlen], rax"], [59, "ja short loc_44F43B"], [60, "mov eax, 0FFFFD680h"], [61, "jmp locret_44F4CB"], [62, "mov eax, [rbp+var_24]"], [63, "cdqe"], [64, "sub [rbp+maxlen], rax"], [65, "mov eax, [rbp+var_24]"], [66, "cdqe"], [67, "add [rbp+s], rax"], [68, "jmp short loc_44F450"], [69, "nop"], [70, "add [rbp+var_8], 1"], [71, "mov rax, [rbp+var_8]"], [72, "cmp rax, [rbp+var_20]"], [73, "jb loc_44F3A7"], [74, "mov rax, [rbp+var_48]"], [75, "mov rax, [rax+8]"], [76, "cmp [rbp+var_20], rax"], [77, "jz short loc_44F4BB"], [78, "mov rcx, [rbp+maxlen]"], [79, "mov rax, [rbp+s]"], [80, "mov edx, offset asc_4A0434"], [81, "mov rsi, rcx"], [82, "mov rdi, rax"], [83, "mov eax, 0"], [84, "call _snprintf"], [85, "mov [rbp+var_24], eax"], [86, "cmp [rbp+var_24], 0"], [87, "js short loc_44F4A2"], [88, "mov eax, [rbp+var_24]"], [89, "cdqe"], [90, "cmp [rbp+maxlen], rax"], [91, "ja short loc_44F4A9"], [92, "mov eax, 0FFFFD680h"], [93, "jmp short locret_44F4CB"], [94, "mov eax, [rbp+var_24]"], [95, "cdqe"], [96, "sub [rbp+maxlen], rax"], [97, "mov eax, [rbp+var_24]"], [98, "cdqe"], [99, "add [rbp+s], rax"], [100, "mov rax, [rbp+var_40]"], [101, "mov edx, eax"], [102, "mov rax, [rbp+maxlen]"], [103, "mov ecx, eax"], [104, "mov eax, edx"], [105, "sub eax, ecx"], [106, "leave"], [107, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 4], [9, 8], [10, 5], [11, 10], [12, 11], [13, 12], [14, 5], [15, 14], [18, 17], [18, 15], [21, 70], [21, 19], [22, 21], [23, 18], [24, 23], [25, 5], [26, 25], [27, 70], [27, 19], [28, 27], [28, 26], [29, 28], [30, 29], [31, 30], [32, 18], [33, 32], [34, 19], [34, 70], [34, 33], [35, 34], [39, 5], [40, 39], [41, 19], [41, 70], [42, 41], [42, 40], [43, 42], [44, 43], [45, 64], [45, 9], [46, 67], [46, 7], [47, 36], [47, 38], [48, 44], [50, 46], [53, 52], [54, 53], [55, 54], [56, 53], [58, 56], [58, 64], [58, 9], [59, 58], [62, 53], [64, 62], [64, 64], [64, 9], [65, 53], [67, 65], [67, 67], [67, 7], [70, 70], [70, 19], [71, 19], [71, 70], [72, 18], [72, 71], [73, 72], [74, 5], [75, 74], [76, 18], [76, 75], [77, 76], [78, 64], [78, 9], [79, 67], [79, 7], [81, 78], [82, 79], [85, 84], [86, 85], [87, 86], [88, 85], [90, 88], [90, 64], [90, 9], [91, 90], [94, 85], [96, 94], [96, 64], [96, 9], [97, 85], [99, 97], [99, 67], [99, 7], [100, 4], [101, 100], [102, 64], [102, 9], [102, 96], [103, 102], [104, 101], [105, 104], [105, 103], [107, 60], [107, 92], [107, 105]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ce297ee2eb040ae897b55138df396bcca9b0e280a22ead4e0aa5cba0644de078_ce297ee2eb040ae897b55138df396bcca9b0e280a22ead4e0aa5cba0644de078.jsonl.gz", "strip_func_name": "sub_44F355", "query": "\n\n\n__int64 __fastcall sub_44F355(char *a1, unsigned __int64 a2, __int64 a3)\n{\n__int64 v3; // rax\nconst char *v4; // rcx\nint v7; // [rsp+2Ch] [rbp-24h]\nint v8; // [rsp+2Ch] [rbp-24h]\nunsigned __int64 v9; // [rsp+30h] [rbp-20h]\nunsigned __int64 maxlen; // [rsp+40h] [rbp-10h]\nunsigned __int64 i; // [rsp+48h] [rbp-8h]\n\nmaxlen = a2;\nif ( *(_QWORD *)(a3 + 8) > 0x20uLL )\nv3 = 28LL;\nelse\nv3 = *(_QWORD *)(a3 + 8);\nv9 = v3;\nfor ( i = 0LL; i < v9; ++i )\n{\nif ( i || v9 <= 1 || **(_BYTE **)(a3 + 16) )\n{\nif ( i >= v9 - 1 )\nv4 = (const char *)&unk_4A042C;\nelse\nv4 = \":\";\nv7 = snprintf(a1, maxlen, \"%02X%s\", *(unsigned __int8 *)(*(_QWORD *)(a3 + 16) + i), v4);\nif ( v7 < 0 || maxlen <= v7 )\nreturn 4294956672LL;\nmaxlen -= v7;\na1 += v7;\n}\n}\nif ( v9 != *(_QWORD *)(a3 + 8) )\n{\nv8 = snprintf(a1, maxlen, \"....\");\nif ( v8 < 0 || maxlen <= v8 )\nreturn 4294956672LL;\nLODWORD(maxlen) = maxlen - v8;\n}\nreturn (unsigned int)(a2 - maxlen);\n}\n\n\n\nQ:[a3,a1,a2,v9,maxlen,sub_44F355,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'serial', 'a1': 'buf', 'a2': 'size', 'v9': 'nr', 'maxlen': 'n', 'sub_44F355': 'mbedtls_x509_serial_gets'}"}
pause_body_cb
50b379176fa4dec74d3a3e8def2246ab88db6064222a6699f6a4cb63bcefbc23
maximkulkin
esp32-homekit-camera
NA
int pause_body_cb (http_parser *p, const char *buf, size_t len) { http_parser_pause(p, 1); *current_pause_parser = settings_dontcall; return body_cb(p, buf, len); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408376", "function_addr": 4227958, "binary_name": "50b379176fa4dec74d3a3e8def2246ab88db6064222a6699f6a4cb63bcefbc23.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 28h"], [4, "mov [rbp+var_18], rdi"], [5, "mov [rbp+var_20], rsi"], [6, "mov [rbp+var_28], rdx"], [7, "mov rax, [rbp+var_18]"], [8, "mov esi, 1"], [9, "mov rdi, rax"], [10, "call sub_407383"], [11, "mov rax, cs:qword_8CBBE0"], [12, "mov rcx, cs:off_87B440"], [13, "mov rbx, cs:off_87B448"], [14, "mov [rax], rcx"], [15, "mov [rax+8], rbx"], [16, "mov rcx, cs:off_87B450"], [17, "mov rbx, cs:off_87B458"], [18, "mov [rax+10h], rcx"], [19, "mov [rax+18h], rbx"], [20, "mov rcx, cs:off_87B460"], [21, "mov rbx, cs:off_87B468"], [22, "mov [rax+20h], rcx"], [23, "mov [rax+28h], rbx"], [24, "mov rcx, cs:off_87B470"], [25, "mov rbx, cs:off_87B478"], [26, "mov [rax+30h], rcx"], [27, "mov [rax+38h], rbx"], [28, "mov rcx, cs:off_87B480"], [29, "mov rbx, cs:off_87B488"], [30, "mov [rax+40h], rcx"], [31, "mov [rax+48h], rbx"], [32, "mov rdx, [rbp+var_28]"], [33, "mov rcx, [rbp+var_20]"], [34, "mov rax, [rbp+var_18]"], [35, "mov rsi, rcx"], [36, "mov rdi, rax"], [37, "call sub_407874"], [38, "mov rbx, [rbp+var_8]"], [39, "leave"], [40, "retn"]], "data_dep": [[7, 4], [9, 7], [14, 12], [14, 11], [15, 11], [15, 13], [18, 16], [18, 11], [19, 11], [19, 17], [22, 11], [22, 20], [23, 21], [23, 11], [26, 24], [26, 11], [27, 25], [27, 11], [30, 11], [30, 28], [31, 11], [31, 29], [32, 6], [33, 5], [34, 4], [35, 33], [36, 34], [40, 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/50b379176fa4dec74d3a3e8def2246ab88db6064222a6699f6a4cb63bcefbc23_50b379176fa4dec74d3a3e8def2246ab88db6064222a6699f6a4cb63bcefbc23.jsonl.gz", "strip_func_name": "sub_408376", "query": "\n\n\n__int64 __fastcall sub_408376(_DWORD *a1, const void *a2, size_t a3)\n{\n__int64 v3; // rax\nvoid (__fastcall __noreturn *v4)(); // rbx\nvoid (__fastcall __noreturn *v5)(); // rbx\nvoid (__fastcall __noreturn *v6)(); // rbx\nvoid (__fastcall __noreturn *v7)(); // rbx\nvoid (__fastcall __noreturn *v8)(); // rbx\n\nsub_407383((__int64)a1, 1);\nv3 = qword_8CBBE0;\nv4 = off_87B448[0];\n*(void (__fastcall __noreturn **)())qword_8CBBE0 = off_87B440[0];\n*(_QWORD *)(v3 + 8) = v4;\nv5 = off_87B458[0];\n*(void (__fastcall __noreturn **)())(v3 + 16) = off_87B450[0];\n*(_QWORD *)(v3 + 24) = v5;\nv6 = off_87B468[0];\n*(void (__fastcall __noreturn **)())(v3 + 32) = off_87B460[0];\n*(_QWORD *)(v3 + 40) = v6;\nv7 = off_87B478[0];\n*(void (__fastcall __noreturn **)())(v3 + 48) = off_87B470[0];\n*(_QWORD *)(v3 + 56) = v7;\nv8 = off_87B488;\n*(void (__fastcall __noreturn **)())(v3 + 64) = off_87B480[0];\n*(_QWORD *)(v3 + 72) = v8;\nreturn sub_407874(a1, a2, a3);\n}\n\n\n\nQ:[a3,a1,a2,sub_408376,sub_407383,sub_407874,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'len', 'a1': 'p', 'a2': 'buf', 'sub_408376': 'pause_body_cb', 'sub_407383': 'http_parser_pause', 'sub_407874': 'body_cb'}"}
BotImport_DebugLineShow
96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7
zturtleman
lilium-voyager
NA
static void BotImport_DebugLineShow(int line, vec3_t start, vec3_t end, int color) { vec3_t points[4], dir, cross, up = {0, 0, 1}; float dot; VectorCopy(start, points[0]); VectorCopy(start, points[1]); //points[1][2] -= 2; VectorCopy(end, points[2]); //points[2][2] -= 2; VectorCopy(end, points[3]); VectorSubtract(end, start, dir); VectorNormalize(dir); dot = DotProduct(dir, up); if (dot > 0.99 || dot < -0.99) VectorSet(cross, 1, 0, 0); else CrossProduct(dir, up, cross); VectorNormalize(cross); VectorMA(points[0], 2, cross, points[0]); VectorMA(points[1], -2, cross, points[1]); VectorMA(points[2], -2, cross, points[2]); VectorMA(points[3], 2, cross, points[3]); BotImport_DebugPolygonShow(line, color, 4, points); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4044AE", "function_addr": 4211886, "binary_name": "96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 90h"], [3, "mov [rbp+var_74], edi"], [4, "mov [rbp+var_80], rsi"], [5, "mov [rbp+var_88], rdx"], [6, "mov [rbp+var_78], ecx"], [7, "pxor xmm0, xmm0"], [8, "movss [rbp+var_64], xmm0"], [9, "pxor xmm0, xmm0"], [10, "movss [rbp+var_60], xmm0"], [11, "movss xmm0, cs:dword_4A2330"], [12, "movss [rbp+var_5C], xmm0"], [13, "mov rax, [rbp+var_80]"], [14, "movss xmm0, dword ptr [rax]"], [15, "movss [rbp+var_40], xmm0"], [16, "mov rax, [rbp+var_80]"], [17, "movss xmm0, dword ptr [rax+4]"], [18, "movss [rbp+var_3C], xmm0"], [19, "mov rax, [rbp+var_80]"], [20, "movss xmm0, dword ptr [rax+8]"], [21, "movss [rbp+var_38], xmm0"], [22, "mov rax, [rbp+var_80]"], [23, "movss xmm0, dword ptr [rax]"], [24, "movss [rbp+var_34], xmm0"], [25, "mov rax, [rbp+var_80]"], [26, "movss xmm0, dword ptr [rax+4]"], [27, "movss [rbp+var_30], xmm0"], [28, "mov rax, [rbp+var_80]"], [29, "movss xmm0, dword ptr [rax+8]"], [30, "movss [rbp+var_2C], xmm0"], [31, "mov rax, [rbp+var_88]"], [32, "movss xmm0, dword ptr [rax]"], [33, "movss [rbp+var_28], xmm0"], [34, "mov rax, [rbp+var_88]"], [35, "movss xmm0, dword ptr [rax+4]"], [36, "movss [rbp+var_24], xmm0"], [37, "mov rax, [rbp+var_88]"], [38, "movss xmm0, dword ptr [rax+8]"], [39, "movss [rbp+var_20], xmm0"], [40, "mov rax, [rbp+var_88]"], [41, "movss xmm0, dword ptr [rax]"], [42, "movss [rbp+var_1C], xmm0"], [43, "mov rax, [rbp+var_88]"], [44, "movss xmm0, dword ptr [rax+4]"], [45, "movss [rbp+var_18], xmm0"], [46, "mov rax, [rbp+var_88]"], [47, "movss xmm0, dword ptr [rax+8]"], [48, "movss [rbp+var_14], xmm0"], [49, "mov rax, [rbp+var_88]"], [50, "movss xmm0, dword ptr [rax]"], [51, "mov rax, [rbp+var_80]"], [52, "movss xmm1, dword ptr [rax]"], [53, "subss xmm0, xmm1"], [54, "movss [rbp+var_4C], xmm0"], [55, "mov rax, [rbp+var_88]"], [56, "add rax, 4"], [57, "movss xmm0, dword ptr [rax]"], [58, "mov rax, [rbp+var_80]"], [59, "add rax, 4"], [60, "movss xmm1, dword ptr [rax]"], [61, "subss xmm0, xmm1"], [62, "movss [rbp+var_48], xmm0"], [63, "mov rax, [rbp+var_88]"], [64, "add rax, 8"], [65, "movss xmm0, dword ptr [rax]"], [66, "mov rax, [rbp+var_80]"], [67, "add rax, 8"], [68, "movss xmm1, dword ptr [rax]"], [69, "subss xmm0, xmm1"], [70, "movss [rbp+var_44], xmm0"], [71, "lea rax, [rbp+var_4C]"], [72, "mov rdi, rax"], [73, "call sub_443EA8"], [74, "movss xmm1, [rbp+var_4C]"], [75, "movss xmm0, [rbp+var_64]"], [76, "mulss xmm1, xmm0"], [77, "movss xmm2, [rbp+var_48]"], [78, "movss xmm0, [rbp+var_60]"], [79, "mulss xmm0, xmm2"], [80, "addss xmm1, xmm0"], [81, "movss xmm2, [rbp+var_44]"], [82, "movss xmm0, [rbp+var_5C]"], [83, "mulss xmm0, xmm2"], [84, "addss xmm0, xmm1"], [85, "movss [rbp+var_4], xmm0"], [86, "pxor xmm0, xmm0"], [87, "cvtss2sd xmm0, [rbp+var_4]"], [88, "comisd xmm0, cs:qword_4A2338"], [89, "ja short loc_404670"], [90, "pxor xmm1, xmm1"], [91, "cvtss2sd xmm1, [rbp+var_4]"], [92, "movsd xmm0, cs:qword_4A2340"], [93, "comisd xmm0, xmm1"], [94, "jbe short loc_404691"], [95, "movss xmm0, cs:dword_4A2330"], [96, "movss [rbp+var_58], xmm0"], [97, "pxor xmm0, xmm0"], [98, "movss [rbp+var_54], xmm0"], [99, "pxor xmm0, xmm0"], [100, "movss [rbp+var_50], xmm0"], [101, "jmp short loc_4046A8"], [102, "lea rdx, [rbp+var_58]"], [103, "lea rcx, [rbp+var_64]"], [104, "lea rax, [rbp+var_4C]"], [105, "mov rsi, rcx"], [106, "mov rdi, rax"], [107, "call sub_4038D2"], [108, "lea rax, [rbp+var_58]"], [109, "mov rdi, rax"], [110, "call sub_443EA8"], [111, "movss xmm1, [rbp+var_40]"], [112, "movss xmm0, [rbp+var_58]"], [113, "addss xmm0, xmm0"], [114, "addss xmm0, xmm1"], [115, "movss [rbp+var_40], xmm0"], [116, "movss xmm1, [rbp+var_3C]"], [117, "movss xmm0, [rbp+var_54]"], [118, "addss xmm0, xmm0"], [119, "addss xmm0, xmm1"], [120, "movss [rbp+var_3C], xmm0"], [121, "movss xmm1, [rbp+var_38]"], [122, "movss xmm0, [rbp+var_50]"], [123, "addss xmm0, xmm0"], [124, "addss xmm0, xmm1"], [125, "movss [rbp+var_38], xmm0"], [126, "movss xmm1, [rbp+var_34]"], [127, "movss xmm2, [rbp+var_58]"], [128, "movss xmm0, cs:dword_4A2348"], [129, "mulss xmm0, xmm2"], [130, "addss xmm0, xmm1"], [131, "movss [rbp+var_34], xmm0"], [132, "movss xmm1, [rbp+var_30]"], [133, "movss xmm2, [rbp+var_54]"], [134, "movss xmm0, cs:dword_4A2348"], [135, "mulss xmm0, xmm2"], [136, "addss xmm0, xmm1"], [137, "movss [rbp+var_30], xmm0"], [138, "movss xmm1, [rbp+var_2C]"], [139, "movss xmm2, [rbp+var_50]"], [140, "movss xmm0, cs:dword_4A2348"], [141, "mulss xmm0, xmm2"], [142, "addss xmm0, xmm1"], [143, "movss [rbp+var_2C], xmm0"], [144, "movss xmm1, [rbp+var_28]"], [145, "movss xmm2, [rbp+var_58]"], [146, "movss xmm0, cs:dword_4A2348"], [147, "mulss xmm0, xmm2"], [148, "addss xmm0, xmm1"], [149, "movss [rbp+var_28], xmm0"], [150, "movss xmm1, [rbp+var_24]"], [151, "movss xmm2, [rbp+var_54]"], [152, "movss xmm0, cs:dword_4A2348"], [153, "mulss xmm0, xmm2"], [154, "addss xmm0, xmm1"], [155, "movss [rbp+var_24], xmm0"], [156, "movss xmm1, [rbp+var_20]"], [157, "movss xmm2, [rbp+var_50]"], [158, "movss xmm0, cs:dword_4A2348"], [159, "mulss xmm0, xmm2"], [160, "addss xmm0, xmm1"], [161, "movss [rbp+var_20], xmm0"], [162, "movss xmm1, [rbp+var_1C]"], [163, "movss xmm0, [rbp+var_58]"], [164, "addss xmm0, xmm0"], [165, "addss xmm0, xmm1"], [166, "movss [rbp+var_1C], xmm0"], [167, "movss xmm1, [rbp+var_18]"], [168, "movss xmm0, [rbp+var_54]"], [169, "addss xmm0, xmm0"], [170, "addss xmm0, xmm1"], [171, "movss [rbp+var_18], xmm0"], [172, "movss xmm1, [rbp+var_14]"], [173, "movss xmm0, [rbp+var_50]"], [174, "addss xmm0, xmm0"], [175, "addss xmm0, xmm1"], [176, "movss [rbp+var_14], xmm0"], [177, "lea rdx, [rbp+var_40]"], [178, "mov esi, [rbp+var_78]"], [179, "mov eax, [rbp+var_74]"], [180, "mov rcx, rdx"], [181, "mov edx, 4"], [182, "mov edi, eax"], [183, "call sub_4043B7"], [184, "nop"], [185, "leave"], [186, "retn"]], "data_dep": [[8, 7], [10, 9], [12, 11], [13, 4], [14, 13], [15, 14], [16, 4], [17, 16], [18, 17], [19, 4], [20, 19], [21, 20], [22, 4], [23, 22], [24, 23], [25, 4], [26, 25], [27, 26], [28, 4], [29, 28], [30, 29], [31, 5], [32, 31], [33, 32], [34, 5], [35, 34], [36, 35], [37, 5], [38, 37], [39, 38], [40, 5], [41, 40], [42, 41], [43, 5], [44, 43], [45, 44], [46, 5], [47, 46], [48, 47], [49, 5], [50, 49], [51, 4], [52, 51], [53, 50], [53, 52], [54, 53], [55, 5], [56, 55], [57, 56], [58, 4], [59, 58], [60, 59], [61, 60], [61, 57], [62, 61], [63, 5], [64, 63], [65, 64], [66, 4], [67, 66], [68, 67], [69, 65], [69, 68], [70, 69], [71, 67], [71, 54], [72, 71], [74, 54], [75, 8], [76, 74], [76, 75], [77, 62], [78, 10], [79, 78], [79, 77], [80, 76], [80, 79], [81, 70], [82, 12], [83, 82], [83, 81], [84, 83], [84, 80], [85, 84], [87, 86], [87, 85], [88, 87], [89, 67], [91, 90], [91, 85], [93, 92], [93, 91], [94, 67], [96, 95], [98, 97], [100, 99], [103, 8], [104, 73], [104, 54], [105, 103], [106, 104], [108, 107], [108, 96], [108, 73], [109, 108], [111, 15], [112, 96], [113, 112], [114, 111], [114, 113], [115, 114], [116, 18], [117, 98], [118, 117], [119, 116], [119, 118], [120, 119], [121, 21], [122, 100], [123, 122], [124, 121], [124, 123], [125, 124], [126, 24], [127, 96], [129, 128], [129, 127], [130, 126], [130, 129], [131, 130], [132, 27], [133, 98], [135, 133], [135, 134], [136, 135], [136, 132], [137, 136], [138, 30], [139, 100], [141, 140], [141, 139], [142, 141], [142, 138], [143, 142], [144, 33], [145, 96], [147, 146], [147, 145], [148, 147], [148, 144], [149, 148], [150, 36], [151, 98], [153, 152], [153, 151], [154, 153], [154, 150], [155, 154], [156, 39], [157, 100], [159, 157], [159, 158], [160, 159], [160, 156], [161, 160], [162, 42], [163, 96], [164, 163], [165, 162], [165, 164], [166, 165], [167, 45], [168, 98], [169, 168], [170, 169], [170, 167], [171, 170], [172, 48], [173, 100], [174, 173], [175, 172], [175, 174], [176, 175], [177, 102], [177, 115], [178, 6], [179, 3], [180, 177], [182, 179], [186, 183]]}
{"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_4044AE", "query": "\n\n\nvoid *__fastcall sub_4044AE(int a1, int *a2, int *a3, int a4)\n{\nint v6[3]; // [rsp+2Ch] [rbp-64h] BYREF\nfloat v7; // [rsp+38h] [rbp-58h] BYREF\nfloat v8; // [rsp+3Ch] [rbp-54h]\nfloat v9; // [rsp+40h] [rbp-50h]\nfloat v10; // [rsp+44h] [rbp-4Ch] BYREF\nfloat v11; // [rsp+48h] [rbp-48h]\nfloat v12; // [rsp+4Ch] [rbp-44h]\nint v13; // [rsp+50h] [rbp-40h] BYREF\nfloat v14; // [rsp+54h] [rbp-3Ch]\nfloat v15; // [rsp+58h] [rbp-38h]\nint v16; // [rsp+5Ch] [rbp-34h]\nfloat v17; // [rsp+60h] [rbp-30h]\nfloat v18; // [rsp+64h] [rbp-2Ch]\nint v19; // [rsp+68h] [rbp-28h]\nfloat v20; // [rsp+6Ch] [rbp-24h]\nfloat v21; // [rsp+70h] [rbp-20h]\nint v22; // [rsp+74h] [rbp-1Ch]\nfloat v23; // [rsp+78h] [rbp-18h]\nfloat v24; // [rsp+7Ch] [rbp-14h]\nfloat v25; // [rsp+8Ch] [rbp-4h]\n\nv6[0] = 0;\nv6[1] = 0;\nv6[2] = 1065353216;\nv13 = *a2;\nv14 = *((float *)a2 + 1);\nv15 = *((float *)a2 + 2);\nv16 = *a2;\nv17 = *((float *)a2 + 1);\nv18 = *((float *)a2 + 2);\nv19 = *a3;\nv20 = *((float *)a3 + 1);\nv21 = *((float *)a3 + 2);\nv22 = *a3;\nv23 = *((float *)a3 + 1);\nv24 = *((float *)a3 + 2);\nv10 = *(float *)a3 - *(float *)a2;\nv11 = *((float *)a3 + 1) - *((float *)a2 + 1);\nv12 = *((float *)a3 + 2) - *((float *)a2 + 2);\nsub_443EA8(&v10);\nv25 = (float)(1.0 * v12) + (float)((float)(v10 * 0.0) + (float)(0.0 * v11));\nif ( v25 <= 0.99 && v25 >= -0.99 )\n{\nsub_4038D2(&v10, (float *)v6, &v7);\n}\nelse\n{\nv7 = 1.0;\nv8 = 0.0;\nv9 = 0.0;\n}\nsub_443EA8(&v7);\n*(float *)&v13 = (float)(v7 + v7) + *(float *)&v13;\nv14 = (float)(v8 + v8) + v14;\nv15 = (float)(v9 + v9) + v15;\n*(float *)&v16 = (float)(-2.0 * v7) + *(float *)&v16;\nv17 = (float)(-2.0 * v8) + v17;\nv18 = (float)(-2.0 * v9) + v18;\n*(float *)&v19 = (float)(-2.0 * v7) + *(float *)&v19;\nv20 = (float)(-2.0 * v8) + v20;\nv21 = (float)(-2.0 * v9) + v21;\n*(float *)&v22 = (float)(v7 + v7) + *(float *)&v22;\nv23 = (float)(v8 + v8) + v23;\nv24 = (float)(v9 + v9) + v24;\nreturn sub_4043B7(a1, a4, 4, &v13);\n}\n\n\n\nQ:[a3,a4,a1,a2,v6,v7,v10,v13,v25,sub_4044AE,sub_443EA8,sub_4038D2,sub_4043B7,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'end', 'a4': 'color', 'a1': 'line', 'a2': 'start', 'v6': 'up', 'v7': 'cross', 'v10': 'dir', 'v13': 'points', 'v25': 'dot', 'sub_4044AE': 'BotImport_DebugLineShow', 'sub_443EA8': 'VectorNormalize', 'sub_4038D2': 'CrossProduct', 'sub_4043B7': 'BotImport_DebugPolygonShow'}"}
_tape_completion_dispatch
9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23
open-simh
simh
NA
static void _tape_completion_dispatch (UNIT *uptr) { struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx; TAPE_PCALLBACK callback = ctx->callback; sim_debug_unit (ctx->dbit, uptr, "_tape_completion_dispatch(unit=%d, top=%d, callback=%p)\n", (int)(uptr-ctx->dptr->units), ctx->io_top, ctx->callback); if (ctx->io_top != TOP_DONE) abort(); /* horribly wrong, stop */ if (ctx->asynch_io) pthread_mutex_lock (&ctx->io_lock); if (ctx->callback) { ctx->callback = NULL; if (ctx->asynch_io) pthread_mutex_unlock (&ctx->io_lock); callback (uptr, ctx->io_status); } else { if (ctx->asynch_io) pthread_mutex_unlock (&ctx->io_lock); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_493028", "function_addr": 4796456, "binary_name": "9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23.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+80h]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_8]"], [8, "mov rax, [rax+138h]"], [9, "mov [rbp+var_10], rax"], [10, "mov rax, cs:qword_537120"], [11, "test rax, rax"], [12, "jz loc_49310A"], [13, "cmp [rbp+var_18], 0"], [14, "jz loc_49310A"], [15, "mov rax, [rbp+var_18]"], [16, "mov rax, [rax+0C0h]"], [17, "test rax, rax"], [18, "jz loc_49310A"], [19, "mov rax, [rbp+var_18]"], [20, "mov edx, [rax+0C8h]"], [21, "mov rax, [rbp+var_18]"], [22, "mov rax, [rax+0C0h]"], [23, "mov eax, [rax+74h]"], [24, "or edx, eax"], [25, "mov rax, [rbp+var_8]"], [26, "mov eax, [rax+8]"], [27, "and eax, edx"], [28, "test eax, eax"], [29, "jz short loc_49310A"], [30, "mov rax, [rbp+var_8]"], [31, "mov rcx, [rax+138h]"], [32, "mov rax, [rbp+var_8]"], [33, "mov edx, [rax+100h]"], [34, "mov rax, [rbp+var_8]"], [35, "mov rax, [rax]"], [36, "mov rsi, [rax+8]"], [37, "mov rax, [rbp+var_18]"], [38, "sub rax, rsi"], [39, "sar rax, 3"], [40, "mov rsi, rax"], [41, "mov rax, 0AF8AF8AF8AF8AF8Bh"], [42, "imul rax, rsi"], [43, "mov edi, eax"], [44, "mov rax, [rbp+var_8]"], [45, "mov eax, [rax+8]"], [46, "mov rsi, [rbp+var_18]"], [47, "mov r9, rcx"], [48, "mov r8d, edx"], [49, "mov ecx, edi"], [50, "mov edx, offset aTapeCompletion"], [51, "mov edi, eax"], [52, "mov eax, 0"], [53, "call sub_455FDF"], [54, "mov rax, [rbp+var_8]"], [55, "mov eax, [rax+100h]"], [56, "test eax, eax"], [57, "jz short loc_49311D"], [58, "call _abort"], [59, "mov rax, [rbp+var_8]"], [60, "mov eax, [rax+10h]"], [61, "test eax, eax"], [62, "jz short loc_493138"], [63, "mov rax, [rbp+var_8]"], [64, "add rax, 48h "], [65, "mov rdi, rax"], [66, "call _pthread_mutex_lock"], [67, "mov rax, [rbp+var_8]"], [68, "mov rax, [rax+138h]"], [69, "test rax, rax"], [70, "jz short loc_49318D"], [71, "mov rax, [rbp+var_8]"], [72, "mov qword ptr [rax+138h], 0"], [73, "mov rax, [rbp+var_8]"], [74, "mov eax, [rax+10h]"], [75, "test eax, eax"], [76, "jz short loc_493172"], [77, "mov rax, [rbp+var_8]"], [78, "add rax, 48h "], [79, "mov rdi, rax"], [80, "call _pthread_mutex_unlock"], [81, "mov rax, [rbp+var_8]"], [82, "mov edx, [rax+140h]"], [83, "mov rax, [rbp+var_18]"], [84, "mov rcx, [rbp+var_10]"], [85, "mov esi, edx"], [86, "mov rdi, rax"], [87, "call rcx"], [88, "jmp short loc_4931A8"], [89, "mov rax, [rbp+var_8]"], [90, "mov eax, [rax+10h]"], [91, "test eax, eax"], [92, "jz short loc_4931A8"], [93, "mov rax, [rbp+var_8]"], [94, "add rax, 48h "], [95, "mov rdi, rax"], [96, "call _pthread_mutex_unlock"], [97, "nop"], [98, "leave"], [99, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [11, 10], [12, 11], [13, 3], [14, 13], [15, 3], [16, 15], [17, 16], [18, 17], [19, 3], [20, 19], [21, 3], [22, 21], [23, 22], [24, 23], [24, 20], [25, 6], [26, 25], [27, 24], [27, 26], [28, 27], [29, 28], [30, 6], [31, 30], [32, 6], [33, 32], [34, 6], [35, 34], [36, 35], [37, 3], [38, 36], [38, 37], [39, 38], [40, 39], [42, 41], [42, 40], [43, 42], [44, 6], [45, 44], [46, 3], [47, 31], [48, 33], [49, 43], [51, 45], [54, 6], [55, 54], [56, 55], [57, 56], [59, 6], [60, 59], [61, 60], [62, 61], [63, 6], [64, 63], [65, 64], [67, 6], [68, 67], [69, 68], [70, 69], [71, 6], [72, 71], [73, 6], [74, 73], [74, 72], [75, 74], [76, 75], [77, 6], [78, 77], [79, 78], [81, 6], [82, 72], [82, 81], [83, 3], [84, 9], [85, 82], [86, 83], [87, 84], [89, 6], [90, 89], [91, 90], [92, 91], [93, 6], [94, 93], [95, 94], [99, 87], [99, 96], [99, 91]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23_9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23.jsonl.gz", "strip_func_name": "sub_493028", "query": "\n\n\nint __fastcall sub_493028(__int64 a1)\n{\nint result; // eax\n__int64 (__fastcall *v2)(__int64, _QWORD); // [rsp+10h] [rbp-10h]\n__int64 v3; // [rsp+18h] [rbp-8h]\n\nv3 = *(_QWORD *)(a1 + 128);\nv2 = *(__int64 (__fastcall **)(__int64, _QWORD))(v3 + 312);\nif ( qword_537120\n&& a1\n&& *(_QWORD *)(a1 + 192)\n&& ((*(_DWORD *)(*(_QWORD *)(a1 + 192) + 116LL) | *(_DWORD *)(a1 + 200)) & *(_DWORD *)(v3 + 8)) != 0 )\n{\nsub_455FDF(\n*(_DWORD *)(v3 + 8),\na1,\n\"_tape_completion_dispatch(unit=%d, top=%d, callback=%p)\\n\",\n-1963413621 * (unsigned int)((a1 - *(_QWORD *)(*(_QWORD *)v3 + 8LL)) >> 3),\n*(unsigned int *)(v3 + 256),\n*(_QWORD *)(v3 + 312));\n}\nif ( *(_DWORD *)(v3 + 256) )\nabort();\nif ( *(_DWORD *)(v3 + 16) )\npthread_mutex_lock((pthread_mutex_t *)(v3 + 72));\nif ( *(_QWORD *)(v3 + 312) )\n{\n*(_QWORD *)(v3 + 312) = 0LL;\nif ( *(_DWORD *)(v3 + 16) )\npthread_mutex_unlock((pthread_mutex_t *)(v3 + 72));\nresult = v2(a1, *(unsigned int *)(v3 + 320));\n}\nelse\n{\nresult = *(_DWORD *)(v3 + 16);\nif ( result )\nresult = pthread_mutex_unlock((pthread_mutex_t *)(v3 + 72));\n}\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,sub_493028,sub_455FDF,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'uptr', 'v2': 'callback', 'v3': 'ctx', 'sub_493028': '_tape_completion_dispatch', 'sub_455FDF': '_sim_debug_unit'}"}
firstch
639e7ba9a87f666157b0fa6d620a96d4f661aed269255221720fb5b6a597debb
EtchedPixels
CC6303
NA
static int /* character; there is no "none" value */ firstch(p, cs) register struct parse *p; register cset *cs; { register int i; register size_t css = (size_t)p->g->csetsize; for (i = 0; i < css; i++) if (CHIN(cs, i)) return((char)i); assert(never); return(0); /* arbitrary */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405C3F", "function_addr": 4217919, "binary_name": "639e7ba9a87f666157b0fa6d620a96d4f661aed269255221720fb5b6a597debb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "mov rdx, rdi"], [5, "mov rax, rsi"], [6, "mov rdx, [rdx+38h]"], [7, "mov edx, [rdx+10h]"], [8, "movsxd r12, edx"], [9, "mov ebx, 0"], [10, "jmp short loc_405C7F"], [11, "mov rcx, [rax]"], [12, "mov edx, ebx"], [13, "movzx edx, dl"], [14, "add rdx, rcx"], [15, "movzx ecx, byte ptr [rdx]"], [16, "movzx edx, byte ptr [rax+8]"], [17, "and edx, ecx"], [18, "test dl, dl"], [19, "jz short loc_405C7C"], [20, "mov eax, ebx"], [21, "movsx eax, al"], [22, "jmp short loc_405C8C"], [23, "add ebx, 1"], [24, "movsxd rdx, ebx"], [25, "cmp r12, rdx"], [26, "ja short loc_405C5D"], [27, "mov eax, 0"], [28, "pop rbx"], [29, "pop r12"], [30, "pop rbp"], [31, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [11, 5], [12, 9], [12, 23], [13, 12], [14, 13], [14, 11], [15, 14], [16, 5], [17, 15], [17, 16], [18, 17], [19, 18], [20, 23], [20, 9], [21, 20], [23, 9], [23, 23], [24, 23], [24, 9], [25, 24], [25, 8], [26, 25], [28, 3], [29, 2], [30, 0], [31, 21], [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/639e7ba9a87f666157b0fa6d620a96d4f661aed269255221720fb5b6a597debb_639e7ba9a87f666157b0fa6d620a96d4f661aed269255221720fb5b6a597debb.jsonl.gz", "strip_func_name": "sub_405C3F", "query": "\n\n\n__int64 __fastcall sub_405C3F(__int64 a1, __int64 a2)\n{\nint i; // ebx\n\nfor ( i = 0; *(int *)(*(_QWORD *)(a1 + 56) + 16LL) > (unsigned __int64)i; ++i )\n{\nif ( (*(_BYTE *)(*(_QWORD *)a2 + (unsigned __int8)i) & *(_BYTE *)(a2 + 8)) != 0 )\nreturn (unsigned int)(char)i;\n}\nreturn 0LL;\n}\n\n\n\nQ:[sub_405C3F,]\nAssistant: ", "hints": "[]", "response": "{'sub_405C3F': 'firstch'}"}
client_print
31a237f877597196622f4beec8002394321c16ae62fe4ec52d62ac660ad8d878
remzi-arpacidusseau
ostep-projects
NA
void client_print(int fd) { char buf[MAXBUF]; int n; // Read and display the HTTP Header n = readline_or_die(fd, buf, MAXBUF); while (strcmp(buf, "\r\n") && (n > 0)) { printf("Header: %s", buf); n = readline_or_die(fd, buf, MAXBUF); // If you want to look for certain HTTP tags... // int length = 0; //if (sscanf(buf, "Content-Length: %d ", &length) == 1) { // printf("Length = %d\n", length); //} } // Read and display the HTTP Body n = readline_or_die(fd, buf, MAXBUF); while (n > 0) { printf("%s", buf); n = readline_or_die(fd, buf, MAXBUF); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401357", "function_addr": 4199255, "binary_name": "31a237f877597196622f4beec8002394321c16ae62fe4ec52d62ac660ad8d878.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 2040h"], [3, "mov [rbp+var_2034], edi"], [4, "lea rcx, [rbp+s1]"], [5, "mov eax, [rbp+var_2034]"], [6, "mov edx, 2000h"], [7, "mov rsi, rcx"], [8, "mov edi, eax"], [9, "call sub_4015D4"], [10, "mov [rbp+var_10], rax"], [11, "cmp [rbp+var_10], 0"], [12, "jns short loc_4013A8"], [13, "mov ecx, offset aClientPrint"], [14, "mov edx, 31h "], [15, "mov esi, offset file"], [16, "mov edi, offset aRc0_0"], [17, "call ___assert_fail"], [18, "mov rax, [rbp+var_10]"], [19, "mov [rbp+var_4], eax"], [20, "jmp short loc_401411"], [21, "lea rax, [rbp+s1]"], [22, "mov rsi, rax"], [23, "mov edi, offset aHeaderS"], [24, "mov eax, 0"], [25, "call _printf"], [26, "lea rcx, [rbp+s1]"], [27, "mov eax, [rbp+var_2034]"], [28, "mov edx, 2000h"], [29, "mov rsi, rcx"], [30, "mov edi, eax"], [31, "call sub_4015D4"], [32, "mov [rbp+var_18], rax"], [33, "cmp [rbp+var_18], 0"], [34, "jns short loc_40140A"], [35, "mov ecx, offset aClientPrint"], [36, "mov edx, 34h "], [37, "mov esi, offset file"], [38, "mov edi, offset aRc0_0"], [39, "call ___assert_fail"], [40, "mov rax, [rbp+var_18]"], [41, "mov [rbp+var_4], eax"], [42, "lea rax, [rbp+s1]"], [43, "mov esi, offset s2"], [44, "mov rdi, rax"], [45, "call _strcmp"], [46, "test eax, eax"], [47, "jz short loc_40142F"], [48, "cmp [rbp+var_4], 0"], [49, "jg short loc_4013B1"], [50, "lea rcx, [rbp+s1]"], [51, "mov eax, [rbp+var_2034]"], [52, "mov edx, 2000h"], [53, "mov rsi, rcx"], [54, "mov edi, eax"], [55, "call sub_4015D4"], [56, "mov [rbp+var_20], rax"], [57, "cmp [rbp+var_20], 0"], [58, "jns short loc_40146F"], [59, "mov ecx, offset aClientPrint"], [60, "mov edx, 3Eh "], [61, "mov esi, offset file"], [62, "mov edi, offset aRc0_0"], [63, "call ___assert_fail"], [64, "mov rax, [rbp+var_20]"], [65, "mov [rbp+var_4], eax"], [66, "jmp short loc_4014D8"], [67, "lea rax, [rbp+s1]"], [68, "mov rsi, rax"], [69, "mov edi, offset aS"], [70, "mov eax, 0"], [71, "call _printf"], [72, "lea rcx, [rbp+s1]"], [73, "mov eax, [rbp+var_2034]"], [74, "mov edx, 2000h"], [75, "mov rsi, rcx"], [76, "mov edi, eax"], [77, "call sub_4015D4"], [78, "mov [rbp+var_28], rax"], [79, "cmp [rbp+var_28], 0"], [80, "jns short loc_4014D1"], [81, "mov ecx, offset aClientPrint"], [82, "mov edx, 41h "], [83, "mov esi, offset file"], [84, "mov edi, offset aRc0_0"], [85, "call ___assert_fail"], [86, "mov rax, [rbp+var_28]"], [87, "mov [rbp+var_4], eax"], [88, "cmp [rbp+var_4], 0"], [89, "jg short loc_401478"], [90, "nop"], [91, "nop"], [92, "leave"], [93, "retn"]], "data_dep": [[5, 3], [7, 4], [8, 5], [10, 9], [11, 10], [12, 11], [18, 10], [19, 18], [21, 46], [22, 21], [26, 26], [26, 4], [27, 3], [29, 26], [30, 27], [32, 31], [33, 32], [34, 33], [40, 32], [41, 40], [42, 40], [42, 18], [44, 42], [46, 45], [47, 46], [48, 41], [48, 19], [49, 48], [50, 26], [50, 4], [51, 3], [53, 50], [54, 51], [56, 55], [57, 56], [58, 57], [64, 56], [65, 64], [67, 86], [67, 64], [68, 67], [72, 72], [72, 50], [73, 3], [75, 72], [76, 73], [78, 77], [79, 78], [80, 79], [86, 78], [87, 86], [88, 87], [88, 65], [89, 88], [93, 86], [93, 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/31a237f877597196622f4beec8002394321c16ae62fe4ec52d62ac660ad8d878_31a237f877597196622f4beec8002394321c16ae62fe4ec52d62ac660ad8d878.jsonl.gz", "strip_func_name": "sub_401357", "query": "\n\n\n__int64 __fastcall sub_401357(unsigned int a1)\n{\n__int64 result; // rax\nchar s1[8200]; // [rsp+10h] [rbp-2030h] BYREF\n__int64 v3; // [rsp+2018h] [rbp-28h]\n__int64 v4; // [rsp+2020h] [rbp-20h]\n__int64 v5; // [rsp+2028h] [rbp-18h]\n__int64 v6; // [rsp+2030h] [rbp-10h]\nint i; // [rsp+203Ch] [rbp-4h]\n\nv6 = sub_4015D4(a1, s1, 0x2000LL);\nif ( v6 < 0 )\n__assert_fail(\"rc >= 0\", \"wclient.c\", 0x31u, \"client_print\");\nfor ( i = v6; strcmp(s1, \"\\r\\n\") && i > 0; i = v5 )\n{\nprintf(\"Header: %s\", s1);\nv5 = sub_4015D4(a1, s1, 0x2000LL);\nif ( v5 < 0 )\n__assert_fail(\"rc >= 0\", \"wclient.c\", 0x34u, \"client_print\");\n}\nv4 = sub_4015D4(a1, s1, 0x2000LL);\nif ( v4 < 0 )\n__assert_fail(\"rc >= 0\", \"wclient.c\", 0x3Eu, \"client_print\");\nresult = v4;\nfor ( i = v4; i > 0; i = v3 )\n{\nprintf(\"%s\", s1);\nv3 = sub_4015D4(a1, s1, 0x2000LL);\nif ( v3 < 0 )\n__assert_fail(\"rc >= 0\", \"wclient.c\", 0x41u, \"client_print\");\nresult = v3;\n}\nreturn result;\n}\n\n\n\nQ:[a1,s1,v3,v4,v5,v6,i,sub_401357,sub_4015D4,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fd', 's1': 'buf', 'v3': 'rc_2', 'v4': 'rc_1', 'v5': 'rc_0', 'v6': 'rc', 'i': 'n', 'sub_401357': 'client_print', 'sub_4015D4': 'readline'}"}
get_vendor_id
b671a6d9a865e2a0dfafbbbe0c80f375e68809a88f83415dd956d122fc4f7587
SolidRun
linux-stable
NA
static int get_vendor_id(int ifindex) { char ifname[IF_NAMESIZE], path[64], buf[8]; ssize_t len; int fd; if (!if_indextoname(ifindex, ifname)) return -1; snprintf(path, sizeof(path), "/sys/class/net/%s/device/vendor", ifname); fd = open(path, O_RDONLY); if (fd < 0) return -1; len = read(fd, buf, sizeof(buf)); close(fd); if (len < 0) return -1; if (len >= (ssize_t)sizeof(buf)) return -1; buf[len] = '\0'; return strtol(buf, NULL, 0); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41B19D", "function_addr": 4305309, "binary_name": "b671a6d9a865e2a0dfafbbbe0c80f375e68809a88f83415dd956d122fc4f7587.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "add rsp, 0FFFFFFFFFFFFFF80h"], [3, "mov [rbp+ifindex], edi"], [4, "mov eax, [rbp+ifindex]"], [5, "lea rdx, [rbp+ifname]"], [6, "mov rsi, rdx"], [7, "mov edi, eax"], [8, "call _if_indextoname"], [9, "test rax, rax"], [10, "jnz short loc_41B1C8"], [11, "mov eax, 0FFFFFFFFh"], [12, "jmp locret_41B276"], [13, "lea rdx, [rbp+ifname]"], [14, "lea rax, [rbp+s]"], [15, "mov rcx, rdx"], [16, "lea rdx, aSysClassNetSDe"], [17, "mov esi, 40h "], [18, "mov rdi, rax"], [19, "mov eax, 0"], [20, "call _snprintf"], [21, "lea rax, [rbp+s]"], [22, "mov esi, 0"], [23, "mov rdi, rax"], [24, "mov eax, 0"], [25, "call _open"], [26, "mov [rbp+fd], eax"], [27, "cmp [rbp+fd], 0"], [28, "jns short loc_41B212"], [29, "mov eax, 0FFFFFFFFh"], [30, "jmp short locret_41B276"], [31, "lea rcx, [rbp+buf]"], [32, "mov eax, [rbp+fd]"], [33, "mov edx, 8"], [34, "mov rsi, rcx"], [35, "mov edi, eax"], [36, "call _read"], [37, "mov [rbp+var_10], rax"], [38, "mov eax, [rbp+fd]"], [39, "mov edi, eax"], [40, "call _close"], [41, "cmp [rbp+var_10], 0"], [42, "jns short loc_41B244"], [43, "mov eax, 0FFFFFFFFh"], [44, "jmp short locret_41B276"], [45, "cmp [rbp+var_10], 7"], [46, "jle short loc_41B252"], [47, "mov eax, 0FFFFFFFFh"], [48, "jmp short locret_41B276"], [49, "lea rdx, [rbp+buf]"], [50, "mov rax, [rbp+var_10]"], [51, "add rax, rdx"], [52, "mov byte ptr [rax], 0"], [53, "lea rax, [rbp+buf]"], [54, "mov edx, 0"], [55, "mov esi, 0"], [56, "mov rdi, rax"], [57, "call _strtol"], [58, "leave"], [59, "retn"]], "data_dep": [[4, 3], [6, 5], [7, 4], [9, 8], [10, 9], [13, 5], [14, 9], [15, 13], [16, 13], [18, 14], [21, 20], [23, 21], [26, 25], [27, 26], [28, 27], [31, 15], [32, 26], [34, 31], [35, 32], [37, 36], [38, 26], [39, 38], [41, 37], [42, 41], [45, 37], [46, 45], [49, 33], [50, 37], [51, 50], [51, 49], [52, 51], [53, 51], [56, 53], [59, 57], [59, 11], [59, 29], [59, 47], [59, 43]]}
{"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/b671a6d9a865e2a0dfafbbbe0c80f375e68809a88f83415dd956d122fc4f7587_b671a6d9a865e2a0dfafbbbe0c80f375e68809a88f83415dd956d122fc4f7587.jsonl.gz", "strip_func_name": "sub_41B19D", "query": "\n\n\n__int64 __fastcall sub_41B19D(unsigned int a1)\n{\nchar buf[8]; // [rsp+18h] [rbp-68h] BYREF\nchar s[64]; // [rsp+20h] [rbp-60h] BYREF\nchar ifname[16]; // [rsp+60h] [rbp-20h] BYREF\nssize_t v5; // [rsp+70h] [rbp-10h]\nint fd; // [rsp+7Ch] [rbp-4h]\n\nif ( !if_indextoname(a1, ifname) )\nreturn 0xFFFFFFFFLL;\nsnprintf(s, 0x40uLL, \"/sys/class/net/%s/device/vendor\", ifname);\nfd = open(s, 0);\nif ( fd < 0 )\nreturn 0xFFFFFFFFLL;\nv5 = read(fd, buf, 8uLL);\nclose(fd);\nif ( v5 < 0 )\nreturn 0xFFFFFFFFLL;\nif ( v5 > 7 )\nreturn 0xFFFFFFFFLL;\nbuf[v5] = 0;\nreturn strtol(buf, 0LL, 0);\n}\n\n\n\nQ:[a1,s,v5,sub_41B19D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ifindex', 's': 'path', 'v5': 'len', 'sub_41B19D': 'get_vendor_id'}"}
wpa_ft_parse_ftie
208d6f5c4c47e61fc5612dba9824bbb292bc6b59ec61b6b27384dbfe4df358f2
vanhoefm
fragattacks
NA
static int wpa_ft_parse_ftie(const u8 *ie, size_t ie_len, struct wpa_ft_ies *parse, int use_sha384) { const u8 *end, *pos; parse->ftie = ie; parse->ftie_len = ie_len; pos = ie + (use_sha384 ? sizeof(struct rsn_ftie_sha384) : sizeof(struct rsn_ftie)); end = ie + ie_len; wpa_hexdump(MSG_DEBUG, "FT: Parse FTE subelements", pos, end - pos); while (end - pos >= 2) { u8 id, len; id = *pos++; len = *pos++; if (len > end - pos) { wpa_printf(MSG_DEBUG, "FT: Truncated subelement"); break; } switch (id) { case FTIE_SUBELEM_R1KH_ID: if (len != FT_R1KH_ID_LEN) { wpa_printf(MSG_DEBUG, "FT: Invalid R1KH-ID length in FTIE: %d", len); return -1; } parse->r1kh_id = pos; break; case FTIE_SUBELEM_GTK: parse->gtk = pos; parse->gtk_len = len; break; case FTIE_SUBELEM_R0KH_ID: if (len < 1 || len > FT_R0KH_ID_MAX_LEN) { wpa_printf(MSG_DEBUG, "FT: Invalid R0KH-ID length in FTIE: %d", len); return -1; } parse->r0kh_id = pos; parse->r0kh_id_len = len; break; case FTIE_SUBELEM_IGTK: parse->igtk = pos; parse->igtk_len = len; break; #ifdef CONFIG_OCV case FTIE_SUBELEM_OCI: parse->oci = pos; parse->oci_len = len; break; #endif /* CONFIG_OCV */ case FTIE_SUBELEM_BIGTK: parse->bigtk = pos; parse->bigtk_len = len; break; default: wpa_printf(MSG_DEBUG, "FT: Unknown subelem id %u", id); break; } pos += len; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45A387", "function_addr": 4563847, "binary_name": "208d6f5c4c47e61fc5612dba9824bbb292bc6b59ec61b6b27384dbfe4df358f2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_3C], ecx"], [7, "mov rax, [rbp+var_38]"], [8, "mov rdx, [rbp+var_28]"], [9, "mov [rax+10h], rdx"], [10, "mov rax, [rbp+var_38]"], [11, "mov rdx, [rbp+var_30]"], [12, "mov [rax+18h], rdx"], [13, "cmp [rbp+var_3C], 0"], [14, "jz short loc_45A3C3"], [15, "mov edx, 5Ah "], [16, "jmp short loc_45A3C8"], [17, "mov edx, 52h "], [18, "mov rax, [rbp+var_28]"], [19, "add rax, rdx"], [20, "mov [rbp+var_8], rax"], [21, "mov rdx, [rbp+var_28]"], [22, "mov rax, [rbp+var_30]"], [23, "add rax, rdx"], [24, "mov [rbp+var_10], rax"], [25, "mov rax, [rbp+var_10]"], [26, "sub rax, [rbp+var_8]"], [27, "mov rdx, rax"], [28, "mov rax, [rbp+var_8]"], [29, "mov rcx, rdx"], [30, "mov rdx, rax"], [31, "mov esi, offset aFtParseFteSube"], [32, "mov edi, 2"], [33, "call sub_486FC3"], [34, "jmp loc_45A577"], [35, "mov rax, [rbp+var_8]"], [36, "lea rdx, [rax+1]"], [37, "mov [rbp+var_8], rdx"], [38, "movzx eax, byte ptr [rax]"], [39, "mov [rbp+var_11], al"], [40, "mov rax, [rbp+var_8]"], [41, "lea rdx, [rax+1]"], [42, "mov [rbp+var_8], rdx"], [43, "movzx eax, byte ptr [rax]"], [44, "mov [rbp+var_12], al"], [45, "movzx edx, [rbp+var_12]"], [46, "mov rax, [rbp+var_10]"], [47, "sub rax, [rbp+var_8]"], [48, "cmp rdx, rax"], [49, "jle short loc_45A459"], [50, "mov esi, offset aFtTruncatedSub"], [51, "mov edi, 2"], [52, "mov eax, 0"], [53, "call sub_486CC5"], [54, "jmp loc_45A589"], [55, "movzx eax, [rbp+var_11]"], [56, "cmp eax, 6"], [57, "ja def_45A470"], [58, "mov eax, eax"], [59, "mov rax, ds:jpt_45A470[rax*8]"], [60, "jmp rax"], [61, "cmp [rbp+var_12], 6"], [62, "jz short loc_45A49C"], [63, "movzx eax, [rbp+var_12]"], [64, "mov edx, eax"], [65, "mov esi, offset aFtInvalidR1khI"], [66, "mov edi, 2"], [67, "mov eax, 0"], [68, "call sub_486CC5"], [69, "mov eax, 0FFFFFFFFh"], [70, "jmp locret_45A58E"], [71, "mov rax, [rbp+var_38]"], [72, "mov rdx, [rbp+var_8]"], [73, "mov [rax+20h], rdx"], [74, "jmp loc_45A56F"], [75, "mov rax, [rbp+var_38]"], [76, "mov rdx, [rbp+var_8]"], [77, "mov [rax+28h], rdx"], [78, "movzx edx, [rbp+var_12]"], [79, "mov rax, [rbp+var_38]"], [80, "mov [rax+30h], rdx"], [81, "jmp loc_45A56F"], [82, "cmp [rbp+var_12], 0"], [83, "jz short loc_45A4D6"], [84, "cmp [rbp+var_12], 30h "], [85, "jbe short loc_45A4FA"], [86, "movzx eax, [rbp+var_12]"], [87, "mov edx, eax"], [88, "mov esi, offset aFtInvalidR0khI"], [89, "mov edi, 2"], [90, "mov eax, 0"], [91, "call sub_486CC5"], [92, "mov eax, 0FFFFFFFFh"], [93, "jmp locret_45A58E"], [94, "mov rax, [rbp+var_38]"], [95, "mov rdx, [rbp+var_8]"], [96, "mov [rax+38h], rdx"], [97, "movzx edx, [rbp+var_12]"], [98, "mov rax, [rbp+var_38]"], [99, "mov [rax+40h], rdx"], [100, "jmp short loc_45A56F"], [101, "mov rax, [rbp+var_38]"], [102, "mov rdx, [rbp+var_8]"], [103, "mov [rax+88h], rdx"], [104, "movzx edx, [rbp+var_12]"], [105, "mov rax, [rbp+var_38]"], [106, "mov [rax+90h], rdx"], [107, "jmp short loc_45A56F"], [108, "mov rax, [rbp+var_38]"], [109, "mov rdx, [rbp+var_8]"], [110, "mov [rax+98h], rdx"], [111, "movzx edx, [rbp+var_12]"], [112, "mov rax, [rbp+var_38]"], [113, "mov [rax+0A0h], rdx"], [114, "jmp short loc_45A56F"], [115, "movzx eax, [rbp+var_11]"], [116, "mov edx, eax"], [117, "mov esi, offset aFtUnknownSubel"], [118, "mov edi, 2"], [119, "mov eax, 0"], [120, "call sub_486CC5"], [121, "nop"], [122, "movzx eax, [rbp+var_12]"], [123, "add [rbp+var_8], rax"], [124, "mov rax, [rbp+var_10]"], [125, "sub rax, [rbp+var_8]"], [126, "cmp rax, 1"], [127, "jg loc_45A40B"], [128, "mov eax, 0"], [129, "leave"], [130, "retn"]], "data_dep": [[7, 5], [8, 3], [9, 8], [9, 7], [10, 5], [11, 4], [12, 10], [12, 11], [13, 6], [14, 13], [18, 3], [19, 18], [19, 15], [19, 17], [20, 19], [21, 3], [22, 4], [23, 22], [23, 21], [24, 23], [25, 24], [26, 25], [26, 20], [27, 26], [28, 20], [29, 27], [30, 28], [35, 123], [35, 20], [36, 80], [36, 9], [36, 73], [36, 77], [36, 116], [36, 111], [36, 104], [36, 113], [36, 97], [36, 106], [36, 72], [36, 35], [36, 99], [36, 110], [36, 12], [36, 30], [36, 103], [36, 78], [36, 96], [37, 36], [38, 80], [38, 110], [38, 9], [38, 73], [38, 103], [38, 96], [38, 77], [38, 113], [38, 106], [38, 35], [38, 99], [38, 12], [39, 38], [40, 37], [41, 40], [41, 113], [41, 106], [41, 99], [41, 110], [41, 12], [41, 103], [41, 96], [41, 80], [41, 9], [41, 73], [41, 77], [41, 36], [42, 41], [43, 110], [43, 12], [43, 103], [43, 96], [43, 80], [43, 9], [43, 73], [43, 77], [43, 40], [43, 113], [43, 106], [43, 99], [44, 43], [45, 44], [46, 24], [47, 42], [47, 46], [48, 45], [48, 47], [49, 48], [55, 39], [56, 55], [57, 56], [58, 55], [60, 59], [61, 44], [62, 61], [63, 44], [64, 63], [71, 5], [72, 42], [73, 71], [73, 72], [75, 5], [76, 42], [77, 76], [77, 75], [78, 44], [79, 5], [80, 78], [80, 79], [82, 44], [83, 82], [84, 44], [85, 84], [86, 44], [87, 86], [94, 5], [95, 42], [96, 95], [96, 94], [97, 44], [98, 5], [99, 97], [99, 98], [101, 5], [102, 42], [103, 102], [103, 101], [104, 44], [105, 5], [106, 104], [106, 105], [108, 5], [109, 42], [110, 109], [110, 108], [111, 44], [112, 5], [113, 112], [113, 111], [115, 39], [116, 115], [122, 44], [123, 122], [123, 42], [124, 24], [125, 20], [125, 123], [125, 124], [126, 125], [127, 126], [130, 92], [130, 69], [130, 128]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/208d6f5c4c47e61fc5612dba9824bbb292bc6b59ec61b6b27384dbfe4df358f2_208d6f5c4c47e61fc5612dba9824bbb292bc6b59ec61b6b27384dbfe4df358f2.jsonl.gz", "strip_func_name": "sub_45A387", "query": "\n\n\n__int64 __fastcall sub_45A387(__int64 a1, __int64 a2, _QWORD *a3, int a4)\n{\n__int64 v4; // rdx\nint v5; // ecx\nint v6; // er8\nint v7; // er9\nunsigned __int8 *v8; // rax\nunsigned __int8 v11; // [rsp+2Eh] [rbp-12h]\nunsigned __int8 v12; // [rsp+2Fh] [rbp-11h]\n__int64 v13; // [rsp+30h] [rbp-10h]\nunsigned __int8 *v14; // [rsp+38h] [rbp-8h]\n_BYTE *v15; // [rsp+38h] [rbp-8h]\n\na3[2] = a1;\na3[3] = a2;\nif ( a4 )\nv4 = 90LL;\nelse\nv4 = 82LL;\nv14 = (unsigned __int8 *)(v4 + a1);\nv13 = a1 + a2;\nsub_486FC3(2LL, \"FT: Parse FTE subelements\", v4 + a1, a2 - v4);\nwhile ( 1 )\n{\nif ( v13 - (__int64)v14 <= 1 )\nreturn 0LL;\nv12 = *v14;\nv8 = v14 + 1;\nv15 = v14 + 2;\nv11 = *v8;\nif ( *v8 > v13 - (__int64)v15 )\nbreak;\nswitch ( v12 )\n{\ncase 1u:\nif ( v11 == 6 )\n{\na3[4] = v15;\ngoto LABEL_19;\n}\nsub_486CC5(2, (unsigned int)\"FT: Invalid R1KH-ID length in FTIE: %d\", v11, v5, v6, v7);\nreturn 0xFFFFFFFFLL;\ncase 2u:\na3[5] = v15;\na3[6] = v11;\ngoto LABEL_19;\ncase 3u:\nif ( !v11 || v11 > 0x30u )\n{\nsub_486CC5(2, (unsigned int)\"FT: Invalid R0KH-ID length in FTIE: %d\", v11, v5, v6, v7);\nreturn 0xFFFFFFFFLL;\n}\na3[7] = v15;\na3[8] = v11;\nLABEL_19:\nv14 = &v15[v11];\nbreak;\ncase 4u:\na3[17] = v15;\na3[18] = v11;\ngoto LABEL_19;\ncase 6u:\na3[19] = v15;\na3[20] = v11;\ngoto LABEL_19;\ndefault:\nsub_486CC5(2, (unsigned int)\"FT: Unknown subelem id %u\", v12, v5, v6, v7);\ngoto LABEL_19;\n}\n}\nsub_486CC5(2, (unsigned int)\"FT: Truncated subelement\", *v8, v5, v6, v7);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,v5,v11,v12,v13,v15,sub_45A387,sub_486FC3,sub_486CC5,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'parse', 'a4': 'use_sha384', 'a1': 'ie', 'a2': 'ie_len', 'v5': 'use_sha384', 'v11': 'len', 'v12': 'id', 'v13': 'end', 'v15': 'pos', 'sub_45A387': 'wpa_ft_parse_ftie', 'sub_486FC3': 'wpa_hexdump', 'sub_486CC5': 'wpa_printf'}"}
get_addsub
e2618388181add42b7972a736ce8b09648a8c19ffcfdb901da6bb564338ed4d3
olikraus
u8g2
NA
static long get_addsub(const char **s) { long v; int op; v = get_mul(s); while ( (**s) == '+' || (**s) == '-' ) { op = **s; (*s)++; skip_space(s); if ( op == '+' ) v += get_mul(s); else v -= get_mul(s); } return v; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405CD4", "function_addr": 4218068, "binary_name": "e2618388181add42b7972a736ce8b09648a8c19ffcfdb901da6bb564338ed4d3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 18h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov rdi, rax"], [6, "call sub_405C0C"], [7, "mov [rbp+var_8], rax"], [8, "jmp short loc_405D48"], [9, "mov rax, [rbp+var_18]"], [10, "mov rax, [rax]"], [11, "movzx eax, byte ptr [rax]"], [12, "movsx eax, al"], [13, "mov [rbp+var_C], eax"], [14, "mov rax, [rbp+var_18]"], [15, "mov rax, [rax]"], [16, "lea rdx, [rax+1]"], [17, "mov rax, [rbp+var_18]"], [18, "mov [rax], rdx"], [19, "mov rax, [rbp+var_18]"], [20, "mov rdi, rax"], [21, "call sub_4059EB"], [22, "cmp [rbp+var_C], 2Bh "], [23, "jnz short loc_405D38"], [24, "mov rax, [rbp+var_18]"], [25, "mov rdi, rax"], [26, "call sub_405C0C"], [27, "add [rbp+var_8], rax"], [28, "jmp short loc_405D48"], [29, "mov rax, [rbp+var_18]"], [30, "mov rdi, rax"], [31, "call sub_405C0C"], [32, "sub [rbp+var_8], rax"], [33, "mov rax, [rbp+var_18]"], [34, "mov rax, [rax]"], [35, "movzx eax, byte ptr [rax]"], [36, "cmp al, 2Bh "], [37, "jz short loc_405CF2"], [38, "mov rax, [rbp+var_18]"], [39, "mov rax, [rax]"], [40, "movzx eax, byte ptr [rax]"], [41, "cmp al, 2Dh "], [42, "jz short loc_405CF2"], [43, "mov rax, [rbp+var_8]"], [44, "leave"], [45, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [9, 3], [10, 9], [10, 18], [11, 10], [11, 18], [12, 11], [13, 12], [14, 3], [15, 14], [15, 18], [16, 16], [16, 15], [16, 18], [17, 3], [18, 17], [18, 16], [19, 3], [20, 19], [22, 13], [23, 22], [24, 3], [25, 24], [27, 7], [27, 27], [27, 26], [27, 32], [29, 3], [30, 29], [32, 31], [32, 27], [32, 32], [32, 7], [33, 3], [34, 18], [34, 33], [35, 34], [35, 18], [36, 35], [37, 36], [38, 3], [39, 18], [39, 38], [40, 18], [40, 39], [41, 40], [42, 41], [43, 27], [43, 32], [43, 7], [45, 43]]}
{"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/e2618388181add42b7972a736ce8b09648a8c19ffcfdb901da6bb564338ed4d3_e2618388181add42b7972a736ce8b09648a8c19ffcfdb901da6bb564338ed4d3.jsonl.gz", "strip_func_name": "sub_405CD4", "query": "\n\n\n__int64 __fastcall sub_405CD4(char **a1)\n{\nint v2; // [rsp+Ch] [rbp-Ch]\n__int64 v3; // [rsp+10h] [rbp-8h]\n\nv3 = sub_405C0C(a1);\nwhile ( **a1 == 43 || **a1 == 45 )\n{\nv2 = *(*a1)++;\nsub_4059EB(a1);\nif ( v2 == 43 )\nv3 += sub_405C0C(a1);\nelse\nv3 -= sub_405C0C(a1);\n}\nreturn v3;\n}\n\n\n\nQ:[a1,v2,v3,sub_405CD4,sub_405C0C,sub_4059EB,]\nAssistant: ", "hints": "[]", "response": "{'a1': 's', 'v2': 'op', 'v3': 'v', 'sub_405CD4': 'get_addsub', 'sub_405C0C': 'get_mul', 'sub_4059EB': 'skip_space'}"}
LongOption
aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1
dmsc
fastbasic
NA
void LongOption (unsigned* ArgNum, const LongOpt* OptTab, unsigned OptCount) /* Handle a long command line option */ { /* Get the option and the argument (which may be zero) */ const char* Opt = ArgVec[*ArgNum]; /* Search the table for a match */ while (OptCount) { if (strcmp (Opt, OptTab->Option) == 0) { /* Found, call the function */ if (OptTab->ArgCount > 0) { /* We need an argument, check if we have one */ const char* Arg = ArgVec[++(*ArgNum)]; if (Arg == 0) { NeedArg (Opt); } OptTab->Func (Opt, Arg); } else { OptTab->Func (Opt, 0); } /* Done */ return; } /* Next table entry */ --OptCount; ++OptTab; } /* Invalid option */ UnknownOption (Opt); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41A093", "function_addr": 4300947, "binary_name": "aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.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_24], edx"], [6, "mov rdx, cs:qword_43AD50"], [7, "mov rax, [rbp+var_18]"], [8, "mov eax, [rax]"], [9, "mov eax, eax"], [10, "shl rax, 3"], [11, "add rax, rdx"], [12, "mov rax, [rax]"], [13, "mov [rbp+s1], rax"], [14, "jmp loc_41A167"], [15, "mov rax, [rbp+var_20]"], [16, "mov rdx, [rax]"], [17, "mov rax, [rbp+s1]"], [18, "mov rsi, rdx"], [19, "mov rdi, rax"], [20, "call _strcmp"], [21, "test eax, eax"], [22, "jnz short loc_41A15E"], [23, "mov rax, [rbp+var_20]"], [24, "mov eax, [rax+8]"], [25, "test eax, eax"], [26, "jz short loc_41A146"], [27, "mov rcx, cs:qword_43AD50"], [28, "mov rax, [rbp+var_18]"], [29, "mov eax, [rax]"], [30, "lea edx, [rax+1]"], [31, "mov rax, [rbp+var_18]"], [32, "mov [rax], edx"], [33, "mov rax, [rbp+var_18]"], [34, "mov eax, [rax]"], [35, "mov eax, eax"], [36, "shl rax, 3"], [37, "add rax, rcx"], [38, "mov rax, [rax]"], [39, "mov [rbp+var_10], rax"], [40, "cmp [rbp+var_10], 0"], [41, "jnz short loc_41A12C"], [42, "mov rax, [rbp+s1]"], [43, "mov rdi, rax"], [44, "call sub_419F7F"], [45, "mov rax, [rbp+var_20]"], [46, "mov rcx, [rax+10h]"], [47, "mov rdx, [rbp+var_10]"], [48, "mov rax, [rbp+s1]"], [49, "mov rsi, rdx"], [50, "mov rdi, rax"], [51, "call rcx"], [52, "jmp short locret_41A17D"], [53, "mov rax, [rbp+var_20]"], [54, "mov rdx, [rax+10h]"], [55, "mov rax, [rbp+s1]"], [56, "mov esi, 0"], [57, "mov rdi, rax"], [58, "call rdx"], [59, "jmp short locret_41A17D"], [60, "sub [rbp+var_24], 1"], [61, "add [rbp+var_20], 18h"], [62, "cmp [rbp+var_24], 0"], [63, "jnz loc_41A0C8"], [64, "mov rax, [rbp+s1]"], [65, "mov rdi, rax"], [66, "call sub_419F5D"], [67, "leave"], [68, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 8], [10, 9], [11, 10], [11, 6], [12, 11], [13, 12], [15, 4], [15, 61], [16, 15], [17, 13], [18, 16], [19, 17], [21, 20], [22, 21], [23, 4], [23, 61], [24, 23], [25, 24], [26, 25], [28, 3], [29, 28], [30, 29], [30, 16], [31, 3], [32, 31], [32, 30], [33, 3], [34, 33], [34, 32], [35, 34], [36, 35], [37, 27], [37, 36], [38, 32], [38, 37], [39, 38], [40, 39], [41, 40], [42, 13], [43, 42], [45, 4], [45, 61], [46, 45], [46, 32], [47, 39], [48, 13], [49, 47], [50, 48], [51, 46], [53, 4], [53, 61], [54, 53], [55, 13], [57, 55], [58, 54], [60, 60], [60, 5], [61, 61], [61, 4], [62, 60], [62, 5], [63, 62], [64, 13], [65, 64], [68, 51], [68, 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/aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1_aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.jsonl.gz", "strip_func_name": "sub_41A093", "query": "\n\n\n__int64 __fastcall sub_41A093(_DWORD *a1, const char *a2, int a3, __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 v6; // rdx\n__int64 v7; // rcx\n__int64 v8; // rdx\nconst char *v11; // [rsp+10h] [rbp-20h]\n__int64 v12; // [rsp+20h] [rbp-10h]\nchar *s1; // [rsp+28h] [rbp-8h]\n\nv11 = a2;\nv6 = qword_43AD50;\ns1 = *(char **)(qword_43AD50 + 8LL * (unsigned int)*a1);\nwhile ( 1 )\n{\nif ( !a3 )\nsub_419F5D((__int64)s1, (__int64)a2, v6, a4, a5, a6);\na2 = *(const char **)v11;\nif ( !strcmp(s1, *(const char **)v11) )\nbreak;\n--a3;\nv11 += 24;\n}\nif ( !*((_DWORD *)v11 + 2) )\nreturn (*((__int64 (__fastcall **)(char *, _QWORD))v11 + 2))(s1, 0LL);\nv7 = qword_43AD50;\nv8 = (unsigned int)(*a1 + 1);\n*a1 = v8;\nv12 = *(_QWORD *)(v7 + 8LL * (unsigned int)*a1);\nif ( !v12 )\nsub_419F7F((__int64)s1, (__int64)a2, v8, v7, a5, a6);\nreturn (*((__int64 (__fastcall **)(char *, __int64))v11 + 2))(s1, v12);\n}\n\n\n\nQ:[a3,a1,a2,v8,v12,s1,sub_41A093,sub_419F5D,sub_419F7F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'OptCount', 'a1': 'ArgNum', 'a2': 'OptTab', 'v8': 'OptCount', 'v12': 'Arg', 's1': 'Opt', 'sub_41A093': 'LongOption', 'sub_419F5D': 'UnknownOption', 'sub_419F7F': 'NeedArg'}"}
command_erase2
a8fcb0344b609795bab1802dba01c96a4d4959f5a9e829e22634f7c43955b254
coreboot
chrome-ec
NA
static int command_erase2(struct common_hnd *chnd, uint32_t len, uint32_t off, uint32_t reset) { int res = -EIO; int page = 0; uint32_t remaining = len; /* * TODOD(b/<>): * Using sector erase instead of chip erase * For some new chip , the chip erase may not work * well on the original flow */ printf("Erasing flash...erase size=%d\n", len); if (off != 0 || len != chnd->flash_size) { fprintf(stderr, "Only full chip erase is supported\n"); return -EINVAL; } if (spi_flash_follow_mode(chnd, "erase") < 0) goto failed_erase; while (remaining) { draw_spinner(remaining, len); if (spi_flash_command_short(chnd, SPI_CMD_WRITE_ENABLE, "write enable for erase") < 0) goto failed_erase; if (spi_check_write_enable(chnd, "erase") < 0) goto failed_erase; /* do sector erase */ if (spi_flash_command_short(chnd, spi_cmd_sector_erase, "sector erase") < 0) goto failed_erase; if (spi_flash_set_erase_page(chnd, page, "sector erase") < 0) goto failed_erase; if (spi_poll_busy(chnd, "erase") < 0) goto failed_erase; if (spi_flash_command_short(chnd, SPI_CMD_WRITE_DISABLE, "write disable for erase") < 0) goto failed_erase; if (reset) { printf("\n\rreset to prevent the watchdog reset...\n"); break; } page += sector_erase_pages; remaining -= sector_erase_pages * PAGE_SIZE; draw_spinner(remaining, len); } /* No error so far */ printf("\n\rErasing Done.\n"); res = 0; failed_erase: if (spi_flash_command_short(chnd, SPI_CMD_WRITE_DISABLE, "write disable exit erase") < 0) res = -EIO; if (spi_flash_follow_mode_exit(chnd, "erase") < 0) res = -EIO; return res; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404EB0", "function_addr": 4214448, "binary_name": "a8fcb0344b609795bab1802dba01c96a4d4959f5a9e829e22634f7c43955b254.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_20], edx"], [6, "mov [rbp+var_24], ecx"], [7, "mov [rbp+var_4], 0FFFFFFFBh"], [8, "mov [rbp+var_8], 0"], [9, "mov eax, [rbp+var_1C]"], [10, "mov [rbp+var_C], eax"], [11, "mov eax, [rbp+var_1C]"], [12, "mov esi, eax"], [13, "mov edi, offset aErasingFlashEr"], [14, "mov eax, 0"], [15, "call _printf"], [16, "cmp [rbp+var_20], 0"], [17, "jnz short loc_404EFF"], [18, "mov rax, [rbp+var_18]"], [19, "mov eax, [rax+60h]"], [20, "cmp [rbp+var_1C], eax"], [21, "jz short loc_404F27"], [22, "mov rax, cs:stderr"], [23, "mov rcx, rax"], [24, "mov edx, 22h "], [25, "mov esi, 1"], [26, "mov edi, offset aOnlyFullChipEr"], [27, "call _fwrite"], [28, "mov eax, 0FFFFFFEAh"], [29, "jmp locret_4050AF"], [30, "mov rax, [rbp+var_18]"], [31, "mov esi, offset aErase"], [32, "mov rdi, rax"], [33, "call sub_403AC9"], [34, "test eax, eax"], [35, "js loc_40505C"], [36, "jmp loc_40503F"], [37, "mov edx, [rbp+var_1C]"], [38, "mov eax, [rbp+var_C]"], [39, "mov esi, edx"], [40, "mov edi, eax"], [41, "call sub_40458F"], [42, "mov rax, [rbp+var_18]"], [43, "mov edx, offset aWriteEnableFor_0"], [44, "mov esi, 6"], [45, "mov rdi, rax"], [46, "call sub_403C8A"], [47, "test eax, eax"], [48, "js loc_40505F"], [49, "mov rax, [rbp+var_18]"], [50, "mov esi, offset aErase"], [51, "mov rdi, rax"], [52, "call sub_403EA5"], [53, "test eax, eax"], [54, "js loc_405062"], [55, "movzx eax, cs:byte_40C241"], [56, "movzx ecx, al"], [57, "mov rax, [rbp+var_18]"], [58, "mov edx, offset aSectorErase"], [59, "mov esi, ecx"], [60, "mov rdi, rax"], [61, "call sub_403C8A"], [62, "test eax, eax"], [63, "js loc_405065"], [64, "mov ecx, [rbp+var_8]"], [65, "mov rax, [rbp+var_18]"], [66, "mov edx, offset aSectorErase"], [67, "mov esi, ecx"], [68, "mov rdi, rax"], [69, "call sub_403D49"], [70, "test eax, eax"], [71, "js loc_405068"], [72, "mov rax, [rbp+var_18]"], [73, "mov esi, offset aErase"], [74, "mov rdi, rax"], [75, "call sub_403DF3"], [76, "test eax, eax"], [77, "js loc_40506B"], [78, "mov rax, [rbp+var_18]"], [79, "mov edx, offset aWriteDisableFo_0"], [80, "mov esi, 4"], [81, "mov rdi, rax"], [82, "call sub_403C8A"], [83, "test eax, eax"], [84, "js short loc_40506E"], [85, "cmp [rbp+var_24], 0"], [86, "jz short loc_405013"], [87, "mov edi, offset aResetToPrevent"], [88, "call _puts"], [89, "jmp short loc_405049"], [90, "movzx eax, cs:byte_40C242"], [91, "movzx eax, al"], [92, "add [rbp+var_8], eax"], [93, "movzx eax, cs:byte_40C242"], [94, "movzx eax, al"], [95, "shl eax, 8"], [96, "sub [rbp+var_C], eax"], [97, "mov edx, [rbp+var_1C]"], [98, "mov eax, [rbp+var_C]"], [99, "mov esi, edx"], [100, "mov edi, eax"], [101, "call sub_40458F"], [102, "cmp [rbp+var_C], 0"], [103, "jnz loc_404F45"], [104, "mov edi, offset aErasingDone"], [105, "call _puts"], [106, "mov [rbp+var_4], 0"], [107, "jmp short loc_40506F"], [108, "nop"], [109, "jmp short loc_40506F"], [110, "nop"], [111, "jmp short loc_40506F"], [112, "nop"], [113, "jmp short loc_40506F"], [114, "nop"], [115, "jmp short loc_40506F"], [116, "nop"], [117, "jmp short loc_40506F"], [118, "nop"], [119, "jmp short loc_40506F"], [120, "nop"], [121, "mov rax, [rbp+var_18]"], [122, "mov edx, offset aWriteDisableEx_0"], [123, "mov esi, 4"], [124, "mov rdi, rax"], [125, "call sub_403C8A"], [126, "test eax, eax"], [127, "jns short loc_405090"], [128, "mov [rbp+var_4], 0FFFFFFFBh"], [129, "mov rax, [rbp+var_18]"], [130, "mov esi, offset aErase"], [131, "mov rdi, rax"], [132, "call sub_403B9D"], [133, "test eax, eax"], [134, "jns short loc_4050AC"], [135, "mov [rbp+var_4], 0FFFFFFFBh"], [136, "mov eax, [rbp+var_4]"], [137, "leave"], [138, "retn"]], "data_dep": [[9, 4], [10, 9], [11, 4], [12, 11], [16, 5], [17, 16], [18, 3], [19, 18], [20, 19], [20, 4], [21, 20], [23, 22], [30, 3], [32, 30], [34, 33], [35, 34], [37, 4], [38, 96], [38, 10], [39, 37], [40, 38], [42, 3], [45, 42], [47, 46], [48, 47], [49, 3], [51, 49], [53, 52], [54, 53], [56, 55], [57, 3], [59, 56], [60, 57], [62, 61], [63, 62], [64, 8], [64, 92], [65, 3], [67, 64], [68, 65], [70, 69], [71, 70], [72, 3], [74, 72], [76, 75], [77, 76], [78, 3], [81, 78], [83, 82], [84, 83], [85, 6], [86, 85], [91, 90], [92, 8], [92, 92], [92, 91], [94, 93], [95, 94], [96, 95], [96, 10], [96, 96], [97, 4], [98, 96], [99, 97], [100, 98], [102, 10], [102, 96], [103, 102], [121, 3], [124, 121], [126, 125], [127, 126], [129, 3], [131, 129], [133, 132], [134, 133], [136, 7], [136, 135], [136, 106], [136, 128], [138, 136], [138, 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/a8fcb0344b609795bab1802dba01c96a4d4959f5a9e829e22634f7c43955b254_a8fcb0344b609795bab1802dba01c96a4d4959f5a9e829e22634f7c43955b254.jsonl.gz", "strip_func_name": "sub_404EB0", "query": "\n\n\n__int64 __fastcall sub_404EB0(__int64 a1, unsigned int a2, int a3, int a4)\n{\n__int64 result; // rax\nint v7; // [rsp+24h] [rbp-Ch]\n__int16 v8; // [rsp+28h] [rbp-8h]\nunsigned int v9; // [rsp+2Ch] [rbp-4h]\n\nv9 = -5;\nv8 = 0;\nv7 = a2;\nprintf(\"Erasing flash...erase size=%d\\n\", a2);\nif ( !a3 && a2 == *(_DWORD *)(a1 + 96) )\n{\nif ( (int)sub_403AC9(a1, \"erase\") >= 0 )\n{\nwhile ( v7 )\n{\nsub_40458F(v7, a2);\nif ( (int)sub_403C8A(a1, 6, \"write enable for erase\") < 0\n|| (int)sub_403EA5(a1, \"erase\") < 0\n|| (int)sub_403C8A(a1, byte_40C241, \"sector erase\") < 0\n|| (int)sub_403D49(a1, v8, \"sector erase\") < 0\n|| (int)sub_403DF3(a1, \"erase\") < 0\n|| (int)sub_403C8A(a1, 4, \"write disable for erase\") < 0 )\n{\ngoto LABEL_17;\n}\nif ( a4 )\n{\nputs(\"\\n\\rreset to prevent the watchdog reset...\");\nbreak;\n}\nv8 += (unsigned __int8)byte_40C242;\nv7 -= (unsigned __int8)byte_40C242 << 8;\nsub_40458F(v7, a2);\n}\nputs(\"\\n\\rErasing Done.\");\nv9 = 0;\n}\nLABEL_17:\nif ( (int)sub_403C8A(a1, 4, \"write disable exit erase\") < 0 )\nv9 = -5;\nif ( (int)sub_403B9D(a1, \"erase\") < 0 )\nv9 = -5;\nresult = v9;\n}\nelse\n{\nfwrite(\"Only full chip erase is supported\\n\", 1uLL, 0x22uLL, stderr);\nresult = 4294967274LL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v7,v8,v9,sub_404EB0,sub_403AC9,sub_40458F,sub_403C8A,sub_403EA5,sub_403D49,sub_403DF3,sub_403B9D,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'off', 'a4': 'reset', 'a1': 'chnd', 'a2': 'len', 'v7': 'remaining', 'v8': 'page', 'v9': 'res', 'sub_404EB0': 'command_erase2', 'sub_403AC9': 'spi_flash_follow_mode', 'sub_40458F': 'draw_spinner', 'sub_403C8A': 'spi_flash_command_short', 'sub_403EA5': 'spi_check_write_enable', 'sub_403D49': 'spi_flash_set_erase_page', 'sub_403DF3': 'spi_poll_busy', 'sub_403B9D': 'spi_flash_follow_mode_exit'}"}
JS_ToFloat64
05a784cbaf63e77696cf61106257fb3d5370a16def412a568e4bf7f4bb9147ce
guidovranken
libfuzzer-js
NA
int JS_ToFloat64(JSContext *ctx, double *pres, JSValueConst val) { return JS_ToFloat64Free(ctx, pres, JS_DupValue(ctx, val)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42597B", "function_addr": 4348283, "binary_name": "05a784cbaf63e77696cf61106257fb3d5370a16def412a568e4bf7f4bb9147ce.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_20], rdx"], [6, "mov [rbp+var_18], rcx"], [7, "mov rcx, [rbp+var_20]"], [8, "mov rdx, [rbp+var_18]"], [9, "mov rax, [rbp+var_8]"], [10, "mov rsi, rcx"], [11, "mov rdi, rax"], [12, "call sub_40A91D"], [13, "mov rsi, [rbp+var_10]"], [14, "mov rdi, [rbp+var_8]"], [15, "mov rcx, rdx"], [16, "mov rdx, rax"], [17, "call sub_425905"], [18, "leave"], [19, "retn"]], "data_dep": [[7, 5], [8, 6], [9, 3], [10, 7], [11, 9], [13, 4], [14, 3], [15, 8], [16, 12], [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/05a784cbaf63e77696cf61106257fb3d5370a16def412a568e4bf7f4bb9147ce_05a784cbaf63e77696cf61106257fb3d5370a16def412a568e4bf7f4bb9147ce.jsonl.gz", "strip_func_name": "sub_42597B", "query": "\n\n\n__int64 __fastcall sub_42597B(__int64 a1, double *a2, _DWORD *a3, unsigned int a4, __m128 a5, __m128 a6, __m128 a7, __m128 a8, double a9, double a10, __m128 a11, __m128 a12)\n{\n_DWORD *v12; // rax\n__int64 v13; // rdx\n__int64 v14; // r8\n__int64 v15; // r9\n__m128 v16; // xmm4\n__m128 v17; // xmm5\n\nv12 = sub_40A91D(a1, a3, a4);\nreturn sub_425905(a1, a2, v12, v13, v14, v15, a5, a6, a7, a8, v16, v17, a11, a12);\n}\n\n\n\nQ:[a3,a1,a2,v13,sub_42597B,sub_40A91D,sub_425905,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'val', 'a1': 'ctx', 'a2': 'pres', 'v13': 'val', 'sub_42597B': 'JS_ToFloat64', 'sub_40A91D': 'JS_DupValue_0', 'sub_425905': 'JS_ToFloat64Free'}"}
janet_dobytes
34d708bcb60d5af2e39328b237b23bc6bb4df80dc158ca9262fb4bf1d3328aba
janet-lang
janet
NA
int janet_dobytes(JanetTable *env, const uint8_t *bytes, int32_t len, const char *sourcePath, Janet *out) { JanetParser parser; int errflags = 0, done = 0; int32_t index = 0; Janet ret = janet_wrap_nil(); JanetFiber *fiber = NULL; const uint8_t *where = sourcePath ? janet_cstring(sourcePath) : NULL; if (where) janet_gcroot(janet_wrap_string(where)); if (NULL == sourcePath) sourcePath = "<unknown>"; janet_parser_init(&parser); /* While we haven't seen an error */ while (!done) { /* Evaluate parsed values */ while (janet_parser_has_more(&parser)) { Janet form = janet_parser_produce(&parser); JanetCompileResult cres = janet_compile(form, env, where); if (cres.status == JANET_COMPILE_OK) { JanetFunction *f = janet_thunk(cres.funcdef); fiber = janet_fiber(f, 64, 0, NULL); fiber->env = env; JanetSignal status = janet_continue(fiber, janet_wrap_nil(), &ret); if (status != JANET_SIGNAL_OK && status != JANET_SIGNAL_EVENT) { janet_stacktrace_ext(fiber, ret, ""); errflags |= 0x01; done = 1; } } else { ret = janet_wrap_string(cres.error); int32_t line = (int32_t) parser.line; int32_t col = (int32_t) parser.column; if ((cres.error_mapping.line > 0) && (cres.error_mapping.column > 0)) { line = cres.error_mapping.line; col = cres.error_mapping.column; } if (cres.macrofiber) { janet_eprintf("%s:%d:%d: compile error", sourcePath, line, col); janet_stacktrace_ext(cres.macrofiber, ret, ""); } else { janet_eprintf("%s:%d:%d: compile error: %s\n", sourcePath, line, col, (const char *)cres.error); } errflags |= 0x02; done = 1; } } if (done) break; /* Dispatch based on parse state */ switch (janet_parser_status(&parser)) { case JANET_PARSE_DEAD: done = 1; break; case JANET_PARSE_ERROR: { const char *e = janet_parser_error(&parser); errflags |= 0x04; ret = janet_cstringv(e); int32_t line = (int32_t) parser.line; int32_t col = (int32_t) parser.column; janet_eprintf("%s:%d:%d: parse error: %s\n", sourcePath, line, col, e); done = 1; break; } case JANET_PARSE_ROOT: case JANET_PARSE_PENDING: if (index >= len) { janet_parser_eof(&parser); } else { janet_parser_consume(&parser, bytes[index++]); } break; } } /* Clean up and return errors */ janet_parser_deinit(&parser); if (where) janet_gcunroot(janet_wrap_string(where)); #ifdef JANET_EV /* Enter the event loop if we are not already in it */ if (janet_vm.stackn == 0) { if (fiber) { janet_gcroot(janet_wrap_fiber(fiber)); } janet_loop(); if (fiber) { janet_gcunroot(janet_wrap_fiber(fiber)); ret = fiber->last_value; } } #endif if (out) *out = ret; return errflags; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "janet_dobytes", "function_addr": 4522198, "binary_name": "34d708bcb60d5af2e39328b237b23bc6bb4df80dc158ca9262fb4bf1d3328aba.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 120h"], [3, "mov [rbp+var_F8], rdi"], [4, "mov [rbp+var_100], rsi"], [5, "mov [rbp+var_104], edx"], [6, "mov [rbp+var_110], rcx"], [7, "mov [rbp+var_118], r8"], [8, "mov [rbp+var_4], 0"], [9, "mov [rbp+var_8], 0"], [10, "mov [rbp+var_C], 0"], [11, "mov rdi, 0FFF8800000000001h"], [12, "call janet_nanbox_from_bits"], [13, "mov [rbp+var_B8], rax"], [14, "cmp [rbp+var_110], 0"], [15, "jz short loc_450149"], [16, "mov rax, [rbp+var_110]"], [17, "mov rdi, rax"], [18, "call janet_cstring"], [19, "jmp short loc_45014E"], [20, "mov eax, 0"], [21, "mov [rbp+var_18], rax"], [22, "cmp [rbp+var_18], 0"], [23, "jz short loc_450177"], [24, "mov rax, [rbp+var_18]"], [25, "mov rsi, 0FFFA000000000000h"], [26, "mov rdi, rax"], [27, "call janet_nanbox_from_cpointer"], [28, "mov rdi, rax"], [29, "call janet_gcroot"], [30, "cmp [rbp+var_110], 0"], [31, "jnz short loc_45018F"], [32, "lea rax, aUnknown"], [33, "mov [rbp+var_110], rax"], [34, "lea rax, [rbp+var_B0]"], [35, "mov rdi, rax"], [36, "call janet_parser_init"], [37, "jmp loc_4504A7"], [38, "lea rax, [rbp+var_B0]"], [39, "mov rdi, rax"], [40, "call janet_parser_produce"], [41, "mov [rbp+var_C0], rax"], [42, "lea rax, [rbp+var_F0]"], [43, "mov rcx, [rbp+var_18]"], [44, "mov rdx, [rbp+var_F8]"], [45, "mov rsi, [rbp+var_C0]"], [46, "mov rdi, rax"], [47, "call janet_compile"], [48, "mov eax, [rbp+var_D0]"], [49, "test eax, eax"], [50, "jnz loc_450295"], [51, "mov rax, [rbp+var_F0]"], [52, "mov rdi, rax"], [53, "call janet_thunk"], [54, "mov [rbp+var_30], rax"], [55, "mov rax, [rbp+var_30]"], [56, "mov ecx, 0"], [57, "mov edx, 0"], [58, "mov esi, 40h "], [59, "mov rdi, rax"], [60, "call janet_fiber"], [61, "mov [rbp+var_38], rax"], [62, "mov rax, [rbp+var_38]"], [63, "mov rdx, [rbp+var_F8]"], [64, "mov [rax+28h], rdx"], [65, "mov rdi, 0FFF8800000000001h"], [66, "call janet_nanbox_from_bits"], [67, "mov rcx, rax"], [68, "lea rdx, [rbp+var_B8]"], [69, "mov rax, [rbp+var_38]"], [70, "mov rsi, rcx"], [71, "mov rdi, rax"], [72, "call janet_continue"], [73, "mov [rbp+var_3C], eax"], [74, "cmp [rbp+var_3C], 0"], [75, "jz loc_450356"], [76, "cmp [rbp+var_3C], 0Dh"], [77, "jz loc_450356"], [78, "mov rcx, [rbp+var_B8]"], [79, "mov rax, [rbp+var_38]"], [80, "lea rdx, unk_46C480"], [81, "mov rsi, rcx"], [82, "mov rdi, rax"], [83, "call janet_stacktrace_ext"], [84, "or [rbp+var_4], 1"], [85, "mov [rbp+var_8], 1"], [86, "jmp loc_450356"], [87, "mov rax, [rbp+var_E8]"], [88, "mov rsi, 0FFFA000000000000h"], [89, "mov rdi, rax"], [90, "call janet_nanbox_from_cpointer"], [91, "mov [rbp+var_B8], rax"], [92, "mov rax, [rbp+var_E0]"], [93, "test rax, rax"], [94, "jz short loc_450312"], [95, "mov rax, cs:stderr_ptr"], [96, "mov rax, [rax]"], [97, "mov rdx, [rbp+var_110]"], [98, "mov rcx, rdx"], [99, "lea rdx, aCompileErrorIn"], [100, "mov rsi, rax"], [101, "lea rdi, aErr_0"], [102, "mov eax, 0"], [103, "call janet_dynprintf"], [104, "mov rax, [rbp+var_E0]"], [105, "mov rcx, [rbp+var_B8]"], [106, "lea rdx, unk_46C480"], [107, "mov rsi, rcx"], [108, "mov rdi, rax"], [109, "call janet_stacktrace_ext"], [110, "jmp short loc_45034B"], [111, "mov rcx, [rbp+var_E8]"], [112, "mov rax, cs:stderr_ptr"], [113, "mov rax, [rax]"], [114, "mov rdx, [rbp+var_110]"], [115, "mov r8, rcx"], [116, "mov rcx, rdx"], [117, "lea rdx, aCompileErrorIn_0"], [118, "mov rsi, rax"], [119, "lea rdi, aErr_0"], [120, "mov eax, 0"], [121, "call janet_dynprintf"], [122, "or [rbp+var_4], 2"], [123, "mov [rbp+var_8], 1"], [124, "lea rax, [rbp+var_B0]"], [125, "mov rdi, rax"], [126, "call janet_parser_has_more"], [127, "test eax, eax"], [128, "jnz loc_4501A3"], [129, "cmp [rbp+var_8], 0"], [130, "jnz loc_4504B3"], [131, "lea rax, [rbp+var_B0]"], [132, "mov rdi, rax"], [133, "call janet_parser_status"], [134, "cmp eax, 3"], [135, "jz short loc_4503B8"], [136, "cmp eax, 3"], [137, "ja loc_4504A7"], [138, "cmp eax, 2"], [139, "jz loc_45045D"], [140, "cmp eax, 2"], [141, "ja loc_4504A7"], [142, "test eax, eax"], [143, "jz loc_45045D"], [144, "cmp eax, 1"], [145, "jz short loc_4503C4"], [146, "jmp loc_4504A7"], [147, "mov [rbp+var_8], 1"], [148, "jmp loc_4504A7"], [149, "lea rax, [rbp+var_B0]"], [150, "mov rdi, rax"], [151, "call janet_parser_error"], [152, "mov [rbp+var_20], rax"], [153, "or [rbp+var_4], 4"], [154, "mov rax, [rbp+var_20]"], [155, "mov rdi, rax"], [156, "call janet_cstring"], [157, "mov rsi, 0FFFA000000000000h"], [158, "mov rdi, rax"], [159, "call janet_nanbox_from_cpointer"], [160, "mov [rbp+var_B8], rax"], [161, "mov rax, [rbp+var_60]"], [162, "mov [rbp+var_24], eax"], [163, "mov rax, [rbp+var_58]"], [164, "mov [rbp+var_28], eax"], [165, "mov rax, cs:stderr_ptr"], [166, "mov rax, [rax]"], [167, "mov esi, [rbp+var_28]"], [168, "mov ecx, [rbp+var_24]"], [169, "mov rdx, [rbp+var_110]"], [170, "sub rsp, 8"], [171, "push [rbp+var_20]"], [172, "mov r9d, esi"], [173, "mov r8d, ecx"], [174, "mov rcx, rdx"], [175, "lea rdx, aSDDParseErrorS"], [176, "mov rsi, rax"], [177, "lea rdi, aErr_0"], [178, "mov eax, 0"], [179, "call janet_dynprintf"], [180, "add rsp, 10h"], [181, "mov [rbp+var_8], 1"], [182, "jmp short loc_4504A7"], [183, "mov eax, [rbp+var_C]"], [184, "cmp eax, [rbp+var_104]"], [185, "jl short loc_450479"], [186, "lea rax, [rbp+var_B0]"], [187, "mov rdi, rax"], [188, "call janet_parser_eof"], [189, "jmp short loc_4504A6"], [190, "mov eax, [rbp+var_C]"], [191, "lea edx, [rax+1]"], [192, "mov [rbp+var_C], edx"], [193, "movsxd rdx, eax"], [194, "mov rax, [rbp+var_100]"], [195, "add rax, rdx"], [196, "movzx eax, byte ptr [rax]"], [197, "movzx edx, al"], [198, "lea rax, [rbp+var_B0]"], [199, "mov esi, edx"], [200, "mov rdi, rax"], [201, "call janet_parser_consume"], [202, "nop"], [203, "cmp [rbp+var_8], 0"], [204, "jz loc_450356"], [205, "jmp short loc_4504B4"], [206, "nop"], [207, "lea rax, [rbp+var_B0]"], [208, "mov rdi, rax"], [209, "call janet_parser_deinit"], [210, "cmp [rbp+var_18], 0"], [211, "jz short loc_4504E8"], [212, "mov rax, [rbp+var_18]"], [213, "mov rsi, 0FFFA000000000000h"], [214, "mov rdi, rax"], [215, "call janet_nanbox_from_cpointer"], [216, "mov rdi, rax"], [217, "call janet_gcunroot"], [218, "mov rax, fs:0"], [219, "lea rax, [rax-19C0h]"], [220, "mov eax, [rax+18h]"], [221, "test eax, eax"], [222, "jnz short loc_450522"], [223, "mov rax, [rbp+var_B8]"], [224, "mov rdi, rax"], [225, "call janet_gcroot"], [226, "call janet_loop"], [227, "mov rax, [rbp+var_B8]"], [228, "mov rdi, rax"], [229, "call janet_gcunroot"], [230, "cmp [rbp+var_118], 0"], [231, "jz short loc_45053D"], [232, "mov rax, [rbp+var_118]"], [233, "mov rdx, [rbp+var_B8]"], [234, "mov [rax], rdx"], [235, "mov eax, [rbp+var_4]"], [236, "leave"], [237, "retn"]], "data_dep": [[13, 12], [14, 6], [15, 14], [16, 6], [17, 16], [21, 18], [21, 20], [22, 21], [23, 22], [24, 21], [26, 24], [28, 27], [30, 6], [31, 30], [32, 18], [32, 20], [32, 29], [33, 32], [34, 18], [34, 32], [34, 20], [34, 29], [35, 34], [38, 127], [39, 38], [41, 40], [42, 40], [43, 21], [44, 3], [45, 41], [46, 42], [49, 48], [50, 49], [52, 51], [54, 53], [55, 54], [59, 55], [61, 60], [62, 61], [63, 3], [64, 62], [64, 63], [67, 66], [68, 91], [68, 13], [68, 63], [68, 160], [69, 61], [70, 67], [71, 69], [73, 72], [74, 73], [75, 74], [76, 73], [77, 76], [78, 13], [78, 160], [78, 91], [79, 61], [80, 68], [81, 78], [82, 79], [84, 84], [84, 8], [84, 122], [84, 153], [89, 87], [91, 90], [93, 92], [94, 93], [96, 95], [96, 64], [97, 33], [97, 6], [98, 97], [99, 97], [100, 96], [101, 89], [105, 91], [106, 99], [107, 105], [108, 104], [113, 64], [113, 112], [114, 33], [114, 6], [115, 111], [116, 114], [117, 114], [118, 113], [119, 89], [122, 122], [122, 153], [122, 84], [122, 8], [124, 179], [124, 188], [124, 133], [124, 83], [124, 142], [124, 201], [124, 36], [124, 121], [124, 109], [124, 72], [125, 124], [127, 126], [128, 127], [129, 9], [129, 123], [129, 181], [129, 147], [129, 85], [130, 129], [131, 127], [132, 131], [134, 133], [135, 134], [136, 133], [137, 136], [138, 133], [139, 138], [140, 133], [141, 140], [142, 133], [143, 142], [144, 142], [145, 144], [149, 142], [150, 149], [152, 151], [153, 153], [153, 84], [153, 8], [153, 122], [154, 152], [155, 154], [158, 156], [160, 159], [162, 161], [164, 163], [166, 165], [166, 64], [167, 164], [168, 162], [169, 33], [169, 6], [170, 2], [170, 180], [171, 152], [172, 167], [173, 168], [174, 169], [175, 169], [176, 166], [177, 158], [180, 170], [183, 192], [183, 10], [184, 183], [184, 5], [185, 184], [186, 183], [187, 186], [190, 10], [190, 192], [191, 64], [191, 68], [191, 175], [191, 106], [191, 197], [191, 117], [191, 190], [191, 80], [192, 191], [193, 190], [194, 4], [195, 193], [195, 194], [196, 64], [196, 195], [197, 196], [198, 196], [199, 197], [200, 198], [203, 147], [203, 181], [203, 85], [203, 9], [203, 123], [204, 203], [207, 127], [207, 179], [207, 188], [207, 133], [207, 142], [207, 201], [207, 36], [208, 207], [210, 21], [211, 210], [212, 21], [214, 212], [216, 215], [219, 64], [219, 218], [220, 64], [220, 219], [221, 220], [222, 221], [223, 91], [223, 13], [223, 160], [224, 223], [227, 13], [227, 160], [227, 91], [228, 227], [230, 7], [231, 230], [232, 7], [233, 91], [233, 13], [233, 160], [234, 233], [234, 232], [235, 8], [235, 122], [235, 153], [235, 84], [237, 235]]}
{"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/34d708bcb60d5af2e39328b237b23bc6bb4df80dc158ca9262fb4bf1d3328aba_34d708bcb60d5af2e39328b237b23bc6bb4df80dc158ca9262fb4bf1d3328aba.jsonl.gz", "strip_func_name": "janet_dobytes", "query": "\n\n\n__int64 __fastcall janet_dobytes(__int64 a1, __int64 a2, int a3, __int64 a4, _QWORD *a5)\n{\n__int64 v5; // rdx\n__int64 v6; // rcx\n__int64 v7; // r8\n__int64 v8; // r9\n__int64 v9; // rax\n__int64 v10; // rax\n__int64 v11; // rax\nunsigned int v12; // eax\n__int64 v13; // rax\nint v14; // eax\n__int64 v15; // rax\n__int64 v20; // [rsp+20h] [rbp-100h]\n__int64 v21[2]; // [rsp+30h] [rbp-F0h] BYREF\n__int64 v22; // [rsp+40h] [rbp-E0h]\nint v23; // [rsp+50h] [rbp-D0h]\n__int64 v24; // [rsp+60h] [rbp-C0h]\n__int64 v25; // [rsp+68h] [rbp-B8h] BYREF\nvoid *v26[10]; // [rsp+70h] [rbp-B0h] BYREF\n__int64 v27; // [rsp+C0h] [rbp-60h]\n__int64 v28; // [rsp+C8h] [rbp-58h]\nint v29; // [rsp+E4h] [rbp-3Ch]\n__int64 v30; // [rsp+E8h] [rbp-38h]\n__int64 v31; // [rsp+F0h] [rbp-30h]\nint v32; // [rsp+F8h] [rbp-28h]\nint v33; // [rsp+FCh] [rbp-24h]\n__int64 v34; // [rsp+100h] [rbp-20h]\n__int64 v35; // [rsp+108h] [rbp-18h]\nint v36; // [rsp+114h] [rbp-Ch]\nint v37; // [rsp+118h] [rbp-8h]\nunsigned int v38; // [rsp+11Ch] [rbp-4h]\n\nv20 = a2;\nv38 = 0;\nv37 = 0;\nv36 = 0;\nv25 = janet_nanbox_from_bits(0xFFF8800000000001LL);\nif ( a4 )\nv9 = janet_cstring(a4);\nelse\nv9 = 0LL;\nv35 = v9;\nif ( v9 )\n{\na2 = 0xFFFA000000000000LL;\nv10 = janet_nanbox_from_cpointer(v35, 0xFFFA000000000000LL);\njanet_gcroot(v10);\n}\njanet_parser_init((__int64)v26, a2, v5, v6, v7, v8);\nwhile ( !v37 )\n{\nwhile ( janet_parser_has_more((__int64)v26) )\n{\nv24 = janet_parser_produce((__int64)v26);\njanet_compile(v21, v24, a1, v35);\nif ( v23 )\n{\nv25 = janet_nanbox_from_cpointer(v21[1], 0xFFFA000000000000LL);\nif ( v22 )\n{\njanet_dynprintf((__int64)\"err\");\njanet_stacktrace_ext(v22, v25, (__int64)&unk_46C480);\n}\nelse\n{\njanet_dynprintf((__int64)\"err\");\n}\nv38 |= 2u;\nv37 = 1;\n}\nelse\n{\nv31 = janet_thunk(v21[0]);\nv30 = janet_fiber(v31, 64, 0, 0LL);\n*(_QWORD *)(v30 + 40) = a1;\nv11 = janet_nanbox_from_bits(0xFFF8800000000001LL);\nv29 = janet_continue(v30, v11, &v25);\nif ( v29 && v29 != 13 )\n{\njanet_stacktrace_ext(v30, v25, (__int64)&unk_46C480);\nv38 |= 1u;\nv37 = 1;\n}\n}\n}\nif ( v37 )\nbreak;\nv12 = janet_parser_status((__int64)v26);\nif ( v12 == 3 )\n{\nv37 = 1;\n}\nelse if ( v12 <= 3 )\n{\nif ( v12 == 2 || !v12 )\n{\nif ( v36 < a3 )\n{\nv14 = v36++;\njanet_parser_consume((__int64)v26, *(_BYTE *)(v14 + v20));\n}\nelse\n{\njanet_parser_eof((__int64)v26);\n}\n}\nelse\n{\nv34 = janet_parser_error((__int64)v26);\nv38 |= 4u;\nv13 = janet_cstring(v34);\nv25 = janet_nanbox_from_cpointer(v13, 0xFFFA000000000000LL);\nv33 = v27;\nv32 = v28;\njanet_dynprintf((__int64)\"err\");\nv37 = 1;\n}\n}\n}\njanet_parser_deinit(v26);\nif ( v35 )\n{\nv15 = janet_nanbox_from_cpointer(v35, 0xFFFA000000000000LL);\njanet_gcunroot(v15);\n}\nif ( !*(_DWORD *)(__readfsqword(0) - 6592 + 24) )\n{\njanet_gcroot(v25);\njanet_loop();\njanet_gcunroot(v25);\n}\nif ( a5 )\n*a5 = v25;\nreturn v38;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v5,v6,v7,v21,v24,v26,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'len', 'a4': 'sourcePath', 'a1': 'env', 'a2': 'bytes', 'a5': 'out', 'v5': 'len', 'v6': 'sourcePath', 'v7': 'out', 'v21': 'cres', 'v24': 'form', 'v26': 'parser', 'v29': 'status', 'v30': 'fiber', 'v31': 'f', 'v32': 'col', 'v33': 'line', 'v34': 'e', 'v35': 'where', 'v36': 'index', 'v37': 'done', 'v38': 'errflags'}"}
virtqueue_kick_prepare
29e4113bfd3fbc2c21f4909d106aedefdb53a375dcc4b6d32baa2735fcd7a441
XboxDev
xbox-linux
NA
bool virtqueue_kick_prepare(struct virtqueue *_vq) { struct vring_virtqueue *vq = to_vvq(_vq); return vq->packed_ring ? virtqueue_kick_prepare_packed(_vq) : virtqueue_kick_prepare_split(_vq); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409BCA", "function_addr": 4234186, "binary_name": "29e4113bfd3fbc2c21f4909d106aedefdb53a375dcc4b6d32baa2735fcd7a441.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov [rbp+var_8], rax"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rbp+var_10], rax"], [8, "mov rax, [rbp+var_10]"], [9, "movzx eax, byte ptr [rax+38h]"], [10, "test al, al"], [11, "jz short loc_409C08"], [12, "mov rax, [rbp+var_18]"], [13, "mov rdi, rax"], [14, "call sub_408C5F"], [15, "movzx eax, al"], [16, "test eax, eax"], [17, "setnz al"], [18, "jmp short locret_409C1C"], [19, "mov rax, [rbp+var_18]"], [20, "mov rdi, rax"], [21, "call sub_4075DA"], [22, "movzx eax, al"], [23, "test eax, eax"], [24, "setnz al"], [25, "leave"], [26, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 3], [13, 12], [15, 14], [16, 15], [17, 16], [19, 3], [20, 19], [22, 21], [23, 22], [24, 23], [26, 24], [26, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/29e4113bfd3fbc2c21f4909d106aedefdb53a375dcc4b6d32baa2735fcd7a441_29e4113bfd3fbc2c21f4909d106aedefdb53a375dcc4b6d32baa2735fcd7a441.jsonl.gz", "strip_func_name": "sub_409BCA", "query": "\n\n\nbool __fastcall sub_409BCA(__int64 a1)\n{\nbool result; // al\n\nif ( *(_BYTE *)(a1 + 56) )\nresult = sub_408C5F(a1);\nelse\nresult = sub_4075DA(a1);\nreturn result;\n}\n\n\n\nQ:[a1,sub_409BCA,sub_408C5F,sub_4075DA,]\nAssistant: ", "hints": "[]", "response": "{'a1': '_vq', 'sub_409BCA': 'virtqueue_kick_prepare', 'sub_408C5F': 'virtqueue_kick_prepare_packed', 'sub_4075DA': 'virtqueue_kick_prepare_split'}"}
srtp_protect_mki
cf1695820213fbf6b72d0a2a2c8f7406ba3da1515cfec93bb0899b8d9d8f038e
AonCyberLabs
D-Modem
NA
srtp_err_status_t srtp_protect_mki(srtp_ctx_t *ctx, void *rtp_hdr, int *pkt_octet_len, unsigned int use_mki, unsigned int mki_index ) { srtp_hdr_t *hdr = (srtp_hdr_t *)rtp_hdr; uint32_t *enc_start; /* pointer to start of encrypted portion */ uint32_t *auth_start; /* pointer to start of auth. portion */ int enc_octet_len = 0; /* number of octets in encrypted portion */ srtp_xtd_seq_num_t est; /* estimated xtd_seq_num_t of *hdr */ int delta; /* delta of local pkt idx and that in hdr */ uint8_t *auth_tag = NULL; /* location of auth_tag within packet */ srtp_err_status_t status; int tag_len; srtp_stream_ctx_t *stream; uint32_t prefix_len; srtp_hdr_xtnd_t *xtn_hdr = NULL; unsigned int mki_size = 0; srtp_session_keys_t *session_keys = NULL; uint8_t* mki_location = NULL; int advance_packet_index = 0; debug_print(mod_srtp, "function srtp_protect", NULL); /* we assume the hdr is 32-bit aligned to start */ /* Verify RTP header */ status = srtp_validate_rtp_header(rtp_hdr, pkt_octet_len); if (status) return status; /* check the packet length - it must at least contain a full header */ if (*pkt_octet_len < octets_in_rtp_header) return srtp_err_status_bad_param; /* * look up ssrc in srtp_stream list, and process the packet with * the appropriate stream. if we haven't seen this stream before, * there's a template key for this srtp_session, and the cipher * supports key-sharing, then we assume that a new stream using * that key has just started up */ stream = srtp_get_stream(ctx, hdr->ssrc); if (stream == NULL) { if (ctx->stream_template != NULL) { srtp_stream_ctx_t *new_stream; /* allocate and initialize a new stream */ status = srtp_stream_clone(ctx->stream_template, hdr->ssrc, &new_stream); if (status) return status; /* add new stream to the head of the stream_list */ new_stream->next = ctx->stream_list; ctx->stream_list = new_stream; /* set direction to outbound */ new_stream->direction = dir_srtp_sender; /* set stream (the pointer used in this function) */ stream = new_stream; } else { /* no template stream, so we return an error */ return srtp_err_status_no_ctx; } } /* * verify that stream is for sending traffic - this check will * detect SSRC collisions, since a stream that appears in both * srtp_protect() and srtp_unprotect() will fail this test in one of * those functions. */ if (stream->direction != dir_srtp_sender) { if (stream->direction == dir_unknown) { stream->direction = dir_srtp_sender; } else { srtp_handle_event(ctx, stream, event_ssrc_collision); } } session_keys = srtp_get_session_keys_with_mki_index(stream, use_mki, mki_index); /* * Check if this is an AEAD stream (GCM mode). If so, then dispatch * the request to our AEAD handler. */ if (session_keys->rtp_cipher->algorithm == SRTP_AES_GCM_128 || session_keys->rtp_cipher->algorithm == SRTP_AES_GCM_256) { return srtp_protect_aead(ctx, stream, rtp_hdr, (unsigned int*)pkt_octet_len, session_keys, use_mki); } /* * update the key usage limit, and check it to make sure that we * didn't just hit either the soft limit or the hard limit, and call * the event handler if we hit either. */ switch(srtp_key_limit_update(session_keys->limit)) { case srtp_key_event_normal: break; case srtp_key_event_soft_limit: srtp_handle_event(ctx, stream, event_key_soft_limit); break; case srtp_key_event_hard_limit: srtp_handle_event(ctx, stream, event_key_hard_limit); return srtp_err_status_key_expired; default: break; } /* get tag length from stream */ tag_len = srtp_auth_get_tag_length(session_keys->rtp_auth); /* * find starting point for encryption and length of data to be * encrypted - the encrypted portion starts after the rtp header * extension, if present; otherwise, it starts after the last csrc, * if any are present * * if we're not providing confidentiality, set enc_start to NULL */ if (stream->rtp_services & sec_serv_conf) { enc_start = (uint32_t *)hdr + uint32s_in_rtp_header + hdr->cc; if (hdr->x == 1) { xtn_hdr = (srtp_hdr_xtnd_t *)enc_start; enc_start += (ntohs(xtn_hdr->length) + 1); } /* note: the passed size is without the auth tag */ if (!((uint8_t*)enc_start <= (uint8_t*)hdr + *pkt_octet_len)) return srtp_err_status_parse_err; enc_octet_len = (int)(*pkt_octet_len - ((uint8_t*)enc_start - (uint8_t*)hdr)); if (enc_octet_len < 0) return srtp_err_status_parse_err; } else { enc_start = NULL; } mki_location = (uint8_t *)hdr + *pkt_octet_len; mki_size = srtp_inject_mki(mki_location, session_keys, use_mki); /* * if we're providing authentication, set the auth_start and auth_tag * pointers to the proper locations; otherwise, set auth_start to NULL * to indicate that no authentication is needed */ if (stream->rtp_services & sec_serv_auth) { auth_start = (uint32_t *)hdr; auth_tag = (uint8_t *)hdr + *pkt_octet_len + mki_size; } else { auth_start = NULL; auth_tag = NULL; } /* * estimate the packet index using the start of the replay window * and the sequence number from the header */ status = srtp_get_est_pkt_index(hdr, stream, &est, &delta); if (status && (status != srtp_err_status_pkt_idx_adv)) return status; if (status == srtp_err_status_pkt_idx_adv) advance_packet_index = 1; if (advance_packet_index) { srtp_rdbx_set_roc_seq(&stream->rtp_rdbx, (uint32_t)(est >> 16), (uint16_t)(est & 0xFFFF)); stream->pending_roc = 0; srtp_rdbx_add_index(&stream->rtp_rdbx, 0); } else { status = srtp_rdbx_check(&stream->rtp_rdbx, delta); if (status) { if (status != srtp_err_status_replay_fail || !stream->allow_repeat_tx) return status; /* we've been asked to reuse an index */ } srtp_rdbx_add_index(&stream->rtp_rdbx, delta); } #ifdef NO_64BIT_MATH debug_print2(mod_srtp, "estimated packet index: %08x%08x", high32(est),low32(est)); #else debug_print(mod_srtp, "estimated packet index: %016llx", est); #endif /* * if we're using rindael counter mode, set nonce and seq */ if (session_keys->rtp_cipher->type->id == SRTP_AES_ICM_128 || session_keys->rtp_cipher->type->id == SRTP_AES_ICM_192 || session_keys->rtp_cipher->type->id == SRTP_AES_ICM_256) { v128_t iv; iv.v32[0] = 0; iv.v32[1] = hdr->ssrc; #ifdef NO_64BIT_MATH iv.v64[1] = be64_to_cpu(make64((high32(est) << 16) | (low32(est) >> 16), low32(est) << 16)); #else iv.v64[1] = be64_to_cpu(est << 16); #endif status = srtp_cipher_set_iv(session_keys->rtp_cipher, (uint8_t*)&iv, srtp_direction_encrypt); if (!status && session_keys->rtp_xtn_hdr_cipher) { status = srtp_cipher_set_iv(session_keys->rtp_xtn_hdr_cipher, (uint8_t*)&iv, srtp_direction_encrypt); } } else { v128_t iv; /* otherwise, set the index to est */ #ifdef NO_64BIT_MATH iv.v32[0] = 0; iv.v32[1] = 0; #else iv.v64[0] = 0; #endif iv.v64[1] = be64_to_cpu(est); status = srtp_cipher_set_iv(session_keys->rtp_cipher, (uint8_t*)&iv, srtp_direction_encrypt); if (!status && session_keys->rtp_xtn_hdr_cipher) { status = srtp_cipher_set_iv(session_keys->rtp_xtn_hdr_cipher, (uint8_t*)&iv, srtp_direction_encrypt); } } if (status) return srtp_err_status_cipher_fail; /* shift est, put into network byte order */ #ifdef NO_64BIT_MATH est = be64_to_cpu(make64((high32(est) << 16) | (low32(est) >> 16), low32(est) << 16)); #else est = be64_to_cpu(est << 16); #endif /* * if we're authenticating using a universal hash, put the keystream * prefix into the authentication tag */ if (auth_start) { prefix_len = srtp_auth_get_prefix_length(session_keys->rtp_auth); if (prefix_len) { status = srtp_cipher_output(session_keys->rtp_cipher, auth_tag, &prefix_len); if (status) return srtp_err_status_cipher_fail; debug_print(mod_srtp, "keystream prefix: %s", srtp_octet_string_hex_string(auth_tag, prefix_len)); } } if (xtn_hdr && session_keys->rtp_xtn_hdr_cipher) { /* * extensions header encryption RFC 6904 */ status = srtp_process_header_encryption(stream, xtn_hdr, session_keys); if (status) { return status; } } /* if we're encrypting, exor keystream into the message */ if (enc_start) { status = srtp_cipher_encrypt(session_keys->rtp_cipher, (uint8_t *)enc_start, (unsigned int *)&enc_octet_len); if (status) return srtp_err_status_cipher_fail; } /* * if we're authenticating, run authentication function and put result * into the auth_tag */ if (auth_start) { /* initialize auth func context */ status = srtp_auth_start(session_keys->rtp_auth); if (status) return status; /* run auth func over packet */ status = srtp_auth_update(session_keys->rtp_auth, (uint8_t *)auth_start, *pkt_octet_len); if (status) return status; /* run auth func over ROC, put result into auth_tag */ debug_print(mod_srtp, "estimated packet index: %016llx", est); status = srtp_auth_compute(session_keys->rtp_auth, (uint8_t *)&est, 4, auth_tag); debug_print(mod_srtp, "srtp auth tag: %s", srtp_octet_string_hex_string(auth_tag, tag_len)); if (status) return srtp_err_status_auth_fail; } if (auth_tag) { /* increase the packet length by the length of the auth tag */ *pkt_octet_len += tag_len; } if (use_mki) { /* increate the packet length by the mki size */ *pkt_octet_len += mki_size; } return srtp_err_status_ok; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45934E", "function_addr": 4559694, "binary_name": "cf1695820213fbf6b72d0a2a2c8f7406ba3da1515cfec93bb0899b8d9d8f038e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0F0h"], [3, "mov [rbp+var_D8], rdi"], [4, "mov [rbp+var_E0], rsi"], [5, "mov [rbp+var_E8], rdx"], [6, "mov [rbp+var_EC], ecx"], [7, "mov [rbp+var_F0], r8d"], [8, "mov rax, [rbp+var_E0]"], [9, "mov [rbp+var_40], rax"], [10, "mov [rbp+var_60], 0"], [11, "mov [rbp+var_18], 0"], [12, "mov [rbp+var_30], 0"], [13, "mov [rbp+var_44], 0"], [14, "mov [rbp+var_50], 0"], [15, "mov [rbp+var_58], 0"], [16, "mov [rbp+var_34], 0"], [17, "mov eax, cs:dword_4A1320"], [18, "test eax, eax"], [19, "jz short loc_4593E8"], [20, "mov rax, cs:off_4A1328"], [21, "mov ecx, 0"], [22, "mov rdx, rax"], [23, "mov esi, offset aSFunctionSrtpP_0"], [24, "mov edi, 3"], [25, "mov eax, 0"], [26, "call sub_4605E2"], [27, "mov rdx, [rbp+var_E8]"], [28, "mov rax, [rbp+var_E0]"], [29, "mov rsi, rdx"], [30, "mov rdi, rax"], [31, "call sub_45607C"], [32, "mov [rbp+var_1C], eax"], [33, "cmp [rbp+var_1C], 0"], [34, "jz short loc_459412"], [35, "mov eax, [rbp+var_1C]"], [36, "jmp locret_459CC6"], [37, "mov rax, [rbp+var_E8]"], [38, "mov eax, [rax]"], [39, "cmp eax, 0Bh"], [40, "jg short loc_45942A"], [41, "mov eax, 2"], [42, "jmp locret_459CC6"], [43, "mov rax, [rbp+var_40]"], [44, "mov edx, [rax+8]"], [45, "mov rax, [rbp+var_D8]"], [46, "mov esi, edx"], [47, "mov rdi, rax"], [48, "call sub_45A76E"], [49, "mov [rbp+var_28], rax"], [50, "cmp [rbp+var_28], 0"], [51, "jnz loc_4594D1"], [52, "mov rax, [rbp+var_D8]"], [53, "mov rax, [rax+8]"], [54, "test rax, rax"], [55, "jz short loc_4594C7"], [56, "mov rax, [rbp+var_40]"], [57, "mov ecx, [rax+8]"], [58, "mov rax, [rbp+var_D8]"], [59, "mov rax, [rax+8]"], [60, "lea rdx, [rbp+var_78]"], [61, "mov esi, ecx"], [62, "mov rdi, rax"], [63, "call sub_456B10"], [64, "mov [rbp+var_1C], eax"], [65, "cmp [rbp+var_1C], 0"], [66, "jz short loc_459492"], [67, "mov eax, [rbp+var_1C]"], [68, "jmp locret_459CC6"], [69, "mov rax, [rbp+var_78]"], [70, "mov rdx, [rbp+var_D8]"], [71, "mov rdx, [rdx]"], [72, "mov [rax+78h], rdx"], [73, "mov rdx, [rbp+var_78]"], [74, "mov rax, [rbp+var_D8]"], [75, "mov [rax], rdx"], [76, "mov rax, [rbp+var_78]"], [77, "mov dword ptr [rax+54h], 1"], [78, "mov rax, [rbp+var_78]"], [79, "mov [rbp+var_28], rax"], [80, "jmp short loc_4594D1"], [81, "mov eax, 0Dh"], [82, "jmp locret_459CC6"], [83, "mov rax, [rbp+var_28]"], [84, "mov eax, [rax+54h]"], [85, "cmp eax, 1"], [86, "jz short loc_45953F"], [87, "mov rax, [rbp+var_28]"], [88, "mov eax, [rax+54h]"], [89, "test eax, eax"], [90, "jnz short loc_4594F5"], [91, "mov rax, [rbp+var_28]"], [92, "mov dword ptr [rax+54h], 1"], [93, "jmp short loc_45953F"], [94, "mov rax, cs:off_4A1330"], [95, "test rax, rax"], [96, "jz short loc_45953F"], [97, "mov rax, [rbp+var_D8]"], [98, "mov [rbp+var_90], rax"], [99, "mov rax, [rbp+var_28]"], [100, "mov eax, [rax]"], [101, "mov edi, eax"], [102, "call _ntohl"], [103, "mov [rbp+var_88], eax"], [104, "mov [rbp+var_84], 0"], [105, "mov rdx, cs:off_4A1330"], [106, "lea rax, [rbp+var_90]"], [107, "mov rdi, rax"], [108, "call rdx "], [109, "mov edx, [rbp+var_F0]"], [110, "mov ecx, [rbp+var_EC]"], [111, "mov rax, [rbp+var_28]"], [112, "mov esi, ecx"], [113, "mov rdi, rax"], [114, "call sub_45716E"], [115, "mov [rbp+var_50], rax"], [116, "mov rax, [rbp+var_50]"], [117, "mov rax, [rax]"], [118, "mov eax, [rax+14h]"], [119, "cmp eax, 6"], [120, "jz short loc_45957B"], [121, "mov rax, [rbp+var_50]"], [122, "mov rax, [rax]"], [123, "mov eax, [rax+14h]"], [124, "cmp eax, 7"], [125, "jnz short loc_4595B2"], [126, "mov r8d, [rbp+var_EC]"], [127, "mov rdi, [rbp+var_50]"], [128, "mov rcx, [rbp+var_E8]"], [129, "mov rdx, [rbp+var_E0]"], [130, "mov rsi, [rbp+var_28]"], [131, "mov rax, [rbp+var_D8]"], [132, "mov r9d, r8d"], [133, "mov r8, rdi"], [134, "mov rdi, rax"], [135, "call sub_4589AD"], [136, "jmp locret_459CC6"], [137, "mov rax, [rbp+var_50]"], [138, "mov rax, [rax+50h]"], [139, "mov rdi, rax"], [140, "call sub_460577"], [141, "cmp eax, 2"], [142, "jz short loc_459632"], [143, "cmp eax, 2"], [144, "ja loc_459686"], [145, "test eax, eax"], [146, "jz loc_459689"], [147, "cmp eax, 1"], [148, "jz short loc_4595E2"], [149, "jmp loc_459686"], [150, "mov rax, cs:off_4A1330"], [151, "test rax, rax"], [152, "jz loc_45968C"], [153, "mov rax, [rbp+var_D8]"], [154, "mov [rbp+var_A0], rax"], [155, "mov rax, [rbp+var_28]"], [156, "mov eax, [rax]"], [157, "mov edi, eax"], [158, "call _ntohl"], [159, "mov [rbp+var_98], eax"], [160, "mov [rbp+var_94], 1"], [161, "mov rdx, cs:off_4A1330"], [162, "lea rax, [rbp+var_A0]"], [163, "mov rdi, rax"], [164, "call rdx "], [165, "jmp short loc_45968C"], [166, "mov rax, cs:off_4A1330"], [167, "test rax, rax"], [168, "jz short loc_45967C"], [169, "mov rax, [rbp+var_D8]"], [170, "mov [rbp+var_B0], rax"], [171, "mov rax, [rbp+var_28]"], [172, "mov eax, [rax]"], [173, "mov edi, eax"], [174, "call _ntohl"], [175, "mov [rbp+var_A8], eax"], [176, "mov [rbp+var_A4], 2"], [177, "mov rdx, cs:off_4A1330"], [178, "lea rax, [rbp+var_B0]"], [179, "mov rdi, rax"], [180, "call rdx "], [181, "mov eax, 0Fh"], [182, "jmp locret_459CC6"], [183, "nop"], [184, "jmp short loc_45968D"], [185, "nop"], [186, "jmp short loc_45968D"], [187, "nop"], [188, "mov rax, [rbp+var_50]"], [189, "mov rax, [rax+10h]"], [190, "mov rdi, rax"], [191, "call sub_45EBB1"], [192, "mov [rbp+var_5C], eax"], [193, "mov rax, [rbp+var_28]"], [194, "mov eax, [rax+30h]"], [195, "and eax, 1"], [196, "test eax, eax"], [197, "jz loc_45975D"], [198, "mov rax, [rbp+var_40]"], [199, "movzx eax, byte ptr [rax]"], [200, "and eax, 0Fh"], [201, "movzx eax, al"], [202, "add rax, 3"], [203, "lea rdx, ds:0[rax*4]"], [204, "mov rax, [rbp+var_40]"], [205, "add rax, rdx"], [206, "mov [rbp+var_8], rax"], [207, "mov rax, [rbp+var_40]"], [208, "movzx eax, byte ptr [rax]"], [209, "and eax, 10h"], [210, "test al, al"], [211, "jz short loc_45970D"], [212, "mov rax, [rbp+var_8]"], [213, "mov [rbp+var_30], rax"], [214, "mov rax, [rbp+var_30]"], [215, "movzx eax, word ptr [rax+2]"], [216, "movzx eax, ax"], [217, "mov edi, eax"], [218, "call _ntohs"], [219, "movzx eax, ax"], [220, "add rax, 1"], [221, "shl rax, 2"], [222, "add [rbp+var_8], rax"], [223, "mov rax, [rbp+var_E8]"], [224, "mov eax, [rax]"], [225, "movsxd rdx, eax"], [226, "mov rax, [rbp+var_40]"], [227, "add rax, rdx"], [228, "cmp [rbp+var_8], rax"], [229, "jbe short loc_459730"], [230, "mov eax, 15h"], [231, "jmp locret_459CC6"], [232, "mov rax, [rbp+var_E8]"], [233, "mov eax, [rax]"], [234, "mov edx, eax"], [235, "mov rax, [rbp+var_8]"], [236, "sub rax, [rbp+var_40]"], [237, "mov ecx, eax"], [238, "mov eax, edx"], [239, "sub eax, ecx"], [240, "mov [rbp+var_60], eax"], [241, "mov eax, [rbp+var_60]"], [242, "test eax, eax"], [243, "jns short loc_459765"], [244, "mov eax, 15h"], [245, "jmp locret_459CC6"], [246, "mov [rbp+var_8], 0"], [247, "mov rax, [rbp+var_E8]"], [248, "mov eax, [rax]"], [249, "movsxd rdx, eax"], [250, "mov rax, [rbp+var_40]"], [251, "add rax, rdx"], [252, "mov [rbp+var_58], rax"], [253, "mov edx, [rbp+var_EC]"], [254, "mov rcx, [rbp+var_50]"], [255, "mov rax, [rbp+var_58]"], [256, "mov rsi, rcx"], [257, "mov rdi, rax"], [258, "call sub_4571BC"], [259, "mov [rbp+var_44], eax"], [260, "mov rax, [rbp+var_28]"], [261, "mov eax, [rax+30h]"], [262, "and eax, 2"], [263, "test eax, eax"], [264, "jz short loc_4597CD"], [265, "mov rax, [rbp+var_40]"], [266, "mov [rbp+var_10], rax"], [267, "mov rax, [rbp+var_E8]"], [268, "mov eax, [rax]"], [269, "movsxd rdx, eax"], [270, "mov eax, [rbp+var_44]"], [271, "add rdx, rax"], [272, "mov rax, [rbp+var_40]"], [273, "add rax, rdx"], [274, "mov [rbp+var_18], rax"], [275, "jmp short loc_4597DD"], [276, "mov [rbp+var_10], 0"], [277, "mov [rbp+var_18], 0"], [278, "lea rcx, [rbp+var_6C]"], [279, "lea rdx, [rbp+var_68]"], [280, "mov rsi, [rbp+var_28]"], [281, "mov rax, [rbp+var_40]"], [282, "mov rdi, rax"], [283, "call sub_4588DF"], [284, "mov [rbp+var_1C], eax"], [285, "cmp [rbp+var_1C], 0"], [286, "jz short loc_45980C"], [287, "cmp [rbp+var_1C], 1Bh"], [288, "jz short loc_45980C"], [289, "mov eax, [rbp+var_1C]"], [290, "jmp locret_459CC6"], [291, "cmp [rbp+var_1C], 1Bh"], [292, "jnz short loc_459819"], [293, "mov [rbp+var_34], 1"], [294, "cmp [rbp+var_34], 0"], [295, "jz short loc_459864"], [296, "mov rax, [rbp+var_68]"], [297, "movzx eax, ax"], [298, "mov rdx, [rbp+var_68]"], [299, "shr rdx, 10h"], [300, "mov esi, edx"], [301, "mov rdx, [rbp+var_28]"], [302, "lea rcx, [rdx+18h]"], [303, "mov edx, eax"], [304, "mov rdi, rcx"], [305, "call sub_460CB0"], [306, "mov rax, [rbp+var_28]"], [307, "mov dword ptr [rax+74h], 0"], [308, "mov rax, [rbp+var_28]"], [309, "add rax, 18h"], [310, "mov esi, 0"], [311, "mov rdi, rax"], [312, "call sub_460B2C"], [313, "jmp short loc_4598B0"], [314, "mov eax, [rbp+var_6C]"], [315, "mov rdx, [rbp+var_28]"], [316, "add rdx, 18h"], [317, "mov esi, eax"], [318, "mov rdi, rdx"], [319, "call sub_460AA8"], [320, "mov [rbp+var_1C], eax"], [321, "cmp [rbp+var_1C], 0"], [322, "jz short loc_45989B"], [323, "cmp [rbp+var_1C], 9"], [324, "jnz short loc_459893"], [325, "mov rax, [rbp+var_28]"], [326, "mov eax, [rax+58h]"], [327, "test eax, eax"], [328, "jnz short loc_45989B"], [329, "mov eax, [rbp+var_1C]"], [330, "jmp locret_459CC6"], [331, "mov eax, [rbp+var_6C]"], [332, "mov rdx, [rbp+var_28]"], [333, "add rdx, 18h"], [334, "mov esi, eax"], [335, "mov rdi, rdx"], [336, "call sub_460B2C"], [337, "mov eax, cs:dword_4A1320"], [338, "test eax, eax"], [339, "jz short loc_4598DF"], [340, "mov rdx, [rbp+var_68]"], [341, "mov rax, cs:off_4A1328"], [342, "mov rcx, rdx"], [343, "mov rdx, rax"], [344, "mov esi, offset aSEstimatedPack"], [345, "mov edi, 3"], [346, "mov eax, 0"], [347, "call sub_4605E2"], [348, "mov rax, [rbp+var_50]"], [349, "mov rax, [rax]"], [350, "mov rax, [rax]"], [351, "mov eax, [rax+50h]"], [352, "cmp eax, 1"], [353, "jz short loc_459919"], [354, "mov rax, [rbp+var_50]"], [355, "mov rax, [rax]"], [356, "mov rax, [rax]"], [357, "mov eax, [rax+50h]"], [358, "cmp eax, 4"], [359, "jz short loc_459919"], [360, "mov rax, [rbp+var_50]"], [361, "mov rax, [rax]"], [362, "mov rax, [rax]"], [363, "mov eax, [rax+50h]"], [364, "cmp eax, 5"], [365, "jnz loc_4599A7"], [366, "mov [rbp+var_C0], 0"], [367, "mov rax, [rbp+var_40]"], [368, "mov eax, [rax+8]"], [369, "mov [rbp+var_BC], eax"], [370, "mov rax, [rbp+var_68]"], [371, "shl rax, 10h"], [372, "mov rdi, rax"], [373, "call sub_45603C"], [374, "mov [rbp+var_B8], rax"], [375, "mov rax, [rbp+var_50]"], [376, "mov rax, [rax]"], [377, "lea rcx, [rbp+var_C0]"], [378, "mov edx, 0"], [379, "mov rsi, rcx"], [380, "mov rdi, rax"], [381, "call sub_45D7C1"], [382, "mov [rbp+var_1C], eax"], [383, "cmp [rbp+var_1C], 0"], [384, "jnz loc_459A1D"], [385, "mov rax, [rbp+var_50]"], [386, "mov rax, [rax+8]"], [387, "test rax, rax"], [388, "jz loc_459A1D"], [389, "mov rax, [rbp+var_50]"], [390, "mov rax, [rax+8]"], [391, "lea rcx, [rbp+var_C0]"], [392, "mov edx, 0"], [393, "mov rsi, rcx"], [394, "mov rdi, rax"], [395, "call sub_45D7C1"], [396, "mov [rbp+var_1C], eax"], [397, "jmp short loc_459A1D"], [398, "mov [rbp+var_D0], 0"], [399, "mov rax, [rbp+var_68]"], [400, "mov rdi, rax"], [401, "call sub_45603C"], [402, "mov [rbp+var_C8], rax"], [403, "mov rax, [rbp+var_50]"], [404, "mov rax, [rax]"], [405, "lea rcx, [rbp+var_D0]"], [406, "mov edx, 0"], [407, "mov rsi, rcx"], [408, "mov rdi, rax"], [409, "call sub_45D7C1"], [410, "mov [rbp+var_1C], eax"], [411, "cmp [rbp+var_1C], 0"], [412, "jnz short loc_459A1E"], [413, "mov rax, [rbp+var_50]"], [414, "mov rax, [rax+8]"], [415, "test rax, rax"], [416, "jz short loc_459A1E"], [417, "mov rax, [rbp+var_50]"], [418, "mov rax, [rax+8]"], [419, "lea rcx, [rbp+var_D0]"], [420, "mov edx, 0"], [421, "mov rsi, rcx"], [422, "mov rdi, rax"], [423, "call sub_45D7C1"], [424, "mov [rbp+var_1C], eax"], [425, "jmp short loc_459A1E"], [426, "nop"], [427, "cmp [rbp+var_1C], 0"], [428, "jz short loc_459A2E"], [429, "mov eax, 8"], [430, "jmp locret_459CC6"], [431, "mov rax, [rbp+var_68]"], [432, "shl rax, 10h"], [433, "mov rdi, rax"], [434, "call sub_45603C"], [435, "mov [rbp+var_68], rax"], [436, "cmp [rbp+var_10], 0"], [437, "jz loc_459AD5"], [438, "mov rax, [rbp+var_50]"], [439, "mov rax, [rax+10h]"], [440, "mov rdi, rax"], [441, "call sub_45EBC2"], [442, "mov [rbp+var_70], eax"], [443, "mov eax, [rbp+var_70]"], [444, "test eax, eax"], [445, "jz short loc_459AD5"], [446, "mov rax, [rbp+var_50]"], [447, "mov rax, [rax]"], [448, "lea rdx, [rbp+var_70]"], [449, "mov rcx, [rbp+var_18]"], [450, "mov rsi, rcx"], [451, "mov rdi, rax"], [452, "call sub_45D820"], [453, "mov [rbp+var_1C], eax"], [454, "cmp [rbp+var_1C], 0"], [455, "jz short loc_459A94"], [456, "mov eax, 8"], [457, "jmp locret_459CC6"], [458, "mov eax, cs:dword_4A1320"], [459, "test eax, eax"], [460, "jz short loc_459AD5"], [461, "mov eax, [rbp+var_70]"], [462, "mov edx, eax"], [463, "mov rax, [rbp+var_18]"], [464, "mov esi, edx"], [465, "mov rdi, rax"], [466, "call sub_45EFDC"], [467, "mov rdx, rax"], [468, "mov rax, cs:off_4A1328"], [469, "mov rcx, rdx"], [470, "mov rdx, rax"], [471, "mov esi, offset aSKeystreamPref"], [472, "mov edi, 3"], [473, "mov eax, 0"], [474, "call sub_4605E2"], [475, "cmp [rbp+var_30], 0"], [476, "jz short loc_459B11"], [477, "mov rax, [rbp+var_50]"], [478, "mov rax, [rax+8]"], [479, "test rax, rax"], [480, "jz short loc_459B11"], [481, "mov rdx, [rbp+var_50]"], [482, "mov rcx, [rbp+var_30]"], [483, "mov rax, [rbp+var_28]"], [484, "mov rsi, rcx"], [485, "mov rdi, rax"], [486, "call sub_458223"], [487, "mov [rbp+var_1C], eax"], [488, "cmp [rbp+var_1C], 0"], [489, "jz short loc_459B11"], [490, "mov eax, [rbp+var_1C]"], [491, "jmp locret_459CC6"], [492, "cmp [rbp+var_8], 0"], [493, "jz short loc_459B45"], [494, "mov rax, [rbp+var_50]"], [495, "mov rax, [rax]"], [496, "lea rdx, [rbp+var_60]"], [497, "mov rcx, [rbp+var_8]"], [498, "mov rsi, rcx"], [499, "mov rdi, rax"], [500, "call sub_45D871"], [501, "mov [rbp+var_1C], eax"], [502, "cmp [rbp+var_1C], 0"], [503, "jz short loc_459B45"], [504, "mov eax, 8"], [505, "jmp locret_459CC6"], [506, "cmp [rbp+var_10], 0"], [507, "jz loc_459C7F"], [508, "mov rax, [rbp+var_50]"], [509, "mov rax, [rax+10h]"], [510, "mov rax, [rax]"], [511, "mov rdx, [rax+28h]"], [512, "mov rax, [rbp+var_50]"], [513, "mov rax, [rax+10h]"], [514, "mov rax, [rax+8]"], [515, "mov rdi, rax"], [516, "call rdx"], [517, "mov [rbp+var_1C], eax"], [518, "cmp [rbp+var_1C], 0"], [519, "jz short loc_459B81"], [520, "mov eax, [rbp+var_1C]"], [521, "jmp locret_459CC6"], [522, "mov rax, [rbp+var_50]"], [523, "mov rax, [rax+10h]"], [524, "mov rax, [rax]"], [525, "mov r8, [rax+20h]"], [526, "mov rax, [rbp+var_E8]"], [527, "mov edx, [rax]"], [528, "mov rax, [rbp+var_50]"], [529, "mov rax, [rax+10h]"], [530, "mov rax, [rax+8]"], [531, "mov rcx, [rbp+var_10]"], [532, "mov rsi, rcx"], [533, "mov rdi, rax"], [534, "call r8"], [535, "mov [rbp+var_1C], eax"], [536, "cmp [rbp+var_1C], 0"], [537, "jz short loc_459BC3"], [538, "mov eax, [rbp+var_1C]"], [539, "jmp locret_459CC6"], [540, "mov eax, cs:dword_4A1320"], [541, "test eax, eax"], [542, "jz short loc_459BF2"], [543, "mov rdx, [rbp+var_68]"], [544, "mov rax, cs:off_4A1328"], [545, "mov rcx, rdx"], [546, "mov rdx, rax"], [547, "mov esi, offset aSEstimatedPack"], [548, "mov edi, 3"], [549, "mov eax, 0"], [550, "call sub_4605E2"], [551, "mov rax, [rbp+var_50]"], [552, "mov rax, [rax+10h]"], [553, "mov rax, [rax]"], [554, "mov r9, [rax+18h]"], [555, "mov rax, [rbp+var_50]"], [556, "mov rax, [rax+10h]"], [557, "mov edx, [rax+10h]"], [558, "mov rax, [rbp+var_50]"], [559, "mov rax, [rax+10h]"], [560, "mov rax, [rax+8]"], [561, "mov rcx, [rbp+var_18]"], [562, "lea rsi, [rbp+var_68]"], [563, "mov r8, rcx"], [564, "mov ecx, edx"], [565, "mov edx, 4"], [566, "mov rdi, rax"], [567, "call r9"], [568, "mov [rbp+var_1C], eax"], [569, "mov eax, cs:dword_4A1320"], [570, "test eax, eax"], [571, "jz short loc_459C72"], [572, "mov edx, [rbp+var_5C]"], [573, "mov rax, [rbp+var_18]"], [574, "mov esi, edx"], [575, "mov rdi, rax"], [576, "call sub_45EFDC"], [577, "mov rdx, rax"], [578, "mov rax, cs:off_4A1328"], [579, "mov rcx, rdx"], [580, "mov rdx, rax"], [581, "mov esi, offset aSSrtpAuthTagS"], [582, "mov edi, 3"], [583, "mov eax, 0"], [584, "call sub_4605E2"], [585, "cmp [rbp+var_1C], 0"], [586, "jz short loc_459C7F"], [587, "mov eax, 7"], [588, "jmp short locret_459CC6"], [589, "cmp [rbp+var_18], 0"], [590, "jz short loc_459C9D"], [591, "mov rax, [rbp+var_E8]"], [592, "mov edx, [rax]"], [593, "mov eax, [rbp+var_5C]"], [594, "add edx, eax"], [595, "mov rax, [rbp+var_E8]"], [596, "mov [rax], edx"], [597, "cmp [rbp+var_EC], 0"], [598, "jz short loc_459CC1"], [599, "mov rax, [rbp+var_E8]"], [600, "mov eax, [rax]"], [601, "mov edx, eax"], [602, "mov eax, [rbp+var_44]"], [603, "add eax, edx"], [604, "mov edx, eax"], [605, "mov rax, [rbp+var_E8]"], [606, "mov [rax], edx"], [607, "mov eax, 0"], [608, "leave"], [609, "retn"]], "data_dep": [[8, 4], [9, 8], [18, 17], [19, 18], [22, 20], [27, 5], [28, 4], [29, 27], [30, 28], [32, 31], [33, 32], [34, 33], [35, 32], [37, 5], [38, 37], [39, 38], [40, 39], [43, 9], [44, 43], [45, 3], [46, 44], [47, 45], [49, 48], [50, 49], [51, 50], [52, 3], [53, 52], [54, 53], [55, 54], [56, 9], [57, 56], [58, 3], [59, 58], [60, 44], [61, 57], [62, 59], [64, 63], [65, 64], [66, 65], [67, 64], [70, 3], [71, 70], [72, 71], [72, 69], [74, 3], [75, 74], [75, 73], [77, 76], [79, 78], [83, 79], [83, 49], [84, 83], [84, 77], [84, 72], [84, 75], [85, 84], [86, 85], [87, 79], [87, 49], [88, 75], [88, 87], [88, 77], [88, 72], [89, 88], [90, 89], [91, 79], [91, 49], [92, 91], [95, 94], [96, 95], [97, 3], [98, 97], [99, 79], [99, 49], [100, 77], [100, 72], [100, 99], [100, 75], [101, 100], [103, 102], [106, 102], [106, 98], [107, 106], [108, 105], [109, 7], [110, 6], [111, 49], [111, 79], [112, 110], [113, 111], [115, 114], [116, 115], [117, 116], [117, 92], [117, 77], [117, 72], [117, 75], [118, 117], [118, 75], [118, 92], [118, 77], [118, 72], [119, 118], [120, 119], [121, 115], [122, 92], [122, 77], [122, 72], [122, 121], [122, 75], [123, 75], [123, 92], [123, 77], [123, 72], [123, 122], [124, 123], [125, 124], [126, 6], [127, 115], [128, 5], [129, 4], [130, 49], [130, 79], [131, 3], [132, 126], [133, 127], [134, 131], [137, 115], [138, 77], [138, 72], [138, 137], [138, 75], [138, 92], [139, 138], [141, 140], [142, 141], [143, 140], [144, 143], [145, 140], [146, 145], [147, 145], [148, 147], [151, 150], [152, 151], [153, 3], [154, 153], [155, 49], [155, 79], [156, 75], [156, 92], [156, 77], [156, 72], [156, 155], [157, 156], [159, 158], [162, 154], [162, 158], [163, 162], [164, 161], [167, 166], [168, 167], [169, 3], [170, 169], [171, 49], [171, 79], [172, 75], [172, 171], [172, 92], [172, 77], [172, 72], [173, 172], [175, 174], [178, 170], [178, 174], [179, 178], [180, 177], [188, 115], [189, 75], [189, 92], [189, 77], [189, 72], [189, 188], [190, 189], [192, 191], [193, 49], [193, 79], [194, 75], [194, 92], [194, 77], [194, 72], [194, 193], [195, 194], [196, 195], [197, 196], [198, 9], [199, 92], [199, 77], [199, 198], [199, 72], [199, 75], [200, 199], [201, 200], [202, 201], [203, 161], [203, 109], [204, 9], [205, 204], [205, 203], [206, 205], [207, 9], [208, 75], [208, 92], [208, 77], [208, 207], [208, 72], [209, 208], [210, 209], [211, 210], [212, 206], [213, 212], [214, 213], [215, 92], [215, 77], [215, 72], [215, 75], [215, 214], [216, 215], [217, 216], [219, 218], [220, 219], [221, 220], [222, 206], [222, 221], [223, 5], [224, 75], [224, 223], [224, 92], [224, 77], [224, 72], [225, 224], [226, 9], [227, 226], [227, 225], [228, 222], [228, 206], [228, 227], [229, 228], [232, 5], [233, 77], [233, 72], [233, 75], [233, 232], [233, 92], [234, 233], [235, 222], [235, 206], [236, 235], [236, 9], [237, 236], [238, 234], [239, 238], [239, 237], [240, 239], [241, 240], [242, 241], [243, 242], [247, 5], [248, 92], [248, 77], [248, 72], [248, 247], [248, 75], [249, 248], [250, 9], [251, 250], [251, 249], [252, 251], [253, 6], [254, 115], [255, 252], [256, 254], [257, 255], [259, 258], [260, 79], [260, 49], [261, 77], [261, 72], [261, 75], [261, 260], [261, 92], [262, 261], [263, 262], [264, 263], [265, 9], [266, 265], [267, 5], [268, 75], [268, 92], [268, 267], [268, 77], [268, 72], [269, 268], [270, 259], [271, 270], [271, 269], [272, 9], [273, 272], [273, 271], [274, 273], [278, 254], [279, 271], [279, 253], [280, 49], [280, 79], [281, 9], [282, 281], [284, 283], [285, 284], [286, 285], [287, 284], [288, 287], [289, 284], [291, 284], [292, 291], [294, 16], [294, 293], [295, 294], [297, 296], [299, 298], [300, 299], [301, 79], [301, 49], [302, 77], [302, 301], [302, 72], [302, 75], [302, 307], [302, 278], [302, 92], [303, 297], [304, 302], [306, 79], [306, 49], [307, 306], [308, 79], [308, 49], [309, 308], [311, 309], [315, 79], [315, 49], [316, 315], [317, 314], [318, 316], [320, 319], [321, 320], [322, 321], [323, 320], [324, 323], [325, 79], [325, 49], [326, 77], [326, 72], [326, 75], [326, 92], [326, 325], [327, 326], [328, 327], [329, 320], [332, 49], [332, 79], [333, 332], [334, 331], [335, 333], [338, 337], [339, 338], [342, 340], [343, 341], [348, 115], [349, 92], [349, 348], [349, 77], [349, 72], [349, 75], [349, 307], [350, 72], [350, 75], [350, 307], [350, 349], [350, 92], [350, 77], [351, 92], [351, 77], [351, 72], [351, 350], [351, 75], [351, 307], [352, 351], [353, 352], [354, 115], [355, 75], [355, 307], [355, 354], [355, 92], [355, 77], [355, 72], [356, 355], [356, 75], [356, 307], [356, 92], [356, 77], [356, 72], [357, 92], [357, 77], [357, 72], [357, 356], [357, 75], [357, 307], [358, 357], [359, 358], [360, 115], [361, 360], [361, 75], [361, 307], [361, 92], [361, 77], [361, 72], [362, 92], [362, 361], [362, 77], [362, 72], [362, 75], [362, 307], [363, 75], [363, 307], [363, 362], [363, 92], [363, 77], [363, 72], [364, 363], [365, 364], [367, 9], [368, 307], [368, 367], [368, 92], [368, 77], [368, 72], [368, 75], [369, 368], [371, 370], [372, 371], [374, 373], [375, 115], [376, 92], [376, 77], [376, 375], [376, 72], [376, 75], [376, 307], [377, 302], [377, 278], [377, 366], [377, 342], [379, 377], [380, 376], [382, 381], [383, 382], [384, 383], [385, 115], [386, 75], [386, 307], [386, 385], [386, 92], [386, 77], [386, 72], [387, 386], [388, 387], [389, 115], [390, 92], [390, 77], [390, 72], [390, 389], [390, 307], [390, 75], [391, 377], [391, 366], [393, 391], [394, 390], [396, 395], [400, 399], [402, 401], [403, 115], [404, 75], [404, 307], [404, 92], [404, 77], [404, 72], [404, 403], [405, 398], [405, 302], [405, 278], [405, 342], [407, 405], [408, 404], [410, 409], [411, 410], [412, 411], [413, 115], [414, 413], [414, 92], [414, 77], [414, 72], [414, 75], [414, 307], [415, 414], [416, 415], [417, 115], [418, 75], [418, 307], [418, 92], [418, 77], [418, 72], [418, 417], [419, 398], [419, 405], [421, 419], [422, 418], [424, 423], [427, 424], [427, 410], [427, 396], [427, 382], [428, 427], [432, 431], [433, 432], [435, 434], [436, 276], [436, 266], [437, 436], [438, 115], [439, 438], [439, 307], [439, 92], [439, 77], [439, 72], [439, 75], [440, 439], [442, 441], [443, 442], [444, 443], [445, 444], [446, 115], [447, 307], [447, 446], [447, 92], [447, 77], [447, 72], [447, 75], [448, 406], [448, 392], [448, 378], [448, 442], [448, 420], [449, 277], [449, 274], [450, 449], [451, 447], [453, 452], [454, 453], [455, 454], [459, 458], [460, 459], [461, 442], [462, 461], [463, 274], [463, 277], [464, 462], [465, 463], [467, 466], [469, 467], [470, 468], [475, 213], [475, 12], [476, 475], [477, 115], [478, 75], [478, 307], [478, 92], [478, 477], [478, 77], [478, 72], [479, 478], [480, 479], [481, 115], [482, 12], [482, 213], [483, 79], [483, 49], [484, 482], [485, 483], [487, 486], [488, 487], [489, 488], [490, 487], [492, 206], [492, 246], [492, 222], [493, 492], [494, 115], [495, 77], [495, 72], [495, 494], [495, 75], [495, 307], [495, 92], [496, 240], [496, 481], [496, 448], [496, 420], [496, 406], [496, 392], [496, 10], [496, 378], [496, 470], [497, 206], [497, 246], [497, 222], [498, 497], [499, 495], [501, 500], [502, 501], [503, 502], [506, 276], [506, 266], [507, 506], [508, 115], [509, 92], [509, 77], [509, 72], [509, 508], [509, 75], [509, 307], [510, 75], [510, 307], [510, 92], [510, 509], [510, 77], [510, 72], [511, 75], [511, 92], [511, 307], [511, 510], [511, 77], [511, 72], [512, 115], [513, 512], [513, 75], [513, 307], [513, 92], [513, 77], [513, 72], [514, 77], [514, 72], [514, 513], [514, 75], [514, 307], [514, 92], [515, 514], [516, 511], [517, 516], [518, 517], [519, 518], [520, 517], [522, 115], [523, 77], [523, 72], [523, 522], [523, 75], [523, 92], [523, 307], [524, 75], [524, 92], [524, 307], [524, 523], [524, 77], [524, 72], [525, 77], [525, 72], [525, 75], [525, 307], [525, 524], [525, 92], [526, 5], [527, 307], [527, 526], [527, 92], [527, 77], [527, 72], [527, 75], [528, 115], [529, 75], [529, 92], [529, 307], [529, 528], [529, 77], [529, 72], [530, 75], [530, 307], [530, 529], [530, 92], [530, 77], [530, 72], [531, 276], [531, 266], [532, 531], [533, 530], [534, 525], [535, 534], [536, 535], [537, 536], [538, 535], [541, 540], [542, 541], [543, 435], [545, 543], [546, 544], [551, 115], [552, 72], [552, 92], [552, 75], [552, 307], [552, 551], [552, 77], [553, 77], [553, 552], [553, 72], [553, 75], [553, 307], [553, 92], [554, 75], [554, 92], [554, 307], [554, 553], [554, 77], [554, 72], [555, 115], [556, 307], [556, 92], [556, 77], [556, 72], [556, 555], [556, 75], [557, 75], [557, 307], [557, 92], [557, 556], [557, 77], [557, 72], [558, 115], [559, 75], [559, 92], [559, 307], [559, 558], [559, 77], [559, 72], [560, 77], [560, 72], [560, 75], [560, 559], [560, 307], [560, 92], [561, 277], [561, 274], [562, 435], [562, 547], [562, 532], [563, 561], [564, 557], [566, 560], [567, 554], [568, 567], [570, 569], [571, 570], [572, 192], [573, 274], [573, 277], [574, 572], [575, 573], [577, 576], [579, 577], [580, 578], [585, 568], [586, 585], [589, 274], [589, 277], [590, 589], [591, 5], [592, 307], [592, 591], [592, 92], [592, 77], [592, 72], [592, 75], [592, 596], [593, 192], [594, 593], [594, 592], [595, 5], [596, 595], [596, 594], [597, 6], [598, 597], [599, 5], [600, 92], [600, 599], [600, 77], [600, 72], [600, 606], [600, 75], [600, 596], [600, 307], [601, 600], [602, 259], [603, 602], [603, 601], [604, 603], [605, 5], [606, 605], [606, 604], [609, 607], [609, 490], [609, 81], [609, 67], [609, 587], [609, 429], [609, 456], [609, 289], [609, 135], [609, 520], [609, 181], [609, 329], [609, 41], [609, 35], [609, 538], [609, 244], [609, 230], [609, 504]]}
{"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_45934E", "query": "\n\n\n__int64 __fastcall sub_45934E(_QWORD *a1, _BYTE *a2, int *a3, int a4, unsigned int a5, int a6)\n{\n__int64 result; // rax\nunsigned int v7; // eax\nuint16_t v8; // ax\nint v9; // er8\nint v10; // er9\nint v11; // eax\nint v12; // er8\nint v13; // er9\nint v14; // er8\nint v15; // er9\nint v16; // eax\nint v17; // er8\nint v18; // er9\n__int64 v22[2]; // [rsp+20h] [rbp-D0h] BYREF\nint v23[2]; // [rsp+30h] [rbp-C0h] BYREF\nunsigned __int64 v24; // [rsp+38h] [rbp-B8h]\n_QWORD *v25; // [rsp+40h] [rbp-B0h] BYREF\nuint32_t v26; // [rsp+48h] [rbp-A8h]\nint v27; // [rsp+4Ch] [rbp-A4h]\n_QWORD *v28; // [rsp+50h] [rbp-A0h] BYREF\nuint32_t v29; // [rsp+58h] [rbp-98h]\nint v30; // [rsp+5Ch] [rbp-94h]\n_QWORD *v31; // [rsp+60h] [rbp-90h] BYREF\nuint32_t v32; // [rsp+68h] [rbp-88h]\nint v33; // [rsp+6Ch] [rbp-84h]\n__int64 v34; // [rsp+78h] [rbp-78h] BYREF\nunsigned int v35; // [rsp+80h] [rbp-70h] BYREF\nunsigned int v36; // [rsp+84h] [rbp-6Ch] BYREF\nunsigned __int64 v37; // [rsp+88h] [rbp-68h] BYREF\nint v38; // [rsp+90h] [rbp-60h] BYREF\nunsigned int v39; // [rsp+94h] [rbp-5Ch]\n_BYTE *v40; // [rsp+98h] [rbp-58h]\n_QWORD *v41; // [rsp+A0h] [rbp-50h]\nunsigned int v42; // [rsp+ACh] [rbp-44h]\n_BYTE *v43; // [rsp+B0h] [rbp-40h]\nint v44; // [rsp+BCh] [rbp-34h]\nuint16_t *v45; // [rsp+C0h] [rbp-30h]\nuint32_t *v46; // [rsp+C8h] [rbp-28h]\nunsigned int v47; // [rsp+D4h] [rbp-1Ch]\n_BYTE *v48; // [rsp+D8h] [rbp-18h]\n_BYTE *v49; // [rsp+E0h] [rbp-10h]\nuint16_t *v50; // [rsp+E8h] [rbp-8h]\n\nv43 = a2;\nv38 = 0;\nv48 = 0LL;\nv45 = 0LL;\nv42 = 0;\nv41 = 0LL;\nv40 = 0LL;\nv44 = 0;\nif ( dword_4A1320 )\nsub_4605E2(3, (unsigned int)\"%s: function srtp_protect\\n\", (_DWORD)off_4A1328, 0, a5, a6);\nv47 = sub_45607C(a2, a3);\nif ( v47 )\nreturn v47;\nif ( *a3 <= 11 )\nreturn 2LL;\nv46 = (uint32_t *)sub_45A76E(a1, *((unsigned int *)v43 + 2));\nif ( !v46 )\n{\nif ( !a1[1] )\nreturn 13LL;\nv47 = sub_456B10(a1[1], *((_DWORD *)v43 + 2), &v34);\nif ( v47 )\nreturn v47;\n*(_QWORD *)(v34 + 120) = *a1;\n*a1 = v34;\n*(_DWORD *)(v34 + 84) = 1;\nv46 = (uint32_t *)v34;\n}\nif ( v46[21] != 1 )\n{\nif ( v46[21] )\n{\nif ( off_4A1330 )\n{\nv31 = a1;\nv32 = ntohl(*v46);\nv33 = 0;\noff_4A1330(&v31);\n}\n}\nelse\n{\nv46[21] = 1;\n}\n}\nv41 = (_QWORD *)sub_45716E((__int64)v46, a4, a5);\nif ( *(_DWORD *)(*v41 + 20LL) == 6 || *(_DWORD *)(*v41 + 20LL) == 7 )\nreturn sub_4589AD((__int64)a1, v46, (__int64)a2, a3, v41, a4);\nv7 = sub_460577(v41[10]);\nif ( v7 == 2 )\n{\nif ( off_4A1330 )\n{\nv25 = a1;\nv26 = ntohl(*v46);\nv27 = 2;\noff_4A1330(&v25);\n}\nresult = 15LL;\n}\nelse\n{\nif ( v7 <= 2 && v7 && off_4A1330 )\n{\nv28 = a1;\nv29 = ntohl(*v46);\nv30 = 1;\noff_4A1330(&v28);\n}\nv39 = sub_45EBB1(v41[2]);\nif ( (v46[12] & 1) != 0 )\n{\nv50 = (uint16_t *)&v43[4 * (*v43 & 0xF) + 12];\nif ( (*v43 & 0x10) != 0 )\n{\nv45 = v50;\nv8 = ntohs(v50[1]);\nv50 += 2 * v8 + 2;\n}\nif ( v50 > (uint16_t *)&v43[*a3] )\nreturn 21LL;\nv38 = *a3 - ((_DWORD)v50 - (_DWORD)v43);\nif ( v38 < 0 )\nreturn 21LL;\n}\nelse\n{\nv50 = 0LL;\n}\nv40 = &v43[*a3];\nv42 = sub_4571BC(v40, (__int64)v41, a4);\nif ( (v46[12] & 2) != 0 )\n{\nv49 = v43;\nv48 = &v43[v42 + (__int64)*a3];\n}\nelse\n{\nv49 = 0LL;\nv48 = 0LL;\n}\nv47 = sub_4588DF((__int64)v43, (__int64)v46, &v37, &v36);\nif ( v47 && v47 != 27 )\nreturn v47;\nif ( v47 == 27 )\nv44 = 1;\nif ( v44 )\n{\nsub_460CB0(v46 + 6, (unsigned int)(v37 >> 16), (unsigned __int16)v37);\nv46[29] = 0;\nsub_460B2C(v46 + 6, 0LL);\n}\nelse\n{\nv47 = sub_460AA8(v46 + 6, v36);\nif ( v47 && (v47 != 9 || !v46[22]) )\nreturn v47;\nsub_460B2C(v46 + 6, v36);\n}\nif ( dword_4A1320 )\nsub_4605E2(3, (unsigned int)\"%s: estimated packet index: %016llx\\n\", (_DWORD)off_4A1328, v37, v9, v10);\nif ( *(_DWORD *)(*(_QWORD *)*v41 + 80LL) == 1\n|| *(_DWORD *)(*(_QWORD *)*v41 + 80LL) == 4\n|| *(_DWORD *)(*(_QWORD *)*v41 + 80LL) == 5 )\n{\nv23[0] = 0;\nv23[1] = *((_DWORD *)v43 + 2);\nv24 = sub_45603C(v37 << 16);\nv47 = sub_45D7C1(*v41, v23, 0LL);\nif ( !v47 && v41[1] )\nv47 = sub_45D7C1(v41[1], v23, 0LL);\n}\nelse\n{\nv22[0] = 0LL;\nv22[1] = sub_45603C(v37);\nv47 = sub_45D7C1(*v41, v22, 0LL);\nif ( !v47 && v41[1] )\nv47 = sub_45D7C1(v41[1], v22, 0LL);\n}\nif ( v47 )\nreturn 8LL;\nv37 = sub_45603C(v37 << 16);\nif ( v49 )\n{\nv35 = sub_45EBC2(v41[2]);\nif ( v35 )\n{\nv47 = sub_45D820(*v41, v48, &v35);\nif ( v47 )\nreturn 8LL;\nif ( dword_4A1320 )\n{\nv11 = sub_45EFDC(v48, v35);\nsub_4605E2(3, (unsigned int)\"%s: keystream prefix: %s\\n\", (_DWORD)off_4A1328, v11, v12, v13);\n}\n}\n}\nif ( v45 )\n{\nif ( v41[1] )\n{\nv47 = sub_458223((__int64)v46, v45, (__int64)v41);\nif ( v47 )\nreturn v47;\n}\n}\nif ( v50 )\n{\nv47 = sub_45D871(*v41, v50, &v38);\nif ( v47 )\nreturn 8LL;\n}\nif ( !v49 )\ngoto LABEL_89;\nv47 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v41[2] + 40LL))(*(_QWORD *)(v41[2] + 8LL));\nif ( v47 )\nreturn v47;\nv47 = (*(__int64 (__fastcall **)(_QWORD, _BYTE *, _QWORD))(*(_QWORD *)v41[2] + 32LL))(\n*(_QWORD *)(v41[2] + 8LL),\nv49,\n(unsigned int)*a3);\nif ( v47 )\nreturn v47;\nif ( dword_4A1320 )\nsub_4605E2(3, (unsigned int)\"%s: estimated packet index: %016llx\\n\", (_DWORD)off_4A1328, v37, v14, v15);\nv47 = (*(__int64 (__fastcall **)(_QWORD, unsigned __int64 *, __int64, _QWORD, _BYTE *))(*(_QWORD *)v41[2] + 24LL))(\n*(_QWORD *)(v41[2] + 8LL),\n&v37,\n4LL,\n*(unsigned int *)(v41[2] + 16LL),\nv48);\nif ( dword_4A1320 )\n{\nv16 = sub_45EFDC(v48, v39);\nsub_4605E2(3, (unsigned int)\"%s: srtp auth tag: %s\\n\", (_DWORD)off_4A1328, v16, v17, v18);\n}\nif ( v47 )\n{\nresult = 7LL;\n}\nelse\n{\nLABEL_89:\nif ( v48 )\n*a3 += v39;\nif ( a4 )\n*a3 += v42;\nresult = 0LL;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v14,v22,v23,v25,v28,v31,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,sub_45934E,sub_4605E2,sub_45607C,sub_45A76E,sub_456B10,sub_45716E,sub_4589AD,sub_460577,sub_45EBB1,sub_4571BC,sub_4588DF,sub_460CB0,sub_460B2C,sub_460AA8,sub_45603C,sub_45D7C1,sub_45EBC2,sub_45D820,sub_45EFDC,sub_458223,sub_45D871,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'pkt_octet_len', 'a4': 'use_mki', 'a1': 'ctx', 'a2': 'rtp_hdr', 'a5': 'mki_index', 'v14': 'mki_index', 'v22': 'iv_0', 'v23': 'iv', 'v25': 'data_1', 'v28': 'data_0', 'v31': 'data', 'v34': 'new_stream', 'v35': 'prefix_len', 'v36': 'delta', 'v37': 'est', 'v38': 'enc_octet_len', 'v39': 'tag_len', 'v40': 'mki_location', 'v41': 'session_keys', 'v42': 'mki_size', 'v43': 'hdr', 'v44': 'advance_packet_index', 'v45': 'xtn_hdr', 'v46': 'stream', 'v47': 'status', 'v48': 'auth_tag', 'v49': 'auth_start', 'v50': 'enc_start', 'sub_45934E': 'srtp_protect_mki', 'sub_4605E2': 'srtp_err_report', 'sub_45607C': 'srtp_validate_rtp_header', 'sub_45A76E': 'srtp_get_stream', 'sub_456B10': 'srtp_stream_clone', 'sub_45716E': 'srtp_get_session_keys_with_mki_index', 'sub_4589AD': 'srtp_protect_aead', 'sub_460577': 'srtp_key_limit_update', 'sub_45EBB1': 'srtp_auth_get_tag_length', 'sub_4571BC': 'srtp_inject_mki', 'sub_4588DF': 'srtp_get_est_pkt_index', 'sub_460CB0': 'srtp_rdbx_set_roc_seq', 'sub_460B2C': 'srtp_rdbx_add_index', 'sub_460AA8': 'srtp_rdbx_check', 'sub_45603C': 'be64_to_cpu', 'sub_45D7C1': 'srtp_cipher_set_iv', 'sub_45EBC2': 'srtp_auth_get_prefix_length', 'sub_45D820': 'srtp_cipher_output', 'sub_45EFDC': 'srtp_octet_string_hex_string', 'sub_458223': 'srtp_process_header_encryption', 'sub_45D871': 'srtp_cipher_encrypt'}"}
outBuffer
93192e07cec4d59483e6b3e32da52f5af5f7a99b328cbb9789aa4ddee58b024e
MarioViara
xprintfc
NA
static unsigned outBuffer(void (*myoutchar)(void *arg,char),void *arg,const char *buffer,int len,unsigned toupper) { unsigned count = 0; int i; char c; for (i = 0; i < len ; i++) { c = buffer[i]; if (toupper && (c >= 'a' && c <= 'z')) { c = (char)(c - ('a' - 'A')); } (*myoutchar)(arg,c); count++; } return count; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401CAF", "function_addr": 4201647, "binary_name": "93192e07cec4d59483e6b3e32da52f5af5f7a99b328cbb9789aa4ddee58b024e.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, "mov [rbp+var_30], r8d"], [8, "mov [rbp+var_4], 0"], [9, "mov [rbp+var_8], 0"], [10, "jmp short loc_401D24"], [11, "mov eax, [rbp+var_8]"], [12, "movsxd rdx, eax"], [13, "mov rax, [rbp+var_28]"], [14, "add rax, rdx"], [15, "movzx eax, byte ptr [rax]"], [16, "mov [rbp+var_9], al"], [17, "cmp [rbp+var_30], 0"], [18, "jz short loc_401D09"], [19, "cmp [rbp+var_9], 60h "], [20, "jle short loc_401D09"], [21, "cmp [rbp+var_9], 7Ah "], [22, "jg short loc_401D09"], [23, "movzx eax, [rbp+var_9]"], [24, "sub eax, 20h "], [25, "mov [rbp+var_9], al"], [26, "movsx edx, [rbp+var_9]"], [27, "mov rax, [rbp+var_20]"], [28, "mov rcx, [rbp+var_18]"], [29, "mov esi, edx"], [30, "mov rdi, rax"], [31, "call rcx"], [32, "add [rbp+var_4], 1"], [33, "add [rbp+var_8], 1"], [34, "mov eax, [rbp+var_8]"], [35, "cmp eax, [rbp+var_2C]"], [36, "jl short loc_401CDA"], [37, "mov eax, [rbp+var_4]"], [38, "leave"], [39, "retn"]], "data_dep": [[11, 9], [11, 33], [12, 11], [13, 5], [14, 13], [14, 12], [15, 14], [16, 15], [17, 7], [18, 17], [19, 16], [20, 19], [21, 16], [22, 21], [23, 16], [24, 23], [25, 24], [26, 16], [26, 25], [27, 4], [28, 3], [29, 26], [30, 27], [31, 28], [32, 8], [32, 32], [33, 9], [33, 33], [34, 9], [34, 33], [35, 34], [35, 6], [36, 35], [37, 8], [37, 32], [39, 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/93192e07cec4d59483e6b3e32da52f5af5f7a99b328cbb9789aa4ddee58b024e_93192e07cec4d59483e6b3e32da52f5af5f7a99b328cbb9789aa4ddee58b024e.jsonl.gz", "strip_func_name": "sub_401CAF", "query": "\n\n\n__int64 __fastcall sub_401CAF(void (__fastcall *a1)(__int64, _QWORD), __int64 a2, __int64 a3, int a4, int a5)\n{\nchar v9; // [rsp+27h] [rbp-9h]\nint i; // [rsp+28h] [rbp-8h]\nunsigned int v11; // [rsp+2Ch] [rbp-4h]\n\nv11 = 0;\nfor ( i = 0; i < a4; ++i )\n{\nv9 = *(_BYTE *)(i + a3);\nif ( a5 && v9 > 96 && v9 <= 122 )\nv9 -= 32;\na1(a2, (unsigned int)v9);\n++v11;\n}\nreturn v11;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v9,v11,sub_401CAF,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'buffer', 'a4': 'len', 'a1': 'myoutchar', 'a2': 'arg', 'a5': 'toupper', 'v9': 'c', 'v11': 'count', 'sub_401CAF': 'outBuffer'}"}
getNextETag
c0e109c02d23041cf557f0ac45598de9043334cedae0010bfabb46cc9f0ec43c
jech
polipo
NA
static int getNextETag(const char * restrict buf, int i, int *x_return, int *y_return, int *weak_return) { int weak = 0; int x, y; while(buf[i] == ' ' || buf[i] == '\t') i++; if(buf[i] == 'W' && buf[i + 1] == '/') { weak = 1; i += 2; } if(buf[i] == '"') i++; else return -1; x = i; while(buf[i] != '"') { if(buf[i] == '\r' || buf[i] == '\n') return -1; i++; } y = i; i++; *x_return = x; *y_return = y; *weak_return = weak; return i; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42C593", "function_addr": 4375955, "binary_name": "c0e109c02d23041cf557f0ac45598de9043334cedae0010bfabb46cc9f0ec43c.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, "mov [rbp+var_30], rcx"], [6, "mov [rbp+var_38], r8"], [7, "mov [rbp+var_4], 0"], [8, "jmp short loc_42C5B7"], [9, "add [rbp+var_1C], 1"], [10, "mov eax, [rbp+var_1C]"], [11, "movsxd rdx, eax"], [12, "mov rax, [rbp+var_18]"], [13, "add rax, rdx"], [14, "movzx eax, byte ptr [rax]"], [15, "cmp al, 20h "], [16, "jz short loc_42C5B3"], [17, "mov eax, [rbp+var_1C]"], [18, "movsxd rdx, eax"], [19, "mov rax, [rbp+var_18]"], [20, "add rax, rdx"], [21, "movzx eax, byte ptr [rax]"], [22, "cmp al, 9"], [23, "jz short loc_42C5B3"], [24, "mov eax, [rbp+var_1C]"], [25, "movsxd rdx, eax"], [26, "mov rax, [rbp+var_18]"], [27, "add rax, rdx"], [28, "movzx eax, byte ptr [rax]"], [29, "cmp al, 57h "], [30, "jnz short loc_42C615"], [31, "mov eax, [rbp+var_1C]"], [32, "cdqe"], [33, "lea rdx, [rax+1]"], [34, "mov rax, [rbp+var_18]"], [35, "add rax, rdx"], [36, "movzx eax, byte ptr [rax]"], [37, "cmp al, 2Fh "], [38, "jnz short loc_42C615"], [39, "mov [rbp+var_4], 1"], [40, "add [rbp+var_1C], 2"], [41, "mov eax, [rbp+var_1C]"], [42, "movsxd rdx, eax"], [43, "mov rax, [rbp+var_18]"], [44, "add rax, rdx"], [45, "movzx eax, byte ptr [rax]"], [46, "cmp al, 22h "], [47, "jnz short loc_42C635"], [48, "add [rbp+var_1C], 1"], [49, "mov eax, [rbp+var_1C]"], [50, "mov [rbp+var_8], eax"], [51, "jmp short loc_42C66F"], [52, "mov eax, 0FFFFFFFFh"], [53, "jmp short loc_42C6AB"], [54, "mov eax, [rbp+var_1C]"], [55, "movsxd rdx, eax"], [56, "mov rax, [rbp+var_18]"], [57, "add rax, rdx"], [58, "movzx eax, byte ptr [rax]"], [59, "cmp al, 0Dh"], [60, "jz short loc_42C664"], [61, "mov eax, [rbp+var_1C]"], [62, "movsxd rdx, eax"], [63, "mov rax, [rbp+var_18]"], [64, "add rax, rdx"], [65, "movzx eax, byte ptr [rax]"], [66, "cmp al, 0Ah"], [67, "jnz short loc_42C66B"], [68, "mov eax, 0FFFFFFFFh"], [69, "jmp short loc_42C6AB"], [70, "add [rbp+var_1C], 1"], [71, "mov eax, [rbp+var_1C]"], [72, "movsxd rdx, eax"], [73, "mov rax, [rbp+var_18]"], [74, "add rax, rdx"], [75, "movzx eax, byte ptr [rax]"], [76, "cmp al, 22h "], [77, "jnz short loc_42C63C"], [78, "mov eax, [rbp+var_1C]"], [79, "mov [rbp+var_C], eax"], [80, "add [rbp+var_1C], 1"], [81, "mov rax, [rbp+var_28]"], [82, "mov edx, [rbp+var_8]"], [83, "mov [rax], edx"], [84, "mov rax, [rbp+var_30]"], [85, "mov edx, [rbp+var_C]"], [86, "mov [rax], edx"], [87, "mov rax, [rbp+var_38]"], [88, "mov edx, [rbp+var_4]"], [89, "mov [rax], edx"], [90, "mov eax, [rbp+var_1C]"], [91, "pop rbp"], [92, "retn"]], "data_dep": [[9, 3], [9, 9], [10, 3], [10, 9], [11, 10], [12, 2], [13, 12], [13, 11], [14, 13], [15, 14], [16, 15], [17, 3], [17, 9], [18, 17], [19, 2], [20, 19], [20, 18], [21, 20], [22, 21], [23, 22], [24, 3], [24, 9], [25, 24], [26, 2], [27, 26], [27, 25], [28, 27], [29, 28], [30, 29], [31, 3], [31, 9], [33, 31], [33, 25], [34, 2], [35, 33], [35, 34], [36, 35], [37, 36], [38, 37], [40, 3], [40, 9], [41, 40], [41, 3], [41, 9], [42, 41], [43, 2], [44, 42], [44, 43], [45, 44], [46, 45], [47, 46], [48, 40], [48, 3], [48, 9], [49, 48], [50, 49], [54, 48], [54, 70], [55, 54], [56, 2], [57, 56], [57, 55], [58, 57], [59, 58], [60, 59], [61, 70], [61, 48], [62, 61], [63, 2], [64, 62], [64, 63], [65, 64], [66, 65], [67, 66], [70, 48], [70, 70], [71, 48], [71, 70], [72, 71], [73, 2], [74, 73], [74, 72], [75, 74], [76, 75], [77, 76], [78, 70], [78, 48], [79, 78], [80, 48], [80, 70], [81, 4], [82, 50], [83, 82], [83, 81], [84, 5], [85, 79], [86, 85], [86, 84], [87, 6], [88, 39], [88, 7], [89, 88], [89, 87], [90, 80], [91, 0], [92, 90], [92, 68], [92, 52]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c0e109c02d23041cf557f0ac45598de9043334cedae0010bfabb46cc9f0ec43c_c0e109c02d23041cf557f0ac45598de9043334cedae0010bfabb46cc9f0ec43c.jsonl.gz", "strip_func_name": "sub_42C593", "query": "\n\n\n__int64 __fastcall sub_42C593(__int64 a1, int a2, _DWORD *a3, _DWORD *a4, int *a5)\n{\nint v7; // [rsp+1Ch] [rbp-1Ch]\nint v8; // [rsp+30h] [rbp-8h]\nint v9; // [rsp+34h] [rbp-4h]\n\nv9 = 0;\nwhile ( *(_BYTE *)(a2 + a1) == 32 || *(_BYTE *)(a2 + a1) == 9 )\n++a2;\nif ( *(_BYTE *)(a2 + a1) == 87 && *(_BYTE *)(a2 + 1LL + a1) == 47 )\n{\nv9 = 1;\na2 += 2;\n}\nif ( *(_BYTE *)(a2 + a1) != 34 )\nreturn 0xFFFFFFFFLL;\nv7 = a2 + 1;\nv8 = v7;\nwhile ( *(_BYTE *)(v7 + a1) != 34 )\n{\nif ( *(_BYTE *)(v7 + a1) == 13 || *(_BYTE *)(v7 + a1) == 10 )\nreturn 0xFFFFFFFFLL;\n++v7;\n}\n*a3 = v8;\n*a4 = v7;\n*a5 = v9;\nreturn (unsigned int)(v7 + 1);\n}\n\n\n\nQ:[a3,a4,a1,a5,v7,v8,v9,sub_42C593,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'x_return', 'a4': 'y_return', 'a1': 'buf', 'a5': 'weak_return', 'v7': 'ib', 'v8': 'x', 'v9': 'weak', 'sub_42C593': 'getNextETag'}"}
PokeMini_GetVideo5x5_32
876701f3a9046127c14232fb92e42c99080f16ec5c3cb376c624f10cf0c1511f
gameblabla
pokemini
NA
TPokeMini_DrawVideo32 PokeMini_GetVideo5x5_32(int filter, int lcdmode) { if (filter == PokeMini_Scanline) { switch (lcdmode) { case 3: return PokeMini_VideoColorL5x5_32; case 2: return PokeMini_Video2ScanLine5x5_32; case 1: return PokeMini_Video3ScanLine5x5_32; default: return PokeMini_VideoAScanLine5x5_32; } } else if (filter == PokeMini_Matrix) { switch (lcdmode) { case 3: return (VidEnableHighcolor) ? PokeMini_VideoColorH5x5_32 : PokeMini_VideoColor5x5_32; case 2: return PokeMini_Video2Matrix5x5_32; case 1: return PokeMini_Video3Matrix5x5_32; default: return PokeMini_VideoAMatrix5x5_32; } } else { switch (lcdmode) { case 3: return PokeMini_VideoColor5x5_32; case 2: return PokeMini_Video2None5x5_32; case 1: return PokeMini_Video3None5x5_32; default: return PokeMini_VideoANone5x5_32; } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414F80", "function_addr": 4280192, "binary_name": "876701f3a9046127c14232fb92e42c99080f16ec5c3cb376c624f10cf0c1511f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "mov [rbp+var_8], esi"], [4, "cmp [rbp+var_4], 2"], [5, "jnz short loc_414FD2"], [6, "cmp [rbp+var_8], 3"], [7, "jz short loc_414FAA"], [8, "cmp [rbp+var_8], 3"], [9, "jg short loc_414FC8"], [10, "cmp [rbp+var_8], 1"], [11, "jz short loc_414FBE"], [12, "cmp [rbp+var_8], 2"], [13, "jz short loc_414FB4"], [14, "jmp short loc_414FC8"], [15, "mov eax, offset sub_419E87"], [16, "jmp loc_415053"], [17, "mov eax, offset sub_41678C"], [18, "jmp loc_415053"], [19, "mov eax, offset sub_415A17"], [20, "jmp loc_415053"], [21, "mov eax, offset sub_41512A"], [22, "jmp loc_415053"], [23, "cmp [rbp+var_4], 1"], [24, "jnz short loc_41501F"], [25, "cmp [rbp+var_8], 3"], [26, "jz short loc_414FF2"], [27, "cmp [rbp+var_8], 3"], [28, "jg short loc_415018"], [29, "cmp [rbp+var_8], 1"], [30, "jz short loc_415011"], [31, "cmp [rbp+var_8], 2"], [32, "jz short loc_41500A"], [33, "jmp short loc_415018"], [34, "mov eax, cs:dword_4A21D4"], [35, "test eax, eax"], [36, "jz short loc_415003"], [37, "mov eax, offset sub_41A774"], [38, "jmp short loc_415053"], [39, "mov eax, offset sub_419703"], [40, "jmp short loc_415053"], [41, "mov eax, offset sub_41781C"], [42, "jmp short loc_415053"], [43, "mov eax, offset sub_417428"], [44, "jmp short loc_415053"], [45, "mov eax, offset sub_4170CE"], [46, "jmp short loc_415053"], [47, "cmp [rbp+var_8], 3"], [48, "jz short loc_415039"], [49, "cmp [rbp+var_8], 3"], [50, "jg short loc_41504E"], [51, "cmp [rbp+var_8], 1"], [52, "jz short loc_415047"], [53, "cmp [rbp+var_8], 2"], [54, "jz short loc_415040"], [55, "jmp short loc_41504E"], [56, "mov eax, offset sub_419703"], [57, "jmp short loc_415053"], [58, "mov eax, offset sub_418F2A"], [59, "jmp short loc_415053"], [60, "mov eax, offset sub_41831E"], [61, "jmp short loc_415053"], [62, "mov eax, offset sub_417B9A"], [63, "pop rbp"], [64, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 3], [7, 6], [8, 3], [9, 8], [10, 3], [11, 10], [12, 3], [13, 12], [23, 2], [24, 23], [25, 3], [26, 25], [27, 3], [28, 27], [29, 3], [30, 29], [31, 3], [32, 31], [35, 34], [36, 35], [47, 3], [48, 47], [49, 3], [50, 49], [51, 3], [52, 51], [53, 3], [54, 53], [63, 0], [64, 17], [64, 41], [64, 56], [64, 62], [64, 19], [64, 37], [64, 43], [64, 58], [64, 15], [64, 21], [64, 39], [64, 45], [64, 60]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/876701f3a9046127c14232fb92e42c99080f16ec5c3cb376c624f10cf0c1511f_876701f3a9046127c14232fb92e42c99080f16ec5c3cb376c624f10cf0c1511f.jsonl.gz", "strip_func_name": "sub_414F80", "query": "\n\n\n__int64 (__fastcall *__fastcall sub_414F80(int a1, int a2))()\n{\n__int64 (__fastcall *result)(); // rax\n\nif ( a1 == 2 )\n{\nif ( a2 == 3 )\nreturn sub_419E87;\nif ( a2 <= 3 )\n{\nif ( a2 == 1 )\nreturn sub_415A17;\nif ( a2 == 2 )\nreturn sub_41678C;\n}\nresult = sub_41512A;\n}\nelse if ( a1 == 1 )\n{\nif ( a2 == 3 )\n{\nif ( dword_4A21D4 )\nresult = sub_41A774;\nelse\nresult = sub_419703;\n}\nelse\n{\nif ( a2 <= 3 )\n{\nif ( a2 == 1 )\nreturn sub_417428;\nif ( a2 == 2 )\nreturn sub_41781C;\n}\nresult = sub_4170CE;\n}\n}\nelse\n{\nif ( a2 == 3 )\nreturn sub_419703;\nif ( a2 <= 3 )\n{\nif ( a2 == 1 )\nreturn sub_41831E;\nif ( a2 == 2 )\nreturn sub_418F2A;\n}\nresult = sub_417B9A;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_414F80,sub_419E87,sub_415A17,sub_41678C,sub_41512A,sub_41A774,sub_419703,sub_417428,sub_41781C,sub_4170CE,sub_41831E,sub_418F2A,sub_417B9A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'filter', 'a2': 'lcdmode', 'sub_414F80': 'PokeMini_GetVideo5x5_32', 'sub_419E87': 'PokeMini_VideoColorL5x5_32', 'sub_415A17': 'PokeMini_Video3ScanLine5x5_32', 'sub_41678C': 'PokeMini_Video2ScanLine5x5_32', 'sub_41512A': 'PokeMini_VideoAScanLine5x5_32', 'sub_41A774': 'PokeMini_VideoColorH5x5_32', 'sub_419703': 'PokeMini_VideoColor5x5_32', 'sub_417428': 'PokeMini_Video3Matrix5x5_32', 'sub_41781C': 'PokeMini_Video2Matrix5x5_32', 'sub_4170CE': 'PokeMini_VideoAMatrix5x5_32', 'sub_41831E': 'PokeMini_Video3None5x5_32', 'sub_418F2A': 'PokeMini_Video2None5x5_32', 'sub_417B9A': 'PokeMini_VideoANone5x5_32'}"}
repeated_message_scalar_value_types_encode
c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705
eerimoq
pbtools
NA
int repeated_message_scalar_value_types_encode( struct repeated_message_scalar_value_types_t *self_p, uint8_t *encoded_p, size_t size) { return (pbtools_message_encode( &self_p->base, encoded_p, size, (pbtools_message_encode_inner_t)repeated_message_scalar_value_types_encode_inner)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_426BD0", "function_addr": 4352976, "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_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, cs:qword_4EBCE0"], [7, "add rax, 1"], [8, "mov cs:qword_4EBCE0, rax"], [9, "mov rax, [rbp+var_8]"], [10, "mov rdx, [rbp+var_18]"], [11, "mov rsi, [rbp+var_10]"], [12, "mov ecx, offset sub_4250B0"], [13, "mov rdi, rax"], [14, "call sub_415A57"], [15, "mov rdx, cs:qword_4EBCE8"], [16, "add rdx, 1"], [17, "mov cs:qword_4EBCE8, rdx"], [18, "leave"], [19, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 3], [10, 5], [11, 4], [13, 9], [16, 15], [17, 16], [19, 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/c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705_c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705.jsonl.gz", "strip_func_name": "sub_426BD0", "query": "\n\n\n__int64 __fastcall sub_426BD0(__int64 a1, __int64 a2, int a3)\n{\n__int64 result; // rax\n\n++qword_4EBCE0;\nresult = sub_415A57(a1, a2, a3, (void (__fastcall *)(unsigned __int64, __int64))sub_4250B0);\n++qword_4EBCE8;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,sub_426BD0,sub_415A57,sub_4250B0,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'size', 'a1': 'self_p', 'a2': 'encoded_p', 'sub_426BD0': 'repeated_message_scalar_value_types_encode', 'sub_415A57': 'pbtools_message_encode', 'sub_4250B0': 'repeated_message_scalar_value_types_encode_inner'}"}
optionsmenu
d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3
velorek1
C-edit
NA
void optionsmenu() { int setColor; data.index = OPTION_NIL; cleanStatusBar(); write_str(1, rows, STATUS_BAR_MSG2, STATUSBAR, STATUSMSG); loadmenus(mylist, OPT_MENU); write_str(7, 1, "Options", MENU_SELECTOR, MENU_FOREGROUND1); draw_window(7, 2, 20, 6, MENU_PANEL, MENU_FOREGROUND0,0, 1,0); kglobal = start_vmenu(&data); close_window(); write_str(1, 1, "File Options Help", MENU_PANEL, MENU_FOREGROUND0); write_str(1, 1, "F", MENU_PANEL, F_RED); write_str(8, 1, "p", MENU_PANEL, F_RED); write_str(16, 1, "H", MENU_PANEL, F_RED); update_screen(); free_list(mylist); if(data.index == OPTION_1) { //File Info fileInfoDialog(); } if(data.index == OPTION_3) { //Set Colors setColor = colorsWindow(mylist,COLORSWTITLE); setColorScheme(setColor); checkConfigFile(setColor); //save new configuration in config file refresh_screen(1); } data.index = OPTION_NIL; //Restore message in status bar cleanStatusBar(); write_str(1, rows, STATUS_BAR_MSG1, STATUSBAR, STATUSMSG); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40382B", "function_addr": 4208683, "binary_name": "d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov cs:dword_40E200, 0FFFFFFFFh"], [4, "mov eax, 0"], [5, "call sub_4033ED"], [6, "mov ecx, cs:dword_40E174"], [7, "mov edx, cs:dword_40E170"], [8, "mov eax, cs:dword_1538C10"], [9, "mov r8d, ecx"], [10, "mov ecx, edx"], [11, "mov edx, offset aCEditPressEscT"], [12, "mov esi, eax"], [13, "mov edi, 1"], [14, "call sub_406AE1"], [15, "mov rax, cs:qword_40E1E0"], [16, "mov esi, 1"], [17, "mov rdi, rax"], [18, "call sub_408C30"], [19, "mov edx, cs:dword_40E18C"], [20, "mov eax, cs:dword_40E180"], [21, "mov r8d, edx"], [22, "mov ecx, eax"], [23, "mov edx, offset aOptions"], [24, "mov esi, 1"], [25, "mov edi, 7"], [26, "call sub_406AE1"], [27, "mov edx, cs:dword_40E184"], [28, "mov eax, cs:dword_40E178"], [29, "sub rsp, 8"], [30, "push 0"], [31, "push 1"], [32, "push 0"], [33, "mov r9d, edx"], [34, "mov r8d, eax"], [35, "mov ecx, 6"], [36, "mov edx, 14h"], [37, "mov esi, 2"], [38, "mov edi, 7"], [39, "call sub_407076"], [40, "add rsp, 20h"], [41, "mov edi, offset dword_40E200"], [42, "call sub_406055"], [43, "mov cs:byte_1538C24, al"], [44, "mov eax, 0"], [45, "call sub_406F5F"], [46, "mov edx, cs:dword_40E184"], [47, "mov eax, cs:dword_40E178"], [48, "mov r8d, edx"], [49, "mov ecx, eax"], [50, "mov edx, offset aFileOptionsHel"], [51, "mov esi, 1"], [52, "mov edi, 1"], [53, "call sub_406AE1"], [54, "mov eax, cs:dword_40E178"], [55, "mov r8d, 1Fh"], [56, "mov ecx, eax"], [57, "mov edx, offset off_40B10D"], [58, "mov esi, 1"], [59, "mov edi, 1"], [60, "call sub_406AE1"], [61, "mov eax, cs:dword_40E178"], [62, "mov r8d, 1Fh"], [63, "mov ecx, eax"], [64, "mov edx, 40B10Fh"], [65, "mov esi, 1"], [66, "mov edi, 8"], [67, "call sub_406AE1"], [68, "mov eax, cs:dword_40E178"], [69, "mov r8d, 1Fh"], [70, "mov ecx, eax"], [71, "mov edx, offset unk_40B111"], [72, "mov esi, 1"], [73, "mov edi, 10h"], [74, "call sub_406AE1"], [75, "mov eax, 0"], [76, "call sub_406C9A"], [77, "mov rax, cs:qword_40E1E0"], [78, "mov rdi, rax"], [79, "mov eax, 0"], [80, "call sub_405D93"], [81, "mov eax, cs:dword_40E200"], [82, "test eax, eax"], [83, "jnz short loc_4039B8"], [84, "mov eax, 0"], [85, "call sub_404DE6"], [86, "mov eax, cs:dword_40E200"], [87, "cmp eax, 2"], [88, "jnz short loc_4039F8"], [89, "mov rax, cs:qword_40E1E0"], [90, "mov esi, offset aSetColor"], [91, "mov rdi, rax"], [92, "call sub_40A070"], [93, "mov [rbp+var_4], eax"], [94, "mov eax, [rbp+var_4]"], [95, "mov edi, eax"], [96, "call sub_409E14"], [97, "mov eax, [rbp+var_4]"], [98, "mov edi, eax"], [99, "call sub_40A5C1"], [100, "mov edi, 1"], [101, "call sub_401C44"], [102, "mov cs:dword_40E200, 0FFFFFFFFh"], [103, "mov eax, 0"], [104, "call sub_4033ED"], [105, "mov ecx, cs:dword_40E174"], [106, "mov edx, cs:dword_40E170"], [107, "mov eax, cs:dword_1538C10"], [108, "mov r8d, ecx"], [109, "mov ecx, edx"], [110, "mov edx, offset aCEditF2CtrlLMe"], [111, "mov esi, eax"], [112, "mov edi, 1"], [113, "call sub_406AE1"], [114, "nop"], [115, "leave"], [116, "retn"]], "data_dep": [[9, 6], [10, 7], [12, 8], [17, 15], [21, 19], [22, 20], [29, 2], [33, 27], [34, 28], [40, 29], [43, 42], [48, 46], [49, 47], [56, 54], [63, 61], [70, 68], [78, 77], [81, 3], [82, 81], [83, 82], [86, 3], [87, 86], [88, 87], [91, 89], [93, 92], [94, 93], [95, 94], [97, 93], [98, 97], [108, 105], [109, 106], [111, 107], [116, 113]]}
{"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/d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3_d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3.jsonl.gz", "strip_func_name": "sub_40382B", "query": "\n\n\n__int64 sub_40382B()\n{\nunsigned int v1; // [rsp+Ch] [rbp-4h]\n\ndword_40E200 = -1;\nsub_4033ED();\nsub_406AE1(\n1LL,\n(unsigned int)dword_1538C10,\n\" [C-Edit] Press ESC to exit menu. \",\n(unsigned int)dword_40E170,\n(unsigned int)dword_40E174);\nsub_408C30(qword_40E1E0, 1LL);\nsub_406AE1(7LL, 1LL, \"Options\", (unsigned int)dword_40E180, (unsigned int)dword_40E18C);\nsub_407076(7, 2, 20, 6, dword_40E178, dword_40E184, 0, 1, 0);\nbyte_1538C24 = sub_406055(&dword_40E200);\nsub_406F5F();\nsub_406AE1(1LL, 1LL, \"File Options Help\", (unsigned int)dword_40E178, (unsigned int)dword_40E184);\nsub_406AE1(1LL, 1LL, &off_40B10D, (unsigned int)dword_40E178, 31LL);\nsub_406AE1(8LL, 1LL, 4239631LL, (unsigned int)dword_40E178, 31LL);\nsub_406AE1(16LL, 1LL, &unk_40B111, (unsigned int)dword_40E178, 31LL);\nsub_406C9A();\nsub_405D93(qword_40E1E0);\nif ( !dword_40E200 )\nsub_404DE6();\nif ( dword_40E200 == 2 )\n{\nv1 = sub_40A070(qword_40E1E0, \"[-] SET COLOR\");\nsub_409E14(v1);\nsub_40A5C1(v1);\nsub_401C44(1);\n}\ndword_40E200 = -1;\nsub_4033ED();\nreturn sub_406AE1(\n1LL,\n(unsigned int)dword_1538C10,\n\" [C-Edit] | F2,CTRL+L: MENU | F1: HELP\",\n(unsigned int)dword_40E170,\n(unsigned int)dword_40E174);\n}\n\n\n\nQ:[v1,sub_40382B,sub_4033ED,sub_406AE1,sub_408C30,sub_407076,sub_406055,sub_406F5F,sub_406C9A,sub_405D93,sub_404DE6,sub_40A070,sub_409E14,sub_40A5C1,sub_401C44,]\nAssistant: ", "hints": "[]", "response": "{'v1': 'setColor', 'sub_40382B': 'optionsmenu', 'sub_4033ED': 'cleanStatusBar', 'sub_406AE1': 'write_str', 'sub_408C30': 'loadmenus', 'sub_407076': 'draw_window', 'sub_406055': 'start_vmenu', 'sub_406F5F': 'close_window', 'sub_406C9A': 'update_screen', 'sub_405D93': 'free_list', 'sub_404DE6': 'fileInfoDialog', 'sub_40A070': 'colorsWindow', 'sub_409E14': 'setColorScheme', 'sub_40A5C1': 'checkConfigFile', 'sub_401C44': 'refresh_screen'}"}
sim_rtcn_calb
52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc
open-simh
simh
NA
int32 sim_rtcn_calb (uint32 ticksper, int32 tmr) { uint32 new_rtime, delta_rtime, last_idle_pct, catchup_ticks_curr; int32 delta_vtime; double new_gtime; int32 new_currd; int32 itmr; RTC *rtc; if (tmr == SIM_INTERNAL_CLK) tmr = SIM_NTIMERS; else { if ((tmr < 0) || (tmr >= SIM_NTIMERS)) return 10000; } rtc = &rtcs[tmr]; if (rtc->hz != ticksper) { /* changing tick rate? */ uint32 prior_hz = rtc->hz; if (rtc->hz == 0) rtc->clock_tick_start_time = sim_timenow_double (); if ((rtc->last_hz != 0) && (rtc->last_hz != ticksper) && (ticksper != 0)) rtc->currd = (int32)(sim_timer_inst_per_sec () / ticksper); rtc->last_hz = rtc->hz; rtc->hz = ticksper; _rtcn_configure_calibrated_clock (tmr); if (ticksper != 0) { RTC *crtc = &rtcs[sim_calb_tmr]; rtc->clock_tick_size = 1.0 / ticksper; sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(ticksper=%d,tmr=%d) currd=%d, prior_hz=%d\n", ticksper, tmr, rtc->currd, (int)prior_hz); if ((tmr != sim_calb_tmr) && rtc->clock_unit && (ticksper > crtc->hz)) { sim_catchup_ticks = TRUE; sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(%d) - forcing catchup ticks for %s ticking at %d, host tick rate %ds\n", tmr, sim_uname (rtc->clock_unit), ticksper, sim_os_tick_hz); _rtcn_tick_catchup_check (rtc, 0); } } else sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(ticksper=%d,tmr=%d) timer stopped currd was %d, prior_hz=%d\n", ticksper, tmr, rtc->currd, (int)prior_hz); } if (ticksper == 0) /* running? */ return 10000; if (rtc->clock_unit == NULL) { /* Not using TIMER units? */ rtc->clock_ticks += 1; rtc->calib_tick_time += rtc->clock_tick_size; } if (rtc->clock_catchup_pending) { /* catchup tick? */ ++rtc->clock_catchup_ticks; /* accumulating which were catchups */ ++rtc->clock_catchup_ticks_curr; rtc->clock_catchup_pending = FALSE; } rtc->ticks += 1; /* count ticks */ if (rtc->ticks < ticksper) /* 1 sec yet? */ return rtc->currd; catchup_ticks_curr = rtc->clock_catchup_ticks_curr; rtc->clock_catchup_ticks_curr = 0; rtc->ticks = 0; /* reset ticks */ rtc->elapsed += 1; /* count sec */ if (!rtc_avail) /* no timer? */ return rtc->currd; if (sim_calb_tmr != tmr) { rtc->currd = (int32)(sim_timer_inst_per_sec()/ticksper); sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(tmr=%d) calibrated against internal system tmr=%d, tickper=%d (result: %d)\n", tmr, sim_calb_tmr, ticksper, rtc->currd); return rtc->currd; } new_rtime = sim_os_msec (); /* wall time */ if (!sim_signaled_int_char && ((new_rtime - sim_last_poll_kbd_time) > 500)) { sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(tmr=%d) gratuitious keyboard poll after %d msecs\n", tmr, (int)(new_rtime - sim_last_poll_kbd_time)); (void)sim_poll_kbd (); } ++rtc->calibrations; /* count calibrations */ sim_debug (DBG_TRC, &sim_timer_dev, "sim_rtcn_calb(ticksper=%d, tmr=%d)\n", ticksper, tmr); if (new_rtime < rtc->rtime) { /* time running backwards? */ /* This happens when the value returned by sim_os_msec wraps (as an uint32) */ /* Wrapping will happen initially sometime before a simulator has been running */ /* for 49 days approximately every 49 days thereafter. */ ++rtc->clock_calib_backwards; /* Count statistic */ sim_debug (DBG_CAL, &sim_timer_dev, "time running backwards - OldTime: %u, NewTime: %u, result: %d\n", rtc->rtime, new_rtime, rtc->currd); rtc->vtime = rtc->rtime = new_rtime; /* reset wall time */ rtc->nxintv = 1000; rtc->based = rtc->currd; if (rtc->clock_catchup_eligible) { rtc->clock_catchup_base_time = sim_timenow_double(); rtc->calib_tick_time = 0.0; } return rtc->currd; /* can't calibrate */ } delta_rtime = new_rtime - rtc->rtime; /* elapsed wtime */ rtc->rtime = new_rtime; /* adv wall time */ rtc->vtime += 1000; /* adv sim time */ if (delta_rtime > 30000) { /* gap too big? */ /* This simulator process has somehow been suspended for a significant */ /* amount of time. This will certainly happen if the host system has */ /* slept or hibernated. It also might happen when a simulator */ /* developer stops the simulator at a breakpoint (a process, not simh */ /* breakpoint). To accomodate this, we set the calibration state to */ /* ignore what happened and proceed from here. */ ++rtc->clock_calib_gap2big; /* Count statistic */ rtc->vtime = rtc->rtime; /* sync virtual and real time */ rtc->nxintv = 1000; /* reset next interval */ rtc->gtime = sim_gtime(); /* save instruction time */ rtc->based = rtc->currd; if (rtc->clock_catchup_eligible) rtc->calib_tick_time += ((double)delta_rtime / 1000.0);/* advance tick time */ sim_debug (DBG_CAL, &sim_timer_dev, "gap too big: delta = %d - result: %d\n", delta_rtime, rtc->currd); return rtc->currd; /* can't calibr */ } last_idle_pct = 0; /* normally force calibration */ if (tmr != SIM_NTIMERS) { if (delta_rtime != 0) /* avoid divide by zero */ last_idle_pct = MIN(100, (uint32)(100.0 * (((double)(rtc->clock_time_idled - rtc->clock_time_idled_last)) / ((double)delta_rtime)))); rtc->clock_time_idled_last = rtc->clock_time_idled; if (last_idle_pct > sim_idle_calib_pct) { rtc->rtime = new_rtime; /* save wall time */ rtc->vtime += 1000; /* adv sim time */ rtc->gtime = sim_gtime(); /* save instruction time */ rtc->based = rtc->currd; ++rtc->clock_calib_skip_idle; sim_debug (DBG_CAL, &sim_timer_dev, "skipping calibration due to idling (%d%%) - result: %d\n", last_idle_pct, rtc->currd); return rtc->currd; /* avoid calibrating idle checks */ } } new_gtime = sim_gtime(); if ((last_idle_pct == 0) && (delta_rtime != 0)) { sim_idle_cyc_ms = (uint32)((new_gtime - rtc->gtime) / delta_rtime); if ((sim_idle_rate_ms != 0) && (delta_rtime > 1)) sim_idle_cyc_sleep = (uint32)((new_gtime - rtc->gtime) / (delta_rtime / sim_idle_rate_ms)); } if (sim_asynch_timer || (catchup_ticks_curr > 0)) { /* An asynchronous clock or when catchup ticks have */ /* occurred, we merely needs to divide the number of */ /* instructions actually executed by the clock rate. */ new_currd = (int32)((new_gtime - rtc->gtime)/ticksper); /* avoid excessive swings in the calibrated result */ if (new_currd > 10*rtc->currd) /* don't swing big too fast */ new_currd = 10*rtc->currd; else { if (new_currd < rtc->currd/10) /* don't swing small too fast */ new_currd = rtc->currd/10; } rtc->based = rtc->currd = new_currd; rtc->gtime = new_gtime; /* save instruction time */ sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(%s tmr=%d, tickper=%d) catchups=%u, idle=%d%% result: %d\n", sim_asynch_timer ? "asynch" : "catchup", tmr, ticksper, catchup_ticks_curr, last_idle_pct, rtc->currd); return rtc->currd; /* calibrated result */ } rtc->gtime = new_gtime; /* save instruction time */ /* This self regulating algorithm depends directly on the assumption */ /* that this routine is called back after processing the number of */ /* instructions which was returned the last time it was called. */ if (delta_rtime == 0) /* gap too small? */ rtc->based = rtc->based * ticksper; /* slew wide */ else rtc->based = (int32) (((double) rtc->based * (double) rtc->nxintv) / ((double) delta_rtime));/* new base rate */ delta_vtime = rtc->vtime - rtc->rtime; /* gap */ if (delta_vtime > SIM_TMAX) /* limit gap */ delta_vtime = SIM_TMAX; else { if (delta_vtime < -SIM_TMAX) delta_vtime = -SIM_TMAX; } rtc->nxintv = 1000 + delta_vtime; /* next wtime */ rtc->currd = (int32) (((double) rtc->based * (double) rtc->nxintv) / 1000.0); /* next delay */ if (rtc->based <= 0) /* never negative or zero! */ rtc->based = 1; if (rtc->currd <= 0) /* never negative or zero! */ rtc->currd = 1; sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(tmr=%d, tickper=%d) (delta_rtime=%d, delta_vtime=%d, base=%d, nxintv=%u, catchups=%u, idle=%d%%, result: %d)\n", tmr, ticksper, (int)delta_rtime, (int)delta_vtime, rtc->based, rtc->nxintv, catchup_ticks_curr, last_idle_pct, rtc->currd); /* Adjust calibration for other timers which depend on this timer's calibration */ for (itmr=0; itmr<=SIM_NTIMERS; itmr++) { RTC *irtc = &rtcs[itmr]; if ((itmr != tmr) && (irtc->hz != 0)) irtc->currd = (rtc->currd * ticksper) / irtc->hz; } AIO_SET_INTERRUPT_LATENCY(rtc->currd * ticksper); /* set interrrupt latency */ return rtc->currd; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44CC0A", "function_addr": 4508682, "binary_name": "52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 68h"], [4, "mov [rbp+var_64], edi"], [5, "mov [rbp+var_68], esi"], [6, "cmp [rbp+var_68], 40000008h"], [7, "jnz short loc_44CC2B"], [8, "mov [rbp+var_68], 8"], [9, "jmp short loc_44CC41"], [10, "cmp [rbp+var_68], 0"], [11, "js short loc_44CC37"], [12, "cmp [rbp+var_68], 7"], [13, "jle short loc_44CC41"], [14, "mov eax, 2710h"], [15, "jmp loc_44DA33"], [16, "mov eax, [rbp+var_68]"], [17, "movsxd rdx, eax"], [18, "mov rax, rdx"], [19, "shl rax, 2"], [20, "add rax, rdx"], [21, "lea rdx, ds:0[rax*4]"], [22, "add rax, rdx"], [23, "shl rax, 3"], [24, "add rax, 1513980h"], [25, "mov [rbp+var_28], rax"], [26, "mov rax, [rbp+var_28]"], [27, "mov eax, [rax+20h]"], [28, "cmp [rbp+var_64], eax"], [29, "jz loc_44CEF7"], [30, "mov rax, [rbp+var_28]"], [31, "mov eax, [rax+20h]"], [32, "mov [rbp+var_2C], eax"], [33, "mov rax, [rbp+var_28]"], [34, "mov eax, [rax+20h]"], [35, "test eax, eax"], [36, "jnz short loc_44CCA4"], [37, "call sub_4523C8"], [38, "movq rax, xmm0"], [39, "mov rdx, [rbp+var_28]"], [40, "mov [rdx+90h], rax"], [41, "mov rax, [rbp+var_28]"], [42, "mov eax, [rax+24h]"], [43, "test eax, eax"], [44, "jz short loc_44CD0B"], [45, "mov rax, [rbp+var_28]"], [46, "mov eax, [rax+24h]"], [47, "cmp [rbp+var_64], eax"], [48, "jz short loc_44CD0B"], [49, "cmp [rbp+var_64], 0"], [50, "jz short loc_44CD0B"], [51, "call sub_45373D"], [52, "movq rcx, xmm0"], [53, "mov eax, [rbp+var_64]"], [54, "test rax, rax"], [55, "js short loc_44CCDE"], [56, "pxor xmm0, xmm0"], [57, "cvtsi2sd xmm0, rax"], [58, "jmp short loc_44CCF7"], [59, "mov rdx, rax"], [60, "shr rdx, 1"], [61, "and eax, 1"], [62, "or rdx, rax"], [63, "pxor xmm0, xmm0"], [64, "cvtsi2sd xmm0, rdx"], [65, "addsd xmm0, xmm0"], [66, "movq xmm1, rcx"], [67, "divsd xmm1, xmm0"], [68, "cvttsd2si edx, xmm1"], [69, "mov rax, [rbp+var_28]"], [70, "mov [rax+40h], edx"], [71, "mov rax, [rbp+var_28]"], [72, "mov edx, [rax+20h]"], [73, "mov rax, [rbp+var_28]"], [74, "mov [rax+24h], edx"], [75, "mov rax, [rbp+var_28]"], [76, "mov edx, [rbp+var_64]"], [77, "mov [rax+20h], edx"], [78, "mov eax, [rbp+var_68]"], [79, "mov edi, eax"], [80, "call sub_4529D6"], [81, "cmp [rbp+var_64], 0"], [82, "jz loc_44CEA4"], [83, "mov eax, cs:dword_4E6EC8"], [84, "movsxd rdx, eax"], [85, "mov rax, rdx"], [86, "shl rax, 2"], [87, "add rax, rdx"], [88, "lea rdx, ds:0[rax*4]"], [89, "add rax, rdx"], [90, "shl rax, 3"], [91, "add rax, 1513980h"], [92, "mov [rbp+var_38], rax"], [93, "mov eax, [rbp+var_64]"], [94, "test rax, rax"], [95, "js short loc_44CD76"], [96, "pxor xmm0, xmm0"], [97, "cvtsi2sd xmm0, rax"], [98, "jmp short loc_44CD8F"], [99, "mov rdx, rax"], [100, "shr rdx, 1"], [101, "and eax, 1"], [102, "or rdx, rax"], [103, "pxor xmm0, xmm0"], [104, "cvtsi2sd xmm0, rdx"], [105, "addsd xmm0, xmm0"], [106, "movsd xmm1, cs:qword_4B3DD0"], [107, "divsd xmm1, xmm0"], [108, "mov rax, [rbp+var_28]"], [109, "movsd qword ptr [rax+58h], xmm1"], [110, "mov rax, cs:qword_14EFB20"], [111, "test rax, rax"], [112, "jz short loc_44CDF7"], [113, "mov eax, cs:dword_4E70B4"], [114, "and eax, 10h"], [115, "test eax, eax"], [116, "jz short loc_44CDF7"], [117, "mov edx, [rbp+var_2C]"], [118, "mov rax, [rbp+var_28]"], [119, "mov esi, [rax+40h]"], [120, "mov ecx, [rbp+var_68]"], [121, "mov eax, [rbp+var_64]"], [122, "sub rsp, 8"], [123, "push rdx"], [124, "mov r9d, esi"], [125, "mov r8d, ecx"], [126, "mov ecx, eax"], [127, "mov edx, offset aSimRtcnCalbTic"], [128, "mov esi, offset off_4E7040"], [129, "mov edi, 10h"], [130, "mov eax, 0"], [131, "call sub_43A3B9"], [132, "add rsp, 10h"], [133, "mov eax, cs:dword_4E6EC8"], [134, "cmp [rbp+var_68], eax"], [135, "jz loc_44CEF7"], [136, "mov rax, [rbp+var_28]"], [137, "mov rax, [rax]"], [138, "test rax, rax"], [139, "jz loc_44CEF7"], [140, "mov rax, [rbp+var_38]"], [141, "mov eax, [rax+20h]"], [142, "cmp [rbp+var_64], eax"], [143, "jbe loc_44CEF7"], [144, "mov cs:dword_4E6EE0, 1"], [145, "mov rax, cs:qword_14EFB20"], [146, "test rax, rax"], [147, "jz short loc_44CE91"], [148, "mov eax, cs:dword_4E70B4"], [149, "and eax, 10h"], [150, "test eax, eax"], [151, "jz short loc_44CE91"], [152, "mov ebx, cs:dword_1514DF4"], [153, "mov rax, [rbp+var_28]"], [154, "mov rax, [rax]"], [155, "mov rdi, rax"], [156, "call sub_428DAA"], [157, "mov rdx, rax"], [158, "mov ecx, [rbp+var_64]"], [159, "mov eax, [rbp+var_68]"], [160, "sub rsp, 8"], [161, "push rbx"], [162, "mov r9d, ecx"], [163, "mov r8, rdx"], [164, "mov ecx, eax"], [165, "mov edx, offset aSimRtcnCalbDFo"], [166, "mov esi, offset off_4E7040"], [167, "mov edi, 10h"], [168, "mov eax, 0"], [169, "call sub_43A3B9"], [170, "add rsp, 10h"], [171, "mov rax, [rbp+var_28]"], [172, "mov esi, 0"], [173, "mov rdi, rax"], [174, "call sub_451CA5"], [175, "jmp short loc_44CEF7"], [176, "mov rax, cs:qword_14EFB20"], [177, "test rax, rax"], [178, "jz short loc_44CEF7"], [179, "mov eax, cs:dword_4E70B4"], [180, "and eax, 10h"], [181, "test eax, eax"], [182, "jz short loc_44CEF7"], [183, "mov edx, [rbp+var_2C]"], [184, "mov rax, [rbp+var_28]"], [185, "mov esi, [rax+40h]"], [186, "mov ecx, [rbp+var_68]"], [187, "mov eax, [rbp+var_64]"], [188, "sub rsp, 8"], [189, "push rdx"], [190, "mov r9d, esi"], [191, "mov r8d, ecx"], [192, "mov ecx, eax"], [193, "mov edx, offset aSimRtcnCalbTic_0"], [194, "mov esi, offset off_4E7040"], [195, "mov edi, 10h"], [196, "mov eax, 0"], [197, "call sub_43A3B9"], [198, "add rsp, 10h"], [199, "cmp [rbp+var_64], 0"], [200, "jnz short loc_44CF07"], [201, "mov eax, 2710h"], [202, "jmp loc_44DA33"], [203, "mov rax, [rbp+var_28]"], [204, "mov rax, [rax]"], [205, "test rax, rax"], [206, "jnz short loc_44CF49"], [207, "mov rax, [rbp+var_28]"], [208, "mov eax, [rax+80h]"], [209, "lea edx, [rax+1]"], [210, "mov rax, [rbp+var_28]"], [211, "mov [rax+80h], edx"], [212, "mov rax, [rbp+var_28]"], [213, "movsd xmm1, qword ptr [rax+68h]"], [214, "mov rax, [rbp+var_28]"], [215, "movsd xmm0, qword ptr [rax+58h]"], [216, "addsd xmm0, xmm1"], [217, "mov rax, [rbp+var_28]"], [218, "movsd qword ptr [rax+68h], xmm0"], [219, "mov rax, [rbp+var_28]"], [220, "mov eax, [rax+0ACh]"], [221, "test eax, eax"], [222, "jz short loc_44CF93"], [223, "mov rax, [rbp+var_28]"], [224, "mov eax, [rax+0A0h]"], [225, "lea edx, [rax+1]"], [226, "mov rax, [rbp+var_28]"], [227, "mov [rax+0A0h], edx"], [228, "mov rax, [rbp+var_28]"], [229, "mov eax, [rax+0A8h]"], [230, "lea edx, [rax+1]"], [231, "mov rax, [rbp+var_28]"], [232, "mov [rax+0A8h], edx"], [233, "mov rax, [rbp+var_28]"], [234, "mov dword ptr [rax+0ACh], 0"], [235, "mov rax, [rbp+var_28]"], [236, "mov eax, [rax+1Ch]"], [237, "lea edx, [rax+1]"], [238, "mov rax, [rbp+var_28]"], [239, "mov [rax+1Ch], edx"], [240, "mov rax, [rbp+var_28]"], [241, "mov eax, [rax+1Ch]"], [242, "cmp [rbp+var_64], eax"], [243, "jbe short loc_44CFBC"], [244, "mov rax, [rbp+var_28]"], [245, "mov eax, [rax+40h]"], [246, "jmp loc_44DA33"], [247, "mov rax, [rbp+var_28]"], [248, "mov eax, [rax+0A8h]"], [249, "mov [rbp+var_3C], eax"], [250, "mov rax, [rbp+var_28]"], [251, "mov dword ptr [rax+0A8h], 0"], [252, "mov rax, [rbp+var_28]"], [253, "mov dword ptr [rax+1Ch], 0"], [254, "mov rax, [rbp+var_28]"], [255, "mov eax, [rax+48h]"], [256, "lea edx, [rax+1]"], [257, "mov rax, [rbp+var_28]"], [258, "mov [rax+48h], edx"], [259, "mov eax, 1"], [260, "test eax, eax"], [261, "jnz short loc_44D008"], [262, "mov rax, [rbp+var_28]"], [263, "mov eax, [rax+40h]"], [264, "jmp loc_44DA33"], [265, "mov eax, cs:dword_4E6EC8"], [266, "cmp [rbp+var_68], eax"], [267, "jz loc_44D0C3"], [268, "call sub_45373D"], [269, "movq rcx, xmm0"], [270, "mov eax, [rbp+var_64]"], [271, "test rax, rax"], [272, "js short loc_44D034"], [273, "pxor xmm0, xmm0"], [274, "cvtsi2sd xmm0, rax"], [275, "jmp short loc_44D04D"], [276, "mov rdx, rax"], [277, "shr rdx, 1"], [278, "and eax, 1"], [279, "or rdx, rax"], [280, "pxor xmm0, xmm0"], [281, "cvtsi2sd xmm0, rdx"], [282, "addsd xmm0, xmm0"], [283, "movq xmm1, rcx"], [284, "divsd xmm1, xmm0"], [285, "cvttsd2si edx, xmm1"], [286, "mov rax, [rbp+var_28]"], [287, "mov [rax+40h], edx"], [288, "mov rax, cs:qword_14EFB20"], [289, "test rax, rax"], [290, "jz short loc_44D0B7"], [291, "mov eax, cs:dword_4E70B4"], [292, "and eax, 10h"], [293, "test eax, eax"], [294, "jz short loc_44D0B7"], [295, "mov rax, [rbp+var_28]"], [296, "mov edx, [rax+40h]"], [297, "mov ecx, cs:dword_4E6EC8"], [298, "mov esi, [rbp+var_64]"], [299, "mov eax, [rbp+var_68]"], [300, "sub rsp, 8"], [301, "push rdx"], [302, "mov r9d, esi"], [303, "mov r8d, ecx"], [304, "mov ecx, eax"], [305, "mov edx, offset aSimRtcnCalbTmr"], [306, "mov esi, offset off_4E7040"], [307, "mov edi, 10h"], [308, "mov eax, 0"], [309, "call sub_43A3B9"], [310, "add rsp, 10h"], [311, "mov rax, [rbp+var_28]"], [312, "mov eax, [rax+40h]"], [313, "jmp loc_44DA33"], [314, "call sub_44C5AB"], [315, "mov [rbp+var_40], eax"], [316, "mov eax, cs:dword_4E2B8C"], [317, "test eax, eax"], [318, "jnz short loc_44D133"], [319, "mov edx, cs:dword_15125A8"], [320, "mov eax, [rbp+var_40]"], [321, "sub eax, edx"], [322, "cmp eax, 1F4h"], [323, "jbe short loc_44D133"], [324, "mov rax, cs:qword_14EFB20"], [325, "test rax, rax"], [326, "jz short loc_44D12E"], [327, "mov eax, cs:dword_4E70B4"], [328, "and eax, 10h"], [329, "test eax, eax"], [330, "jz short loc_44D12E"], [331, "mov edx, cs:dword_15125A8"], [332, "mov eax, [rbp+var_40]"], [333, "sub eax, edx"], [334, "mov edx, eax"], [335, "mov eax, [rbp+var_68]"], [336, "mov r8d, edx"], [337, "mov ecx, eax"], [338, "mov edx, offset aSimRtcnCalbTmr_0"], [339, "mov esi, offset off_4E7040"], [340, "mov edi, 10h"], [341, "mov eax, 0"], [342, "call sub_43A3B9"], [343, "call sub_4487DC"], [344, "mov rax, [rbp+var_28]"], [345, "mov eax, [rax+4Ch]"], [346, "lea edx, [rax+1]"], [347, "mov rax, [rbp+var_28]"], [348, "mov [rax+4Ch], edx"], [349, "mov rax, cs:qword_14EFB20"], [350, "test rax, rax"], [351, "jz short loc_44D181"], [352, "mov eax, cs:dword_4E70B4"], [353, "and eax, 8"], [354, "test eax, eax"], [355, "jz short loc_44D181"], [356, "mov edx, [rbp+var_68]"], [357, "mov eax, [rbp+var_64]"], [358, "mov r8d, edx"], [359, "mov ecx, eax"], [360, "mov edx, offset aSimRtcnCalbTic_1"], [361, "mov esi, offset off_4E7040"], [362, "mov edi, 8"], [363, "mov eax, 0"], [364, "call sub_43A3B9"], [365, "mov rax, [rbp+var_28]"], [366, "mov eax, [rax+28h]"], [367, "cmp [rbp+var_40], eax"], [368, "jnb loc_44D260"], [369, "mov rax, [rbp+var_28]"], [370, "mov eax, [rax+0C4h]"], [371, "lea edx, [rax+1]"], [372, "mov rax, [rbp+var_28]"], [373, "mov [rax+0C4h], edx"], [374, "mov rax, cs:qword_14EFB20"], [375, "test rax, rax"], [376, "jz short loc_44D1F3"], [377, "mov eax, cs:dword_4E70B4"], [378, "and eax, 10h"], [379, "test eax, eax"], [380, "jz short loc_44D1F3"], [381, "mov rax, [rbp+var_28]"], [382, "mov ecx, [rax+40h]"], [383, "mov rax, [rbp+var_28]"], [384, "mov eax, [rax+28h]"], [385, "mov edx, [rbp+var_40]"], [386, "mov r9d, ecx"], [387, "mov r8d, edx"], [388, "mov ecx, eax"], [389, "mov edx, offset aTimeRunningBac"], [390, "mov esi, offset off_4E7040"], [391, "mov edi, 10h"], [392, "mov eax, 0"], [393, "call sub_43A3B9"], [394, "mov rax, [rbp+var_28]"], [395, "mov edx, [rbp+var_40]"], [396, "mov [rax+28h], edx"], [397, "mov rax, [rbp+var_28]"], [398, "mov edx, [rax+28h]"], [399, "mov rax, [rbp+var_28]"], [400, "mov [rax+2Ch], edx"], [401, "mov rax, [rbp+var_28]"], [402, "mov dword ptr [rax+38h], 3E8h"], [403, "mov rax, [rbp+var_28]"], [404, "mov edx, [rax+40h]"], [405, "mov rax, [rbp+var_28]"], [406, "mov [rax+3Ch], edx"], [407, "mov rax, [rbp+var_28]"], [408, "mov eax, [rax+0B0h]"], [409, "test eax, eax"], [410, "jz short loc_44D254"], [411, "call sub_4523C8"], [412, "movq rax, xmm0"], [413, "mov rdx, [rbp+var_28]"], [414, "mov [rdx+98h], rax"], [415, "mov rax, [rbp+var_28]"], [416, "pxor xmm0, xmm0"], [417, "movsd qword ptr [rax+68h], xmm0"], [418, "mov rax, [rbp+var_28]"], [419, "mov eax, [rax+40h]"], [420, "jmp loc_44DA33"], [421, "mov rax, [rbp+var_28]"], [422, "mov edx, [rax+28h]"], [423, "mov eax, [rbp+var_40]"], [424, "sub eax, edx"], [425, "mov [rbp+var_44], eax"], [426, "mov rax, [rbp+var_28]"], [427, "mov edx, [rbp+var_40]"], [428, "mov [rax+28h], edx"], [429, "mov rax, [rbp+var_28]"], [430, "mov eax, [rax+2Ch]"], [431, "lea edx, [rax+3E8h]"], [432, "mov rax, [rbp+var_28]"], [433, "mov [rax+2Ch], edx"], [434, "cmp [rbp+var_44], 7530h"], [435, "jbe loc_44D393"], [436, "mov rax, [rbp+var_28]"], [437, "mov eax, [rax+0C0h]"], [438, "lea edx, [rax+1]"], [439, "mov rax, [rbp+var_28]"], [440, "mov [rax+0C0h], edx"], [441, "mov rax, [rbp+var_28]"], [442, "mov edx, [rax+28h]"], [443, "mov rax, [rbp+var_28]"], [444, "mov [rax+2Ch], edx"], [445, "mov rax, [rbp+var_28]"], [446, "mov dword ptr [rax+38h], 3E8h"], [447, "call sub_433941"], [448, "movq rax, xmm0"], [449, "mov rdx, [rbp+var_28]"], [450, "mov [rdx+30h], rax"], [451, "mov rax, [rbp+var_28]"], [452, "mov edx, [rax+40h]"], [453, "mov rax, [rbp+var_28]"], [454, "mov [rax+3Ch], edx"], [455, "mov rax, [rbp+var_28]"], [456, "mov eax, [rax+0B0h]"], [457, "test eax, eax"], [458, "jz short loc_44D346"], [459, "mov rax, [rbp+var_28]"], [460, "movsd xmm1, qword ptr [rax+68h]"], [461, "mov eax, [rbp+var_44]"], [462, "test rax, rax"], [463, "js short loc_44D314"], [464, "pxor xmm0, xmm0"], [465, "cvtsi2sd xmm0, rax"], [466, "jmp short loc_44D32D"], [467, "mov rdx, rax"], [468, "shr rdx, 1"], [469, "and eax, 1"], [470, "or rdx, rax"], [471, "pxor xmm0, xmm0"], [472, "cvtsi2sd xmm0, rdx"], [473, "addsd xmm0, xmm0"], [474, "movsd xmm2, cs:qword_4B3DD8"], [475, "divsd xmm0, xmm2"], [476, "addsd xmm0, xmm1"], [477, "mov rax, [rbp+var_28]"], [478, "movsd qword ptr [rax+68h], xmm0"], [479, "mov rax, cs:qword_14EFB20"], [480, "test rax, rax"], [481, "jz short loc_44D387"], [482, "mov eax, cs:dword_4E70B4"], [483, "and eax, 10h"], [484, "test eax, eax"], [485, "jz short loc_44D387"], [486, "mov rax, [rbp+var_28]"], [487, "mov edx, [rax+40h]"], [488, "mov eax, [rbp+var_44]"], [489, "mov r8d, edx"], [490, "mov ecx, eax"], [491, "mov edx, offset aGapTooBigDelta"], [492, "mov esi, offset off_4E7040"], [493, "mov edi, 10h"], [494, "mov eax, 0"], [495, "call sub_43A3B9"], [496, "mov rax, [rbp+var_28]"], [497, "mov eax, [rax+40h]"], [498, "jmp loc_44DA33"], [499, "mov [rbp+var_14], 0"], [500, "cmp [rbp+var_68], 8"], [501, "jz loc_44D507"], [502, "cmp [rbp+var_44], 0"], [503, "jz loc_44D442"], [504, "mov rax, [rbp+var_28]"], [505, "mov edx, [rax+0B4h]"], [506, "mov rax, [rbp+var_28]"], [507, "mov eax, [rax+0B8h]"], [508, "sub edx, eax"], [509, "mov eax, edx"], [510, "test rax, rax"], [511, "js short loc_44D3D6"], [512, "pxor xmm0, xmm0"], [513, "cvtsi2sd xmm0, rax"], [514, "jmp short loc_44D3EF"], [515, "mov rdx, rax"], [516, "shr rdx, 1"], [517, "and eax, 1"], [518, "or rdx, rax"], [519, "pxor xmm0, xmm0"], [520, "cvtsi2sd xmm0, rdx"], [521, "addsd xmm0, xmm0"], [522, "mov eax, [rbp+var_44]"], [523, "test rax, rax"], [524, "js short loc_44D402"], [525, "pxor xmm1, xmm1"], [526, "cvtsi2sd xmm1, rax"], [527, "jmp short loc_44D41B"], [528, "mov rdx, rax"], [529, "shr rdx, 1"], [530, "and eax, 1"], [531, "or rdx, rax"], [532, "pxor xmm1, xmm1"], [533, "cvtsi2sd xmm1, rdx"], [534, "addsd xmm1, xmm1"], [535, "movapd xmm2, xmm0"], [536, "divsd xmm2, xmm1"], [537, "movsd xmm0, cs:qword_4B3DE0"], [538, "mulsd xmm0, xmm2"], [539, "cvttsd2si rax, xmm0"], [540, "mov edx, 64h "], [541, "cmp eax, 64h "], [542, "cmova eax, edx"], [543, "mov [rbp+var_14], eax"], [544, "mov rax, [rbp+var_28]"], [545, "mov edx, [rax+0B4h]"], [546, "mov rax, [rbp+var_28]"], [547, "mov [rax+0B8h], edx"], [548, "mov eax, cs:dword_4E6ED4"], [549, "cmp [rbp+var_14], eax"], [550, "jbe loc_44D507"], [551, "mov rax, [rbp+var_28]"], [552, "mov edx, [rbp+var_40]"], [553, "mov [rax+28h], edx"], [554, "mov rax, [rbp+var_28]"], [555, "mov eax, [rax+2Ch]"], [556, "lea edx, [rax+3E8h]"], [557, "mov rax, [rbp+var_28]"], [558, "mov [rax+2Ch], edx"], [559, "call sub_433941"], [560, "movq rax, xmm0"], [561, "mov rdx, [rbp+var_28]"], [562, "mov [rdx+30h], rax"], [563, "mov rax, [rbp+var_28]"], [564, "mov edx, [rax+40h]"], [565, "mov rax, [rbp+var_28]"], [566, "mov [rax+3Ch], edx"], [567, "mov rax, [rbp+var_28]"], [568, "mov eax, [rax+0BCh]"], [569, "lea edx, [rax+1]"], [570, "mov rax, [rbp+var_28]"], [571, "mov [rax+0BCh], edx"], [572, "mov rax, cs:qword_14EFB20"], [573, "test rax, rax"], [574, "jz short loc_44D4FB"], [575, "mov eax, cs:dword_4E70B4"], [576, "and eax, 10h"], [577, "test eax, eax"], [578, "jz short loc_44D4FB"], [579, "mov rax, [rbp+var_28]"], [580, "mov edx, [rax+40h]"], [581, "mov eax, [rbp+var_14]"], [582, "mov r8d, edx"], [583, "mov ecx, eax"], [584, "mov edx, offset aSkippingCalibr"], [585, "mov esi, offset off_4E7040"], [586, "mov edi, 10h"], [587, "mov eax, 0"], [588, "call sub_43A3B9"], [589, "mov rax, [rbp+var_28]"], [590, "mov eax, [rax+40h]"], [591, "jmp loc_44DA33"], [592, "call sub_433941"], [593, "movq rax, xmm0"], [594, "mov [rbp+var_50], rax"], [595, "cmp [rbp+var_14], 0"], [596, "jnz loc_44D5EA"], [597, "cmp [rbp+var_44], 0"], [598, "jz loc_44D5EA"], [599, "mov rax, [rbp+var_28]"], [600, "movsd xmm2, qword ptr [rax+30h]"], [601, "movsd xmm0, [rbp+var_50]"], [602, "movapd xmm1, xmm0"], [603, "subsd xmm1, xmm2"], [604, "mov eax, [rbp+var_44]"], [605, "test rax, rax"], [606, "js short loc_44D552"], [607, "pxor xmm0, xmm0"], [608, "cvtsi2sd xmm0, rax"], [609, "jmp short loc_44D56B"], [610, "mov rdx, rax"], [611, "shr rdx, 1"], [612, "and eax, 1"], [613, "or rdx, rax"], [614, "pxor xmm0, xmm0"], [615, "cvtsi2sd xmm0, rdx"], [616, "addsd xmm0, xmm0"], [617, "divsd xmm1, xmm0"], [618, "cvttsd2si rax, xmm1"], [619, "mov cs:dword_1514E3C, eax"], [620, "mov eax, cs:dword_1514DE4"], [621, "test eax, eax"], [622, "jz short loc_44D5EA"], [623, "cmp [rbp+var_44], 1"], [624, "jbe short loc_44D5EA"], [625, "mov rax, [rbp+var_28]"], [626, "movsd xmm2, qword ptr [rax+30h]"], [627, "movsd xmm0, [rbp+var_50]"], [628, "movapd xmm1, xmm0"], [629, "subsd xmm1, xmm2"], [630, "mov ebx, cs:dword_1514DE4"], [631, "mov eax, [rbp+var_44]"], [632, "mov edx, 0"], [633, "div ebx"], [634, "mov eax, eax"], [635, "test rax, rax"], [636, "js short loc_44D5C2"], [637, "pxor xmm0, xmm0"], [638, "cvtsi2sd xmm0, rax"], [639, "jmp short loc_44D5DB"], [640, "mov rdx, rax"], [641, "shr rdx, 1"], [642, "and eax, 1"], [643, "or rdx, rax"], [644, "pxor xmm0, xmm0"], [645, "cvtsi2sd xmm0, rdx"], [646, "addsd xmm0, xmm0"], [647, "divsd xmm1, xmm0"], [648, "cvttsd2si rax, xmm1"], [649, "mov cs:dword_1514E40, eax"], [650, "mov eax, cs:dword_15149E8"], [651, "test eax, eax"], [652, "jnz short loc_44D5FE"], [653, "cmp [rbp+var_3C], 0"], [654, "jz loc_44D760"], [655, "mov rax, [rbp+var_28]"], [656, "movsd xmm2, qword ptr [rax+30h]"], [657, "movsd xmm0, [rbp+var_50]"], [658, "movapd xmm1, xmm0"], [659, "subsd xmm1, xmm2"], [660, "mov eax, [rbp+var_64]"], [661, "test rax, rax"], [662, "js short loc_44D627"], [663, "pxor xmm0, xmm0"], [664, "cvtsi2sd xmm0, rax"], [665, "jmp short loc_44D640"], [666, "mov rdx, rax"], [667, "shr rdx, 1"], [668, "and eax, 1"], [669, "or rdx, rax"], [670, "pxor xmm0, xmm0"], [671, "cvtsi2sd xmm0, rdx"], [672, "addsd xmm0, xmm0"], [673, "divsd xmm1, xmm0"], [674, "cvttsd2si eax, xmm1"], [675, "mov [rbp+var_1C], eax"], [676, "mov rax, [rbp+var_28]"], [677, "mov edx, [rax+40h]"], [678, "mov eax, edx"], [679, "shl eax, 2"], [680, "add eax, edx"], [681, "add eax, eax"], [682, "cmp [rbp+var_1C], eax"], [683, "jle short loc_44D675"], [684, "mov rax, [rbp+var_28]"], [685, "mov edx, [rax+40h]"], [686, "mov eax, edx"], [687, "shl eax, 2"], [688, "add eax, edx"], [689, "add eax, eax"], [690, "mov [rbp+var_1C], eax"], [691, "jmp short loc_44D6BF"], [692, "mov rax, [rbp+var_28]"], [693, "mov eax, [rax+40h]"], [694, "movsxd rdx, eax"], [695, "imul rdx, 66666667h"], [696, "shr rdx, 20h"], [697, "sar edx, 2"], [698, "sar eax, 1Fh"], [699, "mov ecx, eax"], [700, "mov eax, edx"], [701, "sub eax, ecx"], [702, "cmp [rbp+var_1C], eax"], [703, "jge short loc_44D6BF"], [704, "mov rax, [rbp+var_28]"], [705, "mov eax, [rax+40h]"], [706, "movsxd rdx, eax"], [707, "imul rdx, 66666667h"], [708, "shr rdx, 20h"], [709, "sar edx, 2"], [710, "sar eax, 1Fh"], [711, "mov ecx, eax"], [712, "mov eax, edx"], [713, "sub eax, ecx"], [714, "mov [rbp+var_1C], eax"], [715, "mov rax, [rbp+var_28]"], [716, "mov edx, [rbp+var_1C]"], [717, "mov [rax+40h], edx"], [718, "mov rax, [rbp+var_28]"], [719, "mov edx, [rax+40h]"], [720, "mov rax, [rbp+var_28]"], [721, "mov [rax+3Ch], edx"], [722, "mov rax, [rbp+var_28]"], [723, "movsd xmm0, [rbp+var_50]"], [724, "movsd qword ptr [rax+30h], xmm0"], [725, "mov rax, cs:qword_14EFB20"], [726, "test rax, rax"], [727, "jz short loc_44D754"], [728, "mov eax, cs:dword_4E70B4"], [729, "and eax, 10h"], [730, "test eax, eax"], [731, "jz short loc_44D754"], [732, "mov rax, [rbp+var_28]"], [733, "mov eax, [rax+40h]"], [734, "mov edx, cs:dword_15149E8"], [735, "test edx, edx"], [736, "jz short loc_44D716"], [737, "mov esi, offset aAsynch"], [738, "jmp short loc_44D71B"], [739, "mov esi, offset aCatchup"], [740, "mov ecx, [rbp+var_64]"], [741, "mov edx, [rbp+var_68]"], [742, "sub rsp, 8"], [743, "push rax"], [744, "mov eax, [rbp+var_14]"], [745, "push rax"], [746, "mov eax, [rbp+var_3C]"], [747, "push rax"], [748, "mov r9d, ecx"], [749, "mov r8d, edx"], [750, "mov rcx, rsi"], [751, "mov edx, offset aSimRtcnCalbSTm"], [752, "mov esi, offset off_4E7040"], [753, "mov edi, 10h"], [754, "mov eax, 0"], [755, "call sub_43A3B9"], [756, "add rsp, 20h"], [757, "mov rax, [rbp+var_28]"], [758, "mov eax, [rax+40h]"], [759, "jmp loc_44DA33"], [760, "mov rax, [rbp+var_28]"], [761, "movsd xmm0, [rbp+var_50]"], [762, "movsd qword ptr [rax+30h], xmm0"], [763, "cmp [rbp+var_44], 0"], [764, "jnz short loc_44D78D"], [765, "mov rax, [rbp+var_28]"], [766, "mov eax, [rax+3Ch]"], [767, "imul eax, [rbp+var_64]"], [768, "mov edx, eax"], [769, "mov rax, [rbp+var_28]"], [770, "mov [rax+3Ch], edx"], [771, "jmp loc_44D80D"], [772, "mov rax, [rbp+var_28]"], [773, "mov eax, [rax+3Ch]"], [774, "pxor xmm1, xmm1"], [775, "cvtsi2sd xmm1, eax"], [776, "mov rax, [rbp+var_28]"], [777, "mov eax, [rax+38h]"], [778, "mov eax, eax"], [779, "test rax, rax"], [780, "js short loc_44D7B5"], [781, "pxor xmm0, xmm0"], [782, "cvtsi2sd xmm0, rax"], [783, "jmp short loc_44D7CE"], [784, "mov rdx, rax"], [785, "shr rdx, 1"], [786, "and eax, 1"], [787, "or rdx, rax"], [788, "pxor xmm0, xmm0"], [789, "cvtsi2sd xmm0, rdx"], [790, "addsd xmm0, xmm0"], [791, "mulsd xmm1, xmm0"], [792, "mov eax, [rbp+var_44]"], [793, "test rax, rax"], [794, "js short loc_44D7E5"], [795, "pxor xmm0, xmm0"], [796, "cvtsi2sd xmm0, rax"], [797, "jmp short loc_44D7FE"], [798, "mov rdx, rax"], [799, "shr rdx, 1"], [800, "and eax, 1"], [801, "or rdx, rax"], [802, "pxor xmm0, xmm0"], [803, "cvtsi2sd xmm0, rdx"], [804, "addsd xmm0, xmm0"], [805, "divsd xmm1, xmm0"], [806, "cvttsd2si edx, xmm1"], [807, "mov rax, [rbp+var_28]"], [808, "mov [rax+3Ch], edx"], [809, "mov rax, [rbp+var_28]"], [810, "mov edx, [rax+2Ch]"], [811, "mov rax, [rbp+var_28]"], [812, "mov ecx, [rax+28h]"], [813, "mov eax, edx"], [814, "sub eax, ecx"], [815, "mov [rbp+var_18], eax"], [816, "cmp [rbp+var_18], 1F4h"], [817, "jle short loc_44D834"], [818, "mov [rbp+var_18], 1F4h"], [819, "jmp short loc_44D844"], [820, "cmp [rbp+var_18], 0FFFFFE0Ch"], [821, "jge short loc_44D844"], [822, "mov [rbp+var_18], 0FFFFFE0Ch"], [823, "mov eax, [rbp+var_18]"], [824, "add eax, 3E8h"], [825, "mov edx, eax"], [826, "mov rax, [rbp+var_28]"], [827, "mov [rax+38h], edx"], [828, "mov rax, [rbp+var_28]"], [829, "mov eax, [rax+3Ch]"], [830, "pxor xmm1, xmm1"], [831, "cvtsi2sd xmm1, eax"], [832, "mov rax, [rbp+var_28]"], [833, "mov eax, [rax+38h]"], [834, "mov eax, eax"], [835, "test rax, rax"], [836, "js short loc_44D87D"], [837, "pxor xmm0, xmm0"], [838, "cvtsi2sd xmm0, rax"], [839, "jmp short loc_44D896"], [840, "mov rdx, rax"], [841, "shr rdx, 1"], [842, "and eax, 1"], [843, "or rdx, rax"], [844, "pxor xmm0, xmm0"], [845, "cvtsi2sd xmm0, rdx"], [846, "addsd xmm0, xmm0"], [847, "mulsd xmm0, xmm1"], [848, "movsd xmm1, cs:qword_4B3DD8"], [849, "divsd xmm0, xmm1"], [850, "cvttsd2si edx, xmm0"], [851, "mov rax, [rbp+var_28]"], [852, "mov [rax+40h], edx"], [853, "mov rax, [rbp+var_28]"], [854, "mov eax, [rax+3Ch]"], [855, "test eax, eax"], [856, "jg short loc_44D8C7"], [857, "mov rax, [rbp+var_28]"], [858, "mov dword ptr [rax+3Ch], 1"], [859, "mov rax, [rbp+var_28]"], [860, "mov eax, [rax+40h]"], [861, "test eax, eax"], [862, "jg short loc_44D8DD"], [863, "mov rax, [rbp+var_28]"], [864, "mov dword ptr [rax+40h], 1"], [865, "mov rax, cs:qword_14EFB20"], [866, "test rax, rax"], [867, "jz short loc_44D949"], [868, "mov eax, cs:dword_4E70B4"], [869, "and eax, 10h"], [870, "test eax, eax"], [871, "jz short loc_44D949"], [872, "mov rax, [rbp+var_28]"], [873, "mov esi, [rax+40h]"], [874, "mov rax, [rbp+var_28]"], [875, "mov ecx, [rax+38h]"], [876, "mov rax, [rbp+var_28]"], [877, "mov edx, [rax+3Ch]"], [878, "mov r8d, [rbp+var_44]"], [879, "mov edi, [rbp+var_64]"], [880, "mov eax, [rbp+var_68]"], [881, "push rsi"], [882, "mov esi, [rbp+var_14]"], [883, "push rsi"], [884, "mov esi, [rbp+var_3C]"], [885, "push rsi"], [886, "push rcx"], [887, "push rdx"], [888, "mov edx, [rbp+var_18]"], [889, "push rdx"], [890, "mov r9d, r8d"], [891, "mov r8d, edi"], [892, "mov ecx, eax"], [893, "mov edx, offset aSimRtcnCalbTmr_1"], [894, "mov esi, offset off_4E7040"], [895, "mov edi, 10h"], [896, "mov eax, 0"], [897, "call sub_43A3B9"], [898, "add rsp, 30h"], [899, "mov [rbp+var_20], 0"], [900, "jmp short loc_44D9B4"], [901, "mov eax, [rbp+var_20]"], [902, "movsxd rdx, eax"], [903, "mov rax, rdx"], [904, "shl rax, 2"], [905, "add rax, rdx"], [906, "lea rdx, ds:0[rax*4]"], [907, "add rax, rdx"], [908, "shl rax, 3"], [909, "add rax, 1513980h"], [910, "mov [rbp+var_58], rax"], [911, "mov eax, [rbp+var_20]"], [912, "cmp eax, [rbp+var_68]"], [913, "jz short loc_44D9B0"], [914, "mov rax, [rbp+var_58]"], [915, "mov eax, [rax+20h]"], [916, "test eax, eax"], [917, "jz short loc_44D9B0"], [918, "mov rax, [rbp+var_28]"], [919, "mov eax, [rax+40h]"], [920, "imul eax, [rbp+var_64]"], [921, "mov rdx, [rbp+var_58]"], [922, "mov ebx, [rdx+20h]"], [923, "mov edx, 0"], [924, "div ebx"], [925, "mov edx, eax"], [926, "mov rax, [rbp+var_58]"], [927, "mov [rax+40h], edx"], [928, "add [rbp+var_20], 1"], [929, "cmp [rbp+var_20], 8"], [930, "jle short loc_44D952"], [931, "mov rax, [rbp+var_28]"], [932, "mov eax, [rax+40h]"], [933, "imul eax, [rbp+var_64]"], [934, "mov eax, eax"], [935, "test rax, rax"], [936, "js short loc_44D9D7"], [937, "pxor xmm0, xmm0"], [938, "cvtsi2sd xmm0, rax"], [939, "jmp short loc_44D9F0"], [940, "mov rdx, rax"], [941, "shr rdx, 1"], [942, "and eax, 1"], [943, "or rdx, rax"], [944, "pxor xmm0, xmm0"], [945, "cvtsi2sd xmm0, rdx"], [946, "addsd xmm0, xmm0"], [947, "mov eax, cs:dword_4DE404"], [948, "pxor xmm1, xmm1"], [949, "cvtsi2sd xmm1, eax"], [950, "mulsd xmm0, xmm1"], [951, "movsd xmm1, cs:qword_4B3DE8"], [952, "divsd xmm0, xmm1"], [953, "cvttsd2si eax, xmm0"], [954, "mov cs:dword_4DE408, eax"], [955, "mov eax, cs:dword_4DE408"], [956, "test eax, eax"], [957, "jnz short loc_44DA2C"], [958, "mov cs:dword_4DE408, 1"], [959, "mov rax, [rbp+var_28]"], [960, "mov eax, [rax+40h]"], [961, "mov rbx, [rbp+var_8]"], [962, "leave"], [963, "retn"]], "data_dep": [[6, 5], [7, 6], [10, 5], [11, 10], [12, 5], [13, 12], [16, 8], [16, 5], [17, 16], [18, 17], [19, 18], [20, 17], [20, 19], [21, 17], [22, 20], [22, 21], [23, 22], [24, 23], [25, 24], [26, 25], [27, 26], [28, 4], [28, 27], [29, 28], [30, 25], [31, 30], [32, 31], [33, 25], [34, 33], [35, 34], [36, 35], [39, 25], [40, 38], [40, 39], [41, 25], [42, 40], [42, 41], [43, 42], [44, 43], [45, 25], [46, 45], [46, 40], [47, 4], [47, 46], [48, 47], [49, 4], [50, 49], [53, 4], [54, 53], [55, 54], [57, 54], [57, 56], [59, 54], [60, 59], [61, 54], [62, 61], [62, 60], [64, 63], [64, 62], [65, 64], [66, 52], [67, 65], [67, 66], [67, 57], [68, 62], [68, 21], [68, 67], [68, 39], [69, 25], [70, 68], [70, 69], [71, 25], [72, 71], [72, 74], [72, 40], [72, 77], [72, 70], [73, 25], [74, 72], [74, 73], [75, 25], [76, 4], [77, 75], [77, 76], [78, 5], [78, 8], [79, 78], [81, 4], [82, 81], [84, 83], [85, 84], [86, 85], [87, 86], [87, 84], [88, 84], [89, 88], [89, 87], [90, 89], [91, 90], [92, 91], [93, 4], [94, 93], [95, 94], [97, 94], [97, 96], [99, 94], [100, 99], [101, 94], [102, 100], [102, 101], [104, 103], [104, 102], [105, 104], [107, 97], [107, 105], [107, 106], [108, 25], [109, 108], [109, 107], [111, 110], [112, 111], [114, 113], [115, 114], [116, 115], [117, 32], [118, 25], [119, 74], [119, 40], [119, 118], [119, 77], [119, 109], [119, 70], [120, 5], [120, 8], [121, 4], [122, 3], [123, 117], [124, 119], [125, 120], [126, 121], [132, 122], [134, 133], [134, 5], [134, 8], [135, 134], [136, 25], [137, 77], [137, 109], [137, 136], [137, 70], [137, 74], [137, 40], [138, 137], [139, 138], [140, 92], [141, 109], [141, 40], [141, 77], [141, 70], [141, 140], [141, 74], [142, 4], [142, 141], [143, 142], [146, 145], [147, 146], [149, 148], [150, 149], [151, 150], [153, 25], [154, 40], [154, 153], [154, 77], [154, 109], [154, 70], [154, 74], [155, 154], [157, 156], [158, 4], [159, 5], [159, 8], [160, 132], [160, 3], [161, 152], [162, 158], [163, 157], [164, 159], [170, 160], [171, 25], [173, 171], [177, 176], [178, 177], [180, 179], [181, 180], [182, 181], [183, 32], [184, 25], [185, 40], [185, 74], [185, 184], [185, 77], [185, 70], [186, 5], [186, 8], [187, 4], [188, 3], [189, 183], [190, 185], [191, 186], [192, 187], [198, 188], [199, 4], [200, 199], [203, 25], [204, 109], [204, 40], [204, 77], [204, 70], [204, 203], [204, 74], [205, 204], [206, 205], [207, 25], [208, 70], [208, 218], [208, 74], [208, 109], [208, 207], [208, 40], [208, 77], [208, 211], [209, 208], [209, 77], [209, 211], [209, 165], [209, 21], [209, 102], [209, 70], [209, 193], [209, 127], [209, 218], [209, 74], [209, 109], [209, 40], [209, 76], [209, 88], [210, 25], [211, 210], [211, 209], [212, 25], [213, 211], [213, 212], [214, 25], [215, 109], [215, 211], [215, 214], [216, 215], [216, 213], [217, 25], [218, 216], [218, 217], [219, 25], [220, 109], [220, 219], [220, 77], [220, 211], [220, 70], [220, 40], [220, 218], [220, 74], [221, 220], [222, 221], [223, 25], [224, 223], [224, 234], [224, 70], [224, 218], [224, 74], [224, 227], [224, 109], [224, 40], [224, 232], [224, 77], [224, 211], [225, 77], [225, 211], [225, 165], [225, 21], [225, 102], [225, 234], [225, 224], [225, 70], [225, 40], [225, 193], [225, 127], [225, 218], [225, 74], [225, 227], [225, 109], [225, 76], [225, 232], [225, 88], [225, 209], [226, 25], [227, 225], [227, 226], [228, 25], [229, 228], [229, 227], [230, 227], [230, 229], [230, 225], [231, 25], [232, 230], [232, 231], [233, 25], [234, 233], [235, 25], [236, 109], [236, 232], [236, 77], [236, 211], [236, 235], [236, 234], [236, 70], [236, 227], [236, 40], [236, 239], [236, 218], [236, 74], [237, 218], [237, 74], [237, 21], [237, 109], [237, 230], [237, 76], [237, 232], [237, 88], [237, 209], [237, 77], [237, 234], [237, 211], [237, 165], [237, 102], [237, 70], [237, 227], [237, 40], [237, 236], [237, 239], [237, 193], [237, 127], [238, 25], [239, 237], [239, 238], [240, 25], [241, 239], [241, 240], [242, 241], [242, 4], [243, 242], [244, 25], [245, 244], [245, 77], [245, 234], [245, 211], [245, 70], [245, 227], [245, 40], [245, 239], [245, 218], [245, 74], [245, 109], [245, 232], [247, 25], [248, 70], [248, 227], [248, 40], [248, 239], [248, 251], [248, 218], [248, 74], [248, 253], [248, 109], [248, 232], [248, 77], [248, 234], [248, 211], [248, 258], [248, 247], [249, 248], [250, 25], [251, 250], [252, 25], [253, 252], [254, 25], [255, 253], [255, 254], [256, 253], [256, 255], [256, 237], [257, 25], [258, 256], [258, 257], [260, 259], [261, 260], [262, 25], [263, 70], [263, 227], [263, 40], [263, 239], [263, 251], [263, 218], [263, 74], [263, 253], [263, 109], [263, 262], [263, 232], [263, 77], [263, 234], [263, 211], [263, 258], [266, 5], [266, 8], [266, 265], [267, 266], [269, 65], [269, 57], [269, 105], [269, 216], [269, 97], [270, 4], [271, 270], [272, 271], [274, 271], [274, 273], [276, 271], [277, 276], [278, 271], [279, 277], [279, 278], [281, 279], [281, 280], [282, 281], [283, 269], [284, 283], [284, 274], [284, 282], [285, 284], [285, 279], [285, 256], [286, 25], [287, 286], [287, 285], [289, 288], [290, 289], [292, 291], [293, 292], [294, 293], [295, 25], [296, 258], [296, 70], [296, 227], [296, 40], [296, 239], [296, 251], [296, 218], [296, 74], [296, 253], [296, 109], [296, 295], [296, 232], [296, 287], [296, 77], [296, 234], [296, 211], [298, 4], [299, 5], [299, 8], [300, 132], [300, 198], [300, 170], [300, 3], [301, 296], [302, 298], [303, 297], [304, 299], [310, 300], [311, 25], [312, 70], [312, 227], [312, 40], [312, 239], [312, 251], [312, 218], [312, 74], [312, 253], [312, 109], [312, 232], [312, 287], [312, 77], [312, 234], [312, 211], [312, 311], [312, 258], [315, 314], [317, 316], [318, 317], [320, 315], [321, 319], [321, 320], [322, 321], [323, 322], [325, 324], [326, 325], [328, 327], [329, 328], [330, 329], [332, 315], [333, 331], [333, 332], [334, 333], [335, 5], [335, 8], [336, 334], [337, 335], [344, 25], [345, 258], [345, 227], [345, 348], [345, 40], [345, 239], [345, 251], [345, 218], [345, 74], [345, 77], [345, 253], [345, 109], [345, 232], [345, 234], [345, 211], [345, 70], [345, 344], [346, 258], [346, 227], [346, 348], [346, 338], [346, 40], [346, 239], [346, 251], [346, 218], [346, 74], [346, 77], [346, 319], [346, 253], [346, 109], [346, 232], [346, 234], [346, 211], [346, 345], [346, 70], [346, 256], [347, 25], [348, 346], [348, 347], [350, 349], [351, 350], [353, 352], [354, 353], [355, 354], [356, 5], [356, 8], [357, 4], [358, 356], [359, 357], [365, 25], [366, 211], [366, 70], [366, 258], [366, 74], [366, 227], [366, 348], [366, 40], [366, 239], [366, 251], [366, 218], [366, 77], [366, 253], [366, 109], [366, 232], [366, 365], [366, 234], [367, 366], [367, 315], [368, 367], [369, 25], [370, 40], [370, 239], [370, 373], [370, 251], [370, 218], [370, 74], [370, 77], [370, 253], [370, 109], [370, 232], [370, 234], [370, 211], [370, 70], [370, 258], [370, 369], [370, 227], [370, 348], [371, 232], [371, 234], [371, 211], [371, 70], [371, 258], [371, 346], [371, 227], [371, 348], [371, 40], [371, 370], [371, 239], [371, 360], [371, 373], [371, 251], [371, 218], [371, 74], [371, 77], [371, 253], [371, 109], [372, 25], [373, 371], [373, 372], [375, 374], [376, 375], [378, 377], [379, 378], [380, 379], [381, 25], [382, 70], [382, 258], [382, 74], [382, 381], [382, 227], [382, 348], [382, 40], [382, 239], [382, 373], [382, 251], [382, 218], [382, 77], [382, 253], [382, 109], [382, 232], [382, 234], [382, 211], [383, 25], [384, 227], [384, 348], [384, 40], [384, 383], [384, 239], [384, 373], [384, 251], [384, 218], [384, 74], [384, 77], [384, 253], [384, 109], [384, 232], [384, 234], [384, 211], [384, 70], [384, 258], [385, 315], [386, 382], [387, 385], [388, 384], [394, 25], [395, 315], [396, 394], [396, 395], [397, 25], [398, 396], [398, 397], [399, 25], [400, 399], [400, 398], [401, 25], [402, 401], [403, 25], [404, 70], [404, 402], [404, 403], [405, 25], [406, 404], [406, 405], [407, 25], [408, 407], [408, 406], [409, 408], [410, 409], [412, 105], [412, 216], [412, 65], [412, 97], [412, 57], [413, 25], [414, 413], [414, 412], [415, 25], [417, 416], [417, 415], [418, 25], [419, 40], [419, 406], [419, 239], [419, 396], [419, 373], [419, 418], [419, 251], [419, 218], [419, 77], [419, 417], [419, 253], [419, 109], [419, 232], [419, 234], [419, 211], [419, 70], [419, 400], [419, 402], [419, 258], [419, 74], [419, 414], [419, 227], [419, 348], [421, 25], [422, 218], [422, 77], [422, 253], [422, 109], [422, 232], [422, 421], [422, 234], [422, 211], [422, 70], [422, 433], [422, 258], [422, 74], [422, 227], [422, 348], [422, 40], [422, 239], [422, 428], [422, 251], [423, 315], [424, 422], [424, 423], [425, 424], [426, 25], [427, 315], [428, 427], [428, 426], [429, 25], [430, 428], [430, 429], [431, 427], [431, 428], [431, 430], [432, 25], [433, 432], [433, 431], [434, 425], [435, 434], [436, 25], [437, 251], [437, 218], [437, 74], [437, 450], [437, 227], [437, 348], [437, 109], [437, 40], [437, 239], [437, 428], [437, 77], [437, 440], [437, 211], [437, 253], [437, 232], [437, 454], [437, 444], [437, 234], [437, 70], [437, 433], [437, 446], [437, 436], [437, 258], [438, 450], [438, 77], [438, 440], [438, 253], [438, 109], [438, 232], [438, 454], [438, 431], [438, 444], [438, 234], [438, 211], [438, 70], [438, 433], [438, 446], [438, 258], [438, 74], [438, 437], [438, 227], [438, 348], [438, 40], [438, 239], [438, 428], [438, 251], [438, 218], [439, 25], [440, 439], [440, 438], [441, 25], [442, 428], [442, 440], [442, 441], [443, 25], [444, 443], [444, 442], [445, 25], [446, 445], [448, 105], [448, 216], [448, 97], [448, 65], [448, 57], [449, 25], [450, 449], [450, 448], [451, 25], [452, 451], [452, 70], [452, 450], [453, 25], [454, 453], [454, 452], [455, 25], [456, 455], [456, 454], [457, 456], [458, 457], [459, 25], [460, 232], [460, 454], [460, 444], [460, 234], [460, 70], [460, 433], [460, 446], [460, 258], [460, 74], [460, 227], [460, 348], [460, 459], [460, 40], [460, 239], [460, 428], [460, 251], [460, 218], [460, 450], [460, 77], [460, 440], [460, 211], [460, 253], [460, 109], [461, 425], [462, 461], [463, 462], [465, 462], [465, 464], [467, 462], [468, 467], [469, 462], [470, 469], [470, 468], [472, 471], [472, 470], [473, 472], [475, 474], [475, 473], [475, 465], [476, 460], [476, 475], [477, 25], [478, 476], [478, 477], [480, 479], [481, 480], [483, 482], [484, 483], [485, 484], [486, 25], [487, 486], [487, 77], [487, 440], [487, 211], [487, 253], [487, 232], [487, 454], [487, 444], [487, 234], [487, 70], [487, 433], [487, 446], [487, 478], [487, 258], [487, 218], [487, 74], [487, 450], [487, 227], [487, 348], [487, 109], [487, 40], [487, 239], [487, 428], [487, 251], [488, 425], [489, 487], [490, 488], [496, 25], [497, 258], [497, 218], [497, 74], [497, 227], [497, 348], [497, 109], [497, 40], [497, 239], [497, 428], [497, 251], [497, 496], [497, 450], [497, 77], [497, 440], [497, 211], [497, 253], [497, 232], [497, 454], [497, 444], [497, 234], [497, 70], [497, 433], [497, 446], [497, 478], [500, 8], [500, 5], [501, 500], [502, 425], [503, 502], [504, 25], [505, 504], [505, 232], [505, 428], [505, 77], [505, 211], [505, 253], [505, 258], [505, 234], [505, 70], [505, 348], [505, 433], [505, 40], [505, 239], [505, 251], [505, 218], [505, 74], [505, 227], [505, 109], [506, 25], [507, 428], [507, 506], [507, 77], [507, 234], [507, 211], [507, 433], [507, 258], [507, 70], [507, 227], [507, 348], [507, 40], [507, 239], [507, 251], [507, 218], [507, 74], [507, 253], [507, 109], [507, 232], [508, 507], [508, 505], [509, 508], [510, 509], [511, 510], [513, 510], [513, 512], [515, 510], [516, 515], [517, 510], [518, 516], [518, 517], [520, 519], [520, 518], [521, 520], [522, 425], [523, 522], [524, 523], [526, 523], [526, 525], [528, 523], [529, 528], [530, 523], [531, 529], [531, 530], [533, 531], [533, 532], [534, 533], [535, 521], [535, 513], [536, 526], [536, 535], [536, 534], [538, 537], [538, 536], [539, 523], [539, 538], [539, 530], [541, 539], [542, 540], [542, 541], [543, 542], [544, 25], [545, 258], [545, 70], [545, 227], [545, 348], [545, 40], [545, 547], [545, 239], [545, 428], [545, 251], [545, 218], [545, 74], [545, 253], [545, 109], [545, 232], [545, 77], [545, 234], [545, 211], [545, 433], [545, 544], [546, 25], [547, 546], [547, 545], [549, 548], [549, 543], [549, 499], [550, 549], [551, 25], [552, 315], [553, 551], [553, 552], [554, 25], [555, 433], [555, 554], [555, 553], [556, 553], [556, 555], [556, 552], [557, 25], [558, 557], [558, 556], [560, 57], [560, 105], [560, 216], [560, 97], [560, 538], [560, 65], [561, 25], [562, 561], [562, 560], [563, 25], [564, 562], [564, 563], [564, 70], [565, 25], [566, 564], [566, 565], [567, 25], [568, 566], [568, 567], [569, 564], [569, 566], [569, 568], [570, 25], [571, 570], [571, 569], [573, 572], [574, 573], [576, 575], [577, 576], [578, 577], [579, 25], [580, 40], [580, 547], [580, 239], [580, 579], [580, 428], [580, 251], [580, 218], [580, 74], [580, 558], [580, 571], [580, 253], [580, 109], [580, 232], [580, 562], [580, 77], [580, 234], [580, 211], [580, 433], [580, 553], [580, 566], [580, 258], [580, 70], [580, 227], [580, 348], [581, 499], [581, 543], [582, 580], [583, 581], [589, 25], [590, 553], [590, 232], [590, 562], [590, 234], [590, 211], [590, 70], [590, 433], [590, 589], [590, 566], [590, 258], [590, 558], [590, 227], [590, 348], [590, 40], [590, 547], [590, 239], [590, 428], [590, 251], [590, 218], [590, 74], [590, 77], [590, 571], [590, 253], [590, 109], [593, 57], [593, 105], [593, 216], [593, 97], [593, 538], [593, 65], [594, 593], [595, 543], [595, 499], [596, 595], [597, 425], [598, 597], [599, 25], [600, 227], [600, 348], [600, 40], [600, 547], [600, 239], [600, 428], [600, 251], [600, 218], [600, 74], [600, 77], [600, 253], [600, 109], [600, 232], [600, 234], [600, 211], [600, 70], [600, 433], [600, 599], [600, 258], [601, 594], [602, 601], [603, 600], [603, 602], [604, 425], [605, 604], [606, 605], [608, 605], [608, 607], [610, 605], [611, 610], [612, 605], [613, 612], [613, 611], [615, 614], [615, 613], [616, 615], [617, 603], [617, 616], [617, 608], [618, 605], [618, 617], [618, 612], [619, 618], [621, 620], [622, 621], [623, 425], [624, 623], [625, 25], [626, 234], [626, 211], [626, 70], [626, 433], [626, 258], [626, 227], [626, 348], [626, 40], [626, 547], [626, 239], [626, 625], [626, 428], [626, 251], [626, 218], [626, 74], [626, 77], [626, 253], [626, 109], [626, 232], [627, 594], [628, 627], [629, 626], [629, 628], [631, 425], [633, 630], [634, 631], [635, 634], [636, 635], [638, 637], [638, 635], [640, 635], [641, 640], [642, 635], [643, 641], [643, 642], [645, 643], [645, 644], [646, 645], [647, 646], [647, 629], [647, 638], [648, 635], [648, 647], [648, 642], [649, 648], [651, 650], [652, 651], [653, 249], [654, 653], [655, 25], [656, 234], [656, 211], [656, 70], [656, 433], [656, 655], [656, 258], [656, 227], [656, 348], [656, 40], [656, 547], [656, 239], [656, 428], [656, 251], [656, 218], [656, 74], [656, 77], [656, 253], [656, 109], [656, 232], [657, 594], [658, 657], [659, 656], [659, 658], [660, 4], [661, 660], [662, 661], [664, 661], [664, 663], [666, 661], [667, 666], [668, 661], [669, 668], [669, 667], [671, 670], [671, 669], [672, 671], [673, 672], [673, 664], [673, 659], [674, 668], [674, 661], [674, 673], [675, 674], [676, 25], [677, 227], [677, 348], [677, 40], [677, 547], [677, 239], [677, 428], [677, 251], [677, 218], [677, 74], [677, 77], [677, 253], [677, 109], [677, 232], [677, 676], [677, 234], [677, 211], [677, 70], [677, 433], [677, 258], [678, 677], [679, 678], [680, 679], [680, 677], [681, 680], [682, 681], [682, 675], [683, 682], [684, 25], [685, 428], [685, 251], [685, 218], [685, 74], [685, 77], [685, 253], [685, 109], [685, 684], [685, 232], [685, 234], [685, 211], [685, 70], [685, 433], [685, 258], [685, 227], [685, 348], [685, 40], [685, 547], [685, 239], [686, 685], [687, 686], [688, 685], [688, 687], [689, 688], [690, 689], [692, 25], [693, 227], [693, 348], [693, 40], [693, 547], [693, 239], [693, 428], [693, 251], [693, 218], [693, 74], [693, 77], [693, 692], [693, 253], [693, 109], [693, 232], [693, 234], [693, 211], [693, 70], [693, 433], [693, 258], [694, 693], [695, 694], [696, 695], [697, 696], [698, 693], [699, 698], [700, 697], [701, 700], [701, 699], [702, 675], [702, 701], [703, 702], [704, 25], [705, 234], [705, 211], [705, 70], [705, 433], [705, 258], [705, 227], [705, 348], [705, 40], [705, 547], [705, 239], [705, 428], [705, 251], [705, 218], [705, 74], [705, 77], [705, 253], [705, 109], [705, 704], [705, 232], [706, 705], [707, 706], [708, 707], [709, 708], [710, 705], [711, 710], [712, 709], [713, 712], [713, 711], [714, 713], [715, 25], [716, 690], [716, 714], [716, 675], [717, 715], [717, 716], [718, 25], [719, 718], [719, 717], [720, 25], [721, 719], [721, 720], [722, 25], [723, 594], [724, 723], [724, 722], [726, 725], [727, 726], [729, 728], [730, 729], [731, 730], [732, 25], [733, 547], [733, 239], [733, 251], [733, 218], [733, 74], [733, 227], [733, 109], [733, 724], [733, 40], [733, 232], [733, 428], [733, 77], [733, 211], [733, 253], [733, 717], [733, 258], [733, 732], [733, 234], [733, 70], [733, 721], [733, 348], [733, 433], [735, 734], [736, 735], [740, 4], [741, 5], [741, 8], [742, 3], [742, 170], [742, 198], [742, 132], [743, 733], [744, 543], [744, 499], [745, 744], [746, 249], [747, 746], [748, 740], [749, 741], [750, 739], [750, 737], [756, 742], [757, 25], [758, 258], [758, 234], [758, 70], [758, 721], [758, 348], [758, 433], [758, 547], [758, 251], [758, 218], [758, 74], [758, 227], [758, 757], [758, 109], [758, 724], [758, 40], [758, 239], [758, 232], [758, 428], [758, 77], [758, 211], [758, 253], [758, 717], [760, 25], [761, 594], [762, 761], [762, 760], [763, 425], [764, 763], [765, 25], [766, 40], [766, 547], [766, 239], [766, 251], [766, 218], [766, 74], [766, 770], [766, 253], [766, 109], [766, 232], [766, 428], [766, 77], [766, 234], [766, 211], [766, 433], [766, 762], [766, 258], [766, 765], [766, 70], [766, 227], [766, 348], [767, 4], [767, 766], [768, 767], [769, 25], [770, 769], [770, 768], [772, 25], [773, 77], [773, 211], [773, 253], [773, 762], [773, 234], [773, 70], [773, 433], [773, 547], [773, 258], [773, 251], [773, 218], [773, 74], [773, 227], [773, 348], [773, 109], [773, 40], [773, 239], [773, 772], [773, 232], [773, 428], [775, 773], [775, 774], [776, 25], [777, 433], [777, 776], [777, 258], [777, 218], [777, 74], [777, 227], [777, 348], [777, 109], [777, 40], [777, 547], [777, 239], [777, 428], [777, 251], [777, 77], [777, 211], [777, 253], [777, 232], [777, 762], [777, 234], [777, 70], [778, 777], [779, 778], [780, 779], [782, 779], [782, 781], [784, 779], [785, 784], [786, 779], [787, 786], [787, 785], [789, 787], [789, 788], [790, 789], [791, 775], [791, 790], [791, 782], [792, 425], [793, 792], [794, 793], [796, 793], [796, 795], [798, 793], [799, 798], [800, 793], [801, 799], [801, 800], [803, 802], [803, 801], [804, 803], [805, 796], [805, 791], [805, 804], [806, 632], [806, 545], [806, 787], [806, 643], [806, 613], [806, 801], [806, 805], [806, 431], [807, 25], [808, 806], [808, 807], [809, 25], [810, 70], [810, 348], [810, 433], [810, 809], [810, 40], [810, 547], [810, 239], [810, 251], [810, 218], [810, 74], [810, 227], [810, 770], [810, 109], [810, 232], [810, 428], [810, 77], [810, 211], [810, 253], [810, 808], [810, 762], [810, 258], [810, 234], [811, 25], [812, 40], [812, 547], [812, 239], [812, 811], [812, 251], [812, 218], [812, 74], [812, 770], [812, 253], [812, 109], [812, 232], [812, 428], [812, 77], [812, 234], [812, 211], [812, 433], [812, 808], [812, 762], [812, 258], [812, 70], [812, 227], [812, 348], [813, 810], [814, 812], [814, 813], [815, 814], [816, 815], [817, 816], [820, 815], [821, 820], [823, 818], [823, 822], [823, 815], [824, 823], [825, 824], [826, 25], [827, 825], [827, 826], [828, 25], [829, 770], [829, 827], [829, 828], [829, 808], [831, 829], [831, 830], [832, 25], [833, 827], [833, 832], [834, 833], [835, 834], [836, 835], [838, 835], [838, 837], [840, 835], [841, 840], [842, 835], [843, 842], [843, 841], [845, 844], [845, 843], [846, 845], [847, 838], [847, 831], [847, 846], [849, 847], [849, 848], [850, 825], [850, 849], [850, 843], [851, 25], [852, 851], [852, 850], [853, 25], [854, 808], [854, 853], [854, 770], [854, 852], [855, 854], [856, 855], [857, 25], [858, 857], [859, 25], [860, 70], [860, 227], [860, 348], [860, 40], [860, 547], [860, 239], [860, 428], [860, 251], [860, 218], [860, 74], [860, 859], [860, 770], [860, 253], [860, 109], [860, 858], [860, 232], [860, 762], [860, 827], [860, 77], [860, 234], [860, 211], [860, 852], [860, 433], [860, 808], [860, 258], [861, 860], [862, 861], [863, 25], [864, 863], [866, 865], [867, 866], [869, 868], [870, 869], [871, 870], [872, 25], [873, 852], [873, 70], [873, 227], [873, 348], [873, 40], [873, 547], [873, 239], [873, 251], [873, 218], [873, 74], [873, 770], [873, 253], [873, 109], [873, 858], [873, 232], [873, 428], [873, 827], [873, 77], [873, 872], [873, 234], [873, 211], [873, 433], [873, 864], [873, 808], [873, 762], [873, 258], [874, 25], [875, 232], [875, 762], [875, 827], [875, 234], [875, 211], [875, 852], [875, 70], [875, 433], [875, 874], [875, 864], [875, 808], [875, 258], [875, 227], [875, 348], [875, 40], [875, 547], [875, 239], [875, 428], [875, 251], [875, 218], [875, 74], [875, 77], [875, 770], [875, 253], [875, 109], [875, 858], [876, 25], [877, 808], [877, 258], [877, 876], [877, 70], [877, 227], [877, 348], [877, 40], [877, 547], [877, 239], [877, 428], [877, 251], [877, 218], [877, 74], [877, 770], [877, 253], [877, 109], [877, 858], [877, 232], [877, 762], [877, 827], [877, 77], [877, 234], [877, 211], [877, 852], [877, 433], [877, 864], [878, 425], [879, 4], [880, 5], [880, 8], [881, 873], [882, 499], [882, 543], [883, 882], [884, 249], [885, 884], [886, 875], [887, 877], [888, 818], [888, 822], [888, 815], [889, 888], [890, 878], [891, 879], [892, 880], [898, 198], [898, 132], [898, 170], [898, 3], [901, 928], [901, 899], [902, 901], [903, 902], [904, 903], [905, 902], [905, 904], [906, 902], [907, 905], [907, 906], [908, 907], [909, 908], [910, 909], [911, 899], [911, 928], [912, 5], [912, 8], [912, 911], [913, 912], [914, 910], [915, 547], [915, 239], [915, 428], [915, 251], [915, 218], [915, 74], [915, 77], [915, 914], [915, 770], [915, 253], [915, 109], [915, 858], [915, 232], [915, 762], [915, 827], [915, 234], [915, 211], [915, 852], [915, 70], [915, 433], [915, 927], [915, 864], [915, 808], [915, 258], [915, 227], [915, 348], [915, 40], [916, 915], [917, 916], [918, 25], [919, 232], [919, 762], [919, 827], [919, 918], [919, 234], [919, 211], [919, 852], [919, 70], [919, 433], [919, 927], [919, 864], [919, 808], [919, 258], [919, 227], [919, 348], [919, 40], [919, 547], [919, 239], [919, 428], [919, 251], [919, 218], [919, 74], [919, 77], [919, 770], [919, 253], [919, 109], [919, 858], [920, 4], [920, 919], [921, 910], [922, 232], [922, 762], [922, 827], [922, 234], [922, 211], [922, 852], [922, 70], [922, 433], [922, 864], [922, 808], [922, 258], [922, 921], [922, 227], [922, 348], [922, 40], [922, 547], [922, 239], [922, 428], [922, 251], [922, 218], [922, 74], [922, 77], [922, 770], [922, 253], [922, 927], [922, 109], [922, 858], [924, 922], [925, 920], [926, 910], [927, 925], [927, 926], [928, 928], [928, 899], [929, 899], [929, 928], [930, 929], [931, 25], [932, 864], [932, 258], [932, 74], [932, 931], [932, 227], [932, 348], [932, 858], [932, 40], [932, 547], [932, 239], [932, 428], [932, 827], [932, 251], [932, 218], [932, 77], [932, 770], [932, 253], [932, 927], [932, 109], [932, 808], [932, 232], [932, 762], [932, 234], [932, 211], [932, 852], [932, 70], [932, 433], [933, 4], [933, 932], [934, 933], [935, 934], [936, 935], [938, 935], [938, 937], [940, 935], [941, 940], [942, 935], [943, 942], [943, 941], [945, 944], [945, 943], [946, 945], [949, 947], [949, 948], [950, 949], [950, 938], [950, 946], [952, 951], [952, 950], [953, 947], [953, 952], [954, 953], [955, 954], [956, 955], [957, 956], [959, 25], [960, 433], [960, 864], [960, 808], [960, 258], [960, 74], [960, 227], [960, 348], [960, 858], [960, 40], [960, 547], [960, 239], [960, 428], [960, 251], [960, 218], [960, 77], [960, 770], [960, 253], [960, 927], [960, 109], [960, 959], [960, 232], [960, 762], [960, 827], [960, 234], [960, 211], [960, 852], [960, 70], [963, 758], [963, 263], [963, 419], [963, 497], [963, 245], [963, 201], [963, 960], [963, 312], [963, 14], [963, 590]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc_52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc.jsonl.gz", "strip_func_name": "sub_44CC0A", "query": "\n\n\n__int64 __fastcall sub_44CC0A(unsigned int a1, int a2)\n{\n__int64 result; // rax\n__int64 v3; // rbx\nconst char *v4; // rax\n__int64 v5; // r9\n__int64 v6; // r9\nunsigned int v7; // eax\n__int64 v8; // r9\nconst char *v9; // rsi\nunsigned int v10; // [rsp+8h] [rbp-68h]\ndouble v11; // [rsp+20h] [rbp-50h]\nunsigned int v12; // [rsp+2Ch] [rbp-44h]\nunsigned int v13; // [rsp+30h] [rbp-40h]\nunsigned int v14; // [rsp+34h] [rbp-3Ch]\n__int64 v15; // [rsp+38h] [rbp-38h]\nunsigned int v16; // [rsp+44h] [rbp-2Ch]\nint i; // [rsp+50h] [rbp-20h]\nint v18; // [rsp+54h] [rbp-1Ch]\nint v19; // [rsp+58h] [rbp-18h]\nunsigned int v20; // [rsp+5Ch] [rbp-14h]\n\nv10 = a2;\nif ( a2 == 1073741832 )\n{\nv10 = 8;\n}\nelse if ( a2 < 0 || a2 > 7 )\n{\nreturn 10000LL;\n}\nif ( a1 != dword_15139A0[50 * v10] )\n{\nv16 = dword_15139A0[50 * v10];\nif ( !v16 )\n*(double *)&dword_15139C4[50 * v10 + 19] = sub_4523C8();\nif ( *(_DWORD *)&algn_15139A4[200 * v10] && a1 != *(_DWORD *)&algn_15139A4[200 * v10] && a1 )\ndword_15139C0[50 * v10] = (int)(sub_45373D() / (double)(int)a1);\n*(_DWORD *)&algn_15139A4[200 * v10] = dword_15139A0[50 * v10];\ndword_15139A0[50 * v10] = a1;\nsub_4529D6(v10);\nif ( a1 )\n{\nv15 = 200LL * dword_4E6EC8 + 22100352;\n*(double *)&dword_15139C4[50 * v10 + 5] = 1.0 / (double)(int)a1;\nif ( qword_14EFB20 && (dword_4E70B4 & 0x10) != 0 )\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"sim_rtcn_calb(ticksper=%d,tmr=%d) currd=%d, prior_hz=%d\\n\",\na1,\nv10,\n(unsigned int)dword_15139C0[50 * v10],\nv16);\nif ( v10 != dword_4E6EC8 && *((_QWORD *)&unk_1513980 + 25 * (int)v10) && a1 > *(_DWORD *)(v15 + 32) )\n{\ndword_4E6EE0 = 1;\nif ( qword_14EFB20 && (dword_4E70B4 & 0x10) != 0 )\n{\nv3 = (unsigned int)dword_1514DF4;\nv4 = sub_428DAA(*((_QWORD *)&unk_1513980 + 25 * (int)v10));\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"sim_rtcn_calb(%d) - forcing catchup ticks for %s ticking at %d, host tick rate %ds\\n\",\nv10,\n(__int64)v4,\na1,\nv3);\n}\nsub_451CA5(200LL * (int)v10 + 22100352, 0LL);\n}\n}\nelse if ( qword_14EFB20 && (dword_4E70B4 & 0x10) != 0 )\n{\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"sim_rtcn_calb(ticksper=%d,tmr=%d) timer stopped currd was %d, prior_hz=%d\\n\",\n0LL,\nv10,\n(unsigned int)dword_15139C0[50 * v10],\nv16);\n}\n}\nif ( !a1 )\nreturn 10000LL;\nif ( !*((_QWORD *)&unk_1513980 + 25 * (int)v10) )\n{\n++dword_15139C4[50 * v10 + 15];\n*(double *)&dword_15139C4[50 * v10 + 9] = *(double *)&dword_15139C4[50 * v10 + 5]\n+ *(double *)&dword_15139C4[50 * v10 + 9];\n}\nif ( dword_15139C4[50 * v10 + 26] )\n{\n++dword_15139C4[50 * v10 + 23];\n++dword_15139C4[50 * v10 + 25];\ndword_15139C4[50 * v10 + 26] = 0;\n}\nif ( a1 > ++*((_DWORD *)&unk_151399C + 50 * (int)v10) )\nreturn (unsigned int)dword_15139C0[50 * v10];\nv14 = dword_15139C4[50 * v10 + 25];\ndword_15139C4[50 * v10 + 25] = 0;\n*((_DWORD *)&unk_151399C + 50 * (int)v10) = 0;\n++dword_15139C4[50 * v10 + 1];\nif ( v10 == dword_4E6EC8 )\n{\nv13 = sub_44C5AB();\nif ( !dword_4E2B8C && v13 - dword_15125A8 > 0x1F4 )\n{\nif ( qword_14EFB20 && (dword_4E70B4 & 0x10) != 0 )\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"sim_rtcn_calb(tmr=%d) gratuitious keyboard poll after %d msecs\\n\",\nv10,\nv13 - dword_15125A8,\nv5);\nsub_4487DC();\n}\n++dword_15139C4[50 * v10 + 2];\nif ( qword_14EFB20 && (dword_4E70B4 & 8) != 0 )\nsub_43A3B9(8, (__int64)&off_4E7040, \"sim_rtcn_calb(ticksper=%d, tmr=%d)\\n\", a1, v10, v5);\nif ( v13 >= *(_DWORD *)&algn_15139A4[200 * v10 + 4] )\n{\nv12 = v13 - *(_DWORD *)&algn_15139A4[200 * v10 + 4];\n*(_DWORD *)&algn_15139A4[200 * v10 + 4] = v13;\n*(_DWORD *)&algn_15139A4[200 * v10 + 8] += 1000;\nif ( v12 <= 0x7530 )\n{\nv20 = 0;\nif ( v10 == 8 )\ngoto LABEL_73;\nif ( v12 )\n{\nv7 = (int)(100.0\n* ((double)(int)(dword_15139C4[50 * v10 + 28] - dword_15139C4[50 * v10 + 29])\n/ (double)(int)v12));\nif ( v7 > 0x64 )\nv7 = 100;\nv20 = v7;\n}\ndword_15139C4[50 * v10 + 29] = dword_15139C4[50 * v10 + 28];\nif ( v20 <= dword_4E6ED4 )\n{\nLABEL_73:\nv11 = sub_433941();\nif ( !v20 )\n{\nif ( v12 )\n{\ndword_1514E3C = (int)((v11 - *(double *)&algn_15139A4[200 * v10 + 12]) / (double)(int)v12);\nif ( dword_1514DE4 )\n{\nif ( v12 > 1 )\ndword_1514E40 = (int)((v11 - *(double *)&algn_15139A4[200 * v10 + 12])\n/ (double)(int)(v12 / dword_1514DE4));\n}\n}\n}\nif ( dword_15149E8 || v14 )\n{\nv18 = (int)((v11 - *(double *)&algn_15139A4[200 * v10 + 12]) / (double)(int)a1);\nif ( v18 <= 10 * dword_15139C0[50 * v10] )\n{\nif ( v18 < dword_15139C0[50 * v10] / 10 )\nv18 = dword_15139C0[50 * v10] / 10;\n}\nelse\n{\nv18 = 10 * dword_15139C0[50 * v10];\n}\ndword_15139C0[50 * v10] = v18;\n*(_DWORD *)&algn_15139A4[200 * v10 + 24] = dword_15139C0[50 * v10];\n*(double *)&algn_15139A4[200 * v10 + 12] = v11;\nif ( qword_14EFB20 && (dword_4E70B4 & 0x10) != 0 )\n{\nif ( dword_15149E8 )\nv9 = \"asynch\";\nelse\nv9 = \"catchup\";\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"sim_rtcn_calb(%s tmr=%d, tickper=%d) catchups=%u, idle=%d%% result: %d\\n\",\n(__int64)v9,\nv10,\na1,\nv14,\nv20,\n(unsigned int)dword_15139C0[50 * v10]);\n}\nresult = (unsigned int)dword_15139C0[50 * v10];\n}\nelse\n{\n*(double *)&algn_15139A4[200 * v10 + 12] = v11;\nif ( v12 )\n*(_DWORD *)&algn_15139A4[200 * v10 + 24] = (int)((double)*(int *)&algn_15139A4[200 * v10 + 24]\n* (double)*(int *)&algn_15139A4[200 * v10 + 20]\n/ (double)(int)v12);\nelse\n*(_DWORD *)&algn_15139A4[200 * v10 + 24] *= a1;\nv19 = *(_DWORD *)&algn_15139A4[200 * v10 + 8] - *(_DWORD *)&algn_15139A4[200 * v10 + 4];\nif ( v19 <= 500 )\n{\nif ( v19 < -500 )\nv19 = -500;\n}\nelse\n{\nv19 = 500;\n}\n*(_DWORD *)&algn_15139A4[200 * v10 + 20] = v19 + 1000;\ndword_15139C0[50 * v10] = (int)((double)*(int *)&algn_15139A4[200 * v10 + 20]\n* (double)*(int *)&algn_15139A4[200 * v10 + 24]\n/ 1000.0);\nif ( *(int *)&algn_15139A4[200 * v10 + 24] <= 0 )\n*(_DWORD *)&algn_15139A4[200 * v10 + 24] = 1;\nif ( dword_15139C0[50 * v10] <= 0 )\ndword_15139C0[50 * v10] = 1;\nif ( qword_14EFB20 && (dword_4E70B4 & 0x10) != 0 )\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"sim_rtcn_calb(tmr=%d, tickper=%d) (delta_rtime=%d, delta_vtime=%d, base=%d, nxintv=%u, catchups=%u, idle\"\n\"=%d%%, result: %d)\\n\",\nv10,\na1,\nv12,\n(unsigned int)v19,\n*(unsigned int *)&algn_15139A4[200 * v10 + 24],\n*(unsigned int *)&algn_15139A4[200 * v10 + 20],\n0LL,\nv20,\n(unsigned int)dword_15139C0[50 * v10]);\nfor ( i = 0; i <= 8; ++i )\n{\nif ( i != v10 && dword_15139A0[50 * i] )\ndword_15139C0[50 * i] = a1 * dword_15139C0[50 * v10] / dword_15139A0[50 * i];\n}\ndword_4DE408 = (int)((double)(int)(a1 * dword_15139C0[50 * v10]) * (double)dword_4DE404 / 1000000000.0);\nif ( !dword_4DE408 )\ndword_4DE408 = 1;\nresult = (unsigned int)dword_15139C0[50 * v10];\n}\n}\nelse\n{\n*(_DWORD *)&algn_15139A4[200 * v10 + 4] = v13;\n*(_DWORD *)&algn_15139A4[200 * v10 + 8] += 1000;\n*(double *)&algn_15139A4[200 * v10 + 12] = sub_433941();\n*(_DWORD *)&algn_15139A4[200 * v10 + 24] = dword_15139C0[50 * v10];\n++dword_15139C4[50 * v10 + 30];\nif ( qword_14EFB20 && (dword_4E70B4 & 0x10) != 0 )\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"skipping calibration due to idling (%d%%) - result: %d\\n\",\nv20,\n(unsigned int)dword_15139C0[50 * v10],\nv8);\nresult = (unsigned int)dword_15139C0[50 * v10];\n}\n}\nelse\n{\n++dword_15139C4[50 * v10 + 31];\n*(_DWORD *)&algn_15139A4[200 * v10 + 8] = *(_DWORD *)&algn_15139A4[200 * v10 + 4];\n*(_DWORD *)&algn_15139A4[200 * v10 + 20] = 1000;\n*(double *)&algn_15139A4[200 * v10 + 12] = sub_433941();\n*(_DWORD *)&algn_15139A4[200 * v10 + 24] = dword_15139C0[50 * v10];\nif ( dword_15139C4[50 * v10 + 27] )\n*(double *)&dword_15139C4[50 * v10 + 9] = (double)(int)v12 / 1000.0 + *(double *)&dword_15139C4[50 * v10 + 9];\nif ( qword_14EFB20 && (dword_4E70B4 & 0x10) != 0 )\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"gap too big: delta = %d - result: %d\\n\",\nv12,\n(unsigned int)dword_15139C0[50 * v10],\nv6);\nresult = (unsigned int)dword_15139C0[50 * v10];\n}\n}\nelse\n{\n++dword_15139C4[50 * v10 + 32];\nif ( qword_14EFB20 && (dword_4E70B4 & 0x10) != 0 )\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"time running backwards - OldTime: %u, NewTime: %u, result: %d\\n\",\n*(unsigned int *)&algn_15139A4[200 * v10 + 4],\nv13,\n(unsigned int)dword_15139C0[50 * v10]);\n*(_DWORD *)&algn_15139A4[200 * v10 + 4] = v13;\n*(_DWORD *)&algn_15139A4[200 * v10 + 8] = *(_DWORD *)&algn_15139A4[200 * v10 + 4];\n*(_DWORD *)&algn_15139A4[200 * v10 + 20] = 1000;\n*(_DWORD *)&algn_15139A4[200 * v10 + 24] = dword_15139C0[50 * v10];\nif ( dword_15139C4[50 * v10 + 27] )\n{\n*(double *)&dword_15139C4[50 * v10 + 21] = sub_4523C8();\n*(_QWORD *)&dword_15139C4[50 * v10 + 9] = 0LL;\n}\nresult = (unsigned int)dword_15139C0[50 * v10];\n}\n}\nelse\n{\ndword_15139C0[50 * v10] = (int)(sub_45373D() / (double)(int)a1);\nif ( qword_14EFB20 )\n{\nif ( (dword_4E70B4 & 0x10) != 0 )\nsub_43A3B9(\n16,\n(__int64)&off_4E7040,\n\"sim_rtcn_calb(tmr=%d) calibrated against internal system tmr=%d, tickper=%d (result: %d)\\n\",\nv10,\n(unsigned int)dword_4E6EC8,\na1,\n(unsigned int)dword_15139C0[50 * v10]);\n}\nresult = (unsigned int)dword_15139C0[50 * v10];\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v10,v11,v12,v13,v14,v15,v16,i,v18,v19,v20,sub_44CC0A,sub_4523C8,sub_45373D,sub_4529D6,sub_43A3B9,sub_428DAA,sub_451CA5,sub_44C5AB,sub_4487DC,sub_433941,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'ticksper', 'a2': 'tmr', 'v10': 'tmra', 'v11': 'new_gtime', 'v12': 'delta_rtime', 'v13': 'new_rtime', 'v14': 'catchup_ticks_curr', 'v15': 'crtc', 'v16': 'prior_hz', 'i': 'itmr', 'v18': 'new_currd', 'v19': 'delta_vtime', 'v20': 'last_idle_pct', 'sub_44CC0A': 'sim_rtcn_calb', 'sub_4523C8': 'sim_timenow_double', 'sub_45373D': 'sim_timer_inst_per_sec', 'sub_4529D6': '_rtcn_configure_calibrated_clock', 'sub_43A3B9': '_sim_debug_device', 'sub_428DAA': 'sim_uname', 'sub_451CA5': '_rtcn_tick_catchup_check', 'sub_44C5AB': 'sim_os_msec', 'sub_4487DC': 'sim_poll_kbd', 'sub_433941': 'sim_gtime'}"}
sl_btmesh_node_init_provisioning_records
d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323
openthread
ot-efr32
NA
sl_status_t sl_btmesh_node_init_provisioning_records() { struct sl_btmesh_packet *cmd = (struct sl_btmesh_packet *)sl_btmesh_cmd_msg; struct sl_btmesh_packet *rsp = (struct sl_btmesh_packet *)sl_btmesh_rsp_msg; cmd->header=sl_btmesh_cmd_node_init_provisioning_records_id+(((0)&0xff)<<8)+(((0)&0x700)>>8); sl_btmesh_host_handle_command(); return rsp->data.rsp_node_init_provisioning_records.result; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B1F6", "function_addr": 4239862, "binary_name": "d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov rax, cs:off_43E280"], [4, "mov [rbp+var_8], rax"], [5, "mov rax, cs:off_43E288"], [6, "mov [rbp+var_10], rax"], [7, "mov rax, [rbp+var_8]"], [8, "mov dword ptr [rax], 26140028h"], [9, "mov eax, 0"], [10, "call sub_40A2AC"], [11, "mov rax, [rbp+var_10]"], [12, "movzx eax, word ptr [rax+4]"], [13, "movzx eax, ax"], [14, "leave"], [15, "retn"]], "data_dep": [[4, 3], [6, 5], [7, 4], [8, 7], [11, 6], [12, 11], [12, 8], [13, 12], [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/d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323_d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.jsonl.gz", "strip_func_name": "sub_40B1F6", "query": "\n\n\n__int64 __fastcall sub_40B1F6(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nunsigned __int16 *v7; // [rsp+0h] [rbp-10h]\n\nv7 = (unsigned __int16 *)off_43E288;\n*(_DWORD *)off_43E280 = 638844968;\nsub_40A2AC(a1, a2, a3, a4, a5, a6);\nreturn v7[2];\n}\n\n\n\nQ:[v7,sub_40B1F6,sub_40A2AC,]\nAssistant: ", "hints": "[]", "response": "{'v7': 'rsp_0', 'sub_40B1F6': 'sl_btmesh_node_init_provisioning_records', 'sub_40A2AC': 'sl_btmesh_host_handle_command'}"}
sysfs_is_idlestate_disabled
98f33d596ee72dd128aaca33f1dfd87c1dabdef4149e767cb3cce1896d9876c3
Xilinx
linux-xlnx
NA
int sysfs_is_idlestate_disabled(unsigned int cpu, unsigned int idlestate) { if (sysfs_get_idlestate_count(cpu) <= idlestate) return -1; if (!sysfs_idlestate_file_exists(cpu, idlestate, idlestate_value_files[IDLESTATE_DISABLE])) return -2; return sysfs_idlestate_get_one_value(cpu, idlestate, IDLESTATE_DISABLE); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404459", "function_addr": 4211801, "binary_name": "98f33d596ee72dd128aaca33f1dfd87c1dabdef4149e767cb3cce1896d9876c3.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_8], esi"], [5, "mov eax, [rbp+var_4]"], [6, "mov edi, eax"], [7, "call sub_404630"], [8, "cmp [rbp+var_8], eax"], [9, "jb short loc_40447D"], [10, "mov eax, 0FFFFFFFFh"], [11, "jmp short locret_4044B2"], [12, "mov rdx, cs:off_414400"], [13, "mov ecx, [rbp+var_8]"], [14, "mov eax, [rbp+var_4]"], [15, "mov esi, ecx"], [16, "mov edi, eax"], [17, "call sub_40408F"], [18, "test eax, eax"], [19, "jnz short loc_40449E"], [20, "mov eax, 0FFFFFFFEh"], [21, "jmp short locret_4044B2"], [22, "mov ecx, [rbp+var_8]"], [23, "mov eax, [rbp+var_4]"], [24, "mov edx, 4"], [25, "mov esi, ecx"], [26, "mov edi, eax"], [27, "call sub_4042D0"], [28, "leave"], [29, "retn"]], "data_dep": [[5, 3], [6, 5], [8, 4], [8, 7], [9, 8], [13, 4], [14, 3], [15, 13], [16, 14], [18, 17], [19, 18], [22, 4], [23, 3], [25, 22], [26, 23], [29, 27], [29, 10], [29, 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/98f33d596ee72dd128aaca33f1dfd87c1dabdef4149e767cb3cce1896d9876c3_98f33d596ee72dd128aaca33f1dfd87c1dabdef4149e767cb3cce1896d9876c3.jsonl.gz", "strip_func_name": "sub_404459", "query": "\n\n\nunsigned __int64 __fastcall sub_404459(unsigned int a1, unsigned int a2)\n{\nif ( a2 >= (unsigned int)sub_404630(a1) )\nreturn 0xFFFFFFFFLL;\nif ( sub_40408F(a1, a2, off_414400) )\nreturn sub_4042D0(a1, a2, 4u);\nreturn 4294967294LL;\n}\n\n\n\nQ:[a1,a2,sub_404459,sub_404630,sub_40408F,sub_4042D0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'cpu', 'a2': 'idlestate', 'sub_404459': 'sysfs_is_idlestate_disabled', 'sub_404630': 'sysfs_get_idlestate_count', 'sub_40408F': 'sysfs_idlestate_file_exists', 'sub_4042D0': 'sysfs_idlestate_get_one_value'}"}
btstack_memory_avdtp_connection_free
1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca
micropython
micropython-unicorn
NA
void btstack_memory_avdtp_connection_free(avdtp_connection_t *avdtp_connection){ free(avdtp_connection); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4050AC", "function_addr": 4214956, "binary_name": "1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+ptr], rdi"], [4, "mov rax, [rbp+ptr]"], [5, "mov rdi, rax"], [6, "call _free"], [7, "nop"], [8, "leave"], [9, "retn"]], "data_dep": [[4, 3], [5, 4], [9, 6]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca_1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.jsonl.gz", "strip_func_name": "sub_4050AC", "query": "\n\n\nvoid __fastcall sub_4050AC(void *a1)\n{\nfree(a1);\n}\n\n\n\nQ:[a1,sub_4050AC,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'avdtp_connection', 'sub_4050AC': 'btstack_memory_avdtp_connection_free'}"}
printOperand
23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2
tandasat
cs_driver
NA
static void printOperand(MCInst *MI, unsigned OpNo, SStream *O) { int opsize = 0; MCOperand *Op = MCInst_getOperand(MI, OpNo); if (MCOperand_isReg(Op)) { unsigned int reg = MCOperand_getReg(Op); printRegName(O, reg); if (MI->csh->detail) { if (MI->csh->doing_mem) { MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].mem.base = reg; } else { MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].type = X86_OP_REG; MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].reg = reg; MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].size = MI->csh->regsize_map[reg]; MI->flat_insn->detail->x86.op_count++; } } } else if (MCOperand_isImm(Op)) { // Print X86 immediates as signed values. int64_t imm = MCOperand_getImm(Op); switch(MCInst_getOpcode(MI)) { default: break; case X86_AAD8i8: case X86_AAM8i8: case X86_ADC8i8: case X86_ADD8i8: case X86_AND8i8: case X86_CMP8i8: case X86_OR8i8: case X86_SBB8i8: case X86_SUB8i8: case X86_TEST8i8: case X86_XOR8i8: case X86_ROL8ri: case X86_ADC8ri: case X86_ADD8ri: case X86_ADD8ri8: case X86_AND8ri: case X86_AND8ri8: case X86_CMP8ri: case X86_MOV8ri: case X86_MOV8ri_alt: case X86_OR8ri: case X86_OR8ri8: case X86_RCL8ri: case X86_RCR8ri: case X86_ROR8ri: case X86_SAL8ri: case X86_SAR8ri: case X86_SBB8ri: case X86_SHL8ri: case X86_SHR8ri: case X86_SUB8ri: case X86_SUB8ri8: case X86_TEST8ri: case X86_TEST8ri_NOREX: case X86_TEST8ri_alt: case X86_XOR8ri: case X86_XOR8ri8: case X86_OUT8ir: case X86_ADC8mi: case X86_ADD8mi: case X86_AND8mi: case X86_CMP8mi: case X86_LOCK_ADD8mi: case X86_LOCK_AND8mi: case X86_LOCK_OR8mi: case X86_LOCK_SUB8mi: case X86_LOCK_XOR8mi: case X86_MOV8mi: case X86_OR8mi: case X86_RCL8mi: case X86_RCR8mi: case X86_ROL8mi: case X86_ROR8mi: case X86_SAL8mi: case X86_SAR8mi: case X86_SBB8mi: case X86_SHL8mi: case X86_SHR8mi: case X86_SUB8mi: case X86_TEST8mi: case X86_TEST8mi_alt: case X86_XOR8mi: case X86_PUSH64i8: case X86_CMP32ri8: case X86_CMP64ri8: imm = imm & 0xff; opsize = 1; // immediate of 1 byte break; } switch(MI->flat_insn->id) { default: if (imm >= 0) { if (imm > HEX_THRESHOLD) SStream_concat(O, "$0x%"PRIx64, imm); else SStream_concat(O, "$%"PRIu64, imm); } else { if (imm < -HEX_THRESHOLD) SStream_concat(O, "$-0x%"PRIx64, -imm); else SStream_concat(O, "$-%"PRIu64, -imm); } break; case X86_INS_INT: // do not print number in negative form imm = imm & 0xff; if (imm >= 0 && imm <= HEX_THRESHOLD) SStream_concat(O, "$%u", imm); else { SStream_concat(O, "$0x%x", imm); } break; case X86_INS_LCALL: case X86_INS_LJMP: // always print address in positive form if (OpNo == 1) { // selector is ptr16 imm = imm & 0xffff; opsize = 2; } SStream_concat(O, "$0x%"PRIx64, imm); break; case X86_INS_AND: case X86_INS_OR: case X86_INS_XOR: // do not print number in negative form if (imm >= 0 && imm <= HEX_THRESHOLD) SStream_concat(O, "$%u", imm); else { imm = arch_masks[MI->op1_size? MI->op1_size : MI->imm_size] & imm; SStream_concat(O, "$0x%"PRIx64, imm); } break; case X86_INS_RET: // RET imm16 if (imm >= 0 && imm <= HEX_THRESHOLD) SStream_concat(O, "$%u", imm); else { imm = 0xffff & imm; SStream_concat(O, "$0x%x", imm); } break; } if (MI->csh->detail) { if (MI->csh->doing_mem) { MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].type = X86_OP_MEM; MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].mem.disp = imm; } else { MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].type = X86_OP_IMM; MI->has_imm = true; MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].imm = imm; if (opsize > 0) MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].size = opsize; else if (MI->op1_size > 0) MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].size = MI->op1_size; else MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].size = MI->imm_size; MI->flat_insn->detail->x86.op_count++; } } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4F335C", "function_addr": 5190492, "binary_name": "23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_2C], esi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_4], 0"], [7, "mov edx, [rbp+var_2C]"], [8, "mov rax, [rbp+var_28]"], [9, "mov esi, edx"], [10, "mov rdi, rax"], [11, "call sub_4050EA"], [12, "mov [rbp+var_18], rax"], [13, "mov rax, [rbp+var_18]"], [14, "mov rdi, rax"], [15, "call sub_4051A8"], [16, "test al, al"], [17, "jz loc_4F3543"], [18, "mov rax, [rbp+var_18]"], [19, "mov rdi, rax"], [20, "call sub_4051ED"], [21, "mov [rbp+var_1C], eax"], [22, "mov edx, [rbp+var_1C]"], [23, "mov rax, [rbp+var_38]"], [24, "mov esi, edx"], [25, "mov rdi, rax"], [26, "call sub_4F6CD1"], [27, "mov rax, [rbp+var_28]"], [28, "mov rax, [rax+320h]"], [29, "mov eax, [rax+68h]"], [30, "test eax, eax"], [31, "jz loc_4F3D8F"], [32, "mov rax, [rbp+var_28]"], [33, "mov rax, [rax+320h]"], [34, "movzx eax, byte ptr [rax+70h]"], [35, "test al, al"], [36, "jz short loc_4F3434"], [37, "mov rax, [rbp+var_28]"], [38, "mov rax, [rax+310h]"], [39, "mov rcx, [rax+0E8h]"], [40, "mov rax, [rbp+var_28]"], [41, "mov rax, [rax+310h]"], [42, "mov rax, [rax+0E8h]"], [43, "movzx eax, byte ptr [rax+5Ch]"], [44, "movzx eax, al"], [45, "movsxd rdx, eax"], [46, "mov rax, rdx"], [47, "add rax, rax"], [48, "add rax, rdx"], [49, "shl rax, 4"], [50, "add rax, rcx"], [51, "lea rdx, [rax+6Ch]"], [52, "mov eax, [rbp+var_1C]"], [53, "mov [rdx], eax"], [54, "jmp loc_4F3D8F"], [55, "mov rax, [rbp+var_28]"], [56, "mov rax, [rax+310h]"], [57, "mov rcx, [rax+0E8h]"], [58, "mov rax, [rbp+var_28]"], [59, "mov rax, [rax+310h]"], [60, "mov rax, [rax+0E8h]"], [61, "movzx eax, byte ptr [rax+5Ch]"], [62, "movzx eax, al"], [63, "movsxd rdx, eax"], [64, "mov rax, rdx"], [65, "add rax, rax"], [66, "add rax, rdx"], [67, "shl rax, 4"], [68, "add rax, rcx"], [69, "add rax, 60h "], [70, "mov dword ptr [rax], 1"], [71, "mov rax, [rbp+var_28]"], [72, "mov rax, [rax+310h]"], [73, "mov rcx, [rax+0E8h]"], [74, "mov rax, [rbp+var_28]"], [75, "mov rax, [rax+310h]"], [76, "mov rax, [rax+0E8h]"], [77, "movzx eax, byte ptr [rax+5Ch]"], [78, "movzx eax, al"], [79, "movsxd rdx, eax"], [80, "mov rax, rdx"], [81, "add rax, rax"], [82, "add rax, rdx"], [83, "shl rax, 4"], [84, "add rax, rcx"], [85, "lea rdx, [rax+68h]"], [86, "mov eax, [rbp+var_1C]"], [87, "mov [rdx], eax"], [88, "mov rax, [rbp+var_28]"], [89, "mov rax, [rax+320h]"], [90, "mov rdx, [rax+0A8h]"], [91, "mov eax, [rbp+var_1C]"], [92, "add rdx, rax"], [93, "mov rax, [rbp+var_28]"], [94, "mov rax, [rax+310h]"], [95, "mov rsi, [rax+0E8h]"], [96, "mov rax, [rbp+var_28]"], [97, "mov rax, [rax+310h]"], [98, "mov rax, [rax+0E8h]"], [99, "movzx eax, byte ptr [rax+5Ch]"], [100, "movzx eax, al"], [101, "movzx edx, byte ptr [rdx]"], [102, "movsxd rcx, eax"], [103, "mov rax, rcx"], [104, "add rax, rax"], [105, "add rax, rcx"], [106, "shl rax, 4"], [107, "add rax, rsi"], [108, "sub rax, 0FFFFFFFFFFFFFF80h"], [109, "mov [rax], dl"], [110, "mov rax, [rbp+var_28]"], [111, "mov rax, [rax+310h]"], [112, "mov rax, [rax+0E8h]"], [113, "movzx edx, byte ptr [rax+5Ch]"], [114, "add edx, 1"], [115, "mov [rax+5Ch], dl"], [116, "jmp loc_4F3D8F"], [117, "mov rax, [rbp+var_18]"], [118, "mov rdi, rax"], [119, "call sub_4051BF"], [120, "test al, al"], [121, "jz loc_4F3D8F"], [122, "mov rax, [rbp+var_18]"], [123, "mov rdi, rax"], [124, "call sub_405216"], [125, "mov [rbp+var_10], rax"], [126, "mov rax, [rbp+var_28]"], [127, "mov rdi, rax"], [128, "call sub_4050C9"], [129, "cmp eax, 1867h"], [130, "ja loc_4F38A0"], [131, "cmp eax, 1866h"], [132, "jnb loc_4F388F"], [133, "cmp eax, 1864h"], [134, "ja loc_4F38A0"], [135, "cmp eax, 1863h"], [136, "jnb loc_4F388F"], [137, "cmp eax, 0B59h"], [138, "ja loc_4F38A0"], [139, "cmp eax, 0B54h"], [140, "jnb loc_4F388F"], [141, "cmp eax, 0AF1h"], [142, "ja loc_4F38A0"], [143, "cmp eax, 0AF0h"], [144, "jnb loc_4F388F"], [145, "cmp eax, 0AEEh"], [146, "ja loc_4F38A0"], [147, "cmp eax, 0AEDh"], [148, "jnb loc_4F388F"], [149, "cmp eax, 0A74h"], [150, "ja loc_4F38A0"], [151, "cmp eax, 0A49h"], [152, "jnb loc_4F372C"], [153, "cmp eax, 9EDh"], [154, "ja loc_4F38A0"], [155, "cmp eax, 9B1h"], [156, "jnb loc_4F375B"], [157, "cmp eax, 9AEh"], [158, "ja loc_4F38A0"], [159, "cmp eax, 97Eh"], [160, "jnb loc_4F378A"], [161, "cmp eax, 969h"], [162, "jz loc_4F388F"], [163, "cmp eax, 969h"], [164, "ja loc_4F38A0"], [165, "cmp eax, 966h"], [166, "jz loc_4F388F"], [167, "cmp eax, 966h"], [168, "ja loc_4F38A0"], [169, "cmp eax, 928h"], [170, "ja loc_4F38A0"], [171, "cmp eax, 905h"], [172, "jnb loc_4F37B9"], [173, "cmp eax, 8D6h"], [174, "jz loc_4F388F"], [175, "cmp eax, 8D6h"], [176, "ja loc_4F38A0"], [177, "cmp eax, 76Ah"], [178, "ja loc_4F38A0"], [179, "cmp eax, 75Ah"], [180, "jnb loc_4F37E8"], [181, "cmp eax, 668h"], [182, "ja loc_4F38A0"], [183, "cmp eax, 667h"], [184, "jnb loc_4F388F"], [185, "cmp eax, 662h"], [186, "jz loc_4F388F"], [187, "cmp eax, 662h"], [188, "ja loc_4F38A0"], [189, "cmp eax, 514h"], [190, "ja loc_4F38A0"], [191, "cmp eax, 4DFh"], [192, "jnb loc_4F3812"], [193, "cmp eax, 222h"], [194, "ja loc_4F38A0"], [195, "cmp eax, 212h"], [196, "jnb loc_4F383A"], [197, "cmp eax, 0CAh"], [198, "ja loc_4F38A0"], [199, "cmp eax, 0C9h"], [200, "jnb loc_4F388F"], [201, "cmp eax, 0C7h"], [202, "ja loc_4F38A0"], [203, "cmp eax, 0C6h"], [204, "jnb loc_4F388F"], [205, "cmp eax, 16h"], [206, "ja loc_4F3883"], [207, "cmp eax, 15h"], [208, "jnb loc_4F388F"], [209, "jmp loc_4F38A0"], [210, "sub eax, 0A49h"], [211, "mov edx, 1"], [212, "mov ecx, eax"], [213, "shl rdx, cl"], [214, "mov rax, 90000000009h"], [215, "and rax, rdx"], [216, "test rax, rax"], [217, "setnz al"], [218, "test al, al"], [219, "jnz loc_4F388F"], [220, "jmp loc_4F38A0"], [221, "sub eax, 9B1h"], [222, "mov edx, 1"], [223, "mov ecx, eax"], [224, "shl rdx, cl"], [225, "mov rax, 1600000002400001h"], [226, "and rax, rdx"], [227, "test rax, rax"], [228, "setnz al"], [229, "test al, al"], [230, "jnz loc_4F388F"], [231, "jmp loc_4F38A0"], [232, "sub eax, 97Eh"], [233, "mov edx, 1"], [234, "mov ecx, eax"], [235, "shl rdx, cl"], [236, "mov rax, 1000000000009h"], [237, "and rax, rdx"], [238, "test rax, rax"], [239, "setnz al"], [240, "test al, al"], [241, "jnz loc_4F388F"], [242, "jmp loc_4F38A0"], [243, "sub eax, 905h"], [244, "mov edx, 1"], [245, "mov ecx, eax"], [246, "shl rdx, cl"], [247, "mov rax, 900000009h"], [248, "and rax, rdx"], [249, "test rax, rax"], [250, "setnz al"], [251, "test al, al"], [252, "jnz loc_4F388F"], [253, "jmp loc_4F38A0"], [254, "sub eax, 75Ah"], [255, "mov edx, 1"], [256, "mov ecx, eax"], [257, "shl rdx, cl"], [258, "mov rax, rdx"], [259, "and eax, 1001Bh"], [260, "test rax, rax"], [261, "setnz al"], [262, "test al, al"], [263, "jnz loc_4F388F"], [264, "jmp loc_4F38A0"], [265, "sub eax, 4DFh"], [266, "mov edx, 1"], [267, "mov ecx, eax"], [268, "shl rdx, cl"], [269, "mov rax, 20040040000801h"], [270, "and rax, rdx"], [271, "test rax, rax"], [272, "setnz al"], [273, "test al, al"], [274, "jnz short loc_4F388F"], [275, "jmp short loc_4F38A0"], [276, "sub eax, 212h"], [277, "mov edx, 1"], [278, "mov ecx, eax"], [279, "shl rdx, cl"], [280, "mov rax, rdx"], [281, "and eax, 16201h"], [282, "test rax, rax"], [283, "setnz al"], [284, "test al, al"], [285, "jnz short loc_4F388F"], [286, "jmp short loc_4F38A0"], [287, "sub eax, 3Bh "], [288, "mov edx, 1"], [289, "mov ecx, eax"], [290, "shl rdx, cl"], [291, "mov rax, 0D80000000000Bh"], [292, "and rax, rdx"], [293, "test rax, rax"], [294, "setnz al"], [295, "test al, al"], [296, "jnz short loc_4F388F"], [297, "jmp short loc_4F38A0"], [298, "cmp eax, 6Eh "], [299, "ja short loc_4F38A0"], [300, "cmp eax, 3Bh "], [301, "jnb short loc_4F385D"], [302, "jmp short loc_4F38A0"], [303, "and [rbp+var_10], 0FFh"], [304, "mov [rbp+var_4], 1"], [305, "jmp short loc_4F38A1"], [306, "nop"], [307, "mov rax, [rbp+var_28]"], [308, "mov rax, [rax+310h]"], [309, "mov eax, [rax]"], [310, "cmp eax, 147h"], [311, "jz loc_4F3A3D"], [312, "cmp eax, 147h"], [313, "ja short loc_4F390A"], [314, "cmp eax, 145h"], [315, "jz loc_4F3A3D"], [316, "cmp eax, 145h"], [317, "ja short loc_4F390A"], [318, "cmp eax, 0DEh"], [319, "jz loc_4F39AF"], [320, "cmp eax, 0DEh"], [321, "ja short loc_4F390A"], [322, "cmp eax, 9Dh"], [323, "ja short loc_4F390A"], [324, "cmp eax, 9Ch"], [325, "jnb loc_4F3A07"], [326, "cmp eax, 19h"], [327, "jz loc_4F3A3D"], [328, "cmp eax, 95h"], [329, "jz loc_4F3AC9"], [330, "cmp [rbp+var_10], 0"], [331, "js short loc_4F395A"], [332, "cmp [rbp+var_10], 9"], [333, "jle short loc_4F3939"], [334, "mov rdx, [rbp+var_10]"], [335, "mov rax, [rbp+var_38]"], [336, "lea rsi, a0xLx_15"], [337, "mov rdi, rax"], [338, "mov eax, 0"], [339, "call sub_403EEA"], [340, "jmp loc_4F3B1A"], [341, "mov rdx, [rbp+var_10]"], [342, "mov rax, [rbp+var_38]"], [343, "lea rsi, aLu_14"], [344, "mov rdi, rax"], [345, "mov eax, 0"], [346, "call sub_403EEA"], [347, "jmp loc_4F3B1A"], [348, "cmp [rbp+var_10], 0FFFFFFFFFFFFFFF7h"], [349, "jge short loc_4F3988"], [350, "mov rax, [rbp+var_10]"], [351, "neg rax"], [352, "mov rdx, rax"], [353, "mov rax, [rbp+var_38]"], [354, "lea rsi, a0xLx_14"], [355, "mov rdi, rax"], [356, "mov eax, 0"], [357, "call sub_403EEA"], [358, "jmp loc_4F3B1A"], [359, "mov rax, [rbp+var_10]"], [360, "neg rax"], [361, "mov rdx, rax"], [362, "mov rax, [rbp+var_38]"], [363, "lea rsi, aLu_13"], [364, "mov rdi, rax"], [365, "mov eax, 0"], [366, "call sub_403EEA"], [367, "jmp loc_4F3B1A"], [368, "and [rbp+var_10], 0FFh"], [369, "cmp [rbp+var_10], 0"], [370, "js short loc_4F39E6"], [371, "cmp [rbp+var_10], 9"], [372, "jg short loc_4F39E6"], [373, "mov rdx, [rbp+var_10]"], [374, "mov rax, [rbp+var_38]"], [375, "lea rsi, aU_23"], [376, "mov rdi, rax"], [377, "mov eax, 0"], [378, "call sub_403EEA"], [379, "jmp loc_4F3B1A"], [380, "mov rdx, [rbp+var_10]"], [381, "mov rax, [rbp+var_38]"], [382, "lea rsi, a0xX_21"], [383, "mov rdi, rax"], [384, "mov eax, 0"], [385, "call sub_403EEA"], [386, "jmp loc_4F3B1A"], [387, "cmp [rbp+var_2C], 1"], [388, "jnz short loc_4F3A1C"], [389, "and [rbp+var_10], 0FFFFh"], [390, "mov [rbp+var_4], 2"], [391, "mov rdx, [rbp+var_10]"], [392, "mov rax, [rbp+var_38]"], [393, "lea rsi, a0xLx_15"], [394, "mov rdi, rax"], [395, "mov eax, 0"], [396, "call sub_403EEA"], [397, "jmp loc_4F3B1A"], [398, "cmp [rbp+var_10], 0"], [399, "js short loc_4F3A6C"], [400, "cmp [rbp+var_10], 9"], [401, "jg short loc_4F3A6C"], [402, "mov rdx, [rbp+var_10]"], [403, "mov rax, [rbp+var_38]"], [404, "lea rsi, aU_23"], [405, "mov rdi, rax"], [406, "mov eax, 0"], [407, "call sub_403EEA"], [408, "jmp loc_4F3B1A"], [409, "mov rax, [rbp+var_28]"], [410, "movzx eax, byte ptr [rax+6]"], [411, "test al, al"], [412, "jz short loc_4F3A85"], [413, "mov rax, [rbp+var_28]"], [414, "movzx eax, byte ptr [rax+6]"], [415, "movzx eax, al"], [416, "jmp short loc_4F3A93"], [417, "mov rax, [rbp+var_28]"], [418, "movzx eax, byte ptr [rax+32Dh]"], [419, "movzx eax, al"], [420, "mov rdx, offset unk_683960"], [421, "cdqe"], [422, "mov rdx, [rdx+rax*8]"], [423, "mov rax, [rbp+var_10]"], [424, "and rax, rdx"], [425, "mov [rbp+var_10], rax"], [426, "mov rdx, [rbp+var_10]"], [427, "mov rax, [rbp+var_38]"], [428, "lea rsi, a0xLx_15"], [429, "mov rdi, rax"], [430, "mov eax, 0"], [431, "call sub_403EEA"], [432, "jmp short loc_4F3B1A"], [433, "cmp [rbp+var_10], 0"], [434, "js short loc_4F3AF5"], [435, "cmp [rbp+var_10], 9"], [436, "jg short loc_4F3AF5"], [437, "mov rdx, [rbp+var_10]"], [438, "mov rax, [rbp+var_38]"], [439, "lea rsi, aU_23"], [440, "mov rdi, rax"], [441, "mov eax, 0"], [442, "call sub_403EEA"], [443, "jmp short loc_4F3B19"], [444, "and [rbp+var_10], 0FFFFh"], [445, "mov rdx, [rbp+var_10]"], [446, "mov rax, [rbp+var_38]"], [447, "lea rsi, a0xX_21"], [448, "mov rdi, rax"], [449, "mov eax, 0"], [450, "call sub_403EEA"], [451, "nop"], [452, "mov rax, [rbp+var_28]"], [453, "mov rax, [rax+320h]"], [454, "mov eax, [rax+68h]"], [455, "test eax, eax"], [456, "jz loc_4F3D8F"], [457, "mov rax, [rbp+var_28]"], [458, "mov rax, [rax+320h]"], [459, "movzx eax, byte ptr [rax+70h]"], [460, "test al, al"], [461, "jz loc_4F3BDD"], [462, "mov rax, [rbp+var_28]"], [463, "mov rax, [rax+310h]"], [464, "mov rcx, [rax+0E8h]"], [465, "mov rax, [rbp+var_28]"], [466, "mov rax, [rax+310h]"], [467, "mov rax, [rax+0E8h]"], [468, "movzx eax, byte ptr [rax+5Ch]"], [469, "movzx eax, al"], [470, "movsxd rdx, eax"], [471, "mov rax, rdx"], [472, "add rax, rax"], [473, "add rax, rdx"], [474, "shl rax, 4"], [475, "add rax, rcx"], [476, "add rax, 60h "], [477, "mov dword ptr [rax], 3"], [478, "mov rax, [rbp+var_28]"], [479, "mov rax, [rax+310h]"], [480, "mov rcx, [rax+0E8h]"], [481, "mov rax, [rbp+var_28]"], [482, "mov rax, [rax+310h]"], [483, "mov rax, [rax+0E8h]"], [484, "movzx eax, byte ptr [rax+5Ch]"], [485, "movzx eax, al"], [486, "movsxd rdx, eax"], [487, "mov rax, rdx"], [488, "add rax, rax"], [489, "add rax, rdx"], [490, "shl rax, 4"], [491, "add rax, rcx"], [492, "lea rdx, [rax+78h]"], [493, "mov rax, [rbp+var_10]"], [494, "mov [rdx], rax"], [495, "jmp loc_4F3D8F"], [496, "mov rax, [rbp+var_28]"], [497, "mov rax, [rax+310h]"], [498, "mov rcx, [rax+0E8h]"], [499, "mov rax, [rbp+var_28]"], [500, "mov rax, [rax+310h]"], [501, "mov rax, [rax+0E8h]"], [502, "movzx eax, byte ptr [rax+5Ch]"], [503, "movzx eax, al"], [504, "movsxd rdx, eax"], [505, "mov rax, rdx"], [506, "add rax, rax"], [507, "add rax, rdx"], [508, "shl rax, 4"], [509, "add rax, rcx"], [510, "add rax, 60h "], [511, "mov dword ptr [rax], 2"], [512, "mov rax, [rbp+var_28]"], [513, "mov byte ptr [rax+5], 1"], [514, "mov rax, [rbp+var_28]"], [515, "mov rax, [rax+310h]"], [516, "mov rcx, [rax+0E8h]"], [517, "mov rax, [rbp+var_28]"], [518, "mov rax, [rax+310h]"], [519, "mov rax, [rax+0E8h]"], [520, "movzx eax, byte ptr [rax+5Ch]"], [521, "movzx eax, al"], [522, "movsxd rdx, eax"], [523, "mov rax, rdx"], [524, "add rax, rax"], [525, "add rax, rdx"], [526, "shl rax, 4"], [527, "add rax, rcx"], [528, "lea rdx, [rax+68h]"], [529, "mov rax, [rbp+var_10]"], [530, "mov [rdx], rax"], [531, "cmp [rbp+var_4], 0"], [532, "jle short loc_4F3CCA"], [533, "mov rax, [rbp+var_28]"], [534, "mov rax, [rax+310h]"], [535, "mov rsi, [rax+0E8h]"], [536, "mov rax, [rbp+var_28]"], [537, "mov rax, [rax+310h]"], [538, "mov rax, [rax+0E8h]"], [539, "movzx eax, byte ptr [rax+5Ch]"], [540, "movzx eax, al"], [541, "mov edx, [rbp+var_4]"], [542, "mov ecx, edx"], [543, "movsxd rdx, eax"], [544, "mov rax, rdx"], [545, "add rax, rax"], [546, "add rax, rdx"], [547, "shl rax, 4"], [548, "add rax, rsi"], [549, "sub rax, 0FFFFFFFFFFFFFF80h"], [550, "mov [rax], cl"], [551, "jmp loc_4F3D73"], [552, "mov rax, [rbp+var_28]"], [553, "movzx eax, byte ptr [rax+6]"], [554, "test al, al"], [555, "jz short loc_4F3D24"], [556, "mov rax, [rbp+var_28]"], [557, "mov rax, [rax+310h]"], [558, "mov rsi, [rax+0E8h]"], [559, "mov rax, [rbp+var_28]"], [560, "mov rax, [rax+310h]"], [561, "mov rax, [rax+0E8h]"], [562, "movzx eax, byte ptr [rax+5Ch]"], [563, "movzx ecx, al"], [564, "mov rax, [rbp+var_28]"], [565, "movzx edx, byte ptr [rax+6]"], [566, "movsxd rcx, ecx"], [567, "mov rax, rcx"], [568, "add rax, rax"], [569, "add rax, rcx"], [570, "shl rax, 4"], [571, "add rax, rsi"], [572, "sub rax, 0FFFFFFFFFFFFFF80h"], [573, "mov [rax], dl"], [574, "jmp short loc_4F3D73"], [575, "mov rax, [rbp+var_28]"], [576, "mov rax, [rax+310h]"], [577, "mov rsi, [rax+0E8h]"], [578, "mov rax, [rbp+var_28]"], [579, "mov rax, [rax+310h]"], [580, "mov rax, [rax+0E8h]"], [581, "movzx eax, byte ptr [rax+5Ch]"], [582, "movzx ecx, al"], [583, "mov rax, [rbp+var_28]"], [584, "movzx edx, byte ptr [rax+32Dh]"], [585, "movsxd rcx, ecx"], [586, "mov rax, rcx"], [587, "add rax, rax"], [588, "add rax, rcx"], [589, "shl rax, 4"], [590, "add rax, rsi"], [591, "sub rax, 0FFFFFFFFFFFFFF80h"], [592, "mov [rax], dl"], [593, "mov rax, [rbp+var_28]"], [594, "mov rax, [rax+310h]"], [595, "mov rax, [rax+0E8h]"], [596, "movzx edx, byte ptr [rax+5Ch]"], [597, "add edx, 1"], [598, "mov [rax+5Ch], dl"], [599, "nop"], [600, "leave"], [601, "retn"]], "data_dep": [[7, 4], [8, 3], [9, 7], [10, 8], [12, 11], [13, 12], [14, 13], [16, 15], [17, 16], [18, 12], [19, 18], [21, 20], [22, 21], [23, 5], [24, 22], [25, 23], [27, 3], [28, 27], [29, 28], [30, 29], [31, 30], [32, 3], [33, 32], [34, 33], [35, 34], [36, 35], [37, 3], [38, 37], [39, 38], [40, 3], [41, 40], [42, 41], [43, 42], [44, 43], [45, 44], [46, 45], [47, 46], [48, 45], [48, 47], [49, 48], [50, 39], [50, 49], [51, 50], [51, 45], [52, 21], [53, 52], [53, 51], [55, 3], [56, 55], [57, 56], [58, 3], [59, 58], [60, 59], [61, 60], [62, 61], [63, 62], [64, 63], [65, 64], [66, 65], [66, 63], [67, 66], [68, 67], [68, 57], [69, 68], [70, 69], [71, 3], [72, 71], [72, 70], [73, 72], [73, 70], [74, 3], [75, 70], [75, 74], [76, 75], [76, 70], [77, 76], [77, 70], [78, 77], [79, 78], [80, 79], [81, 80], [82, 79], [82, 81], [83, 82], [84, 83], [84, 73], [85, 84], [85, 70], [85, 79], [86, 21], [87, 86], [87, 85], [88, 3], [89, 88], [89, 87], [90, 87], [90, 89], [91, 21], [92, 91], [92, 90], [93, 3], [94, 93], [94, 87], [95, 87], [95, 94], [96, 3], [97, 87], [97, 96], [98, 97], [98, 87], [99, 98], [99, 87], [100, 99], [101, 92], [101, 87], [102, 100], [103, 102], [104, 103], [105, 104], [105, 102], [106, 105], [107, 95], [107, 106], [108, 107], [109, 101], [109, 108], [110, 3], [111, 110], [111, 109], [112, 111], [112, 109], [113, 109], [113, 112], [114, 113], [115, 112], [115, 114], [117, 12], [118, 117], [120, 119], [121, 120], [122, 12], [123, 122], [125, 124], [126, 3], [127, 126], [129, 128], [130, 129], [131, 128], [132, 131], [133, 128], [134, 133], [135, 128], [136, 135], [137, 128], [138, 137], [139, 128], [140, 139], [141, 128], [142, 141], [143, 128], [144, 143], [145, 128], [146, 145], [147, 128], [148, 147], [149, 128], [150, 149], [151, 128], [152, 151], [153, 128], [154, 153], [155, 128], [156, 155], [157, 128], [158, 157], [159, 128], [160, 159], [161, 128], [162, 161], [163, 128], [164, 163], [165, 128], [166, 165], [167, 128], [168, 167], [169, 128], [170, 169], [171, 128], [172, 171], [173, 128], [174, 173], [175, 128], [176, 175], [177, 128], [178, 177], [179, 128], [180, 179], [181, 128], [182, 181], [183, 128], [184, 183], [185, 128], [186, 185], [187, 128], [188, 187], [189, 128], [190, 189], [191, 128], [192, 191], [193, 128], [194, 193], [195, 128], [196, 195], [197, 128], [198, 197], [199, 128], [200, 199], [201, 128], [202, 201], [203, 128], [204, 203], [205, 128], [206, 205], [207, 128], [208, 207], [210, 128], [212, 210], [213, 212], [213, 211], [215, 214], [215, 213], [216, 215], [217, 216], [218, 217], [219, 218], [221, 128], [223, 221], [224, 223], [224, 222], [226, 225], [226, 224], [227, 226], [228, 227], [229, 228], [230, 229], [232, 128], [234, 232], [235, 233], [235, 234], [237, 236], [237, 235], [238, 237], [239, 238], [240, 239], [241, 240], [243, 128], [245, 243], [246, 245], [246, 244], [248, 247], [248, 246], [249, 248], [250, 249], [251, 250], [252, 251], [254, 128], [256, 254], [257, 256], [257, 255], [258, 257], [259, 258], [260, 259], [261, 260], [262, 261], [263, 262], [265, 128], [267, 265], [268, 266], [268, 267], [270, 269], [270, 268], [271, 270], [272, 271], [273, 272], [274, 273], [276, 128], [278, 276], [279, 278], [279, 277], [280, 279], [281, 280], [282, 281], [283, 282], [284, 283], [285, 284], [287, 128], [289, 287], [290, 289], [290, 288], [292, 291], [292, 290], [293, 292], [294, 293], [295, 294], [296, 295], [298, 128], [299, 298], [300, 128], [301, 300], [303, 125], [307, 3], [308, 307], [309, 308], [310, 309], [311, 310], [312, 309], [313, 312], [314, 309], [315, 314], [316, 309], [317, 316], [318, 309], [319, 318], [320, 309], [321, 320], [322, 309], [323, 322], [324, 309], [325, 324], [326, 309], [327, 326], [328, 309], [329, 328], [330, 125], [330, 303], [331, 330], [332, 303], [332, 125], [333, 332], [334, 303], [334, 125], [335, 5], [336, 9], [337, 335], [341, 125], [341, 303], [342, 5], [343, 9], [344, 342], [348, 303], [348, 125], [349, 348], [350, 303], [350, 125], [351, 350], [352, 351], [353, 5], [354, 9], [355, 353], [359, 303], [359, 125], [360, 359], [361, 360], [362, 5], [363, 9], [364, 362], [368, 125], [368, 303], [369, 368], [370, 369], [371, 368], [372, 371], [373, 368], [374, 5], [375, 9], [376, 374], [380, 368], [381, 5], [382, 9], [383, 381], [387, 4], [388, 387], [389, 303], [389, 125], [391, 303], [391, 125], [391, 389], [392, 5], [393, 9], [394, 392], [398, 125], [398, 303], [399, 398], [400, 303], [400, 125], [401, 400], [402, 303], [402, 125], [403, 5], [404, 9], [405, 403], [409, 3], [410, 409], [411, 410], [412, 411], [413, 3], [414, 413], [415, 414], [417, 3], [418, 417], [419, 418], [422, 415], [422, 419], [423, 303], [423, 125], [424, 423], [424, 422], [425, 424], [426, 425], [427, 5], [428, 9], [429, 427], [433, 125], [433, 303], [434, 433], [435, 303], [435, 125], [436, 435], [437, 303], [437, 125], [438, 5], [439, 9], [440, 438], [444, 125], [444, 303], [445, 444], [446, 5], [447, 9], [448, 446], [452, 3], [453, 452], [454, 453], [455, 454], [456, 455], [457, 3], [458, 457], [459, 458], [460, 459], [461, 460], [462, 3], [463, 462], [464, 463], [465, 3], [466, 465], [467, 466], [468, 467], [469, 468], [470, 469], [471, 470], [472, 471], [473, 470], [473, 472], [474, 473], [475, 474], [475, 464], [476, 475], [477, 476], [478, 3], [479, 478], [479, 477], [480, 479], [480, 477], [481, 3], [482, 477], [482, 481], [483, 482], [483, 477], [484, 477], [484, 483], [485, 484], [486, 485], [487, 486], [488, 487], [489, 488], [489, 486], [490, 489], [491, 480], [491, 490], [492, 491], [492, 477], [492, 486], [493, 125], [493, 389], [493, 444], [493, 425], [493, 368], [493, 303], [494, 493], [494, 492], [496, 3], [497, 496], [498, 497], [499, 3], [500, 499], [501, 500], [502, 501], [503, 502], [504, 503], [505, 504], [506, 505], [507, 506], [507, 504], [508, 507], [509, 508], [509, 498], [510, 509], [511, 510], [512, 3], [513, 512], [514, 3], [515, 514], [515, 513], [516, 513], [516, 515], [517, 3], [518, 513], [518, 517], [519, 513], [519, 518], [520, 519], [520, 513], [521, 520], [522, 521], [523, 522], [524, 523], [525, 522], [525, 524], [526, 525], [527, 526], [527, 516], [528, 527], [528, 513], [528, 522], [529, 125], [529, 389], [529, 444], [529, 425], [529, 303], [529, 368], [530, 529], [530, 528], [531, 390], [531, 304], [531, 6], [532, 531], [533, 3], [534, 533], [534, 550], [534, 513], [534, 530], [534, 511], [535, 550], [535, 513], [535, 530], [535, 534], [535, 511], [536, 3], [537, 530], [537, 511], [537, 550], [537, 536], [537, 513], [538, 537], [538, 550], [538, 513], [538, 530], [538, 511], [539, 511], [539, 538], [539, 550], [539, 513], [539, 530], [540, 539], [541, 304], [541, 6], [541, 390], [542, 541], [543, 540], [544, 543], [545, 544], [546, 545], [546, 543], [547, 546], [548, 547], [548, 535], [549, 548], [550, 542], [550, 549], [552, 3], [553, 552], [553, 513], [553, 530], [553, 511], [554, 553], [555, 554], [556, 3], [557, 573], [557, 530], [557, 511], [557, 556], [557, 513], [558, 573], [558, 513], [558, 530], [558, 511], [558, 557], [559, 3], [560, 573], [560, 559], [560, 513], [560, 530], [560, 511], [561, 560], [561, 573], [561, 513], [561, 530], [561, 511], [562, 530], [562, 511], [562, 561], [562, 513], [562, 573], [563, 562], [564, 3], [565, 513], [565, 530], [565, 511], [565, 564], [565, 573], [566, 563], [567, 566], [568, 567], [569, 568], [569, 566], [570, 569], [571, 558], [571, 570], [572, 571], [573, 572], [573, 565], [575, 3], [576, 592], [576, 513], [576, 530], [576, 511], [576, 575], [577, 513], [577, 592], [577, 530], [577, 511], [577, 576], [578, 3], [579, 592], [579, 578], [579, 530], [579, 511], [579, 513], [580, 579], [580, 592], [580, 513], [580, 530], [580, 511], [581, 513], [581, 530], [581, 511], [581, 580], [581, 592], [582, 581], [583, 3], [584, 513], [584, 530], [584, 511], [584, 583], [584, 592], [585, 582], [586, 585], [587, 586], [588, 587], [588, 585], [589, 588], [590, 577], [590, 589], [591, 590], [592, 591], [592, 584], [593, 3], [594, 598], [594, 513], [594, 593], [594, 592], [594, 573], [594, 550], [594, 530], [594, 511], [595, 573], [595, 550], [595, 530], [595, 511], [595, 594], [595, 598], [595, 513], [595, 592], [596, 598], [596, 592], [596, 573], [596, 550], [596, 513], [596, 530], [596, 511], [596, 595], [597, 596], [598, 597], [598, 595], [601, 52], [601, 112], [601, 493], [601, 120], [601, 595], [601, 455], [601, 30]]}
{"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/23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2_23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2.jsonl.gz", "strip_func_name": "sub_4F335C", "query": "\n\n\nchar __fastcall sub_4F335C(__int64 a1, unsigned int a2, __int64 a3)\n{\n__int64 v3; // rax\nunsigned int v4; // eax\n__int64 v5; // rcx\n__int64 v6; // r8\n__int64 v7; // r9\nunsigned int v8; // eax\nint v9; // eax\nchar v10; // dl\nunsigned int v13; // [rsp+24h] [rbp-1Ch]\n__int64 v14; // [rsp+28h] [rbp-18h]\n__int64 v15; // [rsp+30h] [rbp-10h]\nint v16; // [rsp+3Ch] [rbp-4h]\n\nv16 = 0;\nv14 = sub_4050EA(a1, a2);\nif ( sub_4051A8(v14) )\n{\nv13 = sub_4051ED(v14);\nsub_4F6CD1(a3, v13);\nLODWORD(v3) = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 104LL);\nif ( (_DWORD)v3 )\n{\nif ( *(_BYTE *)(*(_QWORD *)(a1 + 800) + 112LL) )\n{\nLOBYTE(v3) = v13;\n*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 108) = v13;\n}\nelse\n{\n*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 96) = 1;\n*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 104) = v13;\n*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 128) = *(_BYTE *)(v13 + *(_QWORD *)(*(_QWORD *)(a1 + 800) + 168LL));\nv3 = *(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL);\n++*(_BYTE *)(v3 + 92);\n}\n}\nreturn v3;\n}\nLOBYTE(v3) = sub_4051BF(v14);\nif ( !(_BYTE)v3 )\nreturn v3;\nv15 = sub_405216(v14);\nv4 = sub_4050C9(a1);\nif ( v4 > 0x1867 )\ngoto LABEL_68;\nif ( v4 >= 0x1866 )\ngoto LABEL_67;\nif ( v4 > 0x1864 )\ngoto LABEL_68;\nif ( v4 >= 0x1863 )\ngoto LABEL_67;\nif ( v4 > 0xB59 )\ngoto LABEL_68;\nif ( v4 >= 0xB54 )\ngoto LABEL_67;\nif ( v4 > 0xAF1 )\ngoto LABEL_68;\nif ( v4 >= 0xAF0 )\ngoto LABEL_67;\nif ( v4 > 0xAEE )\ngoto LABEL_68;\nif ( v4 >= 0xAED )\ngoto LABEL_67;\nif ( v4 > 0xA74 )\ngoto LABEL_68;\nif ( v4 >= 0xA49 )\n{\nv5 = v4 - 2633;\nif ( ((1LL << ((unsigned __int8)v4 - 73)) & 0x90000000009LL) == 0 )\ngoto LABEL_68;\ngoto LABEL_67;\n}\nif ( v4 > 0x9ED )\ngoto LABEL_68;\nif ( v4 >= 0x9B1 )\n{\nv5 = v4 - 2481;\nif ( ((1LL << ((unsigned __int8)v4 + 79)) & 0x1600000002400001LL) == 0 )\ngoto LABEL_68;\ngoto LABEL_67;\n}\nif ( v4 > 0x9AE )\ngoto LABEL_68;\nif ( v4 >= 0x97E )\n{\nv5 = v4 - 2430;\nif ( ((1LL << ((unsigned __int8)v4 - 126)) & 0x1000000000009LL) == 0 )\ngoto LABEL_68;\ngoto LABEL_67;\n}\nif ( v4 == 2409 )\ngoto LABEL_67;\nif ( v4 > 0x969 )\ngoto LABEL_68;\nif ( v4 == 2406 )\ngoto LABEL_67;\nif ( v4 > 0x966 || v4 > 0x928 )\ngoto LABEL_68;\nif ( v4 >= 0x905 )\n{\nv5 = v4 - 2309;\nif ( ((1LL << ((unsigned __int8)v4 - 5)) & 0x900000009LL) == 0 )\ngoto LABEL_68;\ngoto LABEL_67;\n}\nif ( v4 == 2262 )\ngoto LABEL_67;\nif ( v4 > 0x8D6 || v4 > 0x76A )\ngoto LABEL_68;\nif ( v4 >= 0x75A )\n{\nv5 = v4 - 1882;\nif ( ((1LL << ((unsigned __int8)v4 - 90)) & 0x1001B) == 0 )\ngoto LABEL_68;\ngoto LABEL_67;\n}\nif ( v4 > 0x668 )\ngoto LABEL_68;\nif ( v4 >= 0x667 || v4 == 1634 )\ngoto LABEL_67;\nif ( v4 > 0x662 || v4 > 0x514 )\ngoto LABEL_68;\nif ( v4 >= 0x4DF )\n{\nv5 = v4 - 1247;\nif ( ((1LL << ((unsigned __int8)v4 + 33)) & 0x20040040000801LL) == 0 )\ngoto LABEL_68;\ngoto LABEL_67;\n}\nif ( v4 > 0x222 )\ngoto LABEL_68;\nif ( v4 >= 0x212 )\n{\nv5 = v4 - 530;\nif ( ((1LL << ((unsigned __int8)v4 - 18)) & 0x16201) == 0 )\ngoto LABEL_68;\ngoto LABEL_67;\n}\nif ( v4 > 0xCA )\ngoto LABEL_68;\nif ( v4 >= 0xC9 )\n{\nLABEL_67:\nv15 = (unsigned __int8)v15;\nv16 = 1;\ngoto LABEL_68;\n}\nif ( v4 <= 0xC7 )\n{\nif ( v4 < 0xC6 )\n{\nif ( v4 > 0x16 )\n{\nif ( v4 > 0x6E )\ngoto LABEL_68;\nif ( v4 < 0x3B )\ngoto LABEL_68;\nv5 = v4 - 59;\nif ( ((1LL << ((unsigned __int8)v4 - 59)) & 0xD80000000000BLL) == 0 )\ngoto LABEL_68;\n}\nelse if ( v4 < 0x15 )\n{\ngoto LABEL_68;\n}\n}\ngoto LABEL_67;\n}\nLABEL_68:\nv8 = **(_DWORD **)(a1 + 784);\nif ( v8 == 327 )\ngoto LABEL_91;\nif ( v8 > 0x147 )\ngoto LABEL_78;\nif ( v8 == 325 )\ngoto LABEL_91;\nif ( v8 > 0x145 )\ngoto LABEL_78;\nif ( v8 == 222 )\n{\nv15 = (unsigned __int8)v15;\nif ( (unsigned __int8)v15 > 9uLL )\n{\nsub_403EEA(a3, (__int64)\"$0x%x\", (unsigned __int8)v15, v5, v6, v7);\ngoto LABEL_101;\n}\ngoto LABEL_99;\n}\nif ( v8 <= 0xDE && v8 <= 0x9D )\n{\nif ( v8 >= 0x9C )\n{\nif ( a2 == 1 )\n{\nv15 = (unsigned __int16)v15;\nv16 = 2;\n}\ngoto LABEL_80;\n}\nif ( v8 != 25 )\n{\nif ( v8 != 149 )\ngoto LABEL_78;\nif ( v15 < 0 || v15 > 9 )\n{\nv15 = (unsigned __int16)v15;\nsub_403EEA(a3, (__int64)\"$0x%x\", (unsigned __int16)v15, v5, v6, v7);\ngoto LABEL_101;\n}\nLABEL_99:\nsub_403EEA(a3, (__int64)\"$%u\", v15, v5, v6, v7);\ngoto LABEL_101;\n}\nLABEL_91:\nif ( v15 < 0 || v15 > 9 )\n{\nif ( *(_BYTE *)(a1 + 6) )\nv9 = *(unsigned __int8 *)(a1 + 6);\nelse\nv9 = *(unsigned __int8 *)(a1 + 813);\nv15 &= qword_683960[v9];\nsub_403EEA(a3, (__int64)\"$0x%lx\", v15, v5, v6, v7);\ngoto LABEL_101;\n}\ngoto LABEL_99;\n}\nLABEL_78:\nif ( v15 < 0 )\n{\nif ( v15 >= -9 )\nsub_403EEA(a3, (__int64)\"$-%lu\", -v15, v5, v6, v7);\nelse\nsub_403EEA(a3, (__int64)\"$-0x%lx\", -v15, v5, v6, v7);\n}\nelse\n{\nif ( v15 > 9 )\n{\nLABEL_80:\nsub_403EEA(a3, (__int64)\"$0x%lx\", v15, v5, v6, v7);\ngoto LABEL_101;\n}\nsub_403EEA(a3, (__int64)\"$%lu\", v15, v5, v6, v7);\n}\nLABEL_101:\nLODWORD(v3) = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 104LL);\nif ( (_DWORD)v3 )\n{\nif ( *(_BYTE *)(*(_QWORD *)(a1 + 800) + 112LL) )\n{\n*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 96) = 3;\nLOBYTE(v3) = v15;\n*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 120) = v15;\n}\nelse\n{\n*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 96) = 2;\n*(_BYTE *)(a1 + 5) = 1;\n*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 104) = v15;\nif ( v16 <= 0 )\n{\nif ( *(_BYTE *)(a1 + 6) )\nv10 = *(_BYTE *)(a1 + 6);\nelse\nv10 = *(_BYTE *)(a1 + 813);\n*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 128) = v10;\n}\nelse\n{\n*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL)\n+ 48LL * *(unsigned __int8 *)(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL) + 92LL)\n+ 128) = v16;\n}\nv3 = *(_QWORD *)(*(_QWORD *)(a1 + 784) + 232LL);\n++*(_BYTE *)(v3 + 92);\n}\n}\nreturn v3;\n}\n\n\n\nQ:[a3,a1,a2,v13,v14,v15,v16,sub_4F335C,sub_4050EA,sub_4051A8,sub_4051ED,sub_4F6CD1,sub_4051BF,sub_405216,sub_4050C9,sub_403EEA,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'O', 'a1': 'MI', 'a2': 'OpNo', 'v13': 'reg', 'v14': 'Op', 'v15': 'imm', 'v16': 'opsize', 'sub_4F335C': 'printOperand_6', 'sub_4050EA': 'MCInst_getOperand', 'sub_4051A8': 'MCOperand_isReg', 'sub_4051ED': 'MCOperand_getReg', 'sub_4F6CD1': 'printRegName_3', 'sub_4051BF': 'MCOperand_isImm', 'sub_405216': 'MCOperand_getImm', 'sub_4050C9': 'MCInst_getOpcode', 'sub_403EEA': 'SStream_concat'}"}
DecodeSTRPreImm
d6f1c4fccbb8fc2066c0c7749389636df7b33c67e152dc8852a86b3a79bd4c3d
google
honggfuzz
NA
static DecodeStatus DecodeSTRPreImm(MCInst *Inst, unsigned Insn, uint64_t Address, const void *Decoder) { DecodeStatus S = MCDisassembler_Success; unsigned pred; unsigned Rn = fieldFromInstruction_4(Insn, 16, 4); unsigned Rt = fieldFromInstruction_4(Insn, 12, 4); unsigned imm = fieldFromInstruction_4(Insn, 0, 12); imm |= fieldFromInstruction_4(Insn, 16, 4) << 13; imm |= fieldFromInstruction_4(Insn, 23, 1) << 12; pred = fieldFromInstruction_4(Insn, 28, 4); if (Rn == 0xF || Rn == Rt) S = MCDisassembler_SoftFail; if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodeAddrModeImm12Operand(Inst, imm, Address, Decoder))) return MCDisassembler_Fail; if (!Check(&S, DecodePredicateOperand(Inst, pred, Address, Decoder))) return MCDisassembler_Fail; return S; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_470D2E", "function_addr": 4656430, "binary_name": "d6f1c4fccbb8fc2066c0c7749389636df7b33c67e152dc8852a86b3a79bd4c3d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_2C], esi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_40], rcx"], [7, "mov [rbp+var_14], 3"], [8, "mov eax, [rbp+var_2C]"], [9, "mov edx, 4"], [10, "mov esi, 10h"], [11, "mov edi, eax"], [12, "call sub_452336"], [13, "mov [rbp+var_4], eax"], [14, "mov eax, [rbp+var_2C]"], [15, "mov edx, 4"], [16, "mov esi, 0Ch"], [17, "mov edi, eax"], [18, "call sub_452336"], [19, "mov [rbp+var_8], eax"], [20, "mov eax, [rbp+var_2C]"], [21, "mov edx, 0Ch"], [22, "mov esi, 0"], [23, "mov edi, eax"], [24, "call sub_452336"], [25, "mov [rbp+var_C], eax"], [26, "mov eax, [rbp+var_2C]"], [27, "mov edx, 4"], [28, "mov esi, 10h"], [29, "mov edi, eax"], [30, "call sub_452336"], [31, "shl eax, 0Dh"], [32, "or [rbp+var_C], eax"], [33, "mov eax, [rbp+var_2C]"], [34, "mov edx, 1"], [35, "mov esi, 17h"], [36, "mov edi, eax"], [37, "call sub_452336"], [38, "shl eax, 0Ch"], [39, "or [rbp+var_C], eax"], [40, "mov eax, [rbp+var_2C]"], [41, "mov edx, 4"], [42, "mov esi, 1Ch"], [43, "mov edi, eax"], [44, "call sub_452336"], [45, "mov [rbp+var_10], eax"], [46, "cmp [rbp+var_4], 0Fh"], [47, "jz short loc_470DEA"], [48, "mov eax, [rbp+var_4]"], [49, "cmp eax, [rbp+var_8]"], [50, "jnz short loc_470DF1"], [51, "mov [rbp+var_14], 1"], [52, "mov rcx, [rbp+var_40]"], [53, "mov rdx, [rbp+var_38]"], [54, "mov esi, [rbp+var_4]"], [55, "mov rax, [rbp+var_28]"], [56, "mov rdi, rax"], [57, "call sub_4696F7"], [58, "mov edx, eax"], [59, "lea rax, [rbp+var_14]"], [60, "mov esi, edx"], [61, "mov rdi, rax"], [62, "call sub_438931"], [63, "xor eax, 1"], [64, "test al, al"], [65, "jz short loc_470E29"], [66, "mov eax, 0"], [67, "jmp locret_470ECB"], [68, "mov rcx, [rbp+var_40]"], [69, "mov rdx, [rbp+var_38]"], [70, "mov esi, [rbp+var_8]"], [71, "mov rax, [rbp+var_28]"], [72, "mov rdi, rax"], [73, "call sub_4696F7"], [74, "mov edx, eax"], [75, "lea rax, [rbp+var_14]"], [76, "mov esi, edx"], [77, "mov rdi, rax"], [78, "call sub_438931"], [79, "xor eax, 1"], [80, "test al, al"], [81, "jz short loc_470E5E"], [82, "mov eax, 0"], [83, "jmp short locret_470ECB"], [84, "mov rcx, [rbp+var_40]"], [85, "mov rdx, [rbp+var_38]"], [86, "mov esi, [rbp+var_C]"], [87, "mov rax, [rbp+var_28]"], [88, "mov rdi, rax"], [89, "call sub_46C185"], [90, "mov edx, eax"], [91, "lea rax, [rbp+var_14]"], [92, "mov esi, edx"], [93, "mov rdi, rax"], [94, "call sub_438931"], [95, "xor eax, 1"], [96, "test al, al"], [97, "jz short loc_470E93"], [98, "mov eax, 0"], [99, "jmp short locret_470ECB"], [100, "mov rcx, [rbp+var_40]"], [101, "mov rdx, [rbp+var_38]"], [102, "mov esi, [rbp+var_10]"], [103, "mov rax, [rbp+var_28]"], [104, "mov rdi, rax"], [105, "call sub_468188"], [106, "mov edx, eax"], [107, "lea rax, [rbp+var_14]"], [108, "mov esi, edx"], [109, "mov rdi, rax"], [110, "call sub_438931"], [111, "xor eax, 1"], [112, "test al, al"], [113, "jz short loc_470EC8"], [114, "mov eax, 0"], [115, "jmp short locret_470ECB"], [116, "mov eax, [rbp+var_14]"], [117, "leave"], [118, "retn"]], "data_dep": [[8, 4], [11, 8], [13, 12], [14, 4], [17, 14], [19, 18], [20, 4], [23, 20], [25, 24], [26, 4], [29, 26], [31, 30], [32, 25], [32, 31], [33, 4], [36, 33], [38, 37], [39, 32], [39, 38], [40, 4], [43, 40], [45, 44], [46, 13], [47, 46], [48, 13], [49, 48], [49, 19], [50, 49], [52, 6], [53, 5], [54, 13], [55, 3], [56, 55], [58, 57], [59, 57], [59, 51], [59, 7], [60, 58], [61, 59], [63, 62], [64, 63], [65, 64], [68, 6], [69, 5], [70, 19], [71, 3], [72, 71], [74, 73], [75, 51], [75, 7], [75, 73], [76, 74], [77, 75], [79, 78], [80, 79], [81, 80], [84, 6], [85, 5], [86, 39], [87, 3], [88, 87], [90, 89], [91, 7], [91, 89], [91, 51], [92, 90], [93, 91], [95, 94], [96, 95], [97, 96], [100, 6], [101, 5], [102, 45], [103, 3], [104, 103], [106, 105], [107, 51], [107, 105], [107, 7], [108, 106], [109, 107], [111, 110], [112, 111], [113, 112], [116, 51], [116, 7], [118, 98], [118, 82], [118, 66], [118, 114], [118, 116]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d6f1c4fccbb8fc2066c0c7749389636df7b33c67e152dc8852a86b3a79bd4c3d_d6f1c4fccbb8fc2066c0c7749389636df7b33c67e152dc8852a86b3a79bd4c3d.jsonl.gz", "strip_func_name": "sub_470D2E", "query": "\n\n\n__int64 __fastcall sub_470D2E(__int64 a1, unsigned int a2)\n{\nunsigned int v2; // eax\n__int64 result; // rax\nunsigned int v4; // eax\nunsigned int v5; // eax\nunsigned int v6; // eax\nunsigned int v7; // [rsp+2Ch] [rbp-14h] BYREF\nunsigned int v8; // [rsp+30h] [rbp-10h]\nunsigned int v9; // [rsp+34h] [rbp-Ch]\nunsigned int v10; // [rsp+38h] [rbp-8h]\nunsigned int v11; // [rsp+3Ch] [rbp-4h]\n\nv7 = 3;\nv11 = sub_452336(a2, 16, 4);\nv10 = sub_452336(a2, 12, 4);\nv9 = sub_452336(a2, 0, 12);\nv9 |= (unsigned int)sub_452336(a2, 16, 4) << 13;\nv9 |= (unsigned int)sub_452336(a2, 23, 1) << 12;\nv8 = sub_452336(a2, 28, 4);\nif ( v11 == 15 || v11 == v10 )\nv7 = 1;\nv2 = sub_4696F7(a1, v11);\nif ( (unsigned __int8)sub_438931(&v7, v2) != 1 )\nreturn 0LL;\nv4 = sub_4696F7(a1, v10);\nif ( (unsigned __int8)sub_438931(&v7, v4) != 1 )\nreturn 0LL;\nv5 = sub_46C185(a1, v9);\nif ( (unsigned __int8)sub_438931(&v7, v5) != 1 )\nreturn 0LL;\nv6 = sub_468188(a1, v8);\nif ( (unsigned __int8)sub_438931(&v7, v6) != 1 )\nresult = 0LL;\nelse\nresult = v7;\nreturn result;\n}\n\n\n\nQ:[a1,a2,v7,v8,v9,v10,v11,sub_470D2E,sub_452336,sub_4696F7,sub_438931,sub_46C185,sub_468188,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'Inst', 'a2': 'Insn', 'v7': 'S', 'v8': 'pred', 'v9': 'imm', 'v10': 'Rt', 'v11': 'Rn', 'sub_470D2E': 'DecodeSTRPreImm', 'sub_452336': 'fieldFromInstruction_4', 'sub_4696F7': 'DecodeGPRRegisterClass', 'sub_438931': 'Check_0', 'sub_46C185': 'DecodeAddrModeImm12Operand', 'sub_468188': 'DecodePredicateOperand'}"}
pg_strcasecmp
40874554c46d15a39ce91c8819ccc126854a63e765dafd614f39346dbaf3dc95
greenplum-db
gpdb
NA
int pg_strcasecmp(const char *s1, const char *s2) { for (;;) { unsigned char ch1 = (unsigned char) *s1++; unsigned char ch2 = (unsigned char) *s2++; if (ch1 != ch2) { if (ch1 >= 'A' && ch1 <= 'Z') ch1 += 'a' - 'A'; else if (IS_HIGHBIT_SET(ch1) && isupper(ch1)) ch1 = tolower(ch1); if (ch2 >= 'A' && ch2 <= 'Z') ch2 += 'a' - 'A'; else if (IS_HIGHBIT_SET(ch2) && isupper(ch2)) ch2 = tolower(ch2); if (ch1 != ch2) return (int) ch1 - (int) ch2; } if (ch1 == 0) break; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412E04", "function_addr": 4271620, "binary_name": "40874554c46d15a39ce91c8819ccc126854a63e765dafd614f39346dbaf3dc95.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, "lea rdx, [rax+1]"], [7, "mov [rbp+var_18], rdx"], [8, "movzx eax, byte ptr [rax]"], [9, "mov [rbp+var_1], al"], [10, "mov rax, [rbp+var_20]"], [11, "lea rdx, [rax+1]"], [12, "mov [rbp+var_20], rdx"], [13, "movzx eax, byte ptr [rax]"], [14, "mov [rbp+var_2], al"], [15, "movzx eax, [rbp+var_1]"], [16, "cmp al, [rbp+var_2]"], [17, "jz loc_412EEC"], [18, "cmp [rbp+var_1], 40h "], [19, "jbe short loc_412E57"], [20, "cmp [rbp+var_1], 5Ah "], [21, "ja short loc_412E57"], [22, "add [rbp+var_1], 20h "], [23, "jmp short loc_412E8E"], [24, "movzx eax, [rbp+var_1]"], [25, "test al, al"], [26, "jns short loc_412E8E"], [27, "call ___ctype_b_loc"], [28, "mov rdx, [rax]"], [29, "movzx eax, [rbp+var_1]"], [30, "add rax, rax"], [31, "add rax, rdx"], [32, "movzx eax, word ptr [rax]"], [33, "movzx eax, ax"], [34, "and eax, 100h"], [35, "test eax, eax"], [36, "jz short loc_412E8E"], [37, "movzx eax, [rbp+var_1]"], [38, "mov edi, eax"], [39, "call _tolower"], [40, "mov [rbp+var_1], al"], [41, "cmp [rbp+var_2], 40h "], [42, "jbe short loc_412EA0"], [43, "cmp [rbp+var_2], 5Ah "], [44, "ja short loc_412EA0"], [45, "add [rbp+var_2], 20h "], [46, "jmp short loc_412ED7"], [47, "movzx eax, [rbp+var_2]"], [48, "test al, al"], [49, "jns short loc_412ED7"], [50, "call ___ctype_b_loc"], [51, "mov rdx, [rax]"], [52, "movzx eax, [rbp+var_2]"], [53, "add rax, rax"], [54, "add rax, rdx"], [55, "movzx eax, word ptr [rax]"], [56, "movzx eax, ax"], [57, "and eax, 100h"], [58, "test eax, eax"], [59, "jz short loc_412ED7"], [60, "movzx eax, [rbp+var_2]"], [61, "mov edi, eax"], [62, "call _tolower"], [63, "mov [rbp+var_2], al"], [64, "movzx eax, [rbp+var_1]"], [65, "cmp al, [rbp+var_2]"], [66, "jz short loc_412EEC"], [67, "movzx eax, [rbp+var_1]"], [68, "movzx edx, [rbp+var_2]"], [69, "sub eax, edx"], [70, "jmp short locret_412EFD"], [71, "cmp [rbp+var_1], 0"], [72, "jz short loc_412EF7"], [73, "jmp loc_412E14"], [74, "nop"], [75, "mov eax, 0"], [76, "leave"], [77, "retn"]], "data_dep": [[5, 3], [5, 7], [6, 11], [6, 51], [6, 28], [6, 5], [7, 6], [8, 5], [9, 8], [10, 12], [10, 4], [11, 6], [11, 10], [12, 11], [13, 10], [14, 13], [15, 9], [16, 15], [16, 14], [17, 16], [18, 9], [19, 18], [20, 9], [21, 20], [22, 9], [24, 9], [25, 24], [26, 25], [28, 27], [29, 9], [30, 29], [31, 28], [31, 30], [32, 31], [33, 32], [34, 33], [35, 34], [36, 35], [37, 9], [38, 37], [40, 39], [41, 14], [42, 41], [43, 14], [44, 43], [45, 14], [47, 14], [48, 47], [49, 48], [51, 50], [52, 14], [53, 52], [54, 51], [54, 53], [55, 54], [56, 55], [57, 56], [58, 57], [59, 58], [60, 14], [61, 60], [63, 62], [64, 9], [64, 22], [64, 40], [65, 45], [65, 63], [65, 14], [65, 64], [66, 65], [67, 22], [67, 40], [67, 9], [68, 45], [68, 63], [68, 14], [69, 67], [69, 68], [71, 22], [71, 40], [71, 9], [72, 71], [77, 69], [77, 75]]}
{"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/40874554c46d15a39ce91c8819ccc126854a63e765dafd614f39346dbaf3dc95_40874554c46d15a39ce91c8819ccc126854a63e765dafd614f39346dbaf3dc95.jsonl.gz", "strip_func_name": "sub_412E04", "query": "\n\n\n__int64 __fastcall sub_412E04(unsigned __int8 *a1, unsigned __int8 *a2)\n{\nunsigned __int8 *v2; // rax\nunsigned __int8 *v3; // rax\nunsigned __int8 v7; // [rsp+1Eh] [rbp-2h]\nunsigned __int8 v8; // [rsp+1Fh] [rbp-1h]\n\ndo\n{\nv2 = a1++;\nv8 = *v2;\nv3 = a2++;\nv7 = *v3;\nif ( v8 != *v3 )\n{\nif ( v8 <= 0x40u || v8 > 0x5Au )\n{\nif ( (v8 & 0x80u) != 0 && ((*__ctype_b_loc())[v8] & 0x100) != 0 )\nv8 = tolower(v8);\n}\nelse\n{\nv8 += 32;\n}\nif ( v7 <= 0x40u || v7 > 0x5Au )\n{\nif ( (v7 & 0x80u) != 0 && ((*__ctype_b_loc())[v7] & 0x100) != 0 )\nv7 = tolower(v7);\n}\nelse\n{\nv7 += 32;\n}\nif ( v8 != v7 )\nreturn v8 - (unsigned int)v7;\n}\n}\nwhile ( v8 );\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,v7,v8,sub_412E04,]\nAssistant: ", "hints": "[]", "response": "{'a1': 's1', 'a2': 's2', 'v7': 'ch2', 'v8': 'ch1', 'sub_412E04': 'pg_strcasecmp'}"}
LZ4F_freeDecompressionContext
ecd5ea0a04b776f1878205cebed33a0e2b619cb076050cb0b4237b12dc536049
schwabe
ics-openvpn
NA
LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx* dctx) { LZ4F_errorCode_t result = LZ4F_OK_NoError; if (dctx != NULL) { /* can accept NULL input, like free() */ result = (LZ4F_errorCode_t)dctx->dStage; LZ4F_free(dctx->tmpIn, dctx->cmem); LZ4F_free(dctx->tmpOutBuffer, dctx->cmem); LZ4F_free(dctx, dctx->cmem); } return result; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402F4D", "function_addr": 4206413, "binary_name": "ecd5ea0a04b776f1878205cebed33a0e2b619cb076050cb0b4237b12dc536049.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_8], 0"], [5, "cmp [rbp+ptr], 0"], [6, "jz short loc_402FA1"], [7, "mov rax, [rbp+ptr]"], [8, "mov eax, [rax+24h]"], [9, "mov eax, eax"], [10, "mov [rbp+var_8], rax"], [11, "mov rax, [rbp+ptr]"], [12, "mov rax, [rax+40h]"], [13, "mov rdi, rax"], [14, "call _free"], [15, "mov rax, [rbp+ptr]"], [16, "mov rax, [rax+58h]"], [17, "mov rdi, rax"], [18, "call _free"], [19, "mov rax, [rbp+ptr]"], [20, "mov rdi, rax"], [21, "call _free"], [22, "mov rax, [rbp+var_8]"], [23, "leave"], [24, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 3], [8, 7], [9, 8], [10, 9], [11, 3], [12, 11], [13, 12], [15, 3], [16, 15], [17, 16], [19, 3], [20, 19], [22, 4], [22, 10], [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/ecd5ea0a04b776f1878205cebed33a0e2b619cb076050cb0b4237b12dc536049_ecd5ea0a04b776f1878205cebed33a0e2b619cb076050cb0b4237b12dc536049.jsonl.gz", "strip_func_name": "sub_402F4D", "query": "\n\n\n__int64 __fastcall sub_402F4D(__int64 a1)\n{\n__int64 v2; // [rsp+18h] [rbp-8h]\n\nv2 = 0LL;\nif ( a1 )\n{\nv2 = *(unsigned int *)(a1 + 36);\nfree(*(void **)(a1 + 64));\nfree(*(void **)(a1 + 88));\nfree((void *)a1);\n}\nreturn v2;\n}\n\n\n\nQ:[a1,v2,sub_402F4D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dctx', 'v2': 'result', 'sub_402F4D': 'LZ4F_freeDecompressionContext'}"}
on_rx_from_peer
d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c
AonCyberLabs
D-Modem
NA
static void on_rx_from_peer(pj_ioqueue_key_t *key, pj_ioqueue_op_key_t *op_key, pj_ssize_t bytes_read) { pj_turn_relay_res *rel; pj_status_t status; rel = (pj_turn_relay_res*) pj_ioqueue_get_user_data(key); /* Lock the allocation */ pj_lock_acquire(rel->allocation->lock); do { if (bytes_read > 0) { handle_peer_pkt(rel->allocation, rel, rel->tp.rx_pkt, bytes_read, &rel->tp.src_addr); } /* Read next packet */ bytes_read = sizeof(rel->tp.rx_pkt); rel->tp.src_addr_len = sizeof(rel->tp.src_addr); status = pj_ioqueue_recvfrom(key, op_key, rel->tp.rx_pkt, &bytes_read, 0, &rel->tp.src_addr, &rel->tp.src_addr_len); if (status != PJ_EPENDING && status != PJ_SUCCESS) bytes_read = -status; } while (status != PJ_EPENDING && status != PJ_ECANCELLED); /* Release allocation lock */ pj_lock_release(rel->allocation->lock); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4059FE", "function_addr": 4217342, "binary_name": "d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, [rbp+var_18]"], [7, "mov rdi, rax"], [8, "call sub_416314"], [9, "mov [rbp+var_8], rax"], [10, "mov rax, [rbp+var_8]"], [11, "mov rax, [rax+20h]"], [12, "mov rax, [rax+80h]"], [13, "mov rdi, rax"], [14, "call sub_41EB35"], [15, "mov rax, [rbp+var_28]"], [16, "test rax, rax"], [17, "jle short loc_405A79"], [18, "mov rax, [rbp+var_8]"], [19, "lea rcx, [rax+0D58h]"], [20, "mov rax, [rbp+var_28]"], [21, "mov rdi, rax"], [22, "mov rax, [rbp+var_8]"], [23, "lea rdx, [rax+1A0h]"], [24, "mov rax, [rbp+var_8]"], [25, "mov rax, [rax+20h]"], [26, "mov rsi, [rbp+var_8]"], [27, "mov r8, rcx"], [28, "mov rcx, rdi"], [29, "mov rdi, rax"], [30, "call sub_405718"], [31, "mov [rbp+var_28], 0BB8h"], [32, "mov rax, [rbp+var_8]"], [33, "mov dword ptr [rax+0D74h], 1Ch"], [34, "mov rax, [rbp+var_8]"], [35, "lea rcx, [rax+0D74h]"], [36, "mov rax, [rbp+var_8]"], [37, "lea r8, [rax+0D58h]"], [38, "mov rax, [rbp+var_8]"], [39, "lea rdi, [rax+1A0h]"], [40, "lea rdx, [rbp+var_28]"], [41, "mov rsi, [rbp+var_20]"], [42, "mov rax, [rbp+var_18]"], [43, "sub rsp, 8"], [44, "push rcx"], [45, "mov r9, r8"], [46, "mov r8d, 0"], [47, "mov rcx, rdx"], [48, "mov rdx, rdi"], [49, "mov rdi, rax"], [50, "call sub_416F95"], [51, "add rsp, 10h"], [52, "mov [rbp+var_C], eax"], [53, "cmp [rbp+var_C], 11172h"], [54, "jz short loc_405AF9"], [55, "cmp [rbp+var_C], 0"], [56, "jz short loc_405AF9"], [57, "mov eax, [rbp+var_C]"], [58, "neg eax"], [59, "cdqe"], [60, "mov [rbp+var_28], rax"], [61, "cmp [rbp+var_C], 11172h"], [62, "jz short loc_405B0F"], [63, "cmp [rbp+var_C], 1117Eh"], [64, "jnz loc_405A39"], [65, "mov rax, [rbp+var_8]"], [66, "mov rax, [rax+20h]"], [67, "mov rax, [rax+80h]"], [68, "mov rdi, rax"], [69, "call sub_41EBD5"], [70, "nop"], [71, "leave"], [72, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [15, 60], [15, 5], [15, 31], [16, 15], [17, 16], [18, 9], [19, 18], [19, 47], [19, 33], [20, 31], [20, 60], [20, 5], [21, 20], [22, 9], [23, 22], [23, 33], [23, 48], [24, 9], [25, 24], [25, 33], [26, 9], [27, 19], [28, 21], [29, 25], [32, 9], [33, 32], [34, 9], [35, 33], [35, 28], [35, 34], [35, 47], [36, 9], [37, 33], [37, 46], [37, 27], [37, 36], [38, 9], [39, 33], [39, 13], [39, 29], [39, 38], [39, 49], [40, 31], [40, 23], [40, 48], [41, 4], [42, 3], [43, 2], [43, 51], [44, 35], [45, 37], [47, 40], [48, 39], [49, 42], [51, 43], [52, 50], [53, 52], [54, 53], [55, 52], [56, 55], [57, 52], [58, 57], [60, 58], [61, 52], [62, 61], [63, 52], [64, 63], [65, 9], [66, 33], [66, 65], [67, 33], [67, 66], [68, 67], [72, 69]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c_d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c.jsonl.gz", "strip_func_name": "sub_4059FE", "query": "\n\n\n__int64 __fastcall sub_4059FE(__int64 a1, __int64 a2, signed __int64 a3)\n{\nsigned __int64 v4; // [rsp+8h] [rbp-28h] BYREF\n__int64 v5; // [rsp+10h] [rbp-20h]\n__int64 v6; // [rsp+18h] [rbp-18h]\nint v7; // [rsp+24h] [rbp-Ch]\n__int64 v8; // [rsp+28h] [rbp-8h]\n\nv6 = a1;\nv5 = a2;\nv4 = a3;\nv8 = sub_416314(a1);\nsub_41EB35(*(_QWORD *)(*(_QWORD *)(v8 + 32) + 128LL));\ndo\n{\nif ( v4 > 0 )\nsub_405718(*(char **)(v8 + 32), v8, (const void *)(v8 + 416), v4, v8 + 3416);\nv4 = 3000LL;\n*(_DWORD *)(v8 + 3444) = 28;\nv7 = sub_416F95(v6, v5, (int)v8 + 416, (unsigned int)&v4, 0, (int)v8 + 3416, v8 + 3444);\nif ( v7 != 70002 && v7 )\nv4 = -v7;\n}\nwhile ( v7 != 70002 && v7 != 70014 );\nreturn sub_41EBD5(*(_QWORD *)(*(_QWORD *)(v8 + 32) + 128LL));\n}\n\n\n\nQ:[a3,a1,a2,v4,v5,v6,v7,v8,sub_4059FE,sub_416314,sub_41EB35,sub_405718,sub_416F95,sub_41EBD5,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'bytes_read', 'a1': 'key', 'a2': 'op_key', 'v4': 'bytes_reada', 'v5': 'op_keya', 'v6': 'keya', 'v7': 'status', 'v8': 'rel', 'sub_4059FE': 'on_rx_from_peer', 'sub_416314': 'pj_ioqueue_get_user_data', 'sub_41EB35': 'pj_lock_acquire', 'sub_405718': 'handle_peer_pkt', 'sub_416F95': 'pj_ioqueue_recvfrom', 'sub_41EBD5': 'pj_lock_release'}"}
rtnl_hash_initialize
1c264dfb9894591a66e05f9ae328f637a7f80f4b0e59d451e9c4fdd94a3497b3
multipath-tcp
iproute-mptcp
NA
static void rtnl_hash_initialize(const char *file, struct rtnl_hash_entry **hash, int size) { struct rtnl_hash_entry *entry; FILE *fp; int id; char namebuf[NAME_MAX_LEN] = {0}; int ret; fp = fopen(file, "r"); if (!fp) return; while ((ret = fread_id_name(fp, &id, &namebuf[0]))) { if (ret == -1) { fprintf(stderr, "Database %s is corrupted at %s\n", file, namebuf); fclose(fp); return; } if (id < 0) continue; entry = malloc(sizeof(*entry)); entry->id = id; entry->name = strdup(namebuf); entry->next = hash[id & (size - 1)]; hash[id & (size - 1)] = entry; } fclose(fp); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4172CB", "function_addr": 4289227, "binary_name": "1c264dfb9894591a66e05f9ae328f637a7f80f4b0e59d451e9c4fdd94a3497b3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 240h"], [3, "mov [rbp+filename], rdi"], [4, "mov [rbp+var_230], rsi"], [5, "mov [rbp+var_234], edx"], [6, "mov qword ptr [rbp+s], 0"], [7, "mov [rbp+var_218], 0"], [8, "lea rdx, [rbp+var_210]"], [9, "mov eax, 0"], [10, "mov ecx, 3Eh "], [11, "mov rdi, rdx"], [12, "rep stosq"], [13, "mov rax, [rbp+filename]"], [14, "lea rsi, aR_0"], [15, "mov rdi, rax"], [16, "call _fopen64"], [17, "mov [rbp+stream], rax"], [18, "cmp [rbp+stream], 0"], [19, "jz loc_41744E"], [20, "jmp loc_417419"], [21, "cmp [rbp+var_C], 0FFFFFFFFh"], [22, "jnz short loc_417384"], [23, "mov rax, cs:stderr_ptr"], [24, "mov rax, [rax]"], [25, "lea rcx, [rbp+s]"], [26, "mov rdx, [rbp+filename]"], [27, "lea rsi, aDatabaseSIsCor"], [28, "mov rdi, rax"], [29, "mov eax, 0"], [30, "call _fprintf"], [31, "mov rax, [rbp+stream]"], [32, "mov rdi, rax"], [33, "call _fclose"], [34, "jmp locret_41744F"], [35, "mov eax, [rbp+var_1C]"], [36, "test eax, eax"], [37, "jns short loc_417390"], [38, "jmp loc_417419"], [39, "mov edi, 18h"], [40, "call _malloc"], [41, "mov [rbp+var_18], rax"], [42, "mov eax, [rbp+var_1C]"], [43, "mov edx, eax"], [44, "mov rax, [rbp+var_18]"], [45, "mov [rax+10h], edx"], [46, "lea rax, [rbp+s]"], [47, "mov rdi, rax"], [48, "call _strdup"], [49, "mov rdx, rax"], [50, "mov rax, [rbp+var_18]"], [51, "mov [rax+8], rdx"], [52, "mov eax, [rbp+var_234]"], [53, "lea edx, [rax-1]"], [54, "mov eax, [rbp+var_1C]"], [55, "and eax, edx"], [56, "cdqe"], [57, "lea rdx, ds:0[rax*8]"], [58, "mov rax, [rbp+var_230]"], [59, "add rax, rdx"], [60, "mov rdx, [rax]"], [61, "mov rax, [rbp+var_18]"], [62, "mov [rax], rdx"], [63, "mov eax, [rbp+var_234]"], [64, "lea edx, [rax-1]"], [65, "mov eax, [rbp+var_1C]"], [66, "and eax, edx"], [67, "cdqe"], [68, "lea rdx, ds:0[rax*8]"], [69, "mov rax, [rbp+var_230]"], [70, "add rdx, rax"], [71, "mov rax, [rbp+var_18]"], [72, "mov [rdx], rax"], [73, "lea rdx, [rbp+s]"], [74, "lea rcx, [rbp+var_1C]"], [75, "mov rax, [rbp+stream]"], [76, "mov rsi, rcx"], [77, "mov rdi, rax"], [78, "call sub_417151"], [79, "mov [rbp+var_C], eax"], [80, "cmp [rbp+var_C], 0"], [81, "jnz loc_417341"], [82, "mov rax, [rbp+stream]"], [83, "mov rdi, rax"], [84, "call _fclose"], [85, "jmp short locret_41744F"], [86, "nop"], [87, "leave"], [88, "retn"]], "data_dep": [[11, 8], [13, 3], [15, 13], [17, 16], [18, 17], [19, 18], [21, 79], [22, 21], [24, 51], [24, 72], [24, 23], [24, 62], [24, 45], [25, 6], [25, 74], [26, 3], [27, 76], [28, 24], [31, 17], [32, 31], [36, 35], [37, 36], [41, 40], [43, 42], [44, 41], [45, 43], [45, 44], [46, 6], [46, 44], [47, 46], [49, 48], [50, 41], [51, 50], [51, 49], [52, 5], [53, 52], [53, 49], [53, 51], [55, 54], [55, 53], [57, 53], [58, 4], [59, 57], [59, 58], [60, 62], [60, 59], [60, 51], [61, 41], [62, 60], [62, 61], [63, 5], [64, 62], [64, 63], [64, 60], [66, 64], [66, 65], [68, 64], [69, 4], [70, 68], [70, 69], [71, 41], [72, 70], [72, 71], [73, 73], [73, 6], [73, 70], [73, 8], [74, 10], [74, 74], [75, 17], [76, 74], [77, 75], [79, 78], [80, 79], [81, 80], [82, 17], [83, 82], [88, 33], [88, 16], [88, 84]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1c264dfb9894591a66e05f9ae328f637a7f80f4b0e59d451e9c4fdd94a3497b3_1c264dfb9894591a66e05f9ae328f637a7f80f4b0e59d451e9c4fdd94a3497b3.jsonl.gz", "strip_func_name": "sub_4172CB", "query": "\n\n\nint __fastcall sub_4172CB(const char *a1, __int64 a2, int a3)\n{\nFILE *v3; // rax\nchar *v4; // rax\nchar s[8]; // [rsp+20h] [rbp-220h] BYREF\n__int64 v8; // [rsp+28h] [rbp-218h]\nchar v9[496]; // [rsp+30h] [rbp-210h] BYREF\nint v10; // [rsp+224h] [rbp-1Ch] BYREF\n_DWORD *v11; // [rsp+228h] [rbp-18h]\nint v12; // [rsp+234h] [rbp-Ch]\nFILE *stream; // [rsp+238h] [rbp-8h]\n\n*(_QWORD *)s = 0LL;\nv8 = 0LL;\nmemset(v9, 0, sizeof(v9));\nv3 = fopen64(a1, \"r\");\nstream = v3;\nif ( v3 )\n{\nwhile ( 1 )\n{\nv12 = sub_417151(stream, (__int64)&v10, s);\nif ( !v12 )\nbreak;\nif ( v12 == -1 )\n{\nfprintf(stderr, \"Database %s is corrupted at %s\\n\", a1, s);\nLODWORD(v3) = fclose(stream);\nreturn (int)v3;\n}\nif ( v10 >= 0 )\n{\nv11 = malloc(0x18uLL);\nv11[4] = v10;\nv4 = strdup(s);\n*((_QWORD *)v11 + 1) = v4;\n*(_QWORD *)v11 = *(_QWORD *)(8LL * ((a3 - 1) & v10) + a2);\n*(_QWORD *)(a2 + 8LL * ((a3 - 1) & v10)) = v11;\n}\n}\nLODWORD(v3) = fclose(stream);\n}\nreturn (int)v3;\n}\n\n\n\nQ:[a3,a1,a2,s,v10,v11,stream,sub_4172CB,sub_417151,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'size', 'a1': 'file', 'a2': 'hash', 's': 'namebuf', 'v10': 'id', 'v11': 'entry', 'stream': 'fp', 'sub_4172CB': 'rtnl_hash_initialize', 'sub_417151': 'fread_id_name'}"}
is_sshd_lookup_exit
5378cc4a870cbbe04a2e0fa50f6ae7f4584c4209fcca85eed72a642595eeb234
sonic-net
sonic-buildimage
NA
static int is_sshd_lookup_exit(int status, int fd, regex_t * re) { if (fd != -1) close(fd); if (re) regfree(re); return status; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403835", "function_addr": 4208693, "binary_name": "5378cc4a870cbbe04a2e0fa50f6ae7f4584c4209fcca85eed72a642595eeb234.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+fd], esi"], [5, "mov [rbp+preg], rdx"], [6, "cmp [rbp+fd], 0FFFFFFFFh"], [7, "jz short loc_403857"], [8, "mov eax, [rbp+fd]"], [9, "mov edi, eax"], [10, "call _close"], [11, "cmp [rbp+preg], 0"], [12, "jz short loc_40386A"], [13, "mov rax, [rbp+preg]"], [14, "mov rdi, rax"], [15, "call _regfree"], [16, "mov eax, [rbp+var_4]"], [17, "leave"], [18, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 4], [9, 8], [11, 5], [12, 11], [13, 5], [14, 13], [16, 3], [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/5378cc4a870cbbe04a2e0fa50f6ae7f4584c4209fcca85eed72a642595eeb234_5378cc4a870cbbe04a2e0fa50f6ae7f4584c4209fcca85eed72a642595eeb234.jsonl.gz", "strip_func_name": "sub_403835", "query": "\n\n\n__int64 __fastcall sub_403835(unsigned int a1, int a2, regex_t *a3)\n{\nif ( a2 != -1 )\nclose(a2);\nif ( a3 )\nregfree(a3);\nreturn a1;\n}\n\n\n\nQ:[a3,a1,a2,sub_403835,]\nAssistant: ", "hints": "[]", "response": "{'a3': 're', 'a1': 'status', 'a2': 'fd', 'sub_403835': 'is_sshd_lookup_exit'}"}
sl_btmesh_fw_update_server_init
d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323
openthread
ot-efr32
NA
sl_status_t sl_btmesh_fw_update_server_init(uint16_t elem_index, uint8_t num_installed_fw, uint8_t max_metadata_len) { struct sl_btmesh_packet *cmd = (struct sl_btmesh_packet *)sl_btmesh_cmd_msg; struct sl_btmesh_packet *rsp = (struct sl_btmesh_packet *)sl_btmesh_rsp_msg; cmd->data.cmd_fw_update_server_init.elem_index=elem_index; cmd->data.cmd_fw_update_server_init.num_installed_fw=num_installed_fw; cmd->data.cmd_fw_update_server_init.max_metadata_len=max_metadata_len; cmd->header=sl_btmesh_cmd_fw_update_server_init_id+(((4)&0xff)<<8)+(((4)&0x700)>>8); sl_btmesh_host_handle_command(); return rsp->data.rsp_fw_update_server_init.result; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_415F4D", "function_addr": 4284237, "binary_name": "d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov eax, edi"], [4, "mov ecx, esi"], [5, "mov [rbp+var_14], ax"], [6, "mov eax, ecx"], [7, "mov [rbp+var_18], al"], [8, "mov eax, edx"], [9, "mov [rbp+var_1C], al"], [10, "mov rax, cs:off_43E280"], [11, "mov [rbp+var_8], rax"], [12, "mov rax, cs:off_43E288"], [13, "mov [rbp+var_10], rax"], [14, "mov rax, [rbp+var_8]"], [15, "movzx edx, [rbp+var_14]"], [16, "mov [rax+4], dx"], [17, "mov rax, [rbp+var_8]"], [18, "movzx edx, [rbp+var_18]"], [19, "mov [rax+6], dl"], [20, "mov rax, [rbp+var_8]"], [21, "movzx edx, [rbp+var_1C]"], [22, "mov [rax+7], dl"], [23, "mov rax, [rbp+var_8]"], [24, "mov dword ptr [rax], 570428h"], [25, "mov eax, 0"], [26, "call sub_40A2AC"], [27, "mov rax, [rbp+var_10]"], [28, "movzx eax, word ptr [rax+4]"], [29, "movzx eax, ax"], [30, "leave"], [31, "retn"]], "data_dep": [[5, 3], [6, 4], [7, 6], [9, 8], [11, 10], [13, 12], [14, 11], [15, 5], [16, 15], [16, 14], [17, 11], [18, 7], [19, 18], [19, 17], [20, 11], [21, 9], [22, 20], [22, 21], [23, 11], [24, 23], [27, 13], [28, 24], [28, 27], [28, 16], [29, 28], [31, 29]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323_d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.jsonl.gz", "strip_func_name": "sub_415F4D", "query": "\n\n\n__int64 __fastcall sub_415F4D(__int64 a1, __int64 a2, unsigned __int8 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nunsigned __int16 *v7; // [rsp+10h] [rbp-10h]\n_BYTE *v8; // [rsp+18h] [rbp-8h]\n\nv8 = off_43E280;\nv7 = (unsigned __int16 *)off_43E288;\n*((_WORD *)off_43E280 + 2) = a1;\nv8[6] = a2;\nv8[7] = a3;\n*(_DWORD *)v8 = 5702696;\nsub_40A2AC(a1, a2, a3, (unsigned int)a2, a5, a6);\nreturn v7[2];\n}\n\n\n\nQ:[a3,a1,a2,v7,v8,sub_415F4D,sub_40A2AC,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'max_metadata_len', 'a1': 'elem_index', 'a2': 'num_installed_fw', 'v7': 'rsp_0', 'v8': 'cmd', 'sub_415F4D': 'sl_btmesh_fw_update_server_init', 'sub_40A2AC': 'sl_btmesh_host_handle_command'}"}
chart_set_hole_size
904bc715a64912f3c45e58cf4d0dc596e8f09d4e25313a1b7583c9384b19fb40
viest
php-ext-xlswriter
NA
void chart_set_hole_size(lxw_chart *self, uint8_t size) { if (size >= 10 && size <= 90) self->hole_size = size; else LXW_WARN_FORMAT1("chart_set_hole_size(): Hole size '%d' outside " "Excel range: 10 <= size <= 90", size); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_432119", "function_addr": 4399385, "binary_name": "904bc715a64912f3c45e58cf4d0dc596e8f09d4e25313a1b7583c9384b19fb40.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, "cmp [rbp+var_C], 9"], [7, "jbe short loc_432147"], [8, "cmp [rbp+var_C], 5Ah "], [9, "ja short loc_432147"], [10, "movzx edx, [rbp+var_C]"], [11, "mov rax, [rbp+var_8]"], [12, "mov [rax+9Eh], dx"], [13, "jmp short loc_432165"], [14, "movzx edx, [rbp+var_C]"], [15, "mov rax, cs:stderr"], [16, "mov esi, offset aWarningChartSe_17"], [17, "mov rdi, rax"], [18, "mov eax, 0"], [19, "call _fprintf"], [20, "nop"], [21, "nop"], [22, "leave"], [23, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 5], [9, 8], [10, 5], [11, 3], [12, 10], [12, 11], [14, 5], [17, 15], [23, 11], [23, 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/904bc715a64912f3c45e58cf4d0dc596e8f09d4e25313a1b7583c9384b19fb40_904bc715a64912f3c45e58cf4d0dc596e8f09d4e25313a1b7583c9384b19fb40.jsonl.gz", "strip_func_name": "sub_432119", "query": "\n\n\nint __fastcall sub_432119(__int64 a1, unsigned __int8 a2)\n{\nint result; // eax\n\nif ( a2 <= 9u || a2 > 0x5Au )\nreturn fprintf(\nstderr,\n\"[WARNING]: chart_set_hole_size(): Hole size '%d' outside Excel range: 10 <= size <= 90\\n\",\na2);\nresult = a1;\n*(_WORD *)(a1 + 158) = a2;\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_432119,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'self', 'a2': 'size', 'sub_432119': 'chart_set_hole_size'}"}
i8008_singlestep
f6d19e397df5fc897a4738f9fb6aa0f2069771552cafdab9765c3b2b5810222b
EtchedPixels
EmulatorKit
NA
void i8008_singlestep(struct i8008 *cpu, unsigned int step) { cpu->step = step; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403342", "function_addr": 4207426, "binary_name": "f6d19e397df5fc897a4738f9fb6aa0f2069771552cafdab9765c3b2b5810222b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_C], esi"], [4, "cmp [rbp+var_C], 0"], [5, "setnz dl"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rax+2Eh], dl"], [8, "nop"], [9, "pop rbp"], [10, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 2], [7, 6], [7, 5], [9, 0], [10, 6]]}
{"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/f6d19e397df5fc897a4738f9fb6aa0f2069771552cafdab9765c3b2b5810222b_f6d19e397df5fc897a4738f9fb6aa0f2069771552cafdab9765c3b2b5810222b.jsonl.gz", "strip_func_name": "sub_403342", "query": "\n\n\n__int64 __fastcall sub_403342(__int64 a1, int a2)\n{\n__int64 result; // rax\n\nresult = a1;\n*(_BYTE *)(a1 + 46) = a2 != 0;\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_403342,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'cpu', 'a2': 'step', 'sub_403342': 'i8008_singlestep'}"}
root_message_function
93ff8321496f266e0636349715512c5b08cf85171f3c7301da663912d1131b72
miniwinwm
miniwinwm
NA
static void root_message_function(const mw_message_t *message) { bool consumed = false; uint32_t x; uint32_t y; MW_ASSERT(message != (void*)0, "Null pointer argument"); /* check if the messages sent to the root window is to be consumed by the system */ switch (message->message_id) { case MW_TOUCH_DOWN_MESSAGE: x = message->message_data >> 16U; y = message->message_data & 0x0000ffffU; consumed = check_for_restore_touch((int16_t)x, (int16_t)y); break; default: /* keep MISRA happy */ break; } /* if the system did not consume the message pass it on to the user root window message handler */ if (!consumed) { mw_user_root_message_function(message); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405FD7", "function_addr": 4218839, "binary_name": "93ff8321496f266e0636349715512c5b08cf85171f3c7301da663912d1131b72.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_1], 0"], [5, "cmp [rbp+var_18], 0"], [6, "setnz al"], [7, "movzx eax, al"], [8, "mov ecx, offset aNullPointerArg_4"], [9, "mov edx, 2D1h"], [10, "mov esi, offset aRootMessageFun"], [11, "mov edi, eax"], [12, "call sub_411B34"], [13, "mov rax, [rbp+var_18]"], [14, "mov eax, [rax+8]"], [15, "cmp eax, 14h"], [16, "jnz short loc_406048"], [17, "mov rax, [rbp+var_18]"], [18, "mov eax, [rax+10h]"], [19, "shr eax, 10h"], [20, "mov [rbp+var_8], eax"], [21, "mov rax, [rbp+var_18]"], [22, "mov eax, [rax+10h]"], [23, "and eax, 0FFFFh"], [24, "mov [rbp+var_C], eax"], [25, "mov eax, [rbp+var_C]"], [26, "movsx edx, ax"], [27, "mov eax, [rbp+var_8]"], [28, "cwde"], [29, "mov esi, edx"], [30, "mov edi, eax"], [31, "call sub_4062F2"], [32, "mov [rbp+var_1], al"], [33, "jmp short loc_406049"], [34, "nop"], [35, "movzx eax, [rbp+var_1]"], [36, "xor eax, 1"], [37, "test al, al"], [38, "jz short loc_406060"], [39, "mov rax, [rbp+var_18]"], [40, "mov rdi, rax"], [41, "call sub_403371"], [42, "nop"], [43, "leave"], [44, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [11, 7], [13, 3], [14, 13], [15, 14], [16, 15], [17, 3], [18, 17], [19, 18], [20, 19], [21, 3], [22, 21], [23, 22], [24, 23], [25, 24], [26, 25], [27, 20], [29, 26], [30, 27], [32, 31], [35, 32], [35, 4], [36, 35], [37, 36], [38, 37], [39, 3], [40, 39], [44, 41], [44, 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/93ff8321496f266e0636349715512c5b08cf85171f3c7301da663912d1131b72_93ff8321496f266e0636349715512c5b08cf85171f3c7301da663912d1131b72.jsonl.gz", "strip_func_name": "sub_405FD7", "query": "\n\n\nvoid __fastcall sub_405FD7(__int64 a1)\n{\nchar v1; // [rsp+1Fh] [rbp-1h]\n\nv1 = 0;\nsub_411B34(a1 != 0, \"root_message_function\", 721LL, \"Null pointer argument\");\nif ( *(_DWORD *)(a1 + 8) == 20 )\nv1 = sub_4062F2((unsigned int)(__int16)HIWORD(*(_DWORD *)(a1 + 16)), (unsigned int)(__int16)*(_DWORD *)(a1 + 16));\nif ( v1 != 1 )\nsub_403371();\n}\n\n\n\nQ:[a1,v1,sub_405FD7,sub_411B34,sub_4062F2,sub_403371,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'message', 'v1': 'consumed', 'sub_405FD7': 'root_message_function', 'sub_411B34': 'mw_debug_print_assert', 'sub_4062F2': 'check_for_restore_touch', 'sub_403371': 'mw_user_root_message_function'}"}
_PrintFileData
c3f4a7f441ca303829131d9a7a23699182b1e72c36b1b2ec18a602e1429bd9aa
DataSystemsLab
hippo-postgresql
NA
static void _PrintFileData(ArchiveHandle *AH, char *filename) { lclContext *ctx = (lclContext *) AH->formatData; char buf[4096]; size_t cnt; TAR_MEMBER *th; if (!filename) return; th = tarOpen(AH, filename, 'r'); ctx->FH = th; while ((cnt = tarRead(buf, 4095, th)) > 0) { buf[cnt] = '\0'; ahwrite(buf, 1, cnt, AH); } tarClose(AH, th); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43BF9E", "function_addr": 4439966, "binary_name": "c3f4a7f441ca303829131d9a7a23699182b1e72c36b1b2ec18a602e1429bd9aa.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 1030h"], [3, "mov [rbp+var_1028], rdi"], [4, "mov [rbp+var_1030], rsi"], [5, "mov rax, [rbp+var_1028]"], [6, "mov rax, [rax+238h]"], [7, "mov [rbp+var_8], rax"], [8, "cmp [rbp+var_1030], 0"], [9, "jz loc_43C072"], [10, "mov rcx, [rbp+var_1030]"], [11, "mov rax, [rbp+var_1028]"], [12, "mov edx, 72h "], [13, "mov rsi, rcx"], [14, "mov rdi, rax"], [15, "call sub_43B81D"], [16, "mov [rbp+var_10], rax"], [17, "mov rax, [rbp+var_8]"], [18, "mov rdx, [rbp+var_10]"], [19, "mov [rax+30h], rdx"], [20, "jmp short loc_43C037"], [21, "lea rdx, [rbp+var_1020]"], [22, "mov rax, [rbp+var_18]"], [23, "add rax, rdx"], [24, "mov byte ptr [rax], 0"], [25, "mov rcx, [rbp+var_1028]"], [26, "mov rdx, [rbp+var_18]"], [27, "lea rax, [rbp+var_1020]"], [28, "mov esi, 1"], [29, "mov rdi, rax"], [30, "call sub_4321BF"], [31, "mov rdx, [rbp+var_10]"], [32, "lea rax, [rbp+var_1020]"], [33, "mov esi, 0FFFh"], [34, "mov rdi, rax"], [35, "call sub_43BDB8"], [36, "mov [rbp+var_18], rax"], [37, "cmp [rbp+var_18], 0"], [38, "jnz short loc_43C007"], [39, "mov rdx, [rbp+var_10]"], [40, "mov rax, [rbp+var_1028]"], [41, "mov rsi, rdx"], [42, "mov rdi, rax"], [43, "call sub_43BA0E"], [44, "jmp short locret_43C073"], [45, "nop"], [46, "leave"], [47, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 4], [9, 8], [10, 4], [11, 3], [13, 10], [14, 11], [16, 15], [17, 7], [18, 16], [19, 18], [19, 17], [21, 31], [22, 36], [23, 22], [23, 21], [24, 23], [25, 3], [26, 36], [27, 23], [29, 27], [31, 16], [32, 30], [32, 17], [34, 32], [36, 35], [37, 36], [38, 37], [39, 16], [40, 3], [41, 39], [42, 40], [47, 43], [47, 6]]}
{"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/c3f4a7f441ca303829131d9a7a23699182b1e72c36b1b2ec18a602e1429bd9aa_c3f4a7f441ca303829131d9a7a23699182b1e72c36b1b2ec18a602e1429bd9aa.jsonl.gz", "strip_func_name": "sub_43BF9E", "query": "\n\n\n__int64 __fastcall sub_43BF9E(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\n__int64 v3; // rcx\n__int64 v4; // r8\nint v5; // er9\nchar v6[4104]; // [rsp+10h] [rbp-1020h] BYREF\nsize_t v7; // [rsp+1018h] [rbp-18h]\n__int64 v8; // [rsp+1020h] [rbp-10h]\n__int64 v9; // [rsp+1028h] [rbp-8h]\n\nresult = *(_QWORD *)(a1 + 568);\nv9 = result;\nif ( a2 )\n{\nv8 = sub_43B81D(a1, a2, 114);\n*(_QWORD *)(v9 + 48) = v8;\nwhile ( 1 )\n{\nv7 = sub_43BDB8(v6, 0xFFFuLL, v8, v3, v4, v5);\nif ( !v7 )\nbreak;\nv6[v7] = 0;\nsub_4321BF(v6, 1uLL, v7, a1);\n}\nresult = sub_43BA0E(a1, v8);\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v6,v7,v8,v9,sub_43BF9E,sub_43B81D,sub_43BDB8,sub_4321BF,sub_43BA0E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'AH_0', 'a2': 'filename', 'v6': 'buf', 'v7': 'cnt', 'v8': 'th', 'v9': 'ctx', 'sub_43BF9E': '_PrintFileData', 'sub_43B81D': 'tarOpen', 'sub_43BDB8': 'tarRead', 'sub_4321BF': 'ahwrite', 'sub_43BA0E': 'tarClose'}"}
for_each_reflog_ent
fe061f006c9207a403c62f4326f1088f1778f9ddddd6b2b4a2e47dc4d592c0fc
msysgit
msysgit
NA
int for_each_reflog_ent(const char *refname, each_reflog_ent_fn fn, void *cb_data) { FILE *logfp; struct strbuf sb = STRBUF_INIT; int ret = 0; logfp = fopen(git_path("logs/%s", refname), "r"); if (!logfp) return -1; while (!ret && !strbuf_getwholeline(&sb, logfp, '\n')) ret = show_one_reflog_ent(&sb, fn, cb_data); fclose(logfp); strbuf_release(&sb); return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4135B9", "function_addr": 4273593, "binary_name": "fe061f006c9207a403c62f4326f1088f1778f9ddddd6b2b4a2e47dc4d592c0fc.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_30], 0"], [7, "mov [rbp+var_28], 0"], [8, "mov [rbp+var_20], offset unk_4FFB21"], [9, "mov [rbp+var_4], 0"], [10, "mov rax, [rbp+var_38]"], [11, "mov rsi, rax"], [12, "mov edi, offset aLogsS"], [13, "mov eax, 0"], [14, "call sub_40B236"], [15, "mov esi, offset modes"], [16, "mov rdi, rax"], [17, "call _fopen64"], [18, "mov [rbp+stream], rax"], [19, "cmp [rbp+stream], 0"], [20, "jnz short loc_41363B"], [21, "mov eax, 0FFFFFFFFh"], [22, "jmp short locret_413678"], [23, "mov rdx, [rbp+var_48]"], [24, "mov rcx, [rbp+var_40]"], [25, "lea rax, [rbp+var_30]"], [26, "mov rsi, rcx"], [27, "mov rdi, rax"], [28, "call sub_412FA4"], [29, "mov [rbp+var_4], eax"], [30, "cmp [rbp+var_4], 0"], [31, "jnz short loc_41365D"], [32, "mov rcx, [rbp+stream]"], [33, "lea rax, [rbp+var_30]"], [34, "mov edx, 0Ah"], [35, "mov rsi, rcx"], [36, "mov rdi, rax"], [37, "call sub_409378"], [38, "test eax, eax"], [39, "jz short loc_413621"], [40, "mov rax, [rbp+stream]"], [41, "mov rdi, rax"], [42, "call _fclose"], [43, "lea rax, [rbp+var_30]"], [44, "mov rdi, rax"], [45, "call sub_40807B"], [46, "mov eax, [rbp+var_4]"], [47, "leave"], [48, "retn"]], "data_dep": [[10, 3], [11, 10], [16, 14], [18, 17], [19, 18], [20, 19], [23, 5], [24, 4], [25, 38], [25, 6], [26, 24], [27, 25], [29, 28], [30, 9], [30, 29], [31, 30], [32, 18], [33, 17], [33, 28], [33, 6], [35, 32], [36, 33], [38, 37], [39, 38], [40, 18], [41, 40], [43, 6], [43, 42], [44, 43], [46, 29], [46, 9], [48, 21], [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/fe061f006c9207a403c62f4326f1088f1778f9ddddd6b2b4a2e47dc4d592c0fc_fe061f006c9207a403c62f4326f1088f1778f9ddddd6b2b4a2e47dc4d592c0fc.jsonl.gz", "strip_func_name": "sub_4135B9", "query": "\n\n\n__int64 __fastcall sub_4135B9(__int64 a1, __int64 (__fastcall *a2)(char *, char *, __int64, unsigned __int64, _QWORD, char *, __int64), __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\nconst char *v6; // rax\n__int64 v9[4]; // [rsp+20h] [rbp-30h] BYREF\nFILE *stream; // [rsp+40h] [rbp-10h]\nunsigned int v11; // [rsp+4Ch] [rbp-4h]\n\nv9[0] = 0LL;\nv9[1] = 0LL;\nv9[2] = (__int64)&unk_4FFB21;\nv11 = 0;\nv6 = sub_40B236(\"logs/%s\", a1, a3, a4, a5, a6);\nstream = fopen64(v6, \"r\");\nif ( !stream )\nreturn 0xFFFFFFFFLL;\nwhile ( !v11 && !(unsigned int)sub_409378(v9, stream, 10) )\nv11 = sub_412FA4((__int64)v9, a2, a3);\nfclose(stream);\nsub_40807B((__int64)v9);\nreturn v11;\n}\n\n\n\nQ:[a3,a1,a2,v9,stream,sub_4135B9,sub_40B236,sub_409378,sub_412FA4,sub_40807B,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'cb_data', 'a1': 'refname', 'a2': 'fn', 'v9': 'sb', 'stream': 'logfp', 'sub_4135B9': 'for_each_reflog_ent', 'sub_40B236': 'git_path', 'sub_409378': 'strbuf_getwholeline', 'sub_412FA4': 'show_one_reflog_ent', 'sub_40807B': 'strbuf_release'}"}