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
main_lorenz
18ba826ac31830a73aba61dc9990ca60507abe36300168b1d3124d77e38500a7
lh3
lianti
NA
int main_lorenz(int argc, char *argv[]) { bam_plp_t plp; BGZF *fp; bam_hdr_t *h; const bam_pileup1_t *p; int i, c, n_plp, tid, pos, step = 1000; uint64_t *cnt, bed_len = 0, sum_partial = 0, cov = 0, tot = 0, tot_partial = 0; void *bed = 0; while ((c = getopt(argc, argv, "b:s:")) >= 0) { if (c == 'b') { bed = bed_read(optarg); bed_len = bed_totlen(bed); fprintf(stderr, "[M::%s] total length in BED: %ld\n", __func__, (long)bed_len); } else if (c == 's') step = atoi(optarg); } if (optind == argc) { fprintf(stderr, "Usage: lianti lorenz [-b bed] [-s step=%d] <aln.bam>\n", step); return 1; } cnt = (uint64_t*)calloc(MAX_DEPTH + 1, sizeof(uint64_t)); fp = bgzf_open(argv[optind], "r"); h = bam_hdr_read(fp); plp = bam_plp_init((bam_plp_auto_f)bam_read1, fp); while ((p = bam_plp_auto(plp, &tid, &pos, &n_plp)) != 0) { if (bed_overlap(bed, h->target_name[tid], pos, pos + 1)) ++cnt[n_plp < MAX_DEPTH? n_plp : MAX_DEPTH]; } for (i = 1; i <= MAX_DEPTH; ++i) cov += cnt[i]; cnt[0] = bed_len - cov; for (i = 0; i <= MAX_DEPTH; ++i) tot += cnt[i] * i; bam_plp_destroy(plp); printf("%.4f\t%.4f\n", 0., 0.); for (i = 0, sum_partial = tot_partial = 0; i <= MAX_DEPTH; ++i) { if (cnt[i] <= step) { sum_partial += cnt[i], tot_partial += i * cnt[i]; printf("%.4f\t%.4f\n", (double)sum_partial / bed_len, (double)tot_partial / tot); } else { uint64_t rest = cnt[i]; while (rest) { int x = rest < step? rest : step; sum_partial += x, tot_partial += i * x; printf("%.4f\t%.4f\n", (double)sum_partial / bed_len, (double)tot_partial / tot); rest -= x; } } } bam_hdr_destroy(h); bgzf_close(fp); free(cnt); if (bed) bed_destroy(bed); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_430613", "function_addr": 4392467, "binary_name": "18ba826ac31830a73aba61dc9990ca60507abe36300168b1d3124d77e38500a7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 90h"], [3, "mov [rbp+argc], edi"], [4, "mov [rbp+argv], rsi"], [5, "mov [rbp+var_8], 3E8h"], [6, "mov [rbp+var_10], 0"], [7, "mov [rbp+var_18], 0"], [8, "mov [rbp+var_20], 0"], [9, "mov [rbp+var_28], 0"], [10, "mov [rbp+var_30], 0"], [11, "mov [rbp+var_38], 0"], [12, "jmp short loc_4306CC"], [13, "cmp [rbp+var_44], 62h "], [14, "jnz short loc_4306B4"], [15, "mov rax, cs:optarg"], [16, "mov rdi, rax"], [17, "call sub_40F80C"], [18, "mov [rbp+var_38], rax"], [19, "mov rax, [rbp+var_38]"], [20, "mov rdi, rax"], [21, "call sub_40F29E"], [22, "mov [rbp+var_10], rax"], [23, "mov rdx, [rbp+var_10]"], [24, "mov rax, cs:stderr"], [25, "mov rcx, rdx"], [26, "mov edx, offset aMainLorenz"], [27, "mov esi, offset aMSTotalLengthI"], [28, "mov rdi, rax"], [29, "mov eax, 0"], [30, "call _fprintf"], [31, "jmp short loc_4306CC"], [32, "cmp [rbp+var_44], 73h "], [33, "jnz short loc_4306CC"], [34, "mov rax, cs:optarg"], [35, "mov rdi, rax"], [36, "call _atoi"], [37, "mov [rbp+var_8], eax"], [38, "mov rcx, [rbp+argv]"], [39, "mov eax, [rbp+argc]"], [40, "mov edx, offset aBS"], [41, "mov rsi, rcx"], [42, "mov edi, eax"], [43, "call _getopt"], [44, "mov [rbp+var_44], eax"], [45, "cmp [rbp+var_44], 0"], [46, "jns loc_430664"], [47, "mov eax, cs:optind"], [48, "cmp [rbp+argc], eax"], [49, "jnz short loc_430729"], [50, "mov rax, cs:stderr"], [51, "mov edx, [rbp+var_8]"], [52, "mov esi, offset aUsageLiantiLor"], [53, "mov rdi, rax"], [54, "mov eax, 0"], [55, "call _fprintf"], [56, "mov eax, 1"], [57, "jmp locret_430B9F"], [58, "mov esi, 8"], [59, "mov edi, 2711h"], [60, "call _calloc"], [61, "mov [rbp+ptr], rax"], [62, "mov eax, cs:optind"], [63, "cdqe"], [64, "lea rdx, ds:0[rax*8]"], [65, "mov rax, [rbp+argv]"], [66, "add rax, rdx"], [67, "mov rax, [rax]"], [68, "mov esi, offset aR_9"], [69, "mov rdi, rax"], [70, "call sub_4030B8"], [71, "mov [rbp+var_58], rax"], [72, "mov rax, [rbp+var_58]"], [73, "mov rdi, rax"], [74, "call sub_411F78"], [75, "mov [rbp+var_60], rax"], [76, "mov rax, [rbp+var_58]"], [77, "mov rsi, rax"], [78, "mov edi, offset sub_412A69"], [79, "call sub_4170B4"], [80, "mov [rbp+var_68], rax"], [81, "jmp short loc_4307F0"], [82, "mov eax, [rbp+var_80]"], [83, "lea ecx, [rax+1]"], [84, "mov edx, [rbp+var_80]"], [85, "mov rax, [rbp+var_60]"], [86, "mov rsi, [rax+20h]"], [87, "mov eax, [rbp+var_7C]"], [88, "cdqe"], [89, "shl rax, 3"], [90, "add rax, rsi"], [91, "mov rsi, [rax]"], [92, "mov rax, [rbp+var_38]"], [93, "mov rdi, rax"], [94, "call sub_40F78B"], [95, "test eax, eax"], [96, "jz short loc_4307F0"], [97, "mov eax, [rbp+var_78]"], [98, "cmp eax, 270Fh"], [99, "jg short loc_4307DA"], [100, "mov eax, [rbp+var_78]"], [101, "cdqe"], [102, "lea rdx, ds:0[rax*8]"], [103, "jmp short loc_4307DF"], [104, "mov edx, 13880h"], [105, "mov rax, [rbp+ptr]"], [106, "add rax, rdx"], [107, "mov rdx, [rax]"], [108, "add rdx, 1"], [109, "mov [rax], rdx"], [110, "lea rcx, [rbp+var_78]"], [111, "lea rdx, [rbp+var_80]"], [112, "lea rsi, [rbp+var_7C]"], [113, "mov rax, [rbp+var_68]"], [114, "mov rdi, rax"], [115, "call sub_417875"], [116, "mov [rbp+var_70], rax"], [117, "cmp [rbp+var_70], 0"], [118, "jnz loc_430791"], [119, "mov [rbp+var_4], 1"], [120, "jmp short loc_43083F"], [121, "mov eax, [rbp+var_4]"], [122, "cdqe"], [123, "lea rdx, ds:0[rax*8]"], [124, "mov rax, [rbp+ptr]"], [125, "add rax, rdx"], [126, "mov rax, [rax]"], [127, "add [rbp+var_20], rax"], [128, "add [rbp+var_4], 1"], [129, "cmp [rbp+var_4], 2710h"], [130, "jle short loc_430820"], [131, "mov rax, [rbp+var_10]"], [132, "sub rax, [rbp+var_20]"], [133, "mov rdx, rax"], [134, "mov rax, [rbp+ptr]"], [135, "mov [rax], rdx"], [136, "mov [rbp+var_4], 0"], [137, "jmp short loc_43088B"], [138, "mov eax, [rbp+var_4]"], [139, "cdqe"], [140, "lea rdx, ds:0[rax*8]"], [141, "mov rax, [rbp+ptr]"], [142, "add rax, rdx"], [143, "mov rdx, [rax]"], [144, "mov eax, [rbp+var_4]"], [145, "cdqe"], [146, "imul rax, rdx"], [147, "add [rbp+var_28], rax"], [148, "add [rbp+var_4], 1"], [149, "cmp [rbp+var_4], 2710h"], [150, "jle short loc_430863"], [151, "mov rax, [rbp+var_68]"], [152, "mov rdi, rax"], [153, "call sub_417187"], [154, "pxor xmm1, xmm1"], [155, "pxor xmm0, xmm0"], [156, "mov edi, offset a4f4f"], [157, "mov eax, 2"], [158, "call _printf"], [159, "mov [rbp+var_4], 0"], [160, "mov [rbp+var_30], 0"], [161, "mov rax, [rbp+var_30]"], [162, "mov [rbp+var_18], rax"], [163, "jmp loc_430B56"], [164, "mov eax, [rbp+var_4]"], [165, "cdqe"], [166, "lea rdx, ds:0[rax*8]"], [167, "mov rax, [rbp+ptr]"], [168, "add rax, rdx"], [169, "mov rdx, [rax]"], [170, "mov eax, [rbp+var_8]"], [171, "cdqe"], [172, "cmp rdx, rax"], [173, "ja loc_430A1A"], [174, "mov eax, [rbp+var_4]"], [175, "cdqe"], [176, "lea rdx, ds:0[rax*8]"], [177, "mov rax, [rbp+ptr]"], [178, "add rax, rdx"], [179, "mov rax, [rax]"], [180, "add [rbp+var_18], rax"], [181, "mov eax, [rbp+var_4]"], [182, "movsxd rdx, eax"], [183, "mov eax, [rbp+var_4]"], [184, "cdqe"], [185, "lea rcx, ds:0[rax*8]"], [186, "mov rax, [rbp+ptr]"], [187, "add rax, rcx"], [188, "mov rax, [rax]"], [189, "imul rax, rdx"], [190, "add [rbp+var_30], rax"], [191, "mov rax, [rbp+var_30]"], [192, "test rax, rax"], [193, "js short loc_43094C"], [194, "pxor xmm0, xmm0"], [195, "cvtsi2sd xmm0, rax"], [196, "jmp short loc_430965"], [197, "mov rdx, rax"], [198, "shr rdx, 1"], [199, "and eax, 1"], [200, "or rdx, rax"], [201, "pxor xmm0, xmm0"], [202, "cvtsi2sd xmm0, rdx"], [203, "addsd xmm0, xmm0"], [204, "mov rax, [rbp+var_28]"], [205, "test rax, rax"], [206, "js short loc_430979"], [207, "pxor xmm1, xmm1"], [208, "cvtsi2sd xmm1, rax"], [209, "jmp short loc_430992"], [210, "mov rdx, rax"], [211, "shr rdx, 1"], [212, "and eax, 1"], [213, "or rdx, rax"], [214, "pxor xmm1, xmm1"], [215, "cvtsi2sd xmm1, rdx"], [216, "addsd xmm1, xmm1"], [217, "movapd xmm2, xmm0"], [218, "divsd xmm2, xmm1"], [219, "mov rax, [rbp+var_18]"], [220, "test rax, rax"], [221, "js short loc_4309AE"], [222, "pxor xmm0, xmm0"], [223, "cvtsi2sd xmm0, rax"], [224, "jmp short loc_4309C7"], [225, "mov rdx, rax"], [226, "shr rdx, 1"], [227, "and eax, 1"], [228, "or rdx, rax"], [229, "pxor xmm0, xmm0"], [230, "cvtsi2sd xmm0, rdx"], [231, "addsd xmm0, xmm0"], [232, "mov rax, [rbp+var_10]"], [233, "test rax, rax"], [234, "js short loc_4309DB"], [235, "pxor xmm1, xmm1"], [236, "cvtsi2sd xmm1, rax"], [237, "jmp short loc_4309F4"], [238, "mov rdx, rax"], [239, "shr rdx, 1"], [240, "and eax, 1"], [241, "or rdx, rax"], [242, "pxor xmm1, xmm1"], [243, "cvtsi2sd xmm1, rdx"], [244, "addsd xmm1, xmm1"], [245, "divsd xmm0, xmm1"], [246, "movq rax, xmm0"], [247, "movapd xmm1, xmm2"], [248, "movq xmm0, rax"], [249, "mov edi, offset a4f4f"], [250, "mov eax, 2"], [251, "call _printf"], [252, "jmp loc_430B52"], [253, "mov eax, [rbp+var_4]"], [254, "cdqe"], [255, "lea rdx, ds:0[rax*8]"], [256, "mov rax, [rbp+ptr]"], [257, "add rax, rdx"], [258, "mov rax, [rax]"], [259, "mov [rbp+var_40], rax"], [260, "jmp loc_430B47"], [261, "mov eax, [rbp+var_8]"], [262, "cdqe"], [263, "cmp [rbp+var_40], rax"], [264, "cmovbe rax, [rbp+var_40]"], [265, "mov [rbp+var_74], eax"], [266, "mov eax, [rbp+var_74]"], [267, "cdqe"], [268, "add [rbp+var_18], rax"], [269, "mov eax, [rbp+var_4]"], [270, "imul eax, [rbp+var_74]"], [271, "cdqe"], [272, "add [rbp+var_30], rax"], [273, "mov rax, [rbp+var_30]"], [274, "test rax, rax"], [275, "js short loc_430A75"], [276, "pxor xmm0, xmm0"], [277, "cvtsi2sd xmm0, rax"], [278, "jmp short loc_430A8E"], [279, "mov rdx, rax"], [280, "shr rdx, 1"], [281, "and eax, 1"], [282, "or rdx, rax"], [283, "pxor xmm0, xmm0"], [284, "cvtsi2sd xmm0, rdx"], [285, "addsd xmm0, xmm0"], [286, "mov rax, [rbp+var_28]"], [287, "test rax, rax"], [288, "js short loc_430AA2"], [289, "pxor xmm1, xmm1"], [290, "cvtsi2sd xmm1, rax"], [291, "jmp short loc_430ABB"], [292, "mov rdx, rax"], [293, "shr rdx, 1"], [294, "and eax, 1"], [295, "or rdx, rax"], [296, "pxor xmm1, xmm1"], [297, "cvtsi2sd xmm1, rdx"], [298, "addsd xmm1, xmm1"], [299, "movapd xmm2, xmm0"], [300, "divsd xmm2, xmm1"], [301, "mov rax, [rbp+var_18]"], [302, "test rax, rax"], [303, "js short loc_430AD7"], [304, "pxor xmm0, xmm0"], [305, "cvtsi2sd xmm0, rax"], [306, "jmp short loc_430AF0"], [307, "mov rdx, rax"], [308, "shr rdx, 1"], [309, "and eax, 1"], [310, "or rdx, rax"], [311, "pxor xmm0, xmm0"], [312, "cvtsi2sd xmm0, rdx"], [313, "addsd xmm0, xmm0"], [314, "mov rax, [rbp+var_10]"], [315, "test rax, rax"], [316, "js short loc_430B04"], [317, "pxor xmm1, xmm1"], [318, "cvtsi2sd xmm1, rax"], [319, "jmp short loc_430B1D"], [320, "mov rdx, rax"], [321, "shr rdx, 1"], [322, "and eax, 1"], [323, "or rdx, rax"], [324, "pxor xmm1, xmm1"], [325, "cvtsi2sd xmm1, rdx"], [326, "addsd xmm1, xmm1"], [327, "divsd xmm0, xmm1"], [328, "movq rax, xmm0"], [329, "movapd xmm1, xmm2"], [330, "movq xmm0, rax"], [331, "mov edi, offset a4f4f"], [332, "mov eax, 2"], [333, "call _printf"], [334, "mov eax, [rbp+var_74]"], [335, "cdqe"], [336, "sub [rbp+var_40], rax"], [337, "cmp [rbp+var_40], 0"], [338, "jnz loc_430A3A"], [339, "add [rbp+var_4], 1"], [340, "cmp [rbp+var_4], 2710h"], [341, "jle loc_4308D3"], [342, "mov rax, [rbp+var_60]"], [343, "mov rdi, rax"], [344, "call sub_411D2A"], [345, "mov rax, [rbp+var_58]"], [346, "mov rdi, rax"], [347, "call sub_4046AD"], [348, "mov rax, [rbp+ptr]"], [349, "mov rdi, rax"], [350, "call _free"], [351, "cmp [rbp+var_38], 0"], [352, "jz short loc_430B9A"], [353, "mov rax, [rbp+var_38]"], [354, "mov rdi, rax"], [355, "call sub_40FB87"], [356, "mov eax, 0"], [357, "leave"], [358, "retn"]], "data_dep": [[13, 44], [14, 13], [16, 15], [18, 17], [19, 18], [20, 19], [22, 21], [23, 22], [25, 23], [28, 24], [32, 44], [33, 32], [35, 34], [37, 36], [38, 4], [39, 3], [41, 38], [42, 39], [44, 43], [45, 44], [46, 45], [48, 3], [48, 47], [49, 48], [51, 37], [51, 5], [53, 50], [61, 60], [64, 40], [65, 4], [66, 65], [66, 64], [67, 66], [69, 67], [71, 70], [72, 71], [73, 72], [75, 74], [76, 71], [77, 76], [80, 79], [83, 109], [83, 110], [83, 82], [85, 75], [86, 109], [86, 85], [89, 87], [90, 86], [90, 89], [91, 109], [91, 90], [92, 11], [92, 18], [93, 92], [95, 94], [96, 95], [98, 97], [99, 98], [102, 84], [105, 61], [106, 102], [106, 105], [106, 104], [107, 106], [107, 109], [108, 107], [109, 106], [109, 108], [110, 38], [110, 83], [111, 64], [111, 108], [111, 84], [112, 91], [112, 77], [113, 80], [114, 113], [116, 115], [117, 116], [118, 117], [121, 119], [121, 128], [123, 111], [123, 123], [124, 61], [125, 124], [125, 123], [126, 125], [126, 109], [127, 127], [127, 126], [127, 8], [128, 119], [128, 128], [129, 128], [129, 119], [130, 129], [131, 22], [131, 6], [132, 127], [132, 131], [132, 8], [133, 132], [134, 61], [135, 134], [135, 133], [138, 136], [138, 148], [140, 143], [140, 133], [141, 61], [142, 140], [142, 141], [143, 135], [143, 142], [143, 109], [144, 136], [144, 148], [146, 144], [146, 143], [147, 9], [147, 147], [147, 146], [148, 136], [148, 148], [149, 136], [149, 148], [150, 149], [151, 80], [152, 151], [161, 160], [162, 161], [164, 339], [164, 159], [166, 143], [166, 255], [166, 282], [166, 241], [166, 133], [166, 213], [166, 310], [166, 323], [166, 295], [166, 228], [166, 182], [166, 200], [167, 61], [168, 167], [168, 166], [169, 109], [169, 168], [169, 135], [170, 5], [170, 37], [172, 170], [172, 169], [173, 172], [174, 159], [174, 339], [176, 169], [177, 61], [178, 177], [178, 176], [179, 178], [179, 109], [179, 135], [180, 162], [180, 268], [180, 180], [180, 179], [181, 159], [181, 339], [182, 181], [183, 339], [183, 159], [185, 110], [185, 185], [186, 61], [187, 186], [187, 185], [188, 187], [188, 109], [188, 135], [189, 182], [189, 188], [190, 189], [190, 160], [190, 272], [190, 190], [191, 190], [192, 191], [193, 192], [195, 192], [195, 194], [197, 192], [198, 197], [199, 192], [200, 199], [200, 198], [202, 200], [202, 201], [203, 202], [204, 9], [204, 147], [205, 204], [206, 205], [208, 205], [208, 207], [210, 205], [211, 210], [212, 205], [213, 212], [213, 211], [215, 214], [215, 213], [216, 215], [217, 203], [217, 195], [218, 208], [218, 217], [218, 216], [219, 180], [220, 219], [221, 220], [223, 222], [223, 220], [225, 220], [226, 225], [227, 220], [228, 226], [228, 227], [230, 229], [230, 228], [231, 230], [232, 22], [232, 6], [233, 232], [234, 233], [236, 235], [236, 233], [238, 233], [239, 238], [240, 233], [241, 240], [241, 239], [243, 242], [243, 241], [244, 243], [245, 236], [245, 231], [245, 244], [245, 223], [246, 245], [247, 218], [248, 246], [253, 159], [253, 339], [255, 169], [256, 61], [257, 256], [257, 255], [258, 109], [258, 257], [258, 135], [259, 258], [261, 37], [261, 5], [263, 336], [263, 261], [263, 259], [264, 259], [264, 263], [264, 336], [265, 264], [266, 265], [268, 266], [268, 162], [268, 180], [268, 268], [269, 159], [269, 339], [270, 265], [270, 269], [272, 272], [272, 160], [272, 270], [272, 190], [273, 272], [274, 273], [275, 274], [277, 276], [277, 274], [279, 274], [280, 279], [281, 274], [282, 280], [282, 281], [284, 283], [284, 282], [285, 284], [286, 147], [286, 9], [287, 286], [288, 287], [290, 289], [290, 287], [292, 287], [293, 292], [294, 287], [295, 294], [295, 293], [297, 296], [297, 295], [298, 297], [299, 277], [299, 285], [300, 290], [300, 299], [300, 298], [301, 268], [302, 301], [303, 302], [305, 302], [305, 304], [307, 302], [308, 307], [309, 302], [310, 309], [310, 308], [312, 311], [312, 310], [313, 312], [314, 22], [314, 6], [315, 314], [316, 315], [318, 315], [318, 317], [320, 315], [321, 320], [322, 315], [323, 322], [323, 321], [325, 324], [325, 323], [326, 325], [327, 305], [327, 318], [327, 313], [327, 326], [328, 327], [329, 300], [330, 328], [334, 265], [336, 334], [336, 259], [336, 336], [337, 259], [337, 336], [338, 337], [339, 159], [339, 339], [340, 159], [340, 339], [341, 340], [342, 75], [343, 342], [345, 71], [346, 345], [348, 61], [349, 348], [351, 11], [351, 18], [352, 351], [353, 11], [353, 18], [354, 353], [358, 56], [358, 356]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/18ba826ac31830a73aba61dc9990ca60507abe36300168b1d3124d77e38500a7_18ba826ac31830a73aba61dc9990ca60507abe36300168b1d3124d77e38500a7.jsonl.gz", "strip_func_name": "sub_430613", "query": "\n\n\n__int64 __fastcall sub_430613(int a1, char *const *a2)\n{\nint i; // eax\n__int64 result; // rax\n__int64 v4; // rdx\ndouble v5; // xmm0_8\ndouble v6; // xmm1_8\ndouble v7; // xmm2_8\ndouble v8; // xmm0_8\ndouble v9; // xmm1_8\nint v10; // eax\ndouble v11; // xmm0_8\ndouble v12; // xmm1_8\ndouble v13; // xmm2_8\ndouble v14; // xmm0_8\ndouble v15; // xmm1_8\nint v16; // [rsp+10h] [rbp-80h] BYREF\nint v17; // [rsp+14h] [rbp-7Ch] BYREF\nint v18; // [rsp+18h] [rbp-78h] BYREF\nint v19; // [rsp+1Ch] [rbp-74h]\nunsigned int **v21; // [rsp+28h] [rbp-68h]\nint *v22; // [rsp+30h] [rbp-60h]\n_BYTE *v23; // [rsp+38h] [rbp-58h]\nvoid *ptr; // [rsp+40h] [rbp-50h]\nint v25; // [rsp+4Ch] [rbp-44h]\nunsigned __int64 k; // [rsp+50h] [rbp-40h]\nunsigned int *v27; // [rsp+58h] [rbp-38h]\nunsigned __int64 v28; // [rsp+60h] [rbp-30h]\nunsigned __int64 v29; // [rsp+68h] [rbp-28h]\n__int64 v30; // [rsp+70h] [rbp-20h]\nunsigned __int64 v31; // [rsp+78h] [rbp-18h]\nunsigned __int64 v32; // [rsp+80h] [rbp-10h]\nunsigned int v33; // [rsp+88h] [rbp-8h]\nint j; // [rsp+8Ch] [rbp-4h]\n\nv33 = 1000;\nv32 = 0LL;\nv31 = 0LL;\nv30 = 0LL;\nv29 = 0LL;\nv28 = 0LL;\nv27 = 0LL;\nfor ( i = getopt(a1, a2, \"b:s:\"); ; i = getopt(a1, a2, \"b:s:\") )\n{\nv25 = i;\nif ( i < 0 )\nbreak;\nif ( v25 == 98 )\n{\nv27 = sub_40F80C(optarg);\nv32 = sub_40F29E((__int64)v27);\nfprintf(stderr, \"[M::%s] total length in BED: %ld\\n\", \"main_lorenz\", v32);\n}\nelse if ( v25 == 115 )\n{\nv33 = atoi(optarg);\n}\n}\nif ( a1 == optind )\n{\nfprintf(stderr, \"Usage: lianti lorenz [-b bed] [-s step=%d] <aln.bam>\\n\", v33);\nresult = 1LL;\n}\nelse\n{\nptr = calloc(0x2711uLL, 8uLL);\nv23 = sub_4030B8(a2[optind], \"r\");\nv22 = sub_411F78((__int64)v23);\nv21 = (unsigned int **)sub_4170B4((__int64)sub_412A69, (__int64)v23);\nwhile ( sub_417875((__int64)v21, &v17, &v16, &v18) )\n{\nif ( (unsigned int)sub_40F78B(v27, *(char **)(*((_QWORD *)v22 + 4) + 8LL * v17), v16, v16 + 1) )\n{\nif ( v18 > 9999 )\nv4 = 80000LL;\nelse\nv4 = 8LL * v18;\n++*(_QWORD *)((char *)ptr + v4);\n}\n}\nfor ( j = 1; j <= 10000; ++j )\nv30 += *((_QWORD *)ptr + j);\n*(_QWORD *)ptr = v32 - v30;\nfor ( j = 0; j <= 10000; ++j )\nv29 += *((_QWORD *)ptr + j) * j;\nsub_417187(v21);\nprintf(\"%.4f\\t%.4f\\n\", 0.0, 0.0);\nj = 0;\nv28 = 0LL;\nv31 = 0LL;\nwhile ( j <= 10000 )\n{\nif ( *((_QWORD *)ptr + j) > (unsigned __int64)(int)v33 )\n{\nfor ( k = *((_QWORD *)ptr + j); k; k -= v19 )\n{\nv10 = v33;\nif ( k <= (int)v33 )\nv10 = k;\nv19 = v10;\nv31 += v10;\nv28 += v10 * j;\nif ( (v28 & 0x8000000000000000LL) != 0LL )\nv11 = (double)(int)(v28 & 1 | (v28 >> 1)) + (double)(int)(v28 & 1 | (v28 >> 1));\nelse\nv11 = (double)(int)v28;\nif ( (v29 & 0x8000000000000000LL) != 0LL )\nv12 = (double)(int)(v29 & 1 | (v29 >> 1)) + (double)(int)(v29 & 1 | (v29 >> 1));\nelse\nv12 = (double)(int)v29;\nv13 = v11 / v12;\nif ( (v31 & 0x8000000000000000LL) != 0LL )\nv14 = (double)(int)(v31 & 1 | (v31 >> 1)) + (double)(int)(v31 & 1 | (v31 >> 1));\nelse\nv14 = (double)(int)v31;\nif ( (v32 & 0x8000000000000000LL) != 0LL )\nv15 = (double)(int)(v32 & 1 | (v32 >> 1)) + (double)(int)(v32 & 1 | (v32 >> 1));\nelse\nv15 = (double)(int)v32;\nprintf(\"%.4f\\t%.4f\\n\", v14 / v15, v13);\n}\n}\nelse\n{\nv31 += *((_QWORD *)ptr + j);\nv28 += j * *((_QWORD *)ptr + j);\nif ( (v28 & 0x8000000000000000LL) != 0LL )\nv5 = (double)(int)(v28 & 1 | (v28 >> 1)) + (double)(int)(v28 & 1 | (v28 >> 1));\nelse\nv5 = (double)(int)v28;\nif ( (v29 & 0x8000000000000000LL) != 0LL )\nv6 = (double)(int)(v29 & 1 | (v29 >> 1)) + (double)(int)(v29 & 1 | (v29 >> 1));\nelse\nv6 = (double)(int)v29;\nv7 = v5 / v6;\nif ( (v31 & 0x8000000000000000LL) != 0LL )\nv8 = (double)(int)(v31 & 1 | (v31 >> 1)) + (double)(int)(v31 & 1 | (v31 >> 1));\nelse\nv8 = (double)(int)v31;\nif ( (v32 & 0x8000000000000000LL) != 0LL )\nv9 = (double)(int)(v32 & 1 | (v32 >> 1)) + (double)(int)(v32 & 1 | (v32 >> 1));\nelse\nv9 = (double)(int)v32;\nprintf(\"%.4f\\t%.4f\\n\", v8 / v9, v7);\n}\n++j;\n}\nsub_411D2A(v22);\nsub_4046AD((__int64)v23);\nfree(ptr);\nif ( v27 )\nsub_40FB87((__int64)v27);\nresult = 0LL;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v16,v17,v18,v19,v21,v22,v23,ptr,v25,k,v27,v28,v29,v30,v31,v32,v33,sub_430613,sub_40F80C,sub_40F29E,sub_4030B8,sub_411F78,sub_4170B4,sub_412A69,sub_417875,sub_40F78B,sub_417187,sub_411D2A,sub_4046AD,sub_40FB87,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'argc', 'a2': 'argv', 'v16': 'pos', 'v17': 'tid', 'v18': 'n_plp', 'v19': 'x', 'v21': 'plp', 'v22': 'h', 'v23': 'fp', 'ptr': 'cnt', 'v25': 'c', 'k': 'rest', 'v27': 'bed', 'v28': 'tot_partial', 'v29': 'tot', 'v30': 'cov', 'v31': 'sum_partial', 'v32': 'bed_len', 'v33': 'step', 'sub_430613': 'main_lorenz', 'sub_40F80C': 'bed_read', 'sub_40F29E': 'bed_totlen', 'sub_4030B8': 'bgzf_open', 'sub_411F78': 'bam_hdr_read', 'sub_4170B4': 'bam_plp_init', 'sub_412A69': 'bam_read1', 'sub_417875': 'bam_plp_auto', 'sub_40F78B': 'bed_overlap', 'sub_417187': 'bam_plp_destroy', 'sub_411D2A': 'bam_hdr_destroy', 'sub_4046AD': 'bgzf_close', 'sub_40FB87': 'bed_destroy'}"}
raw_close
cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da
aclements
mtrace
NA
static void raw_close(BlockDriverState *bs) { BDRVRawState *s = bs->opaque; if (s->fd >= 0) { close(s->fd); s->fd = -1; if (s->aligned_buf != NULL) qemu_vfree(s->aligned_buf); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_442330", "function_addr": 4465456, "binary_name": "cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.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, fs:28h"], [5, "mov [rbp+var_8], rax"], [6, "xor eax, eax"], [7, "mov rax, [rbp+var_18]"], [8, "mov rax, [rax+48h]"], [9, "mov [rbp+var_10], rax"], [10, "mov rax, [rbp+var_10]"], [11, "mov eax, [rax]"], [12, "test eax, eax"], [13, "js short loc_442395"], [14, "mov rax, [rbp+var_10]"], [15, "mov eax, [rax]"], [16, "mov edi, eax"], [17, "call _close"], [18, "mov rax, [rbp+var_10]"], [19, "mov dword ptr [rax], 0FFFFFFFFh"], [20, "mov rax, [rbp+var_10]"], [21, "mov rax, [rax+38h]"], [22, "test rax, rax"], [23, "jz short loc_442395"], [24, "mov rax, [rbp+var_10]"], [25, "mov rax, [rax+38h]"], [26, "mov rdi, rax"], [27, "call sub_4060BA"], [28, "nop"], [29, "mov rax, [rbp+var_8]"], [30, "sub rax, fs:28h"], [31, "jz short locret_4423AA"], [32, "call ___stack_chk_fail"], [33, "leave"], [34, "retn"]], "data_dep": [[5, 4], [7, 3], [8, 7], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [14, 9], [15, 14], [16, 15], [18, 9], [19, 18], [20, 9], [21, 19], [21, 20], [22, 21], [23, 22], [24, 9], [25, 19], [25, 24], [26, 25], [29, 5], [30, 29], [31, 30], [34, 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/cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da_cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.jsonl.gz", "strip_func_name": "sub_442330", "query": "\n\n\nunsigned __int64 __fastcall sub_442330(__int64 a1)\n{\n__int64 v2; // [rsp+10h] [rbp-10h]\nunsigned __int64 v3; // [rsp+18h] [rbp-8h]\n\nv3 = __readfsqword(0x28u);\nv2 = *(_QWORD *)(a1 + 72);\nif ( *(int *)v2 >= 0 )\n{\nclose(*(_DWORD *)v2);\n*(_DWORD *)v2 = -1;\nif ( *(_QWORD *)(v2 + 56) )\nsub_4060BA(*(void **)(v2 + 56));\n}\nreturn v3 - __readfsqword(0x28u);\n}\n\n\n\nQ:[a1,v2,sub_442330,sub_4060BA,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'bs', 'v2': 's', 'sub_442330': 'raw_close_0', 'sub_4060BA': 'qemu_vfree'}"}
HUFv07_getDTableDesc
a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821
acama
libxdisasm
NA
static DTableDesc HUFv07_getDTableDesc(const HUFv07_DTable* table) { DTableDesc dtd; memcpy(&dtd, table, sizeof(dtd)); return dtd; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43DC88", "function_addr": 4447368, "binary_name": "a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.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 eax, [rax]"], [5, "mov [rbp+var_4], eax"], [6, "mov eax, [rbp+var_4]"], [7, "pop rbp"], [8, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [7, 0], [8, 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/a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821_a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.jsonl.gz", "strip_func_name": "sub_43DC88", "query": "\n\n\n__int64 __fastcall sub_43DC88(unsigned int *a1)\n{\nreturn *a1;\n}\n\n\n\nQ:[a1,sub_43DC88,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'table', 'sub_43DC88': 'HUFv07_getDTableDesc'}"}
btf_type_visit_str_offs
feda8be2137e1ca53e8082ecae6cfbea19ddaf0e7963aa620ad58be1c3aa369b
intel
kvm-sgx
NA
int btf_type_visit_str_offs(struct btf_type *t, str_off_visit_fn visit, void *ctx) { int i, n, err; err = visit(&t->name_off, ctx); if (err) return err; switch (btf_kind(t)) { case BTF_KIND_STRUCT: case BTF_KIND_UNION: { struct btf_member *m = btf_members(t); for (i = 0, n = btf_vlen(t); i < n; i++, m++) { err = visit(&m->name_off, ctx); if (err) return err; } break; } case BTF_KIND_ENUM: { struct btf_enum *m = btf_enum(t); for (i = 0, n = btf_vlen(t); i < n; i++, m++) { err = visit(&m->name_off, ctx); if (err) return err; } break; } case BTF_KIND_FUNC_PROTO: { struct btf_param *m = btf_params(t); for (i = 0, n = btf_vlen(t); i < n; i++, m++) { err = visit(&m->name_off, ctx); if (err) return err; } break; } default: break; } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42F248", "function_addr": 4387400, "binary_name": "feda8be2137e1ca53e8082ecae6cfbea19ddaf0e7963aa620ad58be1c3aa369b.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 rdx, [rbp+var_48]"], [8, "mov rcx, [rbp+var_40]"], [9, "mov rsi, rdx"], [10, "mov rdi, rax"], [11, "call rcx"], [12, "mov [rbp+var_24], eax"], [13, "cmp [rbp+var_24], 0"], [14, "jz short loc_42F281"], [15, "mov eax, [rbp+var_24]"], [16, "jmp locret_42F3E7"], [17, "mov rax, [rbp+var_38]"], [18, "mov rdi, rax"], [19, "call sub_427027"], [20, "movzx eax, ax"], [21, "cmp eax, 0Dh"], [22, "jz loc_42F381"], [23, "cmp eax, 0Dh"], [24, "jg loc_42F3E1"], [25, "cmp eax, 5"], [26, "jg short loc_42F2B1"], [27, "cmp eax, 4"], [28, "jge short loc_42F2BB"], [29, "jmp loc_42F3E1"], [30, "cmp eax, 6"], [31, "jz short loc_42F321"], [32, "jmp loc_42F3E1"], [33, "mov rax, [rbp+var_38]"], [34, "mov rdi, rax"], [35, "call sub_427253"], [36, "mov [rbp+var_10], rax"], [37, "mov [rbp+var_4], 0"], [38, "mov rax, [rbp+var_38]"], [39, "mov rdi, rax"], [40, "call sub_42703E"], [41, "movzx eax, ax"], [42, "mov [rbp+var_28], eax"], [43, "jmp short loc_42F314"], [44, "mov rax, [rbp+var_10]"], [45, "mov rdx, [rbp+var_48]"], [46, "mov rcx, [rbp+var_40]"], [47, "mov rsi, rdx"], [48, "mov rdi, rax"], [49, "call rcx"], [50, "mov [rbp+var_24], eax"], [51, "cmp [rbp+var_24], 0"], [52, "jz short loc_42F30B"], [53, "mov eax, [rbp+var_24]"], [54, "jmp locret_42F3E7"], [55, "add [rbp+var_4], 1"], [56, "add [rbp+var_10], 0Ch"], [57, "mov eax, [rbp+var_4]"], [58, "cmp eax, [rbp+var_28]"], [59, "jl short loc_42F2E6"], [60, "jmp loc_42F3E2"], [61, "mov rax, [rbp+var_38]"], [62, "mov rdi, rax"], [63, "call sub_427241"], [64, "mov [rbp+var_18], rax"], [65, "mov [rbp+var_4], 0"], [66, "mov rax, [rbp+var_38]"], [67, "mov rdi, rax"], [68, "call sub_42703E"], [69, "movzx eax, ax"], [70, "mov [rbp+var_28], eax"], [71, "jmp short loc_42F377"], [72, "mov rax, [rbp+var_18]"], [73, "mov rdx, [rbp+var_48]"], [74, "mov rcx, [rbp+var_40]"], [75, "mov rsi, rdx"], [76, "mov rdi, rax"], [77, "call rcx"], [78, "mov [rbp+var_24], eax"], [79, "cmp [rbp+var_24], 0"], [80, "jz short loc_42F36E"], [81, "mov eax, [rbp+var_24]"], [82, "jmp short locret_42F3E7"], [83, "add [rbp+var_4], 1"], [84, "add [rbp+var_18], 8"], [85, "mov eax, [rbp+var_4]"], [86, "cmp eax, [rbp+var_28]"], [87, "jl short loc_42F34C"], [88, "jmp short loc_42F3E2"], [89, "mov rax, [rbp+var_38]"], [90, "mov rdi, rax"], [91, "call sub_427265"], [92, "mov [rbp+var_20], rax"], [93, "mov [rbp+var_4], 0"], [94, "mov rax, [rbp+var_38]"], [95, "mov rdi, rax"], [96, "call sub_42703E"], [97, "movzx eax, ax"], [98, "mov [rbp+var_28], eax"], [99, "jmp short loc_42F3D7"], [100, "mov rax, [rbp+var_20]"], [101, "mov rdx, [rbp+var_48]"], [102, "mov rcx, [rbp+var_40]"], [103, "mov rsi, rdx"], [104, "mov rdi, rax"], [105, "call rcx"], [106, "mov [rbp+var_24], eax"], [107, "cmp [rbp+var_24], 0"], [108, "jz short loc_42F3CE"], [109, "mov eax, [rbp+var_24]"], [110, "jmp short locret_42F3E7"], [111, "add [rbp+var_4], 1"], [112, "add [rbp+var_20], 8"], [113, "mov eax, [rbp+var_4]"], [114, "cmp eax, [rbp+var_28]"], [115, "jl short loc_42F3AC"], [116, "jmp short loc_42F3E2"], [117, "nop"], [118, "mov eax, 0"], [119, "leave"], [120, "retn"]], "data_dep": [[6, 3], [7, 5], [8, 4], [9, 7], [10, 6], [11, 8], [12, 11], [13, 12], [14, 13], [15, 12], [17, 3], [18, 17], [20, 19], [21, 20], [22, 21], [23, 20], [24, 23], [25, 20], [26, 25], [27, 20], [28, 27], [30, 20], [31, 30], [33, 3], [34, 33], [36, 35], [38, 3], [39, 38], [41, 40], [42, 41], [44, 36], [44, 56], [45, 5], [46, 4], [47, 45], [48, 44], [49, 46], [50, 49], [51, 50], [52, 51], [53, 50], [55, 37], [55, 55], [56, 36], [56, 56], [57, 37], [57, 55], [58, 42], [58, 57], [59, 58], [61, 3], [62, 61], [64, 63], [66, 3], [67, 66], [69, 68], [70, 69], [72, 84], [72, 64], [73, 5], [74, 4], [75, 73], [76, 72], [77, 74], [78, 77], [79, 78], [80, 79], [81, 78], [83, 65], [83, 83], [84, 84], [84, 64], [85, 65], [85, 83], [86, 85], [86, 70], [87, 86], [89, 3], [90, 89], [92, 91], [94, 3], [95, 94], [97, 96], [98, 97], [100, 92], [100, 112], [101, 5], [102, 4], [103, 101], [104, 100], [105, 102], [106, 105], [107, 106], [108, 107], [109, 106], [111, 93], [111, 111], [112, 92], [112, 112], [113, 93], [113, 111], [114, 113], [114, 98], [115, 114], [120, 81], [120, 53], [120, 15], [120, 109], [120, 118]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/feda8be2137e1ca53e8082ecae6cfbea19ddaf0e7963aa620ad58be1c3aa369b_feda8be2137e1ca53e8082ecae6cfbea19ddaf0e7963aa620ad58be1c3aa369b.jsonl.gz", "strip_func_name": "sub_42F248", "query": "\n\n\n__int64 __fastcall sub_42F248(__int64 a1, __int64 (__fastcall *a2)(__int64, __int64), __int64 a3)\n{\nint v4; // eax\nint v6; // [rsp+28h] [rbp-28h]\nint v7; // [rsp+28h] [rbp-28h]\nint v8; // [rsp+28h] [rbp-28h]\nunsigned int v9; // [rsp+2Ch] [rbp-24h]\nunsigned int v10; // [rsp+2Ch] [rbp-24h]\nunsigned int v11; // [rsp+2Ch] [rbp-24h]\nunsigned int v12; // [rsp+2Ch] [rbp-24h]\n__int64 v13; // [rsp+30h] [rbp-20h]\n__int64 v14; // [rsp+38h] [rbp-18h]\n__int64 v15; // [rsp+40h] [rbp-10h]\nint v16; // [rsp+4Ch] [rbp-4h]\nint v17; // [rsp+4Ch] [rbp-4h]\nint v18; // [rsp+4Ch] [rbp-4h]\n\nv9 = a2(a1, a3);\nif ( v9 )\nreturn v9;\nv4 = (unsigned __int16)sub_427027(a1);\nif ( (unsigned __int16)v4 == 13 )\n{\nv13 = sub_427265(a1);\nv18 = 0;\nv8 = (unsigned __int16)sub_42703E(a1);\nwhile ( v18 < v8 )\n{\nv12 = a2(v13, a3);\nif ( v12 )\nreturn v12;\n++v18;\nv13 += 8LL;\n}\n}\nelse if ( v4 <= 13 )\n{\nif ( v4 > 5 )\n{\nif ( v4 == 6 )\n{\nv14 = sub_427241(a1);\nv17 = 0;\nv7 = (unsigned __int16)sub_42703E(a1);\nwhile ( v17 < v7 )\n{\nv11 = a2(v14, a3);\nif ( v11 )\nreturn v11;\n++v17;\nv14 += 8LL;\n}\n}\n}\nelse if ( v4 >= 4 )\n{\nv15 = sub_427253(a1);\nv16 = 0;\nv6 = (unsigned __int16)sub_42703E(a1);\nwhile ( v16 < v6 )\n{\nv10 = a2(v15, a3);\nif ( v10 )\nreturn v10;\n++v16;\nv15 += 12LL;\n}\n}\n}\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v6,v12,v13,v14,v15,v16,sub_42F248,sub_427027,sub_427265,sub_42703E,sub_427241,sub_427253,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'ctx', 'a1': 't', 'a2': 'visit', 'v6': 'nb', 'v12': 'errb', 'v13': 'm_1', 'v14': 'm_0', 'v15': 'm', 'v16': 'ib', 'sub_42F248': 'btf_type_visit_str_offs', 'sub_427027': 'btf_kind_1', 'sub_427265': 'btf_params_0', 'sub_42703E': 'btf_vlen_0', 'sub_427241': 'btf_enum', 'sub_427253': 'btf_members_0'}"}
DecodeModImmInstruction
23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2
tandasat
cs_driver
NA
static DecodeStatus DecodeModImmInstruction(MCInst *Inst, uint32_t insn, uint64_t Addr, void *Decoder) { unsigned Rd = fieldFromInstruction(insn, 0, 5); unsigned cmode = fieldFromInstruction(insn, 12, 4); unsigned imm = fieldFromInstruction(insn, 16, 3) << 5; imm |= fieldFromInstruction(insn, 5, 5); if (MCInst_getOpcode(Inst) == AArch64_MOVID) DecodeFPR64RegisterClass(Inst, Rd, Addr, Decoder); else DecodeVectorRegisterClass(Inst, Rd, Addr, Decoder); MCOperand_CreateImm0(Inst, imm); switch (MCInst_getOpcode(Inst)) { default: break; case AArch64_MOVIv4i16: case AArch64_MOVIv8i16: case AArch64_MVNIv4i16: case AArch64_MVNIv8i16: case AArch64_MOVIv2i32: case AArch64_MOVIv4i32: case AArch64_MVNIv2i32: case AArch64_MVNIv4i32: MCOperand_CreateImm0(Inst, (cmode & 6) << 2); break; case AArch64_MOVIv2s_msl: case AArch64_MOVIv4s_msl: case AArch64_MVNIv2s_msl: case AArch64_MVNIv4s_msl: MCOperand_CreateImm0(Inst, cmode & 1 ? 0x110 : 0x108); break; } return Success; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_469090", "function_addr": 4624528, "binary_name": "23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_30], rcx"], [7, "mov eax, [rbp+var_1C]"], [8, "mov edx, 5"], [9, "mov esi, 0"], [10, "mov edi, eax"], [11, "call sub_4517D7"], [12, "mov [rbp+var_4], eax"], [13, "mov eax, [rbp+var_1C]"], [14, "mov edx, 4"], [15, "mov esi, 0Ch"], [16, "mov edi, eax"], [17, "call sub_4517D7"], [18, "mov [rbp+var_8], eax"], [19, "mov eax, [rbp+var_1C]"], [20, "mov edx, 3"], [21, "mov esi, 10h"], [22, "mov edi, eax"], [23, "call sub_4517D7"], [24, "shl eax, 5"], [25, "mov [rbp+var_C], eax"], [26, "mov eax, [rbp+var_1C]"], [27, "mov edx, 5"], [28, "mov esi, 5"], [29, "mov edi, eax"], [30, "call sub_4517D7"], [31, "or [rbp+var_C], eax"], [32, "mov rax, [rbp+var_18]"], [33, "mov rdi, rax"], [34, "call sub_4050C9"], [35, "cmp eax, 448h"], [36, "jnz short loc_469132"], [37, "mov rcx, [rbp+var_30]"], [38, "mov rdx, [rbp+var_28]"], [39, "mov esi, [rbp+var_4]"], [40, "mov rax, [rbp+var_18]"], [41, "mov rdi, rax"], [42, "call sub_4672B6"], [43, "jmp short loc_469149"], [44, "mov rcx, [rbp+var_30]"], [45, "mov rdx, [rbp+var_28]"], [46, "mov esi, [rbp+var_4]"], [47, "mov rax, [rbp+var_18]"], [48, "mov rdi, rax"], [49, "call sub_467570"], [50, "mov edx, [rbp+var_C]"], [51, "mov rax, [rbp+var_18]"], [52, "mov rsi, rdx"], [53, "mov rdi, rax"], [54, "call sub_405338"], [55, "mov rax, [rbp+var_18]"], [56, "mov rdi, rax"], [57, "call sub_4050C9"], [58, "sub eax, 44Bh"], [59, "cmp eax, 29h"], [60, "ja short def_469191"], [61, "mov eax, eax"], [62, "lea rdx, ds:0[rax*4]"], [63, "lea rax, jpt_469191"], [64, "mov eax, ds:(jpt_469191 - 511844h)[rdx+rax]"], [65, "cdqe"], [66, "lea rdx, jpt_469191"], [67, "add rax, rdx"], [68, "jmp rax"], [69, "mov eax, [rbp+var_8]"], [70, "shl eax, 2"], [71, "mov eax, eax"], [72, "and eax, 18h"], [73, "mov rdx, rax"], [74, "mov rax, [rbp+var_18]"], [75, "mov rsi, rdx"], [76, "mov rdi, rax"], [77, "call sub_405338"], [78, "jmp short loc_4691DA"], [79, "mov eax, [rbp+var_8]"], [80, "and eax, 1"], [81, "test eax, eax"], [82, "jz short loc_4691C3"], [83, "mov edx, 110h"], [84, "jmp short loc_4691C8"], [85, "mov edx, 108h"], [86, "mov rax, [rbp+var_18]"], [87, "mov rsi, rdx"], [88, "mov rdi, rax"], [89, "call sub_405338"], [90, "jmp short loc_4691DA"], [91, "nop"], [92, "mov eax, 3"], [93, "leave"], [94, "retn"]], "data_dep": [[7, 4], [10, 7], [12, 11], [13, 4], [16, 13], [18, 17], [19, 4], [22, 19], [24, 23], [25, 24], [26, 4], [29, 26], [31, 25], [31, 30], [32, 3], [33, 32], [35, 34], [36, 35], [37, 6], [38, 5], [39, 12], [40, 3], [41, 40], [44, 6], [45, 5], [46, 12], [47, 3], [48, 47], [50, 31], [51, 3], [52, 50], [53, 51], [55, 3], [56, 55], [58, 57], [59, 58], [60, 59], [61, 58], [62, 50], [63, 61], [66, 62], [67, 64], [67, 66], [68, 67], [69, 18], [70, 69], [71, 70], [72, 71], [73, 72], [74, 3], [75, 73], [76, 74], [79, 18], [80, 79], [81, 80], [82, 81], [86, 3], [87, 83], [87, 85], [88, 86], [94, 92]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n 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_469090", "query": "\n\n\n__int64 __fastcall sub_469090(__int64 a1, unsigned int a2)\n{\n__int64 v2; // rdx\nint v4; // [rsp+24h] [rbp-Ch]\nunsigned int v5; // [rsp+24h] [rbp-Ch]\nchar v6; // [rsp+28h] [rbp-8h]\nunsigned int v7; // [rsp+2Ch] [rbp-4h]\n\nv7 = sub_4517D7(a2, 0, 5);\nv6 = sub_4517D7(a2, 12, 4);\nv4 = 32 * sub_4517D7(a2, 16, 3);\nv5 = sub_4517D7(a2, 5, 5) | v4;\nif ( (unsigned int)sub_4050C9(a1) == 1096 )\nsub_4672B6(a1, v7);\nelse\nsub_467570(a1, v7);\nsub_405338(a1, v5);\nswitch ( (unsigned int)sub_4050C9(a1) )\n{\ncase 0x44Bu:\ncase 0x44Du:\ncase 0x44Eu:\ncase 0x451u:\ncase 0x46Fu:\ncase 0x471u:\ncase 0x472u:\ncase 0x474u:\nsub_405338(a1, (4 * v6) & 0x18);\nbreak;\ncase 0x44Cu:\ncase 0x44Fu:\ncase 0x470u:\ncase 0x473u:\nif ( (v6 & 1) != 0 )\nv2 = 272LL;\nelse\nv2 = 264LL;\nsub_405338(a1, v2);\nbreak;\ndefault:\nreturn 3LL;\n}\nreturn 3LL;\n}\n\n\n\nQ:[a1,a2,v4,v6,v7,sub_469090,sub_4517D7,sub_4050C9,sub_4672B6,sub_467570,sub_405338,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'Inst', 'a2': 'insn', 'v4': 'imma', 'v6': 'cmode', 'v7': 'Rd', 'sub_469090': 'DecodeModImmInstruction', 'sub_4517D7': 'fieldFromInstruction', 'sub_4050C9': 'MCInst_getOpcode', 'sub_4672B6': 'DecodeFPR64RegisterClass', 'sub_467570': 'DecodeVectorRegisterClass', 'sub_405338': 'MCOperand_CreateImm0'}"}
ZSTDv05_copy4
a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821
acama
libxdisasm
NA
static void ZSTDv05_copy4(void* dst, const void* src) { memcpy(dst, src, 4); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_431843", "function_addr": 4397123, "binary_name": "a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_10], rsi"], [4, "mov rax, [rbp+var_10]"], [5, "mov edx, [rax]"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rax], edx"], [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/a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821_a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.jsonl.gz", "strip_func_name": "sub_431843", "query": "\n\n\n_DWORD *__fastcall sub_431843(_DWORD *a1, _DWORD *a2)\n{\n_DWORD *result; // rax\n\nresult = a1;\n*a1 = *a2;\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_431843,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dst', 'a2': 'src', 'sub_431843': 'ZSTDv05_copy4'}"}
Stack_pop
67d5b516845f1a5189b619fa08251f200ed0c551fc567a5346241564c352debb
cirosantilli
cpp-cheat
NA
int Stack_pop(Stack *stack, void *elem) { if (stack->nelems == 0) return 1; stack->nelems--; memcpy(elem, &((uint8_t *)(stack->data))[stack->nelems * stack->elem_size], stack->elem_size); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401287", "function_addr": 4199047, "binary_name": "67d5b516845f1a5189b619fa08251f200ed0c551fc567a5346241564c352debb.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+dest], rsi"], [5, "mov rax, [rbp+var_8]"], [6, "mov rax, [rax+8]"], [7, "test rax, rax"], [8, "jnz short loc_4012AB"], [9, "mov eax, 1"], [10, "jmp short locret_4012FA"], [11, "mov rax, [rbp+var_8]"], [12, "mov rax, [rax+8]"], [13, "lea rdx, [rax-1]"], [14, "mov rax, [rbp+var_8]"], [15, "mov [rax+8], rdx"], [16, "mov rax, [rbp+var_8]"], [17, "mov rdx, [rax+10h]"], [18, "mov rax, [rbp+var_8]"], [19, "mov rsi, [rax]"], [20, "mov rax, [rbp+var_8]"], [21, "mov rcx, [rax+8]"], [22, "mov rax, [rbp+var_8]"], [23, "mov rax, [rax+10h]"], [24, "imul rax, rcx"], [25, "lea rcx, [rsi+rax]"], [26, "mov rax, [rbp+dest]"], [27, "mov rsi, rcx"], [28, "mov rdi, rax"], [29, "call _memcpy"], [30, "mov eax, 0"], [31, "leave"], [32, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [11, 3], [12, 11], [13, 12], [14, 3], [15, 14], [15, 13], [16, 3], [17, 15], [17, 16], [18, 3], [19, 18], [19, 15], [20, 3], [21, 15], [21, 20], [22, 3], [23, 22], [23, 15], [24, 23], [24, 21], [25, 15], [25, 21], [25, 24], [26, 4], [27, 25], [28, 26], [32, 9], [32, 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/67d5b516845f1a5189b619fa08251f200ed0c551fc567a5346241564c352debb_67d5b516845f1a5189b619fa08251f200ed0c551fc567a5346241564c352debb.jsonl.gz", "strip_func_name": "sub_401287", "query": "\n\n\n__int64 __fastcall sub_401287(_QWORD *a1, void *a2)\n{\nif ( !a1[1] )\nreturn 1LL;\nmemcpy(a2, (const void *)(*a1 + --a1[1] * a1[2]), a1[2]);\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,sub_401287,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'stack', 'a2': 'elem', 'sub_401287': 'Stack_pop'}"}
dm_msg_cache_deinit
9bbc9de5dd57f4f934e24f9b8a7ac1dacad3c7a25e14002cbd8d0494c83f5fb1
Ai-Thinker-Open
GPRS_C_SDK
NA
int dm_msg_cache_deinit(void) { dm_msg_cache_ctx_t *ctx = _dm_msg_cache_get_ctx(); dm_msg_cache_node_t *node = NULL; dm_msg_cache_node_t *next = NULL; _dm_msg_cache_mutex_lock(); list_for_each_entry_safe(node, next, &ctx->dmc_list, linked_list, dm_msg_cache_node_t) { list_del(&node->linked_list); if (node->data) { DM_free(node->data); } DM_free(node); _dm_msg_cache_mutex_unlock(); } _dm_msg_cache_mutex_unlock(); if (ctx->mutex) { HAL_MutexDestroy(ctx->mutex); } return SUCCESS_RETURN; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "dm_msg_cache_deinit", "function_addr": 4335462, "binary_name": "9bbc9de5dd57f4f934e24f9b8a7ac1dacad3c7a25e14002cbd8d0494c83f5fb1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "call _dm_msg_cache_get_ctx"], [4, "mov [rbp+var_18], rax"], [5, "mov [rbp+var_8], 0"], [6, "mov [rbp+var_10], 0"], [7, "call sub_4226AB"], [8, "mov rax, [rbp+var_18]"], [9, "mov rax, [rax+18h]"], [10, "sub rax, 20h "], [11, "mov [rbp+var_8], rax"], [12, "mov rax, [rbp+var_8]"], [13, "mov rax, [rax+28h]"], [14, "sub rax, 20h "], [15, "mov [rbp+var_10], rax"], [16, "jmp loc_4228B5"], [17, "mov rax, [rbp+var_8]"], [18, "add rax, 20h "], [19, "mov rdi, rax"], [20, "call sub_422645"], [21, "mov rax, [rbp+var_8]"], [22, "mov rax, [rax+10h]"], [23, "test rax, rax"], [24, "jz short loc_42283C"], [25, "mov rax, [rbp+var_8]"], [26, "mov rax, [rax+10h]"], [27, "test rax, rax"], [28, "jnz short loc_422814"], [29, "sub rsp, 8"], [30, "push offset aNodeData"], [31, "mov r9d, offset aNodeData"], [32, "mov r8d, offset aSNullLiteFreeS_7"], [33, "mov ecx, 3"], [34, "mov edx, 3Ah "], [35, "mov esi, offset aDmMsgCacheDein_0"], [36, "mov edi, offset aUtils_8"], [37, "mov eax, 0"], [38, "call LITE_syslog"], [39, "add rsp, 10h"], [40, "jmp short loc_422830"], [41, "mov rax, [rbp+var_8]"], [42, "mov rax, [rax+10h]"], [43, "mov rdi, rax"], [44, "call LITE_free_internal"], [45, "mov rax, [rbp+var_8]"], [46, "mov qword ptr [rax+10h], 0"], [47, "mov rax, [rbp+var_8]"], [48, "mov qword ptr [rax+10h], 0"], [49, "cmp [rbp+var_8], 0"], [50, "jnz short loc_42287C"], [51, "sub rsp, 8"], [52, "push offset aNode_1"], [53, "mov r9d, offset aNode_1"], [54, "mov r8d, offset aSNullLiteFreeS_7"], [55, "mov ecx, 3"], [56, "mov edx, 3Ch "], [57, "mov esi, offset aDmMsgCacheDein_0"], [58, "mov edi, offset aUtils_8"], [59, "mov eax, 0"], [60, "call LITE_syslog"], [61, "add rsp, 10h"], [62, "jmp short loc_422890"], [63, "mov rax, [rbp+var_8]"], [64, "mov rdi, rax"], [65, "call LITE_free_internal"], [66, "mov [rbp+var_8], 0"], [67, "mov [rbp+var_8], 0"], [68, "call sub_4226DA"], [69, "mov rax, [rbp+var_10]"], [70, "mov [rbp+var_8], rax"], [71, "mov rax, [rbp+var_10]"], [72, "mov rax, [rax+28h]"], [73, "sub rax, 20h "], [74, "mov [rbp+var_10], rax"], [75, "mov rax, [rbp+var_8]"], [76, "lea rdx, [rax+20h]"], [77, "mov rax, [rbp+var_18]"], [78, "add rax, 10h"], [79, "cmp rdx, rax"], [80, "jnz loc_4227B1"], [81, "call sub_4226DA"], [82, "mov rax, [rbp+var_18]"], [83, "mov rax, [rax]"], [84, "test rax, rax"], [85, "jz short loc_4228EE"], [86, "mov rax, [rbp+var_18]"], [87, "mov rax, [rax]"], [88, "mov rdi, rax"], [89, "call HAL_MutexDestroy"], [90, "mov eax, 0"], [91, "leave"], [92, "retn"]], "data_dep": [[4, 3], [8, 4], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [14, 13], [15, 14], [17, 11], [17, 70], [18, 17], [19, 18], [21, 11], [21, 70], [22, 46], [22, 21], [22, 48], [23, 22], [24, 23], [25, 11], [25, 70], [26, 25], [26, 48], [26, 46], [27, 26], [28, 27], [29, 61], [29, 39], [29, 2], [39, 29], [41, 11], [41, 70], [42, 48], [42, 41], [42, 46], [43, 42], [45, 11], [45, 70], [46, 45], [47, 11], [47, 70], [48, 47], [49, 11], [49, 70], [50, 49], [51, 2], [51, 61], [51, 39], [61, 51], [63, 70], [63, 11], [64, 63], [69, 74], [69, 15], [70, 69], [71, 15], [71, 74], [72, 46], [72, 48], [72, 71], [73, 72], [74, 73], [75, 11], [75, 70], [76, 56], [76, 46], [76, 76], [76, 48], [76, 34], [76, 75], [77, 4], [78, 77], [79, 76], [79, 78], [80, 79], [82, 4], [83, 82], [83, 48], [83, 46], [84, 83], [85, 84], [86, 4], [87, 48], [87, 86], [87, 46], [88, 87], [92, 90]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/9bbc9de5dd57f4f934e24f9b8a7ac1dacad3c7a25e14002cbd8d0494c83f5fb1_9bbc9de5dd57f4f934e24f9b8a7ac1dacad3c7a25e14002cbd8d0494c83f5fb1.jsonl.gz", "strip_func_name": "dm_msg_cache_deinit", "query": "\n\n\n__int64 dm_msg_cache_deinit()\n{\n_QWORD *v1; // [rsp+8h] [rbp-18h]\n__int64 v2; // [rsp+10h] [rbp-10h]\n_QWORD *v3; // [rsp+18h] [rbp-8h]\n\nv1 = dm_msg_cache_get_ctx();\nsub_4226AB();\nv3 = (_QWORD *)(v1[3] - 32LL);\nv2 = v3[5] - 32LL;\nwhile ( v3 + 4 != v1 + 2 )\n{\nsub_422645(v3 + 4);\nif ( v3[2] )\n{\nLITE_free_internal(v3[2]);\nv3[2] = 0LL;\nv3[2] = 0LL;\n}\nif ( v3 )\nLITE_free_internal(v3);\nelse\nLITE_syslog(\n(unsigned int)\"utils\",\n(unsigned int)\"dm_msg_cache_deinit\",\n60,\n3,\n(unsigned int)\"%s == NULL! LITE_free(%s) aborted.\",\n(unsigned int)\"node\",\n\"node\");\nsub_4226DA();\nv3 = (_QWORD *)v2;\nv2 = *(_QWORD *)(v2 + 40) - 32LL;\n}\nsub_4226DA();\nif ( *v1 )\nHAL_MutexDestroy(*v1);\nreturn 0LL;\n}\n\n\n\nQ:[v1,v2,v3,sub_4226AB,sub_422645,sub_4226DA,]\nAssistant: ", "hints": "[]", "response": "{'v1': 'ctx', 'v2': 'next', 'v3': 'node', 'sub_4226AB': '_dm_msg_cache_mutex_lock', 'sub_422645': 'dlist_del_1', 'sub_4226DA': '_dm_msg_cache_mutex_unlock'}"}
check64_cb
0dcdc633414e45d27b838a1fde0e9f4d9b83ef1ae00c4d7b391a0b48d531666e
google
honggfuzz
NA
static int check64_cb(struct dl_phdr_info* info, void* data, unsigned elf_flags) { const uint64_t v = *(const uint64_t*)data; for (size_t i = 0; i < info->dlpi_phnum; i++) { /* Look only in the actual binary, and not in libraries */ if (info->dlpi_name[0] != '\0') { continue; } if (info->dlpi_phdr[i].p_type != PT_LOAD) { continue; } if ((info->dlpi_phdr[i].p_flags & elf_flags) != elf_flags) { continue; } uint64_t* start = (uint64_t*)(info->dlpi_addr + info->dlpi_phdr[i].p_vaddr); uint64_t* end = (uint64_t*)(info->dlpi_addr + info->dlpi_phdr[i].p_vaddr + HF_MIN(info->dlpi_phdr[i].p_memsz, info->dlpi_phdr[i].p_filesz)); /* Assume that the 64bit value looked for is also 64bit aligned */ for (; start < end; start++) { if (*start == v) { return 1; } } } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407820", "function_addr": 4225056, "binary_name": "0dcdc633414e45d27b838a1fde0e9f4d9b83ef1ae00c4d7b391a0b48d531666e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_28], rdi"], [3, "mov [rbp+var_30], rsi"], [4, "mov [rbp+var_34], edx"], [5, "mov rax, [rbp+var_30]"], [6, "mov rax, [rax]"], [7, "mov [rbp+var_18], rax"], [8, "mov [rbp+var_8], 0"], [9, "jmp loc_40798C"], [10, "mov rax, [rbp+var_28]"], [11, "mov rax, [rax+8]"], [12, "movzx eax, byte ptr [rax]"], [13, "test al, al"], [14, "jnz loc_407980"], [15, "mov rax, [rbp+var_28]"], [16, "mov rcx, [rax+10h]"], [17, "mov rdx, [rbp+var_8]"], [18, "mov rax, rdx"], [19, "shl rax, 3"], [20, "sub rax, rdx"], [21, "shl rax, 3"], [22, "add rax, rcx"], [23, "mov eax, [rax]"], [24, "cmp eax, 1"], [25, "jnz loc_407983"], [26, "mov rax, [rbp+var_28]"], [27, "mov rcx, [rax+10h]"], [28, "mov rdx, [rbp+var_8]"], [29, "mov rax, rdx"], [30, "shl rax, 3"], [31, "sub rax, rdx"], [32, "shl rax, 3"], [33, "add rax, rcx"], [34, "mov eax, [rax+4]"], [35, "and eax, [rbp+var_34]"], [36, "cmp [rbp+var_34], eax"], [37, "jnz loc_407986"], [38, "mov rax, [rbp+var_28]"], [39, "mov rcx, [rax]"], [40, "mov rax, [rbp+var_28]"], [41, "mov rsi, [rax+10h]"], [42, "mov rdx, [rbp+var_8]"], [43, "mov rax, rdx"], [44, "shl rax, 3"], [45, "sub rax, rdx"], [46, "shl rax, 3"], [47, "add rax, rsi"], [48, "mov rax, [rax+10h]"], [49, "add rax, rcx"], [50, "mov [rbp+var_10], rax"], [51, "mov rax, [rbp+var_28]"], [52, "mov rcx, [rax]"], [53, "mov rax, [rbp+var_28]"], [54, "mov rsi, [rax+10h]"], [55, "mov rdx, [rbp+var_8]"], [56, "mov rax, rdx"], [57, "shl rax, 3"], [58, "sub rax, rdx"], [59, "shl rax, 3"], [60, "add rax, rsi"], [61, "mov rax, [rax+10h]"], [62, "lea rdi, [rcx+rax]"], [63, "mov rax, [rbp+var_28]"], [64, "mov rcx, [rax+10h]"], [65, "mov rdx, [rbp+var_8]"], [66, "mov rax, rdx"], [67, "shl rax, 3"], [68, "sub rax, rdx"], [69, "shl rax, 3"], [70, "add rax, rcx"], [71, "mov rdx, [rax+20h]"], [72, "mov rax, [rbp+var_28]"], [73, "mov rsi, [rax+10h]"], [74, "mov rcx, [rbp+var_8]"], [75, "mov rax, rcx"], [76, "shl rax, 3"], [77, "sub rax, rcx"], [78, "shl rax, 3"], [79, "add rax, rsi"], [80, "mov rax, [rax+28h]"], [81, "cmp rdx, rax"], [82, "cmovbe rax, rdx"], [83, "add rax, rdi"], [84, "mov [rbp+var_20], rax"], [85, "jmp short loc_407974"], [86, "mov rax, [rbp+var_10]"], [87, "mov rax, [rax]"], [88, "cmp [rbp+var_18], rax"], [89, "jnz short loc_40796F"], [90, "mov eax, 1"], [91, "jmp short loc_4079A6"], [92, "add [rbp+var_10], 8"], [93, "mov rax, [rbp+var_10]"], [94, "cmp rax, [rbp+var_20]"], [95, "jb short loc_40795B"], [96, "jmp short loc_407987"], [97, "nop"], [98, "jmp short loc_407987"], [99, "nop"], [100, "jmp short loc_407987"], [101, "nop"], [102, "add [rbp+var_8], 1"], [103, "mov rax, [rbp+var_28]"], [104, "movzx eax, word ptr [rax+18h]"], [105, "movzx eax, ax"], [106, "cmp [rbp+var_8], rax"], [107, "jb loc_407847"], [108, "mov eax, 0"], [109, "pop rbp"], [110, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [10, 2], [11, 10], [12, 11], [13, 12], [14, 13], [15, 2], [16, 15], [17, 102], [17, 8], [18, 17], [19, 18], [20, 17], [20, 19], [21, 20], [22, 21], [22, 16], [23, 22], [24, 23], [25, 24], [26, 2], [27, 26], [28, 102], [28, 8], [29, 28], [30, 29], [31, 28], [31, 30], [32, 31], [33, 32], [33, 27], [34, 33], [35, 4], [35, 34], [36, 4], [36, 35], [37, 36], [38, 2], [39, 38], [40, 2], [41, 40], [42, 102], [42, 8], [43, 42], [44, 43], [45, 42], [45, 44], [46, 45], [47, 41], [47, 46], [48, 47], [49, 39], [49, 48], [50, 49], [51, 2], [52, 51], [53, 2], [54, 53], [55, 8], [55, 102], [56, 55], [57, 56], [58, 55], [58, 57], [59, 58], [60, 59], [60, 54], [61, 60], [62, 62], [62, 61], [63, 2], [64, 63], [65, 8], [65, 102], [66, 65], [67, 66], [68, 65], [68, 67], [69, 68], [70, 64], [70, 69], [71, 70], [72, 2], [73, 72], [74, 8], [74, 102], [75, 74], [76, 75], [77, 76], [77, 74], [78, 77], [79, 78], [79, 73], [80, 79], [81, 71], [81, 80], [82, 81], [82, 71], [83, 62], [83, 82], [84, 83], [86, 92], [86, 50], [87, 86], [88, 87], [88, 7], [89, 88], [92, 92], [92, 50], [93, 50], [93, 92], [94, 84], [94, 93], [95, 94], [102, 8], [102, 102], [103, 2], [104, 103], [105, 104], [106, 8], [106, 102], [106, 105], [107, 106], [109, 0], [110, 90], [110, 108]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/0dcdc633414e45d27b838a1fde0e9f4d9b83ef1ae00c4d7b391a0b48d531666e_0dcdc633414e45d27b838a1fde0e9f4d9b83ef1ae00c4d7b391a0b48d531666e.jsonl.gz", "strip_func_name": "sub_407820", "query": "\n\n\n__int64 __fastcall sub_407820(__int64 a1, _QWORD *a2, int a3)\n{\nunsigned __int64 v3; // rax\n_QWORD *v5; // [rsp+24h] [rbp-10h]\nunsigned __int64 i; // [rsp+2Ch] [rbp-8h]\n\nfor ( i = 0LL; i < *(unsigned __int16 *)(a1 + 24); ++i )\n{\nif ( !**(_BYTE **)(a1 + 8)\n&& *(_DWORD *)(*(_QWORD *)(a1 + 16) + 56 * i) == 1\n&& a3 == (a3 & *(_DWORD *)(*(_QWORD *)(a1 + 16) + 56 * i + 4)) )\n{\nv5 = (_QWORD *)(*(_QWORD *)a1 + *(_QWORD *)(*(_QWORD *)(a1 + 16) + 56 * i + 16));\nv3 = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 56 * i + 40);\nif ( *(_QWORD *)(*(_QWORD *)(a1 + 16) + 56 * i + 32) <= v3 )\nv3 = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 56 * i + 32);\nwhile ( (unsigned __int64)v5 < *(_QWORD *)a1 + *(_QWORD *)(*(_QWORD *)(a1 + 16) + 56 * i + 16) + v3 )\n{\nif ( *a2 == *v5 )\nreturn 1LL;\n++v5;\n}\n}\n}\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v5,sub_407820,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'elf_flags', 'a1': 'info', 'a2': 'data', 'v5': 'start', 'sub_407820': 'check64_cb'}"}
addConstrChildIdxDeps
c554d64d8507512ec7c5460397d7e8fd60edb662d620824236cdfae536ce1f50
sraoss
pgsql-ivm
NA
static void addConstrChildIdxDeps(DumpableObject *dobj, const IndxInfo *refidx) { SimplePtrListCell *cell; Assert(dobj->objType == DO_FK_CONSTRAINT); for (cell = refidx->partattaches.head; cell; cell = cell->next) { IndexAttachInfo *attach = (IndexAttachInfo *) cell->ptr; addObjectDependency(dobj, attach->dobj.dumpId); if (attach->partitionIdx->partattaches.head != NULL) addConstrChildIdxDeps(dobj, attach->partitionIdx); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414F7C", "function_addr": 4280188, "binary_name": "c554d64d8507512ec7c5460397d7e8fd60edb662d620824236cdfae536ce1f50.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_20]"], [6, "mov rax, [rax+88h]"], [7, "mov [rbp+var_8], rax"], [8, "jmp short loc_414FF4"], [9, "mov rax, [rbp+var_8]"], [10, "mov rax, [rax+8]"], [11, "mov [rbp+var_10], rax"], [12, "mov rax, [rbp+var_10]"], [13, "mov edx, [rax+0Ch]"], [14, "mov rax, [rbp+var_18]"], [15, "mov esi, edx"], [16, "mov rdi, rax"], [17, "call sub_4324D6"], [18, "mov rax, [rbp+var_10]"], [19, "mov rax, [rax+48h]"], [20, "mov rax, [rax+88h]"], [21, "test rax, rax"], [22, "jz short loc_414FE9"], [23, "mov rax, [rbp+var_10]"], [24, "mov rdx, [rax+48h]"], [25, "mov rax, [rbp+var_18]"], [26, "mov rsi, rdx"], [27, "mov rdi, rax"], [28, "call sub_414F7C"], [29, "mov rax, [rbp+var_8]"], [30, "mov rax, [rax]"], [31, "mov [rbp+var_8], rax"], [32, "cmp [rbp+var_8], 0"], [33, "jnz short loc_414F9D"], [34, "nop"], [35, "nop"], [36, "leave"], [37, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [9, 7], [9, 31], [10, 9], [11, 10], [12, 11], [13, 12], [14, 3], [15, 13], [16, 14], [18, 11], [19, 18], [20, 19], [21, 20], [22, 21], [23, 11], [24, 23], [25, 3], [26, 24], [27, 25], [29, 7], [29, 31], [30, 29], [31, 30], [32, 31], [32, 7], [33, 32], [37, 6], [37, 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/c554d64d8507512ec7c5460397d7e8fd60edb662d620824236cdfae536ce1f50_c554d64d8507512ec7c5460397d7e8fd60edb662d620824236cdfae536ce1f50.jsonl.gz", "strip_func_name": "sub_414F7C", "query": "\n\n\n_QWORD *__fastcall sub_414F7C(__int64 a1, __int64 a2)\n{\n_QWORD *result; // rax\n__int64 v3; // [rsp+10h] [rbp-10h]\n_QWORD *i; // [rsp+18h] [rbp-8h]\n\nresult = *(_QWORD **)(a2 + 136);\nfor ( i = result; i; i = (_QWORD *)*i )\n{\nv3 = i[1];\nsub_4324D6(a1, *(unsigned int *)(v3 + 12));\nif ( *(_QWORD *)(*(_QWORD *)(v3 + 72) + 136LL) )\nsub_414F7C(a1, *(_QWORD *)(v3 + 72));\nresult = (_QWORD *)*i;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v3,i,sub_414F7C,sub_4324D6,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dobj', 'a2': 'refidx', 'v3': 'attach', 'i': 'cell', 'sub_414F7C': 'addConstrChildIdxDeps', 'sub_4324D6': 'addObjectDependency'}"}
zrhhdr
d684d0e103b0580db997ecc931a42fce8955cefc27bedc1ac56a24d435bd8eaf
siemens
meta-iot2000
NA
static int zrhhdr(char *hdr) { register int c; register unsigned short crc; register int n; if ((c = zgethex()) < 0) return c; Rxtype = c; crc = updcrc(c, 0); for (n=4; --n >= 0; ++hdr) { if ((c = zgethex()) < 0) return c; crc = updcrc(c, crc); *hdr = c; } if ((c = zgethex()) < 0) return c; crc = updcrc(c, crc); if ((c = zgethex()) < 0) return c; crc = updcrc(c, crc); if (crc & 0xFFFF) { zperr(badcrc); return ERROR; } switch ( c = READLINE_PF(1)) { case 0215: /* **** FALL THRU TO **** */ case 015: /* Throw away possible cr/lf */ READLINE_PF(1); break; } protocol = ZM_ZMODEM; zmodem_requested=TRUE; return Rxtype; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B396", "function_addr": 4240278, "binary_name": "d684d0e103b0580db997ecc931a42fce8955cefc27bedc1ac56a24d435bd8eaf.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r13"], [3, "push r12"], [4, "push rbx"], [5, "sub rsp, 18h"], [6, "mov [rbp+var_28], rdi"], [7, "call sub_4099CA"], [8, "mov ebx, eax"], [9, "test ebx, ebx"], [10, "jns short loc_40B3B9"], [11, "mov eax, ebx"], [12, "jmp loc_40B55E"], [13, "mov cs:dword_415304, ebx"], [14, "movzx eax, cs:word_412340"], [15, "mov edx, eax"], [16, "mov eax, ebx"], [17, "xor eax, edx"], [18, "mov r12d, eax"], [19, "mov r13d, 4"], [20, "jmp short loc_40B41F"], [21, "call sub_4099CA"], [22, "mov ebx, eax"], [23, "test ebx, ebx"], [24, "jns short loc_40B3E9"], [25, "mov eax, ebx"], [26, "jmp loc_40B55E"], [27, "mov eax, r12d"], [28, "shr ax, 8"], [29, "movzx eax, ax"], [30, "movzx eax, al"], [31, "cdqe"], [32, "movzx eax, word_412340[rax+rax]"], [33, "mov edx, eax"], [34, "movzx eax, r12w"], [35, "shl eax, 8"], [36, "xor eax, edx"], [37, "mov edx, ebx"], [38, "xor eax, edx"], [39, "mov r12d, eax"], [40, "mov edx, ebx"], [41, "mov rax, [rbp+var_28]"], [42, "mov [rax], dl"], [43, "add [rbp+var_28], 1"], [44, "sub r13d, 1"], [45, "test r13d, r13d"], [46, "jns short loc_40B3D7"], [47, "call sub_4099CA"], [48, "mov ebx, eax"], [49, "test ebx, ebx"], [50, "jns short loc_40B43A"], [51, "mov eax, ebx"], [52, "jmp loc_40B55E"], [53, "mov eax, r12d"], [54, "shr ax, 8"], [55, "movzx eax, ax"], [56, "movzx eax, al"], [57, "cdqe"], [58, "movzx eax, word_412340[rax+rax]"], [59, "mov edx, eax"], [60, "movzx eax, r12w"], [61, "shl eax, 8"], [62, "xor eax, edx"], [63, "mov edx, ebx"], [64, "xor eax, edx"], [65, "mov r12d, eax"], [66, "call sub_4099CA"], [67, "mov ebx, eax"], [68, "test ebx, ebx"], [69, "jns short loc_40B475"], [70, "mov eax, ebx"], [71, "jmp loc_40B55E"], [72, "mov eax, r12d"], [73, "shr ax, 8"], [74, "movzx eax, ax"], [75, "movzx eax, al"], [76, "cdqe"], [77, "movzx eax, word_412340[rax+rax]"], [78, "mov edx, eax"], [79, "movzx eax, r12w"], [80, "shl eax, 8"], [81, "xor eax, edx"], [82, "mov edx, ebx"], [83, "xor eax, edx"], [84, "mov r12d, eax"], [85, "test r12w, r12w"], [86, "jz short loc_40B4BD"], [87, "mov edi, offset aBadCrc"], [88, "mov eax, 0"], [89, "call sub_40B7FC"], [90, "mov eax, 0FFFFFFFFh"], [91, "jmp loc_40B55E"], [92, "mov eax, cs:dword_415480"], [93, "sub eax, 1"], [94, "mov cs:dword_415480, eax"], [95, "mov eax, cs:dword_415480"], [96, "test eax, eax"], [97, "js short loc_40B4F3"], [98, "mov rax, cs:qword_415488"], [99, "lea rdx, [rax+1]"], [100, "mov cs:qword_415488, rdx"], [101, "movzx eax, byte ptr [rax]"], [102, "movsx eax, al"], [103, "movzx eax, al"], [104, "jmp short loc_40B4FD"], [105, "mov edi, 1"], [106, "call sub_40BAEB"], [107, "mov ebx, eax"], [108, "cmp ebx, 0Dh"], [109, "jz short loc_40B50C"], [110, "cmp ebx, 8Dh"], [111, "jnz short loc_40B544"], [112, "mov eax, cs:dword_415480"], [113, "sub eax, 1"], [114, "mov cs:dword_415480, eax"], [115, "mov eax, cs:dword_415480"], [116, "test eax, eax"], [117, "js short loc_40B539"], [118, "mov rax, cs:qword_415488"], [119, "add rax, 1"], [120, "mov cs:qword_415488, rax"], [121, "jmp short loc_40B543"], [122, "mov edi, 1"], [123, "call sub_40BAEB"], [124, "nop"], [125, "mov cs:dword_412FF4, 2"], [126, "mov cs:dword_412FFC, 1"], [127, "mov eax, cs:dword_415304"], [128, "add rsp, 18h"], [129, "pop rbx"], [130, "pop r12"], [131, "pop r13"], [132, "pop rbp"], [133, "retn"]], "data_dep": [[8, 7], [9, 8], [10, 9], [11, 9], [13, 9], [15, 14], [16, 9], [17, 16], [17, 15], [18, 17], [22, 21], [23, 22], [24, 23], [25, 23], [27, 39], [27, 18], [28, 27], [29, 28], [30, 29], [33, 32], [34, 18], [34, 39], [35, 34], [36, 33], [36, 35], [37, 23], [38, 36], [38, 37], [39, 38], [40, 23], [41, 43], [41, 6], [42, 41], [42, 40], [43, 43], [43, 6], [44, 45], [44, 19], [45, 44], [46, 45], [48, 47], [49, 48], [50, 49], [51, 49], [53, 18], [53, 39], [54, 53], [55, 54], [56, 55], [59, 58], [60, 39], [60, 18], [61, 60], [62, 59], [62, 61], [63, 49], [64, 62], [64, 63], [65, 64], [67, 66], [68, 67], [69, 68], [70, 68], [72, 65], [73, 72], [74, 73], [75, 74], [78, 77], [79, 65], [80, 79], [81, 78], [81, 80], [82, 68], [83, 82], [83, 81], [84, 83], [85, 84], [86, 85], [93, 92], [94, 93], [95, 94], [96, 95], [97, 96], [99, 42], [99, 98], [99, 82], [100, 99], [101, 42], [101, 98], [102, 101], [103, 102], [107, 106], [107, 103], [108, 107], [109, 108], [110, 107], [111, 110], [112, 94], [113, 112], [114, 113], [115, 114], [116, 115], [117, 116], [118, 100], [119, 118], [120, 119], [127, 13], [128, 5], [129, 4], [130, 3], [131, 2], [132, 0], [133, 70], [133, 127], [133, 51], [133, 90], [133, 25], [133, 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/d684d0e103b0580db997ecc931a42fce8955cefc27bedc1ac56a24d435bd8eaf_d684d0e103b0580db997ecc931a42fce8955cefc27bedc1ac56a24d435bd8eaf.jsonl.gz", "strip_func_name": "sub_40B396", "query": "\n\n\n__int64 __fastcall sub_40B396(_BYTE *a1, int a2)\n{\nint v2; // ebx\n__int64 result; // rax\n__int16 v4; // r12\nint v5; // er13\nint v6; // ebx\nint v7; // ebx\n__int16 v8; // r12\nint v9; // ecx\nint v10; // ebx\nint v11; // er8\nint v12; // er9\nunsigned __int8 *v13; // rax\nint v14; // eax\n\nv2 = sub_4099CA();\nif ( v2 < 0 )\nreturn (unsigned int)v2;\ndword_415304 = v2;\nv4 = word_412340[0] ^ v2;\nv5 = 4;\nwhile ( --v5 >= 0 )\n{\nv6 = sub_4099CA();\nif ( v6 < 0 )\nreturn (unsigned int)v6;\nv4 = v6 ^ word_412340[HIBYTE(v4)] ^ (v4 << 8);\n*a1++ = v6;\n}\nv7 = sub_4099CA();\nif ( v7 < 0 )\nreturn (unsigned int)v7;\nv8 = v7 ^ word_412340[HIBYTE(v4)] ^ (v4 << 8);\nv10 = sub_4099CA();\nif ( v10 < 0 )\nreturn (unsigned int)v10;\nif ( (unsigned __int16)v10 ^ (unsigned __int16)(word_412340[HIBYTE(v8)] ^ (v8 << 8)) )\n{\nsub_40B7FC((unsigned int)\"Bad CRC\", a2, v10, v9, v11, v12);\nresult = 0xFFFFFFFFLL;\n}\nelse\n{\nif ( --dword_415480 < 0 )\n{\nv14 = sub_40BAEB(1LL);\n}\nelse\n{\nv13 = (unsigned __int8 *)qword_415488;\nqword_415488 = (char *)qword_415488 + 1;\nv14 = *v13;\n}\nif ( v14 == 13 || v14 == 141 )\n{\nif ( --dword_415480 < 0 )\nsub_40BAEB(1LL);\nelse\nqword_415488 = (char *)qword_415488 + 1;\n}\ndword_412FF4 = 2;\ndword_412FFC = 1;\nresult = (unsigned int)dword_415304;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_40B396,sub_4099CA,sub_40B7FC,sub_40BAEB,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'hdr', 'sub_40B396': 'zrhhdr', 'sub_4099CA': 'zgethex', 'sub_40B7FC': 'zperr', 'sub_40BAEB': 'readline_internal'}"}
pmc_send_get_action
b881a36ac1042d08a153dc6d79e8af7857537b515a74f12df247ec16fc2fe0b7
nxp-archive
openil_linuxptp
NA
int pmc_send_get_action(struct pmc *pmc, int id) { int datalen, pdulen; struct ptp_message *msg; struct management_tlv *mgt; struct tlv_extra *extra; msg = pmc_message(pmc, GET); if (!msg) { return -1; } mgt = (struct management_tlv *) msg->management.suffix; mgt->type = TLV_MANAGEMENT; datalen = pmc_tlv_datalen(pmc, id); mgt->length = 2 + datalen; mgt->id = id; pdulen = msg->header.messageLength + sizeof(*mgt) + datalen; msg->header.messageLength = pdulen; extra = tlv_extra_alloc(); if (!extra) { pr_err("failed to allocate TLV descriptor"); msg_put(msg); return -ENOMEM; } extra->tlv = (struct TLV *) msg->management.suffix; msg_tlv_attach(msg, extra); if (id == TLV_CLOCK_DESCRIPTION && !pmc->zero_length_gets) { /* * Make sure the tlv_extra pointers dereferenced in * mgt_pre_send() do point to something. */ struct mgmt_clock_description *cd = &extra->cd; uint8_t *buf = mgt->data; cd->clockType = (UInteger16 *) buf; buf += sizeof(*cd->clockType); cd->physicalLayerProtocol = (struct PTPText *) buf; buf += sizeof(struct PTPText) + cd->physicalLayerProtocol->length; cd->physicalAddress = (struct PhysicalAddress *) buf; buf += sizeof(struct PhysicalAddress) + 0; cd->protocolAddress = (struct PortAddress *) buf; } pmc_send(pmc, msg); msg_put(msg); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40A479", "function_addr": 4236409, "binary_name": "b881a36ac1042d08a153dc6d79e8af7857537b515a74f12df247ec16fc2fe0b7.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_3C], esi"], [5, "mov rax, [rbp+var_38]"], [6, "mov esi, 0"], [7, "mov rdi, rax"], [8, "call sub_40A19E"], [9, "mov [rbp+var_8], rax"], [10, "cmp [rbp+var_8], 0"], [11, "jnz short loc_40A4AE"], [12, "mov eax, 0FFFFFFFFh"], [13, "jmp locret_40A60E"], [14, "mov rax, [rbp+var_8]"], [15, "add rax, 30h "], [16, "mov [rbp+var_10], rax"], [17, "mov rax, [rbp+var_10]"], [18, "mov word ptr [rax], 1"], [19, "mov edx, [rbp+var_3C]"], [20, "mov rax, [rbp+var_38]"], [21, "mov esi, edx"], [22, "mov rdi, rax"], [23, "call sub_40A303"], [24, "mov [rbp+var_14], eax"], [25, "mov eax, [rbp+var_14]"], [26, "lea edx, [rax+2]"], [27, "mov rax, [rbp+var_10]"], [28, "mov [rax+2], dx"], [29, "mov eax, [rbp+var_3C]"], [30, "mov edx, eax"], [31, "mov rax, [rbp+var_10]"], [32, "mov [rax+4], dx"], [33, "mov rax, [rbp+var_8]"], [34, "movzx eax, word ptr [rax+2]"], [35, "movzx edx, ax"], [36, "mov eax, [rbp+var_14]"], [37, "add eax, edx"], [38, "add eax, 6"], [39, "mov [rbp+var_18], eax"], [40, "mov eax, [rbp+var_18]"], [41, "mov edx, eax"], [42, "mov rax, [rbp+var_8]"], [43, "mov [rax+2], dx"], [44, "call sub_410BC5"], [45, "mov [rbp+var_20], rax"], [46, "cmp [rbp+var_20], 0"], [47, "jnz short loc_40A54F"], [48, "mov esi, offset aFailedToAlloca_2"], [49, "mov edi, 3"], [50, "mov eax, 0"], [51, "call sub_40B47F"], [52, "mov rax, [rbp+var_8]"], [53, "mov rdi, rax"], [54, "call sub_4092A7"], [55, "mov eax, 0FFFFFFF4h"], [56, "jmp locret_40A60E"], [57, "mov rax, [rbp+var_8]"], [58, "lea rdx, [rax+30h]"], [59, "mov rax, [rbp+var_20]"], [60, "mov [rax+10h], rdx"], [61, "mov rdx, [rbp+var_20]"], [62, "mov rax, [rbp+var_8]"], [63, "mov rsi, rdx"], [64, "mov rdi, rax"], [65, "call sub_409155"], [66, "cmp [rbp+var_3C], 1"], [67, "jnz short loc_40A5EA"], [68, "mov rax, [rbp+var_38]"], [69, "mov eax, [rax+5Ch]"], [70, "test eax, eax"], [71, "jnz short loc_40A5EA"], [72, "mov rax, [rbp+var_20]"], [73, "add rax, 18h"], [74, "mov [rbp+var_28], rax"], [75, "mov rax, [rbp+var_10]"], [76, "add rax, 6"], [77, "mov [rbp+var_30], rax"], [78, "mov rax, [rbp+var_28]"], [79, "mov rdx, [rbp+var_30]"], [80, "mov [rax], rdx"], [81, "add [rbp+var_30], 2"], [82, "mov rax, [rbp+var_28]"], [83, "mov rdx, [rbp+var_30]"], [84, "mov [rax+8], rdx"], [85, "mov rax, [rbp+var_28]"], [86, "mov rax, [rax+8]"], [87, "movzx eax, byte ptr [rax]"], [88, "movzx eax, al"], [89, "add rax, 1"], [90, "add [rbp+var_30], rax"], [91, "mov rax, [rbp+var_28]"], [92, "mov rdx, [rbp+var_30]"], [93, "mov [rax+10h], rdx"], [94, "add [rbp+var_30], 2"], [95, "mov rax, [rbp+var_28]"], [96, "mov rdx, [rbp+var_30]"], [97, "mov [rax+18h], rdx"], [98, "mov rdx, [rbp+var_8]"], [99, "mov rax, [rbp+var_38]"], [100, "mov rsi, rdx"], [101, "mov rdi, rax"], [102, "call sub_40A29D"], [103, "mov rax, [rbp+var_8]"], [104, "mov rdi, rax"], [105, "call sub_4092A7"], [106, "mov eax, 0"], [107, "leave"], [108, "retn"]], "data_dep": [[5, 3], [7, 5], [9, 8], [10, 9], [11, 10], [14, 9], [15, 14], [16, 15], [17, 16], [18, 17], [19, 4], [20, 3], [21, 19], [22, 20], [24, 23], [25, 24], [26, 25], [26, 18], [26, 19], [27, 16], [28, 27], [28, 26], [29, 4], [30, 29], [31, 16], [32, 30], [32, 31], [33, 9], [34, 28], [34, 32], [34, 33], [35, 34], [36, 24], [37, 35], [37, 36], [38, 37], [39, 38], [40, 39], [41, 40], [42, 9], [43, 41], [43, 42], [45, 44], [46, 45], [47, 46], [52, 9], [53, 52], [57, 9], [58, 28], [58, 60], [58, 32], [58, 18], [58, 57], [58, 41], [58, 43], [59, 45], [60, 59], [60, 58], [61, 45], [62, 9], [63, 61], [64, 62], [66, 4], [67, 66], [68, 3], [69, 60], [69, 28], [69, 32], [69, 18], [69, 68], [69, 43], [70, 69], [71, 70], [72, 45], [73, 72], [74, 73], [75, 16], [76, 75], [77, 76], [78, 74], [79, 77], [80, 78], [80, 79], [81, 77], [82, 74], [83, 81], [84, 83], [84, 82], [85, 74], [86, 85], [86, 84], [87, 80], [87, 84], [87, 86], [88, 87], [89, 88], [90, 81], [90, 89], [91, 74], [92, 90], [93, 92], [93, 91], [94, 90], [95, 74], [96, 94], [97, 95], [97, 96], [98, 9], [99, 3], [100, 98], [101, 99], [103, 9], [104, 103], [108, 106], [108, 12], [108, 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/b881a36ac1042d08a153dc6d79e8af7857537b515a74f12df247ec16fc2fe0b7_b881a36ac1042d08a153dc6d79e8af7857537b515a74f12df247ec16fc2fe0b7.jsonl.gz", "strip_func_name": "sub_40A479", "query": "\n\n\n__int64 __fastcall sub_40A479(__int64 a1, int a2)\n{\n__int64 result; // rax\nint v3; // edx\nint v4; // ecx\nint v5; // er8\nint v6; // er9\n__int64 v7; // [rsp+10h] [rbp-30h]\n_QWORD *v8; // [rsp+20h] [rbp-20h]\n__int16 v9; // [rsp+2Ch] [rbp-14h]\nchar *v10; // [rsp+38h] [rbp-8h]\n\nv10 = sub_40A19E(a1, 0);\nif ( !v10 )\nreturn 0xFFFFFFFFLL;\n*((_WORD *)v10 + 24) = 1;\nv9 = sub_40A303(a1, a2);\n*((_WORD *)v10 + 25) = v9 + 2;\n*((_WORD *)v10 + 26) = a2;\n*((_WORD *)v10 + 1) += v9 + 6;\nv8 = (_QWORD *)sub_410BC5();\nif ( v8 )\n{\nv8[2] = v10 + 48;\nsub_409155((__int64)v10, v8);\nif ( a2 == 1 && !*(_DWORD *)(a1 + 92) )\n{\nv8[3] = v10 + 54;\nv8[4] = v10 + 56;\nv7 = (__int64)&v10[*(unsigned __int8 *)v8[4] + 57];\nv8[5] = v7;\nv8[6] = v7 + 2;\n}\nsub_40A29D(a1, (__int64)v10);\nsub_4092A7((__int64)v10);\nresult = 0LL;\n}\nelse\n{\nsub_40B47F(3, (unsigned int)\"failed to allocate TLV descriptor\", v3, v4, v5, v6);\nsub_4092A7((__int64)v10);\nresult = 4294967284LL;\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v7,v8,v9,v10,sub_40A479,sub_40A19E,sub_40A303,sub_410BC5,sub_409155,sub_40A29D,sub_4092A7,sub_40B47F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'pmc', 'a2': 'id', 'v7': 'buf', 'v8': 'extra', 'v9': 'datalen', 'v10': 'msg', 'sub_40A479': 'pmc_send_get_action', 'sub_40A19E': 'pmc_message', 'sub_40A303': 'pmc_tlv_datalen', 'sub_410BC5': 'tlv_extra_alloc', 'sub_409155': 'msg_tlv_attach', 'sub_40A29D': 'pmc_send', 'sub_4092A7': 'msg_put', 'sub_40B47F': 'print'}"}
find_dominating_parents
3ab645463ad13ea30c238ceac9bf56691ea8cada0b7c92413fecc09c2d081d33
illumos
illumos-gate
NA
static int find_dominating_parents(pseudo_t pseudo, struct instruction *insn, struct basic_block *bb, unsigned long generation, struct pseudo_list **dominators, int local) { struct basic_block *parent; FOR_EACH_PTR(bb->parents, parent) { struct instruction *one; struct instruction *br; pseudo_t phi; FOR_EACH_PTR_REVERSE(parent->insns, one) { int dominance; if (!one->bb) continue; if (one == insn) goto no_dominance; dominance = dominates(pseudo, insn, one, local); if (dominance < 0) { if (one->opcode == OP_LOAD) continue; return 0; } if (!dominance) continue; goto found_dominator; } END_FOR_EACH_PTR_REVERSE(one); no_dominance: if (parent->generation == generation) continue; parent->generation = generation; if (!find_dominating_parents(pseudo, insn, parent, generation, dominators, local)) return 0; continue; found_dominator: br = delete_last_instruction(&parent->insns); phi = alloc_phi(parent, one->target, one->type); phi->ident = phi->ident ? : one->target->ident; add_instruction(&parent->insns, br); use_pseudo(insn, phi, add_pseudo(dominators, phi)); } END_FOR_EACH_PTR(parent); return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4449C3", "function_addr": 4475331, "binary_name": "3ab645463ad13ea30c238ceac9bf56691ea8cada0b7c92413fecc09c2d081d33.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 90h"], [3, "mov [rbp+var_68], rdi"], [4, "mov [rbp+var_70], rsi"], [5, "mov [rbp+var_78], rdx"], [6, "mov [rbp+var_80], rcx"], [7, "mov [rbp+var_88], r8"], [8, "mov [rbp+var_8C], r9d"], [9, "mov rax, [rbp+var_78]"], [10, "mov rax, [rax+20h]"], [11, "mov [rbp+var_28], rax"], [12, "mov rax, [rbp+var_28]"], [13, "mov [rbp+var_8], rax"], [14, "cmp [rbp+var_28], 0"], [15, "jz loc_444C67"], [16, "mov [rbp+var_C], 0"], [17, "jmp loc_444C38"], [18, "mov rax, [rbp+var_8]"], [19, "mov edx, [rbp+var_C]"], [20, "movsxd rdx, edx"], [21, "add rdx, 2"], [22, "mov rax, [rax+rdx*8+8]"], [23, "mov [rbp+var_30], rax"], [24, "mov rax, [rbp+var_8]"], [25, "movzx eax, byte ptr [rax+1]"], [26, "test al, al"], [27, "jz short loc_444A45"], [28, "cmp [rbp+var_30], 0"], [29, "jz loc_444C2D"], [30, "mov rax, [rbp+var_30]"], [31, "mov rax, [rax+30h]"], [32, "mov [rbp+var_38], rax"], [33, "mov rax, [rbp+var_38]"], [34, "mov [rbp+var_18], rax"], [35, "mov rax, [rbp+var_30]"], [36, "mov rax, [rax+30h]"], [37, "test rax, rax"], [38, "jz loc_444B2F"], [39, "mov rax, [rbp+var_18]"], [40, "mov rax, [rax+8]"], [41, "mov [rbp+var_18], rax"], [42, "mov rax, [rbp+var_18]"], [43, "movzx eax, byte ptr [rax]"], [44, "movsx eax, al"], [45, "mov [rbp+var_1C], eax"], [46, "jmp loc_444B11"], [47, "mov rax, [rbp+var_18]"], [48, "mov edx, [rbp+var_1C]"], [49, "movsxd rdx, edx"], [50, "add rdx, 2"], [51, "mov rax, [rax+rdx*8+8]"], [52, "mov [rbp+var_40], rax"], [53, "mov rax, [rbp+var_18]"], [54, "movzx eax, byte ptr [rax+1]"], [55, "test al, al"], [56, "jz short loc_444AB4"], [57, "cmp [rbp+var_40], 0"], [58, "jnz short loc_444AB4"], [59, "jmp short loc_444B11"], [60, "mov rax, [rbp+var_40]"], [61, "mov rax, [rax+8]"], [62, "test rax, rax"], [63, "jnz short loc_444AC3"], [64, "jmp short loc_444B11"], [65, "mov rax, [rbp+var_40]"], [66, "cmp rax, [rbp+var_70]"], [67, "jz short loc_444B32"], [68, "mov ecx, [rbp+var_8C]"], [69, "mov rdx, [rbp+var_40]"], [70, "mov rsi, [rbp+var_70]"], [71, "mov rax, [rbp+var_68]"], [72, "mov rdi, rax"], [73, "call sub_43E435"], [74, "mov [rbp+var_44], eax"], [75, "cmp [rbp+var_44], 0"], [76, "jns short loc_444B0A"], [77, "mov rax, [rbp+var_40]"], [78, "movzx eax, byte ptr [rax]"], [79, "and eax, 7Fh"], [80, "cmp al, 43h "], [81, "jnz short loc_444B00"], [82, "jmp short loc_444B11"], [83, "mov eax, 0"], [84, "jmp locret_444C6D"], [85, "cmp [rbp+var_44], 0"], [86, "jnz short loc_444B8F"], [87, "nop"], [88, "sub [rbp+var_1C], 1"], [89, "cmp [rbp+var_1C], 0"], [90, "jns loc_444A88"], [91, "mov rax, [rbp+var_18]"], [92, "cmp rax, [rbp+var_38]"], [93, "jnz loc_444A6A"], [94, "jmp short loc_444B33"], [95, "nop"], [96, "jmp short loc_444B33"], [97, "nop"], [98, "mov rax, [rbp+var_30]"], [99, "mov rax, [rax+8]"], [100, "cmp [rbp+var_80], rax"], [101, "jz loc_444C30"], [102, "mov rax, [rbp+var_30]"], [103, "mov rdx, [rbp+var_80]"], [104, "mov [rax+8], rdx"], [105, "mov r8d, [rbp+var_8C]"], [106, "mov rdi, [rbp+var_88]"], [107, "mov rcx, [rbp+var_80]"], [108, "mov rdx, [rbp+var_30]"], [109, "mov rsi, [rbp+var_70]"], [110, "mov rax, [rbp+var_68]"], [111, "mov r9d, r8d"], [112, "mov r8, rdi"], [113, "mov rdi, rax"], [114, "call sub_4449C3"], [115, "test eax, eax"], [116, "jnz loc_444C33"], [117, "mov eax, 0"], [118, "jmp locret_444C6D"], [119, "nop"], [120, "mov rax, [rbp+var_30]"], [121, "add rax, 30h "], [122, "mov rdi, rax"], [123, "call sub_44480A"], [124, "mov [rbp+var_50], rax"], [125, "mov rax, [rbp+var_40]"], [126, "mov rdx, [rax+18h]"], [127, "mov rax, [rbp+var_40]"], [128, "mov rcx, [rax+20h]"], [129, "mov rax, [rbp+var_30]"], [130, "mov rsi, rcx"], [131, "mov rdi, rax"], [132, "call sub_40BE1E"], [133, "mov [rbp+var_58], rax"], [134, "mov rax, [rbp+var_58]"], [135, "mov rax, [rax+10h]"], [136, "test rax, rax"], [137, "jnz short loc_444BE0"], [138, "mov rax, [rbp+var_40]"], [139, "mov rax, [rax+20h]"], [140, "mov rax, [rax+10h]"], [141, "mov rdx, [rbp+var_58]"], [142, "mov [rdx+10h], rax"], [143, "mov rax, [rbp+var_30]"], [144, "lea rdx, [rax+30h]"], [145, "mov rax, [rbp+var_50]"], [146, "mov rsi, rax"], [147, "mov rdi, rdx"], [148, "call sub_444824"], [149, "mov rdx, [rbp+var_58]"], [150, "mov rax, [rbp+var_88]"], [151, "mov rsi, rdx"], [152, "mov rdi, rax"], [153, "call sub_444852"], [154, "mov rdx, rax"], [155, "mov rcx, [rbp+var_58]"], [156, "mov rax, [rbp+var_70]"], [157, "mov rsi, rcx"], [158, "mov rdi, rax"], [159, "call sub_444928"], [160, "jmp short loc_444C34"], [161, "nop"], [162, "jmp short loc_444C34"], [163, "nop"], [164, "jmp short loc_444C34"], [165, "nop"], [166, "add [rbp+var_C], 1"], [167, "mov rax, [rbp+var_8]"], [168, "movzx eax, byte ptr [rax]"], [169, "movsx eax, al"], [170, "cmp [rbp+var_C], eax"], [171, "jl loc_444A17"], [172, "mov rax, [rbp+var_8]"], [173, "mov rax, [rax+10h]"], [174, "mov [rbp+var_8], rax"], [175, "mov rax, [rbp+var_8]"], [176, "cmp rax, [rbp+var_28]"], [177, "jnz loc_444A0B"], [178, "jmp short loc_444C68"], [179, "nop"], [180, "mov eax, 1"], [181, "leave"], [182, "retn"]], "data_dep": [[9, 5], [10, 9], [11, 10], [12, 11], [13, 12], [14, 11], [15, 14], [18, 174], [18, 13], [19, 166], [19, 16], [20, 19], [21, 20], [22, 142], [22, 18], [22, 104], [23, 22], [24, 174], [24, 13], [25, 104], [25, 24], [25, 142], [26, 25], [27, 26], [28, 23], [29, 28], [30, 23], [31, 104], [31, 30], [31, 142], [32, 31], [33, 32], [34, 33], [35, 23], [36, 104], [36, 35], [36, 142], [37, 36], [38, 37], [39, 41], [39, 34], [40, 104], [40, 142], [40, 39], [41, 40], [42, 41], [43, 142], [43, 104], [43, 42], [44, 43], [45, 44], [47, 41], [48, 88], [49, 48], [50, 49], [51, 47], [51, 104], [51, 142], [52, 51], [53, 41], [54, 104], [54, 142], [54, 53], [55, 54], [56, 55], [57, 52], [58, 57], [60, 52], [61, 104], [61, 60], [61, 142], [62, 61], [63, 62], [65, 52], [66, 4], [66, 65], [67, 66], [68, 8], [69, 52], [70, 4], [71, 3], [72, 71], [74, 73], [75, 74], [76, 75], [77, 52], [78, 77], [78, 104], [78, 142], [79, 78], [80, 79], [81, 80], [85, 74], [86, 85], [88, 45], [88, 88], [89, 88], [90, 89], [91, 41], [92, 32], [92, 91], [93, 92], [98, 23], [99, 104], [99, 142], [99, 98], [100, 6], [100, 99], [101, 100], [102, 23], [103, 6], [104, 102], [104, 103], [105, 8], [106, 7], [107, 6], [108, 23], [109, 4], [110, 3], [111, 105], [112, 106], [113, 110], [115, 114], [116, 115], [120, 23], [121, 120], [122, 121], [124, 123], [125, 52], [126, 142], [126, 125], [126, 104], [127, 52], [128, 142], [128, 127], [128, 104], [129, 23], [130, 128], [131, 129], [133, 132], [134, 133], [135, 104], [135, 142], [135, 134], [136, 135], [137, 136], [138, 52], [139, 142], [139, 138], [139, 104], [140, 139], [140, 104], [140, 142], [141, 133], [142, 141], [142, 136], [142, 140], [143, 23], [144, 141], [144, 143], [144, 142], [145, 124], [146, 145], [147, 144], [149, 133], [150, 7], [151, 149], [152, 150], [154, 153], [155, 133], [156, 4], [157, 155], [158, 156], [166, 16], [166, 166], [167, 13], [167, 174], [168, 104], [168, 142], [168, 167], [169, 168], [170, 169], [170, 16], [170, 166], [171, 170], [172, 13], [172, 174], [173, 104], [173, 142], [173, 172], [174, 173], [175, 174], [176, 11], [176, 175], [177, 176], [182, 83], [182, 117], [182, 180]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/3ab645463ad13ea30c238ceac9bf56691ea8cada0b7c92413fecc09c2d081d33_3ab645463ad13ea30c238ceac9bf56691ea8cada0b7c92413fecc09c2d081d33.jsonl.gz", "strip_func_name": "sub_4449C3", "query": "\n\n\n__int64 __fastcall sub_4449C3(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 *a5, unsigned int a6)\n{\n__int64 v7; // rax\n__int64 *v8; // rax\n_QWORD *v12; // [rsp+38h] [rbp-58h]\n__int64 v13; // [rsp+40h] [rbp-50h]\nint v14; // [rsp+4Ch] [rbp-44h]\n__int64 v15; // [rsp+50h] [rbp-40h]\nchar *v16; // [rsp+58h] [rbp-38h]\n__int64 v17; // [rsp+60h] [rbp-30h]\nchar *v18; // [rsp+68h] [rbp-28h]\nint v19; // [rsp+74h] [rbp-1Ch]\nchar *v20; // [rsp+78h] [rbp-18h]\nint i; // [rsp+84h] [rbp-Ch]\nchar *v22; // [rsp+88h] [rbp-8h]\n\nv18 = *(char **)(a3 + 32);\nv22 = v18;\nif ( v18 )\n{\ndo\n{\nfor ( i = 0; i < *v22; ++i )\n{\nv17 = *(_QWORD *)&v22[8 * i + 24];\nif ( !v22[1] || v17 )\n{\nv16 = *(char **)(v17 + 48);\nv20 = v16;\nif ( v16 )\n{\nwhile ( 2 )\n{\nv20 = (char *)*((_QWORD *)v20 + 1);\nv19 = *v20;\nwhile ( --v19 >= 0 )\n{\nv15 = *(_QWORD *)&v20[8 * v19 + 24];\nif ( (!v20[1] || v15) && *(_QWORD *)(v15 + 8) )\n{\nif ( v15 == a2 )\ngoto LABEL_17;\nv14 = sub_43E435(a1, a2, v15, a6);\nif ( v14 >= 0 )\n{\nif ( v14 )\n{\nv13 = sub_44480A((char **)(v17 + 48));\nv12 = sub_40BE1E(v17, *(_QWORD *)(v15 + 32), *(_QWORD *)(v15 + 24));\nv7 = v12[2];\nif ( !v7 )\nv7 = *(_QWORD *)(*(_QWORD *)(v15 + 32) + 16LL);\nv12[2] = v7;\nsub_444824((__int64 *)(v17 + 48), v13);\nv8 = (__int64 *)sub_444852(a5, (__int64)v12);\nsub_444928(a2, (__int64)v12, v8);\ngoto LABEL_23;\n}\n}\nelse if ( (*(_BYTE *)v15 & 0x7F) != 67 )\n{\nreturn 0LL;\n}\n}\n}\nif ( v20 != v16 )\ncontinue;\nbreak;\n}\n}\nLABEL_17:\nif ( a4 != *(_QWORD *)(v17 + 8) )\n{\n*(_QWORD *)(v17 + 8) = a4;\nif ( !(unsigned int)sub_4449C3(a1, a2, v17, a4, a5, a6) )\nreturn 0LL;\n}\n}\nLABEL_23:\n;\n}\nv22 = (char *)*((_QWORD *)v22 + 2);\n}\nwhile ( v22 != v18 );\n}\nreturn 1LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,v12,v13,v14,v15,v16,v17,v18,v19,v20,i,v22,sub_4449C3,sub_43E435,sub_44480A,sub_40BE1E,sub_444824,sub_444852,sub_444928,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'bb', 'a4': 'generation', 'a1': 'pseudo', 'a2': 'insn', 'a5': 'dominators', 'a6': 'local', 'v12': 'phi', 'v13': 'br', 'v14': 'dominance', 'v15': 'one', 'v16': '__headone', 'v17': 'parent', 'v18': '__headparent', 'v19': '__nrone', 'v20': '__listone', 'i': '__nrparent', 'v22': '__listparent', 'sub_4449C3': 'find_dominating_parents', 'sub_43E435': 'dominates', 'sub_44480A': 'delete_last_instruction_3', 'sub_40BE1E': 'alloc_phi', 'sub_444824': 'add_instruction_3', 'sub_444852': 'add_pseudo_3', 'sub_444928': 'use_pseudo_2'}"}
display_icon
d4df84ecafb323f6f0a346a3a103c7075467f09b9b7969f8c20d2b007e407a6c
sparkfun
SparkFun_RTK_Firmware
NA
void display_icon ( ICON_ENTRY * icon ) { int bit; int display_width; const char * indent = " "; int index; int max_index; int x; int y; /* 0x20, 0x60, 0xC0, 0xFF, 0xFF, 0xC0, 0x60, 0x20, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00 ** ** ** ** ** ** ** ** ****** **** ** */ printf ("/*\r\n"); printf (" %s [%d, %d]\r\n", icon->name, icon->width, icon->height); printf ("\r\n"); if (DRAW_OUTLINE) { if (icon->width > 9) { printf ("%s ", indent); for (x = 1; x <= icon->width; x++) printf ("%c", (x % 10) ? ' ' : ('0' + (x / 10))); printf ("\r\n"); } printf ("%s ", indent); for (x = 1; x <= icon->width; x++) printf ("%d", x % 10); printf ("\r\n"); printf ("%s .", indent); for (x = 0; x < icon->width; x++) printf ("-"); printf (".\r\n"); } for (y = 0; y < icon->height; y++) { printf ("%s", indent); if (DRAW_OUTLINE) printf ("0x%02x|", 1 << (y & 7)); for (x = 0; x < icon->width; x++) { bit = icon->data[((y >> 3) * icon->bytes_wide) + x]; bit >>= y & 7; printf ("%c", (bit & 1) ? '*' : ' '); } if (DRAW_OUTLINE) printf ("|"); printf ("\r\n"); } if (DRAW_OUTLINE) { printf ("%s '", indent); for (x = 0; x < icon->width; x++) printf ("-"); printf ("'\r\n"); } printf ("*/\r\n"); printf ("\r\n"); // Display the symbols if requested if (DISPLAY_VARIABLES) { if (icon->height_name) printf ("const int %s = %d;\r\n", icon->height_name, icon->height); if (icon->width_name) printf ("const int %s = %d;\r\n", icon->width_name, icon->width); printf ("const uint8_t %s [] = {", icon->name); display_width = icon->bytes_wide; if (WRAP_AT_16 || (display_width > 20)) display_width = 16; max_index = icon->bytes_high * icon->bytes_wide; for (index = 0; index < max_index; index++) { if ((index % display_width) == 0) printf ("\r\n "); if (USE_UPPERCASE_A) printf (" 0x%02X", icon->data[index]); else printf (" 0x%02x", icon->data[index]); if (index != (max_index - 1)) printf (","); } if (ADD_TRAILING_COMMA) printf (","); printf ("\r\n"); printf ("};\r\n"); printf ("\r\n"); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40195B", "function_addr": 4200795, "binary_name": "d4df84ecafb323f6f0a346a3a103c7075467f09b9b7969f8c20d2b007e407a6c.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_18], offset asc_402044"], [5, "mov edi, offset s"], [6, "call _puts"], [7, "mov rax, [rbp+var_28]"], [8, "mov ecx, [rax+10h]"], [9, "mov rax, [rbp+var_28]"], [10, "mov edx, [rax+20h]"], [11, "mov rax, [rbp+var_28]"], [12, "mov rax, [rax+8]"], [13, "mov rsi, rax"], [14, "mov edi, offset format"], [15, "mov eax, 0"], [16, "call _printf"], [17, "mov edi, offset asc_402063"], [18, "call _puts"], [19, "mov rax, [rbp+var_28]"], [20, "mov eax, [rax+20h]"], [21, "cmp eax, 9"], [22, "jle loc_401A50"], [23, "mov rax, [rbp+var_18]"], [24, "mov rsi, rax"], [25, "mov edi, offset aS"], [26, "mov eax, 0"], [27, "call _printf"], [28, "mov [rbp+var_C], 1"], [29, "jmp short loc_401A3A"], [30, "mov ecx, [rbp+var_C]"], [31, "movsxd rax, ecx"], [32, "imul rax, 66666667h"], [33, "shr rax, 20h"], [34, "sar eax, 2"], [35, "mov esi, ecx"], [36, "sar esi, 1Fh"], [37, "sub eax, esi"], [38, "mov edx, eax"], [39, "mov eax, edx"], [40, "shl eax, 2"], [41, "add eax, edx"], [42, "add eax, eax"], [43, "sub ecx, eax"], [44, "mov edx, ecx"], [45, "test edx, edx"], [46, "jnz short loc_401A2A"], [47, "mov eax, [rbp+var_C]"], [48, "movsxd rdx, eax"], [49, "imul rdx, 66666667h"], [50, "shr rdx, 20h"], [51, "sar edx, 2"], [52, "sar eax, 1Fh"], [53, "mov ecx, eax"], [54, "mov eax, edx"], [55, "sub eax, ecx"], [56, "add eax, 30h "], [57, "jmp short loc_401A2F"], [58, "mov eax, 20h "], [59, "mov edi, eax"], [60, "call _putchar"], [61, "add [rbp+var_C], 1"], [62, "mov rax, [rbp+var_28]"], [63, "mov eax, [rax+20h]"], [64, "cmp [rbp+var_C], eax"], [65, "jle short loc_4019DA"], [66, "mov edi, offset asc_402063"], [67, "call _puts"], [68, "mov rax, [rbp+var_18]"], [69, "mov rsi, rax"], [70, "mov edi, offset aS"], [71, "mov eax, 0"], [72, "call _printf"], [73, "mov [rbp+var_C], 1"], [74, "jmp short loc_401AAE"], [75, "mov ecx, [rbp+var_C]"], [76, "movsxd rax, ecx"], [77, "imul rax, 66666667h"], [78, "shr rax, 20h"], [79, "sar eax, 2"], [80, "mov esi, ecx"], [81, "sar esi, 1Fh"], [82, "sub eax, esi"], [83, "mov edx, eax"], [84, "mov eax, edx"], [85, "shl eax, 2"], [86, "add eax, edx"], [87, "add eax, eax"], [88, "sub ecx, eax"], [89, "mov edx, ecx"], [90, "mov esi, edx"], [91, "mov edi, offset aD"], [92, "mov eax, 0"], [93, "call _printf"], [94, "add [rbp+var_C], 1"], [95, "mov rax, [rbp+var_28]"], [96, "mov eax, [rax+20h]"], [97, "cmp [rbp+var_C], eax"], [98, "jle short loc_401A6F"], [99, "mov edi, offset asc_402063"], [100, "call _puts"], [101, "mov rax, [rbp+var_18]"], [102, "mov rsi, rax"], [103, "mov edi, offset aS_0"], [104, "mov eax, 0"], [105, "call _printf"], [106, "mov [rbp+var_C], 0"], [107, "jmp short loc_401AF1"], [108, "mov edi, 2Dh "], [109, "call _putchar"], [110, "add [rbp+var_C], 1"], [111, "mov rax, [rbp+var_28]"], [112, "mov eax, [rax+20h]"], [113, "cmp [rbp+var_C], eax"], [114, "jl short loc_401AE3"], [115, "mov edi, offset asc_402075"], [116, "call _puts"], [117, "mov [rbp+var_10], 0"], [118, "jmp loc_401BCC"], [119, "mov rax, [rbp+var_18]"], [120, "mov rsi, rax"], [121, "mov edi, offset aS_1"], [122, "mov eax, 0"], [123, "call _printf"], [124, "mov eax, [rbp+var_10]"], [125, "and eax, 7"], [126, "mov edx, 1"], [127, "mov ecx, eax"], [128, "shl edx, cl"], [129, "mov eax, edx"], [130, "mov esi, eax"], [131, "mov edi, offset a0x02x"], [132, "mov eax, 0"], [133, "call _printf"], [134, "mov [rbp+var_C], 0"], [135, "jmp short loc_401BA8"], [136, "mov eax, [rbp+var_10]"], [137, "sar eax, 3"], [138, "mov edx, eax"], [139, "mov rax, [rbp+var_28]"], [140, "mov eax, [rax+34h]"], [141, "imul edx, eax"], [142, "mov eax, [rbp+var_C]"], [143, "add eax, edx"], [144, "mov rdx, [rbp+var_28]"], [145, "cdqe"], [146, "movzx eax, byte ptr [rdx+rax+38h]"], [147, "movzx eax, al"], [148, "mov [rbp+var_20], eax"], [149, "mov eax, [rbp+var_10]"], [150, "and eax, 7"], [151, "mov ecx, eax"], [152, "sar [rbp+var_20], cl"], [153, "mov eax, [rbp+var_20]"], [154, "and eax, 1"], [155, "test eax, eax"], [156, "jz short loc_401B98"], [157, "mov eax, 2Ah "], [158, "jmp short loc_401B9D"], [159, "mov eax, 20h "], [160, "mov edi, eax"], [161, "call _putchar"], [162, "add [rbp+var_C], 1"], [163, "mov rax, [rbp+var_28]"], [164, "mov eax, [rax+20h]"], [165, "cmp [rbp+var_C], eax"], [166, "jl short loc_401B54"], [167, "mov edi, 7Ch "], [168, "call _putchar"], [169, "mov edi, offset asc_402063"], [170, "call _puts"], [171, "add [rbp+var_10], 1"], [172, "mov rax, [rbp+var_28]"], [173, "mov eax, [rax+10h]"], [174, "cmp [rbp+var_10], eax"], [175, "jl loc_401B13"], [176, "mov rax, [rbp+var_18]"], [177, "mov rsi, rax"], [178, "mov edi, offset aS_2"], [179, "mov eax, 0"], [180, "call _printf"], [181, "mov [rbp+var_C], 0"], [182, "jmp short loc_401C09"], [183, "mov edi, 2Dh "], [184, "call _putchar"], [185, "add [rbp+var_C], 1"], [186, "mov rax, [rbp+var_28]"], [187, "mov eax, [rax+20h]"], [188, "cmp [rbp+var_C], eax"], [189, "jl short loc_401BFB"], [190, "mov edi, offset asc_40208B"], [191, "call _puts"], [192, "mov edi, offset asc_40208E"], [193, "call _puts"], [194, "mov edi, offset asc_402063"], [195, "call _puts"], [196, "mov rax, [rbp+var_28]"], [197, "mov rax, [rax+18h]"], [198, "test rax, rax"], [199, "jz short loc_401C61"], [200, "mov rax, [rbp+var_28]"], [201, "mov edx, [rax+10h]"], [202, "mov rax, [rbp+var_28]"], [203, "mov rax, [rax+18h]"], [204, "mov rsi, rax"], [205, "mov edi, offset aConstIntSD"], [206, "mov eax, 0"], [207, "call _printf"], [208, "mov rax, [rbp+var_28]"], [209, "mov rax, [rax+28h]"], [210, "test rax, rax"], [211, "jz short loc_401C8F"], [212, "mov rax, [rbp+var_28]"], [213, "mov edx, [rax+20h]"], [214, "mov rax, [rbp+var_28]"], [215, "mov rax, [rax+28h]"], [216, "mov rsi, rax"], [217, "mov edi, offset aConstIntSD"], [218, "mov eax, 0"], [219, "call _printf"], [220, "mov rax, [rbp+var_28]"], [221, "mov rax, [rax+8]"], [222, "mov rsi, rax"], [223, "mov edi, offset aConstUint8TS"], [224, "mov eax, 0"], [225, "call _printf"], [226, "mov rax, [rbp+var_28]"], [227, "mov eax, [rax+34h]"], [228, "mov [rbp+var_4], eax"], [229, "cmp [rbp+var_4], 14h"], [230, "jle short loc_401CC0"], [231, "mov [rbp+var_4], 10h"], [232, "mov rax, [rbp+var_28]"], [233, "mov edx, [rax+30h]"], [234, "mov rax, [rbp+var_28]"], [235, "mov eax, [rax+34h]"], [236, "imul eax, edx"], [237, "mov [rbp+var_1C], eax"], [238, "mov [rbp+var_8], 0"], [239, "jmp short loc_401D34"], [240, "mov eax, [rbp+var_8]"], [241, "cdq"], [242, "idiv [rbp+var_4]"], [243, "mov eax, edx"], [244, "test eax, eax"], [245, "jnz short loc_401CF9"], [246, "mov edi, offset asc_4020BF"], [247, "mov eax, 0"], [248, "call _printf"], [249, "mov rdx, [rbp+var_28]"], [250, "mov eax, [rbp+var_8]"], [251, "cdqe"], [252, "movzx eax, byte ptr [rdx+rax+38h]"], [253, "movzx eax, al"], [254, "mov esi, eax"], [255, "mov edi, offset a0x02x_0"], [256, "mov eax, 0"], [257, "call _printf"], [258, "mov eax, [rbp+var_1C]"], [259, "sub eax, 1"], [260, "cmp [rbp+var_8], eax"], [261, "jz short loc_401D30"], [262, "mov edi, 2Ch "], [263, "call _putchar"], [264, "add [rbp+var_8], 1"], [265, "mov eax, [rbp+var_8]"], [266, "cmp eax, [rbp+var_1C]"], [267, "jl short loc_401CDD"], [268, "mov edi, offset asc_402063"], [269, "call _puts"], [270, "mov edi, offset asc_4020CB"], [271, "call _puts"], [272, "mov edi, offset asc_402063"], [273, "call _puts"], [274, "nop"], [275, "leave"], [276, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 3], [10, 9], [11, 3], [12, 11], [13, 12], [19, 3], [20, 19], [21, 20], [22, 21], [23, 4], [24, 23], [30, 61], [30, 28], [31, 30], [32, 31], [33, 32], [34, 33], [35, 30], [36, 35], [37, 34], [37, 36], [38, 37], [39, 38], [40, 39], [41, 40], [41, 38], [42, 41], [43, 30], [43, 42], [44, 43], [45, 44], [46, 45], [47, 61], [47, 28], [48, 47], [49, 48], [50, 49], [51, 50], [52, 47], [53, 52], [54, 51], [55, 54], [55, 53], [56, 55], [59, 56], [59, 58], [61, 61], [61, 28], [62, 3], [63, 62], [64, 61], [64, 63], [64, 28], [65, 64], [68, 4], [69, 68], [75, 94], [75, 73], [76, 75], [77, 76], [78, 77], [79, 78], [80, 75], [81, 80], [82, 79], [82, 81], [83, 82], [84, 83], [85, 84], [86, 83], [86, 85], [87, 86], [88, 87], [88, 75], [89, 88], [90, 89], [94, 94], [94, 73], [95, 3], [96, 95], [97, 94], [97, 96], [97, 73], [98, 97], [101, 4], [102, 101], [110, 106], [110, 110], [111, 3], [112, 111], [113, 110], [113, 112], [113, 106], [114, 113], [119, 4], [120, 119], [124, 117], [124, 171], [125, 124], [127, 125], [128, 126], [128, 127], [129, 128], [130, 129], [136, 171], [136, 117], [137, 136], [138, 137], [139, 3], [140, 139], [141, 138], [141, 140], [142, 162], [142, 134], [143, 142], [143, 141], [144, 3], [146, 143], [147, 146], [148, 147], [149, 171], [149, 117], [150, 149], [151, 150], [152, 151], [152, 148], [153, 152], [154, 153], [155, 154], [156, 155], [160, 157], [160, 159], [162, 162], [162, 134], [163, 3], [164, 163], [165, 162], [165, 164], [165, 134], [166, 165], [171, 117], [171, 171], [172, 3], [173, 172], [174, 171], [174, 173], [174, 117], [175, 174], [176, 4], [177, 176], [185, 181], [185, 185], [186, 3], [187, 186], [188, 187], [188, 181], [188, 185], [189, 188], [196, 3], [197, 196], [198, 197], [199, 198], [200, 3], [201, 200], [202, 3], [203, 202], [204, 203], [208, 3], [209, 208], [210, 209], [211, 210], [212, 3], [213, 212], [214, 3], [215, 214], [216, 215], [220, 3], [221, 220], [222, 221], [226, 3], [227, 226], [228, 227], [229, 228], [230, 229], [232, 3], [233, 232], [234, 3], [235, 234], [236, 233], [236, 235], [237, 236], [240, 264], [240, 238], [242, 231], [242, 242], [242, 228], [243, 249], [243, 233], [244, 243], [245, 244], [249, 3], [250, 264], [250, 238], [252, 250], [253, 252], [254, 253], [258, 237], [259, 258], [260, 238], [260, 264], [260, 259], [261, 260], [264, 264], [264, 238], [265, 264], [265, 238], [266, 265], [266, 237], [267, 266], [276, 273]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d4df84ecafb323f6f0a346a3a103c7075467f09b9b7969f8c20d2b007e407a6c_d4df84ecafb323f6f0a346a3a103c7075467f09b9b7969f8c20d2b007e407a6c.jsonl.gz", "strip_func_name": "sub_40195B", "query": "\n\n\nint __fastcall sub_40195B(__int64 a1)\n{\nint v1; // eax\nint v2; // eax\nint v4; // [rsp+14h] [rbp-1Ch]\nint l; // [rsp+20h] [rbp-10h]\nint i; // [rsp+24h] [rbp-Ch]\nint j; // [rsp+24h] [rbp-Ch]\nint k; // [rsp+24h] [rbp-Ch]\nint m; // [rsp+24h] [rbp-Ch]\nint n; // [rsp+24h] [rbp-Ch]\nint ii; // [rsp+28h] [rbp-8h]\nint v12; // [rsp+2Ch] [rbp-4h]\n\nputs(\"/*\\r\");\nprintf(\" %s [%d, %d]\\r\\n\", *(const char **)(a1 + 8), *(unsigned int *)(a1 + 32), *(unsigned int *)(a1 + 16));\nputs(\"\\r\");\nif ( *(int *)(a1 + 32) > 9 )\n{\nprintf(\"%s \", \" \");\nfor ( i = 1; i <= *(_DWORD *)(a1 + 32); ++i )\n{\nif ( i % 10 )\nv1 = 32;\nelse\nv1 = i / 10 + 48;\nputchar(v1);\n}\nputs(\"\\r\");\n}\nprintf(\"%s \", \" \");\nfor ( j = 1; j <= *(_DWORD *)(a1 + 32); ++j )\nprintf(\"%d\", (unsigned int)(j % 10));\nputs(\"\\r\");\nprintf(\"%s .\", \" \");\nfor ( k = 0; k < *(_DWORD *)(a1 + 32); ++k )\nputchar(45);\nputs(\".\\r\");\nfor ( l = 0; l < *(_DWORD *)(a1 + 16); ++l )\n{\nprintf(\"%s\", \" \");\nprintf(\"0x%02x|\", (unsigned int)(1 << (l & 7)));\nfor ( m = 0; m < *(_DWORD *)(a1 + 32); ++m )\n{\nif ( (((int)*(unsigned __int8 *)(a1 + *(_DWORD *)(a1 + 52) * (l >> 3) + m + 56) >> (l & 7)) & 1) != 0 )\nv2 = 42;\nelse\nv2 = 32;\nputchar(v2);\n}\nputchar(124);\nputs(\"\\r\");\n}\nprintf(\"%s '\", \" \");\nfor ( n = 0; n < *(_DWORD *)(a1 + 32); ++n )\nputchar(45);\nputs(\"'\\r\");\nputs(\"*/\\r\");\nputs(\"\\r\");\nif ( *(_QWORD *)(a1 + 24) )\nprintf(\"const int %s = %d;\\r\\n\", *(const char **)(a1 + 24), *(unsigned int *)(a1 + 16));\nif ( *(_QWORD *)(a1 + 40) )\nprintf(\"const int %s = %d;\\r\\n\", *(const char **)(a1 + 40), *(unsigned int *)(a1 + 32));\nprintf(\"const uint8_t %s [] = {\", *(const char **)(a1 + 8));\nv12 = *(_DWORD *)(a1 + 52);\nif ( v12 > 20 )\nv12 = 16;\nv4 = *(_DWORD *)(a1 + 48) * *(_DWORD *)(a1 + 52);\nfor ( ii = 0; ii < v4; ++ii )\n{\nif ( !(ii % v12) )\nprintf(\"\\r\\n \");\nprintf(\" 0x%02X\", *(unsigned __int8 *)(a1 + ii + 56));\nif ( ii != v4 - 1 )\nputchar(44);\n}\nputs(\"\\r\");\nputs(\"};\\r\");\nreturn puts(\"\\r\");\n}\n\n\n\nQ:[a1,v4,l,i,ii,v12,sub_40195B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'icon', 'v4': 'max_index', 'l': 'y', 'i': 'xd', 'ii': 'index', 'v12': 'display_width', 'sub_40195B': 'display_icon'}"}
filtering_candidates_buffered_kmer_filter_retrieve_region
2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3
smarco
gem3-mapper
NA
void filtering_candidates_buffered_kmer_filter_retrieve_region( filtering_candidates_buffered_t* const filtering_candidates_buffered, filtering_candidates_t* const filtering_candidates, filtering_region_t* const filtering_region, pattern_t* const pattern, gpu_buffer_kmer_filter_t* const gpu_buffer_kmer_filter, uint64_t* const gpu_buffer_offset) { // Parameters alignment_t* const alignment = &filtering_region->alignment; pattern_tiled_t* const pattern_tiled = &pattern->pattern_tiled; const uint64_t max_error = pattern->max_effective_filtering_error; // Detect trimmed matches if (!pattern_tiled->kmer_filter_nway.enabled){ alignment->distance_min_bound = ALIGN_DISTANCE_UNKNOWN; vector_insert(filtering_candidates->filtering_regions,filtering_region,filtering_region_t*); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_ACCEPTED); return; } if (filtering_region->key_trimmed || pattern->key_length < FILTERING_CANDIDATES_KMER_FILTER_MIN_KEY_LENGTH) { alignment->distance_min_bound = ALIGN_DISTANCE_UNKNOWN; vector_insert(filtering_candidates->filtering_regions,filtering_region,filtering_region_t*); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_ACCEPTED); return; } // Detect exact-matches if (filtering_region->alignment.distance_min_bound == 0) { vector_insert(filtering_candidates->filtering_regions,filtering_region,filtering_region_t*); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_ACCEPTED); return; } // Retrieve min-bound uint64_t min_distance_bound; if (gpu_buffer_kmer_filter->kmer_filter_enabled) { min_distance_bound = gpu_buffer_kmer_filter_get_min_edit_bound( gpu_buffer_kmer_filter,*gpu_buffer_offset, pattern_tiled->kmer_filter_nway.num_tiles); *gpu_buffer_offset += pattern_tiled->kmer_filter_nway.num_tiles; // DEBUG #ifdef GPU_CHECK_KMER_FILTER const uint64_t min_distance_bound_check = filtering_candidates_buffered_kmer_filter_compute_alignment( filtering_candidates,filtering_region,pattern); if (min_distance_bound_check != min_distance_bound) { fprintf(stderr,"GPU.Kmer-Filter. Difference detected (CPU=%lu;GPU=%lu)\n", min_distance_bound_check,min_distance_bound); } #endif } else { min_distance_bound = 0; // Unknown // filtering_candidates_buffered_kmer_filter_compute_alignment( // filtering_candidates,filtering_region,pattern); } if (min_distance_bound <= max_error) { alignment->distance_min_bound = ALIGN_DISTANCE_UNKNOWN; vector_insert(filtering_candidates->filtering_regions,filtering_region,filtering_region_t*); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_ACCEPTED); } else { // Discarded candidate filtering_region->status = filtering_region_verified_discarded; alignment->distance_min_bound = ALIGN_DISTANCE_INF; // Add to discarded candidates (buffered) const uint64_t num_discarded_regions = filtering_candidates_buffered->num_discarded_regions; filtering_candidates_buffered->discarded_regions[num_discarded_regions] = filtering_region; ++(filtering_candidates_buffered->num_discarded_regions); PROF_INC_COUNTER(GP_FC_KMER_COUNTER_FILTER_DISCARDED); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42695B", "function_addr": 4352347, "binary_name": "2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_40], rsi"], [5, "mov [rbp+var_48], rdx"], [6, "mov [rbp+var_50], rcx"], [7, "mov [rbp+var_58], r8"], [8, "mov [rbp+var_60], r9"], [9, "mov rax, [rbp+var_48]"], [10, "add rax, 0B0h"], [11, "mov [rbp+var_10], rax"], [12, "mov rax, [rbp+var_50]"], [13, "add rax, 68h "], [14, "mov [rbp+var_18], rax"], [15, "mov rax, [rbp+var_50]"], [16, "mov rax, [rax+50h]"], [17, "mov [rbp+var_20], rax"], [18, "mov rax, [rbp+var_18]"], [19, "movzx eax, byte ptr [rax+70h]"], [20, "xor eax, 1"], [21, "test al, al"], [22, "jz short loc_426A23"], [23, "mov rax, [rbp+var_10]"], [24, "mov esi, 0FFFFFFFEh"], [25, "mov [rax+8], rsi"], [26, "mov rax, [rbp+var_40]"], [27, "mov rax, [rax+18h]"], [28, "mov rax, [rax+8]"], [29, "lea rcx, [rax+1]"], [30, "mov rax, [rbp+var_40]"], [31, "mov rax, [rax+18h]"], [32, "mov edx, 0"], [33, "mov rsi, rcx"], [34, "mov rdi, rax"], [35, "call sub_47D500"], [36, "mov rax, [rbp+var_40]"], [37, "mov rax, [rax+18h]"], [38, "mov rdx, [rax]"], [39, "mov rax, [rbp+var_40]"], [40, "mov rax, [rax+18h]"], [41, "mov rax, [rax+8]"], [42, "shl rax, 3"], [43, "add rdx, rax"], [44, "mov rax, [rbp+var_48]"], [45, "mov [rdx], rax"], [46, "mov rax, [rbp+var_40]"], [47, "mov rax, [rax+18h]"], [48, "mov rdx, [rax+8]"], [49, "add rdx, 1"], [50, "mov [rax+8], rdx"], [51, "jmp locret_426C4F"], [52, "mov rax, [rbp+var_48]"], [53, "movzx eax, byte ptr [rax+0A8h]"], [54, "test al, al"], [55, "jnz short loc_426A42"], [56, "mov rax, [rbp+var_50]"], [57, "mov rax, [rax+10h]"], [58, "cmp rax, 3D08Fh"], [59, "ja short loc_426AB5"], [60, "mov rax, [rbp+var_10]"], [61, "mov edi, 0FFFFFFFEh"], [62, "mov [rax+8], rdi"], [63, "mov rax, [rbp+var_40]"], [64, "mov rax, [rax+18h]"], [65, "mov rax, [rax+8]"], [66, "lea rcx, [rax+1]"], [67, "mov rax, [rbp+var_40]"], [68, "mov rax, [rax+18h]"], [69, "mov edx, 0"], [70, "mov rsi, rcx"], [71, "mov rdi, rax"], [72, "call sub_47D500"], [73, "mov rax, [rbp+var_40]"], [74, "mov rax, [rax+18h]"], [75, "mov rdx, [rax]"], [76, "mov rax, [rbp+var_40]"], [77, "mov rax, [rax+18h]"], [78, "mov rax, [rax+8]"], [79, "shl rax, 3"], [80, "add rdx, rax"], [81, "mov rax, [rbp+var_48]"], [82, "mov [rdx], rax"], [83, "mov rax, [rbp+var_40]"], [84, "mov rax, [rax+18h]"], [85, "mov rdx, [rax+8]"], [86, "add rdx, 1"], [87, "mov [rax+8], rdx"], [88, "jmp locret_426C4F"], [89, "mov rax, [rbp+var_48]"], [90, "mov rax, [rax+0B8h]"], [91, "test rax, rax"], [92, "jnz short loc_426B2B"], [93, "mov rax, [rbp+var_40]"], [94, "mov rax, [rax+18h]"], [95, "mov rax, [rax+8]"], [96, "lea rcx, [rax+1]"], [97, "mov rax, [rbp+var_40]"], [98, "mov rax, [rax+18h]"], [99, "mov edx, 0"], [100, "mov rsi, rcx"], [101, "mov rdi, rax"], [102, "call sub_47D500"], [103, "mov rax, [rbp+var_40]"], [104, "mov rax, [rax+18h]"], [105, "mov rdx, [rax]"], [106, "mov rax, [rbp+var_40]"], [107, "mov rax, [rax+18h]"], [108, "mov rax, [rax+8]"], [109, "shl rax, 3"], [110, "add rdx, rax"], [111, "mov rax, [rbp+var_48]"], [112, "mov [rdx], rax"], [113, "mov rax, [rbp+var_40]"], [114, "mov rax, [rax+18h]"], [115, "mov rdx, [rax+8]"], [116, "add rdx, 1"], [117, "mov [rax+8], rdx"], [118, "jmp locret_426C4F"], [119, "mov rax, [rbp+var_58]"], [120, "movzx eax, byte ptr [rax+8]"], [121, "test al, al"], [122, "jz short loc_426B7C"], [123, "mov rax, [rbp+var_18]"], [124, "mov rdx, [rax+0A8h]"], [125, "mov rax, [rbp+var_60]"], [126, "mov rcx, [rax]"], [127, "mov rax, [rbp+var_58]"], [128, "mov rsi, rcx"], [129, "mov rdi, rax"], [130, "call sub_4320A2"], [131, "mov [rbp+var_8], rax"], [132, "mov rax, [rbp+var_60]"], [133, "mov rdx, [rax]"], [134, "mov rax, [rbp+var_18]"], [135, "mov rax, [rax+0A8h]"], [136, "add rdx, rax"], [137, "mov rax, [rbp+var_60]"], [138, "mov [rax], rdx"], [139, "jmp short loc_426B84"], [140, "mov [rbp+var_8], 0"], [141, "mov rax, [rbp+var_8]"], [142, "cmp rax, [rbp+var_20]"], [143, "ja short loc_426BFE"], [144, "mov rax, [rbp+var_10]"], [145, "mov esi, 0FFFFFFFEh"], [146, "mov [rax+8], rsi"], [147, "mov rax, [rbp+var_40]"], [148, "mov rax, [rax+18h]"], [149, "mov rax, [rax+8]"], [150, "lea rcx, [rax+1]"], [151, "mov rax, [rbp+var_40]"], [152, "mov rax, [rax+18h]"], [153, "mov edx, 0"], [154, "mov rsi, rcx"], [155, "mov rdi, rax"], [156, "call sub_47D500"], [157, "mov rax, [rbp+var_40]"], [158, "mov rax, [rax+18h]"], [159, "mov rdx, [rax]"], [160, "mov rax, [rbp+var_40]"], [161, "mov rax, [rax+18h]"], [162, "mov rax, [rax+8]"], [163, "shl rax, 3"], [164, "add rdx, rax"], [165, "mov rax, [rbp+var_48]"], [166, "mov [rdx], rax"], [167, "mov rax, [rbp+var_40]"], [168, "mov rax, [rax+18h]"], [169, "mov rdx, [rax+8]"], [170, "add rdx, 1"], [171, "mov [rax+8], rdx"], [172, "jmp short locret_426C4F"], [173, "mov rax, [rbp+var_48]"], [174, "mov dword ptr [rax], 2"], [175, "mov rax, [rbp+var_10]"], [176, "mov edi, 0FFFFFFFFh"], [177, "mov [rax+8], rdi"], [178, "mov rax, [rbp+var_38]"], [179, "mov rax, [rax+30h]"], [180, "mov [rbp+var_28], rax"], [181, "mov rax, [rbp+var_38]"], [182, "mov rdx, [rax+28h]"], [183, "mov rax, [rbp+var_28]"], [184, "shl rax, 3"], [185, "add rdx, rax"], [186, "mov rax, [rbp+var_48]"], [187, "mov [rdx], rax"], [188, "mov rax, [rbp+var_38]"], [189, "mov rax, [rax+30h]"], [190, "lea rdx, [rax+1]"], [191, "mov rax, [rbp+var_38]"], [192, "mov [rax+30h], rdx"], [193, "leave"], [194, "retn"]], "data_dep": [[9, 5], [10, 9], [11, 10], [12, 6], [13, 12], [14, 13], [15, 6], [16, 15], [17, 16], [18, 14], [19, 18], [20, 19], [21, 20], [22, 21], [23, 11], [25, 23], [25, 24], [26, 4], [27, 26], [27, 25], [28, 25], [28, 27], [29, 28], [29, 25], [30, 4], [31, 30], [31, 25], [33, 29], [34, 31], [36, 4], [37, 25], [37, 36], [38, 25], [38, 37], [39, 4], [40, 25], [40, 39], [41, 40], [41, 25], [42, 41], [43, 38], [43, 42], [44, 5], [45, 43], [45, 44], [46, 4], [47, 45], [47, 46], [48, 45], [48, 47], [48, 25], [49, 48], [50, 47], [50, 49], [52, 5], [53, 52], [54, 53], [55, 54], [56, 6], [57, 56], [58, 57], [59, 58], [60, 11], [62, 60], [62, 61], [63, 4], [64, 62], [64, 63], [65, 62], [65, 64], [66, 62], [66, 65], [67, 4], [68, 67], [68, 62], [70, 66], [71, 68], [73, 4], [74, 73], [74, 62], [75, 74], [75, 62], [76, 4], [77, 62], [77, 76], [78, 77], [78, 62], [79, 78], [80, 75], [80, 79], [81, 5], [82, 81], [82, 80], [83, 4], [84, 83], [84, 82], [85, 82], [85, 84], [85, 62], [86, 85], [87, 84], [87, 86], [89, 5], [90, 89], [91, 90], [92, 91], [93, 4], [94, 93], [95, 94], [96, 95], [97, 4], [98, 97], [100, 96], [101, 98], [103, 4], [104, 103], [105, 104], [106, 4], [107, 106], [108, 107], [109, 108], [110, 109], [110, 105], [111, 5], [112, 111], [112, 110], [113, 4], [114, 113], [114, 112], [115, 112], [115, 114], [116, 115], [117, 114], [117, 116], [119, 7], [120, 119], [121, 120], [122, 121], [123, 14], [124, 123], [125, 8], [126, 125], [127, 7], [128, 126], [129, 127], [133, 132], [135, 134], [136, 135], [136, 133], [138, 137], [138, 136], [141, 131], [141, 140], [142, 141], [142, 17], [143, 142], [144, 11], [146, 145], [146, 144], [147, 4], [148, 147], [148, 146], [149, 146], [149, 148], [150, 149], [150, 146], [151, 4], [152, 151], [152, 146], [154, 150], [155, 152], [157, 4], [158, 146], [158, 157], [159, 146], [159, 138], [159, 158], [160, 4], [161, 160], [161, 146], [162, 161], [162, 146], [163, 162], [164, 159], [164, 163], [165, 5], [166, 165], [166, 164], [167, 4], [168, 166], [168, 167], [169, 146], [169, 166], [169, 168], [170, 169], [171, 168], [171, 170], [173, 5], [174, 173], [175, 11], [177, 176], [177, 175], [178, 3], [179, 178], [179, 177], [180, 179], [181, 3], [182, 177], [182, 181], [183, 180], [184, 183], [185, 182], [185, 184], [186, 5], [187, 185], [187, 186], [188, 3], [189, 188], [189, 187], [190, 185], [190, 187], [190, 189], [191, 3], [192, 190], [192, 191], [194, 114], [194, 84], [194, 168], [194, 191], [194, 47]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3_2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.jsonl.gz", "strip_func_name": "sub_42695B", "query": "\n\n\n__int64 __fastcall sub_42695B(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, _QWORD *a6)\n{\n__int64 result; // rax\n\nif ( *(_BYTE *)(a4 + 216) == 1 && !*(_BYTE *)(a3 + 168) && *(_QWORD *)(a4 + 16) > 0x3D08FuLL )\n{\nif ( !*(_QWORD *)(a3 + 184) )\n{\nsub_47D500(*(_QWORD *)(a2 + 24), *(_QWORD *)(*(_QWORD *)(a2 + 24) + 8LL) + 1LL, 0LL);\n*(_QWORD *)(8LL * *(_QWORD *)(*(_QWORD *)(a2 + 24) + 8LL) + **(_QWORD **)(a2 + 24)) = a3;\nresult = *(_QWORD *)(a2 + 24);\n++*(_QWORD *)(result + 8);\nreturn result;\n}\nif ( *(_BYTE *)(a5 + 8) )\nsub_4320A2(a5, *a6, *(_QWORD *)(a4 + 272));\n}\n*(_QWORD *)(a3 + 184) = 4294967294LL;\nsub_47D500(*(_QWORD *)(a2 + 24), *(_QWORD *)(*(_QWORD *)(a2 + 24) + 8LL) + 1LL, 0LL);\n*(_QWORD *)(8LL * *(_QWORD *)(*(_QWORD *)(a2 + 24) + 8LL) + **(_QWORD **)(a2 + 24)) = a3;\nresult = *(_QWORD *)(a2 + 24);\n++*(_QWORD *)(result + 8);\nreturn result;\n}\n\n\n\nQ:[a3,a4,a2,a5,a6,a1,sub_42695B,sub_47D500,sub_4320A2,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'filtering_region', 'a4': 'pattern', 'a2': 'filtering_candidates', 'a5': 'gpu_buffer_kmer_filter', 'a6': 'gpu_buffer_offset', 'a1': 'filtering_candidates_buffered', 'sub_42695B': 'filtering_candidates_buffered_kmer_filter_retrieve_region', 'sub_47D500': 'vector_reserve', 'sub_4320A2': 'gpu_buffer_kmer_filter_get_min_edit_bound'}"}
snum
f8643e6b5b09093b12ae8fad3c4cdbf0b6ef786af63fd564d389e89ab3be0270
clerkma
texlive-mobile
NA
long snum(int size) { register int i; register long x; pc += size; x = getc(dvifp); if (x & 0x80) x -= 0x100; for (i = size - 1; i > 0; i--) x = (x << 8) + (unsigned) getc(dvifp); return x; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402248", "function_addr": 4203080, "binary_name": "f8643e6b5b09093b12ae8fad3c4cdbf0b6ef786af63fd564d389e89ab3be0270.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 eax, [rbp+var_14]"], [7, "movsxd rdx, eax"], [8, "mov rax, cs:qword_406108"], [9, "add rax, rdx"], [10, "mov cs:qword_406108, rax"], [11, "mov rax, cs:stream"], [12, "mov rdi, rax"], [13, "call _getc"], [14, "movsxd rbx, eax"], [15, "mov rax, rbx"], [16, "and eax, 80h"], [17, "test rax, rax"], [18, "jz short loc_402293"], [19, "sub rbx, 100h"], [20, "mov eax, [rbp+var_14]"], [21, "lea r12d, [rax-1]"], [22, "jmp short loc_4022B8"], [23, "shl rbx, 8"], [24, "mov rax, cs:stream"], [25, "mov rdi, rax"], [26, "call _getc"], [27, "mov eax, eax"], [28, "add rbx, rax"], [29, "sub r12d, 1"], [30, "test r12d, r12d"], [31, "jg short loc_40229C"], [32, "mov rax, rbx"], [33, "add rsp, 10h"], [34, "pop rbx"], [35, "pop r12"], [36, "pop rbp"], [37, "retn"]], "data_dep": [[6, 5], [7, 6], [9, 8], [9, 7], [10, 9], [12, 11], [14, 13], [15, 14], [16, 15], [17, 16], [18, 17], [19, 14], [20, 5], [21, 20], [23, 19], [23, 28], [23, 14], [25, 24], [27, 26], [28, 27], [28, 23], [29, 30], [30, 21], [30, 29], [31, 30], [32, 14], [32, 19], [32, 28], [33, 4], [34, 3], [35, 2], [36, 0], [37, 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/f8643e6b5b09093b12ae8fad3c4cdbf0b6ef786af63fd564d389e89ab3be0270_f8643e6b5b09093b12ae8fad3c4cdbf0b6ef786af63fd564d389e89ab3be0270.jsonl.gz", "strip_func_name": "sub_402248", "query": "\n\n\n__int64 __fastcall sub_402248(int a1)\n{\nint v1; // eax\n__int64 v2; // rbx\nint i; // er12\n\nqword_406108 += a1;\nv1 = getc(stream);\nv2 = v1;\nif ( (v1 & 0x80) != 0 )\nv2 = v1 - 256LL;\nfor ( i = a1 - 1; i > 0; --i )\nv2 = (unsigned int)getc(stream) + (v2 << 8);\nreturn v2;\n}\n\n\n\nQ:[a1,sub_402248,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'size', 'sub_402248': 'snum'}"}
handle_read_request2
32e5bef9a534f6a023b94f0e20e0c28fed442ec28edeb1e289ac97b9496f472a
micropython
micropython-unicorn
NA
static uint16_t handle_read_request2(att_connection_t * att_connection, uint8_t * response_buffer, uint16_t response_buffer_size, uint16_t handle){ log_info("ATT_READ_REQUEST: handle %04x", handle); uint8_t request_type = ATT_READ_REQUEST; att_iterator_t it; int ok = att_find_handle(&it, handle); if (!ok){ return setup_error_invalid_handle(response_buffer, request_type, handle); } // check if handle can be read if ((it.flags & ATT_PROPERTY_READ) == 0) { return setup_error_read_not_permitted(response_buffer, request_type, handle); } // check security requirements uint8_t error_code = att_validate_security(att_connection, ATT_READ, &it); if (error_code) { return setup_error(response_buffer, request_type, handle, error_code); } att_update_value_len(&it, att_connection->con_handle); #ifdef ENABLE_ATT_DELAYED_RESPONSE if (it.value_len == ATT_READ_RESPONSE_PENDING) return ATT_READ_RESPONSE_PENDING; #endif // store uint16_t offset = 1; uint16_t bytes_copied = att_copy_value(&it, 0, response_buffer + offset, response_buffer_size - offset, att_connection->con_handle); offset += bytes_copied; response_buffer[0] = ATT_READ_RESPONSE; return offset; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_437374", "function_addr": 4420468, "binary_name": "32e5bef9a534f6a023b94f0e20e0c28fed442ec28edeb1e289ac97b9496f472a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+var_50], rsi"], [5, "mov eax, ecx"], [6, "mov [rbp+var_54], dx"], [7, "mov [rbp+var_58], ax"], [8, "movzx eax, [rbp+var_58]"], [9, "mov r8d, eax"], [10, "mov ecx, 293h"], [11, "mov edx, offset aAttDbC"], [12, "mov esi, offset aSUAttReadReque"], [13, "mov edi, 1"], [14, "mov eax, 0"], [15, "call sub_41A13D"], [16, "mov [rbp+var_1], 0Ah"], [17, "movzx edx, [rbp+var_58]"], [18, "lea rax, [rbp+var_40]"], [19, "mov esi, edx"], [20, "mov rdi, rax"], [21, "call sub_43627A"], [22, "mov [rbp+var_8], eax"], [23, "cmp [rbp+var_8], 0"], [24, "jnz short loc_4373ED"], [25, "movzx edx, [rbp+var_58]"], [26, "movzx ecx, [rbp+var_1]"], [27, "mov rax, [rbp+var_50]"], [28, "mov esi, ecx"], [29, "mov rdi, rax"], [30, "call sub_43679D"], [31, "jmp locret_4374CD"], [32, "movzx eax, [rbp+var_36]"], [33, "movzx eax, ax"], [34, "and eax, 2"], [35, "test eax, eax"], [36, "jnz short loc_437416"], [37, "movzx edx, [rbp+var_58]"], [38, "movzx ecx, [rbp+var_1]"], [39, "mov rax, [rbp+var_50]"], [40, "mov esi, ecx"], [41, "mov rdi, rax"], [42, "call sub_4366FE"], [43, "jmp locret_4374CD"], [44, "lea rdx, [rbp+var_40]"], [45, "mov rax, [rbp+var_48]"], [46, "mov esi, 0"], [47, "mov rdi, rax"], [48, "call sub_436835"], [49, "mov [rbp+var_9], al"], [50, "cmp [rbp+var_9], 0"], [51, "jz short loc_43744E"], [52, "movzx ecx, [rbp+var_9]"], [53, "movzx edx, [rbp+var_58]"], [54, "movzx esi, [rbp+var_1]"], [55, "mov rax, [rbp+var_50]"], [56, "mov rdi, rax"], [57, "call sub_4366A0"], [58, "jmp short locret_4374CD"], [59, "mov rax, [rbp+var_48]"], [60, "movzx eax, word ptr [rax]"], [61, "movzx edx, ax"], [62, "lea rax, [rbp+var_40]"], [63, "mov esi, edx"], [64, "mov rdi, rax"], [65, "call sub_43633C"], [66, "movzx eax, [rbp+var_28]"], [67, "cmp ax, 0FFFFh"], [68, "jnz short loc_437477"], [69, "mov eax, 0FFFFFFFFh"], [70, "jmp short locret_4374CD"], [71, "mov [rbp+var_C], 1"], [72, "mov rax, [rbp+var_48]"], [73, "movzx eax, word ptr [rax]"], [74, "movzx ecx, ax"], [75, "movzx eax, [rbp+var_54]"], [76, "sub ax, [rbp+var_C]"], [77, "movzx edx, ax"], [78, "movzx esi, [rbp+var_C]"], [79, "mov rax, [rbp+var_50]"], [80, "add rsi, rax"], [81, "lea rax, [rbp+var_40]"], [82, "mov r8d, ecx"], [83, "mov ecx, edx"], [84, "mov rdx, rsi"], [85, "mov esi, 0"], [86, "mov rdi, rax"], [87, "call sub_43639A"], [88, "mov [rbp+var_E], ax"], [89, "movzx eax, [rbp+var_E]"], [90, "add [rbp+var_C], ax"], [91, "mov rax, [rbp+var_50]"], [92, "mov byte ptr [rax], 0Bh"], [93, "movzx eax, [rbp+var_C]"], [94, "leave"], [95, "retn"]], "data_dep": [[7, 5], [8, 7], [9, 8], [17, 7], [18, 15], [19, 17], [20, 18], [22, 21], [23, 22], [24, 23], [25, 7], [26, 16], [27, 4], [28, 26], [29, 27], [33, 32], [34, 33], [35, 34], [36, 35], [37, 7], [38, 16], [39, 4], [40, 38], [41, 39], [44, 17], [45, 3], [47, 45], [49, 48], [50, 49], [51, 50], [52, 49], [53, 7], [54, 16], [55, 4], [56, 55], [59, 3], [60, 59], [61, 60], [62, 60], [63, 61], [64, 62], [67, 66], [68, 67], [72, 3], [73, 72], [74, 73], [75, 6], [76, 75], [76, 71], [77, 76], [78, 71], [79, 4], [80, 79], [80, 78], [81, 79], [82, 74], [83, 77], [84, 80], [86, 81], [88, 87], [89, 88], [90, 71], [90, 89], [91, 4], [92, 91], [93, 90], [95, 69], [95, 57], [95, 93], [95, 30], [95, 42]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/32e5bef9a534f6a023b94f0e20e0c28fed442ec28edeb1e289ac97b9496f472a_32e5bef9a534f6a023b94f0e20e0c28fed442ec28edeb1e289ac97b9496f472a.jsonl.gz", "strip_func_name": "sub_437374", "query": "\n\n\n__int64 __fastcall sub_437374(_BYTE *a1, _BYTE *a2, __int16 a3, unsigned __int16 a4, __int64 a5, __int64 a6)\n{\n_WORD v9[5]; // [rsp+20h] [rbp-40h] BYREF\n__int16 v10; // [rsp+2Ah] [rbp-36h]\n__int16 v11; // [rsp+38h] [rbp-28h]\n__int16 v12; // [rsp+52h] [rbp-Eh]\nunsigned __int16 v13; // [rsp+54h] [rbp-Ch]\nchar v14; // [rsp+57h] [rbp-9h]\nchar v16; // [rsp+5Fh] [rbp-1h]\n\nsub_41A13D(1, \"%s.%u: ATT_READ_REQUEST: handle %04x\", (__int64)\"att_db.c\", 659LL, a4, a6);\nv16 = 10;\nif ( !(unsigned int)sub_43627A((__int64)v9, a4) )\nreturn sub_43679D(a2, v16, a4);\nif ( (v10 & 2) == 0 )\nreturn sub_4366FE(a2, v16, a4);\nv14 = sub_436835(a1, 0, (__int64)v9);\nif ( v14 )\nreturn sub_4366A0(a2, v16, a4, v14);\nsub_43633C(v9, *(_WORD *)a1);\nif ( v11 == -1 )\nreturn 0xFFFFFFFFLL;\nv13 = 1;\nv12 = sub_43639A((__int64)v9, 0, a2 + 1, a3 - 1, *(_WORD *)a1);\nv13 += v12;\n*a2 = 11;\nreturn v13;\n}\n\n\n\nQ:[a3,a4,a1,a2,v9,v12,v13,v14,v16,sub_437374,sub_41A13D,sub_43627A,sub_43679D,sub_4366FE,sub_436835,sub_4366A0,sub_43633C,sub_43639A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'response_buffer_size', 'a4': 'handle', 'a1': 'att_connection', 'a2': 'response_buffer', 'v9': 'it', 'v12': 'bytes_copied', 'v13': 'offset', 'v14': 'error_code', 'v16': 'request_type', 'sub_437374': 'handle_read_request2', 'sub_41A13D': 'hci_dump_log', 'sub_43627A': 'att_find_handle', 'sub_43679D': 'setup_error_invalid_handle', 'sub_4366FE': 'setup_error_read_not_permitted', 'sub_436835': 'att_validate_security', 'sub_4366A0': 'setup_error', 'sub_43633C': 'att_update_value_len', 'sub_43639A': 'att_copy_value'}"}
btstack_tlv_posix_append_tag
c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252
bluekitchen
btstack
NA
static void btstack_tlv_posix_append_tag(btstack_tlv_posix_t * self, uint32_t tag, const uint8_t * data, uint32_t data_size){ if (!self->file) return; log_info("append tag %04x, len %u", tag, data_size); uint8_t header[8]; big_endian_store_32(header, 0, tag); big_endian_store_32(header, 4, data_size); size_t written_header = fwrite(header, 1, sizeof(header), self->file); if (written_header != sizeof(header)) return; if (data_size > 0) { size_t written_value = fwrite(data, 1, data_size, self->file); if (written_value != data_size) return; } fflush(self->file); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403068", "function_addr": 4206696, "binary_name": "c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov dword ptr [rbp+n+4], esi"], [5, "mov [rbp+var_38], rdx"], [6, "mov dword ptr [rbp+n], ecx"], [7, "mov rax, [rbp+var_28]"], [8, "mov rax, [rax+10h]"], [9, "test rax, rax"], [10, "jnz short loc_403095"], [11, "mov eax, 1"], [12, "jmp locret_403165"], [13, "mov edx, dword ptr [rbp+n]"], [14, "mov eax, dword ptr [rbp+n+4]"], [15, "mov r9d, edx"], [16, "mov r8d, eax"], [17, "mov ecx, 4Ah "], [18, "mov edx, offset aBtstackTlvPosi"], [19, "mov esi, offset aSUAppendTag04x"], [20, "mov edi, 1"], [21, "mov eax, 0"], [22, "call sub_4122DA"], [23, "mov edx, dword ptr [rbp+n+4]"], [24, "lea rax, [rbp+ptr]"], [25, "mov esi, 0"], [26, "mov rdi, rax"], [27, "call sub_40845A"], [28, "mov edx, dword ptr [rbp+n]"], [29, "lea rax, [rbp+ptr]"], [30, "mov esi, 4"], [31, "mov rdi, rax"], [32, "call sub_40845A"], [33, "mov rax, [rbp+var_28]"], [34, "mov rdx, [rax+10h]"], [35, "lea rax, [rbp+ptr]"], [36, "mov rcx, rdx"], [37, "mov edx, 8"], [38, "mov esi, 1"], [39, "mov rdi, rax"], [40, "call _fwrite"], [41, "mov [rbp+var_8], rax"], [42, "cmp [rbp+var_8], 8"], [43, "jz short loc_40311A"], [44, "mov eax, 1"], [45, "jmp short locret_403165"], [46, "cmp dword ptr [rbp+n], 0"], [47, "jz short loc_403150"], [48, "mov rax, [rbp+var_28]"], [49, "mov rcx, [rax+10h]"], [50, "mov edx, dword ptr [rbp+n]"], [51, "mov rax, [rbp+var_38]"], [52, "mov esi, 1"], [53, "mov rdi, rax"], [54, "call _fwrite"], [55, "mov [rbp+var_10], rax"], [56, "mov eax, dword ptr [rbp+n]"], [57, "cmp [rbp+var_10], rax"], [58, "jz short loc_403150"], [59, "mov eax, 1"], [60, "jmp short locret_403165"], [61, "mov rax, [rbp+var_28]"], [62, "mov rax, [rax+10h]"], [63, "mov rdi, rax"], [64, "call _fflush"], [65, "mov eax, 1"], [66, "leave"], [67, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 8], [10, 9], [13, 6], [14, 4], [15, 13], [16, 14], [23, 4], [24, 22], [26, 24], [28, 6], [29, 27], [31, 29], [33, 3], [34, 33], [35, 33], [36, 34], [39, 35], [41, 40], [42, 41], [43, 42], [46, 6], [47, 46], [48, 3], [49, 48], [50, 6], [51, 5], [53, 51], [55, 54], [56, 6], [57, 56], [57, 55], [58, 57], [61, 3], [62, 61], [63, 62], [67, 65], [67, 59], [67, 11], [67, 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/c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252_c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252.jsonl.gz", "strip_func_name": "sub_403068", "query": "\n\n\n__int64 __fastcall sub_403068(__int64 a1, unsigned int a2, const void *a3, unsigned int a4)\n{\nchar ptr[8]; // [rsp+28h] [rbp-18h] BYREF\nsize_t v8; // [rsp+30h] [rbp-10h]\nsize_t v9; // [rsp+38h] [rbp-8h]\n\nif ( !*(_QWORD *)(a1 + 16) )\nreturn 1LL;\nsub_4122DA(1, (unsigned int)\"%s.%u: append tag %04x, len %u\", (unsigned int)\"btstack_tlv_posix.c\", 74, a2, a4);\nsub_40845A(ptr, 0LL, a2);\nsub_40845A(ptr, 4LL, a4);\nv9 = fwrite(ptr, 1uLL, 8uLL, *(FILE **)(a1 + 16));\nif ( v9 != 8 )\nreturn 1LL;\nif ( a4 )\n{\nv8 = fwrite(a3, 1uLL, a4, *(FILE **)(a1 + 16));\nif ( v8 != a4 )\nreturn 1LL;\n}\nfflush(*(FILE **)(a1 + 16));\nreturn 1LL;\n}\n\n\n\nQ:[a3,a4,a1,a2,ptr,v8,v9,sub_403068,sub_4122DA,sub_40845A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'data', 'a4': 'data_size', 'a1': 'self', 'a2': 'tag', 'ptr': 'header', 'v8': 'written_value', 'v9': 'written_header', 'sub_403068': 'btstack_tlv_posix_append_tag', 'sub_4122DA': 'hci_dump_log', 'sub_40845A': 'big_endian_store_32'}"}
gba_check_sram_flash
19d5318b349f2d5485888470c0f50eb4432edaf30b2bf3df0a433de4edc90d52
insidegadgets
GBxCart-RW
NA
uint8_t gba_check_sram_flash (void) { uint16_t currAddr = 0x0000; uint16_t zeroTotal = 0; hasFlashSave = NOT_CHECKED; // Special check for certain games if (strncmp(gameTitle, "CHUCHU ROCKE", 12) == 0 || strncmp(gameTitle, "CHUCHUROCKET", 12) == 0) { // Chu-Chu Rocket! return SRAM_FLASH_512KBIT; } // Pre-read SRAM/Flash (if the cart has an EEPROM, sometimes D0-D7 come back with random data in the first 64 bytes read) set_number(currAddr, SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); com_read_stop(); // Test if SRAM is present, read 32 sections of RAM (64 bytes each) for (uint8_t x = 0; x < 32; x++) { set_number(currAddr, SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); com_read_stop(); // Check for 0x00 byte for (uint8_t c = 0; c < 64; c++) { if (readBuffer[c] == 0) { zeroTotal++; } } currAddr += 0x400; // Progress if (x % 10 == 0) { printf("."); } } if (zeroTotal >= 2000) { // Looks like no SRAM or Flash present, lets do a more thorough check // Set start and end address currAddr = 0x0000; endAddr = 32768; set_number(currAddr, SET_START_ADDRESS); set_mode(GBA_READ_SRAM); zeroTotal = 0; // Read data while (currAddr < endAddr) { com_read_bytes(READ_BUFFER, 64); currAddr += 64; // Check for 0x00 byte for (uint8_t c = 0; c < 64; c++) { if (readBuffer[c] == 0) { zeroTotal++; } } // Request 64 bytes more if (currAddr < endAddr) { com_read_cont(); } } com_read_stop(); if (zeroTotal == 32768) { return 0; } } // Calculate size by checking different addresses (Test 256Kbit or 512Kbit) uint16_t duplicateCount = 0; char firstBuffer[65]; char secondBuffer[65]; for (uint8_t x = 0; x < 32; x++) { set_number((uint32_t) (x * 0x400), SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); memcpy(&firstBuffer, readBuffer, 64); com_read_stop(); set_number((uint32_t) (x * 0x400) + 0x8000, SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); memcpy(&secondBuffer, readBuffer, 64); com_read_stop(); // Compare for (uint8_t x = 0; x < 64; x++) { if (firstBuffer[x] == secondBuffer[x]) { duplicateCount++; } } // Progress if (x % 10 == 0) { printf("."); } } if (duplicateCount >= 2000) { return SRAM_FLASH_256KBIT; } // Check if it's SRAM or Flash at this stage, maximum for SRAM is 512Kbit printf("\n"); hasFlashSave = gba_test_sram_flash_write(); if (hasFlashSave == NO_FLASH) { return SRAM_FLASH_512KBIT; } // Test 512Kbit or 1Mbit Flash, read first 64 bytes on bank 0 then bank 1 and compare else { duplicateCount = 0; printf("Testing for 512Kbit or 1Mbit Flash... "); for (uint8_t x = 0; x < 32; x++) { // Read bank 0 set_number((uint32_t) (x * 0x400), SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); memcpy(&firstBuffer, readBuffer, 64); com_read_stop(); // Read bank 1 set_number(1, GBA_FLASH_SET_BANK); // Set bank 1 set_number((uint32_t) (x * 0x400), SET_START_ADDRESS); set_mode(GBA_READ_SRAM); com_read_bytes(READ_BUFFER, 64); memcpy(&secondBuffer, readBuffer, 64); com_read_stop(); set_number(0, GBA_FLASH_SET_BANK); // Set back to bank 0 // Compare for (uint8_t x = 0; x < 64; x++) { if (firstBuffer[x] == secondBuffer[x]) { duplicateCount++; } } } // If bank 0 and 1 are duplicated, then it's 512Kbit Flash if (duplicateCount >= 2000) { printf("512Kbit\n"); return SRAM_FLASH_512KBIT; } else { printf("1Mbit\n"); return SRAM_FLASH_1MBIT; } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402E02", "function_addr": 4206082, "binary_name": "19d5318b349f2d5485888470c0f50eb4432edaf30b2bf3df0a433de4edc90d52.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0A0h"], [3, "mov [rbp+var_2], 0"], [4, "mov [rbp+var_4], 0"], [5, "mov cs:dword_408688, 0"], [6, "mov edx, 0Ch"], [7, "mov esi, offset s2"], [8, "mov edi, offset s1"], [9, "call _strncmp"], [10, "test eax, eax"], [11, "jz short loc_402E53"], [12, "mov edx, 0Ch"], [13, "mov esi, offset aChuchurocket"], [14, "mov edi, offset s1"], [15, "call _strncmp"], [16, "test eax, eax"], [17, "jnz short loc_402E5D"], [18, "mov eax, 2"], [19, "jmp locret_4032C7"], [20, "movzx eax, [rbp+var_2]"], [21, "mov esi, 41h "], [22, "mov edi, eax"], [23, "call sub_401EF9"], [24, "mov edi, 6Dh "], [25, "call sub_401EAE"], [26, "mov esi, 40h "], [27, "mov edi, 0"], [28, "call sub_401D36"], [29, "call sub_401C1D"], [30, "mov [rbp+var_5], 0"], [31, "jmp loc_402F44"], [32, "movzx eax, [rbp+var_2]"], [33, "mov esi, 41h "], [34, "mov edi, eax"], [35, "call sub_401EF9"], [36, "mov edi, 6Dh "], [37, "call sub_401EAE"], [38, "mov esi, 40h "], [39, "mov edi, 0"], [40, "call sub_401D36"], [41, "call sub_401C1D"], [42, "mov [rbp+var_6], 0"], [43, "jmp short loc_402EEE"], [44, "movzx eax, [rbp+var_6]"], [45, "cdqe"], [46, "movzx eax, byte ptr ds:qword_408420[rax]"], [47, "test al, al"], [48, "jnz short loc_402EE4"], [49, "movzx eax, [rbp+var_4]"], [50, "add eax, 1"], [51, "mov [rbp+var_4], ax"], [52, "movzx eax, [rbp+var_6]"], [53, "add eax, 1"], [54, "mov [rbp+var_6], al"], [55, "cmp [rbp+var_6], 3Fh "], [56, "jbe short loc_402EC8"], [57, "add [rbp+var_2], 400h"], [58, "movzx ecx, [rbp+var_5]"], [59, "movzx edx, cl"], [60, "mov eax, edx"], [61, "shl eax, 2"], [62, "add eax, edx"], [63, "shl eax, 3"], [64, "add eax, edx"], [65, "lea edx, ds:0[rax*4]"], [66, "add eax, edx"], [67, "shr ax, 8"], [68, "mov edx, eax"], [69, "shr dl, 3"], [70, "mov eax, edx"], [71, "shl eax, 2"], [72, "add eax, edx"], [73, "add eax, eax"], [74, "sub ecx, eax"], [75, "mov edx, ecx"], [76, "test dl, dl"], [77, "jnz short loc_402F3A"], [78, "mov edi, 2Eh "], [79, "call _putchar"], [80, "movzx eax, [rbp+var_5]"], [81, "add eax, 1"], [82, "mov [rbp+var_5], al"], [83, "cmp [rbp+var_5], 1Fh"], [84, "jbe loc_402E94"], [85, "cmp [rbp+var_4], 7CFh"], [86, "jbe loc_40300A"], [87, "mov [rbp+var_2], 0"], [88, "mov cs:dword_408168, 8000h"], [89, "movzx eax, [rbp+var_2]"], [90, "mov esi, 41h "], [91, "mov edi, eax"], [92, "call sub_401EF9"], [93, "mov edi, 6Dh "], [94, "call sub_401EAE"], [95, "mov [rbp+var_4], 0"], [96, "jmp short loc_402FE5"], [97, "mov esi, 40h "], [98, "mov edi, 0"], [99, "call sub_401D36"], [100, "add [rbp+var_2], 40h "], [101, "mov [rbp+var_7], 0"], [102, "jmp short loc_402FCC"], [103, "movzx eax, [rbp+var_7]"], [104, "cdqe"], [105, "movzx eax, byte ptr ds:qword_408420[rax]"], [106, "test al, al"], [107, "jnz short loc_402FC2"], [108, "movzx eax, [rbp+var_4]"], [109, "add eax, 1"], [110, "mov [rbp+var_4], ax"], [111, "movzx eax, [rbp+var_7]"], [112, "add eax, 1"], [113, "mov [rbp+var_7], al"], [114, "cmp [rbp+var_7], 3Fh "], [115, "jbe short loc_402FA6"], [116, "movzx edx, [rbp+var_2]"], [117, "mov eax, cs:dword_408168"], [118, "cmp edx, eax"], [119, "jnb short loc_402FE5"], [120, "call sub_401C43"], [121, "movzx edx, [rbp+var_2]"], [122, "mov eax, cs:dword_408168"], [123, "cmp edx, eax"], [124, "jb short loc_402F8C"], [125, "call sub_401C1D"], [126, "cmp [rbp+var_4], 8000h"], [127, "jnz short loc_40300A"], [128, "mov eax, 0"], [129, "jmp locret_4032C7"], [130, "mov [rbp+var_A], 0"], [131, "mov [rbp+var_B], 0"], [132, "jmp loc_403137"], [133, "movzx eax, [rbp+var_B]"], [134, "shl eax, 0Ah"], [135, "mov esi, 41h "], [136, "mov edi, eax"], [137, "call sub_401EF9"], [138, "mov edi, 6Dh "], [139, "call sub_401EAE"], [140, "mov esi, 40h "], [141, "mov edi, 0"], [142, "call sub_401D36"], [143, "lea rax, [rbp+dest]"], [144, "mov edx, 40h "], [145, "mov esi, offset qword_408420"], [146, "mov rdi, rax"], [147, "call _memcpy"], [148, "call sub_401C1D"], [149, "movzx eax, [rbp+var_B]"], [150, "shl eax, 0Ah"], [151, "add eax, 8000h"], [152, "mov esi, 41h "], [153, "mov edi, eax"], [154, "call sub_401EF9"], [155, "mov edi, 6Dh "], [156, "call sub_401EAE"], [157, "mov esi, 40h "], [158, "mov edi, 0"], [159, "call sub_401D36"], [160, "lea rax, [rbp+var_A0]"], [161, "mov edx, 40h "], [162, "mov esi, offset qword_408420"], [163, "mov rdi, rax"], [164, "call _memcpy"], [165, "call sub_401C1D"], [166, "mov [rbp+var_C], 0"], [167, "jmp short loc_4030E7"], [168, "movzx eax, [rbp+var_C]"], [169, "cdqe"], [170, "movzx edx, [rbp+rax+dest]"], [171, "movzx eax, [rbp+var_C]"], [172, "cdqe"], [173, "movzx eax, [rbp+rax+var_A0]"], [174, "cmp dl, al"], [175, "jnz short loc_4030DD"], [176, "movzx eax, [rbp+var_A]"], [177, "add eax, 1"], [178, "mov [rbp+var_A], ax"], [179, "movzx eax, [rbp+var_C]"], [180, "add eax, 1"], [181, "mov [rbp+var_C], al"], [182, "cmp [rbp+var_C], 3Fh "], [183, "jbe short loc_4030B5"], [184, "movzx ecx, [rbp+var_B]"], [185, "movzx edx, cl"], [186, "mov eax, edx"], [187, "shl eax, 2"], [188, "add eax, edx"], [189, "shl eax, 3"], [190, "add eax, edx"], [191, "lea edx, ds:0[rax*4]"], [192, "add eax, edx"], [193, "shr ax, 8"], [194, "mov edx, eax"], [195, "shr dl, 3"], [196, "mov eax, edx"], [197, "shl eax, 2"], [198, "add eax, edx"], [199, "add eax, eax"], [200, "sub ecx, eax"], [201, "mov edx, ecx"], [202, "test dl, dl"], [203, "jnz short loc_40312D"], [204, "mov edi, 2Eh "], [205, "call _putchar"], [206, "movzx eax, [rbp+var_B]"], [207, "add eax, 1"], [208, "mov [rbp+var_B], al"], [209, "cmp [rbp+var_B], 1Fh"], [210, "jbe loc_403019"], [211, "cmp [rbp+var_A], 7CFh"], [212, "jbe short loc_403153"], [213, "mov eax, 1"], [214, "jmp locret_4032C7"], [215, "mov edi, 0Ah"], [216, "call _putchar"], [217, "call sub_402942"], [218, "movzx eax, al"], [219, "mov cs:dword_408688, eax"], [220, "mov eax, cs:dword_408688"], [221, "cmp eax, 1"], [222, "jnz short loc_403180"], [223, "mov eax, 2"], [224, "jmp locret_4032C7"], [225, "mov [rbp+var_A], 0"], [226, "mov edi, offset aTestingFor512k"], [227, "mov eax, 0"], [228, "call _printf"], [229, "mov [rbp+var_D], 0"], [230, "jmp loc_403295"], [231, "movzx eax, [rbp+var_D]"], [232, "shl eax, 0Ah"], [233, "mov esi, 41h "], [234, "mov edi, eax"], [235, "call sub_401EF9"], [236, "mov edi, 6Dh "], [237, "call sub_401EAE"], [238, "mov esi, 40h "], [239, "mov edi, 0"], [240, "call sub_401D36"], [241, "lea rax, [rbp+dest]"], [242, "mov edx, 40h "], [243, "mov esi, offset qword_408420"], [244, "mov rdi, rax"], [245, "call _memcpy"], [246, "call sub_401C1D"], [247, "mov esi, 6Bh "], [248, "mov edi, 1"], [249, "call sub_401EF9"], [250, "movzx eax, [rbp+var_D]"], [251, "shl eax, 0Ah"], [252, "mov esi, 41h "], [253, "mov edi, eax"], [254, "call sub_401EF9"], [255, "mov edi, 6Dh "], [256, "call sub_401EAE"], [257, "mov esi, 40h "], [258, "mov edi, 0"], [259, "call sub_401D36"], [260, "lea rax, [rbp+var_A0]"], [261, "mov edx, 40h "], [262, "mov esi, offset qword_408420"], [263, "mov rdi, rax"], [264, "call _memcpy"], [265, "call sub_401C1D"], [266, "mov esi, 6Bh "], [267, "mov edi, 0"], [268, "call sub_401EF9"], [269, "mov [rbp+var_E], 0"], [270, "jmp short loc_403285"], [271, "movzx eax, [rbp+var_E]"], [272, "cdqe"], [273, "movzx edx, [rbp+rax+dest]"], [274, "movzx eax, [rbp+var_E]"], [275, "cdqe"], [276, "movzx eax, [rbp+rax+var_A0]"], [277, "cmp dl, al"], [278, "jnz short loc_40327B"], [279, "movzx eax, [rbp+var_A]"], [280, "add eax, 1"], [281, "mov [rbp+var_A], ax"], [282, "movzx eax, [rbp+var_E]"], [283, "add eax, 1"], [284, "mov [rbp+var_E], al"], [285, "cmp [rbp+var_E], 3Fh "], [286, "jbe short loc_403253"], [287, "movzx eax, [rbp+var_D]"], [288, "add eax, 1"], [289, "mov [rbp+var_D], al"], [290, "cmp [rbp+var_D], 1Fh"], [291, "jbe loc_40319E"], [292, "cmp [rbp+var_A], 7CFh"], [293, "jbe short loc_4032B8"], [294, "mov edi, offset a512kbit"], [295, "call _puts"], [296, "mov eax, 2"], [297, "jmp short locret_4032C7"], [298, "mov edi, offset a1mbit"], [299, "call _puts"], [300, "mov eax, 3"], [301, "leave"], [302, "retn"]], "data_dep": [[10, 9], [11, 10], [16, 15], [17, 16], [20, 3], [22, 20], [32, 3], [32, 57], [34, 32], [44, 54], [44, 42], [47, 46], [48, 47], [49, 4], [49, 51], [50, 49], [51, 50], [52, 42], [52, 54], [53, 52], [54, 53], [55, 54], [55, 42], [56, 55], [57, 57], [57, 3], [58, 30], [58, 82], [59, 58], [60, 59], [61, 60], [62, 59], [62, 61], [63, 62], [64, 59], [64, 63], [65, 59], [66, 64], [66, 65], [67, 66], [68, 67], [69, 68], [70, 69], [71, 70], [72, 69], [72, 71], [73, 72], [74, 73], [74, 58], [75, 74], [76, 75], [77, 76], [80, 30], [80, 82], [81, 80], [82, 81], [83, 30], [83, 82], [84, 83], [85, 4], [85, 51], [86, 85], [89, 87], [91, 89], [100, 87], [100, 100], [103, 113], [103, 101], [106, 105], [107, 106], [108, 95], [108, 110], [109, 108], [110, 109], [111, 101], [111, 113], [112, 111], [113, 112], [114, 113], [114, 101], [115, 114], [116, 100], [117, 88], [118, 117], [118, 116], [119, 118], [121, 87], [121, 100], [122, 88], [123, 121], [123, 122], [124, 123], [126, 110], [126, 95], [127, 126], [133, 131], [133, 208], [134, 133], [136, 134], [143, 142], [146, 143], [149, 208], [149, 131], [150, 149], [151, 150], [153, 151], [160, 159], [163, 160], [168, 166], [168, 181], [170, 168], [171, 181], [171, 166], [173, 171], [174, 173], [174, 170], [175, 174], [176, 178], [176, 130], [177, 176], [178, 177], [179, 181], [179, 166], [180, 179], [181, 180], [182, 181], [182, 166], [183, 182], [184, 131], [184, 208], [185, 184], [186, 185], [187, 186], [188, 187], [188, 185], [189, 188], [190, 185], [190, 189], [191, 185], [192, 190], [192, 191], [193, 192], [194, 193], [195, 194], [196, 195], [197, 196], [198, 195], [198, 197], [199, 198], [200, 199], [200, 184], [201, 200], [202, 201], [203, 202], [206, 131], [206, 208], [207, 206], [208, 207], [209, 131], [209, 208], [210, 209], [211, 130], [211, 178], [212, 211], [218, 217], [219, 218], [220, 219], [221, 220], [222, 221], [231, 289], [231, 229], [232, 231], [234, 232], [241, 240], [244, 241], [250, 289], [250, 229], [251, 250], [253, 251], [260, 259], [263, 260], [271, 269], [271, 284], [273, 271], [274, 269], [274, 284], [276, 274], [277, 276], [277, 273], [278, 277], [279, 281], [279, 225], [280, 279], [281, 280], [282, 269], [282, 284], [283, 282], [284, 283], [285, 269], [285, 284], [286, 285], [287, 289], [287, 229], [288, 287], [289, 288], [290, 289], [290, 229], [291, 290], [292, 225], [292, 281], [293, 292], [302, 128], [302, 18], [302, 223], [302, 296], [302, 300], [302, 213]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/19d5318b349f2d5485888470c0f50eb4432edaf30b2bf3df0a433de4edc90d52_19d5318b349f2d5485888470c0f50eb4432edaf30b2bf3df0a433de4edc90d52.jsonl.gz", "strip_func_name": "sub_402E02", "query": "\n\n\n__int64 sub_402E02()\n{\n__int64 result; // rax\nchar v1[80]; // [rsp+0h] [rbp-A0h] BYREF\nchar dest[66]; // [rsp+50h] [rbp-50h] BYREF\nunsigned __int8 ii; // [rsp+92h] [rbp-Eh]\nunsigned __int8 n; // [rsp+93h] [rbp-Dh]\nunsigned __int8 m; // [rsp+94h] [rbp-Ch]\nunsigned __int8 l; // [rsp+95h] [rbp-Bh]\nunsigned __int16 v7; // [rsp+96h] [rbp-Ah]\nunsigned __int8 k; // [rsp+99h] [rbp-7h]\nunsigned __int8 j; // [rsp+9Ah] [rbp-6h]\nunsigned __int8 i; // [rsp+9Bh] [rbp-5h]\nunsigned __int16 v11; // [rsp+9Ch] [rbp-4h]\nunsigned __int16 v12; // [rsp+9Eh] [rbp-2h]\n\nv12 = 0;\nv11 = 0;\ndword_408688 = 0;\nif ( !strncmp(s1, \"CHUCHU ROCKE\", 0xCuLL) || !strncmp(s1, \"CHUCHUROCKET\", 0xCuLL) )\nreturn 2LL;\nsub_401EF9(v12, 0x41u);\nsub_401EAE(109);\nsub_401D36(0LL, 64);\nsub_401C1D();\nfor ( i = 0; i <= 0x1Fu; ++i )\n{\nsub_401EF9(v12, 0x41u);\nsub_401EAE(109);\nsub_401D36(0LL, 64);\nsub_401C1D();\nfor ( j = 0; j <= 0x3Fu; ++j )\n{\nif ( !*((_BYTE *)&qword_408420 + j) )\n++v11;\n}\nv12 += 1024;\nif ( i == 10 * (i / 0xAu) )\nputchar(46);\n}\nif ( v11 > 0x7CFu )\n{\nv12 = 0;\ndword_408168 = 0x8000;\nsub_401EF9(0, 0x41u);\nsub_401EAE(109);\nv11 = 0;\nwhile ( v12 < (unsigned int)dword_408168 )\n{\nsub_401D36(0LL, 64);\nv12 += 64;\nfor ( k = 0; k <= 0x3Fu; ++k )\n{\nif ( !*((_BYTE *)&qword_408420 + k) )\n++v11;\n}\nif ( v12 < (unsigned int)dword_408168 )\nsub_401C43();\n}\nsub_401C1D();\nif ( v11 == 0x8000 )\nreturn 0LL;\n}\nv7 = 0;\nfor ( l = 0; l <= 0x1Fu; ++l )\n{\nsub_401EF9(l << 10, 0x41u);\nsub_401EAE(109);\nsub_401D36(0LL, 64);\nmemcpy(dest, &qword_408420, 0x40uLL);\nsub_401C1D();\nsub_401EF9((l << 10) + 0x8000, 0x41u);\nsub_401EAE(109);\nsub_401D36(0LL, 64);\nmemcpy(v1, &qword_408420, 0x40uLL);\nsub_401C1D();\nfor ( m = 0; m <= 0x3Fu; ++m )\n{\nif ( dest[m] == v1[m] )\n++v7;\n}\nif ( l == 10 * (l / 0xAu) )\nputchar(46);\n}\nif ( v7 > 0x7CFu )\nreturn 1LL;\nputchar(10);\ndword_408688 = (unsigned __int8)sub_402942();\nif ( dword_408688 == 1 )\nreturn 2LL;\nv7 = 0;\nprintf(\"Testing for 512Kbit or 1Mbit Flash... \");\nfor ( n = 0; n <= 0x1Fu; ++n )\n{\nsub_401EF9(n << 10, 0x41u);\nsub_401EAE(109);\nsub_401D36(0LL, 64);\nmemcpy(dest, &qword_408420, 0x40uLL);\nsub_401C1D();\nsub_401EF9(1u, 0x6Bu);\nsub_401EF9(n << 10, 0x41u);\nsub_401EAE(109);\nsub_401D36(0LL, 64);\nmemcpy(v1, &qword_408420, 0x40uLL);\nsub_401C1D();\nsub_401EF9(0, 0x6Bu);\nfor ( ii = 0; ii <= 0x3Fu; ++ii )\n{\nif ( dest[ii] == v1[ii] )\n++v7;\n}\n}\nif ( v7 <= 0x7CFu )\n{\nputs(\"1Mbit\");\nresult = 3LL;\n}\nelse\n{\nputs(\"512Kbit\");\nresult = 2LL;\n}\nreturn result;\n}\n\n\n\nQ:[v1,dest,ii,n,m,l,v7,k,j,i,v11,v12,sub_402E02,sub_401EF9,sub_401EAE,sub_401D36,sub_401C1D,sub_401C43,sub_402942,]\nAssistant: ", "hints": "[]", "response": "{'v1': 'secondBuffer', 'dest': 'firstBuffer', 'ii': 'x_3', 'n': 'x_2', 'm': 'x_1', 'l': 'x_0', 'v7': 'duplicateCount', 'k': 'c_0', 'j': 'c', 'i': 'x', 'v11': 'zeroTotal', 'v12': 'currAddr', 'sub_402E02': 'gba_check_sram_flash', 'sub_401EF9': 'set_number', 'sub_401EAE': 'set_mode', 'sub_401D36': 'com_read_bytes', 'sub_401C1D': 'com_read_stop', 'sub_401C43': 'com_read_cont', 'sub_402942': 'gba_test_sram_flash_write'}"}
sm_passkey_entry
1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca
micropython
micropython-unicorn
NA
static int sm_passkey_entry(stk_generation_method_t method){ switch (method){ case PK_RESP_INPUT: case PK_INIT_INPUT: case PK_BOTH_INPUT: return 1; default: return 0; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4259DB", "function_addr": 4348379, "binary_name": "1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "mov eax, [rbp+var_4]"], [4, "sub eax, 1"], [5, "cmp eax, 2"], [6, "ja short loc_4259F4"], [7, "mov eax, 1"], [8, "jmp short loc_4259F9"], [9, "mov eax, 0"], [10, "pop rbp"], [11, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [10, 0], [11, 7], [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/1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca_1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.jsonl.gz", "strip_func_name": "sub_4259DB", "query": "\n\n\n_BOOL8 __fastcall sub_4259DB(int a1)\n{\nreturn (unsigned int)(a1 - 1) <= 2;\n}\n\n\n\nQ:[a1,sub_4259DB,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'method', 'sub_4259DB': 'sm_passkey_entry'}"}
increase_tima
276536b89cc3e58f9e6dd34cde9d9d4ba21328c5a859320d5e06460e1ec2c7de
LIJI32
SameBoy
NA
static void increase_tima(GB_gameboy_t *gb) { gb->io_registers[GB_IO_TIMA]++; if (gb->io_registers[GB_IO_TIMA] == 0) { gb->io_registers[GB_IO_TIMA] = gb->io_registers[GB_IO_TMA]; gb->tima_reload_state = GB_TIMA_RELOADING; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43F156", "function_addr": 4452694, "binary_name": "276536b89cc3e58f9e6dd34cde9d9d4ba21328c5a859320d5e06460e1ec2c7de.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov rax, [rbp+var_8]"], [4, "movzx eax, byte ptr [rax+19Ch]"], [5, "lea edx, [rax+1]"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rax+19Ch], dl"], [8, "mov rax, [rbp+var_8]"], [9, "movzx eax, byte ptr [rax+19Ch]"], [10, "test al, al"], [11, "jnz short loc_43F1A5"], [12, "mov rax, [rbp+var_8]"], [13, "movzx edx, byte ptr [rax+19Dh]"], [14, "mov rax, [rbp+var_8]"], [15, "mov [rax+19Ch], dl"], [16, "mov rax, [rbp+var_8]"], [17, "mov byte ptr [rax+22Ah], 1"], [18, "nop"], [19, "pop rbp"], [20, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 2], [7, 6], [7, 5], [8, 2], [9, 8], [9, 7], [10, 9], [11, 10], [12, 2], [13, 17], [13, 7], [13, 15], [13, 12], [14, 2], [15, 14], [15, 13], [16, 2], [17, 16], [19, 0], [20, 10], [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/276536b89cc3e58f9e6dd34cde9d9d4ba21328c5a859320d5e06460e1ec2c7de_276536b89cc3e58f9e6dd34cde9d9d4ba21328c5a859320d5e06460e1ec2c7de.jsonl.gz", "strip_func_name": "sub_43F156", "query": "\n\n\nunsigned __int64 __fastcall sub_43F156(_BYTE *a1)\n{\nunsigned __int64 result; // rax\n\nresult = (unsigned __int8)++a1[412];\nif ( !(_BYTE)result )\n{\na1[412] = a1[413];\nresult = (unsigned __int64)a1;\na1[554] = 1;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_43F156,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'gb', 'sub_43F156': 'increase_tima'}"}
archive_search_se_new
2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3
smarco
gem3-mapper
NA
void archive_search_se_new( search_parameters_t* const search_parameters, const bool buffered_search, archive_search_t** const archive_search) { // Prepare Search *archive_search = mm_alloc(archive_search_t); // Allocate handler archive_search_configure(*archive_search,search_parameters,buffered_search); archive_select_configure_se(*archive_search); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414651", "function_addr": 4277841, "binary_name": "2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov eax, esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov [rbp+var_C], al"], [7, "mov ecx, 0"], [8, "mov edx, 0"], [9, "mov esi, 538h"], [10, "mov edi, 1"], [11, "call sub_44D294"], [12, "mov rdx, [rbp+var_18]"], [13, "mov [rdx], rax"], [14, "movzx edx, [rbp+var_C]"], [15, "mov rax, [rbp+var_18]"], [16, "mov rax, [rax]"], [17, "mov rcx, [rbp+var_8]"], [18, "mov rsi, rcx"], [19, "mov rdi, rax"], [20, "call sub_414600"], [21, "mov rax, [rbp+var_18]"], [22, "mov rax, [rax]"], [23, "mov rdi, rax"], [24, "call sub_417505"], [25, "nop"], [26, "leave"], [27, "retn"]], "data_dep": [[6, 4], [12, 5], [13, 12], [13, 11], [14, 6], [15, 5], [16, 13], [16, 15], [17, 3], [18, 17], [19, 16], [21, 5], [22, 21], [22, 13], [23, 22], [27, 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/2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3_2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.jsonl.gz", "strip_func_name": "sub_414651", "query": "\n\n\n__int64 __fastcall sub_414651(const void *a1, char a2, __int64 *a3)\n{\n*a3 = sub_44D294(1LL, 1336LL, 0LL, 0LL);\nsub_414600(*a3, a1, a2);\nreturn sub_417505(*a3);\n}\n\n\n\nQ:[a3,a1,a2,sub_414651,sub_44D294,sub_414600,sub_417505,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'archive_search', 'a1': 'search_parameters', 'a2': 'buffered_search', 'sub_414651': 'archive_search_se_new', 'sub_44D294': 'mm_malloc_', 'sub_414600': 'archive_search_configure', 'sub_417505': 'archive_select_configure_se'}"}
AL_HEVC_IsRASL
5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f
Xilinx
vcu-ctrl-sw
NA
bool AL_HEVC_IsRASL(AL_ENut eNUT) { return eNUT == AL_HEVC_NUT_RASL_N || eNUT == AL_HEVC_NUT_RASL_R; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43876A", "function_addr": 4425578, "binary_name": "5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "cmp [rbp+var_4], 8"], [4, "jz short loc_43877D"], [5, "cmp [rbp+var_4], 9"], [6, "jnz short loc_438784"], [7, "mov eax, 1"], [8, "jmp short loc_438789"], [9, "mov eax, 0"], [10, "and eax, 1"], [11, "pop rbp"], [12, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 2], [6, 5], [10, 7], [10, 9], [11, 0], [12, 10]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f_5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f.jsonl.gz", "strip_func_name": "sub_43876A", "query": "\n\n\n_BOOL8 __fastcall sub_43876A(int a1)\n{\nreturn a1 == 8 || a1 == 9;\n}\n\n\n\nQ:[a1,sub_43876A,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'eNUT', 'sub_43876A': 'AL_HEVC_IsRASL'}"}
bf_pow
14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243
sunnyxx
quickjs-debug
NA
int bf_pow(bf_t *r, const bf_t *x, const bf_t *y, limb_t prec, bf_flags_t flags) { bf_context_t *s = r->ctx; bf_t T_s, *T = &T_s; bf_t ytmp_s; BOOL y_is_int, y_is_odd; int r_sign, ret, rnd_mode; slimb_t y_emin; if (x->len == 0 || y->len == 0) { if (y->expn == BF_EXP_ZERO) { /* pow(x, 0) = 1 */ bf_set_ui(r, 1); } else if (x->expn == BF_EXP_NAN) { bf_set_nan(r); } else { int cmp_x_abs_1; bf_set_ui(r, 1); cmp_x_abs_1 = bf_cmpu(x, r); if (cmp_x_abs_1 == 0 && (flags & BF_POW_JS_QUICKS) && (y->expn >= BF_EXP_INF)) { bf_set_nan(r); } else if (cmp_x_abs_1 == 0 && (!x->sign || y->expn != BF_EXP_NAN)) { /* pow(1, y) = 1 even if y = NaN */ /* pow(-1, +/-inf) = 1 */ } else if (y->expn == BF_EXP_NAN) { bf_set_nan(r); } else if (y->expn == BF_EXP_INF) { if (y->sign == (cmp_x_abs_1 > 0)) { bf_set_zero(r, 0); } else { bf_set_inf(r, 0); } } else { y_emin = bf_get_exp_min(y); y_is_odd = (y_emin == 0); if (y->sign == (x->expn == BF_EXP_ZERO)) { bf_set_inf(r, y_is_odd & x->sign); if (y->sign) { /* pow(0, y) with y < 0 */ return BF_ST_DIVIDE_ZERO; } } else { bf_set_zero(r, y_is_odd & x->sign); } } } return 0; } bf_init(s, T); bf_set(T, x); y_emin = bf_get_exp_min(y); y_is_int = (y_emin >= 0); rnd_mode = flags & BF_RND_MASK; if (x->sign) { if (!y_is_int) { bf_set_nan(r); bf_delete(T); return BF_ST_INVALID_OP; } y_is_odd = (y_emin == 0); r_sign = y_is_odd; /* change the directed rounding mode if the sign of the result is changed */ if (r_sign && (rnd_mode == BF_RNDD || rnd_mode == BF_RNDU)) flags ^= 1; bf_neg(T); } else { r_sign = 0; } bf_set_ui(r, 1); if (bf_cmp_eq(T, r)) { /* abs(x) = 1: nothing more to do */ ret = 0; } else if (y_is_int) { slimb_t T_bits, e; int_pow: T_bits = T->expn - bf_get_exp_min(T); if (T_bits == 1) { /* pow(2^b, y) = 2^(b*y) */ bf_mul_si(T, y, T->expn - 1, LIMB_BITS, BF_RNDZ); bf_get_limb(&e, T, 0); bf_set_ui(r, 1); ret = bf_mul_2exp(r, e, prec, flags); } else if (prec == BF_PREC_INF) { slimb_t y1; /* specific case for infinite precision (integer case) */ bf_get_limb(&y1, y, 0); assert(!y->sign); /* x must be an integer, so abs(x) >= 2 */ if (y1 >= ((slimb_t)1 << BF_EXP_BITS_MAX)) { bf_delete(T); return bf_set_overflow(r, 0, BF_PREC_INF, flags); } ret = bf_pow_ui(r, T, y1, BF_PREC_INF, BF_RNDZ); } else { if (y->expn <= 31) { /* small enough power: use exponentiation in all cases */ } else if (y->sign) { /* cannot be exact */ goto general_case; } else { if (rnd_mode == BF_RNDF) goto general_case; /* no need to track exact results */ /* see if the result has a chance to be exact: if x=a*2^b (a odd), x^y=a^y*2^(b*y) x^y needs a precision of at least floor_log2(a)*y bits */ bf_mul_si(r, y, T_bits - 1, LIMB_BITS, BF_RNDZ); bf_get_limb(&e, r, 0); if (prec < e) goto general_case; } ret = bf_ziv_rounding(r, T, prec, flags, bf_pow_int, (void *)y); } } else { if (rnd_mode != BF_RNDF) { bf_t *y1; if (y_emin < 0 && check_exact_power2n(r, T, -y_emin)) { /* the problem is reduced to a power to an integer */ #if 0 printf("\nn=%ld\n", -y_emin); bf_print_str("T", T); bf_print_str("r", r); #endif bf_set(T, r); y1 = &ytmp_s; y1->tab = y->tab; y1->len = y->len; y1->sign = y->sign; y1->expn = y->expn - y_emin; y = y1; goto int_pow; } } general_case: ret = bf_ziv_rounding(r, T, prec, flags, bf_pow_generic, (void *)y); } bf_delete(T); r->sign = r_sign; return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4ACED0", "function_addr": 4902608, "binary_name": "14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 0E8h"], [4, "mov [rbp+var_C8], rdi"], [5, "mov [rbp+var_D0], rsi"], [6, "mov [rbp+var_D8], rdx"], [7, "mov [rbp+var_E0], rcx"], [8, "mov [rbp+var_E4], r8d"], [9, "mov rax, [rbp+var_C8]"], [10, "mov rax, [rax]"], [11, "mov [rbp+var_20], rax"], [12, "lea rax, [rbp+var_80]"], [13, "mov [rbp+var_28], rax"], [14, "mov rax, [rbp+var_D0]"], [15, "mov rax, [rax+18h]"], [16, "test rax, rax"], [17, "jz short loc_4ACF39"], [18, "mov rax, [rbp+var_D8]"], [19, "mov rax, [rax+18h]"], [20, "test rax, rax"], [21, "jnz loc_4AD187"], [22, "mov rax, [rbp+var_D8]"], [23, "mov rax, [rax+10h]"], [24, "mov rdx, 8000000000000000h"], [25, "cmp rax, rdx"], [26, "jnz short loc_4ACF6C"], [27, "mov rax, [rbp+var_C8]"], [28, "mov esi, 1"], [29, "mov rdi, rax"], [30, "call sub_4A2788"], [31, "jmp loc_4AD17D"], [32, "mov rax, [rbp+var_D0]"], [33, "mov rax, [rax+10h]"], [34, "mov rdx, 7FFFFFFFFFFFFFFFh"], [35, "cmp rax, rdx"], [36, "jnz short loc_4ACF9A"], [37, "mov rax, [rbp+var_C8]"], [38, "mov rdi, rax"], [39, "call sub_4A2872"], [40, "jmp loc_4AD17D"], [41, "mov rax, [rbp+var_C8]"], [42, "mov esi, 1"], [43, "mov rdi, rax"], [44, "call sub_4A2788"], [45, "mov rdx, [rbp+var_C8]"], [46, "mov rax, [rbp+var_D0]"], [47, "mov rsi, rdx"], [48, "mov rdi, rax"], [49, "call sub_4A381D"], [50, "mov [rbp+var_54], eax"], [51, "cmp [rbp+var_54], 0"], [52, "jnz short loc_4AD00D"], [53, "mov eax, [rbp+var_E4]"], [54, "and eax, 10000h"], [55, "test eax, eax"], [56, "jz short loc_4AD00D"], [57, "mov rax, [rbp+var_D8]"], [58, "mov rax, [rax+10h]"], [59, "mov rdx, 7FFFFFFFFFFFFFFDh"], [60, "cmp rax, rdx"], [61, "jle short loc_4AD00D"], [62, "mov rax, [rbp+var_C8]"], [63, "mov rdi, rax"], [64, "call sub_4A2872"], [65, "jmp loc_4AD17D"], [66, "cmp [rbp+var_54], 0"], [67, "jnz short loc_4AD043"], [68, "mov rax, [rbp+var_D0]"], [69, "mov eax, [rax+8]"], [70, "test eax, eax"], [71, "jz loc_4AD17C"], [72, "mov rax, [rbp+var_D8]"], [73, "mov rax, [rax+10h]"], [74, "mov rdx, 7FFFFFFFFFFFFFFFh"], [75, "cmp rax, rdx"], [76, "jnz loc_4AD17C"], [77, "mov rax, [rbp+var_D8]"], [78, "mov rax, [rax+10h]"], [79, "mov rdx, 7FFFFFFFFFFFFFFFh"], [80, "cmp rax, rdx"], [81, "jnz short loc_4AD071"], [82, "mov rax, [rbp+var_C8]"], [83, "mov rdi, rax"], [84, "call sub_4A2872"], [85, "jmp loc_4AD17D"], [86, "mov rax, [rbp+var_D8]"], [87, "mov rax, [rax+10h]"], [88, "mov rdx, 7FFFFFFFFFFFFFFEh"], [89, "cmp rax, rdx"], [90, "jnz short loc_4AD0D5"], [91, "mov rax, [rbp+var_D8]"], [92, "mov edx, [rax+8]"], [93, "cmp [rbp+var_54], 0"], [94, "setnle al"], [95, "movzx eax, al"], [96, "cmp edx, eax"], [97, "jnz short loc_4AD0BC"], [98, "mov rax, [rbp+var_C8]"], [99, "mov esi, 0"], [100, "mov rdi, rax"], [101, "call sub_4A28AF"], [102, "jmp loc_4AD17D"], [103, "mov rax, [rbp+var_C8]"], [104, "mov esi, 0"], [105, "mov rdi, rax"], [106, "call sub_4A28EE"], [107, "jmp loc_4AD17D"], [108, "mov rax, [rbp+var_D8]"], [109, "mov rdi, rax"], [110, "call sub_4A595B"], [111, "mov [rbp+var_30], rax"], [112, "cmp [rbp+var_30], 0"], [113, "setz al"], [114, "movzx eax, al"], [115, "mov [rbp+var_3C], eax"], [116, "mov rax, [rbp+var_D8]"], [117, "mov edx, [rax+8]"], [118, "mov rax, [rbp+var_D0]"], [119, "mov rax, [rax+10h]"], [120, "mov rcx, 8000000000000000h"], [121, "cmp rax, rcx"], [122, "setz al"], [123, "movzx eax, al"], [124, "cmp edx, eax"], [125, "jnz short loc_4AD15A"], [126, "mov rax, [rbp+var_D0]"], [127, "mov eax, [rax+8]"], [128, "and eax, [rbp+var_3C]"], [129, "mov edx, eax"], [130, "mov rax, [rbp+var_C8]"], [131, "mov esi, edx"], [132, "mov rdi, rax"], [133, "call sub_4A28EE"], [134, "mov rax, [rbp+var_D8]"], [135, "mov eax, [rax+8]"], [136, "test eax, eax"], [137, "jz short loc_4AD17D"], [138, "mov eax, 2"], [139, "jmp loc_4AD606"], [140, "mov rax, [rbp+var_D0]"], [141, "mov eax, [rax+8]"], [142, "and eax, [rbp+var_3C]"], [143, "mov edx, eax"], [144, "mov rax, [rbp+var_C8]"], [145, "mov esi, edx"], [146, "mov rdi, rax"], [147, "call sub_4A28AF"], [148, "jmp short loc_4AD17D"], [149, "nop"], [150, "mov eax, 0"], [151, "jmp loc_4AD606"], [152, "mov rdx, [rbp+var_28]"], [153, "mov rax, [rbp+var_20]"], [154, "mov rsi, rdx"], [155, "mov rdi, rax"], [156, "call sub_4A26DE"], [157, "mov rdx, [rbp+var_D0]"], [158, "mov rax, [rbp+var_28]"], [159, "mov rsi, rdx"], [160, "mov rdi, rax"], [161, "call sub_4A292D"], [162, "mov rax, [rbp+var_D8]"], [163, "mov rdi, rax"], [164, "call sub_4A595B"], [165, "mov [rbp+var_30], rax"], [166, "mov rax, [rbp+var_30]"], [167, "not rax"], [168, "shr rax, 3Fh"], [169, "movzx eax, al"], [170, "mov [rbp+var_34], eax"], [171, "mov eax, [rbp+var_E4]"], [172, "and eax, 7"], [173, "mov [rbp+var_38], eax"], [174, "mov rax, [rbp+var_D0]"], [175, "mov eax, [rax+8]"], [176, "test eax, eax"], [177, "jz short loc_4AD254"], [178, "cmp [rbp+var_34], 0"], [179, "jnz short loc_4AD219"], [180, "mov rax, [rbp+var_C8]"], [181, "mov rdi, rax"], [182, "call sub_4A2872"], [183, "mov rax, [rbp+var_28]"], [184, "mov rdi, rax"], [185, "call sub_4A2528"], [186, "mov eax, 1"], [187, "jmp loc_4AD606"], [188, "cmp [rbp+var_30], 0"], [189, "setz al"], [190, "movzx eax, al"], [191, "mov [rbp+var_3C], eax"], [192, "mov eax, [rbp+var_3C]"], [193, "mov [rbp+var_14], eax"], [194, "cmp [rbp+var_14], 0"], [195, "jz short loc_4AD246"], [196, "cmp [rbp+var_38], 2"], [197, "jz short loc_4AD23F"], [198, "cmp [rbp+var_38], 3"], [199, "jnz short loc_4AD246"], [200, "xor [rbp+var_E4], 1"], [201, "mov rax, [rbp+var_28]"], [202, "mov rdi, rax"], [203, "call sub_4A2565"], [204, "jmp short loc_4AD25B"], [205, "mov [rbp+var_14], 0"], [206, "mov rax, [rbp+var_C8]"], [207, "mov esi, 1"], [208, "mov rdi, rax"], [209, "call sub_4A2788"], [210, "mov rdx, [rbp+var_C8]"], [211, "mov rax, [rbp+var_28]"], [212, "mov rsi, rdx"], [213, "mov rdi, rax"], [214, "call sub_4A3B03"], [215, "test eax, eax"], [216, "jz short loc_4AD295"], [217, "mov [rbp+var_18], 0"], [218, "jmp loc_4AD5EA"], [219, "cmp [rbp+var_34], 0"], [220, "jz loc_4AD4EE"], [221, "nop"], [222, "mov rax, [rbp+var_28]"], [223, "mov rbx, [rax+10h]"], [224, "mov rax, [rbp+var_28]"], [225, "mov rdi, rax"], [226, "call sub_4A595B"], [227, "mov rdx, rax"], [228, "mov rax, rbx"], [229, "sub rax, rdx"], [230, "mov [rbp+var_50], rax"], [231, "cmp [rbp+var_50], 1"], [232, "jnz loc_4AD350"], [233, "mov rax, [rbp+var_28]"], [234, "mov rax, [rax+10h]"], [235, "lea rdx, [rax-1]"], [236, "mov rsi, [rbp+var_D8]"], [237, "mov rax, [rbp+var_28]"], [238, "mov r8d, 1"], [239, "mov ecx, 40h "], [240, "mov rdi, rax"], [241, "call sub_4A744F"], [242, "mov rcx, [rbp+var_28]"], [243, "lea rax, [rbp+var_B8]"], [244, "mov edx, 0"], [245, "mov rsi, rcx"], [246, "mov rdi, rax"], [247, "call sub_4A672D"], [248, "mov rax, [rbp+var_C8]"], [249, "mov esi, 1"], [250, "mov rdi, rax"], [251, "call sub_4A2788"], [252, "mov rsi, [rbp+var_B8]"], [253, "mov ecx, [rbp+var_E4]"], [254, "mov rdx, [rbp+var_E0]"], [255, "mov rax, [rbp+var_C8]"], [256, "mov rdi, rax"], [257, "call sub_4A5517"], [258, "mov [rbp+var_18], eax"], [259, "jmp loc_4AD5EA"], [260, "mov rax, 3FFFFFFFFFFFFFFFh"], [261, "cmp [rbp+var_E0], rax"], [262, "jnz loc_4AD42E"], [263, "mov rcx, [rbp+var_D8]"], [264, "lea rax, [rbp+var_C0]"], [265, "mov edx, 0"], [266, "mov rsi, rcx"], [267, "mov rdi, rax"], [268, "call sub_4A672D"], [269, "mov rax, [rbp+var_D8]"], [270, "mov eax, [rax+8]"], [271, "test eax, eax"], [272, "jz short loc_4AD3AC"], [273, "mov ecx, offset aBfPow"], [274, "mov edx, 1025h"], [275, "mov esi, offset aLibbfC"], [276, "mov edi, offset aYSign"], [277, "call ___assert_fail"], [278, "mov rax, [rbp+var_C0]"], [279, "mov rdx, 3FFFFFFFFFFFFFFFh"], [280, "cmp rax, rdx"], [281, "jle short loc_4AD3F9"], [282, "mov rax, [rbp+var_28]"], [283, "mov rdi, rax"], [284, "call sub_4A2528"], [285, "mov edx, [rbp+var_E4]"], [286, "mov rax, [rbp+var_C8]"], [287, "mov ecx, edx"], [288, "mov rdx, 3FFFFFFFFFFFFFFFh"], [289, "mov esi, 0"], [290, "mov rdi, rax"], [291, "call sub_4A2E02"], [292, "jmp loc_4AD606"], [293, "mov rax, [rbp+var_C0]"], [294, "mov rdx, rax"], [295, "mov rsi, [rbp+var_28]"], [296, "mov rax, [rbp+var_C8]"], [297, "mov r8d, 1"], [298, "mov rcx, 3FFFFFFFFFFFFFFFh"], [299, "mov rdi, rax"], [300, "call sub_4A753D"], [301, "mov [rbp+var_18], eax"], [302, "jmp loc_4AD5EA"], [303, "mov rax, [rbp+var_D8]"], [304, "mov rax, [rax+10h]"], [305, "cmp rax, 1Fh"], [306, "jle short loc_4AD4B6"], [307, "mov rax, [rbp+var_D8]"], [308, "mov eax, [rax+8]"], [309, "test eax, eax"], [310, "jnz loc_4AD5AD"], [311, "cmp [rbp+var_38], 6"], [312, "jz loc_4AD5B0"], [313, "mov rax, [rbp+var_50]"], [314, "lea rdx, [rax-1]"], [315, "mov rsi, [rbp+var_D8]"], [316, "mov rax, [rbp+var_C8]"], [317, "mov r8d, 1"], [318, "mov ecx, 40h "], [319, "mov rdi, rax"], [320, "call sub_4A744F"], [321, "mov rcx, [rbp+var_C8]"], [322, "lea rax, [rbp+var_B8]"], [323, "mov edx, 0"], [324, "mov rsi, rcx"], [325, "mov rdi, rax"], [326, "call sub_4A672D"], [327, "mov rax, [rbp+var_B8]"], [328, "cmp [rbp+var_E0], rax"], [329, "jb loc_4AD5B3"], [330, "mov rdi, [rbp+var_D8]"], [331, "mov ecx, [rbp+var_E4]"], [332, "mov rdx, [rbp+var_E0]"], [333, "mov rsi, [rbp+var_28]"], [334, "mov rax, [rbp+var_C8]"], [335, "mov r9, rdi"], [336, "mov r8d, offset sub_4ACC1B"], [337, "mov rdi, rax"], [338, "call sub_4ABD7C"], [339, "mov [rbp+var_18], eax"], [340, "jmp loc_4AD5EA"], [341, "cmp [rbp+var_38], 6"], [342, "jz loc_4AD5B6"], [343, "cmp [rbp+var_30], 0"], [344, "jns loc_4AD5B6"], [345, "mov rax, [rbp+var_30]"], [346, "neg rax"], [347, "mov rdx, rax"], [348, "mov rcx, [rbp+var_28]"], [349, "mov rax, [rbp+var_C8]"], [350, "mov rsi, rcx"], [351, "mov rdi, rax"], [352, "call sub_4ACD2D"], [353, "test eax, eax"], [354, "jz loc_4AD5B6"], [355, "mov rdx, [rbp+var_C8]"], [356, "mov rax, [rbp+var_28]"], [357, "mov rsi, rdx"], [358, "mov rdi, rax"], [359, "call sub_4A292D"], [360, "lea rax, [rbp+var_B0]"], [361, "mov [rbp+var_48], rax"], [362, "mov rax, [rbp+var_D8]"], [363, "mov rdx, [rax+20h]"], [364, "mov rax, [rbp+var_48]"], [365, "mov [rax+20h], rdx"], [366, "mov rax, [rbp+var_D8]"], [367, "mov rdx, [rax+18h]"], [368, "mov rax, [rbp+var_48]"], [369, "mov [rax+18h], rdx"], [370, "mov rax, [rbp+var_D8]"], [371, "mov edx, [rax+8]"], [372, "mov rax, [rbp+var_48]"], [373, "mov [rax+8], edx"], [374, "mov rax, [rbp+var_D8]"], [375, "mov rax, [rax+10h]"], [376, "sub rax, [rbp+var_30]"], [377, "mov rdx, rax"], [378, "mov rax, [rbp+var_48]"], [379, "mov [rax+10h], rdx"], [380, "mov rax, [rbp+var_48]"], [381, "mov [rbp+var_D8], rax"], [382, "jmp loc_4AD2A0"], [383, "nop"], [384, "jmp short loc_4AD5B7"], [385, "nop"], [386, "jmp short loc_4AD5B7"], [387, "nop"], [388, "jmp short loc_4AD5B7"], [389, "nop"], [390, "mov rdi, [rbp+var_D8]"], [391, "mov ecx, [rbp+var_E4]"], [392, "mov rdx, [rbp+var_E0]"], [393, "mov rsi, [rbp+var_28]"], [394, "mov rax, [rbp+var_C8]"], [395, "mov r9, rdi"], [396, "mov r8d, offset sub_4ACB66"], [397, "mov rdi, rax"], [398, "call sub_4ABD7C"], [399, "mov [rbp+var_18], eax"], [400, "mov rax, [rbp+var_28]"], [401, "mov rdi, rax"], [402, "call sub_4A2528"], [403, "mov rax, [rbp+var_C8]"], [404, "mov edx, [rbp+var_14]"], [405, "mov [rax+8], edx"], [406, "mov eax, [rbp+var_18]"], [407, "mov rbx, [rbp+var_8]"], [408, "leave"], [409, "retn"]], "data_dep": [[9, 4], [10, 9], [11, 10], [12, 10], [13, 12], [14, 5], [15, 14], [16, 15], [17, 16], [18, 6], [19, 18], [20, 19], [21, 20], [22, 6], [23, 22], [25, 24], [25, 23], [26, 25], [27, 4], [29, 27], [32, 5], [33, 32], [35, 34], [35, 33], [36, 35], [37, 4], [38, 37], [41, 4], [43, 41], [45, 4], [46, 5], [47, 45], [48, 46], [50, 49], [51, 50], [52, 51], [53, 8], [54, 53], [55, 54], [56, 55], [57, 6], [58, 57], [60, 59], [60, 58], [61, 60], [62, 4], [63, 62], [66, 50], [67, 66], [68, 5], [69, 68], [70, 69], [71, 70], [72, 6], [73, 72], [75, 74], [75, 73], [76, 75], [77, 6], [78, 77], [80, 79], [80, 78], [81, 80], [82, 4], [83, 82], [86, 6], [87, 86], [89, 88], [89, 87], [90, 89], [91, 6], [92, 91], [93, 50], [94, 91], [95, 94], [96, 95], [96, 92], [97, 96], [98, 4], [100, 98], [103, 4], [105, 103], [108, 6], [109, 108], [111, 110], [112, 111], [113, 112], [113, 110], [114, 113], [115, 114], [116, 6], [117, 116], [118, 5], [119, 118], [121, 119], [121, 120], [122, 119], [122, 121], [123, 122], [124, 123], [124, 117], [125, 124], [126, 5], [127, 126], [128, 115], [128, 127], [129, 128], [130, 4], [131, 129], [132, 130], [134, 6], [135, 134], [136, 135], [137, 136], [140, 5], [141, 140], [142, 115], [142, 141], [143, 142], [144, 4], [145, 143], [146, 144], [152, 13], [153, 11], [154, 152], [155, 153], [157, 5], [158, 13], [159, 157], [160, 158], [162, 6], [163, 162], [165, 164], [166, 165], [167, 166], [168, 167], [169, 168], [170, 169], [171, 8], [172, 171], [173, 172], [174, 5], [175, 174], [176, 175], [177, 176], [178, 170], [179, 178], [180, 4], [181, 180], [183, 13], [184, 183], [188, 165], [189, 176], [189, 188], [190, 189], [191, 190], [192, 191], [193, 192], [194, 193], [195, 194], [196, 173], [197, 196], [198, 173], [199, 198], [200, 8], [201, 13], [202, 201], [206, 4], [208, 206], [210, 4], [211, 13], [212, 210], [213, 211], [215, 214], [216, 215], [219, 170], [220, 219], [222, 13], [223, 222], [223, 379], [223, 365], [223, 369], [223, 373], [224, 13], [225, 224], [227, 226], [228, 223], [229, 228], [229, 227], [230, 229], [231, 230], [232, 231], [233, 13], [234, 379], [234, 365], [234, 369], [234, 373], [234, 233], [235, 373], [235, 227], [235, 379], [235, 365], [235, 369], [235, 234], [236, 6], [236, 381], [237, 13], [240, 237], [242, 13], [243, 241], [245, 242], [246, 243], [248, 4], [250, 248], [253, 8], [253, 200], [254, 7], [255, 4], [256, 255], [258, 257], [261, 7], [261, 260], [262, 261], [263, 6], [263, 381], [264, 260], [266, 263], [267, 264], [269, 6], [269, 381], [270, 269], [270, 379], [270, 365], [270, 369], [270, 373], [271, 270], [272, 271], [280, 278], [280, 279], [281, 280], [282, 13], [283, 282], [285, 200], [285, 8], [286, 4], [287, 285], [290, 286], [294, 293], [295, 13], [296, 4], [299, 296], [301, 300], [303, 6], [303, 381], [304, 379], [304, 365], [304, 369], [304, 303], [304, 373], [305, 304], [306, 305], [307, 6], [307, 381], [308, 379], [308, 365], [308, 369], [308, 307], [308, 373], [309, 308], [310, 309], [311, 173], [312, 311], [313, 230], [314, 373], [314, 227], [314, 379], [314, 365], [314, 369], [314, 313], [315, 6], [315, 381], [316, 4], [319, 316], [321, 4], [322, 320], [324, 321], [325, 322], [328, 327], [328, 7], [329, 328], [330, 381], [330, 6], [331, 200], [331, 8], [332, 7], [333, 13], [334, 4], [335, 330], [337, 334], [339, 338], [341, 173], [342, 341], [343, 165], [344, 343], [345, 165], [346, 345], [347, 346], [348, 13], [349, 4], [350, 348], [351, 349], [353, 352], [354, 353], [355, 4], [356, 13], [357, 355], [358, 356], [360, 359], [361, 360], [362, 6], [363, 362], [364, 361], [365, 364], [365, 363], [366, 6], [367, 365], [367, 366], [368, 361], [369, 368], [369, 367], [370, 6], [371, 370], [371, 369], [372, 361], [373, 371], [373, 372], [374, 6], [375, 374], [375, 373], [376, 165], [376, 375], [377, 376], [378, 361], [379, 377], [379, 378], [380, 361], [381, 380], [390, 381], [390, 6], [391, 200], [391, 8], [392, 7], [393, 13], [394, 4], [395, 390], [397, 394], [399, 398], [400, 13], [401, 400], [403, 4], [404, 205], [404, 193], [405, 403], [405, 404], [406, 301], [406, 399], [406, 217], [406, 258], [406, 339], [409, 186], [409, 291], [409, 138], [409, 150], [409, 406]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243_14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243.jsonl.gz", "strip_func_name": "sub_4ACED0", "query": "\n\n\n__int64 __fastcall sub_4ACED0(__int64 a1, __int64 a2, __int64 a3, unsigned __int64 a4, unsigned int a5)\n{\n__int64 v6; // rbx\nchar *v9; // [rsp+18h] [rbp-D8h]\nsigned __int64 v10; // [rsp+30h] [rbp-C0h] BYREF\nunsigned __int64 v11; // [rsp+38h] [rbp-B8h] BYREF\nchar v12; // [rsp+40h] [rbp-B0h] BYREF\nint v13; // [rsp+48h] [rbp-A8h]\n__int64 v14; // [rsp+50h] [rbp-A0h]\n__int64 v15; // [rsp+58h] [rbp-98h]\n__int64 v16; // [rsp+60h] [rbp-90h]\nchar v17; // [rsp+70h] [rbp-80h] BYREF\nint v18; // [rsp+9Ch] [rbp-54h]\n__int64 v19; // [rsp+A0h] [rbp-50h]\nchar *v20; // [rsp+A8h] [rbp-48h]\n_BOOL4 v21; // [rsp+B4h] [rbp-3Ch]\nunsigned int v22; // [rsp+B8h] [rbp-38h]\n_BOOL4 v23; // [rsp+BCh] [rbp-34h]\n__int64 v24; // [rsp+C0h] [rbp-30h]\n__int64 *v25; // [rsp+C8h] [rbp-28h]\n__int64 v26; // [rsp+D0h] [rbp-20h]\nunsigned int v27; // [rsp+D8h] [rbp-18h]\n_BOOL4 v28; // [rsp+DCh] [rbp-14h]\n\nv9 = (char *)a3;\nv26 = *(_QWORD *)a1;\nv25 = (__int64 *)&v17;\nif ( !*(_QWORD *)(a2 + 24) || !*(_QWORD *)(a3 + 24) )\n{\nif ( *(_QWORD *)(a3 + 16) == 0x8000000000000000LL )\n{\nsub_4A2788(a1, 1uLL);\n}\nelse\n{\nif ( *(_QWORD *)(a2 + 16) != 0x7FFFFFFFFFFFFFFFLL )\n{\nsub_4A2788(a1, 1uLL);\nv18 = sub_4A381D(a2, a1);\nif ( v18 || (a5 & 0x10000) == 0 || *((__int64 *)v9 + 2) <= 0x7FFFFFFFFFFFFFFDLL )\n{\nif ( !v18 && (!*(_DWORD *)(a2 + 8) || *((_QWORD *)v9 + 2) != 0x7FFFFFFFFFFFFFFFLL) )\nreturn 0LL;\nif ( *((_QWORD *)v9 + 2) != 0x7FFFFFFFFFFFFFFFLL )\n{\nif ( *((_QWORD *)v9 + 2) == 0x7FFFFFFFFFFFFFFELL )\n{\nif ( *((_DWORD *)v9 + 2) == v18 > 0 )\nsub_4A28AF(a1, 0);\nelse\nsub_4A28EE(a1, 0);\n}\nelse\n{\nv24 = sub_4A595B(v9);\nv21 = v24 == 0;\nif ( *((_DWORD *)v9 + 2) == (*(_QWORD *)(a2 + 16) == 0x8000000000000000LL) )\n{\nsub_4A28EE(a1, v21 & *(_DWORD *)(a2 + 8));\nif ( *((_DWORD *)v9 + 2) )\nreturn 2LL;\n}\nelse\n{\nsub_4A28AF(a1, v21 & *(_DWORD *)(a2 + 8));\n}\n}\nreturn 0LL;\n}\n}\n}\nsub_4A2872(a1);\n}\nreturn 0LL;\n}\nsub_4A26DE(v26, (__int64)v25);\nsub_4A292D((__int64)v25, a2);\nv24 = sub_4A595B(v9);\nv23 = v24 >= 0;\nv22 = a5 & 7;\nif ( *(_DWORD *)(a2 + 8) )\n{\nif ( !v23 )\n{\nsub_4A2872(a1);\nsub_4A2528(v25);\nreturn 1LL;\n}\nv21 = v24 == 0;\nv28 = v21;\nif ( !v24 && (v22 == 2 || v22 == 3) )\na5 ^= 1u;\nsub_4A2565((__int64)v25);\n}\nelse\n{\nv28 = 0;\n}\nsub_4A2788(a1, 1uLL);\nif ( (unsigned int)sub_4A3B03((__int64)v25, a1) )\n{\nv27 = 0;\ngoto LABEL_54;\n}\nif ( !v23 )\n{\nif ( v22 == 6 || v24 >= 0 || !(unsigned int)sub_4ACD2D((__int64 *)a1, v25, -v24) )\ngoto LABEL_53;\nsub_4A292D((__int64)v25, a1);\nv20 = &v12;\nv16 = *((_QWORD *)v9 + 4);\nv15 = *((_QWORD *)v9 + 3);\nv13 = *((_DWORD *)v9 + 2);\nv14 = *((_QWORD *)v9 + 2) - v24;\nv9 = &v12;\n}\nv6 = v25[2];\nv19 = v6 - sub_4A595B(v25);\nif ( v19 == 1 )\n{\nsub_4A744F(v25, (__int64)v9, v25[2] - 1, 64LL, 1u);\nsub_4A672D((__int64)&v11, (__int64)v25, 0);\nsub_4A2788(a1, 1uLL);\nv27 = sub_4A5517(a1, v11, a4, a5);\ngoto LABEL_54;\n}\nif ( a4 != 0x3FFFFFFFFFFFFFFFLL )\n{\nif ( *((__int64 *)v9 + 2) <= 31\n|| !*((_DWORD *)v9 + 2)\n&& v22 != 6\n&& (sub_4A744F((__int64 *)a1, (__int64)v9, v19 - 1, 64LL, 1u), sub_4A672D((__int64)&v11, a1, 0), a4 >= v11) )\n{\nv27 = sub_4ABD7C(\n(_QWORD *)a1,\n(__int64)v25,\na4,\na5,\n(void (__fastcall *)(_QWORD *, __int64, __int64, __int64))sub_4ACC1B,\n(__int64)v9);\ngoto LABEL_54;\n}\nLABEL_53:\nv27 = sub_4ABD7C(\n(_QWORD *)a1,\n(__int64)v25,\na4,\na5,\n(void (__fastcall *)(_QWORD *, __int64, __int64, __int64))sub_4ACB66,\n(__int64)v9);\ngoto LABEL_54;\n}\nsub_4A672D((__int64)&v10, (__int64)v9, 0);\nif ( *((_DWORD *)v9 + 2) )\n__assert_fail(\"!y->sign\", \"libbf.c\", 0x1025u, \"bf_pow\");\nif ( v10 > 0x3FFFFFFFFFFFFFFFLL )\n{\nsub_4A2528(v25);\nreturn sub_4A2E02(a1, 0, 0x3FFFFFFFFFFFFFFFLL, a5);\n}\nv27 = sub_4A753D((__int64 *)a1, (__int64)v25, v10, 0x3FFFFFFFFFFFFFFFLL, 1u);\nLABEL_54:\nsub_4A2528(v25);\n*(_DWORD *)(a1 + 8) = v28;\nreturn v27;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,v9,v10,v11,v12,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v28,sub_4ACED0,sub_4A2788,sub_4A381D,sub_4A28AF,sub_4A28EE,sub_4A595B,sub_4A2872,sub_4A26DE,sub_4A292D,sub_4A2528,sub_4A2565,sub_4A3B03,sub_4ACD2D,sub_4A744F,sub_4A672D,sub_4A5517,sub_4ABD7C,sub_4ACC1B,sub_4ACB66,sub_4A2E02,sub_4A753D,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'y', 'a4': 'prec', 'a1': 'r', 'a2': 'x', 'a5': 'flags', 'v9': 'ya', 'v10': 'y1', 'v11': 'e', 'v12': 'ytmp_s', 'v17': 'T_s', 'v18': 'cmp_x_abs_1', 'v19': 'T_bits', 'v20': 'y1_0', 'v21': 'y_is_odd', 'v22': 'rnd_mode', 'v23': 'y_is_int', 'v24': 'y_emin', 'v25': 'T', 'v26': 's', 'v28': 'r_sign', 'sub_4ACED0': 'bf_pow', 'sub_4A2788': 'bf_set_ui', 'sub_4A381D': 'bf_cmpu', 'sub_4A28AF': 'bf_set_zero', 'sub_4A28EE': 'bf_set_inf', 'sub_4A595B': 'bf_get_exp_min', 'sub_4A2872': 'bf_set_nan', 'sub_4A26DE': 'bf_init', 'sub_4A292D': 'bf_set', 'sub_4A2528': 'bf_delete_0', 'sub_4A2565': 'bf_neg_0', 'sub_4A3B03': 'bf_cmp_eq', 'sub_4ACD2D': 'check_exact_power2n', 'sub_4A744F': 'bf_mul_si', 'sub_4A672D': 'bf_get_limb', 'sub_4A5517': 'bf_mul_2exp', 'sub_4ABD7C': 'bf_ziv_rounding', 'sub_4ACC1B': 'bf_pow_int', 'sub_4ACB66': 'bf_pow_generic', 'sub_4A2E02': 'bf_set_overflow', 'sub_4A753D': 'bf_pow_ui'}"}
config_set_uint64
2beab05072d063ded206a99a8794f868cc82b7f065265d1bfa006686c89bca5b
libretro
mupen64plus-libretro-nx
NA
void config_set_uint64(config_file_t *conf, const char *key, uint64_t val) { char buf[32]; snprintf(buf, sizeof(buf), "%" PRIu64, val); config_set_string(conf, key, buf); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407796", "function_addr": 4224918, "binary_name": "2beab05072d063ded206a99a8794f868cc82b7f065265d1bfa006686c89bca5b.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 rdx, [rbp+var_38]"], [7, "lea rax, [rbp+s]"], [8, "mov rcx, rdx"], [9, "mov edx, offset aLu"], [10, "mov esi, 20h "], [11, "mov rdi, rax"], [12, "mov eax, 0"], [13, "call _snprintf"], [14, "lea rdx, [rbp+s]"], [15, "mov rcx, [rbp+var_30]"], [16, "mov rax, [rbp+var_28]"], [17, "mov rsi, rcx"], [18, "mov rdi, rax"], [19, "call sub_4071FB"], [20, "nop"], [21, "leave"], [22, "retn"]], "data_dep": [[6, 5], [8, 6], [11, 7], [14, 9], [15, 4], [16, 3], [17, 15], [18, 16], [22, 19]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/2beab05072d063ded206a99a8794f868cc82b7f065265d1bfa006686c89bca5b_2beab05072d063ded206a99a8794f868cc82b7f065265d1bfa006686c89bca5b.jsonl.gz", "strip_func_name": "sub_407796", "query": "\n\n\nvoid __fastcall sub_407796(__int64 a1, char *a2, __int64 a3)\n{\nchar s[32]; // [rsp+20h] [rbp-20h] BYREF\n\nsnprintf(s, 0x20uLL, \"%lu\", a3);\nsub_4071FB(a1, a2, s);\n}\n\n\n\nQ:[a3,a1,a2,s,sub_407796,sub_4071FB,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'val', 'a1': 'conf', 'a2': 'key', 's': 'buf', 'sub_407796': 'config_set_uint64', 'sub_4071FB': 'config_set_string'}"}
LDL_Stream_init
f2b2915e9e2d6729375d876f6c15174498b7f2f04b5b9bcc85cb7c605be4924f
cjhdev
lora_device_lib
NA
void LDL_Stream_init(struct ldl_stream *self, void *buf, uint8_t size) { LDL_PEDANTIC(self != NULL) LDL_PEDANTIC((buf != NULL) || (size == 0U)) self->write = buf; self->read = buf; self->size = size; self->pos = 0U; self->error = false; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41699D", "function_addr": 4286877, "binary_name": "f2b2915e9e2d6729375d876f6c15174498b7f2f04b5b9bcc85cb7c605be4924f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov eax, edx"], [6, "mov [rbp+var_14], al"], [7, "mov rax, cs:qword_437F80"], [8, "add rax, 1"], [9, "mov cs:qword_437F80, rax"], [10, "cmp [rbp+var_8], 0"], [11, "jnz short loc_4169F6"], [12, "mov rax, cs:qword_437F88"], [13, "add rax, 1"], [14, "mov cs:qword_437F88, rax"], [15, "mov ecx, offset aLdlStreamInit"], [16, "mov edx, 1Eh"], [17, "mov esi, offset aSrcLdlStreamC"], [18, "mov edi, offset aSelfVoid0_1"], [19, "call ___assert_fail"], [20, "cmp [rbp+var_10], 0"], [21, "jnz short loc_416A40"], [22, "mov rax, cs:qword_437F90"], [23, "add rax, 1"], [24, "mov cs:qword_437F90, rax"], [25, "cmp [rbp+var_14], 0"], [26, "jz short loc_416A40"], [27, "mov rax, cs:qword_437F98"], [28, "add rax, 1"], [29, "mov cs:qword_437F98, rax"], [30, "mov ecx, offset aLdlStreamInit"], [31, "mov edx, 1Fh"], [32, "mov esi, offset aSrcLdlStreamC"], [33, "mov edi, offset aBufVoid0Size0u"], [34, "call ___assert_fail"], [35, "mov rax, [rbp+var_8]"], [36, "mov rdx, [rbp+var_10]"], [37, "mov [rax], rdx"], [38, "mov rax, [rbp+var_8]"], [39, "mov rdx, [rbp+var_10]"], [40, "mov [rax+8], rdx"], [41, "mov rax, [rbp+var_8]"], [42, "movzx edx, [rbp+var_14]"], [43, "mov [rax+10h], dl"], [44, "mov rax, [rbp+var_8]"], [45, "mov byte ptr [rax+11h], 0"], [46, "mov rax, [rbp+var_8]"], [47, "mov byte ptr [rax+12h], 0"], [48, "nop"], [49, "leave"], [50, "retn"]], "data_dep": [[6, 5], [8, 7], [9, 8], [10, 3], [11, 10], [13, 12], [14, 13], [20, 4], [21, 20], [23, 22], [24, 23], [25, 6], [26, 25], [28, 27], [29, 28], [35, 3], [36, 4], [37, 36], [37, 35], [38, 3], [39, 4], [40, 38], [40, 39], [41, 3], [42, 6], [43, 42], [43, 41], [44, 3], [45, 44], [46, 3], [47, 46], [50, 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/f2b2915e9e2d6729375d876f6c15174498b7f2f04b5b9bcc85cb7c605be4924f_f2b2915e9e2d6729375d876f6c15174498b7f2f04b5b9bcc85cb7c605be4924f.jsonl.gz", "strip_func_name": "sub_41699D", "query": "\n\n\n__int64 __fastcall sub_41699D(__int64 a1, __int64 a2, char a3)\n{\n__int64 result; // rax\n\n++qword_437F80;\nif ( !a1 )\n{\n++qword_437F88;\n__assert_fail(\"(self != ((void *)0))\", \"../src/ldl_stream.c\", 0x1Eu, \"LDL_Stream_init\");\n}\nif ( !a2 )\n{\n++qword_437F90;\nif ( a3 )\n{\n++qword_437F98;\n__assert_fail(\"((buf != ((void *)0)) || (size == 0U))\", \"../src/ldl_stream.c\", 0x1Fu, \"LDL_Stream_init\");\n}\n}\n*(_QWORD *)a1 = a2;\n*(_QWORD *)(a1 + 8) = a2;\n*(_BYTE *)(a1 + 16) = a3;\n*(_BYTE *)(a1 + 17) = 0;\nresult = a1;\n*(_BYTE *)(a1 + 18) = 0;\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,sub_41699D,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'size', 'a1': 'self', 'a2': 'buf', 'sub_41699D': 'LDL_Stream_init'}"}
numtostr
e3c8c5c70ba394a96abdb474fdaf272392a22f0c576d50cae847e2e708e15611
ArtifexSoftware
mujs
NA
static void numtostr(js_State *J, const char *fmt, int w, double n) { /* buf needs to fit printf("%.20f", 1e20) */ char buf[50], *e; sprintf(buf, fmt, w, n); e = strchr(buf, 'e'); if (e) { int exp = atoi(e+1); sprintf(e, "e%+d", exp); } js_pushstring(J, buf); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_418515", "function_addr": 4293909, "binary_name": "e3c8c5c70ba394a96abdb474fdaf272392a22f0c576d50cae847e2e708e15611.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+format], rsi"], [5, "mov [rbp+var_54], edx"], [6, "movsd [rbp+var_60], xmm0"], [7, "mov rsi, [rbp+var_60]"], [8, "mov edx, [rbp+var_54]"], [9, "mov rcx, [rbp+format]"], [10, "lea rax, [rbp+s]"], [11, "movq xmm0, rsi"], [12, "mov rsi, rcx"], [13, "mov rdi, rax"], [14, "mov eax, 1"], [15, "call _sprintf"], [16, "lea rax, [rbp+s]"], [17, "mov esi, 65h "], [18, "mov rdi, rax"], [19, "call _strchr"], [20, "mov [rbp+var_8], rax"], [21, "cmp [rbp+var_8], 0"], [22, "jz short loc_418599"], [23, "mov rax, [rbp+var_8]"], [24, "add rax, 1"], [25, "mov rdi, rax"], [26, "call _atoi"], [27, "mov [rbp+var_C], eax"], [28, "mov edx, [rbp+var_C]"], [29, "mov rax, [rbp+var_8]"], [30, "mov esi, offset aED"], [31, "mov rdi, rax"], [32, "mov eax, 0"], [33, "call _sprintf"], [34, "lea rdx, [rbp+s]"], [35, "mov rax, [rbp+var_48]"], [36, "mov rsi, rdx"], [37, "mov rdi, rax"], [38, "call sub_424BAA"], [39, "nop"], [40, "leave"], [41, "retn"]], "data_dep": [[7, 6], [8, 5], [9, 4], [11, 7], [12, 9], [13, 10], [16, 15], [18, 16], [20, 19], [21, 20], [22, 21], [23, 20], [24, 23], [25, 24], [27, 26], [28, 27], [29, 20], [31, 29], [34, 28], [34, 8], [35, 3], [36, 34], [37, 35], [41, 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/e3c8c5c70ba394a96abdb474fdaf272392a22f0c576d50cae847e2e708e15611_e3c8c5c70ba394a96abdb474fdaf272392a22f0c576d50cae847e2e708e15611.jsonl.gz", "strip_func_name": "sub_418515", "query": "\n\n\n__int64 __fastcall sub_418515(__int64 a1, const char *a2, unsigned int a3, double a4)\n{\nchar s[52]; // [rsp+20h] [rbp-40h] BYREF\nunsigned int v6; // [rsp+54h] [rbp-Ch]\nchar *v7; // [rsp+58h] [rbp-8h]\n\nsprintf(s, a2, a3, a4);\nv7 = strchr(s, 101);\nif ( v7 )\n{\nv6 = atoi(v7 + 1);\nsprintf(v7, \"e%+d\", v6);\n}\nreturn sub_424BAA(a1, s);\n}\n\n\n\nQ:[a3,a1,a2,a4,s,v6,v7,sub_418515,sub_424BAA,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'w', 'a1': 'J', 'a2': 'fmt', 'a4': 'n', 's': 'buf', 'v6': 'exp', 'v7': 'e', 'sub_418515': 'numtostr', 'sub_424BAA': 'js_pushstring'}"}
write_iops_log
da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b
axboe
fio
NA
static int write_iops_log(struct thread_data *td, int try, bool unit_log) { int ret; if (per_unit_log(td->iops_log) != unit_log) return 0; ret = __write_log(td, td->iops_log, try); if (!ret) td->iops_log = NULL; return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_47CFAB", "function_addr": 4706219, "binary_name": "da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov eax, edx"], [6, "mov [rbp+var_20], al"], [7, "mov rax, [rbp+var_18]"], [8, "mov rax, [rax+2DB70h]"], [9, "mov rdi, rax"], [10, "call sub_478C66"], [11, "cmp [rbp+var_20], al"], [12, "jz short loc_47CFDE"], [13, "mov eax, 0"], [14, "jmp short locret_47D016"], [15, "mov rax, [rbp+var_18]"], [16, "mov rcx, [rax+2DB70h]"], [17, "mov edx, [rbp+var_1C]"], [18, "mov rax, [rbp+var_18]"], [19, "mov rsi, rcx"], [20, "mov rdi, rax"], [21, "call sub_47CF72"], [22, "mov [rbp+var_4], eax"], [23, "cmp [rbp+var_4], 0"], [24, "jnz short loc_47D013"], [25, "mov rax, [rbp+var_18]"], [26, "mov qword ptr [rax+2DB70h], 0"], [27, "mov eax, [rbp+var_4]"], [28, "leave"], [29, "retn"]], "data_dep": [[6, 5], [7, 3], [8, 7], [9, 8], [11, 10], [11, 6], [12, 11], [15, 3], [16, 15], [17, 4], [18, 3], [19, 16], [20, 18], [22, 21], [23, 22], [24, 23], [25, 3], [26, 25], [27, 22], [29, 13], [29, 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/da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b_da112328d43ad283d891ef745b1d04f93c0e61c8af6f1658d5fe5192a776b52b.jsonl.gz", "strip_func_name": "sub_47CFAB", "query": "\n\n\n__int64 __fastcall sub_47CFAB(__int64 a1, int a2, char a3)\n{\nunsigned int v4; // [rsp+1Ch] [rbp-4h]\n\nif ( a3 != sub_478C66(*(_QWORD *)(a1 + 187248)) )\nreturn 0LL;\nv4 = sub_47CF72(a1, *(_QWORD *)(a1 + 187248), a2);\nif ( !v4 )\n*(_QWORD *)(a1 + 187248) = 0LL;\nreturn v4;\n}\n\n\n\nQ:[a3,a1,sub_47CFAB,sub_478C66,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'unit_log', 'a1': 'td', 'sub_47CFAB': 'write_iops_log', 'sub_478C66': 'per_unit_log_1'}"}
bpf_program__set_prep
c3029f1e790b5e1a59516e394f267d59ba9f8391e8c8f3441f155452ceddb393
XboxDev
xbox-linux
NA
int bpf_program__set_prep(struct bpf_program *prog, int nr_instances, bpf_program_prep_t prep) { int *instances_fds; if (nr_instances <= 0 || !prep) return -EINVAL; if (prog->instances.nr > 0 || prog->instances.fds) { pr_warn("Can't set pre-processor after loading\n"); return -EINVAL; } instances_fds = malloc(sizeof(int) * nr_instances); if (!instances_fds) { pr_warn("alloc memory failed for fds\n"); return -ENOMEM; } /* fill all fd with -1 */ memset(instances_fds, -1, sizeof(int) * nr_instances); prog->instances.nr = nr_instances; prog->instances.fds = instances_fds; prog->preprocessor = prep; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "bpf_program__set_prep", "function_addr": 4299987, "binary_name": "c3029f1e790b5e1a59516e394f267d59ba9f8391e8c8f3441f155452ceddb393.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_28], rdx"], [6, "cmp [rbp+var_1C], 0"], [7, "jle short loc_419CF3"], [8, "cmp [rbp+var_28], 0"], [9, "jnz short loc_419CFD"], [10, "mov eax, 0FFFFFFEAh"], [11, "jmp locret_419DB0"], [12, "mov rax, [rbp+var_18]"], [13, "mov eax, [rax+60h]"], [14, "test eax, eax"], [15, "jg short loc_419D15"], [16, "mov rax, [rbp+var_18]"], [17, "mov rax, [rax+68h]"], [18, "test rax, rax"], [19, "jz short loc_419D32"], [20, "lea rsi, aLibbpfCanTSetP"], [21, "mov edi, 0"], [22, "mov eax, 0"], [23, "call sub_40A1AC"], [24, "mov eax, 0FFFFFFEAh"], [25, "jmp short locret_419DB0"], [26, "mov eax, [rbp+var_1C]"], [27, "cdqe"], [28, "shl rax, 2"], [29, "mov rdi, rax"], [30, "call _malloc"], [31, "mov [rbp+s], rax"], [32, "cmp [rbp+s], 0"], [33, "jnz short loc_419D6B"], [34, "lea rsi, aLibbpfAllocMem_0"], [35, "mov edi, 0"], [36, "mov eax, 0"], [37, "call sub_40A1AC"], [38, "mov eax, 0FFFFFFF4h"], [39, "jmp short locret_419DB0"], [40, "mov eax, [rbp+var_1C]"], [41, "cdqe"], [42, "lea rdx, ds:0[rax*4]"], [43, "mov rax, [rbp+s]"], [44, "mov esi, 0FFFFFFFFh"], [45, "mov rdi, rax"], [46, "call _memset"], [47, "mov rax, [rbp+var_18]"], [48, "mov edx, [rbp+var_1C]"], [49, "mov [rax+60h], edx"], [50, "mov rax, [rbp+var_18]"], [51, "mov rdx, [rbp+s]"], [52, "mov [rax+68h], rdx"], [53, "mov rax, [rbp+var_18]"], [54, "mov rdx, [rbp+var_28]"], [55, "mov [rax+70h], rdx"], [56, "mov eax, 0"], [57, "leave"], [58, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 5], [9, 8], [12, 3], [13, 12], [14, 13], [15, 14], [16, 3], [17, 16], [18, 17], [19, 18], [26, 4], [28, 26], [29, 28], [31, 30], [32, 31], [33, 32], [40, 4], [43, 31], [45, 43], [47, 3], [48, 4], [49, 47], [49, 48], [50, 3], [51, 31], [52, 51], [52, 50], [53, 3], [54, 5], [55, 53], [55, 54], [58, 56], [58, 10], [58, 24], [58, 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/c3029f1e790b5e1a59516e394f267d59ba9f8391e8c8f3441f155452ceddb393_c3029f1e790b5e1a59516e394f267d59ba9f8391e8c8f3441f155452ceddb393.jsonl.gz", "strip_func_name": "bpf_program__set_prep", "query": "\n\n\n__int64 __fastcall bpf_program__set_prep(__int64 a1, int a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 result; // rax\n__int64 v7; // rdx\n__int64 v8; // rcx\n__int64 v9; // r8\n__int64 v10; // r9\nvoid *s; // [rsp+28h] [rbp-8h]\n\nif ( a2 <= 0 || !a3 )\nreturn 4294967274LL;\nif ( *(int *)(a1 + 96) > 0 || *(_QWORD *)(a1 + 104) )\n{\nsub_40A1AC(0, (__int64)\"libbpf: Can't set pre-processor after loading\\n\", a3, a4, a5, a6);\nresult = 4294967274LL;\n}\nelse\n{\ns = malloc(4LL * a2);\nif ( s )\n{\nmemset(s, -1, 4LL * a2);\n*(_DWORD *)(a1 + 96) = a2;\n*(_QWORD *)(a1 + 104) = s;\n*(_QWORD *)(a1 + 112) = a3;\nresult = 0LL;\n}\nelse\n{\nsub_40A1AC(0, (__int64)\"libbpf: alloc memory failed for fds\\n\", v7, v8, v9, v10);\nresult = 4294967284LL;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v7,s,sub_40A1AC,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'prep', 'a1': 'prog', 'a2': 'nr_instances', 'v7': 'prep', 's': 'instances_fds', 'sub_40A1AC': 'libbpf_print'}"}
find_free_channel
d20d5d136ed82a5a36fdeedd4c3a30a62ee46f8e0365a7e4e8f0c462411d4a2f
smcameron
space-nerds-in-space
NA
static uint32_t find_free_channel(void) { /* FIXME: this needs to actually find a free channel, not just fail to be unlucky */ return snis_randn(100000); /* simplest possible thing that might work. */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_484168", "function_addr": 4735336, "binary_name": "d20d5d136ed82a5a36fdeedd4c3a30a62ee46f8e0365a7e4e8f0c462411d4a2f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov edi, 186A0h"], [3, "call snis_randn"], [4, "pop rbp"], [5, "retn"]], "data_dep": [[4, 0], [5, 3]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d20d5d136ed82a5a36fdeedd4c3a30a62ee46f8e0365a7e4e8f0c462411d4a2f_d20d5d136ed82a5a36fdeedd4c3a30a62ee46f8e0365a7e4e8f0c462411d4a2f.jsonl.gz", "strip_func_name": "sub_484168", "query": "\n\n\n__int64 sub_484168()\n{\nreturn snis_randn(100000);\n}\n\n\n\nQ:[sub_484168,]\nAssistant: ", "hints": "[]", "response": "{'sub_484168': 'find_free_channel'}"}
OptJumpTarget3
1c9782cb95ac345a77465ba88b70eb8da93f650d1c8877cf5bb119d4d1bf0021
mupfdev
SNESoIP
NA
unsigned OptJumpTarget3 (CodeSeg* S) /* Jumps to load instructions of a register, that do already have the matching ** register contents may skip the load instruction, since it's job is already ** done. */ { unsigned Changes = 0; unsigned I; /* Walk over the entries */ I = 0; while (I < CS_GetEntryCount (S)) { CodeEntry* N; /* Get next entry */ CodeEntry* E = CS_GetEntry (S, I); /* Check if this is a load insn with a label and the next insn is not ** a conditional branch that needs the flags from the load. */ if ((E->Info & OF_LOAD) != 0 && CE_IsConstImm (E) && CE_HasLabel (E) && (N = CS_GetNextEntry (S, I)) != 0 && !CE_UseLoadFlags (N)) { unsigned J; int K; /* New jump label */ CodeLabel* LN = 0; /* Walk over all insn that jump here */ for (J = 0; J < CE_GetLabelCount (E); ++J) { /* Get the label */ CodeLabel* L = CE_GetLabel (E, J); /* Loop over all insn that reference this label. Since we may ** eventually remove a reference in the loop, we must loop ** from end down to start. */ for (K = CL_GetRefCount (L) - 1; K >= 0; --K) { /* Get the entry that jumps here */ CodeEntry* Jump = CL_GetRef (L, K); /* Get the register info from this insn */ short Val = RegVal (E->Chg, &Jump->RI->Out2); /* Check if the outgoing value is the one thats's loaded */ if (Val == (unsigned char) E->Num) { /* OK, skip the insn. First, generate a label for the ** next insn after E. */ if (LN == 0) { LN = CS_GenLabel (S, N); } /* Change the jump target to point to this new label */ CS_MoveLabelRef (S, Jump, LN); /* Remember that we had changes */ ++Changes; } } } } /* Next entry */ ++I; } /* Return the number of changes made */ return Changes; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4455A7", "function_addr": 4478375, "binary_name": "1c9782cb95ac345a77465ba88b70eb8da93f650d1c8877cf5bb119d4d1bf0021.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+var_4], 0"], [5, "mov [rbp+var_8], 0"], [6, "jmp loc_44573E"], [7, "mov edx, [rbp+var_8]"], [8, "mov rax, [rbp+var_48]"], [9, "mov esi, edx"], [10, "mov rdi, rax"], [11, "call sub_44476C"], [12, "mov [rbp+var_20], rax"], [13, "mov rax, [rbp+var_20]"], [14, "movzx eax, word ptr [rax+18h]"], [15, "movzx eax, ax"], [16, "and eax, 40h"], [17, "test eax, eax"], [18, "jz loc_44573A"], [19, "mov rax, [rbp+var_20]"], [20, "mov rdi, rax"], [21, "call sub_407515"], [22, "test eax, eax"], [23, "jz loc_44573A"], [24, "mov rax, [rbp+var_20]"], [25, "mov rdi, rax"], [26, "call sub_4446E4"], [27, "test eax, eax"], [28, "jz loc_44573A"], [29, "mov edx, [rbp+var_8]"], [30, "mov rax, [rbp+var_48]"], [31, "mov esi, edx"], [32, "mov rdi, rax"], [33, "call sub_42FA40"], [34, "mov [rbp+var_28], rax"], [35, "cmp [rbp+var_28], 0"], [36, "jz loc_44573A"], [37, "mov rax, [rbp+var_28]"], [38, "mov rdi, rax"], [39, "call sub_407593"], [40, "test eax, eax"], [41, "jnz loc_44573A"], [42, "mov [rbp+var_18], 0"], [43, "mov [rbp+var_C], 0"], [44, "jmp loc_445725"], [45, "mov edx, [rbp+var_C]"], [46, "mov rax, [rbp+var_20]"], [47, "mov esi, edx"], [48, "mov rdi, rax"], [49, "call sub_444728"], [50, "mov [rbp+var_30], rax"], [51, "mov rax, [rbp+var_30]"], [52, "mov rdi, rax"], [53, "call sub_444687"], [54, "sub eax, 1"], [55, "mov [rbp+var_10], eax"], [56, "jmp loc_445717"], [57, "mov edx, [rbp+var_10]"], [58, "mov rax, [rbp+var_30]"], [59, "mov esi, edx"], [60, "mov rdi, rax"], [61, "call sub_4446A5"], [62, "mov [rbp+var_38], rax"], [63, "mov rax, [rbp+var_38]"], [64, "mov rax, [rax+40h]"], [65, "lea rdx, [rax+20h]"], [66, "mov rax, [rbp+var_20]"], [67, "movzx eax, word ptr [rax+1Ch]"], [68, "movzx eax, ax"], [69, "mov rsi, rdx"], [70, "mov edi, eax"], [71, "call sub_444AB1"], [72, "mov [rbp+var_3A], ax"], [73, "movsx edx, [rbp+var_3A]"], [74, "mov rax, [rbp+var_20]"], [75, "mov rax, [rax+10h]"], [76, "movzx eax, al"], [77, "cmp edx, eax"], [78, "jnz short loc_445713"], [79, "cmp [rbp+var_18], 0"], [80, "jnz short loc_4456F8"], [81, "mov rdx, [rbp+var_28]"], [82, "mov rax, [rbp+var_48]"], [83, "mov rsi, rdx"], [84, "mov rdi, rax"], [85, "call sub_42FCFF"], [86, "mov [rbp+var_18], rax"], [87, "mov rdx, [rbp+var_18]"], [88, "mov rcx, [rbp+var_38]"], [89, "mov rax, [rbp+var_48]"], [90, "mov rsi, rcx"], [91, "mov rdi, rax"], [92, "call sub_43019F"], [93, "add [rbp+var_4], 1"], [94, "sub [rbp+var_10], 1"], [95, "cmp [rbp+var_10], 0"], [96, "jns loc_44568D"], [97, "add [rbp+var_C], 1"], [98, "mov rax, [rbp+var_20]"], [99, "mov rdi, rax"], [100, "call sub_44470A"], [101, "cmp [rbp+var_C], eax"], [102, "jb loc_445661"], [103, "add [rbp+var_8], 1"], [104, "mov rax, [rbp+var_48]"], [105, "mov rdi, rax"], [106, "call sub_44474E"], [107, "cmp [rbp+var_8], eax"], [108, "jb loc_4455C6"], [109, "mov eax, [rbp+var_4]"], [110, "leave"], [111, "retn"]], "data_dep": [[7, 5], [7, 103], [8, 3], [9, 7], [10, 8], [12, 11], [13, 12], [14, 13], [15, 14], [16, 15], [17, 16], [18, 17], [19, 12], [20, 19], [22, 21], [23, 22], [24, 12], [25, 24], [27, 26], [28, 27], [29, 5], [29, 103], [30, 3], [31, 29], [32, 30], [34, 33], [35, 34], [36, 35], [37, 34], [38, 37], [40, 39], [41, 40], [45, 43], [45, 97], [46, 12], [47, 45], [48, 46], [50, 49], [51, 50], [52, 51], [54, 53], [55, 54], [57, 94], [57, 55], [58, 50], [59, 57], [60, 58], [62, 61], [63, 62], [64, 63], [65, 64], [65, 57], [66, 12], [67, 66], [68, 67], [69, 65], [70, 68], [72, 71], [73, 72], [74, 12], [75, 74], [76, 75], [77, 76], [77, 73], [78, 77], [79, 42], [79, 86], [80, 79], [81, 34], [82, 3], [83, 81], [84, 82], [86, 85], [87, 86], [87, 42], [88, 62], [89, 3], [90, 88], [91, 89], [93, 4], [93, 93], [94, 94], [94, 55], [95, 94], [95, 55], [96, 95], [97, 97], [97, 43], [98, 12], [99, 98], [101, 97], [101, 43], [101, 100], [102, 101], [103, 103], [103, 5], [104, 3], [105, 104], [107, 106], [107, 103], [107, 5], [108, 107], [109, 4], [109, 93], [111, 109]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1c9782cb95ac345a77465ba88b70eb8da93f650d1c8877cf5bb119d4d1bf0021_1c9782cb95ac345a77465ba88b70eb8da93f650d1c8877cf5bb119d4d1bf0021.jsonl.gz", "strip_func_name": "sub_4455A7", "query": "\n\n\n__int64 __fastcall sub_4455A7(_QWORD *a1)\n{\nunsigned int i; // eax\n__int64 v3; // [rsp+18h] [rbp-38h]\n__int64 v4; // [rsp+20h] [rbp-30h]\n__int64 v5; // [rsp+28h] [rbp-28h]\n__int64 v6; // [rsp+30h] [rbp-20h]\n__int64 v7; // [rsp+38h] [rbp-18h]\nsigned int k; // [rsp+40h] [rbp-10h]\nunsigned int j; // [rsp+44h] [rbp-Ch]\nunsigned int v10; // [rsp+48h] [rbp-8h]\nunsigned int v11; // [rsp+4Ch] [rbp-4h]\n\nv11 = 0;\nv10 = 0;\nfor ( i = sub_44474E((__int64)a1); v10 < i; i = sub_44474E((__int64)a1) )\n{\nv6 = sub_44476C((__int64)a1, v10);\nif ( (*(_WORD *)(v6 + 24) & 0x40) != 0 && sub_407515(v6) && sub_4446E4(v6) )\n{\nv5 = sub_42FA40((__int64)a1, v10);\nif ( v5 )\n{\nif ( !(unsigned int)sub_407593(v5) )\n{\nv7 = 0LL;\nfor ( j = 0; j < (unsigned int)sub_44470A(v6); ++j )\n{\nv4 = sub_444728(v6, j);\nfor ( k = sub_444687(v4) - 1; k >= 0; --k )\n{\nv3 = sub_4446A5(v4, k);\nif ( (__int16)sub_444AB1(*(_WORD *)(v6 + 28), (unsigned __int16 *)(*(_QWORD *)(v3 + 64) + 32LL)) == (unsigned __int8)*(_QWORD *)(v6 + 16) )\n{\nif ( !v7 )\nv7 = sub_42FCFF((__int64)a1, v5);\nsub_43019F(a1, v3, v7);\n++v11;\n}\n}\n}\n}\n}\n}\n++v10;\n}\nreturn v11;\n}\n\n\n\nQ:[a1,v3,v4,v5,v6,v7,k,j,v10,v11,sub_4455A7,sub_44474E,sub_44476C,sub_407515,sub_4446E4,sub_42FA40,sub_407593,sub_44470A,sub_444728,sub_444687,sub_4446A5,sub_444AB1,sub_42FCFF,sub_43019F,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'S', 'v3': 'Jump', 'v4': 'L', 'v5': 'N', 'v6': 'E', 'v7': 'LN', 'k': 'K', 'j': 'J', 'v10': 'I', 'v11': 'Changes', 'sub_4455A7': 'OptJumpTarget3', 'sub_44474E': 'CS_GetEntryCount_17', 'sub_44476C': 'CS_GetEntry_15', 'sub_407515': 'CE_IsConstImm', 'sub_4446E4': 'CE_HasLabel_10', 'sub_42FA40': 'CS_GetNextEntry', 'sub_407593': 'CE_UseLoadFlags', 'sub_44470A': 'CE_GetLabelCount_0', 'sub_444728': 'CE_GetLabel_0', 'sub_444687': 'CL_GetRefCount_1', 'sub_4446A5': 'CL_GetRef_1', 'sub_444AB1': 'RegVal', 'sub_42FCFF': 'CS_GenLabel', 'sub_43019F': 'CS_MoveLabelRef'}"}
EA_DropItem
65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604
FrozenSand
ioq3-for-UrbanTerror-4
NA
void EA_DropItem(int client, char *it) { botimport.BotClientCommand(client, va("drop %s", it)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_498CD6", "function_addr": 4820182, "binary_name": "65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604.elf_extract.pkl\n"}, "code": [[0, "push rbx"], [1, "sub rsp, 10h"], [2, "mov [rsp+18h+var_C], edi"], [3, "mov [rsp+18h+var_18], rsi"], [4, "mov rbx, cs:qword_7BFB38"], [5, "mov rax, [rsp+18h+var_18]"], [6, "mov rsi, rax"], [7, "mov edi, offset aDropS"], [8, "mov eax, 0"], [9, "call sub_44691C"], [10, "mov rdx, rax"], [11, "mov eax, [rsp+18h+var_C]"], [12, "mov rsi, rdx"], [13, "mov edi, eax"], [14, "call rbx "], [15, "nop"], [16, "add rsp, 10h"], [17, "pop rbx"], [18, "retn"]], "data_dep": [[5, 3], [6, 5], [10, 9], [11, 2], [12, 10], [13, 11], [14, 4], [16, 1], [17, 0], [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/65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604_65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604.jsonl.gz", "strip_func_name": "sub_498CD6", "query": "\n\n\n__int64 __fastcall sub_498CD6(unsigned int a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\n__int64 (__fastcall *v6)(_QWORD, char *); // rbx\nchar *v7; // rax\n\nv6 = (__int64 (__fastcall *)(_QWORD, char *))qword_7BFB38;\nv7 = sub_44691C(\"drop %s\", a2, a3, a4, a5, a6, a2);\nreturn v6(a1, v7);\n}\n\n\n\nQ:[a1,a2,sub_498CD6,sub_44691C,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'client', 'a2': 'it', 'sub_498CD6': 'EA_DropItem', 'sub_44691C': 'va'}"}
mul_fr_fr
3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406
luser-dr00g
inca
NA
number_ptr mul_fr_fr(number_ptr x, number_ptr y){ number_ptr z = new_fr(); mpfr_mul(z->fr.fr, x->fr.fr, y->fr.fr, MPFR_RNDN); return z; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412054", "function_addr": 4268116, "binary_name": "3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov eax, 0"], [6, "call sub_411B04"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_20]"], [9, "lea rdx, [rax+8]"], [10, "mov rax, [rbp+var_18]"], [11, "lea rsi, [rax+8]"], [12, "mov rax, [rbp+var_8]"], [13, "add rax, 8"], [14, "mov ecx, 0"], [15, "mov rdi, rax"], [16, "call _mpfr_mul"], [17, "mov rax, [rbp+var_8]"], [18, "leave"], [19, "retn"]], "data_dep": [[7, 6], [8, 4], [9, 8], [10, 3], [11, 10], [12, 7], [13, 12], [15, 13], [17, 7], [19, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406_3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406.jsonl.gz", "strip_func_name": "sub_412054", "query": "\n\n\n_DWORD *sub_412054()\n{\n_DWORD *v1; // [rsp+18h] [rbp-8h]\n\nv1 = sub_411B04();\nmpfr_mul();\nreturn v1;\n}\n\n\n\nQ:[v1,sub_412054,sub_411B04,]\nAssistant: ", "hints": "[]", "response": "{'v1': 'z', 'sub_412054': 'mul_fr_fr', 'sub_411B04': 'new_fr'}"}
findInTable
b075dfd15a5f87f7bd9b7e1d96fde5cc5aceb552b90c5c42e9565c1e439733f4
totalspectrum
spin2cpp
NA
unsigned int findInTable(unsigned int *tab, unsigned wc) { int i; for (i = 0; i < 256; i++) { if (tab[i] == wc) break; } return i; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403198", "function_addr": 4207000, "binary_name": "b075dfd15a5f87f7bd9b7e1d96fde5cc5aceb552b90c5c42e9565c1e439733f4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_1C], esi"], [4, "mov [rbp+var_4], 0"], [5, "jmp short loc_4031CB"], [6, "mov eax, [rbp+var_4]"], [7, "cdqe"], [8, "lea rdx, ds:0[rax*4]"], [9, "mov rax, [rbp+var_18]"], [10, "add rax, rdx"], [11, "mov eax, [rax]"], [12, "cmp [rbp+var_1C], eax"], [13, "jz short loc_4031D6"], [14, "add [rbp+var_4], 1"], [15, "cmp [rbp+var_4], 0FFh"], [16, "jle short loc_4031AC"], [17, "jmp short loc_4031D7"], [18, "nop"], [19, "mov eax, [rbp+var_4]"], [20, "pop rbp"], [21, "retn"]], "data_dep": [[6, 14], [6, 4], [8, 8], [9, 2], [10, 9], [10, 8], [11, 10], [12, 3], [12, 11], [13, 12], [14, 4], [14, 14], [15, 14], [15, 4], [16, 15], [19, 14], [19, 4], [20, 0], [21, 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/b075dfd15a5f87f7bd9b7e1d96fde5cc5aceb552b90c5c42e9565c1e439733f4_b075dfd15a5f87f7bd9b7e1d96fde5cc5aceb552b90c5c42e9565c1e439733f4.jsonl.gz", "strip_func_name": "sub_403198", "query": "\n\n\n__int64 __fastcall sub_403198(__int64 a1, int a2)\n{\nint i; // [rsp+18h] [rbp-4h]\n\nfor ( i = 0; i <= 255 && a2 != *(_DWORD *)(4LL * i + a1); ++i )\n;\nreturn (unsigned int)i;\n}\n\n\n\nQ:[a1,a2,sub_403198,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'tab', 'a2': 'wc', 'sub_403198': 'findInTable'}"}
ZSTD_compressBegin
0d5cc33be703a38c79bfdcda07108b6b035bbbdab3162c06b4fb671d7a57f5b7
powturbo
TurboPFor-Integer-Compression
NA
size_t ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel) { return ZSTD_compressBegin_usingDict(cctx, NULL, 0, compressionLevel); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414C7B", "function_addr": 4279419, "binary_name": "0d5cc33be703a38c79bfdcda07108b6b035bbbdab3162c06b4fb671d7a57f5b7.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 edx, [rbp+var_C]"], [6, "mov rax, [rbp+var_8]"], [7, "mov ecx, edx"], [8, "mov edx, 0"], [9, "mov esi, 0"], [10, "mov rdi, rax"], [11, "call sub_414BB7"], [12, "leave"], [13, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 5], [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/0d5cc33be703a38c79bfdcda07108b6b035bbbdab3162c06b4fb671d7a57f5b7_0d5cc33be703a38c79bfdcda07108b6b035bbbdab3162c06b4fb671d7a57f5b7.jsonl.gz", "strip_func_name": "sub_414C7B", "query": "\n\n\n__int64 __fastcall sub_414C7B(__int64 a1, unsigned int a2)\n{\nreturn sub_414BB7(a1, 0LL, 0LL, a2);\n}\n\n\n\nQ:[a1,a2,sub_414C7B,sub_414BB7,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'cctx', 'a2': 'compressionLevel', 'sub_414C7B': 'ZSTD_compressBegin', 'sub_414BB7': 'ZSTD_compressBegin_usingDict'}"}
AcpiOsDeleteSemaphore
53081f683e097394c8bd35863853914f3d78f9fba127cafeea789f2252f98359
bitdefender
napoca
NA
ACPI_STATUS AcpiOsDeleteSemaphore ( ACPI_HANDLE Handle) { return (AE_OK); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4044E1", "function_addr": 4211937, "binary_name": "53081f683e097394c8bd35863853914f3d78f9fba127cafeea789f2252f98359.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov eax, 0"], [4, "pop rbp"], [5, "retn"]], "data_dep": [[4, 0], [5, 3]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/53081f683e097394c8bd35863853914f3d78f9fba127cafeea789f2252f98359_53081f683e097394c8bd35863853914f3d78f9fba127cafeea789f2252f98359.jsonl.gz", "strip_func_name": "sub_4044E1", "query": "\n\n\n__int64 sub_4044E1()\n{\nreturn 0LL;\n}\n\n\n\nQ:[sub_4044E1,]\nAssistant: ", "hints": "[]", "response": "{'sub_4044E1': 'AcpiOsDeleteSemaphore'}"}
xlStkOver
616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602
dbetz
xlisp
NA
xlEXPORT void xlStkOver(void) { xlFmtAbort("value stack overflow"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409478", "function_addr": 4232312, "binary_name": "616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov edi, offset aValueStackOver"], [3, "mov eax, 0"], [4, "call sub_40A8AC"]], "data_dep": []}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602_616268ddd6c2eb493b2c54efa19d29a7054ba3644d87315019eb9d0213d39602.jsonl.gz", "strip_func_name": "sub_409478", "query": "\n\n\nvoid __fastcall __noreturn sub_409478(__int64 a1, int a2, int a3, int a4, int a5, int a6)\n{\nsub_40A8AC((unsigned int)\"value stack overflow\", a2, a3, a4, a5, a6);\n}\n\n\n\nQ:[sub_409478,sub_40A8AC,]\nAssistant: ", "hints": "[]", "response": "{'sub_409478': 'xlStkOver', 'sub_40A8AC': 'xlFmtAbort'}"}
read_from_filesystem_process
5818f963fbe7ec3d7e2ec9a7a9898955e36502c12a2dfcf92867927ad35fca32
SpiderLabs
modsecurity-mlogc-ng
NA
int read_from_filesystem_process(struct pipeline_element_t *e, struct audit_log_entry_t *audit_log) { int res = 0; struct read_from_filesystem_config_t *conf = e->payload; d("Starting batch operation at the directory: %s\n", conf->directory); res = open_directory_recursive(conf->directory, read_from_filesystem_call_entry_cb, conf); if (res) { res = -1; e("Failed to open the directory: '%s' or one of its sub-directories\n", conf->directory); goto failed_opening_directory; } failed_opening_directory: return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4017E6", "function_addr": 4200422, "binary_name": "5818f963fbe7ec3d7e2ec9a7a9898955e36502c12a2dfcf92867927ad35fca32.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_4], 0"], [6, "mov rax, [rbp+var_18]"], [7, "mov rax, [rax+8]"], [8, "mov [rbp+var_10], rax"], [9, "mov eax, cs:dword_418184"], [10, "test eax, eax"], [11, "jz short loc_40183B"], [12, "mov rax, [rbp+var_10]"], [13, "mov rax, [rax]"], [14, "mov r8, rax"], [15, "mov ecx, offset aReadFromFilesy"], [16, "mov edx, 2Fh "], [17, "mov esi, offset aInputElementsR"], [18, "mov edi, offset aSDSStartingBat"], [19, "mov eax, 0"], [20, "call _printf"], [21, "mov rax, [rbp+var_10]"], [22, "mov rax, [rax]"], [23, "mov rdx, [rbp+var_10]"], [24, "mov esi, offset sub_4016D7"], [25, "mov rdi, rax"], [26, "call sub_402C13"], [27, "mov [rbp+var_4], eax"], [28, "cmp [rbp+var_4], 0"], [29, "jz short loc_401898"], [30, "mov [rbp+var_4], 0FFFFFFFFh"], [31, "mov rax, [rbp+var_10]"], [32, "mov rdx, [rax]"], [33, "mov rax, cs:stderr"], [34, "mov r9, rdx"], [35, "mov r8d, offset aReadFromFilesy"], [36, "mov ecx, 37h "], [37, "mov edx, offset aInputElementsR"], [38, "mov esi, offset aSDSFailedToOpe"], [39, "mov rdi, rax"], [40, "mov eax, 0"], [41, "call _fprintf"], [42, "jmp short loc_401899"], [43, "nop"], [44, "mov eax, 0"], [45, "leave"], [46, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [10, 9], [11, 10], [12, 8], [13, 12], [14, 13], [21, 8], [22, 21], [23, 8], [25, 22], [27, 26], [28, 27], [29, 28], [31, 8], [32, 31], [34, 32], [39, 33], [46, 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/5818f963fbe7ec3d7e2ec9a7a9898955e36502c12a2dfcf92867927ad35fca32_5818f963fbe7ec3d7e2ec9a7a9898955e36502c12a2dfcf92867927ad35fca32.jsonl.gz", "strip_func_name": "sub_4017E6", "query": "\n\n\n__int64 __fastcall sub_4017E6(__int64 a1)\n{\nconst char **v2; // [rsp+10h] [rbp-10h]\n\nv2 = *(const char ***)(a1 + 8);\nif ( dword_418184 )\nprintf(\n\"%s:%d:%s(): Starting batch operation at the directory: %s\\n\",\n\"input_elements/read_from_filesystem.c\",\n47LL,\n\"read_from_filesystem_process\",\n*v2);\nif ( (unsigned int)sub_402C13(*v2, sub_4016D7, v2) )\nfprintf(\nstderr,\n\"%s:%d:%s(): Failed to open the directory: '%s' or one of its sub-directories\\n\",\n\"input_elements/read_from_filesystem.c\",\n55LL,\n\"read_from_filesystem_process\",\n*v2);\nreturn 0LL;\n}\n\n\n\nQ:[a1,v2,sub_4017E6,sub_402C13,sub_4016D7,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'e', 'v2': 'conf', 'sub_4017E6': 'read_from_filesystem_process', 'sub_402C13': 'open_directory_recursive', 'sub_4016D7': 'read_from_filesystem_call_entry_cb'}"}
firehose_write
87d497476ce9b442dfc0f771c36a76215e7a33fb8f88d419a9455bf6dafcfb7d
andersson
qdl
NA
static int firehose_write(struct qdl_device *qdl, xmlDoc *doc) { int saved_errno; xmlChar *s; int len; int ret; xmlDocDumpMemory(doc, &s, &len); for (;;) { if (qdl_debug) fprintf(stderr, "FIREHOSE WRITE: %s\n", s); ret = qdl_write(qdl, s, len); saved_errno = errno; /* * db410c sometimes sense a <response> followed by <log> * entries and won't accept write commands until these are * drained, so attempt to read any pending data and then retry * the write. */ if (ret < 0 && errno == ETIMEDOUT) { firehose_read(qdl, 100, firehose_generic_parser, NULL); } else { break; } } xmlFree(s); return ret < 0 ? -saved_errno : 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402A22", "function_addr": 4205090, "binary_name": "87d497476ce9b442dfc0f771c36a76215e7a33fb8f88d419a9455bf6dafcfb7d.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, "lea rdx, [rbp+var_14]"], [6, "lea rcx, [rbp+var_10]"], [7, "mov rax, [rbp+var_30]"], [8, "mov rsi, rcx"], [9, "mov rdi, rax"], [10, "call _xmlDocDumpMemory"], [11, "movzx eax, cs:byte_40B340"], [12, "test al, al"], [13, "jz short loc_402A71"], [14, "mov rdx, [rbp+var_10]"], [15, "mov rax, cs:stderr"], [16, "mov esi, offset aFirehoseWriteS"], [17, "mov rdi, rax"], [18, "mov eax, 0"], [19, "call _fprintf"], [20, "mov eax, [rbp+var_14]"], [21, "movsxd rdx, eax"], [22, "mov rcx, [rbp+var_10]"], [23, "mov rax, [rbp+var_28]"], [24, "mov rsi, rcx"], [25, "mov rdi, rax"], [26, "call sub_4048AE"], [27, "mov [rbp+var_4], eax"], [28, "call ___errno_location"], [29, "mov eax, [rax]"], [30, "mov [rbp+var_8], eax"], [31, "cmp [rbp+var_4], 0"], [32, "jns short loc_402AC6"], [33, "call ___errno_location"], [34, "mov eax, [rax]"], [35, "cmp eax, 6Eh "], [36, "jnz short loc_402AC6"], [37, "mov rax, [rbp+var_28]"], [38, "mov ecx, 0"], [39, "mov edx, offset sub_40272D"], [40, "mov esi, 64h "], [41, "mov rdi, rax"], [42, "call sub_4027AB"], [43, "jmp short loc_402A49"], [44, "mov rdx, cs:xmlFree"], [45, "mov rax, [rbp+var_10]"], [46, "mov rdi, rax"], [47, "call rdx "], [48, "cmp [rbp+var_4], 0"], [49, "jns short loc_402AE3"], [50, "mov eax, [rbp+var_8]"], [51, "neg eax"], [52, "jmp short locret_402AE8"], [53, "mov eax, 0"], [54, "leave"], [55, "retn"]], "data_dep": [[7, 4], [8, 6], [9, 7], [12, 11], [13, 12], [17, 15], [21, 20], [23, 3], [24, 22], [25, 23], [27, 26], [29, 28], [30, 29], [31, 27], [32, 31], [34, 33], [35, 34], [36, 35], [37, 3], [41, 37], [46, 45], [47, 44], [48, 27], [49, 48], [50, 30], [51, 50], [55, 53], [55, 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/87d497476ce9b442dfc0f771c36a76215e7a33fb8f88d419a9455bf6dafcfb7d_87d497476ce9b442dfc0f771c36a76215e7a33fb8f88d419a9455bf6dafcfb7d.jsonl.gz", "strip_func_name": "sub_402A22", "query": "\n\n\n__int64 __fastcall sub_402A22(__int64 a1)\n{\n__int64 result; // rax\nint v2; // [rsp+1Ch] [rbp-14h]\nconst char *v3; // [rsp+20h] [rbp-10h]\nint v4; // [rsp+28h] [rbp-8h]\nint v5; // [rsp+2Ch] [rbp-4h]\n\nxmlDocDumpMemory();\nwhile ( 1 )\n{\nif ( byte_40B340 )\nfprintf(stderr, \"FIREHOSE WRITE: %s\\n\", v3);\nv5 = sub_4048AE(a1, v3, v2);\nv4 = *__errno_location();\nif ( v5 >= 0 || *__errno_location() != 110 )\nbreak;\nsub_4027AB(a1, 100, (__int64 (__fastcall *)(__int64, __int64))sub_40272D, 0LL);\n}\n((void (__fastcall *)())xmlFree)();\nif ( v5 >= 0 )\nresult = 0LL;\nelse\nresult = (unsigned int)-v4;\nreturn result;\n}\n\n\n\nQ:[a1,v2,v3,v4,sub_402A22,sub_4048AE,sub_4027AB,sub_40272D,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'qdl', 'v2': 'len', 'v3': 's', 'v4': 'saved_errno', 'sub_402A22': 'firehose_write', 'sub_4048AE': 'qdl_write', 'sub_4027AB': 'firehose_read', 'sub_40272D': 'firehose_generic_parser'}"}
vb2_safe_memcmp
a97a959f5a5bbcfbc13eaf601fe5a3d4d6f443efbaca9a1e6880d3b64fa82be1
Telecominfraproject
OpenCellular
NA
int vb2_safe_memcmp(const void *s1, const void *s2, size_t size) { const unsigned char *us1 = s1; const unsigned char *us2 = s2; int result = 0; if (0 == size) return 0; /* * Code snippet without data-dependent branch due to Nate Lawson * (nate@root.org) of Root Labs. */ while (size--) result |= *us1++ ^ *us2++; return result != 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40550F", "function_addr": 4216079, "binary_name": "a97a959f5a5bbcfbc13eaf601fe5a3d4d6f443efbaca9a1e6880d3b64fa82be1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_28], rdi"], [3, "mov [rbp+var_30], rsi"], [4, "mov [rbp+var_38], rdx"], [5, "mov rax, [rbp+var_28]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_30]"], [8, "mov [rbp+var_10], rax"], [9, "mov [rbp+var_14], 0"], [10, "cmp [rbp+var_38], 0"], [11, "jnz short loc_40556A"], [12, "mov eax, 0"], [13, "jmp short loc_405585"], [14, "mov rax, [rbp+var_8]"], [15, "lea rdx, [rax+1]"], [16, "mov [rbp+var_8], rdx"], [17, "movzx ecx, byte ptr [rax]"], [18, "mov rax, [rbp+var_10]"], [19, "lea rdx, [rax+1]"], [20, "mov [rbp+var_10], rdx"], [21, "movzx eax, byte ptr [rax]"], [22, "xor eax, ecx"], [23, "movzx eax, al"], [24, "or [rbp+var_14], eax"], [25, "mov rax, [rbp+var_38]"], [26, "lea rdx, [rax-1]"], [27, "mov [rbp+var_38], rdx"], [28, "test rax, rax"], [29, "jnz short loc_405544"], [30, "cmp [rbp+var_14], 0"], [31, "setnz al"], [32, "movzx eax, al"], [33, "pop rbp"], [34, "retn"]], "data_dep": [[5, 2], [6, 5], [7, 3], [8, 7], [10, 4], [11, 10], [14, 16], [14, 6], [15, 14], [15, 26], [16, 15], [17, 14], [18, 20], [18, 8], [19, 18], [19, 15], [20, 19], [21, 18], [22, 17], [22, 21], [23, 22], [24, 23], [24, 9], [24, 24], [25, 4], [25, 27], [26, 19], [26, 25], [27, 26], [28, 25], [29, 28], [30, 9], [30, 24], [31, 28], [31, 30], [32, 31], [33, 0], [34, 12], [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/a97a959f5a5bbcfbc13eaf601fe5a3d4d6f443efbaca9a1e6880d3b64fa82be1_a97a959f5a5bbcfbc13eaf601fe5a3d4d6f443efbaca9a1e6880d3b64fa82be1.jsonl.gz", "strip_func_name": "sub_40550F", "query": "\n\n\n_BOOL8 __fastcall sub_40550F(char *a1, _BYTE *a2, __int64 a3)\n{\nchar *v4; // rax\nchar v5; // cl\n_BYTE *v6; // rax\n__int64 v8; // [rsp+0h] [rbp-38h]\nint v9; // [rsp+24h] [rbp-14h]\n\nv8 = a3;\nv9 = 0;\nif ( !a3 )\nreturn 0LL;\nwhile ( v8-- )\n{\nv4 = a1++;\nv5 = *v4;\nv6 = a2++;\nv9 |= (unsigned __int8)(v5 ^ *v6);\n}\nreturn v9 != 0;\n}\n\n\n\nQ:[a3,a1,a2,v8,v9,sub_40550F,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'size', 'a1': 's1', 'a2': 's2', 'v8': 'sizea', 'v9': 'result', 'sub_40550F': 'vb2_safe_memcmp'}"}
flushbuffer
40874554c46d15a39ce91c8819ccc126854a63e765dafd614f39346dbaf3dc95
greenplum-db
gpdb
NA
static void flushbuffer(PrintfTarget *target) { size_t nc = target->bufptr - target->bufstart; /* * Don't write anything if we already failed; this is to ensure we * preserve the original failure's errno. */ if (!target->failed && nc > 0) { size_t written; written = fwrite(target->bufstart, 1, nc, target->stream); target->nchars += written; if (written != nc) target->failed = true; } target->bufptr = target->bufstart; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413780", "function_addr": 4274048, "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 rax, [rbp+var_18]"], [5, "mov rdx, [rax]"], [6, "mov rax, [rbp+var_18]"], [7, "mov rcx, [rax+8]"], [8, "mov rax, rdx"], [9, "sub rax, rcx"], [10, "mov [rbp+n], rax"], [11, "mov rax, [rbp+var_18]"], [12, "movzx eax, byte ptr [rax+24h]"], [13, "xor eax, 1"], [14, "test al, al"], [15, "jz short loc_41380A"], [16, "cmp [rbp+n], 0"], [17, "jz short loc_41380A"], [18, "mov rax, [rbp+var_18]"], [19, "mov rcx, [rax+18h]"], [20, "mov rax, [rbp+var_18]"], [21, "mov rax, [rax+8]"], [22, "mov rdx, [rbp+n]"], [23, "mov esi, 1"], [24, "mov rdi, rax"], [25, "call _fwrite"], [26, "mov [rbp+var_10], rax"], [27, "mov rax, [rbp+var_18]"], [28, "mov eax, [rax+20h]"], [29, "mov edx, eax"], [30, "mov rax, [rbp+var_10]"], [31, "add eax, edx"], [32, "mov edx, eax"], [33, "mov rax, [rbp+var_18]"], [34, "mov [rax+20h], edx"], [35, "mov rax, [rbp+var_10]"], [36, "cmp rax, [rbp+n]"], [37, "jz short loc_41380A"], [38, "mov rax, [rbp+var_18]"], [39, "mov byte ptr [rax+24h], 1"], [40, "mov rax, [rbp+var_18]"], [41, "mov rdx, [rax+8]"], [42, "mov rax, [rbp+var_18]"], [43, "mov [rax], rdx"], [44, "nop"], [45, "leave"], [46, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 5], [9, 8], [9, 7], [10, 9], [11, 3], [12, 11], [13, 12], [14, 13], [15, 14], [16, 10], [17, 16], [18, 3], [19, 18], [20, 3], [21, 20], [22, 10], [24, 21], [26, 25], [27, 3], [28, 27], [29, 28], [30, 26], [31, 29], [31, 30], [32, 31], [33, 3], [34, 33], [34, 32], [35, 26], [36, 10], [36, 35], [37, 36], [38, 3], [39, 38], [40, 3], [41, 40], [41, 43], [41, 39], [41, 34], [42, 3], [43, 42], [43, 41], [46, 42]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/40874554c46d15a39ce91c8819ccc126854a63e765dafd614f39346dbaf3dc95_40874554c46d15a39ce91c8819ccc126854a63e765dafd614f39346dbaf3dc95.jsonl.gz", "strip_func_name": "sub_413780", "query": "\n\n\n__int64 __fastcall sub_413780(__int64 a1)\n{\n__int64 result; // rax\nsize_t v2; // [rsp+10h] [rbp-10h]\nsize_t n; // [rsp+18h] [rbp-8h]\n\nn = *(_QWORD *)a1 - *(_QWORD *)(a1 + 8);\nif ( *(_BYTE *)(a1 + 36) != 1 )\n{\nif ( n )\n{\nv2 = fwrite(*(const void **)(a1 + 8), 1uLL, n, *(FILE **)(a1 + 24));\n*(_DWORD *)(a1 + 32) += v2;\nif ( v2 != n )\n*(_BYTE *)(a1 + 36) = 1;\n}\n}\nresult = a1;\n*(_QWORD *)a1 = *(_QWORD *)(a1 + 8);\nreturn result;\n}\n\n\n\nQ:[a1,v2,n,sub_413780,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'target', 'v2': 'written', 'n': 'nc', 'sub_413780': 'flushbuffer'}"}
writeout
29ea477980c0d8b0baee130da8b95a902e69458dd77b36fa27b9e48bd094f22d
aap
pdp6
NA
void writeout(void) { hword i; for(i = 0; i < itemp-1; i++){ writew(item[i], relfp); // printf("\t\tDUMP: %06o %06o\n", left(item[i]), right(item[i])); } //printf("\n"); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40158E", "function_addr": 4199822, "binary_name": "29ea477980c0d8b0baee130da8b95a902e69458dd77b36fa27b9e48bd094f22d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], 0"], [4, "jmp short loc_4015C0"], [5, "mov rdx, cs:qword_40E870"], [6, "mov eax, [rbp+var_4]"], [7, "mov rax, ds:qword_435F80[rax*8]"], [8, "mov rsi, rdx"], [9, "mov rdi, rax"], [10, "call sub_405918"], [11, "add [rbp+var_4], 1"], [12, "mov eax, cs:dword_635F80"], [13, "sub eax, 1"], [14, "cmp [rbp+var_4], eax"], [15, "jb short loc_40159F"], [16, "nop"], [17, "nop"], [18, "leave"], [19, "retn"]], "data_dep": [[6, 11], [6, 3], [8, 5], [9, 7], [11, 3], [11, 11], [13, 12], [14, 13], [14, 3], [14, 11], [15, 14], [19, 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/29ea477980c0d8b0baee130da8b95a902e69458dd77b36fa27b9e48bd094f22d_29ea477980c0d8b0baee130da8b95a902e69458dd77b36fa27b9e48bd094f22d.jsonl.gz", "strip_func_name": "sub_40158E", "query": "\n\n\n__int64 sub_40158E()\n{\n__int64 result; // rax\nunsigned int i; // [rsp+Ch] [rbp-4h]\n\nfor ( i = 0; ; ++i )\n{\nresult = (unsigned int)(dword_635F80 - 1);\nif ( i >= (unsigned int)result )\nbreak;\nsub_405918(qword_435F80[i], qword_40E870);\n}\nreturn result;\n}\n\n\n\nQ:[sub_40158E,sub_405918,]\nAssistant: ", "hints": "[]", "response": "{'sub_40158E': 'writeout', 'sub_405918': 'writew'}"}
mt_detach
13f2671241114a962235990a8a53447d965ef69e183b81e214ebbded998f318a
open-simh
simh
NA
t_stat mt_detach (UNIT *uptr) { uptr->botf = uptr->eotf = 0; return sim_tape_detach (uptr); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40CE09", "function_addr": 4247049, "binary_name": "13f2671241114a962235990a8a53447d965ef69e183b81e214ebbded998f318a.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 dword ptr [rax+60h], 0"], [6, "mov rax, [rbp+var_8]"], [7, "mov edx, [rax+60h]"], [8, "mov rax, [rbp+var_8]"], [9, "mov [rax+5Ch], edx"], [10, "mov rax, [rbp+var_8]"], [11, "mov rdi, rax"], [12, "call sub_46BFDD"], [13, "leave"], [14, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [7, 5], [8, 3], [9, 8], [9, 7], [10, 3], [11, 10], [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/13f2671241114a962235990a8a53447d965ef69e183b81e214ebbded998f318a_13f2671241114a962235990a8a53447d965ef69e183b81e214ebbded998f318a.jsonl.gz", "strip_func_name": "sub_40CE09", "query": "\n\n\n__int64 __fastcall sub_40CE09(__int64 a1)\n{\n*(_DWORD *)(a1 + 96) = 0;\n*(_DWORD *)(a1 + 92) = *(_DWORD *)(a1 + 96);\nreturn sub_46BFDD(a1);\n}\n\n\n\nQ:[a1,sub_40CE09,sub_46BFDD,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'uptr', 'sub_40CE09': 'mt_detach', 'sub_46BFDD': 'sim_tape_detach'}"}
perf_evlist__collapse_resort
decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08
khadas
linux
NA
static void perf_evlist__collapse_resort(struct perf_evlist *evlist) { struct perf_evsel *evsel; evlist__for_each(evlist, evsel) { struct hists *hists = &evsel->hists; hists__collapse_resort(hists, NULL); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_420563", "function_addr": 4326755, "binary_name": "decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_38], rdi"], [4, "mov rax, fs:28h"], [5, "mov [rbp+var_8], rax"], [6, "xor eax, eax"], [7, "mov rax, [rbp+var_38]"], [8, "mov rax, [rax]"], [9, "mov [rbp+var_20], rax"], [10, "mov rax, [rbp+var_20]"], [11, "mov [rbp+var_28], rax"], [12, "jmp short loc_4205C5"], [13, "mov rax, [rbp+var_28]"], [14, "add rax, 0A8h"], [15, "mov [rbp+var_18], rax"], [16, "mov rax, [rbp+var_18]"], [17, "mov esi, 0"], [18, "mov rdi, rax"], [19, "call hists__collapse_resort"], [20, "mov rax, [rbp+var_28]"], [21, "mov rax, [rax]"], [22, "mov [rbp+var_10], rax"], [23, "mov rax, [rbp+var_10]"], [24, "mov [rbp+var_28], rax"], [25, "mov rax, [rbp+var_28]"], [26, "cmp rax, [rbp+var_38]"], [27, "jnz short loc_420593"], [28, "nop"], [29, "mov rax, [rbp+var_8]"], [30, "sub rax, fs:28h"], [31, "jz short locret_4205E4"], [32, "call ___stack_chk_fail"], [33, "leave"], [34, "retn"]], "data_dep": [[5, 4], [7, 3], [8, 7], [9, 8], [10, 9], [11, 10], [13, 11], [13, 24], [14, 13], [15, 14], [16, 15], [18, 16], [20, 11], [20, 24], [21, 20], [22, 21], [23, 22], [24, 23], [25, 24], [25, 11], [26, 25], [26, 3], [27, 26], [29, 5], [30, 29], [31, 30], [34, 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/decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08_decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08.jsonl.gz", "strip_func_name": "sub_420563", "query": "\n\n\nunsigned __int64 __fastcall sub_420563(_QWORD **a1)\n{\n_QWORD *i; // [rsp+18h] [rbp-28h]\nunsigned __int64 v3; // [rsp+38h] [rbp-8h]\n\nv3 = __readfsqword(0x28u);\nfor ( i = *a1; i != a1; i = (_QWORD *)*i )\nhists__collapse_resort(i + 21, 0LL);\nreturn v3 - __readfsqword(0x28u);\n}\n\n\n\nQ:[a1,i,sub_420563,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'evlist', 'i': 'evsel', 'sub_420563': 'perf_evlist__collapse_resort'}"}
encode_mac
e6347362ab4087e8b7809efee81b7765bd9154d476290188e08904771149bd36
ntop
n2n
NA
int encode_mac( uint8_t * base, size_t * idx, const n2n_mac_t m ) { return encode_buf( base, idx, m, N2N_MAC_SIZE ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408C3E", "function_addr": 4230206, "binary_name": "e6347362ab4087e8b7809efee81b7765bd9154d476290188e08904771149bd36.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rdx, [rbp+var_18]"], [7, "mov rsi, [rbp+var_10]"], [8, "mov rax, [rbp+var_8]"], [9, "mov ecx, 6"], [10, "mov rdi, rax"], [11, "call sub_408B67"], [12, "leave"], [13, "retn"]], "data_dep": [[6, 5], [7, 4], [8, 3], [10, 8], [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/e6347362ab4087e8b7809efee81b7765bd9154d476290188e08904771149bd36_e6347362ab4087e8b7809efee81b7765bd9154d476290188e08904771149bd36.jsonl.gz", "strip_func_name": "sub_408C3E", "query": "\n\n\nsize_t __fastcall sub_408C3E(__int64 a1, _QWORD *a2, const void *a3)\n{\nreturn sub_408B67(a1, a2, a3, 6uLL);\n}\n\n\n\nQ:[a3,a1,a2,sub_408C3E,sub_408B67,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'm', 'a1': 'base', 'a2': 'idx', 'sub_408C3E': 'encode_mac', 'sub_408B67': 'encode_buf'}"}
xdr_qcsapi_wifi_wowlan_get_udp_port_rpcdata
501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30
coolsnowwolf
lede
NA
bool_t xdr_qcsapi_wifi_wowlan_get_udp_port_rpcdata (XDR *xdrs, qcsapi_wifi_wowlan_get_udp_port_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->p_value, sizeof (uint16_t), (xdrproc_t) xdr_uint16_t)) return FALSE; if (!xdr_pointer (xdrs, (char **)&objp->len, sizeof (uint32_t), (xdrproc_t) xdr_uint32_t)) return FALSE; if (!xdr_int (xdrs, &objp->return_code)) return FALSE; return TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4474E2", "function_addr": 4486370, "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_44751F"], [14, "mov eax, 0"], [15, "jmp locret_4475A2"], [16, "mov rax, [rbp+objpp]"], [17, "lea rsi, [rax+8]"], [18, "mov rax, [rbp+xdrs]"], [19, "mov rdx, cs:xdr_uint16_t_ptr"], [20, "mov rcx, rdx"], [21, "mov edx, 2"], [22, "mov rdi, rax"], [23, "call _xdr_pointer"], [24, "test eax, eax"], [25, "jnz short loc_44754D"], [26, "mov eax, 0"], [27, "jmp short locret_4475A2"], [28, "mov rax, [rbp+objpp]"], [29, "lea rsi, [rax+10h]"], [30, "mov rax, [rbp+xdrs]"], [31, "mov rdx, cs:xdr_uint32_t_ptr"], [32, "mov rcx, rdx"], [33, "mov edx, 4"], [34, "mov rdi, rax"], [35, "call _xdr_pointer"], [36, "test eax, eax"], [37, "jnz short loc_44757B"], [38, "mov eax, 0"], [39, "jmp short locret_4475A2"], [40, "mov rax, [rbp+objpp]"], [41, "lea rdx, [rax+18h]"], [42, "mov rax, [rbp+xdrs]"], [43, "mov rsi, rdx"], [44, "mov rdi, rax"], [45, "call xdr_int"], [46, "test eax, eax"], [47, "jnz short loc_44759D"], [48, "mov eax, 0"], [49, "jmp short locret_4475A2"], [50, "mov eax, 1"], [51, "leave"], [52, "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, 17], [29, 28], [30, 3], [32, 31], [34, 30], [36, 35], [37, 36], [40, 4], [41, 40], [41, 33], [42, 3], [43, 41], [44, 42], [46, 45], [47, 46], [52, 48], [52, 14], [52, 26], [52, 38], [52, 50]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30_501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30.jsonl.gz", "strip_func_name": "sub_4474E2", "query": "\n\n\n_BOOL8 __fastcall sub_4474E2(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, 2u, (xdrproc_t)&xdr_uint16_t) )\nreturn 0LL;\nif ( xdr_pointer(a1, (char **)a2 + 2, 4u, (xdrproc_t)&xdr_uint32_t) )\nreturn xdr_int(a1, (int *)a2 + 6) != 0;\nreturn 0LL;\n}\n\n\n\nQ:[a1,a2,sub_4474E2,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'xdrs', 'a2': 'objp', 'sub_4474E2': 'xdr_qcsapi_wifi_wowlan_get_udp_port_rpcdata'}"}
checkSizes
5f497371fdbf8d52cca591742e35533ae1e7741c287028b049fcc36e4c4a61b4
cloudwu
skynet
NA
static void checkSizes (lua_State *L, global_State *g) { if (!g->gcemergency) { if (g->strt.nuse < g->strt.size / 4) { /* string table too big? */ l_mem olddebt = g->GCdebt; luaS_resize(L, g->strt.size / 2); g->GCestimate += g->GCdebt - olddebt; /* correct estimate */ } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412463", "function_addr": 4269155, "binary_name": "5f497371fdbf8d52cca591742e35533ae1e7741c287028b049fcc36e4c4a61b4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_20]"], [6, "movzx eax, byte ptr [rax+67h]"], [7, "test al, al"], [8, "jnz short loc_4124E7"], [9, "mov rax, [rbp+var_20]"], [10, "mov edx, [rax+38h]"], [11, "mov rax, [rbp+var_20]"], [12, "mov eax, [rax+3Ch]"], [13, "lea ecx, [rax+3]"], [14, "test eax, eax"], [15, "cmovs eax, ecx"], [16, "sar eax, 2"], [17, "cmp edx, eax"], [18, "jge short loc_4124E7"], [19, "mov rax, [rbp+var_20]"], [20, "mov rax, [rax+18h]"], [21, "mov [rbp+var_8], rax"], [22, "mov rax, [rbp+var_20]"], [23, "mov eax, [rax+3Ch]"], [24, "mov edx, eax"], [25, "shr edx, 1Fh"], [26, "add eax, edx"], [27, "sar eax, 1"], [28, "mov edx, eax"], [29, "mov rax, [rbp+var_18]"], [30, "mov esi, edx"], [31, "mov rdi, rax"], [32, "call sub_41BC1B"], [33, "mov rax, [rbp+var_20]"], [34, "mov rdx, [rax+20h]"], [35, "mov rax, [rbp+var_20]"], [36, "mov rax, [rax+18h]"], [37, "sub rax, [rbp+var_8]"], [38, "add rdx, rax"], [39, "mov rax, [rbp+var_20]"], [40, "mov [rax+20h], rdx"], [41, "nop"], [42, "leave"], [43, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 4], [10, 9], [11, 4], [12, 11], [13, 12], [14, 12], [15, 14], [15, 13], [16, 15], [17, 10], [17, 16], [18, 17], [19, 4], [20, 19], [21, 20], [22, 4], [23, 22], [24, 23], [25, 24], [26, 23], [26, 25], [27, 26], [28, 27], [29, 3], [30, 28], [31, 29], [33, 4], [34, 33], [35, 4], [36, 35], [37, 21], [37, 36], [38, 37], [38, 34], [39, 4], [40, 38], [40, 39], [43, 39], [43, 7], [43, 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/5f497371fdbf8d52cca591742e35533ae1e7741c287028b049fcc36e4c4a61b4_5f497371fdbf8d52cca591742e35533ae1e7741c287028b049fcc36e4c4a61b4.jsonl.gz", "strip_func_name": "sub_412463", "query": "\n\n\n__int64 __fastcall sub_412463(__int64 a1, __int64 a2)\n{\n__int64 result; // rax\n__int64 v3; // [rsp+18h] [rbp-8h]\n\nresult = *(unsigned __int8 *)(a2 + 103);\nif ( !(_BYTE)result )\n{\nresult = (unsigned int)(*(_DWORD *)(a2 + 60) / 4);\nif ( *(_DWORD *)(a2 + 56) < (int)result )\n{\nv3 = *(_QWORD *)(a2 + 24);\nsub_41BC1B(a1, (unsigned int)(*(_DWORD *)(a2 + 60) / 2));\nresult = a2;\n*(_QWORD *)(a2 + 32) += *(_QWORD *)(a2 + 24) - v3;\n}\n}\nreturn result;\n}\n\n\n\nQ:[a1,a2,v3,sub_412463,sub_41BC1B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'L', 'a2': 'g', 'v3': 'olddebt', 'sub_412463': 'checkSizes', 'sub_41BC1B': 'luaS_resize'}"}
pjsip_endpt_resolve
0d02b74aea201d48cc3d38bf7d5dfeacbcaff9102bd8e2dbdd0b1813b49b64a0
AonCyberLabs
D-Modem
NA
PJ_DEF(void) pjsip_endpt_resolve( pjsip_endpoint *endpt, pj_pool_t *pool, pjsip_host_info *target, void *token, pjsip_resolver_callback *cb) { pjsip_resolve( endpt->resolver, pool, target, token, cb); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_422F2B", "function_addr": 4337451, "binary_name": "0d02b74aea201d48cc3d38bf7d5dfeacbcaff9102bd8e2dbdd0b1813b49b64a0.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_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov [rbp+var_20], rcx"], [7, "mov [rbp+var_28], r8"], [8, "mov rax, [rbp+var_8]"], [9, "mov rax, [rax+48h]"], [10, "mov rdi, [rbp+var_28]"], [11, "mov rcx, [rbp+var_20]"], [12, "mov rdx, [rbp+var_18]"], [13, "mov rsi, [rbp+var_10]"], [14, "mov r8, rdi"], [15, "mov rdi, rax"], [16, "call sub_427464"], [17, "nop"], [18, "leave"], [19, "retn"]], "data_dep": [[8, 3], [9, 8], [10, 7], [11, 6], [12, 5], [13, 4], [14, 10], [15, 9], [19, 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/0d02b74aea201d48cc3d38bf7d5dfeacbcaff9102bd8e2dbdd0b1813b49b64a0_0d02b74aea201d48cc3d38bf7d5dfeacbcaff9102bd8e2dbdd0b1813b49b64a0.jsonl.gz", "strip_func_name": "sub_422F2B", "query": "\n\n\n__int64 __fastcall sub_422F2B(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)\n{\nreturn sub_427464(*(_QWORD *)(a1 + 72), a2, a3, a4, a5);\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,sub_422F2B,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'target', 'a4': 'token', 'a1': 'endpt', 'a2': 'pool', 'a5': 'cb', 'sub_422F2B': 'pjsip_endpt_resolve'}"}
update_crc16
4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487
nccgroup
proxmark3-amiimicyou
NA
unsigned short update_crc16( unsigned short crc, unsigned char c ) { unsigned short i, v, tcrc = 0; v = (crc ^ c) & 0xff; for (i = 0; i < 8; i++) { tcrc = ( (tcrc ^ v) & 1 ) ? ( tcrc >> 1 ) ^ 0x8408 : tcrc >> 1; v >>= 1; } return ((crc >> 8) ^ tcrc)&0xffff; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "update_crc16", "function_addr": 4325718, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov eax, edi"], [3, "mov edx, esi"], [4, "mov [rbp+var_14], ax"], [5, "mov eax, edx"], [6, "mov [rbp+var_18], al"], [7, "mov [rbp+var_6], 0"], [8, "movzx eax, [rbp+var_18]"], [9, "xor ax, [rbp+var_14]"], [10, "and ax, 0FFh"], [11, "mov [rbp+var_4], ax"], [12, "mov [rbp+var_2], 0"], [13, "jmp short loc_4201BE"], [14, "movzx eax, [rbp+var_6]"], [15, "xor ax, [rbp+var_4]"], [16, "movzx eax, ax"], [17, "and eax, 1"], [18, "test eax, eax"], [19, "jz short loc_4201A4"], [20, "movzx eax, [rbp+var_6]"], [21, "shr ax, 1"], [22, "xor ax, 8408h"], [23, "jmp short loc_4201AB"], [24, "movzx eax, [rbp+var_6]"], [25, "shr ax, 1"], [26, "mov [rbp+var_6], ax"], [27, "shr [rbp+var_4], 1"], [28, "movzx eax, [rbp+var_2]"], [29, "add eax, 1"], [30, "mov [rbp+var_2], ax"], [31, "cmp [rbp+var_2], 7"], [32, "jbe short loc_420185"], [33, "movzx eax, [rbp+var_14]"], [34, "shr ax, 8"], [35, "xor ax, [rbp+var_6]"], [36, "pop rbp"], [37, "retn"]], "data_dep": [[4, 2], [5, 3], [6, 5], [8, 6], [9, 8], [9, 4], [10, 9], [11, 10], [14, 7], [14, 26], [15, 27], [15, 11], [15, 14], [16, 15], [17, 16], [18, 17], [19, 18], [20, 26], [20, 7], [21, 20], [22, 21], [24, 26], [24, 7], [25, 24], [26, 25], [26, 22], [27, 27], [27, 11], [28, 12], [28, 30], [29, 28], [30, 29], [31, 12], [31, 30], [32, 31], [33, 4], [34, 33], [35, 26], [35, 7], [35, 34], [36, 0], [37, 35]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487_4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.jsonl.gz", "strip_func_name": "update_crc16", "query": "\n\n\n__int16 __fastcall update_crc16(unsigned __int16 a1, char a2)\n{\nunsigned __int16 v2; // ax\nunsigned __int16 v4; // [rsp+12h] [rbp-6h]\nunsigned __int16 v5; // [rsp+14h] [rbp-4h]\nunsigned __int16 i; // [rsp+16h] [rbp-2h]\n\nv4 = 0;\nv5 = (unsigned __int8)(a1 ^ a2);\nfor ( i = 0; i <= 7u; ++i )\n{\nif ( (((unsigned __int8)v5 ^ (unsigned __int8)v4) & 1) != 0 )\nv2 = (v4 >> 1) ^ 0x8408;\nelse\nv2 = v4 >> 1;\nv4 = v2;\nv5 >>= 1;\n}\nreturn v4 ^ HIBYTE(a1);\n}\n\n\n\nQ:[a1,a2,v4,v5,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'crc', 'a2': 'c', 'v4': 'tcrc', 'v5': 'v'}"}
hci_power_control_sleep
1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586
bluekitchen
btstack
NA
static void hci_power_control_sleep(void){ log_info("hci_power_control_sleep"); #if 0 // don't close serial port during sleep // close low-level device hci_stack->hci_transport->close(hci_stack->config); #endif // sleep mode if (hci_stack->control && hci_stack->control->sleep){ (*hci_stack->control->sleep)(); } hci_stack->state = HCI_STATE_SLEEPING; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_416EE4", "function_addr": 4288228, "binary_name": "1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov ecx, 137Ah"], [3, "mov edx, offset aHciC"], [4, "mov esi, offset aSUHciPowerCont_2"], [5, "mov edi, 1"], [6, "mov eax, 0"], [7, "call sub_41DE87"], [8, "mov rax, cs:qword_488B70"], [9, "mov rax, [rax+20h]"], [10, "test rax, rax"], [11, "jz short loc_416F3B"], [12, "mov rax, cs:qword_488B70"], [13, "mov rax, [rax+20h]"], [14, "mov rax, [rax+18h]"], [15, "test rax, rax"], [16, "jz short loc_416F3B"], [17, "mov rax, cs:qword_488B70"], [18, "mov rax, [rax+20h]"], [19, "mov rax, [rax+18h]"], [20, "call rax"], [21, "mov rax, cs:qword_488B70"], [22, "mov dword ptr [rax+788h], 4"], [23, "nop"], [24, "pop rbp"], [25, "retn"]], "data_dep": [[9, 8], [10, 9], [11, 10], [13, 12], [14, 13], [15, 14], [16, 15], [18, 17], [19, 18], [20, 19], [22, 21], [24, 0], [25, 21]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n 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_416EE4", "query": "\n\n\nvoid *__fastcall sub_416EE4(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int a5, int a6)\n{\nvoid *result; // rax\n\nsub_41DE87(1, (unsigned int)\"%s.%u: hci_power_control_sleep\", (unsigned int)\"hci.c\", 4986, a5, a6);\nif ( *((_QWORD *)qword_488B70 + 4) && *(_QWORD *)(*((_QWORD *)qword_488B70 + 4) + 24LL) )\n(*(void (**)(void))(*((_QWORD *)qword_488B70 + 4) + 24LL))();\nresult = qword_488B70;\n*((_DWORD *)qword_488B70 + 482) = 4;\nreturn result;\n}\n\n\n\nQ:[sub_416EE4,sub_41DE87,]\nAssistant: ", "hints": "[]", "response": "{'sub_416EE4': 'hci_power_control_sleep', 'sub_41DE87': 'hci_dump_log'}"}
aes_setkey_dec
4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487
nccgroup
proxmark3-amiimicyou
NA
int aes_setkey_dec( aes_context *ctx, const unsigned char *key, unsigned int keysize ) { int i, j, ret; aes_context cty; uint32_t *RK; uint32_t *SK; aes_init( &cty ); #if defined(POLARSSL_PADLOCK_C) && defined(PADLOCK_ALIGN16) if( aes_padlock_ace == -1 ) aes_padlock_ace = padlock_supports( PADLOCK_ACE ); if( aes_padlock_ace ) ctx->rk = RK = PADLOCK_ALIGN16( ctx->buf ); else #endif ctx->rk = RK = ctx->buf; /* Also checks keysize */ if( ( ret = aes_setkey_enc( &cty, key, keysize ) ) != 0 ) goto exit; ctx->nr = cty.nr; #if defined(POLARSSL_AESNI_C) && defined(POLARSSL_HAVE_X86_64) if( aesni_supports( POLARSSL_AESNI_AES ) ) { aesni_inverse_key( (unsigned char *) ctx->rk, (const unsigned char *) cty.rk, ctx->nr ); goto exit; } #endif SK = cty.rk + cty.nr * 4; *RK++ = *SK++; *RK++ = *SK++; *RK++ = *SK++; *RK++ = *SK++; for( i = ctx->nr - 1, SK -= 8; i > 0; i--, SK -= 8 ) { for( j = 0; j < 4; j++, SK++ ) { *RK++ = RT0[ FSb[ ( *SK ) & 0xFF ] ] ^ RT1[ FSb[ ( *SK >> 8 ) & 0xFF ] ] ^ RT2[ FSb[ ( *SK >> 16 ) & 0xFF ] ] ^ RT3[ FSb[ ( *SK >> 24 ) & 0xFF ] ]; } } *RK++ = *SK++; *RK++ = *SK++; *RK++ = *SK++; *RK++ = *SK++; exit: aes_free( &cty ); return( ret ); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "aes_setkey_dec", "function_addr": 4600433, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 160h"], [3, "mov [rbp+var_148], rdi"], [4, "mov [rbp+var_150], rsi"], [5, "mov [rbp+var_154], edx"], [6, "lea rax, [rbp+var_140]"], [7, "mov rdi, rax"], [8, "call aes_init"], [9, "mov rax, [rbp+var_148]"], [10, "add rax, 10h"], [11, "mov [rbp+var_10], rax"], [12, "mov rax, [rbp+var_148]"], [13, "mov rdx, [rbp+var_10]"], [14, "mov [rax+8], rdx"], [15, "mov edx, [rbp+var_154]"], [16, "mov rcx, [rbp+var_150]"], [17, "lea rax, [rbp+var_140]"], [18, "mov rsi, rcx"], [19, "mov rdi, rax"], [20, "call aes_setkey_enc"], [21, "mov [rbp+var_1C], eax"], [22, "cmp [rbp+var_1C], 0"], [23, "jnz loc_4634D8"], [24, "mov edx, [rbp+var_140]"], [25, "mov rax, [rbp+var_148]"], [26, "mov [rax], edx"], [27, "mov rdx, [rbp+var_138]"], [28, "mov eax, [rbp+var_140]"], [29, "shl eax, 2"], [30, "cdqe"], [31, "shl rax, 2"], [32, "add rax, rdx"], [33, "mov [rbp+var_18], rax"], [34, "mov rdx, [rbp+var_18]"], [35, "lea rax, [rdx+4]"], [36, "mov [rbp+var_18], rax"], [37, "mov rax, [rbp+var_10]"], [38, "lea rcx, [rax+4]"], [39, "mov [rbp+var_10], rcx"], [40, "mov edx, [rdx]"], [41, "mov [rax], edx"], [42, "mov rdx, [rbp+var_18]"], [43, "lea rax, [rdx+4]"], [44, "mov [rbp+var_18], rax"], [45, "mov rax, [rbp+var_10]"], [46, "lea rcx, [rax+4]"], [47, "mov [rbp+var_10], rcx"], [48, "mov edx, [rdx]"], [49, "mov [rax], edx"], [50, "mov rdx, [rbp+var_18]"], [51, "lea rax, [rdx+4]"], [52, "mov [rbp+var_18], rax"], [53, "mov rax, [rbp+var_10]"], [54, "lea rcx, [rax+4]"], [55, "mov [rbp+var_10], rcx"], [56, "mov edx, [rdx]"], [57, "mov [rax], edx"], [58, "mov rdx, [rbp+var_18]"], [59, "lea rax, [rdx+4]"], [60, "mov [rbp+var_18], rax"], [61, "mov rax, [rbp+var_10]"], [62, "lea rcx, [rax+4]"], [63, "mov [rbp+var_10], rcx"], [64, "mov edx, [rdx]"], [65, "mov [rax], edx"], [66, "mov rax, [rbp+var_148]"], [67, "mov eax, [rax]"], [68, "sub eax, 1"], [69, "mov [rbp+var_4], eax"], [70, "sub [rbp+var_18], 20h "], [71, "jmp loc_46345C"], [72, "mov [rbp+var_8], 0"], [73, "jmp loc_463449"], [74, "mov rax, [rbp+var_18]"], [75, "mov eax, [rax]"], [76, "movzx eax, al"], [77, "mov eax, eax"], [78, "movzx eax, ds:byte_1A01260[rax]"], [79, "movzx eax, al"], [80, "cdqe"], [81, "mov edx, ds:dword_1A02460[rax*4]"], [82, "mov rax, [rbp+var_18]"], [83, "mov eax, [rax]"], [84, "shr eax, 8"], [85, "movzx eax, al"], [86, "mov eax, eax"], [87, "movzx eax, ds:byte_1A01260[rax]"], [88, "movzx eax, al"], [89, "cdqe"], [90, "mov eax, ds:dword_1A02860[rax*4]"], [91, "xor edx, eax"], [92, "mov rax, [rbp+var_18]"], [93, "mov eax, [rax]"], [94, "shr eax, 10h"], [95, "movzx eax, al"], [96, "mov eax, eax"], [97, "movzx eax, ds:byte_1A01260[rax]"], [98, "movzx eax, al"], [99, "cdqe"], [100, "mov eax, ds:dword_1A02C60[rax*4]"], [101, "mov esi, edx"], [102, "xor esi, eax"], [103, "mov rax, [rbp+var_18]"], [104, "mov eax, [rax]"], [105, "shr eax, 18h"], [106, "mov eax, eax"], [107, "movzx eax, ds:byte_1A01260[rax]"], [108, "movzx eax, al"], [109, "cdqe"], [110, "mov ecx, ds:dword_1A03060[rax*4]"], [111, "mov rax, [rbp+var_10]"], [112, "lea rdx, [rax+4]"], [113, "mov [rbp+var_10], rdx"], [114, "xor esi, ecx"], [115, "mov edx, esi"], [116, "mov [rax], edx"], [117, "add [rbp+var_8], 1"], [118, "add [rbp+var_18], 4"], [119, "cmp [rbp+var_8], 3"], [120, "jle loc_4633AA"], [121, "sub [rbp+var_4], 1"], [122, "sub [rbp+var_18], 20h "], [123, "cmp [rbp+var_4], 0"], [124, "jg loc_46339E"], [125, "mov rdx, [rbp+var_18]"], [126, "lea rax, [rdx+4]"], [127, "mov [rbp+var_18], rax"], [128, "mov rax, [rbp+var_10]"], [129, "lea rcx, [rax+4]"], [130, "mov [rbp+var_10], rcx"], [131, "mov edx, [rdx]"], [132, "mov [rax], edx"], [133, "mov rdx, [rbp+var_18]"], [134, "lea rax, [rdx+4]"], [135, "mov [rbp+var_18], rax"], [136, "mov rax, [rbp+var_10]"], [137, "lea rcx, [rax+4]"], [138, "mov [rbp+var_10], rcx"], [139, "mov edx, [rdx]"], [140, "mov [rax], edx"], [141, "mov rdx, [rbp+var_18]"], [142, "lea rax, [rdx+4]"], [143, "mov [rbp+var_18], rax"], [144, "mov rax, [rbp+var_10]"], [145, "lea rcx, [rax+4]"], [146, "mov [rbp+var_10], rcx"], [147, "mov edx, [rdx]"], [148, "mov [rax], edx"], [149, "mov rdx, [rbp+var_18]"], [150, "lea rax, [rdx+4]"], [151, "mov [rbp+var_18], rax"], [152, "mov rax, [rbp+var_10]"], [153, "lea rcx, [rax+4]"], [154, "mov [rbp+var_10], rcx"], [155, "mov edx, [rdx]"], [156, "mov [rax], edx"], [157, "jmp short loc_4634D9"], [158, "nop"], [159, "lea rax, [rbp+var_140]"], [160, "mov rdi, rax"], [161, "call aes_free"], [162, "mov eax, [rbp+var_1C]"], [163, "leave"], [164, "retn"]], "data_dep": [[7, 6], [9, 3], [10, 9], [11, 10], [12, 3], [13, 11], [14, 13], [14, 12], [15, 5], [16, 4], [17, 12], [18, 16], [19, 17], [21, 20], [22, 21], [23, 22], [25, 3], [26, 25], [26, 24], [29, 28], [31, 29], [32, 27], [32, 31], [33, 32], [34, 33], [35, 26], [35, 32], [35, 34], [36, 35], [37, 11], [38, 16], [38, 26], [38, 37], [39, 38], [40, 34], [40, 26], [41, 40], [41, 37], [42, 36], [43, 37], [43, 41], [43, 42], [44, 43], [45, 39], [46, 41], [46, 45], [46, 38], [47, 46], [48, 42], [48, 41], [49, 48], [49, 45], [50, 44], [51, 50], [51, 45], [51, 49], [52, 51], [53, 47], [54, 49], [54, 53], [54, 46], [55, 54], [56, 50], [56, 49], [57, 56], [57, 53], [58, 52], [59, 57], [59, 58], [59, 53], [60, 59], [61, 55], [62, 57], [62, 61], [62, 54], [63, 62], [64, 57], [64, 58], [65, 61], [65, 64], [66, 3], [67, 65], [67, 66], [68, 67], [69, 68], [70, 60], [74, 70], [74, 118], [74, 122], [75, 26], [75, 65], [75, 74], [75, 14], [75, 57], [75, 41], [75, 116], [75, 49], [76, 75], [77, 76], [79, 78], [82, 122], [82, 70], [82, 118], [83, 14], [83, 82], [83, 57], [83, 41], [83, 116], [83, 65], [83, 49], [83, 26], [84, 83], [85, 84], [86, 85], [88, 87], [91, 81], [91, 90], [92, 122], [92, 70], [92, 118], [93, 116], [93, 65], [93, 49], [93, 26], [93, 92], [93, 14], [93, 41], [93, 57], [94, 93], [95, 94], [96, 95], [98, 97], [101, 91], [102, 100], [102, 101], [103, 118], [103, 122], [103, 70], [104, 57], [104, 41], [104, 116], [104, 65], [104, 49], [104, 26], [104, 103], [104, 14], [105, 104], [106, 105], [108, 107], [111, 63], [111, 113], [112, 91], [112, 57], [112, 116], [112, 111], [112, 65], [112, 49], [112, 26], [112, 14], [112, 41], [113, 112], [114, 102], [114, 110], [115, 114], [116, 111], [116, 115], [117, 117], [117, 72], [118, 122], [118, 70], [118, 118], [119, 72], [119, 117], [120, 119], [121, 69], [121, 121], [122, 122], [122, 70], [122, 118], [123, 121], [123, 69], [124, 123], [125, 70], [125, 122], [126, 156], [126, 57], [126, 14], [126, 41], [126, 148], [126, 68], [126, 132], [126, 116], [126, 125], [126, 111], [126, 65], [126, 49], [126, 140], [126, 26], [127, 126], [128, 63], [128, 113], [129, 128], [129, 57], [129, 148], [129, 132], [129, 116], [129, 65], [129, 49], [129, 26], [129, 62], [129, 156], [129, 110], [129, 140], [129, 14], [129, 41], [130, 129], [131, 116], [131, 125], [131, 65], [131, 49], [131, 140], [131, 26], [131, 156], [131, 57], [131, 14], [131, 41], [131, 148], [131, 132], [132, 128], [132, 131], [133, 127], [134, 133], [134, 128], [134, 132], [135, 134], [136, 130], [137, 129], [137, 132], [137, 136], [138, 137], [139, 133], [139, 132], [140, 139], [140, 136], [141, 135], [142, 141], [142, 136], [142, 140], [143, 142], [144, 138], [145, 140], [145, 144], [145, 137], [146, 145], [147, 141], [147, 140], [148, 147], [148, 144], [149, 143], [150, 148], [150, 149], [150, 144], [151, 150], [152, 146], [153, 148], [153, 152], [153, 145], [154, 153], [155, 149], [155, 148], [156, 155], [156, 152], [159, 20], [159, 152], [160, 159], [162, 21], [164, 162]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487_4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.jsonl.gz", "strip_func_name": "aes_setkey_dec", "query": "\n\n\n__int64 __fastcall aes_setkey_dec(__int64 a1, __int64 a2, unsigned int a3)\n{\nint *v3; // rdx\nint *v4; // rax\nint *v5; // rdx\nint *v6; // rax\nint *v7; // rdx\nint *v8; // rax\nint *v9; // rdx\nint *v10; // rax\nint v11; // esi\nint v12; // ecx\nint *v13; // rax\nint *v14; // rdx\nint *v15; // rax\nint *v16; // rdx\nint *v17; // rax\nint *v18; // rdx\nint *v19; // rax\nint *v20; // rdx\nint *v21; // rax\nint v24; // [rsp+20h] [rbp-140h] BYREF\n__int64 v25; // [rsp+28h] [rbp-138h]\nunsigned int v26; // [rsp+144h] [rbp-1Ch]\nint *v27; // [rsp+148h] [rbp-18h]\nint *v28; // [rsp+150h] [rbp-10h]\nint v29; // [rsp+158h] [rbp-8h]\nint v30; // [rsp+15Ch] [rbp-4h]\n\naes_init(&v24);\nv28 = (int *)(a1 + 16);\n*(_QWORD *)(a1 + 8) = a1 + 16;\nv26 = aes_setkey_enc((__int64)&v24, a2, a3);\nif ( !v26 )\n{\n*(_DWORD *)a1 = v24;\nv3 = (int *)(v25 + 16LL * v24);\nv27 = v3 + 1;\nv4 = v28++;\n*v4 = *v3;\nv5 = v27++;\nv6 = v28++;\n*v6 = *v5;\nv7 = v27++;\nv8 = v28++;\n*v8 = *v7;\nv9 = v27++;\nv10 = v28++;\n*v10 = *v9;\nv30 = *(_DWORD *)a1 - 1;\nv27 -= 8;\nwhile ( v30 > 0 )\n{\nv29 = 0;\nwhile ( v29 <= 3 )\n{\nv11 = dword_1A02C60[(unsigned __int8)byte_1A01260[(unsigned __int8)BYTE2(*v27)]] ^ dword_1A02860[(unsigned __int8)byte_1A01260[BYTE1(*v27)]] ^ dword_1A02460[(unsigned __int8)byte_1A01260[(unsigned __int8)*v27]];\nv12 = dword_1A03060[(unsigned __int8)byte_1A01260[HIBYTE(*v27)]];\nv13 = v28++;\n*v13 = v12 ^ v11;\n++v29;\n++v27;\n}\n--v30;\nv27 -= 8;\n}\nv14 = v27++;\nv15 = v28++;\n*v15 = *v14;\nv16 = v27++;\nv17 = v28++;\n*v17 = *v16;\nv18 = v27++;\nv19 = v28++;\n*v19 = *v18;\nv20 = v27++;\nv21 = v28++;\n*v21 = *v20;\n}\naes_free(&v24);\nreturn v26;\n}\n\n\n\nQ:[a3,a1,a2,v24,v27,v28,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'keysize', 'a1': 'ctx', 'a2': 'key', 'v24': 'cty', 'v27': 'SK', 'v28': 'RK'}"}
atcab_bin2hex
11d42d58f8783c9d414fd3ac05c1e7cfc511bc8aca265d5d1e3cf66df053dd09
wirenboard
atecc-util
NA
ATCA_STATUS atcab_bin2hex(const uint8_t* binary, int bin_len, char* ascii_hex, int* ascii_hex_len) { return atcab_bin2hex_(binary, bin_len, ascii_hex, ascii_hex_len, true); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_411774", "function_addr": 4265844, "binary_name": "11d42d58f8783c9d414fd3ac05c1e7cfc511bc8aca265d5d1e3cf66df053dd09.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov [rbp+var_20], rcx"], [7, "mov rcx, [rbp+var_20]"], [8, "mov rdx, [rbp+var_18]"], [9, "mov esi, [rbp+var_C]"], [10, "mov rax, [rbp+var_8]"], [11, "mov r8d, 1"], [12, "mov rdi, rax"], [13, "call sub_4117AA"], [14, "leave"], [15, "retn"]], "data_dep": [[7, 6], [8, 5], [9, 4], [10, 3], [12, 10], [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/11d42d58f8783c9d414fd3ac05c1e7cfc511bc8aca265d5d1e3cf66df053dd09_11d42d58f8783c9d414fd3ac05c1e7cfc511bc8aca265d5d1e3cf66df053dd09.jsonl.gz", "strip_func_name": "sub_411774", "query": "\n\n\n__int64 __fastcall sub_411774(__int64 a1, unsigned int a2, __int64 a3, __int64 a4)\n{\nreturn sub_4117AA(a1, a2, a3, a4, 1LL);\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_411774,sub_4117AA,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'ascii_hex', 'a4': 'ascii_hex_len', 'a1': 'binary', 'a2': 'bin_len', 'sub_411774': 'atcab_bin2hex', 'sub_4117AA': 'atcab_bin2hex_'}"}
list_to_sdl
e3cf12dc8282db536254dfd10adbf01691aabbcfd3b51354ea281f5b59a7391b
ohler55
agoo-c
NA
static agooText list_to_sdl(agooText text, gqlValue value, int indent, int depth) { int i = indent * depth; int i2 = i + indent; int d2 = depth + 1; gqlLink link; if (0 < indent) { i++; // for \n i2++; } if ((int)sizeof(spaces) <= i) { i2 = sizeof(spaces) - 1; i = i2 - indent; } text = agoo_text_append(text, "[", 1); for (link = value->members; NULL != link; link = link->next) { if (0 < i2) { text = agoo_text_append(text, spaces, i2); } text = link->value->type->to_sdl(text, link->value, indent, d2); if (NULL != link->next) { text = agoo_text_append(text, ",", 1); } } if (0 < indent) { text = agoo_text_append(text, spaces, i); } text = agoo_text_append(text, "]", 1); return text; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B1CF", "function_addr": 4239823, "binary_name": "e3cf12dc8282db536254dfd10adbf01691aabbcfd3b51354ea281f5b59a7391b.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_34], edx"], [6, "mov [rbp+var_38], ecx"], [7, "mov eax, [rbp+var_34]"], [8, "imul eax, [rbp+var_38]"], [9, "mov [rbp+var_4], eax"], [10, "mov edx, [rbp+var_4]"], [11, "mov eax, [rbp+var_34]"], [12, "add eax, edx"], [13, "mov [rbp+var_8], eax"], [14, "mov eax, [rbp+var_38]"], [15, "add eax, 1"], [16, "mov [rbp+var_14], eax"], [17, "cmp [rbp+var_34], 0"], [18, "jle short loc_40B211"], [19, "add [rbp+var_4], 1"], [20, "add [rbp+var_8], 1"], [21, "cmp [rbp+var_4], 0FFh"], [22, "jle short loc_40B22A"], [23, "mov [rbp+var_8], 0FFh"], [24, "mov eax, [rbp+var_8]"], [25, "sub eax, [rbp+var_34]"], [26, "mov [rbp+var_4], eax"], [27, "mov rax, [rbp+var_28]"], [28, "mov edx, 1"], [29, "mov esi, offset asc_42C2CB"], [30, "mov rdi, rax"], [31, "call sub_403862"], [32, "mov [rbp+var_28], rax"], [33, "mov rax, [rbp+var_30]"], [34, "mov rax, [rax+8]"], [35, "mov [rbp+var_10], rax"], [36, "jmp short loc_40B2CC"], [37, "cmp [rbp+var_8], 0"], [38, "jle short loc_40B270"], [39, "mov edx, [rbp+var_8]"], [40, "mov rax, [rbp+var_28]"], [41, "mov esi, offset unk_42C060"], [42, "mov rdi, rax"], [43, "call sub_403862"], [44, "mov [rbp+var_28], rax"], [45, "mov rax, [rbp+var_10]"], [46, "mov rax, [rax+10h]"], [47, "mov rax, [rax]"], [48, "mov r8, [rax+28h]"], [49, "mov rax, [rbp+var_10]"], [50, "mov rsi, [rax+10h]"], [51, "mov ecx, [rbp+var_14]"], [52, "mov edx, [rbp+var_34]"], [53, "mov rax, [rbp+var_28]"], [54, "mov rdi, rax"], [55, "call r8"], [56, "mov [rbp+var_28], rax"], [57, "mov rax, [rbp+var_10]"], [58, "mov rax, [rax]"], [59, "test rax, rax"], [60, "jz short loc_40B2C1"], [61, "mov rax, [rbp+var_28]"], [62, "mov edx, 1"], [63, "mov esi, offset asc_42C2CD"], [64, "mov rdi, rax"], [65, "call sub_403862"], [66, "mov [rbp+var_28], rax"], [67, "mov rax, [rbp+var_10]"], [68, "mov rax, [rax]"], [69, "mov [rbp+var_10], rax"], [70, "cmp [rbp+var_10], 0"], [71, "jnz loc_40B252"], [72, "cmp [rbp+var_34], 0"], [73, "jle short loc_40B2F5"], [74, "mov edx, [rbp+var_4]"], [75, "mov rax, [rbp+var_28]"], [76, "mov esi, offset unk_42C060"], [77, "mov rdi, rax"], [78, "call sub_403862"], [79, "mov [rbp+var_28], rax"], [80, "mov rax, [rbp+var_28]"], [81, "mov edx, 1"], [82, "mov esi, offset asc_42C2CF"], [83, "mov rdi, rax"], [84, "call sub_403862"], [85, "mov [rbp+var_28], rax"], [86, "mov rax, [rbp+var_28]"], [87, "leave"], [88, "retn"]], "data_dep": [[7, 5], [8, 6], [8, 7], [9, 8], [10, 9], [11, 5], [12, 10], [12, 11], [13, 12], [14, 6], [15, 14], [16, 15], [17, 5], [18, 17], [19, 9], [20, 13], [21, 9], [21, 19], [22, 21], [24, 23], [25, 24], [25, 5], [26, 25], [27, 3], [30, 27], [32, 31], [33, 4], [34, 33], [35, 34], [37, 23], [37, 20], [37, 13], [38, 37], [39, 23], [39, 20], [39, 13], [40, 56], [40, 32], [40, 66], [42, 40], [44, 43], [45, 69], [45, 35], [46, 45], [47, 46], [48, 47], [49, 35], [49, 69], [50, 49], [51, 16], [52, 5], [53, 32], [53, 66], [53, 56], [53, 44], [54, 53], [55, 48], [56, 55], [57, 35], [57, 69], [58, 57], [59, 58], [60, 59], [61, 56], [64, 61], [66, 65], [67, 35], [67, 69], [68, 67], [69, 68], [70, 35], [70, 69], [71, 70], [72, 5], [73, 72], [74, 9], [74, 26], [74, 19], [75, 32], [75, 66], [75, 56], [77, 75], [79, 78], [80, 56], [80, 32], [80, 66], [80, 79], [83, 80], [85, 84], [86, 85], [88, 86]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/e3cf12dc8282db536254dfd10adbf01691aabbcfd3b51354ea281f5b59a7391b_e3cf12dc8282db536254dfd10adbf01691aabbcfd3b51354ea281f5b59a7391b.jsonl.gz", "strip_func_name": "sub_40B1CF", "query": "\n\n\n_QWORD *__fastcall sub_40B1CF(_QWORD *a1, __int64 a2, int a3, int a4)\n{\n_QWORD *v6; // [rsp+18h] [rbp-28h]\nunsigned int v7; // [rsp+2Ch] [rbp-14h]\n__int64 **i; // [rsp+30h] [rbp-10h]\nint v9; // [rsp+38h] [rbp-8h]\nint v10; // [rsp+3Ch] [rbp-4h]\n\nv10 = a4 * a3;\nv9 = a4 * a3 + a3;\nv7 = a4 + 1;\nif ( a3 > 0 )\n{\n++v10;\n++v9;\n}\nif ( v10 > 255 )\n{\nv9 = 255;\nv10 = 255 - a3;\n}\nv6 = sub_403862(a1, \"[\", 1);\nfor ( i = *(__int64 ***)(a2 + 8); i; i = (__int64 **)*i )\n{\nif ( v9 > 0 )\nv6 = sub_403862(\nv6,\n\"\\n\"\n\" \"\n\" \"\n\" null\",\nv9);\nv6 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int64 *, _QWORD, _QWORD))(*i[2] + 40))(\nv6,\ni[2],\n(unsigned int)a3,\nv7);\nif ( *i )\nv6 = sub_403862(v6, \",\", 1);\n}\nif ( a3 > 0 )\nv6 = sub_403862(\nv6,\n\"\\n\"\n\" \"\n\" \"\n\" null\",\nv10);\nreturn sub_403862(v6, \"]\", 1);\n}\n\n\n\nQ:[a3,a4,a1,a2,v6,v7,i,v9,sub_40B1CF,sub_403862,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'indent', 'a4': 'depth', 'a1': 'text', 'a2': 'value', 'v6': 'texta', 'v7': 'd2', 'i': 'link', 'v9': 'i2', 'sub_40B1CF': 'list_to_sdl', 'sub_403862': 'agoo_text_append'}"}
smrlog_purge_after
5a5d0e7ab10776c2ee195a68f95eb1a59218e176cb1db1ee775d6cab0599c869
naver
nbase-arc
NA
int smrlog_purge_after (smrLog * handle, long long seq) { int ret; long long target_seq; long long *dseqs = NULL; int dseqs_size = 0; long long *mseqs = NULL; int mseqs_size = 0; logDev *mem; logDev *disk; int i, j; int last_mem_idx, last_disk_idx; errno = 0; if (handle == NULL || seq < 0) { errno = EINVAL; return -1; } target_seq = seq_round_up (seq); mem = handle->mem; disk = handle->disk; if (mem != NULL) { ret = mem->get_seqs (mem, &mseqs, &mseqs_size); if (ret < 0) { ERRNO_POINT (); goto error; } } ret = disk->get_seqs (disk, &dseqs, &dseqs_size); if (ret < 0) { ERRNO_POINT (); goto error; } for (i = mseqs_size - 1, j = dseqs_size - 1; i >= 0; i--) { if (mseqs[i] < target_seq) { break; } /* * zig-zag purging to meet the constraints * we purge log in disk, mem order */ if (j >= 0 && dseqs[j] == mseqs[i]) { ret = disk->purge (disk, dseqs[j]); if (ret < 0) { ERRNO_POINT (); goto error; } j--; } ret = mem->purge (mem, mseqs[i]); if (ret < 0) { ERRNO_POINT (); goto error; } } last_mem_idx = i; for (i = j; i >= 0; i--) { if (dseqs[i] < target_seq) { break; } ret = disk->purge (disk, dseqs[i]); if (ret < 0) { ERRNO_POINT (); goto error; } } last_disk_idx = i; // truncate if (seq < target_seq) { long long base_seq = seq_round_down (seq); if (last_disk_idx >= 0 && dseqs[last_disk_idx] == base_seq) { ret = dev_truncate (disk, base_seq, seq); if (ret < 0) { if (errno != ERRNO_OFFSET_EXCEED) { ERRNO_POINT (); goto error; } } } if (last_mem_idx >= 0 && mseqs[last_mem_idx] == base_seq) { assert (mem != NULL); ret = dev_truncate (mem, base_seq, seq); if (ret < 0) { ERRNO_POINT (); goto error; } } } // sync needed if log resides only in disk if (last_disk_idx >= 0 && (mem != NULL && last_mem_idx < 0)) { smrLogAddr *src_addr = NULL; int src_off; smrLogAddr *dest_addr = NULL; src_addr = disk->get_mmap (disk, dseqs[last_disk_idx], 1, 0); if (src_addr == NULL) { ERRNO_POINT (); goto error; } src_off = addr_offset (src_addr); if (src_off < 0) { ERRNO_POINT (); goto error; } dest_addr = mem->get_mmap (mem, dseqs[last_disk_idx], 0, 1); if (dest_addr == NULL) { disk->munmap (disk, src_addr); ERRNO_POINT (); goto error; } ret = smrlog_sync_maps (handle, src_addr, src_off, dest_addr); disk->munmap (disk, src_addr); mem->munmap (mem, dest_addr); if (ret < 0) { ERRNO_POINT (); goto error; } } if (mseqs != NULL) { free (mseqs); } if (dseqs != NULL) { free (dseqs); } return 0; error: if (mseqs != NULL) { free (mseqs); } if (dseqs != NULL) { free (dseqs); } return -1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408977", "function_addr": 4229495, "binary_name": "5a5d0e7ab10776c2ee195a68f95eb1a59218e176cb1db1ee775d6cab0599c869.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 88h"], [4, "mov [rbp+var_88], rdi"], [5, "mov [rbp+var_90], rsi"], [6, "mov [rbp+var_68], 0"], [7, "mov [rbp+var_6C], 0"], [8, "mov [rbp+ptr], 0"], [9, "mov [rbp+var_7C], 0"], [10, "call ___errno_location"], [11, "mov dword ptr [rax], 0"], [12, "cmp [rbp+var_88], 0"], [13, "jz short loc_4089CE"], [14, "cmp [rbp+var_90], 0"], [15, "jns short loc_4089E3"], [16, "call ___errno_location"], [17, "mov dword ptr [rax], 16h"], [18, "mov eax, 0FFFFFFFFh"], [19, "jmp loc_40901D"], [20, "mov rax, [rbp+var_90]"], [21, "add rax, 4000000h"], [22, "and rax, 0FFFFFFFFFC000000h"], [23, "mov [rbp+var_20], rax"], [24, "mov rax, [rbp+var_88]"], [25, "mov rax, [rax+8]"], [26, "mov [rbp+var_28], rax"], [27, "mov rax, [rbp+var_88]"], [28, "mov rax, [rax+10h]"], [29, "mov [rbp+var_30], rax"], [30, "cmp [rbp+var_28], 0"], [31, "jz short loc_408A74"], [32, "mov rax, [rbp+var_28]"], [33, "mov r8, [rax]"], [34, "lea rdx, [rbp+var_7C]"], [35, "lea rcx, [rbp+ptr]"], [36, "mov rax, [rbp+var_28]"], [37, "mov rsi, rcx"], [38, "mov rdi, rax"], [39, "call r8"], [40, "mov [rbp+var_34], eax"], [41, "cmp [rbp+var_34], 0"], [42, "jns short loc_408A74"], [43, "call ___errno_location"], [44, "mov eax, [rax]"], [45, "test eax, eax"], [46, "jns short loc_408A58"], [47, "call ___errno_location"], [48, "mov ebx, [rax]"], [49, "jmp short loc_408A68"], [50, "call ___errno_location"], [51, "mov eax, [rax]"], [52, "mov edx, 0FE328360h"], [53, "mov ebx, edx"], [54, "sub ebx, eax"], [55, "call ___errno_location"], [56, "mov [rax], ebx"], [57, "jmp loc_408FEE"], [58, "mov rax, [rbp+var_30]"], [59, "mov r8, [rax]"], [60, "lea rdx, [rbp+var_6C]"], [61, "lea rcx, [rbp+var_68]"], [62, "mov rax, [rbp+var_30]"], [63, "mov rsi, rcx"], [64, "mov rdi, rax"], [65, "call r8"], [66, "mov [rbp+var_34], eax"], [67, "cmp [rbp+var_34], 0"], [68, "jns short loc_408AC9"], [69, "call ___errno_location"], [70, "mov eax, [rax]"], [71, "test eax, eax"], [72, "jns short loc_408AAD"], [73, "call ___errno_location"], [74, "mov ebx, [rax]"], [75, "jmp short loc_408ABD"], [76, "call ___errno_location"], [77, "mov eax, [rax]"], [78, "mov edx, 0FE326420h"], [79, "mov ebx, edx"], [80, "sub ebx, eax"], [81, "call ___errno_location"], [82, "mov [rax], ebx"], [83, "jmp loc_408FEE"], [84, "mov eax, [rbp+var_7C]"], [85, "sub eax, 1"], [86, "mov [rbp+var_14], eax"], [87, "mov eax, [rbp+var_6C]"], [88, "sub eax, 1"], [89, "mov [rbp+var_18], eax"], [90, "jmp loc_408BFA"], [91, "mov rdx, [rbp+ptr]"], [92, "mov eax, [rbp+var_14]"], [93, "cdqe"], [94, "shl rax, 3"], [95, "add rax, rdx"], [96, "mov rax, [rax]"], [97, "cmp [rbp+var_20], rax"], [98, "jg loc_408C06"], [99, "cmp [rbp+var_18], 0"], [100, "js loc_408B96"], [101, "mov rdx, [rbp+var_68]"], [102, "mov eax, [rbp+var_18]"], [103, "cdqe"], [104, "shl rax, 3"], [105, "add rax, rdx"], [106, "mov rdx, [rax]"], [107, "mov rcx, [rbp+ptr]"], [108, "mov eax, [rbp+var_14]"], [109, "cdqe"], [110, "shl rax, 3"], [111, "add rax, rcx"], [112, "mov rax, [rax]"], [113, "cmp rdx, rax"], [114, "jnz short loc_408B96"], [115, "mov rax, [rbp+var_30]"], [116, "mov rcx, [rax+18h]"], [117, "mov rdx, [rbp+var_68]"], [118, "mov eax, [rbp+var_18]"], [119, "cdqe"], [120, "shl rax, 3"], [121, "add rax, rdx"], [122, "mov rdx, [rax]"], [123, "mov rax, [rbp+var_30]"], [124, "mov rsi, rdx"], [125, "mov rdi, rax"], [126, "call rcx"], [127, "mov [rbp+var_34], eax"], [128, "cmp [rbp+var_34], 0"], [129, "jns short loc_408B92"], [130, "call ___errno_location"], [131, "mov eax, [rax]"], [132, "test eax, eax"], [133, "jns short loc_408B76"], [134, "call ___errno_location"], [135, "mov ebx, [rax]"], [136, "jmp short loc_408B86"], [137, "call ___errno_location"], [138, "mov eax, [rax]"], [139, "mov edx, 0FE321600h"], [140, "mov ebx, edx"], [141, "sub ebx, eax"], [142, "call ___errno_location"], [143, "mov [rax], ebx"], [144, "jmp loc_408FEE"], [145, "sub [rbp+var_18], 1"], [146, "mov rax, [rbp+var_28]"], [147, "mov rcx, [rax+18h]"], [148, "mov rdx, [rbp+ptr]"], [149, "mov eax, [rbp+var_14]"], [150, "cdqe"], [151, "shl rax, 3"], [152, "add rax, rdx"], [153, "mov rdx, [rax]"], [154, "mov rax, [rbp+var_28]"], [155, "mov rsi, rdx"], [156, "mov rdi, rax"], [157, "call rcx"], [158, "mov [rbp+var_34], eax"], [159, "cmp [rbp+var_34], 0"], [160, "jns short loc_408BF6"], [161, "call ___errno_location"], [162, "mov eax, [rax]"], [163, "test eax, eax"], [164, "jns short loc_408BDA"], [165, "call ___errno_location"], [166, "mov ebx, [rax]"], [167, "jmp short loc_408BEA"], [168, "call ___errno_location"], [169, "mov eax, [rax]"], [170, "mov edx, 0FE31F2D8h"], [171, "mov ebx, edx"], [172, "sub ebx, eax"], [173, "call ___errno_location"], [174, "mov [rax], ebx"], [175, "jmp loc_408FEE"], [176, "sub [rbp+var_14], 1"], [177, "cmp [rbp+var_14], 0"], [178, "jns loc_408AE0"], [179, "jmp short loc_408C07"], [180, "nop"], [181, "mov eax, [rbp+var_14]"], [182, "mov [rbp+var_38], eax"], [183, "mov eax, [rbp+var_18]"], [184, "mov [rbp+var_14], eax"], [185, "jmp short loc_408C92"], [186, "mov rdx, [rbp+var_68]"], [187, "mov eax, [rbp+var_14]"], [188, "cdqe"], [189, "shl rax, 3"], [190, "add rax, rdx"], [191, "mov rax, [rax]"], [192, "cmp [rbp+var_20], rax"], [193, "jg short loc_408C9E"], [194, "mov rax, [rbp+var_30]"], [195, "mov rcx, [rax+18h]"], [196, "mov rdx, [rbp+var_68]"], [197, "mov eax, [rbp+var_14]"], [198, "cdqe"], [199, "shl rax, 3"], [200, "add rax, rdx"], [201, "mov rdx, [rax]"], [202, "mov rax, [rbp+var_30]"], [203, "mov rsi, rdx"], [204, "mov rdi, rax"], [205, "call rcx"], [206, "mov [rbp+var_34], eax"], [207, "cmp [rbp+var_34], 0"], [208, "jns short loc_408C8E"], [209, "call ___errno_location"], [210, "mov eax, [rax]"], [211, "test eax, eax"], [212, "jns short loc_408C72"], [213, "call ___errno_location"], [214, "mov ebx, [rax]"], [215, "jmp short loc_408C82"], [216, "call ___errno_location"], [217, "mov eax, [rax]"], [218, "mov edx, 0FE31B840h"], [219, "mov ebx, edx"], [220, "sub ebx, eax"], [221, "call ___errno_location"], [222, "mov [rax], ebx"], [223, "jmp loc_408FEE"], [224, "sub [rbp+var_14], 1"], [225, "cmp [rbp+var_14], 0"], [226, "jns loc_408C15"], [227, "jmp short loc_408C9F"], [228, "nop"], [229, "mov eax, [rbp+var_14]"], [230, "mov [rbp+var_3C], eax"], [231, "mov rax, [rbp+var_90]"], [232, "cmp rax, [rbp+var_20]"], [233, "jge loc_408DDD"], [234, "mov rax, [rbp+var_90]"], [235, "and rax, 0FFFFFFFFFC000000h"], [236, "mov [rbp+var_48], rax"], [237, "cmp [rbp+var_3C], 0"], [238, "js short loc_408D47"], [239, "mov rdx, [rbp+var_68]"], [240, "mov eax, [rbp+var_3C]"], [241, "cdqe"], [242, "shl rax, 3"], [243, "add rax, rdx"], [244, "mov rax, [rax]"], [245, "cmp [rbp+var_48], rax"], [246, "jnz short loc_408D47"], [247, "mov rdx, [rbp+var_90]"], [248, "mov rcx, [rbp+var_48]"], [249, "mov rax, [rbp+var_30]"], [250, "mov rsi, rcx"], [251, "mov rdi, rax"], [252, "call sub_4060E2"], [253, "mov [rbp+var_34], eax"], [254, "cmp [rbp+var_34], 0"], [255, "jns short loc_408D47"], [256, "call ___errno_location"], [257, "mov eax, [rax]"], [258, "cmp eax, 0C4FDC0C8h"], [259, "jz short loc_408D47"], [260, "call ___errno_location"], [261, "mov eax, [rax]"], [262, "test eax, eax"], [263, "jns short loc_408D2B"], [264, "call ___errno_location"], [265, "mov ebx, [rax]"], [266, "jmp short loc_408D3B"], [267, "call ___errno_location"], [268, "mov eax, [rax]"], [269, "mov edx, 0FE3171F0h"], [270, "mov ebx, edx"], [271, "sub ebx, eax"], [272, "call ___errno_location"], [273, "mov [rax], ebx"], [274, "jmp loc_408FEE"], [275, "cmp [rbp+var_38], 0"], [276, "js loc_408DDD"], [277, "mov rdx, [rbp+ptr]"], [278, "mov eax, [rbp+var_38]"], [279, "cdqe"], [280, "shl rax, 3"], [281, "add rax, rdx"], [282, "mov rax, [rax]"], [283, "cmp [rbp+var_48], rax"], [284, "jnz short loc_408DDD"], [285, "cmp [rbp+var_28], 0"], [286, "jnz short loc_408D8A"], [287, "mov ecx, offset aSmrlogPurgeAft"], [288, "mov edx, 141h"], [289, "mov esi, offset aLogLogC"], [290, "mov edi, offset aMemNull"], [291, "call ___assert_fail"], [292, "mov rdx, [rbp+var_90]"], [293, "mov rcx, [rbp+var_48]"], [294, "mov rax, [rbp+var_28]"], [295, "mov rsi, rcx"], [296, "mov rdi, rax"], [297, "call sub_4060E2"], [298, "mov [rbp+var_34], eax"], [299, "cmp [rbp+var_34], 0"], [300, "jns short loc_408DDD"], [301, "call ___errno_location"], [302, "mov eax, [rax]"], [303, "test eax, eax"], [304, "jns short loc_408DC1"], [305, "call ___errno_location"], [306, "mov ebx, [rax]"], [307, "jmp short loc_408DD1"], [308, "call ___errno_location"], [309, "mov eax, [rax]"], [310, "mov edx, 0FE3146F8h"], [311, "mov ebx, edx"], [312, "sub ebx, eax"], [313, "call ___errno_location"], [314, "mov [rax], ebx"], [315, "jmp loc_408FEE"], [316, "cmp [rbp+var_3C], 0"], [317, "js loc_408FBD"], [318, "cmp [rbp+var_28], 0"], [319, "jz loc_408FBD"], [320, "cmp [rbp+var_38], 0"], [321, "jns loc_408FBD"], [322, "mov [rbp+var_50], 0"], [323, "mov [rbp+var_58], 0"], [324, "mov rax, [rbp+var_30]"], [325, "mov r8, [rax+28h]"], [326, "mov rdx, [rbp+var_68]"], [327, "mov eax, [rbp+var_3C]"], [328, "cdqe"], [329, "shl rax, 3"], [330, "add rax, rdx"], [331, "mov rsi, [rax]"], [332, "mov rax, [rbp+var_30]"], [333, "mov ecx, 0"], [334, "mov edx, 1"], [335, "mov rdi, rax"], [336, "call r8"], [337, "mov [rbp+var_50], rax"], [338, "cmp [rbp+var_50], 0"], [339, "jnz short loc_408E76"], [340, "call ___errno_location"], [341, "mov eax, [rax]"], [342, "test eax, eax"], [343, "jns short loc_408E5A"], [344, "call ___errno_location"], [345, "mov ebx, [rax]"], [346, "jmp short loc_408E6A"], [347, "call ___errno_location"], [348, "mov eax, [rax]"], [349, "mov edx, 0FE310878h"], [350, "mov ebx, edx"], [351, "sub ebx, eax"], [352, "call ___errno_location"], [353, "mov [rax], ebx"], [354, "jmp loc_408FEE"], [355, "mov rax, [rbp+var_50]"], [356, "mov rdi, rax"], [357, "call sub_405E3D"], [358, "mov [rbp+var_5C], eax"], [359, "cmp [rbp+var_5C], 0"], [360, "jns short loc_408EBB"], [361, "call ___errno_location"], [362, "mov eax, [rax]"], [363, "test eax, eax"], [364, "jns short loc_408E9F"], [365, "call ___errno_location"], [366, "mov ebx, [rax]"], [367, "jmp short loc_408EAF"], [368, "call ___errno_location"], [369, "mov eax, [rax]"], [370, "mov edx, 0FE30F108h"], [371, "mov ebx, edx"], [372, "sub ebx, eax"], [373, "call ___errno_location"], [374, "mov [rax], ebx"], [375, "jmp loc_408FEE"], [376, "mov rax, [rbp+var_28]"], [377, "mov r8, [rax+28h]"], [378, "mov rdx, [rbp+var_68]"], [379, "mov eax, [rbp+var_3C]"], [380, "cdqe"], [381, "shl rax, 3"], [382, "add rax, rdx"], [383, "mov rsi, [rax]"], [384, "mov rax, [rbp+var_28]"], [385, "mov ecx, 1"], [386, "mov edx, 0"], [387, "mov rdi, rax"], [388, "call r8"], [389, "mov [rbp+var_58], rax"], [390, "cmp [rbp+var_58], 0"], [391, "jnz short loc_408F3D"], [392, "mov rax, [rbp+var_30]"], [393, "mov rcx, [rax+30h]"], [394, "mov rdx, [rbp+var_50]"], [395, "mov rax, [rbp+var_30]"], [396, "mov rsi, rdx"], [397, "mov rdi, rax"], [398, "call rcx"], [399, "call ___errno_location"], [400, "mov eax, [rax]"], [401, "test eax, eax"], [402, "jns short loc_408F21"], [403, "call ___errno_location"], [404, "mov ebx, [rax]"], [405, "jmp short loc_408F31"], [406, "call ___errno_location"], [407, "mov eax, [rax]"], [408, "mov edx, 0FE30D5B0h"], [409, "mov ebx, edx"], [410, "sub ebx, eax"], [411, "call ___errno_location"], [412, "mov [rax], ebx"], [413, "jmp loc_408FEE"], [414, "mov rcx, [rbp+var_58]"], [415, "mov edx, [rbp+var_5C]"], [416, "mov rsi, [rbp+var_50]"], [417, "mov rax, [rbp+var_88]"], [418, "mov rdi, rax"], [419, "call sub_406279"], [420, "mov [rbp+var_34], eax"], [421, "mov rax, [rbp+var_30]"], [422, "mov rcx, [rax+30h]"], [423, "mov rdx, [rbp+var_50]"], [424, "mov rax, [rbp+var_30]"], [425, "mov rsi, rdx"], [426, "mov rdi, rax"], [427, "call rcx"], [428, "mov rax, [rbp+var_28]"], [429, "mov rcx, [rax+30h]"], [430, "mov rdx, [rbp+var_58]"], [431, "mov rax, [rbp+var_28]"], [432, "mov rsi, rdx"], [433, "mov rdi, rax"], [434, "call rcx"], [435, "cmp [rbp+var_34], 0"], [436, "jns short loc_408FBD"], [437, "call ___errno_location"], [438, "mov eax, [rax]"], [439, "test eax, eax"], [440, "jns short loc_408FA4"], [441, "call ___errno_location"], [442, "mov ebx, [rax]"], [443, "jmp short loc_408FB4"], [444, "call ___errno_location"], [445, "mov eax, [rax]"], [446, "mov edx, 0FE30B288h"], [447, "mov ebx, edx"], [448, "sub ebx, eax"], [449, "call ___errno_location"], [450, "mov [rax], ebx"], [451, "jmp short loc_408FEE"], [452, "mov rax, [rbp+ptr]"], [453, "test rax, rax"], [454, "jz short loc_408FD2"], [455, "mov rax, [rbp+ptr]"], [456, "mov rdi, rax"], [457, "call _free"], [458, "mov rax, [rbp+var_68]"], [459, "test rax, rax"], [460, "jz short loc_408FE7"], [461, "mov rax, [rbp+var_68]"], [462, "mov rdi, rax"], [463, "call _free"], [464, "mov eax, 0"], [465, "jmp short loc_40901D"], [466, "mov rax, [rbp+ptr]"], [467, "test rax, rax"], [468, "jz short loc_409003"], [469, "mov rax, [rbp+ptr]"], [470, "mov rdi, rax"], [471, "call _free"], [472, "mov rax, [rbp+var_68]"], [473, "test rax, rax"], [474, "jz short loc_409018"], [475, "mov rax, [rbp+var_68]"], [476, "mov rdi, rax"], [477, "call _free"], [478, "mov eax, 0FFFFFFFFh"], [479, "mov rbx, [rbp+var_8]"], [480, "leave"], [481, "retn"]], "data_dep": [[11, 10], [12, 4], [13, 12], [14, 5], [15, 14], [17, 16], [20, 5], [21, 20], [22, 21], [23, 22], [24, 4], [25, 11], [25, 24], [26, 25], [27, 4], [28, 27], [28, 11], [29, 28], [30, 26], [31, 30], [32, 26], [33, 32], [33, 11], [34, 9], [35, 8], [36, 26], [37, 35], [38, 36], [39, 33], [40, 39], [41, 40], [42, 41], [44, 11], [44, 43], [45, 44], [46, 45], [48, 11], [48, 47], [51, 50], [51, 11], [53, 52], [54, 51], [54, 53], [56, 48], [56, 55], [56, 54], [58, 29], [59, 11], [59, 58], [60, 7], [60, 34], [61, 6], [61, 35], [62, 29], [63, 61], [64, 62], [65, 59], [66, 65], [67, 66], [68, 67], [70, 11], [70, 69], [71, 70], [72, 71], [74, 73], [74, 11], [77, 76], [77, 11], [79, 78], [80, 79], [80, 77], [82, 74], [82, 81], [82, 80], [84, 9], [85, 84], [86, 85], [87, 7], [88, 87], [89, 88], [91, 8], [92, 176], [92, 86], [94, 92], [95, 91], [95, 94], [96, 95], [96, 11], [97, 23], [97, 96], [98, 97], [99, 89], [99, 145], [100, 99], [101, 6], [102, 145], [102, 89], [104, 102], [105, 104], [105, 101], [106, 105], [106, 11], [107, 8], [108, 176], [108, 86], [110, 108], [111, 110], [111, 107], [112, 111], [112, 11], [113, 112], [113, 106], [114, 113], [115, 29], [116, 11], [116, 115], [117, 6], [118, 89], [118, 145], [120, 118], [121, 117], [121, 120], [122, 11], [122, 121], [123, 29], [124, 122], [125, 123], [126, 116], [127, 126], [128, 127], [129, 128], [131, 130], [131, 11], [132, 131], [133, 132], [135, 11], [135, 134], [138, 137], [138, 11], [140, 139], [141, 138], [141, 140], [143, 141], [143, 135], [143, 142], [145, 89], [145, 145], [146, 26], [147, 146], [147, 11], [148, 8], [149, 86], [149, 176], [151, 149], [152, 151], [152, 148], [153, 152], [153, 11], [154, 26], [155, 153], [156, 154], [157, 147], [158, 157], [159, 158], [160, 159], [162, 161], [162, 11], [163, 162], [164, 163], [166, 165], [166, 11], [169, 11], [169, 168], [171, 170], [172, 171], [172, 169], [174, 166], [174, 173], [174, 172], [176, 86], [176, 176], [177, 176], [177, 86], [178, 177], [181, 176], [181, 86], [182, 181], [183, 89], [183, 145], [184, 183], [186, 6], [187, 184], [187, 224], [189, 187], [190, 189], [190, 186], [191, 190], [191, 11], [192, 191], [192, 23], [193, 192], [194, 29], [195, 11], [195, 194], [196, 6], [197, 224], [197, 184], [199, 197], [200, 196], [200, 199], [201, 11], [201, 200], [202, 29], [203, 201], [204, 202], [205, 195], [206, 205], [207, 206], [208, 207], [210, 209], [210, 11], [211, 210], [212, 211], [214, 11], [214, 213], [217, 216], [217, 11], [219, 218], [220, 217], [220, 219], [222, 214], [222, 221], [222, 220], [224, 224], [224, 184], [225, 184], [225, 224], [226, 225], [229, 184], [229, 224], [230, 229], [231, 5], [232, 23], [232, 231], [233, 232], [234, 5], [235, 234], [236, 235], [237, 230], [238, 237], [239, 6], [240, 230], [242, 240], [243, 242], [243, 239], [244, 11], [244, 243], [245, 236], [245, 244], [246, 245], [247, 5], [248, 236], [249, 29], [250, 248], [251, 249], [253, 252], [254, 253], [255, 254], [257, 256], [257, 11], [258, 257], [259, 258], [261, 11], [261, 260], [262, 261], [263, 262], [265, 264], [265, 11], [268, 11], [268, 267], [270, 269], [271, 270], [271, 268], [273, 265], [273, 272], [273, 271], [275, 182], [276, 275], [277, 8], [278, 182], [280, 278], [281, 277], [281, 280], [282, 281], [282, 11], [283, 282], [283, 236], [284, 283], [285, 26], [286, 285], [292, 5], [293, 236], [294, 26], [295, 293], [296, 294], [298, 297], [299, 298], [300, 299], [302, 301], [302, 11], [303, 302], [304, 303], [306, 305], [306, 11], [309, 308], [309, 11], [311, 310], [312, 309], [312, 311], [314, 306], [314, 313], [314, 312], [316, 230], [317, 316], [318, 26], [319, 318], [320, 182], [321, 320], [324, 29], [325, 324], [325, 11], [326, 6], [327, 230], [329, 327], [330, 329], [330, 326], [331, 330], [331, 11], [332, 29], [335, 332], [336, 325], [337, 336], [338, 337], [339, 338], [341, 11], [341, 340], [342, 341], [343, 342], [345, 11], [345, 344], [348, 11], [348, 347], [350, 349], [351, 348], [351, 350], [353, 351], [353, 345], [353, 352], [355, 337], [356, 355], [358, 357], [359, 358], [360, 359], [362, 361], [362, 11], [363, 362], [364, 363], [366, 11], [366, 365], [369, 368], [369, 11], [371, 370], [372, 369], [372, 371], [374, 372], [374, 366], [374, 373], [376, 26], [377, 376], [377, 11], [378, 6], [379, 230], [381, 379], [382, 381], [382, 378], [383, 11], [383, 382], [384, 26], [387, 384], [388, 377], [389, 388], [390, 389], [391, 390], [392, 29], [393, 11], [393, 392], [394, 337], [395, 29], [396, 394], [397, 395], [398, 393], [400, 11], [400, 399], [401, 400], [402, 401], [404, 403], [404, 11], [407, 11], [407, 406], [409, 408], [410, 409], [410, 407], [412, 410], [412, 404], [412, 411], [414, 389], [415, 358], [416, 337], [417, 4], [418, 417], [420, 419], [421, 29], [422, 421], [422, 11], [423, 337], [424, 29], [425, 423], [426, 424], [427, 422], [428, 26], [429, 11], [429, 428], [430, 389], [431, 26], [432, 430], [433, 431], [434, 429], [435, 420], [436, 435], [438, 11], [438, 437], [439, 438], [440, 439], [442, 441], [442, 11], [445, 444], [445, 11], [447, 446], [448, 447], [448, 445], [450, 442], [450, 449], [450, 448], [452, 8], [453, 452], [454, 453], [455, 8], [456, 455], [458, 6], [459, 458], [460, 459], [461, 6], [462, 461], [466, 8], [467, 466], [468, 467], [469, 8], [470, 469], [472, 6], [473, 472], [474, 473], [475, 6], [476, 475], [481, 478], [481, 464], [481, 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/5a5d0e7ab10776c2ee195a68f95eb1a59218e176cb1db1ee775d6cab0599c869_5a5d0e7ab10776c2ee195a68f95eb1a59218e176cb1db1ee775d6cab0599c869.jsonl.gz", "strip_func_name": "sub_408977", "query": "\n\n\n__int64 __fastcall sub_408977(__int64 a1, __int64 a2)\n{\nint v3; // ebx\nint v4; // [rsp+14h] [rbp-7Ch] BYREF\nvoid *ptr; // [rsp+18h] [rbp-78h] BYREF\nint v6; // [rsp+24h] [rbp-6Ch] BYREF\nvoid *v7; // [rsp+28h] [rbp-68h] BYREF\nint v8; // [rsp+34h] [rbp-5Ch]\n__int64 v9; // [rsp+38h] [rbp-58h]\n__int64 v10; // [rsp+40h] [rbp-50h]\n__int64 v11; // [rsp+48h] [rbp-48h]\nint v12; // [rsp+54h] [rbp-3Ch]\nint v13; // [rsp+58h] [rbp-38h]\nint v14; // [rsp+5Ch] [rbp-34h]\n__int64 v15; // [rsp+60h] [rbp-30h]\n__int64 v16; // [rsp+68h] [rbp-28h]\n__int64 v17; // [rsp+70h] [rbp-20h]\nint v18; // [rsp+78h] [rbp-18h]\nint i; // [rsp+7Ch] [rbp-14h]\n\nv7 = 0LL;\nv6 = 0;\nptr = 0LL;\nv4 = 0;\n*__errno_location() = 0;\nif ( !a1 || a2 < 0 )\n{\n*__errno_location() = 22;\nreturn 0xFFFFFFFFLL;\n}\nv17 = (a2 + 0x4000000) & 0xFFFFFFFFFC000000LL;\nv16 = *(_QWORD *)(a1 + 8);\nv15 = *(_QWORD *)(a1 + 16);\nif ( v16 )\n{\nv14 = (*(__int64 (__fastcall **)(__int64, void **, int *))v16)(v16, &ptr, &v4);\nif ( v14 < 0 )\n{\nif ( *__errno_location() >= 0 )\n{\nv3 = -30244000 - *__errno_location();\ngoto LABEL_66;\n}\nLABEL_60:\nv3 = *__errno_location();\ngoto LABEL_66;\n}\n}\nv14 = (*(__int64 (__fastcall **)(__int64, void **, int *))v15)(v15, &v7, &v6);\nif ( v14 < 0 )\n{\nif ( *__errno_location() >= 0 )\n{\nv3 = -30252000 - *__errno_location();\ngoto LABEL_66;\n}\ngoto LABEL_60;\n}\ni = v4 - 1;\nv18 = v6 - 1;\nwhile ( i >= 0 && v17 <= *((_QWORD *)ptr + i) )\n{\nif ( v18 >= 0 && *((_QWORD *)v7 + v18) == *((_QWORD *)ptr + i) )\n{\nv14 = (*(__int64 (__fastcall **)(__int64, _QWORD))(v15 + 24))(v15, *((_QWORD *)v7 + v18));\nif ( v14 < 0 )\n{\nif ( *__errno_location() >= 0 )\n{\nv3 = -30272000 - *__errno_location();\ngoto LABEL_66;\n}\ngoto LABEL_60;\n}\n--v18;\n}\nv14 = (*(__int64 (__fastcall **)(__int64, _QWORD))(v16 + 24))(v16, *((_QWORD *)ptr + i));\nif ( v14 < 0 )\n{\nif ( *__errno_location() >= 0 )\n{\nv3 = -30281000 - *__errno_location();\ngoto LABEL_66;\n}\ngoto LABEL_60;\n}\n--i;\n}\nv13 = i;\nfor ( i = v18; i >= 0 && v17 <= *((_QWORD *)v7 + i); --i )\n{\nv14 = (*(__int64 (__fastcall **)(__int64, _QWORD))(v15 + 24))(v15, *((_QWORD *)v7 + i));\nif ( v14 < 0 )\n{\nif ( *__errno_location() < 0 )\ngoto LABEL_60;\nv3 = -30296000 - *__errno_location();\ngoto LABEL_66;\n}\n}\nv12 = i;\nif ( a2 >= v17 )\ngoto LABEL_48;\nv11 = a2 & 0xFFFFFFFFFC000000LL;\nif ( v12 < 0\n|| v11 != *((_QWORD *)v7 + v12)\n|| (v14 = sub_4060E2(v15, v11, a2), v14 >= 0)\n|| *__errno_location() == -990003000 )\n{\nif ( v13 >= 0 && v11 == *((_QWORD *)ptr + v13) )\n{\nif ( !v16 )\n__assert_fail(\"mem != NULL\", \"log_log.c\", 0x141u, \"smrlog_purge_after\");\nv14 = sub_4060E2(v16, v11, a2);\nif ( v14 < 0 )\n{\nif ( *__errno_location() < 0 )\ngoto LABEL_60;\nv3 = -30325000 - *__errno_location();\ngoto LABEL_66;\n}\n}\nLABEL_48:\nif ( v12 >= 0 && v16 && v13 < 0 )\n{\nv10 = 0LL;\nv9 = 0LL;\nv10 = (*(__int64 (__fastcall **)(__int64, _QWORD, __int64, _QWORD))(v15 + 40))(\nv15,\n*((_QWORD *)v7 + v12),\n1LL,\n0LL);\nif ( !v10 )\n{\nif ( *__errno_location() < 0 )\ngoto LABEL_60;\nv3 = -30341000 - *__errno_location();\ngoto LABEL_66;\n}\nv8 = sub_405E3D(v10);\nif ( v8 < 0 )\n{\nif ( *__errno_location() < 0 )\ngoto LABEL_60;\nv3 = -30347000 - *__errno_location();\ngoto LABEL_66;\n}\nv9 = (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD, __int64))(v16 + 40))(\nv16,\n*((_QWORD *)v7 + v12),\n0LL,\n1LL);\nif ( !v9 )\n{\n(*(void (__fastcall **)(__int64, __int64))(v15 + 48))(v15, v10);\nif ( *__errno_location() < 0 )\ngoto LABEL_60;\nv3 = -30354000 - *__errno_location();\ngoto LABEL_66;\n}\nv14 = sub_406279(a1, v10, v8, v9);\n(*(void (__fastcall **)(__int64, __int64))(v15 + 48))(v15, v10);\n(*(void (__fastcall **)(__int64, __int64))(v16 + 48))(v16, v9);\nif ( v14 < 0 )\n{\nif ( *__errno_location() < 0 )\ngoto LABEL_60;\nv3 = -30363000 - *__errno_location();\ngoto LABEL_66;\n}\n}\nif ( ptr )\nfree(ptr);\nif ( v7 )\nfree(v7);\nreturn 0LL;\n}\nif ( *__errno_location() < 0 )\ngoto LABEL_60;\nv3 = -30314000 - *__errno_location();\nLABEL_66:\n*__errno_location() = v3;\nif ( ptr )\nfree(ptr);\nif ( v7 )\nfree(v7);\nreturn 0xFFFFFFFFLL;\n}\n\n\n\nQ:[a1,a2,v4,ptr,v6,v7,v8,v9,v10,v11,v12,v13,v15,v16,v17,sub_408977,sub_4060E2,sub_405E3D,sub_406279,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'handle', 'a2': 'seq', 'v4': 'mseqs_size', 'ptr': 'mseqs', 'v6': 'dseqs_size', 'v7': 'dseqs', 'v8': 'src_off', 'v9': 'dest_addr', 'v10': 'src_addr', 'v11': 'base_seq', 'v12': 'last_disk_idx', 'v13': 'last_mem_idx', 'v15': 'disk', 'v16': 'mem', 'v17': 'target_seq', 'sub_408977': 'smrlog_purge_after', 'sub_4060E2': 'dev_truncate', 'sub_405E3D': 'addr_offset', 'sub_406279': 'smrlog_sync_maps'}"}
clear_ssh_config
087bbe3972e782e288aec06a0f3389386e1d59f87c2eec19767c14a9d8cb780e
zevweiss
enthrall
NA
static void clear_ssh_config(struct ssh_config* c) { xfree(c->remoteshell); xfree(c->bindaddr); xfree(c->identityfile); xfree(c->username); xfree(c->remotecmd); memset(c, 0, sizeof(*c)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4059B6", "function_addr": 4217270, "binary_name": "087bbe3972e782e288aec06a0f3389386e1d59f87c2eec19767c14a9d8cb780e.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]"], [6, "mov rdi, rax"], [7, "call sub_403BE9"], [8, "mov rax, [rbp+s]"], [9, "mov rax, [rax+10h]"], [10, "mov rdi, rax"], [11, "call sub_403BE9"], [12, "mov rax, [rbp+s]"], [13, "mov rax, [rax+18h]"], [14, "mov rdi, rax"], [15, "call sub_403BE9"], [16, "mov rax, [rbp+s]"], [17, "mov rax, [rax+20h]"], [18, "mov rdi, rax"], [19, "call sub_403BE9"], [20, "mov rax, [rbp+s]"], [21, "mov rax, [rax+28h]"], [22, "mov rdi, rax"], [23, "call sub_403BE9"], [24, "mov rax, [rbp+s]"], [25, "mov edx, 30h "], [26, "mov esi, 0"], [27, "mov rdi, rax"], [28, "call _memset"], [29, "nop"], [30, "leave"], [31, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [8, 3], [9, 8], [10, 9], [12, 3], [13, 12], [14, 13], [16, 3], [17, 16], [18, 17], [20, 3], [21, 20], [22, 21], [24, 3], [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/087bbe3972e782e288aec06a0f3389386e1d59f87c2eec19767c14a9d8cb780e_087bbe3972e782e288aec06a0f3389386e1d59f87c2eec19767c14a9d8cb780e.jsonl.gz", "strip_func_name": "sub_4059B6", "query": "\n\n\nvoid *__fastcall sub_4059B6(void **a1)\n{\nsub_403BE9(*a1);\nsub_403BE9(a1[2]);\nsub_403BE9(a1[3]);\nsub_403BE9(a1[4]);\nsub_403BE9(a1[5]);\nreturn memset(a1, 0, 0x30uLL);\n}\n\n\n\nQ:[a1,sub_4059B6,sub_403BE9,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'sub_4059B6': 'clear_ssh_config', 'sub_403BE9': 'xfree'}"}
open_volume_store
47dbb0334d900656507d737fe374672f3140f5fc6d4279824cf09bfea156759f
dm-vdo
vdo
NA
int open_volume_store(struct volume_store *volume_store, struct index_layout *layout, unsigned int reserved_buffers __maybe_unused, size_t bytes_per_page) { volume_store->vs_bytes_per_page = bytes_per_page; return open_uds_volume_region(layout, &volume_store->vs_region); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41C354", "function_addr": 4309844, "binary_name": "47dbb0334d900656507d737fe374672f3140f5fc6d4279824cf09bfea156759f.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_14], edx"], [6, "mov [rbp+var_20], rcx"], [7, "mov rax, [rbp+var_8]"], [8, "mov rdx, [rbp+var_20]"], [9, "mov [rax+8], rdx"], [10, "mov rdx, [rbp+var_8]"], [11, "mov rax, [rbp+var_10]"], [12, "mov rsi, rdx"], [13, "mov rdi, rax"], [14, "call sub_4124C3"], [15, "leave"], [16, "retn"]], "data_dep": [[7, 3], [8, 6], [9, 8], [9, 7], [10, 3], [11, 4], [12, 10], [13, 11], [16, 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/47dbb0334d900656507d737fe374672f3140f5fc6d4279824cf09bfea156759f_47dbb0334d900656507d737fe374672f3140f5fc6d4279824cf09bfea156759f.jsonl.gz", "strip_func_name": "sub_41C354", "query": "\n\n\n__int64 __fastcall sub_41C354(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n*(_QWORD *)(a1 + 8) = a4;\nreturn sub_4124C3(a2, a1);\n}\n\n\n\nQ:[a4,a1,a2,a3,sub_41C354,sub_4124C3,]\nAssistant: ", "hints": "[]", "response": "{'a4': 'bytes_per_page', 'a1': 'volume_store', 'a2': 'layout', 'a3': 'reserved_buffers', 'sub_41C354': 'open_volume_store', 'sub_4124C3': 'open_uds_volume_region'}"}
pagemap_get_entry
16f03b83edab4eaa1574b91c8f0b2cbda38fe57c9e82234c8bacbf7561a64b53
linux-audit
audit-kernel
NA
uint64_t pagemap_get_entry(int fd, char *start) { const unsigned long pfn = (unsigned long)start / getpagesize(); uint64_t entry; int ret; ret = pread(fd, &entry, sizeof(entry), pfn * sizeof(entry)); if (ret != sizeof(entry)) ksft_exit_fail_msg("reading pagemap failed\n"); return entry; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40259B", "function_addr": 4203931, "binary_name": "16f03b83edab4eaa1574b91c8f0b2cbda38fe57c9e82234c8bacbf7561a64b53.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 38h"], [4, "mov [rbp+fd], edi"], [5, "mov [rbp+var_40], rsi"], [6, "mov rbx, [rbp+var_40]"], [7, "call _getpagesize"], [8, "movsxd rcx, eax"], [9, "mov rax, rbx"], [10, "mov edx, 0"], [11, "div rcx"], [12, "mov [rbp+var_18], rax"], [13, "mov rax, [rbp+var_18]"], [14, "shl rax, 3"], [15, "mov rdx, rax"], [16, "lea rsi, [rbp+buf]"], [17, "mov eax, [rbp+fd]"], [18, "mov rcx, rdx"], [19, "mov edx, 8"], [20, "mov edi, eax"], [21, "call _pread"], [22, "mov [rbp+var_1C], eax"], [23, "cmp [rbp+var_1C], 8"], [24, "jz short loc_4025FF"], [25, "mov edi, offset aReadingPagemap"], [26, "mov eax, 0"], [27, "call sub_4024C4"], [28, "mov rax, [rbp+buf]"], [29, "mov rbx, [rbp+var_8]"], [30, "leave"], [31, "retn"]], "data_dep": [[6, 5], [8, 7], [9, 6], [11, 8], [12, 9], [13, 12], [14, 13], [15, 14], [17, 4], [18, 15], [20, 17], [22, 21], [23, 22], [24, 23], [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/16f03b83edab4eaa1574b91c8f0b2cbda38fe57c9e82234c8bacbf7561a64b53_16f03b83edab4eaa1574b91c8f0b2cbda38fe57c9e82234c8bacbf7561a64b53.jsonl.gz", "strip_func_name": "sub_40259B", "query": "\n\n\n__int64 __fastcall sub_40259B(int a1, unsigned __int64 a2)\n{\n__int64 v2; // rdx\n__int64 v3; // rcx\n__int64 v4; // r8\n__int64 v5; // r9\n__int64 buf; // [rsp+18h] [rbp-28h] BYREF\nint v8; // [rsp+24h] [rbp-1Ch]\nunsigned __int64 v9; // [rsp+28h] [rbp-18h]\n\nv9 = a2 / getpagesize();\nv8 = pread(a1, &buf, 8uLL, 8 * v9);\nif ( v8 != 8 )\nsub_4024C4(\"reading pagemap failed\\n\", (__int64)&buf, v2, v3, v4, v5, a2);\nreturn buf;\n}\n\n\n\nQ:[a1,a2,buf,v9,sub_40259B,sub_4024C4,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'fd', 'a2': 'start', 'buf': 'entry', 'v9': 'pfn', 'sub_40259B': 'pagemap_get_entry', 'sub_4024C4': 'ksft_exit_fail_msg_0'}"}
sqlite3VdbeAddOp4Int
1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627
andoma
movian
NA
SQLITE_PRIVATE int sqlite3VdbeAddOp4Int( Vdbe *p, /* Add the opcode to this VM */ int op, /* The new opcode */ int p1, /* The P1 operand */ int p2, /* The P2 operand */ int p3, /* The P3 operand */ int p4 /* The P4 operand as an integer */ ){ int addr = sqlite3VdbeAddOp3(p, op, p1, p2, p3); sqlite3VdbeChangeP4(p, addr, SQLITE_INT_TO_PTR(p4), P4_INT32); return addr; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43D8E4", "function_addr": 4446436, "binary_name": "1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627.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_28], r8d"], [8, "mov [rbp+var_2C], r9d"], [9, "mov edi, [rbp+var_28]"], [10, "mov ecx, [rbp+var_24]"], [11, "mov edx, [rbp+var_20]"], [12, "mov esi, [rbp+var_1C]"], [13, "mov rax, [rbp+var_18]"], [14, "mov r8d, edi"], [15, "mov rdi, rax"], [16, "call sub_43D3C7"], [17, "mov [rbp+var_4], eax"], [18, "mov eax, [rbp+var_2C]"], [19, "cdqe"], [20, "mov rdx, rax"], [21, "mov esi, [rbp+var_4]"], [22, "mov rax, [rbp+var_18]"], [23, "mov ecx, 0FFFFFFF2h"], [24, "mov rdi, rax"], [25, "call sub_43E2A2"], [26, "mov eax, [rbp+var_4]"], [27, "leave"], [28, "retn"]], "data_dep": [[9, 7], [10, 6], [11, 5], [12, 4], [13, 3], [14, 9], [15, 13], [17, 16], [18, 8], [20, 18], [21, 17], [22, 3], [24, 22], [26, 17], [28, 26]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627_1f521185abebe790038be8fb8b4eb165b2fd6d5af5b82a99f02d98f6827de627.jsonl.gz", "strip_func_name": "sub_43D8E4", "query": "\n\n\n__int64 __fastcall sub_43D8E4(__int64 a1, char a2, int a3, int a4, int a5, int a6)\n{\nunsigned int v8; // [rsp+2Ch] [rbp-4h]\n\nv8 = sub_43D3C7(a1, a2, a3, a4, a5);\nsub_43E2A2(a1, v8, a6, 4294967282LL);\nreturn v8;\n}\n\n\n\nQ:[a3,a4,a1,a2,a5,a6,sub_43D8E4,sub_43D3C7,sub_43E2A2,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'p1', 'a4': 'p2', 'a1': 'p', 'a2': 'op', 'a5': 'p3', 'a6': 'p4', 'sub_43D8E4': 'sqlite3VdbeAddOp4Int', 'sub_43D3C7': 'sqlite3VdbeAddOp3', 'sub_43E2A2': 'sqlite3VdbeChangeP4'}"}
overlap_level2_up3_420
72303f375450332c393a8a753559999c0acc00cdc494ffcd4522a6d677c4ee69
ArtifexSoftware
ghostpdl
NA
static void overlap_level2_up3_420(jxr_image_t image, int use_my, int ch) { int tx = 0; /* XXXX */ int top_my = use_my - 3; int idx; int ty = 0; assert(ch > 0 && image->use_clr_fmt == 1/*YUV420*/); assert(use_my >= 3); DEBUG("Overlap Level2 (YUV420) for row %d\n", top_my); /* Figure out which tile row the current strip of macroblocks belongs to. */ while(top_my > image->tile_row_position[ty]+image->tile_row_height[ty] - 1) ty++; for(tx = 0; tx < image->tile_columns; tx++) { /* Left edge */ if (tx == 0 || image->disableTileOverlapFlag) { int*dp = MACROBLK_UP3(image,ch,tx,0).data; _jxr_4OverlapFilter(R2B42(dp,0,2),R2B42(dp,0,3),R2B42(dp,0,4),R2B42(dp,0,5)); _jxr_4OverlapFilter(R2B42(dp,1,2),R2B42(dp,1,3),R2B42(dp,1,4),R2B42(dp,1,5)); } /* Right edge */ if(tx == image->tile_columns -1 || image->disableTileOverlapFlag){ int*dp = MACROBLK_UP3(image,ch,tx,image->tile_column_width[tx]-1).data; _jxr_4OverlapFilter(R2B42(dp,6,2),R2B42(dp,6,3),R2B42(dp,6,4),R2B42(dp,6,5)); _jxr_4OverlapFilter(R2B42(dp,7,2),R2B42(dp,7,3),R2B42(dp,7,4),R2B42(dp,7,5)); } /* Top edge */ if(top_my == 0 )/* || (image->disableTileOverlapFlag && TOP_Y(top_my) )) */ { /* If this is the very first strip of blocks, then process the first two scan lines with the smaller 4Overlap filter. */ for (idx = 0; idx < image->tile_column_width[tx] ; idx += 1) { int*dp = MACROBLK_UP3(image,ch,tx,idx).data; _jxr_4OverlapFilter(R2B42(dp, 2,0),R2B42(dp, 3,0),R2B42(dp, 4,0),R2B42(dp, 5,0)); _jxr_4OverlapFilter(R2B42(dp, 2,1),R2B42(dp, 3,1),R2B42(dp, 4,1),R2B42(dp, 5,1)); /* Top edge across */ if ( (image->tile_column_position[tx] + idx > 0 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !LEFT_X(idx))) { int*pp = MACROBLK_UP3(image,ch,tx,idx-1).data; _jxr_4OverlapFilter(R2B42(pp,6,0),R2B42(pp,7,0),R2B(dp,0,0),R2B42(dp,1,0)); _jxr_4OverlapFilter(R2B42(pp,6,1),R2B42(pp,7,1),R2B(dp,0,1),R2B42(dp,1,1)); } } /* Top left corner */ if(tx == 0 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP3(image,ch,tx,0).data; _jxr_4OverlapFilter(R2B42(dp, 0,0),R2B42(dp, 1, 0),R2B42(dp, 0 ,1),R2B42(dp, 1,1)); } /* Top right corner */ if(tx == image->tile_columns -1 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP3(image,ch,tx, image->tile_column_width[tx] - 1 ).data; _jxr_4OverlapFilter(R2B42(dp, 6,0),R2B42(dp, 7,0),R2B42(dp, 6,1),R2B42(dp, 7,1));; } } /* Bottom edge */ if ((top_my+1) == (int) EXTENDED_HEIGHT_BLOCKS(image) || (image->disableTileOverlapFlag && BOTTOM_Y(top_my))) { /* This is the last row, so there is no UP below TOP. finish up with 4Overlap filters. */ for (idx = 0; idx < image->tile_column_width[tx] ; idx += 1) { int*tp = MACROBLK_UP3(image,ch,tx,idx).data; _jxr_4OverlapFilter(R2B42(tp,2,6),R2B42(tp,3,6),R2B42(tp,4,6),R2B42(tp,5,6)); _jxr_4OverlapFilter(R2B42(tp,2,7),R2B42(tp,3,7),R2B42(tp,4,7),R2B42(tp,5,7)); /* Bottom edge across */ if ( (image->tile_column_position[tx] + idx > 0 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !LEFT_X(idx))) { int*tn = MACROBLK_UP3(image,ch,tx,idx-1).data; _jxr_4OverlapFilter(R2B42(tn,6,6),R2B42(tn,7,6),R2B42(tp,0,6),R2B42(tp,1,6)); _jxr_4OverlapFilter(R2B42(tn,6,7),R2B42(tn,7,7),R2B42(tp,0,7),R2B42(tp,1,7)); } } /* Bottom left corner */ if(tx == 0 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP3(image,ch,tx,0).data; _jxr_4OverlapFilter(R2B42(dp, 0,6),R2B42(dp, 1, 6),R2B42(dp, 0,7),R2B42(dp, 1, 7)); } /* Bottom right corner */ if(tx == image->tile_columns -1 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP3(image,ch,tx, image->tile_column_width[tx] - 1 ).data; _jxr_4OverlapFilter(R2B42(dp, 6, 6),R2B42(dp, 7, 6),R2B42(dp, 6, 7),R2B42(dp, 7, 7)); } if(image->disableTileOverlapFlag && BOTTOM_Y(top_my) && top_my <EXTENDED_HEIGHT_BLOCKS(image)-1) { /* Also process Top edge of next macroblock row */ /* In the case of YUV 420, the next row of macroblocks needs to be transformed */ /* before yuv420_to_yuv422 is called */ /* In the soft tile case the top 2 lines of the MB below are processed by the 2x2 operators spanning the MB below*/ /* In the case of hard tiles, if this is the bottom most row of MBs in the Hard Tile */ /* we need to process the top edge of the next hard tile */ /* Also see HARDTILE_NOTE in yuv420_to_yuv422() */ for (idx = 0; idx < image->tile_column_width[tx] ; idx += 1) { int*dp = MACROBLK_UP2(image,ch,tx,idx).data; _jxr_4OverlapFilter(R2B42(dp, 2,0),R2B42(dp, 3,0),R2B42(dp, 4,0),R2B42(dp, 5,0)); _jxr_4OverlapFilter(R2B42(dp, 2,1),R2B42(dp, 3,1),R2B42(dp, 4,1),R2B42(dp, 5,1)); /* Top edge across */ if ( (image->tile_column_position[tx] + idx > 0 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !LEFT_X(idx))) { int*pp = MACROBLK_UP2(image,ch,tx,idx-1).data; _jxr_4OverlapFilter(R2B42(pp,6,0),R2B42(pp,7,0),R2B(dp,0,0),R2B42(dp,1,0)); _jxr_4OverlapFilter(R2B42(pp,6,1),R2B42(pp,7,1),R2B(dp,0,1),R2B42(dp,1,1)); } } /* Top left corner */ if(tx == 0 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP2(image,ch,tx,0).data; _jxr_4OverlapFilter(R2B42(dp, 0,0),R2B42(dp, 1, 0),R2B42(dp, 0 ,1),R2B42(dp, 1,1)); } /* Top right corner */ if(tx == image->tile_columns -1 || image->disableTileOverlapFlag) { int *dp = MACROBLK_UP2(image,ch,tx, image->tile_column_width[tx] - 1 ).data; _jxr_4OverlapFilter(R2B42(dp, 6,0),R2B42(dp, 7,0),R2B42(dp, 6,1),R2B42(dp, 7,1));; } } } for (idx = 0 ; idx < image->tile_column_width[tx] ; idx += 1) { int*dp = MACROBLK_UP3(image,ch,tx,idx).data; int*up = MACROBLK_UP2(image,ch,tx,idx).data; /* Fully interior 4x4 filter blocks... */ _jxr_4x4OverlapFilter(R2B42(dp,2,2),R2B42(dp,3,2),R2B42(dp,4,2),R2B42(dp,5,2), R2B42(dp,2,3),R2B42(dp,3,3),R2B42(dp,4,3),R2B42(dp,5,3), R2B42(dp,2,4),R2B42(dp,3,4),R2B42(dp,4,4),R2B42(dp,5,4), R2B42(dp,2,5),R2B42(dp,3,5),R2B42(dp,4,5),R2B42(dp,5,5)); if ( (image->tile_column_position[tx] + idx < EXTENDED_WIDTH_BLOCKS(image)-1 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !RIGHT_X(idx))) { /* 4x4 at the right */ int*np = MACROBLK_UP3(image,ch,tx,idx+1).data; _jxr_4x4OverlapFilter(R2B42(dp,6,2),R2B42(dp,7,2),R2B42(np,0,2),R2B42(np,1,2), R2B42(dp,6,3),R2B42(dp,7,3),R2B42(np,0,3),R2B42(np,1,3), R2B42(dp,6,4),R2B42(dp,7,4),R2B42(np,0,4),R2B42(np,1,4), R2B42(dp,6,5),R2B42(dp,7,5),R2B42(np,0,5),R2B42(np,1,5)); } if ((top_my+1) < (int) EXTENDED_HEIGHT_BLOCKS(image)) { int*dp = MACROBLK_UP3(image,ch,tx,idx).data; int*up = MACROBLK_UP2(image,ch,tx,idx).data; if ((tx == 0 && idx==0 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && LEFT_X(idx) && !BOTTOM_Y(top_my))) { /* Across vertical blocks, left edge */ _jxr_4OverlapFilter(R2B42(dp,0,6),R2B42(dp,0,7),R2B42(up,0,0),R2B42(up,0,1)); _jxr_4OverlapFilter(R2B42(dp,1,6),R2B42(dp,1,7),R2B42(up,1,0),R2B42(up,1,1)); } if((!image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && !BOTTOM_Y(top_my))) { /* 4x4 straddling lower MB */ _jxr_4x4OverlapFilter(R2B42(dp,2,6),R2B42(dp,3,6),R2B42(dp,4,6),R2B42(dp,5,6), R2B42(dp,2,7),R2B42(dp,3,7),R2B42(dp,4,7),R2B42(dp,5,7), R2B42(up,2,0),R2B42(up,3,0),R2B42(up,4,0),R2B42(up,5,0), R2B42(up,2,1),R2B42(up,3,1),R2B42(up,4,1),R2B42(up,5,1)); } if (((image->tile_column_position[tx] + idx < EXTENDED_WIDTH_BLOCKS(image)-1) && !image->disableTileOverlapFlag ) || ( image->disableTileOverlapFlag && !RIGHT_X(idx) && !BOTTOM_Y(top_my) ) ) { /* Blocks that span the MB to the right */ int*dn = MACROBLK_UP3(image,ch,tx,idx+1).data; int*un = MACROBLK_UP2(image,ch,tx,idx+1).data; /* 4x4 right, below, below-right */ _jxr_4x4OverlapFilter(R2B42(dp,6,6),R2B42(dp,7,6),R2B42(dn,0,6),R2B42(dn,1,6), R2B42(dp,6,7),R2B42(dp,7,7),R2B42(dn,0,7),R2B42(dn,1,7), R2B42(up,6,0),R2B42(up,7,0),R2B42(un,0,0),R2B42(un,1,0), R2B42(up,6,1),R2B42(up,7,1),R2B42(un,0,1),R2B42(un,1,1)); } if((image->tile_column_position[tx] + idx == (int) EXTENDED_WIDTH_BLOCKS(image)-1 && !image->disableTileOverlapFlag) || (image->disableTileOverlapFlag && RIGHT_X(idx) && !BOTTOM_Y(top_my))) { /* Across vertical blocks, right edge */ _jxr_4OverlapFilter(R2B42(dp,6,6),R2B42(dp,6,7),R2B42(up,6,0),R2B42(up,6,1)); _jxr_4OverlapFilter(R2B42(dp,7,6),R2B42(dp,7,7),R2B42(up,7,0),R2B42(up,7,1)); } } } } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44404B", "function_addr": 4472907, "binary_name": "72303f375450332c393a8a753559999c0acc00cdc494ffcd4522a6d677c4ee69.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r15"], [3, "push r14"], [4, "push r13"], [5, "push r12"], [6, "push rbx"], [7, "sub rsp, 128h"], [8, "mov [rbp+var_F8], rdi"], [9, "mov [rbp+var_FC], esi"], [10, "mov [rbp+var_100], edx"], [11, "mov [rbp+var_34], 0"], [12, "mov eax, [rbp+var_FC]"], [13, "sub eax, 3"], [14, "mov [rbp+var_40], eax"], [15, "mov [rbp+var_3C], 0"], [16, "cmp [rbp+var_100], 0"], [17, "jle short loc_4440A4"], [18, "mov rax, [rbp+var_F8]"], [19, "movzx eax, byte ptr [rax+1Ch]"], [20, "cmp al, 1"], [21, "jz short loc_4440BD"], [22, "mov ecx, offset aOverlapLevel2U_1"], [23, "mov edx, 50Bh"], [24, "mov esi, offset aRStripC"], [25, "mov edi, offset aCh0ImageUseClr_1"], [26, "call ___assert_fail"], [27, "cmp [rbp+var_FC], 2"], [28, "jg short loc_4440E3"], [29, "mov ecx, offset aOverlapLevel2U_1"], [30, "mov edx, 50Ch"], [31, "mov esi, offset aRStripC"], [32, "mov edi, offset aUseMy3"], [33, "call ___assert_fail"], [34, "add [rbp+var_3C], 1"], [35, "mov rax, [rbp+var_F8]"], [36, "mov rdx, [rax+50h]"], [37, "mov eax, [rbp+var_3C]"], [38, "cdqe"], [39, "shl rax, 2"], [40, "add rax, rdx"], [41, "mov edx, [rax]"], [42, "mov rax, [rbp+var_F8]"], [43, "mov rcx, [rax+38h]"], [44, "mov eax, [rbp+var_3C]"], [45, "cdqe"], [46, "shl rax, 2"], [47, "add rax, rcx"], [48, "mov eax, [rax]"], [49, "add eax, edx"], [50, "lea edx, [rax-1]"], [51, "mov eax, [rbp+var_40]"], [52, "cmp edx, eax"], [53, "jb short loc_4440DF"], [54, "mov [rbp+var_34], 0"], [55, "jmp loc_446564"], [56, "cmp [rbp+var_34], 0"], [57, "jz short loc_444145"], [58, "mov rax, [rbp+var_F8]"], [59, "mov eax, [rax+2Ch]"], [60, "test eax, eax"], [61, "jz loc_444286"], [62, "mov rcx, [rbp+var_F8]"], [63, "mov eax, [rbp+var_100]"], [64, "movsxd rdx, eax"], [65, "mov rax, rdx"], [66, "shl rax, 3"], [67, "sub rax, rdx"], [68, "shl rax, 3"], [69, "add rax, rcx"], [70, "add rax, 88h"], [71, "mov rdx, [rax]"], [72, "mov rax, [rbp+var_F8]"], [73, "mov rcx, [rax+48h]"], [74, "mov eax, [rbp+var_34]"], [75, "cdqe"], [76, "shl rax, 2"], [77, "add rax, rcx"], [78, "mov eax, [rax]"], [79, "mov ecx, eax"], [80, "mov rax, rcx"], [81, "shl rax, 2"], [82, "add rax, rcx"], [83, "shl rax, 3"], [84, "add rax, rdx"], [85, "mov rax, [rax]"], [86, "mov [rbp+var_48], rax"], [87, "mov rax, [rbp+var_48]"], [88, "mov edx, 5"], [89, "mov esi, 0"], [90, "mov rdi, rax"], [91, "call sub_43E77A"], [92, "mov r13, rax"], [93, "mov rax, [rbp+var_48]"], [94, "mov edx, 4"], [95, "mov esi, 0"], [96, "mov rdi, rax"], [97, "call sub_43E77A"], [98, "mov r12, rax"], [99, "mov rax, [rbp+var_48]"], [100, "mov edx, 3"], [101, "mov esi, 0"], [102, "mov rdi, rax"], [103, "call sub_43E77A"], [104, "mov rbx, rax"], [105, "mov rax, [rbp+var_48]"], [106, "mov edx, 2"], [107, "mov esi, 0"], [108, "mov rdi, rax"], [109, "call sub_43E77A"], [110, "mov rcx, r13"], [111, "mov rdx, r12"], [112, "mov rsi, rbx"], [113, "mov rdi, rax"], [114, "call sub_43884F"], [115, "mov rax, [rbp+var_48]"], [116, "mov edx, 5"], [117, "mov esi, 1"], [118, "mov rdi, rax"], [119, "call sub_43E77A"], [120, "mov r13, rax"], [121, "mov rax, [rbp+var_48]"], [122, "mov edx, 4"], [123, "mov esi, 1"], [124, "mov rdi, rax"], [125, "call sub_43E77A"], [126, "mov r12, rax"], [127, "mov rax, [rbp+var_48]"], [128, "mov edx, 3"], [129, "mov esi, 1"], [130, "mov rdi, rax"], [131, "call sub_43E77A"], [132, "mov rbx, rax"], [133, "mov rax, [rbp+var_48]"], [134, "mov edx, 2"], [135, "mov esi, 1"], [136, "mov rdi, rax"], [137, "call sub_43E77A"], [138, "mov rcx, r13"], [139, "mov rdx, r12"], [140, "mov rsi, rbx"], [141, "mov rdi, rax"], [142, "call sub_43884F"], [143, "mov rax, [rbp+var_F8]"], [144, "mov eax, [rax+34h]"], [145, "lea edx, [rax-1]"], [146, "mov eax, [rbp+var_34]"], [147, "cmp edx, eax"], [148, "jz short loc_4442AC"], [149, "mov rax, [rbp+var_F8]"], [150, "mov eax, [rax+2Ch]"], [151, "test eax, eax"], [152, "jz loc_44440B"], [153, "mov rcx, [rbp+var_F8]"], [154, "mov eax, [rbp+var_100]"], [155, "movsxd rdx, eax"], [156, "mov rax, rdx"], [157, "shl rax, 3"], [158, "sub rax, rdx"], [159, "shl rax, 3"], [160, "add rax, rcx"], [161, "add rax, 88h"], [162, "mov rdx, [rax]"], [163, "mov rax, [rbp+var_F8]"], [164, "mov rcx, [rax+48h]"], [165, "mov eax, [rbp+var_34]"], [166, "cdqe"], [167, "shl rax, 2"], [168, "add rax, rcx"], [169, "mov ecx, [rax]"], [170, "mov rax, [rbp+var_F8]"], [171, "mov rsi, [rax+40h]"], [172, "mov eax, [rbp+var_34]"], [173, "cdqe"], [174, "shl rax, 2"], [175, "add rax, rsi"], [176, "mov eax, [rax]"], [177, "add eax, ecx"], [178, "sub eax, 1"], [179, "mov ecx, eax"], [180, "mov rax, rcx"], [181, "shl rax, 2"], [182, "add rax, rcx"], [183, "shl rax, 3"], [184, "add rax, rdx"], [185, "mov rax, [rax]"], [186, "mov [rbp+var_50], rax"], [187, "mov rax, [rbp+var_50]"], [188, "mov edx, 5"], [189, "mov esi, 6"], [190, "mov rdi, rax"], [191, "call sub_43E77A"], [192, "mov r13, rax"], [193, "mov rax, [rbp+var_50]"], [194, "mov edx, 4"], [195, "mov esi, 6"], [196, "mov rdi, rax"], [197, "call sub_43E77A"], [198, "mov r12, rax"], [199, "mov rax, [rbp+var_50]"], [200, "mov edx, 3"], [201, "mov esi, 6"], [202, "mov rdi, rax"], [203, "call sub_43E77A"], [204, "mov rbx, rax"], [205, "mov rax, [rbp+var_50]"], [206, "mov edx, 2"], [207, "mov esi, 6"], [208, "mov rdi, rax"], [209, "call sub_43E77A"], [210, "mov rcx, r13"], [211, "mov rdx, r12"], [212, "mov rsi, rbx"], [213, "mov rdi, rax"], [214, "call sub_43884F"], [215, "mov rax, [rbp+var_50]"], [216, "mov edx, 5"], [217, "mov esi, 7"], [218, "mov rdi, rax"], [219, "call sub_43E77A"], [220, "mov r13, rax"], [221, "mov rax, [rbp+var_50]"], [222, "mov edx, 4"], [223, "mov esi, 7"], [224, "mov rdi, rax"], [225, "call sub_43E77A"], [226, "mov r12, rax"], [227, "mov rax, [rbp+var_50]"], [228, "mov edx, 3"], [229, "mov esi, 7"], [230, "mov rdi, rax"], [231, "call sub_43E77A"], [232, "mov rbx, rax"], [233, "mov rax, [rbp+var_50]"], [234, "mov edx, 2"], [235, "mov esi, 7"], [236, "mov rdi, rax"], [237, "call sub_43E77A"], [238, "mov rcx, r13"], [239, "mov rdx, r12"], [240, "mov rsi, rbx"], [241, "mov rdi, rax"], [242, "call sub_43884F"], [243, "cmp [rbp+var_40], 0"], [244, "jnz loc_44491E"], [245, "mov [rbp+var_38], 0"], [246, "jmp loc_444700"], [247, "mov rcx, [rbp+var_F8]"], [248, "mov eax, [rbp+var_100]"], [249, "movsxd rdx, eax"], [250, "mov rax, rdx"], [251, "shl rax, 3"], [252, "sub rax, rdx"], [253, "shl rax, 3"], [254, "add rax, rcx"], [255, "add rax, 88h"], [256, "mov rdx, [rax]"], [257, "mov rax, [rbp+var_F8]"], [258, "mov rcx, [rax+48h]"], [259, "mov eax, [rbp+var_34]"], [260, "cdqe"], [261, "shl rax, 2"], [262, "add rax, rcx"], [263, "mov ecx, [rax]"], [264, "mov eax, [rbp+var_38]"], [265, "add eax, ecx"], [266, "mov ecx, eax"], [267, "mov rax, rcx"], [268, "shl rax, 2"], [269, "add rax, rcx"], [270, "shl rax, 3"], [271, "add rax, rdx"], [272, "mov rax, [rax]"], [273, "mov [rbp+var_68], rax"], [274, "mov rax, [rbp+var_68]"], [275, "mov edx, 0"], [276, "mov esi, 5"], [277, "mov rdi, rax"], [278, "call sub_43E77A"], [279, "mov r13, rax"], [280, "mov rax, [rbp+var_68]"], [281, "mov edx, 0"], [282, "mov esi, 4"], [283, "mov rdi, rax"], [284, "call sub_43E77A"], [285, "mov r12, rax"], [286, "mov rax, [rbp+var_68]"], [287, "mov edx, 0"], [288, "mov esi, 3"], [289, "mov rdi, rax"], [290, "call sub_43E77A"], [291, "mov rbx, rax"], [292, "mov rax, [rbp+var_68]"], [293, "mov edx, 0"], [294, "mov esi, 2"], [295, "mov rdi, rax"], [296, "call sub_43E77A"], [297, "mov rcx, r13"], [298, "mov rdx, r12"], [299, "mov rsi, rbx"], [300, "mov rdi, rax"], [301, "call sub_43884F"], [302, "mov rax, [rbp+var_68]"], [303, "mov edx, 1"], [304, "mov esi, 5"], [305, "mov rdi, rax"], [306, "call sub_43E77A"], [307, "mov r13, rax"], [308, "mov rax, [rbp+var_68]"], [309, "mov edx, 1"], [310, "mov esi, 4"], [311, "mov rdi, rax"], [312, "call sub_43E77A"], [313, "mov r12, rax"], [314, "mov rax, [rbp+var_68]"], [315, "mov edx, 1"], [316, "mov esi, 3"], [317, "mov rdi, rax"], [318, "call sub_43E77A"], [319, "mov rbx, rax"], [320, "mov rax, [rbp+var_68]"], [321, "mov edx, 1"], [322, "mov esi, 2"], [323, "mov rdi, rax"], [324, "call sub_43E77A"], [325, "mov rcx, r13"], [326, "mov rdx, r12"], [327, "mov rsi, rbx"], [328, "mov rdi, rax"], [329, "call sub_43884F"], [330, "mov rax, [rbp+var_F8]"], [331, "mov rdx, [rax+48h]"], [332, "mov eax, [rbp+var_34]"], [333, "cdqe"], [334, "shl rax, 2"], [335, "add rax, rdx"], [336, "mov edx, [rax]"], [337, "mov eax, [rbp+var_38]"], [338, "add eax, edx"], [339, "test eax, eax"], [340, "jz short loc_444597"], [341, "mov rax, [rbp+var_F8]"], [342, "mov eax, [rax+2Ch]"], [343, "test eax, eax"], [344, "jz short loc_4445B3"], [345, "mov rax, [rbp+var_F8]"], [346, "mov eax, [rax+2Ch]"], [347, "test eax, eax"], [348, "jz loc_4446FC"], [349, "cmp [rbp+var_38], 0"], [350, "jz loc_4446FC"], [351, "mov rcx, [rbp+var_F8]"], [352, "mov eax, [rbp+var_100]"], [353, "movsxd rdx, eax"], [354, "mov rax, rdx"], [355, "shl rax, 3"], [356, "sub rax, rdx"], [357, "shl rax, 3"], [358, "add rax, rcx"], [359, "add rax, 88h"], [360, "mov rdx, [rax]"], [361, "mov rax, [rbp+var_F8]"], [362, "mov rcx, [rax+48h]"], [363, "mov eax, [rbp+var_34]"], [364, "cdqe"], [365, "shl rax, 2"], [366, "add rax, rcx"], [367, "mov ecx, [rax]"], [368, "mov eax, [rbp+var_38]"], [369, "add eax, ecx"], [370, "sub eax, 1"], [371, "mov ecx, eax"], [372, "mov rax, rcx"], [373, "shl rax, 2"], [374, "add rax, rcx"], [375, "shl rax, 3"], [376, "add rax, rdx"], [377, "mov rax, [rax]"], [378, "mov [rbp+var_70], rax"], [379, "mov rax, [rbp+var_68]"], [380, "mov edx, 0"], [381, "mov esi, 1"], [382, "mov rdi, rax"], [383, "call sub_43E77A"], [384, "mov r13, rax"], [385, "mov rax, [rbp+var_68]"], [386, "mov edx, 0"], [387, "mov esi, 0"], [388, "mov rdi, rax"], [389, "call sub_43E6F5"], [390, "mov r12, rax"], [391, "mov rax, [rbp+var_70]"], [392, "mov edx, 0"], [393, "mov esi, 7"], [394, "mov rdi, rax"], [395, "call sub_43E77A"], [396, "mov rbx, rax"], [397, "mov rax, [rbp+var_70]"], [398, "mov edx, 0"], [399, "mov esi, 6"], [400, "mov rdi, rax"], [401, "call sub_43E77A"], [402, "mov rcx, r13"], [403, "mov rdx, r12"], [404, "mov rsi, rbx"], [405, "mov rdi, rax"], [406, "call sub_43884F"], [407, "mov rax, [rbp+var_68]"], [408, "mov edx, 1"], [409, "mov esi, 1"], [410, "mov rdi, rax"], [411, "call sub_43E77A"], [412, "mov r13, rax"], [413, "mov rax, [rbp+var_68]"], [414, "mov edx, 1"], [415, "mov esi, 0"], [416, "mov rdi, rax"], [417, "call sub_43E6F5"], [418, "mov r12, rax"], [419, "mov rax, [rbp+var_70]"], [420, "mov edx, 1"], [421, "mov esi, 7"], [422, "mov rdi, rax"], [423, "call sub_43E77A"], [424, "mov rbx, rax"], [425, "mov rax, [rbp+var_70]"], [426, "mov edx, 1"], [427, "mov esi, 6"], [428, "mov rdi, rax"], [429, "call sub_43E77A"], [430, "mov rcx, r13"], [431, "mov rdx, r12"], [432, "mov rsi, rbx"], [433, "mov rdi, rax"], [434, "call sub_43884F"], [435, "add [rbp+var_38], 1"], [436, "mov rax, [rbp+var_F8]"], [437, "mov rdx, [rax+40h]"], [438, "mov eax, [rbp+var_34]"], [439, "cdqe"], [440, "shl rax, 2"], [441, "add rax, rdx"], [442, "mov edx, [rax]"], [443, "mov eax, [rbp+var_38]"], [444, "cmp edx, eax"], [445, "ja loc_444421"], [446, "cmp [rbp+var_34], 0"], [447, "jz short loc_44473C"], [448, "mov rax, [rbp+var_F8]"], [449, "mov eax, [rax+2Ch]"], [450, "test eax, eax"], [451, "jz loc_44480B"], [452, "mov rcx, [rbp+var_F8]"], [453, "mov eax, [rbp+var_100]"], [454, "movsxd rdx, eax"], [455, "mov rax, rdx"], [456, "shl rax, 3"], [457, "sub rax, rdx"], [458, "shl rax, 3"], [459, "add rax, rcx"], [460, "add rax, 88h"], [461, "mov rdx, [rax]"], [462, "mov rax, [rbp+var_F8]"], [463, "mov rcx, [rax+48h]"], [464, "mov eax, [rbp+var_34]"], [465, "cdqe"], [466, "shl rax, 2"], [467, "add rax, rcx"], [468, "mov eax, [rax]"], [469, "mov ecx, eax"], [470, "mov rax, rcx"], [471, "shl rax, 2"], [472, "add rax, rcx"], [473, "shl rax, 3"], [474, "add rax, rdx"], [475, "mov rax, [rax]"], [476, "mov [rbp+var_58], rax"], [477, "mov rax, [rbp+var_58]"], [478, "mov edx, 1"], [479, "mov esi, 1"], [480, "mov rdi, rax"], [481, "call sub_43E77A"], [482, "mov r13, rax"], [483, "mov rax, [rbp+var_58]"], [484, "mov edx, 1"], [485, "mov esi, 0"], [486, "mov rdi, rax"], [487, "call sub_43E77A"], [488, "mov r12, rax"], [489, "mov rax, [rbp+var_58]"], [490, "mov edx, 0"], [491, "mov esi, 1"], [492, "mov rdi, rax"], [493, "call sub_43E77A"], [494, "mov rbx, rax"], [495, "mov rax, [rbp+var_58]"], [496, "mov edx, 0"], [497, "mov esi, 0"], [498, "mov rdi, rax"], [499, "call sub_43E77A"], [500, "mov rcx, r13"], [501, "mov rdx, r12"], [502, "mov rsi, rbx"], [503, "mov rdi, rax"], [504, "call sub_43884F"], [505, "mov rax, [rbp+var_F8]"], [506, "mov eax, [rax+34h]"], [507, "lea edx, [rax-1]"], [508, "mov eax, [rbp+var_34]"], [509, "cmp edx, eax"], [510, "jz short loc_444831"], [511, "mov rax, [rbp+var_F8]"], [512, "mov eax, [rax+2Ch]"], [513, "test eax, eax"], [514, "jz loc_44491E"], [515, "mov rcx, [rbp+var_F8]"], [516, "mov eax, [rbp+var_100]"], [517, "movsxd rdx, eax"], [518, "mov rax, rdx"], [519, "shl rax, 3"], [520, "sub rax, rdx"], [521, "shl rax, 3"], [522, "add rax, rcx"], [523, "add rax, 88h"], [524, "mov rdx, [rax]"], [525, "mov rax, [rbp+var_F8]"], [526, "mov rcx, [rax+48h]"], [527, "mov eax, [rbp+var_34]"], [528, "cdqe"], [529, "shl rax, 2"], [530, "add rax, rcx"], [531, "mov ecx, [rax]"], [532, "mov rax, [rbp+var_F8]"], [533, "mov rsi, [rax+40h]"], [534, "mov eax, [rbp+var_34]"], [535, "cdqe"], [536, "shl rax, 2"], [537, "add rax, rsi"], [538, "mov eax, [rax]"], [539, "add eax, ecx"], [540, "sub eax, 1"], [541, "mov ecx, eax"], [542, "mov rax, rcx"], [543, "shl rax, 2"], [544, "add rax, rcx"], [545, "shl rax, 3"], [546, "add rax, rdx"], [547, "mov rax, [rax]"], [548, "mov [rbp+var_60], rax"], [549, "mov rax, [rbp+var_60]"], [550, "mov edx, 1"], [551, "mov esi, 7"], [552, "mov rdi, rax"], [553, "call sub_43E77A"], [554, "mov r13, rax"], [555, "mov rax, [rbp+var_60]"], [556, "mov edx, 1"], [557, "mov esi, 6"], [558, "mov rdi, rax"], [559, "call sub_43E77A"], [560, "mov r12, rax"], [561, "mov rax, [rbp+var_60]"], [562, "mov edx, 0"], [563, "mov esi, 7"], [564, "mov rdi, rax"], [565, "call sub_43E77A"], [566, "mov rbx, rax"], [567, "mov rax, [rbp+var_60]"], [568, "mov edx, 0"], [569, "mov esi, 6"], [570, "mov rdi, rax"], [571, "call sub_43E77A"], [572, "mov rcx, r13"], [573, "mov rdx, r12"], [574, "mov rsi, rbx"], [575, "mov rdi, rax"], [576, "call sub_43884F"], [577, "mov eax, [rbp+var_40]"], [578, "lea edx, [rax+1]"], [579, "mov rax, [rbp+var_F8]"], [580, "mov eax, [rax+10h]"], [581, "shr eax, 4"], [582, "cmp edx, eax"], [583, "jz short loc_444989"], [584, "mov rax, [rbp+var_F8]"], [585, "mov eax, [rax+2Ch]"], [586, "test eax, eax"], [587, "jz loc_445494"], [588, "mov rax, [rbp+var_F8]"], [589, "mov rdx, [rax+50h]"], [590, "mov eax, [rbp+var_3C]"], [591, "cdqe"], [592, "shl rax, 2"], [593, "add rax, rdx"], [594, "mov edx, [rax]"], [595, "mov rax, [rbp+var_F8]"], [596, "mov rcx, [rax+38h]"], [597, "mov eax, [rbp+var_3C]"], [598, "cdqe"], [599, "shl rax, 2"], [600, "add rax, rcx"], [601, "mov eax, [rax]"], [602, "add eax, edx"], [603, "lea edx, [rax-1]"], [604, "mov eax, [rbp+var_40]"], [605, "cmp edx, eax"], [606, "jnz loc_445494"], [607, "mov [rbp+var_38], 0"], [608, "jmp loc_444CAA"], [609, "mov rcx, [rbp+var_F8]"], [610, "mov eax, [rbp+var_100]"], [611, "movsxd rdx, eax"], [612, "mov rax, rdx"], [613, "shl rax, 3"], [614, "sub rax, rdx"], [615, "shl rax, 3"], [616, "add rax, rcx"], [617, "add rax, 88h"], [618, "mov rdx, [rax]"], [619, "mov rax, [rbp+var_F8]"], [620, "mov rcx, [rax+48h]"], [621, "mov eax, [rbp+var_34]"], [622, "cdqe"], [623, "shl rax, 2"], [624, "add rax, rcx"], [625, "mov ecx, [rax]"], [626, "mov eax, [rbp+var_38]"], [627, "add eax, ecx"], [628, "mov ecx, eax"], [629, "mov rax, rcx"], [630, "shl rax, 2"], [631, "add rax, rcx"], [632, "shl rax, 3"], [633, "add rax, rdx"], [634, "mov rax, [rax]"], [635, "mov [rbp+var_A8], rax"], [636, "mov rax, [rbp+var_A8]"], [637, "mov edx, 6"], [638, "mov esi, 5"], [639, "mov rdi, rax"], [640, "call sub_43E77A"], [641, "mov r13, rax"], [642, "mov rax, [rbp+var_A8]"], [643, "mov edx, 6"], [644, "mov esi, 4"], [645, "mov rdi, rax"], [646, "call sub_43E77A"], [647, "mov r12, rax"], [648, "mov rax, [rbp+var_A8]"], [649, "mov edx, 6"], [650, "mov esi, 3"], [651, "mov rdi, rax"], [652, "call sub_43E77A"], [653, "mov rbx, rax"], [654, "mov rax, [rbp+var_A8]"], [655, "mov edx, 6"], [656, "mov esi, 2"], [657, "mov rdi, rax"], [658, "call sub_43E77A"], [659, "mov rcx, r13"], [660, "mov rdx, r12"], [661, "mov rsi, rbx"], [662, "mov rdi, rax"], [663, "call sub_43884F"], [664, "mov rax, [rbp+var_A8]"], [665, "mov edx, 7"], [666, "mov esi, 5"], [667, "mov rdi, rax"], [668, "call sub_43E77A"], [669, "mov r13, rax"], [670, "mov rax, [rbp+var_A8]"], [671, "mov edx, 7"], [672, "mov esi, 4"], [673, "mov rdi, rax"], [674, "call sub_43E77A"], [675, "mov r12, rax"], [676, "mov rax, [rbp+var_A8]"], [677, "mov edx, 7"], [678, "mov esi, 3"], [679, "mov rdi, rax"], [680, "call sub_43E77A"], [681, "mov rbx, rax"], [682, "mov rax, [rbp+var_A8]"], [683, "mov edx, 7"], [684, "mov esi, 2"], [685, "mov rdi, rax"], [686, "call sub_43E77A"], [687, "mov rcx, r13"], [688, "mov rdx, r12"], [689, "mov rsi, rbx"], [690, "mov rdi, rax"], [691, "call sub_43884F"], [692, "mov rax, [rbp+var_F8]"], [693, "mov rdx, [rax+48h]"], [694, "mov eax, [rbp+var_34]"], [695, "cdqe"], [696, "shl rax, 2"], [697, "add rax, rdx"], [698, "mov edx, [rax]"], [699, "mov eax, [rbp+var_38]"], [700, "add eax, edx"], [701, "test eax, eax"], [702, "jz short loc_444B26"], [703, "mov rax, [rbp+var_F8]"], [704, "mov eax, [rax+2Ch]"], [705, "test eax, eax"], [706, "jz short loc_444B42"], [707, "mov rax, [rbp+var_F8]"], [708, "mov eax, [rax+2Ch]"], [709, "test eax, eax"], [710, "jz loc_444CA6"], [711, "cmp [rbp+var_38], 0"], [712, "jz loc_444CA6"], [713, "mov rcx, [rbp+var_F8]"], [714, "mov eax, [rbp+var_100]"], [715, "movsxd rdx, eax"], [716, "mov rax, rdx"], [717, "shl rax, 3"], [718, "sub rax, rdx"], [719, "shl rax, 3"], [720, "add rax, rcx"], [721, "add rax, 88h"], [722, "mov rdx, [rax]"], [723, "mov rax, [rbp+var_F8]"], [724, "mov rcx, [rax+48h]"], [725, "mov eax, [rbp+var_34]"], [726, "cdqe"], [727, "shl rax, 2"], [728, "add rax, rcx"], [729, "mov ecx, [rax]"], [730, "mov eax, [rbp+var_38]"], [731, "add eax, ecx"], [732, "sub eax, 1"], [733, "mov ecx, eax"], [734, "mov rax, rcx"], [735, "shl rax, 2"], [736, "add rax, rcx"], [737, "shl rax, 3"], [738, "add rax, rdx"], [739, "mov rax, [rax]"], [740, "mov [rbp+var_B0], rax"], [741, "mov rax, [rbp+var_A8]"], [742, "mov edx, 6"], [743, "mov esi, 1"], [744, "mov rdi, rax"], [745, "call sub_43E77A"], [746, "mov r13, rax"], [747, "mov rax, [rbp+var_A8]"], [748, "mov edx, 6"], [749, "mov esi, 0"], [750, "mov rdi, rax"], [751, "call sub_43E77A"], [752, "mov r12, rax"], [753, "mov rax, [rbp+var_B0]"], [754, "mov edx, 6"], [755, "mov esi, 7"], [756, "mov rdi, rax"], [757, "call sub_43E77A"], [758, "mov rbx, rax"], [759, "mov rax, [rbp+var_B0]"], [760, "mov edx, 6"], [761, "mov esi, 6"], [762, "mov rdi, rax"], [763, "call sub_43E77A"], [764, "mov rcx, r13"], [765, "mov rdx, r12"], [766, "mov rsi, rbx"], [767, "mov rdi, rax"], [768, "call sub_43884F"], [769, "mov rax, [rbp+var_A8]"], [770, "mov edx, 7"], [771, "mov esi, 1"], [772, "mov rdi, rax"], [773, "call sub_43E77A"], [774, "mov r13, rax"], [775, "mov rax, [rbp+var_A8]"], [776, "mov edx, 7"], [777, "mov esi, 0"], [778, "mov rdi, rax"], [779, "call sub_43E77A"], [780, "mov r12, rax"], [781, "mov rax, [rbp+var_B0]"], [782, "mov edx, 7"], [783, "mov esi, 7"], [784, "mov rdi, rax"], [785, "call sub_43E77A"], [786, "mov rbx, rax"], [787, "mov rax, [rbp+var_B0]"], [788, "mov edx, 7"], [789, "mov esi, 6"], [790, "mov rdi, rax"], [791, "call sub_43E77A"], [792, "mov rcx, r13"], [793, "mov rdx, r12"], [794, "mov rsi, rbx"], [795, "mov rdi, rax"], [796, "call sub_43884F"], [797, "add [rbp+var_38], 1"], [798, "mov rax, [rbp+var_F8]"], [799, "mov rdx, [rax+40h]"], [800, "mov eax, [rbp+var_34]"], [801, "cdqe"], [802, "shl rax, 2"], [803, "add rax, rdx"], [804, "mov edx, [rax]"], [805, "mov eax, [rbp+var_38]"], [806, "cmp edx, eax"], [807, "ja loc_444995"], [808, "cmp [rbp+var_34], 0"], [809, "jz short loc_444CE6"], [810, "mov rax, [rbp+var_F8]"], [811, "mov eax, [rax+2Ch]"], [812, "test eax, eax"], [813, "jz loc_444DB5"], [814, "mov rcx, [rbp+var_F8]"], [815, "mov eax, [rbp+var_100]"], [816, "movsxd rdx, eax"], [817, "mov rax, rdx"], [818, "shl rax, 3"], [819, "sub rax, rdx"], [820, "shl rax, 3"], [821, "add rax, rcx"], [822, "add rax, 88h"], [823, "mov rdx, [rax]"], [824, "mov rax, [rbp+var_F8]"], [825, "mov rcx, [rax+48h]"], [826, "mov eax, [rbp+var_34]"], [827, "cdqe"], [828, "shl rax, 2"], [829, "add rax, rcx"], [830, "mov eax, [rax]"], [831, "mov ecx, eax"], [832, "mov rax, rcx"], [833, "shl rax, 2"], [834, "add rax, rcx"], [835, "shl rax, 3"], [836, "add rax, rdx"], [837, "mov rax, [rax]"], [838, "mov [rbp+var_78], rax"], [839, "mov rax, [rbp+var_78]"], [840, "mov edx, 7"], [841, "mov esi, 1"], [842, "mov rdi, rax"], [843, "call sub_43E77A"], [844, "mov r13, rax"], [845, "mov rax, [rbp+var_78]"], [846, "mov edx, 7"], [847, "mov esi, 0"], [848, "mov rdi, rax"], [849, "call sub_43E77A"], [850, "mov r12, rax"], [851, "mov rax, [rbp+var_78]"], [852, "mov edx, 6"], [853, "mov esi, 1"], [854, "mov rdi, rax"], [855, "call sub_43E77A"], [856, "mov rbx, rax"], [857, "mov rax, [rbp+var_78]"], [858, "mov edx, 6"], [859, "mov esi, 0"], [860, "mov rdi, rax"], [861, "call sub_43E77A"], [862, "mov rcx, r13"], [863, "mov rdx, r12"], [864, "mov rsi, rbx"], [865, "mov rdi, rax"], [866, "call sub_43884F"], [867, "mov rax, [rbp+var_F8]"], [868, "mov eax, [rax+34h]"], [869, "lea edx, [rax-1]"], [870, "mov eax, [rbp+var_34]"], [871, "cmp edx, eax"], [872, "jz short loc_444DDB"], [873, "mov rax, [rbp+var_F8]"], [874, "mov eax, [rax+2Ch]"], [875, "test eax, eax"], [876, "jz loc_444EC8"], [877, "mov rcx, [rbp+var_F8]"], [878, "mov eax, [rbp+var_100]"], [879, "movsxd rdx, eax"], [880, "mov rax, rdx"], [881, "shl rax, 3"], [882, "sub rax, rdx"], [883, "shl rax, 3"], [884, "add rax, rcx"], [885, "add rax, 88h"], [886, "mov rdx, [rax]"], [887, "mov rax, [rbp+var_F8]"], [888, "mov rcx, [rax+48h]"], [889, "mov eax, [rbp+var_34]"], [890, "cdqe"], [891, "shl rax, 2"], [892, "add rax, rcx"], [893, "mov ecx, [rax]"], [894, "mov rax, [rbp+var_F8]"], [895, "mov rsi, [rax+40h]"], [896, "mov eax, [rbp+var_34]"], [897, "cdqe"], [898, "shl rax, 2"], [899, "add rax, rsi"], [900, "mov eax, [rax]"], [901, "add eax, ecx"], [902, "sub eax, 1"], [903, "mov ecx, eax"], [904, "mov rax, rcx"], [905, "shl rax, 2"], [906, "add rax, rcx"], [907, "shl rax, 3"], [908, "add rax, rdx"], [909, "mov rax, [rax]"], [910, "mov [rbp+var_80], rax"], [911, "mov rax, [rbp+var_80]"], [912, "mov edx, 7"], [913, "mov esi, 7"], [914, "mov rdi, rax"], [915, "call sub_43E77A"], [916, "mov r13, rax"], [917, "mov rax, [rbp+var_80]"], [918, "mov edx, 7"], [919, "mov esi, 6"], [920, "mov rdi, rax"], [921, "call sub_43E77A"], [922, "mov r12, rax"], [923, "mov rax, [rbp+var_80]"], [924, "mov edx, 6"], [925, "mov esi, 7"], [926, "mov rdi, rax"], [927, "call sub_43E77A"], [928, "mov rbx, rax"], [929, "mov rax, [rbp+var_80]"], [930, "mov edx, 6"], [931, "mov esi, 6"], [932, "mov rdi, rax"], [933, "call sub_43E77A"], [934, "mov rcx, r13"], [935, "mov rdx, r12"], [936, "mov rsi, rbx"], [937, "mov rdi, rax"], [938, "call sub_43884F"], [939, "mov rax, [rbp+var_F8]"], [940, "mov eax, [rax+2Ch]"], [941, "test eax, eax"], [942, "jz loc_445494"], [943, "mov rax, [rbp+var_F8]"], [944, "mov rdx, [rax+50h]"], [945, "mov eax, [rbp+var_3C]"], [946, "cdqe"], [947, "shl rax, 2"], [948, "add rax, rdx"], [949, "mov edx, [rax]"], [950, "mov rax, [rbp+var_F8]"], [951, "mov rcx, [rax+38h]"], [952, "mov eax, [rbp+var_3C]"], [953, "cdqe"], [954, "shl rax, 2"], [955, "add rax, rcx"], [956, "mov eax, [rax]"], [957, "add eax, edx"], [958, "lea edx, [rax-1]"], [959, "mov eax, [rbp+var_40]"], [960, "cmp edx, eax"], [961, "jnz loc_445494"], [962, "mov rax, [rbp+var_F8]"], [963, "mov eax, [rax+10h]"], [964, "shr eax, 4"], [965, "lea edx, [rax-1]"], [966, "mov eax, [rbp+var_40]"], [967, "cmp edx, eax"], [968, "jbe loc_445494"], [969, "mov [rbp+var_38], 0"], [970, "jmp loc_445258"], [971, "mov rcx, [rbp+var_F8]"], [972, "mov eax, [rbp+var_100]"], [973, "movsxd rdx, eax"], [974, "mov rax, rdx"], [975, "shl rax, 3"], [976, "sub rax, rdx"], [977, "shl rax, 3"], [978, "add rax, rcx"], [979, "add rax, 90h"], [980, "mov rdx, [rax]"], [981, "mov rax, [rbp+var_F8]"], [982, "mov rcx, [rax+48h]"], [983, "mov eax, [rbp+var_34]"], [984, "cdqe"], [985, "shl rax, 2"], [986, "add rax, rcx"], [987, "mov ecx, [rax]"], [988, "mov eax, [rbp+var_38]"], [989, "add eax, ecx"], [990, "mov ecx, eax"], [991, "mov rax, rcx"], [992, "shl rax, 2"], [993, "add rax, rcx"], [994, "shl rax, 3"], [995, "add rax, rdx"], [996, "mov rax, [rax]"], [997, "mov [rbp+var_98], rax"], [998, "mov rax, [rbp+var_98]"], [999, "mov edx, 0"], [1000, "mov esi, 5"], [1001, "mov rdi, rax"], [1002, "call sub_43E77A"], [1003, "mov r13, rax"], [1004, "mov rax, [rbp+var_98]"], [1005, "mov edx, 0"], [1006, "mov esi, 4"], [1007, "mov rdi, rax"], [1008, "call sub_43E77A"], [1009, "mov r12, rax"], [1010, "mov rax, [rbp+var_98]"], [1011, "mov edx, 0"], [1012, "mov esi, 3"], [1013, "mov rdi, rax"], [1014, "call sub_43E77A"], [1015, "mov rbx, rax"], [1016, "mov rax, [rbp+var_98]"], [1017, "mov edx, 0"], [1018, "mov esi, 2"], [1019, "mov rdi, rax"], [1020, "call sub_43E77A"], [1021, "mov rcx, r13"], [1022, "mov rdx, r12"], [1023, "mov rsi, rbx"], [1024, "mov rdi, rax"], [1025, "call sub_43884F"], [1026, "mov rax, [rbp+var_98]"], [1027, "mov edx, 1"], [1028, "mov esi, 5"], [1029, "mov rdi, rax"], [1030, "call sub_43E77A"], [1031, "mov r13, rax"], [1032, "mov rax, [rbp+var_98]"], [1033, "mov edx, 1"], [1034, "mov esi, 4"], [1035, "mov rdi, rax"], [1036, "call sub_43E77A"], [1037, "mov r12, rax"], [1038, "mov rax, [rbp+var_98]"], [1039, "mov edx, 1"], [1040, "mov esi, 3"], [1041, "mov rdi, rax"], [1042, "call sub_43E77A"], [1043, "mov rbx, rax"], [1044, "mov rax, [rbp+var_98]"], [1045, "mov edx, 1"], [1046, "mov esi, 2"], [1047, "mov rdi, rax"], [1048, "call sub_43E77A"], [1049, "mov rcx, r13"], [1050, "mov rdx, r12"], [1051, "mov rsi, rbx"], [1052, "mov rdi, rax"], [1053, "call sub_43884F"], [1054, "mov rax, [rbp+var_F8]"], [1055, "mov rdx, [rax+48h]"], [1056, "mov eax, [rbp+var_34]"], [1057, "cdqe"], [1058, "shl rax, 2"], [1059, "add rax, rdx"], [1060, "mov edx, [rax]"], [1061, "mov eax, [rbp+var_38]"], [1062, "add eax, edx"], [1063, "test eax, eax"], [1064, "jz short loc_4450D4"], [1065, "mov rax, [rbp+var_F8]"], [1066, "mov eax, [rax+2Ch]"], [1067, "test eax, eax"], [1068, "jz short loc_4450F0"], [1069, "mov rax, [rbp+var_F8]"], [1070, "mov eax, [rax+2Ch]"], [1071, "test eax, eax"], [1072, "jz loc_445254"], [1073, "cmp [rbp+var_38], 0"], [1074, "jz loc_445254"], [1075, "mov rcx, [rbp+var_F8]"], [1076, "mov eax, [rbp+var_100]"], [1077, "movsxd rdx, eax"], [1078, "mov rax, rdx"], [1079, "shl rax, 3"], [1080, "sub rax, rdx"], [1081, "shl rax, 3"], [1082, "add rax, rcx"], [1083, "add rax, 90h"], [1084, "mov rdx, [rax]"], [1085, "mov rax, [rbp+var_F8]"], [1086, "mov rcx, [rax+48h]"], [1087, "mov eax, [rbp+var_34]"], [1088, "cdqe"], [1089, "shl rax, 2"], [1090, "add rax, rcx"], [1091, "mov ecx, [rax]"], [1092, "mov eax, [rbp+var_38]"], [1093, "add eax, ecx"], [1094, "sub eax, 1"], [1095, "mov ecx, eax"], [1096, "mov rax, rcx"], [1097, "shl rax, 2"], [1098, "add rax, rcx"], [1099, "shl rax, 3"], [1100, "add rax, rdx"], [1101, "mov rax, [rax]"], [1102, "mov [rbp+var_A0], rax"], [1103, "mov rax, [rbp+var_98]"], [1104, "mov edx, 0"], [1105, "mov esi, 1"], [1106, "mov rdi, rax"], [1107, "call sub_43E77A"], [1108, "mov r13, rax"], [1109, "mov rax, [rbp+var_98]"], [1110, "mov edx, 0"], [1111, "mov esi, 0"], [1112, "mov rdi, rax"], [1113, "call sub_43E6F5"], [1114, "mov r12, rax"], [1115, "mov rax, [rbp+var_A0]"], [1116, "mov edx, 0"], [1117, "mov esi, 7"], [1118, "mov rdi, rax"], [1119, "call sub_43E77A"], [1120, "mov rbx, rax"], [1121, "mov rax, [rbp+var_A0]"], [1122, "mov edx, 0"], [1123, "mov esi, 6"], [1124, "mov rdi, rax"], [1125, "call sub_43E77A"], [1126, "mov rcx, r13"], [1127, "mov rdx, r12"], [1128, "mov rsi, rbx"], [1129, "mov rdi, rax"], [1130, "call sub_43884F"], [1131, "mov rax, [rbp+var_98]"], [1132, "mov edx, 1"], [1133, "mov esi, 1"], [1134, "mov rdi, rax"], [1135, "call sub_43E77A"], [1136, "mov r13, rax"], [1137, "mov rax, [rbp+var_98]"], [1138, "mov edx, 1"], [1139, "mov esi, 0"], [1140, "mov rdi, rax"], [1141, "call sub_43E6F5"], [1142, "mov r12, rax"], [1143, "mov rax, [rbp+var_A0]"], [1144, "mov edx, 1"], [1145, "mov esi, 7"], [1146, "mov rdi, rax"], [1147, "call sub_43E77A"], [1148, "mov rbx, rax"], [1149, "mov rax, [rbp+var_A0]"], [1150, "mov edx, 1"], [1151, "mov esi, 6"], [1152, "mov rdi, rax"], [1153, "call sub_43E77A"], [1154, "mov rcx, r13"], [1155, "mov rdx, r12"], [1156, "mov rsi, rbx"], [1157, "mov rdi, rax"], [1158, "call sub_43884F"], [1159, "add [rbp+var_38], 1"], [1160, "mov rax, [rbp+var_F8]"], [1161, "mov rdx, [rax+40h]"], [1162, "mov eax, [rbp+var_34]"], [1163, "cdqe"], [1164, "shl rax, 2"], [1165, "add rax, rdx"], [1166, "mov edx, [rax]"], [1167, "mov eax, [rbp+var_38]"], [1168, "cmp edx, eax"], [1169, "ja loc_444F43"], [1170, "cmp [rbp+var_34], 0"], [1171, "jz short loc_445294"], [1172, "mov rax, [rbp+var_F8]"], [1173, "mov eax, [rax+2Ch]"], [1174, "test eax, eax"], [1175, "jz loc_445372"], [1176, "mov rcx, [rbp+var_F8]"], [1177, "mov eax, [rbp+var_100]"], [1178, "movsxd rdx, eax"], [1179, "mov rax, rdx"], [1180, "shl rax, 3"], [1181, "sub rax, rdx"], [1182, "shl rax, 3"], [1183, "add rax, rcx"], [1184, "add rax, 90h"], [1185, "mov rdx, [rax]"], [1186, "mov rax, [rbp+var_F8]"], [1187, "mov rcx, [rax+48h]"], [1188, "mov eax, [rbp+var_34]"], [1189, "cdqe"], [1190, "shl rax, 2"], [1191, "add rax, rcx"], [1192, "mov eax, [rax]"], [1193, "mov ecx, eax"], [1194, "mov rax, rcx"], [1195, "shl rax, 2"], [1196, "add rax, rcx"], [1197, "shl rax, 3"], [1198, "add rax, rdx"], [1199, "mov rax, [rax]"], [1200, "mov [rbp+var_88], rax"], [1201, "mov rax, [rbp+var_88]"], [1202, "mov edx, 1"], [1203, "mov esi, 1"], [1204, "mov rdi, rax"], [1205, "call sub_43E77A"], [1206, "mov r13, rax"], [1207, "mov rax, [rbp+var_88]"], [1208, "mov edx, 1"], [1209, "mov esi, 0"], [1210, "mov rdi, rax"], [1211, "call sub_43E77A"], [1212, "mov r12, rax"], [1213, "mov rax, [rbp+var_88]"], [1214, "mov edx, 0"], [1215, "mov esi, 1"], [1216, "mov rdi, rax"], [1217, "call sub_43E77A"], [1218, "mov rbx, rax"], [1219, "mov rax, [rbp+var_88]"], [1220, "mov edx, 0"], [1221, "mov esi, 0"], [1222, "mov rdi, rax"], [1223, "call sub_43E77A"], [1224, "mov rcx, r13"], [1225, "mov rdx, r12"], [1226, "mov rsi, rbx"], [1227, "mov rdi, rax"], [1228, "call sub_43884F"], [1229, "mov rax, [rbp+var_F8]"], [1230, "mov eax, [rax+34h]"], [1231, "lea edx, [rax-1]"], [1232, "mov eax, [rbp+var_34]"], [1233, "cmp edx, eax"], [1234, "jz short loc_445398"], [1235, "mov rax, [rbp+var_F8]"], [1236, "mov eax, [rax+2Ch]"], [1237, "test eax, eax"], [1238, "jz loc_445494"], [1239, "mov rcx, [rbp+var_F8]"], [1240, "mov eax, [rbp+var_100]"], [1241, "movsxd rdx, eax"], [1242, "mov rax, rdx"], [1243, "shl rax, 3"], [1244, "sub rax, rdx"], [1245, "shl rax, 3"], [1246, "add rax, rcx"], [1247, "add rax, 90h"], [1248, "mov rdx, [rax]"], [1249, "mov rax, [rbp+var_F8]"], [1250, "mov rcx, [rax+48h]"], [1251, "mov eax, [rbp+var_34]"], [1252, "cdqe"], [1253, "shl rax, 2"], [1254, "add rax, rcx"], [1255, "mov ecx, [rax]"], [1256, "mov rax, [rbp+var_F8]"], [1257, "mov rsi, [rax+40h]"], [1258, "mov eax, [rbp+var_34]"], [1259, "cdqe"], [1260, "shl rax, 2"], [1261, "add rax, rsi"], [1262, "mov eax, [rax]"], [1263, "add eax, ecx"], [1264, "sub eax, 1"], [1265, "mov ecx, eax"], [1266, "mov rax, rcx"], [1267, "shl rax, 2"], [1268, "add rax, rcx"], [1269, "shl rax, 3"], [1270, "add rax, rdx"], [1271, "mov rax, [rax]"], [1272, "mov [rbp+var_90], rax"], [1273, "mov rax, [rbp+var_90]"], [1274, "mov edx, 1"], [1275, "mov esi, 7"], [1276, "mov rdi, rax"], [1277, "call sub_43E77A"], [1278, "mov r13, rax"], [1279, "mov rax, [rbp+var_90]"], [1280, "mov edx, 1"], [1281, "mov esi, 6"], [1282, "mov rdi, rax"], [1283, "call sub_43E77A"], [1284, "mov r12, rax"], [1285, "mov rax, [rbp+var_90]"], [1286, "mov edx, 0"], [1287, "mov esi, 7"], [1288, "mov rdi, rax"], [1289, "call sub_43E77A"], [1290, "mov rbx, rax"], [1291, "mov rax, [rbp+var_90]"], [1292, "mov edx, 0"], [1293, "mov esi, 6"], [1294, "mov rdi, rax"], [1295, "call sub_43E77A"], [1296, "mov rcx, r13"], [1297, "mov rdx, r12"], [1298, "mov rsi, rbx"], [1299, "mov rdi, rax"], [1300, "call sub_43884F"], [1301, "mov [rbp+var_38], 0"], [1302, "jmp loc_44653C"], [1303, "mov rcx, [rbp+var_F8]"], [1304, "mov eax, [rbp+var_100]"], [1305, "movsxd rdx, eax"], [1306, "mov rax, rdx"], [1307, "shl rax, 3"], [1308, "sub rax, rdx"], [1309, "shl rax, 3"], [1310, "add rax, rcx"], [1311, "add rax, 88h"], [1312, "mov rdx, [rax]"], [1313, "mov rax, [rbp+var_F8]"], [1314, "mov rcx, [rax+48h]"], [1315, "mov eax, [rbp+var_34]"], [1316, "cdqe"], [1317, "shl rax, 2"], [1318, "add rax, rcx"], [1319, "mov ecx, [rax]"], [1320, "mov eax, [rbp+var_38]"], [1321, "add eax, ecx"], [1322, "mov ecx, eax"], [1323, "mov rax, rcx"], [1324, "shl rax, 2"], [1325, "add rax, rcx"], [1326, "shl rax, 3"], [1327, "add rax, rdx"], [1328, "mov rax, [rax]"], [1329, "mov [rbp+var_B8], rax"], [1330, "mov rcx, [rbp+var_F8]"], [1331, "mov eax, [rbp+var_100]"], [1332, "movsxd rdx, eax"], [1333, "mov rax, rdx"], [1334, "shl rax, 3"], [1335, "sub rax, rdx"], [1336, "shl rax, 3"], [1337, "add rax, rcx"], [1338, "add rax, 90h"], [1339, "mov rdx, [rax]"], [1340, "mov rax, [rbp+var_F8]"], [1341, "mov rcx, [rax+48h]"], [1342, "mov eax, [rbp+var_34]"], [1343, "cdqe"], [1344, "shl rax, 2"], [1345, "add rax, rcx"], [1346, "mov ecx, [rax]"], [1347, "mov eax, [rbp+var_38]"], [1348, "add eax, ecx"], [1349, "mov ecx, eax"], [1350, "mov rax, rcx"], [1351, "shl rax, 2"], [1352, "add rax, rcx"], [1353, "shl rax, 3"], [1354, "add rax, rdx"], [1355, "mov rax, [rax]"], [1356, "mov [rbp+var_C0], rax"], [1357, "mov rax, [rbp+var_B8]"], [1358, "mov edx, 5"], [1359, "mov esi, 5"], [1360, "mov rdi, rax"], [1361, "call sub_43E77A"], [1362, "mov r13, rax"], [1363, "mov rax, [rbp+var_B8]"], [1364, "mov edx, 5"], [1365, "mov esi, 4"], [1366, "mov rdi, rax"], [1367, "call sub_43E77A"], [1368, "mov [rbp+var_108], rax"], [1369, "mov rax, [rbp+var_B8]"], [1370, "mov edx, 5"], [1371, "mov esi, 3"], [1372, "mov rdi, rax"], [1373, "call sub_43E77A"], [1374, "mov [rbp+var_110], rax"], [1375, "mov rax, [rbp+var_B8]"], [1376, "mov edx, 5"], [1377, "mov esi, 2"], [1378, "mov rdi, rax"], [1379, "call sub_43E77A"], [1380, "mov [rbp+var_118], rax"], [1381, "mov rax, [rbp+var_B8]"], [1382, "mov edx, 4"], [1383, "mov esi, 5"], [1384, "mov rdi, rax"], [1385, "call sub_43E77A"], [1386, "mov [rbp+var_120], rax"], [1387, "mov rax, [rbp+var_B8]"], [1388, "mov edx, 4"], [1389, "mov esi, 4"], [1390, "mov rdi, rax"], [1391, "call sub_43E77A"], [1392, "mov [rbp+var_128], rax"], [1393, "mov rax, [rbp+var_B8]"], [1394, "mov edx, 4"], [1395, "mov esi, 3"], [1396, "mov rdi, rax"], [1397, "call sub_43E77A"], [1398, "mov [rbp+var_130], rax"], [1399, "mov rax, [rbp+var_B8]"], [1400, "mov edx, 4"], [1401, "mov esi, 2"], [1402, "mov rdi, rax"], [1403, "call sub_43E77A"], [1404, "mov [rbp+var_138], rax"], [1405, "mov rax, [rbp+var_B8]"], [1406, "mov edx, 3"], [1407, "mov esi, 5"], [1408, "mov rdi, rax"], [1409, "call sub_43E77A"], [1410, "mov r15, rax"], [1411, "mov rax, [rbp+var_B8]"], [1412, "mov edx, 3"], [1413, "mov esi, 4"], [1414, "mov rdi, rax"], [1415, "call sub_43E77A"], [1416, "mov r14, rax"], [1417, "mov rax, [rbp+var_B8]"], [1418, "mov edx, 3"], [1419, "mov esi, 3"], [1420, "mov rdi, rax"], [1421, "call sub_43E77A"], [1422, "mov [rbp+var_140], rax"], [1423, "mov rax, [rbp+var_B8]"], [1424, "mov edx, 3"], [1425, "mov esi, 2"], [1426, "mov rdi, rax"], [1427, "call sub_43E77A"], [1428, "mov [rbp+var_148], rax"], [1429, "mov rax, [rbp+var_B8]"], [1430, "mov edx, 2"], [1431, "mov esi, 5"], [1432, "mov rdi, rax"], [1433, "call sub_43E77A"], [1434, "mov [rbp+var_150], rax"], [1435, "mov rax, [rbp+var_B8]"], [1436, "mov edx, 2"], [1437, "mov esi, 4"], [1438, "mov rdi, rax"], [1439, "call sub_43E77A"], [1440, "mov r12, rax"], [1441, "mov rax, [rbp+var_B8]"], [1442, "mov edx, 2"], [1443, "mov esi, 3"], [1444, "mov rdi, rax"], [1445, "call sub_43E77A"], [1446, "mov rbx, rax"], [1447, "mov rax, [rbp+var_B8]"], [1448, "mov edx, 2"], [1449, "mov esi, 2"], [1450, "mov rdi, rax"], [1451, "call sub_43E77A"], [1452, "push r13"], [1453, "push [rbp+var_108]"], [1454, "push [rbp+var_110]"], [1455, "push [rbp+var_118]"], [1456, "push [rbp+var_120]"], [1457, "push [rbp+var_128]"], [1458, "push [rbp+var_130]"], [1459, "push [rbp+var_138]"], [1460, "push r15"], [1461, "push r14"], [1462, "mov r9, [rbp+var_140]"], [1463, "mov r8, [rbp+var_148]"], [1464, "mov rcx, [rbp+var_150]"], [1465, "mov rdx, r12"], [1466, "mov rsi, rbx"], [1467, "mov rdi, rax"], [1468, "call sub_4386A7"], [1469, "add rsp, 50h"], [1470, "mov rax, [rbp+var_F8]"], [1471, "mov rdx, [rax+48h]"], [1472, "mov eax, [rbp+var_34]"], [1473, "cdqe"], [1474, "shl rax, 2"], [1475, "add rax, rdx"], [1476, "mov edx, [rax]"], [1477, "mov eax, [rbp+var_38]"], [1478, "add edx, eax"], [1479, "mov rax, [rbp+var_F8]"], [1480, "mov eax, [rax+0Ch]"], [1481, "shr eax, 4"], [1482, "sub eax, 1"], [1483, "cmp edx, eax"], [1484, "jnb short loc_4457E6"], [1485, "mov rax, [rbp+var_F8]"], [1486, "mov eax, [rax+2Ch]"], [1487, "test eax, eax"], [1488, "jz short loc_44581F"], [1489, "mov rax, [rbp+var_F8]"], [1490, "mov eax, [rax+2Ch]"], [1491, "test eax, eax"], [1492, "jz loc_445AC3"], [1493, "mov rax, [rbp+var_F8]"], [1494, "mov rdx, [rax+40h]"], [1495, "mov eax, [rbp+var_34]"], [1496, "cdqe"], [1497, "shl rax, 2"], [1498, "add rax, rdx"], [1499, "mov eax, [rax]"], [1500, "lea edx, [rax-1]"], [1501, "mov eax, [rbp+var_38]"], [1502, "cmp edx, eax"], [1503, "jz loc_445AC3"], [1504, "mov rcx, [rbp+var_F8]"], [1505, "mov eax, [rbp+var_100]"], [1506, "movsxd rdx, eax"], [1507, "mov rax, rdx"], [1508, "shl rax, 3"], [1509, "sub rax, rdx"], [1510, "shl rax, 3"], [1511, "add rax, rcx"], [1512, "add rax, 88h"], [1513, "mov rdx, [rax]"], [1514, "mov rax, [rbp+var_F8]"], [1515, "mov rcx, [rax+48h]"], [1516, "mov eax, [rbp+var_34]"], [1517, "cdqe"], [1518, "shl rax, 2"], [1519, "add rax, rcx"], [1520, "mov ecx, [rax]"], [1521, "mov eax, [rbp+var_38]"], [1522, "add eax, ecx"], [1523, "add eax, 1"], [1524, "mov ecx, eax"], [1525, "mov rax, rcx"], [1526, "shl rax, 2"], [1527, "add rax, rcx"], [1528, "shl rax, 3"], [1529, "add rax, rdx"], [1530, "mov rax, [rax]"], [1531, "mov [rbp+var_C8], rax"], [1532, "mov rax, [rbp+var_C8]"], [1533, "mov edx, 5"], [1534, "mov esi, 1"], [1535, "mov rdi, rax"], [1536, "call sub_43E77A"], [1537, "mov r13, rax"], [1538, "mov rax, [rbp+var_C8]"], [1539, "mov edx, 5"], [1540, "mov esi, 0"], [1541, "mov rdi, rax"], [1542, "call sub_43E77A"], [1543, "mov [rbp+var_108], rax"], [1544, "mov rax, [rbp+var_B8]"], [1545, "mov edx, 5"], [1546, "mov esi, 7"], [1547, "mov rdi, rax"], [1548, "call sub_43E77A"], [1549, "mov [rbp+var_110], rax"], [1550, "mov rax, [rbp+var_B8]"], [1551, "mov edx, 5"], [1552, "mov esi, 6"], [1553, "mov rdi, rax"], [1554, "call sub_43E77A"], [1555, "mov [rbp+var_118], rax"], [1556, "mov rax, [rbp+var_C8]"], [1557, "mov edx, 4"], [1558, "mov esi, 1"], [1559, "mov rdi, rax"], [1560, "call sub_43E77A"], [1561, "mov [rbp+var_120], rax"], [1562, "mov rax, [rbp+var_C8]"], [1563, "mov edx, 4"], [1564, "mov esi, 0"], [1565, "mov rdi, rax"], [1566, "call sub_43E77A"], [1567, "mov [rbp+var_128], rax"], [1568, "mov rax, [rbp+var_B8]"], [1569, "mov edx, 4"], [1570, "mov esi, 7"], [1571, "mov rdi, rax"], [1572, "call sub_43E77A"], [1573, "mov [rbp+var_130], rax"], [1574, "mov rax, [rbp+var_B8]"], [1575, "mov edx, 4"], [1576, "mov esi, 6"], [1577, "mov rdi, rax"], [1578, "call sub_43E77A"], [1579, "mov [rbp+var_138], rax"], [1580, "mov rax, [rbp+var_C8]"], [1581, "mov edx, 3"], [1582, "mov esi, 1"], [1583, "mov rdi, rax"], [1584, "call sub_43E77A"], [1585, "mov r15, rax"], [1586, "mov rax, [rbp+var_C8]"], [1587, "mov edx, 3"], [1588, "mov esi, 0"], [1589, "mov rdi, rax"], [1590, "call sub_43E77A"], [1591, "mov r14, rax"], [1592, "mov rax, [rbp+var_B8]"], [1593, "mov edx, 3"], [1594, "mov esi, 7"], [1595, "mov rdi, rax"], [1596, "call sub_43E77A"], [1597, "mov [rbp+var_140], rax"], [1598, "mov rax, [rbp+var_B8]"], [1599, "mov edx, 3"], [1600, "mov esi, 6"], [1601, "mov rdi, rax"], [1602, "call sub_43E77A"], [1603, "mov [rbp+var_148], rax"], [1604, "mov rax, [rbp+var_C8]"], [1605, "mov edx, 2"], [1606, "mov esi, 1"], [1607, "mov rdi, rax"], [1608, "call sub_43E77A"], [1609, "mov [rbp+var_150], rax"], [1610, "mov rax, [rbp+var_C8]"], [1611, "mov edx, 2"], [1612, "mov esi, 0"], [1613, "mov rdi, rax"], [1614, "call sub_43E77A"], [1615, "mov r12, rax"], [1616, "mov rax, [rbp+var_B8]"], [1617, "mov edx, 2"], [1618, "mov esi, 7"], [1619, "mov rdi, rax"], [1620, "call sub_43E77A"], [1621, "mov rbx, rax"], [1622, "mov rax, [rbp+var_B8]"], [1623, "mov edx, 2"], [1624, "mov esi, 6"], [1625, "mov rdi, rax"], [1626, "call sub_43E77A"], [1627, "push r13"], [1628, "push [rbp+var_108]"], [1629, "push [rbp+var_110]"], [1630, "push [rbp+var_118]"], [1631, "push [rbp+var_120]"], [1632, "push [rbp+var_128]"], [1633, "push [rbp+var_130]"], [1634, "push [rbp+var_138]"], [1635, "push r15"], [1636, "push r14"], [1637, "mov r9, [rbp+var_140]"], [1638, "mov r8, [rbp+var_148]"], [1639, "mov rcx, [rbp+var_150]"], [1640, "mov rdx, r12"], [1641, "mov rsi, rbx"], [1642, "mov rdi, rax"], [1643, "call sub_4386A7"], [1644, "add rsp, 50h"], [1645, "mov eax, [rbp+var_40]"], [1646, "lea edx, [rax+1]"], [1647, "mov rax, [rbp+var_F8]"], [1648, "mov eax, [rax+10h]"], [1649, "shr eax, 4"], [1650, "cmp edx, eax"], [1651, "jge loc_446538"], [1652, "mov rcx, [rbp+var_F8]"], [1653, "mov eax, [rbp+var_100]"], [1654, "movsxd rdx, eax"], [1655, "mov rax, rdx"], [1656, "shl rax, 3"], [1657, "sub rax, rdx"], [1658, "shl rax, 3"], [1659, "add rax, rcx"], [1660, "add rax, 88h"], [1661, "mov rdx, [rax]"], [1662, "mov rax, [rbp+var_F8]"], [1663, "mov rcx, [rax+48h]"], [1664, "mov eax, [rbp+var_34]"], [1665, "cdqe"], [1666, "shl rax, 2"], [1667, "add rax, rcx"], [1668, "mov ecx, [rax]"], [1669, "mov eax, [rbp+var_38]"], [1670, "add eax, ecx"], [1671, "mov ecx, eax"], [1672, "mov rax, rcx"], [1673, "shl rax, 2"], [1674, "add rax, rcx"], [1675, "shl rax, 3"], [1676, "add rax, rdx"], [1677, "mov rax, [rax]"], [1678, "mov [rbp+var_D0], rax"], [1679, "mov rcx, [rbp+var_F8]"], [1680, "mov eax, [rbp+var_100]"], [1681, "movsxd rdx, eax"], [1682, "mov rax, rdx"], [1683, "shl rax, 3"], [1684, "sub rax, rdx"], [1685, "shl rax, 3"], [1686, "add rax, rcx"], [1687, "add rax, 90h"], [1688, "mov rdx, [rax]"], [1689, "mov rax, [rbp+var_F8]"], [1690, "mov rcx, [rax+48h]"], [1691, "mov eax, [rbp+var_34]"], [1692, "cdqe"], [1693, "shl rax, 2"], [1694, "add rax, rcx"], [1695, "mov ecx, [rax]"], [1696, "mov eax, [rbp+var_38]"], [1697, "add eax, ecx"], [1698, "mov ecx, eax"], [1699, "mov rax, rcx"], [1700, "shl rax, 2"], [1701, "add rax, rcx"], [1702, "shl rax, 3"], [1703, "add rax, rdx"], [1704, "mov rax, [rax]"], [1705, "mov [rbp+var_D8], rax"], [1706, "cmp [rbp+var_34], 0"], [1707, "jnz short loc_445BC2"], [1708, "cmp [rbp+var_38], 0"], [1709, "jnz short loc_445BC2"], [1710, "mov rax, [rbp+var_F8]"], [1711, "mov eax, [rax+2Ch]"], [1712, "test eax, eax"], [1713, "jz short loc_445C20"], [1714, "mov rax, [rbp+var_F8]"], [1715, "mov eax, [rax+2Ch]"], [1716, "test eax, eax"], [1717, "jz loc_445D1C"], [1718, "cmp [rbp+var_38], 0"], [1719, "jnz loc_445D1C"], [1720, "mov rax, [rbp+var_F8]"], [1721, "mov rdx, [rax+50h]"], [1722, "mov eax, [rbp+var_3C]"], [1723, "cdqe"], [1724, "shl rax, 2"], [1725, "add rax, rdx"], [1726, "mov edx, [rax]"], [1727, "mov rax, [rbp+var_F8]"], [1728, "mov rcx, [rax+38h]"], [1729, "mov eax, [rbp+var_3C]"], [1730, "cdqe"], [1731, "shl rax, 2"], [1732, "add rax, rcx"], [1733, "mov eax, [rax]"], [1734, "add eax, edx"], [1735, "lea edx, [rax-1]"], [1736, "mov eax, [rbp+var_40]"], [1737, "cmp edx, eax"], [1738, "jz loc_445D1C"], [1739, "mov rax, [rbp+var_D8]"], [1740, "mov edx, 1"], [1741, "mov esi, 0"], [1742, "mov rdi, rax"], [1743, "call sub_43E77A"], [1744, "mov r13, rax"], [1745, "mov rax, [rbp+var_D8]"], [1746, "mov edx, 0"], [1747, "mov esi, 0"], [1748, "mov rdi, rax"], [1749, "call sub_43E77A"], [1750, "mov r12, rax"], [1751, "mov rax, [rbp+var_D0]"], [1752, "mov edx, 7"], [1753, "mov esi, 0"], [1754, "mov rdi, rax"], [1755, "call sub_43E77A"], [1756, "mov rbx, rax"], [1757, "mov rax, [rbp+var_D0]"], [1758, "mov edx, 6"], [1759, "mov esi, 0"], [1760, "mov rdi, rax"], [1761, "call sub_43E77A"], [1762, "mov rcx, r13"], [1763, "mov rdx, r12"], [1764, "mov rsi, rbx"], [1765, "mov rdi, rax"], [1766, "call sub_43884F"], [1767, "mov rax, [rbp+var_D8]"], [1768, "mov edx, 1"], [1769, "mov esi, 1"], [1770, "mov rdi, rax"], [1771, "call sub_43E77A"], [1772, "mov r13, rax"], [1773, "mov rax, [rbp+var_D8]"], [1774, "mov edx, 0"], [1775, "mov esi, 1"], [1776, "mov rdi, rax"], [1777, "call sub_43E77A"], [1778, "mov r12, rax"], [1779, "mov rax, [rbp+var_D0]"], [1780, "mov edx, 7"], [1781, "mov esi, 1"], [1782, "mov rdi, rax"], [1783, "call sub_43E77A"], [1784, "mov rbx, rax"], [1785, "mov rax, [rbp+var_D0]"], [1786, "mov edx, 6"], [1787, "mov esi, 1"], [1788, "mov rdi, rax"], [1789, "call sub_43E77A"], [1790, "mov rcx, r13"], [1791, "mov rdx, r12"], [1792, "mov rsi, rbx"], [1793, "mov rdi, rax"], [1794, "call sub_43884F"], [1795, "mov rax, [rbp+var_F8]"], [1796, "mov eax, [rax+2Ch]"], [1797, "test eax, eax"], [1798, "jz short loc_445D7E"], [1799, "mov rax, [rbp+var_F8]"], [1800, "mov eax, [rax+2Ch]"], [1801, "test eax, eax"], [1802, "jz loc_445FBA"], [1803, "mov rax, [rbp+var_F8]"], [1804, "mov rdx, [rax+50h]"], [1805, "mov eax, [rbp+var_3C]"], [1806, "cdqe"], [1807, "shl rax, 2"], [1808, "add rax, rdx"], [1809, "mov edx, [rax]"], [1810, "mov rax, [rbp+var_F8]"], [1811, "mov rcx, [rax+38h]"], [1812, "mov eax, [rbp+var_3C]"], [1813, "cdqe"], [1814, "shl rax, 2"], [1815, "add rax, rcx"], [1816, "mov eax, [rax]"], [1817, "add eax, edx"], [1818, "lea edx, [rax-1]"], [1819, "mov eax, [rbp+var_40]"], [1820, "cmp edx, eax"], [1821, "jz loc_445FBA"], [1822, "mov rax, [rbp+var_D8]"], [1823, "mov edx, 1"], [1824, "mov esi, 5"], [1825, "mov rdi, rax"], [1826, "call sub_43E77A"], [1827, "mov r13, rax"], [1828, "mov rax, [rbp+var_D8]"], [1829, "mov edx, 1"], [1830, "mov esi, 4"], [1831, "mov rdi, rax"], [1832, "call sub_43E77A"], [1833, "mov [rbp+var_108], rax"], [1834, "mov rax, [rbp+var_D8]"], [1835, "mov edx, 1"], [1836, "mov esi, 3"], [1837, "mov rdi, rax"], [1838, "call sub_43E77A"], [1839, "mov [rbp+var_110], rax"], [1840, "mov rax, [rbp+var_D8]"], [1841, "mov edx, 1"], [1842, "mov esi, 2"], [1843, "mov rdi, rax"], [1844, "call sub_43E77A"], [1845, "mov [rbp+var_118], rax"], [1846, "mov rax, [rbp+var_D8]"], [1847, "mov edx, 0"], [1848, "mov esi, 5"], [1849, "mov rdi, rax"], [1850, "call sub_43E77A"], [1851, "mov [rbp+var_120], rax"], [1852, "mov rax, [rbp+var_D8]"], [1853, "mov edx, 0"], [1854, "mov esi, 4"], [1855, "mov rdi, rax"], [1856, "call sub_43E77A"], [1857, "mov [rbp+var_128], rax"], [1858, "mov rax, [rbp+var_D8]"], [1859, "mov edx, 0"], [1860, "mov esi, 3"], [1861, "mov rdi, rax"], [1862, "call sub_43E77A"], [1863, "mov [rbp+var_130], rax"], [1864, "mov rax, [rbp+var_D8]"], [1865, "mov edx, 0"], [1866, "mov esi, 2"], [1867, "mov rdi, rax"], [1868, "call sub_43E77A"], [1869, "mov [rbp+var_138], rax"], [1870, "mov rax, [rbp+var_D0]"], [1871, "mov edx, 7"], [1872, "mov esi, 5"], [1873, "mov rdi, rax"], [1874, "call sub_43E77A"], [1875, "mov r15, rax"], [1876, "mov rax, [rbp+var_D0]"], [1877, "mov edx, 7"], [1878, "mov esi, 4"], [1879, "mov rdi, rax"], [1880, "call sub_43E77A"], [1881, "mov r14, rax"], [1882, "mov rax, [rbp+var_D0]"], [1883, "mov edx, 7"], [1884, "mov esi, 3"], [1885, "mov rdi, rax"], [1886, "call sub_43E77A"], [1887, "mov [rbp+var_140], rax"], [1888, "mov rax, [rbp+var_D0]"], [1889, "mov edx, 7"], [1890, "mov esi, 2"], [1891, "mov rdi, rax"], [1892, "call sub_43E77A"], [1893, "mov [rbp+var_148], rax"], [1894, "mov rax, [rbp+var_D0]"], [1895, "mov edx, 6"], [1896, "mov esi, 5"], [1897, "mov rdi, rax"], [1898, "call sub_43E77A"], [1899, "mov [rbp+var_150], rax"], [1900, "mov rax, [rbp+var_D0]"], [1901, "mov edx, 6"], [1902, "mov esi, 4"], [1903, "mov rdi, rax"], [1904, "call sub_43E77A"], [1905, "mov r12, rax"], [1906, "mov rax, [rbp+var_D0]"], [1907, "mov edx, 6"], [1908, "mov esi, 3"], [1909, "mov rdi, rax"], [1910, "call sub_43E77A"], [1911, "mov rbx, rax"], [1912, "mov rax, [rbp+var_D0]"], [1913, "mov edx, 6"], [1914, "mov esi, 2"], [1915, "mov rdi, rax"], [1916, "call sub_43E77A"], [1917, "push r13"], [1918, "push [rbp+var_108]"], [1919, "push [rbp+var_110]"], [1920, "push [rbp+var_118]"], [1921, "push [rbp+var_120]"], [1922, "push [rbp+var_128]"], [1923, "push [rbp+var_130]"], [1924, "push [rbp+var_138]"], [1925, "push r15"], [1926, "push r14"], [1927, "mov r9, [rbp+var_140]"], [1928, "mov r8, [rbp+var_148]"], [1929, "mov rcx, [rbp+var_150]"], [1930, "mov rdx, r12"], [1931, "mov rsi, rbx"], [1932, "mov rdi, rax"], [1933, "call sub_4386A7"], [1934, "add rsp, 50h"], [1935, "mov rax, [rbp+var_F8]"], [1936, "mov rdx, [rax+48h]"], [1937, "mov eax, [rbp+var_34]"], [1938, "cdqe"], [1939, "shl rax, 2"], [1940, "add rax, rdx"], [1941, "mov edx, [rax]"], [1942, "mov eax, [rbp+var_38]"], [1943, "add edx, eax"], [1944, "mov rax, [rbp+var_F8]"], [1945, "mov eax, [rax+0Ch]"], [1946, "shr eax, 4"], [1947, "sub eax, 1"], [1948, "cmp edx, eax"], [1949, "jnb short loc_445FFA"], [1950, "mov rax, [rbp+var_F8]"], [1951, "mov eax, [rax+2Ch]"], [1952, "test eax, eax"], [1953, "jz short loc_446075"], [1954, "mov rax, [rbp+var_F8]"], [1955, "mov eax, [rax+2Ch]"], [1956, "test eax, eax"], [1957, "jz loc_446381"], [1958, "mov rax, [rbp+var_F8]"], [1959, "mov rdx, [rax+40h]"], [1960, "mov eax, [rbp+var_34]"], [1961, "cdqe"], [1962, "shl rax, 2"], [1963, "add rax, rdx"], [1964, "mov eax, [rax]"], [1965, "lea edx, [rax-1]"], [1966, "mov eax, [rbp+var_38]"], [1967, "cmp edx, eax"], [1968, "jz loc_446381"], [1969, "mov rax, [rbp+var_F8]"], [1970, "mov rdx, [rax+50h]"], [1971, "mov eax, [rbp+var_3C]"], [1972, "cdqe"], [1973, "shl rax, 2"], [1974, "add rax, rdx"], [1975, "mov edx, [rax]"], [1976, "mov rax, [rbp+var_F8]"], [1977, "mov rcx, [rax+38h]"], [1978, "mov eax, [rbp+var_3C]"], [1979, "cdqe"], [1980, "shl rax, 2"], [1981, "add rax, rcx"], [1982, "mov eax, [rax]"], [1983, "add eax, edx"], [1984, "lea edx, [rax-1]"], [1985, "mov eax, [rbp+var_40]"], [1986, "cmp edx, eax"], [1987, "jz loc_446381"], [1988, "mov rcx, [rbp+var_F8]"], [1989, "mov eax, [rbp+var_100]"], [1990, "movsxd rdx, eax"], [1991, "mov rax, rdx"], [1992, "shl rax, 3"], [1993, "sub rax, rdx"], [1994, "shl rax, 3"], [1995, "add rax, rcx"], [1996, "add rax, 88h"], [1997, "mov rdx, [rax]"], [1998, "mov rax, [rbp+var_F8]"], [1999, "mov rcx, [rax+48h]"], [2000, "mov eax, [rbp+var_34]"], [2001, "cdqe"], [2002, "shl rax, 2"], [2003, "add rax, rcx"], [2004, "mov ecx, [rax]"], [2005, "mov eax, [rbp+var_38]"], [2006, "add eax, ecx"], [2007, "add eax, 1"], [2008, "mov ecx, eax"], [2009, "mov rax, rcx"], [2010, "shl rax, 2"], [2011, "add rax, rcx"], [2012, "shl rax, 3"], [2013, "add rax, rdx"], [2014, "mov rax, [rax]"], [2015, "mov [rbp+var_E0], rax"], [2016, "mov rcx, [rbp+var_F8]"], [2017, "mov eax, [rbp+var_100]"], [2018, "movsxd rdx, eax"], [2019, "mov rax, rdx"], [2020, "shl rax, 3"], [2021, "sub rax, rdx"], [2022, "shl rax, 3"], [2023, "add rax, rcx"], [2024, "add rax, 90h"], [2025, "mov rdx, [rax]"], [2026, "mov rax, [rbp+var_F8]"], [2027, "mov rcx, [rax+48h]"], [2028, "mov eax, [rbp+var_34]"], [2029, "cdqe"], [2030, "shl rax, 2"], [2031, "add rax, rcx"], [2032, "mov ecx, [rax]"], [2033, "mov eax, [rbp+var_38]"], [2034, "add eax, ecx"], [2035, "add eax, 1"], [2036, "mov ecx, eax"], [2037, "mov rax, rcx"], [2038, "shl rax, 2"], [2039, "add rax, rcx"], [2040, "shl rax, 3"], [2041, "add rax, rdx"], [2042, "mov rax, [rax]"], [2043, "mov [rbp+var_E8], rax"], [2044, "mov rax, [rbp+var_E8]"], [2045, "mov edx, 1"], [2046, "mov esi, 1"], [2047, "mov rdi, rax"], [2048, "call sub_43E77A"], [2049, "mov r13, rax"], [2050, "mov rax, [rbp+var_E8]"], [2051, "mov edx, 1"], [2052, "mov esi, 0"], [2053, "mov rdi, rax"], [2054, "call sub_43E77A"], [2055, "mov [rbp+var_108], rax"], [2056, "mov rax, [rbp+var_D8]"], [2057, "mov edx, 1"], [2058, "mov esi, 7"], [2059, "mov rdi, rax"], [2060, "call sub_43E77A"], [2061, "mov [rbp+var_110], rax"], [2062, "mov rax, [rbp+var_D8]"], [2063, "mov edx, 1"], [2064, "mov esi, 6"], [2065, "mov rdi, rax"], [2066, "call sub_43E77A"], [2067, "mov [rbp+var_118], rax"], [2068, "mov rax, [rbp+var_E8]"], [2069, "mov edx, 0"], [2070, "mov esi, 1"], [2071, "mov rdi, rax"], [2072, "call sub_43E77A"], [2073, "mov [rbp+var_120], rax"], [2074, "mov rax, [rbp+var_E8]"], [2075, "mov edx, 0"], [2076, "mov esi, 0"], [2077, "mov rdi, rax"], [2078, "call sub_43E77A"], [2079, "mov [rbp+var_128], rax"], [2080, "mov rax, [rbp+var_D8]"], [2081, "mov edx, 0"], [2082, "mov esi, 7"], [2083, "mov rdi, rax"], [2084, "call sub_43E77A"], [2085, "mov [rbp+var_130], rax"], [2086, "mov rax, [rbp+var_D8]"], [2087, "mov edx, 0"], [2088, "mov esi, 6"], [2089, "mov rdi, rax"], [2090, "call sub_43E77A"], [2091, "mov [rbp+var_138], rax"], [2092, "mov rax, [rbp+var_E0]"], [2093, "mov edx, 7"], [2094, "mov esi, 1"], [2095, "mov rdi, rax"], [2096, "call sub_43E77A"], [2097, "mov r15, rax"], [2098, "mov rax, [rbp+var_E0]"], [2099, "mov edx, 7"], [2100, "mov esi, 0"], [2101, "mov rdi, rax"], [2102, "call sub_43E77A"], [2103, "mov r14, rax"], [2104, "mov rax, [rbp+var_D0]"], [2105, "mov edx, 7"], [2106, "mov esi, 7"], [2107, "mov rdi, rax"], [2108, "call sub_43E77A"], [2109, "mov [rbp+var_140], rax"], [2110, "mov rax, [rbp+var_D0]"], [2111, "mov edx, 7"], [2112, "mov esi, 6"], [2113, "mov rdi, rax"], [2114, "call sub_43E77A"], [2115, "mov [rbp+var_148], rax"], [2116, "mov rax, [rbp+var_E0]"], [2117, "mov edx, 6"], [2118, "mov esi, 1"], [2119, "mov rdi, rax"], [2120, "call sub_43E77A"], [2121, "mov [rbp+var_150], rax"], [2122, "mov rax, [rbp+var_E0]"], [2123, "mov edx, 6"], [2124, "mov esi, 0"], [2125, "mov rdi, rax"], [2126, "call sub_43E77A"], [2127, "mov r12, rax"], [2128, "mov rax, [rbp+var_D0]"], [2129, "mov edx, 6"], [2130, "mov esi, 7"], [2131, "mov rdi, rax"], [2132, "call sub_43E77A"], [2133, "mov rbx, rax"], [2134, "mov rax, [rbp+var_D0]"], [2135, "mov edx, 6"], [2136, "mov esi, 6"], [2137, "mov rdi, rax"], [2138, "call sub_43E77A"], [2139, "push r13"], [2140, "push [rbp+var_108]"], [2141, "push [rbp+var_110]"], [2142, "push [rbp+var_118]"], [2143, "push [rbp+var_120]"], [2144, "push [rbp+var_128]"], [2145, "push [rbp+var_130]"], [2146, "push [rbp+var_138]"], [2147, "push r15"], [2148, "push r14"], [2149, "mov r9, [rbp+var_140]"], [2150, "mov r8, [rbp+var_148]"], [2151, "mov rcx, [rbp+var_150]"], [2152, "mov rdx, r12"], [2153, "mov rsi, rbx"], [2154, "mov rdi, rax"], [2155, "call sub_4386A7"], [2156, "add rsp, 50h"]], "data_dep": [[12, 9], [13, 12], [14, 13], [16, 10], [17, 16], [18, 8], [19, 18], [20, 19], [21, 20], [27, 9], [28, 27], [34, 15], [34, 34], [35, 8], [36, 35], [37, 34], [37, 15], [39, 37], [40, 36], [40, 39], [41, 40], [42, 8], [43, 42], [44, 15], [44, 34], [46, 44], [47, 43], [47, 46], [48, 47], [49, 41], [49, 48], [50, 41], [50, 49], [51, 14], [52, 51], [52, 50], [53, 52], [57, 56], [59, 58], [60, 59], [61, 60], [64, 63], [65, 64], [66, 65], [67, 64], [67, 66], [68, 67], [69, 62], [69, 68], [70, 69], [71, 70], [73, 72], [76, 74], [77, 76], [77, 73], [78, 77], [79, 78], [80, 79], [81, 80], [82, 79], [82, 81], [83, 82], [84, 71], [84, 83], [85, 84], [86, 85], [87, 86], [90, 87], [92, 91], [93, 86], [96, 93], [98, 97], [99, 86], [102, 99], [104, 103], [105, 86], [108, 105], [110, 92], [111, 98], [112, 104], [113, 109], [115, 86], [118, 115], [120, 119], [121, 86], [124, 121], [126, 125], [127, 86], [130, 127], [132, 131], [133, 86], [136, 133], [138, 120], [139, 126], [140, 132], [141, 137], [144, 143], [145, 144], [145, 139], [147, 146], [147, 145], [148, 147], [150, 149], [151, 150], [152, 151], [155, 154], [156, 155], [157, 156], [158, 157], [158, 155], [159, 158], [160, 159], [160, 153], [161, 160], [162, 161], [164, 163], [167, 165], [168, 164], [168, 167], [169, 168], [171, 170], [174, 172], [175, 171], [175, 174], [176, 175], [177, 169], [177, 176], [178, 177], [179, 178], [180, 179], [181, 180], [182, 179], [182, 181], [183, 182], [184, 183], [184, 162], [185, 184], [186, 185], [187, 186], [190, 187], [192, 191], [193, 186], [196, 193], [198, 197], [199, 186], [202, 199], [204, 203], [205, 186], [208, 205], [210, 192], [211, 198], [212, 204], [213, 209], [215, 186], [218, 215], [220, 219], [221, 186], [224, 221], [226, 225], [227, 186], [230, 227], [232, 231], [233, 186], [236, 233], [238, 220], [239, 226], [240, 232], [241, 237], [244, 243], [249, 248], [250, 249], [251, 250], [252, 249], [252, 251], [253, 252], [254, 253], [254, 247], [255, 254], [256, 255], [258, 257], [261, 259], [262, 261], [262, 258], [263, 262], [264, 435], [264, 245], [265, 263], [265, 264], [266, 265], [267, 266], [268, 267], [269, 266], [269, 268], [270, 269], [271, 256], [271, 270], [272, 271], [273, 272], [274, 273], [277, 274], [279, 278], [280, 273], [283, 280], [285, 284], [286, 273], [289, 286], [291, 290], [292, 273], [295, 292], [297, 279], [298, 285], [299, 291], [300, 296], [302, 273], [305, 302], [307, 306], [308, 273], [311, 308], [313, 312], [314, 273], [317, 314], [319, 318], [320, 273], [323, 320], [325, 307], [326, 313], [327, 319], [328, 324], [331, 330], [334, 332], [335, 334], [335, 331], [336, 335], [337, 245], [337, 435], [338, 336], [338, 337], [339, 338], [340, 339], [342, 341], [343, 342], [344, 343], [346, 345], [347, 346], [348, 347], [349, 435], [349, 245], [350, 349], [353, 352], [354, 353], [355, 354], [356, 353], [356, 355], [357, 356], [358, 351], [358, 357], [359, 358], [360, 359], [362, 361], [365, 363], [366, 362], [366, 365], [367, 366], [368, 245], [368, 435], [369, 368], [369, 367], [370, 369], [371, 370], [372, 371], [373, 372], [374, 371], [374, 373], [375, 374], [376, 360], [376, 375], [377, 376], [378, 377], [379, 273], [382, 379], [384, 383], [385, 273], [388, 385], [390, 389], [391, 378], [394, 391], [396, 395], [397, 378], [400, 397], [402, 384], [403, 390], [404, 396], [405, 401], [407, 273], [410, 407], [412, 411], [413, 273], [416, 413], [418, 417], [419, 378], [422, 419], [424, 423], [425, 378], [428, 425], [430, 412], [431, 418], [432, 424], [433, 429], [435, 245], [435, 435], [437, 436], [440, 438], [441, 440], [441, 437], [442, 441], [443, 435], [443, 245], [444, 443], [444, 442], [445, 444], [447, 446], [449, 448], [450, 449], [451, 450], [454, 453], [455, 454], [456, 455], [457, 454], [457, 456], [458, 457], [459, 458], [459, 452], [460, 459], [461, 460], [463, 462], [466, 464], [467, 463], [467, 466], [468, 467], [469, 468], [470, 469], [471, 470], [472, 471], [472, 469], [473, 472], [474, 473], [474, 461], [475, 474], [476, 475], [477, 476], [480, 477], [482, 481], [483, 476], [486, 483], [488, 487], [489, 476], [492, 489], [494, 493], [495, 476], [498, 495], [500, 482], [501, 488], [502, 494], [503, 499], [506, 505], [507, 506], [507, 442], [507, 501], [509, 507], [509, 508], [510, 509], [512, 511], [513, 512], [514, 513], [517, 516], [518, 517], [519, 518], [520, 519], [520, 517], [521, 520], [522, 521], [522, 515], [523, 522], [524, 523], [526, 525], [529, 527], [530, 526], [530, 529], [531, 530], [533, 532], [536, 534], [537, 533], [537, 536], [538, 537], [539, 538], [539, 531], [540, 539], [541, 540], [542, 541], [543, 542], [544, 541], [544, 543], [545, 544], [546, 545], [546, 524], [547, 546], [548, 547], [549, 548], [552, 549], [554, 553], [555, 548], [558, 555], [560, 559], [561, 548], [564, 561], [566, 565], [567, 548], [570, 567], [572, 554], [573, 560], [574, 566], [575, 571], [578, 239], [578, 573], [578, 507], [578, 577], [578, 145], [580, 579], [581, 580], [582, 581], [582, 578], [583, 582], [585, 584], [586, 585], [587, 586], [589, 588], [592, 590], [593, 589], [593, 592], [594, 593], [596, 595], [599, 597], [600, 596], [600, 599], [601, 600], [602, 594], [602, 601], [603, 602], [603, 594], [605, 604], [605, 603], [606, 605], [611, 610], [612, 611], [613, 612], [614, 613], [614, 611], [615, 614], [616, 615], [616, 609], [617, 616], [618, 617], [620, 619], [623, 621], [624, 620], [624, 623], [625, 624], [626, 797], [626, 607], [627, 625], [627, 626], [628, 627], [629, 628], [630, 629], [631, 628], [631, 630], [632, 631], [633, 618], [633, 632], [634, 633], [635, 634], [636, 635], [639, 636], [641, 640], [642, 635], [645, 642], [647, 646], [648, 635], [651, 648], [653, 652], [654, 635], [657, 654], [659, 641], [660, 647], [661, 653], [662, 658], [664, 635], [667, 664], [669, 668], [670, 635], [673, 670], [675, 674], [676, 635], [679, 676], [681, 680], [682, 635], [685, 682], [687, 669], [688, 675], [689, 681], [690, 686], [693, 692], [696, 694], [697, 693], [697, 696], [698, 697], [699, 607], [699, 797], [700, 699], [700, 698], [701, 700], [702, 701], [704, 703], [705, 704], [706, 705], [708, 707], [709, 708], [710, 709], [711, 797], [711, 607], [712, 711], [715, 714], [716, 715], [717, 716], [718, 715], [718, 717], [719, 718], [720, 719], [720, 713], [721, 720], [722, 721], [724, 723], [727, 725], [728, 724], [728, 727], [729, 728], [730, 607], [730, 797], [731, 729], [731, 730], [732, 731], [733, 732], [734, 733], [735, 734], [736, 733], [736, 735], [737, 736], [738, 722], [738, 737], [739, 738], [740, 739], [741, 635], [744, 741], [746, 745], [747, 635], [750, 747], [752, 751], [753, 740], [756, 753], [758, 757], [759, 740], [762, 759], [764, 746], [765, 752], [766, 758], [767, 763], [769, 635], [772, 769], [774, 773], [775, 635], [778, 775], [780, 779], [781, 740], [784, 781], [786, 785], [787, 740], [790, 787], [792, 774], [793, 780], [794, 786], [795, 791], [797, 797], [797, 607], [799, 798], [802, 800], [803, 802], [803, 799], [804, 803], [805, 797], [805, 607], [806, 805], [806, 804], [807, 806], [809, 808], [811, 810], [812, 811], [813, 812], [816, 815], [817, 816], [818, 817], [819, 816], [819, 818], [820, 819], [821, 820], [821, 814], [822, 821], [823, 822], [825, 824], [828, 826], [829, 825], [829, 828], [830, 829], [831, 830], [832, 831], [833, 832], [834, 831], [834, 833], [835, 834], [836, 835], [836, 823], [837, 836], [838, 837], [839, 838], [842, 839], [844, 843], [845, 838], [848, 845], [850, 849], [851, 838], [854, 851], [856, 855], [857, 838], [860, 857], [862, 844], [863, 850], [864, 856], [865, 861], [868, 867], [869, 804], [869, 863], [869, 868], [871, 869], [871, 870], [872, 871], [874, 873], [875, 874], [876, 875], [879, 878], [880, 879], [881, 880], [882, 879], [882, 881], [883, 882], [884, 883], [884, 877], [885, 884], [886, 885], [888, 887], [891, 889], [892, 888], [892, 891], [893, 892], [895, 894], [898, 896], [899, 895], [899, 898], [900, 899], [901, 900], [901, 893], [902, 901], [903, 902], [904, 903], [905, 904], [906, 903], [906, 905], [907, 906], [908, 907], [908, 886], [909, 908], [910, 909], [911, 910], [914, 911], [916, 915], [917, 910], [920, 917], [922, 921], [923, 910], [926, 923], [928, 927], [929, 910], [932, 929], [934, 916], [935, 922], [936, 928], [937, 933], [940, 939], [941, 940], [942, 941], [944, 943], [947, 945], [948, 947], [948, 944], [949, 948], [951, 950], [954, 952], [955, 951], [955, 954], [956, 955], [957, 956], [957, 949], [958, 949], [958, 957], [960, 958], [960, 959], [961, 960], [963, 962], [964, 963], [965, 958], [965, 964], [967, 966], [967, 965], [968, 967], [973, 972], [974, 973], [975, 974], [976, 975], [976, 973], [977, 976], [978, 977], [978, 971], [979, 978], [980, 979], [982, 981], [985, 983], [986, 982], [986, 985], [987, 986], [988, 1159], [988, 969], [989, 987], [989, 988], [990, 989], [991, 990], [992, 991], [993, 990], [993, 992], [994, 993], [995, 980], [995, 994], [996, 995], [997, 996], [998, 997], [1001, 998], [1003, 1002], [1004, 997], [1007, 1004], [1009, 1008], [1010, 997], [1013, 1010], [1015, 1014], [1016, 997], [1019, 1016], [1021, 1003], [1022, 1009], [1023, 1015], [1024, 1020], [1026, 997], [1029, 1026], [1031, 1030], [1032, 997], [1035, 1032], [1037, 1036], [1038, 997], [1041, 1038], [1043, 1042], [1044, 997], [1047, 1044], [1049, 1031], [1050, 1037], [1051, 1043], [1052, 1048], [1055, 1054], [1058, 1056], [1059, 1055], [1059, 1058], [1060, 1059], [1061, 969], [1061, 1159], [1062, 1061], [1062, 1060], [1063, 1062], [1064, 1063], [1066, 1065], [1067, 1066], [1068, 1067], [1070, 1069], [1071, 1070], [1072, 1071], [1073, 969], [1073, 1159], [1074, 1073], [1077, 1076], [1078, 1077], [1079, 1078], [1080, 1077], [1080, 1079], [1081, 1080], [1082, 1081], [1082, 1075], [1083, 1082], [1084, 1083], [1086, 1085], [1089, 1087], [1090, 1086], [1090, 1089], [1091, 1090], [1092, 969], [1092, 1159], [1093, 1092], [1093, 1091], [1094, 1093], [1095, 1094], [1096, 1095], [1097, 1096], [1098, 1095], [1098, 1097], [1099, 1098], [1100, 1099], [1100, 1084], [1101, 1100], [1102, 1101], [1103, 997], [1106, 1103], [1108, 1107], [1109, 997], [1112, 1109], [1114, 1113], [1115, 1102], [1118, 1115], [1120, 1119], [1121, 1102], [1124, 1121], [1126, 1108], [1127, 1114], [1128, 1120], [1129, 1125], [1131, 997], [1134, 1131], [1136, 1135], [1137, 997], [1140, 1137], [1142, 1141], [1143, 1102], [1146, 1143], [1148, 1147], [1149, 1102], [1152, 1149], [1154, 1136], [1155, 1142], [1156, 1148], [1157, 1153], [1159, 1159], [1159, 969], [1161, 1160], [1164, 1162], [1165, 1161], [1165, 1164], [1166, 1165], [1167, 1159], [1167, 969], [1168, 1167], [1168, 1166], [1169, 1168], [1171, 1170], [1173, 1172], [1174, 1173], [1175, 1174], [1178, 1177], [1179, 1178], [1180, 1179], [1181, 1178], [1181, 1180], [1182, 1181], [1183, 1182], [1183, 1176], [1184, 1183], [1185, 1184], [1187, 1186], [1190, 1188], [1191, 1187], [1191, 1190], [1192, 1191], [1193, 1192], [1194, 1193], [1195, 1194], [1196, 1193], [1196, 1195], [1197, 1196], [1198, 1185], [1198, 1197], [1199, 1198], [1200, 1199], [1201, 1200], [1204, 1201], [1206, 1205], [1207, 1200], [1210, 1207], [1212, 1211], [1213, 1200], [1216, 1213], [1218, 1217], [1219, 1200], [1222, 1219], [1224, 1206], [1225, 1212], [1226, 1218], [1227, 1223], [1230, 1229], [1231, 1225], [1231, 1230], [1231, 1166], [1233, 1231], [1233, 1232], [1234, 1233], [1236, 1235], [1237, 1236], [1238, 1237], [1241, 1240], [1242, 1241], [1243, 1242], [1244, 1241], [1244, 1243], [1245, 1244], [1246, 1245], [1246, 1239], [1247, 1246], [1248, 1247], [1250, 1249], [1253, 1251], [1254, 1250], [1254, 1253], [1255, 1254], [1257, 1256], [1260, 1258], [1261, 1257], [1261, 1260], [1262, 1261], [1263, 1255], [1263, 1262], [1264, 1263], [1265, 1264], [1266, 1265], [1267, 1266], [1268, 1267], [1268, 1265], [1269, 1268], [1270, 1269], [1270, 1248], [1271, 1270], [1272, 1271], [1273, 1272], [1276, 1273], [1278, 1277], [1279, 1272], [1282, 1279], [1284, 1283], [1285, 1272], [1288, 1285], [1290, 1289], [1291, 1272], [1294, 1291], [1296, 1278], [1297, 1284], [1298, 1290], [1299, 1295], [1305, 1304], [1306, 1305], [1307, 1306], [1308, 1307], [1308, 1305], [1309, 1308], [1310, 1309], [1310, 1303], [1311, 1310], [1312, 1311], [1314, 1313], [1317, 1315], [1318, 1314], [1318, 1317], [1319, 1318], [1321, 1320], [1321, 1319], [1322, 1321], [1323, 1322], [1324, 1323], [1325, 1322], [1325, 1324], [1326, 1325], [1327, 1312], [1327, 1326], [1328, 1327], [1329, 1328], [1332, 1331], [1333, 1332], [1334, 1333], [1335, 1332], [1335, 1334], [1336, 1335], [1337, 1336], [1337, 1330], [1338, 1337], [1339, 1338], [1341, 1340], [1344, 1342], [1345, 1344], [1345, 1341], [1346, 1345], [1348, 1346], [1348, 1347], [1349, 1348], [1350, 1349], [1351, 1350], [1352, 1349], [1352, 1351], [1353, 1352], [1354, 1339], [1354, 1353], [1355, 1354], [1356, 1355], [1357, 1329], [1360, 1357], [1362, 1361], [1363, 1329], [1366, 1363], [1368, 1367], [1369, 1329], [1372, 1369], [1374, 1373], [1375, 1329], [1378, 1375], [1380, 1379], [1381, 1329], [1384, 1381], [1386, 1385], [1387, 1329], [1390, 1387], [1392, 1391], [1393, 1329], [1396, 1393], [1398, 1397], [1399, 1329], [1402, 1399], [1404, 1403], [1405, 1329], [1408, 1405], [1410, 1409], [1411, 1329], [1414, 1411], [1416, 1415], [1417, 1329], [1420, 1417], [1422, 1421], [1423, 1329], [1426, 1423], [1428, 1427], [1429, 1329], [1432, 1429], [1434, 1433], [1435, 1329], [1438, 1435], [1440, 1439], [1441, 1329], [1444, 1441], [1446, 1445], [1447, 1329], [1450, 1447], [1452, 1362], [1453, 1368], [1454, 1374], [1455, 1380], [1456, 1386], [1457, 1392], [1458, 1398], [1459, 1404], [1460, 1410], [1461, 1416], [1462, 1422], [1463, 1428], [1464, 1434], [1465, 1440], [1466, 1446], [1467, 1451], [1471, 1470], [1474, 1472], [1475, 1474], [1475, 1471], [1476, 1475], [1478, 1477], [1478, 1476], [1480, 1479], [1481, 1480], [1482, 1481], [1483, 1478], [1483, 1482], [1484, 1483], [1486, 1485], [1487, 1486], [1488, 1487], [1490, 1489], [1491, 1490], [1492, 1491], [1494, 1493], [1497, 1495], [1498, 1497], [1498, 1494], [1499, 1498], [1500, 1499], [1500, 1494], [1502, 1501], [1502, 1500], [1503, 1502], [1506, 1505], [1507, 1506], [1508, 1507], [1509, 1506], [1509, 1508], [1510, 1509], [1511, 1510], [1511, 1504], [1512, 1511], [1513, 1512], [1515, 1514], [1518, 1516], [1519, 1515], [1519, 1518], [1520, 1519], [1522, 1520], [1522, 1521], [1523, 1522], [1524, 1523], [1525, 1524], [1526, 1525], [1527, 1524], [1527, 1526], [1528, 1527], [1529, 1513], [1529, 1528], [1530, 1529], [1531, 1530], [1532, 1531], [1535, 1532], [1537, 1536], [1538, 1531], [1541, 1538], [1543, 1542], [1544, 1329], [1547, 1544], [1549, 1548], [1550, 1329], [1553, 1550], [1555, 1554], [1556, 1531], [1559, 1556], [1561, 1560], [1562, 1531], [1565, 1562], [1567, 1566], [1568, 1329], [1571, 1568], [1573, 1572], [1574, 1329], [1577, 1574], [1579, 1578], [1580, 1531], [1583, 1580], [1585, 1584], [1586, 1531], [1589, 1586], [1591, 1590], [1592, 1329], [1595, 1592], [1597, 1596], [1598, 1329], [1601, 1598], [1603, 1602], [1604, 1531], [1607, 1604], [1609, 1608], [1610, 1531], [1613, 1610], [1615, 1614], [1616, 1329], [1619, 1616], [1621, 1620], [1622, 1329], [1625, 1622], [1627, 1537], [1628, 1543], [1629, 1549], [1630, 1555], [1631, 1561], [1632, 1567], [1633, 1573], [1634, 1579], [1635, 1585], [1636, 1591], [1637, 1597], [1638, 1603], [1639, 1609], [1640, 1615], [1641, 1621], [1642, 1626], [1644, 1469], [1646, 1500], [1646, 1645], [1646, 1640], [1646, 1478], [1648, 1647], [1649, 1648], [1650, 1646], [1650, 1649], [1651, 1650], [1654, 1653], [1655, 1654], [1656, 1655], [1657, 1654], [1657, 1656], [1658, 1657], [1659, 1652], [1659, 1658], [1660, 1659], [1661, 1660], [1663, 1662], [1666, 1664], [1667, 1666], [1667, 1663], [1668, 1667], [1670, 1669], [1670, 1668], [1671, 1670], [1672, 1671], [1673, 1672], [1674, 1673], [1674, 1671], [1675, 1674], [1676, 1675], [1676, 1661], [1677, 1676], [1678, 1677], [1681, 1680], [1682, 1681], [1683, 1682], [1684, 1681], [1684, 1683], [1685, 1684], [1686, 1685], [1686, 1679], [1687, 1686], [1688, 1687], [1690, 1689], [1693, 1691], [1694, 1690], [1694, 1693], [1695, 1694], [1697, 1696], [1697, 1695], [1698, 1697], [1699, 1698], [1700, 1699], [1701, 1700], [1701, 1698], [1702, 1701], [1703, 1702], [1703, 1688], [1704, 1703], [1705, 1704], [1707, 1706], [1709, 1708], [1711, 1710], [1712, 1711], [1713, 1712], [1715, 1714], [1716, 1715], [1717, 1716], [1719, 1718], [1721, 1720], [1724, 1722], [1725, 1721], [1725, 1724], [1726, 1725], [1728, 1727], [1731, 1729], [1732, 1731], [1732, 1728], [1733, 1732], [1734, 1733], [1734, 1726], [1735, 1734], [1735, 1726], [1737, 1736], [1737, 1735], [1738, 1737], [1739, 1705], [1742, 1739], [1744, 1743], [1745, 1705], [1748, 1745], [1750, 1749], [1751, 1678], [1754, 1751], [1756, 1755], [1757, 1678], [1760, 1757], [1762, 1744], [1763, 1750], [1764, 1756], [1765, 1761], [1767, 1705], [1770, 1767], [1772, 1771], [1773, 1705], [1776, 1773], [1778, 1777], [1779, 1678], [1782, 1779], [1784, 1783], [1785, 1678], [1788, 1785], [1790, 1772], [1791, 1778], [1792, 1784], [1793, 1789], [1796, 1795], [1797, 1796], [1798, 1797], [1800, 1799], [1801, 1800], [1802, 1801], [1804, 1803], [1807, 1805], [1808, 1804], [1808, 1807], [1809, 1808], [1811, 1810], [1814, 1812], [1815, 1811], [1815, 1814], [1816, 1815], [1817, 1816], [1817, 1809], [1818, 1817], [1818, 1809], [1820, 1818], [1820, 1819], [1821, 1820], [1822, 1705], [1825, 1822], [1827, 1826], [1828, 1705], [1831, 1828], [1833, 1832], [1834, 1705], [1837, 1834], [1839, 1838], [1840, 1705], [1843, 1840], [1845, 1844], [1846, 1705], [1849, 1846], [1851, 1850], [1852, 1705], [1855, 1852], [1857, 1856], [1858, 1705], [1861, 1858], [1863, 1862], [1864, 1705], [1867, 1864], [1869, 1868], [1870, 1678], [1873, 1870], [1875, 1874], [1876, 1678], [1879, 1876], [1881, 1880], [1882, 1678], [1885, 1882], [1887, 1886], [1888, 1678], [1891, 1888], [1893, 1892], [1894, 1678], [1897, 1894], [1899, 1898], [1900, 1678], [1903, 1900], [1905, 1904], [1906, 1678], [1909, 1906], [1911, 1910], [1912, 1678], [1915, 1912], [1917, 1827], [1918, 1833], [1919, 1839], [1920, 1845], [1921, 1851], [1922, 1857], [1923, 1863], [1924, 1869], [1925, 1875], [1926, 1881], [1927, 1887], [1928, 1893], [1929, 1899], [1930, 1905], [1931, 1911], [1932, 1916], [1934, 1469], [1934, 1644], [1936, 1935], [1939, 1937], [1940, 1936], [1940, 1939], [1941, 1940], [1943, 1942], [1943, 1941], [1945, 1944], [1946, 1945], [1947, 1946], [1948, 1943], [1948, 1947], [1949, 1948], [1951, 1950], [1952, 1951], [1953, 1952], [1955, 1954], [1956, 1955], [1957, 1956], [1959, 1958], [1962, 1960], [1963, 1959], [1963, 1962], [1964, 1963], [1965, 1959], [1965, 1964], [1967, 1966], [1967, 1965], [1968, 1967], [1970, 1969], [1973, 1971], [1974, 1970], [1974, 1973], [1975, 1974], [1977, 1976], [1980, 1978], [1981, 1977], [1981, 1980], [1982, 1981], [1983, 1982], [1983, 1975], [1984, 1983], [1984, 1975], [1986, 1984], [1986, 1985], [1987, 1986], [1990, 1989], [1991, 1990], [1992, 1991], [1993, 1990], [1993, 1992], [1994, 1993], [1995, 1988], [1995, 1994], [1996, 1995], [1997, 1996], [1999, 1998], [2002, 2000], [2003, 2002], [2003, 1999], [2004, 2003], [2006, 2004], [2006, 2005], [2007, 2006], [2008, 2007], [2009, 2008], [2010, 2009], [2011, 2008], [2011, 2010], [2012, 2011], [2013, 2012], [2013, 1997], [2014, 2013], [2015, 2014], [2018, 2017], [2019, 2018], [2020, 2019], [2021, 2018], [2021, 2020], [2022, 2021], [2023, 2016], [2023, 2022], [2024, 2023], [2025, 2024], [2027, 2026], [2030, 2028], [2031, 2027], [2031, 2030], [2032, 2031], [2034, 2033], [2034, 2032], [2035, 2034], [2036, 2035], [2037, 2036], [2038, 2037], [2039, 2038], [2039, 2036], [2040, 2039], [2041, 2040], [2041, 2025], [2042, 2041], [2043, 2042], [2044, 2043], [2047, 2044], [2049, 2048], [2050, 2043], [2053, 2050], [2055, 2054], [2056, 1705], [2059, 2056], [2061, 2060], [2062, 1705], [2065, 2062], [2067, 2066], [2068, 2043], [2071, 2068], [2073, 2072], [2074, 2043], [2077, 2074], [2079, 2078], [2080, 1705], [2083, 2080], [2085, 2084], [2086, 1705], [2089, 2086], [2091, 2090], [2092, 2015], [2095, 2092], [2097, 2096], [2098, 2015], [2101, 2098], [2103, 2102], [2104, 1678], [2107, 2104], [2109, 2108], [2110, 1678], [2113, 2110], [2115, 2114], [2116, 2015], [2119, 2116], [2121, 2120], [2122, 2015], [2125, 2122], [2127, 2126], [2128, 1678], [2131, 2128], [2133, 2132], [2134, 1678], [2137, 2134], [2139, 2049], [2140, 2055], [2141, 2061], [2142, 2067], [2143, 2073], [2144, 2079], [2145, 2085], [2146, 2091], [2147, 2097], [2148, 2103], [2149, 2109], [2150, 2115], [2151, 2121], [2152, 2127], [2153, 2133], [2154, 2138], [2156, 1644], [2156, 1469], [2156, 1934]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/72303f375450332c393a8a753559999c0acc00cdc494ffcd4522a6d677c4ee69_72303f375450332c393a8a753559999c0acc00cdc494ffcd4522a6d677c4ee69.jsonl.gz", "strip_func_name": "sub_44404B", "query": "\n\n\n__int64 __fastcall sub_44404B(__int64 a1, int a2, int a3)\n{\nint *v3; // r13\nint *v4; // r12\nint *v5; // rbx\nint *v6; // rax\nint *v7; // r13\nint *v8; // r12\nint *v9; // rbx\nint *v10; // rax\nint *v11; // r13\nint *v12; // r12\nint *v13; // rbx\nint *v14; // rax\nint *v15; // r13\nint *v16; // r12\nint *v17; // rbx\nint *v18; // rax\nint *v19; // r13\nint *v20; // r12\nint *v21; // rbx\nint *v22; // rax\nint *v23; // r13\nint *v24; // r12\nint *v25; // rbx\nint *v26; // rax\nint *v27; // r13\nint *v28; // r12\nint *v29; // rbx\nint *v30; // rax\nint *v31; // r13\nint *v32; // r12\nint *v33; // rbx\nint *v34; // rax\nint *v35; // r13\nint *v36; // r12\nint *v37; // rbx\nint *v38; // rax\nint *v39; // r13\nint *v40; // r12\nint *v41; // rbx\nint *v42; // rax\nint *v43; // r13\nint *v44; // r12\nint *v45; // rbx\nint *v46; // rax\nint *v47; // r13\nint *v48; // r12\nint *v49; // rbx\nint *v50; // rax\nint *v51; // r13\nint *v52; // r12\nint *v53; // rbx\nint *v54; // rax\nint *v55; // r13\nint *v56; // r12\nint *v57; // rbx\nint *v58; // rax\nint *v59; // r13\nint *v60; // r12\nint *v61; // rbx\nint *v62; // rax\nint *v63; // r13\nint *v64; // r12\nint *v65; // rbx\nint *v66; // rax\nint *v67; // r13\nint *v68; // r12\nint *v69; // rbx\nint *v70; // rax\nint *v71; // r13\nint *v72; // r12\nint *v73; // rbx\nint *v74; // rax\nint *v75; // r13\nint *v76; // r12\nint *v77; // rbx\nint *v78; // rax\nint *v79; // r13\nint *v80; // r12\nint *v81; // rbx\nint *v82; // rax\nint *v83; // r13\nint *v84; // r12\nint *v85; // rbx\nint *v86; // rax\nint *v87; // r13\nint *v88; // r12\nint *v89; // rbx\nint *v90; // rax\nint *v91; // r13\nint *v92; // r15\nint *v93; // r14\nint *v94; // r12\nint *v95; // rbx\nint *v96; // rax\nint *v97; // r13\nint *v98; // r15\nint *v99; // r14\nint *v100; // r12\nint *v101; // rbx\nint *v102; // rax\nint *v103; // r13\nint *v104; // r12\nint *v105; // rbx\nint *v106; // rax\nint *v107; // r13\nint *v108; // r12\nint *v109; // rbx\nint *v110; // rax\nint *v111; // r13\nint *v112; // r15\nint *v113; // r14\nint *v114; // r12\nint *v115; // rbx\nint *v116; // rax\nint *v117; // r13\nint *v118; // r15\nint *v119; // r14\nint *v120; // r12\nint *v121; // rbx\nint *v122; // rax\nint *v123; // r13\nint *v124; // r12\nint *v125; // rbx\nint *v126; // rax\nint *v127; // r13\nint *v128; // r12\nint *v129; // rbx\nint *v130; // rax\n__int64 result; // rax\nint *v132; // [rsp+0h] [rbp-150h]\nint *v133; // [rsp+0h] [rbp-150h]\nint *v134; // [rsp+0h] [rbp-150h]\nint *v135; // [rsp+0h] [rbp-150h]\nint *v136; // [rsp+8h] [rbp-148h]\nint *v137; // [rsp+8h] [rbp-148h]\nint *v138; // [rsp+8h] [rbp-148h]\nint *v139; // [rsp+8h] [rbp-148h]\nint *v140; // [rsp+10h] [rbp-140h]\nint *v141; // [rsp+10h] [rbp-140h]\nint *v142; // [rsp+10h] [rbp-140h]\nint *v143; // [rsp+10h] [rbp-140h]\nint *v144; // [rsp+18h] [rbp-138h]\nint *v145; // [rsp+18h] [rbp-138h]\nint *v146; // [rsp+18h] [rbp-138h]\nint *v147; // [rsp+18h] [rbp-138h]\nint *v148; // [rsp+20h] [rbp-130h]\nint *v149; // [rsp+20h] [rbp-130h]\nint *v150; // [rsp+20h] [rbp-130h]\nint *v151; // [rsp+20h] [rbp-130h]\nint *v152; // [rsp+28h] [rbp-128h]\nint *v153; // [rsp+28h] [rbp-128h]\nint *v154; // [rsp+28h] [rbp-128h]\nint *v155; // [rsp+28h] [rbp-128h]\nint *v156; // [rsp+30h] [rbp-120h]\nint *v157; // [rsp+30h] [rbp-120h]\nint *v158; // [rsp+30h] [rbp-120h]\nint *v159; // [rsp+30h] [rbp-120h]\nint *v160; // [rsp+38h] [rbp-118h]\nint *v161; // [rsp+38h] [rbp-118h]\nint *v162; // [rsp+38h] [rbp-118h]\nint *v163; // [rsp+38h] [rbp-118h]\nint *v164; // [rsp+40h] [rbp-110h]\nint *v165; // [rsp+40h] [rbp-110h]\nint *v166; // [rsp+40h] [rbp-110h]\nint *v167; // [rsp+40h] [rbp-110h]\nint *v168; // [rsp+48h] [rbp-108h]\nint *v169; // [rsp+48h] [rbp-108h]\nint *v170; // [rsp+48h] [rbp-108h]\nint *v171; // [rsp+48h] [rbp-108h]\n__int64 v173; // [rsp+68h] [rbp-E8h]\n__int64 v174; // [rsp+70h] [rbp-E0h]\n__int64 v175; // [rsp+78h] [rbp-D8h]\n__int64 v176; // [rsp+80h] [rbp-D0h]\n__int64 v177; // [rsp+88h] [rbp-C8h]\n__int64 v178; // [rsp+98h] [rbp-B8h]\n__int64 v179; // [rsp+A0h] [rbp-B0h]\n__int64 v180; // [rsp+A8h] [rbp-A8h]\n__int64 v181; // [rsp+B0h] [rbp-A0h]\n__int64 v182; // [rsp+B8h] [rbp-98h]\n__int64 v183; // [rsp+C0h] [rbp-90h]\n__int64 v184; // [rsp+C8h] [rbp-88h]\n__int64 v185; // [rsp+D0h] [rbp-80h]\n__int64 v186; // [rsp+D8h] [rbp-78h]\n__int64 v187; // [rsp+E0h] [rbp-70h]\n__int64 v188; // [rsp+E8h] [rbp-68h]\n__int64 v189; // [rsp+F0h] [rbp-60h]\n__int64 v190; // [rsp+F8h] [rbp-58h]\n__int64 v191; // [rsp+100h] [rbp-50h]\n__int64 v192; // [rsp+108h] [rbp-48h]\nunsigned int v193; // [rsp+110h] [rbp-40h]\nint v194; // [rsp+114h] [rbp-3Ch]\nunsigned int j; // [rsp+118h] [rbp-38h]\nunsigned int k; // [rsp+118h] [rbp-38h]\nunsigned int l; // [rsp+118h] [rbp-38h]\nunsigned int m; // [rsp+118h] [rbp-38h]\nunsigned int i; // [rsp+11Ch] [rbp-34h]\n\nv193 = a2 - 3;\nv194 = 0;\nif ( a3 <= 0 || *(_BYTE *)(a1 + 28) != 1 )\n__assert_fail(\"ch > 0 && image->use_clr_fmt == 1\", \"r_strip.c\", 0x50Bu, \"overlap_level2_up3_420\");\nif ( a2 <= 2 )\n__assert_fail(\"use_my >= 3\", \"r_strip.c\", 0x50Cu, \"overlap_level2_up3_420\");\nwhile ( *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * v194) + *(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v194) - 1 < v193 )\n++v194;\nfor ( i = 0; ; ++i )\n{\nresult = i;\nif ( *(_DWORD *)(a1 + 52) <= i )\nbreak;\nif ( !i || *(_DWORD *)(a1 + 44) )\n{\nv192 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * *(unsigned int *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i));\nv3 = (int *)sub_43E77A(v192, 0, 5);\nv4 = (int *)sub_43E77A(v192, 0, 4);\nv5 = (int *)sub_43E77A(v192, 0, 3);\nv6 = (int *)sub_43E77A(v192, 0, 2);\nsub_43884F(v6, v5, v4, v3);\nv7 = (int *)sub_43E77A(v192, 1, 5);\nv8 = (int *)sub_43E77A(v192, 1, 4);\nv9 = (int *)sub_43E77A(v192, 1, 3);\nv10 = (int *)sub_43E77A(v192, 1, 2);\nsub_43884F(v10, v9, v8, v7);\n}\nif ( *(_DWORD *)(a1 + 52) - 1 == i || *(_DWORD *)(a1 + 44) )\n{\nv191 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL\n* (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i)\n+ *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i)\n- 1));\nv11 = (int *)sub_43E77A(v191, 6, 5);\nv12 = (int *)sub_43E77A(v191, 6, 4);\nv13 = (int *)sub_43E77A(v191, 6, 3);\nv14 = (int *)sub_43E77A(v191, 6, 2);\nsub_43884F(v14, v13, v12, v11);\nv15 = (int *)sub_43E77A(v191, 7, 5);\nv16 = (int *)sub_43E77A(v191, 7, 4);\nv17 = (int *)sub_43E77A(v191, 7, 3);\nv18 = (int *)sub_43E77A(v191, 7, 2);\nsub_43884F(v18, v17, v16, v15);\n}\nif ( a2 == 3 )\n{\nfor ( j = 0; *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i) > j; ++j )\n{\nv188 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + j));\nv19 = (int *)sub_43E77A(v188, 5, 0);\nv20 = (int *)sub_43E77A(v188, 4, 0);\nv21 = (int *)sub_43E77A(v188, 3, 0);\nv22 = (int *)sub_43E77A(v188, 2, 0);\nsub_43884F(v22, v21, v20, v19);\nv23 = (int *)sub_43E77A(v188, 5, 1);\nv24 = (int *)sub_43E77A(v188, 4, 1);\nv25 = (int *)sub_43E77A(v188, 3, 1);\nv26 = (int *)sub_43E77A(v188, 2, 1);\nsub_43884F(v26, v25, v24, v23);\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + j && !*(_DWORD *)(a1 + 44) || *(_DWORD *)(a1 + 44) && j )\n{\nv187 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + j - 1));\nv27 = (int *)sub_43E77A(v188, 1, 0);\nv28 = (int *)sub_43E6F5(v188, 0, 0);\nv29 = (int *)sub_43E77A(v187, 7, 0);\nv30 = (int *)sub_43E77A(v187, 6, 0);\nsub_43884F(v30, v29, v28, v27);\nv31 = (int *)sub_43E77A(v188, 1, 1);\nv32 = (int *)sub_43E6F5(v188, 0, 1);\nv33 = (int *)sub_43E77A(v187, 7, 1);\nv34 = (int *)sub_43E77A(v187, 6, 1);\nsub_43884F(v34, v33, v32, v31);\n}\n}\nif ( !i || *(_DWORD *)(a1 + 44) )\n{\nv190 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * *(unsigned int *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i));\nv35 = (int *)sub_43E77A(v190, 1, 1);\nv36 = (int *)sub_43E77A(v190, 0, 1);\nv37 = (int *)sub_43E77A(v190, 1, 0);\nv38 = (int *)sub_43E77A(v190, 0, 0);\nsub_43884F(v38, v37, v36, v35);\n}\nif ( *(_DWORD *)(a1 + 52) - 1 == i || *(_DWORD *)(a1 + 44) )\n{\nv189 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL\n* (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i)\n+ *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i)\n- 1));\nv39 = (int *)sub_43E77A(v189, 7, 1);\nv40 = (int *)sub_43E77A(v189, 6, 1);\nv41 = (int *)sub_43E77A(v189, 7, 0);\nv42 = (int *)sub_43E77A(v189, 6, 0);\nsub_43884F(v42, v41, v40, v39);\n}\n}\nif ( v193 + 1 == *(_DWORD *)(a1 + 16) >> 4\n|| *(_DWORD *)(a1 + 44)\n&& *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * v194) + *(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v194) - 1 == v193 )\n{\nfor ( k = 0; *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i) > k; ++k )\n{\nv180 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + k));\nv43 = (int *)sub_43E77A(v180, 5, 6);\nv44 = (int *)sub_43E77A(v180, 4, 6);\nv45 = (int *)sub_43E77A(v180, 3, 6);\nv46 = (int *)sub_43E77A(v180, 2, 6);\nsub_43884F(v46, v45, v44, v43);\nv47 = (int *)sub_43E77A(v180, 5, 7);\nv48 = (int *)sub_43E77A(v180, 4, 7);\nv49 = (int *)sub_43E77A(v180, 3, 7);\nv50 = (int *)sub_43E77A(v180, 2, 7);\nsub_43884F(v50, v49, v48, v47);\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + k && !*(_DWORD *)(a1 + 44) || *(_DWORD *)(a1 + 44) && k )\n{\nv179 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + k - 1));\nv51 = (int *)sub_43E77A(v180, 1, 6);\nv52 = (int *)sub_43E77A(v180, 0, 6);\nv53 = (int *)sub_43E77A(v179, 7, 6);\nv54 = (int *)sub_43E77A(v179, 6, 6);\nsub_43884F(v54, v53, v52, v51);\nv55 = (int *)sub_43E77A(v180, 1, 7);\nv56 = (int *)sub_43E77A(v180, 0, 7);\nv57 = (int *)sub_43E77A(v179, 7, 7);\nv58 = (int *)sub_43E77A(v179, 6, 7);\nsub_43884F(v58, v57, v56, v55);\n}\n}\nif ( !i || *(_DWORD *)(a1 + 44) )\n{\nv186 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * *(unsigned int *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i));\nv59 = (int *)sub_43E77A(v186, 1, 7);\nv60 = (int *)sub_43E77A(v186, 0, 7);\nv61 = (int *)sub_43E77A(v186, 1, 6);\nv62 = (int *)sub_43E77A(v186, 0, 6);\nsub_43884F(v62, v61, v60, v59);\n}\nif ( *(_DWORD *)(a1 + 52) - 1 == i || *(_DWORD *)(a1 + 44) )\n{\nv185 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL\n* (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i)\n+ *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i)\n- 1));\nv63 = (int *)sub_43E77A(v185, 7, 7);\nv64 = (int *)sub_43E77A(v185, 6, 7);\nv65 = (int *)sub_43E77A(v185, 7, 6);\nv66 = (int *)sub_43E77A(v185, 6, 6);\nsub_43884F(v66, v65, v64, v63);\n}\nif ( *(_DWORD *)(a1 + 44)\n&& *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * v194) + *(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v194) - 1 == v193\n&& (*(_DWORD *)(a1 + 16) >> 4) - 1 > v193 )\n{\nfor ( l = 0; *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i) > l; ++l )\n{\nv182 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 144)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + l));\nv67 = (int *)sub_43E77A(v182, 5, 0);\nv68 = (int *)sub_43E77A(v182, 4, 0);\nv69 = (int *)sub_43E77A(v182, 3, 0);\nv70 = (int *)sub_43E77A(v182, 2, 0);\nsub_43884F(v70, v69, v68, v67);\nv71 = (int *)sub_43E77A(v182, 5, 1);\nv72 = (int *)sub_43E77A(v182, 4, 1);\nv73 = (int *)sub_43E77A(v182, 3, 1);\nv74 = (int *)sub_43E77A(v182, 2, 1);\nsub_43884F(v74, v73, v72, v71);\nif ( *(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + l && !*(_DWORD *)(a1 + 44)\n|| *(_DWORD *)(a1 + 44) && l )\n{\nv181 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 144)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + l - 1));\nv75 = (int *)sub_43E77A(v182, 1, 0);\nv76 = (int *)sub_43E6F5(v182, 0, 0);\nv77 = (int *)sub_43E77A(v181, 7, 0);\nv78 = (int *)sub_43E77A(v181, 6, 0);\nsub_43884F(v78, v77, v76, v75);\nv79 = (int *)sub_43E77A(v182, 1, 1);\nv80 = (int *)sub_43E6F5(v182, 0, 1);\nv81 = (int *)sub_43E77A(v181, 7, 1);\nv82 = (int *)sub_43E77A(v181, 6, 1);\nsub_43884F(v82, v81, v80, v79);\n}\n}\nif ( !i || *(_DWORD *)(a1 + 44) )\n{\nv184 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 144)\n+ 40LL * *(unsigned int *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i));\nv83 = (int *)sub_43E77A(v184, 1, 1);\nv84 = (int *)sub_43E77A(v184, 0, 1);\nv85 = (int *)sub_43E77A(v184, 1, 0);\nv86 = (int *)sub_43E77A(v184, 0, 0);\nsub_43884F(v86, v85, v84, v83);\n}\nif ( *(_DWORD *)(a1 + 52) - 1 == i || *(_DWORD *)(a1 + 44) )\n{\nv183 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 144)\n+ 40LL\n* (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i)\n+ *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i)\n- 1));\nv87 = (int *)sub_43E77A(v183, 7, 1);\nv88 = (int *)sub_43E77A(v183, 6, 1);\nv89 = (int *)sub_43E77A(v183, 7, 0);\nv90 = (int *)sub_43E77A(v183, 6, 0);\nsub_43884F(v90, v89, v88, v87);\n}\n}\n}\nfor ( m = 0; *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i) > m; ++m )\n{\nv178 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + m));\nv91 = (int *)sub_43E77A(v178, 5, 5);\nv168 = (int *)sub_43E77A(v178, 4, 5);\nv164 = (int *)sub_43E77A(v178, 3, 5);\nv160 = (int *)sub_43E77A(v178, 2, 5);\nv156 = (int *)sub_43E77A(v178, 5, 4);\nv152 = (int *)sub_43E77A(v178, 4, 4);\nv148 = (int *)sub_43E77A(v178, 3, 4);\nv144 = (int *)sub_43E77A(v178, 2, 4);\nv92 = (int *)sub_43E77A(v178, 5, 3);\nv93 = (int *)sub_43E77A(v178, 4, 3);\nv140 = (int *)sub_43E77A(v178, 3, 3);\nv136 = (int *)sub_43E77A(v178, 2, 3);\nv132 = (int *)sub_43E77A(v178, 5, 2);\nv94 = (int *)sub_43E77A(v178, 4, 2);\nv95 = (int *)sub_43E77A(v178, 3, 2);\nv96 = (int *)sub_43E77A(v178, 2, 2);\nsub_4386A7(v96, v95, v94, v132, v136, v140, v93, v92, v144, v148, v152, v156, v160, v164, v168, v91);\nif ( m + *(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) < (*(_DWORD *)(a1 + 12) >> 4) - 1\n&& !*(_DWORD *)(a1 + 44)\n|| *(_DWORD *)(a1 + 44) && *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i) - 1 != m )\n{\nv177 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + m + 1));\nv97 = (int *)sub_43E77A(v177, 1, 5);\nv169 = (int *)sub_43E77A(v177, 0, 5);\nv165 = (int *)sub_43E77A(v178, 7, 5);\nv161 = (int *)sub_43E77A(v178, 6, 5);\nv157 = (int *)sub_43E77A(v177, 1, 4);\nv153 = (int *)sub_43E77A(v177, 0, 4);\nv149 = (int *)sub_43E77A(v178, 7, 4);\nv145 = (int *)sub_43E77A(v178, 6, 4);\nv98 = (int *)sub_43E77A(v177, 1, 3);\nv99 = (int *)sub_43E77A(v177, 0, 3);\nv141 = (int *)sub_43E77A(v178, 7, 3);\nv137 = (int *)sub_43E77A(v178, 6, 3);\nv133 = (int *)sub_43E77A(v177, 1, 2);\nv100 = (int *)sub_43E77A(v177, 0, 2);\nv101 = (int *)sub_43E77A(v178, 7, 2);\nv102 = (int *)sub_43E77A(v178, 6, 2);\nsub_4386A7(v102, v101, v100, v133, v137, v141, v99, v98, v145, v149, v153, v157, v161, v165, v169, v97);\n}\nif ( (signed int)(v193 + 1) < *(_DWORD *)(a1 + 16) >> 4 )\n{\nv176 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + m));\nv175 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 144)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + m));\nif ( !i && !m && !*(_DWORD *)(a1 + 44)\n|| *(_DWORD *)(a1 + 44)\n&& !m\n&& *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * v194) + *(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v194) - 1 != v193 )\n{\nv103 = (int *)sub_43E77A(v175, 0, 1);\nv104 = (int *)sub_43E77A(v175, 0, 0);\nv105 = (int *)sub_43E77A(v176, 0, 7);\nv106 = (int *)sub_43E77A(v176, 0, 6);\nsub_43884F(v106, v105, v104, v103);\nv107 = (int *)sub_43E77A(v175, 1, 1);\nv108 = (int *)sub_43E77A(v175, 1, 0);\nv109 = (int *)sub_43E77A(v176, 1, 7);\nv110 = (int *)sub_43E77A(v176, 1, 6);\nsub_43884F(v110, v109, v108, v107);\n}\nif ( !*(_DWORD *)(a1 + 44)\n|| *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * v194) + *(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v194) - 1 != v193 )\n{\nv111 = (int *)sub_43E77A(v175, 5, 1);\nv170 = (int *)sub_43E77A(v175, 4, 1);\nv166 = (int *)sub_43E77A(v175, 3, 1);\nv162 = (int *)sub_43E77A(v175, 2, 1);\nv158 = (int *)sub_43E77A(v175, 5, 0);\nv154 = (int *)sub_43E77A(v175, 4, 0);\nv150 = (int *)sub_43E77A(v175, 3, 0);\nv146 = (int *)sub_43E77A(v175, 2, 0);\nv112 = (int *)sub_43E77A(v176, 5, 7);\nv113 = (int *)sub_43E77A(v176, 4, 7);\nv142 = (int *)sub_43E77A(v176, 3, 7);\nv138 = (int *)sub_43E77A(v176, 2, 7);\nv134 = (int *)sub_43E77A(v176, 5, 6);\nv114 = (int *)sub_43E77A(v176, 4, 6);\nv115 = (int *)sub_43E77A(v176, 3, 6);\nv116 = (int *)sub_43E77A(v176, 2, 6);\nsub_4386A7(v116, v115, v114, v134, v138, v142, v113, v112, v146, v150, v154, v158, v162, v166, v170, v111);\n}\nif ( m + *(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) < (*(_DWORD *)(a1 + 12) >> 4) - 1\n&& !*(_DWORD *)(a1 + 44)\n|| *(_DWORD *)(a1 + 44)\n&& *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i) - 1 != m\n&& *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * v194) + *(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v194) - 1 != v193 )\n{\nv174 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 136)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + m + 1));\nv173 = *(_QWORD *)(*(_QWORD *)(a1 + 56LL * a3 + 144)\n+ 40LL * (*(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) + m + 1));\nv117 = (int *)sub_43E77A(v173, 1, 1);\nv171 = (int *)sub_43E77A(v173, 0, 1);\nv167 = (int *)sub_43E77A(v175, 7, 1);\nv163 = (int *)sub_43E77A(v175, 6, 1);\nv159 = (int *)sub_43E77A(v173, 1, 0);\nv155 = (int *)sub_43E77A(v173, 0, 0);\nv151 = (int *)sub_43E77A(v175, 7, 0);\nv147 = (int *)sub_43E77A(v175, 6, 0);\nv118 = (int *)sub_43E77A(v174, 1, 7);\nv119 = (int *)sub_43E77A(v174, 0, 7);\nv143 = (int *)sub_43E77A(v176, 7, 7);\nv139 = (int *)sub_43E77A(v176, 6, 7);\nv135 = (int *)sub_43E77A(v174, 1, 6);\nv120 = (int *)sub_43E77A(v174, 0, 6);\nv121 = (int *)sub_43E77A(v176, 7, 6);\nv122 = (int *)sub_43E77A(v176, 6, 6);\nsub_4386A7(v122, v121, v120, v135, v139, v143, v119, v118, v147, v151, v155, v159, v163, v167, v171, v117);\n}\nif ( m + *(_DWORD *)(*(_QWORD *)(a1 + 72) + 4LL * (int)i) == (*(_DWORD *)(a1 + 12) >> 4) - 1\n&& !*(_DWORD *)(a1 + 44)\n|| *(_DWORD *)(a1 + 44)\n&& *(_DWORD *)(*(_QWORD *)(a1 + 64) + 4LL * (int)i) - 1 == m\n&& *(_DWORD *)(*(_QWORD *)(a1 + 80) + 4LL * v194) + *(_DWORD *)(*(_QWORD *)(a1 + 56) + 4LL * v194) - 1 != v193 )\n{\nv123 = (int *)sub_43E77A(v175, 6, 1);\nv124 = (int *)sub_43E77A(v175, 6, 0);\nv125 = (int *)sub_43E77A(v176, 6, 7);\nv126 = (int *)sub_43E77A(v176, 6, 6);\nsub_43884F(v126, v125, v124, v123);\nv127 = (int *)sub_43E77A(v175, 7, 1);\nv128 = (int *)sub_43E77A(v175, 7, 0);\nv129 = (int *)sub_43E77A(v176, 7, 7);\nv130 = (int *)sub_43E77A(v176, 7, 6);\nsub_43884F(v130, v129, v128, v127);\n}\n}\n}\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v135,v136,v141,v146,v153,v159,v161,v165,v171,v173,v174,v175,v176,v177,v178,v179,v180,v181,v182,v183,v184,v185,v186,v187,v188,v189,v190,v191,v192,v193,v194,l,sub_44404B,sub_43E77A,sub_43884F,sub_43E6F5,sub_4386A7,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'ch_0', 'a1': 'image', 'a2': 'use_my', 'v135': 'dc', 'v136': 'e', 'v141': 'f', 'v146': 'ia', 'v153': 'kb', 'v159': 'la', 'v161': 'm', 'v165': 'na', 'v171': 'o', 'v173': 'un', 'v174': 'dn', 'v175': 'up_0', 'v176': 'dp_10', 'v177': 'np', 'v178': 'dp_9', 'v179': 'tn', 'v180': 'tp', 'v181': 'pp_0', 'v182': 'dp_6', 'v183': 'dp_8', 'v184': 'dp_7', 'v185': 'dp_5', 'v186': 'dp_4', 'v187': 'pp', 'v188': 'dp_1', 'v189': 'dp_3', 'v190': 'dp_2', 'v191': 'dp_0', 'v192': 'dp', 'v193': 'top_my', 'v194': 'ty', 'l': 'idx', 'sub_44404B': 'overlap_level2_up3_420', 'sub_43E77A': 'R2B42', 'sub_43884F': '_jxr_4OverlapFilter', 'sub_43E6F5': 'R2B', 'sub_4386A7': '_jxr_4x4OverlapFilter'}"}
rfcomm_input
9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3
sj15712795029
bluetooth_stack
NA
err_t rfcomm_input(void *arg, l2cap_pcb_t *l2cappcb, struct bt_pbuf_t *p, err_t err) { rfcomm_hdr_t rfcommhdr; rfcomm_pcb_t *pcb, *tpcb; rfcomm_pcb_listen_t *lpcb; int16_t len = 0; uint8_t hdrlen; uint8_t fcs; struct bt_pbuf_t *q; err_t ret = BT_ERR_OK; BT_UNUSED_ARG(ret); rfcommhdr.addr = *((uint8_t *)p->payload); rfcommhdr.ctrl = ((uint8_t *)p->payload)[1]; /* Find PCB with matching server channel number and bluetooth address */ pcb = rfcomm_get_active_pcb((rfcommhdr.addr >> 3), &l2cappcb->remote_bdaddr); if(pcb == NULL && rfcommhdr.ctrl != RFCOMM_SABM) { /* Channel does not exist */ if(rfcommhdr.ctrl != RFCOMM_DM_PF && rfcommhdr.ctrl != RFCOMM_DM) { /* Send a DM response */ BT_RFCOMM_TRACE_DEBUG("Send a DM response to CN %d rfcomm.ctrl == 0x%x\n", (rfcommhdr.addr >> 3), rfcommhdr.ctrl); rfcomm_dm(l2cappcb, &rfcommhdr); } /* else silently discard packet */ bt_pbuf_free(p); return BT_ERR_OK; } /* Check if length field is 1 or 2 bytes long and remove EA bit */ if((((uint8_t *)p->payload)[2] & 0x01) == 1) { hdrlen = RFCOMM_HDR_LEN_1; rfcommhdr.len = (((uint8_t *)p->payload)[2] >> 1) & 0x007F; } else { hdrlen = RFCOMM_HDR_LEN_2; rfcommhdr.len = (((uint16_t *)p->payload)[1] >> 1) & 0x7FFF; } if(rfcommhdr.ctrl == RFCOMM_UIH_PF) { if(pcb->cl == 0xF) { rfcommhdr.k = ((uint8_t *)p->payload)[hdrlen++]; } } /* Frame check */ for(q = p; q != NULL; q = q->next) { len += q->len; if(len > (rfcommhdr.len + hdrlen)) { len -= q->len; len = rfcommhdr.len - len; len += hdrlen; break; } } fcs = ((uint8_t *)q->payload)[len]; if(rfcommhdr.ctrl == RFCOMM_UIH) { if(pcb->cn == 0) { if(fcs != pcb->uih0_in_fcs) /* Check against the precalculated fcs */ { //if(fcs8_crc_check(p, RFCOMM_UIHCRC_CHECK_LEN, fcs) != 0) { /* Packet discarded due to failing frame check sequence */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: UIH packet discarded due to failing frame check sequence\n"); bt_pbuf_free(p); return BT_ERR_OK; } } } else if(rfcommhdr.ctrl == RFCOMM_UIH_PF) { if(fcs != pcb->uihpf_in_fcs) /* Check against the precalculated fcs */ { //if(fcs8_crc_check(p, RFCOMM_UIHCRC_CHECK_LEN, fcs) != 0) { /* Packet discarded due to failing frame check sequence */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: UIH_PF packet discarded due to failing frame check sequence RFCS = 0x%x LFCS = 0x%x\n", fcs, pcb->uihpf_in_fcs); bt_pbuf_free(p); return BT_ERR_OK; } } else { if(fcs8_crc_check(p, hdrlen, fcs) != 0) { /* Packet discarded due to failing frame check sequence */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Packet discarded due to failing frame check sequence\n"); bt_pbuf_free(p); return BT_ERR_OK; } } bt_pbuf_header(p, -hdrlen); /* Adjust information pointer */ bt_pbuf_realloc(p, rfcommhdr.len); /* Remove fcs from packet */ switch(rfcommhdr.ctrl) { case RFCOMM_SABM: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_SABM\n"); if(pcb == NULL) { /* Check if the server channel exists */ lpcb = NULL; if(rfcommhdr.addr >> 3 == 0) { /* Only the multiplexer channel can be connected without first configuring it */ for(lpcb = rfcomm_listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { if(lpcb->cn == (rfcommhdr.addr >> 3)) { break; } } } if(lpcb != NULL) { /* Found a listening pcb with a matching server channel number, now initiate a new active PCB with default configuration */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Allocate RFCOMM PCB for CN %d******************************\n", lpcb->cn); if((pcb = rfcomm_new(l2cappcb)) == NULL) { /* No memory to allocate PCB. Refuse connection attempt */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: No memory to allocate PCB. Refuse connection attempt CN %d******************************\n", lpcb->cn); rfcomm_dm(l2cappcb, &rfcommhdr); bt_pbuf_free(p); return BT_ERR_OK; } pcb->cn = lpcb->cn; pcb->callback_arg = lpcb->callback_arg; pcb->accept = lpcb->accept; RFCOMM_REG(&rfcomm_active_pcbs, pcb); } else { /* Channel does not exist or multiplexer is not connected, refuse connection with DM frame */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Channel does not exist, refuse connection with DM frame CN %d\n", (rfcommhdr.addr >> 3)); rfcomm_dm(l2cappcb, &rfcommhdr); bt_pbuf_free(p); break; } } /* Set role to responder */ pcb->rfcommcfg &= ~RFCOMM_CFG_IR; /* Send UA frame as response to SABM frame */ rfcomm_ua(l2cappcb, &rfcommhdr); /* FCS precalculation for UIH frames */ bt_pbuf_header(p, hdrlen); /* Reuse the buffer for the current header */ /* Change header values to refelct an UIH frame sent to the initiator */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0. We are the responder */ *((uint8_t *)p->payload) &= 0xFD; /* Set C/R bit to 0. We are the responder */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); ((uint8_t *)p->payload)[1] = RFCOMM_UIH_PF; pcb->uihpf_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* Change header values to refelct an UIH frame from to the initiator */ //*((uint8_t *)p->payload) |= 0x04; /* Set direction bit to 1. We are the responder */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0. We are the responder */ *((uint8_t *)p->payload) |= 0x02; /* Set C/R bit to 1. We are the responder */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); ((uint8_t *)p->payload)[1] = RFCOMM_UIH_PF; pcb->uihpf_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* UIH frame received on the control channel */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0 */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih0_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* Change header values to reflect an UIH frame sent on the control channel */ *((uint8_t *)p->payload) &= 0xF9; /* Set C/R bit and direction bit to 0 */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih0_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); bt_pbuf_free(p); break; case RFCOMM_UA: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_UA\n"); pcb->to = 0; if(pcb->state == W4_RFCOMM_SABM_RSP) { pcb->state = RFCOMM_CFG; /* FCS precalculation for UIH frames */ bt_pbuf_header(p, hdrlen); /* Reuse the buffer for the current header */ /* Change header values to refelct an UIH frame sent to the responder */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0. We are the initiator */ *((uint8_t *)p->payload) |= 0x02; /* Set C/R bit to 1. We are the intitiator */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); ((uint8_t *)p->payload)[1]= RFCOMM_UIH_PF; pcb->uihpf_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* Change header values to reflect an UIH frame sent to the responder */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0. We are the intitiator */ *((uint8_t *)p->payload) &= 0xFD; /* Set C/R bit to 0. We are the initiator */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); ((uint8_t *)p->payload)[1] = RFCOMM_UIH_PF; pcb->uihpf_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* UIH frame sent on the control channel */ *((uint8_t *)p->payload) &= 0xFB; /* Set direction bit to 0 */ *((uint8_t *)p->payload) |= 0x02; /* Set C/R bit to 1. We are the intitiator */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih0_out_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); /* Change header values to reflect an UIH frame received on the control channel */ *((uint8_t *)p->payload) &= 0xF9; /* Set C/R bit and direction bit to 0 */ ((uint8_t *)p->payload)[1] = RFCOMM_UIH; pcb->uih0_in_fcs = fcs8_crc_calc(p, RFCOMM_UIHCRC_CHECK_LEN); if(pcb->cn == 0) { for(tpcb = rfcomm_active_pcbs; tpcb != NULL; tpcb = tpcb->next) { if(bd_addr_cmp(&(tpcb->l2cappcb->remote_bdaddr), &(pcb->l2cappcb->remote_bdaddr)) && tpcb->state == W4_RFCOMM_MULTIPLEXER) { rfcomm_pn(tpcb, NULL); /* Send a parameter negotiation command to negotiate the connection settings for a channel that waits for the multiplexer connection to be established */ break; } } } else { rfcomm_msc(pcb, 0, NULL); /* Send a modem status command to set V.24 control signals for the RFCOMM connection */ } } else if (pcb->state == W4_RFCOMM_DISC_RSP) { //RFCOMM_RMV(&rfcomm_active_pcbs, pcb); pcb->state = RFCOMM_CLOSED; RFCOMM_EVENT_DISCONNECTED(pcb,BT_ERR_OK); } else { /* A response without an outstanding request is silently discarded */ } bt_pbuf_free(p); break; case RFCOMM_DM_PF: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_DM_PF\n"); case RFCOMM_DM: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_DM\n"); pcb->to = 0; //RFCOMM_RMV(&rfcomm_active_pcbs, pcb); if(pcb->state == W4_RFCOMM_SABM_RSP) { pcb->state = RFCOMM_CLOSED; RFCOMM_EVENT_CONNECTED(pcb,BT_ERR_CONN); } else { pcb->state = RFCOMM_CLOSED; RFCOMM_EVENT_DISCONNECTED(pcb,BT_ERR_CONN); } bt_pbuf_free(p); break; case RFCOMM_DISC: BT_RFCOMM_TRACE_DEBUG("rfcomm_input: RFCOMM_DISC\n"); //RFCOMM_RMV(&rfcomm_active_pcbs, pcb); /* Send UA frame as response to DISC frame */ ret = rfcomm_ua(l2cappcb, &rfcommhdr); pcb->state = RFCOMM_CLOSED; RFCOMM_EVENT_DISCONNECTED(pcb,BT_ERR_OK); bt_pbuf_free(p); break; case RFCOMM_UIH_PF: if((rfcommhdr.addr >> 3) == 0) { /* Process multiplexer command/response */ rfcomm_process_msg(pcb, &rfcommhdr, l2cappcb, p); bt_pbuf_free(p); } else if(pcb->cl == 0xF) { /* Process credit based frame */ if(pcb->rk != 0 && rfcommhdr.len > 0) { --pcb->rk; /* Decrease remote credits */ } BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Received local credits: %d Existing local credits: %d\n", rfcommhdr.k, pcb->k); BT_RFCOMM_TRACE_DEBUG("rfcomm_input: remote credits %d\n", pcb->rk); if(pcb->rk <= RFCOMM_RK_MIN) { rfcomm_issue_credits(pcb,RFCOMM_RK_MAX-pcb->rk); } if((pcb->k + rfcommhdr.k) < 255) { pcb->k += rfcommhdr.k; /* Increase local credits */ #if RFCOMM_FLOW_QUEUEING /* Queued packet present? */ if (pcb->buf != NULL) { /* NULL attached buffer immediately */ BT_RFCOMM_TRACE_DEBUG("rfcomm_input: sending queued packet.\n"); /* Send the queued packet */ rfcomm_uih(pcb, pcb->cn, pcb->buf); /* Free the queued packet */ bt_pbuf_free(pcb->buf); pcb->buf = NULL; } #endif /* RFCOMM_FLOW_QUEUEING */ } else { pcb->k = 255; } BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Forward RFCOMM_UIH_PF credit packet to higher layer\n"); RFCOMM_EVENT_RECV(pcb,BT_ERR_OK,p); /* Process information. Application must free bt_pbuf_t */ } else { BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Forward RFCOMM_UIH_PF non credit packet to higher layer\n"); RFCOMM_EVENT_RECV(pcb,BT_ERR_OK,p); /* Process information. Application must free bt_pbuf_t */ } break; case RFCOMM_UIH: if((rfcommhdr.addr >> 3) == 0) { /* Process multiplexer command/response */ rfcomm_process_msg(pcb, &rfcommhdr, l2cappcb, p); bt_pbuf_free(p); } else { if(pcb->rk != 0) { --pcb->rk; /* Decrease remote credits */ } if(pcb->rk <= RFCOMM_RK_MIN) { rfcomm_issue_credits(pcb,RFCOMM_RK_MAX-pcb->rk); } BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Forward RFCOMM_UIH packet to higher layer\n"); BT_RFCOMM_TRACE_DEBUG("rfcomm_input: Rremote credit %d\n",pcb->rk); RFCOMM_EVENT_RECV(pcb,BT_ERR_OK,p); /* Process information. Application must free bt_pbuf_t */ } break; default: /* Unknown or illegal frame type. Throw it away! */ bt_pbuf_free(p); break; } return BT_ERR_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41F700", "function_addr": 4323072, "binary_name": "9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.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 eax, ecx"], [7, "mov [rbp+var_4C], al"], [8, "mov [rbp+var_A], 0"], [9, "mov [rbp+var_29], 0"], [10, "mov rax, [rbp+var_48]"], [11, "mov rax, [rax+8]"], [12, "movzx eax, byte ptr [rax]"], [13, "mov [rbp+var_2F], al"], [14, "mov rax, [rbp+var_48]"], [15, "mov rax, [rax+8]"], [16, "movzx eax, byte ptr [rax+1]"], [17, "mov [rbp+var_2E], al"], [18, "mov rax, [rbp+var_40]"], [19, "lea rdx, [rax+30h]"], [20, "movzx eax, [rbp+var_2F]"], [21, "shr al, 3"], [22, "movzx eax, al"], [23, "mov rsi, rdx"], [24, "mov edi, eax"], [25, "call sub_41DA49"], [26, "mov [rbp+var_20], rax"], [27, "cmp [rbp+var_20], 0"], [28, "jnz short loc_41F7A8"], [29, "movzx eax, [rbp+var_2E]"], [30, "cmp al, 3Fh "], [31, "jz short loc_41F7A8"], [32, "movzx eax, [rbp+var_2E]"], [33, "cmp al, 1Fh"], [34, "jz short loc_41F792"], [35, "movzx eax, [rbp+var_2E]"], [36, "cmp al, 0Fh"], [37, "jz short loc_41F792"], [38, "lea rdx, [rbp+var_2F]"], [39, "mov rax, [rbp+var_40]"], [40, "mov rsi, rdx"], [41, "mov rdi, rax"], [42, "call sub_41DB25"], [43, "mov rax, [rbp+var_48]"], [44, "mov rdi, rax"], [45, "call sub_412805"], [46, "mov eax, 0"], [47, "jmp locret_4203A4"], [48, "mov rax, [rbp+var_48]"], [49, "mov rax, [rax+8]"], [50, "add rax, 2"], [51, "movzx eax, byte ptr [rax]"], [52, "movzx eax, al"], [53, "and eax, 1"], [54, "test eax, eax"], [55, "jz short loc_41F7E2"], [56, "mov [rbp+var_B], 3"], [57, "mov rax, [rbp+var_48]"], [58, "mov rax, [rax+8]"], [59, "add rax, 2"], [60, "movzx eax, byte ptr [rax]"], [61, "shr al, 1"], [62, "movzx eax, al"], [63, "and eax, 7Fh"], [64, "mov [rbp+var_2D], ax"], [65, "jmp short loc_41F7FC"], [66, "mov [rbp+var_B], 4"], [67, "mov rax, [rbp+var_48]"], [68, "mov rax, [rax+8]"], [69, "add rax, 2"], [70, "movzx eax, word ptr [rax]"], [71, "shr ax, 1"], [72, "mov [rbp+var_2D], ax"], [73, "movzx eax, [rbp+var_2E]"], [74, "cmp al, 0FFh"], [75, "jnz short loc_41F82E"], [76, "mov rax, [rbp+var_20]"], [77, "movzx eax, byte ptr [rax+19h]"], [78, "cmp al, 0Fh"], [79, "jnz short loc_41F82E"], [80, "mov rax, [rbp+var_48]"], [81, "mov rcx, [rax+8]"], [82, "movzx eax, [rbp+var_B]"], [83, "lea edx, [rax+1]"], [84, "mov [rbp+var_B], dl"], [85, "movzx eax, al"], [86, "add rax, rcx"], [87, "movzx eax, byte ptr [rax]"], [88, "mov [rbp+var_2B], al"], [89, "mov rax, [rbp+var_48]"], [90, "mov [rbp+var_8], rax"], [91, "jmp short loc_41F89C"], [92, "mov rax, [rbp+var_8]"], [93, "movzx edx, word ptr [rax+12h]"], [94, "movzx eax, [rbp+var_A]"], [95, "add eax, edx"], [96, "mov [rbp+var_A], ax"], [97, "movsx eax, [rbp+var_A]"], [98, "movzx edx, [rbp+var_2D]"], [99, "movzx ecx, dx"], [100, "movzx edx, [rbp+var_B]"], [101, "add edx, ecx"], [102, "cmp eax, edx"], [103, "jle short loc_41F891"], [104, "movzx edx, [rbp+var_A]"], [105, "mov rax, [rbp+var_8]"], [106, "movzx ecx, word ptr [rax+12h]"], [107, "mov eax, edx"], [108, "sub eax, ecx"], [109, "mov [rbp+var_A], ax"], [110, "movzx eax, [rbp+var_2D]"], [111, "movzx edx, [rbp+var_A]"], [112, "sub eax, edx"], [113, "mov [rbp+var_A], ax"], [114, "movzx edx, [rbp+var_B]"], [115, "movzx eax, [rbp+var_A]"], [116, "add eax, edx"], [117, "mov [rbp+var_A], ax"], [118, "jmp short loc_41F8A3"], [119, "mov rax, [rbp+var_8]"], [120, "mov rax, [rax]"], [121, "mov [rbp+var_8], rax"], [122, "cmp [rbp+var_8], 0"], [123, "jnz short loc_41F838"], [124, "mov rax, [rbp+var_8]"], [125, "mov rdx, [rax+8]"], [126, "movsx rax, [rbp+var_A]"], [127, "add rax, rdx"], [128, "movzx eax, byte ptr [rax]"], [129, "mov [rbp+var_2A], al"], [130, "movzx eax, [rbp+var_2E]"], [131, "cmp al, 0EFh"], [132, "jnz short loc_41F8F0"], [133, "mov rax, [rbp+var_20]"], [134, "movzx eax, byte ptr [rax+18h]"], [135, "test al, al"], [136, "jnz short loc_41F94B"], [137, "mov rax, [rbp+var_20]"], [138, "movzx eax, byte ptr [rax+28h]"], [139, "cmp [rbp+var_2A], al"], [140, "jz short loc_41F94B"], [141, "mov rax, [rbp+var_48]"], [142, "mov rdi, rax"], [143, "call sub_412805"], [144, "mov eax, 0"], [145, "jmp locret_4203A4"], [146, "movzx eax, [rbp+var_2E]"], [147, "cmp al, 0FFh"], [148, "jnz short loc_41F91B"], [149, "mov rax, [rbp+var_20]"], [150, "movzx eax, byte ptr [rax+25h]"], [151, "cmp [rbp+var_2A], al"], [152, "jz short loc_41F94B"], [153, "mov rax, [rbp+var_48]"], [154, "mov rdi, rax"], [155, "call sub_412805"], [156, "mov eax, 0"], [157, "jmp locret_4203A4"], [158, "movzx edx, [rbp+var_2A]"], [159, "movzx ecx, [rbp+var_B]"], [160, "mov rax, [rbp+var_48]"], [161, "mov esi, ecx"], [162, "mov rdi, rax"], [163, "call sub_415227"], [164, "test al, al"], [165, "jz short loc_41F94B"], [166, "mov rax, [rbp+var_48]"], [167, "mov rdi, rax"], [168, "call sub_412805"], [169, "mov eax, 0"], [170, "jmp locret_4203A4"], [171, "movzx eax, [rbp+var_B]"], [172, "neg eax"], [173, "movsx edx, ax"], [174, "mov rax, [rbp+var_48]"], [175, "mov esi, edx"], [176, "mov rdi, rax"], [177, "call sub_4127DA"], [178, "movzx eax, [rbp+var_2D]"], [179, "movzx edx, ax"], [180, "mov rax, [rbp+var_48]"], [181, "mov esi, edx"], [182, "mov rdi, rax"], [183, "call sub_41253F"], [184, "movzx eax, [rbp+var_2E]"], [185, "movzx eax, al"], [186, "cmp eax, 0FFh"], [187, "jz loc_42012D"], [188, "cmp eax, 0FFh"], [189, "jg loc_420392"], [190, "cmp eax, 0EFh"], [191, "jz loc_4202D4"], [192, "cmp eax, 0EFh"], [193, "jg loc_420392"], [194, "cmp eax, 73h "], [195, "jz loc_41FCC3"], [196, "cmp eax, 73h "], [197, "jg loc_420392"], [198, "cmp eax, 53h "], [199, "jz loc_4200BE"], [200, "cmp eax, 53h "], [201, "jg loc_420392"], [202, "cmp eax, 3Fh "], [203, "jz short loc_41F9F3"], [204, "cmp eax, 3Fh "], [205, "jg loc_420392"], [206, "cmp eax, 0Fh"], [207, "jz loc_420013"], [208, "cmp eax, 1Fh"], [209, "jz loc_420013"], [210, "jmp loc_420392"], [211, "cmp [rbp+var_20], 0"], [212, "jnz loc_41FAFF"], [213, "mov [rbp+var_18], 0"], [214, "movzx eax, [rbp+var_2F]"], [215, "shr al, 3"], [216, "test al, al"], [217, "jnz short loc_41FA46"], [218, "mov rax, cs:qword_464F60"], [219, "mov [rbp+var_18], rax"], [220, "jmp short loc_41FA3C"], [221, "mov rax, [rbp+var_18]"], [222, "movzx eax, byte ptr [rax+0Ch]"], [223, "movzx edx, [rbp+var_2F]"], [224, "shr dl, 3"], [225, "cmp al, dl"], [226, "jz short loc_41FA45"], [227, "mov rax, [rbp+var_18]"], [228, "mov rax, [rax]"], [229, "mov [rbp+var_18], rax"], [230, "cmp [rbp+var_18], 0"], [231, "jnz short loc_41FA1E"], [232, "jmp short loc_41FA46"], [233, "nop"], [234, "cmp [rbp+var_18], 0"], [235, "jz loc_41FADB"], [236, "mov rax, [rbp+var_40]"], [237, "mov rdi, rax"], [238, "call sub_41D7C8"], [239, "mov [rbp+var_20], rax"], [240, "cmp [rbp+var_20], 0"], [241, "jnz short loc_41FA91"], [242, "lea rdx, [rbp+var_2F]"], [243, "mov rax, [rbp+var_40]"], [244, "mov rsi, rdx"], [245, "mov rdi, rax"], [246, "call sub_41DB25"], [247, "mov rax, [rbp+var_48]"], [248, "mov rdi, rax"], [249, "call sub_412805"], [250, "mov eax, 0"], [251, "jmp locret_4203A4"], [252, "mov rax, [rbp+var_18]"], [253, "movzx edx, byte ptr [rax+0Ch]"], [254, "mov rax, [rbp+var_20]"], [255, "mov [rax+18h], dl"], [256, "mov rax, [rbp+var_18]"], [257, "mov rdx, [rax+10h]"], [258, "mov rax, [rbp+var_20]"], [259, "mov [rax+38h], rdx"], [260, "mov rax, [rbp+var_18]"], [261, "mov rdx, [rax+18h]"], [262, "mov rax, [rbp+var_20]"], [263, "mov [rax+48h], rdx"], [264, "mov rdx, cs:qword_464F68"], [265, "mov rax, [rbp+var_20]"], [266, "mov [rax], rdx"], [267, "mov rax, [rbp+var_20]"], [268, "mov cs:qword_464F68, rax"], [269, "jmp short loc_41FAFF"], [270, "lea rdx, [rbp+var_2F]"], [271, "mov rax, [rbp+var_40]"], [272, "mov rsi, rdx"], [273, "mov rdi, rax"], [274, "call sub_41DB25"], [275, "mov rax, [rbp+var_48]"], [276, "mov rdi, rax"], [277, "call sub_412805"], [278, "jmp loc_42039F"], [279, "mov rax, [rbp+var_20]"], [280, "movzx eax, byte ptr [rax+20h]"], [281, "and eax, 0FFFFFFFEh"], [282, "mov edx, eax"], [283, "mov rax, [rbp+var_20]"], [284, "mov [rax+20h], dl"], [285, "lea rdx, [rbp+var_2F]"], [286, "mov rax, [rbp+var_40]"], [287, "mov rsi, rdx"], [288, "mov rdi, rax"], [289, "call sub_41DECF"], [290, "movzx edx, [rbp+var_B]"], [291, "mov rax, [rbp+var_48]"], [292, "mov esi, edx"], [293, "mov rdi, rax"], [294, "call sub_4127DA"], [295, "mov rax, [rbp+var_48]"], [296, "mov rax, [rax+8]"], [297, "movzx edx, byte ptr [rax]"], [298, "mov rax, [rbp+var_48]"], [299, "mov rax, [rax+8]"], [300, "and edx, 0FFFFFFFBh"], [301, "mov [rax], dl"], [302, "mov rax, [rbp+var_48]"], [303, "mov rax, [rax+8]"], [304, "movzx edx, byte ptr [rax]"], [305, "mov rax, [rbp+var_48]"], [306, "mov rax, [rax+8]"], [307, "and edx, 0FFFFFFFDh"], [308, "mov [rax], dl"], [309, "mov rax, [rbp+var_48]"], [310, "mov rax, [rax+8]"], [311, "add rax, 1"], [312, "mov byte ptr [rax], 0EFh"], [313, "mov rax, [rbp+var_48]"], [314, "mov esi, 2"], [315, "mov rdi, rax"], [316, "call sub_415286"], [317, "mov rdx, [rbp+var_20]"], [318, "mov [rdx+26h], al"], [319, "mov rax, [rbp+var_48]"], [320, "mov rax, [rax+8]"], [321, "add rax, 1"], [322, "mov byte ptr [rax], 0FFh"], [323, "mov rax, [rbp+var_48]"], [324, "mov esi, 2"], [325, "mov rdi, rax"], [326, "call sub_415286"], [327, "mov rdx, [rbp+var_20]"], [328, "mov [rdx+27h], al"], [329, "mov rax, [rbp+var_48]"], [330, "mov rax, [rax+8]"], [331, "movzx edx, byte ptr [rax]"], [332, "mov rax, [rbp+var_48]"], [333, "mov rax, [rax+8]"], [334, "and edx, 0FFFFFFFBh"], [335, "mov [rax], dl"], [336, "mov rax, [rbp+var_48]"], [337, "mov rax, [rax+8]"], [338, "movzx edx, byte ptr [rax]"], [339, "mov rax, [rbp+var_48]"], [340, "mov rax, [rax+8]"], [341, "or edx, 2"], [342, "mov [rax], dl"], [343, "mov rax, [rbp+var_48]"], [344, "mov rax, [rax+8]"], [345, "add rax, 1"], [346, "mov byte ptr [rax], 0EFh"], [347, "mov rax, [rbp+var_48]"], [348, "mov esi, 2"], [349, "mov rdi, rax"], [350, "call sub_415286"], [351, "mov rdx, [rbp+var_20]"], [352, "mov [rdx+24h], al"], [353, "mov rax, [rbp+var_48]"], [354, "mov rax, [rax+8]"], [355, "add rax, 1"], [356, "mov byte ptr [rax], 0FFh"], [357, "mov rax, [rbp+var_48]"], [358, "mov esi, 2"], [359, "mov rdi, rax"], [360, "call sub_415286"], [361, "mov rdx, [rbp+var_20]"], [362, "mov [rdx+25h], al"], [363, "mov rax, [rbp+var_48]"], [364, "mov rax, [rax+8]"], [365, "movzx edx, byte ptr [rax]"], [366, "mov rax, [rbp+var_48]"], [367, "mov rax, [rax+8]"], [368, "and edx, 0FFFFFFFBh"], [369, "mov [rax], dl"], [370, "mov rax, [rbp+var_48]"], [371, "mov rax, [rax+8]"], [372, "add rax, 1"], [373, "mov byte ptr [rax], 0EFh"], [374, "mov rax, [rbp+var_48]"], [375, "mov esi, 2"], [376, "mov rdi, rax"], [377, "call sub_415286"], [378, "mov rdx, [rbp+var_20]"], [379, "mov [rdx+28h], al"], [380, "mov rax, [rbp+var_48]"], [381, "mov rax, [rax+8]"], [382, "movzx edx, byte ptr [rax]"], [383, "mov rax, [rbp+var_48]"], [384, "mov rax, [rax+8]"], [385, "and edx, 0FFFFFFF9h"], [386, "mov [rax], dl"], [387, "mov rax, [rbp+var_48]"], [388, "mov rax, [rax+8]"], [389, "add rax, 1"], [390, "mov byte ptr [rax], 0EFh"], [391, "mov rax, [rbp+var_48]"], [392, "mov esi, 2"], [393, "mov rdi, rax"], [394, "call sub_415286"], [395, "mov rdx, [rbp+var_20]"], [396, "mov [rdx+29h], al"], [397, "mov rax, [rbp+var_48]"], [398, "mov rdi, rax"], [399, "call sub_412805"], [400, "jmp loc_42039F"], [401, "mov rax, [rbp+var_20]"], [402, "mov word ptr [rax+22h], 0"], [403, "mov rax, [rbp+var_20]"], [404, "mov eax, [rax+8]"], [405, "cmp eax, 3"], [406, "jnz loc_41FFAE"], [407, "mov rax, [rbp+var_20]"], [408, "mov dword ptr [rax+8], 4"], [409, "movzx edx, [rbp+var_B]"], [410, "mov rax, [rbp+var_48]"], [411, "mov esi, edx"], [412, "mov rdi, rax"], [413, "call sub_4127DA"], [414, "mov rax, [rbp+var_48]"], [415, "mov rax, [rax+8]"], [416, "movzx edx, byte ptr [rax]"], [417, "mov rax, [rbp+var_48]"], [418, "mov rax, [rax+8]"], [419, "and edx, 0FFFFFFFBh"], [420, "mov [rax], dl"], [421, "mov rax, [rbp+var_48]"], [422, "mov rax, [rax+8]"], [423, "movzx edx, byte ptr [rax]"], [424, "mov rax, [rbp+var_48]"], [425, "mov rax, [rax+8]"], [426, "or edx, 2"], [427, "mov [rax], dl"], [428, "mov rax, [rbp+var_48]"], [429, "mov rax, [rax+8]"], [430, "add rax, 1"], [431, "mov byte ptr [rax], 0EFh"], [432, "mov rax, [rbp+var_48]"], [433, "mov esi, 2"], [434, "mov rdi, rax"], [435, "call sub_415286"], [436, "mov rdx, [rbp+var_20]"], [437, "mov [rdx+26h], al"], [438, "mov rax, [rbp+var_48]"], [439, "mov rax, [rax+8]"], [440, "add rax, 1"], [441, "mov byte ptr [rax], 0FFh"], [442, "mov rax, [rbp+var_48]"], [443, "mov esi, 2"], [444, "mov rdi, rax"], [445, "call sub_415286"], [446, "mov rdx, [rbp+var_20]"], [447, "mov [rdx+27h], al"], [448, "mov rax, [rbp+var_48]"], [449, "mov rax, [rax+8]"], [450, "movzx edx, byte ptr [rax]"], [451, "mov rax, [rbp+var_48]"], [452, "mov rax, [rax+8]"], [453, "and edx, 0FFFFFFFBh"], [454, "mov [rax], dl"], [455, "mov rax, [rbp+var_48]"], [456, "mov rax, [rax+8]"], [457, "movzx edx, byte ptr [rax]"], [458, "mov rax, [rbp+var_48]"], [459, "mov rax, [rax+8]"], [460, "and edx, 0FFFFFFFDh"], [461, "mov [rax], dl"], [462, "mov rax, [rbp+var_48]"], [463, "mov rax, [rax+8]"], [464, "add rax, 1"], [465, "mov byte ptr [rax], 0EFh"], [466, "mov rax, [rbp+var_48]"], [467, "mov esi, 2"], [468, "mov rdi, rax"], [469, "call sub_415286"], [470, "mov rdx, [rbp+var_20]"], [471, "mov [rdx+24h], al"], [472, "mov rax, [rbp+var_48]"], [473, "mov rax, [rax+8]"], [474, "add rax, 1"], [475, "mov byte ptr [rax], 0FFh"], [476, "mov rax, [rbp+var_48]"], [477, "mov esi, 2"], [478, "mov rdi, rax"], [479, "call sub_415286"], [480, "mov rdx, [rbp+var_20]"], [481, "mov [rdx+25h], al"], [482, "mov rax, [rbp+var_48]"], [483, "mov rax, [rax+8]"], [484, "movzx edx, byte ptr [rax]"], [485, "mov rax, [rbp+var_48]"], [486, "mov rax, [rax+8]"], [487, "and edx, 0FFFFFFFBh"], [488, "mov [rax], dl"], [489, "mov rax, [rbp+var_48]"], [490, "mov rax, [rax+8]"], [491, "movzx edx, byte ptr [rax]"], [492, "mov rax, [rbp+var_48]"], [493, "mov rax, [rax+8]"], [494, "or edx, 2"], [495, "mov [rax], dl"], [496, "mov rax, [rbp+var_48]"], [497, "mov rax, [rax+8]"], [498, "add rax, 1"], [499, "mov byte ptr [rax], 0EFh"], [500, "mov rax, [rbp+var_48]"], [501, "mov esi, 2"], [502, "mov rdi, rax"], [503, "call sub_415286"], [504, "mov rdx, [rbp+var_20]"], [505, "mov [rdx+29h], al"], [506, "mov rax, [rbp+var_48]"], [507, "mov rax, [rax+8]"], [508, "movzx edx, byte ptr [rax]"], [509, "mov rax, [rbp+var_48]"], [510, "mov rax, [rax+8]"], [511, "and edx, 0FFFFFFF9h"], [512, "mov [rax], dl"], [513, "mov rax, [rbp+var_48]"], [514, "mov rax, [rax+8]"], [515, "add rax, 1"], [516, "mov byte ptr [rax], 0EFh"], [517, "mov rax, [rbp+var_48]"], [518, "mov esi, 2"], [519, "mov rdi, rax"], [520, "call sub_415286"], [521, "mov rdx, [rbp+var_20]"], [522, "mov [rdx+28h], al"], [523, "mov rax, [rbp+var_20]"], [524, "movzx eax, byte ptr [rax+18h]"], [525, "test al, al"], [526, "jnz loc_41FF96"], [527, "mov rax, cs:qword_464F68"], [528, "mov [rbp+var_28], rax"], [529, "jmp loc_41FF89"], [530, "mov rax, [rbp+var_28]"], [531, "mov rax, [rax+10h]"], [532, "movzx edx, byte ptr [rax+30h]"], [533, "mov rax, [rbp+var_20]"], [534, "mov rax, [rax+10h]"], [535, "movzx eax, byte ptr [rax+30h]"], [536, "cmp dl, al"], [537, "jnz loc_41FF7E"], [538, "mov rax, [rbp+var_28]"], [539, "mov rax, [rax+10h]"], [540, "movzx edx, byte ptr [rax+31h]"], [541, "mov rax, [rbp+var_20]"], [542, "mov rax, [rax+10h]"], [543, "movzx eax, byte ptr [rax+31h]"], [544, "cmp dl, al"], [545, "jnz loc_41FF7E"], [546, "mov rax, [rbp+var_28]"], [547, "mov rax, [rax+10h]"], [548, "movzx edx, byte ptr [rax+32h]"], [549, "mov rax, [rbp+var_20]"], [550, "mov rax, [rax+10h]"], [551, "movzx eax, byte ptr [rax+32h]"], [552, "cmp dl, al"], [553, "jnz short loc_41FF7E"], [554, "mov rax, [rbp+var_28]"], [555, "mov rax, [rax+10h]"], [556, "movzx edx, byte ptr [rax+33h]"], [557, "mov rax, [rbp+var_20]"], [558, "mov rax, [rax+10h]"], [559, "movzx eax, byte ptr [rax+33h]"], [560, "cmp dl, al"], [561, "jnz short loc_41FF7E"], [562, "mov rax, [rbp+var_28]"], [563, "mov rax, [rax+10h]"], [564, "movzx edx, byte ptr [rax+34h]"], [565, "mov rax, [rbp+var_20]"], [566, "mov rax, [rax+10h]"], [567, "movzx eax, byte ptr [rax+34h]"], [568, "cmp dl, al"], [569, "jnz short loc_41FF7E"], [570, "mov rax, [rbp+var_28]"], [571, "mov rax, [rax+10h]"], [572, "movzx edx, byte ptr [rax+35h]"], [573, "mov rax, [rbp+var_20]"], [574, "mov rax, [rax+10h]"], [575, "movzx eax, byte ptr [rax+35h]"], [576, "cmp dl, al"], [577, "jnz short loc_41FF7E"], [578, "mov rax, [rbp+var_28]"], [579, "mov eax, [rax+8]"], [580, "cmp eax, 2"], [581, "jnz short loc_41FF7E"], [582, "mov rax, [rbp+var_28]"], [583, "mov esi, 0"], [584, "mov rdi, rax"], [585, "call sub_41DF81"], [586, "jmp loc_420002"], [587, "mov rax, [rbp+var_28]"], [588, "mov rax, [rax]"], [589, "mov [rbp+var_28], rax"], [590, "cmp [rbp+var_28], 0"], [591, "jnz loc_41FEAC"], [592, "jmp short loc_420002"], [593, "mov rax, [rbp+var_20]"], [594, "mov edx, 0"], [595, "mov esi, 0"], [596, "mov rdi, rax"], [597, "call sub_41E162"], [598, "jmp short loc_420002"], [599, "mov rax, [rbp+var_20]"], [600, "mov eax, [rax+8]"], [601, "cmp eax, 6"], [602, "jnz short loc_420002"], [603, "mov rax, [rbp+var_20]"], [604, "mov dword ptr [rax+8], 0"], [605, "mov rax, [rbp+var_20]"], [606, "mov rax, [rax+50h]"], [607, "test rax, rax"], [608, "jz short loc_41FFF6"], [609, "mov rax, [rbp+var_20]"], [610, "mov r8, [rax+50h]"], [611, "mov rax, [rbp+var_20]"], [612, "mov rax, [rax+38h]"], [613, "mov rcx, [rbp+var_20]"], [614, "mov edx, 0"], [615, "mov rsi, rcx"], [616, "mov rdi, rax"], [617, "call r8"], [618, "jmp short loc_420002"], [619, "mov rax, [rbp+var_20]"], [620, "mov rdi, rax"], [621, "call sub_41D835"], [622, "mov rax, [rbp+var_48]"], [623, "mov rdi, rax"], [624, "call sub_412805"], [625, "jmp loc_42039F"], [626, "mov rax, [rbp+var_20]"], [627, "mov word ptr [rax+22h], 0"], [628, "mov rax, [rbp+var_20]"], [629, "mov eax, [rax+8]"], [630, "cmp eax, 3"], [631, "jnz short loc_420065"], [632, "mov rax, [rbp+var_20]"], [633, "mov dword ptr [rax+8], 0"], [634, "mov rax, [rbp+var_20]"], [635, "mov rax, [rax+40h]"], [636, "test rax, rax"], [637, "jz short loc_4200AD"], [638, "mov rax, [rbp+var_20]"], [639, "mov r8, [rax+40h]"], [640, "mov rax, [rbp+var_20]"], [641, "mov rax, [rax+38h]"], [642, "mov rcx, [rbp+var_20]"], [643, "mov edx, 0FFFFFFF5h"], [644, "mov rsi, rcx"], [645, "mov rdi, rax"], [646, "call r8"], [647, "jmp short loc_4200AD"], [648, "mov rax, [rbp+var_20]"], [649, "mov dword ptr [rax+8], 0"], [650, "mov rax, [rbp+var_20]"], [651, "mov rax, [rax+50h]"], [652, "test rax, rax"], [653, "jz short loc_4200A1"], [654, "mov rax, [rbp+var_20]"], [655, "mov r8, [rax+50h]"], [656, "mov rax, [rbp+var_20]"], [657, "mov rax, [rax+38h]"], [658, "mov rcx, [rbp+var_20]"], [659, "mov edx, 0FFFFFFF5h"], [660, "mov rsi, rcx"], [661, "mov rdi, rax"], [662, "call r8"], [663, "jmp short loc_4200AD"], [664, "mov rax, [rbp+var_20]"], [665, "mov rdi, rax"], [666, "call sub_41D835"], [667, "mov rax, [rbp+var_48]"], [668, "mov rdi, rax"], [669, "call sub_412805"], [670, "jmp loc_42039F"], [671, "lea rdx, [rbp+var_2F]"], [672, "mov rax, [rbp+var_40]"], [673, "mov rsi, rdx"], [674, "mov rdi, rax"], [675, "call sub_41DECF"], [676, "mov [rbp+var_29], al"], [677, "mov rax, [rbp+var_20]"], [678, "mov dword ptr [rax+8], 0"], [679, "mov rax, [rbp+var_20]"], [680, "mov rax, [rax+50h]"], [681, "test rax, rax"], [682, "jz short loc_420110"], [683, "mov rax, [rbp+var_20]"], [684, "mov r8, [rax+50h]"], [685, "mov rax, [rbp+var_20]"], [686, "mov rax, [rax+38h]"], [687, "mov rcx, [rbp+var_20]"], [688, "mov edx, 0"], [689, "mov rsi, rcx"], [690, "mov rdi, rax"], [691, "call r8"], [692, "jmp short loc_42011C"], [693, "mov rax, [rbp+var_20]"], [694, "mov rdi, rax"], [695, "call sub_41D835"], [696, "mov rax, [rbp+var_48]"], [697, "mov rdi, rax"], [698, "call sub_412805"], [699, "jmp loc_42039F"], [700, "movzx eax, [rbp+var_2F]"], [701, "shr al, 3"], [702, "test al, al"], [703, "jnz short loc_420161"], [704, "mov rcx, [rbp+var_48]"], [705, "mov rdx, [rbp+var_40]"], [706, "lea rsi, [rbp+var_2F]"], [707, "mov rax, [rbp+var_20]"], [708, "mov rdi, rax"], [709, "call sub_41EAE7"], [710, "mov rax, [rbp+var_48]"], [711, "mov rdi, rax"], [712, "call sub_412805"], [713, "jmp loc_42039F"], [714, "mov rax, [rbp+var_20]"], [715, "movzx eax, byte ptr [rax+19h]"], [716, "cmp al, 0Fh"], [717, "jnz loc_42028E"], [718, "mov rax, [rbp+var_20]"], [719, "movzx eax, byte ptr [rax+1Fh]"], [720, "test al, al"], [721, "jz short loc_420198"], [722, "movzx eax, [rbp+var_2D]"], [723, "test ax, ax"], [724, "jz short loc_420198"], [725, "mov rax, [rbp+var_20]"], [726, "movzx eax, byte ptr [rax+1Fh]"], [727, "lea edx, [rax-1]"], [728, "mov rax, [rbp+var_20]"], [729, "mov [rax+1Fh], dl"], [730, "mov rax, [rbp+var_20]"], [731, "movzx eax, byte ptr [rax+1Fh]"], [732, "cmp al, 4"], [733, "ja short loc_4201C4"], [734, "mov rax, [rbp+var_20]"], [735, "movzx edx, byte ptr [rax+1Fh]"], [736, "mov eax, 0Ah"], [737, "sub eax, edx"], [738, "movzx edx, al"], [739, "mov rax, [rbp+var_20]"], [740, "mov esi, edx"], [741, "mov rdi, rax"], [742, "call sub_41E9AA"], [743, "mov rax, [rbp+var_20]"], [744, "movzx eax, byte ptr [rax+1Eh]"], [745, "movzx edx, al"], [746, "movzx eax, [rbp+var_2B]"], [747, "movzx eax, al"], [748, "add eax, edx"], [749, "cmp eax, 0FEh"], [750, "jg short loc_420240"], [751, "mov rax, [rbp+var_20]"], [752, "movzx edx, byte ptr [rax+1Eh]"], [753, "movzx eax, [rbp+var_2B]"], [754, "add edx, eax"], [755, "mov rax, [rbp+var_20]"], [756, "mov [rax+1Eh], dl"], [757, "mov rax, [rbp+var_20]"], [758, "mov rax, [rax+30h]"], [759, "test rax, rax"], [760, "jz short loc_420248"], [761, "mov rax, [rbp+var_20]"], [762, "mov rdx, [rax+30h]"], [763, "mov rax, [rbp+var_20]"], [764, "movzx eax, byte ptr [rax+18h]"], [765, "movzx ecx, al"], [766, "mov rax, [rbp+var_20]"], [767, "mov esi, ecx"], [768, "mov rdi, rax"], [769, "call sub_41E370"], [770, "mov rax, [rbp+var_20]"], [771, "mov rax, [rax+30h]"], [772, "mov rdi, rax"], [773, "call sub_412805"], [774, "mov rax, [rbp+var_20]"], [775, "mov qword ptr [rax+30h], 0"], [776, "jmp short loc_420248"], [777, "mov rax, [rbp+var_20]"], [778, "mov byte ptr [rax+1Eh], 0FFh"], [779, "mov rax, [rbp+var_20]"], [780, "mov rax, [rax+78h]"], [781, "test rax, rax"], [782, "jz short loc_42027D"], [783, "mov rax, [rbp+var_20]"], [784, "mov r8, [rax+78h]"], [785, "mov rax, [rbp+var_20]"], [786, "mov rax, [rax+38h]"], [787, "mov rdx, [rbp+var_48]"], [788, "mov rsi, [rbp+var_20]"], [789, "mov ecx, 0"], [790, "mov rdi, rax"], [791, "call r8"], [792, "jmp loc_42039F"], [793, "mov rax, [rbp+var_48]"], [794, "mov rdi, rax"], [795, "call sub_412805"], [796, "jmp loc_42039F"], [797, "mov rax, [rbp+var_20]"], [798, "mov rax, [rax+78h]"], [799, "test rax, rax"], [800, "jz short loc_4202C3"], [801, "mov rax, [rbp+var_20]"], [802, "mov r8, [rax+78h]"], [803, "mov rax, [rbp+var_20]"], [804, "mov rax, [rax+38h]"], [805, "mov rdx, [rbp+var_48]"], [806, "mov rsi, [rbp+var_20]"], [807, "mov ecx, 0"], [808, "mov rdi, rax"], [809, "call r8"], [810, "jmp loc_42039F"], [811, "mov rax, [rbp+var_48]"], [812, "mov rdi, rax"], [813, "call sub_412805"], [814, "jmp loc_42039F"], [815, "movzx eax, [rbp+var_2F]"], [816, "shr al, 3"], [817, "test al, al"], [818, "jnz short loc_420308"], [819, "mov rcx, [rbp+var_48]"], [820, "mov rdx, [rbp+var_40]"], [821, "lea rsi, [rbp+var_2F]"], [822, "mov rax, [rbp+var_20]"], [823, "mov rdi, rax"], [824, "call sub_41EAE7"], [825, "mov rax, [rbp+var_48]"], [826, "mov rdi, rax"], [827, "call sub_412805"], [828, "jmp loc_42039F"], [829, "mov rax, [rbp+var_20]"], [830, "movzx eax, byte ptr [rax+1Fh]"], [831, "test al, al"], [832, "jz short loc_420326"], [833, "mov rax, [rbp+var_20]"], [834, "movzx eax, byte ptr [rax+1Fh]"], [835, "lea edx, [rax-1]"], [836, "mov rax, [rbp+var_20]"], [837, "mov [rax+1Fh], dl"], [838, "mov rax, [rbp+var_20]"], [839, "movzx eax, byte ptr [rax+1Fh]"], [840, "cmp al, 4"], [841, "ja short loc_420352"], [842, "mov rax, [rbp+var_20]"], [843, "movzx edx, byte ptr [rax+1Fh]"], [844, "mov eax, 0Ah"], [845, "sub eax, edx"], [846, "movzx edx, al"], [847, "mov rax, [rbp+var_20]"], [848, "mov esi, edx"], [849, "mov rdi, rax"], [850, "call sub_41E9AA"], [851, "mov rax, [rbp+var_20]"], [852, "mov rax, [rax+78h]"], [853, "test rax, rax"], [854, "jz short loc_420384"], [855, "mov rax, [rbp+var_20]"], [856, "mov r8, [rax+78h]"], [857, "mov rax, [rbp+var_20]"], [858, "mov rax, [rax+38h]"], [859, "mov rdx, [rbp+var_48]"], [860, "mov rsi, [rbp+var_20]"], [861, "mov ecx, 0"], [862, "mov rdi, rax"], [863, "call r8"], [864, "jmp short loc_42039F"], [865, "mov rax, [rbp+var_48]"], [866, "mov rdi, rax"], [867, "call sub_412805"], [868, "jmp short loc_42039F"], [869, "mov rax, [rbp+var_48]"], [870, "mov rdi, rax"], [871, "call sub_412805"], [872, "nop"], [873, "mov eax, 0"], [874, "leave"], [875, "retn"]], "data_dep": [[7, 6], [10, 5], [11, 10], [12, 11], [13, 12], [14, 5], [15, 14], [16, 15], [17, 16], [18, 4], [19, 18], [20, 13], [21, 20], [22, 21], [23, 19], [24, 22], [26, 25], [27, 26], [28, 27], [29, 17], [30, 29], [31, 30], [32, 17], [33, 32], [34, 33], [35, 17], [36, 35], [37, 36], [38, 13], [38, 19], [39, 4], [40, 38], [41, 39], [43, 5], [44, 43], [48, 5], [49, 48], [50, 49], [51, 50], [52, 51], [53, 52], [54, 53], [55, 54], [57, 5], [58, 57], [59, 58], [60, 59], [61, 60], [62, 61], [63, 62], [64, 63], [67, 5], [68, 67], [69, 68], [70, 69], [71, 70], [72, 71], [73, 17], [74, 73], [75, 74], [76, 26], [77, 76], [78, 77], [79, 78], [80, 5], [81, 80], [82, 66], [82, 56], [83, 19], [83, 82], [84, 83], [85, 82], [86, 81], [86, 85], [87, 86], [88, 87], [89, 5], [90, 89], [92, 90], [92, 121], [93, 92], [94, 8], [94, 96], [95, 94], [95, 93], [96, 95], [97, 96], [98, 72], [98, 64], [99, 98], [100, 84], [100, 66], [100, 56], [101, 99], [101, 100], [102, 97], [102, 101], [103, 102], [104, 96], [105, 121], [105, 90], [106, 105], [107, 104], [108, 106], [108, 107], [109, 108], [110, 64], [110, 72], [111, 109], [112, 111], [112, 110], [113, 112], [114, 84], [114, 66], [114, 56], [115, 113], [116, 114], [116, 115], [117, 116], [119, 121], [119, 90], [120, 119], [121, 120], [122, 121], [122, 90], [123, 122], [124, 121], [124, 90], [125, 124], [126, 117], [126, 8], [126, 96], [127, 126], [127, 125], [128, 127], [129, 128], [130, 17], [131, 130], [132, 131], [133, 26], [134, 133], [135, 134], [136, 135], [137, 26], [138, 137], [139, 138], [139, 129], [140, 139], [141, 5], [142, 141], [146, 17], [147, 146], [148, 147], [149, 26], [150, 149], [151, 150], [151, 129], [152, 151], [153, 5], [154, 153], [158, 129], [159, 66], [159, 56], [159, 84], [160, 5], [161, 159], [162, 160], [164, 163], [165, 164], [166, 5], [167, 166], [171, 66], [171, 56], [171, 84], [172, 171], [173, 172], [174, 5], [175, 173], [176, 174], [178, 72], [178, 64], [179, 178], [180, 5], [181, 179], [182, 180], [184, 17], [185, 184], [186, 185], [187, 186], [188, 185], [189, 188], [190, 185], [191, 190], [192, 185], [193, 192], [194, 185], [195, 194], [196, 185], [197, 196], [198, 185], [199, 198], [200, 185], [201, 200], [202, 185], [203, 202], [204, 185], [205, 204], [206, 185], [207, 206], [208, 185], [209, 208], [211, 26], [212, 211], [214, 13], [215, 214], [216, 215], [217, 216], [219, 218], [221, 229], [221, 219], [222, 221], [223, 13], [224, 223], [225, 222], [225, 224], [226, 225], [227, 229], [227, 219], [228, 227], [229, 228], [230, 229], [230, 219], [231, 230], [234, 229], [234, 219], [234, 213], [235, 234], [236, 4], [237, 236], [239, 238], [240, 239], [241, 240], [242, 13], [242, 179], [242, 224], [243, 4], [244, 242], [245, 243], [247, 5], [248, 247], [252, 229], [252, 219], [252, 213], [253, 252], [254, 239], [255, 253], [255, 254], [256, 219], [256, 213], [256, 229], [257, 255], [257, 256], [258, 239], [259, 258], [259, 257], [260, 213], [260, 229], [260, 219], [261, 260], [261, 259], [261, 255], [262, 239], [263, 261], [263, 262], [265, 239], [266, 265], [266, 264], [267, 239], [268, 267], [270, 13], [270, 179], [270, 224], [271, 4], [272, 270], [273, 271], [275, 5], [276, 275], [279, 239], [279, 26], [280, 301], [280, 255], [280, 379], [280, 356], [280, 369], [280, 346], [280, 335], [280, 390], [280, 259], [280, 284], [280, 362], [280, 263], [280, 328], [280, 318], [280, 308], [280, 396], [280, 373], [280, 386], [280, 352], [280, 342], [280, 322], [280, 312], [280, 266], [280, 279], [281, 280], [282, 281], [283, 26], [283, 239], [284, 283], [284, 282], [285, 282], [285, 13], [286, 4], [287, 285], [288, 286], [290, 66], [290, 56], [290, 84], [291, 5], [292, 290], [293, 291], [295, 5], [296, 284], [296, 295], [297, 284], [297, 296], [297, 266], [298, 5], [299, 284], [299, 298], [300, 297], [301, 300], [301, 299], [302, 5], [303, 301], [303, 302], [304, 301], [304, 303], [305, 5], [306, 301], [306, 305], [307, 304], [308, 307], [308, 306], [309, 5], [310, 309], [310, 308], [311, 310], [312, 311], [313, 5], [315, 313], [317, 26], [317, 239], [318, 317], [318, 316], [319, 5], [320, 319], [320, 318], [321, 320], [322, 321], [323, 5], [325, 323], [327, 26], [327, 239], [328, 326], [328, 327], [329, 5], [330, 328], [330, 329], [331, 328], [331, 330], [331, 322], [332, 5], [333, 328], [333, 332], [334, 331], [335, 334], [335, 333], [336, 5], [337, 335], [337, 336], [338, 335], [338, 337], [339, 5], [340, 335], [340, 339], [341, 338], [342, 341], [342, 340], [343, 5], [344, 343], [344, 342], [345, 344], [346, 345], [347, 5], [349, 347], [351, 239], [351, 26], [352, 351], [352, 350], [353, 5], [354, 352], [354, 353], [355, 354], [356, 355], [357, 5], [359, 357], [361, 26], [361, 239], [362, 361], [362, 360], [363, 5], [364, 362], [364, 363], [365, 362], [365, 364], [365, 356], [366, 5], [367, 362], [367, 366], [368, 365], [369, 368], [369, 367], [370, 5], [371, 369], [371, 370], [372, 371], [373, 372], [374, 5], [376, 374], [378, 26], [378, 239], [379, 377], [379, 378], [380, 5], [381, 379], [381, 380], [382, 379], [382, 381], [382, 373], [383, 5], [384, 383], [384, 379], [385, 382], [386, 385], [386, 384], [387, 5], [388, 387], [388, 386], [389, 388], [390, 389], [391, 5], [393, 391], [395, 26], [395, 239], [396, 394], [396, 395], [397, 5], [398, 397], [401, 26], [402, 401], [403, 26], [404, 402], [404, 403], [405, 404], [406, 405], [407, 26], [408, 407], [409, 84], [409, 66], [409, 56], [410, 5], [411, 409], [412, 410], [414, 5], [415, 414], [415, 408], [416, 415], [416, 408], [417, 5], [418, 408], [418, 417], [419, 416], [420, 418], [420, 419], [421, 5], [422, 408], [422, 420], [422, 421], [423, 422], [423, 420], [424, 5], [425, 408], [425, 420], [425, 424], [426, 423], [427, 425], [427, 426], [428, 5], [429, 427], [429, 428], [429, 408], [430, 429], [431, 430], [432, 5], [434, 432], [436, 26], [437, 436], [437, 435], [438, 5], [439, 438], [439, 408], [439, 437], [440, 439], [441, 440], [442, 5], [444, 442], [446, 26], [447, 446], [447, 445], [448, 5], [449, 408], [449, 448], [449, 447], [450, 447], [450, 449], [450, 441], [451, 5], [452, 451], [452, 408], [452, 447], [453, 450], [454, 453], [454, 452], [455, 5], [456, 408], [456, 455], [456, 454], [457, 454], [457, 456], [458, 5], [459, 458], [459, 408], [459, 454], [460, 457], [461, 460], [461, 459], [462, 5], [463, 462], [463, 461], [463, 408], [464, 463], [465, 464], [466, 5], [468, 466], [470, 26], [471, 470], [471, 469], [472, 5], [473, 472], [473, 471], [473, 408], [474, 473], [475, 474], [476, 5], [478, 476], [480, 26], [481, 479], [481, 480], [482, 5], [483, 482], [483, 408], [483, 481], [484, 481], [484, 483], [484, 475], [485, 5], [486, 408], [486, 485], [486, 481], [487, 484], [488, 486], [488, 487], [489, 5], [490, 488], [490, 489], [490, 408], [491, 488], [491, 490], [492, 5], [493, 492], [493, 408], [493, 488], [494, 491], [495, 493], [495, 494], [496, 5], [497, 408], [497, 496], [497, 495], [498, 497], [499, 498], [500, 5], [502, 500], [504, 26], [505, 504], [505, 503], [506, 5], [507, 408], [507, 506], [507, 505], [508, 507], [508, 499], [508, 505], [509, 5], [510, 505], [510, 408], [510, 509], [511, 508], [512, 510], [512, 511], [513, 5], [514, 513], [514, 408], [514, 512], [515, 514], [516, 515], [517, 5], [519, 517], [521, 26], [522, 521], [522, 520], [523, 26], [524, 523], [524, 522], [525, 524], [526, 525], [528, 527], [530, 528], [530, 589], [531, 481], [531, 471], [531, 402], [531, 516], [531, 447], [531, 437], [531, 427], [531, 505], [531, 495], [531, 461], [531, 441], [531, 431], [531, 408], [531, 420], [531, 475], [531, 488], [531, 465], [531, 530], [531, 454], [531, 522], [531, 499], [531, 512], [532, 516], [532, 447], [532, 437], [532, 427], [532, 505], [532, 495], [532, 461], [532, 441], [532, 431], [532, 408], [532, 420], [532, 531], [532, 475], [532, 488], [532, 465], [532, 454], [532, 522], [532, 499], [532, 512], [532, 481], [532, 471], [532, 402], [533, 26], [534, 481], [534, 471], [534, 516], [534, 437], [534, 427], [534, 505], [534, 495], [534, 461], [534, 441], [534, 431], [534, 408], [534, 420], [534, 475], [534, 488], [534, 465], [534, 533], [534, 402], [534, 454], [534, 447], [534, 522], [534, 499], [534, 512], [535, 471], [535, 461], [535, 441], [535, 431], [535, 516], [535, 408], [535, 420], [535, 475], [535, 488], [535, 465], [535, 454], [535, 522], [535, 499], [535, 512], [535, 534], [535, 481], [535, 402], [535, 447], [535, 437], [535, 427], [535, 505], [535, 495], [536, 532], [536, 535], [537, 536], [538, 589], [538, 528], [539, 454], [539, 522], [539, 499], [539, 512], [539, 481], [539, 402], [539, 447], [539, 437], [539, 427], [539, 538], [539, 505], [539, 495], [539, 471], [539, 461], [539, 441], [539, 431], [539, 516], [539, 408], [539, 420], [539, 475], [539, 488], [539, 465], [540, 461], [540, 441], [540, 454], [540, 539], [540, 431], [540, 408], [540, 499], [540, 420], [540, 475], [540, 488], [540, 465], [540, 402], [540, 447], [540, 522], [540, 512], [540, 481], [540, 471], [540, 516], [540, 437], [540, 427], [540, 505], [540, 495], [541, 26], [542, 454], [542, 522], [542, 499], [542, 512], [542, 481], [542, 471], [542, 402], [542, 516], [542, 447], [542, 437], [542, 427], [542, 505], [542, 495], [542, 461], [542, 441], [542, 431], [542, 408], [542, 420], [542, 541], [542, 475], [542, 488], [542, 465], [543, 475], [543, 488], [543, 465], [543, 454], [543, 522], [543, 499], [543, 512], [543, 481], [543, 471], [543, 402], [543, 516], [543, 447], [543, 437], [543, 427], [543, 505], [543, 495], [543, 461], [543, 441], [543, 431], [543, 408], [543, 542], [543, 420], [544, 540], [544, 543], [545, 544], [546, 589], [546, 528], [547, 481], [547, 471], [547, 546], [547, 402], [547, 516], [547, 447], [547, 437], [547, 427], [547, 505], [547, 495], [547, 461], [547, 441], [547, 431], [547, 408], [547, 420], [547, 475], [547, 488], [547, 465], [547, 454], [547, 522], [547, 499], [547, 512], [548, 488], [548, 465], [548, 402], [548, 447], [548, 437], [548, 522], [548, 512], [548, 547], [548, 481], [548, 471], [548, 461], [548, 516], [548, 427], [548, 505], [548, 495], [548, 475], [548, 441], [548, 454], [548, 431], [548, 408], [548, 499], [548, 420], [549, 26], [550, 481], [550, 471], [550, 549], [550, 516], [550, 437], [550, 427], [550, 505], [550, 495], [550, 461], [550, 441], [550, 454], [550, 431], [550, 408], [550, 499], [550, 420], [550, 475], [550, 488], [550, 465], [550, 402], [550, 447], [550, 522], [550, 512], [551, 461], [551, 441], [551, 431], [551, 408], [551, 420], [551, 475], [551, 488], [551, 465], [551, 454], [551, 522], [551, 499], [551, 512], [551, 481], [551, 471], [551, 402], [551, 516], [551, 447], [551, 437], [551, 427], [551, 505], [551, 495], [551, 550], [552, 548], [552, 551], [553, 552], [554, 589], [554, 528], [555, 505], [555, 495], [555, 461], [555, 441], [555, 454], [555, 431], [555, 408], [555, 499], [555, 420], [555, 554], [555, 475], [555, 488], [555, 465], [555, 402], [555, 447], [555, 522], [555, 512], [555, 481], [555, 471], [555, 516], [555, 437], [555, 427], [556, 488], [556, 465], [556, 454], [556, 555], [556, 522], [556, 499], [556, 512], [556, 481], [556, 471], [556, 402], [556, 516], [556, 447], [556, 437], [556, 427], [556, 505], [556, 495], [556, 461], [556, 441], [556, 431], [556, 408], [556, 420], [556, 475], [557, 26], [558, 454], [558, 522], [558, 499], [558, 512], [558, 557], [558, 481], [558, 471], [558, 402], [558, 516], [558, 447], [558, 437], [558, 427], [558, 505], [558, 495], [558, 461], [558, 441], [558, 431], [558, 408], [558, 420], [558, 475], [558, 488], [558, 465], [559, 475], [559, 488], [559, 465], [559, 402], [559, 454], [559, 447], [559, 522], [559, 499], [559, 512], [559, 481], [559, 471], [559, 516], [559, 437], [559, 558], [559, 427], [559, 505], [559, 495], [559, 461], [559, 441], [559, 431], [559, 408], [559, 420], [560, 556], [560, 559], [561, 560], [562, 589], [562, 528], [563, 481], [563, 471], [563, 402], [563, 516], [563, 447], [563, 437], [563, 427], [563, 505], [563, 495], [563, 461], [563, 441], [563, 562], [563, 431], [563, 408], [563, 420], [563, 475], [563, 488], [563, 465], [563, 454], [563, 522], [563, 499], [563, 512], [564, 481], [564, 471], [564, 516], [564, 437], [564, 427], [564, 505], [564, 495], [564, 461], [564, 441], [564, 431], [564, 408], [564, 420], [564, 475], [564, 488], [564, 465], [564, 563], [564, 402], [564, 454], [564, 447], [564, 522], [564, 499], [564, 512], [565, 26], [566, 481], [566, 471], [566, 461], [566, 516], [566, 437], [566, 427], [566, 505], [566, 495], [566, 441], [566, 454], [566, 431], [566, 408], [566, 499], [566, 420], [566, 475], [566, 488], [566, 465], [566, 402], [566, 565], [566, 447], [566, 522], [566, 512], [567, 481], [567, 471], [567, 461], [567, 516], [567, 437], [567, 427], [567, 505], [567, 495], [567, 441], [567, 454], [567, 431], [567, 408], [567, 499], [567, 420], [567, 475], [567, 488], [567, 465], [567, 566], [567, 402], [567, 447], [567, 522], [567, 512], [568, 564], [568, 567], [569, 568], [570, 589], [570, 528], [571, 495], [571, 441], [571, 454], [571, 431], [571, 408], [571, 499], [571, 420], [571, 475], [571, 488], [571, 465], [571, 402], [571, 447], [571, 522], [571, 512], [571, 570], [571, 481], [571, 471], [571, 461], [571, 516], [571, 437], [571, 427], [571, 505], [572, 437], [572, 571], [572, 427], [572, 505], [572, 495], [572, 441], [572, 454], [572, 431], [572, 408], [572, 499], [572, 420], [572, 475], [572, 488], [572, 465], [572, 402], [572, 447], [572, 522], [572, 512], [572, 481], [572, 471], [572, 461], [572, 516], [573, 26], [574, 505], [574, 495], [574, 475], [574, 573], [574, 441], [574, 454], [574, 431], [574, 408], [574, 499], [574, 420], [574, 488], [574, 465], [574, 402], [574, 447], [574, 437], [574, 522], [574, 512], [574, 481], [574, 471], [574, 461], [574, 516], [574, 427], [575, 465], [575, 402], [575, 447], [575, 522], [575, 512], [575, 481], [575, 471], [575, 516], [575, 437], [575, 427], [575, 505], [575, 495], [575, 461], [575, 441], [575, 454], [575, 431], [575, 408], [575, 499], [575, 574], [575, 420], [575, 475], [575, 488], [576, 572], [576, 575], [577, 576], [578, 589], [578, 528], [579, 499], [579, 420], [579, 488], [579, 465], [579, 402], [579, 578], [579, 447], [579, 437], [579, 522], [579, 512], [579, 481], [579, 471], [579, 461], [579, 516], [579, 427], [579, 505], [579, 495], [579, 475], [579, 441], [579, 454], [579, 431], [579, 408], [580, 579], [581, 580], [582, 528], [582, 589], [584, 582], [587, 589], [587, 528], [588, 505], [588, 495], [588, 475], [588, 441], [588, 454], [588, 431], [588, 408], [588, 499], [588, 587], [588, 420], [588, 488], [588, 465], [588, 402], [588, 447], [588, 522], [588, 512], [588, 481], [588, 471], [588, 461], [588, 516], [588, 437], [588, 427], [589, 588], [590, 589], [590, 528], [591, 590], [593, 26], [596, 593], [599, 26], [600, 599], [600, 402], [601, 600], [602, 601], [603, 26], [604, 603], [605, 26], [606, 604], [606, 605], [607, 606], [608, 607], [609, 26], [610, 604], [610, 609], [610, 402], [611, 26], [612, 402], [612, 611], [612, 604], [613, 26], [615, 613], [616, 612], [617, 610], [619, 26], [620, 619], [622, 5], [623, 622], [626, 26], [627, 626], [628, 26], [629, 627], [629, 628], [630, 629], [631, 630], [632, 26], [633, 632], [634, 26], [635, 634], [635, 633], [636, 635], [637, 636], [638, 26], [639, 633], [639, 627], [639, 638], [640, 26], [641, 633], [641, 627], [641, 640], [642, 26], [644, 642], [645, 641], [646, 639], [648, 26], [649, 648], [650, 26], [651, 649], [651, 650], [652, 651], [653, 652], [654, 26], [655, 627], [655, 649], [655, 654], [656, 26], [657, 627], [657, 649], [657, 656], [658, 26], [660, 658], [661, 657], [662, 655], [664, 26], [665, 664], [667, 5], [668, 667], [671, 13], [671, 179], [672, 4], [673, 671], [674, 672], [676, 675], [677, 26], [678, 677], [679, 26], [680, 679], [680, 678], [681, 680], [682, 681], [683, 26], [684, 678], [684, 683], [685, 26], [686, 685], [686, 678], [687, 26], [689, 687], [690, 686], [691, 684], [693, 26], [694, 693], [696, 5], [697, 696], [700, 13], [701, 700], [702, 701], [703, 702], [704, 5], [705, 4], [706, 13], [706, 181], [707, 26], [708, 707], [710, 5], [711, 710], [714, 26], [715, 714], [716, 715], [717, 716], [718, 26], [719, 718], [720, 719], [721, 720], [722, 72], [722, 64], [723, 722], [724, 723], [725, 26], [726, 725], [727, 726], [727, 179], [728, 26], [729, 728], [729, 727], [730, 26], [731, 729], [731, 730], [732, 731], [733, 732], [734, 26], [735, 729], [735, 734], [737, 736], [737, 735], [738, 737], [739, 26], [740, 738], [741, 739], [743, 26], [744, 729], [744, 743], [745, 744], [746, 88], [747, 746], [748, 745], [748, 747], [749, 748], [750, 749], [751, 26], [752, 751], [752, 729], [752, 756], [753, 88], [754, 753], [754, 752], [755, 26], [756, 754], [756, 755], [757, 26], [758, 756], [758, 757], [759, 758], [760, 759], [761, 26], [762, 761], [762, 775], [762, 729], [762, 756], [763, 26], [764, 763], [764, 775], [764, 729], [764, 756], [765, 764], [766, 26], [767, 765], [768, 766], [770, 26], [771, 770], [771, 729], [771, 775], [771, 756], [772, 771], [774, 26], [775, 774], [777, 26], [778, 777], [779, 26], [780, 779], [780, 756], [780, 778], [780, 775], [780, 729], [781, 780], [782, 781], [783, 26], [784, 783], [784, 775], [784, 729], [784, 756], [784, 778], [785, 26], [786, 729], [786, 785], [786, 775], [786, 756], [786, 778], [787, 5], [788, 26], [790, 786], [791, 784], [793, 5], [794, 793], [797, 26], [798, 797], [799, 798], [800, 799], [801, 26], [802, 801], [803, 26], [804, 803], [805, 5], [806, 26], [808, 804], [809, 802], [811, 5], [812, 811], [815, 13], [816, 815], [817, 816], [818, 817], [819, 5], [820, 4], [821, 13], [821, 181], [822, 26], [823, 822], [825, 5], [826, 825], [829, 26], [830, 829], [831, 830], [832, 831], [833, 26], [834, 833], [835, 179], [835, 834], [836, 26], [837, 836], [837, 835], [838, 26], [839, 838], [839, 837], [840, 839], [841, 840], [842, 26], [843, 842], [843, 837], [845, 844], [845, 843], [846, 845], [847, 26], [848, 846], [849, 847], [851, 26], [852, 851], [852, 837], [853, 852], [854, 853], [855, 26], [856, 837], [856, 855], [857, 26], [858, 857], [858, 837], [859, 5], [860, 26], [862, 858], [863, 856], [865, 5], [866, 865], [869, 5], [870, 869], [875, 873], [875, 156], [875, 169], [875, 250], [875, 46], [875, 144]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3_9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.jsonl.gz", "strip_func_name": "sub_41F700", "query": "\n\n\n__int64 __fastcall sub_41F700(__int64 a1, _BYTE *a2, __int64 a3)\n{\n__int64 v4; // rcx\nunsigned __int8 v5; // al\nchar v6; // al\nchar v7; // al\nchar v8; // al\nchar v9; // al\nchar v10; // al\nchar v11; // al\nunsigned __int8 v13; // [rsp+21h] [rbp-2Fh] BYREF\nunsigned __int8 v14; // [rsp+22h] [rbp-2Eh]\nunsigned __int16 v15; // [rsp+23h] [rbp-2Dh]\nunsigned __int8 v16; // [rsp+25h] [rbp-2Bh]\nchar v17; // [rsp+26h] [rbp-2Ah]\nchar v18; // [rsp+27h] [rbp-29h]\n__int64 j; // [rsp+28h] [rbp-28h]\n__int64 v20; // [rsp+30h] [rbp-20h]\n__int64 k; // [rsp+38h] [rbp-18h]\nunsigned __int8 v22; // [rsp+45h] [rbp-Bh]\n__int16 v23; // [rsp+46h] [rbp-Ah]\n__int64 i; // [rsp+48h] [rbp-8h]\n\nv23 = 0;\nv18 = 0;\nv13 = **(_BYTE **)(a3 + 8);\nv14 = *(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL);\nv20 = sub_41DA49(v13 >> 3, a2 + 48);\nif ( v20 || v14 == 63 )\n{\nif ( (*(_BYTE *)(*(_QWORD *)(a3 + 8) + 2LL) & 1) != 0 )\n{\nv22 = 3;\nv15 = (*(_BYTE *)(*(_QWORD *)(a3 + 8) + 2LL) >> 1) & 0x7F;\n}\nelse\n{\nv22 = 4;\nv15 = *(_WORD *)(*(_QWORD *)(a3 + 8) + 2LL) >> 1;\n}\nif ( v14 == 0xFF && *(_BYTE *)(v20 + 25) == 15 )\n{\nv4 = *(_QWORD *)(a3 + 8);\nv5 = v22++;\nv16 = *(_BYTE *)(v4 + v5);\n}\nfor ( i = a3; i; i = *(_QWORD *)i )\n{\nv23 += *(_WORD *)(i + 18);\nif ( v23 > v15 + v22 )\n{\nv23 = v22 + v15 - (v23 - *(_WORD *)(i + 18));\nbreak;\n}\n}\nv17 = *(_BYTE *)(*(_QWORD *)(i + 8) + v23);\nif ( v14 == 0xEF )\n{\nif ( !*(_BYTE *)(v20 + 24) && v17 != *(_BYTE *)(v20 + 40) )\ngoto LABEL_26;\nLABEL_27:\nsub_4127DA(a3, -v22);\nsub_41253F(a3, v15);\nif ( v14 == 255 )\n{\nif ( v13 >> 3 )\n{\nif ( *(_BYTE *)(v20 + 25) == 15 )\n{\nif ( *(_BYTE *)(v20 + 31) && v15 )\n--*(_BYTE *)(v20 + 31);\nif ( *(_BYTE *)(v20 + 31) <= 4u )\nsub_41E9AA(v20, 10 - *(_BYTE *)(v20 + 31));\nif ( *(unsigned __int8 *)(v20 + 30) + v16 > 254 )\n{\n*(_BYTE *)(v20 + 30) = -1;\n}\nelse\n{\n*(_BYTE *)(v20 + 30) += v16;\nif ( *(_QWORD *)(v20 + 48) )\n{\nsub_41E370(v20, *(_BYTE *)(v20 + 24), *(_QWORD *)(v20 + 48));\nsub_412805(*(_BYTE **)(v20 + 48));\n*(_QWORD *)(v20 + 48) = 0LL;\n}\n}\nif ( !*(_QWORD *)(v20 + 120) )\ngoto LABEL_106;\n}\nelse if ( !*(_QWORD *)(v20 + 120) )\n{\ngoto LABEL_106;\n}\nLABEL_105:\n(*(void (__fastcall **)(_QWORD, __int64, __int64, _QWORD))(v20 + 120))(*(_QWORD *)(v20 + 56), v20, a3, 0LL);\nreturn 0LL;\n}\n}\nelse\n{\nif ( v14 != 239 )\n{\nif ( v14 <= 0xEFu )\n{\nif ( v14 == 115 )\n{\n*(_WORD *)(v20 + 34) = 0;\nif ( *(_DWORD *)(v20 + 8) == 3 )\n{\n*(_DWORD *)(v20 + 8) = 4;\nsub_4127DA(a3, v22);\n**(_BYTE **)(a3 + 8) &= 0xFBu;\n**(_BYTE **)(a3 + 8) |= 2u;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -17;\n*(_BYTE *)(v20 + 38) = sub_415286((__int64 *)a3, 2);\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -1;\n*(_BYTE *)(v20 + 39) = sub_415286((__int64 *)a3, 2);\n**(_BYTE **)(a3 + 8) &= 0xFBu;\n**(_BYTE **)(a3 + 8) &= 0xFDu;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -17;\n*(_BYTE *)(v20 + 36) = sub_415286((__int64 *)a3, 2);\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -1;\n*(_BYTE *)(v20 + 37) = sub_415286((__int64 *)a3, 2);\n**(_BYTE **)(a3 + 8) &= 0xFBu;\n**(_BYTE **)(a3 + 8) |= 2u;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -17;\n*(_BYTE *)(v20 + 41) = sub_415286((__int64 *)a3, 2);\n**(_BYTE **)(a3 + 8) &= 0xF9u;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -17;\n*(_BYTE *)(v20 + 40) = sub_415286((__int64 *)a3, 2);\nif ( *(_BYTE *)(v20 + 24) )\n{\nsub_41E162(v20, 0, 0LL);\n}\nelse\n{\nfor ( j = qword_464F68; j; j = *(_QWORD *)j )\n{\nif ( *(_BYTE *)(*(_QWORD *)(j + 16) + 48LL) == *(_BYTE *)(*(_QWORD *)(v20 + 16) + 48LL)\n&& *(_BYTE *)(*(_QWORD *)(j + 16) + 49LL) == *(_BYTE *)(*(_QWORD *)(v20 + 16) + 49LL)\n&& *(_BYTE *)(*(_QWORD *)(j + 16) + 50LL) == *(_BYTE *)(*(_QWORD *)(v20 + 16) + 50LL)\n&& *(_BYTE *)(*(_QWORD *)(j + 16) + 51LL) == *(_BYTE *)(*(_QWORD *)(v20 + 16) + 51LL)\n&& *(_BYTE *)(*(_QWORD *)(j + 16) + 52LL) == *(_BYTE *)(*(_QWORD *)(v20 + 16) + 52LL)\n&& *(_BYTE *)(*(_QWORD *)(j + 16) + 53LL) == *(_BYTE *)(*(_QWORD *)(v20 + 16) + 53LL)\n&& *(_DWORD *)(j + 8) == 2 )\n{\nsub_41DF81(j, 0LL);\ngoto LABEL_106;\n}\n}\n}\n}\nelse if ( *(_DWORD *)(v20 + 8) == 6 )\n{\n*(_DWORD *)(v20 + 8) = 0;\nif ( *(_QWORD *)(v20 + 80) )\n(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(v20 + 80))(*(_QWORD *)(v20 + 56), v20, 0LL);\nelse\nsub_41D835(v20);\n}\ngoto LABEL_106;\n}\nif ( v14 > 0x73u )\ngoto LABEL_106;\nif ( v14 == 83 )\n{\nv18 = sub_41DECF((__int64)a2, &v13);\n*(_DWORD *)(v20 + 8) = 0;\nif ( *(_QWORD *)(v20 + 80) )\n(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(v20 + 80))(*(_QWORD *)(v20 + 56), v20, 0LL);\nelse\nsub_41D835(v20);\nsub_412805((_BYTE *)a3);\nreturn 0LL;\n}\nif ( v14 > 0x53u )\ngoto LABEL_106;\nif ( v14 != 63 )\n{\nif ( v14 <= 0x3Fu && (v14 == 15 || v14 == 31) )\n{\n*(_WORD *)(v20 + 34) = 0;\nif ( *(_DWORD *)(v20 + 8) == 3 )\n{\n*(_DWORD *)(v20 + 8) = 0;\nif ( *(_QWORD *)(v20 + 64) )\n(*(void (__fastcall **)(_QWORD, __int64, __int64))(v20 + 64))(\n*(_QWORD *)(v20 + 56),\nv20,\n4294967285LL);\n}\nelse\n{\n*(_DWORD *)(v20 + 8) = 0;\nif ( *(_QWORD *)(v20 + 80) )\n(*(void (__fastcall **)(_QWORD, __int64, __int64))(v20 + 80))(\n*(_QWORD *)(v20 + 56),\nv20,\n4294967285LL);\nelse\nsub_41D835(v20);\n}\n}\ngoto LABEL_106;\n}\nif ( !v20 )\n{\nk = 0LL;\nif ( !(v13 >> 3) )\n{\nfor ( k = qword_464F60; k && *(_BYTE *)(k + 12) != v13 >> 3; k = *(_QWORD *)k )\n;\n}\nif ( !k )\n{\nsub_41DB25((__int64)a2, &v13);\nsub_412805((_BYTE *)a3);\nreturn 0LL;\n}\nv20 = (__int64)sub_41D7C8((__int64)a2);\nif ( !v20 )\n{\nsub_41DB25((__int64)a2, &v13);\nsub_412805((_BYTE *)a3);\nreturn 0LL;\n}\n*(_BYTE *)(v20 + 24) = *(_BYTE *)(k + 12);\n*(_QWORD *)(v20 + 56) = *(_QWORD *)(k + 16);\n*(_QWORD *)(v20 + 72) = *(_QWORD *)(k + 24);\n*(_QWORD *)v20 = qword_464F68;\nqword_464F68 = v20;\n}\n*(_BYTE *)(v20 + 32) &= 0xFEu;\nsub_41DECF((__int64)a2, &v13);\nsub_4127DA(a3, v22);\n**(_BYTE **)(a3 + 8) &= 0xFBu;\n**(_BYTE **)(a3 + 8) &= 0xFDu;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -17;\nv6 = sub_415286((__int64 *)a3, 2);\n*(_BYTE *)(v20 + 38) = v6;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -1;\nv7 = sub_415286((__int64 *)a3, 2);\n*(_BYTE *)(v20 + 39) = v7;\n**(_BYTE **)(a3 + 8) &= 0xFBu;\n**(_BYTE **)(a3 + 8) |= 2u;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -17;\nv8 = sub_415286((__int64 *)a3, 2);\n*(_BYTE *)(v20 + 36) = v8;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -1;\nv9 = sub_415286((__int64 *)a3, 2);\n*(_BYTE *)(v20 + 37) = v9;\n**(_BYTE **)(a3 + 8) &= 0xFBu;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -17;\nv10 = sub_415286((__int64 *)a3, 2);\n*(_BYTE *)(v20 + 40) = v10;\n**(_BYTE **)(a3 + 8) &= 0xF9u;\n*(_BYTE *)(*(_QWORD *)(a3 + 8) + 1LL) = -17;\nv11 = sub_415286((__int64 *)a3, 2);\n*(_BYTE *)(v20 + 41) = v11;\nsub_412805((_BYTE *)a3);\nreturn 0LL;\n}\nLABEL_106:\nsub_412805((_BYTE *)a3);\nreturn 0LL;\n}\nif ( v13 >> 3 )\n{\nif ( *(_BYTE *)(v20 + 31) )\n--*(_BYTE *)(v20 + 31);\nif ( *(_BYTE *)(v20 + 31) <= 4u )\nsub_41E9AA(v20, 10 - *(_BYTE *)(v20 + 31));\nif ( !*(_QWORD *)(v20 + 120) )\ngoto LABEL_106;\ngoto LABEL_105;\n}\n}\nsub_41EAE7(v20, &v13, a2, a3);\nsub_412805((_BYTE *)a3);\nreturn 0LL;\n}\nif ( v14 == 0xFF )\n{\nif ( v17 == *(_BYTE *)(v20 + 37) )\ngoto LABEL_27;\n}\nelse if ( !sub_415227((__int64 *)a3, v22, v17) )\n{\ngoto LABEL_27;\n}\nLABEL_26:\nsub_412805((_BYTE *)a3);\nreturn 0LL;\n}\nif ( v14 != 31 && v14 != 15 )\nsub_41DB25((__int64)a2, &v13);\nsub_412805((_BYTE *)a3);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a2,a1,v13,v17,j,v20,k,v22,v23,i,sub_41F700,sub_41DA49,sub_4127DA,sub_41253F,sub_41E9AA,sub_41E370,sub_412805,sub_415286,sub_41E162,sub_41DF81,sub_41D835,sub_41DECF,sub_41DB25,sub_41D7C8,sub_41EAE7,sub_415227,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'p', 'a2': 'l2cappcb', 'a1': 'arg', 'v13': 'rfcommhdr', 'v17': 'fcs', 'j': 'tpcb', 'v20': 'pcb', 'k': 'lpcb', 'v22': 'hdrlen', 'v23': 'len', 'i': 'q', 'sub_41F700': 'rfcomm_input', 'sub_41DA49': 'rfcomm_get_active_pcb', 'sub_4127DA': 'bt_pbuf_header', 'sub_41253F': 'bt_pbuf_realloc', 'sub_41E9AA': 'rfcomm_issue_credits', 'sub_41E370': 'rfcomm_uih', 'sub_412805': 'bt_pbuf_free', 'sub_415286': 'fcs8_crc_calc', 'sub_41E162': 'rfcomm_msc', 'sub_41DF81': 'rfcomm_pn', 'sub_41D835': 'rfcomm_close', 'sub_41DECF': 'rfcomm_ua', 'sub_41DB25': 'rfcomm_dm', 'sub_41D7C8': 'rfcomm_new', 'sub_41EAE7': 'rfcomm_process_msg', 'sub_415227': 'fcs8_crc_check'}"}
nmi6502
ad53b6f5cb35c1dcf9535ae307e35d6a13e2e7044d1355942584a180e2db9333
EtchedPixels
EmulatorKit
NA
void nmi6502(void) { push16(pc); push8(status); status |= FLAG_INTERRUPT; pc = (uint16_t) read6502(0xFFFA) | ((uint16_t) read6502(0xFFFB) << 8); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40402A", "function_addr": 4210730, "binary_name": "ad53b6f5cb35c1dcf9535ae307e35d6a13e2e7044d1355942584a180e2db9333.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 8"], [4, "movzx eax, cs:word_48A610"], [5, "movzx eax, ax"], [6, "mov edi, eax"], [7, "call sub_401E23"], [8, "movzx eax, cs:byte_48A616"], [9, "movzx eax, al"], [10, "mov edi, eax"], [11, "call sub_401E90"], [12, "movzx eax, cs:byte_48A616"], [13, "or eax, 4"], [14, "mov cs:byte_48A616, al"], [15, "mov edi, 0FFFAh"], [16, "call sub_401905"], [17, "movzx ebx, al"], [18, "mov edi, 0FFFBh"], [19, "call sub_401905"], [20, "movzx eax, al"], [21, "shl eax, 8"], [22, "or eax, ebx"], [23, "mov cs:word_48A610, ax"], [24, "nop"], [25, "mov rbx, [rbp+var_8]"], [26, "leave"], [27, "retn"]], "data_dep": [[5, 4], [6, 5], [9, 8], [10, 9], [13, 12], [14, 13], [17, 16], [20, 19], [21, 20], [22, 21], [22, 17], [23, 22], [27, 22]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/ad53b6f5cb35c1dcf9535ae307e35d6a13e2e7044d1355942584a180e2db9333_ad53b6f5cb35c1dcf9535ae307e35d6a13e2e7044d1355942584a180e2db9333.jsonl.gz", "strip_func_name": "sub_40402A", "query": "\n\n\n__int64 sub_40402A()\n{\nint v0; // ebx\n__int64 result; // rax\n\nsub_401E23(word_48A610);\nsub_401E90(byte_48A616);\nbyte_48A616 |= 4u;\nv0 = (unsigned __int8)sub_401905(0xFFFAu);\nresult = v0 | ((unsigned __int8)sub_401905(0xFFFBu) << 8);\nword_48A610 = result;\nreturn result;\n}\n\n\n\nQ:[sub_40402A,sub_401E23,sub_401E90,sub_401905,]\nAssistant: ", "hints": "[]", "response": "{'sub_40402A': 'nmi6502', 'sub_401E23': 'push16', 'sub_401E90': 'push8', 'sub_401905': 'read6502'}"}
pixie_delete_mutex
5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c
bi-zone
masscan-ng
NA
bool pixie_delete_mutex(void *p_mutex) { #if defined(WIN32) CloseHandle((HANDLE)p_mutex); return true; #else int res; res = pthread_mutex_destroy(p_mutex); free(p_mutex); return res == 0; #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4279A4", "function_addr": 4356516, "binary_name": "5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+mutex], rdi"], [4, "mov rax, [rbp+mutex]"], [5, "mov rdi, rax"], [6, "call _pthread_mutex_destroy"], [7, "mov [rbp+var_4], eax"], [8, "mov rax, [rbp+mutex]"], [9, "mov rdi, rax"], [10, "call _free"], [11, "cmp [rbp+var_4], 0"], [12, "setz al"], [13, "leave"], [14, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [8, 3], [9, 8], [11, 7], [12, 10], [12, 11], [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/5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c_5a624d8d514e5e32cdeca29df98b8a01acc2e5dae4f5e11178902b3cb5c9d86c.jsonl.gz", "strip_func_name": "sub_4279A4", "query": "\n\n\nbool __fastcall sub_4279A4(pthread_mutex_t *a1)\n{\nint v2; // [rsp+1Ch] [rbp-4h]\n\nv2 = pthread_mutex_destroy(a1);\nfree(a1);\nreturn v2 == 0;\n}\n\n\n\nQ:[a1,v2,sub_4279A4,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'p_mutex', 'v2': 'res', 'sub_4279A4': 'pixie_delete_mutex'}"}
mg_get_context_info
7be234ff1bf913b18e7f3dc63277693fbaa1a69ce49eeb885aa12327d52c2d59
Tina-Linux
tina-V83x
NA
int mg_get_context_info(const struct mg_context *ctx, char *buffer, int buflen) { #if defined(USE_SERVER_STATS) if ((buffer == NULL) || (buflen < 1)) { return mg_get_context_info_impl(ctx, NULL, 0); } else { /* Reset buffer, so we can always use strcat. */ buffer[0] = 0; return mg_get_context_info_impl(ctx, buffer, buflen); } #else (void)ctx; if ((buffer != NULL) && (buflen > 0)) { buffer[0] = 0; } return 0; #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41FFA3", "function_addr": 4325283, "binary_name": "7be234ff1bf913b18e7f3dc63277693fbaa1a69ce49eeb885aa12327d52c2d59.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_10], rsi"], [4, "mov [rbp+var_14], edx"], [5, "cmp [rbp+var_10], 0"], [6, "jz short loc_41FFC6"], [7, "cmp [rbp+var_14], 0"], [8, "jle short loc_41FFC6"], [9, "mov rax, [rbp+var_10]"], [10, "mov byte ptr [rax], 0"], [11, "mov eax, 0"], [12, "pop rbp"], [13, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 4], [8, 7], [9, 3], [10, 9], [12, 0], [13, 11]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/7be234ff1bf913b18e7f3dc63277693fbaa1a69ce49eeb885aa12327d52c2d59_7be234ff1bf913b18e7f3dc63277693fbaa1a69ce49eeb885aa12327d52c2d59.jsonl.gz", "strip_func_name": "sub_41FFA3", "query": "\n\n\n__int64 __fastcall sub_41FFA3(__int64 a1, _BYTE *a2, int a3)\n{\nif ( a2 && a3 > 0 )\n*a2 = 0;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a2,a1,sub_41FFA3,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'buflen', 'a2': 'buffer', 'a1': 'ctx', 'sub_41FFA3': 'mg_get_context_info'}"}
sd_get_cid
a2460b8f783498371f2bba9d16c5d85a8b8d9490a9973b0156d824eb54dd785f
xobs
ax2xx-code
NA
int sd_get_cid(struct sd_state *state, uint8_t *cid) { int ret; bzero(cid, 16); ret = send_cmd(state, CMD10, 0); if (ret) return ret; return !rcvr_datablock(state, cid, 16); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404A11", "function_addr": 4213265, "binary_name": "a2460b8f783498371f2bba9d16c5d85a8b8d9490a9973b0156d824eb54dd785f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_20]"], [6, "mov qword ptr [rax], 0"], [7, "mov qword ptr [rax+8], 0"], [8, "mov rax, [rbp+var_18]"], [9, "mov edx, 0"], [10, "mov esi, 0Ah"], [11, "mov rdi, rax"], [12, "call sub_403F17"], [13, "movzx eax, al"], [14, "mov [rbp+var_4], eax"], [15, "cmp [rbp+var_4], 0"], [16, "jz short loc_404A5B"], [17, "mov eax, [rbp+var_4]"], [18, "jmp short locret_404A7B"], [19, "mov rcx, [rbp+var_20]"], [20, "mov rax, [rbp+var_18]"], [21, "mov edx, 10h"], [22, "mov rsi, rcx"], [23, "mov rdi, rax"], [24, "call sub_403DC7"], [25, "test eax, eax"], [26, "setz al"], [27, "movzx eax, al"], [28, "leave"], [29, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 5], [8, 3], [11, 8], [13, 12], [14, 13], [15, 14], [16, 15], [17, 14], [19, 4], [20, 3], [22, 19], [23, 20], [25, 24], [26, 25], [27, 26], [29, 17], [29, 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/a2460b8f783498371f2bba9d16c5d85a8b8d9490a9973b0156d824eb54dd785f_a2460b8f783498371f2bba9d16c5d85a8b8d9490a9973b0156d824eb54dd785f.jsonl.gz", "strip_func_name": "sub_404A11", "query": "\n\n\n__int64 __fastcall sub_404A11(int *a1, __int64 a2)\n{\n__int64 result; // rax\n\n*(_QWORD *)a2 = 0LL;\n*(_QWORD *)(a2 + 8) = 0LL;\nLOBYTE(result) = sub_403F17(a1, 10, 0);\nif ( (_BYTE)result )\nresult = (unsigned __int8)result;\nelse\nresult = (unsigned int)sub_403DC7(a1, (_BYTE *)a2, 16) == 0;\nreturn result;\n}\n\n\n\nQ:[a1,a2,sub_404A11,sub_403F17,sub_403DC7,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'state', 'a2': 'cid', 'sub_404A11': 'sd_get_cid', 'sub_403F17': 'send_cmd', 'sub_403DC7': 'rcvr_datablock'}"}
math_random
4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487
nccgroup
proxmark3-amiimicyou
NA
static int math_random (lua_State *L) { /* the `%' avoids the (rare) case of r==1, and is needed also because on some systems (SunOS!) `rand()' may return a value larger than RAND_MAX */ lua_Number r = (lua_Number)(rand()%RAND_MAX) / (lua_Number)RAND_MAX; switch (lua_gettop(L)) { /* check number of arguments */ case 0: { /* no arguments */ lua_pushnumber(L, r); /* Number between 0 and 1 */ break; } case 1: { /* only upper limit */ lua_Number u = luaL_checknumber(L, 1); luaL_argcheck(L, (lua_Number)1.0 <= u, 1, "interval is empty"); lua_pushnumber(L, l_mathop(floor)(r*u) + (lua_Number)(1.0)); /* [1, u] */ break; } case 2: { /* lower and upper limits */ lua_Number l = luaL_checknumber(L, 1); lua_Number u = luaL_checknumber(L, 2); luaL_argcheck(L, l <= u, 2, "interval is empty"); lua_pushnumber(L, l_mathop(floor)(r*(u-l+1)) + l); /* [l, u] */ break; } default: return luaL_error(L, "wrong number of arguments"); } return 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4917D2", "function_addr": 4790226, "binary_name": "4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "call _rand"], [5, "movsxd rcx, eax"], [6, "mov rdx, rcx"], [7, "shl rdx, 1Eh"], [8, "add rdx, rcx"], [9, "shr rdx, 20h"], [10, "sar edx, 1Dh"], [11, "mov esi, eax"], [12, "sar esi, 1Fh"], [13, "mov ecx, edx"], [14, "sub ecx, esi"], [15, "mov edx, ecx"], [16, "shl edx, 1Fh"], [17, "sub edx, ecx"], [18, "sub eax, edx"], [19, "mov ecx, eax"], [20, "pxor xmm0, xmm0"], [21, "cvtsi2sd xmm0, ecx"], [22, "movsd xmm1, cs:qword_4C6320"], [23, "divsd xmm0, xmm1"], [24, "movsd [rbp+var_8], xmm0"], [25, "mov rax, [rbp+var_28]"], [26, "mov rdi, rax"], [27, "call lua_gettop"], [28, "cmp eax, 2"], [29, "jz loc_4918F0"], [30, "cmp eax, 2"], [31, "jg loc_49199E"], [32, "test eax, eax"], [33, "jz short loc_491850"], [34, "cmp eax, 1"], [35, "jz short loc_49186A"], [36, "jmp loc_49199E"], [37, "mov rdx, [rbp+var_8]"], [38, "mov rax, [rbp+var_28]"], [39, "movq xmm0, rdx"], [40, "mov rdi, rax"], [41, "call lua_pushnumber"], [42, "jmp loc_4919B6"], [43, "mov rax, [rbp+var_28]"], [44, "mov esi, 1"], [45, "mov rdi, rax"], [46, "call luaL_checknumber"], [47, "movq rax, xmm0"], [48, "mov [rbp+var_20], rax"], [49, "movsd xmm0, [rbp+var_20]"], [50, "movsd xmm1, cs:qword_4C6328"], [51, "comisd xmm0, xmm1"], [52, "jnb short loc_4918AF"], [53, "mov rax, [rbp+var_28]"], [54, "mov edx, offset aIntervalIsEmpt"], [55, "mov esi, 1"], [56, "mov rdi, rax"], [57, "call luaL_argerror"], [58, "test eax, eax"], [59, "nop"], [60, "movsd xmm0, [rbp+var_8]"], [61, "mulsd xmm0, [rbp+var_20]"], [62, "movq rax, xmm0"], [63, "movq xmm0, rax"], [64, "call _floor"], [65, "movsd xmm1, cs:qword_4C6328"], [66, "addsd xmm0, xmm1"], [67, "movq rdx, xmm0"], [68, "mov rax, [rbp+var_28]"], [69, "movq xmm0, rdx"], [70, "mov rdi, rax"], [71, "call lua_pushnumber"], [72, "jmp loc_4919B6"], [73, "mov rax, [rbp+var_28]"], [74, "mov esi, 1"], [75, "mov rdi, rax"], [76, "call luaL_checknumber"], [77, "movq rax, xmm0"], [78, "mov [rbp+var_10], rax"], [79, "mov rax, [rbp+var_28]"], [80, "mov esi, 2"], [81, "mov rdi, rax"], [82, "call luaL_checknumber"], [83, "movq rax, xmm0"], [84, "mov [rbp+var_18], rax"], [85, "movsd xmm0, [rbp+var_18]"], [86, "comisd xmm0, [rbp+var_10]"], [87, "jnb short loc_491948"], [88, "mov rax, [rbp+var_28]"], [89, "mov edx, offset aIntervalIsEmpt"], [90, "mov esi, 2"], [91, "mov rdi, rax"], [92, "call luaL_argerror"], [93, "test eax, eax"], [94, "nop"], [95, "movsd xmm0, [rbp+var_18]"], [96, "movapd xmm1, xmm0"], [97, "subsd xmm1, [rbp+var_10]"], [98, "movsd xmm0, cs:qword_4C6328"], [99, "addsd xmm0, xmm1"], [100, "mulsd xmm0, [rbp+var_8]"], [101, "movq rax, xmm0"], [102, "movq xmm0, rax"], [103, "call _floor"], [104, "movq rax, xmm0"], [105, "movq xmm2, rax"], [106, "addsd xmm2, [rbp+var_10]"], [107, "movq rdx, xmm2"], [108, "mov rax, [rbp+var_28]"], [109, "movq xmm0, rdx"], [110, "mov rdi, rax"], [111, "call lua_pushnumber"], [112, "jmp short loc_4919B6"], [113, "mov rax, [rbp+var_28]"], [114, "mov esi, offset aWrongNumberOfA"], [115, "mov rdi, rax"], [116, "mov eax, 0"], [117, "call luaL_error"], [118, "jmp short locret_4919BB"], [119, "mov eax, 1"], [120, "leave"], [121, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 5], [8, 7], [9, 8], [10, 9], [11, 4], [12, 11], [13, 10], [14, 13], [14, 12], [15, 14], [16, 15], [17, 14], [17, 16], [18, 17], [18, 4], [19, 18], [21, 20], [21, 19], [23, 22], [23, 21], [24, 23], [25, 3], [26, 25], [28, 27], [29, 28], [30, 27], [31, 30], [32, 27], [33, 32], [34, 32], [35, 34], [37, 24], [38, 3], [39, 37], [40, 38], [43, 3], [45, 43], [47, 23], [48, 47], [49, 48], [51, 50], [51, 49], [52, 34], [53, 3], [56, 53], [60, 24], [61, 60], [61, 48], [62, 61], [63, 62], [66, 63], [66, 65], [67, 66], [68, 3], [69, 67], [70, 68], [73, 3], [75, 73], [77, 23], [78, 77], [79, 3], [81, 79], [83, 23], [84, 83], [85, 84], [86, 85], [86, 78], [87, 28], [88, 3], [91, 88], [95, 84], [96, 95], [97, 78], [97, 96], [99, 97], [99, 98], [100, 24], [100, 99], [101, 100], [102, 101], [104, 102], [105, 104], [106, 78], [106, 105], [107, 106], [108, 3], [109, 107], [110, 108], [113, 3], [115, 113], [121, 119]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487_4a8063503b00e2daa87f12503db0823933ebfcd9010aa37d6cf2d80cb8e76487.jsonl.gz", "strip_func_name": "sub_4917D2", "query": "\n\n\n__int64 __fastcall sub_4917D2(_QWORD *a1)\n{\ndouble v1; // xmm0_8\nint v2; // eax\n__int64 v3; // rdx\n__int64 v4; // rcx\n__int64 v5; // r8\n__int64 v6; // r9\ndouble v7; // xmm0_8\ndouble v8; // xmm0_8\ndouble v10; // [rsp+10h] [rbp-20h]\ndouble v11; // [rsp+18h] [rbp-18h]\ndouble v12; // [rsp+20h] [rbp-10h]\ndouble v13; // [rsp+28h] [rbp-8h]\n\nv1 = (double)(rand() % 0x7FFFFFFF) / 2147483647.0;\nv13 = v1;\nv2 = lua_gettop((__int64)a1);\nif ( v2 == 2 )\n{\nv12 = luaL_checknumber(a1, 1, v1);\nv11 = luaL_checknumber(a1, 2, v12);\nif ( v11 < v12 )\nluaL_argerror(a1, 2, (int)\"interval is empty\");\nv8 = floor((v11 - v12 + 1.0) * v13);\nlua_pushnumber((__int64)a1, v8 + v12);\n}\nelse\n{\nif ( v2 > 2 )\ngoto LABEL_13;\nif ( v2 )\n{\nif ( v2 != 1 )\nLABEL_13:\nluaL_error((__int64)a1, (__int64)\"wrong number of arguments\", v3, v4, v5, v6);\nv10 = luaL_checknumber(a1, 1, v1);\nif ( v10 < 1.0 )\nluaL_argerror(a1, 1, (int)\"interval is empty\");\nv7 = floor(v13 * v10);\nlua_pushnumber((__int64)a1, v7 + 1.0);\n}\nelse\n{\nlua_pushnumber((__int64)a1, v1);\n}\n}\nreturn 1LL;\n}\n\n\n\nQ:[a1,v10,v11,v12,v13,sub_4917D2,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'L', 'v10': 'u', 'v11': 'u_0', 'v12': 'l', 'v13': 'r', 'sub_4917D2': 'math_random'}"}
imsm_dev_size
13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664
neilbrown
mdadm
NA
static unsigned long long imsm_dev_size(struct imsm_dev *dev) { if (dev == NULL) return 0; return join_u32(dev->size_low, dev->size_high); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4173A8", "function_addr": 4289448, "binary_name": "13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 8"], [3, "mov [rbp+var_8], rdi"], [4, "cmp [rbp+var_8], 0"], [5, "jnz short loc_4173C2"], [6, "mov eax, 0"], [7, "jmp short locret_4173D9"], [8, "mov rax, [rbp+var_8]"], [9, "mov edx, [rax+14h]"], [10, "mov rax, [rbp+var_8]"], [11, "mov eax, [rax+10h]"], [12, "mov esi, edx"], [13, "mov edi, eax"], [14, "call sub_4172C4"], [15, "leave"], [16, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 3], [9, 8], [10, 3], [11, 10], [12, 9], [13, 11], [16, 6], [16, 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/13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664_13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664.jsonl.gz", "strip_func_name": "sub_4173A8", "query": "\n\n\nunsigned __int64 __fastcall sub_4173A8(__int64 a1)\n{\nunsigned __int64 result; // rax\n\nif ( a1 )\nresult = sub_4172C4(*(_DWORD *)(a1 + 16), *(_DWORD *)(a1 + 20));\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a1,sub_4173A8,sub_4172C4,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dev', 'sub_4173A8': 'imsm_dev_size', 'sub_4172C4': 'join_u32'}"}
dummy
c5e9cf92e4627933b8d7ceb1d7c1dee5bf50f8ecea4d40106532c0dd6767106a
myfluxi
xxICSKernel
NA
void dummy(int pkg, int core, int cpu) { return; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403819", "function_addr": 4208665, "binary_name": "c5e9cf92e4627933b8d7ceb1d7c1dee5bf50f8ecea4d40106532c0dd6767106a.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, "mov [rbp+var_C], edx"], [5, "nop"], [6, "pop rbp"], [7, "retn"]], "data_dep": [[6, 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/c5e9cf92e4627933b8d7ceb1d7c1dee5bf50f8ecea4d40106532c0dd6767106a_c5e9cf92e4627933b8d7ceb1d7c1dee5bf50f8ecea4d40106532c0dd6767106a.jsonl.gz", "strip_func_name": "sub_403819", "query": "\n\n\nvoid sub_403819()\n{\n;\n}\n\n\n\nQ:[sub_403819,]\nAssistant: ", "hints": "[]", "response": "{'sub_403819': 'dummy'}"}
hpeek
2caebfd0ee800d381f130da1ff10e10e2428563dc4c26171a2343037a6a7bf2a
liulab-dfci
MAESTRO
NA
ssize_t hpeek(hFILE *fp, void *buffer, size_t nbytes) { size_t n = fp->end - fp->begin; while (n < nbytes) { ssize_t ret = refill_buffer(fp); if (ret < 0) return ret; else if (ret == 0) break; else n += ret; } if (n > nbytes) n = nbytes; memcpy(buffer, fp->begin, n); return n; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4567A4", "function_addr": 4548516, "binary_name": "2caebfd0ee800d381f130da1ff10e10e2428563dc4c26171a2343037a6a7bf2a.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+dest], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, [rbp+var_18]"], [7, "mov rdx, [rax+10h]"], [8, "mov rax, [rbp+var_18]"], [9, "mov rcx, [rax+8]"], [10, "mov rax, rdx"], [11, "sub rax, rcx"], [12, "mov [rbp+n], rax"], [13, "jmp short loc_456800"], [14, "mov rax, [rbp+var_18]"], [15, "mov rdi, rax"], [16, "call sub_456397"], [17, "mov [rbp+var_10], rax"], [18, "cmp [rbp+var_10], 0"], [19, "jns short loc_4567F1"], [20, "mov rax, [rbp+var_10]"], [21, "jmp short locret_45683E"], [22, "cmp [rbp+var_10], 0"], [23, "jz short loc_45680C"], [24, "mov rax, [rbp+var_10]"], [25, "add [rbp+n], rax"], [26, "mov rax, [rbp+n]"], [27, "cmp rax, [rbp+var_28]"], [28, "jb short loc_4567D4"], [29, "jmp short loc_45680D"], [30, "nop"], [31, "mov rax, [rbp+n]"], [32, "cmp rax, [rbp+var_28]"], [33, "jbe short loc_45681F"], [34, "mov rax, [rbp+var_28]"], [35, "mov [rbp+n], rax"], [36, "mov rax, [rbp+var_18]"], [37, "mov rcx, [rax+8]"], [38, "mov rdx, [rbp+n]"], [39, "mov rax, [rbp+dest]"], [40, "mov rsi, rcx"], [41, "mov rdi, rax"], [42, "call _memcpy"], [43, "mov rax, [rbp+n]"], [44, "leave"], [45, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 3], [9, 8], [10, 7], [11, 10], [11, 9], [12, 11], [14, 3], [15, 14], [17, 16], [18, 17], [19, 18], [20, 17], [22, 17], [23, 22], [24, 17], [25, 25], [25, 12], [25, 24], [26, 12], [26, 25], [27, 5], [27, 26], [28, 27], [31, 25], [31, 12], [32, 31], [32, 5], [33, 32], [34, 5], [35, 34], [36, 3], [37, 36], [38, 35], [38, 25], [38, 12], [39, 4], [40, 37], [41, 39], [43, 12], [43, 35], [43, 25], [45, 43], [45, 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/2caebfd0ee800d381f130da1ff10e10e2428563dc4c26171a2343037a6a7bf2a_2caebfd0ee800d381f130da1ff10e10e2428563dc4c26171a2343037a6a7bf2a.jsonl.gz", "strip_func_name": "sub_4567A4", "query": "\n\n\n__int64 __fastcall sub_4567A4(__int64 a1, void *a2, size_t a3)\n{\n__int64 v5; // [rsp+20h] [rbp-10h]\nsize_t n; // [rsp+28h] [rbp-8h]\n\nfor ( n = *(_QWORD *)(a1 + 16) - *(_QWORD *)(a1 + 8); n < a3; n += v5 )\n{\nv5 = sub_456397(a1);\nif ( v5 < 0 )\nreturn v5;\nif ( !v5 )\nbreak;\n}\nif ( n > a3 )\nn = a3;\nmemcpy(a2, *(const void **)(a1 + 8), n);\nreturn n;\n}\n\n\n\nQ:[a3,a1,a2,sub_4567A4,sub_456397,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'nbytes', 'a1': 'fp', 'a2': 'buffer', 'sub_4567A4': 'hpeek', 'sub_456397': 'refill_buffer'}"}
cmd_seek_complete
b2470140fe241e0bd4ba7a04cd28e0632bafc1f756ae7bfe0f121c1e0a915f61
EtchedPixels
EmulatorKit
NA
static void cmd_seek_complete(struct ide_taskfile *tf) { struct ide_drive *d = tf->drive; if (d->failed) drive_failed(tf); d->offset = xlate_block(tf); if (d->offset == -1 || lseek(d->fd, 512 * d->offset, SEEK_SET) == -1) { tf->status &= ~ST_DSC; tf->status |= ST_ERR; tf->error |= ERR_IDNF; } tf->status |= ST_DSC; completed(tf); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40474A", "function_addr": 4212554, "binary_name": "b2470140fe241e0bd4ba7a04cd28e0632bafc1f756ae7bfe0f121c1e0a915f61.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov rax, [rax+10h]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_8]"], [8, "movzx eax, byte ptr [rax+20h]"], [9, "and eax, 4"], [10, "test al, al"], [11, "jz short loc_40477D"], [12, "mov rax, [rbp+var_18]"], [13, "mov rdi, rax"], [14, "call sub_403F9E"], [15, "mov rax, [rbp+var_18]"], [16, "mov rdi, rax"], [17, "call sub_403DB4"], [18, "mov rdx, [rbp+var_8]"], [19, "mov [rdx+438h], rax"], [20, "mov rax, [rbp+var_8]"], [21, "mov rax, [rax+438h]"], [22, "cmp rax, 0FFFFFFFFFFFFFFFFh"], [23, "jz short loc_4047D6"], [24, "mov rax, [rbp+var_8]"], [25, "mov rax, [rax+438h]"], [26, "shl rax, 9"], [27, "mov rcx, rax"], [28, "mov rax, [rbp+var_8]"], [29, "mov eax, [rax+434h]"], [30, "mov edx, 0"], [31, "mov rsi, rcx"], [32, "mov edi, eax"], [33, "call _lseek"], [34, "cmp rax, 0FFFFFFFFFFFFFFFFh"], [35, "jnz short loc_404812"], [36, "mov rax, [rbp+var_18]"], [37, "movzx eax, byte ptr [rax+9]"], [38, "and eax, 0FFFFFFEFh"], [39, "mov edx, eax"], [40, "mov rax, [rbp+var_18]"], [41, "mov [rax+9], dl"], [42, "mov rax, [rbp+var_18]"], [43, "movzx eax, byte ptr [rax+9]"], [44, "or eax, 1"], [45, "mov edx, eax"], [46, "mov rax, [rbp+var_18]"], [47, "mov [rax+9], dl"], [48, "mov rax, [rbp+var_18]"], [49, "movzx eax, byte ptr [rax+2]"], [50, "or eax, 10h"], [51, "mov edx, eax"], [52, "mov rax, [rbp+var_18]"], [53, "mov [rax+2], dl"], [54, "mov rax, [rbp+var_18]"], [55, "movzx eax, byte ptr [rax+9]"], [56, "or eax, 10h"], [57, "mov edx, eax"], [58, "mov rax, [rbp+var_18]"], [59, "mov [rax+9], dl"], [60, "mov rax, [rbp+var_18]"], [61, "mov rdi, rax"], [62, "call sub_403F71"], [63, "nop"], [64, "leave"], [65, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 3], [13, 12], [15, 3], [16, 15], [18, 6], [19, 18], [19, 17], [20, 6], [21, 19], [21, 20], [22, 21], [23, 22], [24, 6], [25, 19], [25, 24], [26, 25], [27, 26], [28, 6], [29, 19], [29, 28], [31, 27], [32, 29], [34, 33], [35, 34], [36, 3], [37, 36], [37, 41], [37, 47], [37, 53], [37, 19], [38, 37], [39, 38], [40, 3], [41, 40], [41, 39], [42, 3], [43, 42], [43, 41], [44, 43], [45, 44], [46, 3], [47, 46], [47, 45], [48, 3], [49, 47], [49, 48], [50, 49], [51, 50], [52, 3], [53, 52], [53, 51], [54, 3], [55, 41], [55, 47], [55, 53], [55, 59], [55, 19], [55, 54], [56, 55], [57, 56], [58, 3], [59, 58], [59, 57], [60, 3], [61, 60], [65, 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/b2470140fe241e0bd4ba7a04cd28e0632bafc1f756ae7bfe0f121c1e0a915f61_b2470140fe241e0bd4ba7a04cd28e0632bafc1f756ae7bfe0f121c1e0a915f61.jsonl.gz", "strip_func_name": "sub_40474A", "query": "\n\n\n__int64 __fastcall sub_40474A(__int64 a1)\n{\n__int64 v2; // [rsp+18h] [rbp-8h]\n\nv2 = *(_QWORD *)(a1 + 16);\nif ( (*(_BYTE *)(v2 + 32) & 4) != 0 )\nsub_403F9E(a1);\n*(_QWORD *)(v2 + 1080) = sub_403DB4(a1);\nif ( *(_QWORD *)(v2 + 1080) == -1LL || lseek(*(_DWORD *)(v2 + 1076), *(_QWORD *)(v2 + 1080) << 9, 0) == -1 )\n{\n*(_BYTE *)(a1 + 9) &= 0xEFu;\n*(_BYTE *)(a1 + 9) |= 1u;\n*(_BYTE *)(a1 + 2) |= 0x10u;\n}\n*(_BYTE *)(a1 + 9) |= 0x10u;\nreturn sub_403F71(a1);\n}\n\n\n\nQ:[a1,v2,sub_40474A,sub_403F9E,sub_403DB4,sub_403F71,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'tf_0', 'v2': 'd', 'sub_40474A': 'cmd_seek_complete', 'sub_403F9E': 'drive_failed', 'sub_403DB4': 'xlate_block', 'sub_403F71': 'completed'}"}
load_hfile_plugins
362955a1d3230a4d03d634c3e5bff13ca4ae6a5e24e02b2cad6e9251388f57a8
shiquan
PISA
NA
static void load_hfile_plugins() { static const struct hFILE_scheme_handler data = { hopen_mem, hfile_always_local, "built-in", 80 }, file = { hopen_fd_fileuri, hfile_always_local, "built-in", 80 }, preload = { hopen_preload, is_preload_url_remote, "built-in", 80 }; schemes = kh_init(scheme_string); if (schemes == NULL) abort(); hfile_add_scheme_handler("data", &data); hfile_add_scheme_handler("file", &file); hfile_add_scheme_handler("preload", &preload); init_add_plugin(NULL, hfile_plugin_init_net, "knetfile"); init_add_plugin(NULL, hfile_plugin_init_mem, "mem"); #ifdef ENABLE_PLUGINS struct hts_path_itr path; const char *pluginname; hts_path_itr_setup(&path, NULL, NULL, "hfile_", 6, NULL, 0); while ((pluginname = hts_path_itr_next(&path)) != NULL) { void *obj; int (*init)(struct hFILE_plugin *) = (int (*)(struct hFILE_plugin *)) load_plugin(&obj, pluginname, "hfile_plugin_init"); if (init) { if (init_add_plugin(obj, init, pluginname) != 0) close_plugin(obj); } } #else #ifdef HAVE_LIBCURL init_add_plugin(NULL, hfile_plugin_init_libcurl, "libcurl"); #endif #ifdef ENABLE_GCS init_add_plugin(NULL, hfile_plugin_init_gcs, "gcs"); #endif #ifdef ENABLE_S3 init_add_plugin(NULL, hfile_plugin_init_s3, "s3"); init_add_plugin(NULL, hfile_plugin_init_s3_write, "s3w"); #endif #endif // In the unlikely event atexit() fails, it's better to succeed here and // carry on; then eventually when the program exits, we'll merely close // down the plugins uncleanly, as if we had aborted. (void) atexit(hfile_exit); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45D69F", "function_addr": 4576927, "binary_name": "362955a1d3230a4d03d634c3e5bff13ca4ae6a5e24e02b2cad6e9251388f57a8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "call sub_45C91B"], [3, "mov cs:qword_52FA80, rax"], [4, "mov rax, cs:qword_52FA80"], [5, "test rax, rax"], [6, "jnz short loc_45D6C0"], [7, "call _abort"], [8, "mov esi, offset off_505AA0"], [9, "mov edi, offset aData"], [10, "call sub_45D4E0"], [11, "mov esi, offset off_505AE0"], [12, "mov edi, offset aFile_2"], [13, "call sub_45D4E0"], [14, "mov esi, offset off_505B20"], [15, "mov edi, offset aPreload"], [16, "call sub_45D4E0"], [17, "mov edx, offset aKnetfile"], [18, "mov esi, offset sub_45DDA0"], [19, "mov edi, 0"], [20, "call sub_45D5B5"], [21, "mov edx, offset aMem"], [22, "mov esi, offset sub_45C89C"], [23, "mov edi, 0"], [24, "call sub_45D5B5"], [25, "mov edx, offset aLibcurl"], [26, "mov esi, offset sub_4D1867"], [27, "mov edi, 0"], [28, "call sub_45D5B5"], [29, "mov edi, offset sub_45D415"], [30, "call sub_4F01A0"], [31, "nop"], [32, "pop rbp"], [33, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [32, 0], [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/362955a1d3230a4d03d634c3e5bff13ca4ae6a5e24e02b2cad6e9251388f57a8_362955a1d3230a4d03d634c3e5bff13ca4ae6a5e24e02b2cad6e9251388f57a8.jsonl.gz", "strip_func_name": "sub_45D69F", "query": "\n\n\n__int64 sub_45D69F()\n{\nqword_52FA80 = (__int64)sub_45C91B();\nif ( !qword_52FA80 )\nabort();\nsub_45D4E0(\"data\", (__int64)off_505AA0);\nsub_45D4E0(\"file\", (__int64)off_505AE0);\nsub_45D4E0(\"preload\", (__int64)off_505B20);\nsub_45D5B5(0LL, (__int64 (__fastcall *)(_QWORD *))sub_45DDA0, (int)\"knetfile\");\nsub_45D5B5(0LL, (__int64 (__fastcall *)(_QWORD *))sub_45C89C, (int)\"mem\");\nsub_45D5B5(0LL, (__int64 (__fastcall *)(_QWORD *))sub_4D1867, (int)\"libcurl\");\nreturn sub_4F01A0(sub_45D415);\n}\n\n\n\nQ:[sub_45D69F,sub_45C91B,sub_45D4E0,sub_45D5B5,sub_45DDA0,sub_45C89C,sub_4D1867,sub_4F01A0,]\nAssistant: ", "hints": "[]", "response": "{'sub_45D69F': 'load_hfile_plugins', 'sub_45C91B': 'kh_init_scheme_string', 'sub_45D4E0': 'hfile_add_scheme_handler', 'sub_45D5B5': 'init_add_plugin', 'sub_45DDA0': 'hfile_plugin_init_net', 'sub_45C89C': 'hfile_plugin_init_mem', 'sub_4D1867': 'hfile_plugin_init_libcurl', 'sub_4F01A0': 'atexit'}"}
show_usage
324255e342ab386d5011960097aa1e5afa371890f958bd53f318c77b18b87e95
Samsung
TizenRT
NA
static void show_usage(const char *progname) { fprintf(stderr, "USAGE: %s <abs path to .config>\n", progname); exit(1); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401264", "function_addr": 4199012, "binary_name": "324255e342ab386d5011960097aa1e5afa371890f958bd53f318c77b18b87e95.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, cs:stderr"], [5, "mov rdx, [rbp+var_8]"], [6, "mov esi, offset aUsageSAbsPathT"], [7, "mov rdi, rax"], [8, "mov eax, 0"], [9, "call _fprintf"], [10, "mov edi, 1"], [11, "call _exit"]], "data_dep": [[5, 3], [7, 4]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/324255e342ab386d5011960097aa1e5afa371890f958bd53f318c77b18b87e95_324255e342ab386d5011960097aa1e5afa371890f958bd53f318c77b18b87e95.jsonl.gz", "strip_func_name": "sub_401264", "query": "\n\n\nvoid __fastcall __noreturn sub_401264(const char *a1)\n{\nfprintf(stderr, \"USAGE: %s <abs path to .config>\\n\", a1);\nexit(1);\n}\n\n\n\nQ:[a1,sub_401264,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'progname', 'sub_401264': 'show_usage'}"}
avr_raise_irq
9ea08141baa4d7c67ddd3c8678f9c67d2e3343bdfb4dce942c017e2db4e99fb3
buserror
simavr
NA
void avr_raise_irq( avr_irq_t * irq, uint32_t value) { avr_raise_irq_float(irq, value, !!(irq->flags & IRQ_FLAG_FLOATING)); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40BB3A", "function_addr": 4242234, "binary_name": "9ea08141baa4d7c67ddd3c8678f9c67d2e3343bdfb4dce942c017e2db4e99fb3.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 rax, [rbp+var_8]"], [6, "movzx eax, byte ptr [rax+18h]"], [7, "movzx eax, al"], [8, "and eax, 10h"], [9, "test eax, eax"], [10, "setnz al"], [11, "movzx edx, al"], [12, "mov ecx, [rbp+var_C]"], [13, "mov rax, [rbp+var_8]"], [14, "mov esi, ecx"], [15, "mov rdi, rax"], [16, "call sub_40B9D8"], [17, "nop"], [18, "leave"], [19, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 4], [13, 3], [14, 12], [15, 13], [19, 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/9ea08141baa4d7c67ddd3c8678f9c67d2e3343bdfb4dce942c017e2db4e99fb3_9ea08141baa4d7c67ddd3c8678f9c67d2e3343bdfb4dce942c017e2db4e99fb3.jsonl.gz", "strip_func_name": "sub_40BB3A", "query": "\n\n\nvoid __fastcall sub_40BB3A(__int64 a1, int a2)\n{\nsub_40B9D8(a1, a2, (*(_BYTE *)(a1 + 24) & 0x10) != 0);\n}\n\n\n\nQ:[a1,a2,sub_40BB3A,sub_40B9D8,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'irq', 'a2': 'value', 'sub_40BB3A': 'avr_raise_irq', 'sub_40B9D8': 'avr_raise_irq_float'}"}
start_serial_timer
5b5ebd34ba308ed5b09b37c81197f0ee3b56c88f8dc37f221f8a02a01273ef1f
kees
scantool
NA
END_OF_STATIC_FUNCTION(serial_time_out_handler) void start_serial_timer(int delay) { stop_serial_timer(); install_int_ex(serial_time_out_handler, MSEC_TO_TIMER(delay)); // install the timer serial_time_out = FALSE; serial_timer_running = TRUE; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404664", "function_addr": 4212324, "binary_name": "5b5ebd34ba308ed5b09b37c81197f0ee3b56c88f8dc37f221f8a02a01273ef1f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov eax, 0"], [5, "call sub_4046A9"], [6, "mov eax, [rbp+var_4]"], [7, "cdqe"], [8, "imul rax, 4A9h"], [9, "mov rsi, rax"], [10, "mov edi, offset sub_404649"], [11, "call _install_int_ex"], [12, "mov cs:dword_41BB20, 0"], [13, "mov cs:dword_41BB24, 0FFFFFFFFh"], [14, "nop"], [15, "leave"], [16, "retn"]], "data_dep": [[6, 3], [8, 6], [9, 8], [16, 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/5b5ebd34ba308ed5b09b37c81197f0ee3b56c88f8dc37f221f8a02a01273ef1f_5b5ebd34ba308ed5b09b37c81197f0ee3b56c88f8dc37f221f8a02a01273ef1f.jsonl.gz", "strip_func_name": "sub_404664", "query": "\n\n\n__int64 sub_404664()\n{\n__int64 result; // rax\n\nsub_4046A9();\nresult = install_int_ex();\ndword_41BB20 = 0;\ndword_41BB24 = -1;\nreturn result;\n}\n\n\n\nQ:[sub_404664,sub_4046A9,]\nAssistant: ", "hints": "[]", "response": "{'sub_404664': 'start_serial_timer', 'sub_4046A9': 'stop_serial_timer'}"}
mdm_parse_data
1c57951629eaf9c2a56a3776346f70122e53a2482ca8c37826f2035344e94b48
FozzTexx
tcpser
NA
int mdm_parse_data(modem_config *cfg, char *data, int len) { int i; int ch; if (cfg->cmd_mode == TRUE) { for (i = 0; i < len; i++) { mdm_handle_char(cfg, data[i]); } } else { line_write(cfg, data, len); if (cfg->pre_break_delay == TRUE) { for (i = 0; i < len; i++) { ch = data[i]; if (cfg->parity) ch &= 0x7f; if (ch == (char) cfg->s[SRegisterBreak]) { LOG(LOG_DEBUG, "Break character received"); cfg->break_len++; if (cfg->break_len > 3) { // more than 3, considered invalid cfg->pre_break_delay = FALSE; cfg->break_len = 0; } } else { LOG(LOG_ALL, "Found non-break character, cancelling break"); // chars past +++ mdm_clear_break(cfg); } } } } return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408324", "function_addr": 4227876, "binary_name": "1c57951629eaf9c2a56a3776346f70122e53a2482ca8c37826f2035344e94b48.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 rax, [rbp+var_18]"], [7, "mov eax, [rax+11BCh]"], [8, "cmp eax, 1"], [9, "jnz short loc_408381"], [10, "mov [rbp+var_4], 0"], [11, "jmp short loc_408374"], [12, "mov eax, [rbp+var_4]"], [13, "movsxd rdx, eax"], [14, "mov rax, [rbp+var_20]"], [15, "add rax, rdx"], [16, "movzx eax, byte ptr [rax]"], [17, "movsx edx, al"], [18, "mov rax, [rbp+var_18]"], [19, "mov esi, edx"], [20, "mov rdi, rax"], [21, "call sub_407FA4"], [22, "add [rbp+var_4], 1"], [23, "mov eax, [rbp+var_4]"], [24, "cmp eax, [rbp+var_24]"], [25, "jl short loc_40834F"], [26, "jmp loc_4084CE"], [27, "mov edx, [rbp+var_24]"], [28, "mov rcx, [rbp+var_20]"], [29, "mov rax, [rbp+var_18]"], [30, "mov rsi, rcx"], [31, "mov rdi, rax"], [32, "call sub_40B864"], [33, "mov rax, [rbp+var_18]"], [34, "mov eax, [rax+11B0h]"], [35, "cmp eax, 1"], [36, "jnz loc_4084CE"], [37, "mov [rbp+var_4], 0"], [38, "jmp loc_4084C2"], [39, "mov eax, [rbp+var_4]"], [40, "movsxd rdx, eax"], [41, "mov rax, [rbp+var_20]"], [42, "add rax, rdx"], [43, "movzx eax, byte ptr [rax]"], [44, "movsx eax, al"], [45, "mov [rbp+var_8], eax"], [46, "mov rax, [rbp+var_18]"], [47, "mov eax, [rax+1D7Ch]"], [48, "test eax, eax"], [49, "jz short loc_4083DE"], [50, "and [rbp+var_8], 7Fh"], [51, "mov rax, [rbp+var_18]"], [52, "mov eax, [rax+1BE8h]"], [53, "movsx eax, al"], [54, "cmp [rbp+var_8], eax"], [55, "jnz loc_408475"], [56, "mov eax, cs:dword_411280"], [57, "cmp eax, 4"], [58, "jle short loc_408431"], [59, "mov edi, 5"], [60, "call sub_404547"], [61, "mov rax, cs:stream"], [62, "mov rcx, rax"], [63, "mov edx, 18h"], [64, "mov esi, 1"], [65, "mov edi, offset aBreakCharacter"], [66, "call _fwrite"], [67, "mov eax, 0"], [68, "call sub_4045DF"], [69, "mov rax, [rbp+var_18]"], [70, "mov eax, [rax+1D70h]"], [71, "lea edx, [rax+1]"], [72, "mov rax, [rbp+var_18]"], [73, "mov [rax+1D70h], edx"], [74, "mov rax, [rbp+var_18]"], [75, "mov eax, [rax+1D70h]"], [76, "cmp eax, 3"], [77, "jle short loc_4084BE"], [78, "mov rax, [rbp+var_18]"], [79, "mov dword ptr [rax+11B0h], 0"], [80, "mov rax, [rbp+var_18]"], [81, "mov dword ptr [rax+1D70h], 0"], [82, "jmp short loc_4084BE"], [83, "mov eax, cs:dword_411280"], [84, "cmp eax, 6"], [85, "jle short loc_4084B2"], [86, "mov edi, 7"], [87, "call sub_404547"], [88, "mov rax, cs:stream"], [89, "mov rcx, rax"], [90, "mov edx, 2Bh "], [91, "mov esi, 1"], [92, "mov edi, offset aFoundNonBreakC"], [93, "call _fwrite"], [94, "mov eax, 0"], [95, "call sub_4045DF"], [96, "mov rax, [rbp+var_18]"], [97, "mov rdi, rax"], [98, "call sub_4082F9"], [99, "add [rbp+var_4], 1"], [100, "mov eax, [rbp+var_4]"], [101, "cmp eax, [rbp+var_24]"], [102, "jl loc_4083B6"], [103, "mov eax, 0"], [104, "leave"], [105, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 8], [12, 22], [12, 10], [13, 12], [14, 4], [15, 14], [15, 13], [16, 15], [17, 16], [18, 3], [19, 17], [20, 18], [22, 10], [22, 22], [23, 22], [23, 10], [24, 5], [24, 23], [25, 24], [27, 5], [28, 4], [29, 3], [30, 28], [31, 29], [33, 3], [34, 33], [35, 34], [36, 35], [39, 99], [39, 37], [40, 39], [41, 4], [42, 41], [42, 40], [43, 73], [43, 79], [43, 42], [43, 81], [44, 43], [45, 44], [46, 3], [47, 73], [47, 79], [47, 81], [47, 46], [48, 47], [49, 48], [50, 45], [51, 3], [52, 79], [52, 51], [52, 81], [52, 73], [53, 52], [54, 53], [54, 50], [54, 45], [55, 54], [57, 56], [58, 57], [62, 61], [69, 3], [70, 73], [70, 79], [70, 81], [70, 69], [71, 40], [71, 79], [71, 81], [71, 73], [71, 70], [71, 63], [72, 3], [73, 71], [73, 72], [74, 3], [75, 74], [75, 73], [76, 75], [77, 76], [78, 3], [79, 78], [80, 3], [81, 80], [84, 83], [85, 84], [89, 88], [96, 3], [97, 96], [99, 99], [99, 37], [100, 37], [100, 99], [101, 5], [101, 100], [102, 101], [105, 103]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1c57951629eaf9c2a56a3776346f70122e53a2482ca8c37826f2035344e94b48_1c57951629eaf9c2a56a3776346f70122e53a2482ca8c37826f2035344e94b48.jsonl.gz", "strip_func_name": "sub_408324", "query": "\n\n\n__int64 __fastcall sub_408324(_DWORD *a1, __int64 a2, signed int a3)\n{\nint v5; // [rsp+28h] [rbp-8h]\nint i; // [rsp+2Ch] [rbp-4h]\nint j; // [rsp+2Ch] [rbp-4h]\n\nif ( a1[1135] == 1 )\n{\nfor ( i = 0; i < a3; ++i )\nsub_407FA4((__int64)a1, *(_BYTE *)(i + a2));\n}\nelse\n{\nsub_40B864(a1, a2, (unsigned int)a3);\nif ( a1[1132] == 1 )\n{\nfor ( j = 0; j < a3; ++j )\n{\nv5 = *(char *)(j + a2);\nif ( a1[1887] )\nv5 &= 0x7Fu;\nif ( v5 == (char)a1[1786] )\n{\nif ( dword_411280 > 4 )\n{\nsub_404547(5);\nfwrite(\"Break character received\", 1uLL, 0x18uLL, stream);\nsub_4045DF();\n}\nif ( (int)++a1[1884] > 3 )\n{\na1[1132] = 0;\na1[1884] = 0;\n}\n}\nelse\n{\nif ( dword_411280 > 6 )\n{\nsub_404547(7);\nfwrite(\"Found non-break character, cancelling break\", 1uLL, 0x2BuLL, stream);\nsub_4045DF();\n}\nsub_4082F9((__int64)a1);\n}\n}\n}\n}\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v5,j,sub_408324,sub_407FA4,sub_40B864,sub_404547,sub_4045DF,sub_4082F9,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'len', 'a1': 'cfg', 'a2': 'data', 'v5': 'ch_0', 'j': 'ia', 'sub_408324': 'mdm_parse_data', 'sub_407FA4': 'mdm_handle_char', 'sub_40B864': 'line_write', 'sub_404547': 'log_start', 'sub_4045DF': 'log_end', 'sub_4082F9': 'mdm_clear_break'}"}
add
4c47fa8bd4f1d3e494b1410a2ca0474c88b5c23bf23ff4084890f8b56ce9d202
s-hironobu
AlgorithmCollection
NA
bool_t add(hashtable_t * ht, const lkey_t key, const val_t val) { unsigned int i; node_t node; bool_t ret = false; node_t tmp; int try = 10; lock(ht->mtx); if (find_op(ht, key) == true) { unlock(ht->mtx); return false; } set_node(&node, key, val, OCC); retry: for (i = 0; i < ht->table_size; i++) { if ((ret = swap_node(ht, 1, node, &tmp)) == true) { ht->setSize++; break; } else if ((ret = swap_node(ht, 2, tmp, &node)) == true) { ht->setSize++; break; } } if (ret == false && try-- > 0) { resize(ht); printf ("Resized\n"); goto retry; } unlock(ht->mtx); return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402211", "function_addr": 4203025, "binary_name": "4c47fa8bd4f1d3e494b1410a2ca0474c88b5c23bf23ff4084890f8b56ce9d202.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 70h"], [3, "mov [rbp+var_58], rdi"], [4, "mov [rbp+var_60], rsi"], [5, "mov [rbp+var_68], rdx"], [6, "mov [rbp+var_5], 0"], [7, "mov [rbp+var_C], 0Ah"], [8, "mov rax, [rbp+var_58]"], [9, "add rax, 38h "], [10, "mov rdi, rax"], [11, "call _pthread_mutex_lock"], [12, "mov rdx, [rbp+var_60]"], [13, "mov rax, [rbp+var_58]"], [14, "mov rsi, rdx"], [15, "mov rdi, rax"], [16, "call sub_40245F"], [17, "cmp al, 1"], [18, "jnz short loc_402271"], [19, "mov rax, [rbp+var_58]"], [20, "add rax, 38h "], [21, "mov rdi, rax"], [22, "call _pthread_mutex_unlock"], [23, "mov eax, 0"], [24, "jmp locret_402372"], [25, "mov rdx, [rbp+var_68]"], [26, "mov rsi, [rbp+var_60]"], [27, "lea rax, [rbp+var_30]"], [28, "mov ecx, 2"], [29, "mov rdi, rax"], [30, "call sub_4020CE"], [31, "mov [rbp+var_4], 0"], [32, "jmp loc_402320"], [33, "lea rdx, [rbp+var_50]"], [34, "mov rax, [rbp+var_58]"], [35, "sub rsp, 8"], [36, "push [rbp+var_20]"], [37, "push [rbp+var_28]"], [38, "push [rbp+var_30]"], [39, "mov esi, 1"], [40, "mov rdi, rax"], [41, "call sub_402105"], [42, "add rsp, 20h"], [43, "mov [rbp+var_5], al"], [44, "cmp [rbp+var_5], 1"], [45, "jnz short loc_4022D9"], [46, "mov rax, [rbp+var_58]"], [47, "mov rax, [rax]"], [48, "lea rdx, [rax+1]"], [49, "mov rax, [rbp+var_58]"], [50, "mov [rax], rdx"], [51, "jmp short loc_402330"], [52, "lea rdx, [rbp+var_30]"], [53, "mov rax, [rbp+var_58]"], [54, "sub rsp, 8"], [55, "push [rbp+var_40]"], [56, "push [rbp+var_48]"], [57, "push [rbp+var_50]"], [58, "mov esi, 2"], [59, "mov rdi, rax"], [60, "call sub_402105"], [61, "add rsp, 20h"], [62, "mov [rbp+var_5], al"], [63, "cmp [rbp+var_5], 1"], [64, "jnz short loc_40231C"], [65, "mov rax, [rbp+var_58]"], [66, "mov rax, [rax]"], [67, "lea rdx, [rax+1]"], [68, "mov rax, [rbp+var_58]"], [69, "mov [rax], rdx"], [70, "jmp short loc_402330"], [71, "add [rbp+var_4], 1"], [72, "mov rax, [rbp+var_58]"], [73, "mov eax, [rax+18h]"], [74, "cmp [rbp+var_4], eax"], [75, "jb loc_402296"], [76, "cmp [rbp+var_5], 0"], [77, "jnz short loc_40235E"], [78, "mov eax, [rbp+var_C]"], [79, "lea edx, [rax-1]"], [80, "mov [rbp+var_C], edx"], [81, "test eax, eax"], [82, "jle short loc_40235E"], [83, "mov rax, [rbp+var_58]"], [84, "mov rdi, rax"], [85, "call sub_40283E"], [86, "mov edi, offset s"], [87, "call _puts"], [88, "jmp loc_40228A"], [89, "mov rax, [rbp+var_58]"], [90, "add rax, 38h "], [91, "mov rdi, rax"], [92, "call _pthread_mutex_unlock"], [93, "movzx eax, [rbp+var_5]"], [94, "leave"], [95, "retn"]], "data_dep": [[8, 3], [9, 8], [10, 9], [12, 4], [13, 3], [14, 12], [15, 13], [17, 16], [18, 17], [19, 3], [20, 19], [21, 20], [25, 5], [26, 4], [27, 16], [29, 27], [33, 79], [33, 25], [33, 52], [34, 3], [35, 42], [35, 2], [35, 61], [40, 34], [42, 35], [43, 41], [44, 43], [45, 44], [46, 3], [47, 50], [47, 46], [47, 69], [48, 47], [48, 33], [48, 69], [48, 50], [49, 3], [50, 49], [50, 48], [52, 33], [53, 3], [54, 42], [59, 53], [61, 54], [62, 60], [63, 62], [64, 63], [65, 3], [66, 69], [66, 50], [66, 65], [67, 52], [67, 69], [67, 66], [67, 50], [68, 3], [69, 67], [69, 68], [71, 31], [71, 71], [72, 3], [73, 69], [73, 50], [73, 72], [74, 73], [74, 31], [74, 71], [75, 74], [76, 43], [76, 6], [76, 62], [77, 76], [78, 7], [78, 80], [79, 67], [79, 69], [79, 78], [79, 25], [79, 48], [79, 50], [79, 52], [79, 79], [80, 79], [81, 78], [82, 81], [83, 3], [84, 83], [89, 3], [90, 89], [91, 90], [93, 6], [93, 62], [93, 43], [95, 93], [95, 23]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/4c47fa8bd4f1d3e494b1410a2ca0474c88b5c23bf23ff4084890f8b56ce9d202_4c47fa8bd4f1d3e494b1410a2ca0474c88b5c23bf23ff4084890f8b56ce9d202.jsonl.gz", "strip_func_name": "sub_402211", "query": "\n\n\n__int64 __fastcall sub_402211(__int64 a1, __int64 a2, __int64 a3)\n{\n__int64 result; // rax\n__int64 v4; // rcx\n__int64 v5; // r8\n__int64 v6; // r9\n__int64 v7; // rcx\n__int64 v8; // r8\n__int64 v9; // r9\nint v10; // eax\n__int64 v12[2]; // [rsp+20h] [rbp-50h] BYREF\n__int64 v13[2]; // [rsp+40h] [rbp-30h] BYREF\nint v14; // [rsp+64h] [rbp-Ch]\nunsigned __int8 v15; // [rsp+6Bh] [rbp-5h]\nunsigned int i; // [rsp+6Ch] [rbp-4h]\n\nv15 = 0;\nv14 = 10;\npthread_mutex_lock((pthread_mutex_t *)(a1 + 56));\nif ( (unsigned __int8)sub_40245F(a1, a2) == 1 )\n{\npthread_mutex_unlock((pthread_mutex_t *)(a1 + 56));\nresult = 0LL;\n}\nelse\n{\nsub_4020CE((__int64)v13, a2, a3, 2);\nwhile ( 1 )\n{\nfor ( i = 0; i < *(_DWORD *)(a1 + 24); ++i )\n{\nv15 = sub_402105(a1, 1u, (__int64)v12, v4, v5, v6, v13[0], v13[1]);\nif ( v15 == 1 )\n{\n++*(_QWORD *)a1;\nbreak;\n}\nv15 = sub_402105(a1, 2u, (__int64)v13, v7, v8, v9, v12[0], v12[1]);\nif ( v15 == 1 )\n{\n++*(_QWORD *)a1;\nbreak;\n}\n}\nif ( v15 )\nbreak;\nv10 = v14--;\nif ( v10 <= 0 )\nbreak;\nsub_40283E(a1);\nputs(\"Resized\");\n}\npthread_mutex_unlock((pthread_mutex_t *)(a1 + 56));\nresult = v15;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v12,v13,v14,sub_402211,sub_40245F,sub_4020CE,sub_402105,sub_40283E,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'val', 'a1': 'ht', 'a2': 'key', 'v12': 'tmp', 'v13': 'node', 'v14': 'trya', 'sub_402211': 'add', 'sub_40245F': 'find_op', 'sub_4020CE': 'set_node', 'sub_402105': 'swap_node', 'sub_40283E': 'resize'}"}
imported_imported_duplicated_package_message_encode_repeated_inner
c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705
eerimoq
pbtools
NA
void imported_imported_duplicated_package_message_encode_repeated_inner( struct pbtools_encoder_t *encoder_p, int field_number, struct imported_imported_duplicated_package_message_repeated_t *repeated_p) { pbtools_encode_repeated_inner( encoder_p, field_number, (struct pbtools_repeated_message_t *)repeated_p, sizeof(struct imported_imported_duplicated_package_message_t), (pbtools_message_encode_inner_t)imported_imported_duplicated_package_message_encode_inner); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43EA89", "function_addr": 4450953, "binary_name": "c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, cs:qword_4F2060"], [7, "add rax, 1"], [8, "mov cs:qword_4F2060, rax"], [9, "mov rdx, [rbp+var_18]"], [10, "mov esi, [rbp+var_C]"], [11, "mov rax, [rbp+var_8]"], [12, "mov r8d, offset sub_43E7B2"], [13, "mov ecx, 10h"], [14, "mov rdi, rax"], [15, "call sub_415FFD"], [16, "mov rax, cs:qword_4F2068"], [17, "add rax, 1"], [18, "mov cs:qword_4F2068, rax"], [19, "nop"], [20, "leave"], [21, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 5], [10, 4], [11, 3], [14, 11], [17, 16], [18, 17], [21, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n 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_43EA89", "query": "\n\n\n__int64 __fastcall sub_43EA89(unsigned __int64 a1, int a2, unsigned __int64 a3)\n{\n++qword_4F2060;\nsub_415FFD(a1, a2, a3, 16LL, (void (__fastcall *)(unsigned __int64, __int64))sub_43E7B2);\nreturn ++qword_4F2068;\n}\n\n\n\nQ:[a3,a1,a2,sub_43EA89,sub_415FFD,sub_43E7B2,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'repeated_p', 'a1': 'encoder_p', 'a2': 'field_number', 'sub_43EA89': 'imported_imported_duplicated_package_message_encode_repeated_inner', 'sub_415FFD': 'pbtools_encode_repeated_inner', 'sub_43E7B2': 'imported_imported_duplicated_package_message_encode_inner'}"}
free_smtrdns_get_host_ip
09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7
imatix
gsl
NA
void free_smtrdns_get_host_ip ( struct_smtrdns_get_host_ip **params) { mem_free ((*params)-> host_name); mem_free (*params); *params = NULL; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4393B8", "function_addr": 4428728, "binary_name": "09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rax, [rax]"], [6, "mov rax, [rax]"], [7, "mov edx, 0"], [8, "mov esi, 0"], [9, "mov rdi, rax"], [10, "call sub_462B45"], [11, "mov rax, [rbp+var_8]"], [12, "mov rax, [rax]"], [13, "mov edx, 0"], [14, "mov esi, 0"], [15, "mov rdi, rax"], [16, "call sub_462B45"], [17, "mov rax, [rbp+var_8]"], [18, "mov qword ptr [rax], 0"], [19, "nop"], [20, "leave"], [21, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [9, 6], [11, 3], [12, 11], [15, 12], [17, 3], [18, 17], [21, 17]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7_09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7.jsonl.gz", "strip_func_name": "sub_4393B8", "query": "\n\n\n_QWORD **__fastcall sub_4393B8(_QWORD **a1)\n{\n_QWORD **result; // rax\n\nsub_462B45(**a1, 0LL, 0LL);\nsub_462B45(*a1, 0LL, 0LL);\nresult = a1;\n*a1 = 0LL;\nreturn result;\n}\n\n\n\nQ:[a1,sub_4393B8,sub_462B45,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'params', 'sub_4393B8': 'free_smtrdns_get_host_ip', 'sub_462B45': 'mem_free_'}"}
executor_finish_job
d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323
openthread
ot-efr32
NA
static void executor_finish_job(btmesh_conf_executor_t *const self, btmesh_conf_job_result_t job_result, btmesh_conf_notification_status_t notification_status) { // The configuration executor shall transition to idle state before it notifies // the configuration distributor in order to make it possible to start a new // configuration job. Configuration distributor assumes if the job execution // is ended then it is able to schedule new configuration job. btmesh_conf_job_t *finished_job = self->current_job; self->current_job->result = job_result; self->current_job = NULL; self->local_retry_counter = 0; self->communication_retry_counter = 0; executor_state_transition(self, BTMESH_CONF_EXEC_STATE_IDLE); if (BTMESH_CONF_NOTIFICATION_ENABLE == notification_status) { btmesh_conf_distributor_on_job_notification(self->parent, self, finished_job); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41FAF3", "function_addr": 4324083, "binary_name": "d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_20], edx"], [6, "mov rax, [rbp+var_18]"], [7, "mov rax, [rax+8]"], [8, "mov [rbp+var_8], rax"], [9, "mov rax, [rbp+var_18]"], [10, "mov rax, [rax+8]"], [11, "mov edx, [rbp+var_1C]"], [12, "mov [rax+24h], edx"], [13, "mov rax, [rbp+var_18]"], [14, "mov qword ptr [rax+8], 0"], [15, "mov rax, [rbp+var_18]"], [16, "mov word ptr [rax+1Ah], 0"], [17, "mov rax, [rbp+var_18]"], [18, "mov word ptr [rax+1Eh], 0"], [19, "mov rax, [rbp+var_18]"], [20, "mov esi, 0"], [21, "mov rdi, rax"], [22, "call sub_41FB73"], [23, "cmp [rbp+var_20], 0"], [24, "jnz short loc_41FB70"], [25, "mov rax, [rbp+var_18]"], [26, "mov rax, [rax]"], [27, "mov rdx, [rbp+var_8]"], [28, "mov rcx, [rbp+var_18]"], [29, "mov rsi, rcx"], [30, "mov rdi, rax"], [31, "call sub_41E547"], [32, "nop"], [33, "leave"], [34, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 3], [10, 9], [11, 4], [12, 10], [12, 11], [13, 3], [14, 13], [15, 3], [16, 15], [17, 3], [18, 17], [19, 3], [21, 19], [23, 5], [24, 23], [25, 3], [26, 12], [26, 14], [26, 16], [26, 25], [26, 18], [27, 8], [28, 3], [29, 28], [30, 26], [34, 22], [34, 31]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323_d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.jsonl.gz", "strip_func_name": "sub_41FAF3", "query": "\n\n\n__int64 __fastcall sub_41FAF3(__int64 a1, int a2, int a3)\n{\n__int64 result; // rax\n__int64 v5; // [rsp+18h] [rbp-8h]\n\nv5 = *(_QWORD *)(a1 + 8);\n*(_DWORD *)(v5 + 36) = a2;\n*(_QWORD *)(a1 + 8) = 0LL;\n*(_WORD *)(a1 + 26) = 0;\n*(_WORD *)(a1 + 30) = 0;\nresult = sub_41FB73(a1, 0LL);\nif ( !a3 )\nresult = sub_41E547(*(_QWORD *)a1, a1, v5);\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,v5,sub_41FAF3,sub_41FB73,sub_41E547,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'notification_status', 'a1': 'self', 'a2': 'job_result', 'v5': 'finished_job', 'sub_41FAF3': 'executor_finish_job', 'sub_41FB73': 'executor_state_transition', 'sub_41E547': 'btmesh_conf_distributor_on_job_notification'}"}
encode_context_unsigned
e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011
baidu
iot-edge-sdk-for-iot-parser
NA
int encode_context_unsigned( uint8_t * apdu, uint8_t tag_number, uint32_t value) { int len = 0; /* length of unsigned is variable, as per 20.2.4 */ if (value < 0x100) { len = 1; } else if (value < 0x10000) { len = 2; } else if (value < 0x1000000) { len = 3; } else { len = 4; } len = encode_tag(&apdu[0], tag_number, true, (uint32_t) len); len += encode_bacnet_unsigned(&apdu[len], value); return len; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408721", "function_addr": 4228897, "binary_name": "e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov eax, esi"], [5, "mov [rbp+var_20], edx"], [6, "mov [rbp+var_1C], al"], [7, "mov [rbp+var_4], 0"], [8, "cmp [rbp+var_20], 0FFh"], [9, "ja short loc_40874E"], [10, "mov [rbp+var_4], 1"], [11, "jmp short loc_408779"], [12, "cmp [rbp+var_20], 0FFFFh"], [13, "ja short loc_408760"], [14, "mov [rbp+var_4], 2"], [15, "jmp short loc_408779"], [16, "cmp [rbp+var_20], 0FFFFFFh"], [17, "ja short loc_408772"], [18, "mov [rbp+var_4], 3"], [19, "jmp short loc_408779"], [20, "mov [rbp+var_4], 4"], [21, "mov edx, [rbp+var_4]"], [22, "movzx esi, [rbp+var_1C]"], [23, "mov rax, [rbp+var_18]"], [24, "mov ecx, edx"], [25, "mov edx, 1"], [26, "mov rdi, rax"], [27, "call sub_406FFE"], [28, "mov [rbp+var_4], eax"], [29, "mov eax, [rbp+var_4]"], [30, "movsxd rdx, eax"], [31, "mov rax, [rbp+var_18]"], [32, "add rdx, rax"], [33, "mov eax, [rbp+var_20]"], [34, "mov esi, eax"], [35, "mov rdi, rdx"], [36, "call sub_408694"], [37, "add [rbp+var_4], eax"], [38, "mov eax, [rbp+var_4]"], [39, "leave"], [40, "retn"]], "data_dep": [[6, 4], [8, 5], [9, 8], [12, 5], [13, 12], [16, 5], [17, 16], [21, 10], [21, 18], [21, 14], [21, 20], [22, 6], [23, 3], [24, 21], [26, 23], [28, 27], [29, 28], [30, 29], [31, 3], [32, 31], [32, 30], [33, 5], [34, 33], [35, 32], [37, 36], [37, 28], [38, 37], [40, 38]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011_e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011.jsonl.gz", "strip_func_name": "sub_408721", "query": "\n\n\n__int64 __fastcall sub_408721(_BYTE *a1, unsigned __int8 a2, unsigned int a3)\n{\nint v3; // eax\n\nif ( a3 > 0xFF )\n{\nif ( a3 > 0xFFFF )\n{\nif ( a3 > 0xFFFFFF )\nv3 = sub_406FFE(a1, a2, 1, 4u);\nelse\nv3 = sub_406FFE(a1, a2, 1, 3u);\n}\nelse\n{\nv3 = sub_406FFE(a1, a2, 1, 2u);\n}\n}\nelse\n{\nv3 = sub_406FFE(a1, a2, 1, 1u);\n}\nreturn (unsigned int)sub_408694(&a1[v3], a3) + v3;\n}\n\n\n\nQ:[a3,a1,a2,sub_408721,sub_406FFE,sub_408694,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'value', 'a1': 'apdu', 'a2': 'tag_number', 'sub_408721': 'encode_context_unsigned', 'sub_406FFE': 'encode_tag', 'sub_408694': 'encode_bacnet_unsigned'}"}
kgetline
2e41131efdc31893b1e9cfe634b3497205fe890eb5cb06161fcc58fe784adeba
xiaochuanle
MECAT2
NA
int kgetline(kstring_t *s, kgets_func *fgets_fn, void *fp) { size_t l0 = s->l; while (s->l == l0 || s->s[s->l-1] != '\n') { if (s->m - s->l < 200) ks_reserve(s, s->m + 200); if (fgets_fn(s->s + s->l, s->m - s->l, fp) == NULL) break; s->l += strlen(s->s + s->l); } if (s->l == l0) return EOF; if (s->l > l0 && s->s[s->l-1] == '\n') { s->l--; if (s->l > l0 && s->s[s->l-1] == '\r') s->l--; } s->s[s->l] = '\0'; return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413123", "function_addr": 4272419, "binary_name": "2e41131efdc31893b1e9cfe634b3497205fe890eb5cb06161fcc58fe784adeba.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 38h"], [4, "mov [rbp+var_28], rdi"], [5, "mov [rbp+var_30], rsi"], [6, "mov [rbp+var_38], rdx"], [7, "mov rax, [rbp+var_28]"], [8, "mov rax, [rax]"], [9, "mov [rbp+var_18], rax"], [10, "jmp loc_4131ED"], [11, "mov rax, [rbp+var_28]"], [12, "mov rdx, [rax+8]"], [13, "mov rax, [rbp+var_28]"], [14, "mov rcx, [rax]"], [15, "mov rax, rdx"], [16, "sub rax, rcx"], [17, "cmp rax, 0C7h"], [18, "ja short loc_413183"], [19, "mov rax, [rbp+var_28]"], [20, "mov rax, [rax+8]"], [21, "lea rdx, [rax+0C8h]"], [22, "mov rax, [rbp+var_28]"], [23, "mov rsi, rdx"], [24, "mov rdi, rax"], [25, "call sub_41262A"], [26, "mov rax, [rbp+var_28]"], [27, "mov rax, [rax+8]"], [28, "mov edx, eax"], [29, "mov rax, [rbp+var_28]"], [30, "mov rax, [rax]"], [31, "mov ecx, eax"], [32, "mov eax, edx"], [33, "sub eax, ecx"], [34, "mov esi, eax"], [35, "mov rax, [rbp+var_28]"], [36, "mov rdx, [rax+10h]"], [37, "mov rax, [rbp+var_28]"], [38, "mov rax, [rax]"], [39, "lea rdi, [rdx+rax]"], [40, "mov rax, [rbp+var_38]"], [41, "mov rcx, [rbp+var_30]"], [42, "mov rdx, rax"], [43, "call rcx"], [44, "test rax, rax"], [45, "jz short loc_413221"], [46, "mov rax, [rbp+var_28]"], [47, "mov rbx, [rax]"], [48, "mov rax, [rbp+var_28]"], [49, "mov rdx, [rax+10h]"], [50, "mov rax, [rbp+var_28]"], [51, "mov rax, [rax]"], [52, "add rax, rdx"], [53, "mov rdi, rax"], [54, "call _strlen"], [55, "lea rdx, [rbx+rax]"], [56, "mov rax, [rbp+var_28]"], [57, "mov [rax], rdx"], [58, "mov rax, [rbp+var_28]"], [59, "mov rax, [rax]"], [60, "cmp [rbp+var_18], rax"], [61, "jz loc_413148"], [62, "mov rax, [rbp+var_28]"], [63, "mov rdx, [rax+10h]"], [64, "mov rax, [rbp+var_28]"], [65, "mov rax, [rax]"], [66, "sub rax, 1"], [67, "add rax, rdx"], [68, "movzx eax, byte ptr [rax]"], [69, "cmp al, 0Ah"], [70, "jnz loc_413148"], [71, "jmp short loc_413222"], [72, "nop"], [73, "mov rax, [rbp+var_28]"], [74, "mov rax, [rax]"], [75, "cmp [rbp+var_18], rax"], [76, "jnz short loc_413239"], [77, "mov eax, 0FFFFFFFFh"], [78, "jmp loc_4132CB"], [79, "mov rax, [rbp+var_28]"], [80, "mov rax, [rax]"], [81, "cmp [rbp+var_18], rax"], [82, "jnb short loc_4132B1"], [83, "mov rax, [rbp+var_28]"], [84, "mov rdx, [rax+10h]"], [85, "mov rax, [rbp+var_28]"], [86, "mov rax, [rax]"], [87, "sub rax, 1"], [88, "add rax, rdx"], [89, "movzx eax, byte ptr [rax]"], [90, "cmp al, 0Ah"], [91, "jnz short loc_4132B1"], [92, "mov rax, [rbp+var_28]"], [93, "mov rax, [rax]"], [94, "lea rdx, [rax-1]"], [95, "mov rax, [rbp+var_28]"], [96, "mov [rax], rdx"], [97, "mov rax, [rbp+var_28]"], [98, "mov rax, [rax]"], [99, "cmp [rbp+var_18], rax"], [100, "jnb short loc_4132B1"], [101, "mov rax, [rbp+var_28]"], [102, "mov rdx, [rax+10h]"], [103, "mov rax, [rbp+var_28]"], [104, "mov rax, [rax]"], [105, "sub rax, 1"], [106, "add rax, rdx"], [107, "movzx eax, byte ptr [rax]"], [108, "cmp al, 0Dh"], [109, "jnz short loc_4132B1"], [110, "mov rax, [rbp+var_28]"], [111, "mov rax, [rax]"], [112, "lea rdx, [rax-1]"], [113, "mov rax, [rbp+var_28]"], [114, "mov [rax], rdx"], [115, "mov rax, [rbp+var_28]"], [116, "mov rdx, [rax+10h]"], [117, "mov rax, [rbp+var_28]"], [118, "mov rax, [rax]"], [119, "add rax, rdx"], [120, "mov byte ptr [rax], 0"], [121, "mov eax, 0"], [122, "mov rbx, [rbp+var_8]"], [123, "leave"], [124, "retn"]], "data_dep": [[7, 4], [8, 7], [9, 8], [11, 4], [12, 57], [12, 11], [13, 4], [14, 13], [14, 57], [15, 12], [16, 15], [16, 14], [17, 16], [18, 17], [19, 4], [20, 19], [20, 57], [21, 57], [21, 20], [21, 12], [22, 4], [23, 21], [24, 22], [26, 4], [27, 26], [27, 57], [28, 27], [29, 4], [30, 57], [30, 29], [31, 30], [32, 28], [33, 31], [33, 32], [34, 33], [35, 4], [36, 57], [36, 35], [37, 4], [38, 57], [38, 37], [39, 24], [39, 53], [39, 57], [39, 38], [40, 6], [41, 5], [42, 40], [43, 41], [44, 43], [45, 44], [46, 4], [47, 57], [47, 46], [48, 4], [49, 48], [49, 57], [50, 4], [51, 57], [51, 50], [52, 49], [52, 51], [53, 52], [55, 57], [55, 54], [55, 49], [56, 4], [57, 56], [57, 55], [58, 4], [59, 57], [59, 58], [60, 9], [60, 59], [61, 60], [62, 4], [63, 62], [63, 57], [64, 4], [65, 64], [65, 57], [66, 65], [67, 63], [67, 66], [68, 57], [68, 67], [69, 68], [70, 69], [73, 4], [74, 73], [74, 57], [75, 74], [75, 9], [76, 75], [79, 4], [80, 57], [80, 79], [81, 80], [81, 9], [82, 81], [83, 4], [84, 83], [84, 57], [85, 4], [86, 85], [86, 57], [87, 86], [88, 87], [88, 84], [89, 88], [89, 57], [90, 89], [91, 90], [92, 4], [93, 92], [93, 96], [93, 57], [94, 96], [94, 57], [94, 84], [94, 93], [95, 4], [96, 95], [96, 94], [97, 4], [98, 96], [98, 97], [99, 98], [99, 9], [100, 99], [101, 4], [102, 57], [102, 101], [102, 96], [103, 4], [104, 96], [104, 57], [104, 103], [105, 104], [106, 102], [106, 105], [107, 106], [107, 96], [107, 57], [108, 107], [109, 108], [110, 4], [111, 110], [111, 96], [111, 57], [111, 114], [112, 57], [112, 114], [112, 102], [112, 111], [112, 96], [113, 4], [114, 113], [114, 112], [115, 4], [116, 120], [116, 115], [116, 96], [116, 57], [116, 114], [117, 4], [118, 117], [118, 96], [118, 57], [118, 114], [118, 120], [119, 116], [119, 118], [120, 119], [124, 121], [124, 77]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/2e41131efdc31893b1e9cfe634b3497205fe890eb5cb06161fcc58fe784adeba_2e41131efdc31893b1e9cfe634b3497205fe890eb5cb06161fcc58fe784adeba.jsonl.gz", "strip_func_name": "sub_413123", "query": "\n\n\n__int64 __fastcall sub_413123(unsigned __int64 *a1, __int64 (__fastcall *a2)(unsigned __int64, _QWORD, __int64), __int64 a3)\n{\nunsigned __int64 v3; // rbx\nunsigned __int64 v6; // [rsp+28h] [rbp-18h]\n\nv6 = *a1;\nwhile ( v6 == *a1 || *(_BYTE *)(a1[2] + *a1 - 1) != 10 )\n{\nif ( a1[1] - *a1 <= 0xC7 )\nsub_41262A((__int64)a1, a1[1] + 200);\nif ( !a2(a1[2] + *a1, (unsigned int)a1[1] - (unsigned int)*a1, a3) )\nbreak;\nv3 = *a1;\n*a1 = v3 + strlen((const char *)(a1[2] + *a1));\n}\nif ( v6 == *a1 )\nreturn 0xFFFFFFFFLL;\nif ( v6 < *a1 && *(_BYTE *)(a1[2] + *a1 - 1) == 10 && v6 < --*a1 && *(_BYTE *)(a1[2] + *a1 - 1) == 13 )\n--*a1;\n*(_BYTE *)(a1[2] + *a1) = 0;\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,v6,sub_413123,sub_41262A,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'fp', 'a1': 's', 'a2': 'fgets_fn', 'v6': 'l0', 'sub_413123': 'kgetline', 'sub_41262A': 'ks_reserve_0'}"}
js_method_set_properties
14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243
sunnyxx
quickjs-debug
NA
static int js_method_set_properties(JSContext *ctx, JSValueConst func_obj, JSAtom name, int flags, JSValueConst home_obj) { JSValue name_str; name_str = js_get_function_name(ctx, name); if (flags & JS_PROP_HAS_GET) { name_str = JS_ConcatString3(ctx, "get ", name_str, ""); } else if (flags & JS_PROP_HAS_SET) { name_str = JS_ConcatString3(ctx, "set ", name_str, ""); } if (JS_IsException(name_str)) return -1; if (JS_DefinePropertyValue(ctx, func_obj, JS_ATOM_name, name_str, JS_PROP_CONFIGURABLE) < 0) return -1; js_method_set_home_object(ctx, func_obj, home_obj); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41233A", "function_addr": 4268858, "binary_name": "14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, rsi"], [5, "mov rsi, rdx"], [6, "mov rdx, rsi"], [7, "mov [rbp+var_30], rax"], [8, "mov [rbp+var_28], rdx"], [9, "mov [rbp+var_1C], ecx"], [10, "mov [rbp+var_20], r8d"], [11, "mov edx, [rbp+var_1C]"], [12, "mov rax, [rbp+var_18]"], [13, "mov esi, edx"], [14, "mov rdi, rax"], [15, "call sub_4122C9"], [16, "mov [rbp+var_10], rax"], [17, "mov [rbp+var_8], rdx"], [18, "mov eax, [rbp+var_20]"], [19, "and eax, 800h"], [20, "test eax, eax"], [21, "jz short loc_4123AF"], [22, "mov rax, [rbp+var_10]"], [23, "mov rdx, [rbp+var_8]"], [24, "mov rdi, [rbp+var_18]"], [25, "mov r8d, offset unk_4B3E48"], [26, "mov rcx, rdx"], [27, "mov rdx, rax"], [28, "mov esi, offset aGet"], [29, "call sub_40FAA9"], [30, "mov [rbp+var_10], rax"], [31, "mov [rbp+var_8], rdx"], [32, "jmp short loc_4123E5"], [33, "mov eax, [rbp+var_20]"], [34, "and eax, 1000h"], [35, "test eax, eax"], [36, "jz short loc_4123E5"], [37, "mov rax, [rbp+var_10]"], [38, "mov rdx, [rbp+var_8]"], [39, "mov rdi, [rbp+var_18]"], [40, "mov r8d, offset unk_4B3E48"], [41, "mov rcx, rdx"], [42, "mov rdx, rax"], [43, "mov esi, offset aSet"], [44, "call sub_40FAA9"], [45, "mov [rbp+var_10], rax"], [46, "mov [rbp+var_8], rdx"], [47, "mov rdx, [rbp+var_10]"], [48, "mov rax, [rbp+var_8]"], [49, "mov rdi, rdx"], [50, "mov rsi, rax"], [51, "call sub_409EFF"], [52, "test eax, eax"], [53, "jz short loc_412403"], [54, "mov eax, 0FFFFFFFFh"], [55, "jmp short locret_412463"], [56, "mov rax, [rbp+var_10]"], [57, "mov rdx, [rbp+var_8]"], [58, "mov rsi, [rbp+var_30]"], [59, "mov r10, [rbp+var_28]"], [60, "mov rdi, [rbp+var_18]"], [61, "sub rsp, 8"], [62, "push 1"], [63, "mov r8, rax"], [64, "mov r9, rdx"], [65, "mov ecx, 35h "], [66, "mov rdx, r10"], [67, "call sub_41E3DD"], [68, "add rsp, 10h"], [69, "test eax, eax"], [70, "jns short loc_41243F"], [71, "mov eax, 0FFFFFFFFh"], [72, "jmp short locret_412463"], [73, "mov rcx, [rbp+arg_0]"], [74, "mov rdi, [rbp+arg_8]"], [75, "mov rsi, [rbp+var_30]"], [76, "mov rdx, [rbp+var_28]"], [77, "mov rax, [rbp+var_18]"], [78, "mov r8, rdi"], [79, "mov rdi, rax"], [80, "call sub_4121C8"], [81, "mov eax, 0"], [82, "leave"], [83, "retn"]], "data_dep": [[6, 5], [7, 4], [8, 6], [11, 9], [12, 3], [13, 11], [14, 12], [16, 15], [17, 11], [18, 10], [19, 18], [20, 19], [21, 20], [22, 16], [23, 17], [24, 3], [26, 23], [27, 22], [30, 29], [31, 27], [33, 10], [34, 33], [35, 34], [36, 35], [37, 16], [38, 17], [39, 3], [41, 38], [42, 37], [45, 44], [46, 42], [47, 16], [47, 30], [47, 45], [48, 17], [48, 31], [48, 46], [49, 47], [50, 48], [52, 51], [53, 52], [56, 16], [56, 30], [56, 45], [57, 17], [57, 31], [57, 46], [58, 7], [59, 8], [60, 3], [61, 2], [63, 56], [64, 57], [66, 59], [68, 61], [69, 67], [70, 69], [74, 46], [74, 31], [74, 17], [75, 7], [76, 8], [77, 3], [78, 74], [79, 77], [83, 54], [83, 81], [83, 71]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n 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_41233A", "query": "\n\n\n__int64 __fastcall sub_41233A(__int64 *a1, __int64 a2, __int64 a3, unsigned int a4, __int16 a5, __int64 a6, _DWORD *a7, __int64 a8)\n{\n__int64 v8; // rdx\nint v9; // edx\n_BOOL4 v10; // eax\nint v11; // edx\n_DWORD *v15; // [rsp+20h] [rbp-10h]\nint v16; // [rsp+28h] [rbp-8h]\n\nv15 = sub_4122C9(a1, a4);\nv16 = v8;\nif ( (a5 & 0x800) != 0 )\n{\nv15 = sub_40FAA9((__int64 (__fastcall ***)(__int64, __int64))a1, \"get \", v15, v8, (unsigned __int8 *)&unk_4B3E48);\nv16 = v9;\nv10 = sub_409EFF((__int64)v15, v9);\n}\nelse\n{\nif ( (a5 & 0x1000) != 0 )\n{\nv15 = sub_40FAA9((__int64 (__fastcall ***)(__int64, __int64))a1, \"set \", v15, v8, (unsigned __int8 *)&unk_4B3E48);\nv16 = v11;\n}\nv10 = sub_409EFF((__int64)v15, v16);\n}\nif ( v10 )\nreturn 0xFFFFFFFFLL;\nif ( (int)sub_41E3DD((_DWORD)a1, a2, a3, 53, (_DWORD)v15, v16, 1) < 0 )\nreturn 0xFFFFFFFFLL;\nsub_4121C8((__int64)a1, a2, a3, a7, a8);\nreturn 0LL;\n}\n\n\n\nQ:[a4,a1,a2,a5,a7,v15,sub_41233A,sub_4122C9,sub_40FAA9,sub_409EFF,sub_41E3DD,sub_4121C8,]\nAssistant: ", "hints": "[]", "response": "{'a4': 'name', 'a1': 'ctx', 'a2': 'func_obj', 'a5': 'flags', 'a7': 'home_obj', 'v15': 'name_str', 'sub_41233A': 'js_method_set_properties', 'sub_4122C9': 'js_get_function_name', 'sub_40FAA9': 'JS_ConcatString3', 'sub_409EFF': 'JS_IsException_0', 'sub_41E3DD': 'JS_DefinePropertyValue', 'sub_4121C8': 'js_method_set_home_object'}"}
UG_WindowGetYEnd
3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107
digitalbitbox
bitbox02-firmware
NA
UG_S16 UG_WindowGetYEnd( UG_WINDOW* wnd ) { UG_S16 ye = -1; if ( (wnd != NULL) && (wnd->state & WND_STATE_VALID) ) { ye = wnd->ye; } return ye; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4064CA", "function_addr": 4220106, "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_4064FD"], [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_4064FD"], [12, "mov rax, [rbp+var_18]"], [13, "movzx eax, word ptr [rax+22h]"], [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_4064CA", "query": "\n\n\n__int64 __fastcall sub_4064CA(__int64 a1)\n{\nunsigned __int16 v2; // [rsp+16h] [rbp-2h]\n\nv2 = -1;\nif ( a1 && (*(_BYTE *)(a1 + 16) & 2) != 0 )\nv2 = *(_WORD *)(a1 + 34);\nreturn v2;\n}\n\n\n\nQ:[a1,v2,sub_4064CA,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'wnd', 'v2': 'ye', 'sub_4064CA': 'UG_WindowGetYEnd'}"}
mesh_transport_key_and_virtual_address_iterator_next
0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb
bluekitchen
btstack
NA
static void mesh_transport_key_and_virtual_address_iterator_next(mesh_transport_key_and_virtual_address_iterator_t * it){ if (mesh_network_address_virtual(it->dst)) { it->address = mesh_virtual_address_iterator_get_next(&it->address_it); } else { it->key = mesh_transport_key_aid_iterator_get_next(&it->key_it); } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44EF9A", "function_addr": 4517786, "binary_name": "0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb.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, "movzx eax, word ptr [rax+60h]"], [6, "movzx eax, ax"], [7, "mov edi, eax"], [8, "call sub_44AAD6"], [9, "test eax, eax"], [10, "jz short loc_44EFD6"], [11, "mov rax, [rbp+var_8]"], [12, "add rax, 28h "], [13, "mov rdi, rax"], [14, "call sub_451F1B"], [15, "mov rdx, [rbp+var_8]"], [16, "mov [rdx+58h], rax"], [17, "jmp short loc_44EFEA"], [18, "mov rax, [rbp+var_8]"], [19, "mov rdi, rax"], [20, "call sub_448953"], [21, "mov rdx, [rbp+var_8]"], [22, "mov [rdx+50h], rax"], [23, "nop"], [24, "leave"], [25, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [9, 8], [10, 9], [11, 3], [12, 11], [13, 12], [15, 3], [16, 15], [16, 14], [18, 3], [19, 18], [21, 3], [22, 20], [22, 21], [25, 14], [25, 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/0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb_0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb.jsonl.gz", "strip_func_name": "sub_44EF9A", "query": "\n\n\n__int64 __fastcall sub_44EF9A(__int64 a1)\n{\n__int64 result; // rax\n\nif ( sub_44AAD6(*(_WORD *)(a1 + 96)) )\n{\nresult = sub_451F1B(a1 + 40);\n*(_QWORD *)(a1 + 88) = result;\n}\nelse\n{\nresult = sub_448953(a1);\n*(_QWORD *)(a1 + 80) = result;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_44EF9A,sub_44AAD6,sub_451F1B,sub_448953,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'it', 'sub_44EF9A': 'mesh_transport_key_and_virtual_address_iterator_next', 'sub_44AAD6': 'mesh_network_address_virtual', 'sub_451F1B': 'mesh_virtual_address_iterator_get_next', 'sub_448953': 'mesh_transport_key_aid_iterator_get_next'}"}
u8g_page_Init
afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84
olikraus
u8glib
NA
void u8g_page_Init(u8g_page_t *p, u8g_uint_t page_height, u8g_uint_t total_height ) { p->page_height = page_height; p->total_height = total_height; p->page = 0; u8g_page_First(p); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40AA2F", "function_addr": 4237871, "binary_name": "afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov ecx, esi"], [5, "mov eax, edx"], [6, "mov edx, ecx"], [7, "mov [rbp+var_C], dx"], [8, "mov [rbp+var_10], ax"], [9, "mov rax, [rbp+var_8]"], [10, "movzx edx, [rbp+var_C]"], [11, "mov [rax], dx"], [12, "mov rax, [rbp+var_8]"], [13, "movzx edx, [rbp+var_10]"], [14, "mov [rax+2], dx"], [15, "mov rax, [rbp+var_8]"], [16, "mov byte ptr [rax+8], 0"], [17, "mov rax, [rbp+var_8]"], [18, "mov rdi, rax"], [19, "call sub_40AA77"], [20, "nop"], [21, "leave"], [22, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 5], [9, 3], [10, 7], [11, 10], [11, 9], [12, 3], [13, 8], [14, 13], [14, 12], [15, 3], [16, 15], [17, 3], [18, 17], [22, 19]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84_afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84.jsonl.gz", "strip_func_name": "sub_40AA2F", "query": "\n\n\n__int64 __fastcall sub_40AA2F(__int64 a1, __int16 a2, __int16 a3)\n{\n*(_WORD *)a1 = a2;\n*(_WORD *)(a1 + 2) = a3;\n*(_BYTE *)(a1 + 8) = 0;\nreturn sub_40AA77(a1);\n}\n\n\n\nQ:[a3,a1,a2,sub_40AA2F,sub_40AA77,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'total_height', 'a1': 'p', 'a2': 'page_height', 'sub_40AA2F': 'u8g_page_Init', 'sub_40AA77': 'u8g_page_First'}"}
block_is_last
53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783
sukesh-ak
ESP32-TUX
NA
static int block_is_last(const block_header_t * block) { return block_size(block) == 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_472BDE", "function_addr": 4664286, "binary_name": "53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 8"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov rdi, rax"], [6, "call sub_472B7E"], [7, "test rax, rax"], [8, "setz al"], [9, "movzx eax, al"], [10, "leave"], [11, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [8, 7], [9, 8], [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/53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783_53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783.jsonl.gz", "strip_func_name": "sub_472BDE", "query": "\n\n\n_BOOL8 __fastcall sub_472BDE(__int64 a1)\n{\nreturn sub_472B7E(a1) == 0;\n}\n\n\n\nQ:[a1,sub_472BDE,sub_472B7E,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'block', 'sub_472BDE': 'block_is_last', 'sub_472B7E': 'block_size'}"}
InDataContainer
76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60
Wiimm
wiimms-szs-tools
NA
bool InDataContainer ( // return true, if ptr is in old_container const DataContainer_t *dc, // NULL or valid old_container const void *ptr // NULL or pointer to test ) { return dc && ptr && (u8*)ptr >= dc->data && (u8*)ptr <= dc->data + dc->size; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4981F0", "function_addr": 4817392, "binary_name": "76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60.elf_extract.pkl\n"}, "code": [[0, "mov [rsp+var_8], rdi"], [1, "mov [rsp+var_10], rsi"], [2, "cmp [rsp+var_8], 0"], [3, "jz short loc_49823D"], [4, "cmp [rsp+var_10], 0"], [5, "jz short loc_49823D"], [6, "mov rax, [rsp+var_8]"], [7, "mov rax, [rax+10h]"], [8, "cmp [rsp+var_10], rax"], [9, "jb short loc_49823D"], [10, "mov rax, [rsp+var_8]"], [11, "mov rdx, [rax+10h]"], [12, "mov rax, [rsp+var_8]"], [13, "mov eax, [rax+18h]"], [14, "mov eax, eax"], [15, "add rax, rdx"], [16, "cmp [rsp+var_10], rax"], [17, "ja short loc_49823D"], [18, "mov eax, 1"], [19, "retn"], [20, "mov eax, 0"], [21, "retn"]], "data_dep": [[2, 0], [3, 2], [4, 1], [5, 4], [6, 0], [7, 6], [8, 1], [8, 7], [9, 8], [10, 0], [11, 10], [12, 0], [13, 12], [14, 13], [15, 11], [15, 14], [16, 1], [16, 15], [17, 16], [19, 18], [21, 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/76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60_76c05f321c4703deb67fa538c2cf508c66723817fc1ebd22a9f48d40487c4c60.jsonl.gz", "strip_func_name": "sub_4981F0", "query": "\n\n\n_BOOL8 __fastcall sub_4981F0(__int64 a1, unsigned __int64 a2)\n{\nreturn a1\n&& a2\n&& a2 >= *(_QWORD *)(a1 + 16)\n&& a2 <= *(_QWORD *)(a1 + 16) + (unsigned __int64)*(unsigned int *)(a1 + 24);\n}\n\n\n\nQ:[a1,a2,sub_4981F0,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'dc', 'a2': 'ptr', 'sub_4981F0': 'InDataContainer'}"}
InitDocTable
aff58d7b8484487fd4852231b7744c25c222df9168e8589bdf48b63944abe6b0
yumeng5
CatE
NA
void InitDocTable() { int a, i; double doc_len_pow = 0; double d1, power = 0.75; doc_table = (int *) malloc(table_size * sizeof(int)); for (a = 0; a < corpus_size; a++) doc_len_pow += pow(docs[a], power); i = 0; d1 = pow(docs[i], power) / doc_len_pow; for (a = 0; a < table_size; a++) { doc_table[a] = i; if (a / (double) table_size > d1) { i++; d1 += pow(docs[i], power) / doc_len_pow; } if (i >= corpus_size) i = corpus_size - 1; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4018DC", "function_addr": 4200668, "binary_name": "aff58d7b8484487fd4852231b7744c25c222df9168e8589bdf48b63944abe6b0.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "pxor xmm0, xmm0"], [4, "movsd [rbp+var_10], xmm0"], [5, "movsd xmm0, cs:qword_408F88"], [6, "movsd [rbp+y], xmm0"], [7, "mov eax, 5F5E100h"], [8, "cdqe"], [9, "shl rax, 2"], [10, "mov rdi, rax"], [11, "call _malloc"], [12, "mov cs:qword_40B828, rax"], [13, "mov [rbp+var_4], 0"], [14, "jmp short loc_401964"], [15, "mov rdx, cs:qword_40B7A0"], [16, "mov eax, [rbp+var_4]"], [17, "cdqe"], [18, "shl rax, 2"], [19, "add rax, rdx"], [20, "mov eax, [rax]"], [21, "pxor xmm2, xmm2"], [22, "cvtsi2sd xmm2, eax"], [23, "movq rax, xmm2"], [24, "movsd xmm0, [rbp+y]"], [25, "movapd xmm1, xmm0"], [26, "movq xmm0, rax"], [27, "call _pow"], [28, "movsd xmm1, [rbp+var_10]"], [29, "addsd xmm0, xmm1"], [30, "movsd [rbp+var_10], xmm0"], [31, "add [rbp+var_4], 1"], [32, "mov eax, [rbp+var_4]"], [33, "movsxd rdx, eax"], [34, "mov rax, cs:qword_40B7B8"], [35, "cmp rdx, rax"], [36, "jl short loc_40191D"], [37, "mov [rbp+var_8], 0"], [38, "mov rdx, cs:qword_40B7A0"], [39, "mov eax, [rbp+var_8]"], [40, "cdqe"], [41, "shl rax, 2"], [42, "add rax, rdx"], [43, "mov eax, [rax]"], [44, "pxor xmm3, xmm3"], [45, "cvtsi2sd xmm3, eax"], [46, "movq rax, xmm3"], [47, "movsd xmm0, [rbp+y]"], [48, "movapd xmm1, xmm0"], [49, "movq xmm0, rax"], [50, "call _pow"], [51, "movq rax, xmm0"], [52, "movq xmm0, rax"], [53, "divsd xmm0, [rbp+var_10]"], [54, "movsd [rbp+var_18], xmm0"], [55, "mov [rbp+var_4], 0"], [56, "jmp loc_401A84"], [57, "mov rdx, cs:qword_40B828"], [58, "mov eax, [rbp+var_4]"], [59, "cdqe"], [60, "shl rax, 2"], [61, "add rdx, rax"], [62, "mov eax, [rbp+var_8]"], [63, "mov [rdx], eax"], [64, "pxor xmm0, xmm0"], [65, "cvtsi2sd xmm0, [rbp+var_4]"], [66, "mov eax, 5F5E100h"], [67, "pxor xmm1, xmm1"], [68, "cvtsi2sd xmm1, eax"], [69, "divsd xmm0, xmm1"], [70, "comisd xmm0, [rbp+var_18]"], [71, "jbe short loc_401A61"], [72, "add [rbp+var_8], 1"], [73, "mov rdx, cs:qword_40B7A0"], [74, "mov eax, [rbp+var_8]"], [75, "cdqe"], [76, "shl rax, 2"], [77, "add rax, rdx"], [78, "mov eax, [rax]"], [79, "pxor xmm4, xmm4"], [80, "cvtsi2sd xmm4, eax"], [81, "movq rax, xmm4"], [82, "movsd xmm0, [rbp+y]"], [83, "movapd xmm1, xmm0"], [84, "movq xmm0, rax"], [85, "call _pow"], [86, "movq rax, xmm0"], [87, "movq xmm0, rax"], [88, "divsd xmm0, [rbp+var_10]"], [89, "movsd xmm1, [rbp+var_18]"], [90, "addsd xmm0, xmm1"], [91, "movsd [rbp+var_18], xmm0"], [92, "mov eax, [rbp+var_8]"], [93, "movsxd rdx, eax"], [94, "mov rax, cs:qword_40B7B8"], [95, "cmp rdx, rax"], [96, "jl short loc_401A80"], [97, "mov rax, cs:qword_40B7B8"], [98, "sub eax, 1"], [99, "mov [rbp+var_8], eax"], [100, "add [rbp+var_4], 1"], [101, "mov eax, 5F5E100h"], [102, "cmp [rbp+var_4], eax"], [103, "jl loc_4019D2"], [104, "nop"], [105, "nop"], [106, "leave"], [107, "retn"]], "data_dep": [[4, 3], [6, 5], [9, 7], [10, 9], [12, 11], [16, 13], [16, 31], [18, 16], [19, 18], [19, 15], [20, 19], [22, 21], [22, 20], [23, 22], [24, 6], [25, 24], [26, 23], [28, 30], [28, 4], [29, 26], [29, 28], [30, 29], [31, 31], [31, 13], [32, 13], [32, 31], [33, 32], [35, 33], [35, 34], [36, 35], [39, 37], [41, 39], [42, 41], [42, 38], [43, 42], [45, 43], [45, 44], [46, 45], [47, 6], [48, 47], [49, 46], [51, 49], [52, 51], [53, 4], [53, 52], [53, 30], [54, 53], [57, 12], [58, 55], [58, 100], [60, 58], [61, 60], [61, 57], [62, 72], [62, 99], [62, 37], [63, 61], [63, 62], [65, 100], [65, 55], [65, 64], [68, 66], [68, 67], [69, 65], [69, 68], [70, 91], [70, 54], [70, 69], [71, 61], [72, 72], [72, 99], [72, 37], [74, 72], [76, 74], [77, 76], [77, 73], [78, 77], [78, 63], [80, 78], [80, 79], [81, 80], [82, 6], [83, 82], [84, 81], [86, 84], [87, 86], [88, 30], [88, 87], [88, 4], [89, 54], [89, 91], [90, 88], [90, 89], [91, 90], [92, 72], [92, 99], [92, 37], [93, 92], [95, 93], [95, 94], [96, 95], [98, 97], [99, 98], [100, 55], [100, 100], [102, 100], [102, 101], [102, 55], [103, 102], [107, 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/aff58d7b8484487fd4852231b7744c25c222df9168e8589bdf48b63944abe6b0_aff58d7b8484487fd4852231b7744c25c222df9168e8589bdf48b63944abe6b0.jsonl.gz", "strip_func_name": "sub_4018DC", "query": "\n\n\n__int64 sub_4018DC()\n{\n__int64 result; // rax\ndouble v1; // [rsp+8h] [rbp-18h]\ndouble v2; // [rsp+10h] [rbp-10h]\nint v3; // [rsp+18h] [rbp-8h]\nint i; // [rsp+1Ch] [rbp-4h]\nint j; // [rsp+1Ch] [rbp-4h]\n\nv2 = 0.0;\nqword_40B828 = (__int64)malloc(0x17D78400uLL);\nfor ( i = 0; i < qword_40B7B8; ++i )\nv2 = pow((double)*(int *)(qword_40B7A0 + 4LL * i), 0.75) + v2;\nv3 = 0;\nv1 = pow((double)*(int *)qword_40B7A0, 0.75) / v2;\nfor ( j = 0; ; ++j )\n{\nresult = 100000000LL;\nif ( j >= 100000000 )\nbreak;\n*(_DWORD *)(4LL * j + qword_40B828) = v3;\nif ( (double)j / (double)100000000 > v1 )\nv1 = pow((double)*(int *)(qword_40B7A0 + 4LL * ++v3), 0.75) / v2 + v1;\nif ( v3 >= qword_40B7B8 )\nv3 = qword_40B7B8 - 1;\n}\nreturn result;\n}\n\n\n\nQ:[v1,v2,j,sub_4018DC,]\nAssistant: ", "hints": "[]", "response": "{'v1': 'd1', 'v2': 'doc_len_pow', 'j': 'aa', 'sub_4018DC': 'InitDocTable'}"}
port_is_ieee8021as
7af1f850afc1c3e89c40b08da14a93ca4e7a54739e2c3e87f7b06a31ef70aec1
nxp-archive
openil_linuxptp
NA
static int port_is_ieee8021as(struct port *p) { if (p->asCapable == ALWAYS_CAPABLE) { return 0; } return p->follow_up_info ? 1 : 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_410195", "function_addr": 4260245, "binary_name": "7af1f850afc1c3e89c40b08da14a93ca4e7a54739e2c3e87f7b06a31ef70aec1.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 eax, [rax+158h]"], [5, "cmp eax, 2"], [6, "jnz short loc_4101B3"], [7, "mov eax, 0"], [8, "jmp short loc_4101C5"], [9, "mov rax, [rbp+var_8]"], [10, "mov eax, [rax+180h]"], [11, "test eax, eax"], [12, "setnz al"], [13, "movzx eax, al"], [14, "pop rbp"], [15, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 4], [6, 5], [9, 2], [10, 9], [11, 10], [12, 11], [13, 12], [14, 0], [15, 7], [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/7af1f850afc1c3e89c40b08da14a93ca4e7a54739e2c3e87f7b06a31ef70aec1_7af1f850afc1c3e89c40b08da14a93ca4e7a54739e2c3e87f7b06a31ef70aec1.jsonl.gz", "strip_func_name": "sub_410195", "query": "\n\n\n_BOOL8 __fastcall sub_410195(__int64 a1)\n{\n_BOOL8 result; // rax\n\nif ( *(_DWORD *)(a1 + 344) == 2 )\nresult = 0LL;\nelse\nresult = *(_DWORD *)(a1 + 384) != 0;\nreturn result;\n}\n\n\n\nQ:[a1,sub_410195,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'p', 'sub_410195': 'port_is_ieee8021as'}"}
_demultiplex_slip
bd407020cf86f8891a14dc104920383db86c7b2a8a3a061bcc932ec6d7ac3596
RIOT-OS
Tutorials
NA
static int _demultiplex_slip(FILE *stream, int iface_fd, int out_fd) { FILE *target; int escaped = 0; int byte; if ((byte = fgetc(stream)) == EOF) { _flush_stream(stream); return -1; } if (byte == SLIP_START_STDIO) { if ((byte = fgetc(stream)) == EOF) { _flush_stream(stream); return -1; } target = fdopen(dup(out_fd), "w"); /* don't print initial new line */ } else { switch (byte & SLIP_START_NET_MASK) { case SLIP_START_NET_IPV4: case SLIP_START_NET_IPV6: target = fdopen(dup(iface_fd), "w"); break; default: fprintf(stderr, "Unknown packet type 0x%02x\n", byte); _flush_stream(stream); return 0; } } while (byte != SLIP_END) { switch ((uint8_t)byte) { case SLIP_ESC: escaped = 1; break; case SLIP_END: fflush(target); fclose(target); return 0; case SLIP_END_ESC: if (escaped) { byte = SLIP_END; escaped = 0; } /* Intentionally falls through */ /* to default when !escaped */ case SLIP_ESC_ESC: if (escaped) { byte = SLIP_ESC; escaped = 0; } /* Intentionally falls through */ default: fputc(byte, target); break; } if ((byte = fgetc(stream)) == EOF) { _flush_stream(stream); fclose(target); return -1; } } fclose(target); return 0; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401CE3", "function_addr": 4201699, "binary_name": "bd407020cf86f8891a14dc104920383db86c7b2a8a3a061bcc932ec6d7ac3596.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+stream], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+fd], edx"], [6, "mov [rbp+var_C], 0"], [7, "mov rax, [rbp+stream]"], [8, "mov rdi, rax"], [9, "call _fgetc"], [10, "mov [rbp+c], eax"], [11, "cmp [rbp+c], 0FFFFFFFFh"], [12, "jnz short loc_401D27"], [13, "mov rax, [rbp+stream]"], [14, "mov rdi, rax"], [15, "call sub_401C93"], [16, "mov eax, 0FFFFFFFFh"], [17, "jmp locret_401EC3"], [18, "cmp [rbp+c], 0Ah"], [19, "jnz short loc_401D77"], [20, "mov rax, [rbp+stream]"], [21, "mov rdi, rax"], [22, "call _fgetc"], [23, "mov [rbp+c], eax"], [24, "cmp [rbp+c], 0FFFFFFFFh"], [25, "jnz short loc_401D58"], [26, "mov rax, [rbp+stream]"], [27, "mov rdi, rax"], [28, "call sub_401C93"], [29, "mov eax, 0FFFFFFFFh"], [30, "jmp locret_401EC3"], [31, "mov eax, [rbp+fd]"], [32, "mov edi, eax"], [33, "call _dup"], [34, "mov esi, offset modes"], [35, "mov edi, eax"], [36, "call _fdopen"], [37, "mov [rbp+var_8], rax"], [38, "jmp loc_401EA5"], [39, "mov eax, [rbp+c]"], [40, "and eax, 0F0h"], [41, "cmp eax, 40h "], [42, "jz short loc_401D89"], [43, "cmp eax, 60h "], [44, "jnz short loc_401DA5"], [45, "mov eax, [rbp+var_1C]"], [46, "mov edi, eax"], [47, "call _dup"], [48, "mov esi, offset modes"], [49, "mov edi, eax"], [50, "call _fdopen"], [51, "mov [rbp+var_8], rax"], [52, "jmp short loc_401DD7"], [53, "mov rax, cs:stderr"], [54, "mov edx, [rbp+c]"], [55, "mov esi, offset aUnknownPacketT"], [56, "mov rdi, rax"], [57, "mov eax, 0"], [58, "call _fprintf"], [59, "mov rax, [rbp+stream]"], [60, "mov rdi, rax"], [61, "call sub_401C93"], [62, "mov eax, 0"], [63, "jmp locret_401EC3"], [64, "jmp loc_401EA5"], [65, "mov eax, [rbp+c]"], [66, "movzx eax, al"], [67, "cmp eax, 0DDh"], [68, "jz short loc_401E4B"], [69, "cmp eax, 0DDh"], [70, "jg short loc_401E5F"], [71, "cmp eax, 0DCh"], [72, "jz short loc_401E37"], [73, "cmp eax, 0DCh"], [74, "jg short loc_401E5F"], [75, "cmp eax, 0C0h"], [76, "jz short loc_401E15"], [77, "cmp eax, 0DBh"], [78, "jnz short loc_401E5F"], [79, "mov [rbp+var_C], 1"], [80, "jmp short loc_401E71"], [81, "mov rax, [rbp+var_8]"], [82, "mov rdi, rax"], [83, "call _fflush"], [84, "mov rax, [rbp+var_8]"], [85, "mov rdi, rax"], [86, "call _fclose"], [87, "mov eax, 0"], [88, "jmp locret_401EC3"], [89, "cmp [rbp+var_C], 0"], [90, "jz short loc_401E4B"], [91, "mov [rbp+c], 0C0h"], [92, "mov [rbp+var_C], 0"], [93, "cmp [rbp+var_C], 0"], [94, "jz short loc_401E5F"], [95, "mov [rbp+c], 0DBh"], [96, "mov [rbp+var_C], 0"], [97, "mov rdx, [rbp+var_8]"], [98, "mov eax, [rbp+c]"], [99, "mov rsi, rdx"], [100, "mov edi, eax"], [101, "call _fputc"], [102, "nop"], [103, "mov rax, [rbp+stream]"], [104, "mov rdi, rax"], [105, "call _fgetc"], [106, "mov [rbp+c], eax"], [107, "cmp [rbp+c], 0FFFFFFFFh"], [108, "jnz short loc_401EA5"], [109, "mov rax, [rbp+stream]"], [110, "mov rdi, rax"], [111, "call sub_401C93"], [112, "mov rax, [rbp+var_8]"], [113, "mov rdi, rax"], [114, "call _fclose"], [115, "mov eax, 0FFFFFFFFh"], [116, "jmp short locret_401EC3"], [117, "cmp [rbp+c], 0C0h"], [118, "jnz loc_401DDC"], [119, "mov rax, [rbp+var_8]"], [120, "mov rdi, rax"], [121, "call _fclose"], [122, "mov eax, 0"], [123, "leave"], [124, "retn"]], "data_dep": [[7, 3], [8, 7], [10, 9], [11, 10], [12, 11], [13, 3], [14, 13], [18, 10], [19, 18], [20, 3], [21, 20], [23, 22], [24, 23], [25, 24], [26, 3], [27, 26], [31, 5], [32, 31], [35, 33], [37, 36], [39, 10], [40, 39], [41, 40], [42, 41], [43, 40], [44, 43], [45, 4], [46, 45], [49, 47], [51, 50], [54, 10], [56, 53], [59, 3], [60, 59], [65, 106], [65, 10], [65, 23], [66, 65], [67, 66], [68, 67], [69, 66], [70, 69], [71, 66], [72, 71], [73, 66], [74, 73], [75, 66], [76, 75], [77, 66], [78, 77], [81, 51], [81, 37], [82, 81], [84, 51], [84, 37], [85, 84], [89, 6], [89, 79], [89, 92], [89, 96], [90, 89], [93, 6], [93, 79], [93, 92], [93, 96], [94, 93], [97, 51], [97, 37], [98, 23], [98, 91], [98, 10], [98, 95], [98, 106], [99, 97], [100, 98], [103, 3], [104, 103], [106, 105], [107, 106], [108, 107], [109, 3], [110, 109], [112, 51], [112, 37], [113, 112], [117, 23], [117, 10], [117, 106], [118, 117], [119, 51], [119, 37], [120, 119], [124, 122], [124, 115], [124, 62], [124, 87], [124, 16], [124, 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/bd407020cf86f8891a14dc104920383db86c7b2a8a3a061bcc932ec6d7ac3596_bd407020cf86f8891a14dc104920383db86c7b2a8a3a061bcc932ec6d7ac3596.jsonl.gz", "strip_func_name": "sub_401CE3", "query": "\n\n\n__int64 __fastcall sub_401CE3(FILE *a1, int a2, int a3)\n{\nint v4; // eax\nint v5; // eax\nint v6; // eax\nunsigned int c; // [rsp+10h] [rbp-10h]\nint v9; // [rsp+14h] [rbp-Ch]\nFILE *v10; // [rsp+18h] [rbp-8h]\n\nv9 = 0;\nc = fgetc(a1);\nif ( c == -1 )\n{\nLABEL_2:\nsub_401C93(a1);\nreturn 0xFFFFFFFFLL;\n}\nif ( c == 10 )\n{\nc = fgetc(a1);\nif ( c != -1 )\n{\nv4 = dup(a3);\nv10 = fdopen(v4, \"w\");\ngoto LABEL_25;\n}\ngoto LABEL_2;\n}\nv5 = c & 0xF0;\nif ( v5 != 64 && v5 != 96 )\n{\nfprintf(stderr, \"Unknown packet type 0x%02x\\n\", c);\nsub_401C93(a1);\nreturn 0LL;\n}\nv6 = dup(a2);\nv10 = fdopen(v6, \"w\");\nLABEL_25:\nwhile ( c != 192 )\n{\nif ( (unsigned __int8)c == 221 )\ngoto LABEL_20;\nif ( (unsigned __int8)c > 0xDDu )\ngoto LABEL_22;\nif ( (unsigned __int8)c == 220 )\n{\nif ( v9 )\n{\nc = 192;\nv9 = 0;\n}\nLABEL_20:\nif ( v9 )\n{\nc = 219;\nv9 = 0;\n}\nLABEL_22:\nfputc(c, v10);\ngoto LABEL_23;\n}\nif ( (unsigned __int8)c > 0xDCu )\ngoto LABEL_22;\nif ( (unsigned __int8)c == 192 )\n{\nfflush(v10);\nfclose(v10);\nreturn 0LL;\n}\nif ( (unsigned __int8)c != 219 )\ngoto LABEL_22;\nv9 = 1;\nLABEL_23:\nc = fgetc(a1);\nif ( c == -1 )\n{\nsub_401C93(a1);\nfclose(v10);\nreturn 0xFFFFFFFFLL;\n}\n}\nfclose(v10);\nreturn 0LL;\n}\n\n\n\nQ:[a3,a1,a2,c,v9,v10,sub_401CE3,sub_401C93,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'out_fd', 'a1': 'stream', 'a2': 'iface_fd', 'c': 'byte', 'v9': 'escaped', 'v10': 'target', 'sub_401CE3': '_demultiplex_slip', 'sub_401C93': '_flush_stream'}"}
bam_name2id
46189af39af10ccaca23eefe30c687d1c137b2067e20bf73f79a757c1f387e60
liulab-dfci
MAESTRO
NA
int bam_name2id(bam_hdr_t *h, const char *ref) { sdict_t *d = (sdict_t*)h->sdict; khint_t k; if (h->sdict == 0) { int i, absent; d = kh_init(s2i); for (i = 0; i < h->n_targets; ++i) { k = kh_put(s2i, d, h->target_name[i], &absent); kh_val(d, k) = i; } h->sdict = d; } k = kh_get(s2i, d, ref); return k == kh_end(d)? -1 : kh_val(d, k); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4148D7", "function_addr": 4278487, "binary_name": "46189af39af10ccaca23eefe30c687d1c137b2067e20bf73f79a757c1f387e60.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rax, [rbp+var_28]"], [6, "mov rax, [rax+30h]"], [7, "mov [rbp+var_8], rax"], [8, "mov rax, [rbp+var_28]"], [9, "mov rax, [rax+30h]"], [10, "test rax, rax"], [11, "jnz short loc_414974"], [12, "call sub_4087B9"], [13, "mov [rbp+var_8], rax"], [14, "mov [rbp+var_C], 0"], [15, "jmp short loc_41495D"], [16, "mov rax, [rbp+var_28]"], [17, "mov rdx, [rax+20h]"], [18, "mov eax, [rbp+var_C]"], [19, "cdqe"], [20, "shl rax, 3"], [21, "add rax, rdx"], [22, "mov rcx, [rax]"], [23, "lea rdx, [rbp+var_14]"], [24, "mov rax, [rbp+var_8]"], [25, "mov rsi, rcx"], [26, "mov rdi, rax"], [27, "call sub_408F51"], [28, "mov [rbp+var_10], eax"], [29, "mov rax, [rbp+var_8]"], [30, "mov rdx, [rax+20h]"], [31, "mov eax, [rbp+var_10]"], [32, "shl rax, 3"], [33, "add rdx, rax"], [34, "mov eax, [rbp+var_C]"], [35, "cdqe"], [36, "mov [rdx], rax"], [37, "add [rbp+var_C], 1"], [38, "mov rax, [rbp+var_28]"], [39, "mov eax, [rax]"], [40, "cmp [rbp+var_C], eax"], [41, "jl short loc_414912"], [42, "mov rax, [rbp+var_28]"], [43, "mov rdx, [rbp+var_8]"], [44, "mov [rax+30h], rdx"], [45, "mov rdx, [rbp+var_30]"], [46, "mov rax, [rbp+var_8]"], [47, "mov rsi, rdx"], [48, "mov rdi, rax"], [49, "call sub_408896"], [50, "mov [rbp+var_10], eax"], [51, "mov rax, [rbp+var_8]"], [52, "mov eax, [rax]"], [53, "cmp [rbp+var_10], eax"], [54, "jz short loc_4149AC"], [55, "mov rax, [rbp+var_8]"], [56, "mov rdx, [rax+20h]"], [57, "mov eax, [rbp+var_10]"], [58, "shl rax, 3"], [59, "add rax, rdx"], [60, "mov rax, [rax]"], [61, "jmp short locret_4149B1"], [62, "mov eax, 0FFFFFFFFh"], [63, "leave"], [64, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 3], [9, 8], [10, 9], [11, 10], [13, 12], [16, 3], [17, 36], [17, 16], [18, 37], [18, 14], [20, 18], [21, 17], [21, 20], [22, 21], [22, 36], [23, 17], [24, 13], [25, 22], [26, 24], [28, 27], [29, 13], [30, 36], [30, 29], [31, 28], [32, 31], [33, 32], [33, 30], [34, 37], [34, 14], [36, 34], [36, 33], [37, 14], [37, 37], [38, 3], [39, 36], [39, 38], [40, 14], [40, 37], [40, 39], [41, 40], [42, 3], [43, 13], [44, 42], [44, 43], [45, 4], [46, 7], [46, 13], [47, 45], [48, 46], [50, 49], [51, 13], [51, 7], [52, 36], [52, 51], [52, 44], [53, 50], [53, 52], [54, 53], [55, 7], [55, 13], [56, 55], [56, 36], [56, 44], [57, 50], [58, 57], [59, 58], [59, 56], [60, 59], [60, 36], [60, 44], [64, 62], [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/46189af39af10ccaca23eefe30c687d1c137b2067e20bf73f79a757c1f387e60_46189af39af10ccaca23eefe30c687d1c137b2067e20bf73f79a757c1f387e60.jsonl.gz", "strip_func_name": "sub_4148D7", "query": "\n\n\n__int64 __fastcall sub_4148D7(__int64 a1, char *a2)\n{\n__int64 result; // rax\nint v3; // [rsp+1Ch] [rbp-14h] BYREF\nunsigned int v4; // [rsp+20h] [rbp-10h]\nint i; // [rsp+24h] [rbp-Ch]\nunsigned int *v6; // [rsp+28h] [rbp-8h]\n\nv6 = *(unsigned int **)(a1 + 48);\nif ( !*(_QWORD *)(a1 + 48) )\n{\nv6 = (unsigned int *)sub_4087B9();\nfor ( i = 0; i < *(_DWORD *)a1; ++i )\n{\nv4 = sub_408F51(v6, *(char **)(*(_QWORD *)(a1 + 32) + 8LL * i), &v3);\n*(_QWORD *)(8LL * v4 + *((_QWORD *)v6 + 4)) = i;\n}\n*(_QWORD *)(a1 + 48) = v6;\n}\nv4 = sub_408896(v6, a2);\nif ( v4 == *v6 )\nresult = 0xFFFFFFFFLL;\nelse\nresult = *(_QWORD *)(*((_QWORD *)v6 + 4) + 8LL * v4);\nreturn result;\n}\n\n\n\nQ:[a1,a2,v3,v6,sub_4148D7,sub_4087B9,sub_408F51,sub_408896,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'h', 'a2': 'ref', 'v3': 'absent', 'v6': 'd', 'sub_4148D7': 'bam_name2id', 'sub_4087B9': 'kh_init_s2i', 'sub_408F51': 'kh_put_s2i', 'sub_408896': 'kh_get_s2i'}"}
check_multi_find
34629fd5d60499507e6ea5e743f406ca8f0a51fe149882f737b67e5850456490
sfjro
aufs4-linux
NA
static noinline void check_multi_find(struct xarray *xa) { #ifdef CONFIG_XARRAY_MULTI unsigned long index; xa_store_order(xa, 12, 2, xa_mk_value(12), GFP_KERNEL); XA_BUG_ON(xa, xa_store_index(xa, 16, GFP_KERNEL) != NULL); index = 0; XA_BUG_ON(xa, xa_find(xa, &index, ULONG_MAX, XA_PRESENT) != xa_mk_value(12)); XA_BUG_ON(xa, index != 12); index = 13; XA_BUG_ON(xa, xa_find(xa, &index, ULONG_MAX, XA_PRESENT) != xa_mk_value(12)); XA_BUG_ON(xa, (index < 12) || (index >= 16)); XA_BUG_ON(xa, xa_find_after(xa, &index, ULONG_MAX, XA_PRESENT) != xa_mk_value(16)); XA_BUG_ON(xa, index != 16); xa_erase_index(xa, 12); xa_erase_index(xa, 16); XA_BUG_ON(xa, !xa_empty(xa)); #endif }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_426F3F", "function_addr": 4353855, "binary_name": "34629fd5d60499507e6ea5e743f406ca8f0a51fe149882f737b67e5850456490.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r15"], [3, "push r14"], [4, "push r13"], [5, "push r12"], [6, "push rbx"], [7, "sub rsp, 58h"], [8, "mov [rbp+var_78], rdi"], [9, "lea r12, [rbp+var_70]"], [10, "mov r15, r12"], [11, "cmp cs:__asan_option_detect_stack_use_after_return, 0"], [12, "jz short loc_426F76"], [13, "mov edi, 40h "], [14, "call ___asan_stack_malloc_0"], [15, "test rax, rax"], [16, "jz short loc_426F76"], [17, "mov r12, rax"], [18, "lea rax, [r12+40h]"], [19, "mov rbx, rax"], [20, "mov qword ptr [r12], 41B58AB3h"], [21, "mov qword ptr [r12+8], offset a13289Index719"], [22, "mov qword ptr [r12+10h], offset sub_426F3F"], [23, "mov r13, r12"], [24, "shr r13, 3"], [25, "mov dword ptr [r13+7FFF8000h], 0F1F1F1F1h"], [26, "mov dword ptr [r13+7FFF8004h], 0F3F3F300h"], [27, "mov edi, 0Ch"], [28, "call sub_40A0C7"], [29, "mov rdx, rax"], [30, "mov rax, [rbp+var_78]"], [31, "mov r8d, 24000C0h"], [32, "mov rcx, rdx"], [33, "mov edx, 2"], [34, "mov esi, 0Ch"], [35, "mov rdi, rax"], [36, "call sub_41DD69"], [37, "mov eax, cs:dword_4ADCE0"], [38, "add eax, 1"], [39, "mov cs:dword_4ADCE0, eax"], [40, "mov rax, [rbp+var_78]"], [41, "mov edx, 24000C0h"], [42, "mov esi, 10h"], [43, "mov rdi, rax"], [44, "call sub_41D9F5"], [45, "test rax, rax"], [46, "jz short loc_42704E"], [47, "mov edx, 2D2h"], [48, "mov esi, offset aCheckMultiFind"], [49, "mov edi, offset aBugAtSD"], [50, "mov eax, 0"], [51, "call _printf"], [52, "mov rax, [rbp+var_78]"], [53, "mov rdi, rax"], [54, "call sub_41D7AC"], [55, "call ___asan_handle_no_return"], [56, "mov ecx, offset aCheckMultiFind_0"], [57, "mov edx, 2D2h"], [58, "mov esi, offset aLibTestXarrayC"], [59, "mov edi, offset a0"], [60, "call ___assert_fail"], [61, "mov eax, cs:dword_4ADD20"], [62, "add eax, 1"], [63, "mov cs:dword_4ADD20, eax"], [64, "lea rax, [rbx-20h]"], [65, "mov rdx, rax"], [66, "shr rdx, 3"], [67, "add rdx, 7FFF8000h"], [68, "movzx edx, byte ptr [rdx]"], [69, "test dl, dl"], [70, "jz short loc_42707E"], [71, "mov rdi, rax"], [72, "call ___asan_report_store8"], [73, "mov qword ptr [rbx-20h], 0"], [74, "mov eax, cs:dword_4ADCE0"], [75, "add eax, 1"], [76, "mov cs:dword_4ADCE0, eax"], [77, "lea rsi, [rbx-20h]"], [78, "mov rax, [rbp+var_78]"], [79, "mov ecx, 8"], [80, "mov rdx, 0FFFFFFFFFFFFFFFFh"], [81, "mov rdi, rax"], [82, "call sub_41BA6B"], [83, "mov r14, rax"], [84, "mov edi, 0Ch"], [85, "call sub_40A0C7"], [86, "cmp r14, rax"], [87, "jz short loc_427106"], [88, "mov edx, 2D5h"], [89, "mov esi, offset aCheckMultiFind"], [90, "mov edi, offset aBugAtSD"], [91, "mov eax, 0"], [92, "call _printf"], [93, "mov rax, [rbp+var_78]"], [94, "mov rdi, rax"], [95, "call sub_41D7AC"], [96, "call ___asan_handle_no_return"], [97, "mov ecx, offset aCheckMultiFind_0"], [98, "mov edx, 2D5h"], [99, "mov esi, offset aLibTestXarrayC"], [100, "mov edi, offset a0"], [101, "call ___assert_fail"], [102, "mov eax, cs:dword_4ADD20"], [103, "add eax, 1"], [104, "mov cs:dword_4ADD20, eax"], [105, "mov eax, cs:dword_4ADCE0"], [106, "add eax, 1"], [107, "mov cs:dword_4ADCE0, eax"], [108, "lea rax, [rbx-20h]"], [109, "mov rdx, rax"], [110, "shr rdx, 3"], [111, "add rdx, 7FFF8000h"], [112, "movzx edx, byte ptr [rdx]"], [113, "test dl, dl"], [114, "jz short loc_427145"], [115, "mov rdi, rax"], [116, "call ___asan_report_load8"], [117, "mov rax, [rbx-20h]"], [118, "cmp rax, 0Ch"], [119, "jz short loc_427192"], [120, "mov edx, 2D7h"], [121, "mov esi, offset aCheckMultiFind"], [122, "mov edi, offset aBugAtSD"], [123, "mov eax, 0"], [124, "call _printf"], [125, "mov rax, [rbp+var_78]"], [126, "mov rdi, rax"], [127, "call sub_41D7AC"], [128, "call ___asan_handle_no_return"], [129, "mov ecx, offset aCheckMultiFind_0"], [130, "mov edx, 2D7h"], [131, "mov esi, offset aLibTestXarrayC"], [132, "mov edi, offset a0"], [133, "call ___assert_fail"], [134, "mov eax, cs:dword_4ADD20"], [135, "add eax, 1"], [136, "mov cs:dword_4ADD20, eax"], [137, "lea rax, [rbx-20h]"], [138, "mov rdx, rax"], [139, "shr rdx, 3"], [140, "add rdx, 7FFF8000h"], [141, "movzx edx, byte ptr [rdx]"], [142, "test dl, dl"], [143, "jz short loc_4271C2"], [144, "mov rdi, rax"], [145, "call ___asan_report_store8"], [146, "mov qword ptr [rbx-20h], 0Dh"], [147, "mov eax, cs:dword_4ADCE0"], [148, "add eax, 1"], [149, "mov cs:dword_4ADCE0, eax"], [150, "lea rsi, [rbx-20h]"], [151, "mov rax, [rbp+var_78]"], [152, "mov ecx, 8"], [153, "mov rdx, 0FFFFFFFFFFFFFFFFh"], [154, "mov rdi, rax"], [155, "call sub_41BA6B"], [156, "mov r14, rax"], [157, "mov edi, 0Ch"], [158, "call sub_40A0C7"], [159, "cmp r14, rax"], [160, "jz short loc_42724A"], [161, "mov edx, 2D9h"], [162, "mov esi, offset aCheckMultiFind"], [163, "mov edi, offset aBugAtSD"], [164, "mov eax, 0"], [165, "call _printf"], [166, "mov rax, [rbp+var_78]"], [167, "mov rdi, rax"], [168, "call sub_41D7AC"], [169, "call ___asan_handle_no_return"], [170, "mov ecx, offset aCheckMultiFind_0"], [171, "mov edx, 2D9h"], [172, "mov esi, offset aLibTestXarrayC"], [173, "mov edi, offset a0"], [174, "call ___assert_fail"], [175, "mov eax, cs:dword_4ADD20"], [176, "add eax, 1"], [177, "mov cs:dword_4ADD20, eax"], [178, "mov eax, cs:dword_4ADCE0"], [179, "add eax, 1"], [180, "mov cs:dword_4ADCE0, eax"], [181, "lea rax, [rbx-20h]"], [182, "mov rdx, rax"], [183, "shr rdx, 3"], [184, "add rdx, 7FFF8000h"], [185, "movzx edx, byte ptr [rdx]"], [186, "test dl, dl"], [187, "jz short loc_427289"], [188, "mov rdi, rax"], [189, "call ___asan_report_load8"], [190, "mov rax, [rbx-20h]"], [191, "cmp rax, 0Bh"], [192, "jbe short loc_42729D"], [193, "mov rax, [rbx-20h]"], [194, "cmp rax, 0Fh"], [195, "jbe short loc_4272E0"], [196, "mov edx, 2DBh"], [197, "mov esi, offset aCheckMultiFind"], [198, "mov edi, offset aBugAtSD"], [199, "mov eax, 0"], [200, "call _printf"], [201, "mov rax, [rbp+var_78]"], [202, "mov rdi, rax"], [203, "call sub_41D7AC"], [204, "call ___asan_handle_no_return"], [205, "mov ecx, offset aCheckMultiFind_0"], [206, "mov edx, 2DBh"], [207, "mov esi, offset aLibTestXarrayC"], [208, "mov edi, offset a0"], [209, "call ___assert_fail"], [210, "mov eax, cs:dword_4ADD20"], [211, "add eax, 1"], [212, "mov cs:dword_4ADD20, eax"], [213, "mov eax, cs:dword_4ADCE0"], [214, "add eax, 1"], [215, "mov cs:dword_4ADCE0, eax"], [216, "lea rsi, [rbx-20h]"], [217, "mov rax, [rbp+var_78]"], [218, "mov ecx, 8"], [219, "mov rdx, 0FFFFFFFFFFFFFFFFh"], [220, "mov rdi, rax"], [221, "call sub_41BE91"], [222, "mov r14, rax"], [223, "mov edi, 10h"], [224, "call sub_40A0C7"], [225, "cmp r14, rax"], [226, "jz short loc_42736F"], [227, "mov edx, 2DCh"], [228, "mov esi, offset aCheckMultiFind"], [229, "mov edi, offset aBugAtSD"], [230, "mov eax, 0"], [231, "call _printf"], [232, "mov rax, [rbp+var_78]"], [233, "mov rdi, rax"], [234, "call sub_41D7AC"], [235, "call ___asan_handle_no_return"], [236, "mov ecx, offset aCheckMultiFind_0"], [237, "mov edx, 2DCh"], [238, "mov esi, offset aLibTestXarrayC"], [239, "mov edi, offset a0"], [240, "call ___assert_fail"], [241, "mov eax, cs:dword_4ADD20"], [242, "add eax, 1"], [243, "mov cs:dword_4ADD20, eax"], [244, "mov eax, cs:dword_4ADCE0"], [245, "add eax, 1"], [246, "mov cs:dword_4ADCE0, eax"], [247, "lea rax, [rbx-20h]"], [248, "mov rdx, rax"], [249, "shr rdx, 3"], [250, "add rdx, 7FFF8000h"], [251, "movzx edx, byte ptr [rdx]"], [252, "test dl, dl"], [253, "jz short loc_4273AE"], [254, "mov rdi, rax"], [255, "call ___asan_report_load8"], [256, "mov rax, [rbx-20h]"], [257, "cmp rax, 10h"], [258, "jz short loc_4273FB"], [259, "mov edx, 2DEh"], [260, "mov esi, offset aCheckMultiFind"], [261, "mov edi, offset aBugAtSD"], [262, "mov eax, 0"], [263, "call _printf"], [264, "mov rax, [rbp+var_78]"], [265, "mov rdi, rax"], [266, "call sub_41D7AC"], [267, "call ___asan_handle_no_return"], [268, "mov ecx, offset aCheckMultiFind_0"], [269, "mov edx, 2DEh"], [270, "mov esi, offset aLibTestXarrayC"], [271, "mov edi, offset a0"], [272, "call ___assert_fail"], [273, "mov eax, cs:dword_4ADD20"], [274, "add eax, 1"], [275, "mov cs:dword_4ADD20, eax"], [276, "mov rax, [rbp+var_78]"], [277, "mov esi, 0Ch"], [278, "mov rdi, rax"], [279, "call sub_41DC50"], [280, "mov rax, [rbp+var_78]"], [281, "mov esi, 10h"], [282, "mov rdi, rax"], [283, "call sub_41DC50"], [284, "mov eax, cs:dword_4ADCE0"], [285, "add eax, 1"], [286, "mov cs:dword_4ADCE0, eax"], [287, "mov rax, [rbp+var_78]"], [288, "mov rdi, rax"], [289, "call sub_40A23B"], [290, "xor eax, 1"], [291, "test al, al"], [292, "jz short loc_427491"], [293, "mov edx, 2E2h"], [294, "mov esi, offset aCheckMultiFind"], [295, "mov edi, offset aBugAtSD"], [296, "mov eax, 0"], [297, "call _printf"], [298, "mov rax, [rbp+var_78]"], [299, "mov rdi, rax"], [300, "call sub_41D7AC"], [301, "call ___asan_handle_no_return"], [302, "mov ecx, offset aCheckMultiFind_0"], [303, "mov edx, 2E2h"], [304, "mov esi, offset aLibTestXarrayC"], [305, "mov edi, offset a0"], [306, "call ___assert_fail"], [307, "mov eax, cs:dword_4ADD20"], [308, "add eax, 1"], [309, "mov cs:dword_4ADD20, eax"], [310, "nop"], [311, "cmp r15, r12"], [312, "jz short loc_4274C9"], [313, "mov qword ptr [r12], 45E0360Eh"], [314, "mov rax, 0F5F5F5F5F5F5F5F5h"], [315, "mov [r13+7FFF8000h], rax"], [316, "mov rax, [r12+38h]"], [317, "mov byte ptr [rax], 0"], [318, "jmp short loc_4274D4"], [319, "mov qword ptr [r13+7FFF8000h], 0"], [320, "add rsp, 58h"], [321, "pop rbx"], [322, "pop r12"], [323, "pop r13"], [324, "pop r14"], [325, "pop r15"], [326, "pop rbp"], [327, "retn"]], "data_dep": [[10, 9], [12, 11], [15, 14], [16, 15], [17, 15], [18, 17], [18, 9], [18, 15], [19, 18], [20, 17], [20, 9], [21, 9], [21, 17], [22, 17], [22, 9], [23, 17], [23, 9], [24, 23], [25, 24], [26, 24], [29, 28], [30, 8], [32, 29], [35, 30], [38, 37], [39, 38], [40, 8], [43, 40], [45, 44], [46, 45], [52, 8], [53, 52], [62, 61], [63, 62], [64, 62], [64, 25], [64, 20], [64, 22], [64, 26], [64, 19], [64, 21], [65, 64], [66, 65], [67, 66], [68, 20], [68, 22], [68, 26], [68, 67], [68, 21], [68, 25], [69, 68], [70, 69], [71, 64], [73, 19], [74, 39], [75, 74], [76, 75], [77, 19], [77, 73], [77, 42], [78, 8], [81, 78], [83, 82], [86, 83], [86, 85], [87, 86], [93, 8], [94, 93], [102, 63], [103, 102], [104, 103], [105, 76], [106, 105], [107, 106], [108, 20], [108, 22], [108, 106], [108, 26], [108, 19], [108, 21], [108, 25], [108, 73], [109, 108], [110, 109], [111, 110], [112, 20], [112, 22], [112, 111], [112, 26], [112, 21], [112, 25], [112, 73], [113, 112], [114, 113], [115, 108], [117, 26], [117, 19], [117, 21], [117, 25], [117, 73], [117, 20], [117, 22], [118, 117], [119, 118], [125, 8], [126, 125], [134, 104], [135, 134], [136, 135], [137, 26], [137, 19], [137, 21], [137, 135], [137, 25], [137, 73], [137, 20], [137, 22], [138, 137], [139, 138], [140, 139], [141, 140], [141, 26], [141, 21], [141, 25], [141, 73], [141, 20], [141, 22], [142, 141], [143, 142], [144, 137], [146, 19], [147, 107], [148, 147], [149, 148], [150, 77], [150, 19], [150, 146], [151, 8], [154, 151], [156, 155], [159, 156], [159, 158], [160, 159], [166, 8], [167, 166], [175, 136], [176, 175], [177, 176], [178, 149], [179, 178], [180, 179], [181, 73], [181, 25], [181, 146], [181, 20], [181, 22], [181, 26], [181, 19], [181, 21], [181, 179], [182, 181], [183, 182], [184, 183], [185, 25], [185, 73], [185, 146], [185, 20], [185, 22], [185, 26], [185, 184], [185, 21], [186, 185], [187, 186], [188, 181], [190, 19], [190, 21], [190, 25], [190, 73], [190, 146], [190, 20], [190, 22], [190, 26], [191, 190], [192, 191], [193, 146], [193, 20], [193, 22], [193, 26], [193, 19], [193, 21], [193, 73], [193, 25], [194, 193], [195, 194], [201, 8], [202, 201], [210, 177], [211, 210], [212, 211], [213, 180], [214, 213], [215, 214], [216, 20], [216, 22], [216, 150], [216, 26], [216, 19], [216, 21], [216, 25], [216, 73], [216, 146], [217, 8], [220, 217], [222, 221], [225, 224], [225, 222], [226, 225], [232, 8], [233, 232], [241, 212], [242, 241], [243, 242], [244, 215], [245, 244], [246, 245], [247, 26], [247, 19], [247, 21], [247, 245], [247, 73], [247, 25], [247, 146], [247, 20], [247, 22], [248, 247], [249, 248], [250, 249], [251, 25], [251, 73], [251, 146], [251, 20], [251, 22], [251, 26], [251, 250], [251, 21], [252, 251], [253, 252], [254, 247], [256, 19], [256, 21], [256, 73], [256, 146], [256, 25], [256, 20], [256, 22], [256, 26], [257, 256], [258, 257], [264, 8], [265, 264], [273, 243], [274, 273], [275, 274], [276, 8], [278, 276], [280, 8], [282, 280], [284, 246], [285, 284], [286, 285], [287, 8], [288, 287], [290, 289], [291, 290], [292, 291], [298, 8], [299, 298], [307, 275], [308, 307], [309, 308], [311, 10], [311, 9], [311, 17], [312, 311], [313, 17], [313, 9], [315, 314], [315, 24], [316, 17], [316, 9], [316, 315], [317, 316], [319, 24], [320, 7], [321, 6], [322, 5], [323, 4], [324, 3], [325, 2], [326, 0], [327, 308], [327, 316]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/34629fd5d60499507e6ea5e743f406ca8f0a51fe149882f737b67e5850456490_34629fd5d60499507e6ea5e743f406ca8f0a51fe149882f737b67e5850456490.jsonl.gz", "strip_func_name": "sub_426F3F", "query": "\n\n\nunsigned __int64 __fastcall sub_426F3F(unsigned __int64 a1)\n{\nunsigned __int64 v1; // r12\n__int64 v2; // rax\nunsigned __int64 v3; // r13\n__int64 v4; // rax\n__int64 v5; // r14\n__int64 v6; // r14\n__int64 v7; // r14\nunsigned __int64 result; // rax\nchar v9[112]; // [rsp+10h] [rbp-70h] BYREF\n\nv1 = (unsigned __int64)v9;\nif ( _asan_option_detect_stack_use_after_return )\n{\nv2 = __asan_stack_malloc_0();\nif ( v2 )\nv1 = v2;\n}\n*(_QWORD *)v1 = 1102416563LL;\n*(_QWORD *)(v1 + 8) = \"1 32 8 9 index:719\";\n*(_QWORD *)(v1 + 16) = sub_426F3F;\nv3 = v1 >> 3;\n*(_DWORD *)(v3 + 2147450880) = -235802127;\n*(_DWORD *)(v3 + 2147450884) = -202116352;\nv4 = sub_40A0C7(12LL);\nsub_41DD69(a1, 0xCuLL, 2u, v4, 0x24000C0u);\n++dword_4ADCE0;\nif ( sub_41D9F5(a1, 16LL, 0x24000C0u) )\n{\nprintf(\"BUG at %s:%d\\n\", \"check_multi_find\", 722LL);\nsub_41D7AC(a1);\n__asan_handle_no_return();\n__assert_fail(\"0\", \"../../../lib/test_xarray.c\", 0x2D2u, \"check_multi_find\");\n}\n++dword_4ADD20;\nif ( *(_BYTE *)(((v1 + 32) >> 3) + 0x7FFF8000) )\n__asan_report_store8();\n*(_QWORD *)(v1 + 32) = 0LL;\n++dword_4ADCE0;\nv5 = sub_41BA6B(a1, v1 + 32, 0xFFFFFFFFFFFFFFFFLL, 8u);\nif ( v5 != sub_40A0C7(12LL) )\n{\nprintf(\"BUG at %s:%d\\n\", \"check_multi_find\", 725LL);\nsub_41D7AC(a1);\n__asan_handle_no_return();\n__assert_fail(\"0\", \"../../../lib/test_xarray.c\", 0x2D5u, \"check_multi_find\");\n}\n++dword_4ADD20;\n++dword_4ADCE0;\nif ( *(_BYTE *)(((v1 + 32) >> 3) + 0x7FFF8000) )\n__asan_report_load8();\nif ( *(_QWORD *)(v1 + 32) != 12LL )\n{\nprintf(\"BUG at %s:%d\\n\", \"check_multi_find\", 727LL);\nsub_41D7AC(a1);\n__asan_handle_no_return();\n__assert_fail(\"0\", \"../../../lib/test_xarray.c\", 0x2D7u, \"check_multi_find\");\n}\n++dword_4ADD20;\nif ( *(_BYTE *)(((v1 + 32) >> 3) + 0x7FFF8000) )\n__asan_report_store8();\n*(_QWORD *)(v1 + 32) = 13LL;\n++dword_4ADCE0;\nv6 = sub_41BA6B(a1, v1 + 32, 0xFFFFFFFFFFFFFFFFLL, 8u);\nif ( v6 != sub_40A0C7(12LL) )\n{\nprintf(\"BUG at %s:%d\\n\", \"check_multi_find\", 729LL);\nsub_41D7AC(a1);\n__asan_handle_no_return();\n__assert_fail(\"0\", \"../../../lib/test_xarray.c\", 0x2D9u, \"check_multi_find\");\n}\n++dword_4ADD20;\n++dword_4ADCE0;\nif ( *(_BYTE *)(((v1 + 32) >> 3) + 0x7FFF8000) )\n__asan_report_load8();\nif ( *(_QWORD *)(v1 + 32) <= 0xBuLL || *(_QWORD *)(v1 + 32) > 0xFuLL )\n{\nprintf(\"BUG at %s:%d\\n\", \"check_multi_find\", 731LL);\nsub_41D7AC(a1);\n__asan_handle_no_return();\n__assert_fail(\"0\", \"../../../lib/test_xarray.c\", 0x2DBu, \"check_multi_find\");\n}\n++dword_4ADD20;\n++dword_4ADCE0;\nv7 = sub_41BE91(a1, v1 + 32, 0xFFFFFFFFFFFFFFFFLL, 8u);\nif ( v7 != sub_40A0C7(16LL) )\n{\nprintf(\"BUG at %s:%d\\n\", \"check_multi_find\", 732LL);\nsub_41D7AC(a1);\n__asan_handle_no_return();\n__assert_fail(\"0\", \"../../../lib/test_xarray.c\", 0x2DCu, \"check_multi_find\");\n}\n++dword_4ADD20;\n++dword_4ADCE0;\nif ( *(_BYTE *)(((v1 + 32) >> 3) + 0x7FFF8000) )\n__asan_report_load8();\nif ( *(_QWORD *)(v1 + 32) != 16LL )\n{\nprintf(\"BUG at %s:%d\\n\", \"check_multi_find\", 734LL);\nsub_41D7AC(a1);\n__asan_handle_no_return();\n__assert_fail(\"0\", \"../../../lib/test_xarray.c\", 0x2DEu, \"check_multi_find\");\n}\n++dword_4ADD20;\nsub_41DC50(a1, 12LL);\nsub_41DC50(a1, 16LL);\n++dword_4ADCE0;\nif ( !sub_40A23B(a1) )\n{\nprintf(\"BUG at %s:%d\\n\", \"check_multi_find\", 738LL);\nsub_41D7AC(a1);\n__asan_handle_no_return();\n__assert_fail(\"0\", \"../../../lib/test_xarray.c\", 0x2E2u, \"check_multi_find\");\n}\nresult = (unsigned int)++dword_4ADD20;\nif ( v9 == (char *)v1 )\n{\n*(_QWORD *)((v1 >> 3) + 0x7FFF8000) = 0LL;\n}\nelse\n{\n*(_QWORD *)v1 = 1172321806LL;\n*(_QWORD *)((v1 >> 3) + 0x7FFF8000) = 0xF5F5F5F5F5F5F5F5LL;\nresult = *(_QWORD *)(v1 + 56);\n*(_BYTE *)result = 0;\n}\nreturn result;\n}\n\n\n\nQ:[a1,sub_426F3F,sub_40A0C7,sub_41DD69,sub_41D9F5,sub_41D7AC,sub_41BA6B,sub_41BE91,sub_41DC50,sub_40A23B,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'xa', 'sub_426F3F': 'check_multi_find', 'sub_40A0C7': 'xa_mk_value', 'sub_41DD69': 'xa_store_order', 'sub_41D9F5': 'xa_store_index', 'sub_41D7AC': 'xa_dump', 'sub_41BA6B': 'xa_find', 'sub_41BE91': 'xa_find_after', 'sub_41DC50': 'xa_erase_index', 'sub_40A23B': 'xa_empty'}"}
wpa_supplicant_event_assoc_auth
a00a174460e27c0a15353e4aa238c55e049e0606a381405d5b36ad737c184769
vanhoefm
hostap-wpa3
NA
static void wpa_supplicant_event_assoc_auth(struct wpa_supplicant *wpa_s, union wpa_event_data *data) { wpa_dbg(wpa_s, MSG_DEBUG, "Connection authorized by device, previous state %d", wpa_s->wpa_state); wpa_supplicant_event_port_authorized(wpa_s); wpa_s->last_eapol_matches_bssid = 1; wpa_sm_set_rx_replay_ctr(wpa_s->wpa, data->assoc_info.key_replay_ctr); wpa_sm_set_ptk_kck_kek(wpa_s->wpa, data->assoc_info.ptk_kck, data->assoc_info.ptk_kck_len, data->assoc_info.ptk_kek, data->assoc_info.ptk_kek_len); #ifdef CONFIG_FILS if (wpa_s->auth_alg == WPA_AUTH_ALG_FILS) { struct wpa_bss *bss = wpa_bss_get_bssid(wpa_s, wpa_s->bssid); const u8 *fils_cache_id = wpa_bss_get_fils_cache_id(bss); /* Update ERP next sequence number */ eapol_sm_update_erp_next_seq_num( wpa_s->eapol, data->assoc_info.fils_erp_next_seq_num); if (data->assoc_info.fils_pmk && data->assoc_info.fils_pmkid) { /* Add the new PMK and PMKID to the PMKSA cache */ wpa_sm_pmksa_cache_add(wpa_s->wpa, data->assoc_info.fils_pmk, data->assoc_info.fils_pmk_len, data->assoc_info.fils_pmkid, wpa_s->bssid, fils_cache_id); } else if (data->assoc_info.fils_pmkid) { /* Update the current PMKSA used for this connection */ pmksa_cache_set_current(wpa_s->wpa, data->assoc_info.fils_pmkid, NULL, NULL, 0, NULL, 0); } } #endif /* CONFIG_FILS */ }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41BF21", "function_addr": 4308769, "binary_name": "a00a174460e27c0a15353e4aa238c55e049e0606a381405d5b36ad737c184769.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rax, [rbp+var_8]"], [6, "mov edx, [rax+2B8h]"], [7, "mov rax, [rbp+var_8]"], [8, "mov ecx, edx"], [9, "mov edx, offset aConnectionAuth"], [10, "mov esi, 2"], [11, "mov rdi, rax"], [12, "mov eax, 0"], [13, "call sub_48E100"], [14, "mov rax, [rbp+var_8]"], [15, "mov rdi, rax"], [16, "call sub_41BD55"], [17, "mov rax, [rbp+var_8]"], [18, "movzx edx, byte ptr [rax+4F4h]"], [19, "or edx, 1"], [20, "mov [rax+4F4h], dl"], [21, "mov rax, [rbp+var_10]"], [22, "mov rdx, [rax+60h]"], [23, "mov rax, [rbp+var_8]"], [24, "mov rax, [rax+298h]"], [25, "mov rsi, rdx"], [26, "mov rdi, rax"], [27, "call sub_476482"], [28, "mov rax, [rbp+var_10]"], [29, "mov rdi, [rax+88h]"], [30, "mov rax, [rbp+var_10]"], [31, "mov rcx, [rax+80h]"], [32, "mov rax, [rbp+var_10]"], [33, "mov rdx, [rax+78h]"], [34, "mov rax, [rbp+var_10]"], [35, "mov rsi, [rax+70h]"], [36, "mov rax, [rbp+var_8]"], [37, "mov rax, [rax+298h]"], [38, "mov r8, rdi"], [39, "mov rdi, rax"], [40, "call sub_4764D5"], [41, "nop"], [42, "leave"], [43, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 3], [8, 6], [11, 7], [14, 3], [15, 14], [17, 3], [18, 17], [19, 18], [20, 17], [20, 19], [21, 4], [22, 20], [22, 21], [23, 3], [24, 23], [24, 20], [25, 22], [26, 24], [28, 4], [29, 20], [29, 28], [30, 4], [31, 20], [31, 30], [32, 4], [33, 20], [33, 32], [34, 4], [35, 20], [35, 34], [36, 3], [37, 36], [37, 20], [38, 29], [39, 37], [43, 40]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a00a174460e27c0a15353e4aa238c55e049e0606a381405d5b36ad737c184769_a00a174460e27c0a15353e4aa238c55e049e0606a381405d5b36ad737c184769.jsonl.gz", "strip_func_name": "sub_41BF21", "query": "\n\n\n__int64 __fastcall sub_41BF21(__int64 a1, _QWORD *a2, __int64 a3, __int64 a4, int a5, int a6)\n{\nsub_48E100(a1, 2, (unsigned int)\"Connection authorized by device, previous state %d\", *(_DWORD *)(a1 + 696), a5, a6);\nsub_41BD55(a1);\n*(_BYTE *)(a1 + 1268) |= 1u;\nsub_476482(*(_QWORD *)(a1 + 664), a2[12]);\nreturn sub_4764D5(*(_QWORD *)(a1 + 664), a2[14], a2[15], a2[16], a2[17]);\n}\n\n\n\nQ:[a1,a2,sub_41BF21,sub_48E100,sub_41BD55,sub_476482,sub_4764D5,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'wpa_s', 'a2': 'data', 'sub_41BF21': 'wpa_supplicant_event_assoc_auth', 'sub_48E100': 'wpa_msg', 'sub_41BD55': 'wpa_supplicant_event_port_authorized', 'sub_476482': 'wpa_sm_set_rx_replay_ctr', 'sub_4764D5': 'wpa_sm_set_ptk_kck_kek'}"}
priority
7280a4108d82fc89adb2cb979f89410f94f1c2eeb75386c11f5f5de76191facb
mist64
cbm6502asm
NA
int priority(char c) { if (c == '$') return (0); if (c == '(') return (1); if (c == '+' || c == '-') return (2); if (c == '*' || c == '/' || c == '&' || c == '|' || c == '^') return (3); display_error(error = 'C'); /* invalid operator on stack */ return (9); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4058D5", "function_addr": 4217045, "binary_name": "7280a4108d82fc89adb2cb979f89410f94f1c2eeb75386c11f5f5de76191facb.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, "cmp [rbp+var_4], 24h "], [6, "jnz short loc_4058EF"], [7, "mov eax, 0"], [8, "jmp short locret_40594A"], [9, "cmp [rbp+var_4], 28h "], [10, "jnz short loc_4058FC"], [11, "mov eax, 1"], [12, "jmp short locret_40594A"], [13, "cmp [rbp+var_4], 2Bh "], [14, "jz short loc_405908"], [15, "cmp [rbp+var_4], 2Dh "], [16, "jnz short loc_40590F"], [17, "mov eax, 2"], [18, "jmp short locret_40594A"], [19, "cmp [rbp+var_4], 2Ah "], [20, "jz short loc_40592D"], [21, "cmp [rbp+var_4], 2Fh "], [22, "jz short loc_40592D"], [23, "cmp [rbp+var_4], 26h "], [24, "jz short loc_40592D"], [25, "cmp [rbp+var_4], 7Ch "], [26, "jz short loc_40592D"], [27, "cmp [rbp+var_4], 5Eh "], [28, "jnz short loc_405934"], [29, "mov eax, 3"], [30, "jmp short locret_40594A"], [31, "mov cs:byte_40F964, 43h "], [32, "mov edi, 43h "], [33, "call sub_402176"], [34, "mov eax, 9"], [35, "leave"], [36, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [9, 4], [10, 9], [13, 4], [14, 13], [15, 4], [16, 15], [19, 4], [20, 19], [21, 4], [22, 21], [23, 4], [24, 23], [25, 4], [26, 25], [27, 4], [28, 27], [36, 7], [36, 34], [36, 11], [36, 17], [36, 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/7280a4108d82fc89adb2cb979f89410f94f1c2eeb75386c11f5f5de76191facb_7280a4108d82fc89adb2cb979f89410f94f1c2eeb75386c11f5f5de76191facb.jsonl.gz", "strip_func_name": "sub_4058D5", "query": "\n\n\n__int64 __fastcall sub_4058D5(char a1)\n{\nswitch ( a1 )\n{\ncase '$':\nreturn 0LL;\ncase '(':\nreturn 1LL;\ncase '+':\ncase '-':\nreturn 2LL;\ncase '*':\ncase '/':\ncase '&':\ncase '|':\ncase '^':\nreturn 3LL;\n}\nbyte_40F964 = 67;\nsub_402176(67);\nreturn 9LL;\n}\n\n\n\nQ:[a1,sub_4058D5,sub_402176,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'c', 'sub_4058D5': 'priority', 'sub_402176': 'display_error'}"}
readmem_4712
904dfaf7c433ee86240d6b972758094a56fa491e52baa69854549f18822904f6
oxplot
tjtag-pi
NA
void readmem_4712(void) { int temp; printf("Printing SDRAM\n"); temp = ejtag_read(0x18006f98); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006f98); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006f98);; printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006004); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x1800601c); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006034); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006038); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x1800603c); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006008); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006010); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); temp = ejtag_read(0x18006000); printf("SDRAM = 0x%08x\n", temp); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401F94", "function_addr": 4202388, "binary_name": "904dfaf7c433ee86240d6b972758094a56fa491e52baa69854549f18822904f6.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov edi, offset aPrintingSdram"], [4, "call _puts"], [5, "mov edi, 18006F98h"], [6, "call sub_401838"], [7, "mov [rbp+var_4], eax"], [8, "mov eax, [rbp+var_4]"], [9, "mov esi, eax"], [10, "mov edi, offset aSdram0x08x"], [11, "mov eax, 0"], [12, "call _printf"], [13, "mov edi, 18006F98h"], [14, "call sub_401838"], [15, "mov [rbp+var_4], eax"], [16, "mov eax, [rbp+var_4]"], [17, "mov esi, eax"], [18, "mov edi, offset aSdram0x08x"], [19, "mov eax, 0"], [20, "call _printf"], [21, "mov edi, 18006F98h"], [22, "call sub_401838"], [23, "mov [rbp+var_4], eax"], [24, "mov eax, [rbp+var_4]"], [25, "mov esi, eax"], [26, "mov edi, offset aSdram0x08x"], [27, "mov eax, 0"], [28, "call _printf"], [29, "mov edi, 18006004h"], [30, "call sub_401838"], [31, "mov [rbp+var_4], eax"], [32, "mov eax, [rbp+var_4]"], [33, "mov esi, eax"], [34, "mov edi, offset aSdram0x08x"], [35, "mov eax, 0"], [36, "call _printf"], [37, "mov edi, 1800601Ch"], [38, "call sub_401838"], [39, "mov [rbp+var_4], eax"], [40, "mov eax, [rbp+var_4]"], [41, "mov esi, eax"], [42, "mov edi, offset aSdram0x08x"], [43, "mov eax, 0"], [44, "call _printf"], [45, "mov edi, 18006034h"], [46, "call sub_401838"], [47, "mov [rbp+var_4], eax"], [48, "mov eax, [rbp+var_4]"], [49, "mov esi, eax"], [50, "mov edi, offset aSdram0x08x"], [51, "mov eax, 0"], [52, "call _printf"], [53, "mov edi, 18006038h"], [54, "call sub_401838"], [55, "mov [rbp+var_4], eax"], [56, "mov eax, [rbp+var_4]"], [57, "mov esi, eax"], [58, "mov edi, offset aSdram0x08x"], [59, "mov eax, 0"], [60, "call _printf"], [61, "mov edi, 1800603Ch"], [62, "call sub_401838"], [63, "mov [rbp+var_4], eax"], [64, "mov eax, [rbp+var_4]"], [65, "mov esi, eax"], [66, "mov edi, offset aSdram0x08x"], [67, "mov eax, 0"], [68, "call _printf"], [69, "mov edi, 18006000h"], [70, "call sub_401838"], [71, "mov [rbp+var_4], eax"], [72, "mov eax, [rbp+var_4]"], [73, "mov esi, eax"], [74, "mov edi, offset aSdram0x08x"], [75, "mov eax, 0"], [76, "call _printf"], [77, "mov edi, 18006000h"], [78, "call sub_401838"], [79, "mov [rbp+var_4], eax"], [80, "mov eax, [rbp+var_4]"], [81, "mov esi, eax"], [82, "mov edi, offset aSdram0x08x"], [83, "mov eax, 0"], [84, "call _printf"], [85, "mov edi, 18006000h"], [86, "call sub_401838"], [87, "mov [rbp+var_4], eax"], [88, "mov eax, [rbp+var_4]"], [89, "mov esi, eax"], [90, "mov edi, offset aSdram0x08x"], [91, "mov eax, 0"], [92, "call _printf"], [93, "mov edi, 18006000h"], [94, "call sub_401838"], [95, "mov [rbp+var_4], eax"], [96, "mov eax, [rbp+var_4]"], [97, "mov esi, eax"], [98, "mov edi, offset aSdram0x08x"], [99, "mov eax, 0"], [100, "call _printf"], [101, "mov edi, 18006000h"], [102, "call sub_401838"], [103, "mov [rbp+var_4], eax"], [104, "mov eax, [rbp+var_4]"], [105, "mov esi, eax"], [106, "mov edi, offset aSdram0x08x"], [107, "mov eax, 0"], [108, "call _printf"], [109, "mov edi, 18006000h"], [110, "call sub_401838"], [111, "mov [rbp+var_4], eax"], [112, "mov eax, [rbp+var_4]"], [113, "mov esi, eax"], [114, "mov edi, offset aSdram0x08x"], [115, "mov eax, 0"], [116, "call _printf"], [117, "mov edi, 18006000h"], [118, "call sub_401838"], [119, "mov [rbp+var_4], eax"], [120, "mov eax, [rbp+var_4]"], [121, "mov esi, eax"], [122, "mov edi, offset aSdram0x08x"], [123, "mov eax, 0"], [124, "call _printf"], [125, "mov edi, 18006000h"], [126, "call sub_401838"], [127, "mov [rbp+var_4], eax"], [128, "mov eax, [rbp+var_4]"], [129, "mov esi, eax"], [130, "mov edi, offset aSdram0x08x"], [131, "mov eax, 0"], [132, "call _printf"], [133, "mov edi, 18006000h"], [134, "call sub_401838"], [135, "mov [rbp+var_4], eax"], [136, "mov eax, [rbp+var_4]"], [137, "mov esi, eax"], [138, "mov edi, offset aSdram0x08x"], [139, "mov eax, 0"], [140, "call _printf"], [141, "mov edi, 18006000h"], [142, "call sub_401838"], [143, "mov [rbp+var_4], eax"], [144, "mov eax, [rbp+var_4]"], [145, "mov esi, eax"], [146, "mov edi, offset aSdram0x08x"], [147, "mov eax, 0"], [148, "call _printf"], [149, "mov edi, 18006008h"], [150, "call sub_401838"], [151, "mov [rbp+var_4], eax"], [152, "mov eax, [rbp+var_4]"], [153, "mov esi, eax"], [154, "mov edi, offset aSdram0x08x"], [155, "mov eax, 0"], [156, "call _printf"], [157, "mov edi, 18006010h"], [158, "call sub_401838"], [159, "mov [rbp+var_4], eax"], [160, "mov eax, [rbp+var_4]"], [161, "mov esi, eax"], [162, "mov edi, offset aSdram0x08x"], [163, "mov eax, 0"], [164, "call _printf"], [165, "mov edi, 18006000h"], [166, "call sub_401838"], [167, "mov [rbp+var_4], eax"], [168, "mov eax, [rbp+var_4]"], [169, "mov esi, eax"], [170, "mov edi, offset aSdram0x08x"], [171, "mov eax, 0"], [172, "call _printf"], [173, "mov edi, 18006000h"], [174, "call sub_401838"], [175, "mov [rbp+var_4], eax"], [176, "mov eax, [rbp+var_4]"], [177, "mov esi, eax"], [178, "mov edi, offset aSdram0x08x"], [179, "mov eax, 0"], [180, "call _printf"], [181, "nop"], [182, "leave"], [183, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [15, 14], [16, 15], [17, 16], [23, 22], [24, 23], [25, 24], [31, 30], [32, 31], [33, 32], [39, 38], [40, 39], [41, 40], [47, 46], [48, 47], [49, 48], [55, 54], [56, 55], [57, 56], [63, 62], [64, 63], [65, 64], [71, 70], [72, 71], [73, 72], [79, 78], [80, 79], [81, 80], [87, 86], [88, 87], [89, 88], [95, 94], [96, 95], [97, 96], [103, 102], [104, 103], [105, 104], [111, 110], [112, 111], [113, 112], [119, 118], [120, 119], [121, 120], [127, 126], [128, 127], [129, 128], [135, 134], [136, 135], [137, 136], [143, 142], [144, 143], [145, 144], [151, 150], [152, 151], [153, 152], [159, 158], [160, 159], [161, 160], [167, 166], [168, 167], [169, 168], [175, 174], [176, 175], [177, 176], [183, 180]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/904dfaf7c433ee86240d6b972758094a56fa491e52baa69854549f18822904f6_904dfaf7c433ee86240d6b972758094a56fa491e52baa69854549f18822904f6.jsonl.gz", "strip_func_name": "sub_401F94", "query": "\n\n\nint sub_401F94()\n{\nunsigned int v0; // eax\nunsigned int v1; // eax\nunsigned int v2; // eax\nunsigned int v3; // eax\nunsigned int v4; // eax\nunsigned int v5; // eax\nunsigned int v6; // eax\nunsigned int v7; // eax\nunsigned int v8; // eax\nunsigned int v9; // eax\nunsigned int v10; // eax\nunsigned int v11; // eax\nunsigned int v12; // eax\nunsigned int v13; // eax\nunsigned int v14; // eax\nunsigned int v15; // eax\nunsigned int v16; // eax\nunsigned int v17; // eax\nunsigned int v18; // eax\nunsigned int v19; // eax\nunsigned int v20; // eax\nunsigned int v22; // [rsp+Ch] [rbp-4h]\n\nputs(\"Printing SDRAM\");\nv0 = sub_401838(0x18006F98u);\nprintf(\"SDRAM = 0x%08x\\n\", v0);\nv1 = sub_401838(0x18006F98u);\nprintf(\"SDRAM = 0x%08x\\n\", v1);\nv2 = sub_401838(0x18006F98u);\nprintf(\"SDRAM = 0x%08x\\n\", v2);\nv3 = sub_401838(0x18006004u);\nprintf(\"SDRAM = 0x%08x\\n\", v3);\nv4 = sub_401838(0x1800601Cu);\nprintf(\"SDRAM = 0x%08x\\n\", v4);\nv5 = sub_401838(0x18006034u);\nprintf(\"SDRAM = 0x%08x\\n\", v5);\nv6 = sub_401838(0x18006038u);\nprintf(\"SDRAM = 0x%08x\\n\", v6);\nv7 = sub_401838(0x1800603Cu);\nprintf(\"SDRAM = 0x%08x\\n\", v7);\nv8 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v8);\nv9 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v9);\nv10 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v10);\nv11 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v11);\nv12 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v12);\nv13 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v13);\nv14 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v14);\nv15 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v15);\nv16 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v16);\nv17 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v17);\nv18 = sub_401838(0x18006008u);\nprintf(\"SDRAM = 0x%08x\\n\", v18);\nv19 = sub_401838(0x18006010u);\nprintf(\"SDRAM = 0x%08x\\n\", v19);\nv20 = sub_401838(0x18006000u);\nprintf(\"SDRAM = 0x%08x\\n\", v20);\nv22 = sub_401838(0x18006000u);\nreturn printf(\"SDRAM = 0x%08x\\n\", v22);\n}\n\n\n\nQ:[v22,sub_401F94,sub_401838,]\nAssistant: ", "hints": "[]", "response": "{'v22': 'temp', 'sub_401F94': 'readmem_4712', 'sub_401838': 'ejtag_read'}"}
as_lookup_host
f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b
aerospike
aerospike-client-c
NA
as_status as_lookup_host(as_address_iterator* iter, as_error* err, const char* hostname, uint16_t port) { iter->hostname_is_alias = true; struct addrinfo hints; memset(&hints, 0, sizeof(hints)); hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; // Check if hostname is really an IPv4 address. struct in_addr ipv4; if (inet_pton(AF_INET, hostname, &ipv4) == 1) { hints.ai_family = AF_INET; hints.ai_flags = AI_NUMERICHOST; iter->hostname_is_alias = false; } else { // Check if hostname is really an IPv6 address. struct in6_addr ipv6; if (inet_pton(AF_INET6, hostname, &ipv6) == 1) { hints.ai_family = AF_INET6; hints.ai_flags = AI_NUMERICHOST; iter->hostname_is_alias = false; } } int ret = getaddrinfo(hostname, NULL, &hints, &iter->addresses); if (ret) { return as_error_update(err, AEROSPIKE_ERR_INVALID_HOST, "Invalid hostname %s: %s", hostname, gai_strerror(ret)); } iter->current = iter->addresses; iter->port_be = cf_swap_to_be16(port); return AEROSPIKE_OK; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42EE4F", "function_addr": 4386383, "binary_name": "f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "add rsp, 0FFFFFFFFFFFFFF80h"], [3, "mov [rbp+pai], rdi"], [4, "mov [rbp+var_70], rsi"], [5, "mov [rbp+cp], rdx"], [6, "mov eax, ecx"], [7, "mov [rbp+var_7C], ax"], [8, "mov rax, [rbp+pai]"], [9, "mov byte ptr [rax+12h], 1"], [10, "lea rax, [rbp+s]"], [11, "mov edx, 30h "], [12, "mov esi, 0"], [13, "mov rdi, rax"], [14, "call _memset"], [15, "mov [rbp+var_38], 1"], [16, "mov [rbp+var_34], 6"], [17, "lea rdx, [rbp+buf]"], [18, "mov rax, [rbp+cp]"], [19, "mov rsi, rax"], [20, "mov edi, 2"], [21, "call _inet_pton"], [22, "cmp eax, 1"], [23, "jnz short loc_42EEC7"], [24, "mov [rbp+var_3C], 2"], [25, "mov [rbp+s], 4"], [26, "mov rax, [rbp+pai]"], [27, "mov byte ptr [rax+12h], 0"], [28, "jmp short loc_42EEF7"], [29, "lea rdx, [rbp+var_60]"], [30, "mov rax, [rbp+cp]"], [31, "mov rsi, rax"], [32, "mov edi, 0Ah"], [33, "call _inet_pton"], [34, "cmp eax, 1"], [35, "jnz short loc_42EEF7"], [36, "mov [rbp+var_3C], 0Ah"], [37, "mov [rbp+s], 4"], [38, "mov rax, [rbp+pai]"], [39, "mov byte ptr [rax+12h], 0"], [40, "mov rcx, [rbp+pai]"], [41, "lea rdx, [rbp+s]"], [42, "mov rax, [rbp+cp]"], [43, "mov esi, 0"], [44, "mov rdi, rax"], [45, "call _getaddrinfo"], [46, "mov [rbp+ecode], eax"], [47, "cmp [rbp+ecode], 0"], [48, "jz short loc_42EF61"], [49, "mov eax, [rbp+ecode]"], [50, "mov edi, eax"], [51, "call _gai_strerror"], [52, "mov rdx, rax"], [53, "mov rax, [rbp+var_70]"], [54, "push rdx"], [55, "push [rbp+cp]"], [56, "lea r9, aInvalidHostnam"], [57, "mov r8d, 101h"], [58, "lea rcx, aSrcMainAerospi_10"], [59, "lea rdx, aAsLookupHost"], [60, "mov esi, 0FFFFFFFCh"], [61, "mov rdi, rax"], [62, "mov eax, 0"], [63, "call sub_42E23F"], [64, "add rsp, 10h"], [65, "jmp short locret_42EF88"], [66, "mov rax, [rbp+pai]"], [67, "mov rdx, [rax]"], [68, "mov rax, [rbp+pai]"], [69, "mov [rax+8], rdx"], [70, "movzx eax, [rbp+var_7C]"], [71, "mov edi, eax"], [72, "call sub_42E142"], [73, "mov rdx, [rbp+pai]"], [74, "mov [rdx+10h], ax"], [75, "mov eax, 0"], [76, "leave"], [77, "retn"]], "data_dep": [[7, 6], [8, 3], [9, 8], [10, 8], [13, 10], [17, 11], [18, 5], [19, 18], [22, 21], [23, 22], [26, 3], [27, 26], [29, 17], [30, 5], [31, 30], [34, 33], [35, 34], [38, 3], [39, 38], [40, 3], [41, 17], [41, 29], [41, 25], [41, 37], [42, 5], [44, 42], [46, 45], [47, 46], [48, 47], [49, 46], [50, 49], [52, 51], [53, 4], [54, 52], [55, 5], [58, 40], [59, 52], [61, 53], [64, 2], [66, 3], [67, 74], [67, 9], [67, 27], [67, 39], [67, 66], [67, 69], [68, 3], [69, 68], [69, 67], [70, 7], [71, 70], [73, 3], [74, 73], [74, 72], [77, 63], [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/f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b_f68b12b76f68351e9f048bd28a697879a69b1799fbf8bdd30581dce70b5e806b.jsonl.gz", "strip_func_name": "sub_42EE4F", "query": "\n\n\n__int64 __fastcall sub_42EE4F(__int64 a1, char *a2, const char *a3, __int16 a4)\n{\nconst char *v4; // rax\n__int64 result; // rax\nchar v8[28]; // [rsp+20h] [rbp-60h] BYREF\nchar buf[4]; // [rsp+3Ch] [rbp-44h] BYREF\nstruct addrinfo s; // [rsp+40h] [rbp-40h] BYREF\nint ecode; // [rsp+7Ch] [rbp-4h]\n\n*(_BYTE *)(a1 + 18) = 1;\nmemset(&s, 0, sizeof(s));\ns.ai_socktype = 1;\ns.ai_protocol = 6;\nif ( inet_pton(2, a3, buf) == 1 )\n{\ns.ai_family = 2;\ns.ai_flags = 4;\n*(_BYTE *)(a1 + 18) = 0;\n}\nelse if ( inet_pton(10, a3, v8) == 1 )\n{\ns.ai_family = 10;\ns.ai_flags = 4;\n*(_BYTE *)(a1 + 18) = 0;\n}\necode = getaddrinfo(a3, 0LL, &s, (struct addrinfo **)a1);\nif ( ecode )\n{\nv4 = gai_strerror(ecode);\nresult = sub_42E23F(\na2,\n-4,\n(__int64)\"as_lookup_host\",\n(__int64)\"src/main/aerospike/as_lookup.c\",\n0x101u,\n\"Invalid hostname %s: %s\",\na3,\nv4);\n}\nelse\n{\n*(_QWORD *)(a1 + 8) = *(_QWORD *)a1;\n*(_WORD *)(a1 + 16) = sub_42E142(a4);\nresult = 0LL;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,v4,v8,buf,s,sub_42EE4F,sub_42E23F,sub_42E142,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'hostname', 'a4': 'port', 'a1': 'iter', 'a2': 'err', 'v4': 'result', 'v8': 'ipv6', 'buf': 'ipv4', 's': 'hints', 'sub_42EE4F': 'as_lookup_host', 'sub_42E23F': 'as_error_setallv_9', 'sub_42E142': 'cf_swap_to_be16_3'}"}
bnep_lwip_connect
1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586
bluekitchen
btstack
NA
uint8_t bnep_lwip_connect(bd_addr_t addr, uint16_t l2cap_psm, uint16_t uuid_src, uint16_t uuid_dest){ int status = bnep_connect(packet_handler, addr, l2cap_psm, uuid_src, uuid_dest); if (status != 0){ return ERROR_CODE_UNSPECIFIED_ERROR; } else { return ERROR_CODE_SUCCESS; } }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45CDDA", "function_addr": 4574682, "binary_name": "1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov eax, ecx"], [5, "mov ecx, esi"], [6, "mov [rbp+var_1C], cx"], [7, "mov [rbp+var_20], dx"], [8, "mov [rbp+var_24], ax"], [9, "movzx esi, [rbp+var_24]"], [10, "movzx ecx, [rbp+var_20]"], [11, "movzx edx, [rbp+var_1C]"], [12, "mov rax, [rbp+var_18]"], [13, "mov r8d, esi"], [14, "mov rsi, rax"], [15, "mov edi, offset sub_45CBE2"], [16, "call sub_441625"], [17, "mov [rbp+var_4], eax"], [18, "cmp [rbp+var_4], 0"], [19, "jz short loc_45CE26"], [20, "mov eax, 1Fh"], [21, "jmp short locret_45CE2B"], [22, "mov eax, 0"], [23, "leave"], [24, "retn"]], "data_dep": [[6, 5], [8, 4], [9, 8], [10, 7], [11, 6], [12, 3], [13, 9], [14, 12], [17, 16], [18, 17], [19, 18], [24, 20], [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/1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586_1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.jsonl.gz", "strip_func_name": "sub_45CDDA", "query": "\n\n\n__int64 __fastcall sub_45CDDA(const void *a1, unsigned __int16 a2, __int16 a3, __int16 a4)\n{\n__int64 result; // rax\n\nif ( (unsigned int)sub_441625((__int64)sub_45CBE2, a1, a2, a3, a4) )\nresult = 31LL;\nelse\nresult = 0LL;\nreturn result;\n}\n\n\n\nQ:[a3,a4,a1,a2,sub_45CDDA,sub_441625,sub_45CBE2,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'uuid_src', 'a4': 'uuid_dest', 'a1': 'addr', 'a2': 'l2cap_psm', 'sub_45CDDA': 'bnep_lwip_connect', 'sub_441625': 'bnep_connect', 'sub_45CBE2': 'packet_handler_2'}"}
selnormalize
e30d6763cdc6cdc20034427c41a837eef5f47659480b5b33e20ed62e8d2f6e3d
bakkeby
st-flexipatch
NA
void selnormalize(void) { int i; if (sel.type == SEL_REGULAR && sel.ob.y != sel.oe.y) { sel.nb.x = sel.ob.y < sel.oe.y ? sel.ob.x : sel.oe.x; sel.ne.x = sel.ob.y < sel.oe.y ? sel.oe.x : sel.ob.x; } else { sel.nb.x = MIN(sel.ob.x, sel.oe.x); sel.ne.x = MAX(sel.ob.x, sel.oe.x); } sel.nb.y = MIN(sel.ob.y, sel.oe.y); sel.ne.y = MAX(sel.ob.y, sel.oe.y); selsnap(&sel.nb.x, &sel.nb.y, -1); selsnap(&sel.ne.x, &sel.ne.y, +1); /* expand selection over line breaks */ if (sel.type == SEL_RECTANGULAR) return; i = tlinelen(sel.nb.y); if (i < sel.nb.x) sel.nb.x = i; if (tlinelen(sel.ne.y) <= sel.ne.x) sel.ne.x = term.col - 1; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404289", "function_addr": 4211337, "binary_name": "e30d6763cdc6cdc20034427c41a837eef5f47659480b5b33e20ed62e8d2f6e3d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov eax, cs:dword_417E44"], [4, "cmp eax, 1"], [5, "jnz short loc_4042F6"], [6, "mov edx, cs:dword_417E60"], [7, "mov eax, cs:dword_417E68"], [8, "cmp edx, eax"], [9, "jz short loc_4042F6"], [10, "mov edx, cs:dword_417E60"], [11, "mov eax, cs:dword_417E68"], [12, "cmp edx, eax"], [13, "jge short loc_4042C4"], [14, "mov eax, cs:dword_417E5C"], [15, "jmp short loc_4042CA"], [16, "mov eax, cs:dword_417E64"], [17, "mov cs:dword_417E4C, eax"], [18, "mov edx, cs:dword_417E60"], [19, "mov eax, cs:dword_417E68"], [20, "cmp edx, eax"], [21, "jge short loc_4042E8"], [22, "mov eax, cs:dword_417E64"], [23, "jmp short loc_4042EE"], [24, "mov eax, cs:dword_417E5C"], [25, "mov cs:dword_417E54, eax"], [26, "jmp short loc_404324"], [27, "mov edx, cs:dword_417E64"], [28, "mov eax, cs:dword_417E5C"], [29, "cmp edx, eax"], [30, "cmovle eax, edx"], [31, "mov cs:dword_417E4C, eax"], [32, "mov edx, cs:dword_417E5C"], [33, "mov eax, cs:dword_417E64"], [34, "cmp edx, eax"], [35, "cmovge eax, edx"], [36, "mov cs:dword_417E54, eax"], [37, "mov edx, cs:dword_417E68"], [38, "mov eax, cs:dword_417E60"], [39, "cmp edx, eax"], [40, "cmovle eax, edx"], [41, "mov cs:dword_417E50, eax"], [42, "mov edx, cs:dword_417E60"], [43, "mov eax, cs:dword_417E68"], [44, "cmp edx, eax"], [45, "cmovge eax, edx"], [46, "mov cs:dword_417E58, eax"], [47, "mov edx, 0FFFFFFFFh"], [48, "mov esi, offset dword_417E50"], [49, "mov edi, offset dword_417E4C"], [50, "call sub_4044AE"], [51, "mov edx, 1"], [52, "mov esi, offset dword_417E58"], [53, "mov edi, offset dword_417E54"], [54, "call sub_4044AE"], [55, "mov eax, cs:dword_417E44"], [56, "cmp eax, 2"], [57, "jz short loc_4043D1"], [58, "mov eax, cs:dword_417E50"], [59, "mov edi, eax"], [60, "call sub_404065"], [61, "mov [rbp+var_4], eax"], [62, "mov eax, cs:dword_417E4C"], [63, "cmp [rbp+var_4], eax"], [64, "jge short loc_4043A9"], [65, "mov eax, [rbp+var_4]"], [66, "mov cs:dword_417E4C, eax"], [67, "mov eax, cs:dword_417E58"], [68, "mov edi, eax"], [69, "call sub_404065"], [70, "mov edx, cs:dword_417E54"], [71, "cmp eax, edx"], [72, "jg short locret_4043D2"], [73, "mov eax, cs:dword_41A204"], [74, "sub eax, 1"], [75, "mov cs:dword_417E54, eax"], [76, "jmp short locret_4043D2"], [77, "nop"], [78, "leave"], [79, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 6], [8, 7], [9, 8], [12, 10], [12, 11], [13, 12], [17, 14], [17, 16], [20, 19], [20, 18], [21, 20], [25, 22], [25, 24], [29, 28], [29, 27], [30, 27], [31, 30], [34, 33], [34, 32], [35, 32], [35, 34], [36, 35], [39, 38], [39, 37], [40, 37], [41, 40], [44, 42], [44, 43], [45, 42], [45, 44], [46, 45], [56, 55], [57, 56], [58, 41], [59, 58], [61, 60], [62, 17], [62, 31], [63, 61], [63, 62], [64, 63], [65, 61], [66, 65], [67, 46], [68, 67], [70, 36], [70, 25], [71, 70], [71, 69], [72, 71], [74, 73], [75, 74], [79, 69], [79, 74], [79, 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/e30d6763cdc6cdc20034427c41a837eef5f47659480b5b33e20ed62e8d2f6e3d_e30d6763cdc6cdc20034427c41a837eef5f47659480b5b33e20ed62e8d2f6e3d.jsonl.gz", "strip_func_name": "sub_404289", "query": "\n\n\n__int64 sub_404289()\n{\nint v0; // eax\nint v1; // eax\nint v2; // eax\nint v3; // eax\nint v4; // eax\nint v5; // eax\n__int64 result; // rax\nint v7; // [rsp+Ch] [rbp-4h]\n\nif ( dword_417E44 != 1 || dword_417E60 == dword_417E68 )\n{\nv2 = dword_417E5C;\nif ( dword_417E64 <= dword_417E5C )\nv2 = dword_417E64;\ndword_417E4C = v2;\nv3 = dword_417E64;\nif ( dword_417E5C >= dword_417E64 )\nv3 = dword_417E5C;\ndword_417E54 = v3;\n}\nelse\n{\nif ( dword_417E60 >= dword_417E68 )\nv0 = dword_417E64;\nelse\nv0 = dword_417E5C;\ndword_417E4C = v0;\nif ( dword_417E60 >= dword_417E68 )\nv1 = dword_417E5C;\nelse\nv1 = dword_417E64;\ndword_417E54 = v1;\n}\nv4 = dword_417E60;\nif ( dword_417E68 <= dword_417E60 )\nv4 = dword_417E68;\ndword_417E50 = v4;\nv5 = dword_417E68;\nif ( dword_417E60 >= dword_417E68 )\nv5 = dword_417E60;\ndword_417E58 = v5;\nsub_4044AE(&dword_417E4C, &dword_417E50, 0xFFFFFFFFLL);\nsub_4044AE(&dword_417E54, &dword_417E58, 1LL);\nresult = (unsigned int)dword_417E44;\nif ( dword_417E44 != 2 )\n{\nv7 = sub_404065(dword_417E50);\nif ( v7 < dword_417E4C )\ndword_417E4C = v7;\nresult = sub_404065(dword_417E58);\nif ( (int)result <= dword_417E54 )\n{\nresult = (unsigned int)(dword_41A204 - 1);\ndword_417E54 = dword_41A204 - 1;\n}\n}\nreturn result;\n}\n\n\n\nQ:[sub_404289,sub_4044AE,sub_404065,]\nAssistant: ", "hints": "[]", "response": "{'sub_404289': 'selnormalize', 'sub_4044AE': 'selsnap', 'sub_404065': 'tlinelen'}"}
rtrim
e6951f37e53aa26b8cc1158f7a801b19b5050181eb2932e812d0435a1aa23f66
plasmoduck
suckless
NA
static void rtrim(char * str, const char * trim_str, size_t min) { size_t len = strlen(str); while (len > min && strchr(trim_str, str[len - 1])) str[--len] = '\0'; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_421A2E", "function_addr": 4332078, "binary_name": "e6951f37e53aa26b8cc1158f7a801b19b5050181eb2932e812d0435a1aa23f66.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+s], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, [rbp+s]"], [7, "mov rdi, rax"], [8, "call _strlen"], [9, "mov [rbp+var_8], rax"], [10, "jmp short loc_421A67"], [11, "sub [rbp+var_8], 1"], [12, "mov rdx, [rbp+s]"], [13, "mov rax, [rbp+var_8]"], [14, "add rax, rdx"], [15, "mov byte ptr [rax], 0"], [16, "mov rax, [rbp+var_8]"], [17, "cmp rax, [rbp+var_28]"], [18, "jbe short loc_421A99"], [19, "mov rax, [rbp+var_8]"], [20, "lea rdx, [rax-1]"], [21, "mov rax, [rbp+s]"], [22, "add rax, rdx"], [23, "movzx eax, byte ptr [rax]"], [24, "movsx edx, al"], [25, "mov rax, [rbp+var_20]"], [26, "mov esi, edx"], [27, "mov rdi, rax"], [28, "call _strchr"], [29, "test rax, rax"], [30, "jnz short loc_421A54"], [31, "nop"], [32, "leave"], [33, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 8], [11, 11], [11, 9], [12, 3], [13, 11], [14, 13], [14, 12], [15, 14], [16, 9], [16, 11], [17, 5], [17, 16], [18, 17], [19, 9], [19, 11], [20, 19], [20, 12], [20, 15], [21, 3], [22, 20], [22, 21], [23, 22], [23, 15], [24, 23], [25, 4], [26, 24], [27, 25], [29, 28], [30, 29], [33, 29], [33, 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/e6951f37e53aa26b8cc1158f7a801b19b5050181eb2932e812d0435a1aa23f66_e6951f37e53aa26b8cc1158f7a801b19b5050181eb2932e812d0435a1aa23f66.jsonl.gz", "strip_func_name": "sub_421A2E", "query": "\n\n\nchar *__fastcall sub_421A2E(const char *a1, const char *a2, size_t a3)\n{\nchar *result; // rax\nsize_t i; // [rsp+28h] [rbp-8h]\n\nfor ( i = strlen(a1); ; a1[i] = 0 )\n{\nresult = (char *)i;\nif ( i <= a3 )\nbreak;\nresult = strchr(a2, a1[i - 1]);\nif ( !result )\nbreak;\n--i;\n}\nreturn result;\n}\n\n\n\nQ:[a3,a1,a2,i,sub_421A2E,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'min', 'a1': 'str', 'a2': 'trim_str', 'i': 'len', 'sub_421A2E': 'rtrim'}"}
qcsapi_wifi_get_regulatory_tx_power
501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30
coolsnowwolf
lede
NA
int qcsapi_wifi_get_regulatory_tx_power(const char * ifname, const qcsapi_unsigned_int the_channel, const char * region_by_name, int * p_tx_power) { int retries = 0; int ret; CLIENT *clnt = qcsapi_adapter_get_client(); enum clnt_stat __rpcret; struct qcsapi_wifi_get_regulatory_tx_power_rpcdata __req; struct qcsapi_wifi_get_regulatory_tx_power_rpcdata __resp; memset(&__req, 0, sizeof(__req)); memset(&__resp, 0, sizeof(__resp)); __rpc_string __rpcifname = {(char *)ifname}; __rpc_string *p__rpcifname = (ifname) ? &__rpcifname : NULL; __req.ifname = p__rpcifname; __req.the_channel = (unsigned int)the_channel; __rpc_string __rpcregion_by_name = {(char *)region_by_name}; __rpc_string *p__rpcregion_by_name = (region_by_name) ? &__rpcregion_by_name : NULL; __req.region_by_name = p__rpcregion_by_name; __req.p_tx_power = (int *)p_tx_power; if (debug) { fprintf(stderr, "%s:%d %s pre\n", __FILE__, __LINE__, __FUNCTION__); } client_qcsapi_pre(); while (1) { __rpcret = clnt_call(clnt, QCSAPI_WIFI_GET_REGULATORY_TX_POWER_REMOTE, (xdrproc_t)xdr_qcsapi_wifi_get_regulatory_tx_power_rpcdata, (caddr_t)&__req, (xdrproc_t)xdr_qcsapi_wifi_get_regulatory_tx_power_rpcdata, (caddr_t)&__resp, __timeout); if (__rpcret == RPC_SUCCESS) { client_qcsapi_post(0); break; } else { clnt_perror (clnt, "qcsapi_wifi_get_regulatory_tx_power call failed"); clnt_perrno (__rpcret); if (retries >= retries_limit) { client_qcsapi_post(1); xdr_free((xdrproc_t)xdr_qcsapi_wifi_get_regulatory_tx_power_rpcdata, (caddr_t)&__resp); return -ENOLINK; } retries++; client_qcsapi_reconnect(); } } if (__resp.return_code >= 0) { if (p_tx_power) *p_tx_power = *__resp.p_tx_power; } if (debug) { fprintf(stderr, "%s:%d %s post\n", __FILE__, __LINE__, __FUNCTION__); } ret = __resp.return_code; xdr_free((xdrproc_t)xdr_qcsapi_wifi_get_regulatory_tx_power_rpcdata, (caddr_t)&__resp); return ret; }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_47B09A", "function_addr": 4698266, "binary_name": "501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0B0h"], [3, "mov [rbp+var_98], rdi"], [4, "mov [rbp+var_9C], esi"], [5, "mov [rbp+var_A8], rdx"], [6, "mov [rbp+var_B0], rcx"], [7, "mov [rbp+var_4], 0"], [8, "call sub_447E6C"], [9, "mov [rbp+clnt], rax"], [10, "lea rax, [rbp+s]"], [11, "mov edx, 28h "], [12, "mov esi, 0"], [13, "mov rdi, rax"], [14, "call _memset"], [15, "lea rax, [rbp+objp]"], [16, "mov edx, 28h "], [17, "mov esi, 0"], [18, "mov rdi, rax"], [19, "call _memset"], [20, "mov rax, [rbp+var_98]"], [21, "mov [rbp+var_88], rax"], [22, "cmp [rbp+var_98], 0"], [23, "jz short loc_47B11D"], [24, "lea rax, [rbp+var_88]"], [25, "jmp short loc_47B122"], [26, "mov eax, 0"], [27, "mov [rbp+var_18], rax"], [28, "mov rax, [rbp+var_18]"], [29, "mov [rbp+s], rax"], [30, "mov eax, [rbp+var_9C]"], [31, "mov [rbp+var_48], eax"], [32, "mov rax, [rbp+var_A8]"], [33, "mov [rbp+var_90], rax"], [34, "cmp [rbp+var_A8], 0"], [35, "jz short loc_47B158"], [36, "lea rax, [rbp+var_90]"], [37, "jmp short loc_47B15D"], [38, "mov eax, 0"], [39, "mov [rbp+var_20], rax"], [40, "mov rax, [rbp+var_20]"], [41, "mov [rbp+var_40], rax"], [42, "mov rax, [rbp+var_B0]"], [43, "mov [rbp+var_38], rax"], [44, "mov eax, 0"], [45, "test eax, eax"], [46, "jz short loc_47B1AE"], [47, "mov rax, cs:stderr_ptr"], [48, "mov rax, [rax]"], [49, "lea r8, aQcsapiWifiGetR_17"], [50, "mov ecx, 4E6Ch"], [51, "lea rdx, aQcsapiRpcGener"], [52, "lea rsi, aSDSPre"], [53, "mov rdi, rax"], [54, "mov eax, 0"], [55, "call _fprintf"], [56, "lea rdi, aQcsapiWifiGetR_17"], [57, "call sub_447EFE"], [58, "mov rax, [rbp+clnt]"], [59, "mov rax, [rax+8]"], [60, "mov r10, [rax]"], [61, "lea rcx, [rbp+objp]"], [62, "lea rdx, [rbp+s]"], [63, "mov rax, [rbp+clnt]"], [64, "push cs:qword_4BF588"], [65, "push cs:qword_4BF580"], [66, "mov r9, rcx"], [67, "mov rcx, offset sub_4422E9"], [68, "mov r8, rcx"], [69, "mov rcx, rdx"], [70, "mov rdx, offset sub_4422E9"], [71, "mov esi, 0C3Bh"], [72, "mov rdi, rax"], [73, "call r10"], [74, "add rsp, 10h"], [75, "mov [rbp+num], eax"], [76, "cmp [rbp+num], 0"], [77, "jnz short loc_47B22B"], [78, "mov esi, 0"], [79, "lea rdi, aQcsapiWifiGetR_17"], [80, "call sub_447F29"], [81, "nop"], [82, "mov eax, [rbp+var_60]"], [83, "test eax, eax"], [84, "js loc_47B2B2"], [85, "jmp short loc_47B299"], [86, "mov rax, [rbp+clnt]"], [87, "lea rsi, aQcsapiWifiGetR_18"], [88, "mov rdi, rax"], [89, "call _clnt_perror"], [90, "mov eax, [rbp+num]"], [91, "mov edi, eax"], [92, "call _clnt_perrno"], [93, "mov eax, cs:dword_4BF570"], [94, "cmp [rbp+var_4], eax"], [95, "jl short loc_47B284"], [96, "mov esi, 1"], [97, "lea rdi, aQcsapiWifiGetR_17"], [98, "call sub_447F29"], [99, "lea rax, [rbp+objp]"], [100, "mov rsi, rax"], [101, "mov rax, offset sub_4422E9"], [102, "mov rdi, rax"], [103, "call _xdr_free"], [104, "mov eax, 0FFFFFFBDh"], [105, "jmp locret_47B30B"], [106, "add [rbp+var_4], 1"], [107, "lea rdi, aQcsapiWifiGetR_17"], [108, "call sub_447F5C"], [109, "jmp loc_47B1BA"], [110, "cmp [rbp+var_B0], 0"], [111, "jz short loc_47B2B2"], [112, "mov rax, [rbp+var_68]"], [113, "mov edx, [rax]"], [114, "mov rax, [rbp+var_B0]"], [115, "mov [rax], edx"], [116, "mov eax, 0"], [117, "test eax, eax"], [118, "jz short loc_47B2EC"], [119, "mov rax, cs:stderr_ptr"], [120, "mov rax, [rax]"], [121, "lea r8, aQcsapiWifiGetR_17"], [122, "mov ecx, 4E88h"], [123, "lea rdx, aQcsapiRpcGener"], [124, "lea rsi, aSDSPost"], [125, "mov rdi, rax"], [126, "mov eax, 0"], [127, "call _fprintf"], [128, "mov eax, [rbp+var_60]"], [129, "mov [rbp+var_28], eax"], [130, "lea rax, [rbp+objp]"], [131, "mov rsi, rax"], [132, "mov rax, offset sub_4422E9"], [133, "mov rdi, rax"], [134, "call _xdr_free"], [135, "mov eax, [rbp+var_28]"], [136, "leave"], [137, "retn"]], "data_dep": [[9, 8], [10, 8], [13, 10], [15, 14], [18, 15], [20, 3], [21, 20], [22, 3], [23, 22], [24, 21], [24, 20], [27, 24], [27, 26], [28, 27], [29, 28], [30, 4], [31, 30], [32, 5], [33, 32], [34, 5], [35, 34], [36, 33], [36, 32], [39, 36], [39, 38], [40, 39], [41, 40], [42, 6], [43, 42], [45, 44], [46, 45], [48, 47], [51, 16], [52, 17], [53, 48], [56, 53], [56, 18], [58, 9], [59, 58], [60, 59], [61, 69], [61, 50], [62, 16], [62, 70], [62, 29], [62, 51], [63, 9], [66, 61], [68, 67], [69, 62], [72, 63], [73, 60], [74, 2], [74, 74], [75, 73], [76, 75], [77, 76], [79, 72], [83, 82], [84, 83], [86, 9], [87, 71], [88, 86], [90, 75], [91, 90], [94, 7], [94, 93], [94, 106], [95, 94], [97, 91], [99, 98], [100, 99], [102, 101], [106, 106], [106, 7], [107, 91], [110, 6], [111, 110], [113, 112], [114, 6], [115, 114], [115, 113], [117, 116], [118, 117], [120, 115], [120, 119], [121, 68], [123, 70], [123, 113], [124, 78], [125, 120], [129, 128], [130, 128], [131, 130], [133, 132], [135, 129], [137, 104], [137, 135]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n 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_47B09A", "query": "\n\n\n__int64 __fastcall sub_47B09A(__int64 a1, int a2, __int64 a3, _DWORD *a4)\n{\n__int64 *v4; // rax\n__int64 *v5; // rax\n__int64 v9; // [rsp+20h] [rbp-90h] BYREF\n__int64 v10; // [rsp+28h] [rbp-88h] BYREF\nchar objp[24]; // [rsp+30h] [rbp-80h] BYREF\n_DWORD *v12; // [rsp+48h] [rbp-68h]\nint v13; // [rsp+50h] [rbp-60h]\n__int64 *s; // [rsp+60h] [rbp-50h] BYREF\nint v15; // [rsp+68h] [rbp-48h]\n__int64 *v16; // [rsp+70h] [rbp-40h]\n_DWORD *v17; // [rsp+78h] [rbp-38h]\nunsigned int v18; // [rsp+88h] [rbp-28h]\nenum clnt_stat num; // [rsp+8Ch] [rbp-24h]\n__int64 *v20; // [rsp+90h] [rbp-20h]\n__int64 *v21; // [rsp+98h] [rbp-18h]\nCLIENT *clnt; // [rsp+A0h] [rbp-10h]\nint v23; // [rsp+ACh] [rbp-4h]\n\nv23 = 0;\nclnt = (CLIENT *)sub_447E6C();\nmemset(&s, 0, 0x28uLL);\nmemset(objp, 0, 0x28uLL);\nv10 = a1;\nif ( a1 )\nv4 = &v10;\nelse\nv4 = 0LL;\nv21 = v4;\ns = v4;\nv15 = a2;\nv9 = a3;\nif ( a3 )\nv5 = &v9;\nelse\nv5 = 0LL;\nv20 = v5;\nv16 = v5;\nv17 = a4;\nsub_447EFE((__int64)\"qcsapi_wifi_get_regulatory_tx_power\");\nwhile ( 1 )\n{\nnum = ((__int64 (__fastcall *)(CLIENT *, __int64, _BOOL8 (__fastcall *)(XDR *, void *), __int64 **, _BOOL8 (__fastcall *)(XDR *, void *), char *, __int64, __int64))clnt->cl_ops->cl_call)(\nclnt,\n3131LL,\nsub_4422E9,\n&s,\nsub_4422E9,\nobjp,\nqword_4BF580,\nqword_4BF588);\nif ( num == RPC_SUCCESS )\nbreak;\nclnt_perror(clnt, \"qcsapi_wifi_get_regulatory_tx_power call failed\");\nclnt_perrno(num);\nif ( v23 >= dword_4BF570 )\n{\nsub_447F29((__int64)\"qcsapi_wifi_get_regulatory_tx_power\", 1u);\nxdr_free((xdrproc_t)sub_4422E9, objp);\nreturn 4294967229LL;\n}\n++v23;\nsub_447F5C((__int64)\"qcsapi_wifi_get_regulatory_tx_power\");\n}\nsub_447F29((__int64)\"qcsapi_wifi_get_regulatory_tx_power\", 0);\nif ( v13 >= 0 )\n{\nif ( a4 )\n*a4 = *v12;\n}\nv18 = v13;\nxdr_free((xdrproc_t)sub_4422E9, objp);\nreturn v18;\n}\n\n\n\nQ:[a3,a4,a1,a2,v9,v10,objp,s,num,v20,v21,v23,sub_47B09A,sub_447E6C,sub_4422E9,]\nAssistant: ", "hints": "[]", "response": "{'a3': 'region_by_name', 'a4': 'p_tx_power', 'a1': 'ifname', 'a2': 'the_channel', 'v9': '__rpcregion_by_name', 'v10': '__rpcifname', 'objp': '__resp', 's': '__req', 'num': '__rpcret', 'v20': 'p__rpcregion_by_name', 'v21': 'p__rpcifname', 'v23': 'retries', 'sub_47B09A': 'qcsapi_wifi_get_regulatory_tx_power', 'sub_447E6C': 'qcsapi_adapter_get_client', 'sub_4422E9': 'xdr_qcsapi_wifi_get_regulatory_tx_power_rpcdata'}"}
_printn
a7d77ac171dfefbf3fe06cbb3af3b1aa79916d6c960f658aabb50f3c3f1d79eb
x43x61x69
gbdk-osx
NA
static void _printn(int n) { int rem; if (n < 0) { _putchar('-'); n = -n; } rem = __mod(n, 10); if (rem != n) { _printn(__div(n, 10)); } _putchar('0' + rem); }
{"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401361", "function_addr": 4199265, "binary_name": "a7d77ac171dfefbf3fe06cbb3af3b1aa79916d6c960f658aabb50f3c3f1d79eb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_14], edi"], [4, "cmp [rbp+var_14], 0"], [5, "jns short loc_40137F"], [6, "mov edi, 2Dh "], [7, "call sub_4016A6"], [8, "neg [rbp+var_14]"], [9, "mov eax, [rbp+var_14]"], [10, "mov esi, 0Ah"], [11, "mov edi, eax"], [12, "call sub_401342"], [13, "mov [rbp+var_4], eax"], [14, "mov eax, [rbp+var_4]"], [15, "cmp eax, [rbp+var_14]"], [16, "jz short loc_4013AF"], [17, "mov eax, [rbp+var_14]"], [18, "mov esi, 0Ah"], [19, "mov edi, eax"], [20, "call sub_401318"], [21, "mov edi, eax"], [22, "call sub_401361"], [23, "mov eax, [rbp+var_4]"], [24, "add eax, 30h "], [25, "movsx eax, al"], [26, "mov edi, eax"], [27, "call sub_4016A6"], [28, "nop"], [29, "leave"], [30, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 3], [9, 8], [9, 3], [11, 9], [13, 12], [14, 13], [15, 8], [15, 14], [15, 3], [16, 15], [17, 3], [17, 8], [19, 17], [21, 20], [23, 13], [24, 23], [25, 24], [26, 25], [30, 27]]}
{"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a7d77ac171dfefbf3fe06cbb3af3b1aa79916d6c960f658aabb50f3c3f1d79eb_a7d77ac171dfefbf3fe06cbb3af3b1aa79916d6c960f658aabb50f3c3f1d79eb.jsonl.gz", "strip_func_name": "sub_401361", "query": "\n\n\n__int64 __fastcall sub_401361(int a1)\n{\nunsigned int v1; // eax\nint v3; // [rsp+Ch] [rbp-14h]\nint v4; // [rsp+1Ch] [rbp-4h]\n\nv3 = a1;\nif ( a1 < 0 )\n{\nsub_4016A6(45LL);\nv3 = -a1;\n}\nv4 = sub_401342(v3, 10);\nif ( v4 != v3 )\n{\nv1 = sub_401318(v3, 10);\nsub_401361(v1);\n}\nreturn sub_4016A6((unsigned int)(char)(v4 + 48));\n}\n\n\n\nQ:[a1,v3,v4,sub_401361,sub_4016A6,]\nAssistant: ", "hints": "[]", "response": "{'a1': 'n', 'v3': 'na', 'v4': 'rem', 'sub_401361': '_printn', 'sub_4016A6': '_putchar'}"}