src
stringlengths 11
425k
| codeart
stringlengths 257
560k
|
---|---|
static int rapl_perf(int core) {
FILE *fff;
int type;
int config[NUM_RAPL_DOMAINS];
char units[NUM_RAPL_DOMAINS][BUFSIZ];
char filename[BUFSIZ];
int fd[NUM_RAPL_DOMAINS][MAX_PACKAGES];
double scale[NUM_RAPL_DOMAINS];
struct perf_event_attr attr;
long long value;
int i,j;
int paranoid_value;
printf("\nTrying perf_event interface to gather results\n\n");
fff=fopen("/sys/bus/event_source/devices/power/type","r");
if (fff==NULL) {
printf("\tNo perf_event rapl support found (requires Linux 3.14)\n");
printf("\tFalling back to raw msr support\n\n");
return -1;
}
fscanf(fff,"%d",&type);
fclose(fff);
for(i=0;i<NUM_RAPL_DOMAINS;i++) {
sprintf(filename,"/sys/bus/event_source/devices/power/events/%s",
rapl_domain_names[i]);
fff=fopen(filename,"r");
if (fff!=NULL) {
fscanf(fff,"event=%x",&config[i]);
printf("\tEvent=%s Config=%d ",rapl_domain_names[i],config[i]);
fclose(fff);
} else {
continue;
}
sprintf(filename,"/sys/bus/event_source/devices/power/events/%s.scale",
rapl_domain_names[i]);
fff=fopen(filename,"r");
if (fff!=NULL) {
fscanf(fff,"%lf",&scale[i]);
printf("scale=%g ",scale[i]);
fclose(fff);
}
sprintf(filename,"/sys/bus/event_source/devices/power/events/%s.unit",
rapl_domain_names[i]);
fff=fopen(filename,"r");
if (fff!=NULL) {
fscanf(fff,"%s",units[i]);
printf("units=%s ",units[i]);
fclose(fff);
}
printf("\n");
}
for(j=0;j<total_packages;j++) {
for(i=0;i<NUM_RAPL_DOMAINS;i++) {
fd[i][j]=-1;
memset(&attr,0x0,sizeof(attr));
attr.type=type;
attr.config=config[i];
if (config[i]==0) continue;
fd[i][j]=perf_event_open(&attr,-1, package_map[j],-1,0);
if (fd[i][j]<0) {
if (errno==EACCES) {
paranoid_value=check_paranoid();
if (paranoid_value>0) {
printf("\t/proc/sys/kernel/perf_event_paranoid is %d\n",paranoid_value);
printf("\tThe value must be 0 or lower to read system-wide RAPL values\n");
}
printf("\tPermission denied; run as root or adjust paranoid value\n\n");
return -1;
}
else {
printf("\terror opening core %d config %d: %s\n\n",
package_map[j], config[i], strerror(errno));
return -1;
}
}
}
}
printf("\n\tSleeping 1 second\n\n");
sleep(1);
for(j=0;j<total_packages;j++) {
printf("\tPackage %d:\n",j);
for(i=0;i<NUM_RAPL_DOMAINS;i++) {
if (fd[i][j]!=-1) {
read(fd[i][j],&value,8);
close(fd[i][j]);
printf("\t\t%s Energy Consumed: %lf %s\n",
rapl_domain_names[i],
(double)value*scale[i],
units[i]);
}
}
}
printf("\n");
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40258D", "function_addr": 4203917, "binary_name": "351bf03e07d4313bcab3f5446bc9afbe6701a862c0793ccd0156e5b7945adeda.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0C230h"], [3, "mov [rbp+var_C224], edi"], [4, "mov edi, offset aTryingPerfEven"], [5, "call _puts"], [6, "mov esi, offset modes"], [7, "mov edi, offset aSysBusEventSou"], [8, "call _fopen"], [9, "mov [rbp+stream], rax"], [10, "cmp [rbp+stream], 0"], [11, "jnz short loc_4025E0"], [12, "mov edi, offset aNoPerfEventRap"], [13, "call _puts"], [14, "mov edi, offset aFallingBackToR"], [15, "call _puts"], [16, "mov eax, 0FFFFFFFFh"], [17, "jmp locret_402B17"], [18, "lea rdx, [rbp+var_18]"], [19, "mov rax, [rbp+stream]"], [20, "mov esi, offset aD"], [21, "mov rdi, rax"], [22, "mov eax, 0"], [23, "call ___isoc99_fscanf"], [24, "mov rax, [rbp+stream]"], [25, "mov rdi, rax"], [26, "call _fclose"], [27, "mov [rbp+var_4], 0"], [28, "jmp loc_402833"], [29, "mov eax, [rbp+var_4]"], [30, "movsxd rdx, eax"], [31, "mov rax, rdx"], [32, "shl rax, 4"], [33, "sub rax, rdx"], [34, "add rax, rax"], [35, "lea rdx, aEnergyCores[rax]"], [36, "lea rax, [rbp+s]"], [37, "mov esi, offset aSysBusEventSou_0"], [38, "mov rdi, rax"], [39, "mov eax, 0"], [40, "call _sprintf"], [41, "lea rax, [rbp+s]"], [42, "mov esi, offset modes"], [43, "mov rdi, rax"], [44, "call _fopen"], [45, "mov [rbp+stream], rax"], [46, "cmp [rbp+stream], 0"], [47, "jz loc_40282E"], [48, "lea rdx, [rbp+var_30]"], [49, "mov eax, [rbp+var_4]"], [50, "cdqe"], [51, "shl rax, 2"], [52, "add rdx, rax"], [53, "mov rax, [rbp+stream]"], [54, "mov esi, offset aEventX"], [55, "mov rdi, rax"], [56, "mov eax, 0"], [57, "call ___isoc99_fscanf"], [58, "mov eax, [rbp+var_4]"], [59, "cdqe"], [60, "mov edx, [rbp+rax*4+var_30]"], [61, "mov eax, [rbp+var_4]"], [62, "movsxd rcx, eax"], [63, "mov rax, rcx"], [64, "shl rax, 4"], [65, "sub rax, rcx"], [66, "add rax, rax"], [67, "add rax, 407100h"], [68, "mov rsi, rax"], [69, "mov edi, offset aEventSConfigD"], [70, "mov eax, 0"], [71, "call _printf"], [72, "mov rax, [rbp+stream]"], [73, "mov rdi, rax"], [74, "call _fclose"], [75, "mov eax, [rbp+var_4]"], [76, "movsxd rdx, eax"], [77, "mov rax, rdx"], [78, "shl rax, 4"], [79, "sub rax, rdx"], [80, "add rax, rax"], [81, "lea rdx, aEnergyCores[rax]"], [82, "lea rax, [rbp+s]"], [83, "mov esi, offset aSysBusEventSou_1"], [84, "mov rdi, rax"], [85, "mov eax, 0"], [86, "call _sprintf"], [87, "lea rax, [rbp+s]"], [88, "mov esi, offset modes"], [89, "mov rdi, rax"], [90, "call _fopen"], [91, "mov [rbp+stream], rax"], [92, "cmp [rbp+stream], 0"], [93, "jz short loc_402776"], [94, "lea rdx, [rbp+var_C1A0]"], [95, "mov eax, [rbp+var_4]"], [96, "cdqe"], [97, "shl rax, 3"], [98, "add rdx, rax"], [99, "mov rax, [rbp+stream]"], [100, "mov esi, offset aLf"], [101, "mov rdi, rax"], [102, "mov eax, 0"], [103, "call ___isoc99_fscanf"], [104, "mov eax, [rbp+var_4]"], [105, "cdqe"], [106, "mov rax, [rbp+rax*8+var_C1A0]"], [107, "movq xmm0, rax"], [108, "mov edi, offset aScaleG"], [109, "mov eax, 1"], [110, "call _printf"], [111, "mov rax, [rbp+stream]"], [112, "mov rdi, rax"], [113, "call _fclose"], [114, "mov eax, [rbp+var_4]"], [115, "movsxd rdx, eax"], [116, "mov rax, rdx"], [117, "shl rax, 4"], [118, "sub rax, rdx"], [119, "add rax, rax"], [120, "lea rdx, aEnergyCores[rax]"], [121, "lea rax, [rbp+s]"], [122, "mov esi, offset aSysBusEventSou_2"], [123, "mov rdi, rax"], [124, "mov eax, 0"], [125, "call _sprintf"], [126, "lea rax, [rbp+s]"], [127, "mov esi, offset modes"], [128, "mov rdi, rax"], [129, "call _fopen"], [130, "mov [rbp+stream], rax"], [131, "cmp [rbp+stream], 0"], [132, "jz short loc_402822"], [133, "lea rdx, [rbp+var_A030]"], [134, "mov eax, [rbp+var_4]"], [135, "cdqe"], [136, "shl rax, 0Dh"], [137, "add rdx, rax"], [138, "mov rax, [rbp+stream]"], [139, "mov esi, offset aS"], [140, "mov rdi, rax"], [141, "mov eax, 0"], [142, "call ___isoc99_fscanf"], [143, "lea rdx, [rbp+var_A030]"], [144, "mov eax, [rbp+var_4]"], [145, "cdqe"], [146, "shl rax, 0Dh"], [147, "add rax, rdx"], [148, "mov rsi, rax"], [149, "mov edi, offset aUnitsS"], [150, "mov eax, 0"], [151, "call _printf"], [152, "mov rax, [rbp+stream]"], [153, "mov rdi, rax"], [154, "call _fclose"], [155, "mov edi, 0Ah"], [156, "call _putchar"], [157, "jmp short loc_40282F"], [158, "nop"], [159, "add [rbp+var_4], 1"], [160, "cmp [rbp+var_4], 4"], [161, "jle loc_402612"], [162, "mov [rbp+var_8], 0"], [163, "jmp loc_4029BD"], [164, "mov [rbp+var_4], 0"], [165, "jmp loc_4029AF"], [166, "mov eax, [rbp+var_8]"], [167, "movsxd rdx, eax"], [168, "mov eax, [rbp+var_4]"], [169, "cdqe"], [170, "shl rax, 4"], [171, "add rax, rdx"], [172, "mov [rbp+rax*4+fd], 0FFFFFFFFh"], [173, "lea rax, [rbp+var_C210]"], [174, "mov edx, 70h "], [175, "mov esi, 0"], [176, "mov rdi, rax"], [177, "call _memset"], [178, "mov eax, [rbp+var_18]"], [179, "mov [rbp+var_C210], eax"], [180, "mov eax, [rbp+var_4]"], [181, "cdqe"], [182, "mov eax, [rbp+rax*4+var_30]"], [183, "cdqe"], [184, "mov [rbp+var_C208], rax"], [185, "mov eax, [rbp+var_4]"], [186, "cdqe"], [187, "mov eax, [rbp+rax*4+var_30]"], [188, "test eax, eax"], [189, "jz loc_4029AA"], [190, "mov eax, [rbp+var_8]"], [191, "cdqe"], [192, "mov edx, ds:dword_407220[rax*4]"], [193, "lea rax, [rbp+var_C210]"], [194, "mov r8d, 0"], [195, "mov ecx, 0FFFFFFFFh"], [196, "mov esi, 0FFFFFFFFh"], [197, "mov rdi, rax"], [198, "call sub_4024CB"], [199, "mov edx, [rbp+var_8]"], [200, "movsxd rcx, edx"], [201, "mov edx, [rbp+var_4]"], [202, "movsxd rdx, edx"], [203, "shl rdx, 4"], [204, "add rdx, rcx"], [205, "mov [rbp+rdx*4+fd], eax"], [206, "mov eax, [rbp+var_8]"], [207, "movsxd rdx, eax"], [208, "mov eax, [rbp+var_4]"], [209, "cdqe"], [210, "shl rax, 4"], [211, "add rax, rdx"], [212, "mov eax, [rbp+rax*4+fd]"], [213, "test eax, eax"], [214, "jns loc_4029AB"], [215, "call ___errno_location"], [216, "mov eax, [rax]"], [217, "cmp eax, 0Dh"], [218, "jnz short loc_402969"], [219, "call sub_40250F"], [220, "mov [rbp+var_14], eax"], [221, "cmp [rbp+var_14], 0"], [222, "jle short loc_402955"], [223, "mov eax, [rbp+var_14]"], [224, "mov esi, eax"], [225, "mov edi, offset aProcSysKernelP_0"], [226, "mov eax, 0"], [227, "call _printf"], [228, "mov edi, offset aTheValueMustBe"], [229, "call _puts"], [230, "mov edi, offset aPermissionDeni"], [231, "call _puts"], [232, "mov eax, 0FFFFFFFFh"], [233, "jmp locret_402B17"], [234, "call ___errno_location"], [235, "mov eax, [rax]"], [236, "mov edi, eax"], [237, "call _strerror"], [238, "mov rcx, rax"], [239, "mov eax, [rbp+var_4]"], [240, "cdqe"], [241, "mov edx, [rbp+rax*4+var_30]"], [242, "mov eax, [rbp+var_8]"], [243, "cdqe"], [244, "mov eax, ds:dword_407220[rax*4]"], [245, "mov esi, eax"], [246, "mov edi, offset aErrorOpeningCo"], [247, "mov eax, 0"], [248, "call _printf"], [249, "mov eax, 0FFFFFFFFh"], [250, "jmp locret_402B17"], [251, "nop"], [252, "add [rbp+var_4], 1"], [253, "cmp [rbp+var_4], 4"], [254, "jle loc_402855"], [255, "add [rbp+var_8], 1"], [256, "mov eax, cs:dword_407210"], [257, "cmp [rbp+var_8], eax"], [258, "jl loc_402849"], [259, "mov edi, offset aSleeping1Secon"], [260, "call _puts"], [261, "mov edi, 1"], [262, "call _sleep"], [263, "mov [rbp+var_8], 0"], [264, "jmp loc_402AF9"], [265, "mov eax, [rbp+var_8]"], [266, "mov esi, eax"], [267, "mov edi, offset aPackageD"], [268, "mov eax, 0"], [269, "call _printf"], [270, "mov [rbp+var_4], 0"], [271, "jmp loc_402AEB"], [272, "mov eax, [rbp+var_8]"], [273, "movsxd rdx, eax"], [274, "mov eax, [rbp+var_4]"], [275, "cdqe"], [276, "shl rax, 4"], [277, "add rax, rdx"], [278, "mov eax, [rbp+rax*4+fd]"], [279, "cmp eax, 0FFFFFFFFh"], [280, "jz loc_402AE7"], [281, "mov eax, [rbp+var_8]"], [282, "movsxd rdx, eax"], [283, "mov eax, [rbp+var_4]"], [284, "cdqe"], [285, "shl rax, 4"], [286, "add rax, rdx"], [287, "mov eax, [rbp+rax*4+fd]"], [288, "lea rcx, [rbp+buf]"], [289, "mov edx, 8"], [290, "mov rsi, rcx"], [291, "mov edi, eax"], [292, "call _read"], [293, "mov eax, [rbp+var_8]"], [294, "movsxd rdx, eax"], [295, "mov eax, [rbp+var_4]"], [296, "cdqe"], [297, "shl rax, 4"], [298, "add rax, rdx"], [299, "mov eax, [rbp+rax*4+fd]"], [300, "mov edi, eax"], [301, "call _close"], [302, "lea rdx, [rbp+var_A030]"], [303, "mov eax, [rbp+var_4]"], [304, "cdqe"], [305, "shl rax, 0Dh"], [306, "add rdx, rax"], [307, "mov rax, [rbp+buf]"], [308, "pxor xmm1, xmm1"], [309, "cvtsi2sd xmm1, rax"], [310, "mov eax, [rbp+var_4]"], [311, "cdqe"], [312, "movsd xmm0, [rbp+rax*8+var_C1A0]"], [313, "mulsd xmm1, xmm0"], [314, "movq rcx, xmm1"], [315, "mov eax, [rbp+var_4]"], [316, "movsxd rsi, eax"], [317, "mov rax, rsi"], [318, "shl rax, 4"], [319, "sub rax, rsi"], [320, "add rax, rax"], [321, "add rax, 407100h"], [322, "movq xmm0, rcx"], [323, "mov rsi, rax"], [324, "mov edi, offset aSEnergyConsume"], [325, "mov eax, 1"], [326, "call _printf"], [327, "add [rbp+var_4], 1"], [328, "cmp [rbp+var_4], 4"], [329, "jle loc_402A0C"], [330, "add [rbp+var_8], 1"], [331, "mov eax, cs:dword_407210"], [332, "cmp [rbp+var_8], eax"], [333, "jl loc_4029EC"], [334, "mov edi, 0Ah"], [335, "call _putchar"], [336, "mov eax, 0"], [337, "leave"], [338, "retn"]], "data_dep": [[9, 8], [10, 9], [11, 10], [19, 9], [21, 19], [24, 9], [25, 24], [29, 27], [29, 159], [30, 29], [31, 30], [32, 31], [33, 30], [33, 32], [34, 33], [35, 30], [36, 34], [38, 36], [41, 40], [43, 41], [45, 44], [46, 45], [47, 46], [48, 35], [49, 27], [49, 159], [51, 49], [52, 51], [52, 48], [53, 45], [55, 53], [58, 159], [58, 27], [60, 58], [61, 27], [61, 159], [62, 61], [63, 62], [64, 63], [65, 62], [65, 64], [66, 65], [67, 66], [68, 67], [72, 45], [73, 72], [75, 27], [75, 159], [76, 75], [77, 76], [78, 77], [79, 76], [79, 78], [80, 79], [81, 76], [82, 80], [84, 82], [87, 86], [89, 87], [91, 90], [92, 91], [93, 92], [94, 81], [95, 159], [95, 27], [97, 95], [98, 94], [98, 97], [99, 91], [101, 99], [104, 27], [104, 159], [106, 104], [107, 106], [111, 91], [112, 111], [114, 27], [114, 159], [115, 114], [116, 115], [117, 116], [118, 115], [118, 117], [119, 118], [120, 115], [121, 119], [123, 121], [126, 125], [128, 126], [130, 129], [131, 130], [132, 131], [133, 120], [134, 27], [134, 159], [136, 134], [137, 133], [137, 136], [138, 130], [140, 138], [143, 137], [144, 159], [144, 27], [146, 144], [147, 146], [147, 143], [148, 147], [152, 130], [153, 152], [159, 27], [159, 159], [160, 27], [160, 159], [161, 160], [166, 162], [166, 255], [167, 166], [168, 164], [168, 252], [170, 168], [171, 170], [171, 167], [172, 171], [173, 179], [173, 171], [176, 173], [179, 178], [180, 164], [180, 252], [182, 180], [184, 182], [185, 164], [185, 252], [187, 185], [188, 187], [189, 188], [190, 162], [190, 255], [193, 179], [193, 190], [197, 193], [199, 255], [199, 162], [200, 199], [201, 252], [201, 164], [202, 201], [203, 202], [204, 203], [204, 200], [205, 204], [205, 198], [206, 162], [206, 255], [207, 206], [208, 164], [208, 252], [210, 208], [211, 210], [211, 207], [212, 211], [212, 172], [213, 212], [214, 213], [216, 215], [217, 216], [218, 217], [220, 219], [221, 220], [222, 221], [223, 220], [224, 223], [235, 234], [236, 235], [238, 237], [239, 252], [239, 164], [241, 239], [242, 162], [242, 255], [245, 244], [252, 252], [252, 164], [253, 164], [253, 252], [254, 253], [255, 162], [255, 255], [257, 162], [257, 256], [257, 255], [258, 257], [265, 330], [265, 263], [266, 265], [272, 263], [272, 330], [273, 272], [274, 270], [274, 327], [276, 274], [277, 276], [277, 273], [278, 172], [278, 277], [279, 278], [280, 279], [281, 330], [281, 263], [282, 281], [283, 270], [283, 327], [285, 283], [286, 282], [286, 285], [287, 172], [287, 286], [288, 200], [288, 314], [288, 62], [290, 288], [291, 287], [293, 330], [293, 263], [294, 293], [295, 270], [295, 327], [297, 295], [298, 297], [298, 294], [299, 298], [299, 172], [300, 299], [302, 294], [303, 270], [303, 327], [305, 303], [306, 305], [306, 302], [309, 307], [309, 308], [310, 270], [310, 327], [312, 310], [313, 309], [313, 312], [314, 313], [315, 270], [315, 327], [316, 315], [317, 316], [318, 317], [319, 316], [319, 318], [320, 319], [321, 320], [322, 314], [323, 321], [327, 270], [327, 327], [328, 327], [328, 270], [329, 328], [330, 330], [330, 263], [332, 263], [332, 331], [332, 330], [333, 332], [338, 16], [338, 336], [338, 249], [338, 232]]}
|
static int cram_decode_seq(cram_fd *fd, cram_container *c, cram_slice *s,
cram_block *blk, cram_record *cr, SAM_hdr *bfd,
int cf, char *seq, char *qual,
int has_MD, int has_NM) {
int prev_pos = 0, f, r = 0, out_sz = 1;
int seq_pos = 1;
int cig_len = 0, ref_pos = cr->apos;
int32_t fn, i32;
enum cigar_op cig_op = BAM_CMATCH;
uint32_t *cigar = s->cigar;
uint32_t ncigar = s->ncigar;
uint32_t cigar_alloc = s->cigar_alloc;
uint32_t nm = 0;
int32_t md_dist = 0;
int orig_aux = 0;
int decode_md = fd->decode_md && s->ref && !has_MD;
int decode_nm = fd->decode_md && s->ref && !has_NM;
uint32_t ds = c->comp_hdr->data_series;
if ((ds & CRAM_QS) && !(cf & CRAM_FLAG_PRESERVE_QUAL_SCORES)) {
memset(qual, 255, cr->len);
}
if (cr->cram_flags & CRAM_FLAG_NO_SEQ)
decode_md = decode_nm = 0;
if (decode_md) {
orig_aux = BLOCK_SIZE(s->aux_blk);
BLOCK_APPEND(s->aux_blk, "MDZ", 3);
}
if (ds & CRAM_FN) {
if (!c->comp_hdr->codecs[DS_FN]) return -1;
r |= c->comp_hdr->codecs[DS_FN]->decode(s,c->comp_hdr->codecs[DS_FN],
blk, (char *)&fn, &out_sz);
if (r) return r;
} else {
fn = 0;
}
ref_pos--; // count from 0
cr->cigar = ncigar;
if (!(ds & (CRAM_FC | CRAM_FP)))
goto skip_cigar;
for (f = 0; f < fn; f++) {
int32_t pos = 0;
char op;
if (ncigar+2 >= cigar_alloc) {
cigar_alloc = cigar_alloc ? cigar_alloc*2 : 1024;
s->cigar = cigar;
if (!(cigar = realloc(cigar, cigar_alloc * sizeof(*cigar))))
return -1;
}
if (ds & CRAM_FC) {
if (!c->comp_hdr->codecs[DS_FC]) return -1;
r |= c->comp_hdr->codecs[DS_FC]->decode(s,
c->comp_hdr->codecs[DS_FC],
blk,
&op, &out_sz);
if (r) return r;
}
if (!(ds & CRAM_FP))
continue;
if (!c->comp_hdr->codecs[DS_FP]) return -1;
r |= c->comp_hdr->codecs[DS_FP]->decode(s,
c->comp_hdr->codecs[DS_FP],
blk,
(char *)&pos, &out_sz);
if (r) return r;
pos += prev_pos;
if (pos <= 0) {
fprintf(stderr, "Error: feature position %d before start of read.\n",
pos);
return -1;
}
if (pos > seq_pos) {
if (pos > cr->len+1)
return -1;
if (s->ref && cr->ref_id >= 0) {
if (ref_pos + pos - seq_pos > bfd->ref[cr->ref_id].len) {
static int whinged = 0;
int rlen;
if (!whinged)
fprintf(stderr, "Ref pos outside of ref "
"sequence boundary\n");
whinged = 1;
rlen = bfd->ref[cr->ref_id].len - ref_pos;
// May miss MD/NM cases where both seq/ref are N, but this is a
// malformed cram file anyway.
if (rlen > 0) {
memcpy(&seq[seq_pos-1],
&s->ref[ref_pos - s->ref_start +1], rlen);
if ((pos - seq_pos) - rlen > 0)
memset(&seq[seq_pos-1+rlen], 'N',
(pos - seq_pos) - rlen);
} else {
memset(&seq[seq_pos-1], 'N', cr->len - seq_pos + 1);
}
if (md_dist >= 0)
md_dist += pos - seq_pos;
} else {
// 'N' in both ref and seq is also mismatch for NM/MD
if (decode_md || decode_nm) {
int i;
for (i = 0; i < pos - seq_pos; i++) {
// FIXME: not N, but nt16 lookup == 15?
char base = s->ref[ref_pos - s->ref_start + 1 + i];
if (base == 'N') {
add_md_char(s, decode_md,
s->ref[ref_pos - s->ref_start + 1 + i],
&md_dist);
nm++;
} else {
md_dist++;
}
seq[seq_pos-1+i] = base;
}
} else {
memcpy(&seq[seq_pos-1], &s->ref[ref_pos - s->ref_start +1],
pos - seq_pos);
}
}
}
#ifdef USE_X
if (cig_len && cig_op != BAM_CBASE_MATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
cig_op = BAM_CBASE_MATCH;
#else
if (cig_len && cig_op != BAM_CMATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
cig_op = BAM_CMATCH;
#endif
cig_len += pos - seq_pos;
ref_pos += pos - seq_pos;
seq_pos = pos;
}
prev_pos = pos;
if (!(ds & CRAM_FC))
goto skip_cigar;
switch(op) {
case 'S': { // soft clip: IN
int32_t out_sz2 = 1;
int have_sc = 0;
if (cig_len) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
switch (CRAM_MAJOR_VERS(fd->version)) {
case 1:
if (ds & CRAM_IN) {
r |= c->comp_hdr->codecs[DS_IN]
? c->comp_hdr->codecs[DS_IN]
->decode(s, c->comp_hdr->codecs[DS_IN],
blk,
cr->len ? &seq[pos-1] : NULL,
&out_sz2)
: (seq[pos-1] = 'N', out_sz2 = 1, 0);
have_sc = 1;
}
break;
case 2:
default:
if (ds & CRAM_SC) {
r |= c->comp_hdr->codecs[DS_SC]
? c->comp_hdr->codecs[DS_SC]
->decode(s, c->comp_hdr->codecs[DS_SC],
blk,
cr->len ? &seq[pos-1] : NULL,
&out_sz2)
: (seq[pos-1] = 'N', out_sz2 = 1, 0);
have_sc = 1;
}
break;
// default:
// r |= c->comp_hdr->codecs[DS_BB]
// ? c->comp_hdr->codecs[DS_BB]
// ->decode(s, c->comp_hdr->codecs[DS_BB],
// blk, &seq[pos-1], &out_sz2)
// : (seq[pos-1] = 'N', out_sz2 = 1, 0);
}
if (have_sc) {
if (r) return r;
cigar[ncigar++] = (out_sz2<<4) + BAM_CSOFT_CLIP;
cig_op = BAM_CSOFT_CLIP;
seq_pos += out_sz2;
}
break;
}
case 'X': { // Substitution; BS
unsigned char base;
#ifdef USE_X
if (cig_len && cig_op != BAM_CBASE_MISMATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_BS) {
if (!c->comp_hdr->codecs[DS_BS]) return -1;
r |= c->comp_hdr->codecs[DS_BS]
->decode(s, c->comp_hdr->codecs[DS_BS], blk,
(char *)&base, &out_sz);
if (pos-1 < cr->len)
seq[pos-1] = 'N'; // FIXME look up BS=base value
}
cig_op = BAM_CBASE_MISMATCH;
#else
int ref_base;
if (cig_len && cig_op != BAM_CMATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_BS) {
if (!c->comp_hdr->codecs[DS_BS]) return -1;
r |= c->comp_hdr->codecs[DS_BS]
->decode(s, c->comp_hdr->codecs[DS_BS], blk,
(char *)&base, &out_sz);
if (r) return -1;
if (ref_pos >= bfd->ref[cr->ref_id].len || !s->ref) {
if (pos-1 < cr->len)
seq[pos-1] = c->comp_hdr->
substitution_matrix[fd->L1['N']][base];
if (decode_md || decode_nm) {
if (md_dist >= 0 && decode_md)
BLOCK_APPEND_UINT(s->aux_blk, md_dist);
md_dist = -1;
nm--;
}
} else {
unsigned char ref_call = ref_pos <= s->ref_end
? (uc)s->ref[ref_pos - s->ref_start +1]
: 'N';
ref_base = fd->L1[ref_call];
if (pos-1 < cr->len)
seq[pos-1] = c->comp_hdr->
substitution_matrix[ref_base][base];
add_md_char(s, decode_md, ref_call, &md_dist);
}
}
cig_op = BAM_CMATCH;
#endif
nm++;
cig_len++;
seq_pos++;
ref_pos++;
break;
}
case 'D': { // Deletion; DL
if (cig_len && cig_op != BAM_CDEL) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_DL) {
if (!c->comp_hdr->codecs[DS_DL]) return -1;
r |= c->comp_hdr->codecs[DS_DL]
->decode(s, c->comp_hdr->codecs[DS_DL], blk,
(char *)&i32, &out_sz);
if (r) return r;
if (decode_md || decode_nm) {
if (md_dist >= 0 && decode_md)
BLOCK_APPEND_UINT(s->aux_blk, md_dist);
if (ref_pos + i32 <= bfd->ref[cr->ref_id].len) {
if (decode_md) {
BLOCK_APPEND_CHAR(s->aux_blk, '^');
BLOCK_APPEND(s->aux_blk,
&s->ref[ref_pos - s->ref_start +1],
i32);
md_dist = 0;
}
nm += i32;
} else {
uint32_t dlen;
if (bfd->ref[cr->ref_id].len >= ref_pos) {
if (decode_md) {
BLOCK_APPEND_CHAR(s->aux_blk, '^');
BLOCK_APPEND(s->aux_blk,
&s->ref[ref_pos - s->ref_start+1],
bfd->ref[cr->ref_id].len-ref_pos);
BLOCK_APPEND_UINT(s->aux_blk, 0);
}
dlen = i32 - (bfd->ref[cr->ref_id].len - ref_pos);
nm += i32 - dlen;
} else {
dlen = i32;
}
md_dist = -1;
}
}
cig_op = BAM_CDEL;
cig_len += i32;
ref_pos += i32;
//printf(" %d: DL = %d (ret %d)\n", f, i32, r);
}
break;
}
case 'I': { // Insertion (several bases); IN
int32_t out_sz2 = 1;
if (cig_len && cig_op != BAM_CINS) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_IN) {
if (!c->comp_hdr->codecs[DS_IN]) return -1;
r |= c->comp_hdr->codecs[DS_IN]
->decode(s, c->comp_hdr->codecs[DS_IN], blk,
cr->len ? &seq[pos-1] : NULL,
&out_sz2);
if (r) return r;
cig_op = BAM_CINS;
cig_len += out_sz2;
seq_pos += out_sz2;
nm += out_sz2;
//printf(" %d: IN(I) = %.*s (ret %d, out_sz %d)\n", f, out_sz2, dat, r, out_sz2);
}
break;
}
case 'i': { // Insertion (single base); BA
if (cig_len && cig_op != BAM_CINS) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_BA) {
if (!c->comp_hdr->codecs[DS_BA]) return -1;
r |= c->comp_hdr->codecs[DS_BA]
->decode(s, c->comp_hdr->codecs[DS_BA], blk,
cr->len ? &seq[pos-1] : NULL,
&out_sz);
if (r) return r;
}
cig_op = BAM_CINS;
cig_len++;
seq_pos++;
nm++;
break;
}
case 'b': { // Several bases
int32_t len = 1;
if (cig_len && cig_op != BAM_CMATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_BB) {
if (!c->comp_hdr->codecs[DS_BB]) return -1;
r |= c->comp_hdr->codecs[DS_BB]
->decode(s, c->comp_hdr->codecs[DS_BB], blk,
cr->len ? &seq[pos-1] : NULL,
&len);
if (r) return r;
if (decode_md || decode_nm) {
int x;
if (md_dist >= 0 && decode_md)
BLOCK_APPEND_UINT(s->aux_blk, md_dist);
for (x = 0; x < len; x++) {
if (x && decode_md)
BLOCK_APPEND_UINT(s->aux_blk, 0);
if (ref_pos+x >= bfd->ref[cr->ref_id].len || !s->ref) {
md_dist = -1;
break;
} else {
if (decode_md) {
char r = s->ref[ref_pos+x-s->ref_start +1];
BLOCK_APPEND_CHAR(s->aux_blk, r);
}
}
}
nm += x;
}
}
cig_op = BAM_CMATCH;
cig_len+=len;
seq_pos+=len;
ref_pos+=len;
//prev_pos+=len;
break;
}
case 'q': { // Several quality values
int32_t len = 1;
if (cig_len && cig_op != BAM_CMATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_QQ) {
if (!c->comp_hdr->codecs[DS_QQ]) return -1;
r |= c->comp_hdr->codecs[DS_QQ]
->decode(s, c->comp_hdr->codecs[DS_QQ], blk,
(char *)&qual[pos-1], &len);
if (r) return r;
}
cig_op = BAM_CMATCH;
cig_len+=len;
seq_pos+=len;
ref_pos+=len;
//prev_pos+=len;
break;
}
case 'B': { // Read base; BA, QS
#ifdef USE_X
if (cig_len && cig_op != BAM_CBASE_MISMATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
#else
if (cig_len && cig_op != BAM_CMATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
#endif
if (ds & CRAM_BA) {
if (!c->comp_hdr->codecs[DS_BA]) return -1;
r |= c->comp_hdr->codecs[DS_BA]
->decode(s, c->comp_hdr->codecs[DS_BA], blk,
cr->len ? &seq[pos-1] : NULL,
&out_sz);
if (decode_md || decode_nm) {
if (md_dist >= 0 && decode_md)
BLOCK_APPEND_UINT(s->aux_blk, md_dist);
if (ref_pos >= bfd->ref[cr->ref_id].len || !s->ref) {
md_dist = -1;
} else {
if (decode_md)
BLOCK_APPEND_CHAR(s->aux_blk,
s->ref[ref_pos-s->ref_start +1]);
nm++;
md_dist = 0;
}
}
}
if (ds & CRAM_QS) {
if (!c->comp_hdr->codecs[DS_QS]) return -1;
r |= c->comp_hdr->codecs[DS_QS]
->decode(s, c->comp_hdr->codecs[DS_QS], blk,
(char *)&qual[pos-1], &out_sz);
}
#ifdef USE_X
cig_op = BAM_CBASE_MISMATCH;
#else
cig_op = BAM_CMATCH;
#endif
cig_len++;
seq_pos++;
ref_pos++;
//printf(" %d: BA/QS(B) = %c/%d (ret %d)\n", f, i32, qc, r);
break;
}
case 'Q': { // Quality score; QS
if (ds & CRAM_QS) {
if (!c->comp_hdr->codecs[DS_QS]) return -1;
r |= c->comp_hdr->codecs[DS_QS]
->decode(s, c->comp_hdr->codecs[DS_QS], blk,
(char *)&qual[pos-1], &out_sz);
//printf(" %d: QS = %d (ret %d)\n", f, qc, r);
}
break;
}
case 'H': { // hard clip; HC
if (cig_len && cig_op != BAM_CHARD_CLIP) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_HC) {
if (!c->comp_hdr->codecs[DS_HC]) return -1;
r |= c->comp_hdr->codecs[DS_HC]
->decode(s, c->comp_hdr->codecs[DS_HC], blk,
(char *)&i32, &out_sz);
if (r) return r;
cig_op = BAM_CHARD_CLIP;
cig_len += i32;
}
break;
}
case 'P': { // padding; PD
if (cig_len && cig_op != BAM_CPAD) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_PD) {
if (!c->comp_hdr->codecs[DS_PD]) return -1;
r |= c->comp_hdr->codecs[DS_PD]
->decode(s, c->comp_hdr->codecs[DS_PD], blk,
(char *)&i32, &out_sz);
if (r) return r;
cig_op = BAM_CPAD;
cig_len += i32;
}
break;
}
case 'N': { // Ref skip; RS
if (cig_len && cig_op != BAM_CREF_SKIP) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
if (ds & CRAM_RS) {
if (!c->comp_hdr->codecs[DS_RS]) return -1;
r |= c->comp_hdr->codecs[DS_RS]
->decode(s, c->comp_hdr->codecs[DS_RS], blk,
(char *)&i32, &out_sz);
if (r) return r;
cig_op = BAM_CREF_SKIP;
cig_len += i32;
ref_pos += i32;
}
break;
}
default:
fprintf(stderr, "Error: Unknown feature code '%c'\n", op);
return -1;
}
}
if (!(ds & CRAM_FC))
goto skip_cigar;
/* An implicit match op for any unaccounted for bases */
if ((ds & CRAM_FN) && cr->len >= seq_pos) {
if (s->ref) {
if (ref_pos + cr->len - seq_pos + 1 > bfd->ref[cr->ref_id].len) {
static int whinged = 0;
int rlen;
if (!whinged)
fprintf(stderr, "Ref pos outside of ref sequence boundary\n");
whinged = 1;
rlen = bfd->ref[cr->ref_id].len - ref_pos;
// May miss MD/NM cases where both seq/ref are N, but this is a
// malformed cram file anyway.
if (rlen > 0) {
if (seq_pos-1 + rlen < cr->len)
memcpy(&seq[seq_pos-1],
&s->ref[ref_pos - s->ref_start +1], rlen);
if ((cr->len - seq_pos + 1) - rlen > 0)
memset(&seq[seq_pos-1+rlen], 'N',
(cr->len - seq_pos + 1) - rlen);
} else {
if (cr->len - seq_pos + 1 > 0)
memset(&seq[seq_pos-1], 'N', cr->len - seq_pos + 1);
}
if (md_dist >= 0)
md_dist += cr->len - seq_pos + 1;
} else {
if (cr->len - seq_pos + 1 > 0) {
if (decode_md || decode_nm) {
int i;
for (i = 0; i < cr->len - seq_pos + 1; i++) {
// FIXME: not N, but nt16 lookup == 15?
char base = s->ref[ref_pos - s->ref_start + 1 + i];
if (base == 'N') {
add_md_char(s, decode_md,
s->ref[ref_pos - s->ref_start + 1 + i],
&md_dist);
nm++;
} else {
md_dist++;
}
seq[seq_pos-1+i] = base;
}
} else {
memcpy(&seq[seq_pos-1], &s->ref[ref_pos - s->ref_start +1],
cr->len - seq_pos + 1);
}
}
ref_pos += cr->len - seq_pos + 1;
}
}
if (ncigar+1 >= cigar_alloc) {
cigar_alloc = cigar_alloc ? cigar_alloc*2 : 1024;
s->cigar = cigar;
if (!(cigar = realloc(cigar, cigar_alloc * sizeof(*cigar))))
return -1;
}
#ifdef USE_X
if (cig_len && cig_op != BAM_CBASE_MATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
cig_op = BAM_CBASE_MATCH;
#else
if (cig_len && cig_op != BAM_CMATCH) {
cigar[ncigar++] = (cig_len<<4) + cig_op;
cig_len = 0;
}
cig_op = BAM_CMATCH;
#endif
cig_len += cr->len - seq_pos+1;
}
skip_cigar:
if ((ds & CRAM_FN) && decode_md) {
if (md_dist >= 0)
BLOCK_APPEND_UINT(s->aux_blk, md_dist);
}
if (cig_len) {
if (ncigar >= cigar_alloc) {
cigar_alloc = cigar_alloc ? cigar_alloc*2 : 1024;
s->cigar = cigar;
if (!(cigar = realloc(cigar, cigar_alloc * sizeof(*cigar))))
return -1;
}
cigar[ncigar++] = (cig_len<<4) + cig_op;
}
cr->ncigar = ncigar - cr->cigar;
cr->aend = ref_pos;
//printf("2: %.*s %d .. %d\n", cr->name_len, DSTRING_STR(name_ds) + cr->name, cr->apos, ref_pos);
if (ds & CRAM_MQ) {
if (!c->comp_hdr->codecs[DS_MQ]) return -1;
r |= c->comp_hdr->codecs[DS_MQ]
->decode(s, c->comp_hdr->codecs[DS_MQ], blk,
(char *)&cr->mqual, &out_sz);
} else {
cr->mqual = 40;
}
if ((ds & CRAM_QS) && (cf & CRAM_FLAG_PRESERVE_QUAL_SCORES)) {
int32_t out_sz2 = cr->len;
if (ds & CRAM_QS) {
if (!c->comp_hdr->codecs[DS_QS]) return -1;
r |= c->comp_hdr->codecs[DS_QS]
->decode(s, c->comp_hdr->codecs[DS_QS], blk,
qual, &out_sz2);
}
}
s->cigar = cigar;
s->cigar_alloc = cigar_alloc;
s->ncigar = ncigar;
if (cr->cram_flags & CRAM_FLAG_NO_SEQ)
cr->len = 0;
if (decode_md) {
BLOCK_APPEND_CHAR(s->aux_blk, '\0'); // null terminate MD:Z:
cr->aux_size += BLOCK_SIZE(s->aux_blk) - orig_aux;
}
if (decode_nm) {
char buf[7];
buf[0] = 'N'; buf[1] = 'M'; buf[2] = 'I';
buf[3] = (nm>> 0) & 0xff;
buf[4] = (nm>> 8) & 0xff;
buf[5] = (nm>>16) & 0xff;
buf[6] = (nm>>24) & 0xff;
BLOCK_APPEND(s->aux_blk, buf, 7);
cr->aux_size += 7;
}
return r;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_464509", "function_addr": 4605193, "binary_name": "fc3225fc170dc373bc36dcbfa801c68d9803a67c0fe0b996774e17328efb624c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 128h"], [4, "mov [rbp+var_108], rdi"], [5, "mov [rbp+var_110], rsi"], [6, "mov [rbp+var_118], rdx"], [7, "mov [rbp+var_120], rcx"], [8, "mov [rbp+var_128], r8"], [9, "mov [rbp+var_130], r9"], [10, "mov [rbp+var_14], 0"], [11, "mov [rbp+var_1C], 0"], [12, "mov [rbp+var_C4], 1"], [13, "mov [rbp+var_20], 1"], [14, "mov [rbp+var_24], 0"], [15, "mov rax, [rbp+var_128]"], [16, "mov eax, [rax+18h]"], [17, "mov [rbp+var_28], eax"], [18, "mov [rbp+var_2C], 0"], [19, "mov rax, [rbp+var_118]"], [20, "mov rax, [rax+30h]"], [21, "mov [rbp+ptr], rax"], [22, "mov rax, [rbp+var_118]"], [23, "mov eax, [rax+3Ch]"], [24, "mov [rbp+var_3C], eax"], [25, "mov rax, [rbp+var_118]"], [26, "mov eax, [rax+38h]"], [27, "mov [rbp+var_40], eax"], [28, "mov [rbp+var_44], 0"], [29, "mov [rbp+var_D0], 0"], [30, "mov [rbp+var_48], 0"], [31, "mov rax, [rbp+var_108]"], [32, "mov eax, [rax+200h]"], [33, "test eax, eax"], [34, "jz short loc_4645EB"], [35, "mov rax, [rbp+var_118]"], [36, "mov rax, [rax+0A8h]"], [37, "test rax, rax"], [38, "jz short loc_4645EB"], [39, "cmp [rbp+arg_18], 0"], [40, "jnz short loc_4645EB"], [41, "mov eax, 1"], [42, "jmp short loc_4645F0"], [43, "mov eax, 0"], [44, "mov [rbp+var_4C], eax"], [45, "mov rax, [rbp+var_108]"], [46, "mov eax, [rax+200h]"], [47, "test eax, eax"], [48, "jz short loc_464624"], [49, "mov rax, [rbp+var_118]"], [50, "mov rax, [rax+0A8h]"], [51, "test rax, rax"], [52, "jz short loc_464624"], [53, "cmp [rbp+arg_20], 0"], [54, "jnz short loc_464624"], [55, "mov eax, 1"], [56, "jmp short loc_464629"], [57, "mov eax, 0"], [58, "mov [rbp+var_50], eax"], [59, "mov rax, [rbp+var_110]"], [60, "mov rax, [rax+40h]"], [61, "mov eax, [rax+410h]"], [62, "mov [rbp+var_64], eax"], [63, "mov eax, [rbp+var_64]"], [64, "and eax, 80h"], [65, "test eax, eax"], [66, "jz short loc_464674"], [67, "mov eax, [rbp+arg_0]"], [68, "and eax, 1"], [69, "test eax, eax"], [70, "jnz short loc_464674"], [71, "mov rax, [rbp+var_128]"], [72, "mov eax, [rax+14h]"], [73, "movsxd rdx, eax"], [74, "mov rax, [rbp+s]"], [75, "mov esi, 0FFh"], [76, "mov rdi, rax"], [77, "call _memset"], [78, "mov rax, [rbp+var_128]"], [79, "mov eax, [rax+10h]"], [80, "and eax, 8"], [81, "test eax, eax"], [82, "jz short loc_464692"], [83, "mov [rbp+var_50], 0"], [84, "mov eax, [rbp+var_50]"], [85, "mov [rbp+var_4C], eax"], [86, "cmp [rbp+var_4C], 0"], [87, "jz loc_46482F"], [88, "mov rax, [rbp+var_118]"], [89, "mov rax, [rax+88h]"], [90, "mov rax, [rax+30h]"], [91, "mov [rbp+var_48], eax"], [92, "jmp loc_46479D"], [93, "mov rax, [rbp+var_118]"], [94, "mov rax, [rax+88h]"], [95, "mov rax, [rax+28h]"], [96, "test rax, rax"], [97, "jz short loc_464745"], [98, "mov rax, [rbp+var_118]"], [99, "mov rax, [rax+88h]"], [100, "mov rax, [rax+28h]"], [101, "test rax, rax"], [102, "js short loc_4646EF"], [103, "pxor xmm0, xmm0"], [104, "cvtsi2sd xmm0, rax"], [105, "jmp short loc_464708"], [106, "mov rdx, rax"], [107, "shr rdx, 1"], [108, "and eax, 1"], [109, "or rdx, rax"], [110, "pxor xmm0, xmm0"], [111, "cvtsi2sd xmm0, rdx"], [112, "addsd xmm0, xmm0"], [113, "movsd xmm1, cs:qword_48A258"], [114, "mulsd xmm0, xmm1"], [115, "comisd xmm0, cs:qword_48A260"], [116, "jnb short loc_464725"], [117, "cvttsd2si rax, xmm0"], [118, "jmp short loc_46474A"], [119, "movsd xmm1, cs:qword_48A260"], [120, "subsd xmm0, xmm1"], [121, "cvttsd2si rax, xmm0"], [122, "mov rdx, 8000000000000000h"], [123, "xor rax, rdx"], [124, "jmp short loc_46474A"], [125, "mov eax, 400h"], [126, "mov rdx, [rbp+var_118]"], [127, "mov rdx, [rdx+88h]"], [128, "mov [rdx+28h], rax"], [129, "mov rax, [rbp+var_118]"], [130, "mov rax, [rax+88h]"], [131, "mov rdx, [rax+28h]"], [132, "mov rax, [rbp+var_118]"], [133, "mov rax, [rax+88h]"], [134, "mov rax, [rax+20h]"], [135, "mov rcx, [rbp+var_118]"], [136, "mov rbx, [rcx+88h]"], [137, "mov rsi, rdx"], [138, "mov rdi, rax"], [139, "call _realloc"], [140, "mov [rbx+20h], rax"], [141, "mov rax, [rbp+var_118]"], [142, "mov rax, [rax+88h]"], [143, "mov rdx, [rax+28h]"], [144, "mov rax, [rbp+var_118]"], [145, "mov rax, [rax+88h]"], [146, "mov rax, [rax+30h]"], [147, "add rax, 3"], [148, "cmp rdx, rax"], [149, "jbe loc_4646B6"], [150, "mov rax, [rbp+var_118]"], [151, "mov rax, [rax+88h]"], [152, "mov rdx, [rax+20h]"], [153, "mov rax, [rbp+var_118]"], [154, "mov rax, [rax+88h]"], [155, "mov rax, [rax+30h]"], [156, "add rax, rdx"], [157, "mov edx, 3"], [158, "mov esi, offset aMdz"], [159, "mov rdi, rax"], [160, "call _memcpy"], [161, "mov rax, [rbp+var_118]"], [162, "mov rax, [rax+88h]"], [163, "mov rdx, [rax+30h]"], [164, "mov rax, [rbp+var_118]"], [165, "mov rax, [rax+88h]"], [166, "add rdx, 3"], [167, "mov [rax+30h], rdx"], [168, "mov eax, [rbp+var_64]"], [169, "and eax, 200h"], [170, "test eax, eax"], [171, "jz short loc_4648BA"], [172, "mov rax, [rbp+var_110]"], [173, "mov rax, [rax+40h]"], [174, "mov rax, [rax+350h]"], [175, "test rax, rax"], [176, "jnz short loc_46485C"], [177, "mov eax, 0FFFFFFFFh"], [178, "jmp loc_467EB3"], [179, "mov rax, [rbp+var_110]"], [180, "mov rax, [rax+40h]"], [181, "mov rax, [rax+350h]"], [182, "mov r9, [rax+18h]"], [183, "mov rax, [rbp+var_110]"], [184, "mov rax, [rax+40h]"], [185, "mov rsi, [rax+350h]"], [186, "lea rdi, [rbp+var_C4]"], [187, "lea rcx, [rbp+var_C8]"], [188, "mov rdx, [rbp+var_120]"], [189, "mov rax, [rbp+var_118]"], [190, "mov r8, rdi"], [191, "mov rdi, rax"], [192, "call r9"], [193, "or [rbp+var_1C], eax"], [194, "cmp [rbp+var_1C], 0"], [195, "jz short loc_4648C4"], [196, "mov eax, [rbp+var_1C]"], [197, "jmp loc_467EB3"], [198, "mov [rbp+var_C8], 0"], [199, "sub [rbp+var_28], 1"], [200, "mov edx, [rbp+var_3C]"], [201, "mov rax, [rbp+var_128]"], [202, "mov [rax+54h], edx"], [203, "mov eax, [rbp+var_64]"], [204, "and eax, 104h"], [205, "test eax, eax"], [206, "jz loc_467736"], [207, "mov [rbp+var_18], 0"], [208, "jmp loc_4672E3"], [209, "mov [rbp+var_D4], 0"], [210, "mov eax, [rbp+var_3C]"], [211, "add eax, 2"], [212, "cmp [rbp+var_40], eax"], [213, "ja short loc_464959"], [214, "cmp [rbp+var_40], 0"], [215, "jz short loc_464913"], [216, "mov eax, [rbp+var_40]"], [217, "add eax, eax"], [218, "jmp short loc_464918"], [219, "mov eax, 400h"], [220, "mov [rbp+var_40], eax"], [221, "mov rax, [rbp+var_118]"], [222, "mov rdx, [rbp+ptr]"], [223, "mov [rax+30h], rdx"], [224, "mov eax, [rbp+var_40]"], [225, "lea rdx, ds:0[rax*4]"], [226, "mov rax, [rbp+ptr]"], [227, "mov rsi, rdx"], [228, "mov rdi, rax"], [229, "call _realloc"], [230, "mov [rbp+ptr], rax"], [231, "cmp [rbp+ptr], 0"], [232, "jnz short loc_464959"], [233, "mov eax, 0FFFFFFFFh"], [234, "jmp loc_467EB3"], [235, "mov eax, [rbp+var_64]"], [236, "and eax, 100h"], [237, "test eax, eax"], [238, "jz short loc_4649E4"], [239, "mov rax, [rbp+var_110]"], [240, "mov rax, [rax+40h]"], [241, "mov rax, [rax+358h]"], [242, "test rax, rax"], [243, "jnz short loc_464986"], [244, "mov eax, 0FFFFFFFFh"], [245, "jmp loc_467EB3"], [246, "mov rax, [rbp+var_110]"], [247, "mov rax, [rax+40h]"], [248, "mov rax, [rax+358h]"], [249, "mov r9, [rax+18h]"], [250, "mov rax, [rbp+var_110]"], [251, "mov rax, [rax+40h]"], [252, "mov rsi, [rax+358h]"], [253, "lea rdi, [rbp+var_C4]"], [254, "lea rcx, [rbp+var_D5]"], [255, "mov rdx, [rbp+var_120]"], [256, "mov rax, [rbp+var_118]"], [257, "mov r8, rdi"], [258, "mov rdi, rax"], [259, "call r9"], [260, "or [rbp+var_1C], eax"], [261, "cmp [rbp+var_1C], 0"], [262, "jz short loc_4649E4"], [263, "mov eax, [rbp+var_1C]"], [264, "jmp loc_467EB3"], [265, "mov eax, [rbp+var_64]"], [266, "and eax, 4"], [267, "test eax, eax"], [268, "jz loc_4672C9"], [269, "mov rax, [rbp+var_110]"], [270, "mov rax, [rax+40h]"], [271, "mov rax, [rax+360h]"], [272, "test rax, rax"], [273, "jnz short loc_464A13"], [274, "mov eax, 0FFFFFFFFh"], [275, "jmp loc_467EB3"], [276, "mov rax, [rbp+var_110]"], [277, "mov rax, [rax+40h]"], [278, "mov rax, [rax+360h]"], [279, "mov r9, [rax+18h]"], [280, "mov rax, [rbp+var_110]"], [281, "mov rax, [rax+40h]"], [282, "mov rsi, [rax+360h]"], [283, "lea rdi, [rbp+var_C4]"], [284, "lea rcx, [rbp+var_D4]"], [285, "mov rdx, [rbp+var_120]"], [286, "mov rax, [rbp+var_118]"], [287, "mov r8, rdi"], [288, "mov rdi, rax"], [289, "call r9"], [290, "or [rbp+var_1C], eax"], [291, "cmp [rbp+var_1C], 0"], [292, "jz short loc_464A71"], [293, "mov eax, [rbp+var_1C]"], [294, "jmp loc_467EB3"], [295, "mov edx, [rbp+var_D4]"], [296, "mov eax, [rbp+var_14]"], [297, "add eax, edx"], [298, "mov [rbp+var_D4], eax"], [299, "mov eax, [rbp+var_D4]"], [300, "test eax, eax"], [301, "jg short loc_464AB5"], [302, "mov edx, [rbp+var_D4]"], [303, "mov rax, cs:stderr"], [304, "mov esi, offset aErrorFeaturePo"], [305, "mov rdi, rax"], [306, "mov eax, 0"], [307, "call _fprintf"], [308, "mov eax, 0FFFFFFFFh"], [309, "jmp loc_467EB3"], [310, "mov eax, [rbp+var_D4]"], [311, "cmp [rbp+var_20], eax"], [312, "jge loc_464E3B"], [313, "mov rax, [rbp+var_128]"], [314, "mov eax, [rax+14h]"], [315, "lea edx, [rax+1]"], [316, "mov eax, [rbp+var_D4]"], [317, "cmp edx, eax"], [318, "jge short loc_464AE5"], [319, "mov eax, 0FFFFFFFFh"], [320, "jmp loc_467EB3"], [321, "mov rax, [rbp+var_118]"], [322, "mov rax, [rax+0A8h]"], [323, "test rax, rax"], [324, "jz loc_464DD7"], [325, "mov rax, [rbp+var_128]"], [326, "mov eax, [rax+8]"], [327, "test eax, eax"], [328, "js loc_464DD7"], [329, "mov edx, [rbp+var_D4]"], [330, "mov eax, [rbp+var_28]"], [331, "add eax, edx"], [332, "sub eax, [rbp+var_20]"], [333, "mov ecx, eax"], [334, "mov rax, [rbp+var_130]"], [335, "mov rdx, [rax+40h]"], [336, "mov rax, [rbp+var_128]"], [337, "mov eax, [rax+8]"], [338, "cdqe"], [339, "shl rax, 5"], [340, "add rax, rdx"], [341, "mov eax, [rax+8]"], [342, "cmp ecx, eax"], [343, "jbe loc_464C9C"], [344, "mov eax, cs:dword_499908"], [345, "test eax, eax"], [346, "jnz short loc_464B6F"], [347, "mov rax, cs:stderr"], [348, "mov rcx, rax"], [349, "mov edx, 29h "], [350, "mov esi, 1"], [351, "mov edi, offset aRefPosOutsideO"], [352, "call _fwrite"], [353, "mov cs:dword_499908, 1"], [354, "mov rax, [rbp+var_130]"], [355, "mov rdx, [rax+40h]"], [356, "mov rax, [rbp+var_128]"], [357, "mov eax, [rax+8]"], [358, "cdqe"], [359, "shl rax, 5"], [360, "add rax, rdx"], [361, "mov eax, [rax+8]"], [362, "mov edx, [rbp+var_28]"], [363, "sub eax, edx"], [364, "mov [rbp+var_74], eax"], [365, "cmp [rbp+var_74], 0"], [366, "jle loc_464C3D"], [367, "mov eax, [rbp+var_74]"], [368, "cdqe"], [369, "mov rdx, [rbp+var_118]"], [370, "mov rcx, [rdx+0A8h]"], [371, "mov rdx, [rbp+var_118]"], [372, "mov esi, [rdx+0B0h]"], [373, "mov edx, [rbp+var_28]"], [374, "sub edx, esi"], [375, "movsxd rdx, edx"], [376, "add rdx, 1"], [377, "lea rsi, [rcx+rdx]"], [378, "mov edx, [rbp+var_20]"], [379, "movsxd rdx, edx"], [380, "lea rcx, [rdx-1]"], [381, "mov rdx, [rbp+arg_8]"], [382, "add rcx, rdx"], [383, "mov rdx, rax"], [384, "mov rdi, rcx"], [385, "call _memcpy"], [386, "mov eax, [rbp+var_D4]"], [387, "sub eax, [rbp+var_20]"], [388, "sub eax, [rbp+var_74]"], [389, "test eax, eax"], [390, "jle short loc_464C70"], [391, "mov eax, [rbp+var_D4]"], [392, "sub eax, [rbp+var_20]"], [393, "sub eax, [rbp+var_74]"], [394, "cdqe"], [395, "mov edx, [rbp+var_20]"], [396, "lea ecx, [rdx-1]"], [397, "mov edx, [rbp+var_74]"], [398, "add edx, ecx"], [399, "movsxd rcx, edx"], [400, "mov rdx, [rbp+arg_8]"], [401, "add rcx, rdx"], [402, "mov rdx, rax"], [403, "mov esi, 4Eh "], [404, "mov rdi, rcx"], [405, "call _memset"], [406, "jmp short loc_464C70"], [407, "mov rax, [rbp+var_128]"], [408, "mov eax, [rax+14h]"], [409, "sub eax, [rbp+var_20]"], [410, "add eax, 1"], [411, "cdqe"], [412, "mov edx, [rbp+var_20]"], [413, "movsxd rdx, edx"], [414, "lea rcx, [rdx-1]"], [415, "mov rdx, [rbp+arg_8]"], [416, "add rcx, rdx"], [417, "mov rdx, rax"], [418, "mov esi, 4Eh "], [419, "mov rdi, rcx"], [420, "call _memset"], [421, "mov eax, [rbp+var_D0]"], [422, "test eax, eax"], [423, "js loc_464DD7"], [424, "mov eax, [rbp+var_D4]"], [425, "sub eax, [rbp+var_20]"], [426, "mov edx, eax"], [427, "mov eax, [rbp+var_D0]"], [428, "add eax, edx"], [429, "mov [rbp+var_D0], eax"], [430, "jmp loc_464DD7"], [431, "cmp [rbp+var_4C], 0"], [432, "jnz short loc_464CAC"], [433, "cmp [rbp+var_50], 0"], [434, "jz loc_464D85"], [435, "mov [rbp+var_54], 0"], [436, "jmp loc_464D71"], [437, "mov rax, [rbp+var_118]"], [438, "mov rdx, [rax+0A8h]"], [439, "mov rax, [rbp+var_118]"], [440, "mov ecx, [rax+0B0h]"], [441, "mov eax, [rbp+var_28]"], [442, "sub eax, ecx"], [443, "lea ecx, [rax+1]"], [444, "mov eax, [rbp+var_54]"], [445, "add eax, ecx"], [446, "cdqe"], [447, "add rax, rdx"], [448, "movzx eax, byte ptr [rax]"], [449, "mov [rbp+var_6D], al"], [450, "cmp [rbp+var_6D], 4Eh "], [451, "jnz short loc_464D43"], [452, "mov rax, [rbp+var_118]"], [453, "mov rdx, [rax+0A8h]"], [454, "mov rax, [rbp+var_118]"], [455, "mov ecx, [rax+0B0h]"], [456, "mov eax, [rbp+var_28]"], [457, "sub eax, ecx"], [458, "lea ecx, [rax+1]"], [459, "mov eax, [rbp+var_54]"], [460, "add eax, ecx"], [461, "cdqe"], [462, "add rax, rdx"], [463, "movzx eax, byte ptr [rax]"], [464, "movsx edx, al"], [465, "lea rcx, [rbp+var_D0]"], [466, "mov esi, [rbp+var_4C]"], [467, "mov rax, [rbp+var_118]"], [468, "mov rdi, rax"], [469, "call sub_464239"], [470, "add [rbp+var_44], 1"], [471, "jmp short loc_464D52"], [472, "mov eax, [rbp+var_D0]"], [473, "add eax, 1"], [474, "mov [rbp+var_D0], eax"], [475, "mov eax, [rbp+var_20]"], [476, "lea edx, [rax-1]"], [477, "mov eax, [rbp+var_54]"], [478, "add eax, edx"], [479, "movsxd rdx, eax"], [480, "mov rax, [rbp+arg_8]"], [481, "add rdx, rax"], [482, "movzx eax, [rbp+var_6D]"], [483, "mov [rdx], al"], [484, "add [rbp+var_54], 1"], [485, "mov eax, [rbp+var_D4]"], [486, "sub eax, [rbp+var_20]"], [487, "cmp [rbp+var_54], eax"], [488, "jl loc_464CB8"], [489, "jmp short loc_464DD7"], [490, "mov eax, [rbp+var_D4]"], [491, "sub eax, [rbp+var_20]"], [492, "cdqe"], [493, "mov rdx, [rbp+var_118]"], [494, "mov rcx, [rdx+0A8h]"], [495, "mov rdx, [rbp+var_118]"], [496, "mov esi, [rdx+0B0h]"], [497, "mov edx, [rbp+var_28]"], [498, "sub edx, esi"], [499, "movsxd rdx, edx"], [500, "add rdx, 1"], [501, "lea rsi, [rcx+rdx]"], [502, "mov edx, [rbp+var_20]"], [503, "movsxd rdx, edx"], [504, "lea rcx, [rdx-1]"], [505, "mov rdx, [rbp+arg_8]"], [506, "add rcx, rdx"], [507, "mov rdx, rax"], [508, "mov rdi, rcx"], [509, "call _memcpy"], [510, "cmp [rbp+var_24], 0"], [511, "jz short loc_464E13"], [512, "cmp [rbp+var_2C], 0"], [513, "jz short loc_464E13"], [514, "mov eax, [rbp+var_24]"], [515, "shl eax, 4"], [516, "mov ecx, eax"], [517, "mov eax, [rbp+var_3C]"], [518, "lea edx, [rax+1]"], [519, "mov [rbp+var_3C], edx"], [520, "mov eax, eax"], [521, "lea rdx, ds:0[rax*4]"], [522, "mov rax, [rbp+ptr]"], [523, "add rax, rdx"], [524, "mov edx, [rbp+var_2C]"], [525, "add edx, ecx"], [526, "mov [rax], edx"], [527, "mov [rbp+var_24], 0"], [528, "mov [rbp+var_2C], 0"], [529, "mov eax, [rbp+var_D4]"], [530, "sub eax, [rbp+var_20]"], [531, "add [rbp+var_24], eax"], [532, "mov eax, [rbp+var_D4]"], [533, "sub eax, [rbp+var_20]"], [534, "add [rbp+var_28], eax"], [535, "mov eax, [rbp+var_D4]"], [536, "mov [rbp+var_20], eax"], [537, "mov eax, [rbp+var_D4]"], [538, "mov [rbp+var_14], eax"], [539, "mov eax, [rbp+var_64]"], [540, "and eax, 100h"], [541, "test eax, eax"], [542, "jz loc_467739"], [543, "movzx eax, [rbp+var_D5]"], [544, "movsx eax, al"], [545, "sub eax, 42h "], [546, "cmp eax, 2Fh"], [547, "ja def_464E74"], [548, "mov eax, eax"], [549, "mov rax, ds:jpt_464E74[rax*8]"], [550, "jmp rax"], [551, "mov [rbp+var_DC], 1"], [552, "mov [rbp+var_58], 0"], [553, "cmp [rbp+var_24], 0"], [554, "jz short loc_464EBD"], [555, "mov eax, [rbp+var_24]"], [556, "shl eax, 4"], [557, "mov ecx, eax"], [558, "mov eax, [rbp+var_3C]"], [559, "lea edx, [rax+1]"], [560, "mov [rbp+var_3C], edx"], [561, "mov eax, eax"], [562, "lea rdx, ds:0[rax*4]"], [563, "mov rax, [rbp+ptr]"], [564, "add rax, rdx"], [565, "mov edx, [rbp+var_2C]"], [566, "add edx, ecx"], [567, "mov [rax], edx"], [568, "mov [rbp+var_24], 0"], [569, "mov rax, [rbp+var_108]"], [570, "mov eax, [rax+0Ch]"], [571, "sar eax, 8"], [572, "cmp eax, 1"], [573, "jnz loc_464F9F"], [574, "mov eax, [rbp+var_64]"], [575, "and eax, 800h"], [576, "test eax, eax"], [577, "jz loc_465068"], [578, "mov rax, [rbp+var_110]"], [579, "mov rax, [rax+40h]"], [580, "mov rax, [rax+2E8h]"], [581, "test rax, rax"], [582, "jz short loc_464F6B"], [583, "mov rax, [rbp+var_110]"], [584, "mov rax, [rax+40h]"], [585, "mov rax, [rax+2E8h]"], [586, "mov r9, [rax+18h]"], [587, "mov rax, [rbp+var_128]"], [588, "mov eax, [rax+14h]"], [589, "test eax, eax"], [590, "jz short loc_464F34"], [591, "mov eax, [rbp+var_D4]"], [592, "cdqe"], [593, "lea rdx, [rax-1]"], [594, "mov rax, [rbp+arg_8]"], [595, "lea rcx, [rdx+rax]"], [596, "jmp short loc_464F39"], [597, "mov ecx, 0"], [598, "mov rax, [rbp+var_110]"], [599, "mov rax, [rax+40h]"], [600, "mov rsi, [rax+2E8h]"], [601, "lea rdi, [rbp+var_DC]"], [602, "mov rdx, [rbp+var_120]"], [603, "mov rax, [rbp+var_118]"], [604, "mov r8, rdi"], [605, "mov rdi, rax"], [606, "call r9"], [607, "jmp short loc_464F90"], [608, "mov eax, [rbp+var_D4]"], [609, "cdqe"], [610, "lea rdx, [rax-1]"], [611, "mov rax, [rbp+arg_8]"], [612, "add rax, rdx"], [613, "mov byte ptr [rax], 4Eh "], [614, "mov [rbp+var_DC], 1"], [615, "mov eax, 0"], [616, "or [rbp+var_1C], eax"], [617, "mov [rbp+var_58], 1"], [618, "jmp loc_465068"], [619, "mov eax, [rbp+var_64]"], [620, "and eax, 2000000h"], [621, "test eax, eax"], [622, "jz loc_46506B"], [623, "mov rax, [rbp+var_110]"], [624, "mov rax, [rax+40h]"], [625, "mov rax, [rax+2F0h]"], [626, "test rax, rax"], [627, "jz short loc_465037"], [628, "mov rax, [rbp+var_110]"], [629, "mov rax, [rax+40h]"], [630, "mov rax, [rax+2F0h]"], [631, "mov r9, [rax+18h]"], [632, "mov rax, [rbp+var_128]"], [633, "mov eax, [rax+14h]"], [634, "test eax, eax"], [635, "jz short loc_465000"], [636, "mov eax, [rbp+var_D4]"], [637, "cdqe"], [638, "lea rdx, [rax-1]"], [639, "mov rax, [rbp+arg_8]"], [640, "lea rcx, [rdx+rax]"], [641, "jmp short loc_465005"], [642, "mov ecx, 0"], [643, "mov rax, [rbp+var_110]"], [644, "mov rax, [rax+40h]"], [645, "mov rsi, [rax+2F0h]"], [646, "lea rdi, [rbp+var_DC]"], [647, "mov rdx, [rbp+var_120]"], [648, "mov rax, [rbp+var_118]"], [649, "mov r8, rdi"], [650, "mov rdi, rax"], [651, "call r9"], [652, "jmp short loc_46505C"], [653, "mov eax, [rbp+var_D4]"], [654, "cdqe"], [655, "lea rdx, [rax-1]"], [656, "mov rax, [rbp+arg_8]"], [657, "add rax, rdx"], [658, "mov byte ptr [rax], 4Eh "], [659, "mov [rbp+var_DC], 1"], [660, "mov eax, 0"], [661, "or [rbp+var_1C], eax"], [662, "mov [rbp+var_58], 1"], [663, "jmp short loc_46506B"], [664, "nop"], [665, "jmp short loc_46506C"], [666, "nop"], [667, "cmp [rbp+var_58], 0"], [668, "jz loc_4672CC"], [669, "cmp [rbp+var_1C], 0"], [670, "jz short loc_465084"], [671, "mov eax, [rbp+var_1C]"], [672, "jmp loc_467EB3"], [673, "mov eax, [rbp+var_DC]"], [674, "shl eax, 4"], [675, "lea ecx, [rax+4]"], [676, "mov eax, [rbp+var_3C]"], [677, "lea edx, [rax+1]"], [678, "mov [rbp+var_3C], edx"], [679, "mov eax, eax"], [680, "lea rdx, ds:0[rax*4]"], [681, "mov rax, [rbp+ptr]"], [682, "add rax, rdx"], [683, "mov edx, ecx"], [684, "mov [rax], edx"], [685, "mov [rbp+var_2C], 4"], [686, "mov eax, [rbp+var_DC]"], [687, "add [rbp+var_20], eax"], [688, "jmp loc_4672DF"], [689, "cmp [rbp+var_24], 0"], [690, "jz short loc_4650FF"], [691, "cmp [rbp+var_2C], 0"], [692, "jz short loc_4650FF"], [693, "mov eax, [rbp+var_24]"], [694, "shl eax, 4"], [695, "mov ecx, eax"], [696, "mov eax, [rbp+var_3C]"], [697, "lea edx, [rax+1]"], [698, "mov [rbp+var_3C], edx"], [699, "mov eax, eax"], [700, "lea rdx, ds:0[rax*4]"], [701, "mov rax, [rbp+ptr]"], [702, "add rax, rdx"], [703, "mov edx, [rbp+var_2C]"], [704, "add edx, ecx"], [705, "mov [rax], edx"], [706, "mov [rbp+var_24], 0"], [707, "mov eax, [rbp+var_64]"], [708, "and eax, 400h"], [709, "test eax, eax"], [710, "jz loc_4654F2"], [711, "mov rax, [rbp+var_110]"], [712, "mov rax, [rax+40h]"], [713, "mov rax, [rax+378h]"], [714, "test rax, rax"], [715, "jnz short loc_465130"], [716, "mov eax, 0FFFFFFFFh"], [717, "jmp loc_467EB3"], [718, "mov rax, [rbp+var_110]"], [719, "mov rax, [rax+40h]"], [720, "mov rax, [rax+378h]"], [721, "mov r9, [rax+18h]"], [722, "mov rax, [rbp+var_110]"], [723, "mov rax, [rax+40h]"], [724, "mov rsi, [rax+378h]"], [725, "lea rdi, [rbp+var_C4]"], [726, "lea rcx, [rbp+var_DD]"], [727, "mov rdx, [rbp+var_120]"], [728, "mov rax, [rbp+var_118]"], [729, "mov r8, rdi"], [730, "mov rdi, rax"], [731, "call r9"], [732, "or [rbp+var_1C], eax"], [733, "cmp [rbp+var_1C], 0"], [734, "jz short loc_465190"], [735, "mov eax, 0FFFFFFFFh"], [736, "jmp loc_467EB3"], [737, "mov rax, [rbp+var_130]"], [738, "mov rdx, [rax+40h]"], [739, "mov rax, [rbp+var_128]"], [740, "mov eax, [rax+8]"], [741, "cdqe"], [742, "shl rax, 5"], [743, "add rax, rdx"], [744, "mov edx, [rax+8]"], [745, "mov eax, [rbp+var_28]"], [746, "cmp edx, eax"], [747, "jbe short loc_4651CF"], [748, "mov rax, [rbp+var_118]"], [749, "mov rax, [rax+0A8h]"], [750, "test rax, rax"], [751, "jnz loc_465405"], [752, "mov rax, [rbp+var_128]"], [753, "mov edx, [rax+14h]"], [754, "mov eax, [rbp+var_D4]"], [755, "cmp edx, eax"], [756, "jl short loc_465235"], [757, "mov rax, [rbp+var_110]"], [758, "mov rsi, [rax+40h]"], [759, "mov rax, [rbp+var_108]"], [760, "movzx eax, byte ptr [rax+828Eh]"], [761, "movzx eax, al"], [762, "movzx edx, [rbp+var_DD]"], [763, "movzx ecx, dl"], [764, "mov edx, [rbp+var_D4]"], [765, "movsxd rdx, edx"], [766, "lea rdi, [rdx-1]"], [767, "mov rdx, [rbp+arg_8]"], [768, "add rdx, rdi"], [769, "movsxd rcx, ecx"], [770, "cdqe"], [771, "shl rax, 2"], [772, "add rax, rsi"], [773, "add rax, rcx"], [774, "add rax, 38h "], [775, "movzx eax, byte ptr [rax]"], [776, "mov [rdx], al"], [777, "cmp [rbp+var_4C], 0"], [778, "jnz short loc_465245"], [779, "cmp [rbp+var_50], 0"], [780, "jz loc_4654F1"], [781, "mov eax, [rbp+var_D0]"], [782, "test eax, eax"], [783, "js loc_4653F2"], [784, "cmp [rbp+var_4C], 0"], [785, "jz loc_4653F2"], [786, "jmp loc_465349"], [787, "mov rax, [rbp+var_118]"], [788, "mov rax, [rax+88h]"], [789, "mov rax, [rax+28h]"], [790, "test rax, rax"], [791, "jz short loc_4652F1"], [792, "mov rax, [rbp+var_118]"], [793, "mov rax, [rax+88h]"], [794, "mov rax, [rax+28h]"], [795, "test rax, rax"], [796, "js short loc_46529B"], [797, "pxor xmm0, xmm0"], [798, "cvtsi2sd xmm0, rax"], [799, "jmp short loc_4652B4"], [800, "mov rdx, rax"], [801, "shr rdx, 1"], [802, "and eax, 1"], [803, "or rdx, rax"], [804, "pxor xmm0, xmm0"], [805, "cvtsi2sd xmm0, rdx"], [806, "addsd xmm0, xmm0"], [807, "movsd xmm1, cs:qword_48A258"], [808, "mulsd xmm0, xmm1"], [809, "comisd xmm0, cs:qword_48A260"], [810, "jnb short loc_4652D1"], [811, "cvttsd2si rax, xmm0"], [812, "jmp short loc_4652F6"], [813, "movsd xmm1, cs:qword_48A260"], [814, "subsd xmm0, xmm1"], [815, "cvttsd2si rax, xmm0"], [816, "mov rdx, 8000000000000000h"], [817, "xor rax, rdx"], [818, "jmp short loc_4652F6"], [819, "mov eax, 400h"], [820, "mov rdx, [rbp+var_118]"], [821, "mov rdx, [rdx+88h]"], [822, "mov [rdx+28h], rax"], [823, "mov rax, [rbp+var_118]"], [824, "mov rax, [rax+88h]"], [825, "mov rdx, [rax+28h]"], [826, "mov rax, [rbp+var_118]"], [827, "mov rax, [rax+88h]"], [828, "mov rax, [rax+20h]"], [829, "mov rcx, [rbp+var_118]"], [830, "mov rbx, [rcx+88h]"], [831, "mov rsi, rdx"], [832, "mov rdi, rax"], [833, "call _realloc"], [834, "mov [rbx+20h], rax"], [835, "mov rax, [rbp+var_118]"], [836, "mov rax, [rax+88h]"], [837, "mov rdx, [rax+28h]"], [838, "mov rax, [rbp+var_118]"], [839, "mov rax, [rax+88h]"], [840, "mov rax, [rax+30h]"], [841, "add rax, 0Bh"], [842, "cmp rdx, rax"], [843, "jbe loc_465262"], [844, "mov rax, [rbp+var_118]"], [845, "mov rax, [rax+88h]"], [846, "mov rdx, [rax+20h]"], [847, "mov rax, [rbp+var_118]"], [848, "mov rax, [rax+88h]"], [849, "mov rax, [rax+30h]"], [850, "add rax, rdx"], [851, "mov [rbp+var_98], rax"], [852, "mov eax, [rbp+var_D0]"], [853, "mov edx, eax"], [854, "mov rax, [rbp+var_98]"], [855, "mov esi, edx"], [856, "mov rdi, rax"], [857, "call sub_4602E4"], [858, "sub rax, [rbp+var_98]"], [859, "mov rdx, rax"], [860, "mov rax, [rbp+var_118]"], [861, "mov rax, [rax+88h]"], [862, "mov rcx, [rax+30h]"], [863, "mov rax, [rbp+var_118]"], [864, "mov rax, [rax+88h]"], [865, "add rdx, rcx"], [866, "mov [rax+30h], rdx"], [867, "mov [rbp+var_D0], 0FFFFFFFFh"], [868, "sub [rbp+var_44], 1"], [869, "jmp loc_4654F1"], [870, "mov rax, [rbp+var_118]"], [871, "mov eax, [rax+0B4h]"], [872, "cmp [rbp+var_28], eax"], [873, "jg short loc_465445"], [874, "mov rax, [rbp+var_118]"], [875, "mov rdx, [rax+0A8h]"], [876, "mov rax, [rbp+var_118]"], [877, "mov ecx, [rax+0B0h]"], [878, "mov eax, [rbp+var_28]"], [879, "sub eax, ecx"], [880, "cdqe"], [881, "add rax, 1"], [882, "add rax, rdx"], [883, "movzx eax, byte ptr [rax]"], [884, "jmp short loc_46544A"], [885, "mov eax, 4Eh "], [886, "mov [rbp+var_8A], al"], [887, "movzx eax, [rbp+var_8A]"], [888, "mov rdx, [rbp+var_108]"], [889, "cdqe"], [890, "movzx eax, byte ptr [rdx+rax+8240h]"], [891, "movzx eax, al"], [892, "mov [rbp+var_90], eax"], [893, "mov rax, [rbp+var_128]"], [894, "mov edx, [rax+14h]"], [895, "mov eax, [rbp+var_D4]"], [896, "cmp edx, eax"], [897, "jl short loc_4654CC"], [898, "mov rax, [rbp+var_110]"], [899, "mov rsi, [rax+40h]"], [900, "movzx eax, [rbp+var_DD]"], [901, "movzx eax, al"], [902, "mov edx, [rbp+var_D4]"], [903, "movsxd rdx, edx"], [904, "lea rcx, [rdx-1]"], [905, "mov rdx, [rbp+arg_8]"], [906, "add rdx, rcx"], [907, "movsxd rcx, eax"], [908, "mov eax, [rbp+var_90]"], [909, "cdqe"], [910, "shl rax, 2"], [911, "add rax, rsi"], [912, "add rax, rcx"], [913, "add rax, 38h "], [914, "movzx eax, byte ptr [rax]"], [915, "mov [rdx], al"], [916, "movzx eax, [rbp+var_8A]"], [917, "movsx edx, al"], [918, "lea rcx, [rbp+var_D0]"], [919, "mov esi, [rbp+var_4C]"], [920, "mov rax, [rbp+var_118]"], [921, "mov rdi, rax"], [922, "call sub_464239"], [923, "jmp short loc_4654F2"], [924, "nop"], [925, "mov [rbp+var_2C], 0"], [926, "add [rbp+var_44], 1"], [927, "add [rbp+var_24], 1"], [928, "add [rbp+var_20], 1"], [929, "add [rbp+var_28], 1"], [930, "jmp loc_4672DF"], [931, "cmp [rbp+var_24], 0"], [932, "jz short loc_46554A"], [933, "cmp [rbp+var_2C], 2"], [934, "jz short loc_46554A"], [935, "mov eax, [rbp+var_24]"], [936, "shl eax, 4"], [937, "mov ecx, eax"], [938, "mov eax, [rbp+var_3C]"], [939, "lea edx, [rax+1]"], [940, "mov [rbp+var_3C], edx"], [941, "mov eax, eax"], [942, "lea rdx, ds:0[rax*4]"], [943, "mov rax, [rbp+ptr]"], [944, "add rax, rdx"], [945, "mov edx, [rbp+var_2C]"], [946, "add edx, ecx"], [947, "mov [rax], edx"], [948, "mov [rbp+var_24], 0"], [949, "mov eax, [rbp+var_64]"], [950, "and eax, 10h"], [951, "test eax, eax"], [952, "jz loc_4672CF"], [953, "mov rax, [rbp+var_110]"], [954, "mov rax, [rax+40h]"], [955, "mov rax, [rax+368h]"], [956, "test rax, rax"], [957, "jnz short loc_465579"], [958, "mov eax, 0FFFFFFFFh"], [959, "jmp loc_467EB3"], [960, "mov rax, [rbp+var_110]"], [961, "mov rax, [rax+40h]"], [962, "mov rax, [rax+368h]"], [963, "mov r9, [rax+18h]"], [964, "mov rax, [rbp+var_110]"], [965, "mov rax, [rax+40h]"], [966, "mov rsi, [rax+368h]"], [967, "lea rdi, [rbp+var_C4]"], [968, "lea rcx, [rbp+var_CC]"], [969, "mov rdx, [rbp+var_120]"], [970, "mov rax, [rbp+var_118]"], [971, "mov r8, rdi"], [972, "mov rdi, rax"], [973, "call r9"], [974, "or [rbp+var_1C], eax"], [975, "cmp [rbp+var_1C], 0"], [976, "jz short loc_4655D7"], [977, "mov eax, [rbp+var_1C]"], [978, "jmp loc_467EB3"], [979, "cmp [rbp+var_4C], 0"], [980, "jnz short loc_4655E7"], [981, "cmp [rbp+var_50], 0"], [982, "jz loc_46607C"], [983, "mov eax, [rbp+var_D0]"], [984, "test eax, eax"], [985, "js loc_465794"], [986, "cmp [rbp+var_4C], 0"], [987, "jz loc_465794"], [988, "jmp loc_4656EB"], [989, "mov rax, [rbp+var_118]"], [990, "mov rax, [rax+88h]"], [991, "mov rax, [rax+28h]"], [992, "test rax, rax"], [993, "jz short loc_465693"], [994, "mov rax, [rbp+var_118]"], [995, "mov rax, [rax+88h]"], [996, "mov rax, [rax+28h]"], [997, "test rax, rax"], [998, "js short loc_46563D"], [999, "pxor xmm0, xmm0"], [1000, "cvtsi2sd xmm0, rax"], [1001, "jmp short loc_465656"], [1002, "mov rdx, rax"], [1003, "shr rdx, 1"], [1004, "and eax, 1"], [1005, "or rdx, rax"], [1006, "pxor xmm0, xmm0"], [1007, "cvtsi2sd xmm0, rdx"], [1008, "addsd xmm0, xmm0"], [1009, "movsd xmm1, cs:qword_48A258"], [1010, "mulsd xmm0, xmm1"], [1011, "comisd xmm0, cs:qword_48A260"], [1012, "jnb short loc_465673"], [1013, "cvttsd2si rax, xmm0"], [1014, "jmp short loc_465698"], [1015, "movsd xmm1, cs:qword_48A260"], [1016, "subsd xmm0, xmm1"], [1017, "cvttsd2si rax, xmm0"], [1018, "mov rdx, 8000000000000000h"], [1019, "xor rax, rdx"], [1020, "jmp short loc_465698"], [1021, "mov eax, 400h"], [1022, "mov rdx, [rbp+var_118]"], [1023, "mov rdx, [rdx+88h]"], [1024, "mov [rdx+28h], rax"], [1025, "mov rax, [rbp+var_118]"], [1026, "mov rax, [rax+88h]"], [1027, "mov rdx, [rax+28h]"], [1028, "mov rax, [rbp+var_118]"], [1029, "mov rax, [rax+88h]"], [1030, "mov rax, [rax+20h]"], [1031, "mov rcx, [rbp+var_118]"], [1032, "mov rbx, [rcx+88h]"], [1033, "mov rsi, rdx"], [1034, "mov rdi, rax"], [1035, "call _realloc"], [1036, "mov [rbx+20h], rax"], [1037, "mov rax, [rbp+var_118]"], [1038, "mov rax, [rax+88h]"], [1039, "mov rdx, [rax+28h]"], [1040, "mov rax, [rbp+var_118]"], [1041, "mov rax, [rax+88h]"], [1042, "mov rax, [rax+30h]"], [1043, "add rax, 0Bh"], [1044, "cmp rdx, rax"], [1045, "jbe loc_465604"], [1046, "mov rax, [rbp+var_118]"], [1047, "mov rax, [rax+88h]"], [1048, "mov rdx, [rax+20h]"], [1049, "mov rax, [rbp+var_118]"], [1050, "mov rax, [rax+88h]"], [1051, "mov rax, [rax+30h]"], [1052, "add rax, rdx"], [1053, "mov [rbp+var_A0], rax"], [1054, "mov eax, [rbp+var_D0]"], [1055, "mov edx, eax"], [1056, "mov rax, [rbp+var_A0]"], [1057, "mov esi, edx"], [1058, "mov rdi, rax"], [1059, "call sub_4602E4"], [1060, "sub rax, [rbp+var_A0]"], [1061, "mov rdx, rax"], [1062, "mov rax, [rbp+var_118]"], [1063, "mov rax, [rax+88h]"], [1064, "mov rcx, [rax+30h]"], [1065, "mov rax, [rbp+var_118]"], [1066, "mov rax, [rax+88h]"], [1067, "add rdx, rcx"], [1068, "mov [rax+30h], rdx"], [1069, "mov edx, [rbp+var_CC]"], [1070, "mov eax, [rbp+var_28]"], [1071, "add eax, edx"], [1072, "mov ecx, eax"], [1073, "mov rax, [rbp+var_130]"], [1074, "mov rdx, [rax+40h]"], [1075, "mov rax, [rbp+var_128]"], [1076, "mov eax, [rax+8]"], [1077, "cdqe"], [1078, "shl rax, 5"], [1079, "add rax, rdx"], [1080, "mov eax, [rax+8]"], [1081, "cmp ecx, eax"], [1082, "ja loc_465AF5"], [1083, "cmp [rbp+var_4C], 0"], [1084, "jz loc_465AE7"], [1085, "jmp loc_4658C0"], [1086, "mov rax, [rbp+var_118]"], [1087, "mov rax, [rax+88h]"], [1088, "mov rax, [rax+28h]"], [1089, "test rax, rax"], [1090, "jz short loc_465868"], [1091, "mov rax, [rbp+var_118]"], [1092, "mov rax, [rax+88h]"], [1093, "mov rax, [rax+28h]"], [1094, "test rax, rax"], [1095, "js short loc_465812"], [1096, "pxor xmm0, xmm0"], [1097, "cvtsi2sd xmm0, rax"], [1098, "jmp short loc_46582B"], [1099, "mov rdx, rax"], [1100, "shr rdx, 1"], [1101, "and eax, 1"], [1102, "or rdx, rax"], [1103, "pxor xmm0, xmm0"], [1104, "cvtsi2sd xmm0, rdx"], [1105, "addsd xmm0, xmm0"], [1106, "movsd xmm1, cs:qword_48A258"], [1107, "mulsd xmm0, xmm1"], [1108, "comisd xmm0, cs:qword_48A260"], [1109, "jnb short loc_465848"], [1110, "cvttsd2si rax, xmm0"], [1111, "jmp short loc_46586D"], [1112, "movsd xmm1, cs:qword_48A260"], [1113, "subsd xmm0, xmm1"], [1114, "cvttsd2si rax, xmm0"], [1115, "mov rdx, 8000000000000000h"], [1116, "xor rax, rdx"], [1117, "jmp short loc_46586D"], [1118, "mov eax, 400h"], [1119, "mov rdx, [rbp+var_118]"], [1120, "mov rdx, [rdx+88h]"], [1121, "mov [rdx+28h], rax"], [1122, "mov rax, [rbp+var_118]"], [1123, "mov rax, [rax+88h]"], [1124, "mov rdx, [rax+28h]"], [1125, "mov rax, [rbp+var_118]"], [1126, "mov rax, [rax+88h]"], [1127, "mov rax, [rax+20h]"], [1128, "mov rcx, [rbp+var_118]"], [1129, "mov rbx, [rcx+88h]"], [1130, "mov rsi, rdx"], [1131, "mov rdi, rax"], [1132, "call _realloc"], [1133, "mov [rbx+20h], rax"], [1134, "mov rax, [rbp+var_118]"], [1135, "mov rax, [rax+88h]"], [1136, "mov rdx, [rax+28h]"], [1137, "mov rax, [rbp+var_118]"], [1138, "mov rax, [rax+88h]"], [1139, "mov rax, [rax+30h]"], [1140, "add rax, 1"], [1141, "cmp rdx, rax"], [1142, "jbe loc_4657D9"], [1143, "mov rax, [rbp+var_118]"], [1144, "mov rax, [rax+88h]"], [1145, "mov rsi, [rax+20h]"], [1146, "mov rax, [rbp+var_118]"], [1147, "mov rax, [rax+88h]"], [1148, "mov rdx, [rax+30h]"], [1149, "lea rcx, [rdx+1]"], [1150, "mov [rax+30h], rcx"], [1151, "lea rax, [rsi+rdx]"], [1152, "mov byte ptr [rax], 5Eh "], [1153, "jmp loc_465A10"], [1154, "mov rax, [rbp+var_118]"], [1155, "mov rax, [rax+88h]"], [1156, "mov rax, [rax+28h]"], [1157, "test rax, rax"], [1158, "jz short loc_4659B8"], [1159, "mov rax, [rbp+var_118]"], [1160, "mov rax, [rax+88h]"], [1161, "mov rax, [rax+28h]"], [1162, "test rax, rax"], [1163, "js short loc_465962"], [1164, "pxor xmm0, xmm0"], [1165, "cvtsi2sd xmm0, rax"], [1166, "jmp short loc_46597B"], [1167, "mov rdx, rax"], [1168, "shr rdx, 1"], [1169, "and eax, 1"], [1170, "or rdx, rax"], [1171, "pxor xmm0, xmm0"], [1172, "cvtsi2sd xmm0, rdx"], [1173, "addsd xmm0, xmm0"], [1174, "movsd xmm1, cs:qword_48A258"], [1175, "mulsd xmm0, xmm1"], [1176, "comisd xmm0, cs:qword_48A260"], [1177, "jnb short loc_465998"], [1178, "cvttsd2si rax, xmm0"], [1179, "jmp short loc_4659BD"], [1180, "movsd xmm1, cs:qword_48A260"], [1181, "subsd xmm0, xmm1"], [1182, "cvttsd2si rax, xmm0"], [1183, "mov rdx, 8000000000000000h"], [1184, "xor rax, rdx"], [1185, "jmp short loc_4659BD"], [1186, "mov eax, 400h"], [1187, "mov rdx, [rbp+var_118]"], [1188, "mov rdx, [rdx+88h]"], [1189, "mov [rdx+28h], rax"], [1190, "mov rax, [rbp+var_118]"], [1191, "mov rax, [rax+88h]"], [1192, "mov rdx, [rax+28h]"], [1193, "mov rax, [rbp+var_118]"], [1194, "mov rax, [rax+88h]"], [1195, "mov rax, [rax+20h]"], [1196, "mov rcx, [rbp+var_118]"], [1197, "mov rbx, [rcx+88h]"], [1198, "mov rsi, rdx"], [1199, "mov rdi, rax"], [1200, "call _realloc"], [1201, "mov [rbx+20h], rax"], [1202, "mov rax, [rbp+var_118]"], [1203, "mov rax, [rax+88h]"], [1204, "mov rdx, [rax+28h]"], [1205, "mov rax, [rbp+var_118]"], [1206, "mov rax, [rax+88h]"], [1207, "mov rcx, [rax+30h]"], [1208, "mov eax, [rbp+var_CC]"], [1209, "cdqe"], [1210, "add rax, rcx"], [1211, "cmp rdx, rax"], [1212, "jbe loc_465929"], [1213, "mov eax, [rbp+var_CC]"], [1214, "cdqe"], [1215, "mov rdx, [rbp+var_118]"], [1216, "mov rcx, [rdx+0A8h]"], [1217, "mov rdx, [rbp+var_118]"], [1218, "mov esi, [rdx+0B0h]"], [1219, "mov edx, [rbp+var_28]"], [1220, "sub edx, esi"], [1221, "movsxd rdx, edx"], [1222, "add rdx, 1"], [1223, "lea rsi, [rcx+rdx]"], [1224, "mov rdx, [rbp+var_118]"], [1225, "mov rdx, [rdx+88h]"], [1226, "mov rcx, [rdx+20h]"], [1227, "mov rdx, [rbp+var_118]"], [1228, "mov rdx, [rdx+88h]"], [1229, "mov rdx, [rdx+30h]"], [1230, "add rcx, rdx"], [1231, "mov rdx, rax"], [1232, "mov rdi, rcx"], [1233, "call _memcpy"], [1234, "mov rax, [rbp+var_118]"], [1235, "mov rax, [rax+88h]"], [1236, "mov rcx, [rax+30h]"], [1237, "mov eax, [rbp+var_CC]"], [1238, "movsxd rdx, eax"], [1239, "mov rax, [rbp+var_118]"], [1240, "mov rax, [rax+88h]"], [1241, "add rdx, rcx"], [1242, "mov [rax+30h], rdx"], [1243, "mov [rbp+var_D0], 0"], [1244, "mov eax, [rbp+var_CC]"], [1245, "add [rbp+var_44], eax"], [1246, "jmp loc_46607C"], [1247, "mov rax, [rbp+var_130]"], [1248, "mov rdx, [rax+40h]"], [1249, "mov rax, [rbp+var_128]"], [1250, "mov eax, [rax+8]"], [1251, "cdqe"], [1252, "shl rax, 5"], [1253, "add rax, rdx"], [1254, "mov edx, [rax+8]"], [1255, "mov eax, [rbp+var_28]"], [1256, "cmp edx, eax"], [1257, "jb loc_466066"], [1258, "cmp [rbp+var_4C], 0"], [1259, "jz loc_466021"], [1260, "jmp loc_465C17"], [1261, "mov rax, [rbp+var_118]"], [1262, "mov rax, [rax+88h]"], [1263, "mov rax, [rax+28h]"], [1264, "test rax, rax"], [1265, "jz short loc_465BBF"], [1266, "mov rax, [rbp+var_118]"], [1267, "mov rax, [rax+88h]"], [1268, "mov rax, [rax+28h]"], [1269, "test rax, rax"], [1270, "js short loc_465B69"], [1271, "pxor xmm0, xmm0"], [1272, "cvtsi2sd xmm0, rax"], [1273, "jmp short loc_465B82"], [1274, "mov rdx, rax"], [1275, "shr rdx, 1"], [1276, "and eax, 1"], [1277, "or rdx, rax"], [1278, "pxor xmm0, xmm0"], [1279, "cvtsi2sd xmm0, rdx"], [1280, "addsd xmm0, xmm0"], [1281, "movsd xmm1, cs:qword_48A258"], [1282, "mulsd xmm0, xmm1"], [1283, "comisd xmm0, cs:qword_48A260"], [1284, "jnb short loc_465B9F"], [1285, "cvttsd2si rax, xmm0"], [1286, "jmp short loc_465BC4"], [1287, "movsd xmm1, cs:qword_48A260"], [1288, "subsd xmm0, xmm1"], [1289, "cvttsd2si rax, xmm0"], [1290, "mov rdx, 8000000000000000h"], [1291, "xor rax, rdx"], [1292, "jmp short loc_465BC4"], [1293, "mov eax, 400h"], [1294, "mov rdx, [rbp+var_118]"], [1295, "mov rdx, [rdx+88h]"], [1296, "mov [rdx+28h], rax"], [1297, "mov rax, [rbp+var_118]"], [1298, "mov rax, [rax+88h]"], [1299, "mov rdx, [rax+28h]"], [1300, "mov rax, [rbp+var_118]"], [1301, "mov rax, [rax+88h]"], [1302, "mov rax, [rax+20h]"], [1303, "mov rcx, [rbp+var_118]"], [1304, "mov rbx, [rcx+88h]"], [1305, "mov rsi, rdx"], [1306, "mov rdi, rax"], [1307, "call _realloc"], [1308, "mov [rbx+20h], rax"], [1309, "mov rax, [rbp+var_118]"], [1310, "mov rax, [rax+88h]"], [1311, "mov rdx, [rax+28h]"], [1312, "mov rax, [rbp+var_118]"], [1313, "mov rax, [rax+88h]"], [1314, "mov rax, [rax+30h]"], [1315, "add rax, 1"], [1316, "cmp rdx, rax"], [1317, "jbe loc_465B30"], [1318, "mov rax, [rbp+var_118]"], [1319, "mov rax, [rax+88h]"], [1320, "mov rsi, [rax+20h]"], [1321, "mov rax, [rbp+var_118]"], [1322, "mov rax, [rax+88h]"], [1323, "mov rdx, [rax+30h]"], [1324, "lea rcx, [rdx+1]"], [1325, "mov [rax+30h], rcx"], [1326, "lea rax, [rsi+rdx]"], [1327, "mov byte ptr [rax], 5Eh "], [1328, "jmp loc_465D67"], [1329, "mov rax, [rbp+var_118]"], [1330, "mov rax, [rax+88h]"], [1331, "mov rax, [rax+28h]"], [1332, "test rax, rax"], [1333, "jz short loc_465D0F"], [1334, "mov rax, [rbp+var_118]"], [1335, "mov rax, [rax+88h]"], [1336, "mov rax, [rax+28h]"], [1337, "test rax, rax"], [1338, "js short loc_465CB9"], [1339, "pxor xmm0, xmm0"], [1340, "cvtsi2sd xmm0, rax"], [1341, "jmp short loc_465CD2"], [1342, "mov rdx, rax"], [1343, "shr rdx, 1"], [1344, "and eax, 1"], [1345, "or rdx, rax"], [1346, "pxor xmm0, xmm0"], [1347, "cvtsi2sd xmm0, rdx"], [1348, "addsd xmm0, xmm0"], [1349, "movsd xmm1, cs:qword_48A258"], [1350, "mulsd xmm0, xmm1"], [1351, "comisd xmm0, cs:qword_48A260"], [1352, "jnb short loc_465CEF"], [1353, "cvttsd2si rax, xmm0"], [1354, "jmp short loc_465D14"], [1355, "movsd xmm1, cs:qword_48A260"], [1356, "subsd xmm0, xmm1"], [1357, "cvttsd2si rax, xmm0"], [1358, "mov rdx, 8000000000000000h"], [1359, "xor rax, rdx"], [1360, "jmp short loc_465D14"], [1361, "mov eax, 400h"], [1362, "mov rdx, [rbp+var_118]"], [1363, "mov rdx, [rdx+88h]"], [1364, "mov [rdx+28h], rax"], [1365, "mov rax, [rbp+var_118]"], [1366, "mov rax, [rax+88h]"], [1367, "mov rdx, [rax+28h]"], [1368, "mov rax, [rbp+var_118]"], [1369, "mov rax, [rax+88h]"], [1370, "mov rax, [rax+20h]"], [1371, "mov rcx, [rbp+var_118]"], [1372, "mov rbx, [rcx+88h]"], [1373, "mov rsi, rdx"], [1374, "mov rdi, rax"], [1375, "call _realloc"], [1376, "mov [rbx+20h], rax"], [1377, "mov rax, [rbp+var_118]"], [1378, "mov rax, [rax+88h]"], [1379, "mov rdx, [rax+28h]"], [1380, "mov rax, [rbp+var_118]"], [1381, "mov rax, [rax+88h]"], [1382, "mov rcx, [rax+30h]"], [1383, "mov rax, [rbp+var_130]"], [1384, "mov rsi, [rax+40h]"], [1385, "mov rax, [rbp+var_128]"], [1386, "mov eax, [rax+8]"], [1387, "cdqe"], [1388, "shl rax, 5"], [1389, "add rax, rsi"], [1390, "mov eax, [rax+8]"], [1391, "mov esi, [rbp+var_28]"], [1392, "sub eax, esi"], [1393, "mov eax, eax"], [1394, "add rax, rcx"], [1395, "cmp rdx, rax"], [1396, "jbe loc_465C80"], [1397, "mov rax, [rbp+var_130]"], [1398, "mov rdx, [rax+40h]"], [1399, "mov rax, [rbp+var_128]"], [1400, "mov eax, [rax+8]"], [1401, "cdqe"], [1402, "shl rax, 5"], [1403, "add rax, rdx"], [1404, "mov eax, [rax+8]"], [1405, "mov edx, [rbp+var_28]"], [1406, "sub eax, edx"], [1407, "mov edx, eax"], [1408, "mov rax, [rbp+var_118]"], [1409, "mov rcx, [rax+0A8h]"], [1410, "mov rax, [rbp+var_118]"], [1411, "mov esi, [rax+0B0h]"], [1412, "mov eax, [rbp+var_28]"], [1413, "sub eax, esi"], [1414, "cdqe"], [1415, "add rax, 1"], [1416, "add rcx, rax"], [1417, "mov rax, [rbp+var_118]"], [1418, "mov rax, [rax+88h]"], [1419, "mov rsi, [rax+20h]"], [1420, "mov rax, [rbp+var_118]"], [1421, "mov rax, [rax+88h]"], [1422, "mov rax, [rax+30h]"], [1423, "add rax, rsi"], [1424, "mov rsi, rcx"], [1425, "mov rdi, rax"], [1426, "call _memcpy"], [1427, "mov rax, [rbp+var_118]"], [1428, "mov rax, [rax+88h]"], [1429, "mov rdx, [rax+30h]"], [1430, "mov rax, [rbp+var_130]"], [1431, "mov rcx, [rax+40h]"], [1432, "mov rax, [rbp+var_128]"], [1433, "mov eax, [rax+8]"], [1434, "cdqe"], [1435, "shl rax, 5"], [1436, "add rax, rcx"], [1437, "mov eax, [rax+8]"], [1438, "mov ecx, [rbp+var_28]"], [1439, "sub eax, ecx"], [1440, "mov ecx, eax"], [1441, "mov rax, [rbp+var_118]"], [1442, "mov rax, [rax+88h]"], [1443, "add rdx, rcx"], [1444, "mov [rax+30h], rdx"], [1445, "jmp loc_465F7D"], [1446, "mov rax, [rbp+var_118]"], [1447, "mov rax, [rax+88h]"], [1448, "mov rax, [rax+28h]"], [1449, "test rax, rax"], [1450, "jz short loc_465F25"], [1451, "mov rax, [rbp+var_118]"], [1452, "mov rax, [rax+88h]"], [1453, "mov rax, [rax+28h]"], [1454, "test rax, rax"], [1455, "js short loc_465ECF"], [1456, "pxor xmm0, xmm0"], [1457, "cvtsi2sd xmm0, rax"], [1458, "jmp short loc_465EE8"], [1459, "mov rdx, rax"], [1460, "shr rdx, 1"], [1461, "and eax, 1"], [1462, "or rdx, rax"], [1463, "pxor xmm0, xmm0"], [1464, "cvtsi2sd xmm0, rdx"], [1465, "addsd xmm0, xmm0"], [1466, "movsd xmm1, cs:qword_48A258"], [1467, "mulsd xmm0, xmm1"], [1468, "comisd xmm0, cs:qword_48A260"], [1469, "jnb short loc_465F05"], [1470, "cvttsd2si rax, xmm0"], [1471, "jmp short loc_465F2A"], [1472, "movsd xmm1, cs:qword_48A260"], [1473, "subsd xmm0, xmm1"], [1474, "cvttsd2si rax, xmm0"], [1475, "mov rdx, 8000000000000000h"], [1476, "xor rax, rdx"], [1477, "jmp short loc_465F2A"], [1478, "mov eax, 400h"], [1479, "mov rdx, [rbp+var_118]"], [1480, "mov rdx, [rdx+88h]"], [1481, "mov [rdx+28h], rax"], [1482, "mov rax, [rbp+var_118]"], [1483, "mov rax, [rax+88h]"], [1484, "mov rdx, [rax+28h]"], [1485, "mov rax, [rbp+var_118]"], [1486, "mov rax, [rax+88h]"], [1487, "mov rax, [rax+20h]"], [1488, "mov rcx, [rbp+var_118]"], [1489, "mov rbx, [rcx+88h]"], [1490, "mov rsi, rdx"], [1491, "mov rdi, rax"], [1492, "call _realloc"], [1493, "mov [rbx+20h], rax"], [1494, "mov rax, [rbp+var_118]"], [1495, "mov rax, [rax+88h]"], [1496, "mov rdx, [rax+28h]"], [1497, "mov rax, [rbp+var_118]"], [1498, "mov rax, [rax+88h]"], [1499, "mov rax, [rax+30h]"], [1500, "add rax, 0Bh"], [1501, "cmp rdx, rax"], [1502, "jbe loc_465E96"], [1503, "mov rax, [rbp+var_118]"], [1504, "mov rax, [rax+88h]"], [1505, "mov rdx, [rax+20h]"], [1506, "mov rax, [rbp+var_118]"], [1507, "mov rax, [rax+88h]"], [1508, "mov rax, [rax+30h]"], [1509, "add rax, rdx"], [1510, "mov [rbp+var_B0], rax"], [1511, "mov rax, [rbp+var_B0]"], [1512, "mov esi, 0"], [1513, "mov rdi, rax"], [1514, "call sub_4602E4"], [1515, "sub rax, [rbp+var_B0]"], [1516, "mov rdx, rax"], [1517, "mov rax, [rbp+var_118]"], [1518, "mov rax, [rax+88h]"], [1519, "mov rcx, [rax+30h]"], [1520, "mov rax, [rbp+var_118]"], [1521, "mov rax, [rax+88h]"], [1522, "add rdx, rcx"], [1523, "mov [rax+30h], rdx"], [1524, "mov edx, [rbp+var_28]"], [1525, "mov rax, [rbp+var_130]"], [1526, "mov rcx, [rax+40h]"], [1527, "mov rax, [rbp+var_128]"], [1528, "mov eax, [rax+8]"], [1529, "cdqe"], [1530, "shl rax, 5"], [1531, "add rax, rcx"], [1532, "mov eax, [rax+8]"], [1533, "sub edx, eax"], [1534, "mov eax, [rbp+var_CC]"], [1535, "add eax, edx"], [1536, "mov [rbp+var_A4], eax"], [1537, "mov eax, [rbp+var_CC]"], [1538, "sub eax, [rbp+var_A4]"], [1539, "add [rbp+var_44], eax"], [1540, "jmp short loc_466072"], [1541, "mov eax, [rbp+var_CC]"], [1542, "mov [rbp+var_A4], eax"], [1543, "mov [rbp+var_D0], 0FFFFFFFFh"], [1544, "mov [rbp+var_2C], 2"], [1545, "mov eax, [rbp+var_CC]"], [1546, "add [rbp+var_24], eax"], [1547, "mov eax, [rbp+var_CC]"], [1548, "add [rbp+var_28], eax"], [1549, "jmp loc_4672CF"], [1550, "mov [rbp+var_E4], 1"], [1551, "cmp [rbp+var_24], 0"], [1552, "jz short loc_4660E0"], [1553, "cmp [rbp+var_2C], 1"], [1554, "jz short loc_4660E0"], [1555, "mov eax, [rbp+var_24]"], [1556, "shl eax, 4"], [1557, "mov ecx, eax"], [1558, "mov eax, [rbp+var_3C]"], [1559, "lea edx, [rax+1]"], [1560, "mov [rbp+var_3C], edx"], [1561, "mov eax, eax"], [1562, "lea rdx, ds:0[rax*4]"], [1563, "mov rax, [rbp+ptr]"], [1564, "add rax, rdx"], [1565, "mov edx, [rbp+var_2C]"], [1566, "add edx, ecx"], [1567, "mov [rax], edx"], [1568, "mov [rbp+var_24], 0"], [1569, "mov eax, [rbp+var_64]"], [1570, "and eax, 800h"], [1571, "test eax, eax"], [1572, "jz loc_4672D2"], [1573, "mov rax, [rbp+var_110]"], [1574, "mov rax, [rax+40h]"], [1575, "mov rax, [rax+2E8h]"], [1576, "test rax, rax"], [1577, "jnz short loc_466111"], [1578, "mov eax, 0FFFFFFFFh"], [1579, "jmp loc_467EB3"], [1580, "mov rax, [rbp+var_110]"], [1581, "mov rax, [rax+40h]"], [1582, "mov rax, [rax+2E8h]"], [1583, "mov r9, [rax+18h]"], [1584, "mov rax, [rbp+var_128]"], [1585, "mov eax, [rax+14h]"], [1586, "test eax, eax"], [1587, "jz short loc_46614B"], [1588, "mov eax, [rbp+var_D4]"], [1589, "cdqe"], [1590, "lea rdx, [rax-1]"], [1591, "mov rax, [rbp+arg_8]"], [1592, "lea rcx, [rdx+rax]"], [1593, "jmp short loc_466150"], [1594, "mov ecx, 0"], [1595, "mov rax, [rbp+var_110]"], [1596, "mov rax, [rax+40h]"], [1597, "mov rsi, [rax+2E8h]"], [1598, "lea rdi, [rbp+var_E4]"], [1599, "mov rdx, [rbp+var_120]"], [1600, "mov rax, [rbp+var_118]"], [1601, "mov r8, rdi"], [1602, "mov rdi, rax"], [1603, "call r9"], [1604, "or [rbp+var_1C], eax"], [1605, "cmp [rbp+var_1C], 0"], [1606, "jz short loc_466191"], [1607, "mov eax, [rbp+var_1C]"], [1608, "jmp loc_467EB3"], [1609, "mov [rbp+var_2C], 1"], [1610, "mov eax, [rbp+var_E4]"], [1611, "add [rbp+var_24], eax"], [1612, "mov eax, [rbp+var_E4]"], [1613, "add [rbp+var_20], eax"], [1614, "mov eax, [rbp+var_E4]"], [1615, "add [rbp+var_44], eax"], [1616, "jmp loc_4672DF"], [1617, "cmp [rbp+var_24], 0"], [1618, "jz short loc_4661F4"], [1619, "cmp [rbp+var_2C], 1"], [1620, "jz short loc_4661F4"], [1621, "mov eax, [rbp+var_24]"], [1622, "shl eax, 4"], [1623, "mov ecx, eax"], [1624, "mov eax, [rbp+var_3C]"], [1625, "lea edx, [rax+1]"], [1626, "mov [rbp+var_3C], edx"], [1627, "mov eax, eax"], [1628, "lea rdx, ds:0[rax*4]"], [1629, "mov rax, [rbp+ptr]"], [1630, "add rax, rdx"], [1631, "mov edx, [rbp+var_2C]"], [1632, "add edx, ecx"], [1633, "mov [rax], edx"], [1634, "mov [rbp+var_24], 0"], [1635, "mov eax, [rbp+var_64]"], [1636, "and eax, 40h"], [1637, "test eax, eax"], [1638, "jz loc_4662A3"], [1639, "mov rax, [rbp+var_110]"], [1640, "mov rax, [rax+40h]"], [1641, "mov rax, [rax+370h]"], [1642, "test rax, rax"], [1643, "jnz short loc_466223"], [1644, "mov eax, 0FFFFFFFFh"], [1645, "jmp loc_467EB3"], [1646, "mov rax, [rbp+var_110]"], [1647, "mov rax, [rax+40h]"], [1648, "mov rax, [rax+370h]"], [1649, "mov r9, [rax+18h]"], [1650, "mov rax, [rbp+var_128]"], [1651, "mov eax, [rax+14h]"], [1652, "test eax, eax"], [1653, "jz short loc_46625D"], [1654, "mov eax, [rbp+var_D4]"], [1655, "cdqe"], [1656, "lea rdx, [rax-1]"], [1657, "mov rax, [rbp+arg_8]"], [1658, "lea rcx, [rdx+rax]"], [1659, "jmp short loc_466262"], [1660, "mov ecx, 0"], [1661, "mov rax, [rbp+var_110]"], [1662, "mov rax, [rax+40h]"], [1663, "mov rsi, [rax+370h]"], [1664, "lea rdi, [rbp+var_C4]"], [1665, "mov rdx, [rbp+var_120]"], [1666, "mov rax, [rbp+var_118]"], [1667, "mov r8, rdi"], [1668, "mov rdi, rax"], [1669, "call r9"], [1670, "or [rbp+var_1C], eax"], [1671, "cmp [rbp+var_1C], 0"], [1672, "jz short loc_4662A3"], [1673, "mov eax, [rbp+var_1C]"], [1674, "jmp loc_467EB3"], [1675, "mov [rbp+var_2C], 1"], [1676, "add [rbp+var_24], 1"], [1677, "add [rbp+var_20], 1"], [1678, "add [rbp+var_44], 1"], [1679, "jmp loc_4672DF"], [1680, "mov [rbp+var_E8], 1"], [1681, "cmp [rbp+var_24], 0"], [1682, "jz short loc_466301"], [1683, "cmp [rbp+var_2C], 0"], [1684, "jz short loc_466301"], [1685, "mov eax, [rbp+var_24]"], [1686, "shl eax, 4"], [1687, "mov ecx, eax"], [1688, "mov eax, [rbp+var_3C]"], [1689, "lea edx, [rax+1]"], [1690, "mov [rbp+var_3C], edx"], [1691, "mov eax, eax"], [1692, "lea rdx, ds:0[rax*4]"], [1693, "mov rax, [rbp+ptr]"], [1694, "add rax, rdx"], [1695, "mov edx, [rbp+var_2C]"], [1696, "add edx, ecx"], [1697, "mov [rax], edx"], [1698, "mov [rbp+var_24], 0"], [1699, "mov eax, [rbp+var_64]"], [1700, "and eax, 4000000h"], [1701, "test eax, eax"], [1702, "jz loc_466918"], [1703, "mov rax, [rbp+var_110]"], [1704, "mov rax, [rax+40h]"], [1705, "mov rax, [rax+3A8h]"], [1706, "test rax, rax"], [1707, "jnz short loc_466332"], [1708, "mov eax, 0FFFFFFFFh"], [1709, "jmp loc_467EB3"], [1710, "mov rax, [rbp+var_110]"], [1711, "mov rax, [rax+40h]"], [1712, "mov rax, [rax+3A8h]"], [1713, "mov r9, [rax+18h]"], [1714, "mov rax, [rbp+var_128]"], [1715, "mov eax, [rax+14h]"], [1716, "test eax, eax"], [1717, "jz short loc_46636C"], [1718, "mov eax, [rbp+var_D4]"], [1719, "cdqe"], [1720, "lea rdx, [rax-1]"], [1721, "mov rax, [rbp+arg_8]"], [1722, "lea rcx, [rdx+rax]"], [1723, "jmp short loc_466371"], [1724, "mov ecx, 0"], [1725, "mov rax, [rbp+var_110]"], [1726, "mov rax, [rax+40h]"], [1727, "mov rsi, [rax+3A8h]"], [1728, "lea rdi, [rbp+var_E8]"], [1729, "mov rdx, [rbp+var_120]"], [1730, "mov rax, [rbp+var_118]"], [1731, "mov r8, rdi"], [1732, "mov rdi, rax"], [1733, "call r9"], [1734, "or [rbp+var_1C], eax"], [1735, "cmp [rbp+var_1C], 0"], [1736, "jz short loc_4663B2"], [1737, "mov eax, [rbp+var_1C]"], [1738, "jmp loc_467EB3"], [1739, "cmp [rbp+var_4C], 0"], [1740, "jnz short loc_4663C2"], [1741, "cmp [rbp+var_50], 0"], [1742, "jz loc_466918"], [1743, "mov eax, [rbp+var_D0]"], [1744, "test eax, eax"], [1745, "js loc_466566"], [1746, "cmp [rbp+var_4C], 0"], [1747, "jz loc_466566"], [1748, "jmp loc_4664C6"], [1749, "mov rax, [rbp+var_118]"], [1750, "mov rax, [rax+88h]"], [1751, "mov rax, [rax+28h]"], [1752, "test rax, rax"], [1753, "jz short loc_46646E"], [1754, "mov rax, [rbp+var_118]"], [1755, "mov rax, [rax+88h]"], [1756, "mov rax, [rax+28h]"], [1757, "test rax, rax"], [1758, "js short loc_466418"], [1759, "pxor xmm0, xmm0"], [1760, "cvtsi2sd xmm0, rax"], [1761, "jmp short loc_466431"], [1762, "mov rdx, rax"], [1763, "shr rdx, 1"], [1764, "and eax, 1"], [1765, "or rdx, rax"], [1766, "pxor xmm0, xmm0"], [1767, "cvtsi2sd xmm0, rdx"], [1768, "addsd xmm0, xmm0"], [1769, "movsd xmm1, cs:qword_48A258"], [1770, "mulsd xmm0, xmm1"], [1771, "comisd xmm0, cs:qword_48A260"], [1772, "jnb short loc_46644E"], [1773, "cvttsd2si rax, xmm0"], [1774, "jmp short loc_466473"], [1775, "movsd xmm1, cs:qword_48A260"], [1776, "subsd xmm0, xmm1"], [1777, "cvttsd2si rax, xmm0"], [1778, "mov rdx, 8000000000000000h"], [1779, "xor rax, rdx"], [1780, "jmp short loc_466473"], [1781, "mov eax, 400h"], [1782, "mov rdx, [rbp+var_118]"], [1783, "mov rdx, [rdx+88h]"], [1784, "mov [rdx+28h], rax"], [1785, "mov rax, [rbp+var_118]"], [1786, "mov rax, [rax+88h]"], [1787, "mov rdx, [rax+28h]"], [1788, "mov rax, [rbp+var_118]"], [1789, "mov rax, [rax+88h]"], [1790, "mov rax, [rax+20h]"], [1791, "mov rcx, [rbp+var_118]"], [1792, "mov rbx, [rcx+88h]"], [1793, "mov rsi, rdx"], [1794, "mov rdi, rax"], [1795, "call _realloc"], [1796, "mov [rbx+20h], rax"], [1797, "mov rax, [rbp+var_118]"], [1798, "mov rax, [rax+88h]"], [1799, "mov rdx, [rax+28h]"], [1800, "mov rax, [rbp+var_118]"], [1801, "mov rax, [rax+88h]"], [1802, "mov rax, [rax+30h]"], [1803, "add rax, 0Bh"], [1804, "cmp rdx, rax"], [1805, "jbe loc_4663DF"], [1806, "mov rax, [rbp+var_118]"], [1807, "mov rax, [rax+88h]"], [1808, "mov rdx, [rax+20h]"], [1809, "mov rax, [rbp+var_118]"], [1810, "mov rax, [rax+88h]"], [1811, "mov rax, [rax+30h]"], [1812, "add rax, rdx"], [1813, "mov [rbp+var_80], rax"], [1814, "mov eax, [rbp+var_D0]"], [1815, "mov edx, eax"], [1816, "mov rax, [rbp+var_80]"], [1817, "mov esi, edx"], [1818, "mov rdi, rax"], [1819, "call sub_4602E4"], [1820, "sub rax, [rbp+var_80]"], [1821, "mov rdx, rax"], [1822, "mov rax, [rbp+var_118]"], [1823, "mov rax, [rax+88h]"], [1824, "mov rcx, [rax+30h]"], [1825, "mov rax, [rbp+var_118]"], [1826, "mov rax, [rax+88h]"], [1827, "add rdx, rcx"], [1828, "mov [rax+30h], rdx"], [1829, "mov [rbp+var_5C], 0"], [1830, "jmp loc_466903"], [1831, "cmp [rbp+var_5C], 0"], [1832, "jz loc_466716"], [1833, "cmp [rbp+var_4C], 0"], [1834, "jz loc_466716"], [1835, "jmp loc_466672"], [1836, "mov rax, [rbp+var_118]"], [1837, "mov rax, [rax+88h]"], [1838, "mov rax, [rax+28h]"], [1839, "test rax, rax"], [1840, "jz short loc_46661A"], [1841, "mov rax, [rbp+var_118]"], [1842, "mov rax, [rax+88h]"], [1843, "mov rax, [rax+28h]"], [1844, "test rax, rax"], [1845, "js short loc_4665C4"], [1846, "pxor xmm0, xmm0"], [1847, "cvtsi2sd xmm0, rax"], [1848, "jmp short loc_4665DD"], [1849, "mov rdx, rax"], [1850, "shr rdx, 1"], [1851, "and eax, 1"], [1852, "or rdx, rax"], [1853, "pxor xmm0, xmm0"], [1854, "cvtsi2sd xmm0, rdx"], [1855, "addsd xmm0, xmm0"], [1856, "movsd xmm1, cs:qword_48A258"], [1857, "mulsd xmm0, xmm1"], [1858, "comisd xmm0, cs:qword_48A260"], [1859, "jnb short loc_4665FA"], [1860, "cvttsd2si rax, xmm0"], [1861, "jmp short loc_46661F"], [1862, "movsd xmm1, cs:qword_48A260"], [1863, "subsd xmm0, xmm1"], [1864, "cvttsd2si rax, xmm0"], [1865, "mov rdx, 8000000000000000h"], [1866, "xor rax, rdx"], [1867, "jmp short loc_46661F"], [1868, "mov eax, 400h"], [1869, "mov rdx, [rbp+var_118]"], [1870, "mov rdx, [rdx+88h]"], [1871, "mov [rdx+28h], rax"], [1872, "mov rax, [rbp+var_118]"], [1873, "mov rax, [rax+88h]"], [1874, "mov rdx, [rax+28h]"], [1875, "mov rax, [rbp+var_118]"], [1876, "mov rax, [rax+88h]"], [1877, "mov rax, [rax+20h]"], [1878, "mov rcx, [rbp+var_118]"], [1879, "mov rbx, [rcx+88h]"], [1880, "mov rsi, rdx"], [1881, "mov rdi, rax"], [1882, "call _realloc"], [1883, "mov [rbx+20h], rax"], [1884, "mov rax, [rbp+var_118]"], [1885, "mov rax, [rax+88h]"], [1886, "mov rdx, [rax+28h]"], [1887, "mov rax, [rbp+var_118]"], [1888, "mov rax, [rax+88h]"], [1889, "mov rax, [rax+30h]"], [1890, "add rax, 0Bh"], [1891, "cmp rdx, rax"], [1892, "jbe loc_46658B"], [1893, "mov rax, [rbp+var_118]"], [1894, "mov rax, [rax+88h]"], [1895, "mov rdx, [rax+20h]"], [1896, "mov rax, [rbp+var_118]"], [1897, "mov rax, [rax+88h]"], [1898, "mov rax, [rax+30h]"], [1899, "add rax, rdx"], [1900, "mov [rbp+var_88], rax"], [1901, "mov rax, [rbp+var_88]"], [1902, "mov esi, 0"], [1903, "mov rdi, rax"], [1904, "call sub_4602E4"], [1905, "sub rax, [rbp+var_88]"], [1906, "mov rdx, rax"], [1907, "mov rax, [rbp+var_118]"], [1908, "mov rax, [rax+88h]"], [1909, "mov rcx, [rax+30h]"], [1910, "mov rax, [rbp+var_118]"], [1911, "mov rax, [rax+88h]"], [1912, "add rdx, rcx"], [1913, "mov [rax+30h], rdx"], [1914, "mov edx, [rbp+var_28]"], [1915, "mov eax, [rbp+var_5C]"], [1916, "add eax, edx"], [1917, "mov ecx, eax"], [1918, "mov rax, [rbp+var_130]"], [1919, "mov rdx, [rax+40h]"], [1920, "mov rax, [rbp+var_128]"], [1921, "mov eax, [rax+8]"], [1922, "cdqe"], [1923, "shl rax, 5"], [1924, "add rax, rdx"], [1925, "mov eax, [rax+8]"], [1926, "cmp ecx, eax"], [1927, "jnb short loc_466758"], [1928, "mov rax, [rbp+var_118]"], [1929, "mov rax, [rax+0A8h]"], [1930, "test rax, rax"], [1931, "jnz short loc_466767"], [1932, "mov [rbp+var_D0], 0FFFFFFFFh"], [1933, "jmp loc_466912"], [1934, "cmp [rbp+var_4C], 0"], [1935, "jz loc_4668FF"], [1936, "mov rax, [rbp+var_118]"], [1937, "mov rcx, [rax+0A8h]"], [1938, "mov edx, [rbp+var_28]"], [1939, "mov eax, [rbp+var_5C]"], [1940, "add edx, eax"], [1941, "mov rax, [rbp+var_118]"], [1942, "mov esi, [rax+0B0h]"], [1943, "mov eax, edx"], [1944, "sub eax, esi"], [1945, "cdqe"], [1946, "add rax, 1"], [1947, "add rax, rcx"], [1948, "movzx eax, byte ptr [rax]"], [1949, "mov [rbp+var_89], al"], [1950, "jmp loc_466896"], [1951, "mov rax, [rbp+var_118]"], [1952, "mov rax, [rax+88h]"], [1953, "mov rax, [rax+28h]"], [1954, "test rax, rax"], [1955, "jz short loc_46683E"], [1956, "mov rax, [rbp+var_118]"], [1957, "mov rax, [rax+88h]"], [1958, "mov rax, [rax+28h]"], [1959, "test rax, rax"], [1960, "js short loc_4667E8"], [1961, "pxor xmm0, xmm0"], [1962, "cvtsi2sd xmm0, rax"], [1963, "jmp short loc_466801"], [1964, "mov rdx, rax"], [1965, "shr rdx, 1"], [1966, "and eax, 1"], [1967, "or rdx, rax"], [1968, "pxor xmm0, xmm0"], [1969, "cvtsi2sd xmm0, rdx"], [1970, "addsd xmm0, xmm0"], [1971, "movsd xmm1, cs:qword_48A258"], [1972, "mulsd xmm0, xmm1"], [1973, "comisd xmm0, cs:qword_48A260"], [1974, "jnb short loc_46681E"], [1975, "cvttsd2si rax, xmm0"], [1976, "jmp short loc_466843"], [1977, "movsd xmm1, cs:qword_48A260"], [1978, "subsd xmm0, xmm1"], [1979, "cvttsd2si rax, xmm0"], [1980, "mov rdx, 8000000000000000h"], [1981, "xor rax, rdx"], [1982, "jmp short loc_466843"], [1983, "mov eax, 400h"], [1984, "mov rdx, [rbp+var_118]"], [1985, "mov rdx, [rdx+88h]"], [1986, "mov [rdx+28h], rax"], [1987, "mov rax, [rbp+var_118]"], [1988, "mov rax, [rax+88h]"], [1989, "mov rdx, [rax+28h]"], [1990, "mov rax, [rbp+var_118]"], [1991, "mov rax, [rax+88h]"], [1992, "mov rax, [rax+20h]"], [1993, "mov rcx, [rbp+var_118]"], [1994, "mov rbx, [rcx+88h]"], [1995, "mov rsi, rdx"], [1996, "mov rdi, rax"], [1997, "call _realloc"], [1998, "mov [rbx+20h], rax"], [1999, "mov rax, [rbp+var_118]"], [2000, "mov rax, [rax+88h]"], [2001, "mov rdx, [rax+28h]"], [2002, "mov rax, [rbp+var_118]"], [2003, "mov rax, [rax+88h]"], [2004, "mov rax, [rax+30h]"], [2005, "add rax, 1"], [2006, "cmp rdx, rax"], [2007, "jbe loc_4667AF"]], "data_dep": [[15, 8], [16, 15], [17, 16], [19, 6], [20, 19], [21, 20], [22, 6], [23, 22], [24, 23], [25, 6], [26, 25], [27, 26], [31, 4], [32, 31], [33, 32], [34, 33], [35, 6], [36, 35], [37, 36], [38, 37], [40, 39], [44, 41], [44, 43], [45, 4], [46, 45], [47, 46], [48, 47], [49, 6], [50, 49], [51, 50], [52, 51], [53, 13], [54, 53], [58, 55], [58, 57], [59, 5], [60, 59], [61, 60], [62, 61], [63, 62], [64, 63], [65, 64], [66, 65], [68, 67], [69, 68], [70, 69], [71, 8], [72, 71], [73, 72], [76, 74], [78, 8], [79, 78], [80, 79], [81, 80], [82, 81], [84, 83], [85, 84], [86, 85], [86, 44], [87, 86], [88, 6], [89, 88], [90, 89], [91, 90], [93, 6], [94, 93], [94, 128], [94, 140], [95, 94], [95, 128], [95, 140], [96, 95], [97, 96], [98, 6], [99, 128], [99, 98], [99, 140], [100, 128], [100, 140], [100, 99], [101, 100], [102, 101], [104, 101], [104, 103], [106, 101], [107, 106], [108, 101], [109, 108], [109, 107], [111, 110], [111, 109], [112, 111], [114, 113], [114, 104], [114, 112], [115, 114], [116, 109], [116, 101], [117, 115], [117, 108], [117, 101], [120, 119], [120, 115], [121, 108], [121, 120], [121, 101], [123, 122], [123, 121], [126, 6], [127, 126], [127, 128], [127, 140], [128, 123], [128, 125], [128, 127], [128, 117], [129, 6], [130, 129], [130, 128], [131, 128], [131, 130], [132, 6], [133, 128], [133, 132], [134, 133], [134, 128], [135, 6], [136, 135], [136, 128], [137, 131], [138, 134], [140, 136], [140, 139], [141, 6], [142, 128], [142, 141], [142, 140], [143, 128], [143, 140], [143, 142], [144, 6], [145, 144], [145, 140], [145, 128], [146, 128], [146, 140], [146, 145], [147, 146], [148, 147], [148, 143], [149, 148], [150, 6], [151, 150], [151, 140], [151, 167], [151, 128], [152, 128], [152, 140], [152, 151], [152, 167], [153, 6], [154, 128], [154, 140], [154, 153], [154, 167], [155, 128], [155, 154], [155, 167], [155, 140], [156, 155], [156, 152], [159, 156], [161, 6], [162, 167], [162, 128], [162, 140], [162, 161], [163, 162], [163, 128], [163, 140], [163, 167], [164, 6], [165, 140], [165, 128], [165, 164], [165, 167], [166, 163], [167, 166], [167, 165], [168, 62], [169, 168], [170, 169], [171, 170], [172, 5], [173, 167], [173, 128], [173, 140], [173, 172], [174, 167], [174, 128], [174, 173], [174, 140], [175, 174], [176, 175], [179, 5], [180, 140], [180, 128], [180, 167], [180, 179], [181, 167], [181, 180], [181, 128], [181, 140], [182, 128], [182, 140], [182, 167], [182, 181], [183, 5], [184, 128], [184, 140], [184, 167], [184, 183], [185, 128], [185, 140], [185, 184], [185, 167], [186, 159], [186, 76], [186, 12], [187, 135], [188, 7], [189, 6], [190, 186], [191, 189], [192, 182], [193, 11], [193, 192], [194, 193], [195, 194], [196, 193], [199, 17], [200, 24], [201, 8], [202, 201], [202, 200], [203, 62], [204, 203], [205, 204], [206, 205], [211, 210], [212, 211], [213, 212], [215, 214], [217, 216], [220, 217], [220, 219], [223, 221], [223, 222], [224, 220], [225, 222], [227, 225], [228, 226], [230, 229], [231, 230], [232, 231], [236, 235], [237, 236], [238, 237], [240, 223], [240, 239], [241, 223], [241, 240], [242, 241], [243, 242], [247, 246], [247, 223], [248, 223], [248, 247], [249, 223], [249, 248], [251, 250], [251, 223], [252, 251], [252, 223], [253, 228], [257, 253], [258, 256], [259, 249], [260, 259], [261, 260], [262, 261], [263, 260], [266, 265], [267, 266], [268, 267], [270, 223], [270, 269], [271, 223], [271, 270], [272, 271], [273, 272], [277, 276], [277, 223], [278, 277], [278, 223], [279, 223], [279, 278], [281, 223], [281, 280], [282, 223], [282, 281], [283, 258], [283, 228], [284, 209], [284, 254], [287, 283], [288, 286], [289, 279], [290, 289], [290, 260], [291, 290], [292, 291], [293, 290], [295, 209], [297, 296], [297, 295], [298, 297], [299, 298], [300, 299], [301, 300], [302, 298], [305, 303], [310, 298], [311, 310], [312, 311], [314, 223], [314, 313], [315, 295], [315, 223], [315, 314], [316, 298], [317, 316], [317, 315], [318, 317], [322, 223], [322, 321], [323, 322], [324, 323], [326, 325], [326, 223], [327, 326], [328, 327], [329, 298], [331, 329], [331, 330], [332, 331], [333, 332], [335, 223], [335, 334], [337, 223], [337, 336], [339, 337], [340, 335], [340, 339], [341, 223], [341, 340], [342, 341], [342, 333], [343, 342], [345, 344], [346, 345], [348, 347], [355, 354], [355, 223], [357, 223], [357, 356], [359, 357], [360, 355], [360, 359], [361, 223], [361, 360], [363, 361], [363, 362], [364, 363], [365, 364], [366, 365], [367, 364], [370, 223], [370, 369], [372, 223], [372, 371], [374, 373], [374, 372], [375, 374], [376, 375], [377, 223], [377, 370], [377, 372], [379, 378], [380, 223], [380, 379], [380, 370], [382, 380], [382, 381], [383, 367], [384, 382], [386, 298], [387, 386], [388, 387], [388, 364], [389, 388], [390, 389], [391, 298], [392, 391], [393, 392], [393, 364], [396, 223], [396, 382], [396, 395], [397, 364], [398, 396], [398, 397], [399, 398], [401, 399], [401, 400], [402, 393], [404, 401], [408, 407], [408, 223], [409, 408], [410, 409], [413, 412], [414, 348], [414, 333], [414, 413], [414, 223], [416, 415], [416, 414], [417, 410], [419, 416], [422, 421], [423, 422], [424, 298], [425, 424], [426, 425], [428, 427], [428, 426], [429, 428], [432, 431], [434, 433], [438, 223], [438, 437], [438, 483], [440, 223], [440, 439], [440, 483], [442, 440], [442, 441], [443, 223], [443, 483], [443, 440], [443, 442], [444, 435], [444, 484], [445, 443], [445, 444], [447, 438], [447, 445], [448, 447], [448, 483], [448, 223], [449, 448], [450, 449], [451, 450], [453, 483], [453, 452], [453, 223], [455, 483], [455, 223], [455, 454], [457, 455], [457, 456], [458, 223], [458, 455], [458, 457], [458, 483], [459, 435], [459, 484], [460, 458], [460, 459], [462, 460], [462, 453], [463, 462], [463, 483], [463, 223], [464, 463], [465, 458], [465, 474], [468, 467], [470, 470], [472, 474], [473, 472], [474, 473], [476, 464], [476, 438], [476, 483], [476, 475], [476, 223], [477, 435], [477, 484], [478, 476], [478, 477], [479, 478], [481, 479], [481, 480], [482, 449], [483, 482], [483, 481], [484, 435], [484, 484], [485, 298], [486, 485], [487, 486], [487, 435], [487, 484], [488, 487], [490, 298], [491, 490], [494, 493], [494, 223], [496, 495], [496, 223], [498, 497], [498, 496], [499, 498], [500, 499], [501, 494], [501, 496], [501, 223], [503, 502], [504, 223], [504, 503], [504, 494], [506, 505], [506, 504], [507, 491], [508, 506], [511, 510], [513, 512], [515, 514], [516, 515], [518, 483], [518, 223], [518, 335], [518, 315], [518, 481], [518, 402], [518, 526], [518, 417], [518, 426], [518, 383], [518, 517], [518, 507], [519, 518], [520, 517], [521, 518], [522, 230], [523, 521], [523, 522], [525, 524], [525, 516], [526, 523], [526, 525], [529, 298], [530, 529], [531, 527], [531, 530], [532, 298], [533, 532], [534, 533], [535, 298], [536, 535], [537, 298], [538, 537], [540, 539], [541, 540], [542, 541], [544, 543], [545, 544], [546, 545], [547, 546], [548, 545], [550, 549], [553, 531], [554, 553], [555, 531], [556, 555], [557, 556], [558, 519], [559, 223], [559, 402], [559, 335], [559, 567], [559, 315], [559, 426], [559, 383], [559, 481], [559, 526], [559, 483], [559, 558], [559, 525], [559, 417], [559, 295], [559, 507], [560, 559], [561, 558], [562, 559], [563, 230], [564, 562], [564, 563], [565, 528], [566, 565], [566, 557], [567, 564], [567, 566], [570, 223], [570, 567], [570, 569], [570, 526], [570, 483], [571, 570], [572, 571], [573, 572], [575, 574], [576, 575], [577, 576], [579, 223], [579, 578], [579, 567], [579, 526], [579, 483], [580, 579], [580, 526], [580, 483], [580, 223], [580, 567], [581, 580], [582, 581], [584, 223], [584, 567], [584, 526], [584, 483], [584, 583], [585, 584], [585, 223], [585, 567], [585, 526], [585, 483], [586, 526], [586, 483], [586, 585], [586, 567], [586, 223], [588, 587], [588, 223], [588, 567], [588, 526], [588, 483], [589, 588], [590, 589], [591, 298], [593, 223], [593, 566], [593, 402], [593, 525], [593, 335], [593, 567], [593, 315], [593, 426], [593, 295], [593, 383], [593, 481], [593, 526], [593, 591], [593, 483], [593, 417], [593, 507], [595, 443], [595, 223], [595, 465], [595, 401], [595, 567], [595, 557], [595, 416], [595, 284], [595, 526], [595, 382], [595, 516], [595, 506], [595, 483], [595, 594], [595, 333], [599, 526], [599, 483], [599, 223], [599, 598], [599, 567], [600, 567], [600, 526], [600, 483], [600, 223], [600, 599], [601, 419], [601, 508], [601, 288], [601, 468], [601, 404], [601, 551], [601, 384], [604, 601], [605, 603], [606, 586], [608, 298], [610, 315], [610, 426], [610, 383], [610, 481], [610, 526], [610, 483], [610, 525], [610, 417], [610, 295], [610, 507], [610, 608], [610, 223], [610, 566], [610, 402], [610, 335], [610, 613], [610, 567], [612, 610], [612, 611], [613, 612], [616, 615], [616, 606], [616, 290], [620, 619], [621, 620], [622, 621], [624, 483], [624, 567], [624, 223], [624, 623], [624, 526], [625, 223], [625, 624], [625, 567], [625, 526], [625, 483], [626, 625], [627, 626], [629, 526], [629, 483], [629, 628], [629, 223], [629, 567], [630, 567], [630, 526], [630, 483], [630, 629], [630, 223], [631, 567], [631, 526], [631, 483], [631, 630], [631, 223], [633, 526], [633, 483], [633, 567], [633, 632], [633, 223], [634, 633], [635, 634], [636, 298], [638, 526], [638, 483], [638, 417], [638, 507], [638, 335], [638, 567], [638, 223], [638, 566], [638, 402], [638, 525], [638, 636], [638, 315], [638, 426], [638, 295], [638, 383], [638, 481], [640, 639], [640, 465], [640, 333], [640, 401], [640, 443], [640, 567], [640, 223], [640, 382], [640, 557], [640, 416], [640, 284], [640, 526], [640, 516], [640, 506], [640, 483], [644, 567], [644, 223], [644, 526], [644, 483], [644, 643], [645, 567], [645, 223], [645, 644], [645, 526], [645, 483], [646, 551], [646, 384], [646, 508], [646, 419], [646, 288], [646, 468], [646, 404], [649, 646], [650, 648], [651, 631], [653, 298], [655, 526], [655, 483], [655, 417], [655, 507], [655, 653], [655, 335], [655, 567], [655, 223], [655, 566], [655, 402], [655, 525], [655, 315], [655, 426], [655, 295], [655, 658], [655, 383], [655, 481], [657, 655], [657, 656], [658, 657], [661, 660], [661, 651], [661, 290], [667, 662], [667, 552], [667, 617], [668, 667], [669, 616], [669, 661], [669, 290], [670, 669], [671, 616], [671, 661], [671, 290], [673, 551], [673, 614], [673, 659], [674, 673], [675, 640], [675, 401], [675, 597], [675, 443], [675, 567], [675, 642], [675, 223], [675, 382], [675, 613], [675, 557], [675, 416], [675, 658], [675, 284], [675, 526], [675, 516], [675, 506], [675, 483], [675, 465], [675, 684], [675, 674], [675, 595], [675, 333], [676, 519], [676, 560], [677, 525], [677, 613], [677, 567], [677, 315], [677, 426], [677, 295], [677, 658], [677, 383], [677, 481], [677, 602], [677, 526], [677, 647], [677, 483], [677, 417], [677, 684], [677, 507], [677, 676], [677, 610], [677, 335], [677, 655], [677, 223], [677, 566], [677, 402], [678, 677], [679, 676], [680, 677], [681, 230], [682, 681], [682, 680], [683, 675], [684, 682], [684, 683], [686, 551], [686, 614], [686, 659], [687, 686], [687, 536], [689, 531], [690, 689], [691, 528], [692, 691], [693, 531], [694, 693], [695, 694], [696, 519], [697, 402], [697, 525], [697, 315], [697, 426], [697, 295], [697, 383], [697, 481], [697, 526], [697, 483], [697, 705], [697, 417], [697, 507], [697, 696], [697, 335], [697, 223], [698, 697], [699, 696], [700, 697], [701, 230], [702, 700], [702, 701], [703, 528], [704, 703], [704, 695], [705, 702], [705, 704], [708, 707], [709, 708], [710, 709], [712, 526], [712, 483], [712, 705], [712, 711], [712, 223], [713, 712], [713, 526], [713, 483], [713, 705], [713, 223], [714, 713], [715, 714], [719, 705], [719, 718], [719, 223], [719, 526], [719, 483], [720, 483], [720, 705], [720, 223], [720, 719], [720, 526], [721, 483], [721, 705], [721, 223], [721, 720], [721, 526], [723, 223], [723, 722], [723, 526], [723, 483], [723, 705], [724, 723], [724, 526], [724, 483], [724, 705], [724, 223], [725, 468], [725, 404], [725, 384], [725, 508], [725, 419], [725, 288], [726, 465], [726, 333], [726, 401], [726, 382], [726, 416], [726, 284], [726, 516], [726, 506], [726, 695], [726, 443], [729, 725], [730, 728], [731, 721], [732, 290], [732, 731], [733, 732], [734, 733], [738, 737], [738, 526], [738, 483], [738, 705], [738, 223], [740, 739], [740, 705], [740, 223], [740, 526], [740, 483], [742, 740], [743, 738], [743, 742], [744, 743], [744, 526], [744, 483], [744, 705], [744, 223], [745, 534], [746, 745], [746, 744], [747, 746], [749, 526], [749, 483], [749, 748], [749, 705], [749, 223], [750, 749], [751, 750], [753, 705], [753, 223], [753, 752], [753, 526], [753, 483], [754, 298], [755, 754], [755, 753], [756, 755], [758, 776], [758, 526], [758, 483], [758, 757], [758, 705], [758, 223], [760, 776], [760, 526], [760, 759], [760, 483], [760, 705], [760, 223], [761, 760], [763, 762], [764, 298], [765, 764], [766, 776], [766, 526], [766, 483], [766, 705], [766, 223], [766, 730], [766, 765], [768, 766], [768, 767], [769, 763], [771, 761], [772, 758], [772, 771], [773, 769], [773, 772], [774, 773], [775, 223], [775, 774], [775, 776], [775, 526], [775, 483], [775, 705], [776, 768], [776, 775], [778, 777], [780, 779], [781, 429], [781, 474], [782, 781], [783, 782], [785, 784], [788, 787], [788, 822], [788, 776], [788, 834], [788, 526], [788, 483], [788, 705], [788, 223], [789, 223], [789, 822], [789, 776], [789, 834], [789, 788], [789, 526], [789, 483], [789, 705], [790, 789], [791, 790], [793, 822], [793, 776], [793, 834], [793, 526], [793, 792], [793, 483], [793, 705], [793, 223], [794, 822], [794, 776], [794, 834], [794, 526], [794, 483], [794, 705], [794, 793], [794, 223], [795, 794], [796, 795], [798, 795], [798, 797], [800, 795], [801, 800], [802, 795], [803, 802], [803, 801], [805, 803], [805, 804], [806, 805], [808, 806], [808, 798], [808, 807], [809, 808], [810, 803], [810, 795], [811, 809], [811, 802], [811, 795], [814, 809], [814, 813], [815, 814], [815, 802], [815, 795], [817, 815], [817, 816], [821, 223], [821, 820], [821, 822], [821, 776], [821, 834], [821, 526], [821, 483], [821, 705], [822, 819], [822, 821], [822, 811], [822, 817], [824, 822], [824, 823], [825, 822], [825, 824], [827, 822], [827, 826], [828, 827], [828, 822], [830, 822], [830, 829], [831, 825], [832, 828], [834, 830], [834, 833], [836, 835], [836, 776], [836, 223], [836, 822], [836, 834], [836, 526], [836, 483], [836, 705], [837, 483], [837, 836], [837, 705], [837, 776], [837, 223], [837, 822], [837, 834], [837, 526], [839, 705], [839, 223], [839, 822], [839, 776], [839, 834], [839, 526], [839, 483], [839, 838], [840, 822], [840, 776], [840, 834], [840, 526], [840, 483], [840, 705], [840, 839], [840, 223], [841, 840], [842, 841], [842, 837], [843, 842], [845, 822], [845, 776], [845, 844], [845, 834], [845, 526], [845, 866], [845, 483], [845, 705], [845, 223], [846, 845], [846, 822], [846, 834], [846, 526], [846, 483], [846, 705], [846, 776], [846, 223], [846, 866], [848, 866], [848, 483], [848, 847], [848, 705], [848, 223], [848, 822], [848, 776], [848, 834], [848, 526], [849, 866], [849, 822], [849, 834], [849, 526], [849, 483], [849, 705], [849, 848], [849, 776], [849, 223], [850, 849], [850, 846], [851, 850], [852, 429], [852, 474], [853, 852], [854, 851], [855, 853], [856, 854], [858, 851], [858, 857], [859, 858], [861, 776], [861, 223], [861, 866], [861, 822], [861, 834], [861, 526], [861, 483], [861, 705], [861, 860], [862, 822], [862, 834], [862, 526], [862, 483], [862, 705], [862, 776], [862, 861], [862, 223], [862, 866], [864, 705], [864, 223], [864, 863], [864, 483], [864, 822], [864, 776], [864, 834], [864, 526], [864, 866], [865, 859], [865, 862], [866, 864], [866, 865], [868, 470], [871, 223], [871, 526], [871, 483], [871, 705], [871, 870], [872, 534], [872, 871], [873, 872], [875, 223], [875, 874], [875, 526], [875, 483], [875, 705], [877, 876], [877, 526], [877, 483], [877, 705], [877, 223], [878, 534], [879, 878], [879, 877], [881, 879], [882, 881], [882, 875], [883, 705], [883, 882], [883, 223], [883, 526], [883, 483], [886, 883], [886, 885], [887, 886], [890, 887], [890, 526], [890, 483], [890, 705], [890, 223], [891, 890], [892, 891], [894, 223], [894, 526], [894, 483], [894, 705], [894, 893], [895, 298], [896, 894], [896, 895], [897, 896], [899, 705], [899, 915], [899, 223], [899, 898], [899, 526], [899, 483], [901, 900], [902, 298], [903, 902], [904, 223], [904, 877], [904, 726], [904, 526], [904, 483], [904, 705], [904, 903], [904, 915], [906, 905], [906, 904], [907, 901], [908, 892], [910, 908], [911, 899], [911, 910], [912, 911], [912, 907], [913, 912], [914, 526], [914, 483], [914, 705], [914, 913], [914, 915], [914, 223], [915, 914], [915, 906], [916, 886], [917, 916], [918, 907], [918, 877], [918, 429], [918, 726], [918, 474], [921, 920], [926, 470], [926, 868], [927, 706], [927, 531], [928, 536], [929, 534], [931, 531], [932, 931], [933, 528], [934, 933], [935, 531], [936, 935], [937, 936], [938, 519], [939, 507], [939, 938], [939, 335], [939, 223], [939, 402], [939, 525], [939, 315], [939, 426], [939, 295], [939, 383], [939, 481], [939, 526], [939, 483], [939, 417], [939, 947], [940, 939], [941, 938], [942, 939], [943, 230], [944, 942], [944, 943], [945, 528], [946, 945], [946, 937], [947, 944], [947, 946], [950, 949], [951, 950], [952, 951], [954, 953], [954, 223], [954, 526], [954, 483], [954, 947], [955, 223], [955, 954], [955, 526], [955, 483], [955, 947], [956, 955], [957, 956], [961, 526], [961, 483], [961, 947], [961, 960], [961, 223], [962, 526], [962, 483], [962, 947], [962, 223], [962, 961], [963, 526], [963, 483], [963, 947], [963, 223], [963, 962], [965, 526], [965, 483], [965, 947], [965, 223], [965, 964], [966, 526], [966, 483], [966, 947], [966, 223], [966, 965], [967, 384], [967, 508], [967, 419], [967, 288], [967, 468], [967, 404], [968, 333], [968, 443], [968, 465], [968, 401], [968, 416], [968, 284], [968, 382], [968, 516], [968, 506], [968, 937], [971, 967], [972, 970], [973, 963], [974, 290], [974, 973], [975, 974], [976, 975], [977, 974], [980, 979], [982, 981], [983, 429], [983, 474], [984, 983], [985, 984], [987, 986], [990, 223], [990, 989], [990, 1024], [990, 526], [990, 1036], [990, 483], [990, 947], [991, 223], [991, 526], [991, 990], [991, 1024], [991, 1036], [991, 483], [991, 947], [992, 991], [993, 992], [995, 526], [995, 1024], [995, 1036], [995, 483], [995, 947], [995, 223], [995, 994], [996, 526], [996, 1024], [996, 1036], [996, 483], [996, 947], [996, 223], [996, 995], [997, 996], [998, 997], [1000, 999], [1000, 997], [1002, 997], [1003, 1002], [1004, 997], [1005, 1004], [1005, 1003], [1007, 1006], [1007, 1005], [1008, 1007], [1010, 1008], [1010, 1000], [1010, 1009], [1011, 1010], [1012, 1005], [1012, 997], [1013, 1011], [1013, 1004], [1013, 997], [1016, 1011], [1016, 1015], [1017, 1016], [1017, 1004], [1017, 997], [1019, 1017], [1019, 1018], [1023, 1022], [1023, 1024], [1023, 526], [1023, 1036], [1023, 483], [1023, 947], [1023, 223], [1024, 1019], [1024, 1021], [1024, 1023], [1024, 1013], [1026, 1024], [1026, 1025], [1027, 1024], [1027, 1026], [1029, 1024], [1029, 1028], [1030, 1024], [1030, 1029], [1032, 1031], [1032, 1024], [1033, 1027], [1034, 1030], [1036, 1035], [1036, 1032], [1038, 947], [1038, 223], [1038, 1037], [1038, 526], [1038, 483], [1038, 1024], [1038, 1036], [1039, 1024], [1039, 526], [1039, 1036], [1039, 483], [1039, 947], [1039, 1038], [1039, 223], [1041, 1036], [1041, 223], [1041, 1040], [1041, 526], [1041, 483], [1041, 947], [1041, 1024], [1042, 1041], [1042, 526], [1042, 1024], [1042, 1036], [1042, 483], [1042, 947], [1042, 223], [1043, 1042], [1044, 1039], [1044, 1043], [1045, 1044], [1047, 1024], [1047, 1046], [1047, 1036], [1047, 483], [1047, 947], [1047, 1068], [1047, 223], [1047, 526], [1048, 526], [1048, 483], [1048, 1068], [1048, 1047], [1048, 1024], [1048, 1036], [1048, 947], [1048, 223], [1050, 483], [1050, 947], [1050, 1068], [1050, 1024], [1050, 1036], [1050, 1049], [1050, 223], [1050, 526], [1051, 1068], [1051, 223], [1051, 1050], [1051, 526], [1051, 1024], [1051, 1036], [1051, 483], [1051, 947], [1052, 1048], [1052, 1051], [1053, 1052], [1054, 429], [1054, 474], [1055, 1054], [1056, 1053], [1057, 1055], [1058, 1056], [1060, 1053], [1060, 1059], [1061, 1060], [1063, 1068], [1063, 1024], [1063, 1036], [1063, 947], [1063, 223], [1063, 1062], [1063, 526], [1063, 483], [1064, 526], [1064, 483], [1064, 1068], [1064, 1024], [1064, 1036], [1064, 947], [1064, 223], [1064, 1063], [1066, 1065], [1066, 947], [1066, 1068], [1066, 1024], [1066, 1036], [1066, 223], [1066, 526], [1066, 483], [1067, 1061], [1067, 1064], [1068, 1066], [1068, 1067], [1070, 534], [1071, 1070], [1071, 1069], [1072, 1071], [1074, 1036], [1074, 223], [1074, 1073], [1074, 526], [1074, 483], [1074, 947], [1074, 1068], [1074, 1024], [1076, 1075], [1076, 526], [1076, 483], [1076, 947], [1076, 1068], [1076, 1024], [1076, 1036], [1076, 223], [1078, 1076], [1079, 1074], [1079, 1078], [1080, 483], [1080, 947], [1080, 1068], [1080, 1024], [1080, 1079], [1080, 1036], [1080, 223], [1080, 526], [1081, 1080], [1081, 1072], [1082, 1081], [1084, 1083], [1087, 223], [1087, 1086], [1087, 526], [1087, 1121], [1087, 483], [1087, 947], [1087, 1068], [1087, 1133], [1087, 1024], [1087, 1036], [1088, 1036], [1088, 223], [1088, 1087], [1088, 526], [1088, 1121], [1088, 483], [1088, 947], [1088, 1068], [1088, 1133], [1088, 1024], [1089, 1088], [1090, 1089], [1092, 526], [1092, 1121], [1092, 483], [1092, 947], [1092, 1068], [1092, 1133], [1092, 1024], [1092, 1036], [1092, 1091], [1092, 223], [1093, 526], [1093, 1121], [1093, 483], [1093, 947], [1093, 1068], [1093, 1133], [1093, 1024], [1093, 1092], [1093, 1036], [1093, 223], [1094, 1093], [1095, 1094], [1097, 1094], [1097, 1096], [1099, 1094], [1100, 1099], [1101, 1094], [1102, 1101], [1102, 1100], [1104, 1103], [1104, 1102], [1105, 1104], [1107, 1106], [1107, 1105], [1107, 1097], [1108, 1107], [1109, 1102], [1109, 1094], [1110, 1108], [1110, 1101], [1110, 1094], [1113, 1112], [1113, 1108], [1114, 1101], [1114, 1113], [1114, 1094], [1116, 1115], [1116, 1114], [1120, 1036], [1120, 223], [1120, 1119], [1120, 526], [1120, 1121], [1120, 483], [1120, 947], [1120, 1068], [1120, 1133], [1120, 1024], [1121, 1116], [1121, 1118], [1121, 1120], [1121, 1110], [1123, 1122], [1123, 1121], [1124, 1121], [1124, 1123], [1126, 1121], [1126, 1125], [1127, 1121], [1127, 1126], [1129, 1121], [1129, 1128], [1130, 1124], [1131, 1127], [1133, 1132], [1133, 1129], [1135, 1024], [1135, 1036], [1135, 223], [1135, 526], [1135, 1121], [1135, 483], [1135, 1134], [1135, 947], [1135, 1068], [1135, 1133], [1136, 526], [1136, 1121], [1136, 483], [1136, 947], [1136, 1068], [1136, 1133], [1136, 1024], [1136, 1135], [1136, 1036], [1136, 223], [1138, 1024], [1138, 1036], [1138, 1137], [1138, 223], [1138, 526], [1138, 1121], [1138, 483], [1138, 947], [1138, 1068], [1138, 1133], [1139, 1138], [1139, 526], [1139, 1121], [1139, 483], [1139, 947], [1139, 1068], [1139, 1133], [1139, 1024], [1139, 1036], [1139, 223], [1140, 1139], [1141, 1140], [1141, 1136], [1142, 1141], [1144, 1152], [1144, 526], [1144, 1121], [1144, 483], [1144, 947], [1144, 1068], [1144, 1143], [1144, 1133], [1144, 1024], [1144, 1036], [1144, 223], [1144, 1150], [1145, 1152], [1145, 526], [1145, 1144], [1145, 1036], [1145, 1121], [1145, 483], [1145, 947], [1145, 1068], [1145, 1133], [1145, 1024], [1145, 1150], [1145, 223], [1147, 1152], [1147, 526], [1147, 1121], [1147, 483], [1147, 947], [1147, 1068], [1147, 1133], [1147, 1146], [1147, 1024], [1147, 1036], [1147, 1150], [1147, 223], [1148, 1036], [1148, 1147], [1148, 223], [1148, 1150], [1148, 1152], [1148, 526], [1148, 1121], [1148, 483], [1148, 947], [1148, 1068], [1148, 1133], [1148, 1024], [1149, 1024], [1149, 1148], [1149, 1036], [1149, 223], [1149, 1128], [1149, 1072], [1149, 1150], [1149, 1152], [1149, 526], [1149, 1121], [1149, 483], [1149, 947], [1149, 1068], [1149, 1133], [1150, 1147], [1150, 1149], [1151, 1148], [1151, 1147], [1151, 1150], [1152, 1151], [1155, 1150], [1155, 1152], [1155, 526], [1155, 1154], [1155, 1121], [1155, 483], [1155, 947], [1155, 1068], [1155, 1189], [1155, 1133], [1155, 1201], [1155, 1024], [1155, 1036], [1155, 223], [1156, 223], [1156, 1150], [1156, 1152], [1156, 1155], [1156, 526], [1156, 1121], [1156, 483], [1156, 947], [1156, 1068], [1156, 1189], [1156, 1133], [1156, 1201], [1156, 1024], [1156, 1036], [1157, 1156], [1158, 1157], [1160, 526], [1160, 1121], [1160, 483], [1160, 947], [1160, 1068], [1160, 1189], [1160, 1133], [1160, 1201], [1160, 1024], [1160, 1036], [1160, 1159], [1160, 223], [1160, 1150], [1160, 1152], [1161, 1152], [1161, 526], [1161, 1121], [1161, 483], [1161, 947], [1161, 1068], [1161, 1189], [1161, 1133], [1161, 1201], [1161, 1024], [1161, 1036], [1161, 1160], [1161, 223], [1161, 1150], [1162, 1161], [1163, 1162], [1165, 1162], [1165, 1164], [1167, 1162], [1168, 1167], [1169, 1162], [1170, 1168], [1170, 1169], [1172, 1171], [1172, 1170], [1173, 1172], [1175, 1174], [1175, 1173], [1175, 1165], [1176, 1175], [1177, 1170], [1177, 1162], [1178, 1176], [1178, 1169], [1178, 1162], [1181, 1180], [1181, 1176], [1182, 1169], [1182, 1181], [1182, 1162], [1184, 1183], [1184, 1182], [1188, 1152], [1188, 1187], [1188, 526], [1188, 1121], [1188, 483], [1188, 947], [1188, 1068], [1188, 1189], [1188, 1133], [1188, 1201], [1188, 1024], [1188, 1036], [1188, 1150], [1188, 223], [1189, 1184], [1189, 1186], [1189, 1188], [1189, 1178], [1191, 1190], [1191, 1189], [1192, 1189], [1192, 1191], [1194, 1189], [1194, 1193], [1195, 1194], [1195, 1189], [1197, 1189], [1197, 1196], [1198, 1192], [1199, 1195], [1201, 1197], [1201, 1200], [1203, 1202], [1203, 223], [1203, 1152], [1203, 526], [1203, 1121], [1203, 483], [1203, 947], [1203, 1068], [1203, 1189], [1203, 1133], [1203, 1201], [1203, 1024], [1203, 1036], [1203, 1150], [1204, 1201], [1204, 1203], [1204, 1150], [1204, 223], [1204, 1152], [1204, 1121], [1204, 1133], [1204, 1024], [1204, 526], [1204, 1036], [1204, 483], [1204, 947], [1204, 1068], [1204, 1189], [1206, 1205], [1206, 223], [1206, 1152], [1206, 526], [1206, 1036], [1206, 1121], [1206, 483], [1206, 947], [1206, 1068], [1206, 1189], [1206, 1133], [1206, 1201], [1206, 1024], [1206, 1150], [1207, 1152], [1207, 526], [1207, 1121], [1207, 483], [1207, 947], [1207, 1068], [1207, 1189], [1207, 1133], [1207, 1201], [1207, 1024], [1207, 1036], [1207, 223], [1207, 1206], [1207, 1150], [1210, 1208], [1210, 1207], [1211, 1210], [1211, 1204], [1212, 1211], [1216, 1133], [1216, 1024], [1216, 526], [1216, 1036], [1216, 483], [1216, 947], [1216, 1068], [1216, 1189], [1216, 223], [1216, 1201], [1216, 1150], [1216, 1215], [1216, 1152], [1216, 1121], [1216, 1242], [1218, 947], [1218, 1068], [1218, 1189], [1218, 1201], [1218, 1150], [1218, 223], [1218, 1152], [1218, 1217], [1218, 1121], [1218, 1242], [1218, 1133], [1218, 1024], [1218, 526], [1218, 1036], [1218, 483], [1219, 534], [1220, 1219], [1220, 1218], [1221, 1220], [1222, 1221], [1223, 1216], [1223, 1150], [1223, 223], [1223, 1152], [1223, 1242], [1223, 1133], [1223, 1218], [1223, 1024], [1223, 526], [1223, 1036], [1223, 1121], [1223, 483], [1223, 947], [1223, 1068], [1223, 1189], [1223, 1201], [1225, 223], [1225, 1152], [1225, 1121], [1225, 1242], [1225, 1133], [1225, 1024], [1225, 526], [1225, 1036], [1225, 483], [1225, 947], [1225, 1068], [1225, 1189], [1225, 1224], [1225, 1201], [1225, 1150], [1226, 1152], [1226, 526], [1226, 1036], [1226, 1121], [1226, 483], [1226, 1242], [1226, 947], [1226, 1068], [1226, 1189], [1226, 1133], [1226, 1201], [1226, 1024], [1226, 1150], [1226, 1225], [1226, 223], [1228, 1242], [1228, 1133], [1228, 1024], [1228, 526], [1228, 1036], [1228, 1121], [1228, 483], [1228, 947], [1228, 1068], [1228, 1189], [1228, 1201], [1228, 1150], [1228, 223], [1228, 1152], [1228, 1227], [1229, 1024], [1229, 526], [1229, 1036], [1229, 483], [1229, 947], [1229, 1068], [1229, 1189], [1229, 1201], [1229, 1150], [1229, 1228], [1229, 223], [1229, 1152], [1229, 1121], [1229, 1242], [1229, 1133], [1230, 1226], [1230, 1229], [1231, 1213], [1232, 1230], [1235, 1036], [1235, 483], [1235, 947], [1235, 1068], [1235, 1189], [1235, 1234], [1235, 1201], [1235, 1150], [1235, 223], [1235, 1152], [1235, 1121], [1235, 1242], [1235, 1133], [1235, 1024], [1235, 526], [1236, 1150], [1236, 223], [1236, 1152], [1236, 526], [1236, 1036], [1236, 1121], [1236, 483], [1236, 1242], [1236, 1235], [1236, 947], [1236, 1068], [1236, 1189], [1236, 1133], [1236, 1201], [1236, 1024], [1238, 1237], [1240, 1150], [1240, 223], [1240, 1152], [1240, 1239], [1240, 1121], [1240, 1242], [1240, 1133], [1240, 1024], [1240, 526], [1240, 1036], [1240, 483], [1240, 947], [1240, 1068], [1240, 1189], [1240, 1201], [1241, 1236], [1241, 1238], [1242, 1240], [1242, 1241], [1245, 1244], [1245, 470], [1248, 947], [1248, 1068], [1248, 1247], [1248, 223], [1248, 1024], [1248, 526], [1248, 1036], [1248, 483], [1250, 1249], [1250, 223], [1250, 1024], [1250, 526], [1250, 1036], [1250, 483], [1250, 947], [1250, 1068], [1252, 1250], [1253, 1248], [1253, 1252], [1254, 1036], [1254, 483], [1254, 947], [1254, 1068], [1254, 223], [1254, 1253], [1254, 526], [1254, 1024], [1255, 534], [1256, 1254], [1256, 1255], [1257, 1256], [1259, 1258], [1262, 1024], [1262, 526], [1262, 1036], [1262, 483], [1262, 947], [1262, 1068], [1262, 223], [1262, 1261], [1262, 1296], [1262, 1308], [1263, 1024], [1263, 1036], [1263, 483], [1263, 947], [1263, 1068], [1263, 223], [1263, 1296], [1263, 1308], [1263, 526], [1263, 1262], [1264, 1263], [1265, 1264], [1267, 947], [1267, 1068], [1267, 223], [1267, 1296], [1267, 1308], [1267, 1024], [1267, 1266], [1267, 526], [1267, 1036], [1267, 483], [1268, 526], [1268, 1036], [1268, 483], [1268, 947], [1268, 1068], [1268, 1267], [1268, 223], [1268, 1296], [1268, 1308], [1268, 1024], [1269, 1268], [1270, 1269], [1272, 1271], [1272, 1269], [1274, 1269], [1275, 1274], [1276, 1269], [1277, 1275], [1277, 1276], [1279, 1277], [1279, 1278], [1280, 1279], [1282, 1280], [1282, 1281], [1282, 1272], [1283, 1282], [1284, 1269], [1284, 1277], [1285, 1276], [1285, 1269], [1285, 1283], [1288, 1283], [1288, 1287], [1289, 1269], [1289, 1276], [1289, 1288], [1291, 1289], [1291, 1290], [1295, 526], [1295, 1036], [1295, 483], [1295, 947], [1295, 1068], [1295, 1294], [1295, 223], [1295, 1296], [1295, 1024], [1295, 1308], [1296, 1285], [1296, 1291], [1296, 1293], [1296, 1295], [1298, 1296], [1298, 1297], [1299, 1298], [1299, 1296], [1301, 1300], [1301, 1296], [1302, 1296], [1302, 1301], [1304, 1296], [1304, 1303], [1305, 1299], [1306, 1302], [1308, 1304], [1308, 1307], [1310, 1308], [1310, 526], [1310, 1309], [1310, 1024], [1310, 1036], [1310, 483], [1310, 947], [1310, 1068], [1310, 223], [1310, 1296], [1311, 1296], [1311, 1308], [1311, 526], [1311, 1310], [1311, 1024], [1311, 1036], [1311, 483], [1311, 947], [1311, 1068], [1311, 223], [1313, 1308], [1313, 526], [1313, 483], [1313, 1068], [1313, 1312], [1313, 1024], [1313, 1036], [1313, 947], [1313, 223], [1313, 1296], [1314, 1036], [1314, 483], [1314, 947], [1314, 1068], [1314, 1313], [1314, 223], [1314, 1296], [1314, 1308], [1314, 526], [1314, 1024], [1315, 1314], [1316, 1315], [1316, 1311], [1317, 1316], [1319, 1327], [1319, 1296], [1319, 1318], [1319, 1308], [1319, 526], [1319, 1024], [1319, 1036], [1319, 483], [1319, 947], [1319, 1068], [1319, 223], [1319, 1325], [1320, 223], [1320, 1325], [1320, 1327], [1320, 1296], [1320, 1308], [1320, 526], [1320, 1319], [1320, 1024], [1320, 1036], [1320, 483], [1320, 947], [1320, 1068], [1322, 1327], [1322, 1296], [1322, 1308], [1322, 526], [1322, 483], [1322, 1024], [1322, 1321], [1322, 1036], [1322, 947], [1322, 1068], [1322, 223], [1322, 1325], [1323, 1322], [1323, 1024], [1323, 526], [1323, 1036], [1323, 483], [1323, 947], [1323, 1068], [1323, 223], [1323, 1325], [1323, 1327], [1323, 1296], [1323, 1308], [1324, 1308], [1324, 526], [1324, 1024], [1324, 1036], [1324, 483], [1324, 947], [1324, 1068], [1324, 1323], [1324, 1303], [1324, 223], [1324, 1325], [1324, 1072], [1324, 1327], [1324, 1296], [1325, 1322], [1325, 1324], [1326, 1322], [1326, 1323], [1326, 1325], [1327, 1326], [1330, 1296], [1330, 1364], [1330, 1308], [1330, 526], [1330, 483], [1330, 1376], [1330, 947], [1330, 1068], [1330, 1024], [1330, 1036], [1330, 223], [1330, 1325], [1330, 1327], [1330, 1329], [1331, 1364], [1331, 1036], [1331, 483], [1331, 1376], [1331, 947], [1331, 1068], [1331, 223], [1331, 1325], [1331, 1327], [1331, 1296], [1331, 1308], [1331, 526], [1331, 1330], [1331, 1024], [1332, 1331], [1333, 1332], [1335, 1327], [1335, 1296], [1335, 1308], [1335, 526], [1335, 1024], [1335, 1364], [1335, 1334], [1335, 1036], [1335, 483], [1335, 1376], [1335, 947], [1335, 1068], [1335, 223], [1335, 1325], [1336, 1335], [1336, 1325], [1336, 1327], [1336, 1296], [1336, 1308], [1336, 526], [1336, 1024], [1336, 1364], [1336, 1036], [1336, 483], [1336, 1376], [1336, 947], [1336, 1068], [1336, 223], [1337, 1336], [1338, 1337], [1340, 1337], [1340, 1339], [1342, 1337], [1343, 1342], [1344, 1337], [1345, 1344], [1345, 1343], [1347, 1346], [1347, 1345], [1348, 1347], [1350, 1348], [1350, 1349], [1350, 1340], [1351, 1350], [1352, 1337], [1352, 1345], [1353, 1337], [1353, 1351], [1353, 1344], [1356, 1351], [1356, 1355], [1357, 1344], [1357, 1356], [1357, 1337], [1359, 1357], [1359, 1358], [1363, 1296], [1363, 1364], [1363, 1308], [1363, 526], [1363, 483], [1363, 1376], [1363, 947], [1363, 1068], [1363, 1024], [1363, 1036], [1363, 223], [1363, 1362], [1363, 1325], [1363, 1327], [1364, 1359], [1364, 1361], [1364, 1363], [1364, 1353], [1366, 1365], [1366, 1364], [1367, 1364], [1367, 1366], [1369, 1368], [1369, 1364], [1370, 1369], [1370, 1364], [1372, 1371], [1372, 1364], [1373, 1367], [1374, 1370], [1376, 1375], [1376, 1372], [1378, 1024], [1378, 1364], [1378, 1377], [1378, 1036], [1378, 947], [1378, 223], [1378, 1325], [1378, 1327], [1378, 1296], [1378, 1308], [1378, 526], [1378, 483], [1378, 1376], [1378, 1068], [1379, 1296], [1379, 1364], [1379, 1308], [1379, 526], [1379, 483], [1379, 1376], [1379, 947], [1379, 1068], [1379, 1378], [1379, 1024], [1379, 1036], [1379, 223], [1379, 1325], [1379, 1327], [1381, 1024], [1381, 1036], [1381, 223], [1381, 1325], [1381, 1380], [1381, 1327], [1381, 1296], [1381, 1364], [1381, 1308], [1381, 526], [1381, 483], [1381, 1376], [1381, 947], [1381, 1068], [1382, 947], [1382, 1068], [1382, 1024], [1382, 1036], [1382, 223], [1382, 1381], [1382, 1325], [1382, 1327], [1382, 1296], [1382, 1364], [1382, 1308], [1382, 526], [1382, 483], [1382, 1376], [1384, 1024], [1384, 1036], [1384, 223], [1384, 1325], [1384, 1383], [1384, 1327], [1384, 1296], [1384, 1364], [1384, 1308], [1384, 526], [1384, 483], [1384, 1376], [1384, 947], [1384, 1068], [1386, 223], [1386, 1325], [1386, 1327], [1386, 1296], [1386, 1364], [1386, 1308], [1386, 526], [1386, 483], [1386, 1376], [1386, 947], [1386, 1068], [1386, 1385], [1386, 1024], [1386, 1036], [1388, 1386], [1389, 1384], [1389, 1388], [1390, 1296], [1390, 1364], [1390, 1308], [1390, 526], [1390, 483], [1390, 1376], [1390, 947], [1390, 1068], [1390, 1024], [1390, 1036], [1390, 1389], [1390, 223], [1390, 1325], [1390, 1327], [1391, 534], [1392, 1390], [1392, 1391], [1393, 1392], [1394, 1393], [1394, 1382], [1395, 1379], [1395, 1394], [1396, 1395], [1398, 947], [1398, 1068], [1398, 1024], [1398, 1036], [1398, 1444], [1398, 223], [1398, 1325], [1398, 1327], [1398, 1296], [1398, 1397], [1398, 1364], [1398, 1308], [1398, 526], [1398, 483], [1398, 1376], [1400, 1024], [1400, 1036], [1400, 223], [1400, 1325], [1400, 1327], [1400, 1296], [1400, 1364], [1400, 1308], [1400, 526], [1400, 483], [1400, 1399], [1400, 1376], [1400, 947], [1400, 1068], [1400, 1444], [1402, 1400], [1403, 1402], [1403, 1398], [1404, 1325], [1404, 1403], [1404, 1327], [1404, 1296], [1404, 1364], [1404, 1308], [1404, 526], [1404, 483], [1404, 1376], [1404, 947], [1404, 1068], [1404, 1444], [1404, 1024], [1404, 1036], [1404, 223], [1405, 534], [1406, 1405], [1406, 1404], [1407, 1406], [1409, 1296], [1409, 1364], [1409, 1308], [1409, 526], [1409, 483], [1409, 1376], [1409, 947], [1409, 1068], [1409, 1408], [1409, 1444], [1409, 1024], [1409, 1036], [1409, 223], [1409, 1325], [1409, 1327], [1411, 1024], [1411, 1410], [1411, 1036], [1411, 1444], [1411, 223], [1411, 1325], [1411, 1327], [1411, 1296], [1411, 1364], [1411, 1308], [1411, 526], [1411, 483], [1411, 1376], [1411, 947], [1411, 1068], [1412, 534], [1413, 1412], [1413, 1411], [1415, 1413], [1416, 1415], [1416, 1409], [1418, 223], [1418, 1325], [1418, 1327], [1418, 1296], [1418, 1417], [1418, 1364], [1418, 1308], [1418, 526], [1418, 483], [1418, 1376], [1418, 947], [1418, 1068], [1418, 1024], [1418, 1036], [1418, 1444], [1419, 223], [1419, 1325], [1419, 1327], [1419, 1418], [1419, 1296], [1419, 1364], [1419, 1308], [1419, 526], [1419, 483], [1419, 1376], [1419, 947], [1419, 1068], [1419, 1444], [1419, 1024], [1419, 1036], [1421, 223], [1421, 1325], [1421, 1327], [1421, 1296], [1421, 1364], [1421, 1308], [1421, 526], [1421, 483], [1421, 1376], [1421, 947], [1421, 1068], [1421, 1444], [1421, 1420], [1421, 1024], [1421, 1036], [1422, 223], [1422, 1325], [1422, 1327], [1422, 1296], [1422, 1364], [1422, 1308], [1422, 526], [1422, 483], [1422, 1376], [1422, 947], [1422, 1068], [1422, 1444], [1422, 1421], [1422, 1024], [1422, 1036], [1423, 1419], [1423, 1422], [1424, 1416], [1425, 1423], [1428, 947], [1428, 1068], [1428, 1024], [1428, 1036], [1428, 1444], [1428, 223], [1428, 1325], [1428, 1327], [1428, 1427], [1428, 1296], [1428, 1364], [1428, 1308], [1428, 526], [1428, 483], [1428, 1376], [1429, 1428], [1429, 1296], [1429, 1364], [1429, 1308], [1429, 526], [1429, 483], [1429, 1376], [1429, 947], [1429, 1068], [1429, 1444], [1429, 1024], [1429, 1325], [1429, 1036], [1429, 223], [1429, 1327], [1431, 947], [1431, 1068], [1431, 1444], [1431, 1024], [1431, 1036], [1431, 223], [1431, 1325], [1431, 1327], [1431, 1296], [1431, 1430], [1431, 1364], [1431, 1308], [1431, 526], [1431, 483], [1431, 1376], [1433, 1444], [1433, 223], [1433, 1325], [1433, 1327], [1433, 1296], [1433, 1364], [1433, 1308], [1433, 526], [1433, 483], [1433, 1376], [1433, 947], [1433, 1068], [1433, 1024], [1433, 1432], [1433, 1036], [1435, 1433], [1436, 1435], [1436, 1431], [1437, 1296], [1437, 1364], [1437, 1308], [1437, 526], [1437, 483], [1437, 1376], [1437, 947], [1437, 1068], [1437, 1024], [1437, 1036], [1437, 1444], [1437, 223], [1437, 1325], [1437, 1436], [1437, 1327], [1438, 534], [1439, 1437], [1439, 1438], [1440, 1439], [1442, 1296], [1442, 1364], [1442, 1308], [1442, 526], [1442, 483], [1442, 1376], [1442, 947], [1442, 1441], [1442, 1068], [1442, 1444], [1442, 1024], [1442, 1036], [1442, 223], [1442, 1325], [1442, 1327], [1443, 1440], [1443, 1429], [1444, 1443], [1444, 1442], [1447, 1068], [1447, 1444], [1447, 1024], [1447, 1036], [1447, 223], [1447, 1325], [1447, 1446], [1447, 1481], [1447, 1327], [1447, 1493], [1447, 1296], [1447, 1364], [1447, 1308], [1447, 526], [1447, 483], [1447, 1376], [1447, 947], [1448, 483], [1448, 1376], [1448, 947], [1448, 1068], [1448, 1444], [1448, 1024], [1448, 1036], [1448, 1447], [1448, 223], [1448, 1325], [1448, 1481], [1448, 1327], [1448, 1493], [1448, 1296], [1448, 1364], [1448, 1308], [1448, 526], [1449, 1448], [1450, 1449], [1452, 223], [1452, 1325], [1452, 1481], [1452, 1327], [1452, 1451], [1452, 1493], [1452, 1296], [1452, 1364], [1452, 1308], [1452, 526], [1452, 483], [1452, 1376], [1452, 947], [1452, 1068], [1452, 1444], [1452, 1024], [1452, 1036], [1453, 1036], [1453, 223], [1453, 1325], [1453, 1481], [1453, 1327], [1453, 1493], [1453, 1296], [1453, 1364], [1453, 1452], [1453, 1308], [1453, 526], [1453, 483], [1453, 1376], [1453, 947], [1453, 1068], [1453, 1444], [1453, 1024], [1454, 1453], [1455, 1454], [1457, 1454], [1457, 1456], [1459, 1454], [1460, 1459], [1461, 1454], [1462, 1461], [1462, 1460], [1464, 1463], [1464, 1462], [1465, 1464], [1467, 1466], [1467, 1457], [1467, 1465], [1468, 1467], [1469, 1462], [1469, 1454], [1470, 1461], [1470, 1454], [1470, 1468], [1473, 1472], [1473, 1468], [1474, 1461], [1474, 1473], [1474, 1454], [1476, 1475], [1476, 1474], [1480, 947], [1480, 1068], [1480, 1444], [1480, 1479], [1480, 1024], [1480, 1325], [1480, 223], [1480, 1481], [1480, 1327], [1480, 1493], [1480, 1296], [1480, 1364], [1480, 1308], [1480, 526], [1480, 1036], [1480, 483], [1480, 1376], [1481, 1476], [1481, 1478], [1481, 1480], [1481, 1470], [1483, 1482], [1483, 1481], [1484, 1481], [1484, 1483], [1486, 1481], [1486, 1485], [1487, 1481], [1487, 1486], [1489, 1488], [1489, 1481], [1490, 1484], [1491, 1487], [1493, 1489], [1493, 1492], [1495, 1364], [1495, 1308], [1495, 526], [1495, 483], [1495, 1376], [1495, 947], [1495, 1068], [1495, 1444], [1495, 1024], [1495, 1325], [1495, 1036], [1495, 223], [1495, 1481], [1495, 1494], [1495, 1327], [1495, 1493], [1495, 1296], [1496, 1444], [1496, 1024], [1496, 1325], [1496, 223], [1496, 1481], [1496, 1327], [1496, 1493], [1496, 1296], [1496, 1495], [1496, 1364], [1496, 1308], [1496, 526], [1496, 1036], [1496, 483], [1496, 1376], [1496, 947], [1496, 1068], [1498, 1024], [1498, 1364], [1498, 1308], [1498, 526], [1498, 1036], [1498, 483], [1498, 1376], [1498, 1497], [1498, 947], [1498, 1068], [1498, 1444], [1498, 1325], [1498, 1481], [1498, 1493], [1498, 223], [1498, 1327], [1498, 1296], [1499, 1036], [1499, 223], [1499, 1325], [1499, 1481], [1499, 1327], [1499, 1493], [1499, 1296], [1499, 1364], [1499, 1498], [1499, 1308], [1499, 526], [1499, 483], [1499, 1376], [1499, 947], [1499, 1068], [1499, 1444], [1499, 1024], [1500, 1499], [1501, 1500], [1501, 1496], [1502, 1501], [1504, 1481], [1504, 1327], [1504, 1493], [1504, 1296], [1504, 1364], [1504, 1308], [1504, 526], [1504, 483], [1504, 1376], [1504, 947], [1504, 1068], [1504, 1444], [1504, 1024], [1504, 1036], [1504, 1523], [1504, 1503], [1504, 223], [1504, 1325], [1505, 1481], [1505, 1327], [1505, 1523], [1505, 1493], [1505, 223], [1505, 1296], [1505, 1308], [1505, 1504], [1505, 1024], [1505, 1364], [1505, 526], [1505, 1036], [1505, 483], [1505, 1376], [1505, 947], [1505, 1068], [1505, 1444], [1505, 1325], [1507, 1481], [1507, 1327], [1507, 1506], [1507, 1296], [1507, 1024], [1507, 1364], [1507, 1308], [1507, 526], [1507, 1036], [1507, 483], [1507, 1376], [1507, 947], [1507, 1068], [1507, 1444], [1507, 1325], [1507, 1523], [1507, 1493], [1507, 223], [1508, 526], [1508, 483], [1508, 1507], [1508, 1376], [1508, 947], [1508, 1068], [1508, 1444], [1508, 1024], [1508, 1036], [1508, 1523], [1508, 223], [1508, 1325], [1508, 1481], [1508, 1327], [1508, 1493], [1508, 1296], [1508, 1364], [1508, 1308], [1509, 1508], [1509, 1505], [1510, 1509], [1511, 1510], [1513, 1511], [1515, 1514], [1515, 1510], [1516, 1515], [1518, 1481], [1518, 1523], [1518, 1493], [1518, 223], [1518, 1517], [1518, 1327], [1518, 1296], [1518, 1024], [1518, 1364], [1518, 1308], [1518, 526], [1518, 1036], [1518, 483], [1518, 1376], [1518, 947], [1518, 1068], [1518, 1444], [1518, 1325], [1519, 1325], [1519, 1481], [1519, 1327], [1519, 1523], [1519, 1493], [1519, 223], [1519, 1308], [1519, 1296], [1519, 1024], [1519, 1518], [1519, 1364], [1519, 526], [1519, 1036], [1519, 483], [1519, 1376], [1519, 947], [1519, 1068], [1519, 1444], [1521, 1481], [1521, 1327], [1521, 1523], [1521, 1493], [1521, 1296], [1521, 1308], [1521, 1024], [1521, 1364], [1521, 526], [1521, 1036], [1521, 483], [1521, 1520], [1521, 1376], [1521, 947], [1521, 1068], [1521, 1444], [1521, 223], [1521, 1325], [1522, 1516], [1522, 1519], [1523, 1522], [1523, 1521], [1524, 534], [1526, 1308], [1526, 1024], [1526, 1364], [1526, 526], [1526, 1036], [1526, 483], [1526, 1376], [1526, 947], [1526, 1068], [1526, 1444], [1526, 223], [1526, 1325], [1526, 1481], [1526, 1327], [1526, 1523], [1526, 1493], [1526, 1525], [1526, 1296], [1528, 1024], [1528, 1364], [1528, 1308], [1528, 526], [1528, 1036], [1528, 483], [1528, 1376], [1528, 947], [1528, 1068], [1528, 1444], [1528, 1325], [1528, 1523], [1528, 1493], [1528, 223], [1528, 1527], [1528, 1481], [1528, 1327], [1528, 1296], [1530, 1528], [1531, 1530], [1531, 1526], [1532, 1523], [1532, 1493], [1532, 223], [1532, 1481], [1532, 1327], [1532, 1296], [1532, 1024], [1532, 1531], [1532, 1364], [1532, 1308], [1532, 526], [1532, 1036], [1532, 483], [1532, 1376], [1532, 947], [1532, 1068], [1532, 1444], [1532, 1325], [1533, 1524], [1533, 1532], [1535, 1534], [1535, 1533], [1536, 1535], [1538, 1536], [1538, 1537], [1539, 470], [1539, 1538], [1542, 1541], [1546, 531], [1546, 1545], [1546, 948], [1548, 534], [1548, 1547], [1551, 531], [1552, 1551], [1553, 528], [1554, 1553], [1555, 531], [1556, 1555], [1557, 1556], [1558, 519], [1559, 481], [1559, 402], [1559, 526], [1559, 525], [1559, 417], [1559, 315], [1559, 426], [1559, 295], [1559, 383], [1559, 507], [1559, 483], [1559, 223], [1559, 1567], [1559, 335], [1559, 1558], [1560, 1559], [1561, 1558], [1562, 1559], [1563, 230], [1564, 1563], [1564, 1562], [1565, 528], [1566, 1557], [1566, 1565], [1567, 1564], [1567, 1566], [1570, 1569], [1571, 1570], [1572, 1571], [1574, 1573], [1574, 526], [1574, 483], [1574, 1567], [1574, 223], [1575, 1574], [1575, 526], [1575, 483], [1575, 1567], [1575, 223], [1576, 1575], [1577, 1576], [1581, 483], [1581, 223], [1581, 1567], [1581, 1580], [1581, 526], [1582, 223], [1582, 1567], [1582, 1581], [1582, 526], [1582, 483], [1583, 223], [1583, 1567], [1583, 1582], [1583, 526], [1583, 483], [1585, 223], [1585, 1567], [1585, 526], [1585, 1584], [1585, 483], [1586, 1585], [1587, 1586], [1588, 298], [1590, 335], [1590, 315], [1590, 481], [1590, 402], [1590, 526], [1590, 525], [1590, 417], [1590, 426], [1590, 295], [1590, 383], [1590, 507], [1590, 1566], [1590, 483], [1590, 1588], [1590, 223], [1590, 1567], [1592, 284], [1592, 526], [1592, 382], [1592, 483], [1592, 416], [1592, 516], [1592, 506], [1592, 443], [1592, 223], [1592, 465], [1592, 1567], [1592, 1557], [1592, 333], [1592, 401], [1592, 1591], [1596, 483], [1596, 223], [1596, 1567], [1596, 526], [1596, 1595], [1597, 1596], [1597, 223], [1597, 1567], [1597, 526], [1597, 483], [1598, 419], [1598, 288], [1598, 468], [1598, 1550], [1598, 404], [1598, 384], [1598, 508], [1601, 1598], [1602, 1600], [1603, 1583], [1604, 1603], [1604, 290], [1605, 1604], [1606, 1605], [1607, 1604], [1610, 1550], [1611, 531], [1611, 1568], [1611, 1610], [1612, 1550], [1613, 1612], [1613, 536], [1614, 1550], [1615, 1614], [1615, 470], [1617, 531], [1618, 1617], [1619, 528], [1620, 1619], [1621, 531], [1622, 1621], [1623, 1622], [1624, 519], [1625, 525], [1625, 417], [1625, 315], [1625, 426], [1625, 295], [1625, 383], [1625, 507], [1625, 483], [1625, 223], [1625, 1633], [1625, 335], [1625, 1624], [1625, 481], [1625, 402], [1625, 526], [1626, 1625], [1627, 1624], [1628, 1625], [1629, 230], [1630, 1629], [1630, 1628], [1631, 528], [1632, 1623], [1632, 1631], [1633, 1630], [1633, 1632], [1636, 1635], [1637, 1636], [1638, 1637], [1640, 1639], [1640, 526], [1640, 483], [1640, 223], [1640, 1633], [1641, 1640], [1641, 483], [1641, 223], [1641, 1633], [1641, 526], [1642, 1641], [1643, 1642], [1647, 483], [1647, 223], [1647, 1633], [1647, 1646], [1647, 526], [1648, 223], [1648, 1633], [1648, 1647], [1648, 526], [1648, 483], [1649, 223], [1649, 1633], [1649, 526], [1649, 1648], [1649, 483], [1651, 223], [1651, 1633], [1651, 526], [1651, 483], [1651, 1650], [1652, 1651], [1653, 1652], [1654, 298], [1656, 335], [1656, 315], [1656, 426], [1656, 481], [1656, 402], [1656, 526], [1656, 483], [1656, 525], [1656, 417], [1656, 295], [1656, 383], [1656, 507], [1656, 1632], [1656, 1654], [1656, 223], [1656, 1633], [1658, 483], [1658, 416], [1658, 516], [1658, 506], [1658, 443], [1658, 223], [1658, 465], [1658, 1633], [1658, 1623], [1658, 333], [1658, 401], [1658, 1657], [1658, 284], [1658, 526], [1658, 382], [1662, 223], [1662, 526], [1662, 1661], [1662, 1633], [1662, 483], [1663, 223], [1663, 1633], [1663, 1662], [1663, 526], [1663, 483], [1664, 508], [1664, 288], [1664, 468], [1664, 404], [1664, 384], [1664, 419], [1667, 1664], [1668, 1666], [1669, 1649], [1670, 290], [1670, 1669], [1671, 1670], [1672, 1671], [1673, 1670], [1676, 1634], [1676, 531], [1677, 536], [1678, 470], [1681, 531], [1682, 1681], [1683, 528], [1684, 1683], [1685, 531], [1686, 1685], [1687, 1686], [1688, 519], [1689, 525], [1689, 335], [1689, 315], [1689, 426], [1689, 383], [1689, 481], [1689, 526], [1689, 483], [1689, 417], [1689, 295], [1689, 507], [1689, 1688], [1689, 1697], [1689, 223], [1689, 402], [1690, 1689], [1691, 1688], [1692, 1689], [1693, 230], [1694, 1693], [1694, 1692], [1695, 528], [1696, 1687], [1696, 1695], [1697, 1694], [1697, 1696], [1700, 1699], [1701, 1700], [1702, 1701], [1704, 1703], [1704, 526], [1704, 483], [1704, 1697], [1704, 223], [1705, 1704], [1705, 526], [1705, 483], [1705, 1697], [1705, 223], [1706, 1705], [1707, 1706], [1711, 526], [1711, 483], [1711, 1697], [1711, 1710], [1711, 223], [1712, 1697], [1712, 223], [1712, 1711], [1712, 526], [1712, 483], [1713, 526], [1713, 1697], [1713, 483], [1713, 223], [1713, 1712], [1715, 1697], [1715, 526], [1715, 223], [1715, 1714], [1715, 483], [1716, 1715], [1717, 1716], [1718, 298], [1720, 402], [1720, 525], [1720, 335], [1720, 315], [1720, 426], [1720, 383], [1720, 481], [1720, 526], [1720, 483], [1720, 417], [1720, 1696], [1720, 295], [1720, 1718], [1720, 507], [1720, 1697], [1720, 223], [1722, 401], [1722, 416], [1722, 284], [1722, 526], [1722, 382], [1722, 516], [1722, 506], [1722, 483], [1722, 1721], [1722, 333], [1722, 1697], [1722, 1687], [1722, 443], [1722, 223], [1722, 465], [1726, 483], [1726, 1697], [1726, 223], [1726, 1725], [1726, 526], [1727, 526], [1727, 483], [1727, 1697], [1727, 223], [1727, 1726], [1728, 508], [1728, 288], [1728, 1680], [1728, 468], [1728, 404], [1728, 384], [1728, 419], [1731, 1728], [1732, 1730], [1733, 1713], [1734, 1733], [1734, 290], [1735, 1734], [1736, 1735], [1737, 1734], [1740, 1739], [1742, 1741], [1743, 429], [1743, 474], [1744, 1743], [1745, 1744], [1747, 1746], [1750, 526], [1750, 483], [1750, 1749], [1750, 1784], [1750, 1796], [1750, 1697], [1750, 223], [1751, 1796], [1751, 223], [1751, 1750], [1751, 526], [1751, 1697], [1751, 483], [1751, 1784], [1752, 1751], [1753, 1752], [1755, 526], [1755, 1697], [1755, 483], [1755, 1784], [1755, 1754], [1755, 1796], [1755, 223], [1756, 223], [1756, 526], [1756, 1697], [1756, 483], [1756, 1784], [1756, 1796], [1756, 1755], [1757, 1756], [1758, 1757], [1760, 1757], [1760, 1759], [1762, 1757], [1763, 1762], [1764, 1757], [1765, 1764], [1765, 1763], [1767, 1766], [1767, 1765], [1768, 1767], [1770, 1769], [1770, 1760], [1770, 1768], [1771, 1770], [1772, 1757], [1772, 1765], [1773, 1764], [1773, 1757], [1773, 1771], [1776, 1775], [1776, 1771], [1777, 1764], [1777, 1776], [1777, 1757], [1779, 1778], [1779, 1777], [1783, 526], [1783, 1782], [1783, 483], [1783, 1784], [1783, 1796], [1783, 1697], [1783, 223], [1784, 1781], [1784, 1779], [1784, 1783], [1784, 1773], [1786, 1785], [1786, 1784], [1787, 1784], [1787, 1786], [1789, 1784], [1789, 1788], [1790, 1784], [1790, 1789], [1792, 1791], [1792, 1784], [1793, 1787], [1794, 1790], [1796, 1795], [1796, 1792], [1798, 1784], [1798, 1797], [1798, 223], [1798, 1796], [1798, 526], [1798, 1697], [1798, 483], [1799, 1697], [1799, 526], [1799, 483], [1799, 1784], [1799, 1796], [1799, 1798], [1799, 223], [1801, 223], [1801, 1800], [1801, 1784], [1801, 1796], [1801, 526], [1801, 1697], [1801, 483], [1802, 526], [1802, 1697], [1802, 483], [1802, 1784], [1802, 1796], [1802, 1801], [1802, 223], [1803, 1802], [1804, 1803], [1804, 1799], [1805, 1804], [1807, 1806], [1807, 526], [1807, 1828], [1807, 1697], [1807, 483], [1807, 1784], [1807, 1796], [1807, 223], [1808, 1796], [1808, 526], [1808, 1828], [1808, 1697], [1808, 483], [1808, 1807], [1808, 1784], [1808, 223], [1810, 1784], [1810, 1796], [1810, 526], [1810, 1828], [1810, 1697], [1810, 483], [1810, 1809], [1810, 223], [1811, 1796], [1811, 1810], [1811, 223], [1811, 526], [1811, 1828], [1811, 1697], [1811, 483], [1811, 1784], [1812, 1811], [1812, 1808], [1813, 1812], [1814, 429], [1814, 474], [1815, 1814], [1816, 1813], [1817, 1815], [1818, 1816], [1820, 1813], [1820, 1819], [1821, 1820], [1823, 1796], [1823, 526], [1823, 1828], [1823, 1697], [1823, 483], [1823, 1784], [1823, 223], [1823, 1822], [1824, 1796], [1824, 526], [1824, 1828], [1824, 1697], [1824, 483], [1824, 1784], [1824, 1823], [1824, 223], [1826, 1796], [1826, 526], [1826, 1828], [1826, 1697], [1826, 483], [1826, 223], [1826, 1825], [1826, 1784], [1827, 1821], [1827, 1824], [1828, 1827], [1828, 1826], [1832, 1831], [1834, 1833], [1837, 1871], [1837, 1883], [1837, 1836], [1838, 1837], [1838, 1871], [1838, 1883], [1839, 1838], [1840, 1839], [1842, 1841], [1842, 1871], [1842, 1883], [1843, 1871], [1843, 1883], [1843, 1842], [1844, 1843], [1845, 1844], [1847, 1844], [1847, 1846], [1849, 1844], [1850, 1849], [1851, 1844], [1852, 1851], [1852, 1850], [1854, 1853], [1854, 1852], [1855, 1854], [1857, 1847], [1857, 1855], [1857, 1856], [1858, 1857], [1859, 1852], [1859, 1844], [1860, 1851], [1860, 1844], [1860, 1858], [1863, 1858], [1863, 1862], [1864, 1863], [1864, 1844], [1864, 1851], [1866, 1865], [1866, 1864], [1870, 1869], [1870, 1883], [1870, 1871], [1871, 1870], [1871, 1860], [1871, 1866], [1871, 1868], [1873, 1872], [1873, 1871], [1874, 1871], [1874, 1873], [1876, 1875], [1876, 1871], [1877, 1876], [1877, 1871], [1879, 1871], [1879, 1878], [1880, 1874], [1881, 1877], [1883, 1879], [1883, 1882], [1885, 1883], [1885, 1871], [1885, 1884], [1886, 1871], [1886, 1883], [1886, 1885], [1888, 1871], [1888, 1883], [1888, 1887], [1889, 1871], [1889, 1883], [1889, 1888], [1890, 1889], [1891, 1886], [1891, 1890], [1892, 1891], [1894, 1913], [1894, 1893], [1894, 1871], [1894, 1883], [1895, 1913], [1895, 1883], [1895, 1894], [1895, 1871], [1897, 1896], [1897, 1871], [1897, 1913], [1897, 1883], [1898, 1897], [1898, 1871], [1898, 1913], [1898, 1883], [1899, 1895], [1899, 1898], [1900, 1899], [1901, 1900], [1903, 1901], [1905, 1900], [1905, 1904], [1906, 1905], [1908, 1883], [1908, 1913], [1908, 1871], [1908, 1907], [1909, 1871], [1909, 1883], [1909, 1908], [1909, 1913], [1911, 1910], [1911, 1913], [1911, 1883], [1911, 1871], [1912, 1906], [1912, 1909], [1913, 1912], [1913, 1911], [1916, 1914], [1916, 1915], [1917, 1916], [1919, 1871], [1919, 1913], [1919, 1883], [1919, 1918], [1921, 1913], [1921, 1883], [1921, 1871], [1921, 1920], [1923, 1921], [1924, 1919], [1924, 1923], [1925, 1924], [1925, 1913], [1925, 1883], [1925, 1871], [1926, 1917], [1926, 1925], [1927, 1926], [1929, 1871], [1929, 1913], [1929, 1883], [1929, 1928], [1930, 1929], [1931, 1930], [1935, 1934], [1937, 1871], [1937, 1936], [1937, 1913], [1937, 1883], [1940, 1938], [1940, 1939], [1942, 1941], [1942, 1871], [1942, 1913], [1942, 1883], [1943, 1940], [1944, 1942], [1944, 1943], [1946, 1944], [1947, 1937], [1947, 1946], [1948, 1913], [1948, 1947], [1948, 1871], [1948, 1883], [1949, 1948], [1952, 1998], [1952, 1871], [1952, 1913], [1952, 1883], [1952, 1951], [1952, 1986], [1953, 1913], [1953, 1883], [1953, 1952], [1953, 1986], [1953, 1998], [1953, 1871], [1954, 1953], [1955, 1954], [1957, 1871], [1957, 1913], [1957, 1883], [1957, 1986], [1957, 1956], [1957, 1998], [1958, 1871], [1958, 1986], [1958, 1998], [1958, 1957], [1958, 1913], [1958, 1883], [1959, 1958], [1960, 1959], [1962, 1959], [1962, 1961], [1964, 1959], [1965, 1964], [1966, 1959], [1967, 1966], [1967, 1965], [1969, 1968], [1969, 1967], [1970, 1969], [1972, 1971], [1972, 1962], [1972, 1970], [1973, 1972], [1974, 1967], [1974, 1959], [1975, 1973], [1975, 1966], [1975, 1959], [1978, 1973], [1978, 1977], [1979, 1966], [1979, 1978], [1979, 1959], [1981, 1979], [1981, 1980], [1985, 1986], [1985, 1913], [1985, 1871], [1985, 1883], [1985, 1984], [1985, 1998], [1986, 1981], [1986, 1983], [1986, 1985], [1986, 1975], [1988, 1987], [1988, 1986], [1989, 1986], [1989, 1988], [1991, 1986], [1991, 1990], [1992, 1986], [1992, 1991], [1994, 1986], [1994, 1993], [1995, 1989], [1996, 1992], [1998, 1994], [1998, 1997], [2000, 1986], [2000, 1999], [2000, 1913], [2000, 1998], [2000, 1871], [2000, 1883], [2001, 1913], [2001, 2000], [2001, 1871], [2001, 1883], [2001, 1998], [2001, 1986], [2003, 2002], [2003, 1871], [2003, 1883], [2003, 1986], [2003, 1913], [2003, 1998], [2004, 2003], [2004, 1871], [2004, 1883], [2004, 1986], [2004, 1913], [2004, 1998], [2005, 2004], [2006, 2005], [2006, 2001], [2007, 2006]]}
|
ocware_stub_ret ocware_create_command_debug_database(int8_t subsystemNbr,
int16_t *gStructIndex,
const Component *subSystem)
{
ocware_stub_ret ret = STUB_FAILED;
const Component *component = NULL;
const Component *subComponent = NULL;
const Driver *driver = NULL;
const Command *command = NULL;
int8_t componentNbr = 1;
int8_t count = 0;
int8_t commandCount = 0;
s_debugSubsystem = subsystemNbr;
if((gStructIndex == NULL) || (subSystem == NULL)) {
return STUB_FAILED;
}
for(component = subSystem->components; component && component->name;
component++) {
/* component loop */
subComponent = component->components;
count = 1;
while (subComponent && subComponent->name) {
driver = subComponent->driver;
if(driver !=NULL) {
/* No Need to read every command as
* current implementation is to have one entry
* for one subsystem
*/
s_ocwareGlobalData[*gStructIndex].subsystemId = subsystemNbr;
s_ocwareGlobalData[*gStructIndex].componentId = componentNbr;
s_ocwareGlobalData[*gStructIndex].msgtype =
OCMP_MSG_TYPE_COMMAND;
s_ocwareGlobalData[*gStructIndex].paramPos = 0;
if (strncmp(component->name,"I2C",
strlen("I2C")) == 0) {
s_ocwareGlobalData[*gStructIndex].paramId = count;
s_ocwareGlobalData[*gStructIndex].paramSize
= sizeof(OCWareDebugI2Cinfo) * MAX_I2C_COMP_NBR;
s_ocwareGlobalData[*gStructIndex].data
= malloc(s_ocwareGlobalData[*gStructIndex].paramSize);
if (s_ocwareGlobalData[*gStructIndex].data == NULL) {
printf("Malloc failed\n");
return STUB_FAILED;
} else {
memset(s_ocwareGlobalData[*gStructIndex].data, 0,
s_ocwareGlobalData[*gStructIndex].paramSize);
}
ret = ocware_stub_fill_init_debug_value(*gStructIndex,
OCSTUB_VALUE_TYPE_I2C_DEBUG);
} else if (strncmp(component->name,"ethernet",
strlen("ethernet")) == 0) {
s_ocwareGlobalData[*gStructIndex].paramId = count;
s_ocwareGlobalData[*gStructIndex].paramSize
= sizeof(OCWareDebugMDIOinfo) * MAX_MDIO_COMP_NBR;
s_ocwareGlobalData[*gStructIndex].data
= malloc(s_ocwareGlobalData[*gStructIndex].paramSize);
if (s_ocwareGlobalData[*gStructIndex].data == NULL) {
printf("Malloc failed\n");
return STUB_FAILED;
} else {
memset(s_ocwareGlobalData[*gStructIndex].data, 0,
s_ocwareGlobalData[*gStructIndex].paramSize);
}
ret = ocware_stub_fill_init_debug_value(*gStructIndex,
OCSTUB_VALUE_TYPE_MDIO_DEBUG);
} else {
/* Currently its all GPIO */
s_ocwareGlobalData[*gStructIndex].paramId = count;
s_ocwareGlobalData[*gStructIndex].paramSize
= sizeof(OCWareDebugGPIOinfo) * MAX_GPIO_COMP_NBR;
s_ocwareGlobalData[*gStructIndex].data
= malloc(s_ocwareGlobalData[*gStructIndex].paramSize);
if (s_ocwareGlobalData[*gStructIndex].data == NULL) {
printf("Malloc failed\n");
return STUB_FAILED;
} else {
memset(s_ocwareGlobalData[*gStructIndex].data, 0,
s_ocwareGlobalData[*gStructIndex].paramSize);
}
ret = ocware_stub_fill_init_debug_value(*gStructIndex,
OCSTUB_VALUE_TYPE_GPIO_DEBUG);
}
(*gStructIndex)++;
if((debugGetCommand == STUB_FAILED) ||
(debugSetCommand == STUB_FAILED)) {
command = driver->commands;
commandCount = 0;
while(command && command->name) {
if ((strncmp(command->name, "get", strlen("get"))) ==
0) {
debugGetCommand = commandCount;
} else if ((strncmp(command->name, "set",strlen("set")))
== 0) {
debugSetCommand = commandCount;
}
command += 1;
commandCount++;
}
}
}
subComponent += 1;
count ++;
}
componentNbr++;
}
return ret;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402B9E", "function_addr": 4205470, "binary_name": "1bb8600ff54d3770b00319c465e287140b1e638e41a9ec62b38e2315c333ed80.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 58h"], [4, "mov eax, edi"], [5, "mov [rbp+var_50], rsi"], [6, "mov [rbp+var_58], rdx"], [7, "mov [rbp+var_44], al"], [8, "mov [rbp+var_11], 0FFh"], [9, "mov [rbp+var_20], 0"], [10, "mov [rbp+var_28], 0"], [11, "mov [rbp+var_40], 0"], [12, "mov [rbp+var_30], 0"], [13, "mov [rbp+var_31], 1"], [14, "mov [rbp+var_32], 0"], [15, "mov [rbp+var_33], 0"], [16, "movzx eax, [rbp+var_44]"], [17, "mov cs:byte_4132C0, al"], [18, "cmp [rbp+var_50], 0"], [19, "jz short loc_402BFC"], [20, "cmp [rbp+var_58], 0"], [21, "jnz short loc_402C06"], [22, "mov eax, 0FFFFFFFFh"], [23, "jmp loc_4031CE"], [24, "mov rax, [rbp+var_58]"], [25, "mov rax, [rax+8]"], [26, "mov [rbp+var_20], rax"], [27, "jmp loc_4031B3"], [28, "mov rax, [rbp+var_20]"], [29, "mov rax, [rax+8]"], [30, "mov [rbp+var_28], rax"], [31, "mov [rbp+var_32], 1"], [32, "jmp loc_40318D"], [33, "mov rax, [rbp+var_28]"], [34, "mov rax, [rax+10h]"], [35, "mov [rbp+var_40], rax"], [36, "cmp [rbp+var_40], 0"], [37, "jz loc_40317E"], [38, "mov rax, [rbp+var_50]"], [39, "movzx eax, word ptr [rax]"], [40, "cwde"], [41, "movzx edx, [rbp+var_44]"], [42, "movsxd rcx, eax"], [43, "mov rax, rcx"], [44, "add rax, rax"], [45, "add rax, rcx"], [46, "shl rax, 3"], [47, "add rax, 40EF80h"], [48, "mov [rax], dl"], [49, "mov rax, [rbp+var_50]"], [50, "movzx eax, word ptr [rax]"], [51, "cwde"], [52, "movzx edx, [rbp+var_31]"], [53, "movsxd rcx, eax"], [54, "mov rax, rcx"], [55, "add rax, rax"], [56, "add rax, rcx"], [57, "shl rax, 3"], [58, "add rax, 40EF81h"], [59, "mov [rax], dl"], [60, "mov rax, [rbp+var_50]"], [61, "movzx eax, word ptr [rax]"], [62, "cwde"], [63, "movsxd rdx, eax"], [64, "mov rax, rdx"], [65, "add rax, rax"], [66, "add rax, rdx"], [67, "shl rax, 3"], [68, "add rax, 40EF82h"], [69, "mov byte ptr [rax], 4"], [70, "mov rax, [rbp+var_50]"], [71, "movzx eax, word ptr [rax]"], [72, "cwde"], [73, "movsxd rdx, eax"], [74, "mov rax, rdx"], [75, "add rax, rax"], [76, "add rax, rdx"], [77, "shl rax, 3"], [78, "add rax, 40EF87h"], [79, "mov byte ptr [rax], 0"], [80, "mov rax, [rbp+var_20]"], [81, "mov rax, [rax]"], [82, "mov edx, 3"], [83, "mov esi, offset s2"], [84, "mov rdi, rax"], [85, "call _strncmp"], [86, "test eax, eax"], [87, "jnz loc_402E2F"], [88, "mov rax, [rbp+var_50]"], [89, "movzx eax, word ptr [rax]"], [90, "cwde"], [91, "movsx dx, [rbp+var_32]"], [92, "movsxd rcx, eax"], [93, "mov rax, rcx"], [94, "add rax, rax"], [95, "add rax, rcx"], [96, "shl rax, 3"], [97, "add rax, 40EF84h"], [98, "mov [rax], dx"], [99, "mov rax, [rbp+var_50]"], [100, "movzx eax, word ptr [rax]"], [101, "cwde"], [102, "movsxd rdx, eax"], [103, "mov rax, rdx"], [104, "add rax, rax"], [105, "add rax, rdx"], [106, "shl rax, 3"], [107, "add rax, 40EF86h"], [108, "mov byte ptr [rax], 6"], [109, "mov rax, [rbp+var_50]"], [110, "movzx eax, word ptr [rax]"], [111, "cwde"], [112, "movsxd rdx, eax"], [113, "mov rax, rdx"], [114, "add rax, rax"], [115, "add rax, rdx"], [116, "shl rax, 3"], [117, "add rax, 40EF86h"], [118, "movzx eax, byte ptr [rax]"], [119, "movzx eax, al"], [120, "mov rdx, [rbp+var_50]"], [121, "movzx edx, word ptr [rdx]"], [122, "movsx ebx, dx"], [123, "mov rdi, rax"], [124, "call _malloc"], [125, "mov rcx, rax"], [126, "movsxd rdx, ebx"], [127, "mov rax, rdx"], [128, "add rax, rax"], [129, "add rax, rdx"], [130, "shl rax, 3"], [131, "add rax, 40EF90h"], [132, "mov [rax], rcx"], [133, "mov rax, [rbp+var_50]"], [134, "movzx eax, word ptr [rax]"], [135, "cwde"], [136, "movsxd rdx, eax"], [137, "mov rax, rdx"], [138, "add rax, rax"], [139, "add rax, rdx"], [140, "shl rax, 3"], [141, "add rax, 40EF90h"], [142, "mov rax, [rax]"], [143, "test rax, rax"], [144, "jnz short loc_402DC1"], [145, "mov edi, offset aMallocFailed"], [146, "call _puts"], [147, "mov eax, 0FFFFFFFFh"], [148, "jmp loc_4031CE"], [149, "mov rax, [rbp+var_50]"], [150, "movzx eax, word ptr [rax]"], [151, "cwde"], [152, "movsxd rdx, eax"], [153, "mov rax, rdx"], [154, "add rax, rax"], [155, "add rax, rdx"], [156, "shl rax, 3"], [157, "add rax, 40EF86h"], [158, "movzx eax, byte ptr [rax]"], [159, "movzx edx, al"], [160, "mov rax, [rbp+var_50]"], [161, "movzx eax, word ptr [rax]"], [162, "cwde"], [163, "movsxd rcx, eax"], [164, "mov rax, rcx"], [165, "add rax, rax"], [166, "add rax, rcx"], [167, "shl rax, 3"], [168, "add rax, 40EF90h"], [169, "mov rax, [rax]"], [170, "mov esi, 0"], [171, "mov rdi, rax"], [172, "call _memset"], [173, "mov rax, [rbp+var_50]"], [174, "movzx eax, word ptr [rax]"], [175, "cwde"], [176, "mov esi, 9"], [177, "mov edi, eax"], [178, "call sub_4029DF"], [179, "mov [rbp+var_11], al"], [180, "jmp loc_4030CD"], [181, "mov rax, [rbp+var_20]"], [182, "mov rax, [rax]"], [183, "mov edx, 8"], [184, "mov esi, offset aEthernet"], [185, "mov rdi, rax"], [186, "call _strncmp"], [187, "test eax, eax"], [188, "jnz loc_402F91"], [189, "mov rax, [rbp+var_50]"], [190, "movzx eax, word ptr [rax]"], [191, "cwde"], [192, "movsx dx, [rbp+var_32]"], [193, "movsxd rcx, eax"], [194, "mov rax, rcx"], [195, "add rax, rax"], [196, "add rax, rcx"], [197, "shl rax, 3"], [198, "add rax, 40EF84h"], [199, "mov [rax], dx"], [200, "mov rax, [rbp+var_50]"], [201, "movzx eax, word ptr [rax]"], [202, "cwde"], [203, "movsxd rdx, eax"], [204, "mov rax, rdx"], [205, "add rax, rax"], [206, "add rax, rdx"], [207, "shl rax, 3"], [208, "add rax, 40EF86h"], [209, "mov byte ptr [rax], 4"], [210, "mov rax, [rbp+var_50]"], [211, "movzx eax, word ptr [rax]"], [212, "cwde"], [213, "movsxd rdx, eax"], [214, "mov rax, rdx"], [215, "add rax, rax"], [216, "add rax, rdx"], [217, "shl rax, 3"], [218, "add rax, 40EF86h"], [219, "movzx eax, byte ptr [rax]"], [220, "movzx eax, al"], [221, "mov rdx, [rbp+var_50]"], [222, "movzx edx, word ptr [rdx]"], [223, "movsx ebx, dx"], [224, "mov rdi, rax"], [225, "call _malloc"], [226, "mov rcx, rax"], [227, "movsxd rdx, ebx"], [228, "mov rax, rdx"], [229, "add rax, rax"], [230, "add rax, rdx"], [231, "shl rax, 3"], [232, "add rax, 40EF90h"], [233, "mov [rax], rcx"], [234, "mov rax, [rbp+var_50]"], [235, "movzx eax, word ptr [rax]"], [236, "cwde"], [237, "movsxd rdx, eax"], [238, "mov rax, rdx"], [239, "add rax, rax"], [240, "add rax, rdx"], [241, "shl rax, 3"], [242, "add rax, 40EF90h"], [243, "mov rax, [rax]"], [244, "test rax, rax"], [245, "jnz short loc_402F23"], [246, "mov edi, offset aMallocFailed"], [247, "call _puts"], [248, "mov eax, 0FFFFFFFFh"], [249, "jmp loc_4031CE"], [250, "mov rax, [rbp+var_50]"], [251, "movzx eax, word ptr [rax]"], [252, "cwde"], [253, "movsxd rdx, eax"], [254, "mov rax, rdx"], [255, "add rax, rax"], [256, "add rax, rdx"], [257, "shl rax, 3"], [258, "add rax, 40EF86h"], [259, "movzx eax, byte ptr [rax]"], [260, "movzx edx, al"], [261, "mov rax, [rbp+var_50]"], [262, "movzx eax, word ptr [rax]"], [263, "cwde"], [264, "movsxd rcx, eax"], [265, "mov rax, rcx"], [266, "add rax, rax"], [267, "add rax, rcx"], [268, "shl rax, 3"], [269, "add rax, 40EF90h"], [270, "mov rax, [rax]"], [271, "mov esi, 0"], [272, "mov rdi, rax"], [273, "call _memset"], [274, "mov rax, [rbp+var_50]"], [275, "movzx eax, word ptr [rax]"], [276, "cwde"], [277, "mov esi, 0Bh"], [278, "mov edi, eax"], [279, "call sub_4029DF"], [280, "mov [rbp+var_11], al"], [281, "jmp loc_4030CD"], [282, "mov rax, [rbp+var_50]"], [283, "movzx eax, word ptr [rax]"], [284, "cwde"], [285, "movsx dx, [rbp+var_32]"], [286, "movsxd rcx, eax"], [287, "mov rax, rcx"], [288, "add rax, rax"], [289, "add rax, rcx"], [290, "shl rax, 3"], [291, "add rax, 40EF84h"], [292, "mov [rax], dx"], [293, "mov rax, [rbp+var_50]"], [294, "movzx eax, word ptr [rax]"], [295, "cwde"], [296, "movsxd rdx, eax"], [297, "mov rax, rdx"], [298, "add rax, rax"], [299, "add rax, rdx"], [300, "shl rax, 3"], [301, "add rax, 40EF86h"], [302, "mov byte ptr [rax], 2"], [303, "mov rax, [rbp+var_50]"], [304, "movzx eax, word ptr [rax]"], [305, "cwde"], [306, "movsxd rdx, eax"], [307, "mov rax, rdx"], [308, "add rax, rax"], [309, "add rax, rdx"], [310, "shl rax, 3"], [311, "add rax, 40EF86h"], [312, "movzx eax, byte ptr [rax]"], [313, "movzx eax, al"], [314, "mov rdx, [rbp+var_50]"], [315, "movzx edx, word ptr [rdx]"], [316, "movsx ebx, dx"], [317, "mov rdi, rax"], [318, "call _malloc"], [319, "mov rcx, rax"], [320, "movsxd rdx, ebx"], [321, "mov rax, rdx"], [322, "add rax, rax"], [323, "add rax, rdx"], [324, "shl rax, 3"], [325, "add rax, 40EF90h"], [326, "mov [rax], rcx"], [327, "mov rax, [rbp+var_50]"], [328, "movzx eax, word ptr [rax]"], [329, "cwde"], [330, "movsxd rdx, eax"], [331, "mov rax, rdx"], [332, "add rax, rax"], [333, "add rax, rdx"], [334, "shl rax, 3"], [335, "add rax, 40EF90h"], [336, "mov rax, [rax]"], [337, "test rax, rax"], [338, "jnz short loc_403064"], [339, "mov edi, offset aMallocFailed"], [340, "call _puts"], [341, "mov eax, 0FFFFFFFFh"], [342, "jmp loc_4031CE"], [343, "mov rax, [rbp+var_50]"], [344, "movzx eax, word ptr [rax]"], [345, "cwde"], [346, "movsxd rdx, eax"], [347, "mov rax, rdx"], [348, "add rax, rax"], [349, "add rax, rdx"], [350, "shl rax, 3"], [351, "add rax, 40EF86h"], [352, "movzx eax, byte ptr [rax]"], [353, "movzx edx, al"], [354, "mov rax, [rbp+var_50]"], [355, "movzx eax, word ptr [rax]"], [356, "cwde"], [357, "movsxd rcx, eax"], [358, "mov rax, rcx"], [359, "add rax, rax"], [360, "add rax, rcx"], [361, "shl rax, 3"], [362, "add rax, 40EF90h"], [363, "mov rax, [rax]"], [364, "mov esi, 0"], [365, "mov rdi, rax"], [366, "call _memset"], [367, "mov rax, [rbp+var_50]"], [368, "movzx eax, word ptr [rax]"], [369, "cwde"], [370, "mov esi, 0Ah"], [371, "mov edi, eax"], [372, "call sub_4029DF"], [373, "mov [rbp+var_11], al"], [374, "mov rax, [rbp+var_50]"], [375, "movzx eax, word ptr [rax]"], [376, "add eax, 1"], [377, "mov edx, eax"], [378, "mov rax, [rbp+var_50]"], [379, "mov [rax], dx"], [380, "movzx eax, cs:byte_40A199"], [381, "cmp al, 0FFh"], [382, "jz short loc_4030FA"], [383, "movzx eax, cs:byte_40A19A"], [384, "cmp al, 0FFh"], [385, "jnz loc_40317E"], [386, "mov rax, [rbp+var_40]"], [387, "mov rax, [rax+28h]"], [388, "mov [rbp+var_30], rax"], [389, "mov [rbp+var_33], 0"], [390, "jmp short loc_40316B"], [391, "mov rax, [rbp+var_30]"], [392, "mov rax, [rax]"], [393, "mov edx, 3"], [394, "mov esi, offset aGet"], [395, "mov rdi, rax"], [396, "call _strncmp"], [397, "test eax, eax"], [398, "jnz short loc_403135"], [399, "movzx eax, [rbp+var_33]"], [400, "mov cs:byte_40A199, al"], [401, "jmp short loc_40315C"], [402, "mov rax, [rbp+var_30]"], [403, "mov rax, [rax]"], [404, "mov edx, 3"], [405, "mov esi, offset aSet"], [406, "mov rdi, rax"], [407, "call _strncmp"], [408, "test eax, eax"], [409, "jnz short loc_40315C"], [410, "movzx eax, [rbp+var_33]"], [411, "mov cs:byte_40A19A, al"], [412, "add [rbp+var_30], 18h"], [413, "movzx eax, [rbp+var_33]"], [414, "add eax, 1"], [415, "mov [rbp+var_33], al"], [416, "cmp [rbp+var_30], 0"], [417, "jz short loc_40317E"], [418, "mov rax, [rbp+var_30]"], [419, "mov rax, [rax]"], [420, "test rax, rax"], [421, "jnz short loc_40310C"], [422, "add [rbp+var_28], 48h "], [423, "movzx eax, [rbp+var_32]"], [424, "add eax, 1"], [425, "mov [rbp+var_32], al"], [426, "cmp [rbp+var_28], 0"], [427, "jz short loc_4031A4"], [428, "mov rax, [rbp+var_28]"], [429, "mov rax, [rax]"], [430, "test rax, rax"], [431, "jnz loc_402C2C"], [432, "movzx eax, [rbp+var_31]"], [433, "add eax, 1"], [434, "mov [rbp+var_31], al"], [435, "add [rbp+var_20], 48h "], [436, "cmp [rbp+var_20], 0"], [437, "jz short loc_4031CA"], [438, "mov rax, [rbp+var_20]"], [439, "mov rax, [rax]"], [440, "test rax, rax"], [441, "jnz loc_402C17"], [442, "movzx eax, [rbp+var_11]"], [443, "mov rbx, [rbp+var_8]"], [444, "leave"], [445, "retn"]], "data_dep": [[7, 4], [16, 7], [17, 16], [18, 5], [19, 18], [20, 6], [21, 20], [24, 6], [25, 24], [26, 25], [28, 435], [28, 26], [29, 59], [29, 292], [29, 132], [29, 379], [29, 108], [29, 48], [29, 326], [29, 28], [29, 233], [29, 98], [29, 79], [29, 209], [29, 69], [29, 199], [29, 302], [30, 29], [33, 422], [33, 30], [34, 132], [34, 379], [34, 108], [34, 48], [34, 326], [34, 33], [34, 233], [34, 98], [34, 79], [34, 209], [34, 69], [34, 199], [34, 302], [34, 59], [34, 292], [35, 34], [36, 35], [37, 36], [38, 5], [39, 108], [39, 233], [39, 98], [39, 48], [39, 79], [39, 326], [39, 38], [39, 302], [39, 209], [39, 69], [39, 199], [39, 59], [39, 292], [39, 132], [39, 379], [41, 7], [42, 39], [43, 42], [44, 43], [45, 42], [45, 44], [46, 45], [47, 46], [48, 47], [48, 41], [49, 5], [50, 48], [50, 49], [52, 13], [52, 434], [53, 50], [54, 53], [55, 54], [56, 53], [56, 55], [57, 56], [58, 57], [59, 58], [59, 52], [60, 5], [61, 60], [61, 59], [63, 61], [64, 63], [65, 64], [66, 65], [66, 63], [67, 66], [68, 67], [69, 68], [70, 5], [71, 69], [71, 70], [73, 71], [74, 73], [75, 74], [76, 73], [76, 75], [77, 76], [78, 77], [79, 78], [80, 435], [80, 26], [81, 80], [81, 79], [84, 81], [86, 85], [87, 86], [88, 5], [89, 59], [89, 292], [89, 132], [89, 379], [89, 108], [89, 233], [89, 98], [89, 48], [89, 79], [89, 326], [89, 302], [89, 88], [89, 209], [89, 69], [89, 199], [91, 425], [91, 31], [92, 89], [93, 92], [94, 93], [95, 92], [95, 94], [96, 95], [97, 96], [98, 97], [98, 91], [99, 5], [100, 99], [100, 98], [102, 100], [103, 102], [104, 103], [105, 104], [105, 102], [106, 105], [107, 106], [108, 107], [109, 5], [110, 109], [110, 108], [112, 110], [113, 112], [114, 113], [115, 112], [115, 114], [116, 115], [117, 116], [118, 108], [118, 117], [119, 118], [120, 5], [121, 108], [121, 120], [122, 121], [123, 119], [125, 124], [126, 122], [127, 126], [128, 127], [129, 128], [129, 126], [130, 129], [131, 130], [132, 131], [132, 125], [133, 5], [134, 133], [134, 132], [136, 134], [137, 136], [138, 137], [139, 138], [139, 136], [140, 139], [141, 140], [142, 132], [142, 141], [143, 142], [144, 143], [149, 5], [150, 79], [150, 326], [150, 209], [150, 69], [150, 302], [150, 149], [150, 292], [150, 199], [150, 59], [150, 48], [150, 132], [150, 379], [150, 108], [150, 233], [150, 98], [152, 150], [153, 152], [154, 153], [155, 152], [155, 154], [156, 155], [157, 156], [158, 302], [158, 292], [158, 157], [158, 69], [158, 199], [158, 59], [158, 48], [158, 132], [158, 379], [158, 108], [158, 233], [158, 98], [158, 79], [158, 326], [158, 209], [159, 158], [160, 5], [161, 79], [161, 326], [161, 209], [161, 69], [161, 302], [161, 292], [161, 199], [161, 59], [161, 48], [161, 160], [161, 132], [161, 379], [161, 108], [161, 233], [161, 98], [163, 161], [164, 163], [165, 164], [166, 165], [166, 163], [167, 166], [168, 167], [169, 79], [169, 326], [169, 209], [169, 69], [169, 199], [169, 302], [169, 59], [169, 292], [169, 379], [169, 48], [169, 132], [169, 168], [169, 108], [169, 233], [169, 98], [171, 169], [173, 5], [174, 59], [174, 292], [174, 379], [174, 48], [174, 173], [174, 132], [174, 108], [174, 233], [174, 98], [174, 79], [174, 326], [174, 209], [174, 69], [174, 199], [174, 302], [177, 174], [179, 178], [181, 26], [181, 435], [182, 379], [182, 59], [182, 48], [182, 132], [182, 108], [182, 233], [182, 98], [182, 79], [182, 326], [182, 209], [182, 69], [182, 181], [182, 199], [182, 302], [182, 292], [185, 182], [187, 186], [188, 187], [189, 5], [190, 379], [190, 189], [190, 48], [190, 132], [190, 108], [190, 233], [190, 98], [190, 79], [190, 326], [190, 209], [190, 69], [190, 199], [190, 302], [190, 59], [190, 292], [192, 425], [192, 31], [193, 190], [194, 193], [195, 194], [196, 193], [196, 195], [197, 196], [198, 197], [199, 198], [199, 192], [200, 5], [201, 199], [201, 200], [203, 201], [204, 203], [205, 204], [206, 203], [206, 205], [207, 206], [208, 207], [209, 208], [210, 5], [211, 210], [211, 209], [213, 211], [214, 213], [215, 214], [216, 215], [216, 213], [217, 216], [218, 217], [219, 209], [219, 218], [220, 219], [221, 5], [222, 209], [222, 221], [223, 222], [224, 220], [226, 225], [227, 223], [228, 227], [229, 228], [230, 229], [230, 227], [231, 230], [232, 231], [233, 232], [233, 226], [234, 5], [235, 233], [235, 234], [237, 235], [238, 237], [239, 238], [240, 237], [240, 239], [241, 240], [242, 241], [243, 233], [243, 242], [244, 243], [245, 244], [250, 5], [251, 108], [251, 233], [251, 98], [251, 79], [251, 326], [251, 209], [251, 69], [251, 199], [251, 302], [251, 59], [251, 292], [251, 250], [251, 379], [251, 48], [251, 132], [253, 251], [254, 253], [255, 254], [256, 253], [256, 255], [257, 256], [258, 257], [259, 233], [259, 98], [259, 79], [259, 326], [259, 209], [259, 69], [259, 199], [259, 302], [259, 59], [259, 292], [259, 258], [259, 132], [259, 379], [259, 48], [259, 108], [260, 259], [261, 5], [262, 261], [262, 108], [262, 233], [262, 98], [262, 79], [262, 326], [262, 209], [262, 69], [262, 199], [262, 302], [262, 59], [262, 292], [262, 379], [262, 48], [262, 132], [264, 262], [265, 264], [266, 265], [267, 264], [267, 266], [268, 267], [269, 268], [270, 233], [270, 98], [270, 79], [270, 326], [270, 209], [270, 69], [270, 199], [270, 302], [270, 59], [270, 292], [270, 269], [270, 132], [270, 379], [270, 48], [270, 108], [272, 270], [274, 5], [275, 326], [275, 209], [275, 69], [275, 199], [275, 302], [275, 59], [275, 292], [275, 132], [275, 379], [275, 48], [275, 108], [275, 274], [275, 233], [275, 98], [275, 79], [278, 275], [280, 279], [282, 5], [283, 69], [283, 199], [283, 302], [283, 59], [283, 292], [283, 282], [283, 132], [283, 379], [283, 108], [283, 48], [283, 326], [283, 233], [283, 98], [283, 79], [283, 209], [285, 31], [285, 425], [286, 283], [287, 286], [288, 287], [289, 286], [289, 288], [290, 289], [291, 290], [292, 291], [292, 285], [293, 5], [294, 292], [294, 293], [296, 294], [297, 296], [298, 297], [299, 296], [299, 298], [300, 299], [301, 300], [302, 301], [303, 5], [304, 303], [304, 302], [306, 304], [307, 306], [308, 307], [309, 308], [309, 306], [310, 309], [311, 310], [312, 302], [312, 311], [313, 312], [314, 5], [315, 302], [315, 314], [316, 315], [317, 313], [319, 318], [320, 316], [321, 320], [322, 321], [323, 322], [323, 320], [324, 323], [325, 324], [326, 325], [326, 319], [327, 5], [328, 327], [328, 326], [330, 328], [331, 330], [332, 331], [333, 330], [333, 332], [334, 333], [335, 334], [336, 326], [336, 335], [337, 336], [338, 337], [343, 5], [344, 79], [344, 326], [344, 302], [344, 292], [344, 209], [344, 69], [344, 343], [344, 199], [344, 59], [344, 132], [344, 379], [344, 108], [344, 233], [344, 98], [344, 48], [346, 344], [347, 346], [348, 347], [349, 348], [349, 346], [350, 349], [351, 350], [352, 302], [352, 233], [352, 98], [352, 79], [352, 209], [352, 69], [352, 199], [352, 59], [352, 292], [352, 132], [352, 379], [352, 351], [352, 108], [352, 48], [352, 326], [353, 352], [354, 5], [355, 48], [355, 326], [355, 302], [355, 233], [355, 98], [355, 354], [355, 79], [355, 209], [355, 69], [355, 199], [355, 59], [355, 292], [355, 132], [355, 379], [355, 108], [357, 355], [358, 357], [359, 358], [360, 357], [360, 359], [361, 360], [362, 361], [363, 48], [363, 79], [363, 326], [363, 302], [363, 362], [363, 209], [363, 69], [363, 199], [363, 59], [363, 292], [363, 132], [363, 379], [363, 108], [363, 233], [363, 98], [365, 363], [367, 5], [368, 302], [368, 367], [368, 209], [368, 69], [368, 199], [368, 59], [368, 292], [368, 132], [368, 379], [368, 108], [368, 233], [368, 98], [368, 48], [368, 79], [368, 326], [371, 368], [373, 372], [374, 5], [375, 48], [375, 132], [375, 379], [375, 374], [375, 108], [375, 233], [375, 98], [375, 79], [375, 326], [375, 302], [375, 292], [375, 209], [375, 69], [375, 199], [375, 59], [376, 375], [377, 376], [378, 5], [379, 377], [379, 378], [380, 400], [381, 380], [382, 381], [383, 411], [384, 383], [385, 384], [386, 35], [387, 292], [387, 386], [387, 69], [387, 199], [387, 59], [387, 48], [387, 132], [387, 379], [387, 108], [387, 233], [387, 98], [387, 79], [387, 326], [387, 209], [387, 302], [388, 387], [391, 388], [391, 412], [392, 69], [392, 199], [392, 59], [392, 48], [392, 132], [392, 379], [392, 108], [392, 233], [392, 98], [392, 79], [392, 326], [392, 209], [392, 302], [392, 391], [392, 292], [395, 392], [397, 396], [398, 397], [399, 415], [399, 389], [400, 399], [402, 388], [402, 412], [403, 199], [403, 59], [403, 48], [403, 402], [403, 132], [403, 379], [403, 108], [403, 233], [403, 98], [403, 79], [403, 326], [403, 209], [403, 69], [403, 302], [403, 292], [406, 403], [408, 407], [409, 408], [410, 415], [410, 389], [411, 410], [412, 412], [412, 388], [413, 415], [413, 389], [414, 413], [415, 414], [416, 412], [416, 388], [417, 416], [418, 388], [418, 412], [419, 199], [419, 59], [419, 48], [419, 132], [419, 379], [419, 108], [419, 233], [419, 98], [419, 79], [419, 326], [419, 209], [419, 69], [419, 302], [419, 418], [419, 292], [420, 419], [421, 420], [422, 422], [422, 30], [423, 31], [423, 425], [424, 423], [425, 424], [426, 422], [426, 30], [427, 426], [428, 422], [428, 30], [429, 132], [429, 379], [429, 108], [429, 233], [429, 98], [429, 79], [429, 326], [429, 209], [429, 69], [429, 428], [429, 302], [429, 292], [429, 199], [429, 59], [429, 48], [430, 429], [431, 430], [432, 434], [432, 13], [433, 432], [434, 433], [435, 435], [435, 26], [436, 435], [436, 26], [437, 436], [438, 435], [438, 26], [439, 79], [439, 326], [439, 438], [439, 209], [439, 69], [439, 302], [439, 292], [439, 199], [439, 59], [439, 48], [439, 132], [439, 379], [439, 108], [439, 233], [439, 98], [440, 439], [441, 440], [442, 8], [442, 179], [442, 280], [442, 373], [445, 341], [445, 442], [445, 22], [445, 147], [445, 248]]}
|
static void lspVQ(int16_t target[], int16_t weight[], int16_t qout[],
const int16_t codebook[], int16_t tos,
const int16_t cb_size[], int16_t cb_index[],
int16_t dim, BOOLEAN flag)
{
register int16_t i, entry;
register int16_t c1, s1;
const int16_t *cdbk_ptr, *cdbk_ptr2, *ptr1;
int16_t index[LSP_VQ_CAND][LSP_VQ_STAGES];
int16_t nextIndex[LSP_VQ_CAND][LSP_VQ_STAGES];
int16_t ncPrev;
int16_t cand[LSP_VQ_CAND][2 * LPC_ORD];
int16_t max_dMin, dMin[LSP_VQ_CAND], distortion;
int16_t *cand_target;
int32_t L_temp;
int16_t ptr_offset = 0;
int16_t temp1, temp2;
/*==================================================================*
* Initialize the data before starting the tree search. *
* - the number of candidates from the "previous" stage is set *
* to 1 since there is no previous stage! *
* - the candidate vector from the previous stage is set to zero *
* - the list of indeces for each candidate is set to 1 *
*==================================================================*/
for (i = 0; i < LSP_VQ_CAND; i++) {
v_zap(cand[i], dim);
v_zap(index[i], LSP_VQ_STAGES);
v_zap(nextIndex[i], LSP_VQ_STAGES);
}
cand_target = v_get(dim);
ncPrev = 1;
/*==================================================================*
* Now we start the search: *
* For each stage *
* For each candidate from the previous stage *
* For each entry in the current stage codebook *
* * add codebook vector to current candidate *
* * compute the distortion with the target *
* * retain candidate if one of the best so far *
*==================================================================*/
cdbk_ptr = codebook;
/* An observation for lspVQ() shows that if "flag" is FALSE, then we only */
/* need to keep track of the best one (instead of the best LSP_VQ_CAND, */
/* 8) cand[][] and index[][]. This has significant influence on */
/* execution speed. */
for (s1 = 0; s1 < tos; s1++) {
/* set the distortions to huge values */
fill(dMin, SW_MAX, LSP_VQ_CAND);
max_dMin = SW_MAX;
/* Loop for each previous candidate selected, and try each entry */
for (c1 = 0; c1 < ncPrev; c1++) {
ptr_offset = 0;
/* cand_target[] is the target vector with cand[c1] removed. */
/* This moves some operations from the for-entry loop here. */
/* save_saturation(); */
v_equ(cand_target, target, dim);
v_sub(cand_target, cand[c1], dim);
/* restore_saturation(); */
for (entry = 0; entry < cb_size[s1]; entry++) {
ptr1 = cdbk_ptr + ptr_offset; /* Pointer arithmetics. */
/* compute the distortion */
distortion =
WeightedMSE(dim, weight, ptr1, cand_target,
max_dMin);
/*======================================================*
* If the error for this entry is less than the worst *
* retained candidate so far, keep it. Note that the *
* error list is maintained in order of best to worst. *
*=======================================================*/
if (distortion < max_dMin) {
max_dMin =
InsertCand(c1, s1, dMin, distortion,
entry, nextIndex[0],
index[0]);
}
ptr_offset = melpe_add(ptr_offset, dim);
}
}
/* At this point ptr_offset is (cb_size[s1]*dim). */
/*==================================================================*
* Compute the number of candidate vectors which we kept for the *
* next stage. Note that if the size of the stages is less than *
* the number of candidates, we build them up using all entries *
* until we have kept numCand candidates. On the other hand, if *
* flag is FALSE and (s1 == tos - 1), then we only need to use *
* ncPrev = 1 because we only copy the best candidate before *
* exiting lspVQ(). *
*==================================================================*/
if (!flag && s1 == tos - 1)
ncPrev = 1;
else {
/* ncPrev = Min(ncPrev*cb_size[s1], LSP_VQ_CAND) for regular */
/* loops, and ncPrev = Min(ncPrev*cb_size[s1], LSP_INP_CAND) for */
/* the last lap. Explanations are available near the end of this *//* function. */
L_temp = melpe_L_mult(ncPrev, cb_size[s1]);
L_temp = melpe_L_shr(L_temp, 1);
temp1 = melpe_extract_l(L_temp); /* temp1 = ncPrev * cb_size[s1] */
if (s1 == tos - 1)
temp2 = LSP_INP_CAND;
else
temp2 = LSP_VQ_CAND;
if (temp1 < temp2)
ncPrev = temp1;
else
ncPrev = temp2;
}
/*==================================================================*
* We now have the best indices for the stage just completed, so *
* compute the new candidate vectors for the next stage... *
*==================================================================*/
for (c1 = 0; c1 < ncPrev; c1++) {
v_zap(cand[c1], dim);
cdbk_ptr2 = codebook;
temp1 = melpe_add(s1, 1);
v_equ(index[c1], nextIndex[c1], temp1);
for (i = 0; i < temp1; i++) {
/* v_add(cand[c1], cdbk_ptr2 + index[c1][i]*dim, dim); */
L_temp = melpe_L_mult(index[c1][i], dim);
L_temp = melpe_L_shr(L_temp, 1);
temp2 = melpe_extract_l(L_temp);
ptr1 = cdbk_ptr2 + temp2;
v_add(cand[c1], ptr1, dim);
/* cdbk_ptr2 += cb_size[i]*dim; */
L_temp = melpe_L_mult(cb_size[i], dim);
L_temp = melpe_L_shr(L_temp, 1);
temp2 = melpe_extract_l(L_temp);
cdbk_ptr2 += temp2;
}
}
/* cdbk_ptr += cb_size[s1] * dim; */
cdbk_ptr += ptr_offset;
}
/* Copy best candidate and indices into output. Here we use temp1 and */
/* temp2 to compute (c1*tos) and (c1*dim). */
/* Originally this function copies LSP_VQ_CAND (== 8) vectors before */
/* exiting if flag is TRUE. However, in the calling environment of */
/* lspVQ() when flag is passed in as TRUE, we only used LSP_INP_CAND */
/* (== 5). */
temp1 = 0;
temp2 = 0;
for (i = 0; i < ncPrev; i++) {
v_equ(&(cb_index[temp1]), index[i], tos);
v_equ(&qout[temp2], cand[i], dim);
temp1 = melpe_add(temp1, tos);
temp2 = melpe_add(temp2, dim);
}
v_free(cand_target);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4583F8", "function_addr": 4555768, "binary_name": "6685c16f9be7e617351948e3bfca4b5a452c99150f0336caa504ed823939ea36.elf_extract.pkl\n"}, "code": [[0, "push r12"], [1, "push rbp"], [2, "push rbx"], [3, "sub rsp, 2B0h"], [4, "mov [rsp+2C8h+var_290], rdi"], [5, "mov [rsp+2C8h+var_298], rsi"], [6, "mov [rsp+2C8h+var_2A0], rdx"], [7, "mov [rsp+2C8h+var_2A8], rcx"], [8, "mov ecx, r8d"], [9, "mov [rsp+2C8h+var_2B8], r9"], [10, "mov edx, [rsp+2C8h+arg_8]"], [11, "mov eax, [rsp+2C8h+arg_10]"], [12, "mov [rsp+2C8h+var_2AC], cx"], [13, "mov [rsp+2C8h+var_2B0], dx"], [14, "mov [rsp+2C8h+var_2BC], ax"], [15, "mov [rsp+2C8h+var_2E], 0"], [16, "mov ebx, 0"], [17, "jmp short loc_4584C1"], [18, "movsx edx, [rsp+2C8h+var_2B0]"], [19, "movsx eax, bx"], [20, "lea rsi, [rsp+2C8h+var_278]"], [21, "movsxd rcx, eax"], [22, "mov rax, rcx"], [23, "shl rax, 2"], [24, "add rax, rcx"], [25, "shl rax, 3"], [26, "add rax, rsi"], [27, "mov esi, edx"], [28, "mov rdi, rax"], [29, "call sub_48DC58"], [30, "movsx eax, bx"], [31, "lea rdx, [rsp+2C8h+var_F8]"], [32, "cdqe"], [33, "shl rax, 3"], [34, "add rax, rdx"], [35, "mov esi, 4"], [36, "mov rdi, rax"], [37, "call sub_48DC58"], [38, "movsx eax, bx"], [39, "lea rdx, [rsp+2C8h+var_138]"], [40, "cdqe"], [41, "shl rax, 3"], [42, "add rax, rdx"], [43, "mov esi, 4"], [44, "mov rdi, rax"], [45, "call sub_48DC58"], [46, "mov eax, ebx"], [47, "add eax, 1"], [48, "mov ebx, eax"], [49, "cmp bx, 7"], [50, "jle short loc_45844D"], [51, "movsx eax, [rsp+2C8h+var_2B0]"], [52, "mov edi, eax"], [53, "call sub_48DCA3"], [54, "mov [rsp+2C8h+var_40], rax"], [55, "mov [rsp+2C8h+var_2A], 1"], [56, "mov rax, [rsp+2C8h+var_2A8]"], [57, "mov [rsp+2C8h+var_20], rax"], [58, "mov r12d, 0"], [59, "jmp loc_458B50"], [60, "lea rax, [rsp+2C8h+var_288]"], [61, "mov edx, 8"], [62, "mov esi, 7FFFh"], [63, "mov rdi, rax"], [64, "call sub_467C59"], [65, "mov [rsp+2C8h+var_2C], 7FFFh"], [66, "mov ebp, 0"], [67, "jmp loc_4586BA"], [68, "mov [rsp+2C8h+var_2E], 0"], [69, "movsx edx, [rsp+2C8h+var_2B0]"], [70, "mov rcx, [rsp+2C8h+var_290]"], [71, "mov rax, [rsp+2C8h+var_40]"], [72, "mov rsi, rcx"], [73, "mov rdi, rax"], [74, "call sub_48CF4A"], [75, "movsx edx, [rsp+2C8h+var_2B0]"], [76, "movsx eax, bp"], [77, "lea rsi, [rsp+2C8h+var_278]"], [78, "movsxd rcx, eax"], [79, "mov rax, rcx"], [80, "shl rax, 2"], [81, "add rax, rcx"], [82, "shl rax, 3"], [83, "lea rcx, [rsi+rax]"], [84, "mov rax, [rsp+2C8h+var_40]"], [85, "mov rsi, rcx"], [86, "mov rdi, rax"], [87, "call sub_48DBB9"], [88, "mov ebx, 0"], [89, "jmp loc_458697"], [90, "movsx rax, [rsp+2C8h+var_2E]"], [91, "lea rdx, [rax+rax]"], [92, "mov rax, [rsp+2C8h+var_20]"], [93, "add rax, rdx"], [94, "mov [rsp+2C8h+var_50], rax"], [95, "movsx edi, [rsp+2C8h+var_2C]"], [96, "movsx eax, [rsp+2C8h+var_2B0]"], [97, "mov rcx, [rsp+2C8h+var_40]"], [98, "mov rdx, [rsp+2C8h+var_50]"], [99, "mov rsi, [rsp+2C8h+var_298]"], [100, "mov r8d, edi"], [101, "mov edi, eax"], [102, "call sub_458CE3"], [103, "mov [rsp+2C8h+var_52], ax"], [104, "movzx eax, [rsp+2C8h+var_52]"], [105, "cmp ax, [rsp+2C8h+var_2C]"], [106, "jge short loc_458634"], [107, "movsx r8d, bx"], [108, "movsx ecx, [rsp+2C8h+var_52]"], [109, "movsx esi, r12w"], [110, "movsx eax, bp"], [111, "lea r9, [rsp+2C8h+var_138]"], [112, "lea rdx, [rsp+2C8h+var_288]"], [113, "sub rsp, 8"], [114, "lea rdi, [rsp+2D0h+var_F8]"], [115, "push rdi"], [116, "mov edi, eax"], [117, "call sub_459616"], [118, "add rsp, 10h"], [119, "mov [rsp+2C8h+var_2C], ax"], [120, "movsx eax, [rsp+2C8h+var_2B0]"], [121, "movsx edx, [rsp+2C8h+var_2E]"], [122, "mov [rsp+2C8h+var_54], dx"], [123, "mov [rsp+2C8h+var_56], ax"], [124, "movsx edx, [rsp+2C8h+var_54]"], [125, "movsx eax, [rsp+2C8h+var_56]"], [126, "add eax, edx"], [127, "mov [rsp+2C8h+var_5C], eax"], [128, "mov eax, [rsp+2C8h+var_5C]"], [129, "mov edi, eax"], [130, "call sub_456A04"], [131, "mov [rsp+2C8h+var_5E], ax"], [132, "movzx eax, [rsp+2C8h+var_5E]"], [133, "mov [rsp+2C8h+var_2E], ax"], [134, "mov eax, ebx"], [135, "add eax, 1"], [136, "mov ebx, eax"], [137, "movsx rax, r12w"], [138, "lea rdx, [rax+rax]"], [139, "mov rax, [rsp+2C8h+var_2B8]"], [140, "add rax, rdx"], [141, "movzx eax, word ptr [rax]"], [142, "cmp bx, ax"], [143, "jl loc_45858E"], [144, "mov eax, ebp"], [145, "add eax, 1"], [146, "mov ebp, eax"], [147, "cmp bp, [rsp+2C8h+var_2A]"], [148, "jl loc_458528"], [149, "cmp [rsp+2C8h+var_2BC], 0"], [150, "jnz short loc_4586EF"], [151, "movsx eax, r12w"], [152, "movsx edx, [rsp+2C8h+var_2AC]"], [153, "sub edx, 1"], [154, "cmp eax, edx"], [155, "jnz short loc_4586EF"], [156, "mov [rsp+2C8h+var_2A], 1"], [157, "jmp loc_45881A"], [158, "movsx rax, r12w"], [159, "lea rdx, [rax+rax]"], [160, "mov rax, [rsp+2C8h+var_2B8]"], [161, "add rax, rdx"], [162, "movzx eax, word ptr [rax]"], [163, "cwde"], [164, "movsx edx, [rsp+2C8h+var_2A]"], [165, "mov [rsp+2C8h+var_68], dx"], [166, "mov [rsp+2C8h+var_6A], ax"], [167, "cmp [rsp+2C8h+var_68], 8000h"], [168, "jnz short loc_45874A"], [169, "cmp [rsp+2C8h+var_6A], 8000h"], [170, "jnz short loc_45874A"], [171, "mov eax, 0"], [172, "call sub_4877A5"], [173, "mov [rsp+2C8h+var_70], 7FFFFFFFh"], [174, "jmp short loc_45876B"], [175, "movsx edx, [rsp+2C8h+var_68]"], [176, "movsx eax, [rsp+2C8h+var_6A]"], [177, "imul eax, edx"], [178, "mov [rsp+2C8h+var_70], eax"], [179, "shl [rsp+2C8h+var_70], 1"], [180, "mov eax, [rsp+2C8h+var_70]"], [181, "mov [rsp+2C8h+var_44], eax"], [182, "mov eax, [rsp+2C8h+var_44]"], [183, "mov esi, 1"], [184, "mov edi, eax"], [185, "call sub_456C7D"], [186, "mov [rsp+2C8h+var_44], eax"], [187, "mov eax, [rsp+2C8h+var_44]"], [188, "mov [rsp+2C8h+var_64], eax"], [189, "mov eax, [rsp+2C8h+var_64]"], [190, "mov [rsp+2C8h+var_66], ax"], [191, "movzx eax, [rsp+2C8h+var_66]"], [192, "mov [rsp+2C8h+var_30], ax"], [193, "movsx eax, r12w"], [194, "movsx edx, [rsp+2C8h+var_2AC]"], [195, "sub edx, 1"], [196, "cmp eax, edx"], [197, "jnz short loc_4587DC"], [198, "mov [rsp+2C8h+var_32], 5"], [199, "jmp short loc_4587E6"], [200, "mov [rsp+2C8h+var_32], 8"], [201, "movzx eax, [rsp+2C8h+var_30]"], [202, "cmp ax, [rsp+2C8h+var_32]"], [203, "jge short loc_45880A"], [204, "movzx eax, [rsp+2C8h+var_30]"], [205, "mov [rsp+2C8h+var_2A], ax"], [206, "jmp short loc_45881A"], [207, "movzx eax, [rsp+2C8h+var_32]"], [208, "mov [rsp+2C8h+var_2A], ax"], [209, "mov ebp, 0"], [210, "jmp loc_458B25"], [211, "movsx edx, [rsp+2C8h+var_2B0]"], [212, "movsx eax, bp"], [213, "lea rsi, [rsp+2C8h+var_278]"], [214, "movsxd rcx, eax"], [215, "mov rax, rcx"], [216, "shl rax, 2"], [217, "add rax, rcx"], [218, "shl rax, 3"], [219, "add rax, rsi"], [220, "mov esi, edx"], [221, "mov rdi, rax"], [222, "call sub_48DC58"], [223, "mov rax, [rsp+2C8h+var_2A8]"], [224, "mov [rsp+2C8h+var_28], rax"], [225, "movsx eax, r12w"], [226, "mov [rsp+2C8h+var_72], ax"], [227, "mov [rsp+2C8h+var_74], 1"], [228, "movsx edx, [rsp+2C8h+var_72]"], [229, "movsx eax, [rsp+2C8h+var_74]"], [230, "add eax, edx"], [231, "mov [rsp+2C8h+var_78], eax"], [232, "mov eax, [rsp+2C8h+var_78]"], [233, "mov edi, eax"], [234, "call sub_456A04"], [235, "mov [rsp+2C8h+var_7A], ax"], [236, "movzx eax, [rsp+2C8h+var_7A]"], [237, "mov [rsp+2C8h+var_30], ax"], [238, "movsx eax, [rsp+2C8h+var_30]"], [239, "movsx edx, bp"], [240, "lea rcx, [rsp+2C8h+var_138]"], [241, "movsxd rdx, edx"], [242, "shl rdx, 3"], [243, "lea rsi, [rcx+rdx]"], [244, "movsx edx, bp"], [245, "lea rcx, [rsp+2C8h+var_F8]"], [246, "movsxd rdx, edx"], [247, "shl rdx, 3"], [248, "add rcx, rdx"], [249, "mov edx, eax"], [250, "mov rdi, rcx"], [251, "call sub_48CF4A"], [252, "mov ebx, 0"], [253, "jmp loc_458B10"], [254, "movsx eax, [rsp+2C8h+var_2B0]"], [255, "movsx edx, bp"], [256, "movsx ecx, bx"], [257, "movsxd rcx, ecx"], [258, "movsxd rdx, edx"], [259, "shl rdx, 2"], [260, "add rdx, rcx"], [261, "movzx edx, [rsp+rdx*2+2C8h+var_F8]"], [262, "movsx edx, dx"], [263, "mov [rsp+2C8h+var_94], dx"], [264, "mov [rsp+2C8h+var_96], ax"], [265, "cmp [rsp+2C8h+var_94], 8000h"], [266, "jnz short loc_45895A"], [267, "cmp [rsp+2C8h+var_96], 8000h"], [268, "jnz short loc_45895A"], [269, "mov eax, 0"], [270, "call sub_4877A5"], [271, "mov [rsp+2C8h+var_9C], 7FFFFFFFh"], [272, "jmp short loc_45897B"], [273, "movsx edx, [rsp+2C8h+var_94]"], [274, "movsx eax, [rsp+2C8h+var_96]"], [275, "imul eax, edx"], [276, "mov [rsp+2C8h+var_9C], eax"], [277, "shl [rsp+2C8h+var_9C], 1"], [278, "mov eax, [rsp+2C8h+var_9C]"], [279, "mov [rsp+2C8h+var_44], eax"], [280, "mov eax, [rsp+2C8h+var_44]"], [281, "mov esi, 1"], [282, "mov edi, eax"], [283, "call sub_456C7D"], [284, "mov [rsp+2C8h+var_44], eax"], [285, "mov eax, [rsp+2C8h+var_44]"], [286, "mov [rsp+2C8h+var_90], eax"], [287, "mov eax, [rsp+2C8h+var_90]"], [288, "mov [rsp+2C8h+var_92], ax"], [289, "movzx eax, [rsp+2C8h+var_92]"], [290, "mov [rsp+2C8h+var_32], ax"], [291, "movsx rax, [rsp+2C8h+var_32]"], [292, "lea rdx, [rax+rax]"], [293, "mov rax, [rsp+2C8h+var_28]"], [294, "add rax, rdx"], [295, "mov [rsp+2C8h+var_50], rax"], [296, "movsx edx, [rsp+2C8h+var_2B0]"], [297, "movsx eax, bp"], [298, "lea rsi, [rsp+2C8h+var_278]"], [299, "movsxd rcx, eax"], [300, "mov rax, rcx"], [301, "shl rax, 2"], [302, "add rax, rcx"], [303, "shl rax, 3"], [304, "lea rcx, [rsi+rax]"], [305, "mov rax, [rsp+2C8h+var_50]"], [306, "mov rsi, rax"], [307, "mov rdi, rcx"], [308, "call sub_48CEAB"], [309, "movsx eax, [rsp+2C8h+var_2B0]"], [310, "movsx rdx, bx"], [311, "lea rcx, [rdx+rdx]"], [312, "mov rdx, [rsp+2C8h+var_2B8]"], [313, "add rdx, rcx"], [314, "movzx edx, word ptr [rdx]"], [315, "movsx edx, dx"], [316, "mov [rsp+2C8h+var_84], dx"], [317, "mov [rsp+2C8h+var_86], ax"], [318, "cmp [rsp+2C8h+var_84], 8000h"], [319, "jnz short loc_458A7F"], [320, "cmp [rsp+2C8h+var_86], 8000h"], [321, "jnz short loc_458A7F"], [322, "mov eax, 0"], [323, "call sub_4877A5"], [324, "mov [rsp+2C8h+var_8C], 7FFFFFFFh"], [325, "jmp short loc_458AA0"], [326, "movsx edx, [rsp+2C8h+var_84]"], [327, "movsx eax, [rsp+2C8h+var_86]"], [328, "imul eax, edx"], [329, "mov [rsp+2C8h+var_8C], eax"], [330, "shl [rsp+2C8h+var_8C], 1"], [331, "mov eax, [rsp+2C8h+var_8C]"], [332, "mov [rsp+2C8h+var_44], eax"], [333, "mov eax, [rsp+2C8h+var_44]"], [334, "mov esi, 1"], [335, "mov edi, eax"], [336, "call sub_456C7D"], [337, "mov [rsp+2C8h+var_44], eax"], [338, "mov eax, [rsp+2C8h+var_44]"], [339, "mov [rsp+2C8h+var_80], eax"], [340, "mov eax, [rsp+2C8h+var_80]"], [341, "mov [rsp+2C8h+var_82], ax"], [342, "movzx eax, [rsp+2C8h+var_82]"], [343, "mov [rsp+2C8h+var_32], ax"], [344, "movsx rax, [rsp+2C8h+var_32]"], [345, "add rax, rax"], [346, "add [rsp+2C8h+var_28], rax"], [347, "mov eax, ebx"], [348, "add eax, 1"], [349, "mov ebx, eax"], [350, "cmp bx, [rsp+2C8h+var_30]"], [351, "jl loc_4588F8"], [352, "mov eax, ebp"], [353, "add eax, 1"], [354, "mov ebp, eax"], [355, "cmp bp, [rsp+2C8h+var_2A]"], [356, "jl loc_458824"], [357, "movsx rax, [rsp+2C8h+var_2E]"], [358, "add rax, rax"], [359, "add [rsp+2C8h+var_20], rax"], [360, "mov eax, r12d"], [361, "add eax, 1"], [362, "mov r12d, eax"], [363, "cmp r12w, [rsp+2C8h+var_2AC]"], [364, "jl loc_4584FD"], [365, "mov [rsp+2C8h+var_30], 0"], [366, "mov [rsp+2C8h+var_32], 0"], [367, "mov ebx, 0"], [368, "jmp loc_458CB8"], [369, "movsx eax, [rsp+2C8h+var_2AC]"], [370, "movsx edx, bx"], [371, "lea rcx, [rsp+2C8h+var_F8]"], [372, "movsxd rdx, edx"], [373, "shl rdx, 3"], [374, "lea rsi, [rcx+rdx]"], [375, "movsx rdx, [rsp+2C8h+var_30]"], [376, "lea rcx, [rdx+rdx]"], [377, "mov rdx, [rsp+2C8h+arg_0]"], [378, "add rcx, rdx"], [379, "mov edx, eax"], [380, "mov rdi, rcx"], [381, "call sub_48CF4A"], [382, "movsx edx, [rsp+2C8h+var_2B0]"], [383, "movsx eax, bx"], [384, "lea rsi, [rsp+2C8h+var_278]"], [385, "movsxd rcx, eax"], [386, "mov rax, rcx"], [387, "shl rax, 2"], [388, "add rax, rcx"], [389, "shl rax, 3"], [390, "lea rcx, [rsi+rax]"], [391, "movsx rax, [rsp+2C8h+var_32]"], [392, "lea rsi, [rax+rax]"], [393, "mov rax, [rsp+2C8h+var_2A0]"], [394, "add rax, rsi"], [395, "mov rsi, rcx"], [396, "mov rdi, rax"], [397, "call sub_48CF4A"], [398, "movsx eax, [rsp+2C8h+var_2AC]"], [399, "movsx edx, [rsp+2C8h+var_30]"], [400, "mov [rsp+2C8h+var_A8], dx"], [401, "mov [rsp+2C8h+var_AA], ax"], [402, "movsx edx, [rsp+2C8h+var_A8]"], [403, "movsx eax, [rsp+2C8h+var_AA]"], [404, "add eax, edx"], [405, "mov [rsp+2C8h+var_B0], eax"], [406, "mov eax, [rsp+2C8h+var_B0]"], [407, "mov edi, eax"], [408, "call sub_456A04"], [409, "mov [rsp+2C8h+var_B2], ax"], [410, "movzx eax, [rsp+2C8h+var_B2]"], [411, "mov [rsp+2C8h+var_30], ax"], [412, "movsx eax, [rsp+2C8h+var_2B0]"], [413, "movsx edx, [rsp+2C8h+var_32]"], [414, "mov [rsp+2C8h+var_9E], dx"], [415, "mov [rsp+2C8h+var_A0], ax"], [416, "movsx edx, [rsp+2C8h+var_9E]"], [417, "movsx eax, [rsp+2C8h+var_A0]"], [418, "add eax, edx"], [419, "mov [rsp+2C8h+var_A4], eax"], [420, "mov eax, [rsp+2C8h+var_A4]"], [421, "mov edi, eax"], [422, "call sub_456A04"], [423, "mov [rsp+2C8h+var_A6], ax"], [424, "movzx eax, [rsp+2C8h+var_A6]"], [425, "mov [rsp+2C8h+var_32], ax"], [426, "mov eax, ebx"], [427, "add eax, 1"], [428, "mov ebx, eax"], [429, "cmp bx, [rsp+2C8h+var_2A]"], [430, "jl loc_458B7A"], [431, "mov rax, [rsp+2C8h+var_40]"], [432, "mov rdi, rax"], [433, "call sub_48DD4E"], [434, "nop"], [435, "add rsp, 2B0h"], [436, "pop rbx"], [437, "pop rbp"], [438, "pop r12"], [439, "retn"]], "data_dep": [[12, 8], [13, 10], [14, 11], [18, 13], [19, 16], [19, 48], [20, 43], [21, 19], [22, 21], [23, 22], [24, 21], [24, 23], [25, 24], [26, 25], [26, 20], [27, 18], [28, 26], [30, 16], [30, 48], [31, 18], [33, 30], [34, 33], [34, 31], [36, 34], [38, 16], [38, 48], [39, 31], [41, 38], [42, 39], [42, 41], [44, 42], [46, 16], [46, 48], [47, 46], [48, 47], [49, 16], [49, 48], [50, 49], [51, 13], [52, 51], [54, 53], [56, 7], [57, 56], [60, 361], [60, 56], [63, 60], [69, 13], [70, 4], [71, 54], [72, 70], [73, 71], [75, 13], [76, 146], [76, 66], [77, 72], [78, 76], [79, 78], [80, 79], [81, 78], [81, 80], [82, 81], [83, 78], [83, 82], [84, 54], [85, 83], [86, 84], [90, 68], [90, 133], [91, 90], [91, 138], [92, 359], [92, 57], [93, 92], [93, 91], [94, 93], [95, 119], [95, 65], [96, 13], [97, 54], [98, 94], [99, 5], [100, 95], [101, 96], [103, 102], [104, 103], [105, 119], [105, 104], [105, 65], [106, 105], [107, 88], [107, 136], [108, 103], [109, 362], [109, 58], [110, 66], [110, 146], [111, 111], [112, 98], [113, 3], [113, 118], [114, 101], [115, 114], [116, 110], [118, 113], [119, 117], [120, 13], [121, 133], [121, 68], [122, 121], [123, 120], [124, 122], [125, 123], [126, 125], [126, 124], [127, 126], [128, 127], [129, 128], [131, 130], [132, 131], [133, 132], [134, 88], [134, 136], [135, 134], [136, 135], [137, 362], [137, 58], [138, 137], [138, 75], [138, 124], [139, 9], [140, 139], [140, 138], [141, 140], [142, 88], [142, 141], [142, 136], [143, 142], [144, 146], [144, 66], [145, 144], [146, 145], [147, 208], [147, 156], [147, 146], [147, 66], [147, 205], [147, 55], [148, 147], [149, 14], [150, 149], [151, 362], [151, 58], [152, 12], [153, 152], [154, 151], [154, 153], [155, 154], [158, 362], [158, 58], [159, 61], [159, 158], [159, 153], [159, 138], [160, 9], [161, 160], [161, 159], [162, 161], [164, 205], [164, 55], [164, 208], [164, 156], [165, 164], [166, 162], [167, 165], [168, 167], [169, 166], [170, 169], [175, 165], [176, 166], [177, 176], [177, 175], [178, 177], [179, 178], [180, 173], [180, 179], [181, 180], [182, 181], [184, 182], [186, 185], [187, 186], [188, 187], [189, 188], [190, 189], [191, 190], [192, 191], [193, 58], [193, 362], [194, 12], [195, 194], [196, 193], [196, 195], [197, 196], [201, 192], [202, 200], [202, 198], [202, 201], [203, 202], [204, 192], [205, 204], [207, 200], [207, 198], [208, 207], [211, 13], [212, 354], [212, 209], [213, 243], [213, 99], [213, 85], [213, 334], [213, 109], [213, 62], [213, 183], [214, 212], [215, 214], [216, 215], [217, 216], [217, 214], [218, 217], [219, 218], [219, 213], [220, 211], [221, 219], [223, 7], [224, 223], [225, 58], [225, 362], [226, 225], [228, 226], [229, 227], [230, 229], [230, 228], [231, 230], [232, 231], [233, 232], [235, 234], [236, 235], [237, 236], [238, 237], [239, 354], [239, 209], [240, 214], [241, 239], [242, 241], [243, 240], [243, 220], [244, 354], [244, 209], [245, 240], [246, 244], [247, 246], [248, 245], [248, 247], [249, 238], [250, 248], [254, 13], [255, 354], [255, 209], [256, 252], [256, 349], [257, 256], [258, 255], [259, 258], [260, 257], [260, 259], [261, 260], [262, 261], [263, 262], [264, 254], [265, 263], [266, 265], [267, 264], [268, 267], [273, 263], [274, 264], [275, 273], [275, 274], [276, 275], [277, 276], [278, 277], [278, 271], [279, 278], [280, 279], [282, 280], [284, 283], [285, 284], [286, 285], [287, 286], [288, 287], [289, 288], [290, 289], [291, 290], [292, 273], [292, 291], [292, 262], [293, 346], [293, 224], [294, 292], [294, 293], [295, 294], [296, 13], [297, 354], [297, 209], [298, 281], [299, 297], [300, 299], [301, 300], [302, 301], [302, 299], [303, 302], [304, 299], [304, 303], [305, 295], [306, 305], [307, 304], [309, 13], [310, 252], [310, 349], [311, 310], [311, 304], [312, 9], [313, 311], [313, 312], [314, 313], [315, 314], [316, 315], [317, 309], [318, 316], [319, 318], [320, 317], [321, 320], [326, 316], [327, 317], [328, 327], [328, 326], [329, 328], [330, 329], [331, 330], [331, 324], [332, 331], [333, 332], [335, 333], [337, 336], [338, 337], [339, 338], [340, 339], [341, 340], [342, 341], [343, 342], [344, 343], [345, 344], [346, 346], [346, 224], [346, 345], [347, 252], [347, 349], [348, 347], [349, 348], [350, 252], [350, 237], [350, 349], [351, 350], [352, 209], [352, 354], [353, 352], [354, 353], [355, 205], [355, 354], [355, 209], [355, 208], [355, 156], [356, 355], [357, 68], [357, 133], [357, 15], [358, 357], [359, 359], [359, 57], [359, 358], [360, 362], [360, 58], [361, 360], [362, 361], [363, 362], [363, 58], [363, 12], [364, 363], [369, 12], [370, 428], [370, 367], [371, 390], [371, 97], [371, 83], [371, 311], [371, 8], [371, 21], [371, 248], [371, 108], [372, 370], [373, 372], [374, 43], [374, 395], [374, 371], [374, 334], [374, 109], [374, 243], [374, 99], [374, 85], [374, 62], [374, 183], [375, 411], [375, 365], [376, 371], [376, 375], [378, 377], [378, 376], [379, 369], [380, 378], [382, 13], [383, 428], [383, 367], [384, 374], [385, 383], [386, 385], [387, 386], [388, 387], [388, 385], [389, 388], [390, 385], [390, 389], [391, 366], [391, 425], [392, 384], [392, 391], [393, 6], [394, 393], [394, 392], [395, 390], [396, 394], [398, 12], [399, 365], [399, 411], [400, 399], [401, 398], [402, 400], [403, 401], [404, 403], [404, 402], [405, 404], [406, 405], [407, 406], [409, 408], [410, 409], [411, 410], [412, 13], [413, 425], [413, 366], [414, 413], [415, 412], [416, 414], [417, 415], [418, 417], [418, 416], [419, 418], [420, 419], [421, 420], [423, 422], [424, 423], [425, 424], [426, 428], [426, 367], [427, 426], [428, 427], [429, 205], [429, 428], [429, 55], [429, 367], [429, 208], [429, 156], [430, 429], [431, 54], [432, 431], [435, 118], [435, 3], [436, 2], [437, 1], [438, 0], [439, 433]]}
|
void tcmd5hash(const void *ptr, int size, char *buf){
assert(ptr && size >= 0 && buf);
int i;
md5_state_t ms;
md5_init(&ms);
md5_append(&ms, (md5_byte_t *)ptr, size);
unsigned char digest[16];
md5_finish(&ms, (md5_byte_t *)digest);
char *wp = buf;
for(i = 0; i < 16; i++){
wp += sprintf(wp, "%02x", digest[i]);
}
*wp = '\0';
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4163D0", "function_addr": 4285392, "binary_name": "812e8dfce92fa099466d25318f60cd3447e0cec291f3b4540a415d01df80fb51.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0A0h"], [3, "mov [rbp+var_88], rdi"], [4, "mov [rbp+var_8C], esi"], [5, "mov [rbp+var_98], rdx"], [6, "lea rax, [rbp+var_70]"], [7, "mov rdi, rax"], [8, "call sub_447A0C"], [9, "mov edx, [rbp+var_8C]"], [10, "mov rcx, [rbp+var_88]"], [11, "lea rax, [rbp+var_70]"], [12, "mov rsi, rcx"], [13, "mov rdi, rax"], [14, "call sub_447A5B"], [15, "lea rdx, [rbp+var_80]"], [16, "lea rax, [rbp+var_70]"], [17, "mov rsi, rdx"], [18, "mov rdi, rax"], [19, "call sub_447BAF"], [20, "mov rax, [rbp+var_98]"], [21, "mov [rbp+s], rax"], [22, "mov [rbp+var_4], 0"], [23, "jmp short loc_41646D"], [24, "mov eax, [rbp+var_4]"], [25, "cdqe"], [26, "movzx eax, [rbp+rax+var_80]"], [27, "movzx edx, al"], [28, "mov rax, [rbp+s]"], [29, "lea rsi, a02x_0"], [30, "mov rdi, rax"], [31, "mov eax, 0"], [32, "call _sprintf"], [33, "cdqe"], [34, "add [rbp+s], rax"], [35, "add [rbp+var_4], 1"], [36, "cmp [rbp+var_4], 0Fh"], [37, "jle short loc_41643E"], [38, "mov rax, [rbp+s]"], [39, "mov byte ptr [rax], 0"], [40, "nop"], [41, "leave"], [42, "retn"]], "data_dep": [[7, 6], [9, 4], [10, 3], [11, 8], [12, 10], [13, 11], [15, 9], [16, 14], [17, 15], [18, 16], [20, 5], [21, 20], [24, 35], [24, 22], [26, 24], [27, 26], [28, 21], [28, 34], [29, 17], [29, 29], [30, 28], [34, 34], [34, 21], [34, 32], [35, 35], [35, 22], [36, 22], [36, 35], [37, 36], [38, 34], [38, 21], [39, 38], [42, 38]]}
|
void u8g2_Setup_sh1108_i2c_160x160_f(u8g2_t *u8g2, const u8g2_cb_t *rotation, u8x8_msg_cb byte_cb, u8x8_msg_cb gpio_and_delay_cb)
{
uint8_t tile_buf_height;
uint8_t *buf;
u8g2_SetupDisplay(u8g2, u8x8_d_sh1108_160x160, u8x8_cad_ssd13xx_i2c, byte_cb, gpio_and_delay_cb);
buf = u8g2_m_20_20_f(&tile_buf_height);
u8g2_SetupBuffer(u8g2, buf, tile_buf_height, u8g2_ll_hvline_vertical_top_lsb, rotation);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40D0B2", "function_addr": 4247730, "binary_name": "bddd6776f1019b5476f11cff727555ff1ce953b5d63681da044418d28c92cc46.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_30], rcx"], [7, "mov rcx, [rbp+var_30]"], [8, "mov rdx, [rbp+var_28]"], [9, "mov rax, [rbp+var_18]"], [10, "mov r8, rcx"], [11, "mov rcx, rdx"], [12, "mov edx, offset sub_429387"], [13, "mov esi, offset sub_4300D3"], [14, "mov rdi, rax"], [15, "call sub_44088A"], [16, "lea rax, [rbp+var_9]"], [17, "mov rdi, rax"], [18, "call sub_407DE0"], [19, "mov [rbp+var_8], rax"], [20, "movzx eax, [rbp+var_9]"], [21, "movzx edx, al"], [22, "mov rcx, [rbp+var_20]"], [23, "mov rsi, [rbp+var_8]"], [24, "mov rax, [rbp+var_18]"], [25, "mov r8, rcx"], [26, "mov ecx, offset sub_423F48"], [27, "mov rdi, rax"], [28, "call sub_425671"], [29, "nop"], [30, "leave"], [31, "retn"]], "data_dep": [[7, 6], [8, 5], [9, 3], [10, 7], [11, 8], [14, 9], [16, 15], [17, 16], [19, 18], [21, 20], [22, 4], [23, 19], [24, 3], [25, 22], [27, 24], [31, 28]]}
|
static void FuncConcat (void)
/* Handle the .CONCAT function */
{
StrBuf Buf = STATIC_STRBUF_INITIALIZER;
/* Skip it */
NextTok ();
/* Left paren expected */
ConsumeLParen ();
/* Concatenate any number of strings */
while (1) {
/* Next token must be a string */
if (!LookAtStrCon ()) {
SB_Done (&Buf);
return;
}
/* Append the string */
SB_Append (&Buf, &CurTok.SVal);
/* Skip the string token */
NextTok ();
/* Comma means another argument */
if (CurTok.Tok == TOK_COMMA) {
NextTok ();
} else {
/* Done */
break;
}
}
/* We expect a closing parenthesis, but will not skip it but replace it
** by the string token just created.
*/
if (CurTok.Tok != TOK_RPAREN) {
Error ("')' expected");
} else {
CurTok.Tok = TOK_STRCON;
SB_Copy (&CurTok.SVal, &Buf);
SB_Terminate (&CurTok.SVal);
}
/* Free the string buffer */
SB_Done (&Buf);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40BC9F", "function_addr": 4242591, "binary_name": "aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_20], 0"], [4, "mov [rbp+var_18], 0"], [5, "mov [rbp+var_14], 0"], [6, "mov [rbp+var_10], 0"], [7, "call sub_40C6E7"], [8, "call sub_40C7F2"], [9, "call sub_40BBD0"], [10, "test eax, eax"], [11, "jnz short loc_40BCE5"], [12, "lea rax, [rbp+var_20]"], [13, "mov rdi, rax"], [14, "call sub_41C55F"], [15, "jmp short locret_40BD5B"], [16, "lea rax, [rbp+var_20]"], [17, "mov esi, offset unk_43AC90"], [18, "mov rdi, rax"], [19, "call sub_40BB7F"], [20, "call sub_40C6E7"], [21, "mov eax, cs:dword_43AC80"], [22, "cmp eax, 28h "], [23, "jnz short loc_40BD0D"], [24, "call sub_40C6E7"], [25, "jmp short loc_40BCCE"], [26, "nop"], [27, "mov eax, cs:dword_43AC80"], [28, "cmp eax, 2Ch "], [29, "jz short loc_40BD2A"], [30, "mov edi, offset aExpected_5"], [31, "mov eax, 0"], [32, "call sub_403B44"], [33, "jmp short loc_40BD4F"], [34, "mov cs:dword_43AC80, 7"], [35, "lea rax, [rbp+var_20]"], [36, "mov rsi, rax"], [37, "mov edi, offset unk_43AC90"], [38, "call sub_40BB0D"], [39, "mov edi, offset unk_43AC90"], [40, "call sub_41C762"], [41, "lea rax, [rbp+var_20]"], [42, "mov rdi, rax"], [43, "call sub_41C55F"], [44, "leave"], [45, "retn"]], "data_dep": [[10, 9], [11, 10], [12, 10], [12, 3], [13, 12], [16, 10], [16, 3], [18, 16], [22, 21], [23, 22], [28, 27], [29, 28], [35, 27], [35, 3], [36, 35], [41, 40], [41, 3], [41, 32], [42, 41], [45, 43], [45, 14]]}
|
long jas_stream_tell(jas_stream_t *stream)
{
int adjust;
int offset;
if (stream->bufmode_ & JAS_STREAM_RDBUF) {
adjust = -stream->cnt_;
} else if (stream->bufmode_ & JAS_STREAM_WRBUF) {
adjust = stream->ptr_ - stream->bufstart_;
} else {
adjust = 0;
}
if ((offset = (*stream->ops_->seek_)(stream->obj_, 0, SEEK_CUR)) < 0) {
return -1;
}
return offset + adjust;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409E3C", "function_addr": 4234812, "binary_name": "f4745e82b1d0cff651d46375754e6291357312b85b3ec537e20de9075c6972a9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov eax, [rax+4]"], [6, "and eax, 10h"], [7, "test eax, eax"], [8, "jz short loc_409E64"], [9, "mov rax, [rbp+var_18]"], [10, "mov eax, [rax+30h]"], [11, "neg eax"], [12, "mov [rbp+var_4], eax"], [13, "jmp short loc_409E94"], [14, "mov rax, [rbp+var_18]"], [15, "mov eax, [rax+4]"], [16, "and eax, 20h"], [17, "test eax, eax"], [18, "jz short loc_409E8D"], [19, "mov rax, [rbp+var_18]"], [20, "mov rdx, [rax+28h]"], [21, "mov rax, [rbp+var_18]"], [22, "mov rcx, [rax+18h]"], [23, "mov rax, rdx"], [24, "sub rax, rcx"], [25, "mov [rbp+var_4], eax"], [26, "jmp short loc_409E94"], [27, "mov [rbp+var_4], 0"], [28, "mov rax, [rbp+var_18]"], [29, "mov rax, [rax+48h]"], [30, "mov rcx, [rax+10h]"], [31, "mov rax, [rbp+var_18]"], [32, "mov rax, [rax+50h]"], [33, "mov edx, 1"], [34, "mov esi, 0"], [35, "mov rdi, rax"], [36, "call rcx"], [37, "mov [rbp+var_8], eax"], [38, "cmp [rbp+var_8], 0"], [39, "jns short loc_409EC9"], [40, "mov rax, 0FFFFFFFFFFFFFFFFh"], [41, "jmp short locret_409ED3"], [42, "mov edx, [rbp+var_8]"], [43, "mov eax, [rbp+var_4]"], [44, "add eax, edx"], [45, "cdqe"], [46, "leave"], [47, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 3], [10, 9], [11, 10], [12, 11], [14, 3], [15, 14], [16, 15], [17, 16], [18, 17], [19, 3], [20, 19], [21, 3], [22, 21], [23, 20], [24, 23], [24, 22], [25, 24], [28, 3], [29, 28], [30, 29], [31, 3], [32, 31], [35, 32], [36, 30], [37, 36], [38, 37], [39, 38], [42, 37], [43, 12], [43, 27], [43, 25], [44, 42], [44, 43], [47, 40], [47, 44]]}
|
void
InitArchiveFmt_Tar(ArchiveHandle *AH)
{
lclContext *ctx;
/* Assuming static functions, this can be copied for each format. */
AH->ArchiveEntryPtr = _ArchiveEntry;
AH->StartDataPtr = _StartData;
AH->WriteDataPtr = _WriteData;
AH->EndDataPtr = _EndData;
AH->WriteBytePtr = _WriteByte;
AH->ReadBytePtr = _ReadByte;
AH->WriteBufPtr = _WriteBuf;
AH->ReadBufPtr = _ReadBuf;
AH->ClosePtr = _CloseArchive;
AH->ReopenPtr = NULL;
AH->PrintTocDataPtr = _PrintTocData;
AH->ReadExtraTocPtr = _ReadExtraToc;
AH->WriteExtraTocPtr = _WriteExtraToc;
AH->PrintExtraTocPtr = _PrintExtraToc;
AH->StartBlobsPtr = _StartBlobs;
AH->StartBlobPtr = _StartBlob;
AH->EndBlobPtr = _EndBlob;
AH->EndBlobsPtr = _EndBlobs;
AH->ClonePtr = NULL;
AH->DeClonePtr = NULL;
AH->MasterStartParallelItemPtr = NULL;
AH->MasterEndParallelItemPtr = NULL;
AH->WorkerJobDumpPtr = NULL;
AH->WorkerJobRestorePtr = NULL;
/*
* Set up some special context used in compressing data.
*/
ctx = (lclContext *) pg_malloc0(sizeof(lclContext));
AH->formatData = (void *) ctx;
ctx->filePos = 0;
ctx->isSpecialScript = 0;
/* Initialize LO buffering */
AH->lo_buf_size = LOBBUFSIZE;
AH->lo_buf = (void *) pg_malloc(LOBBUFSIZE);
/*
* Now open the tar file, and load the TOC if we're in read mode.
*/
if (AH->mode == archModeWrite)
{
if (AH->fSpec && strcmp(AH->fSpec, "") != 0)
{
ctx->tarFH = fopen(AH->fSpec, PG_BINARY_W);
if (ctx->tarFH == NULL)
exit_horribly(modulename,
"could not open TOC file \"%s\" for output: %s\n",
AH->fSpec, strerror(errno));
}
else
{
ctx->tarFH = stdout;
if (ctx->tarFH == NULL)
exit_horribly(modulename,
"could not open TOC file for output: %s\n",
strerror(errno));
}
ctx->tarFHpos = 0;
/*
* Make unbuffered since we will dup() it, and the buffers screw each
* other
*/
/* setvbuf(ctx->tarFH, NULL, _IONBF, 0); */
ctx->hasSeek = checkSeek(ctx->tarFH);
/*
* We don't support compression because reading the files back is not
* possible since gzdopen uses buffered IO which totally screws file
* positioning.
*/
if (AH->compression != 0)
exit_horribly(modulename,
"compression is not supported by tar archive format\n");
}
else
{ /* Read Mode */
if (AH->fSpec && strcmp(AH->fSpec, "") != 0)
{
ctx->tarFH = fopen(AH->fSpec, PG_BINARY_R);
if (ctx->tarFH == NULL)
exit_horribly(modulename, "could not open TOC file \"%s\" for input: %s\n",
AH->fSpec, strerror(errno));
}
else
{
ctx->tarFH = stdin;
if (ctx->tarFH == NULL)
exit_horribly(modulename, "could not open TOC file for input: %s\n",
strerror(errno));
}
/*
* Make unbuffered since we will dup() it, and the buffers screw each
* other
*/
/* setvbuf(ctx->tarFH, NULL, _IONBF, 0); */
ctx->tarFHpos = 0;
ctx->hasSeek = checkSeek(ctx->tarFH);
/*
* Forcibly unmark the header as read since we use the lookahead
* buffer
*/
AH->readHeader = 0;
ctx->FH = (void *) tarOpen(AH, "toc.dat", 'r');
ReadHead(AH);
ReadToc(AH);
tarClose(AH, ctx->FH); /* Nothing else in the file... */
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4101DB", "function_addr": 4260315, "binary_name": "fafe52d0ee1da781c296d6ceb298de717c05d433bbb7ac9007e04b1c1d7600ce.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov qword ptr [rax+0D0h], offset sub_410627"], [6, "mov rax, [rbp+var_18]"], [7, "mov qword ptr [rax+0D8h], offset sub_410840"], [8, "mov rax, [rbp+var_18]"], [9, "mov qword ptr [rax+0E0h], offset sub_410F4C"], [10, "mov rax, [rbp+var_18]"], [11, "mov qword ptr [rax+0E8h], offset sub_410FC3"], [12, "mov rax, [rbp+var_18]"], [13, "mov qword ptr [rax+0F0h], offset sub_411448"], [14, "mov rax, [rbp+var_18]"], [15, "mov qword ptr [rax+0F8h], offset sub_4114D0"], [16, "mov rax, [rbp+var_18]"], [17, "mov qword ptr [rax+100h], offset sub_411545"], [18, "mov rax, [rbp+var_18]"], [19, "mov qword ptr [rax+108h], offset sub_4115D3"], [20, "mov rax, [rbp+var_18]"], [21, "mov qword ptr [rax+110h], offset sub_411650"], [22, "mov rax, [rbp+var_18]"], [23, "mov qword ptr [rax+118h], 0"], [24, "mov rax, [rbp+var_18]"], [25, "mov qword ptr [rax+138h], offset sub_4110DD"], [26, "mov rax, [rbp+var_18]"], [27, "mov qword ptr [rax+128h], offset sub_410758"], [28, "mov rax, [rbp+var_18]"], [29, "mov qword ptr [rax+120h], offset sub_4106FF"], [30, "mov rax, [rbp+var_18]"], [31, "mov qword ptr [rax+130h], offset sub_4107E8"], [32, "mov rax, [rbp+var_18]"], [33, "mov qword ptr [rax+140h], offset sub_4118D9"], [34, "mov rax, [rbp+var_18]"], [35, "mov qword ptr [rax+150h], offset sub_411946"], [36, "mov rax, [rbp+var_18]"], [37, "mov qword ptr [rax+158h], offset sub_411A52"], [38, "mov rax, [rbp+var_18]"], [39, "mov qword ptr [rax+148h], offset sub_411A8D"], [40, "mov rax, [rbp+var_18]"], [41, "mov qword ptr [rax+188h], 0"], [42, "mov rax, [rbp+var_18]"], [43, "mov qword ptr [rax+190h], 0"], [44, "mov rax, [rbp+var_18]"], [45, "mov qword ptr [rax+160h], 0"], [46, "mov rax, [rbp+var_18]"], [47, "mov qword ptr [rax+168h], 0"], [48, "mov rax, [rbp+var_18]"], [49, "mov qword ptr [rax+178h], 0"], [50, "mov rax, [rbp+var_18]"], [51, "mov qword ptr [rax+180h], 0"], [52, "mov edi, 48h "], [53, "call sub_419386"], [54, "mov [rbp+var_8], rax"], [55, "mov rax, [rbp+var_18]"], [56, "mov rdx, [rbp+var_8]"], [57, "mov [rax+238h], rdx"], [58, "mov rax, [rbp+var_8]"], [59, "mov qword ptr [rax+8], 0"], [60, "mov rax, [rbp+var_8]"], [61, "mov dword ptr [rax+38h], 0"], [62, "mov rax, [rbp+var_18]"], [63, "mov qword ptr [rax+270h], 4000h"], [64, "mov edi, 4000h"], [65, "call sub_419367"], [66, "mov rdx, [rbp+var_18]"], [67, "mov [rdx+260h], rax"], [68, "mov rax, [rbp+var_18]"], [69, "mov eax, [rax+234h]"], [70, "cmp eax, 1"], [71, "jnz loc_4104D7"], [72, "mov rax, [rbp+var_18]"], [73, "mov rax, [rax+1E8h]"], [74, "test rax, rax"], [75, "jz short loc_410441"], [76, "mov rax, [rbp+var_18]"], [77, "mov rax, [rax+1E8h]"], [78, "movzx eax, byte ptr [rax]"], [79, "movzx eax, al"], [80, "test eax, eax"], [81, "jz short loc_410441"], [82, "mov rax, [rbp+var_18]"], [83, "mov rax, [rax+1E8h]"], [84, "mov esi, offset aW_3"], [85, "mov rdi, rax"], [86, "call _fopen"], [87, "mov rdx, [rbp+var_8]"], [88, "mov [rdx+18h], rax"], [89, "mov rax, [rbp+var_8]"], [90, "mov rax, [rax+18h]"], [91, "test rax, rax"], [92, "jnz short loc_410487"], [93, "call ___errno_location"], [94, "mov eax, [rax]"], [95, "mov edi, eax"], [96, "call _strerror"], [97, "mov rcx, rax"], [98, "mov rax, [rbp+var_18]"], [99, "mov rdx, [rax+1E8h]"], [100, "mov rax, cs:off_42B4E8"], [101, "mov esi, offset aCouldNotOpenTo_0"], [102, "mov rdi, rax"], [103, "mov eax, 0"], [104, "call sub_413E3D"], [105, "mov rdx, cs:stdout"], [106, "mov rax, [rbp+var_8]"], [107, "mov [rax+18h], rdx"], [108, "mov rax, [rbp+var_8]"], [109, "mov rax, [rax+18h]"], [110, "test rax, rax"], [111, "jnz short loc_410487"], [112, "call ___errno_location"], [113, "mov eax, [rax]"], [114, "mov edi, eax"], [115, "call _strerror"], [116, "mov rdx, rax"], [117, "mov rax, cs:off_42B4E8"], [118, "mov esi, offset aCouldNotOpenTo_1"], [119, "mov rdi, rax"], [120, "mov eax, 0"], [121, "call sub_413E3D"], [122, "mov rax, [rbp+var_8]"], [123, "mov qword ptr [rax+20h], 0"], [124, "mov rax, [rbp+var_8]"], [125, "mov rax, [rax+18h]"], [126, "mov rdi, rax"], [127, "call sub_40BC42"], [128, "movsx edx, al"], [129, "mov rax, [rbp+var_8]"], [130, "mov [rax], edx"], [131, "mov rax, [rbp+var_18]"], [132, "mov eax, [rax+230h]"], [133, "test eax, eax"], [134, "jz loc_410624"], [135, "mov rax, cs:off_42B4E8"], [136, "mov esi, offset aCompressionIsN"], [137, "mov rdi, rax"], [138, "mov eax, 0"], [139, "call sub_413E3D"], [140, "mov rax, [rbp+var_18]"], [141, "mov rax, [rax+1E8h]"], [142, "test rax, rax"], [143, "jz short loc_41055E"], [144, "mov rax, [rbp+var_18]"], [145, "mov rax, [rax+1E8h]"], [146, "movzx eax, byte ptr [rax]"], [147, "movzx eax, al"], [148, "test eax, eax"], [149, "jz short loc_41055E"], [150, "mov rax, [rbp+var_18]"], [151, "mov rax, [rax+1E8h]"], [152, "mov esi, offset aR_1"], [153, "mov rdi, rax"], [154, "call _fopen"], [155, "mov rdx, [rbp+var_8]"], [156, "mov [rdx+18h], rax"], [157, "mov rax, [rbp+var_8]"], [158, "mov rax, [rax+18h]"], [159, "test rax, rax"], [160, "jnz short loc_4105A4"], [161, "call ___errno_location"], [162, "mov eax, [rax]"], [163, "mov edi, eax"], [164, "call _strerror"], [165, "mov rcx, rax"], [166, "mov rax, [rbp+var_18]"], [167, "mov rdx, [rax+1E8h]"], [168, "mov rax, cs:off_42B4E8"], [169, "mov esi, offset aCouldNotOpenTo_2"], [170, "mov rdi, rax"], [171, "mov eax, 0"], [172, "call sub_413E3D"], [173, "mov rdx, cs:stdin"], [174, "mov rax, [rbp+var_8]"], [175, "mov [rax+18h], rdx"], [176, "mov rax, [rbp+var_8]"], [177, "mov rax, [rax+18h]"], [178, "test rax, rax"], [179, "jnz short loc_4105A4"], [180, "call ___errno_location"], [181, "mov eax, [rax]"], [182, "mov edi, eax"], [183, "call _strerror"], [184, "mov rdx, rax"], [185, "mov rax, cs:off_42B4E8"], [186, "mov esi, offset aCouldNotOpenTo_3"], [187, "mov rdi, rax"], [188, "mov eax, 0"], [189, "call sub_413E3D"], [190, "mov rax, [rbp+var_8]"], [191, "mov qword ptr [rax+20h], 0"], [192, "mov rax, [rbp+var_8]"], [193, "mov rax, [rax+18h]"], [194, "mov rdi, rax"], [195, "call sub_40BC42"], [196, "movsx edx, al"], [197, "mov rax, [rbp+var_8]"], [198, "mov [rax], edx"], [199, "mov rax, [rbp+var_18]"], [200, "mov dword ptr [rax+0A8h], 0"], [201, "mov rax, [rbp+var_18]"], [202, "mov edx, 72h "], [203, "mov esi, offset aTocDat"], [204, "mov rdi, rax"], [205, "call sub_410885"], [206, "mov rdx, [rbp+var_8]"], [207, "mov [rdx+30h], rax"], [208, "mov rax, [rbp+var_18]"], [209, "mov rdi, rax"], [210, "call sub_40B84F"], [211, "mov rax, [rbp+var_18]"], [212, "mov rdi, rax"], [213, "call sub_409044"], [214, "mov rax, [rbp+var_8]"], [215, "mov rdx, [rax+30h]"], [216, "mov rax, [rbp+var_18]"], [217, "mov rsi, rdx"], [218, "mov rdi, rax"], [219, "call sub_410A76"], [220, "nop"], [221, "leave"], [222, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 3], [7, 6], [8, 3], [9, 8], [10, 3], [11, 10], [12, 3], [13, 12], [14, 3], [15, 14], [16, 3], [17, 16], [18, 3], [19, 18], [20, 3], [21, 20], [22, 3], [23, 22], [24, 3], [25, 24], [26, 3], [27, 26], [28, 3], [29, 28], [30, 3], [31, 30], [32, 3], [33, 32], [34, 3], [35, 34], [36, 3], [37, 36], [38, 3], [39, 38], [40, 3], [41, 40], [42, 3], [43, 42], [44, 3], [45, 44], [46, 3], [47, 46], [48, 3], [49, 48], [50, 3], [51, 50], [54, 53], [55, 3], [56, 54], [57, 55], [57, 56], [58, 54], [59, 58], [60, 54], [61, 60], [62, 3], [63, 62], [66, 3], [67, 66], [67, 65], [68, 3], [69, 67], [69, 68], [70, 69], [71, 70], [72, 3], [73, 41], [73, 59], [73, 45], [73, 63], [73, 72], [73, 31], [73, 49], [73, 17], [73, 35], [73, 21], [73, 39], [73, 7], [73, 25], [73, 11], [73, 67], [73, 57], [73, 43], [73, 61], [73, 29], [73, 47], [73, 15], [73, 33], [73, 51], [73, 19], [73, 37], [73, 5], [73, 23], [73, 9], [73, 27], [73, 13], [74, 73], [75, 74], [76, 3], [77, 76], [77, 57], [77, 43], [77, 61], [77, 47], [77, 33], [77, 51], [77, 19], [77, 37], [77, 5], [77, 23], [77, 41], [77, 9], [77, 27], [77, 13], [77, 17], [77, 59], [77, 45], [77, 63], [77, 31], [77, 49], [77, 67], [77, 35], [77, 21], [77, 39], [77, 7], [77, 25], [77, 11], [77, 29], [77, 15], [78, 59], [78, 77], [78, 45], [78, 63], [78, 31], [78, 49], [78, 17], [78, 35], [78, 21], [78, 39], [78, 7], [78, 25], [78, 11], [78, 67], [78, 57], [78, 43], [78, 61], [78, 29], [78, 47], [78, 15], [78, 33], [78, 51], [78, 19], [78, 37], [78, 5], [78, 23], [78, 9], [78, 27], [78, 13], [78, 41], [79, 78], [80, 79], [81, 80], [82, 3], [83, 21], [83, 39], [83, 7], [83, 25], [83, 11], [83, 67], [83, 57], [83, 43], [83, 61], [83, 29], [83, 47], [83, 15], [83, 33], [83, 51], [83, 19], [83, 37], [83, 5], [83, 23], [83, 9], [83, 27], [83, 13], [83, 88], [83, 82], [83, 41], [83, 59], [83, 45], [83, 63], [83, 31], [83, 49], [83, 17], [83, 35], [85, 83], [87, 54], [88, 86], [88, 87], [89, 54], [90, 88], [90, 89], [91, 90], [92, 91], [94, 21], [94, 39], [94, 7], [94, 25], [94, 11], [94, 15], [94, 67], [94, 57], [94, 43], [94, 61], [94, 29], [94, 47], [94, 33], [94, 51], [94, 19], [94, 37], [94, 5], [94, 23], [94, 9], [94, 27], [94, 13], [94, 93], [94, 88], [94, 41], [94, 59], [94, 45], [94, 63], [94, 31], [94, 49], [94, 17], [94, 35], [95, 94], [97, 96], [98, 3], [99, 67], [99, 98], [99, 57], [99, 43], [99, 61], [99, 29], [99, 47], [99, 33], [99, 51], [99, 19], [99, 37], [99, 5], [99, 23], [99, 9], [99, 27], [99, 13], [99, 88], [99, 41], [99, 59], [99, 45], [99, 63], [99, 31], [99, 49], [99, 17], [99, 35], [99, 21], [99, 39], [99, 7], [99, 25], [99, 11], [99, 15], [102, 100], [106, 54], [107, 106], [107, 105], [108, 54], [109, 107], [109, 108], [110, 109], [111, 110], [113, 35], [113, 21], [113, 39], [113, 7], [113, 25], [113, 11], [113, 67], [113, 57], [113, 43], [113, 61], [113, 29], [113, 47], [113, 15], [113, 33], [113, 51], [113, 19], [113, 37], [113, 5], [113, 23], [113, 9], [113, 27], [113, 112], [113, 13], [113, 107], [113, 41], [113, 59], [113, 45], [113, 63], [113, 31], [113, 49], [113, 17], [114, 113], [116, 115], [119, 117], [122, 54], [123, 122], [124, 54], [125, 107], [125, 124], [125, 123], [126, 125], [128, 127], [129, 54], [130, 128], [130, 129], [131, 3], [132, 131], [132, 130], [133, 132], [134, 133], [137, 135], [140, 3], [141, 17], [141, 59], [141, 45], [141, 63], [141, 49], [141, 67], [141, 35], [141, 21], [141, 39], [141, 57], [141, 7], [141, 25], [141, 43], [141, 11], [141, 29], [141, 15], [141, 19], [141, 140], [141, 5], [141, 61], [141, 47], [141, 33], [141, 51], [141, 37], [141, 23], [141, 41], [141, 9], [141, 27], [141, 13], [141, 31], [142, 141], [143, 142], [144, 3], [145, 5], [145, 57], [145, 61], [145, 47], [145, 33], [145, 51], [145, 19], [145, 37], [145, 23], [145, 41], [145, 144], [145, 9], [145, 27], [145, 13], [145, 31], [145, 17], [145, 59], [145, 45], [145, 63], [145, 49], [145, 67], [145, 35], [145, 21], [145, 39], [145, 7], [145, 25], [145, 43], [145, 11], [145, 29], [145, 15], [146, 59], [146, 45], [146, 63], [146, 31], [146, 49], [146, 67], [146, 17], [146, 35], [146, 21], [146, 39], [146, 7], [146, 25], [146, 11], [146, 15], [146, 57], [146, 43], [146, 61], [146, 29], [146, 47], [146, 33], [146, 51], [146, 145], [146, 19], [146, 37], [146, 5], [146, 23], [146, 41], [146, 9], [146, 27], [146, 13], [147, 146], [148, 147], [149, 148], [150, 3], [151, 43], [151, 11], [151, 29], [151, 150], [151, 15], [151, 19], [151, 5], [151, 61], [151, 47], [151, 33], [151, 51], [151, 37], [151, 23], [151, 41], [151, 9], [151, 27], [151, 13], [151, 31], [151, 17], [151, 59], [151, 45], [151, 63], [151, 49], [151, 67], [151, 35], [151, 156], [151, 21], [151, 39], [151, 57], [151, 7], [151, 25], [153, 151], [155, 54], [156, 154], [156, 155], [157, 54], [158, 157], [158, 156], [159, 158], [160, 159], [162, 49], [162, 67], [162, 161], [162, 35], [162, 156], [162, 21], [162, 39], [162, 57], [162, 7], [162, 25], [162, 43], [162, 11], [162, 29], [162, 15], [162, 19], [162, 5], [162, 61], [162, 47], [162, 33], [162, 51], [162, 37], [162, 23], [162, 41], [162, 9], [162, 27], [162, 45], [162, 13], [162, 31], [162, 17], [162, 59], [162, 63], [163, 162], [165, 164], [166, 3], [167, 11], [167, 29], [167, 15], [167, 19], [167, 5], [167, 61], [167, 47], [167, 33], [167, 51], [167, 37], [167, 23], [167, 41], [167, 9], [167, 27], [167, 45], [167, 166], [167, 13], [167, 31], [167, 17], [167, 59], [167, 63], [167, 49], [167, 67], [167, 35], [167, 156], [167, 21], [167, 39], [167, 57], [167, 7], [167, 25], [167, 43], [170, 168], [174, 54], [175, 173], [175, 174], [176, 54], [177, 176], [177, 175], [178, 177], [179, 178], [181, 39], [181, 57], [181, 25], [181, 43], [181, 11], [181, 29], [181, 47], [181, 15], [181, 33], [181, 19], [181, 5], [181, 35], [181, 61], [181, 51], [181, 37], [181, 23], [181, 41], [181, 59], [181, 180], [181, 9], [181, 27], [181, 45], [181, 175], [181, 13], [181, 31], [181, 17], [181, 21], [181, 7], [181, 63], [181, 49], [181, 67], [182, 181], [184, 183], [187, 185], [190, 54], [191, 190], [192, 54], [193, 175], [193, 192], [193, 191], [194, 193], [196, 195], [197, 54], [198, 197], [198, 196], [199, 3], [200, 199], [201, 3], [204, 201], [206, 54], [207, 206], [207, 205], [208, 3], [209, 208], [211, 3], [212, 211], [214, 54], [215, 207], [215, 214], [216, 3], [217, 215], [218, 216], [222, 219], [222, 133]]}
|
static void mesh_model_publication_publish_now_model(void * arg){
mesh_model_t * mesh_model = (mesh_model_t *) arg;
mesh_publication_model_t * publication_model = mesh_model->publication_model;
if (publication_model == NULL) return;
if (publication_model->publish_state_fn == NULL) return;
uint16_t dest = publication_model->address;
if (dest == MESH_ADDRESS_UNSASSIGNED) return;
uint16_t appkey_index = publication_model->appkey_index;
mesh_transport_key_t * app_key = mesh_transport_key_get(appkey_index);
if (app_key == NULL) return;
// compose message
mesh_pdu_t * pdu = (*publication_model->publish_state_fn)(mesh_model);
if (pdu == NULL) return;
// handle ttl = default
uint8_t ttl = publication_model->ttl;
if (ttl == 0xff){
ttl = mesh_foundation_default_ttl_get();
}
mesh_upper_transport_setup_access_pdu_header(pdu, app_key->netkey_index, appkey_index, ttl, mesh_access_get_element_address(mesh_model), dest, 0);
mesh_access_send_unacknowledged_pdu(pdu);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43A87B", "function_addr": 4434043, "binary_name": "0ff09a6678d875865561285529f4a87fc76d534ba1c187a87edb15f084bca6bb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 48h"], [4, "mov [rbp+var_48], rdi"], [5, "mov rax, [rbp+var_48]"], [6, "mov [rbp+var_20], rax"], [7, "mov rax, [rbp+var_20]"], [8, "mov rax, [rax+20h]"], [9, "mov [rbp+var_28], rax"], [10, "cmp [rbp+var_28], 0"], [11, "jz loc_43A978"], [12, "mov rax, [rbp+var_28]"], [13, "mov rax, [rax]"], [14, "test rax, rax"], [15, "jz loc_43A97B"], [16, "mov rax, [rbp+var_28]"], [17, "movzx eax, word ptr [rax+2Eh]"], [18, "mov [rbp+var_2A], ax"], [19, "cmp [rbp+var_2A], 0"], [20, "jz loc_43A97E"], [21, "mov rax, [rbp+var_28]"], [22, "movzx eax, word ptr [rax+30h]"], [23, "mov [rbp+var_2C], ax"], [24, "movzx eax, [rbp+var_2C]"], [25, "mov edi, eax"], [26, "call sub_4486FE"], [27, "mov [rbp+var_38], rax"], [28, "cmp [rbp+var_38], 0"], [29, "jz loc_43A981"], [30, "mov rax, [rbp+var_28]"], [31, "mov rdx, [rax]"], [32, "mov rax, [rbp+var_20]"], [33, "mov rdi, rax"], [34, "call rdx"], [35, "mov [rbp+var_40], rax"], [36, "cmp [rbp+var_40], 0"], [37, "jz short loc_43A984"], [38, "mov rax, [rbp+var_28]"], [39, "movzx eax, byte ptr [rax+35h]"], [40, "mov [rbp+var_11], al"], [41, "cmp [rbp+var_11], 0FFh"], [42, "jnz short loc_43A928"], [43, "call sub_44479F"], [44, "mov [rbp+var_11], al"], [45, "movzx ebx, [rbp+var_2A]"], [46, "mov rax, [rbp+var_20]"], [47, "mov rdi, rax"], [48, "call sub_44D161"], [49, "movzx edi, ax"], [50, "movzx ecx, [rbp+var_11]"], [51, "movzx edx, [rbp+var_2C]"], [52, "mov rax, [rbp+var_38]"], [53, "movzx eax, word ptr [rax+0Ah]"], [54, "movzx esi, ax"], [55, "mov rax, [rbp+var_40]"], [56, "sub rsp, 8"], [57, "push 0"], [58, "mov r9d, ebx"], [59, "mov r8d, edi"], [60, "mov rdi, rax"], [61, "call sub_4517B0"], [62, "add rsp, 10h"], [63, "mov rax, [rbp+var_40]"], [64, "mov rdi, rax"], [65, "call sub_438BB1"], [66, "jmp short loc_43A985"], [67, "nop"], [68, "jmp short loc_43A985"], [69, "nop"], [70, "jmp short loc_43A985"], [71, "nop"], [72, "jmp short loc_43A985"], [73, "nop"], [74, "jmp short loc_43A985"], [75, "nop"], [76, "mov rbx, [rbp+var_8]"], [77, "leave"], [78, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 9], [13, 12], [14, 13], [15, 14], [16, 9], [17, 16], [18, 17], [19, 18], [20, 19], [21, 9], [22, 21], [23, 22], [24, 23], [25, 24], [27, 26], [28, 27], [29, 28], [30, 9], [31, 30], [32, 6], [33, 32], [34, 31], [35, 34], [36, 35], [37, 36], [38, 9], [39, 38], [40, 39], [41, 40], [42, 41], [44, 43], [45, 18], [46, 6], [47, 46], [49, 48], [50, 44], [50, 40], [51, 23], [52, 27], [53, 52], [54, 53], [55, 35], [56, 3], [58, 45], [59, 49], [60, 55], [62, 56], [63, 35], [64, 63], [78, 65], [78, 34], [78, 8], [78, 14], [78, 17], [78, 26]]}
|
mystatus_t mythread_check_status(mythread_t *mythread)
{
for (size_t i = 0; i < mythread->entries_length; i++)
{
if(mythread->entries[i].context.status)
return mythread->entries[i].context.status;
}
return MyCORE_STATUS_OK;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42041F", "function_addr": 4326431, "binary_name": "7301b6e819ff084818bf7bd8fce59c1aa17e3d4892c34b25c84a11ff0b5959c5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_8], 0"], [4, "jmp short loc_42047A"], [5, "mov rax, [rbp+var_18]"], [6, "mov rcx, [rax]"], [7, "mov rdx, [rbp+var_8]"], [8, "mov rax, rdx"], [9, "shl rax, 3"], [10, "add rax, rdx"], [11, "shl rax, 3"], [12, "add rax, rcx"], [13, "mov eax, [rax+24h]"], [14, "test eax, eax"], [15, "jz short loc_420475"], [16, "mov rax, [rbp+var_18]"], [17, "mov rcx, [rax]"], [18, "mov rdx, [rbp+var_8]"], [19, "mov rax, rdx"], [20, "shl rax, 3"], [21, "add rax, rdx"], [22, "shl rax, 3"], [23, "add rax, rcx"], [24, "mov eax, [rax+24h]"], [25, "jmp short loc_42048D"], [26, "add [rbp+var_8], 1"], [27, "mov rax, [rbp+var_18]"], [28, "mov rax, [rax+8]"], [29, "cmp [rbp+var_8], rax"], [30, "jb short loc_420431"], [31, "mov eax, 0"], [32, "pop rbp"], [33, "retn"]], "data_dep": [[5, 2], [6, 5], [7, 26], [7, 3], [8, 7], [9, 8], [10, 9], [10, 7], [11, 10], [12, 6], [12, 11], [13, 12], [14, 13], [15, 14], [16, 2], [17, 16], [18, 26], [18, 3], [19, 18], [20, 19], [21, 18], [21, 20], [22, 21], [23, 22], [23, 17], [24, 23], [26, 26], [26, 3], [27, 2], [28, 27], [29, 26], [29, 28], [29, 3], [30, 29], [32, 0], [33, 31], [33, 24]]}
|
size_t luaO_str2num (const char *s, TValue *o) {
lua_Integer i; lua_Number n;
const char *e;
if ((e = l_str2int(s, &i)) != NULL) { /* try as an integer */
setivalue(o, i);
}
else if ((e = l_str2d(s, &n)) != NULL) { /* else try as a float */
setfltvalue(o, n);
}
else
return 0; /* conversion failed */
return (e - s) + 1; /* success; return string size */
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F0F0", "function_addr": 4255984, "binary_name": "8b2aa30b47b161f5257fdaab242db0f782b78ef50ffbda0317d5092190fe61c9.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_40], rsi"], [5, "lea rdx, [rbp+var_20]"], [6, "mov rax, [rbp+var_38]"], [7, "mov rsi, rdx"], [8, "mov rdi, rax"], [9, "call sub_40EEF1"], [10, "mov [rbp+var_8], rax"], [11, "cmp [rbp+var_8], 0"], [12, "jz short loc_40F13E"], [13, "mov rax, [rbp+var_40]"], [14, "mov [rbp+var_18], rax"], [15, "mov rdx, [rbp+var_20]"], [16, "mov rax, [rbp+var_18]"], [17, "mov [rax], rdx"], [18, "mov rax, [rbp+var_18]"], [19, "mov dword ptr [rax+8], 13h"], [20, "jmp short loc_40F185"], [21, "lea rdx, [rbp+var_28]"], [22, "mov rax, [rbp+var_38]"], [23, "mov rsi, rdx"], [24, "mov rdi, rax"], [25, "call sub_40EDA5"], [26, "mov [rbp+var_8], rax"], [27, "cmp [rbp+var_8], 0"], [28, "jz short loc_40F17E"], [29, "mov rax, [rbp+var_40]"], [30, "mov [rbp+var_10], rax"], [31, "movsd xmm0, [rbp+var_28]"], [32, "mov rax, [rbp+var_10]"], [33, "movsd qword ptr [rax], xmm0"], [34, "mov rax, [rbp+var_10]"], [35, "mov dword ptr [rax+8], 3"], [36, "jmp short loc_40F185"], [37, "mov eax, 0"], [38, "jmp short locret_40F191"], [39, "mov rax, [rbp+var_8]"], [40, "sub rax, [rbp+var_38]"], [41, "add rax, 1"], [42, "leave"], [43, "retn"]], "data_dep": [[6, 3], [7, 5], [8, 6], [10, 9], [11, 10], [12, 11], [13, 4], [14, 13], [16, 14], [17, 15], [17, 16], [18, 14], [19, 18], [21, 5], [22, 3], [23, 21], [24, 22], [26, 25], [27, 26], [28, 27], [29, 4], [30, 29], [32, 30], [33, 32], [33, 31], [34, 30], [35, 34], [39, 26], [39, 10], [40, 3], [40, 39], [41, 40], [43, 37], [43, 41]]}
|
static void addpair(int fp, int un)
{
int i;
if ( un <= 0xfffe )
{
/* Check it isn't a duplicate */
for ( i = 0 ; i < unicount[fp] ; i++ )
if ( unitable[fp][i] == un )
return;
/* Add to list */
if ( unicount[fp] > 254 )
{
fprintf(stderr, "ERROR: Only 255 unicodes/glyph permitted!\n");
exit(EX_DATAERR);
}
unitable[fp][unicount[fp]] = un;
unicount[fp]++;
}
/* otherwise: ignore */
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40139E", "function_addr": 4199326, "binary_name": "2aceb53a5f1e59697a55790128d9cd7587180fd4dea439ca24c3195ea3df8b53.elf_extract.pkl\n"}, "code": [[0, "sub rsp, 28h"], [1, "mov [rsp+28h+var_1C], edi"], [2, "mov [rsp+28h+var_20], esi"], [3, "cmp [rsp+28h+var_20], 0FFFEh"], [4, "jg loc_401498"], [5, "mov [rsp+28h+var_C], 0"], [6, "jmp short loc_4013F7"], [7, "mov eax, [rsp+28h+var_C]"], [8, "movsxd rcx, eax"], [9, "mov eax, [rsp+28h+var_1C]"], [10, "movsxd rdx, eax"], [11, "mov rax, rdx"], [12, "shl rax, 8"], [13, "sub rax, rdx"], [14, "add rax, rcx"], [15, "movzx eax, ds:word_4040E0[rax+rax]"], [16, "movzx eax, ax"], [17, "cmp [rsp+28h+var_20], eax"], [18, "jz loc_401497"], [19, "add [rsp+28h+var_C], 1"], [20, "mov eax, [rsp+28h+var_1C]"], [21, "cdqe"], [22, "mov eax, ds:dword_423EE0[rax*4]"], [23, "cmp [rsp+28h+var_C], eax"], [24, "jl short loc_4013C2"], [25, "mov eax, [rsp+28h+var_1C]"], [26, "cdqe"], [27, "mov eax, ds:dword_423EE0[rax*4]"], [28, "cmp eax, 0FEh"], [29, "jle short loc_401446"], [30, "mov rax, cs:stderr"], [31, "mov rcx, rax"], [32, "mov edx, 2Ah "], [33, "mov esi, 1"], [34, "mov edi, offset aErrorOnly255Un"], [35, "call _fwrite"], [36, "mov edi, 41h "], [37, "call _exit"], [38, "mov eax, [rsp+28h+var_1C]"], [39, "cdqe"], [40, "mov eax, ds:dword_423EE0[rax*4]"], [41, "mov edx, [rsp+28h+var_20]"], [42, "mov ecx, edx"], [43, "movsxd rsi, eax"], [44, "mov eax, [rsp+28h+var_1C]"], [45, "movsxd rdx, eax"], [46, "mov rax, rdx"], [47, "shl rax, 8"], [48, "sub rax, rdx"], [49, "add rax, rsi"], [50, "mov ds:word_4040E0[rax+rax], cx"], [51, "mov eax, [rsp+28h+var_1C]"], [52, "cdqe"], [53, "mov eax, ds:dword_423EE0[rax*4]"], [54, "lea edx, [rax+1]"], [55, "mov eax, [rsp+28h+var_1C]"], [56, "cdqe"], [57, "mov ds:dword_423EE0[rax*4], edx"], [58, "jmp short loc_401498"], [59, "nop"], [60, "add rsp, 28h"], [61, "retn"]], "data_dep": [[3, 2], [4, 3], [7, 19], [7, 5], [8, 7], [9, 1], [10, 9], [11, 10], [12, 11], [13, 10], [13, 12], [14, 13], [14, 8], [16, 15], [17, 2], [17, 16], [18, 17], [19, 5], [19, 19], [20, 1], [23, 19], [23, 22], [23, 5], [24, 23], [25, 1], [28, 27], [29, 28], [31, 30], [38, 1], [41, 2], [42, 41], [43, 40], [44, 1], [45, 44], [46, 45], [47, 46], [48, 45], [48, 47], [49, 43], [49, 48], [50, 42], [51, 1], [54, 45], [54, 53], [55, 1], [57, 54], [60, 0], [61, 55], [61, 16]]}
|
static unsigned long long calc_component_size(struct imsm_map *map,
struct imsm_dev *dev)
{
unsigned long long component_size;
unsigned long long dev_size = imsm_dev_size(dev);
long long calc_dev_size = 0;
unsigned int member_disks = imsm_num_data_members(map);
if (member_disks == 0)
return 0;
component_size = per_dev_array_size(map);
calc_dev_size = component_size * member_disks;
/* Component size is rounded to 1MB so difference between size from
* metadata and size calculated from num_data_stripes equals up to
* 2048 blocks per each device. If the difference is higher it means
* that array size was expanded and num_data_stripes was not updated.
*/
if (llabs(calc_dev_size - (long long)dev_size) >
(1 << SECT_PER_MB_SHIFT) * member_disks) {
component_size = dev_size / member_disks;
dprintf("Invalid num_data_stripes in metadata; expected=%llu, found=%llu\n",
component_size / map->blocks_per_strip,
num_data_stripes(map));
}
return component_size;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45F953", "function_addr": 4585811, "binary_name": "419510bcecc994a3754e5ab47aa58d228bb38fb3eef1e1256af3b83aa3eae934.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov rax, [rbp+var_30]"], [6, "mov rdi, rax"], [7, "call sub_45B3D8"], [8, "mov [rbp+var_10], rax"], [9, "mov [rbp+var_18], 0"], [10, "mov rax, [rbp+var_28]"], [11, "mov rdi, rax"], [12, "call sub_45F8F2"], [13, "movzx eax, al"], [14, "mov [rbp+var_1C], eax"], [15, "cmp [rbp+var_1C], 0"], [16, "jnz short loc_45F99A"], [17, "mov eax, 0"], [18, "jmp short locret_45F9ED"], [19, "mov rax, [rbp+var_28]"], [20, "mov rdi, rax"], [21, "call sub_45B695"], [22, "mov [rbp+var_8], rax"], [23, "mov eax, [rbp+var_1C]"], [24, "imul rax, [rbp+var_8]"], [25, "mov [rbp+var_18], rax"], [26, "mov rdx, [rbp+var_10]"], [27, "mov rax, [rbp+var_18]"], [28, "sub rax, rdx"], [29, "cqo"], [30, "xor rax, rdx"], [31, "sub rax, rdx"], [32, "mov edx, [rbp+var_1C]"], [33, "shl edx, 0Bh"], [34, "mov edx, edx"], [35, "cmp rax, rdx"], [36, "jle short loc_45F9E9"], [37, "mov ecx, [rbp+var_1C]"], [38, "mov rax, [rbp+var_10]"], [39, "mov edx, 0"], [40, "div rcx"], [41, "mov [rbp+var_8], rax"], [42, "mov rax, [rbp+var_8]"], [43, "leave"], [44, "retn"]], "data_dep": [[5, 4], [6, 5], [8, 7], [10, 3], [11, 10], [13, 12], [14, 13], [15, 14], [16, 15], [19, 3], [20, 19], [22, 21], [23, 14], [24, 23], [24, 22], [25, 24], [26, 8], [27, 25], [28, 27], [28, 26], [30, 26], [30, 28], [31, 26], [31, 30], [32, 14], [33, 32], [34, 33], [35, 31], [35, 34], [36, 35], [37, 14], [38, 8], [40, 37], [41, 38], [42, 41], [42, 22], [44, 42], [44, 17]]}
|
static void Rotate32By(uint64_t count, uint64_t lanes[4]) {
int i;
for (i = 0; i < 4; ++i) {
uint32_t half0 = lanes[i] & 0xffffffff;
uint32_t half1 = (lanes[i] >> 32);
lanes[i] = (half0 << count) | (half0 >> (32 - count));
lanes[i] |= (uint64_t)((half1 << count) | (half1 >> (32 - count))) << 32;
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4156B1", "function_addr": 4282033, "binary_name": "38b4e49efdae20a5f18f27f6ddf9235f1740811cc1e9f8fd9c8e0ec88f19aafa.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_20], rsi"], [4, "mov [rbp+var_4], 0"], [5, "jmp loc_415772"], [6, "mov eax, [rbp+var_4]"], [7, "cdqe"], [8, "lea rdx, ds:0[rax*8]"], [9, "mov rax, [rbp+var_20]"], [10, "add rax, rdx"], [11, "mov rax, [rax]"], [12, "mov [rbp+var_8], eax"], [13, "mov eax, [rbp+var_4]"], [14, "cdqe"], [15, "lea rdx, ds:0[rax*8]"], [16, "mov rax, [rbp+var_20]"], [17, "add rax, rdx"], [18, "mov rax, [rax]"], [19, "shr rax, 20h"], [20, "mov [rbp+var_C], eax"], [21, "mov rax, [rbp+var_18]"], [22, "mov edx, eax"], [23, "mov eax, [rbp+var_8]"], [24, "mov ecx, edx"], [25, "rol eax, cl"], [26, "mov edx, eax"], [27, "mov eax, [rbp+var_4]"], [28, "cdqe"], [29, "lea rcx, ds:0[rax*8]"], [30, "mov rax, [rbp+var_20]"], [31, "add rax, rcx"], [32, "mov edx, edx"], [33, "mov [rax], rdx"], [34, "mov eax, [rbp+var_4]"], [35, "cdqe"], [36, "lea rdx, ds:0[rax*8]"], [37, "mov rax, [rbp+var_20]"], [38, "add rax, rdx"], [39, "mov rdx, [rax]"], [40, "mov rax, [rbp+var_18]"], [41, "mov ecx, eax"], [42, "mov eax, [rbp+var_C]"], [43, "rol eax, cl"], [44, "mov eax, eax"], [45, "shl rax, 20h"], [46, "mov rcx, rax"], [47, "mov eax, [rbp+var_4]"], [48, "cdqe"], [49, "lea rsi, ds:0[rax*8]"], [50, "mov rax, [rbp+var_20]"], [51, "add rax, rsi"], [52, "or rdx, rcx"], [53, "mov [rax], rdx"], [54, "add [rbp+var_4], 1"], [55, "cmp [rbp+var_4], 3"], [56, "jle loc_4156C9"], [57, "nop"], [58, "nop"], [59, "pop rbp"], [60, "retn"]], "data_dep": [[6, 54], [6, 4], [8, 52], [9, 3], [10, 9], [10, 8], [11, 53], [11, 10], [11, 33], [12, 11], [13, 54], [13, 4], [15, 8], [16, 3], [17, 15], [17, 16], [18, 17], [18, 53], [18, 33], [19, 18], [20, 19], [21, 2], [22, 21], [23, 12], [24, 22], [25, 23], [25, 24], [26, 25], [27, 4], [27, 54], [29, 24], [30, 3], [31, 29], [31, 30], [32, 26], [33, 32], [33, 31], [34, 4], [34, 54], [36, 32], [37, 3], [38, 37], [38, 36], [39, 33], [39, 38], [40, 2], [41, 40], [42, 20], [43, 42], [43, 41], [44, 43], [45, 44], [46, 45], [47, 4], [47, 54], [49, 49], [50, 3], [51, 50], [51, 49], [52, 46], [52, 39], [53, 52], [53, 51], [54, 54], [54, 4], [55, 4], [55, 54], [56, 55], [59, 0], [60, 51]]}
|
static void primary_by_uuid_cb(uint8_t status, GSList *ranges, void *user_data)
{
GSList *l;
if (status) {
DBG("status returned error : %s (0x%02x)",
att_ecode2str(status), status);
resp_att_error(status);
return;
}
resp_begin(rsp_DISCOVERY);
for (l = ranges; l; l = l->next) {
struct att_range *range = l->data;
send_uint(tag_RANGE_START, range->start);
send_uint(tag_RANGE_END, range->end);
}
resp_end();
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404D89", "function_addr": 4214153, "binary_name": "89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov eax, edi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_14], al"], [7, "cmp [rbp+var_14], 0"], [8, "jz short loc_404DB1"], [9, "movzx eax, [rbp+var_14]"], [10, "mov edi, eax"], [11, "call sub_403AFC"], [12, "jmp short locret_404E29"], [13, "mov rax, cs:off_4428A8"], [14, "mov rdi, rax"], [15, "call sub_4038AC"], [16, "mov rax, [rbp+var_20]"], [17, "mov [rbp+var_8], rax"], [18, "jmp short loc_404E18"], [19, "mov rax, [rbp+var_8]"], [20, "mov rax, [rax]"], [21, "mov [rbp+var_10], rax"], [22, "mov rax, [rbp+var_10]"], [23, "movzx eax, word ptr [rax]"], [24, "movzx edx, ax"], [25, "mov rax, cs:off_442848"], [26, "mov esi, edx"], [27, "mov rdi, rax"], [28, "call sub_403905"], [29, "mov rax, [rbp+var_10]"], [30, "movzx eax, word ptr [rax+2]"], [31, "movzx edx, ax"], [32, "mov rax, cs:off_442850"], [33, "mov esi, edx"], [34, "mov rdi, rax"], [35, "call sub_403905"], [36, "mov rax, [rbp+var_8]"], [37, "mov rax, [rax+8]"], [38, "mov [rbp+var_8], rax"], [39, "cmp [rbp+var_8], 0"], [40, "jnz short loc_404DCA"], [41, "mov eax, 0"], [42, "call sub_403A46"], [43, "leave"], [44, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 7], [9, 6], [10, 9], [14, 13], [16, 4], [17, 16], [19, 17], [19, 38], [20, 19], [21, 20], [22, 21], [23, 22], [24, 23], [26, 24], [27, 25], [29, 21], [30, 29], [31, 30], [33, 31], [34, 32], [36, 17], [36, 38], [37, 36], [38, 37], [39, 17], [39, 38], [40, 39], [44, 42], [44, 11]]}
|
static int family_handler(struct nl_msg *msg, void *arg)
{
struct family_data *res = arg;
struct nlattr *tb[CTRL_ATTR_MAX + 1];
struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg));
struct nlattr *mcgrp;
int i;
nla_parse(tb, CTRL_ATTR_MAX, genlmsg_attrdata(gnlh, 0),
genlmsg_attrlen(gnlh, 0), NULL);
if (!tb[CTRL_ATTR_MCAST_GROUPS])
return NL_SKIP;
nla_for_each_nested(mcgrp, tb[CTRL_ATTR_MCAST_GROUPS], i) {
struct nlattr *tb2[CTRL_ATTR_MCAST_GRP_MAX + 1];
nla_parse(tb2, CTRL_ATTR_MCAST_GRP_MAX, nla_data(mcgrp),
nla_len(mcgrp), NULL);
if (!tb2[CTRL_ATTR_MCAST_GRP_NAME] ||
!tb2[CTRL_ATTR_MCAST_GRP_ID] ||
strncmp(nla_data(tb2[CTRL_ATTR_MCAST_GRP_NAME]),
res->group,
nla_len(tb2[CTRL_ATTR_MCAST_GRP_NAME])) != 0)
continue;
res->id = nla_get_u32(tb2[CTRL_ATTR_MCAST_GRP_ID]);
break;
}
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40E8DF", "function_addr": 4253919, "binary_name": "f3289d91472f8ba82301152b86372819bacdda97fbdc2768a4880549cb47a846.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 90h"], [5, "mov [rbp+var_98], rdi"], [6, "mov [rbp+var_A0], rsi"], [7, "mov rax, [rbp+var_A0]"], [8, "mov [rbp+var_20], rax"], [9, "mov rax, [rbp+var_98]"], [10, "mov rdi, rax"], [11, "call _nlmsg_hdr"], [12, "mov rdi, rax"], [13, "call _nlmsg_data"], [14, "mov [rbp+var_28], rax"], [15, "mov rax, [rbp+var_28]"], [16, "mov esi, 0"], [17, "mov rdi, rax"], [18, "call _genlmsg_attrlen"], [19, "mov ebx, eax"], [20, "mov rax, [rbp+var_28]"], [21, "mov esi, 0"], [22, "mov rdi, rax"], [23, "call _genlmsg_attrdata"], [24, "mov rdx, rax"], [25, "lea rax, [rbp+var_70]"], [26, "mov r8d, 0"], [27, "mov ecx, ebx"], [28, "mov esi, 7"], [29, "mov rdi, rax"], [30, "call _nla_parse"], [31, "mov rax, [rbp+var_38]"], [32, "test rax, rax"], [33, "jnz short loc_40E974"], [34, "mov eax, 1"], [35, "jmp loc_40EA6E"], [36, "mov rax, [rbp+var_38]"], [37, "mov rdi, rax"], [38, "call _nla_data"], [39, "mov [rbp+var_18], rax"], [40, "mov rax, [rbp+var_38]"], [41, "mov rdi, rax"], [42, "call _nla_len"], [43, "mov [rbp+var_74], eax"], [44, "jmp loc_40EA50"], [45, "mov rax, [rbp+var_18]"], [46, "mov rdi, rax"], [47, "call _nla_len"], [48, "mov ebx, eax"], [49, "mov rax, [rbp+var_18]"], [50, "mov rdi, rax"], [51, "call _nla_data"], [52, "mov rdx, rax"], [53, "lea rax, [rbp+var_90]"], [54, "mov r8d, 0"], [55, "mov ecx, ebx"], [56, "mov esi, 2"], [57, "mov rdi, rax"], [58, "call _nla_parse"], [59, "mov rax, [rbp+var_88]"], [60, "test rax, rax"], [61, "jz short loc_40EA20"], [62, "mov rax, [rbp+var_80]"], [63, "test rax, rax"], [64, "jz short loc_40EA20"], [65, "mov rax, [rbp+var_88]"], [66, "mov rdi, rax"], [67, "call _nla_len"], [68, "movsxd r12, eax"], [69, "mov rax, [rbp+var_20]"], [70, "mov rbx, [rax]"], [71, "mov rax, [rbp+var_88]"], [72, "mov rdi, rax"], [73, "call _nla_data"], [74, "mov rdx, r12"], [75, "mov rsi, rbx"], [76, "mov rdi, rax"], [77, "call _strncmp"], [78, "test eax, eax"], [79, "jz short loc_40EA39"], [80, "lea rdx, [rbp+var_74]"], [81, "mov rax, [rbp+var_18]"], [82, "mov rsi, rdx"], [83, "mov rdi, rax"], [84, "call _nla_next"], [85, "mov [rbp+var_18], rax"], [86, "jmp short loc_40EA50"], [87, "mov rax, [rbp+var_80]"], [88, "mov rdi, rax"], [89, "call _nla_get_u32"], [90, "mov edx, eax"], [91, "mov rax, [rbp+var_20]"], [92, "mov [rax+8], edx"], [93, "jmp short loc_40EA69"], [94, "mov edx, [rbp+var_74]"], [95, "mov rax, [rbp+var_18]"], [96, "mov esi, edx"], [97, "mov rdi, rax"], [98, "call _nla_ok"], [99, "test eax, eax"], [100, "jnz loc_40E998"], [101, "mov eax, 0"], [102, "add rsp, 90h"], [103, "pop rbx"], [104, "pop r12"], [105, "pop rbp"], [106, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 5], [10, 9], [12, 11], [14, 13], [15, 14], [17, 15], [19, 18], [20, 14], [22, 20], [24, 23], [25, 23], [27, 19], [29, 25], [32, 31], [33, 32], [37, 36], [39, 38], [41, 40], [43, 42], [45, 85], [45, 39], [46, 45], [48, 47], [49, 85], [49, 39], [50, 49], [52, 51], [53, 51], [55, 48], [57, 53], [60, 59], [61, 60], [63, 62], [64, 63], [66, 65], [68, 67], [69, 8], [70, 69], [72, 71], [74, 68], [75, 70], [76, 73], [78, 77], [79, 78], [80, 74], [80, 43], [80, 52], [81, 85], [81, 39], [82, 80], [83, 81], [85, 84], [88, 87], [90, 89], [91, 8], [92, 91], [92, 90], [94, 43], [95, 85], [95, 39], [96, 94], [97, 95], [99, 98], [100, 99], [102, 4], [103, 3], [104, 2], [105, 0], [106, 34], [106, 101]]}
|
int
main(int argc, char *argv[])
{
int lport;
uint32 sleep;
memset(&cpu, 0, sizeof(cpu));
memset(&bus, 0, sizeof(Bus));
cpu.bus = &bus;
busadddev(&bus, &membusdev);
#ifndef KD11Bp
busadddev(&bus, &kwbusdev);
busadddev(&bus, &klbusdev);
#endif
busadddev(&bus, &kebusdev);
busadddev(&bus, &tvbusdev);
busadddev(&bus, &ten11busdev);
port = 1110;
lport = 11100;
sleep = 0;
debug = quiet;
ARGBEGIN{
case 'p':
port = atoi(EARGF(usage()));
break;
case 'l':
lport = atoi(EARGF(usage()));
break;
case 's':
sleep = atoi(EARGF(usage()));
break;
case 'd':
logfile = stderr;
debug = log;
break;
}ARGEND;
if(argc < 1)
usage();
host = argv[0];
ten11.cycle = 0;
ten11.fd = -1;
loadmem("mem.txt");
// if(loadpt("maindec/MAINDEC-11-D0NA-PB.ptap"))
// if(loadpt("maindec/MAINDEC-11-D2AA-PB.ptap"))
// return 0;
// cpu.r[7] = 0200;
// cpu.sw = 0104000;
//void eaetest(KE11 *ke);
//eaetest(&ke11);
inittv(&tv);
tv.ten11 = &ten11;
reset(&cpu);
ttyopen(&TTYDEV.tty);
/* start the two threads for listening for
* and handling TV display connections */
handletvs(&tv);
servetv(&tv, lport);
//void tvtest(TV *tv, Bus *bus);
//tvtest(&tv, &bus);
/* wait until we get some data from the 10 */
cpu.r[7] = 0;
cpu.throttle = sleep;
memory[0] = 0777;
run(&cpu);
closetv(&tv);
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4206718, "binary_name": "6d884bbc662478f08ece497e031e389cf17a51473ef4d60b4d080aa5cb592c6d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_24], edi"], [4, "mov [rbp+var_30], rsi"], [5, "mov edx, 90h"], [6, "mov esi, 0"], [7, "mov edi, offset unk_415580"], [8, "call _memset"], [9, "mov edx, 18h"], [10, "mov esi, 0"], [11, "mov edi, offset unk_415560"], [12, "call _memset"], [13, "mov cs:qword_4155A8, offset unk_415560"], [14, "mov esi, offset unk_40F200"], [15, "mov edi, offset unk_415560"], [16, "call sub_402452"], [17, "mov esi, offset unk_40F2C0"], [18, "mov edi, offset unk_415560"], [19, "call sub_402452"], [20, "mov esi, offset unk_40F280"], [21, "mov edi, offset unk_415560"], [22, "call sub_402452"], [23, "mov esi, offset unk_40F240"], [24, "mov edi, offset unk_415560"], [25, "call sub_402452"], [26, "mov esi, offset unk_40F300"], [27, "mov edi, offset unk_415560"], [28, "call sub_402452"], [29, "mov esi, offset unk_40F340"], [30, "mov edi, offset unk_415560"], [31, "call sub_402452"], [32, "mov cs:dword_415548, 456h"], [33, "mov [rbp+var_4], 2B5Ch"], [34, "mov [rbp+var_8], 0"], [35, "mov cs:qword_415550, offset sub_40261F"], [36, "mov rax, cs:qword_496148"], [37, "test rax, rax"], [38, "jnz short loc_403161"], [39, "mov rax, [rbp+var_30]"], [40, "mov rax, [rax]"], [41, "mov cs:qword_496148, rax"], [42, "mov rax, cs:qword_496148"], [43, "test rax, rax"], [44, "add [rbp+var_30], 8"], [45, "sub [rbp+var_24], 1"], [46, "jmp loc_403346"], [47, "mov rax, [rbp+var_30]"], [48, "mov rax, [rax]"], [49, "add rax, 1"], [50, "mov [rbp+var_10], rax"], [51, "mov rax, [rbp+var_10]"], [52, "movzx eax, byte ptr [rax]"], [53, "cmp al, 2Dh "], [54, "jnz short loc_4031A6"], [55, "mov rax, [rbp+var_10]"], [56, "add rax, 1"], [57, "movzx eax, byte ptr [rax]"], [58, "test al, al"], [59, "jnz short loc_4031A6"], [60, "sub [rbp+var_24], 1"], [61, "add [rbp+var_30], 8"], [62, "jmp loc_403376"], [63, "mov [rbp+var_11], 0"], [64, "jmp loc_40330E"], [65, "movsx eax, [rbp+var_11]"], [66, "cmp eax, 73h "], [67, "jz loc_40329C"], [68, "cmp eax, 73h "], [69, "jg loc_40330E"], [70, "cmp eax, 70h "], [71, "jz short loc_4031E6"], [72, "cmp eax, 70h "], [73, "jg loc_40330E"], [74, "cmp eax, 64h "], [75, "jz loc_4032F4"], [76, "cmp eax, 6Ch "], [77, "jz short loc_403244"], [78, "jmp loc_40330E"], [79, "mov rax, [rbp+var_10]"], [80, "mov [rbp+var_20], rax"], [81, "mov [rbp+var_10], offset unk_40B008"], [82, "mov rax, [rbp+var_20]"], [83, "movzx eax, byte ptr [rax]"], [84, "test al, al"], [85, "jnz short loc_40322D"], [86, "mov rax, [rbp+var_30]"], [87, "add rax, 8"], [88, "mov rax, [rax]"], [89, "test rax, rax"], [90, "jz short loc_403223"], [91, "sub [rbp+var_24], 1"], [92, "add [rbp+var_30], 8"], [93, "mov rax, [rbp+var_30]"], [94, "mov rax, [rax]"], [95, "jmp short loc_403231"], [96, "call sub_402FF6"], [97, "call _abort"], [98, "mov rax, [rbp+var_20]"], [99, "mov rdi, rax"], [100, "call _atoi"], [101, "mov cs:dword_415548, eax"], [102, "jmp loc_40330E"], [103, "mov rax, [rbp+var_10]"], [104, "mov [rbp+var_20], rax"], [105, "mov [rbp+var_10], offset unk_40B008"], [106, "mov rax, [rbp+var_20]"], [107, "movzx eax, byte ptr [rax]"], [108, "test al, al"], [109, "jnz short loc_40328B"], [110, "mov rax, [rbp+var_30]"], [111, "add rax, 8"], [112, "mov rax, [rax]"], [113, "test rax, rax"], [114, "jz short loc_403281"], [115, "sub [rbp+var_24], 1"], [116, "add [rbp+var_30], 8"], [117, "mov rax, [rbp+var_30]"], [118, "mov rax, [rax]"], [119, "jmp short loc_40328F"], [120, "call sub_402FF6"], [121, "call _abort"], [122, "mov rax, [rbp+var_20]"], [123, "mov rdi, rax"], [124, "call _atoi"], [125, "mov [rbp+var_4], eax"], [126, "jmp short loc_40330E"], [127, "mov rax, [rbp+var_10]"], [128, "mov [rbp+var_20], rax"], [129, "mov [rbp+var_10], offset unk_40B008"], [130, "mov rax, [rbp+var_20]"], [131, "movzx eax, byte ptr [rax]"], [132, "test al, al"], [133, "jnz short loc_4032E3"], [134, "mov rax, [rbp+var_30]"], [135, "add rax, 8"], [136, "mov rax, [rax]"], [137, "test rax, rax"], [138, "jz short loc_4032D9"], [139, "sub [rbp+var_24], 1"], [140, "add [rbp+var_30], 8"], [141, "mov rax, [rbp+var_30]"], [142, "mov rax, [rax]"], [143, "jmp short loc_4032E7"], [144, "call sub_402FF6"], [145, "call _abort"], [146, "mov rax, [rbp+var_20]"], [147, "mov rdi, rax"], [148, "call _atoi"], [149, "mov [rbp+var_8], eax"], [150, "jmp short loc_40330E"], [151, "mov rax, cs:stderr"], [152, "mov cs:stream, rax"], [153, "mov cs:qword_415550, offset sub_4026A5"], [154, "nop"], [155, "mov rax, [rbp+var_10]"], [156, "movzx eax, byte ptr [rax]"], [157, "test al, al"], [158, "jz short loc_403335"], [159, "mov rax, [rbp+var_10]"], [160, "lea rdx, [rax+1]"], [161, "mov [rbp+var_10], rdx"], [162, "movzx eax, byte ptr [rax]"], [163, "mov [rbp+var_11], al"], [164, "cmp [rbp+var_11], 0"], [165, "jnz loc_4031AF"], [166, "mov [rbp+var_20], 0"], [167, "sub [rbp+var_24], 1"], [168, "add [rbp+var_30], 8"], [169, "mov rax, [rbp+var_30]"], [170, "mov rax, [rax]"], [171, "test rax, rax"], [172, "jz short loc_403376"], [173, "mov rax, [rbp+var_30]"], [174, "mov rax, [rax]"], [175, "movzx eax, byte ptr [rax]"], [176, "cmp al, 2Dh "], [177, "jnz short loc_403376"], [178, "mov rax, [rbp+var_30]"], [179, "mov rax, [rax]"], [180, "add rax, 1"], [181, "movzx eax, byte ptr [rax]"], [182, "test al, al"], [183, "jnz loc_40316F"], [184, "cmp [rbp+var_24], 0"], [185, "jg short loc_403381"], [186, "call sub_402FF6"], [187, "mov rax, [rbp+var_30]"], [188, "mov rax, [rax]"], [189, "mov cs:qword_415540, rax"], [190, "mov cs:dword_496140, 0"], [191, "mov cs:dword_496144, 0FFFFFFFFh"], [192, "mov edi, offset aMemTxt"], [193, "call sub_402B2E"], [194, "mov edi, offset qword_415660"], [195, "call sub_4040D4"], [196, "mov cs:qword_415660, offset dword_496140"], [197, "mov edi, offset unk_415580"], [198, "call sub_405559"], [199, "mov edi, offset unk_41564C"], [200, "call sub_40A6A0"], [201, "mov edi, offset qword_415660"], [202, "call sub_4051D1"], [203, "mov eax, [rbp+var_4]"], [204, "mov esi, eax"], [205, "mov edi, offset qword_415660"], [206, "call sub_40523E"], [207, "mov cs:word_41558E, 0"], [208, "mov eax, [rbp+var_8]"], [209, "mov cs:dword_4155C0, eax"], [210, "mov cs:word_40F540, 1FFh"], [211, "mov edi, offset unk_415580"], [212, "call sub_408D5C"], [213, "mov edi, offset qword_415660"], [214, "call sub_4048F6"], [215, "mov eax, 0"], [216, "leave"], [217, "retn"]], "data_dep": [[37, 36], [38, 37], [39, 4], [40, 39], [41, 40], [42, 41], [43, 42], [44, 4], [45, 3], [47, 168], [47, 44], [48, 47], [49, 48], [50, 49], [51, 50], [52, 51], [53, 52], [54, 53], [55, 50], [56, 55], [57, 56], [58, 57], [59, 58], [60, 167], [60, 45], [61, 168], [61, 44], [65, 163], [66, 65], [67, 66], [68, 65], [69, 68], [70, 65], [71, 70], [72, 65], [73, 72], [74, 65], [75, 74], [76, 65], [77, 76], [79, 161], [80, 79], [82, 80], [83, 82], [84, 83], [85, 84], [86, 168], [86, 44], [86, 92], [86, 140], [86, 116], [87, 86], [88, 87], [89, 88], [90, 89], [91, 91], [91, 139], [91, 45], [91, 115], [91, 167], [92, 44], [92, 92], [92, 140], [92, 116], [92, 168], [93, 92], [94, 93], [98, 80], [99, 94], [99, 98], [101, 100], [103, 161], [104, 103], [106, 104], [107, 106], [108, 107], [109, 108], [110, 116], [110, 168], [110, 140], [110, 44], [110, 92], [111, 110], [112, 111], [113, 112], [114, 113], [115, 91], [115, 139], [115, 45], [115, 115], [115, 167], [116, 116], [116, 168], [116, 44], [116, 92], [116, 140], [117, 116], [118, 117], [122, 104], [123, 118], [123, 122], [125, 124], [127, 161], [128, 127], [130, 128], [131, 130], [132, 131], [133, 132], [134, 140], [134, 116], [134, 168], [134, 44], [134, 92], [135, 134], [136, 135], [137, 136], [138, 137], [139, 167], [139, 91], [139, 139], [139, 45], [139, 115], [140, 116], [140, 168], [140, 140], [140, 44], [140, 92], [141, 140], [142, 141], [146, 128], [147, 142], [147, 146], [149, 148], [152, 151], [155, 105], [155, 50], [155, 81], [155, 129], [155, 161], [156, 155], [157, 156], [158, 157], [159, 105], [159, 50], [159, 81], [159, 129], [159, 161], [160, 160], [160, 9], [160, 159], [161, 160], [162, 159], [163, 162], [164, 163], [165, 164], [167, 91], [167, 45], [167, 139], [167, 115], [167, 167], [168, 116], [168, 168], [168, 140], [168, 44], [168, 92], [169, 44], [169, 168], [170, 169], [171, 170], [172, 171], [173, 168], [173, 44], [174, 173], [175, 174], [176, 175], [177, 176], [178, 168], [178, 44], [179, 178], [180, 179], [181, 180], [182, 181], [183, 182], [184, 45], [184, 60], [184, 167], [185, 184], [187, 61], [187, 168], [187, 44], [188, 187], [189, 188], [203, 33], [203, 125], [204, 203], [208, 34], [208, 149], [209, 208], [217, 215]]}
|
size_t ZBUFFv05_freeDCtx(ZBUFFv05_DCtx* zbc)
{
if (zbc==NULL) return 0; /* support free on null */
ZSTDv05_freeDCtx(zbc->zc);
free(zbc->inBuff);
free(zbc->outBuff);
free(zbc);
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42BC2B", "function_addr": 4373547, "binary_name": "cf0f13b18d786551ec60dbb0ef7c9a852a8a4469a59c2f8b44477ffb0cde585e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+ptr], rdi"], [4, "cmp [rbp+ptr], 0"], [5, "jnz short loc_42BC45"], [6, "mov eax, 0"], [7, "jmp short locret_42BC85"], [8, "mov rax, [rbp+ptr]"], [9, "mov rax, [rax]"], [10, "mov rdi, rax"], [11, "call sub_42931A"], [12, "mov rax, [rbp+ptr]"], [13, "mov rax, [rax+30h]"], [14, "mov rdi, rax"], [15, "call _free"], [16, "mov rax, [rbp+ptr]"], [17, "mov rax, [rax+48h]"], [18, "mov rdi, rax"], [19, "call _free"], [20, "mov rax, [rbp+ptr]"], [21, "mov rdi, rax"], [22, "call _free"], [23, "mov eax, 0"], [24, "leave"], [25, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 3], [9, 8], [10, 9], [12, 3], [13, 12], [14, 13], [16, 3], [17, 16], [18, 17], [20, 3], [21, 20], [25, 23], [25, 6]]}
|
extern int eq_v_b(struct SN_env * z, const symbol * p) {
return eq_s_b(z, SIZE(p), p);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43AAE6", "function_addr": 4434662, "binary_name": "5b6938bad03d81d7259ab119b0f98b7e32e338e7e13a62d83a386dfdf4ee2b55.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rax, [rbp+var_10]"], [6, "sub rax, 4"], [7, "mov ecx, [rax]"], [8, "mov rdx, [rbp+var_10]"], [9, "mov rax, [rbp+var_8]"], [10, "mov esi, ecx"], [11, "mov rdi, rax"], [12, "call sub_43AA37"], [13, "leave"], [14, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 4], [9, 3], [10, 7], [11, 9], [14, 12]]}
|
void
tcp_arg(struct tcp_pcb *pcb, void *arg)
{
LWIP_ASSERT_CORE_LOCKED();
/* This function is allowed to be called for both listen pcbs and
connection pcbs. */
if (pcb != NULL) {
pcb->callback_arg = arg;
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44BE7A", "function_addr": 4505210, "binary_name": "1ad2950b740aefe99d7642592eec74f4658f7325067c041bb6e985f6d25ec586.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_10], rsi"], [4, "cmp [rbp+var_8], 0"], [5, "jz short loc_44BE99"], [6, "mov rax, [rbp+var_8]"], [7, "mov rdx, [rbp+var_10]"], [8, "mov [rax+18h], rdx"], [9, "nop"], [10, "pop rbp"], [11, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 2], [7, 3], [8, 7], [8, 6], [10, 0], [11, 6]]}
|
bool _TF_FN TF_Send(TinyFrame *tf, TF_Msg *msg)
{
return TF_SendFrame(tf, msg, NULL, NULL, 0);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402B11", "function_addr": 4205329, "binary_name": "7ea79ef44d1199e7e92d0513b9875f744dc7d06642dec9ab60ebc3f1415eed97.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rsi, [rbp+var_10]"], [6, "mov rax, [rbp+var_8]"], [7, "mov r8d, 0"], [8, "mov ecx, 0"], [9, "mov edx, 0"], [10, "mov rdi, rax"], [11, "call sub_402A76"], [12, "leave"], [13, "retn"]], "data_dep": [[5, 4], [6, 3], [10, 6], [13, 11]]}
|
PJ_DEF(pj_status_t) pj_get_timestamp(pj_timestamp *ts)
{
struct timespec tp;
if (clock_gettime(CLOCK_MONOTONIC, &tp) != 0) {
return PJ_RETURN_OS_ERROR(pj_get_native_os_error());
}
ts->u64 = tp.tv_sec;
ts->u64 *= NSEC_PER_SEC;
ts->u64 += tp.tv_nsec;
return PJ_SUCCESS;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43529A", "function_addr": 4412058, "binary_name": "98c1b283e9476c8bb95f42e4df7f4804ca1f7d9923e0f8202de3a9c87c2fc447.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "lea rax, [rbp+tp]"], [5, "mov rsi, rax"], [6, "mov edi, 1"], [7, "call _clock_gettime"], [8, "test eax, eax"], [9, "jz short loc_4352DB"], [10, "call ___errno_location"], [11, "mov eax, [rax]"], [12, "test eax, eax"], [13, "jz short loc_4352D4"], [14, "call ___errno_location"], [15, "mov eax, [rax]"], [16, "add eax, 1D4C0h"], [17, "jmp short locret_435318"], [18, "mov eax, 0FFFFFFFFh"], [19, "jmp short locret_435318"], [20, "mov rax, [rbp+tp.tv_sec]"], [21, "mov rdx, rax"], [22, "mov rax, [rbp+var_18]"], [23, "mov [rax], rdx"], [24, "mov rax, [rbp+var_18]"], [25, "mov rax, [rax]"], [26, "imul rdx, rax, 3B9ACA00h"], [27, "mov rax, [rbp+var_18]"], [28, "mov [rax], rdx"], [29, "mov rax, [rbp+var_18]"], [30, "mov rdx, [rax]"], [31, "mov rax, [rbp+tp.tv_nsec]"], [32, "add rdx, rax"], [33, "mov rax, [rbp+var_18]"], [34, "mov [rax], rdx"], [35, "mov eax, 0"], [36, "leave"], [37, "retn"]], "data_dep": [[5, 4], [8, 7], [9, 8], [11, 10], [12, 11], [13, 12], [15, 14], [16, 15], [21, 20], [22, 3], [23, 22], [23, 21], [24, 3], [25, 23], [25, 24], [26, 21], [26, 25], [27, 3], [28, 27], [28, 26], [29, 3], [30, 29], [30, 28], [32, 31], [32, 30], [33, 3], [34, 33], [34, 32], [37, 18], [37, 35], [37, 16]]}
|
PJ_DEF(pj_str_t) pj_str_unescape( pj_pool_t *pool, const pj_str_t *src_str)
{
char *src = src_str->ptr;
char *end = src + src_str->slen;
pj_str_t dst_str;
char *dst;
if (pj_strchr(src_str, '%')==NULL)
return *src_str;
dst = dst_str.ptr = (char*) pj_pool_alloc(pool, src_str->slen);
while (src != end) {
if (*src == '%' && src < end-2 && pj_isxdigit(*(src+1)) &&
pj_isxdigit(*(src+2)))
{
*dst = (pj_uint8_t) ((pj_hex_digit_to_val(*(src+1)) << 4) +
pj_hex_digit_to_val(*(src+2)));
++dst;
src += 3;
} else {
*dst++ = *src++;
}
}
dst_str.slen = dst - dst_str.ptr;
return dst_str;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_46FC92", "function_addr": 4652178, "binary_name": "a3e4f2ea093fcaf3e709fc4fd522bb0a36accac0c86ea61615c7de8c1eafc2c8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 48h"], [4, "mov [rbp+var_48], rdi"], [5, "mov [rbp+var_50], rsi"], [6, "mov rax, [rbp+var_50]"], [7, "mov rax, [rax]"], [8, "mov [rbp+var_18], rax"], [9, "mov rax, [rbp+var_50]"], [10, "mov rax, [rax+8]"], [11, "mov rdx, rax"], [12, "mov rax, [rbp+var_18]"], [13, "add rax, rdx"], [14, "mov [rbp+var_28], rax"], [15, "mov rax, [rbp+var_50]"], [16, "mov esi, 25h "], [17, "mov rdi, rax"], [18, "call sub_46FC4D"], [19, "test rax, rax"], [20, "jnz short loc_46FCEA"], [21, "mov rax, [rbp+var_50]"], [22, "mov rdx, [rax+8]"], [23, "mov rax, [rax]"], [24, "jmp loc_46FDEB"], [25, "mov rax, [rbp+var_50]"], [26, "mov rax, [rax+8]"], [27, "mov rdx, rax"], [28, "mov rax, [rbp+var_48]"], [29, "mov rsi, rdx"], [30, "mov rdi, rax"], [31, "call sub_47D0E6"], [32, "mov [rbp+var_40], rax"], [33, "mov rax, [rbp+var_40]"], [34, "mov [rbp+var_20], rax"], [35, "jmp loc_46FDC6"], [36, "mov rax, [rbp+var_18]"], [37, "movzx eax, byte ptr [rax]"], [38, "cmp al, 25h "], [39, "jnz loc_46FDA9"], [40, "mov rax, [rbp+var_28]"], [41, "sub rax, 2"], [42, "cmp [rbp+var_18], rax"], [43, "jnb short loc_46FDA9"], [44, "mov rax, [rbp+var_18]"], [45, "add rax, 1"], [46, "movzx eax, byte ptr [rax]"], [47, "movzx eax, al"], [48, "mov edi, eax"], [49, "call sub_46FBA6"], [50, "test eax, eax"], [51, "jz short loc_46FDA9"], [52, "mov rax, [rbp+var_18]"], [53, "add rax, 2"], [54, "movzx eax, byte ptr [rax]"], [55, "movzx eax, al"], [56, "mov edi, eax"], [57, "call sub_46FBA6"], [58, "test eax, eax"], [59, "jz short loc_46FDA9"], [60, "mov rax, [rbp+var_18]"], [61, "add rax, 1"], [62, "movzx eax, byte ptr [rax]"], [63, "movzx eax, al"], [64, "mov edi, eax"], [65, "call sub_46FC17"], [66, "shl eax, 4"], [67, "mov ebx, eax"], [68, "mov rax, [rbp+var_18]"], [69, "add rax, 2"], [70, "movzx eax, byte ptr [rax]"], [71, "movzx eax, al"], [72, "mov edi, eax"], [73, "call sub_46FC17"], [74, "add eax, ebx"], [75, "mov edx, eax"], [76, "mov rax, [rbp+var_20]"], [77, "mov [rax], dl"], [78, "add [rbp+var_20], 1"], [79, "add [rbp+var_18], 3"], [80, "jmp short loc_46FDC6"], [81, "mov rdx, [rbp+var_18]"], [82, "lea rax, [rdx+1]"], [83, "mov [rbp+var_18], rax"], [84, "mov rax, [rbp+var_20]"], [85, "lea rcx, [rax+1]"], [86, "mov [rbp+var_20], rcx"], [87, "movzx edx, byte ptr [rdx]"], [88, "mov [rax], dl"], [89, "mov rax, [rbp+var_18]"], [90, "cmp rax, [rbp+var_28]"], [91, "jnz loc_46FD15"], [92, "mov rdx, [rbp+var_40]"], [93, "mov rax, [rbp+var_20]"], [94, "sub rax, rdx"], [95, "mov [rbp+var_38], rax"], [96, "mov rax, [rbp+var_40]"], [97, "mov rdx, [rbp+var_38]"], [98, "mov rbx, [rbp+var_8]"], [99, "leave"], [100, "retn"]], "data_dep": [[6, 5], [7, 6], [8, 7], [9, 5], [10, 9], [11, 10], [12, 8], [13, 12], [13, 11], [14, 13], [15, 5], [17, 15], [19, 18], [20, 19], [21, 5], [22, 21], [23, 21], [25, 5], [26, 25], [27, 26], [28, 4], [29, 27], [30, 28], [32, 31], [33, 32], [34, 33], [36, 79], [36, 8], [36, 83], [37, 88], [37, 36], [37, 77], [38, 37], [39, 38], [40, 14], [41, 40], [42, 41], [42, 79], [42, 8], [42, 83], [43, 42], [44, 79], [44, 8], [44, 83], [45, 44], [46, 77], [46, 45], [46, 88], [47, 46], [48, 47], [50, 49], [51, 50], [52, 79], [52, 8], [52, 83], [53, 52], [54, 77], [54, 88], [54, 53], [55, 54], [56, 55], [58, 57], [59, 58], [60, 83], [60, 79], [60, 8], [61, 60], [62, 77], [62, 61], [62, 88], [63, 62], [64, 63], [66, 65], [67, 66], [68, 79], [68, 8], [68, 83], [69, 68], [70, 77], [70, 88], [70, 69], [71, 70], [72, 71], [74, 73], [74, 67], [75, 74], [76, 78], [76, 34], [76, 86], [77, 76], [77, 75], [78, 34], [78, 86], [78, 78], [79, 83], [79, 79], [79, 8], [81, 79], [81, 8], [81, 83], [82, 58], [82, 88], [82, 81], [82, 37], [82, 41], [82, 50], [82, 77], [83, 82], [84, 86], [84, 78], [84, 34], [85, 84], [85, 77], [85, 88], [85, 85], [86, 85], [87, 77], [87, 88], [87, 81], [88, 87], [88, 84], [89, 79], [89, 8], [89, 83], [90, 14], [90, 89], [91, 90], [92, 32], [93, 86], [93, 78], [93, 34], [94, 93], [94, 92], [95, 94], [96, 32], [97, 95], [100, 23], [100, 96]]}
|
void gas_serv_dialog_clear(struct gas_dialog_info *dia)
{
wpabuf_free(dia->sd_resp);
os_memset(dia, 0, sizeof(*dia));
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45D893", "function_addr": 4577427, "binary_name": "20c07804a3f28a6a5c3f8253e79de0ec1aedc41632a0737ad8dad981cd237640.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+s], rdi"], [4, "mov rax, [rbp+s]"], [5, "mov rax, [rax+8]"], [6, "mov rdi, rax"], [7, "call sub_47190A"], [8, "mov rax, [rbp+s]"], [9, "mov edx, 30h "], [10, "mov esi, 0"], [11, "mov rdi, rax"], [12, "call _memset"], [13, "nop"], [14, "leave"], [15, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [8, 3], [11, 8], [15, 12]]}
|
void SPIFFS_unmount(spiffs *fs) {
if (!SPIFFS_CHECK_CFG(fs) || !SPIFFS_CHECK_MOUNT(fs)) return;
SPIFFS_LOCK(fs);
u32_t i;
spiffs_fd *fds = (spiffs_fd *)fs->fd_space;
for (i = 0; i < fs->fd_count; i++) {
spiffs_fd *cur_fd = &fds[i];
if (cur_fd->file_nbr != 0) {
#if SPIFFS_CACHE
(void)spiffs_fflush_cache(fs, cur_fd->file_nbr);
#endif
spiffs_fd_return(fs, cur_fd->file_nbr);
}
}
fs->mounted = 0;
SPIFFS_UNLOCK(fs);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40204B", "function_addr": 4202571, "binary_name": "52304f58fcc9ab3a0cdd7d4aed0f9528af9d9ebd823601e936453689219b88b5.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov rax, [rbp+var_28]"], [5, "mov eax, [rax+0A8h]"], [6, "cmp eax, 20090315h"], [7, "jnz loc_40210F"], [8, "mov rax, [rbp+var_28]"], [9, "movzx eax, byte ptr [rax+98h]"], [10, "test al, al"], [11, "jz loc_40210F"], [12, "mov rax, [rbp+var_28]"], [13, "mov rax, [rax+58h]"], [14, "mov [rbp+var_10], rax"], [15, "mov [rbp+var_4], 0"], [16, "jmp short loc_4020F6"], [17, "mov edx, [rbp+var_4]"], [18, "mov rax, rdx"], [19, "shl rax, 3"], [20, "sub rax, rdx"], [21, "shl rax, 3"], [22, "mov rdx, rax"], [23, "mov rax, [rbp+var_10]"], [24, "add rax, rdx"], [25, "mov [rbp+var_18], rax"], [26, "mov rax, [rbp+var_18]"], [27, "movzx eax, word ptr [rax+8]"], [28, "test ax, ax"], [29, "jz short loc_4020F2"], [30, "mov rax, [rbp+var_18]"], [31, "movzx eax, word ptr [rax+8]"], [32, "movsx edx, ax"], [33, "mov rax, [rbp+var_28]"], [34, "mov esi, edx"], [35, "mov rdi, rax"], [36, "call sub_403A45"], [37, "mov rax, [rbp+var_18]"], [38, "movzx eax, word ptr [rax+8]"], [39, "movsx edx, ax"], [40, "mov rax, [rbp+var_28]"], [41, "mov esi, edx"], [42, "mov rdi, rax"], [43, "call sub_410078"], [44, "add [rbp+var_4], 1"], [45, "mov rax, [rbp+var_28]"], [46, "mov eax, [rax+60h]"], [47, "cmp [rbp+var_4], eax"], [48, "jb short loc_402094"], [49, "mov rax, [rbp+var_28]"], [50, "mov byte ptr [rax+98h], 0"], [51, "jmp short locret_402110"], [52, "nop"], [53, "leave"], [54, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 3], [9, 8], [10, 9], [11, 10], [12, 3], [13, 12], [14, 13], [17, 15], [17, 44], [18, 17], [19, 18], [20, 17], [20, 19], [21, 20], [22, 21], [23, 14], [24, 23], [24, 22], [25, 24], [26, 25], [27, 26], [28, 27], [29, 28], [30, 25], [31, 30], [32, 31], [33, 3], [34, 32], [35, 33], [37, 25], [38, 37], [39, 38], [40, 3], [41, 39], [42, 40], [44, 44], [44, 15], [45, 3], [46, 45], [47, 46], [47, 15], [47, 44], [48, 47], [49, 3], [50, 49], [54, 10], [54, 49], [54, 5]]}
|
void mini_openlog(const char *ident, int option, int facility)
{
uds_lock_mutex(&mutex);
close_locked();
UDS_FREE(log_ident);
if (uds_duplicate_string(ident, NULL, &log_ident) != UDS_SUCCESS) {
// on failure, NULL is okay
log_ident = NULL;
}
log_option = option;
default_facility = facility;
if (log_option & LOG_NDELAY) {
open_socket_locked();
}
uds_unlock_mutex(&mutex);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4044F2", "function_addr": 4211954, "binary_name": "2e04690df87f941ea47afc05fca43c9cf16300130874a53a52ba8ad933f0e1ba.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_10], edx"], [6, "lea rdi, unk_40D480"], [7, "call sub_4056F0"], [8, "call sub_404429"], [9, "mov rax, cs:qword_40D5D8"], [10, "mov rdi, rax"], [11, "call sub_404267"], [12, "mov rax, [rbp+var_8]"], [13, "lea rdx, qword_40D5D8"], [14, "mov esi, 0"], [15, "mov rdi, rax"], [16, "call sub_40433A"], [17, "test eax, eax"], [18, "jz short loc_40454B"], [19, "mov cs:qword_40D5D8, 0"], [20, "mov eax, [rbp+var_C]"], [21, "mov cs:dword_40D5E0, eax"], [22, "mov eax, [rbp+var_10]"], [23, "mov cs:dword_40D4AC, eax"], [24, "mov eax, cs:dword_40D5E0"], [25, "and eax, 8"], [26, "test eax, eax"], [27, "jz short loc_40456F"], [28, "call sub_404452"], [29, "lea rdi, unk_40D480"], [30, "call sub_40575A"], [31, "nop"], [32, "leave"], [33, "retn"]], "data_dep": [[10, 9], [12, 3], [15, 12], [17, 16], [18, 17], [20, 4], [21, 20], [22, 5], [23, 22], [24, 21], [25, 24], [26, 25], [27, 26], [29, 15], [33, 30]]}
|
UG_RESULT UG_WindowSetStyle( UG_WINDOW* wnd, UG_U8 style )
{
if ( (wnd != NULL) && (wnd->state & WND_STATE_VALID) )
{
/* 3D or 2D? */
if ( style & WND_STYLE_3D )
{
wnd->style |= WND_STYLE_3D;
}
else
{
wnd->style &= ~WND_STYLE_3D;
}
/* Show title-bar? */
if ( style & WND_STYLE_SHOW_TITLE )
{
wnd->style |= WND_STYLE_SHOW_TITLE;
}
else
{
wnd->style &= ~WND_STYLE_SHOW_TITLE;
}
wnd->state |= WND_STATE_UPDATE;
return UG_RESULT_OK;
}
return UG_RESULT_FAIL;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4060CD", "function_addr": 4219085, "binary_name": "3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov eax, esi"], [4, "mov [rbp+var_C], al"], [5, "cmp [rbp+var_8], 0"], [6, "jz loc_406180"], [7, "mov rax, [rbp+var_8]"], [8, "movzx eax, byte ptr [rax+10h]"], [9, "movzx eax, al"], [10, "and eax, 2"], [11, "test eax, eax"], [12, "jz loc_406180"], [13, "movzx eax, [rbp+var_C]"], [14, "and eax, 1"], [15, "test eax, eax"], [16, "jz short loc_40611C"], [17, "mov rax, [rbp+var_8]"], [18, "movzx eax, byte ptr [rax+24h]"], [19, "or eax, 1"], [20, "mov edx, eax"], [21, "mov rax, [rbp+var_8]"], [22, "mov [rax+24h], dl"], [23, "jmp short loc_406130"], [24, "mov rax, [rbp+var_8]"], [25, "movzx eax, byte ptr [rax+24h]"], [26, "and eax, 0FFFFFFFEh"], [27, "mov edx, eax"], [28, "mov rax, [rbp+var_8]"], [29, "mov [rax+24h], dl"], [30, "movzx eax, [rbp+var_C]"], [31, "and eax, 2"], [32, "test eax, eax"], [33, "jz short loc_406151"], [34, "mov rax, [rbp+var_8]"], [35, "movzx eax, byte ptr [rax+24h]"], [36, "or eax, 2"], [37, "mov edx, eax"], [38, "mov rax, [rbp+var_8]"], [39, "mov [rax+24h], dl"], [40, "jmp short loc_406165"], [41, "mov rax, [rbp+var_8]"], [42, "movzx eax, byte ptr [rax+24h]"], [43, "and eax, 0FFFFFFFDh"], [44, "mov edx, eax"], [45, "mov rax, [rbp+var_8]"], [46, "mov [rax+24h], dl"], [47, "mov rax, [rbp+var_8]"], [48, "movzx eax, byte ptr [rax+10h]"], [49, "or eax, 20h"], [50, "mov edx, eax"], [51, "mov rax, [rbp+var_8]"], [52, "mov [rax+10h], dl"], [53, "mov eax, 0"], [54, "jmp short loc_406185"], [55, "mov eax, 0FFFFFFFFh"], [56, "pop rbp"], [57, "retn"]], "data_dep": [[4, 3], [5, 2], [6, 5], [7, 2], [8, 7], [9, 8], [10, 9], [11, 10], [12, 11], [13, 4], [14, 13], [15, 14], [16, 15], [17, 2], [18, 17], [19, 18], [20, 19], [21, 2], [22, 20], [22, 21], [24, 2], [25, 24], [26, 25], [27, 26], [28, 2], [29, 28], [29, 27], [30, 4], [31, 30], [32, 31], [33, 32], [34, 2], [35, 39], [35, 29], [35, 22], [35, 34], [36, 35], [37, 36], [38, 2], [39, 38], [39, 37], [41, 2], [42, 29], [42, 41], [42, 22], [42, 46], [43, 42], [44, 43], [45, 2], [46, 45], [46, 44], [47, 2], [48, 39], [48, 29], [48, 47], [48, 22], [48, 46], [48, 52], [49, 48], [50, 49], [51, 2], [52, 51], [52, 50], [56, 0], [57, 53], [57, 55]]}
|
void die(const char *msg)
{
perror(msg);
exit(errno);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403074", "function_addr": 4206708, "binary_name": "0cb64094e11d75eb2aabf56dc8fb0d2c841aaa452a562a77867d8e1ee66d2f2c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+s], rdi"], [4, "mov rax, [rbp+s]"], [5, "mov rdi, rax"], [6, "call _perror"], [7, "call ___errno_location"], [8, "mov eax, [rax]"], [9, "mov edi, eax"], [10, "call _exit"]], "data_dep": [[4, 3], [5, 4], [8, 7], [9, 8]]}
|
static void
do_cmd_stop (masterState * ms)
{
if (ms->workload_started)
{
workerCmd cmd;
cmd.command = CMD_STOP;
do_worker_cmd (ms, &cmd);
ms->workload_started = 0;
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405E7A", "function_addr": 4218490, "binary_name": "3e328d3df154d084aac6496189e9c480505856acdf21e0a7e75ceb5c4c49e977.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 2D0h"], [3, "mov [rbp+var_2C8], rdi"], [4, "mov rax, [rbp+var_2C8]"], [5, "mov eax, [rax+8]"], [6, "test eax, eax"], [7, "jz short loc_405ECB"], [8, "mov [rbp+var_2C0], 4"], [9, "lea rdx, [rbp+var_2C0]"], [10, "mov rax, [rbp+var_2C8]"], [11, "mov rsi, rdx"], [12, "mov rdi, rax"], [13, "call sub_40529E"], [14, "mov rax, [rbp+var_2C8]"], [15, "mov dword ptr [rax+8], 0"], [16, "nop"], [17, "leave"], [18, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [9, 8], [10, 3], [11, 9], [12, 10], [14, 3], [15, 14], [18, 6], [18, 14]]}
|
static int usage_with_options_internal(struct parse_opt_ctx_t *ctx,
const char * const *usagestr,
const struct option *opts, int full, int err)
{
FILE *outfile = err ? stderr : stdout;
if (!usagestr)
return PARSE_OPT_HELP;
if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
fprintf(outfile, "cat <<\\EOF\n");
fprintf_ln(outfile, _("usage: %s"), _(*usagestr++));
while (*usagestr && **usagestr)
/* TRANSLATORS: the colon here should align with the
one in "usage: %s" translation */
fprintf_ln(outfile, _(" or: %s"), _(*usagestr++));
while (*usagestr) {
if (**usagestr)
fprintf_ln(outfile, _(" %s"), _(*usagestr));
else
putchar('\n');
usagestr++;
}
if (opts->type != OPTION_GROUP)
fputc('\n', outfile);
for (; opts->type != OPTION_END; opts++) {
size_t pos;
int pad;
if (opts->type == OPTION_GROUP) {
fputc('\n', outfile);
if (*opts->help)
fprintf(outfile, "%s\n", _(opts->help));
continue;
}
if (!full && (opts->flags & PARSE_OPT_HIDDEN))
continue;
pos = fprintf(outfile, " ");
if (opts->short_name) {
if (opts->flags & PARSE_OPT_NODASH)
pos += fprintf(outfile, "%c", opts->short_name);
else
pos += fprintf(outfile, "-%c", opts->short_name);
}
if (opts->long_name && opts->short_name)
pos += fprintf(outfile, ", ");
if (opts->long_name)
pos += fprintf(outfile, "--%s", opts->long_name);
if (opts->type == OPTION_NUMBER)
pos += utf8_fprintf(outfile, _("-NUM"));
if ((opts->flags & PARSE_OPT_LITERAL_ARGHELP) ||
!(opts->flags & PARSE_OPT_NOARG))
pos += usage_argh(opts, outfile);
if (pos <= USAGE_OPTS_WIDTH)
pad = USAGE_OPTS_WIDTH - pos;
else {
fputc('\n', outfile);
pad = USAGE_OPTS_WIDTH;
}
fprintf(outfile, "%*s%s\n", pad + USAGE_GAP, "", _(opts->help));
}
fputc('\n', outfile);
if (!err && ctx && ctx->flags & PARSE_OPT_SHELL_EVAL)
fputs("EOF\n", outfile);
return PARSE_OPT_HELP;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_492318", "function_addr": 4793112, "binary_name": "8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 48h"], [4, "mov [rbp+var_38], rdi"], [5, "mov [rbp+var_40], rsi"], [6, "mov [rbp+var_48], rdx"], [7, "mov [rbp+var_4C], ecx"], [8, "mov [rbp+var_50], r8d"], [9, "cmp [rbp+var_50], 0"], [10, "jz short loc_492343"], [11, "mov rax, cs:stderr"], [12, "jmp short loc_49234A"], [13, "mov rax, cs:stdout"], [14, "mov [rbp+s], rax"], [15, "cmp [rbp+var_40], 0"], [16, "jnz short loc_49235F"], [17, "mov eax, 0FFFFFFFFh"], [18, "jmp loc_492744"], [19, "cmp [rbp+var_50], 0"], [20, "jnz short loc_492397"], [21, "cmp [rbp+var_38], 0"], [22, "jz short loc_492397"], [23, "mov rax, [rbp+var_38]"], [24, "mov eax, [rax+20h]"], [25, "and eax, 100h"], [26, "test eax, eax"], [27, "jz short loc_492397"], [28, "mov rax, [rbp+s]"], [29, "mov rcx, rax"], [30, "mov edx, 0Bh"], [31, "mov esi, 1"], [32, "mov edi, offset aCatEof"], [33, "call _fwrite"], [34, "mov rax, [rbp+var_40]"], [35, "lea rdx, [rax+8]"], [36, "mov [rbp+var_40], rdx"], [37, "mov rax, [rax]"], [38, "mov rdi, rax"], [39, "call sub_490B7C"], [40, "mov rbx, rax"], [41, "mov edi, offset aUsageS"], [42, "call sub_490B7C"], [43, "mov rcx, rax"], [44, "mov rax, [rbp+s]"], [45, "mov rdx, rbx"], [46, "mov rsi, rcx"], [47, "mov rdi, rax"], [48, "mov eax, 0"], [49, "call sub_4428FA"], [50, "jmp short loc_492415"], [51, "mov rax, [rbp+var_40]"], [52, "lea rdx, [rax+8]"], [53, "mov [rbp+var_40], rdx"], [54, "mov rax, [rax]"], [55, "mov rdi, rax"], [56, "call sub_490B7C"], [57, "mov rbx, rax"], [58, "mov edi, offset aOrS"], [59, "call sub_490B7C"], [60, "mov rcx, rax"], [61, "mov rax, [rbp+s]"], [62, "mov rdx, rbx"], [63, "mov rsi, rcx"], [64, "mov rdi, rax"], [65, "mov eax, 0"], [66, "call sub_4428FA"], [67, "mov rax, [rbp+var_40]"], [68, "mov rax, [rax]"], [69, "test rax, rax"], [70, "jz short loc_492486"], [71, "mov rax, [rbp+var_40]"], [72, "mov rax, [rax]"], [73, "movzx eax, byte ptr [rax]"], [74, "test al, al"], [75, "jnz short loc_4923D7"], [76, "jmp short loc_492486"], [77, "mov rax, [rbp+var_40]"], [78, "mov rax, [rax]"], [79, "movzx eax, byte ptr [rax]"], [80, "test al, al"], [81, "jz short loc_492477"], [82, "mov rax, [rbp+var_40]"], [83, "mov rax, [rax]"], [84, "mov rdi, rax"], [85, "call sub_490B7C"], [86, "mov rbx, rax"], [87, "mov edi, offset aS_37"], [88, "call sub_490B7C"], [89, "mov rcx, rax"], [90, "mov rax, [rbp+s]"], [91, "mov rdx, rbx"], [92, "mov rsi, rcx"], [93, "mov rdi, rax"], [94, "mov eax, 0"], [95, "call sub_4428FA"], [96, "jmp short loc_492481"], [97, "mov edi, 0Ah"], [98, "call _putchar"], [99, "add [rbp+var_40], 8"], [100, "mov rax, [rbp+var_40]"], [101, "mov rax, [rax]"], [102, "test rax, rax"], [103, "jnz short loc_492431"], [104, "mov rax, [rbp+var_48]"], [105, "mov eax, [rax]"], [106, "cmp eax, 2"], [107, "jz loc_4926E8"], [108, "mov rax, [rbp+s]"], [109, "mov rsi, rax"], [110, "mov edi, 0Ah"], [111, "call _fputc"], [112, "jmp loc_4926E8"], [113, "mov rax, [rbp+var_48]"], [114, "mov eax, [rax]"], [115, "cmp eax, 2"], [116, "jnz short loc_492514"], [117, "mov rax, [rbp+s]"], [118, "mov rsi, rax"], [119, "mov edi, 0Ah"], [120, "call _fputc"], [121, "mov rax, [rbp+var_48]"], [122, "mov rax, [rax+20h]"], [123, "movzx eax, byte ptr [rax]"], [124, "test al, al"], [125, "jz loc_4926DF"], [126, "mov rax, [rbp+var_48]"], [127, "mov rax, [rax+20h]"], [128, "mov rdi, rax"], [129, "call sub_490B7C"], [130, "mov rdx, rax"], [131, "mov rax, [rbp+s]"], [132, "mov esi, offset aS_38"], [133, "mov rdi, rax"], [134, "mov eax, 0"], [135, "call _fprintf"], [136, "jmp loc_4926DF"], [137, "cmp [rbp+var_4C], 0"], [138, "jnz short loc_49252C"], [139, "mov rax, [rbp+var_48]"], [140, "mov eax, [rax+28h]"], [141, "and eax, 8"], [142, "test eax, eax"], [143, "jnz loc_4926E2"], [144, "mov rax, [rbp+s]"], [145, "mov esi, offset asc_4D6774"], [146, "mov rdi, rax"], [147, "mov eax, 0"], [148, "call _fprintf"], [149, "cdqe"], [150, "mov [rbp+var_18], rax"], [151, "mov rax, [rbp+var_48]"], [152, "mov eax, [rax+4]"], [153, "test eax, eax"], [154, "jz short loc_4925A9"], [155, "mov rax, [rbp+var_48]"], [156, "mov eax, [rax+28h]"], [157, "and eax, 20h"], [158, "test eax, eax"], [159, "jz short loc_492586"], [160, "mov rax, [rbp+var_48]"], [161, "mov edx, [rax+4]"], [162, "mov rax, [rbp+s]"], [163, "mov esi, offset aC_6"], [164, "mov rdi, rax"], [165, "mov eax, 0"], [166, "call _fprintf"], [167, "cdqe"], [168, "add [rbp+var_18], rax"], [169, "jmp short loc_4925A9"], [170, "mov rax, [rbp+var_48]"], [171, "mov edx, [rax+4]"], [172, "mov rax, [rbp+s]"], [173, "mov esi, offset aC_5"], [174, "mov rdi, rax"], [175, "mov eax, 0"], [176, "call _fprintf"], [177, "cdqe"], [178, "add [rbp+var_18], rax"], [179, "mov rax, [rbp+var_48]"], [180, "mov rax, [rax+8]"], [181, "test rax, rax"], [182, "jz short loc_4925DD"], [183, "mov rax, [rbp+var_48]"], [184, "mov eax, [rax+4]"], [185, "test eax, eax"], [186, "jz short loc_4925DD"], [187, "mov rax, [rbp+s]"], [188, "mov esi, offset asc_4D677C"], [189, "mov rdi, rax"], [190, "mov eax, 0"], [191, "call _fprintf"], [192, "cdqe"], [193, "add [rbp+var_18], rax"], [194, "mov rax, [rbp+var_48]"], [195, "mov rax, [rax+8]"], [196, "test rax, rax"], [197, "jz short loc_49260E"], [198, "mov rax, [rbp+var_48]"], [199, "mov rdx, [rax+8]"], [200, "mov rax, [rbp+s]"], [201, "mov esi, offset aS_30"], [202, "mov rdi, rax"], [203, "mov eax, 0"], [204, "call _fprintf"], [205, "cdqe"], [206, "add [rbp+var_18], rax"], [207, "mov rax, [rbp+var_48]"], [208, "mov eax, [rax]"], [209, "cmp eax, 3"], [210, "jnz short loc_492640"], [211, "mov edi, offset aNum"], [212, "call sub_490B7C"], [213, "mov rdx, rax"], [214, "mov rax, [rbp+s]"], [215, "mov rsi, rdx"], [216, "mov rdi, rax"], [217, "mov eax, 0"], [218, "call sub_44A696"], [219, "cdqe"], [220, "add [rbp+var_18], rax"], [221, "mov rax, [rbp+var_48]"], [222, "mov eax, [rax+28h]"], [223, "and eax, 40h"], [224, "test eax, eax"], [225, "jnz short loc_49265C"], [226, "mov rax, [rbp+var_48]"], [227, "mov eax, [rax+28h]"], [228, "and eax, 2"], [229, "test eax, eax"], [230, "jnz short loc_492675"], [231, "mov rdx, [rbp+s]"], [232, "mov rax, [rbp+var_48]"], [233, "mov rsi, rdx"], [234, "mov rdi, rax"], [235, "call sub_49223A"], [236, "cdqe"], [237, "add [rbp+var_18], rax"], [238, "cmp [rbp+var_18], 18h"], [239, "ja short loc_49268E"], [240, "mov rax, [rbp+var_18]"], [241, "mov edx, eax"], [242, "mov eax, 18h"], [243, "sub eax, edx"], [244, "mov [rbp+var_1C], eax"], [245, "jmp short loc_4926A6"], [246, "mov rax, [rbp+s]"], [247, "mov rsi, rax"], [248, "mov edi, 0Ah"], [249, "call _fputc"], [250, "mov [rbp+var_1C], 18h"], [251, "mov rax, [rbp+var_48]"], [252, "mov rax, [rax+20h]"], [253, "mov rdi, rax"], [254, "call sub_490B7C"], [255, "mov rcx, rax"], [256, "mov eax, [rbp+var_1C]"], [257, "lea edx, [rax+2]"], [258, "mov rax, [rbp+s]"], [259, "mov r8, rcx"], [260, "mov ecx, offset unk_4D6448"], [261, "mov esi, offset aSS_17"], [262, "mov rdi, rax"], [263, "mov eax, 0"], [264, "call _fprintf"], [265, "jmp short loc_4926E3"], [266, "nop"], [267, "jmp short loc_4926E3"], [268, "nop"], [269, "add [rbp+var_48], 40h "], [270, "mov rax, [rbp+var_48]"], [271, "mov eax, [rax]"], [272, "test eax, eax"], [273, "jnz loc_4924B7"], [274, "mov rax, [rbp+s]"], [275, "mov rsi, rax"], [276, "mov edi, 0Ah"], [277, "call _fputc"], [278, "cmp [rbp+var_50], 0"], [279, "jnz short loc_49273F"], [280, "cmp [rbp+var_38], 0"], [281, "jz short loc_49273F"], [282, "mov rax, [rbp+var_38]"], [283, "mov eax, [rax+20h]"], [284, "and eax, 100h"], [285, "test eax, eax"], [286, "jz short loc_49273F"], [287, "mov rax, [rbp+s]"], [288, "mov rcx, rax"], [289, "mov edx, 4"], [290, "mov esi, 1"], [291, "mov edi, offset aEof"], [292, "call _fwrite"], [293, "mov eax, 0FFFFFFFFh"], [294, "mov rbx, [rbp+var_8]"], [295, "leave"], [296, "retn"]], "data_dep": [[9, 8], [10, 9], [14, 13], [14, 11], [15, 5], [16, 15], [19, 8], [20, 19], [21, 4], [22, 21], [23, 4], [24, 23], [25, 24], [26, 25], [27, 26], [28, 14], [29, 28], [34, 5], [35, 30], [35, 34], [36, 35], [37, 34], [38, 37], [40, 39], [43, 42], [44, 14], [45, 40], [46, 43], [47, 44], [51, 36], [51, 53], [52, 51], [52, 62], [52, 45], [53, 52], [54, 51], [55, 54], [57, 56], [60, 59], [61, 14], [62, 57], [63, 60], [64, 61], [67, 36], [67, 53], [68, 67], [69, 68], [70, 69], [71, 53], [71, 36], [72, 71], [73, 72], [74, 73], [75, 74], [77, 99], [77, 53], [77, 36], [78, 77], [79, 78], [80, 79], [81, 80], [82, 99], [82, 53], [82, 36], [83, 82], [84, 83], [86, 85], [89, 88], [90, 14], [91, 86], [92, 89], [93, 90], [99, 36], [99, 99], [99, 53], [100, 36], [100, 99], [100, 53], [101, 100], [102, 101], [103, 102], [104, 6], [105, 104], [106, 105], [107, 106], [108, 14], [109, 108], [113, 269], [113, 6], [114, 113], [115, 114], [116, 115], [117, 14], [118, 117], [121, 269], [121, 6], [122, 121], [123, 122], [124, 123], [125, 124], [126, 269], [126, 6], [127, 126], [128, 127], [130, 129], [131, 14], [133, 131], [137, 7], [138, 137], [139, 269], [139, 6], [140, 139], [141, 140], [142, 141], [143, 142], [144, 14], [146, 144], [150, 148], [151, 269], [151, 6], [152, 151], [153, 152], [154, 153], [155, 269], [155, 6], [156, 155], [157, 156], [158, 157], [159, 158], [160, 269], [160, 6], [161, 160], [162, 14], [164, 162], [168, 166], [168, 150], [170, 269], [170, 6], [171, 170], [172, 14], [174, 172], [178, 150], [178, 176], [179, 269], [179, 6], [180, 179], [181, 180], [182, 181], [183, 269], [183, 6], [184, 183], [185, 184], [186, 185], [187, 14], [189, 187], [193, 150], [193, 168], [193, 191], [193, 178], [194, 269], [194, 6], [195, 194], [196, 195], [197, 196], [198, 269], [198, 6], [199, 198], [200, 14], [202, 200], [206, 150], [206, 168], [206, 193], [206, 204], [206, 178], [207, 269], [207, 6], [208, 207], [209, 208], [210, 209], [213, 212], [214, 14], [215, 213], [216, 214], [220, 218], [220, 193], [220, 206], [220, 178], [220, 150], [220, 168], [221, 269], [221, 6], [222, 221], [223, 222], [224, 223], [225, 224], [226, 6], [226, 269], [227, 226], [228, 227], [229, 228], [230, 229], [231, 14], [232, 269], [232, 6], [233, 231], [234, 232], [237, 168], [237, 193], [237, 220], [237, 206], [237, 178], [237, 235], [237, 150], [238, 206], [238, 178], [238, 237], [238, 150], [238, 168], [238, 193], [238, 220], [239, 238], [240, 178], [240, 237], [240, 150], [240, 168], [240, 220], [240, 206], [240, 193], [241, 240], [243, 242], [243, 241], [244, 243], [246, 14], [247, 246], [251, 269], [251, 6], [252, 251], [253, 252], [255, 254], [256, 250], [256, 244], [257, 231], [257, 130], [257, 171], [257, 91], [257, 45], [257, 241], [257, 161], [257, 257], [257, 213], [257, 62], [257, 199], [257, 256], [258, 14], [259, 255], [262, 258], [269, 269], [269, 6], [270, 269], [270, 6], [271, 270], [272, 271], [273, 272], [274, 14], [275, 274], [278, 8], [279, 278], [280, 4], [281, 280], [282, 4], [283, 282], [284, 283], [285, 284], [286, 285], [287, 14], [288, 287], [296, 293], [296, 17]]}
|
int radius_msg_finish_srv(struct radius_msg *msg, const u8 *secret,
size_t secret_len, const u8 *req_authenticator)
{
u8 auth[MD5_MAC_LEN];
struct radius_attr_hdr *attr;
const u8 *addr[4];
size_t len[4];
os_memset(auth, 0, MD5_MAC_LEN);
attr = radius_msg_add_attr(msg, RADIUS_ATTR_MESSAGE_AUTHENTICATOR,
auth, MD5_MAC_LEN);
if (attr == NULL) {
wpa_printf(MSG_ERROR, "WARNING: Could not add Message-Authenticator");
return -1;
}
msg->hdr->length = host_to_be16(wpabuf_len(msg->buf));
os_memcpy(msg->hdr->authenticator, req_authenticator,
sizeof(msg->hdr->authenticator));
hmac_md5(secret, secret_len, wpabuf_head(msg->buf),
wpabuf_len(msg->buf), (u8 *) (attr + 1));
/* ResponseAuth = MD5(Code+ID+Length+RequestAuth+Attributes+Secret) */
addr[0] = (u8 *) msg->hdr;
len[0] = 1 + 1 + 2;
addr[1] = req_authenticator;
len[1] = MD5_MAC_LEN;
addr[2] = wpabuf_head_u8(msg->buf) + sizeof(struct radius_hdr);
len[2] = wpabuf_len(msg->buf) - sizeof(struct radius_hdr);
addr[3] = secret;
len[3] = secret_len;
md5_vector(4, addr, len, msg->hdr->authenticator);
if (wpabuf_len(msg->buf) > 0xffff) {
wpa_printf(MSG_WARNING, "RADIUS: Too long message (%lu)",
(unsigned long) wpabuf_len(msg->buf));
return -1;
}
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F289", "function_addr": 4256393, "binary_name": "7876e4085e3f05c2871fec0d64f4ee6217ffb0986990fc0134d102ed22a0eaa1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "add rsp, 0FFFFFFFFFFFFFF80h"], [5, "mov [rbp+var_78], rdi"], [6, "mov [rbp+var_80], rsi"], [7, "mov [rbp+var_88], rdx"], [8, "mov [rbp+var_90], rcx"], [9, "lea rax, [rbp+s]"], [10, "mov edx, 10h"], [11, "mov esi, 0"], [12, "mov rdi, rax"], [13, "call _memset"], [14, "lea rdx, [rbp+s]"], [15, "mov rax, [rbp+var_78]"], [16, "mov ecx, 10h"], [17, "mov esi, 50h "], [18, "mov rdi, rax"], [19, "call sub_40FC72"], [20, "mov [rbp+var_18], rax"], [21, "cmp [rbp+var_18], 0"], [22, "jnz short loc_40F303"], [23, "mov esi, offset aWarningCouldNo"], [24, "mov edi, 5"], [25, "mov eax, 0"], [26, "call sub_43B8F7"], [27, "mov eax, 0FFFFFFFFh"], [28, "jmp loc_40F460"], [29, "mov rax, [rbp+var_78]"], [30, "mov rax, [rax]"], [31, "mov rdi, rax"], [32, "call sub_40EACB"], [33, "movzx eax, ax"], [34, "mov rdx, [rbp+var_78]"], [35, "mov rbx, [rdx+8]"], [36, "mov edi, eax"], [37, "call sub_40E908"], [38, "mov [rbx+2], ax"], [39, "mov rax, [rbp+var_78]"], [40, "mov rax, [rax+8]"], [41, "lea rcx, [rax+4]"], [42, "mov rax, [rbp+var_90]"], [43, "mov rdx, [rax+8]"], [44, "mov rax, [rax]"], [45, "mov [rcx], rax"], [46, "mov [rcx+8], rdx"], [47, "mov rax, [rbp+var_18]"], [48, "lea r12, [rax+2]"], [49, "mov rax, [rbp+var_78]"], [50, "mov rax, [rax]"], [51, "mov rdi, rax"], [52, "call sub_40EACB"], [53, "mov rbx, rax"], [54, "mov rax, [rbp+var_78]"], [55, "mov rax, [rax]"], [56, "mov rdi, rax"], [57, "call sub_40EAFC"], [58, "mov rdx, rax"], [59, "mov rsi, [rbp+var_88]"], [60, "mov rax, [rbp+var_80]"], [61, "mov r8, r12"], [62, "mov rcx, rbx"], [63, "mov rdi, rax"], [64, "call sub_442C98"], [65, "mov rax, [rbp+var_78]"], [66, "mov rax, [rax+8]"], [67, "mov [rbp+var_50], rax"], [68, "mov [rbp+var_70], 4"], [69, "mov rax, [rbp+var_90]"], [70, "mov [rbp+var_48], rax"], [71, "mov [rbp+var_68], 10h"], [72, "mov rax, [rbp+var_78]"], [73, "mov rax, [rax]"], [74, "mov rdi, rax"], [75, "call sub_40EB0E"], [76, "add rax, 14h"], [77, "mov [rbp+var_40], rax"], [78, "mov rax, [rbp+var_78]"], [79, "mov rax, [rax]"], [80, "mov rdi, rax"], [81, "call sub_40EACB"], [82, "sub rax, 14h"], [83, "mov [rbp+var_60], rax"], [84, "mov rax, [rbp+var_80]"], [85, "mov [rbp+var_38], rax"], [86, "mov rax, [rbp+var_88]"], [87, "mov [rbp+var_58], rax"], [88, "mov rax, [rbp+var_78]"], [89, "mov rax, [rax+8]"], [90, "lea rcx, [rax+4]"], [91, "lea rdx, [rbp+var_70]"], [92, "lea rax, [rbp+var_50]"], [93, "mov rsi, rax"], [94, "mov edi, 4"], [95, "call sub_442CE0"], [96, "mov rax, [rbp+var_78]"], [97, "mov rax, [rax]"], [98, "mov rdi, rax"], [99, "call sub_40EACB"], [100, "cmp rax, 0FFFFh"], [101, "jbe short loc_40F45B"], [102, "mov rax, [rbp+var_78]"], [103, "mov rax, [rax]"], [104, "mov rdi, rax"], [105, "call sub_40EACB"], [106, "mov rdx, rax"], [107, "mov esi, offset aRadiusTooLongM"], [108, "mov edi, 4"], [109, "mov eax, 0"], [110, "call sub_43B8F7"], [111, "mov eax, 0FFFFFFFFh"], [112, "jmp short loc_40F460"], [113, "mov eax, 0"], [114, "sub rsp, 0FFFFFFFFFFFFFF80h"], [115, "pop rbx"], [116, "pop r12"], [117, "pop rbp"], [118, "retn"]], "data_dep": [[12, 9], [14, 10], [15, 5], [18, 15], [20, 19], [21, 20], [22, 21], [29, 5], [30, 29], [31, 30], [33, 32], [34, 5], [35, 34], [36, 33], [38, 35], [38, 37], [39, 5], [40, 38], [40, 39], [41, 40], [41, 16], [41, 38], [42, 8], [43, 38], [43, 42], [44, 38], [44, 42], [45, 41], [45, 44], [46, 41], [46, 43], [47, 20], [48, 47], [48, 46], [49, 5], [50, 49], [50, 46], [51, 50], [53, 52], [54, 5], [55, 54], [55, 46], [56, 55], [58, 57], [59, 7], [60, 6], [61, 48], [62, 53], [63, 60], [65, 5], [66, 46], [66, 65], [67, 66], [69, 8], [70, 69], [72, 5], [73, 46], [73, 72], [74, 73], [76, 75], [77, 76], [78, 5], [79, 46], [79, 78], [80, 79], [82, 81], [83, 82], [84, 6], [85, 84], [86, 7], [87, 86], [88, 5], [89, 88], [89, 46], [90, 46], [90, 62], [90, 89], [91, 68], [91, 58], [92, 67], [92, 89], [93, 92], [96, 5], [97, 46], [97, 96], [98, 97], [100, 99], [101, 100], [102, 5], [103, 45], [103, 38], [103, 102], [103, 46], [104, 103], [106, 105], [114, 4], [115, 3], [116, 2], [117, 0], [118, 113], [118, 27], [118, 111]]}
|
void set_binary_values(struct isci_orom *isci_orom)
{
int ctrl_idx, phy_idx, port_idx;
/* setting OROM signature */
strncpy(isci_orom->hdr.signature, sig, strlen(sig));
isci_orom->hdr.version = version;
isci_orom->hdr.total_block_length = sizeof(struct isci_orom);
isci_orom->hdr.hdr_length = sizeof(struct sci_bios_oem_param_block_hdr);
isci_orom->hdr.num_elements = num_elements;
for (ctrl_idx = 0; ctrl_idx < 2; ctrl_idx++) {
isci_orom->ctrl[ctrl_idx].controller.mode_type = mode_type;
isci_orom->ctrl[ctrl_idx].controller.max_concurrent_dev_spin_up =
max_num_concurrent_dev_spin_up;
isci_orom->ctrl[ctrl_idx].controller.do_enable_ssc =
enable_ssc;
for (port_idx = 0; port_idx < 4; port_idx++)
isci_orom->ctrl[ctrl_idx].ports[port_idx].phy_mask =
phy_mask[ctrl_idx][port_idx];
for (phy_idx = 0; phy_idx < 4; phy_idx++) {
isci_orom->ctrl[ctrl_idx].phys[phy_idx].sas_address.high =
(__u32)(sas_addr[ctrl_idx][phy_idx] >> 32);
isci_orom->ctrl[ctrl_idx].phys[phy_idx].sas_address.low =
(__u32)(sas_addr[ctrl_idx][phy_idx]);
isci_orom->ctrl[ctrl_idx].phys[phy_idx].afe_tx_amp_control0 =
afe_tx_amp_control0;
isci_orom->ctrl[ctrl_idx].phys[phy_idx].afe_tx_amp_control1 =
afe_tx_amp_control1;
isci_orom->ctrl[ctrl_idx].phys[phy_idx].afe_tx_amp_control2 =
afe_tx_amp_control2;
isci_orom->ctrl[ctrl_idx].phys[phy_idx].afe_tx_amp_control3 =
afe_tx_amp_control3;
}
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40121D", "function_addr": 4198941, "binary_name": "1b8a13096bf65f66e4716efc98fa27cf2a8d09cd780374257f0483039d7913e8.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov rax, [rbp+var_18]"], [4, "mov rdi, 424D454F55435349h"], [5, "mov [rax], rdi"], [6, "mov edx, 10h"], [7, "mov rax, [rbp+var_18]"], [8, "mov [rax+0Bh], dl"], [9, "mov rax, [rbp+var_18]"], [10, "mov word ptr [rax+8], 0E8h"], [11, "mov rax, [rbp+var_18]"], [12, "mov byte ptr [rax+0Ah], 18h"], [13, "mov eax, 2"], [14, "mov edx, eax"], [15, "mov rax, [rbp+var_18]"], [16, "mov [rax+0Dh], dl"], [17, "mov [rbp+var_4], 0"], [18, "jmp loc_401546"], [19, "mov eax, 1"], [20, "mov ecx, eax"], [21, "mov rsi, [rbp+var_18]"], [22, "mov eax, [rbp+var_4]"], [23, "movsxd rdx, eax"], [24, "mov rax, rdx"], [25, "add rax, rax"], [26, "add rax, rdx"], [27, "shl rax, 2"], [28, "add rax, rdx"], [29, "shl rax, 3"], [30, "add rax, rsi"], [31, "add rax, 18h"], [32, "mov [rax], cl"], [33, "mov eax, 1"], [34, "mov ecx, eax"], [35, "mov rsi, [rbp+var_18]"], [36, "mov eax, [rbp+var_4]"], [37, "movsxd rdx, eax"], [38, "mov rax, rdx"], [39, "add rax, rax"], [40, "add rax, rdx"], [41, "shl rax, 2"], [42, "add rax, rdx"], [43, "shl rax, 3"], [44, "add rax, rsi"], [45, "add rax, 19h"], [46, "mov [rax], cl"], [47, "mov eax, 0"], [48, "mov ecx, eax"], [49, "mov rsi, [rbp+var_18]"], [50, "mov eax, [rbp+var_4]"], [51, "movsxd rdx, eax"], [52, "mov rax, rdx"], [53, "add rax, rax"], [54, "add rax, rdx"], [55, "shl rax, 2"], [56, "add rax, rdx"], [57, "shl rax, 3"], [58, "add rax, rsi"], [59, "add rax, 1Ah"], [60, "mov [rax], cl"], [61, "mov [rbp+var_C], 0"], [62, "jmp short loc_40133A"], [63, "mov ecx, 0"], [64, "mov rdi, [rbp+var_18]"], [65, "mov eax, [rbp+var_C]"], [66, "movsxd rsi, eax"], [67, "mov eax, [rbp+var_4]"], [68, "movsxd rdx, eax"], [69, "mov rax, rdx"], [70, "add rax, rax"], [71, "add rax, rdx"], [72, "shl rax, 2"], [73, "add rax, rdx"], [74, "shl rax, 3"], [75, "add rax, rdi"], [76, "add rax, rsi"], [77, "add rax, 1Ch"], [78, "mov [rax], cl"], [79, "add [rbp+var_C], 1"], [80, "cmp [rbp+var_C], 3"], [81, "jle short loc_401301"], [82, "mov [rbp+var_8], 0"], [83, "jmp loc_401538"], [84, "mov eax, [rbp+var_8]"], [85, "movsxd rdx, eax"], [86, "mov eax, [rbp+var_4]"], [87, "cdqe"], [88, "shl rax, 2"], [89, "add rax, rdx"], [90, "mov rax, ds:qword_402040[rax*8]"], [91, "shr rax, 20h"], [92, "mov esi, eax"], [93, "mov rdi, [rbp+var_18]"], [94, "mov eax, [rbp+var_8]"], [95, "cdqe"], [96, "mov edx, [rbp+var_4]"], [97, "movsxd rcx, edx"], [98, "mov rdx, rax"], [99, "add rdx, rdx"], [100, "add rdx, rax"], [101, "lea rax, ds:0[rdx*8]"], [102, "mov rdx, rax"], [103, "mov rax, rcx"], [104, "add rax, rax"], [105, "add rax, rcx"], [106, "shl rax, 2"], [107, "add rax, rcx"], [108, "shl rax, 3"], [109, "add rax, rdx"], [110, "add rax, rdi"], [111, "add rax, 10h"], [112, "mov [rax+10h], esi"], [113, "mov eax, [rbp+var_8]"], [114, "movsxd rdx, eax"], [115, "mov eax, [rbp+var_4]"], [116, "cdqe"], [117, "shl rax, 2"], [118, "add rax, rdx"], [119, "mov rax, ds:qword_402040[rax*8]"], [120, "mov esi, eax"], [121, "mov rdi, [rbp+var_18]"], [122, "mov eax, [rbp+var_8]"], [123, "cdqe"], [124, "mov edx, [rbp+var_4]"], [125, "movsxd rcx, edx"], [126, "mov rdx, rax"], [127, "add rdx, rdx"], [128, "add rdx, rax"], [129, "lea rax, ds:0[rdx*8]"], [130, "mov rdx, rax"], [131, "mov rax, rcx"], [132, "add rax, rax"], [133, "add rax, rcx"], [134, "shl rax, 2"], [135, "add rax, rcx"], [136, "shl rax, 3"], [137, "add rax, rdx"], [138, "add rax, rdi"], [139, "add rax, 10h"], [140, "mov [rax+14h], esi"], [141, "mov esi, 0BDD08h"], [142, "mov rdi, [rbp+var_18]"], [143, "mov eax, [rbp+var_8]"], [144, "cdqe"], [145, "mov edx, [rbp+var_4]"], [146, "movsxd rcx, edx"], [147, "mov rdx, rax"], [148, "add rdx, rdx"], [149, "add rdx, rax"], [150, "lea rax, ds:0[rdx*8]"], [151, "mov rdx, rax"], [152, "mov rax, rcx"], [153, "add rax, rax"], [154, "add rax, rcx"], [155, "shl rax, 2"], [156, "add rax, rcx"], [157, "shl rax, 3"], [158, "add rax, rdx"], [159, "add rax, rdi"], [160, "add rax, 10h"], [161, "mov [rax+18h], esi"], [162, "mov esi, 0FFC00h"], [163, "mov rdi, [rbp+var_18]"], [164, "mov eax, [rbp+var_8]"], [165, "cdqe"], [166, "mov edx, [rbp+var_4]"], [167, "movsxd rcx, edx"], [168, "mov rdx, rax"], [169, "add rdx, rdx"], [170, "add rdx, rax"], [171, "lea rax, ds:0[rdx*8]"], [172, "mov rdx, rax"], [173, "mov rax, rcx"], [174, "add rax, rax"], [175, "add rax, rcx"], [176, "shl rax, 2"], [177, "add rax, rcx"], [178, "shl rax, 3"], [179, "add rax, rdx"], [180, "add rax, rdi"], [181, "add rax, 10h"], [182, "mov [rax+1Ch], esi"], [183, "mov esi, 0B7C09h"], [184, "mov rdi, [rbp+var_18]"], [185, "mov eax, [rbp+var_8]"], [186, "cdqe"], [187, "mov edx, [rbp+var_4]"], [188, "movsxd rcx, edx"], [189, "mov rdx, rax"], [190, "add rdx, rdx"], [191, "add rdx, rax"], [192, "lea rax, ds:0[rdx*8]"], [193, "mov rdx, rax"], [194, "mov rax, rcx"], [195, "add rax, rax"], [196, "add rax, rcx"], [197, "shl rax, 2"], [198, "add rax, rcx"], [199, "shl rax, 3"], [200, "add rax, rdx"], [201, "add rax, rdi"], [202, "add rax, 20h "], [203, "mov [rax+10h], esi"], [204, "mov esi, 0AFC6Eh"], [205, "mov rdi, [rbp+var_18]"], [206, "mov eax, [rbp+var_8]"], [207, "cdqe"], [208, "mov edx, [rbp+var_4]"], [209, "movsxd rcx, edx"], [210, "mov rdx, rax"], [211, "add rdx, rdx"], [212, "add rdx, rax"], [213, "lea rax, ds:0[rdx*8]"], [214, "mov rdx, rax"], [215, "mov rax, rcx"], [216, "add rax, rax"], [217, "add rax, rcx"], [218, "shl rax, 2"], [219, "add rax, rcx"], [220, "shl rax, 3"], [221, "add rax, rdx"], [222, "add rax, rdi"], [223, "add rax, 20h "], [224, "mov [rax+14h], esi"], [225, "add [rbp+var_8], 1"], [226, "cmp [rbp+var_8], 3"], [227, "jle loc_40134C"], [228, "add [rbp+var_4], 1"], [229, "cmp [rbp+var_4], 1"], [230, "jle loc_40126E"], [231, "nop"], [232, "nop"], [233, "pop rbp"], [234, "retn"]], "data_dep": [[3, 2], [5, 3], [5, 4], [7, 2], [8, 6], [8, 7], [9, 2], [10, 9], [11, 2], [12, 11], [14, 13], [15, 2], [16, 15], [16, 14], [20, 19], [21, 2], [22, 17], [22, 228], [23, 22], [24, 23], [25, 24], [26, 23], [26, 25], [27, 26], [28, 23], [28, 27], [29, 28], [30, 29], [30, 21], [31, 30], [32, 20], [32, 31], [34, 33], [35, 2], [36, 228], [36, 17], [37, 36], [38, 37], [39, 38], [40, 37], [40, 39], [41, 40], [42, 41], [42, 37], [43, 42], [44, 35], [44, 43], [45, 44], [46, 34], [46, 45], [48, 47], [49, 2], [50, 228], [50, 17], [51, 50], [52, 51], [53, 52], [54, 51], [54, 53], [55, 54], [56, 55], [56, 51], [57, 56], [58, 49], [58, 57], [59, 58], [60, 48], [60, 59], [64, 2], [65, 61], [65, 79], [66, 65], [67, 228], [67, 17], [68, 67], [69, 68], [70, 69], [71, 68], [71, 70], [72, 71], [73, 68], [73, 72], [74, 73], [75, 74], [75, 64], [76, 66], [76, 75], [77, 76], [78, 77], [78, 63], [79, 61], [79, 79], [80, 61], [80, 79], [81, 80], [84, 225], [84, 82], [85, 84], [86, 17], [86, 228], [88, 86], [89, 88], [89, 85], [91, 90], [92, 91], [93, 2], [94, 82], [94, 225], [96, 17], [96, 228], [97, 96], [98, 94], [99, 98], [100, 94], [100, 99], [101, 94], [102, 101], [103, 97], [104, 103], [105, 104], [105, 97], [106, 105], [107, 97], [107, 106], [108, 107], [109, 108], [109, 102], [110, 93], [110, 109], [111, 110], [112, 111], [112, 92], [113, 82], [113, 225], [114, 113], [115, 228], [115, 17], [117, 115], [118, 117], [118, 114], [120, 119], [121, 2], [122, 82], [122, 225], [124, 228], [124, 17], [125, 124], [126, 122], [127, 126], [128, 127], [128, 122], [129, 122], [130, 129], [131, 125], [132, 131], [133, 132], [133, 125], [134, 133], [135, 125], [135, 134], [136, 135], [137, 130], [137, 136], [138, 137], [138, 121], [139, 138], [140, 139], [140, 120], [142, 2], [143, 82], [143, 225], [145, 228], [145, 17], [146, 145], [147, 143], [148, 147], [149, 148], [149, 143], [150, 143], [151, 150], [152, 146], [153, 152], [154, 153], [154, 146], [155, 154], [156, 146], [156, 155], [157, 156], [158, 151], [158, 157], [159, 142], [159, 158], [160, 159], [161, 141], [161, 160], [163, 2], [164, 82], [164, 225], [166, 228], [166, 17], [167, 166], [168, 164], [169, 168], [170, 169], [170, 164], [171, 164], [172, 171], [173, 167], [174, 173], [175, 174], [175, 167], [176, 175], [177, 167], [177, 176], [178, 177], [179, 172], [179, 178], [180, 179], [180, 163], [181, 180], [182, 181], [182, 162], [184, 2], [185, 82], [185, 225], [187, 228], [187, 17], [188, 187], [189, 185], [190, 189], [191, 190], [191, 185], [192, 185], [193, 192], [194, 188], [195, 194], [196, 188], [196, 195], [197, 196], [198, 188], [198, 197], [199, 198], [200, 199], [200, 193], [201, 200], [201, 184], [202, 201], [203, 202], [203, 183], [205, 2], [206, 82], [206, 225], [208, 228], [208, 17], [209, 208], [210, 206], [211, 210], [212, 211], [212, 206], [213, 206], [214, 213], [215, 209], [216, 215], [217, 216], [217, 209], [218, 217], [219, 209], [219, 218], [220, 219], [221, 214], [221, 220], [222, 221], [222, 205], [223, 222], [224, 204], [224, 223], [225, 82], [225, 225], [226, 225], [226, 82], [227, 226], [228, 228], [228, 17], [229, 228], [229, 17], [230, 229], [233, 0], [234, 59], [234, 77], [234, 223], [234, 15]]}
|
void grep_source_init(struct grep_source *gs, enum grep_source_type type,
const char *name, const char *path,
const void *identifier)
{
gs->type = type;
gs->name = name ? xstrdup(name) : NULL;
gs->path = path ? xstrdup(path) : NULL;
gs->buf = NULL;
gs->size = 0;
gs->driver = NULL;
switch (type) {
case GREP_SOURCE_FILE:
gs->identifier = xstrdup(identifier);
break;
case GREP_SOURCE_SHA1:
gs->identifier = xmalloc(20);
memcpy(gs->identifier, identifier, 20);
break;
case GREP_SOURCE_BUF:
gs->identifier = NULL;
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_488ED9", "function_addr": 4755161, "binary_name": "3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_C], esi"], [5, "mov [rbp+var_18], rdx"], [6, "mov [rbp+var_20], rcx"], [7, "mov [rbp+src], r8"], [8, "mov rax, [rbp+var_8]"], [9, "mov edx, [rbp+var_C]"], [10, "mov [rax+8], edx"], [11, "cmp [rbp+var_18], 0"], [12, "jz short loc_488F13"], [13, "mov rax, [rbp+var_18]"], [14, "mov rdi, rax"], [15, "call sub_43534E"], [16, "jmp short loc_488F18"], [17, "mov eax, 0"], [18, "mov rdx, [rbp+var_8]"], [19, "mov [rdx], rax"], [20, "cmp [rbp+var_20], 0"], [21, "jz short loc_488F34"], [22, "mov rax, [rbp+var_20]"], [23, "mov rdi, rax"], [24, "call sub_43534E"], [25, "jmp short loc_488F39"], [26, "mov eax, 0"], [27, "mov rdx, [rbp+var_8]"], [28, "mov [rdx+28h], rax"], [29, "mov rax, [rbp+var_8]"], [30, "mov qword ptr [rax+18h], 0"], [31, "mov rax, [rbp+var_8]"], [32, "mov qword ptr [rax+20h], 0"], [33, "mov rax, [rbp+var_8]"], [34, "mov qword ptr [rax+30h], 0"], [35, "cmp [rbp+var_C], 2"], [36, "jz short loc_488FC3"], [37, "cmp [rbp+var_C], 2"], [38, "ja short loc_488FD1"], [39, "cmp [rbp+var_C], 0"], [40, "jz short loc_488F93"], [41, "cmp [rbp+var_C], 1"], [42, "jnz short loc_488FD1"], [43, "mov rax, [rbp+src]"], [44, "mov rdi, rax"], [45, "call sub_43534E"], [46, "mov rdx, [rbp+var_8]"], [47, "mov [rdx+10h], rax"], [48, "jmp short loc_488FD1"], [49, "mov edi, 14h"], [50, "call sub_4353BE"], [51, "mov rdx, [rbp+var_8]"], [52, "mov [rdx+10h], rax"], [53, "mov rax, [rbp+var_8]"], [54, "mov rax, [rax+10h]"], [55, "mov rcx, [rbp+src]"], [56, "mov edx, 14h"], [57, "mov rsi, rcx"], [58, "mov rdi, rax"], [59, "call _memcpy"], [60, "jmp short loc_488FD1"], [61, "mov rax, [rbp+var_8]"], [62, "mov qword ptr [rax+10h], 0"], [63, "jmp short $+2"], [64, "nop"], [65, "leave"], [66, "retn"]], "data_dep": [[8, 3], [9, 4], [10, 9], [10, 8], [11, 5], [12, 11], [13, 5], [14, 13], [18, 3], [19, 18], [19, 15], [19, 17], [20, 6], [21, 20], [22, 6], [23, 22], [27, 3], [28, 24], [28, 27], [28, 26], [29, 3], [30, 29], [31, 3], [32, 31], [33, 3], [34, 33], [35, 4], [36, 35], [37, 4], [38, 37], [39, 4], [40, 39], [41, 4], [42, 41], [43, 7], [44, 43], [46, 3], [47, 46], [47, 45], [51, 3], [52, 51], [52, 50], [53, 3], [54, 52], [54, 53], [55, 7], [57, 55], [58, 54], [61, 3], [62, 61], [66, 33], [66, 45], [66, 59], [66, 61]]}
|
void krk_growStack(void) {
size_t old = krk_currentThread.stackSize;
size_t old_offset = krk_currentThread.stackTop - krk_currentThread.stack;
krk_currentThread.stackSize = GROW_CAPACITY(old);
krk_currentThread.stack = GROW_ARRAY(KrkValue, krk_currentThread.stack, old, krk_currentThread.stackSize);
krk_currentThread.stackTop = krk_currentThread.stack + old_offset;
krk_currentThread.stackMax = krk_currentThread.stack + krk_currentThread.stackSize;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45F46A", "function_addr": 4584554, "binary_name": "b96d14afe5a309f3d2768451909eadc66db3a51f9332c796791f24616961688b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov rax, cs:qword_488498"], [4, "mov [rbp+var_8], rax"], [5, "mov rax, cs:qword_4884A8"], [6, "mov rdx, cs:qword_4884A0"], [7, "sub rax, rdx"], [8, "sar rax, 3"], [9, "mov [rbp+var_10], rax"], [10, "cmp [rbp+var_8], 7"], [11, "jbe short loc_45F4A6"], [12, "mov rax, [rbp+var_8]"], [13, "add rax, rax"], [14, "jmp short loc_45F4AB"], [15, "mov eax, 8"], [16, "mov cs:qword_488498, rax"], [17, "mov rax, cs:qword_488498"], [18, "lea rdx, ds:0[rax*8]"], [19, "mov rax, [rbp+var_8]"], [20, "lea rcx, ds:0[rax*8]"], [21, "mov rax, cs:qword_4884A0"], [22, "mov rsi, rcx"], [23, "mov rdi, rax"], [24, "call sub_42A5F0"], [25, "mov cs:qword_4884A0, rax"], [26, "mov rdx, cs:qword_4884A0"], [27, "mov rax, [rbp+var_10]"], [28, "shl rax, 3"], [29, "add rax, rdx"], [30, "mov cs:qword_4884A8, rax"], [31, "mov rdx, cs:qword_4884A0"], [32, "mov rax, cs:qword_488498"], [33, "shl rax, 3"], [34, "add rax, rdx"], [35, "mov cs:qword_4884D8, rax"], [36, "nop"], [37, "leave"], [38, "retn"]], "data_dep": [[4, 3], [7, 6], [7, 5], [8, 7], [9, 8], [10, 4], [11, 10], [12, 4], [13, 12], [16, 13], [16, 15], [17, 16], [18, 6], [19, 4], [22, 20], [23, 21], [25, 24], [26, 25], [27, 9], [28, 27], [29, 26], [29, 28], [30, 29], [31, 25], [32, 16], [33, 32], [34, 31], [34, 33], [35, 34], [38, 34]]}
|
int timerC(NTIMER *mytimer1){
clock_t difference = 0;
long res;
if (mytimer1->ticks == 0){
//First tick, set up values
mytimer1->oldtime = clock();
mytimer1->ticks = 1;
return 1;
} else{
//subsequent ticks
difference = clock() - mytimer1->oldtime;
res = difference * 1000 / CLOCKS_PER_SEC;
if (res < mytimer1->ms) {
return 0;
} else{
mytimer1->oldtime = clock();
mytimer1->ticks = mytimer1->ticks + 1;
return 1;
}
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40A8B5", "function_addr": 4237493, "binary_name": "d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_8], 0"], [5, "mov rax, [rbp+var_18]"], [6, "mov rax, [rax+10h]"], [7, "test rax, rax"], [8, "jnz short loc_40A8F6"], [9, "call _clock"], [10, "mov rdx, [rbp+var_18]"], [11, "mov [rdx+8], rax"], [12, "mov rax, [rbp+var_18]"], [13, "mov qword ptr [rax+10h], 1"], [14, "mov eax, 1"], [15, "jmp short locret_40A96E"], [16, "call _clock"], [17, "mov rdx, [rbp+var_18]"], [18, "mov rdx, [rdx+8]"], [19, "sub rax, rdx"], [20, "mov [rbp+var_8], rax"], [21, "mov rcx, [rbp+var_8]"], [22, "mov rdx, 20C49BA5E353F7CFh"], [23, "mov rax, rcx"], [24, "imul rdx"], [25, "mov rax, rdx"], [26, "sar rax, 7"], [27, "sar rcx, 3Fh"], [28, "mov rdx, rcx"], [29, "sub rax, rdx"], [30, "mov [rbp+var_10], rax"], [31, "mov rax, [rbp+var_18]"], [32, "mov eax, [rax]"], [33, "cdqe"], [34, "cmp [rbp+var_10], rax"], [35, "jge short loc_40A948"], [36, "mov eax, 0"], [37, "jmp short locret_40A96E"], [38, "call _clock"], [39, "mov rdx, [rbp+var_18]"], [40, "mov [rdx+8], rax"], [41, "mov rax, [rbp+var_18]"], [42, "mov rax, [rax+10h]"], [43, "lea rdx, [rax+1]"], [44, "mov rax, [rbp+var_18]"], [45, "mov [rax+10h], rdx"], [46, "mov eax, 1"], [47, "leave"], [48, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 7], [10, 3], [11, 10], [11, 9], [12, 3], [13, 12], [17, 3], [18, 17], [19, 18], [19, 16], [20, 19], [21, 20], [23, 21], [24, 22], [25, 24], [26, 25], [27, 21], [28, 27], [29, 26], [29, 28], [30, 29], [31, 3], [32, 31], [34, 30], [34, 32], [35, 34], [39, 3], [40, 38], [40, 39], [41, 3], [42, 41], [42, 40], [43, 40], [43, 39], [43, 42], [44, 3], [45, 43], [45, 44], [48, 36], [48, 14], [48, 46]]}
|
static void print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
STACK_OF(OPENSSL_STRING) *names,
STACK_OF(OCSP_CERTID) *ids, long nsec,
long maxage)
{
OCSP_CERTID *id;
const char *name;
int i, status, reason;
ASN1_GENERALIZEDTIME *rev, *thisupd, *nextupd;
if (!bs || !req || !sk_OPENSSL_STRING_num(names)
|| !sk_OCSP_CERTID_num(ids))
return;
for (i = 0; i < sk_OCSP_CERTID_num(ids); i++) {
id = sk_OCSP_CERTID_value(ids, i);
name = sk_OPENSSL_STRING_value(names, i);
BIO_printf(out, "%s: ", name);
if (!OCSP_resp_find_status(bs, id, &status, &reason,
&rev, &thisupd, &nextupd)) {
BIO_puts(out, "ERROR: No Status found.\n");
continue;
}
/*
* Check validity: if invalid write to output BIO so we know which
* response this refers to.
*/
if (!OCSP_check_validity(thisupd, nextupd, nsec, maxage)) {
BIO_puts(out, "WARNING: Status times invalid.\n");
ERR_print_errors(out);
}
BIO_printf(out, "%s\n", OCSP_cert_status_str(status));
BIO_puts(out, "\tThis Update: ");
ASN1_GENERALIZEDTIME_print(out, thisupd);
BIO_puts(out, "\n");
if (nextupd) {
BIO_puts(out, "\tNext Update: ");
ASN1_GENERALIZEDTIME_print(out, nextupd);
BIO_puts(out, "\n");
}
if (status != V_OCSP_CERTSTATUS_REVOKED)
continue;
if (reason != -1)
BIO_printf(out, "\tReason: %s\n", OCSP_crl_reason_str(reason));
BIO_puts(out, "\tRevocation Time: ");
ASN1_GENERALIZEDTIME_print(out, rev);
BIO_puts(out, "\n");
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_437AA5", "function_addr": 4422309, "binary_name": "11d51f39d967e6c925cbbbf561559e32fec33ac3b7a84b8e1e75a62d16d81f0a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 70h"], [3, "mov [rbp+var_48], rdi"], [4, "mov [rbp+var_50], rsi"], [5, "mov [rbp+var_58], rdx"], [6, "mov [rbp+var_60], rcx"], [7, "mov [rbp+var_68], r8"], [8, "mov [rbp+var_70], r9"], [9, "cmp [rbp+var_50], 0"], [10, "jz loc_437CF5"], [11, "cmp [rbp+var_58], 0"], [12, "jz loc_437CF5"], [13, "mov rax, [rbp+var_60]"], [14, "mov rdi, rax"], [15, "call sub_435DC5"], [16, "test eax, eax"], [17, "jz loc_437CF5"], [18, "mov rax, [rbp+var_68]"], [19, "mov rdi, rax"], [20, "call sub_435F04"], [21, "test eax, eax"], [22, "jz loc_437CF5"], [23, "mov [rbp+var_4], 0"], [24, "jmp loc_437CDE"], [25, "mov edx, [rbp+var_4]"], [26, "mov rax, [rbp+var_68]"], [27, "mov esi, edx"], [28, "mov rdi, rax"], [29, "call sub_435F1E"], [30, "mov [rbp+var_10], rax"], [31, "mov edx, [rbp+var_4]"], [32, "mov rax, [rbp+var_60]"], [33, "mov esi, edx"], [34, "mov rdi, rax"], [35, "call sub_435DDF"], [36, "mov [rbp+var_18], rax"], [37, "mov rdx, [rbp+var_18]"], [38, "mov rax, [rbp+var_48]"], [39, "mov esi, offset aS_7"], [40, "mov rdi, rax"], [41, "mov eax, 0"], [42, "call _BIO_printf"], [43, "lea r9, [rbp+var_30]"], [44, "lea r8, [rbp+var_28]"], [45, "lea rcx, [rbp+var_20]"], [46, "lea rdx, [rbp+var_1C]"], [47, "mov rsi, [rbp+var_10]"], [48, "mov rax, [rbp+var_50]"], [49, "sub rsp, 8"], [50, "lea rdi, [rbp+var_38]"], [51, "push rdi"], [52, "mov rdi, rax"], [53, "call _OCSP_resp_find_status"], [54, "add rsp, 10h"], [55, "test eax, eax"], [56, "jnz short loc_437B9A"], [57, "mov rax, [rbp+var_48]"], [58, "mov esi, offset aErrorNoStatusF"], [59, "mov rdi, rax"], [60, "call _BIO_puts"], [61, "jmp loc_437CDA"], [62, "mov rsi, [rbp+var_38]"], [63, "mov rax, [rbp+var_30]"], [64, "mov rdx, [rbp+var_70]"], [65, "mov rcx, [rbp+arg_0]"], [66, "mov rdi, rax"], [67, "call _OCSP_check_validity"], [68, "test eax, eax"], [69, "jnz short loc_437BD3"], [70, "mov rax, [rbp+var_48]"], [71, "mov esi, offset aWarningStatusT"], [72, "mov rdi, rax"], [73, "call _BIO_puts"], [74, "mov rax, [rbp+var_48]"], [75, "mov rdi, rax"], [76, "call _ERR_print_errors"], [77, "mov eax, [rbp+var_1C]"], [78, "cdqe"], [79, "mov rdi, rax"], [80, "call _OCSP_cert_status_str"], [81, "mov rdx, rax"], [82, "mov rax, [rbp+var_48]"], [83, "mov esi, offset aS_8"], [84, "mov rdi, rax"], [85, "mov eax, 0"], [86, "call _BIO_printf"], [87, "mov rax, [rbp+var_48]"], [88, "mov esi, offset aThisUpdate"], [89, "mov rdi, rax"], [90, "call _BIO_puts"], [91, "mov rdx, [rbp+var_30]"], [92, "mov rax, [rbp+var_48]"], [93, "mov rsi, rdx"], [94, "mov rdi, rax"], [95, "call _ASN1_GENERALIZEDTIME_print"], [96, "mov rax, [rbp+var_48]"], [97, "mov esi, offset asc_4749CB"], [98, "mov rdi, rax"], [99, "call _BIO_puts"], [100, "mov rax, [rbp+var_38]"], [101, "test rax, rax"], [102, "jz short loc_437C6C"], [103, "mov rax, [rbp+var_48]"], [104, "mov esi, offset aNextUpdate"], [105, "mov rdi, rax"], [106, "call _BIO_puts"], [107, "mov rdx, [rbp+var_38]"], [108, "mov rax, [rbp+var_48]"], [109, "mov rsi, rdx"], [110, "mov rdi, rax"], [111, "call _ASN1_GENERALIZEDTIME_print"], [112, "mov rax, [rbp+var_48]"], [113, "mov esi, offset asc_4749CB"], [114, "mov rdi, rax"], [115, "call _BIO_puts"], [116, "mov eax, [rbp+var_1C]"], [117, "cmp eax, 1"], [118, "jnz short loc_437CD9"], [119, "mov eax, [rbp+var_20]"], [120, "cmp eax, 0FFFFFFFFh"], [121, "jz short loc_437CA2"], [122, "mov eax, [rbp+var_20]"], [123, "cdqe"], [124, "mov rdi, rax"], [125, "call _OCSP_crl_reason_str"], [126, "mov rdx, rax"], [127, "mov rax, [rbp+var_48]"], [128, "mov esi, offset aReasonS"], [129, "mov rdi, rax"], [130, "mov eax, 0"], [131, "call _BIO_printf"], [132, "mov rax, [rbp+var_48]"], [133, "mov esi, offset aRevocationTime"], [134, "mov rdi, rax"], [135, "call _BIO_puts"], [136, "mov rdx, [rbp+var_28]"], [137, "mov rax, [rbp+var_48]"], [138, "mov rsi, rdx"], [139, "mov rdi, rax"], [140, "call _ASN1_GENERALIZEDTIME_print"], [141, "mov rax, [rbp+var_48]"], [142, "mov esi, offset asc_4749CB"], [143, "mov rdi, rax"], [144, "call _BIO_puts"], [145, "jmp short loc_437CDA"], [146, "nop"], [147, "add [rbp+var_4], 1"], [148, "mov rax, [rbp+var_68]"], [149, "mov rdi, rax"], [150, "call sub_435F04"], [151, "cmp [rbp+var_4], eax"], [152, "jl loc_437B0F"], [153, "jmp short locret_437CF6"], [154, "nop"], [155, "leave"], [156, "retn"]], "data_dep": [[9, 4], [10, 9], [11, 5], [12, 11], [13, 6], [14, 13], [16, 15], [17, 16], [18, 7], [19, 18], [21, 20], [22, 21], [25, 23], [25, 147], [26, 7], [27, 25], [28, 26], [30, 29], [31, 147], [31, 23], [32, 6], [33, 31], [34, 32], [36, 35], [37, 36], [38, 3], [40, 38], [43, 43], [44, 44], [45, 65], [45, 45], [46, 37], [47, 30], [48, 4], [49, 2], [49, 54], [50, 40], [51, 50], [52, 48], [54, 49], [55, 53], [56, 55], [57, 3], [59, 57], [64, 8], [66, 63], [68, 67], [69, 68], [70, 3], [72, 70], [74, 3], [75, 74], [79, 77], [81, 80], [82, 3], [84, 82], [87, 3], [89, 87], [92, 3], [93, 91], [94, 92], [96, 3], [98, 96], [101, 100], [102, 101], [103, 3], [105, 103], [108, 3], [109, 107], [110, 108], [112, 3], [114, 112], [117, 116], [118, 117], [120, 119], [121, 120], [124, 122], [126, 125], [127, 3], [129, 127], [132, 3], [134, 132], [137, 3], [138, 136], [139, 137], [141, 3], [143, 141], [147, 23], [147, 147], [148, 7], [149, 148], [151, 150], [151, 147], [151, 23], [152, 151], [156, 21], [156, 16], [156, 150]]}
|
void lv_disp_set_theme(lv_disp_t * disp, lv_theme_t * th)
{
if(!disp) disp = lv_disp_get_default();
if(!disp) {
LV_LOG_WARN("no display registered");
return;
}
disp->theme = th;
if(disp->screen_cnt == 3 &&
lv_obj_get_child_cnt(disp->screens[0]) == 0 &&
lv_obj_get_child_cnt(disp->screens[1]) == 0 &&
lv_obj_get_child_cnt(disp->screens[2]) == 0) {
lv_theme_apply(disp->screens[0]);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413A62", "function_addr": 4274786, "binary_name": "53faff7486da2db257c0486a573e49eb3e70656a42b3e2ad40ce428af0925783.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "cmp [rbp+var_8], 0"], [6, "jnz short loc_413A82"], [7, "call sub_467A09"], [8, "mov [rbp+var_8], rax"], [9, "cmp [rbp+var_8], 0"], [10, "jz short loc_413B03"], [11, "mov rax, [rbp+var_8]"], [12, "mov rdx, [rbp+var_10]"], [13, "mov [rax+10h], rdx"], [14, "mov rax, [rbp+var_8]"], [15, "mov eax, [rax+48h]"], [16, "cmp eax, 3"], [17, "jnz short locret_413B04"], [18, "mov rax, [rbp+var_8]"], [19, "mov rax, [rax+18h]"], [20, "mov rax, [rax]"], [21, "mov rdi, rax"], [22, "call sub_4285BE"], [23, "test eax, eax"], [24, "jnz short locret_413B04"], [25, "mov rax, [rbp+var_8]"], [26, "mov rax, [rax+18h]"], [27, "add rax, 8"], [28, "mov rax, [rax]"], [29, "mov rdi, rax"], [30, "call sub_4285BE"], [31, "test eax, eax"], [32, "jnz short locret_413B04"], [33, "mov rax, [rbp+var_8]"], [34, "mov rax, [rax+18h]"], [35, "add rax, 10h"], [36, "mov rax, [rax]"], [37, "mov rdi, rax"], [38, "call sub_4285BE"], [39, "test eax, eax"], [40, "jnz short locret_413B04"], [41, "mov rax, [rbp+var_8]"], [42, "mov rax, [rax+18h]"], [43, "mov rax, [rax]"], [44, "mov rdi, rax"], [45, "call sub_42C2ED"], [46, "jmp short locret_413B04"], [47, "nop"], [48, "leave"], [49, "retn"]], "data_dep": [[5, 3], [6, 5], [8, 7], [9, 8], [9, 3], [10, 9], [11, 8], [11, 3], [12, 4], [13, 11], [13, 12], [14, 3], [14, 8], [15, 14], [15, 13], [16, 15], [17, 16], [18, 3], [18, 8], [19, 18], [19, 13], [20, 13], [20, 19], [21, 20], [23, 22], [24, 23], [25, 3], [25, 8], [26, 13], [26, 25], [27, 26], [28, 27], [28, 13], [29, 28], [31, 30], [32, 31], [33, 8], [33, 3], [34, 13], [34, 33], [35, 34], [36, 13], [36, 35], [37, 36], [39, 38], [40, 39], [41, 3], [41, 8], [42, 41], [42, 13], [43, 42], [43, 13], [44, 43], [49, 23], [49, 7], [49, 31], [49, 15], [49, 39], [49, 45]]}
|
static int HT_Compare (const void* Key1, const void* Key2)
/* Compare two keys. The function must return a value less than zero if
** Key1 is smaller than Key2, zero if both are equal, and a value greater
** than zero if Key1 is greater then Key2.
*/
{
/* Convert both parameters to FileInfoKey pointers */
const LineInfoKey* K1 = Key1;
const LineInfoKey* K2 = Key2;
/* Compare line number, then file and type */
int Res = (int)K2->Pos.Line - (int)K1->Pos.Line;
if (Res == 0) {
Res = (int)K2->Pos.Name - (int)K1->Pos.Name;
if (Res == 0) {
Res = (int)K2->Type - (int)K1->Type;
}
}
/* Done */
return Res;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40849F", "function_addr": 4228255, "binary_name": "aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_28], rdi"], [3, "mov [rbp+var_30], rsi"], [4, "mov rax, [rbp+var_28]"], [5, "mov [rbp+var_10], rax"], [6, "mov rax, [rbp+var_30]"], [7, "mov [rbp+var_18], rax"], [8, "mov rax, [rbp+var_18]"], [9, "mov eax, [rax]"], [10, "mov edx, eax"], [11, "mov rax, [rbp+var_10]"], [12, "mov eax, [rax]"], [13, "mov ecx, eax"], [14, "mov eax, edx"], [15, "sub eax, ecx"], [16, "mov [rbp+var_4], eax"], [17, "cmp [rbp+var_4], 0"], [18, "jnz short loc_408510"], [19, "mov rax, [rbp+var_18]"], [20, "mov eax, [rax+8]"], [21, "mov edx, eax"], [22, "mov rax, [rbp+var_10]"], [23, "mov eax, [rax+8]"], [24, "mov ecx, eax"], [25, "mov eax, edx"], [26, "sub eax, ecx"], [27, "mov [rbp+var_4], eax"], [28, "cmp [rbp+var_4], 0"], [29, "jnz short loc_408510"], [30, "mov rax, [rbp+var_18]"], [31, "mov eax, [rax+0Ch]"], [32, "mov edx, eax"], [33, "mov rax, [rbp+var_10]"], [34, "mov eax, [rax+0Ch]"], [35, "mov ecx, eax"], [36, "mov eax, edx"], [37, "sub eax, ecx"], [38, "mov [rbp+var_4], eax"], [39, "mov eax, [rbp+var_4]"], [40, "pop rbp"], [41, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 3], [7, 6], [8, 7], [9, 8], [10, 9], [11, 5], [12, 11], [13, 12], [14, 10], [15, 14], [15, 13], [16, 15], [17, 16], [18, 17], [19, 7], [20, 19], [21, 20], [22, 5], [23, 22], [24, 23], [25, 21], [26, 24], [26, 25], [27, 26], [28, 27], [29, 28], [30, 7], [31, 30], [32, 31], [33, 5], [34, 33], [35, 34], [36, 32], [37, 36], [37, 35], [38, 37], [39, 27], [39, 38], [39, 16], [40, 0], [41, 39]]}
|
void lodepng_compress_settings_init(LodePNGCompressSettings* settings) {
/*compress with dynamic huffman tree (not in the mathematical sense, just not the predefined one)*/
settings->btype = 2;
settings->use_lz77 = 1;
settings->windowsize = DEFAULT_WINDOWSIZE;
settings->minmatch = 3;
settings->nicematch = 128;
settings->lazymatching = 1;
settings->custom_zlib = 0;
settings->custom_deflate = 0;
settings->custom_context = 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407503", "function_addr": 4224259, "binary_name": "d023f3875f5955e9b385841f3271df143d3799e25ee4d6b02e0c5e40f1d519c2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov rax, [rbp+var_8]"], [4, "mov dword ptr [rax], 2"], [5, "mov rax, [rbp+var_8]"], [6, "mov dword ptr [rax+4], 1"], [7, "mov rax, [rbp+var_8]"], [8, "mov dword ptr [rax+8], 800h"], [9, "mov rax, [rbp+var_8]"], [10, "mov dword ptr [rax+0Ch], 3"], [11, "mov rax, [rbp+var_8]"], [12, "mov dword ptr [rax+10h], 80h"], [13, "mov rax, [rbp+var_8]"], [14, "mov dword ptr [rax+14h], 1"], [15, "mov rax, [rbp+var_8]"], [16, "mov qword ptr [rax+18h], 0"], [17, "mov rax, [rbp+var_8]"], [18, "mov qword ptr [rax+20h], 0"], [19, "mov rax, [rbp+var_8]"], [20, "mov qword ptr [rax+28h], 0"], [21, "nop"], [22, "pop rbp"], [23, "retn"]], "data_dep": [[3, 2], [4, 3], [5, 2], [6, 5], [7, 2], [8, 7], [9, 2], [10, 9], [11, 2], [12, 11], [13, 2], [14, 13], [15, 2], [16, 15], [17, 2], [18, 17], [19, 2], [20, 19], [22, 0], [23, 19]]}
|
UG_S16 UG_WindowGetYStart( UG_WINDOW* wnd )
{
UG_S16 ys = -1;
if ( (wnd != NULL) && (wnd->state & WND_STATE_VALID) )
{
ys = wnd->ys;
}
return ys;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406458", "function_addr": 4219992, "binary_name": "3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_2], 0FFFFh"], [4, "cmp [rbp+var_18], 0"], [5, "jz short loc_40648B"], [6, "mov rax, [rbp+var_18]"], [7, "movzx eax, byte ptr [rax+10h]"], [8, "movzx eax, al"], [9, "and eax, 2"], [10, "test eax, eax"], [11, "jz short loc_40648B"], [12, "mov rax, [rbp+var_18]"], [13, "movzx eax, word ptr [rax+1Eh]"], [14, "mov [rbp+var_2], ax"], [15, "movzx eax, [rbp+var_2]"], [16, "pop rbp"], [17, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 2], [13, 12], [14, 13], [15, 14], [15, 3], [16, 0], [17, 15]]}
|
bool_t
xdr_qcsapi_get_phy_stats_rpcdata (XDR *xdrs, qcsapi_get_phy_stats_rpcdata *objp)
{
register int32_t *buf;
if (!xdr_pointer (xdrs, (char **)&objp->ifname, sizeof (__rpc_string), (xdrproc_t) xdr___rpc_string))
return FALSE;
if (!xdr_pointer (xdrs, (char **)&objp->stats, sizeof (__rpc_qcsapi_phy_stats), (xdrproc_t) xdr___rpc_qcsapi_phy_stats))
return FALSE;
if (!xdr_int (xdrs, &objp->return_code))
return FALSE;
return TRUE;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_444F19", "function_addr": 4476697, "binary_name": "501cccf918b79847e8ca63bec31f6c1a738c67ece900875150908962c3feed30.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+xdrs], rdi"], [4, "mov [rbp+objpp], rsi"], [5, "mov rsi, [rbp+objpp]"], [6, "mov rax, [rbp+xdrs]"], [7, "mov rdx, offset xdr_obj"], [8, "mov rcx, rdx"], [9, "mov edx, 8"], [10, "mov rdi, rax"], [11, "call _xdr_pointer"], [12, "test eax, eax"], [13, "jnz short loc_444F53"], [14, "mov eax, 0"], [15, "jmp short locret_444FA8"], [16, "mov rax, [rbp+objpp]"], [17, "lea rsi, [rax+8]"], [18, "mov rax, [rbp+xdrs]"], [19, "mov rdx, offset sub_431D7D"], [20, "mov rcx, rdx"], [21, "mov edx, 80h"], [22, "mov rdi, rax"], [23, "call _xdr_pointer"], [24, "test eax, eax"], [25, "jnz short loc_444F81"], [26, "mov eax, 0"], [27, "jmp short locret_444FA8"], [28, "mov rax, [rbp+objpp]"], [29, "lea rdx, [rax+10h]"], [30, "mov rax, [rbp+xdrs]"], [31, "mov rsi, rdx"], [32, "mov rdi, rax"], [33, "call xdr_int"], [34, "test eax, eax"], [35, "jnz short loc_444FA3"], [36, "mov eax, 0"], [37, "jmp short locret_444FA8"], [38, "mov eax, 1"], [39, "leave"], [40, "retn"]], "data_dep": [[5, 4], [6, 3], [8, 7], [10, 6], [12, 11], [13, 12], [16, 4], [17, 5], [17, 16], [18, 3], [20, 19], [22, 18], [24, 23], [25, 24], [28, 4], [29, 28], [29, 21], [30, 3], [31, 29], [32, 30], [34, 33], [35, 34], [40, 14], [40, 26], [40, 38], [40, 36]]}
|
void u8g_pbxh24_Set4TPixel(u8g_pb_t *b, u8g_dev_arg_pixel_t *arg_pixel)
{
register uint8_t pixel = arg_pixel->pixel;
u8g_uint_t dx = 0;
u8g_uint_t dy = 0;
switch( arg_pixel->dir )
{
case 0: dx++; break;
case 1: dy++; break;
case 2: dx--; break;
case 3: dy--; break;
}
do
{
u8g_pbxh24_SetTPixel(b, arg_pixel, pixel >> 6);
arg_pixel->x += dx;
arg_pixel->y += dy;
pixel <<= 2;
} while( pixel != 0 );
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_413009", "function_addr": 4272137, "binary_name": "afbc915f426c094251076b359394b2f319370d1b13f49ecddb3e0e7ac8910e84.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 20h"], [4, "mov [rbp+var_20], rdi"], [5, "mov [rbp+var_28], rsi"], [6, "mov rax, [rbp+var_28]"], [7, "movzx ebx, byte ptr [rax+4]"], [8, "mov [rbp+var_A], 0"], [9, "mov [rbp+var_C], 0"], [10, "mov rax, [rbp+var_28]"], [11, "movzx eax, byte ptr [rax+5]"], [12, "movzx eax, al"], [13, "cmp eax, 3"], [14, "jz short loc_41307F"], [15, "cmp eax, 3"], [16, "jg short loc_41308E"], [17, "cmp eax, 2"], [18, "jz short loc_413072"], [19, "cmp eax, 2"], [20, "jg short loc_41308E"], [21, "test eax, eax"], [22, "jz short loc_413058"], [23, "cmp eax, 1"], [24, "jz short loc_413065"], [25, "jmp short loc_41308E"], [26, "movzx eax, [rbp+var_A]"], [27, "add eax, 1"], [28, "mov [rbp+var_A], ax"], [29, "jmp short loc_41308E"], [30, "movzx eax, [rbp+var_C]"], [31, "add eax, 1"], [32, "mov [rbp+var_C], ax"], [33, "jmp short loc_41308E"], [34, "movzx eax, [rbp+var_A]"], [35, "sub eax, 1"], [36, "mov [rbp+var_A], ax"], [37, "jmp short loc_41308E"], [38, "movzx eax, [rbp+var_C]"], [39, "sub eax, 1"], [40, "mov [rbp+var_C], ax"], [41, "nop"], [42, "jmp short loc_41308E"], [43, "nop"], [44, "mov eax, ebx"], [45, "shr al, 6"], [46, "movzx edx, al"], [47, "mov rcx, [rbp+var_28]"], [48, "mov rax, [rbp+var_20]"], [49, "mov rsi, rcx"], [50, "mov rdi, rax"], [51, "call sub_412E83"], [52, "mov rax, [rbp+var_28]"], [53, "movzx edx, word ptr [rax]"], [54, "movzx eax, [rbp+var_A]"], [55, "add edx, eax"], [56, "mov rax, [rbp+var_28]"], [57, "mov [rax], dx"], [58, "mov rax, [rbp+var_28]"], [59, "movzx edx, word ptr [rax+2]"], [60, "movzx eax, [rbp+var_C]"], [61, "add edx, eax"], [62, "mov rax, [rbp+var_28]"], [63, "mov [rax+2], dx"], [64, "shl ebx, 2"], [65, "test bl, bl"], [66, "jnz short loc_41308D"], [67, "nop"], [68, "nop"], [69, "mov rbx, [rbp+var_8]"], [70, "leave"], [71, "retn"]], "data_dep": [[6, 5], [7, 6], [10, 5], [11, 10], [12, 11], [13, 12], [14, 13], [15, 12], [16, 15], [17, 12], [18, 17], [19, 12], [20, 19], [21, 12], [22, 21], [23, 21], [24, 23], [26, 8], [27, 26], [28, 27], [30, 9], [31, 30], [32, 31], [34, 8], [35, 34], [36, 35], [38, 9], [39, 38], [40, 39], [44, 7], [44, 65], [45, 44], [46, 45], [47, 5], [48, 4], [49, 47], [50, 48], [52, 5], [53, 57], [53, 52], [53, 63], [54, 28], [54, 36], [54, 8], [55, 53], [55, 54], [56, 5], [57, 56], [57, 55], [58, 5], [59, 58], [59, 63], [59, 57], [60, 40], [60, 9], [60, 32], [61, 60], [61, 59], [62, 5], [63, 61], [63, 62], [64, 65], [64, 7], [65, 64], [66, 65], [71, 62]]}
|
int sdp_uuid128_to_uuid(uuid_t *uuid)
{
uint128_t *b = &bluetooth_base_uuid;
uint128_t *u = &uuid->value.uuid128;
uint32_t data;
unsigned int i;
if (uuid->type != SDP_UUID128)
return 1;
for (i = 4; i < sizeof(b->data); i++)
if (b->data[i] != u->data[i])
return 0;
memcpy(&data, u->data, 4);
data = htonl(data);
if (data <= 0xffff) {
uuid->type = SDP_UUID16;
uuid->value.uuid16 = (uint16_t) data;
} else {
uuid->type = SDP_UUID32;
uuid->value.uuid32 = data;
}
return 1;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41491E", "function_addr": 4278558, "binary_name": "89a56c46f037f898ed5be52119007206f2226613e013c90a587db00e358dc334.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_10], offset qword_444420"], [5, "mov rax, [rbp+var_28]"], [6, "add rax, 4"], [7, "mov [rbp+var_18], rax"], [8, "mov rax, [rbp+var_28]"], [9, "movzx eax, byte ptr [rax]"], [10, "cmp al, 1Ch"], [11, "jz short loc_414953"], [12, "mov eax, 1"], [13, "jmp locret_4149D3"], [14, "mov [rbp+var_4], 4"], [15, "jmp short loc_414981"], [16, "mov rdx, [rbp+var_10]"], [17, "mov eax, [rbp+var_4]"], [18, "movzx ecx, byte ptr [rdx+rax]"], [19, "mov rdx, [rbp+var_18]"], [20, "mov eax, [rbp+var_4]"], [21, "movzx eax, byte ptr [rdx+rax]"], [22, "cmp cl, al"], [23, "jz short loc_41497D"], [24, "mov eax, 0"], [25, "jmp short locret_4149D3"], [26, "add [rbp+var_4], 1"], [27, "cmp [rbp+var_4], 0Fh"], [28, "jbe short loc_41495C"], [29, "mov rax, [rbp+var_18]"], [30, "mov eax, [rax]"], [31, "mov [rbp+hostlong], eax"], [32, "mov eax, [rbp+hostlong]"], [33, "mov edi, eax"], [34, "call _htonl"], [35, "mov [rbp+hostlong], eax"], [36, "mov eax, [rbp+hostlong]"], [37, "cmp eax, 0FFFFh"], [38, "ja short loc_4149BD"], [39, "mov rax, [rbp+var_28]"], [40, "mov byte ptr [rax], 19h"], [41, "mov eax, [rbp+hostlong]"], [42, "mov edx, eax"], [43, "mov rax, [rbp+var_28]"], [44, "mov [rax+4], dx"], [45, "jmp short loc_4149CE"], [46, "mov rax, [rbp+var_28]"], [47, "mov byte ptr [rax], 1Ah"], [48, "mov edx, [rbp+hostlong]"], [49, "mov rax, [rbp+var_28]"], [50, "mov [rax+4], edx"], [51, "mov eax, 1"], [52, "leave"], [53, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 3], [9, 8], [10, 9], [11, 10], [16, 4], [17, 14], [17, 26], [18, 17], [19, 7], [20, 14], [20, 26], [21, 20], [22, 18], [22, 21], [23, 22], [26, 14], [26, 26], [27, 14], [27, 26], [28, 27], [29, 7], [30, 29], [31, 30], [32, 31], [33, 32], [35, 34], [36, 35], [37, 36], [38, 37], [39, 3], [40, 39], [41, 35], [42, 41], [43, 3], [44, 42], [44, 43], [46, 3], [47, 46], [48, 35], [49, 3], [50, 49], [50, 48], [53, 12], [53, 24], [53, 51]]}
|
static void bf_const_log2_rec(bf_t *T, bf_t *P, bf_t *Q, limb_t n1,
limb_t n2, BOOL need_P)
{
bf_context_t *s = T->ctx;
if ((n2 - n1) == 1) {
if (n1 == 0) {
bf_set_ui(P, 3);
} else {
bf_set_ui(P, n1);
P->sign = 1;
}
bf_set_ui(Q, 2 * n1 + 1);
Q->expn += 2;
bf_set(T, P);
} else {
limb_t m;
bf_t T1_s, *T1 = &T1_s;
bf_t P1_s, *P1 = &P1_s;
bf_t Q1_s, *Q1 = &Q1_s;
m = n1 + ((n2 - n1) >> 1);
bf_const_log2_rec(T, P, Q, n1, m, TRUE);
bf_init(s, T1);
bf_init(s, P1);
bf_init(s, Q1);
bf_const_log2_rec(T1, P1, Q1, m, n2, need_P);
bf_mul(T, T, Q1, BF_PREC_INF, BF_RNDZ);
bf_mul(T1, T1, P, BF_PREC_INF, BF_RNDZ);
bf_add(T, T, T1, BF_PREC_INF, BF_RNDZ);
if (need_P)
bf_mul(P, P, P1, BF_PREC_INF, BF_RNDZ);
bf_mul(Q, Q, Q1, BF_PREC_INF, BF_RNDZ);
bf_delete(T1);
bf_delete(P1);
bf_delete(Q1);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4AB20B", "function_addr": 4895243, "binary_name": "14b4410c8e8a2353de548309387c938c5992a16f6551c711ac38d6178ebe7243.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0E0h"], [3, "mov [rbp+var_B8], rdi"], [4, "mov [rbp+var_C0], rsi"], [5, "mov [rbp+var_C8], rdx"], [6, "mov [rbp+var_D0], rcx"], [7, "mov [rbp+var_D8], r8"], [8, "mov [rbp+var_DC], r9d"], [9, "mov rax, [rbp+var_B8]"], [10, "mov rax, [rax]"], [11, "mov [rbp+var_8], rax"], [12, "mov rax, [rbp+var_D8]"], [13, "sub rax, [rbp+var_D0]"], [14, "cmp rax, 1"], [15, "jnz loc_4AB305"], [16, "cmp [rbp+var_D0], 0"], [17, "jnz short loc_4AB286"], [18, "mov rax, [rbp+var_C0]"], [19, "mov esi, 3"], [20, "mov rdi, rax"], [21, "call sub_4A2788"], [22, "jmp short loc_4AB2AD"], [23, "mov rdx, [rbp+var_D0]"], [24, "mov rax, [rbp+var_C0]"], [25, "mov rsi, rdx"], [26, "mov rdi, rax"], [27, "call sub_4A2788"], [28, "mov rax, [rbp+var_C0]"], [29, "mov dword ptr [rax+8], 1"], [30, "mov rax, [rbp+var_D0]"], [31, "add rax, rax"], [32, "lea rdx, [rax+1]"], [33, "mov rax, [rbp+var_C8]"], [34, "mov rsi, rdx"], [35, "mov rdi, rax"], [36, "call sub_4A2788"], [37, "mov rax, [rbp+var_C8]"], [38, "mov rax, [rax+10h]"], [39, "lea rdx, [rax+2]"], [40, "mov rax, [rbp+var_C8]"], [41, "mov [rax+10h], rdx"], [42, "mov rdx, [rbp+var_C0]"], [43, "mov rax, [rbp+var_B8]"], [44, "mov rsi, rdx"], [45, "mov rdi, rax"], [46, "call sub_4A292D"], [47, "jmp loc_4AB4D4"], [48, "lea rax, [rbp+var_B0]"], [49, "mov [rbp+var_10], rax"], [50, "lea rax, [rbp+var_80]"], [51, "mov [rbp+var_18], rax"], [52, "lea rax, [rbp+var_50]"], [53, "mov [rbp+var_20], rax"], [54, "mov rax, [rbp+var_D8]"], [55, "sub rax, [rbp+var_D0]"], [56, "shr rax, 1"], [57, "mov rdx, rax"], [58, "mov rax, [rbp+var_D0]"], [59, "add rax, rdx"], [60, "mov [rbp+var_28], rax"], [61, "mov rdi, [rbp+var_28]"], [62, "mov rcx, [rbp+var_D0]"], [63, "mov rdx, [rbp+var_C8]"], [64, "mov rsi, [rbp+var_C0]"], [65, "mov rax, [rbp+var_B8]"], [66, "mov r9d, 1"], [67, "mov r8, rdi"], [68, "mov rdi, rax"], [69, "call sub_4AB20B"], [70, "mov rdx, [rbp+var_10]"], [71, "mov rax, [rbp+var_8]"], [72, "mov rsi, rdx"], [73, "mov rdi, rax"], [74, "call sub_4A26DE"], [75, "mov rdx, [rbp+var_18]"], [76, "mov rax, [rbp+var_8]"], [77, "mov rsi, rdx"], [78, "mov rdi, rax"], [79, "call sub_4A26DE"], [80, "mov rdx, [rbp+var_20]"], [81, "mov rax, [rbp+var_8]"], [82, "mov rsi, rdx"], [83, "mov rdi, rax"], [84, "call sub_4A26DE"], [85, "mov r8d, [rbp+var_DC]"], [86, "mov rdi, [rbp+var_D8]"], [87, "mov rcx, [rbp+var_28]"], [88, "mov rdx, [rbp+var_20]"], [89, "mov rsi, [rbp+var_18]"], [90, "mov rax, [rbp+var_10]"], [91, "mov r9d, r8d"], [92, "mov r8, rdi"], [93, "mov rdi, rax"], [94, "call sub_4AB20B"], [95, "mov rdx, [rbp+var_20]"], [96, "mov rsi, [rbp+var_B8]"], [97, "mov rax, [rbp+var_B8]"], [98, "mov r8d, 1"], [99, "mov rcx, 3FFFFFFFFFFFFFFFh"], [100, "mov rdi, rax"], [101, "call sub_4A5080"], [102, "mov rdx, [rbp+var_C0]"], [103, "mov rsi, [rbp+var_10]"], [104, "mov rax, [rbp+var_10]"], [105, "mov r8d, 1"], [106, "mov rcx, 3FFFFFFFFFFFFFFFh"], [107, "mov rdi, rax"], [108, "call sub_4A5080"], [109, "mov rdx, [rbp+var_10]"], [110, "mov rsi, [rbp+var_B8]"], [111, "mov rax, [rbp+var_B8]"], [112, "mov r8d, 1"], [113, "mov rcx, 3FFFFFFFFFFFFFFFh"], [114, "mov rdi, rax"], [115, "call sub_4A7312"], [116, "cmp [rbp+var_DC], 0"], [117, "jz short loc_4AB486"], [118, "mov rdx, [rbp+var_18]"], [119, "mov rsi, [rbp+var_C0]"], [120, "mov rax, [rbp+var_C0]"], [121, "mov r8d, 1"], [122, "mov rcx, 3FFFFFFFFFFFFFFFh"], [123, "mov rdi, rax"], [124, "call sub_4A5080"], [125, "mov rdx, [rbp+var_20]"], [126, "mov rsi, [rbp+var_C8]"], [127, "mov rax, [rbp+var_C8]"], [128, "mov r8d, 1"], [129, "mov rcx, 3FFFFFFFFFFFFFFFh"], [130, "mov rdi, rax"], [131, "call sub_4A5080"], [132, "mov rax, [rbp+var_10]"], [133, "mov rdi, rax"], [134, "call sub_4A2528"], [135, "mov rax, [rbp+var_18]"], [136, "mov rdi, rax"], [137, "call sub_4A2528"], [138, "mov rax, [rbp+var_20]"], [139, "mov rdi, rax"], [140, "call sub_4A2528"], [141, "nop"], [142, "leave"], [143, "retn"]], "data_dep": [[9, 3], [10, 9], [11, 10], [12, 7], [13, 12], [13, 6], [14, 13], [15, 14], [16, 6], [17, 16], [18, 4], [20, 18], [23, 6], [24, 4], [25, 23], [26, 24], [28, 4], [29, 28], [30, 6], [31, 30], [32, 23], [32, 41], [32, 29], [32, 31], [33, 5], [34, 32], [35, 33], [37, 5], [38, 41], [38, 29], [38, 37], [39, 32], [39, 41], [39, 29], [39, 38], [40, 5], [41, 40], [41, 39], [42, 4], [43, 3], [44, 42], [45, 43], [48, 13], [49, 48], [50, 48], [51, 50], [52, 50], [53, 52], [54, 7], [55, 6], [55, 54], [56, 55], [57, 56], [58, 6], [59, 57], [59, 58], [60, 59], [61, 60], [62, 6], [63, 5], [64, 4], [65, 3], [67, 61], [68, 65], [70, 49], [71, 11], [72, 70], [73, 71], [75, 51], [76, 11], [77, 75], [78, 76], [80, 53], [81, 11], [82, 80], [83, 81], [85, 8], [86, 7], [87, 60], [88, 53], [89, 51], [90, 49], [91, 85], [92, 86], [93, 90], [95, 53], [96, 3], [97, 3], [100, 97], [102, 4], [103, 49], [104, 49], [107, 104], [109, 49], [110, 3], [111, 3], [114, 111], [116, 8], [117, 116], [118, 51], [119, 4], [120, 4], [123, 120], [125, 53], [126, 5], [127, 5], [130, 127], [132, 49], [133, 132], [135, 51], [136, 135], [138, 53], [139, 138], [143, 46], [143, 140]]}
|
err_t hci_le_clear_resolv_list(void)
{
struct bt_pbuf_t *p;
if((p = bt_pbuf_alloc(BT_TRANSPORT_TYPE, HCI_CLEAR_RESOLV_LIST_PLEN, BT_PBUF_RAM)) == NULL)
{
BT_HCI_TRACE_ERROR("ERROR:file[%s],function[%s],line[%d] bt_pbuf_alloc fail\n",__FILE__,__FUNCTION__,__LINE__);
return BT_ERR_MEM;
}
/* Assembling command packet */
p = hci_cmd_ass(p, HCI_LE_CLEAR_RESOLVING_LIST, HCI_LE, HCI_CLEAR_RESOLV_LIST_PLEN);
phybusif_output(p, p->tot_len,PHYBUSIF_PACKET_TYPE_CMD);
bt_pbuf_free(p);
return BT_ERR_OK;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40DEB8", "function_addr": 4251320, "binary_name": "9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov edx, 0"], [4, "mov esi, 3"], [5, "mov edi, 2"], [6, "call sub_4121B2"], [7, "mov [rbp+var_8], rax"], [8, "cmp [rbp+var_8], 0"], [9, "jnz short loc_40DF04"], [10, "mov ecx, 0E31h"], [11, "mov edx, offset aHciLeClearReso"], [12, "mov esi, offset aComponentBluet"], [13, "mov edi, offset a4036mHci0m4031_1"], [14, "mov eax, 0"], [15, "call _printf"], [16, "mov eax, 0FFFFFFFFh"], [17, "jmp short locret_40DF52"], [18, "mov rax, [rbp+var_8]"], [19, "mov ecx, 3"], [20, "mov edx, 8"], [21, "mov esi, 29h "], [22, "mov rdi, rax"], [23, "call sub_4094C4"], [24, "mov [rbp+var_8], rax"], [25, "mov rax, [rbp+var_8]"], [26, "movzx eax, word ptr [rax+10h]"], [27, "movzx ecx, ax"], [28, "mov rax, [rbp+var_8]"], [29, "mov edx, 1"], [30, "mov esi, ecx"], [31, "mov rdi, rax"], [32, "call sub_4028B6"], [33, "mov rax, [rbp+var_8]"], [34, "mov rdi, rax"], [35, "call sub_412805"], [36, "mov eax, 0"], [37, "leave"], [38, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [18, 7], [22, 18], [24, 23], [25, 24], [26, 25], [27, 26], [28, 24], [30, 27], [31, 28], [33, 24], [34, 33], [38, 36], [38, 16]]}
|
real_t s351(struct args_t * func_args)
{
// loop rerolling
// unrolled saxpy
initialise_arrays(__func__);
gettimeofday(&func_args->t1, NULL);
real_t alpha = c[0];
for (int nl = 0; nl < 8*iterations; nl++) {
for (int i = 0; i < LEN_1D; i += 5) {
a[i] += alpha * b[i];
a[i + 1] += alpha * b[i + 1];
a[i + 2] += alpha * b[i + 2];
a[i + 3] += alpha * b[i + 3];
a[i + 4] += alpha * b[i + 4];
}
dummy(a, b, c, d, e, aa, bb, cc, 0.);
}
gettimeofday(&func_args->t2, NULL);
return calc_checksum(__func__);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4095C1", "function_addr": 4232641, "binary_name": "e7691500f93bbaaebd95d46021255ed975e4aa272477671214427bf176fd55b4.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+tv], rdi"], [4, "mov edi, offset aS351"], [5, "call sub_40D4E3"], [6, "mov rax, [rbp+tv]"], [7, "mov esi, 0"], [8, "mov rdi, rax"], [9, "call _gettimeofday"], [10, "movss xmm0, cs:dword_4B4CC0"], [11, "movss [rbp+var_C], xmm0"], [12, "mov [rbp+var_4], 0"], [13, "jmp loc_40977C"], [14, "mov [rbp+var_8], 0"], [15, "jmp loc_409734"], [16, "mov eax, [rbp+var_8]"], [17, "cdqe"], [18, "movss xmm1, ds:dword_4764C0[rax*4]"], [19, "mov eax, [rbp+var_8]"], [20, "cdqe"], [21, "movss xmm0, ds:x[rax*4]"], [22, "mulss xmm0, [rbp+var_C]"], [23, "addss xmm0, xmm1"], [24, "mov eax, [rbp+var_8]"], [25, "cdqe"], [26, "movss ds:dword_4764C0[rax*4], xmm0"], [27, "mov eax, [rbp+var_8]"], [28, "add eax, 1"], [29, "cdqe"], [30, "movss xmm1, ds:dword_4764C0[rax*4]"], [31, "mov eax, [rbp+var_8]"], [32, "add eax, 1"], [33, "cdqe"], [34, "movss xmm0, ds:x[rax*4]"], [35, "mulss xmm0, [rbp+var_C]"], [36, "mov eax, [rbp+var_8]"], [37, "add eax, 1"], [38, "addss xmm0, xmm1"], [39, "cdqe"], [40, "movss ds:dword_4764C0[rax*4], xmm0"], [41, "mov eax, [rbp+var_8]"], [42, "add eax, 2"], [43, "cdqe"], [44, "movss xmm1, ds:dword_4764C0[rax*4]"], [45, "mov eax, [rbp+var_8]"], [46, "add eax, 2"], [47, "cdqe"], [48, "movss xmm0, ds:x[rax*4]"], [49, "mulss xmm0, [rbp+var_C]"], [50, "mov eax, [rbp+var_8]"], [51, "add eax, 2"], [52, "addss xmm0, xmm1"], [53, "cdqe"], [54, "movss ds:dword_4764C0[rax*4], xmm0"], [55, "mov eax, [rbp+var_8]"], [56, "add eax, 3"], [57, "cdqe"], [58, "movss xmm1, ds:dword_4764C0[rax*4]"], [59, "mov eax, [rbp+var_8]"], [60, "add eax, 3"], [61, "cdqe"], [62, "movss xmm0, ds:x[rax*4]"], [63, "mulss xmm0, [rbp+var_C]"], [64, "mov eax, [rbp+var_8]"], [65, "add eax, 3"], [66, "addss xmm0, xmm1"], [67, "cdqe"], [68, "movss ds:dword_4764C0[rax*4], xmm0"], [69, "mov eax, [rbp+var_8]"], [70, "add eax, 4"], [71, "cdqe"], [72, "movss xmm1, ds:dword_4764C0[rax*4]"], [73, "mov eax, [rbp+var_8]"], [74, "add eax, 4"], [75, "cdqe"], [76, "movss xmm0, ds:x[rax*4]"], [77, "mulss xmm0, [rbp+var_C]"], [78, "mov eax, [rbp+var_8]"], [79, "add eax, 4"], [80, "addss xmm0, xmm1"], [81, "cdqe"], [82, "movss ds:dword_4764C0[rax*4], xmm0"], [83, "add [rbp+var_8], 5"], [84, "cmp [rbp+var_8], 7CFFh"], [85, "jle loc_40960D"], [86, "push offset dword_5928C0"], [87, "push offset dword_5528C0"], [88, "pxor xmm0, xmm0"], [89, "mov r9d, offset dword_5128C0"], [90, "mov r8d, offset dword_4F34C0"], [91, "mov ecx, offset dword_4D40C0"], [92, "mov edx, offset dword_4B4CC0"], [93, "mov esi, offset x"], [94, "mov edi, offset dword_4764C0"], [95, "call sub_40CF03"], [96, "add rsp, 10h"], [97, "add [rbp+var_4], 1"], [98, "cmp [rbp+var_4], 0C34FFh"], [99, "jle loc_409601"], [100, "mov rax, [rbp+tv]"], [101, "add rax, 10h"], [102, "mov esi, 0"], [103, "mov rdi, rax"], [104, "call _gettimeofday"], [105, "mov edi, offset aS351"], [106, "call sub_410C61"], [107, "leave"], [108, "retn"]], "data_dep": [[6, 3], [8, 6], [11, 10], [16, 83], [16, 14], [18, 82], [19, 83], [19, 14], [22, 21], [22, 11], [23, 22], [23, 18], [24, 83], [24, 14], [26, 23], [27, 83], [27, 14], [28, 27], [30, 26], [31, 83], [31, 14], [32, 31], [35, 11], [35, 34], [36, 83], [36, 14], [37, 36], [38, 35], [38, 30], [40, 38], [41, 83], [41, 14], [42, 41], [44, 40], [45, 83], [45, 14], [46, 45], [49, 48], [49, 11], [50, 83], [50, 14], [51, 50], [52, 49], [52, 44], [54, 52], [55, 83], [55, 14], [56, 55], [58, 54], [59, 83], [59, 14], [60, 59], [63, 62], [63, 11], [64, 14], [64, 83], [65, 64], [66, 63], [66, 58], [68, 66], [69, 83], [69, 14], [70, 69], [72, 68], [73, 83], [73, 14], [74, 73], [77, 76], [77, 11], [78, 83], [78, 14], [79, 78], [80, 77], [80, 72], [82, 80], [83, 14], [83, 83], [84, 83], [84, 14], [85, 84], [96, 96], [96, 2], [97, 97], [97, 12], [98, 12], [98, 97], [99, 98], [100, 3], [101, 100], [103, 101], [108, 106]]}
|
Type qual(int op, Type ty) {
if (isarray(ty))
ty = type(ARRAY, qual(op, ty->type), ty->size,
ty->align, NULL);
else if (isfunc(ty))
warning("qualified function type ignored\n");
else if ((isconst(ty) && op == CONST)
|| (isvolatile(ty) && op == VOLATILE))
error("illegal type `%k %t'\n", op, ty);
else {
if (isqual(ty)) {
op += ty->op;
ty = ty->type;
}
ty = type(op, ty, ty->size, ty->align, NULL);
}
return ty;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4313E9", "function_addr": 4396009, "binary_name": "df2108499522a80d76beef03a126f211d45b1835898ab5b155f04615dba54206.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 10h"], [5, "mov [rbp+var_14], edi"], [6, "mov [rbp+var_20], rsi"], [7, "mov rax, [rbp+var_20]"], [8, "mov eax, [rax]"], [9, "cmp eax, 0Eh"], [10, "jle short loc_431410"], [11, "mov rax, [rbp+var_20]"], [12, "mov rax, [rax+8]"], [13, "jmp short loc_431414"], [14, "mov rax, [rbp+var_20]"], [15, "mov eax, [rax]"], [16, "cmp eax, 0Ch"], [17, "jnz short loc_431460"], [18, "mov rax, [rbp+var_20]"], [19, "mov r12d, [rax+10h]"], [20, "mov rax, [rbp+var_20]"], [21, "mov ebx, [rax+14h]"], [22, "mov rax, [rbp+var_20]"], [23, "mov rdx, [rax+8]"], [24, "mov eax, [rbp+var_14]"], [25, "mov rsi, rdx"], [26, "mov edi, eax"], [27, "call sub_4313E9"], [28, "mov r8d, 0"], [29, "mov ecx, r12d"], [30, "mov edx, ebx"], [31, "mov rsi, rax"], [32, "mov edi, 0Ch"], [33, "call sub_43025E"], [34, "mov [rbp+var_20], rax"], [35, "jmp loc_43152C"], [36, "mov rax, [rbp+var_20]"], [37, "mov eax, [rax]"], [38, "cmp eax, 0Eh"], [39, "jle short loc_431475"], [40, "mov rax, [rbp+var_20]"], [41, "mov rax, [rax+8]"], [42, "jmp short loc_431479"], [43, "mov rax, [rbp+var_20]"], [44, "mov eax, [rax]"], [45, "cmp eax, 0Bh"], [46, "jnz short loc_431494"], [47, "mov edi, offset aQualifiedFunct"], [48, "mov eax, 0"], [49, "call sub_413E00"], [50, "jmp loc_43152C"], [51, "mov rax, [rbp+var_20]"], [52, "mov eax, [rax]"], [53, "cmp eax, 0Fh"], [54, "jz short loc_4314AA"], [55, "mov rax, [rbp+var_20]"], [56, "mov eax, [rax]"], [57, "cmp eax, 1Fh"], [58, "jnz short loc_4314B0"], [59, "cmp [rbp+var_14], 0Fh"], [60, "jz short loc_4314CC"], [61, "mov rax, [rbp+var_20]"], [62, "mov eax, [rax]"], [63, "cmp eax, 10h"], [64, "jz short loc_4314C6"], [65, "mov rax, [rbp+var_20]"], [66, "mov eax, [rax]"], [67, "cmp eax, 1Fh"], [68, "jnz short loc_4314E6"], [69, "cmp [rbp+var_14], 10h"], [70, "jnz short loc_4314E6"], [71, "mov rdx, [rbp+var_20]"], [72, "mov eax, [rbp+var_14]"], [73, "mov esi, eax"], [74, "mov edi, offset aIllegalTypeKT"], [75, "mov eax, 0"], [76, "call error"], [77, "jmp short loc_43152C"], [78, "mov rax, [rbp+var_20]"], [79, "mov eax, [rax]"], [80, "cmp eax, 0Eh"], [81, "jle short loc_431506"], [82, "mov rax, [rbp+var_20]"], [83, "mov eax, [rax]"], [84, "add [rbp+var_14], eax"], [85, "mov rax, [rbp+var_20]"], [86, "mov rax, [rax+8]"], [87, "mov [rbp+var_20], rax"], [88, "mov rax, [rbp+var_20]"], [89, "mov ecx, [rax+10h]"], [90, "mov rax, [rbp+var_20]"], [91, "mov edx, [rax+14h]"], [92, "mov rsi, [rbp+var_20]"], [93, "mov eax, [rbp+var_14]"], [94, "mov r8d, 0"], [95, "mov edi, eax"], [96, "call sub_43025E"], [97, "mov [rbp+var_20], rax"], [98, "mov rax, [rbp+var_20]"], [99, "add rsp, 10h"], [100, "pop rbx"], [101, "pop r12"], [102, "pop rbp"], [103, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 8], [10, 9], [11, 6], [12, 11], [14, 6], [15, 14], [15, 12], [16, 15], [17, 16], [18, 6], [19, 18], [20, 6], [21, 20], [22, 6], [23, 22], [24, 5], [25, 23], [26, 24], [29, 19], [30, 21], [31, 27], [34, 33], [36, 6], [37, 36], [38, 37], [39, 38], [40, 6], [41, 40], [43, 6], [44, 41], [44, 43], [45, 44], [46, 45], [51, 6], [52, 51], [53, 52], [54, 53], [55, 6], [56, 55], [57, 56], [58, 57], [59, 5], [60, 59], [61, 6], [62, 61], [63, 62], [64, 63], [65, 6], [66, 65], [67, 66], [68, 67], [69, 5], [70, 69], [71, 6], [72, 5], [73, 72], [78, 6], [79, 78], [80, 79], [81, 80], [82, 6], [83, 82], [84, 83], [84, 5], [85, 6], [86, 85], [87, 86], [88, 87], [88, 6], [89, 88], [90, 87], [90, 6], [91, 90], [92, 87], [92, 6], [93, 5], [93, 84], [95, 93], [97, 96], [98, 34], [98, 6], [98, 97], [99, 4], [100, 3], [101, 2], [102, 0], [103, 98]]}
|
static err_t _l2cap_sig_cfg_rsp_process(l2cap_pcb_t *pcb,struct bt_pbuf_t *p,l2cap_sig_hdr_t *sighdr,l2cap_sig_t *sig)
{
uint16_t result, flags;;
//uint16_t scid;
uint16_t siglen;
l2cap_cfgopt_hdr_t *opthdr;
struct bt_pbuf_t *data;
if(pcb == NULL)
{
return BT_ERR_CONN;
}
/* Remove signal from unresponded list and deallocate it */
L2CAP_SIG_RMV(&(pcb->unrsp_sigs), sig);
bt_pbuf_free(sig->p);
bt_memp_free(MEMP_L2CAP_SIG, sig);
BT_ASSERT(("l2cap_process_sig: cfg rsp, active pcb->state == L2CAP_CONFIG\n"),
pcb->state == L2CAP_CONFIG);
siglen = sighdr->len;
//scid = ((uint16_t *)p->payload)[0];
flags = ((uint16_t *)p->payload)[1];
result = ((uint16_t *)p->payload)[2];
if (siglen < 6)
{
return BT_ERR_VAL;
}
siglen -= 6;
bt_pbuf_header(p, -6);
BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Outgoing configuration result == %d continuation flag == %d\n", result, flags);
/* Handle config request */
switch(result)
{
case L2CAP_CFG_SUCCESS:
BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Successfull outgoing configuration\n");
pcb->cfg.l2capcfg |= L2CAP_CFG_IN_SUCCESS; /* Local side of the connection
has been configured for outgoing data */
pcb->cfg.cfgto = L2CAP_CFG_TO; /* Reset configuration timeout */
if(pcb->cfg.outflushto != L2CAP_CFG_DEFAULT_OUTFLUSHTO)
{
hci_write_flush_timeout(&pcb->remote_bdaddr, pcb->cfg.outflushto);
}
/* L2CAP connection established if a successful configuration response has been sent */
if(pcb->cfg.l2capcfg & L2CAP_CFG_OUT_SUCCESS)
{
pcb->state = L2CAP_OPEN;
if(pcb->cfg.l2capcfg & L2CAP_CFG_IR)
{
L2CA_ACTION_CONN_CFM(pcb, L2CAP_CONN_SUCCESS, 0x0000);
}
else
{
L2CA_ACTION_CONN_IND(pcb, BT_ERR_OK);
}
}
break;
case L2CAP_CFG_UNACCEPT:
/* Parse and add options to pcb */
while(siglen > 0)
{
opthdr = p->payload;
/* Check if type of action bit indicates a non-hint. Hints are ignored */
if(L2CAP_OPTH_TOA(opthdr) == 0)
{
switch(L2CAP_OPTH_TYPE(opthdr))
{
case L2CAP_CFG_MTU:
if(L2CAP_MTU > ((uint16_t *)p->payload)[1])
{
pcb->cfg.outmtu = ((uint16_t *)p->payload)[1];
}
else
{
BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Configuration of MTU failed\n");
l2cap_disconnect_req(pcb, NULL);
return BT_ERR_ARG;
}
break;
case L2CAP_FLUSHTO:
pcb->cfg.influshto = ((uint16_t *)p->payload)[1];
break;
case L2CAP_QOS:
/* If service type Best Effort is not accepted we will close the connection */
if(((uint8_t *)p->payload)[3] != L2CAP_QOS_BEST_EFFORT)
{
BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Unsupported service type\n");
l2cap_disconnect_req(pcb, NULL);
return BT_ERR_ARG;
}
break;
default:
/* Should not happen, skip option */
break;
} /* switch */
} /* if(L2CAP_OPTH_TOA(opthdr) == 0) */
bt_pbuf_header(p, -(L2CAP_CFGOPTHDR_LEN + opthdr->len));
siglen -= L2CAP_CFGOPTHDR_LEN + opthdr->len;
} /* while */
/* Send out a new configuration request if the continuation flag isn't set */
if((flags & 0x0001) == 0)
{
l2cap_config_req(pcb);
}
break;
case L2CAP_CFG_REJ:
/* Fallthrough */
case L2CAP_CFG_UNKNOWN:
/* Fallthrough */
default:
if((flags & 0x0001) == 0)
{
BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Configuration failed\n");
l2cap_disconnect_req(pcb, NULL);
return BT_ERR_ARG;
}
break;
} /* switch(result) */
/* If continuation flag is set we must send a NULL configuration request */
if((flags & 0x0001) == 1)
{
BT_L2CAP_TRACE_DEBUG("l2cap_process_sig: Continuation flag is set. Send empty (default) config request signal\n");
if((data = bt_pbuf_alloc(BT_PBUF_RAW, L2CAP_CFG_REQ_SIZE, BT_PBUF_RAM)) == NULL)
{
BT_L2CAP_TRACE_ERROR("ERROR:file[%s],function[%s],line[%d] bt_pbuf_alloc fail\n",__FILE__,__FUNCTION__,__LINE__);
return BT_ERR_ARG;
}
/* Assemble config request packet */
((uint16_t *)data->payload)[0] = pcb->scid;
((uint16_t *)data->payload)[2] = 0;
_l2cap_signal_send(pcb, L2CAP_CFG_REQ, 0, &(pcb->remote_bdaddr), data);
}
return BT_ERR_OK;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40F34D", "function_addr": 4256589, "binary_name": "9861972866b8ccea0a5b33e64b5d5e1a71dd13da10d037c25b6e25d222407eb3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_40], rcx"], [7, "cmp [rbp+var_28], 0"], [8, "jnz short loc_40F376"], [9, "mov eax, 0FFFFFFF5h"], [10, "jmp locret_40F774"], [11, "mov rax, [rbp+var_28]"], [12, "mov rax, [rax+28h]"], [13, "cmp [rbp+var_40], rax"], [14, "jnz short loc_40F399"], [15, "mov rax, [rbp+var_28]"], [16, "mov rax, [rax+28h]"], [17, "mov rdx, [rax]"], [18, "mov rax, [rbp+var_28]"], [19, "mov [rax+28h], rdx"], [20, "jmp short loc_40F3F9"], [21, "mov rax, [rbp+var_28]"], [22, "mov rax, [rax+28h]"], [23, "mov cs:qword_45FFA8, rax"], [24, "jmp short loc_40F3ED"], [25, "mov rax, cs:qword_45FFA8"], [26, "mov rax, [rax]"], [27, "test rax, rax"], [28, "jz short loc_40F3DC"], [29, "mov rax, cs:qword_45FFA8"], [30, "mov rax, [rax]"], [31, "cmp [rbp+var_40], rax"], [32, "jnz short loc_40F3DC"], [33, "mov rax, cs:qword_45FFA8"], [34, "mov rdx, [rbp+var_40]"], [35, "mov rdx, [rdx]"], [36, "mov [rax], rdx"], [37, "jmp short loc_40F3F9"], [38, "mov rax, cs:qword_45FFA8"], [39, "mov rax, [rax]"], [40, "mov cs:qword_45FFA8, rax"], [41, "mov rax, cs:qword_45FFA8"], [42, "test rax, rax"], [43, "jnz short loc_40F3AA"], [44, "mov rax, [rbp+var_40]"], [45, "mov qword ptr [rax], 0"], [46, "mov rax, [rbp+var_40]"], [47, "mov rax, [rax+8]"], [48, "mov rdi, rax"], [49, "call sub_412805"], [50, "mov rax, [rbp+var_40]"], [51, "mov rsi, rax"], [52, "mov edi, 5"], [53, "call sub_413257"], [54, "mov rax, [rbp+var_28]"], [55, "mov eax, [rax+0Ch]"], [56, "cmp eax, 4"], [57, "jz short loc_40F43B"], [58, "mov edi, offset aL2capProcessSi_1"], [59, "call _puts"], [60, "mov rax, [rbp+var_38]"], [61, "movzx eax, word ptr [rax+2]"], [62, "mov [rbp+var_2], ax"], [63, "mov rax, [rbp+var_30]"], [64, "mov rax, [rax+8]"], [65, "movzx eax, word ptr [rax+2]"], [66, "mov [rbp+var_4], ax"], [67, "mov rax, [rbp+var_30]"], [68, "mov rax, [rax+8]"], [69, "movzx eax, word ptr [rax+4]"], [70, "mov [rbp+var_6], ax"], [71, "cmp [rbp+var_2], 5"], [72, "ja short loc_40F478"], [73, "mov eax, 0FFFFFFFAh"], [74, "jmp locret_40F774"], [75, "sub [rbp+var_2], 6"], [76, "mov rax, [rbp+var_30]"], [77, "mov esi, 0FFFFFFFAh"], [78, "mov rdi, rax"], [79, "call sub_4127DA"], [80, "movzx eax, [rbp+var_6]"], [81, "test eax, eax"], [82, "jz short loc_40F4A4"], [83, "cmp eax, 1"], [84, "jz loc_40F6A1"], [85, "jmp loc_40F6C5"], [86, "mov rax, [rbp+var_28]"], [87, "movzx eax, byte ptr [rax+49h]"], [88, "or eax, 2"], [89, "mov edx, eax"], [90, "mov rax, [rbp+var_28]"], [91, "mov [rax+49h], dl"], [92, "mov rax, [rbp+var_28]"], [93, "mov byte ptr [rax+48h], 1Eh"], [94, "mov rax, [rbp+var_28]"], [95, "movzx eax, word ptr [rax+3Eh]"], [96, "cmp ax, 0FFFFh"], [97, "jz short loc_40F4EB"], [98, "mov rax, [rbp+var_28]"], [99, "movzx eax, word ptr [rax+3Eh]"], [100, "movzx eax, ax"], [101, "mov rdx, [rbp+var_28]"], [102, "add rdx, 30h "], [103, "mov esi, eax"], [104, "mov rdi, rdx"], [105, "call sub_40C37E"], [106, "mov rax, [rbp+var_28]"], [107, "movzx eax, byte ptr [rax+49h]"], [108, "movzx eax, al"], [109, "and eax, 4"], [110, "test eax, eax"], [111, "jz loc_40F6EB"], [112, "mov rax, [rbp+var_28]"], [113, "mov dword ptr [rax+0Ch], 5"], [114, "mov rax, [rbp+var_28]"], [115, "movzx eax, byte ptr [rax+49h]"], [116, "movzx eax, al"], [117, "and eax, 1"], [118, "test eax, eax"], [119, "jz short loc_40F558"], [120, "mov rax, [rbp+var_28]"], [121, "mov rax, [rax+58h]"], [122, "test rax, rax"], [123, "jz loc_40F6EB"], [124, "mov rax, [rbp+var_28]"], [125, "mov r8, [rax+58h]"], [126, "mov rax, [rbp+var_28]"], [127, "mov rax, [rax+10h]"], [128, "mov rsi, [rbp+var_28]"], [129, "mov ecx, 0"], [130, "mov edx, 0"], [131, "mov rdi, rax"], [132, "call r8"], [133, "jmp loc_40F6EB"], [134, "mov rax, [rbp+var_28]"], [135, "mov rax, [rax+70h]"], [136, "test rax, rax"], [137, "jz loc_40F6EB"], [138, "mov rax, [rbp+var_28]"], [139, "mov r8, [rax+70h]"], [140, "mov rax, [rbp+var_28]"], [141, "mov rax, [rax+10h]"], [142, "mov rcx, [rbp+var_28]"], [143, "mov edx, 0"], [144, "mov rsi, rcx"], [145, "mov rdi, rax"], [146, "call r8"], [147, "jmp loc_40F6EB"], [148, "mov rax, [rbp+var_30]"], [149, "mov rax, [rax+8]"], [150, "mov [rbp+var_10], rax"], [151, "mov rax, [rbp+var_10]"], [152, "movzx eax, byte ptr [rax]"], [153, "test al, al"], [154, "js loc_40F65F"], [155, "mov rax, [rbp+var_10]"], [156, "movzx eax, byte ptr [rax]"], [157, "movzx eax, al"], [158, "and eax, 7Fh"], [159, "cmp eax, 3"], [160, "jz short loc_40F631"], [161, "cmp eax, 3"], [162, "jg loc_40F662"], [163, "cmp eax, 1"], [164, "jz short loc_40F5D5"], [165, "cmp eax, 2"], [166, "jz short loc_40F61B"], [167, "jmp loc_40F662"], [168, "mov rax, [rbp+var_30]"], [169, "mov rax, [rax+8]"], [170, "add rax, 2"], [171, "movzx eax, word ptr [rax]"], [172, "cmp ax, 3FFh"], [173, "ja short loc_40F600"], [174, "mov rax, [rbp+var_30]"], [175, "mov rax, [rax+8]"], [176, "movzx edx, word ptr [rax+2]"], [177, "mov rax, [rbp+var_28]"], [178, "mov [rax+3Ah], dx"], [179, "jmp short loc_40F666"], [180, "mov rax, [rbp+var_28]"], [181, "mov esi, 0"], [182, "mov rdi, rax"], [183, "call sub_411545"], [184, "mov eax, 0FFFFFFF0h"], [185, "jmp locret_40F774"], [186, "mov rax, [rbp+var_30]"], [187, "mov rax, [rax+8]"], [188, "movzx edx, word ptr [rax+2]"], [189, "mov rax, [rbp+var_28]"], [190, "mov [rax+3Ch], dx"], [191, "jmp short loc_40F666"], [192, "mov rax, [rbp+var_30]"], [193, "mov rax, [rax+8]"], [194, "add rax, 3"], [195, "movzx eax, byte ptr [rax]"], [196, "cmp al, 1"], [197, "jz short loc_40F665"], [198, "mov rax, [rbp+var_28]"], [199, "mov esi, 0"], [200, "mov rdi, rax"], [201, "call sub_411545"], [202, "mov eax, 0FFFFFFF0h"], [203, "jmp locret_40F774"], [204, "nop"], [205, "jmp short loc_40F666"], [206, "nop"], [207, "jmp short loc_40F666"], [208, "nop"], [209, "mov rax, [rbp+var_10]"], [210, "movzx eax, byte ptr [rax+1]"], [211, "movzx edx, al"], [212, "mov eax, 0FFFFFFFEh"], [213, "sub eax, edx"], [214, "movsx edx, ax"], [215, "mov rax, [rbp+var_30]"], [216, "mov esi, edx"], [217, "mov rdi, rax"], [218, "call sub_4127DA"], [219, "mov rax, [rbp+var_10]"], [220, "movzx eax, byte ptr [rax+1]"], [221, "movzx edx, al"], [222, "movzx eax, [rbp+var_2]"], [223, "sub eax, edx"], [224, "sub eax, 2"], [225, "mov [rbp+var_2], ax"], [226, "cmp [rbp+var_2], 0"], [227, "jnz loc_40F590"], [228, "movzx eax, [rbp+var_4]"], [229, "and eax, 1"], [230, "test eax, eax"], [231, "jnz short loc_40F6EE"], [232, "mov rax, [rbp+var_28]"], [233, "mov rdi, rax"], [234, "call sub_4113FB"], [235, "jmp short loc_40F6EE"], [236, "movzx eax, [rbp+var_4]"], [237, "and eax, 1"], [238, "test eax, eax"], [239, "jnz short loc_40F6F1"], [240, "mov rax, [rbp+var_28]"], [241, "mov esi, 0"], [242, "mov rdi, rax"], [243, "call sub_411545"], [244, "mov eax, 0FFFFFFF0h"], [245, "jmp locret_40F774"], [246, "nop"], [247, "jmp short loc_40F6F2"], [248, "nop"], [249, "jmp short loc_40F6F2"], [250, "nop"], [251, "movzx eax, [rbp+var_4]"], [252, "and eax, 1"], [253, "test eax, eax"], [254, "jz short loc_40F76F"], [255, "mov edx, 0"], [256, "mov esi, 4"], [257, "mov edi, 5"], [258, "call sub_4121B2"], [259, "mov [rbp+var_18], rax"], [260, "cmp [rbp+var_18], 0"], [261, "jnz short loc_40F723"], [262, "mov eax, 0FFFFFFF0h"], [263, "jmp short locret_40F774"], [264, "mov rax, [rbp+var_18]"], [265, "mov rax, [rax+8]"], [266, "mov rdx, [rbp+var_28]"], [267, "movzx edx, word ptr [rdx+18h]"], [268, "mov [rax], dx"], [269, "mov rax, [rbp+var_18]"], [270, "mov rax, [rax+8]"], [271, "add rax, 4"], [272, "mov word ptr [rax], 0"], [273, "mov rax, [rbp+var_28]"], [274, "lea rdx, [rax+30h]"], [275, "mov rcx, [rbp+var_18]"], [276, "mov rax, [rbp+var_28]"], [277, "mov r8, rcx"], [278, "mov rcx, rdx"], [279, "mov edx, 0"], [280, "mov esi, 4"], [281, "mov rdi, rax"], [282, "call sub_410E81"], [283, "mov eax, 0"], [284, "leave"], [285, "retn"]], "data_dep": [[7, 3], [8, 7], [11, 3], [12, 11], [13, 12], [13, 6], [14, 13], [15, 3], [16, 15], [17, 16], [18, 3], [19, 18], [19, 17], [21, 3], [22, 21], [23, 22], [25, 23], [25, 40], [26, 25], [27, 26], [28, 27], [29, 40], [29, 23], [30, 29], [31, 30], [31, 6], [32, 31], [33, 23], [33, 40], [34, 6], [35, 34], [36, 33], [36, 35], [38, 23], [38, 40], [39, 38], [40, 39], [41, 23], [41, 40], [42, 41], [43, 42], [44, 6], [45, 44], [46, 6], [47, 46], [47, 45], [48, 47], [50, 6], [51, 50], [54, 3], [55, 45], [55, 54], [56, 55], [57, 56], [60, 5], [61, 19], [61, 60], [61, 36], [61, 45], [62, 61], [63, 4], [64, 19], [64, 36], [64, 45], [64, 63], [65, 64], [65, 36], [65, 45], [65, 19], [66, 65], [67, 4], [68, 36], [68, 45], [68, 67], [68, 19], [69, 19], [69, 68], [69, 36], [69, 45], [70, 69], [71, 62], [72, 71], [75, 62], [76, 4], [78, 76], [80, 70], [81, 80], [82, 81], [83, 81], [84, 83], [86, 3], [87, 93], [87, 91], [87, 36], [87, 45], [87, 86], [87, 19], [88, 87], [89, 88], [90, 3], [91, 90], [91, 89], [92, 3], [93, 92], [94, 3], [95, 93], [95, 94], [96, 95], [97, 96], [98, 3], [99, 98], [99, 19], [99, 93], [99, 91], [99, 36], [99, 45], [100, 99], [101, 3], [102, 101], [103, 100], [104, 102], [106, 3], [107, 93], [107, 19], [107, 36], [107, 106], [107, 91], [107, 45], [108, 107], [109, 108], [110, 109], [111, 110], [112, 3], [113, 112], [114, 3], [115, 91], [115, 114], [115, 113], [116, 115], [117, 116], [118, 117], [119, 118], [120, 3], [121, 113], [121, 93], [121, 19], [121, 120], [121, 91], [121, 36], [121, 45], [122, 121], [123, 122], [124, 3], [125, 93], [125, 124], [125, 91], [125, 36], [125, 45], [125, 113], [125, 19], [126, 3], [127, 45], [127, 113], [127, 126], [127, 93], [127, 19], [127, 36], [127, 91], [128, 3], [131, 127], [132, 125], [134, 3], [135, 113], [135, 93], [135, 19], [135, 36], [135, 134], [135, 91], [135, 45], [136, 135], [137, 136], [138, 3], [139, 19], [139, 36], [139, 138], [139, 91], [139, 45], [139, 113], [139, 93], [140, 3], [141, 91], [141, 45], [141, 19], [141, 113], [141, 140], [141, 93], [141, 36], [142, 3], [144, 142], [145, 141], [146, 139], [148, 4], [149, 45], [149, 178], [149, 190], [149, 19], [149, 36], [149, 148], [150, 149], [151, 150], [152, 151], [152, 178], [152, 19], [152, 190], [152, 36], [152, 45], [153, 152], [154, 153], [155, 150], [156, 190], [156, 19], [156, 36], [156, 45], [156, 178], [156, 155], [157, 156], [158, 157], [159, 158], [160, 159], [161, 158], [162, 161], [163, 158], [164, 163], [165, 158], [166, 165], [168, 4], [169, 190], [169, 36], [169, 45], [169, 178], [169, 168], [169, 19], [170, 169], [171, 45], [171, 170], [171, 178], [171, 190], [171, 19], [171, 36], [172, 171], [173, 172], [174, 4], [175, 190], [175, 19], [175, 36], [175, 45], [175, 174], [175, 178], [176, 45], [176, 175], [176, 178], [176, 190], [176, 19], [176, 36], [177, 3], [178, 177], [178, 176], [180, 3], [182, 180], [186, 4], [187, 45], [187, 178], [187, 19], [187, 186], [187, 190], [187, 36], [188, 187], [188, 190], [188, 36], [188, 45], [188, 178], [188, 19], [189, 3], [190, 189], [190, 188], [192, 4], [193, 36], [193, 45], [193, 192], [193, 178], [193, 19], [193, 190], [194, 193], [195, 178], [195, 19], [195, 190], [195, 194], [195, 36], [195, 45], [196, 195], [197, 196], [198, 3], [200, 198], [209, 150], [210, 209], [210, 190], [210, 36], [210, 45], [210, 178], [210, 19], [211, 210], [213, 212], [213, 211], [214, 213], [215, 4], [216, 214], [217, 215], [219, 150], [220, 178], [220, 19], [220, 219], [220, 190], [220, 36], [220, 45], [221, 220], [222, 75], [222, 225], [223, 222], [223, 221], [224, 223], [225, 224], [226, 225], [226, 75], [227, 226], [228, 66], [229, 228], [230, 229], [231, 230], [232, 3], [233, 232], [236, 66], [237, 236], [238, 237], [239, 238], [240, 3], [242, 240], [251, 66], [252, 251], [253, 252], [254, 253], [259, 258], [260, 259], [261, 260], [264, 259], [265, 19], [265, 93], [265, 190], [265, 36], [265, 45], [265, 264], [265, 268], [265, 272], [265, 91], [265, 113], [265, 178], [266, 3], [267, 93], [267, 190], [267, 36], [267, 45], [267, 268], [267, 272], [267, 91], [267, 178], [267, 19], [267, 266], [267, 113], [268, 265], [268, 267], [269, 259], [270, 269], [270, 268], [271, 270], [272, 271], [273, 3], [274, 273], [274, 272], [274, 267], [275, 259], [276, 3], [277, 275], [278, 274], [281, 276], [285, 244], [285, 262], [285, 202], [285, 9], [285, 283], [285, 73], [285, 184]]}
|
void print_power_limit_msr(int cpu, unsigned long long msr, char *label)
{
fprintf(stderr, "cpu%d: %s: %sabled (%f Watts, %f sec, clamp %sabled)\n",
cpu, label,
((msr >> 15) & 1) ? "EN" : "DIS",
((msr >> 0) & 0x7FFF) * rapl_power_units,
(1.0 + (((msr >> 22) & 0x3)/4.0)) * (1 << ((msr >> 17) & 0x1F)) * rapl_time_units,
(((msr >> 16) & 1) ? "EN" : "DIS"));
return;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_406D50", "function_addr": 4222288, "binary_name": "cad4d22521742edf876040503bbe39b3ce719cb9e512e062ba388d649cba86a3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_4], edi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, [rbp+var_10]"], [7, "and eax, 10000h"], [8, "test rax, rax"], [9, "jz short loc_406D79"], [10, "mov r8d, offset aEn"], [11, "jmp short loc_406D7F"], [12, "mov r8d, offset aDis"], [13, "mov rax, [rbp+var_10]"], [14, "shr rax, 16h"], [15, "and eax, 3"], [16, "test rax, rax"], [17, "js short loc_406D9A"], [18, "pxor xmm0, xmm0"], [19, "cvtsi2sd xmm0, rax"], [20, "jmp short loc_406DB3"], [21, "mov rdx, rax"], [22, "shr rdx, 1"], [23, "and eax, 1"], [24, "or rdx, rax"], [25, "pxor xmm0, xmm0"], [26, "cvtsi2sd xmm0, rdx"], [27, "addsd xmm0, xmm0"], [28, "movsd xmm2, cs:qword_40AA40"], [29, "movapd xmm1, xmm0"], [30, "divsd xmm1, xmm2"], [31, "movsd xmm0, cs:qword_40AA18"], [32, "addsd xmm1, xmm0"], [33, "mov rax, [rbp+var_10]"], [34, "shr rax, 11h"], [35, "and eax, 1Fh"], [36, "mov edx, 1"], [37, "mov ecx, eax"], [38, "shl edx, cl"], [39, "mov eax, edx"], [40, "pxor xmm0, xmm0"], [41, "cvtsi2sd xmm0, eax"], [42, "mulsd xmm1, xmm0"], [43, "movsd xmm0, cs:qword_40D2C0"], [44, "movapd xmm2, xmm1"], [45, "mulsd xmm2, xmm0"], [46, "mov rax, [rbp+var_10]"], [47, "and eax, 7FFFh"], [48, "test rax, rax"], [49, "js short loc_406E1A"], [50, "pxor xmm0, xmm0"], [51, "cvtsi2sd xmm0, rax"], [52, "jmp short loc_406E33"], [53, "mov rdx, rax"], [54, "shr rdx, 1"], [55, "and eax, 1"], [56, "or rdx, rax"], [57, "pxor xmm0, xmm0"], [58, "cvtsi2sd xmm0, rdx"], [59, "addsd xmm0, xmm0"], [60, "movsd xmm1, cs:qword_40D2B0"], [61, "mulsd xmm0, xmm1"], [62, "movq rsi, xmm0"], [63, "mov rax, [rbp+var_10]"], [64, "and eax, 8000h"], [65, "test rax, rax"], [66, "jz short loc_406E59"], [67, "mov edi, offset aEn"], [68, "jmp short loc_406E5E"], [69, "mov edi, offset aDis"], [70, "mov rax, cs:stderr"], [71, "mov rcx, [rbp+var_18]"], [72, "mov edx, [rbp+var_4]"], [73, "mov r9, r8"], [74, "movapd xmm1, xmm2"], [75, "movq xmm0, rsi"], [76, "mov r8, rdi"], [77, "mov esi, offset aCpuDSSabledFWa"], [78, "mov rdi, rax"], [79, "mov eax, 2"], [80, "call _fprintf"], [81, "nop"], [82, "leave"], [83, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [9, 8], [13, 4], [14, 13], [15, 14], [16, 15], [17, 16], [19, 18], [19, 16], [21, 16], [22, 21], [23, 16], [24, 23], [24, 22], [26, 24], [26, 25], [27, 26], [29, 19], [29, 27], [30, 29], [30, 28], [32, 31], [32, 30], [33, 4], [34, 33], [35, 34], [37, 35], [38, 37], [38, 36], [39, 38], [41, 40], [41, 39], [42, 32], [42, 41], [44, 42], [45, 43], [45, 44], [46, 4], [47, 46], [48, 47], [49, 48], [51, 50], [51, 48], [53, 48], [54, 53], [55, 48], [56, 55], [56, 54], [58, 56], [58, 57], [59, 58], [61, 51], [61, 60], [61, 59], [62, 61], [63, 4], [64, 63], [65, 64], [66, 65], [71, 5], [72, 3], [73, 10], [73, 12], [74, 45], [75, 62], [76, 67], [76, 69], [78, 70], [83, 80]]}
|
enum interrupt
cpu_check_pending_interrupt(struct cpu* cpu) {
if (cpu->mode == MACHINE) {
if (((cpu_load_csr(cpu, MSTATUS) >> 3) & 1) == 0) {
return NONE;
}
} else if (cpu->mode == SUPERVISOR) {
if (((cpu_load_csr(cpu, SSTATUS) >> 1) & 1) == 0) {
return NONE;
}
}
uint64_t irq = 0;
if (uart_interrupting(cpu->bus->uart)) {
irq = UART_IRQ;
} else if (virtio_is_interrupting(cpu->bus->virtio)) {
bus_disk_access(cpu->bus);
irq = VIRTIO_IRQ;
}
if (irq != 0) {
bus_store(cpu->bus, PLIC_SCLAIM, 32, irq);
cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) | MIP_SEIP);
}
uint64_t pending = cpu_load_csr(cpu, MIE) & cpu_load_csr(cpu, MIP);
if (pending & MIP_MEIP) {
cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_MEIP);
return MACHINE_EXTERNAL_INTERRUPT;
}
if (pending & MIP_MSIP) {
cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_MSIP);
return MACHINE_SOFTWARE_INTERRUPT;
}
if (pending & MIP_MTIP) {
cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_MTIP);
return MACHINE_TIMER_INTERRUPT;
}
if (pending & MIP_SEIP) {
cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_SEIP);
return SUPERVISOR_EXTERNAL_INTERRUPT;
}
if (pending & MIP_SSIP) {
cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_SSIP);
return SUPERVISOR_SOFTWARE_INTERRUPT;
}
if (pending & MIP_STIP) {
cpu_store_csr(cpu, MIP, cpu_load_csr(cpu, MIP) & ~MIP_STIP);
return SUPERVISOR_TIMER_INTERRUPT;
}
return NONE;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404AA3", "function_addr": 4213411, "binary_name": "6a9bdf88723c83e033ecc1cddcd8b0ba2b221b47b7f7d0d52a6cb645030822e1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 28h"], [4, "mov [rbp+var_28], rdi"], [5, "mov rax, [rbp+var_28]"], [6, "mov eax, [rax+8108h]"], [7, "cmp eax, 3"], [8, "jnz short loc_404AE2"], [9, "mov rax, [rbp+var_28]"], [10, "mov esi, 300h"], [11, "mov rdi, rax"], [12, "call sub_4026B2"], [13, "and eax, 8"], [14, "test rax, rax"], [15, "jnz short loc_404B14"], [16, "mov eax, 0FFFFFFFFh"], [17, "jmp loc_404D6E"], [18, "mov rax, [rbp+var_28]"], [19, "mov eax, [rax+8108h]"], [20, "cmp eax, 1"], [21, "jnz short loc_404B14"], [22, "mov rax, [rbp+var_28]"], [23, "mov esi, 100h"], [24, "mov rdi, rax"], [25, "call sub_4026B2"], [26, "and eax, 2"], [27, "test rax, rax"], [28, "jnz short loc_404B14"], [29, "mov eax, 0FFFFFFFFh"], [30, "jmp loc_404D6E"], [31, "mov [rbp+var_18], 0"], [32, "mov rax, [rbp+var_28]"], [33, "mov rax, [rax+8110h]"], [34, "mov rax, [rax+18h]"], [35, "mov rdi, rax"], [36, "call sub_4014F8"], [37, "test al, al"], [38, "jz short loc_404B41"], [39, "mov [rbp+var_18], 0Ah"], [40, "jmp short loc_404B77"], [41, "mov rax, [rbp+var_28]"], [42, "mov rax, [rax+8110h]"], [43, "mov rax, [rax+20h]"], [44, "mov rdi, rax"], [45, "call sub_40551F"], [46, "test al, al"], [47, "jz short loc_404B77"], [48, "mov rax, [rbp+var_28]"], [49, "mov rax, [rax+8110h]"], [50, "mov rdi, rax"], [51, "call sub_401E7D"], [52, "mov [rbp+var_18], 1"], [53, "cmp [rbp+var_18], 0"], [54, "jz short loc_404BCA"], [55, "mov rax, [rbp+var_28]"], [56, "mov rax, [rax+8110h]"], [57, "mov rdx, [rbp+var_18]"], [58, "mov rcx, rdx"], [59, "mov edx, 20h "], [60, "mov esi, 0C201004h"], [61, "mov rdi, rax"], [62, "call sub_401D68"], [63, "mov rax, [rbp+var_28]"], [64, "mov esi, 344h"], [65, "mov rdi, rax"], [66, "call sub_4026B2"], [67, "or ah, 2"], [68, "mov rdx, rax"], [69, "mov rax, [rbp+var_28]"], [70, "mov esi, 344h"], [71, "mov rdi, rax"], [72, "call sub_4026F9"], [73, "mov rax, [rbp+var_28]"], [74, "mov esi, 304h"], [75, "mov rdi, rax"], [76, "call sub_4026B2"], [77, "mov rbx, rax"], [78, "mov rax, [rbp+var_28]"], [79, "mov esi, 344h"], [80, "mov rdi, rax"], [81, "call sub_4026B2"], [82, "and rax, rbx"], [83, "mov [rbp+var_20], rax"], [84, "mov rax, [rbp+var_20]"], [85, "and eax, 800h"], [86, "test rax, rax"], [87, "jz short loc_404C36"], [88, "mov rax, [rbp+var_28]"], [89, "mov esi, 344h"], [90, "mov rdi, rax"], [91, "call sub_4026B2"], [92, "and ah, 0F7h"], [93, "mov rdx, rax"], [94, "mov rax, [rbp+var_28]"], [95, "mov esi, 344h"], [96, "mov rdi, rax"], [97, "call sub_4026F9"], [98, "mov eax, 0Bh"], [99, "jmp loc_404D6E"], [100, "mov rax, [rbp+var_20]"], [101, "and eax, 8"], [102, "test rax, rax"], [103, "jz short loc_404C75"], [104, "mov rax, [rbp+var_28]"], [105, "mov esi, 344h"], [106, "mov rdi, rax"], [107, "call sub_4026B2"], [108, "and rax, 0FFFFFFFFFFFFFFF7h"], [109, "mov rdx, rax"], [110, "mov rax, [rbp+var_28]"], [111, "mov esi, 344h"], [112, "mov rdi, rax"], [113, "call sub_4026F9"], [114, "mov eax, 3"], [115, "jmp loc_404D6E"], [116, "mov rax, [rbp+var_20]"], [117, "and eax, 80h"], [118, "test rax, rax"], [119, "jz short loc_404CB4"], [120, "mov rax, [rbp+var_28]"], [121, "mov esi, 344h"], [122, "mov rdi, rax"], [123, "call sub_4026B2"], [124, "and al, 7Fh"], [125, "mov rdx, rax"], [126, "mov rax, [rbp+var_28]"], [127, "mov esi, 344h"], [128, "mov rdi, rax"], [129, "call sub_4026F9"], [130, "mov eax, 7"], [131, "jmp loc_404D6E"], [132, "mov rax, [rbp+var_20]"], [133, "and eax, 200h"], [134, "test rax, rax"], [135, "jz short loc_404CF1"], [136, "mov rax, [rbp+var_28]"], [137, "mov esi, 344h"], [138, "mov rdi, rax"], [139, "call sub_4026B2"], [140, "and ah, 0FDh"], [141, "mov rdx, rax"], [142, "mov rax, [rbp+var_28]"], [143, "mov esi, 344h"], [144, "mov rdi, rax"], [145, "call sub_4026F9"], [146, "mov eax, 9"], [147, "jmp short loc_404D6E"], [148, "mov rax, [rbp+var_20]"], [149, "and eax, 2"], [150, "test rax, rax"], [151, "jz short loc_404D2D"], [152, "mov rax, [rbp+var_28]"], [153, "mov esi, 344h"], [154, "mov rdi, rax"], [155, "call sub_4026B2"], [156, "and rax, 0FFFFFFFFFFFFFFFDh"], [157, "mov rdx, rax"], [158, "mov rax, [rbp+var_28]"], [159, "mov esi, 344h"], [160, "mov rdi, rax"], [161, "call sub_4026F9"], [162, "mov eax, 1"], [163, "jmp short loc_404D6E"], [164, "mov rax, [rbp+var_20]"], [165, "and eax, 20h"], [166, "test rax, rax"], [167, "jz short loc_404D69"], [168, "mov rax, [rbp+var_28]"], [169, "mov esi, 344h"], [170, "mov rdi, rax"], [171, "call sub_4026B2"], [172, "and rax, 0FFFFFFFFFFFFFFDFh"], [173, "mov rdx, rax"], [174, "mov rax, [rbp+var_28]"], [175, "mov esi, 344h"], [176, "mov rdi, rax"], [177, "call sub_4026F9"], [178, "mov eax, 5"], [179, "jmp short loc_404D6E"], [180, "mov eax, 0FFFFFFFFh"], [181, "mov rbx, [rbp+var_8]"], [182, "leave"], [183, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 7], [9, 4], [11, 9], [13, 12], [14, 13], [15, 14], [18, 4], [19, 18], [20, 19], [21, 20], [22, 4], [24, 22], [26, 25], [27, 26], [28, 27], [32, 4], [33, 32], [34, 33], [35, 34], [37, 36], [38, 37], [41, 4], [42, 41], [43, 42], [44, 43], [46, 45], [47, 46], [48, 4], [49, 48], [50, 49], [53, 52], [53, 31], [53, 39], [54, 53], [55, 4], [56, 55], [57, 52], [57, 31], [57, 39], [58, 57], [61, 56], [63, 4], [65, 63], [67, 66], [68, 67], [69, 4], [71, 69], [73, 4], [75, 73], [77, 76], [78, 4], [80, 78], [82, 81], [82, 77], [83, 82], [84, 83], [85, 84], [86, 85], [87, 86], [88, 4], [90, 88], [92, 91], [93, 92], [94, 4], [96, 94], [100, 83], [101, 100], [102, 101], [103, 102], [104, 4], [106, 104], [108, 107], [109, 108], [110, 4], [112, 110], [116, 83], [117, 116], [118, 117], [119, 118], [120, 4], [122, 120], [124, 123], [125, 124], [126, 4], [128, 126], [132, 83], [133, 132], [134, 133], [135, 134], [136, 4], [138, 136], [140, 139], [141, 140], [142, 4], [144, 142], [148, 83], [149, 148], [150, 149], [151, 150], [152, 4], [154, 152], [156, 155], [157, 156], [158, 4], [160, 158], [164, 83], [165, 164], [166, 165], [167, 166], [168, 4], [170, 168], [172, 171], [173, 172], [174, 4], [176, 174], [183, 114], [183, 178], [183, 16], [183, 98], [183, 162], [183, 180], [183, 146], [183, 130], [183, 29]]}
|
bool bactext_segmentation_index(
const char *search_name,
unsigned *found_index)
{
return indtext_by_istring(bacnet_segmentation_names, search_name,
found_index);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40D872", "function_addr": 4249714, "binary_name": "e42855165e9723a7b478e0600600c036fe09fc1e9321b9dc0d0f997dc06f1011.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rdx, [rbp+var_10]"], [6, "mov rax, [rbp+var_8]"], [7, "mov rsi, rax"], [8, "mov edi, offset unk_42DE40"], [9, "call sub_40EECF"], [10, "leave"], [11, "retn"]], "data_dep": [[5, 4], [6, 3], [7, 6], [11, 9]]}
|
static int cmp_uint32(const void *a_, const void *b_)
{
uint32_t a = *((uint32_t *)a_);
uint32_t b = *((uint32_t *)b_);
return (a < b) ? -1 : (a != b);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45D774", "function_addr": 4577140, "binary_name": "3ad82ad3f14323775608d9056249a760fcf01df764d44cee7cbdadde50e4cdd7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_20], rsi"], [4, "mov rax, [rbp+var_18]"], [5, "mov eax, [rax]"], [6, "mov [rbp+var_4], eax"], [7, "mov rax, [rbp+var_20]"], [8, "mov eax, [rax]"], [9, "mov [rbp+var_8], eax"], [10, "mov eax, [rbp+var_4]"], [11, "cmp eax, [rbp+var_8]"], [12, "jb short loc_45D7A8"], [13, "mov eax, [rbp+var_4]"], [14, "cmp eax, [rbp+var_8]"], [15, "setnz al"], [16, "movzx eax, al"], [17, "jmp short loc_45D7AD"], [18, "mov eax, 0FFFFFFFFh"], [19, "pop rbp"], [20, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 5], [7, 3], [8, 7], [9, 8], [10, 6], [11, 10], [11, 9], [12, 11], [13, 6], [14, 13], [14, 9], [15, 14], [15, 13], [16, 15], [19, 0], [20, 16], [20, 18]]}
|
static int s2n_cbc_cipher_3des_encrypt(struct s2n_session_key *key, struct s2n_blob *iv, struct s2n_blob *in, struct s2n_blob *out)
{
POSIX_ENSURE_GTE(out->size, in->size);
POSIX_GUARD_OSSL(EVP_EncryptInit_ex(key->evp_cipher_ctx, NULL, NULL, NULL, iv->data), S2N_ERR_KEY_INIT);
/* len is set by EVP_EncryptUpdate and checked post operation */
int len = 0;
POSIX_GUARD_OSSL(EVP_EncryptUpdate(key->evp_cipher_ctx, out->data, &len, in->data, in->size), S2N_ERR_ENCRYPT);
POSIX_ENSURE((int64_t) len == (int64_t) in->size, S2N_ERR_ENCRYPT);
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45AB25", "function_addr": 4565797, "binary_name": "7421faa8c444aeca9266add08f45c75a4f43aebd993f880cd35dd964f63fdfb2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_30], rcx"], [7, "mov rax, fs:28h"], [8, "mov [rbp+var_8], rax"], [9, "xor eax, eax"], [10, "mov rax, [rbp+var_30]"], [11, "mov edx, [rax+8]"], [12, "mov rax, [rbp+var_28]"], [13, "mov eax, [rax+8]"], [14, "cmp edx, eax"], [15, "jnb short loc_45AB9D"], [16, "mov rax, fs:0"], [17, "lea rax, [rax-18h]"], [18, "lea rdx, aErrorEncounter_1513"], [19, "mov [rax], rdx"], [20, "mov rax, fs:0"], [21, "lea rax, [rax-20h]"], [22, "mov dword ptr [rax], 1800000Ah"], [23, "call sub_46D9B7"], [24, "mov eax, 0FFFFFFFFh"], [25, "jmp loc_45ACD3"], [26, "mov rax, [rbp+var_20]"], [27, "mov rdx, [rax]"], [28, "mov rax, [rbp+var_18]"], [29, "mov rax, [rax]"], [30, "mov r8, rdx"], [31, "mov ecx, 0"], [32, "mov edx, 0"], [33, "mov esi, 0"], [34, "mov rdi, rax"], [35, "call _EVP_EncryptInit_ex"], [36, "cmp eax, 1"], [37, "jz short loc_45AC09"], [38, "mov rax, fs:0"], [39, "lea rax, [rax-18h]"], [40, "lea rdx, aErrorEncounter_1514"], [41, "mov [rax], rdx"], [42, "mov rax, fs:0"], [43, "lea rax, [rax-20h]"], [44, "mov dword ptr [rax], 14000003h"], [45, "call sub_46D9B7"], [46, "mov eax, 0FFFFFFFFh"], [47, "jmp loc_45ACD3"], [48, "mov [rbp+var_C], 0"], [49, "mov rax, [rbp+var_28]"], [50, "mov eax, [rax+8]"], [51, "mov edi, eax"], [52, "mov rax, [rbp+var_28]"], [53, "mov rcx, [rax]"], [54, "mov rax, [rbp+var_30]"], [55, "mov rsi, [rax]"], [56, "mov rax, [rbp+var_18]"], [57, "mov rax, [rax]"], [58, "lea rdx, [rbp+var_C]"], [59, "mov r8d, edi"], [60, "mov rdi, rax"], [61, "call _EVP_EncryptUpdate"], [62, "cmp eax, 1"], [63, "jz short loc_45AC7E"], [64, "mov rax, fs:0"], [65, "lea rax, [rax-18h]"], [66, "lea rdx, aErrorEncounter_1515"], [67, "mov [rax], rdx"], [68, "mov rax, fs:0"], [69, "lea rax, [rax-20h]"], [70, "mov dword ptr [rax], 14000000h"], [71, "call sub_46D9B7"], [72, "mov eax, 0FFFFFFFFh"], [73, "jmp short loc_45ACD3"], [74, "mov eax, [rbp+var_C]"], [75, "movsxd rdx, eax"], [76, "mov rax, [rbp+var_28]"], [77, "mov eax, [rax+8]"], [78, "mov eax, eax"], [79, "cmp rdx, rax"], [80, "jz short loc_45ACCE"], [81, "mov rax, fs:0"], [82, "lea rax, [rax-18h]"], [83, "lea rdx, aErrorEncounter_1516"], [84, "mov [rax], rdx"], [85, "mov rax, fs:0"], [86, "lea rax, [rax-20h]"], [87, "mov dword ptr [rax], 14000000h"], [88, "call sub_46D9B7"], [89, "mov eax, 0FFFFFFFFh"], [90, "jmp short loc_45ACD3"], [91, "mov eax, 0"], [92, "mov rcx, [rbp+var_8]"], [93, "sub rcx, fs:28h"], [94, "jz short locret_45ACE7"], [95, "call ___stack_chk_fail"], [96, "leave"], [97, "retn"]], "data_dep": [[8, 7], [10, 6], [11, 10], [12, 5], [13, 12], [14, 13], [14, 11], [15, 14], [17, 16], [18, 11], [19, 18], [19, 17], [21, 19], [21, 20], [22, 21], [26, 4], [27, 26], [28, 3], [29, 28], [30, 27], [34, 29], [36, 35], [37, 36], [39, 38], [40, 32], [41, 40], [41, 39], [43, 42], [43, 41], [44, 43], [49, 5], [50, 49], [51, 50], [52, 5], [53, 52], [54, 6], [55, 54], [56, 3], [57, 56], [58, 48], [58, 32], [59, 51], [60, 57], [62, 61], [63, 62], [65, 64], [66, 58], [67, 65], [67, 66], [69, 68], [69, 67], [70, 69], [74, 48], [75, 74], [76, 5], [77, 76], [78, 77], [79, 75], [79, 78], [80, 79], [82, 81], [83, 75], [84, 83], [84, 82], [86, 84], [86, 85], [87, 86], [92, 8], [93, 92], [94, 93], [97, 72], [97, 89], [97, 46], [97, 24], [97, 91]]}
|
void print_SAT_Info_Help(bool shortHelp)
{
printf("\t--%s\n", SAT_INFO_LONG_OPT_STRING);
if (!shortHelp)
{
printf("\t\tDisplays SATA device information on any interface\n");
printf("\t\tusing both SCSI Inquiry / VPD / Log reported data\n");
printf("\t\t(translated according to SAT) and the ATA Identify / Log\n");
printf("\t\treported data.\n\n");
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B018", "function_addr": 4239384, "binary_name": "a4d54d05beb18ad1b4f231241af9abd05a83fae7396badbcb82c4abe627f13cc.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov eax, edi"], [4, "mov [rbp+var_4], al"], [5, "mov esi, offset aSatinfo_0"], [6, "mov edi, offset aS_23"], [7, "mov eax, 0"], [8, "call _printf"], [9, "movzx eax, [rbp+var_4]"], [10, "xor eax, 1"], [11, "test al, al"], [12, "jz short loc_40B06C"], [13, "mov edi, offset aDisplaysSataDe"], [14, "call _puts"], [15, "mov edi, offset aUsingBothScsiI"], [16, "call _puts"], [17, "mov edi, offset aTranslatedAcco"], [18, "call _puts"], [19, "mov edi, offset aReportedData"], [20, "call _puts"], [21, "nop"], [22, "leave"], [23, "retn"]], "data_dep": [[4, 3], [9, 4], [10, 9], [11, 10], [12, 11], [23, 11], [23, 20]]}
|
static int bc_idx_to_atom(BCReaderState *s, JSAtom *patom, uint32_t idx)
{
JSAtom atom;
if (__JS_AtomIsTaggedInt(idx)) {
atom = idx;
} else if (idx < s->first_atom) {
atom = JS_DupAtom(s->ctx, idx);
} else {
idx -= s->first_atom;
if (idx >= s->idx_to_atom_count) {
JS_ThrowSyntaxError(s->ctx, "invalid atom index (pos=%u)",
(unsigned int)(s->ptr - s->buf_start));
*patom = JS_ATOM_NULL;
return s->error_state = -1;
}
atom = JS_DupAtom(s->ctx, s->idx_to_atom[idx]);
}
*patom = atom;
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_451768", "function_addr": 4527976, "binary_name": "bff35f3b7ff0bbf5e5e52ae6499ba776520880a991546f99df7df7f4351bfb13.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_24], edx"], [6, "mov eax, [rbp+var_24]"], [7, "mov edi, eax"], [8, "call sub_406D8E"], [9, "test eax, eax"], [10, "jz short loc_451794"], [11, "mov eax, [rbp+var_24]"], [12, "mov [rbp+var_4], eax"], [13, "jmp loc_451849"], [14, "mov rax, [rbp+var_18]"], [15, "mov eax, [rax+20h]"], [16, "cmp [rbp+var_24], eax"], [17, "jnb short loc_4517BC"], [18, "mov rax, [rbp+var_18]"], [19, "mov rax, [rax]"], [20, "mov edx, [rbp+var_24]"], [21, "mov esi, edx"], [22, "mov rdi, rax"], [23, "call sub_4075D4"], [24, "mov [rbp+var_4], eax"], [25, "jmp loc_451849"], [26, "mov rax, [rbp+var_18]"], [27, "mov eax, [rax+20h]"], [28, "sub [rbp+var_24], eax"], [29, "mov rax, [rbp+var_18]"], [30, "mov eax, [rax+24h]"], [31, "cmp [rbp+var_24], eax"], [32, "jb short loc_451821"], [33, "mov rax, [rbp+var_18]"], [34, "mov rdx, [rax+10h]"], [35, "mov rax, [rbp+var_18]"], [36, "mov rcx, [rax+8]"], [37, "mov rax, rdx"], [38, "sub rax, rcx"], [39, "mov edx, eax"], [40, "mov rax, [rbp+var_18]"], [41, "mov rax, [rax]"], [42, "mov esi, offset aInvalidAtomInd"], [43, "mov rdi, rax"], [44, "mov eax, 0"], [45, "call sub_411A3F"], [46, "mov rax, [rbp+var_20]"], [47, "mov dword ptr [rax], 0"], [48, "mov rax, [rbp+var_18]"], [49, "mov dword ptr [rax+30h], 0FFFFFFFFh"], [50, "mov rax, [rbp+var_18]"], [51, "mov eax, [rax+30h]"], [52, "jmp short locret_451857"], [53, "mov rax, [rbp+var_18]"], [54, "mov rdx, [rax+28h]"], [55, "mov eax, [rbp+var_24]"], [56, "shl rax, 2"], [57, "add rax, rdx"], [58, "mov edx, [rax]"], [59, "mov rax, [rbp+var_18]"], [60, "mov rax, [rax]"], [61, "mov esi, edx"], [62, "mov rdi, rax"], [63, "call sub_4075D4"], [64, "mov [rbp+var_4], eax"], [65, "mov rax, [rbp+var_20]"], [66, "mov edx, [rbp+var_4]"], [67, "mov [rax], edx"], [68, "mov eax, 0"], [69, "leave"], [70, "retn"]], "data_dep": [[6, 5], [7, 6], [9, 8], [10, 9], [11, 5], [12, 11], [14, 3], [15, 14], [16, 15], [16, 5], [17, 16], [18, 3], [19, 18], [20, 5], [21, 20], [22, 19], [24, 23], [26, 3], [27, 26], [28, 27], [28, 5], [29, 3], [30, 29], [31, 28], [31, 30], [32, 31], [33, 3], [34, 33], [35, 3], [36, 35], [37, 34], [38, 37], [38, 36], [39, 38], [40, 3], [41, 40], [43, 41], [46, 4], [47, 46], [48, 3], [49, 48], [50, 3], [51, 50], [51, 49], [53, 3], [54, 53], [55, 28], [56, 55], [57, 54], [57, 56], [58, 57], [59, 3], [60, 59], [61, 58], [62, 60], [64, 63], [65, 4], [66, 64], [66, 12], [66, 24], [67, 65], [67, 66], [70, 51], [70, 68]]}
|
PJ_DEF(void) pj_stun_sock_cfg_default(pj_stun_sock_cfg *cfg)
{
pj_bzero(cfg, sizeof(*cfg));
cfg->max_pkt_size = PJ_STUN_SOCK_PKT_LEN;
cfg->async_cnt = 1;
cfg->ka_interval = PJ_STUN_KEEP_ALIVE_SEC;
cfg->qos_type = PJ_QOS_TYPE_BEST_EFFORT;
cfg->qos_ignore_error = PJ_TRUE;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B545", "function_addr": 4240709, "binary_name": "24a2637591f28727b21989feacd6e39416a2c11ff374047913dc0e05514c7835.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov rax, [rbp+var_8]"], [5, "mov esi, 50h "], [6, "mov rdi, rax"], [7, "call sub_40B38B"], [8, "mov rax, [rbp+var_8]"], [9, "mov dword ptr [rax+8], 7D0h"], [10, "mov rax, [rbp+var_8]"], [11, "mov dword ptr [rax+0Ch], 1"], [12, "mov rax, [rbp+var_8]"], [13, "mov dword ptr [rax+30h], 0Fh"], [14, "mov rax, [rbp+var_8]"], [15, "mov dword ptr [rax+34h], 0"], [16, "mov rax, [rbp+var_8]"], [17, "mov dword ptr [rax+40h], 1"], [18, "nop"], [19, "leave"], [20, "retn"]], "data_dep": [[4, 3], [6, 4], [8, 3], [9, 8], [10, 3], [11, 10], [12, 3], [13, 12], [14, 3], [15, 14], [16, 3], [17, 16], [20, 16]]}
|
static int diff_get_patch_id(struct diff_options *options, unsigned char *sha1)
{
struct diff_queue_struct *q = &diff_queued_diff;
int i;
git_SHA_CTX ctx;
struct patch_id_t data;
char buffer[PATH_MAX * 4 + 20];
git_SHA1_Init(&ctx);
memset(&data, 0, sizeof(struct patch_id_t));
data.ctx = &ctx;
for (i = 0; i < q->nr; i++) {
xpparam_t xpp;
xdemitconf_t xecfg;
mmfile_t mf1, mf2;
struct diff_filepair *p = q->queue[i];
int len1, len2;
memset(&xpp, 0, sizeof(xpp));
memset(&xecfg, 0, sizeof(xecfg));
if (p->status == 0)
return error("internal diff status error");
if (p->status == DIFF_STATUS_UNKNOWN)
continue;
if (diff_unmodified_pair(p))
continue;
if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) ||
(DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode)))
continue;
if (DIFF_PAIR_UNMERGED(p))
continue;
diff_fill_sha1_info(p->one);
diff_fill_sha1_info(p->two);
if (fill_mmfile(&mf1, p->one) < 0 ||
fill_mmfile(&mf2, p->two) < 0)
return error("unable to read files to diff");
len1 = remove_space(p->one->path, strlen(p->one->path));
len2 = remove_space(p->two->path, strlen(p->two->path));
if (p->one->mode == 0)
len1 = snprintf(buffer, sizeof(buffer),
"diff--gita/%.*sb/%.*s"
"newfilemode%06o"
"---/dev/null"
"+++b/%.*s",
len1, p->one->path,
len2, p->two->path,
p->two->mode,
len2, p->two->path);
else if (p->two->mode == 0)
len1 = snprintf(buffer, sizeof(buffer),
"diff--gita/%.*sb/%.*s"
"deletedfilemode%06o"
"---a/%.*s"
"+++/dev/null",
len1, p->one->path,
len2, p->two->path,
p->one->mode,
len1, p->one->path);
else
len1 = snprintf(buffer, sizeof(buffer),
"diff--gita/%.*sb/%.*s"
"---a/%.*s"
"+++b/%.*s",
len1, p->one->path,
len2, p->two->path,
len1, p->one->path,
len2, p->two->path);
git_SHA1_Update(&ctx, buffer, len1);
if (diff_filespec_is_binary(p->one) ||
diff_filespec_is_binary(p->two)) {
git_SHA1_Update(&ctx, sha1_to_hex(p->one->sha1), 40);
git_SHA1_Update(&ctx, sha1_to_hex(p->two->sha1), 40);
continue;
}
xpp.flags = 0;
xecfg.ctxlen = 3;
xecfg.flags = 0;
xdi_diff_outf(&mf1, &mf2, patch_id_consume, &data,
&xpp, &xecfg);
}
git_SHA1_Final(sha1, &ctx);
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_47643C", "function_addr": 4678716, "binary_name": "8170503cd1918ecb11237a85c61d9be0cd1209d60b0c8b0e2fb9b8fe47d16590.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 4120h"], [3, "mov [rbp+var_4118], rdi"], [4, "mov [rbp+var_4120], rsi"], [5, "mov [rbp+var_10], offset qword_524900"], [6, "lea rax, [rbp+var_80]"], [7, "mov rdi, rax"], [8, "call _SHA1_Init"], [9, "lea rax, [rbp+s]"], [10, "mov edx, 10h"], [11, "mov esi, 0"], [12, "mov rdi, rax"], [13, "call _memset"], [14, "lea rax, [rbp+var_80]"], [15, "mov [rbp+s], rax"], [16, "mov [rbp+var_4], 0"], [17, "jmp loc_4768C9"], [18, "mov rax, [rbp+var_10]"], [19, "mov rdx, [rax]"], [20, "mov eax, [rbp+var_4]"], [21, "cdqe"], [22, "shl rax, 3"], [23, "add rax, rdx"], [24, "mov rax, [rax]"], [25, "mov [rbp+var_18], rax"], [26, "lea rax, [rbp+var_40B8]"], [27, "mov edx, 8"], [28, "mov esi, 0"], [29, "mov rdi, rax"], [30, "call _memset"], [31, "lea rax, [rbp+var_4110]"], [32, "mov edx, 30h "], [33, "mov esi, 0"], [34, "mov rdi, rax"], [35, "call _memset"], [36, "mov rax, [rbp+var_18]"], [37, "movzx eax, byte ptr [rax+12h]"], [38, "test al, al"], [39, "jnz short loc_47650A"], [40, "mov edi, offset aInternalDiffSt"], [41, "mov eax, 0"], [42, "call error"], [43, "mov eax, 0FFFFFFFFh"], [44, "jmp locret_4768F4"], [45, "mov rax, [rbp+var_18]"], [46, "movzx eax, byte ptr [rax+12h]"], [47, "cmp al, 58h "], [48, "jz loc_4768BB"], [49, "mov rax, [rbp+var_18]"], [50, "mov rdi, rax"], [51, "call sub_475975"], [52, "test eax, eax"], [53, "jnz loc_4768BE"], [54, "mov rax, [rbp+var_18]"], [55, "mov rax, [rax]"], [56, "movzx eax, word ptr [rax+40h]"], [57, "test ax, ax"], [58, "jz short loc_47655C"], [59, "mov rax, [rbp+var_18]"], [60, "mov rax, [rax]"], [61, "movzx eax, word ptr [rax+40h]"], [62, "movzx eax, ax"], [63, "and eax, 0F000h"], [64, "cmp eax, 4000h"], [65, "jz loc_4768C1"], [66, "mov rax, [rbp+var_18]"], [67, "mov rax, [rax+8]"], [68, "movzx eax, word ptr [rax+40h]"], [69, "test ax, ax"], [70, "jz short loc_47658C"], [71, "mov rax, [rbp+var_18]"], [72, "mov rax, [rax+8]"], [73, "movzx eax, word ptr [rax+40h]"], [74, "movzx eax, ax"], [75, "and eax, 0F000h"], [76, "cmp eax, 4000h"], [77, "jz loc_4768C1"], [78, "mov rax, [rbp+var_18]"], [79, "movzx eax, byte ptr [rax+13h]"], [80, "and eax, 4"], [81, "test al, al"], [82, "jnz loc_4768C4"], [83, "mov rax, [rbp+var_18]"], [84, "mov rax, [rax]"], [85, "mov rdi, rax"], [86, "call sub_472725"], [87, "mov rax, [rbp+var_18]"], [88, "mov rax, [rax+8]"], [89, "mov rdi, rax"], [90, "call sub_472725"], [91, "mov rax, [rbp+var_18]"], [92, "mov rdx, [rax]"], [93, "lea rax, [rbp+var_40D0]"], [94, "mov rsi, rdx"], [95, "mov rdi, rax"], [96, "call sub_46AEE0"], [97, "test eax, eax"], [98, "js short loc_4765F9"], [99, "mov rax, [rbp+var_18]"], [100, "mov rdx, [rax+8]"], [101, "lea rax, [rbp+var_40E0]"], [102, "mov rsi, rdx"], [103, "mov rdi, rax"], [104, "call sub_46AEE0"], [105, "test eax, eax"], [106, "jns short loc_476612"], [107, "mov edi, offset aUnableToReadFi"], [108, "mov eax, 0"], [109, "call error"], [110, "mov eax, 0FFFFFFFFh"], [111, "jmp locret_4768F4"], [112, "mov rax, [rbp+var_18]"], [113, "mov rax, [rax]"], [114, "mov rax, [rax+18h]"], [115, "mov rdi, rax"], [116, "call _strlen"], [117, "mov edx, eax"], [118, "mov rax, [rbp+var_18]"], [119, "mov rax, [rax]"], [120, "mov rax, [rax+18h]"], [121, "mov esi, edx"], [122, "mov rdi, rax"], [123, "call sub_476352"], [124, "mov [rbp+var_8], eax"], [125, "mov rax, [rbp+var_18]"], [126, "mov rax, [rax+8]"], [127, "mov rax, [rax+18h]"], [128, "mov rdi, rax"], [129, "call _strlen"], [130, "mov edx, eax"], [131, "mov rax, [rbp+var_18]"], [132, "mov rax, [rax+8]"], [133, "mov rax, [rax+18h]"], [134, "mov esi, edx"], [135, "mov rdi, rax"], [136, "call sub_476352"], [137, "mov [rbp+var_1C], eax"], [138, "mov rax, [rbp+var_18]"], [139, "mov rax, [rax]"], [140, "movzx eax, word ptr [rax+40h]"], [141, "test ax, ax"], [142, "jnz short loc_4766EA"], [143, "mov rax, [rbp+var_18]"], [144, "mov rax, [rax+8]"], [145, "mov rdi, [rax+18h]"], [146, "mov rax, [rbp+var_18]"], [147, "mov rax, [rax+8]"], [148, "movzx eax, word ptr [rax+40h]"], [149, "movzx esi, ax"], [150, "mov rax, [rbp+var_18]"], [151, "mov rax, [rax+8]"], [152, "mov rcx, [rax+18h]"], [153, "mov rax, [rbp+var_18]"], [154, "mov rax, [rax]"], [155, "mov r8, [rax+18h]"], [156, "mov r9d, [rbp+var_1C]"], [157, "mov edx, [rbp+var_8]"], [158, "lea rax, [rbp+var_40B0]"], [159, "push rdi"], [160, "mov edi, [rbp+var_1C]"], [161, "push rdi"], [162, "push rsi"], [163, "push rcx"], [164, "mov ecx, edx"], [165, "mov edx, offset aDiffGitaSbSnew"], [166, "mov esi, 4014h"], [167, "mov rdi, rax"], [168, "mov eax, 0"], [169, "call _snprintf"], [170, "add rsp, 20h"], [171, "mov [rbp+var_8], eax"], [172, "jmp loc_4767CD"], [173, "mov rax, [rbp+var_18]"], [174, "mov rax, [rax+8]"], [175, "movzx eax, word ptr [rax+40h]"], [176, "test ax, ax"], [177, "jnz short loc_476762"], [178, "mov rax, [rbp+var_18]"], [179, "mov rax, [rax]"], [180, "mov rdi, [rax+18h]"], [181, "mov rax, [rbp+var_18]"], [182, "mov rax, [rax]"], [183, "movzx eax, word ptr [rax+40h]"], [184, "movzx esi, ax"], [185, "mov rax, [rbp+var_18]"], [186, "mov rax, [rax+8]"], [187, "mov rcx, [rax+18h]"], [188, "mov rax, [rbp+var_18]"], [189, "mov rax, [rax]"], [190, "mov r8, [rax+18h]"], [191, "mov r9d, [rbp+var_1C]"], [192, "mov edx, [rbp+var_8]"], [193, "lea rax, [rbp+var_40B0]"], [194, "push rdi"], [195, "mov edi, [rbp+var_8]"], [196, "push rdi"], [197, "push rsi"], [198, "push rcx"], [199, "mov ecx, edx"], [200, "mov edx, offset aDiffGitaSbSdel"], [201, "mov esi, 4014h"], [202, "mov rdi, rax"], [203, "mov eax, 0"], [204, "call _snprintf"], [205, "add rsp, 20h"], [206, "mov [rbp+var_8], eax"], [207, "jmp short loc_4767CD"], [208, "mov rax, [rbp+var_18]"], [209, "mov rax, [rax+8]"], [210, "mov rdi, [rax+18h]"], [211, "mov rax, [rbp+var_18]"], [212, "mov rax, [rax]"], [213, "mov rsi, [rax+18h]"], [214, "mov rax, [rbp+var_18]"], [215, "mov rax, [rax+8]"], [216, "mov rcx, [rax+18h]"], [217, "mov rax, [rbp+var_18]"], [218, "mov rax, [rax]"], [219, "mov r8, [rax+18h]"], [220, "mov r9d, [rbp+var_1C]"], [221, "mov edx, [rbp+var_8]"], [222, "lea rax, [rbp+var_40B0]"], [223, "sub rsp, 8"], [224, "push rdi"], [225, "mov edi, [rbp+var_1C]"], [226, "push rdi"], [227, "push rsi"], [228, "mov esi, [rbp+var_8]"], [229, "push rsi"], [230, "push rcx"], [231, "mov ecx, edx"], [232, "mov edx, offset aDiffGitaSbSASB"], [233, "mov esi, 4014h"], [234, "mov rdi, rax"], [235, "mov eax, 0"], [236, "call _snprintf"], [237, "add rsp, 30h"], [238, "mov [rbp+var_8], eax"], [239, "mov eax, [rbp+var_8]"], [240, "movsxd rdx, eax"], [241, "lea rcx, [rbp+var_40B0]"], [242, "lea rax, [rbp+var_80]"], [243, "mov rsi, rcx"], [244, "mov rdi, rax"], [245, "call _SHA1_Update"], [246, "mov rax, [rbp+var_18]"], [247, "mov rax, [rax]"], [248, "mov rdi, rax"], [249, "call sub_46FDE7"], [250, "test eax, eax"], [251, "jnz short loc_476810"], [252, "mov rax, [rbp+var_18]"], [253, "mov rax, [rax+8]"], [254, "mov rdi, rax"], [255, "call sub_46FDE7"], [256, "test eax, eax"], [257, "jz short loc_47685F"], [258, "mov rax, [rbp+var_18]"], [259, "mov rax, [rax]"], [260, "mov rdi, rax"], [261, "call sub_4122CD"], [262, "mov rcx, rax"], [263, "lea rax, [rbp+var_80]"], [264, "mov edx, 28h "], [265, "mov rsi, rcx"], [266, "mov rdi, rax"], [267, "call _SHA1_Update"], [268, "mov rax, [rbp+var_18]"], [269, "mov rax, [rax+8]"], [270, "mov rdi, rax"], [271, "call sub_4122CD"], [272, "mov rcx, rax"], [273, "lea rax, [rbp+var_80]"], [274, "mov edx, 28h "], [275, "mov rsi, rcx"], [276, "mov rdi, rax"], [277, "call _SHA1_Update"], [278, "jmp short loc_4768C5"], [279, "mov [rbp+var_40B8], 0"], [280, "mov [rbp+var_4110], 3"], [281, "mov [rbp+var_4100], 0"], [282, "lea rdi, [rbp+var_4110]"], [283, "lea rcx, [rbp+var_40B8]"], [284, "lea rdx, [rbp+s]"], [285, "lea rsi, [rbp+var_40E0]"], [286, "lea rax, [rbp+var_40D0]"], [287, "mov r9, rdi"], [288, "mov r8, rcx"], [289, "mov rcx, rdx"], [290, "mov edx, offset sub_4763C0"], [291, "mov rdi, rax"], [292, "call sub_4A6B81"], [293, "jmp short loc_4768C5"], [294, "nop"], [295, "jmp short loc_4768C5"], [296, "nop"], [297, "jmp short loc_4768C5"], [298, "nop"], [299, "jmp short loc_4768C5"], [300, "nop"], [301, "add [rbp+var_4], 1"], [302, "mov rax, [rbp+var_10]"], [303, "mov eax, [rax+0Ch]"], [304, "cmp [rbp+var_4], eax"], [305, "jl loc_476499"], [306, "lea rdx, [rbp+var_80]"], [307, "mov rax, [rbp+var_4120]"], [308, "mov rsi, rdx"], [309, "mov rdi, rax"], [310, "call _SHA1_Final"], [311, "mov eax, 0"], [312, "leave"], [313, "retn"]], "data_dep": [[7, 6], [9, 8], [12, 9], [14, 13], [15, 14], [18, 5], [19, 18], [20, 16], [20, 301], [22, 20], [23, 22], [23, 19], [24, 23], [25, 24], [26, 279], [26, 24], [29, 26], [31, 280], [31, 30], [34, 31], [36, 25], [37, 36], [38, 37], [39, 38], [45, 25], [46, 45], [47, 46], [48, 47], [49, 25], [50, 49], [52, 51], [53, 52], [54, 25], [55, 54], [56, 55], [57, 56], [58, 57], [59, 25], [60, 59], [61, 60], [62, 61], [63, 62], [64, 63], [65, 64], [66, 25], [67, 66], [68, 67], [69, 68], [70, 69], [71, 25], [72, 71], [73, 72], [74, 73], [75, 74], [76, 75], [77, 76], [78, 25], [79, 78], [80, 79], [81, 80], [82, 81], [83, 25], [84, 83], [85, 84], [87, 25], [88, 87], [89, 88], [91, 25], [92, 91], [93, 91], [94, 92], [95, 93], [97, 96], [98, 97], [99, 25], [100, 99], [101, 99], [102, 100], [103, 101], [105, 104], [106, 105], [112, 25], [113, 112], [114, 113], [115, 114], [117, 116], [118, 25], [119, 118], [120, 119], [121, 117], [122, 120], [124, 123], [125, 25], [126, 125], [127, 126], [128, 127], [130, 129], [131, 25], [132, 131], [133, 132], [134, 130], [135, 133], [137, 136], [138, 25], [139, 138], [140, 139], [141, 140], [142, 141], [143, 25], [144, 143], [145, 144], [146, 25], [147, 146], [148, 147], [149, 148], [150, 25], [151, 150], [152, 151], [153, 25], [154, 153], [155, 154], [156, 137], [157, 124], [158, 154], [159, 145], [160, 137], [161, 160], [162, 149], [163, 152], [164, 157], [167, 158], [170, 2], [170, 205], [170, 237], [170, 170], [171, 169], [173, 25], [174, 173], [175, 174], [176, 175], [177, 176], [178, 25], [179, 178], [180, 179], [181, 25], [182, 181], [183, 182], [184, 183], [185, 25], [186, 185], [187, 186], [188, 25], [189, 188], [190, 189], [191, 137], [192, 124], [193, 189], [194, 180], [195, 124], [196, 195], [197, 184], [198, 187], [199, 192], [202, 193], [205, 237], [205, 170], [205, 2], [205, 205], [206, 204], [208, 25], [209, 208], [210, 209], [211, 25], [212, 211], [213, 212], [214, 25], [215, 214], [216, 215], [217, 25], [218, 217], [219, 218], [220, 137], [221, 124], [222, 218], [223, 237], [223, 205], [223, 170], [223, 2], [224, 210], [225, 137], [226, 225], [227, 213], [228, 124], [229, 228], [230, 216], [231, 221], [234, 222], [237, 223], [238, 236], [239, 206], [239, 238], [239, 171], [240, 239], [241, 199], [241, 231], [241, 164], [242, 239], [243, 241], [244, 242], [246, 25], [247, 246], [248, 247], [250, 249], [251, 250], [252, 25], [253, 252], [254, 253], [256, 255], [257, 256], [258, 25], [259, 258], [260, 259], [262, 261], [263, 261], [265, 262], [266, 263], [268, 25], [269, 268], [270, 269], [272, 271], [273, 271], [275, 272], [276, 273], [282, 280], [282, 254], [283, 279], [283, 241], [284, 15], [284, 240], [285, 243], [286, 256], [287, 282], [288, 283], [289, 284], [291, 286], [301, 301], [301, 16], [302, 5], [303, 302], [304, 16], [304, 301], [304, 303], [305, 304], [306, 10], [306, 32], [306, 290], [306, 274], [307, 4], [308, 306], [309, 307], [313, 110], [313, 311], [313, 43]]}
|
int main(int argc, const char **argv)
{
static const char *UNUSED = "OBJTOOL_NOT_IMPLEMENTED";
/* libsubcmd init */
exec_cmd_init("objtool", UNUSED, UNUSED, UNUSED);
pager_init(UNUSED);
objtool_run(argc, argv);
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "main", "function_addr": 4277772, "binary_name": "234783f2d51a75cc48ab1364545ff6602913da4ea3f80fdfc9b7910ae3c3d04b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov [rbp+var_10], rsi"], [5, "mov rcx, cs:off_42D7F0"], [6, "mov rdx, cs:off_42D7F0"], [7, "mov rax, cs:off_42D7F0"], [8, "mov rsi, rax"], [9, "mov edi, offset aObjtool"], [10, "call sub_418D3A"], [11, "mov rax, cs:off_42D7F0"], [12, "mov rdi, rax"], [13, "call sub_41A407"], [14, "mov rax, [rbp+var_10]"], [15, "add rax, 8"], [16, "mov [rbp+var_10], rax"], [17, "mov eax, [rbp+var_4]"], [18, "sub eax, 1"], [19, "mov [rbp+var_4], eax"], [20, "lea rdx, [rbp+var_10]"], [21, "lea rax, [rbp+var_4]"], [22, "mov rsi, rdx"], [23, "mov rdi, rax"], [24, "call sub_4144C2"], [25, "mov eax, [rbp+var_4]"], [26, "test eax, eax"], [27, "jz short loc_414686"], [28, "movzx eax, cs:byte_42D920"], [29, "test al, al"], [30, "jz short loc_41468B"], [31, "call sub_4143A7"], [32, "mov rdx, [rbp+var_10]"], [33, "mov eax, [rbp+var_4]"], [34, "mov rsi, rdx"], [35, "mov edi, eax"], [36, "call sub_41457E"]], "data_dep": [[8, 7], [12, 11], [14, 4], [15, 14], [16, 15], [17, 3], [18, 17], [19, 18], [20, 16], [20, 6], [21, 19], [21, 18], [22, 20], [23, 21], [25, 19], [26, 25], [27, 26], [29, 28], [30, 29], [32, 16], [33, 19], [34, 32], [35, 33]]}
|
static void win_init(void)
{
#if LV_USE_WIN != 0
#endif
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43551B", "function_addr": 4412699, "binary_name": "19729148c2fecc0159cbd120947156a1f58505e3a7e54d3fb0c2e0bd24f28bc1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "nop"], [3, "pop rbp"], [4, "retn"]], "data_dep": [[3, 0]]}
|
PJ_DEF(pjsip_msg_body*) pjsip_msg_body_clone( pj_pool_t *pool,
const pjsip_msg_body *body )
{
pjsip_msg_body *new_body;
pj_status_t status;
new_body = PJ_POOL_ALLOC_T(pool, pjsip_msg_body);
PJ_ASSERT_RETURN(new_body, NULL);
status = pjsip_msg_body_copy(pool, new_body, body);
return (status==PJ_SUCCESS) ? new_body : NULL;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41DF4F", "function_addr": 4317007, "binary_name": "a55437195f8ae7fcbc9fcbc7c4ce7ea2903742f0fcbd5868b140c66600d2ad6c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_18]"], [6, "mov esi, 70h "], [7, "mov rdi, rax"], [8, "call sub_4BDE04"], [9, "mov [rbp+var_8], rax"], [10, "cmp [rbp+var_8], 0"], [11, "jnz short loc_41DFA2"], [12, "cmp [rbp+var_8], 0"], [13, "jnz short loc_41DF9B"], [14, "mov ecx, offset aPjsipMsgBodyCl"], [15, "mov edx, 8B0h"], [16, "mov esi, offset aSrcPjsipSipMsg"], [17, "mov edi, offset aNewBody"], [18, "call ___assert_fail"], [19, "mov eax, 0"], [20, "jmp short locret_41DFCD"], [21, "mov rdx, [rbp+var_20]"], [22, "mov rcx, [rbp+var_8]"], [23, "mov rax, [rbp+var_18]"], [24, "mov rsi, rcx"], [25, "mov rdi, rax"], [26, "call sub_41DE89"], [27, "mov [rbp+var_C], eax"], [28, "cmp [rbp+var_C], 0"], [29, "jnz short loc_41DFC8"], [30, "mov rax, [rbp+var_8]"], [31, "jmp short locret_41DFCD"], [32, "mov eax, 0"], [33, "leave"], [34, "retn"]], "data_dep": [[5, 3], [7, 5], [9, 8], [10, 9], [11, 10], [12, 9], [13, 12], [21, 4], [22, 9], [23, 3], [24, 22], [25, 23], [27, 26], [28, 27], [29, 28], [30, 9], [34, 19], [34, 30], [34, 32]]}
|
int tc_sha256_init(TCSha256State_t s)
{
/* input sanity check: */
if (s == (TCSha256State_t) 0) {
return TC_CRYPTO_FAIL;
}
/*
* Setting the initial state values.
* These values correspond to the first 32 bits of the fractional parts
* of the square roots of the first 8 primes: 2, 3, 5, 7, 11, 13, 17
* and 19.
*/
_set((uint8_t *) s, 0x00, sizeof(*s));
s->iv[0] = 0x6a09e667;
s->iv[1] = 0xbb67ae85;
s->iv[2] = 0x3c6ef372;
s->iv[3] = 0xa54ff53a;
s->iv[4] = 0x510e527f;
s->iv[5] = 0x9b05688c;
s->iv[6] = 0x1f83d9ab;
s->iv[7] = 0x5be0cd19;
return TC_CRYPTO_SUCCESS;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401D46", "function_addr": 4201798, "binary_name": "268d83b303656ab331dd0d291df49aa6b32316180a99a3e821f8f7c188e03ff3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "cmp [rbp+var_8], 0"], [5, "jnz short loc_401D60"], [6, "mov eax, 0"], [7, "jmp short locret_401DD2"], [8, "mov rax, [rbp+var_8]"], [9, "mov edx, 70h "], [10, "mov esi, 0"], [11, "mov rdi, rax"], [12, "call sub_40263E"], [13, "mov rax, [rbp+var_8]"], [14, "mov dword ptr [rax], 6A09E667h"], [15, "mov rax, [rbp+var_8]"], [16, "mov dword ptr [rax+4], 0BB67AE85h"], [17, "mov rax, [rbp+var_8]"], [18, "mov dword ptr [rax+8], 3C6EF372h"], [19, "mov rax, [rbp+var_8]"], [20, "mov dword ptr [rax+0Ch], 0A54FF53Ah"], [21, "mov rax, [rbp+var_8]"], [22, "mov dword ptr [rax+10h], 510E527Fh"], [23, "mov rax, [rbp+var_8]"], [24, "mov dword ptr [rax+14h], 9B05688Ch"], [25, "mov rax, [rbp+var_8]"], [26, "mov dword ptr [rax+18h], 1F83D9ABh"], [27, "mov rax, [rbp+var_8]"], [28, "mov dword ptr [rax+1Ch], 5BE0CD19h"], [29, "mov eax, 1"], [30, "leave"], [31, "retn"]], "data_dep": [[4, 3], [5, 4], [8, 3], [11, 8], [13, 3], [14, 13], [15, 3], [16, 15], [17, 3], [18, 17], [19, 3], [20, 19], [21, 3], [22, 21], [23, 3], [24, 23], [25, 3], [26, 25], [27, 3], [28, 27], [31, 29], [31, 6]]}
|
UG_COLOR UG_WindowGetBackColor( UG_WINDOW* wnd )
{
UG_COLOR c = C_BLACK;
if ( (wnd != NULL) && (wnd->state & WND_STATE_VALID) )
{
c = wnd->bc;
}
return c;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4061BE", "function_addr": 4219326, "binary_name": "3cfddacdd4e21b0e6e6d59f61143cf49a8a22ed0921b7e88571a2f2e8101b107.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_4], 0"], [4, "cmp [rbp+var_18], 0"], [5, "jz short loc_4061F0"], [6, "mov rax, [rbp+var_18]"], [7, "movzx eax, byte ptr [rax+10h]"], [8, "movzx eax, al"], [9, "and eax, 2"], [10, "test eax, eax"], [11, "jz short loc_4061F0"], [12, "mov rax, [rbp+var_18]"], [13, "mov eax, [rax+18h]"], [14, "mov [rbp+var_4], eax"], [15, "mov eax, [rbp+var_4]"], [16, "pop rbp"], [17, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 2], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 2], [13, 12], [14, 13], [15, 14], [15, 3], [16, 0], [17, 15]]}
|
int mbedtls_x509_serial_gets( char *buf, size_t size, const mbedtls_x509_buf *serial )
{
int ret;
size_t i, n, nr;
char *p;
p = buf;
n = size;
nr = ( serial->len <= 32 )
? serial->len : 28;
for( i = 0; i < nr; i++ )
{
if( i == 0 && nr > 1 && serial->p[i] == 0x0 )
continue;
ret = mbedtls_snprintf( p, n, "%02X%s",
serial->p[i], ( i < nr - 1 ) ? ":" : "" );
MBEDTLS_X509_SAFE_SNPRINTF;
}
if( nr != serial->len )
{
ret = mbedtls_snprintf( p, n, "...." );
MBEDTLS_X509_SAFE_SNPRINTF;
}
return( (int) ( size - n ) );
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44F355", "function_addr": 4518741, "binary_name": "ce297ee2eb040ae897b55138df396bcca9b0e280a22ead4e0aa5cba0644de078.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_40], rsi"], [5, "mov [rbp+var_48], rdx"], [6, "mov rax, [rbp+var_38]"], [7, "mov [rbp+s], rax"], [8, "mov rax, [rbp+var_40]"], [9, "mov [rbp+maxlen], rax"], [10, "mov rax, [rbp+var_48]"], [11, "mov rax, [rax+8]"], [12, "cmp rax, 20h "], [13, "ja short loc_44F391"], [14, "mov rax, [rbp+var_48]"], [15, "mov rax, [rax+8]"], [16, "jmp short loc_44F396"], [17, "mov eax, 1Ch"], [18, "mov [rbp+var_20], rax"], [19, "mov [rbp+var_8], 0"], [20, "jmp loc_44F455"], [21, "cmp [rbp+var_8], 0"], [22, "jnz short loc_44F3CF"], [23, "cmp [rbp+var_20], 1"], [24, "jbe short loc_44F3CF"], [25, "mov rax, [rbp+var_48]"], [26, "mov rdx, [rax+10h]"], [27, "mov rax, [rbp+var_8]"], [28, "add rax, rdx"], [29, "movzx eax, byte ptr [rax]"], [30, "test al, al"], [31, "jz loc_44F44F"], [32, "mov rax, [rbp+var_20]"], [33, "sub rax, 1"], [34, "cmp [rbp+var_8], rax"], [35, "jnb short loc_44F3E4"], [36, "mov ecx, offset asc_4A042A"], [37, "jmp short loc_44F3E9"], [38, "mov ecx, offset unk_4A042C"], [39, "mov rax, [rbp+var_48]"], [40, "mov rdx, [rax+10h]"], [41, "mov rax, [rbp+var_8]"], [42, "add rax, rdx"], [43, "movzx eax, byte ptr [rax]"], [44, "movzx edx, al"], [45, "mov rsi, [rbp+maxlen]"], [46, "mov rax, [rbp+s]"], [47, "mov r8, rcx"], [48, "mov ecx, edx"], [49, "mov edx, offset a02xS"], [50, "mov rdi, rax"], [51, "mov eax, 0"], [52, "call _snprintf"], [53, "mov [rbp+var_24], eax"], [54, "cmp [rbp+var_24], 0"], [55, "js short loc_44F431"], [56, "mov eax, [rbp+var_24]"], [57, "cdqe"], [58, "cmp [rbp+maxlen], rax"], [59, "ja short loc_44F43B"], [60, "mov eax, 0FFFFD680h"], [61, "jmp locret_44F4CB"], [62, "mov eax, [rbp+var_24]"], [63, "cdqe"], [64, "sub [rbp+maxlen], rax"], [65, "mov eax, [rbp+var_24]"], [66, "cdqe"], [67, "add [rbp+s], rax"], [68, "jmp short loc_44F450"], [69, "nop"], [70, "add [rbp+var_8], 1"], [71, "mov rax, [rbp+var_8]"], [72, "cmp rax, [rbp+var_20]"], [73, "jb loc_44F3A7"], [74, "mov rax, [rbp+var_48]"], [75, "mov rax, [rax+8]"], [76, "cmp [rbp+var_20], rax"], [77, "jz short loc_44F4BB"], [78, "mov rcx, [rbp+maxlen]"], [79, "mov rax, [rbp+s]"], [80, "mov edx, offset asc_4A0434"], [81, "mov rsi, rcx"], [82, "mov rdi, rax"], [83, "mov eax, 0"], [84, "call _snprintf"], [85, "mov [rbp+var_24], eax"], [86, "cmp [rbp+var_24], 0"], [87, "js short loc_44F4A2"], [88, "mov eax, [rbp+var_24]"], [89, "cdqe"], [90, "cmp [rbp+maxlen], rax"], [91, "ja short loc_44F4A9"], [92, "mov eax, 0FFFFD680h"], [93, "jmp short locret_44F4CB"], [94, "mov eax, [rbp+var_24]"], [95, "cdqe"], [96, "sub [rbp+maxlen], rax"], [97, "mov eax, [rbp+var_24]"], [98, "cdqe"], [99, "add [rbp+s], rax"], [100, "mov rax, [rbp+var_40]"], [101, "mov edx, eax"], [102, "mov rax, [rbp+maxlen]"], [103, "mov ecx, eax"], [104, "mov eax, edx"], [105, "sub eax, ecx"], [106, "leave"], [107, "retn"]], "data_dep": [[6, 3], [7, 6], [8, 4], [9, 8], [10, 5], [11, 10], [12, 11], [13, 12], [14, 5], [15, 14], [18, 17], [18, 15], [21, 70], [21, 19], [22, 21], [23, 18], [24, 23], [25, 5], [26, 25], [27, 70], [27, 19], [28, 27], [28, 26], [29, 28], [30, 29], [31, 30], [32, 18], [33, 32], [34, 19], [34, 70], [34, 33], [35, 34], [39, 5], [40, 39], [41, 19], [41, 70], [42, 41], [42, 40], [43, 42], [44, 43], [45, 64], [45, 9], [46, 67], [46, 7], [47, 36], [47, 38], [48, 44], [50, 46], [53, 52], [54, 53], [55, 54], [56, 53], [58, 56], [58, 64], [58, 9], [59, 58], [62, 53], [64, 62], [64, 64], [64, 9], [65, 53], [67, 65], [67, 67], [67, 7], [70, 70], [70, 19], [71, 19], [71, 70], [72, 18], [72, 71], [73, 72], [74, 5], [75, 74], [76, 18], [76, 75], [77, 76], [78, 64], [78, 9], [79, 67], [79, 7], [81, 78], [82, 79], [85, 84], [86, 85], [87, 86], [88, 85], [90, 88], [90, 64], [90, 9], [91, 90], [94, 85], [96, 94], [96, 64], [96, 9], [97, 85], [99, 97], [99, 67], [99, 7], [100, 4], [101, 100], [102, 64], [102, 9], [102, 96], [103, 102], [104, 101], [105, 104], [105, 103], [107, 60], [107, 92], [107, 105]]}
|
int
pause_body_cb (http_parser *p, const char *buf, size_t len)
{
http_parser_pause(p, 1);
*current_pause_parser = settings_dontcall;
return body_cb(p, buf, len);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_408376", "function_addr": 4227958, "binary_name": "50b379176fa4dec74d3a3e8def2246ab88db6064222a6699f6a4cb63bcefbc23.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 28h"], [4, "mov [rbp+var_18], rdi"], [5, "mov [rbp+var_20], rsi"], [6, "mov [rbp+var_28], rdx"], [7, "mov rax, [rbp+var_18]"], [8, "mov esi, 1"], [9, "mov rdi, rax"], [10, "call sub_407383"], [11, "mov rax, cs:qword_8CBBE0"], [12, "mov rcx, cs:off_87B440"], [13, "mov rbx, cs:off_87B448"], [14, "mov [rax], rcx"], [15, "mov [rax+8], rbx"], [16, "mov rcx, cs:off_87B450"], [17, "mov rbx, cs:off_87B458"], [18, "mov [rax+10h], rcx"], [19, "mov [rax+18h], rbx"], [20, "mov rcx, cs:off_87B460"], [21, "mov rbx, cs:off_87B468"], [22, "mov [rax+20h], rcx"], [23, "mov [rax+28h], rbx"], [24, "mov rcx, cs:off_87B470"], [25, "mov rbx, cs:off_87B478"], [26, "mov [rax+30h], rcx"], [27, "mov [rax+38h], rbx"], [28, "mov rcx, cs:off_87B480"], [29, "mov rbx, cs:off_87B488"], [30, "mov [rax+40h], rcx"], [31, "mov [rax+48h], rbx"], [32, "mov rdx, [rbp+var_28]"], [33, "mov rcx, [rbp+var_20]"], [34, "mov rax, [rbp+var_18]"], [35, "mov rsi, rcx"], [36, "mov rdi, rax"], [37, "call sub_407874"], [38, "mov rbx, [rbp+var_8]"], [39, "leave"], [40, "retn"]], "data_dep": [[7, 4], [9, 7], [14, 12], [14, 11], [15, 11], [15, 13], [18, 16], [18, 11], [19, 11], [19, 17], [22, 11], [22, 20], [23, 21], [23, 11], [26, 24], [26, 11], [27, 25], [27, 11], [30, 11], [30, 28], [31, 11], [31, 29], [32, 6], [33, 5], [34, 4], [35, 33], [36, 34], [40, 37]]}
|
static void BotImport_DebugLineShow(int line, vec3_t start, vec3_t end, int color) {
vec3_t points[4], dir, cross, up = {0, 0, 1};
float dot;
VectorCopy(start, points[0]);
VectorCopy(start, points[1]);
//points[1][2] -= 2;
VectorCopy(end, points[2]);
//points[2][2] -= 2;
VectorCopy(end, points[3]);
VectorSubtract(end, start, dir);
VectorNormalize(dir);
dot = DotProduct(dir, up);
if (dot > 0.99 || dot < -0.99) VectorSet(cross, 1, 0, 0);
else CrossProduct(dir, up, cross);
VectorNormalize(cross);
VectorMA(points[0], 2, cross, points[0]);
VectorMA(points[1], -2, cross, points[1]);
VectorMA(points[2], -2, cross, points[2]);
VectorMA(points[3], 2, cross, points[3]);
BotImport_DebugPolygonShow(line, color, 4, points);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4044AE", "function_addr": 4211886, "binary_name": "96829db24225af49c6e3bdd55ad8cc7b6c8b389d269a9a22023d8f44d11398a7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 90h"], [3, "mov [rbp+var_74], edi"], [4, "mov [rbp+var_80], rsi"], [5, "mov [rbp+var_88], rdx"], [6, "mov [rbp+var_78], ecx"], [7, "pxor xmm0, xmm0"], [8, "movss [rbp+var_64], xmm0"], [9, "pxor xmm0, xmm0"], [10, "movss [rbp+var_60], xmm0"], [11, "movss xmm0, cs:dword_4A2330"], [12, "movss [rbp+var_5C], xmm0"], [13, "mov rax, [rbp+var_80]"], [14, "movss xmm0, dword ptr [rax]"], [15, "movss [rbp+var_40], xmm0"], [16, "mov rax, [rbp+var_80]"], [17, "movss xmm0, dword ptr [rax+4]"], [18, "movss [rbp+var_3C], xmm0"], [19, "mov rax, [rbp+var_80]"], [20, "movss xmm0, dword ptr [rax+8]"], [21, "movss [rbp+var_38], xmm0"], [22, "mov rax, [rbp+var_80]"], [23, "movss xmm0, dword ptr [rax]"], [24, "movss [rbp+var_34], xmm0"], [25, "mov rax, [rbp+var_80]"], [26, "movss xmm0, dword ptr [rax+4]"], [27, "movss [rbp+var_30], xmm0"], [28, "mov rax, [rbp+var_80]"], [29, "movss xmm0, dword ptr [rax+8]"], [30, "movss [rbp+var_2C], xmm0"], [31, "mov rax, [rbp+var_88]"], [32, "movss xmm0, dword ptr [rax]"], [33, "movss [rbp+var_28], xmm0"], [34, "mov rax, [rbp+var_88]"], [35, "movss xmm0, dword ptr [rax+4]"], [36, "movss [rbp+var_24], xmm0"], [37, "mov rax, [rbp+var_88]"], [38, "movss xmm0, dword ptr [rax+8]"], [39, "movss [rbp+var_20], xmm0"], [40, "mov rax, [rbp+var_88]"], [41, "movss xmm0, dword ptr [rax]"], [42, "movss [rbp+var_1C], xmm0"], [43, "mov rax, [rbp+var_88]"], [44, "movss xmm0, dword ptr [rax+4]"], [45, "movss [rbp+var_18], xmm0"], [46, "mov rax, [rbp+var_88]"], [47, "movss xmm0, dword ptr [rax+8]"], [48, "movss [rbp+var_14], xmm0"], [49, "mov rax, [rbp+var_88]"], [50, "movss xmm0, dword ptr [rax]"], [51, "mov rax, [rbp+var_80]"], [52, "movss xmm1, dword ptr [rax]"], [53, "subss xmm0, xmm1"], [54, "movss [rbp+var_4C], xmm0"], [55, "mov rax, [rbp+var_88]"], [56, "add rax, 4"], [57, "movss xmm0, dword ptr [rax]"], [58, "mov rax, [rbp+var_80]"], [59, "add rax, 4"], [60, "movss xmm1, dword ptr [rax]"], [61, "subss xmm0, xmm1"], [62, "movss [rbp+var_48], xmm0"], [63, "mov rax, [rbp+var_88]"], [64, "add rax, 8"], [65, "movss xmm0, dword ptr [rax]"], [66, "mov rax, [rbp+var_80]"], [67, "add rax, 8"], [68, "movss xmm1, dword ptr [rax]"], [69, "subss xmm0, xmm1"], [70, "movss [rbp+var_44], xmm0"], [71, "lea rax, [rbp+var_4C]"], [72, "mov rdi, rax"], [73, "call sub_443EA8"], [74, "movss xmm1, [rbp+var_4C]"], [75, "movss xmm0, [rbp+var_64]"], [76, "mulss xmm1, xmm0"], [77, "movss xmm2, [rbp+var_48]"], [78, "movss xmm0, [rbp+var_60]"], [79, "mulss xmm0, xmm2"], [80, "addss xmm1, xmm0"], [81, "movss xmm2, [rbp+var_44]"], [82, "movss xmm0, [rbp+var_5C]"], [83, "mulss xmm0, xmm2"], [84, "addss xmm0, xmm1"], [85, "movss [rbp+var_4], xmm0"], [86, "pxor xmm0, xmm0"], [87, "cvtss2sd xmm0, [rbp+var_4]"], [88, "comisd xmm0, cs:qword_4A2338"], [89, "ja short loc_404670"], [90, "pxor xmm1, xmm1"], [91, "cvtss2sd xmm1, [rbp+var_4]"], [92, "movsd xmm0, cs:qword_4A2340"], [93, "comisd xmm0, xmm1"], [94, "jbe short loc_404691"], [95, "movss xmm0, cs:dword_4A2330"], [96, "movss [rbp+var_58], xmm0"], [97, "pxor xmm0, xmm0"], [98, "movss [rbp+var_54], xmm0"], [99, "pxor xmm0, xmm0"], [100, "movss [rbp+var_50], xmm0"], [101, "jmp short loc_4046A8"], [102, "lea rdx, [rbp+var_58]"], [103, "lea rcx, [rbp+var_64]"], [104, "lea rax, [rbp+var_4C]"], [105, "mov rsi, rcx"], [106, "mov rdi, rax"], [107, "call sub_4038D2"], [108, "lea rax, [rbp+var_58]"], [109, "mov rdi, rax"], [110, "call sub_443EA8"], [111, "movss xmm1, [rbp+var_40]"], [112, "movss xmm0, [rbp+var_58]"], [113, "addss xmm0, xmm0"], [114, "addss xmm0, xmm1"], [115, "movss [rbp+var_40], xmm0"], [116, "movss xmm1, [rbp+var_3C]"], [117, "movss xmm0, [rbp+var_54]"], [118, "addss xmm0, xmm0"], [119, "addss xmm0, xmm1"], [120, "movss [rbp+var_3C], xmm0"], [121, "movss xmm1, [rbp+var_38]"], [122, "movss xmm0, [rbp+var_50]"], [123, "addss xmm0, xmm0"], [124, "addss xmm0, xmm1"], [125, "movss [rbp+var_38], xmm0"], [126, "movss xmm1, [rbp+var_34]"], [127, "movss xmm2, [rbp+var_58]"], [128, "movss xmm0, cs:dword_4A2348"], [129, "mulss xmm0, xmm2"], [130, "addss xmm0, xmm1"], [131, "movss [rbp+var_34], xmm0"], [132, "movss xmm1, [rbp+var_30]"], [133, "movss xmm2, [rbp+var_54]"], [134, "movss xmm0, cs:dword_4A2348"], [135, "mulss xmm0, xmm2"], [136, "addss xmm0, xmm1"], [137, "movss [rbp+var_30], xmm0"], [138, "movss xmm1, [rbp+var_2C]"], [139, "movss xmm2, [rbp+var_50]"], [140, "movss xmm0, cs:dword_4A2348"], [141, "mulss xmm0, xmm2"], [142, "addss xmm0, xmm1"], [143, "movss [rbp+var_2C], xmm0"], [144, "movss xmm1, [rbp+var_28]"], [145, "movss xmm2, [rbp+var_58]"], [146, "movss xmm0, cs:dword_4A2348"], [147, "mulss xmm0, xmm2"], [148, "addss xmm0, xmm1"], [149, "movss [rbp+var_28], xmm0"], [150, "movss xmm1, [rbp+var_24]"], [151, "movss xmm2, [rbp+var_54]"], [152, "movss xmm0, cs:dword_4A2348"], [153, "mulss xmm0, xmm2"], [154, "addss xmm0, xmm1"], [155, "movss [rbp+var_24], xmm0"], [156, "movss xmm1, [rbp+var_20]"], [157, "movss xmm2, [rbp+var_50]"], [158, "movss xmm0, cs:dword_4A2348"], [159, "mulss xmm0, xmm2"], [160, "addss xmm0, xmm1"], [161, "movss [rbp+var_20], xmm0"], [162, "movss xmm1, [rbp+var_1C]"], [163, "movss xmm0, [rbp+var_58]"], [164, "addss xmm0, xmm0"], [165, "addss xmm0, xmm1"], [166, "movss [rbp+var_1C], xmm0"], [167, "movss xmm1, [rbp+var_18]"], [168, "movss xmm0, [rbp+var_54]"], [169, "addss xmm0, xmm0"], [170, "addss xmm0, xmm1"], [171, "movss [rbp+var_18], xmm0"], [172, "movss xmm1, [rbp+var_14]"], [173, "movss xmm0, [rbp+var_50]"], [174, "addss xmm0, xmm0"], [175, "addss xmm0, xmm1"], [176, "movss [rbp+var_14], xmm0"], [177, "lea rdx, [rbp+var_40]"], [178, "mov esi, [rbp+var_78]"], [179, "mov eax, [rbp+var_74]"], [180, "mov rcx, rdx"], [181, "mov edx, 4"], [182, "mov edi, eax"], [183, "call sub_4043B7"], [184, "nop"], [185, "leave"], [186, "retn"]], "data_dep": [[8, 7], [10, 9], [12, 11], [13, 4], [14, 13], [15, 14], [16, 4], [17, 16], [18, 17], [19, 4], [20, 19], [21, 20], [22, 4], [23, 22], [24, 23], [25, 4], [26, 25], [27, 26], [28, 4], [29, 28], [30, 29], [31, 5], [32, 31], [33, 32], [34, 5], [35, 34], [36, 35], [37, 5], [38, 37], [39, 38], [40, 5], [41, 40], [42, 41], [43, 5], [44, 43], [45, 44], [46, 5], [47, 46], [48, 47], [49, 5], [50, 49], [51, 4], [52, 51], [53, 50], [53, 52], [54, 53], [55, 5], [56, 55], [57, 56], [58, 4], [59, 58], [60, 59], [61, 60], [61, 57], [62, 61], [63, 5], [64, 63], [65, 64], [66, 4], [67, 66], [68, 67], [69, 65], [69, 68], [70, 69], [71, 67], [71, 54], [72, 71], [74, 54], [75, 8], [76, 74], [76, 75], [77, 62], [78, 10], [79, 78], [79, 77], [80, 76], [80, 79], [81, 70], [82, 12], [83, 82], [83, 81], [84, 83], [84, 80], [85, 84], [87, 86], [87, 85], [88, 87], [89, 67], [91, 90], [91, 85], [93, 92], [93, 91], [94, 67], [96, 95], [98, 97], [100, 99], [103, 8], [104, 73], [104, 54], [105, 103], [106, 104], [108, 107], [108, 96], [108, 73], [109, 108], [111, 15], [112, 96], [113, 112], [114, 111], [114, 113], [115, 114], [116, 18], [117, 98], [118, 117], [119, 116], [119, 118], [120, 119], [121, 21], [122, 100], [123, 122], [124, 121], [124, 123], [125, 124], [126, 24], [127, 96], [129, 128], [129, 127], [130, 126], [130, 129], [131, 130], [132, 27], [133, 98], [135, 133], [135, 134], [136, 135], [136, 132], [137, 136], [138, 30], [139, 100], [141, 140], [141, 139], [142, 141], [142, 138], [143, 142], [144, 33], [145, 96], [147, 146], [147, 145], [148, 147], [148, 144], [149, 148], [150, 36], [151, 98], [153, 152], [153, 151], [154, 153], [154, 150], [155, 154], [156, 39], [157, 100], [159, 157], [159, 158], [160, 159], [160, 156], [161, 160], [162, 42], [163, 96], [164, 163], [165, 162], [165, 164], [166, 165], [167, 45], [168, 98], [169, 168], [170, 169], [170, 167], [171, 170], [172, 48], [173, 100], [174, 173], [175, 172], [175, 174], [176, 175], [177, 102], [177, 115], [178, 6], [179, 3], [180, 177], [182, 179], [186, 183]]}
|
static void _tape_completion_dispatch (UNIT *uptr)
{
struct tape_context *ctx = (struct tape_context *)uptr->tape_ctx;
TAPE_PCALLBACK callback = ctx->callback;
sim_debug_unit (ctx->dbit, uptr, "_tape_completion_dispatch(unit=%d, top=%d, callback=%p)\n", (int)(uptr-ctx->dptr->units), ctx->io_top, ctx->callback);
if (ctx->io_top != TOP_DONE)
abort(); /* horribly wrong, stop */
if (ctx->asynch_io)
pthread_mutex_lock (&ctx->io_lock);
if (ctx->callback) {
ctx->callback = NULL;
if (ctx->asynch_io)
pthread_mutex_unlock (&ctx->io_lock);
callback (uptr, ctx->io_status);
}
else {
if (ctx->asynch_io)
pthread_mutex_unlock (&ctx->io_lock);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_493028", "function_addr": 4796456, "binary_name": "9acbc7c1ba7e49eb8c0cc5dd5e3feb9b4a180e4e252c42715e31fa33694bae23.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov rax, [rax+80h]"], [6, "mov [rbp+var_8], rax"], [7, "mov rax, [rbp+var_8]"], [8, "mov rax, [rax+138h]"], [9, "mov [rbp+var_10], rax"], [10, "mov rax, cs:qword_537120"], [11, "test rax, rax"], [12, "jz loc_49310A"], [13, "cmp [rbp+var_18], 0"], [14, "jz loc_49310A"], [15, "mov rax, [rbp+var_18]"], [16, "mov rax, [rax+0C0h]"], [17, "test rax, rax"], [18, "jz loc_49310A"], [19, "mov rax, [rbp+var_18]"], [20, "mov edx, [rax+0C8h]"], [21, "mov rax, [rbp+var_18]"], [22, "mov rax, [rax+0C0h]"], [23, "mov eax, [rax+74h]"], [24, "or edx, eax"], [25, "mov rax, [rbp+var_8]"], [26, "mov eax, [rax+8]"], [27, "and eax, edx"], [28, "test eax, eax"], [29, "jz short loc_49310A"], [30, "mov rax, [rbp+var_8]"], [31, "mov rcx, [rax+138h]"], [32, "mov rax, [rbp+var_8]"], [33, "mov edx, [rax+100h]"], [34, "mov rax, [rbp+var_8]"], [35, "mov rax, [rax]"], [36, "mov rsi, [rax+8]"], [37, "mov rax, [rbp+var_18]"], [38, "sub rax, rsi"], [39, "sar rax, 3"], [40, "mov rsi, rax"], [41, "mov rax, 0AF8AF8AF8AF8AF8Bh"], [42, "imul rax, rsi"], [43, "mov edi, eax"], [44, "mov rax, [rbp+var_8]"], [45, "mov eax, [rax+8]"], [46, "mov rsi, [rbp+var_18]"], [47, "mov r9, rcx"], [48, "mov r8d, edx"], [49, "mov ecx, edi"], [50, "mov edx, offset aTapeCompletion"], [51, "mov edi, eax"], [52, "mov eax, 0"], [53, "call sub_455FDF"], [54, "mov rax, [rbp+var_8]"], [55, "mov eax, [rax+100h]"], [56, "test eax, eax"], [57, "jz short loc_49311D"], [58, "call _abort"], [59, "mov rax, [rbp+var_8]"], [60, "mov eax, [rax+10h]"], [61, "test eax, eax"], [62, "jz short loc_493138"], [63, "mov rax, [rbp+var_8]"], [64, "add rax, 48h "], [65, "mov rdi, rax"], [66, "call _pthread_mutex_lock"], [67, "mov rax, [rbp+var_8]"], [68, "mov rax, [rax+138h]"], [69, "test rax, rax"], [70, "jz short loc_49318D"], [71, "mov rax, [rbp+var_8]"], [72, "mov qword ptr [rax+138h], 0"], [73, "mov rax, [rbp+var_8]"], [74, "mov eax, [rax+10h]"], [75, "test eax, eax"], [76, "jz short loc_493172"], [77, "mov rax, [rbp+var_8]"], [78, "add rax, 48h "], [79, "mov rdi, rax"], [80, "call _pthread_mutex_unlock"], [81, "mov rax, [rbp+var_8]"], [82, "mov edx, [rax+140h]"], [83, "mov rax, [rbp+var_18]"], [84, "mov rcx, [rbp+var_10]"], [85, "mov esi, edx"], [86, "mov rdi, rax"], [87, "call rcx"], [88, "jmp short loc_4931A8"], [89, "mov rax, [rbp+var_8]"], [90, "mov eax, [rax+10h]"], [91, "test eax, eax"], [92, "jz short loc_4931A8"], [93, "mov rax, [rbp+var_8]"], [94, "add rax, 48h "], [95, "mov rdi, rax"], [96, "call _pthread_mutex_unlock"], [97, "nop"], [98, "leave"], [99, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [11, 10], [12, 11], [13, 3], [14, 13], [15, 3], [16, 15], [17, 16], [18, 17], [19, 3], [20, 19], [21, 3], [22, 21], [23, 22], [24, 23], [24, 20], [25, 6], [26, 25], [27, 24], [27, 26], [28, 27], [29, 28], [30, 6], [31, 30], [32, 6], [33, 32], [34, 6], [35, 34], [36, 35], [37, 3], [38, 36], [38, 37], [39, 38], [40, 39], [42, 41], [42, 40], [43, 42], [44, 6], [45, 44], [46, 3], [47, 31], [48, 33], [49, 43], [51, 45], [54, 6], [55, 54], [56, 55], [57, 56], [59, 6], [60, 59], [61, 60], [62, 61], [63, 6], [64, 63], [65, 64], [67, 6], [68, 67], [69, 68], [70, 69], [71, 6], [72, 71], [73, 6], [74, 73], [74, 72], [75, 74], [76, 75], [77, 6], [78, 77], [79, 78], [81, 6], [82, 72], [82, 81], [83, 3], [84, 9], [85, 82], [86, 83], [87, 84], [89, 6], [90, 89], [91, 90], [92, 91], [93, 6], [94, 93], [95, 94], [99, 87], [99, 96], [99, 91]]}
|
static int /* character; there is no "none" value */
firstch(p, cs)
register struct parse *p;
register cset *cs;
{
register int i;
register size_t css = (size_t)p->g->csetsize;
for (i = 0; i < css; i++)
if (CHIN(cs, i))
return((char)i);
assert(never);
return(0); /* arbitrary */
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405C3F", "function_addr": 4217919, "binary_name": "639e7ba9a87f666157b0fa6d620a96d4f661aed269255221720fb5b6a597debb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "mov rdx, rdi"], [5, "mov rax, rsi"], [6, "mov rdx, [rdx+38h]"], [7, "mov edx, [rdx+10h]"], [8, "movsxd r12, edx"], [9, "mov ebx, 0"], [10, "jmp short loc_405C7F"], [11, "mov rcx, [rax]"], [12, "mov edx, ebx"], [13, "movzx edx, dl"], [14, "add rdx, rcx"], [15, "movzx ecx, byte ptr [rdx]"], [16, "movzx edx, byte ptr [rax+8]"], [17, "and edx, ecx"], [18, "test dl, dl"], [19, "jz short loc_405C7C"], [20, "mov eax, ebx"], [21, "movsx eax, al"], [22, "jmp short loc_405C8C"], [23, "add ebx, 1"], [24, "movsxd rdx, ebx"], [25, "cmp r12, rdx"], [26, "ja short loc_405C5D"], [27, "mov eax, 0"], [28, "pop rbx"], [29, "pop r12"], [30, "pop rbp"], [31, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 7], [11, 5], [12, 9], [12, 23], [13, 12], [14, 13], [14, 11], [15, 14], [16, 5], [17, 15], [17, 16], [18, 17], [19, 18], [20, 23], [20, 9], [21, 20], [23, 9], [23, 23], [24, 23], [24, 9], [25, 24], [25, 8], [26, 25], [28, 3], [29, 2], [30, 0], [31, 21], [31, 27]]}
|
void client_print(int fd) {
char buf[MAXBUF];
int n;
// Read and display the HTTP Header
n = readline_or_die(fd, buf, MAXBUF);
while (strcmp(buf, "\r\n") && (n > 0)) {
printf("Header: %s", buf);
n = readline_or_die(fd, buf, MAXBUF);
// If you want to look for certain HTTP tags...
// int length = 0;
//if (sscanf(buf, "Content-Length: %d ", &length) == 1) {
// printf("Length = %d\n", length);
//}
}
// Read and display the HTTP Body
n = readline_or_die(fd, buf, MAXBUF);
while (n > 0) {
printf("%s", buf);
n = readline_or_die(fd, buf, MAXBUF);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401357", "function_addr": 4199255, "binary_name": "31a237f877597196622f4beec8002394321c16ae62fe4ec52d62ac660ad8d878.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 2040h"], [3, "mov [rbp+var_2034], edi"], [4, "lea rcx, [rbp+s1]"], [5, "mov eax, [rbp+var_2034]"], [6, "mov edx, 2000h"], [7, "mov rsi, rcx"], [8, "mov edi, eax"], [9, "call sub_4015D4"], [10, "mov [rbp+var_10], rax"], [11, "cmp [rbp+var_10], 0"], [12, "jns short loc_4013A8"], [13, "mov ecx, offset aClientPrint"], [14, "mov edx, 31h "], [15, "mov esi, offset file"], [16, "mov edi, offset aRc0_0"], [17, "call ___assert_fail"], [18, "mov rax, [rbp+var_10]"], [19, "mov [rbp+var_4], eax"], [20, "jmp short loc_401411"], [21, "lea rax, [rbp+s1]"], [22, "mov rsi, rax"], [23, "mov edi, offset aHeaderS"], [24, "mov eax, 0"], [25, "call _printf"], [26, "lea rcx, [rbp+s1]"], [27, "mov eax, [rbp+var_2034]"], [28, "mov edx, 2000h"], [29, "mov rsi, rcx"], [30, "mov edi, eax"], [31, "call sub_4015D4"], [32, "mov [rbp+var_18], rax"], [33, "cmp [rbp+var_18], 0"], [34, "jns short loc_40140A"], [35, "mov ecx, offset aClientPrint"], [36, "mov edx, 34h "], [37, "mov esi, offset file"], [38, "mov edi, offset aRc0_0"], [39, "call ___assert_fail"], [40, "mov rax, [rbp+var_18]"], [41, "mov [rbp+var_4], eax"], [42, "lea rax, [rbp+s1]"], [43, "mov esi, offset s2"], [44, "mov rdi, rax"], [45, "call _strcmp"], [46, "test eax, eax"], [47, "jz short loc_40142F"], [48, "cmp [rbp+var_4], 0"], [49, "jg short loc_4013B1"], [50, "lea rcx, [rbp+s1]"], [51, "mov eax, [rbp+var_2034]"], [52, "mov edx, 2000h"], [53, "mov rsi, rcx"], [54, "mov edi, eax"], [55, "call sub_4015D4"], [56, "mov [rbp+var_20], rax"], [57, "cmp [rbp+var_20], 0"], [58, "jns short loc_40146F"], [59, "mov ecx, offset aClientPrint"], [60, "mov edx, 3Eh "], [61, "mov esi, offset file"], [62, "mov edi, offset aRc0_0"], [63, "call ___assert_fail"], [64, "mov rax, [rbp+var_20]"], [65, "mov [rbp+var_4], eax"], [66, "jmp short loc_4014D8"], [67, "lea rax, [rbp+s1]"], [68, "mov rsi, rax"], [69, "mov edi, offset aS"], [70, "mov eax, 0"], [71, "call _printf"], [72, "lea rcx, [rbp+s1]"], [73, "mov eax, [rbp+var_2034]"], [74, "mov edx, 2000h"], [75, "mov rsi, rcx"], [76, "mov edi, eax"], [77, "call sub_4015D4"], [78, "mov [rbp+var_28], rax"], [79, "cmp [rbp+var_28], 0"], [80, "jns short loc_4014D1"], [81, "mov ecx, offset aClientPrint"], [82, "mov edx, 41h "], [83, "mov esi, offset file"], [84, "mov edi, offset aRc0_0"], [85, "call ___assert_fail"], [86, "mov rax, [rbp+var_28]"], [87, "mov [rbp+var_4], eax"], [88, "cmp [rbp+var_4], 0"], [89, "jg short loc_401478"], [90, "nop"], [91, "nop"], [92, "leave"], [93, "retn"]], "data_dep": [[5, 3], [7, 4], [8, 5], [10, 9], [11, 10], [12, 11], [18, 10], [19, 18], [21, 46], [22, 21], [26, 26], [26, 4], [27, 3], [29, 26], [30, 27], [32, 31], [33, 32], [34, 33], [40, 32], [41, 40], [42, 40], [42, 18], [44, 42], [46, 45], [47, 46], [48, 41], [48, 19], [49, 48], [50, 26], [50, 4], [51, 3], [53, 50], [54, 51], [56, 55], [57, 56], [58, 57], [64, 56], [65, 64], [67, 86], [67, 64], [68, 67], [72, 72], [72, 50], [73, 3], [75, 72], [76, 73], [78, 77], [79, 78], [80, 79], [86, 78], [87, 86], [88, 87], [88, 65], [89, 88], [93, 86], [93, 64]]}
|
static int get_vendor_id(int ifindex)
{
char ifname[IF_NAMESIZE], path[64], buf[8];
ssize_t len;
int fd;
if (!if_indextoname(ifindex, ifname))
return -1;
snprintf(path, sizeof(path), "/sys/class/net/%s/device/vendor", ifname);
fd = open(path, O_RDONLY);
if (fd < 0)
return -1;
len = read(fd, buf, sizeof(buf));
close(fd);
if (len < 0)
return -1;
if (len >= (ssize_t)sizeof(buf))
return -1;
buf[len] = '\0';
return strtol(buf, NULL, 0);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41B19D", "function_addr": 4305309, "binary_name": "b671a6d9a865e2a0dfafbbbe0c80f375e68809a88f83415dd956d122fc4f7587.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "add rsp, 0FFFFFFFFFFFFFF80h"], [3, "mov [rbp+ifindex], edi"], [4, "mov eax, [rbp+ifindex]"], [5, "lea rdx, [rbp+ifname]"], [6, "mov rsi, rdx"], [7, "mov edi, eax"], [8, "call _if_indextoname"], [9, "test rax, rax"], [10, "jnz short loc_41B1C8"], [11, "mov eax, 0FFFFFFFFh"], [12, "jmp locret_41B276"], [13, "lea rdx, [rbp+ifname]"], [14, "lea rax, [rbp+s]"], [15, "mov rcx, rdx"], [16, "lea rdx, aSysClassNetSDe"], [17, "mov esi, 40h "], [18, "mov rdi, rax"], [19, "mov eax, 0"], [20, "call _snprintf"], [21, "lea rax, [rbp+s]"], [22, "mov esi, 0"], [23, "mov rdi, rax"], [24, "mov eax, 0"], [25, "call _open"], [26, "mov [rbp+fd], eax"], [27, "cmp [rbp+fd], 0"], [28, "jns short loc_41B212"], [29, "mov eax, 0FFFFFFFFh"], [30, "jmp short locret_41B276"], [31, "lea rcx, [rbp+buf]"], [32, "mov eax, [rbp+fd]"], [33, "mov edx, 8"], [34, "mov rsi, rcx"], [35, "mov edi, eax"], [36, "call _read"], [37, "mov [rbp+var_10], rax"], [38, "mov eax, [rbp+fd]"], [39, "mov edi, eax"], [40, "call _close"], [41, "cmp [rbp+var_10], 0"], [42, "jns short loc_41B244"], [43, "mov eax, 0FFFFFFFFh"], [44, "jmp short locret_41B276"], [45, "cmp [rbp+var_10], 7"], [46, "jle short loc_41B252"], [47, "mov eax, 0FFFFFFFFh"], [48, "jmp short locret_41B276"], [49, "lea rdx, [rbp+buf]"], [50, "mov rax, [rbp+var_10]"], [51, "add rax, rdx"], [52, "mov byte ptr [rax], 0"], [53, "lea rax, [rbp+buf]"], [54, "mov edx, 0"], [55, "mov esi, 0"], [56, "mov rdi, rax"], [57, "call _strtol"], [58, "leave"], [59, "retn"]], "data_dep": [[4, 3], [6, 5], [7, 4], [9, 8], [10, 9], [13, 5], [14, 9], [15, 13], [16, 13], [18, 14], [21, 20], [23, 21], [26, 25], [27, 26], [28, 27], [31, 15], [32, 26], [34, 31], [35, 32], [37, 36], [38, 26], [39, 38], [41, 37], [42, 41], [45, 37], [46, 45], [49, 33], [50, 37], [51, 50], [51, 49], [52, 51], [53, 51], [56, 53], [59, 57], [59, 11], [59, 29], [59, 47], [59, 43]]}
|
static int wpa_ft_parse_ftie(const u8 *ie, size_t ie_len,
struct wpa_ft_ies *parse, int use_sha384)
{
const u8 *end, *pos;
parse->ftie = ie;
parse->ftie_len = ie_len;
pos = ie + (use_sha384 ? sizeof(struct rsn_ftie_sha384) :
sizeof(struct rsn_ftie));
end = ie + ie_len;
wpa_hexdump(MSG_DEBUG, "FT: Parse FTE subelements", pos, end - pos);
while (end - pos >= 2) {
u8 id, len;
id = *pos++;
len = *pos++;
if (len > end - pos) {
wpa_printf(MSG_DEBUG, "FT: Truncated subelement");
break;
}
switch (id) {
case FTIE_SUBELEM_R1KH_ID:
if (len != FT_R1KH_ID_LEN) {
wpa_printf(MSG_DEBUG,
"FT: Invalid R1KH-ID length in FTIE: %d",
len);
return -1;
}
parse->r1kh_id = pos;
break;
case FTIE_SUBELEM_GTK:
parse->gtk = pos;
parse->gtk_len = len;
break;
case FTIE_SUBELEM_R0KH_ID:
if (len < 1 || len > FT_R0KH_ID_MAX_LEN) {
wpa_printf(MSG_DEBUG,
"FT: Invalid R0KH-ID length in FTIE: %d",
len);
return -1;
}
parse->r0kh_id = pos;
parse->r0kh_id_len = len;
break;
case FTIE_SUBELEM_IGTK:
parse->igtk = pos;
parse->igtk_len = len;
break;
#ifdef CONFIG_OCV
case FTIE_SUBELEM_OCI:
parse->oci = pos;
parse->oci_len = len;
break;
#endif /* CONFIG_OCV */
case FTIE_SUBELEM_BIGTK:
parse->bigtk = pos;
parse->bigtk_len = len;
break;
default:
wpa_printf(MSG_DEBUG, "FT: Unknown subelem id %u", id);
break;
}
pos += len;
}
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45A387", "function_addr": 4563847, "binary_name": "208d6f5c4c47e61fc5612dba9824bbb292bc6b59ec61b6b27384dbfe4df358f2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_30], rsi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_3C], ecx"], [7, "mov rax, [rbp+var_38]"], [8, "mov rdx, [rbp+var_28]"], [9, "mov [rax+10h], rdx"], [10, "mov rax, [rbp+var_38]"], [11, "mov rdx, [rbp+var_30]"], [12, "mov [rax+18h], rdx"], [13, "cmp [rbp+var_3C], 0"], [14, "jz short loc_45A3C3"], [15, "mov edx, 5Ah "], [16, "jmp short loc_45A3C8"], [17, "mov edx, 52h "], [18, "mov rax, [rbp+var_28]"], [19, "add rax, rdx"], [20, "mov [rbp+var_8], rax"], [21, "mov rdx, [rbp+var_28]"], [22, "mov rax, [rbp+var_30]"], [23, "add rax, rdx"], [24, "mov [rbp+var_10], rax"], [25, "mov rax, [rbp+var_10]"], [26, "sub rax, [rbp+var_8]"], [27, "mov rdx, rax"], [28, "mov rax, [rbp+var_8]"], [29, "mov rcx, rdx"], [30, "mov rdx, rax"], [31, "mov esi, offset aFtParseFteSube"], [32, "mov edi, 2"], [33, "call sub_486FC3"], [34, "jmp loc_45A577"], [35, "mov rax, [rbp+var_8]"], [36, "lea rdx, [rax+1]"], [37, "mov [rbp+var_8], rdx"], [38, "movzx eax, byte ptr [rax]"], [39, "mov [rbp+var_11], al"], [40, "mov rax, [rbp+var_8]"], [41, "lea rdx, [rax+1]"], [42, "mov [rbp+var_8], rdx"], [43, "movzx eax, byte ptr [rax]"], [44, "mov [rbp+var_12], al"], [45, "movzx edx, [rbp+var_12]"], [46, "mov rax, [rbp+var_10]"], [47, "sub rax, [rbp+var_8]"], [48, "cmp rdx, rax"], [49, "jle short loc_45A459"], [50, "mov esi, offset aFtTruncatedSub"], [51, "mov edi, 2"], [52, "mov eax, 0"], [53, "call sub_486CC5"], [54, "jmp loc_45A589"], [55, "movzx eax, [rbp+var_11]"], [56, "cmp eax, 6"], [57, "ja def_45A470"], [58, "mov eax, eax"], [59, "mov rax, ds:jpt_45A470[rax*8]"], [60, "jmp rax"], [61, "cmp [rbp+var_12], 6"], [62, "jz short loc_45A49C"], [63, "movzx eax, [rbp+var_12]"], [64, "mov edx, eax"], [65, "mov esi, offset aFtInvalidR1khI"], [66, "mov edi, 2"], [67, "mov eax, 0"], [68, "call sub_486CC5"], [69, "mov eax, 0FFFFFFFFh"], [70, "jmp locret_45A58E"], [71, "mov rax, [rbp+var_38]"], [72, "mov rdx, [rbp+var_8]"], [73, "mov [rax+20h], rdx"], [74, "jmp loc_45A56F"], [75, "mov rax, [rbp+var_38]"], [76, "mov rdx, [rbp+var_8]"], [77, "mov [rax+28h], rdx"], [78, "movzx edx, [rbp+var_12]"], [79, "mov rax, [rbp+var_38]"], [80, "mov [rax+30h], rdx"], [81, "jmp loc_45A56F"], [82, "cmp [rbp+var_12], 0"], [83, "jz short loc_45A4D6"], [84, "cmp [rbp+var_12], 30h "], [85, "jbe short loc_45A4FA"], [86, "movzx eax, [rbp+var_12]"], [87, "mov edx, eax"], [88, "mov esi, offset aFtInvalidR0khI"], [89, "mov edi, 2"], [90, "mov eax, 0"], [91, "call sub_486CC5"], [92, "mov eax, 0FFFFFFFFh"], [93, "jmp locret_45A58E"], [94, "mov rax, [rbp+var_38]"], [95, "mov rdx, [rbp+var_8]"], [96, "mov [rax+38h], rdx"], [97, "movzx edx, [rbp+var_12]"], [98, "mov rax, [rbp+var_38]"], [99, "mov [rax+40h], rdx"], [100, "jmp short loc_45A56F"], [101, "mov rax, [rbp+var_38]"], [102, "mov rdx, [rbp+var_8]"], [103, "mov [rax+88h], rdx"], [104, "movzx edx, [rbp+var_12]"], [105, "mov rax, [rbp+var_38]"], [106, "mov [rax+90h], rdx"], [107, "jmp short loc_45A56F"], [108, "mov rax, [rbp+var_38]"], [109, "mov rdx, [rbp+var_8]"], [110, "mov [rax+98h], rdx"], [111, "movzx edx, [rbp+var_12]"], [112, "mov rax, [rbp+var_38]"], [113, "mov [rax+0A0h], rdx"], [114, "jmp short loc_45A56F"], [115, "movzx eax, [rbp+var_11]"], [116, "mov edx, eax"], [117, "mov esi, offset aFtUnknownSubel"], [118, "mov edi, 2"], [119, "mov eax, 0"], [120, "call sub_486CC5"], [121, "nop"], [122, "movzx eax, [rbp+var_12]"], [123, "add [rbp+var_8], rax"], [124, "mov rax, [rbp+var_10]"], [125, "sub rax, [rbp+var_8]"], [126, "cmp rax, 1"], [127, "jg loc_45A40B"], [128, "mov eax, 0"], [129, "leave"], [130, "retn"]], "data_dep": [[7, 5], [8, 3], [9, 8], [9, 7], [10, 5], [11, 4], [12, 10], [12, 11], [13, 6], [14, 13], [18, 3], [19, 18], [19, 15], [19, 17], [20, 19], [21, 3], [22, 4], [23, 22], [23, 21], [24, 23], [25, 24], [26, 25], [26, 20], [27, 26], [28, 20], [29, 27], [30, 28], [35, 123], [35, 20], [36, 80], [36, 9], [36, 73], [36, 77], [36, 116], [36, 111], [36, 104], [36, 113], [36, 97], [36, 106], [36, 72], [36, 35], [36, 99], [36, 110], [36, 12], [36, 30], [36, 103], [36, 78], [36, 96], [37, 36], [38, 80], [38, 110], [38, 9], [38, 73], [38, 103], [38, 96], [38, 77], [38, 113], [38, 106], [38, 35], [38, 99], [38, 12], [39, 38], [40, 37], [41, 40], [41, 113], [41, 106], [41, 99], [41, 110], [41, 12], [41, 103], [41, 96], [41, 80], [41, 9], [41, 73], [41, 77], [41, 36], [42, 41], [43, 110], [43, 12], [43, 103], [43, 96], [43, 80], [43, 9], [43, 73], [43, 77], [43, 40], [43, 113], [43, 106], [43, 99], [44, 43], [45, 44], [46, 24], [47, 42], [47, 46], [48, 45], [48, 47], [49, 48], [55, 39], [56, 55], [57, 56], [58, 55], [60, 59], [61, 44], [62, 61], [63, 44], [64, 63], [71, 5], [72, 42], [73, 71], [73, 72], [75, 5], [76, 42], [77, 76], [77, 75], [78, 44], [79, 5], [80, 78], [80, 79], [82, 44], [83, 82], [84, 44], [85, 84], [86, 44], [87, 86], [94, 5], [95, 42], [96, 95], [96, 94], [97, 44], [98, 5], [99, 97], [99, 98], [101, 5], [102, 42], [103, 102], [103, 101], [104, 44], [105, 5], [106, 104], [106, 105], [108, 5], [109, 42], [110, 109], [110, 108], [111, 44], [112, 5], [113, 112], [113, 111], [115, 39], [116, 115], [122, 44], [123, 122], [123, 42], [124, 24], [125, 20], [125, 123], [125, 124], [126, 125], [127, 126], [130, 92], [130, 69], [130, 128]]}
|
static long get_addsub(const char **s)
{
long v;
int op;
v = get_mul(s);
while ( (**s) == '+' || (**s) == '-' )
{
op = **s;
(*s)++;
skip_space(s);
if ( op == '+' )
v += get_mul(s);
else
v -= get_mul(s);
}
return v;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405CD4", "function_addr": 4218068, "binary_name": "e2618388181add42b7972a736ce8b09648a8c19ffcfdb901da6bb564338ed4d3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 18h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov rdi, rax"], [6, "call sub_405C0C"], [7, "mov [rbp+var_8], rax"], [8, "jmp short loc_405D48"], [9, "mov rax, [rbp+var_18]"], [10, "mov rax, [rax]"], [11, "movzx eax, byte ptr [rax]"], [12, "movsx eax, al"], [13, "mov [rbp+var_C], eax"], [14, "mov rax, [rbp+var_18]"], [15, "mov rax, [rax]"], [16, "lea rdx, [rax+1]"], [17, "mov rax, [rbp+var_18]"], [18, "mov [rax], rdx"], [19, "mov rax, [rbp+var_18]"], [20, "mov rdi, rax"], [21, "call sub_4059EB"], [22, "cmp [rbp+var_C], 2Bh "], [23, "jnz short loc_405D38"], [24, "mov rax, [rbp+var_18]"], [25, "mov rdi, rax"], [26, "call sub_405C0C"], [27, "add [rbp+var_8], rax"], [28, "jmp short loc_405D48"], [29, "mov rax, [rbp+var_18]"], [30, "mov rdi, rax"], [31, "call sub_405C0C"], [32, "sub [rbp+var_8], rax"], [33, "mov rax, [rbp+var_18]"], [34, "mov rax, [rax]"], [35, "movzx eax, byte ptr [rax]"], [36, "cmp al, 2Bh "], [37, "jz short loc_405CF2"], [38, "mov rax, [rbp+var_18]"], [39, "mov rax, [rax]"], [40, "movzx eax, byte ptr [rax]"], [41, "cmp al, 2Dh "], [42, "jz short loc_405CF2"], [43, "mov rax, [rbp+var_8]"], [44, "leave"], [45, "retn"]], "data_dep": [[4, 3], [5, 4], [7, 6], [9, 3], [10, 9], [10, 18], [11, 10], [11, 18], [12, 11], [13, 12], [14, 3], [15, 14], [15, 18], [16, 16], [16, 15], [16, 18], [17, 3], [18, 17], [18, 16], [19, 3], [20, 19], [22, 13], [23, 22], [24, 3], [25, 24], [27, 7], [27, 27], [27, 26], [27, 32], [29, 3], [30, 29], [32, 31], [32, 27], [32, 32], [32, 7], [33, 3], [34, 18], [34, 33], [35, 34], [35, 18], [36, 35], [37, 36], [38, 3], [39, 18], [39, 38], [40, 18], [40, 39], [41, 40], [42, 41], [43, 27], [43, 32], [43, 7], [45, 43]]}
|
void LongOption (unsigned* ArgNum, const LongOpt* OptTab, unsigned OptCount)
/* Handle a long command line option */
{
/* Get the option and the argument (which may be zero) */
const char* Opt = ArgVec[*ArgNum];
/* Search the table for a match */
while (OptCount) {
if (strcmp (Opt, OptTab->Option) == 0) {
/* Found, call the function */
if (OptTab->ArgCount > 0) {
/* We need an argument, check if we have one */
const char* Arg = ArgVec[++(*ArgNum)];
if (Arg == 0) {
NeedArg (Opt);
}
OptTab->Func (Opt, Arg);
} else {
OptTab->Func (Opt, 0);
}
/* Done */
return;
}
/* Next table entry */
--OptCount;
++OptTab;
}
/* Invalid option */
UnknownOption (Opt);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_41A093", "function_addr": 4300947, "binary_name": "aeb2614dcd74c7b9c53d8d96f9f865e8c3003aa55654ca3473af19e1d35bb1d1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_24], edx"], [6, "mov rdx, cs:qword_43AD50"], [7, "mov rax, [rbp+var_18]"], [8, "mov eax, [rax]"], [9, "mov eax, eax"], [10, "shl rax, 3"], [11, "add rax, rdx"], [12, "mov rax, [rax]"], [13, "mov [rbp+s1], rax"], [14, "jmp loc_41A167"], [15, "mov rax, [rbp+var_20]"], [16, "mov rdx, [rax]"], [17, "mov rax, [rbp+s1]"], [18, "mov rsi, rdx"], [19, "mov rdi, rax"], [20, "call _strcmp"], [21, "test eax, eax"], [22, "jnz short loc_41A15E"], [23, "mov rax, [rbp+var_20]"], [24, "mov eax, [rax+8]"], [25, "test eax, eax"], [26, "jz short loc_41A146"], [27, "mov rcx, cs:qword_43AD50"], [28, "mov rax, [rbp+var_18]"], [29, "mov eax, [rax]"], [30, "lea edx, [rax+1]"], [31, "mov rax, [rbp+var_18]"], [32, "mov [rax], edx"], [33, "mov rax, [rbp+var_18]"], [34, "mov eax, [rax]"], [35, "mov eax, eax"], [36, "shl rax, 3"], [37, "add rax, rcx"], [38, "mov rax, [rax]"], [39, "mov [rbp+var_10], rax"], [40, "cmp [rbp+var_10], 0"], [41, "jnz short loc_41A12C"], [42, "mov rax, [rbp+s1]"], [43, "mov rdi, rax"], [44, "call sub_419F7F"], [45, "mov rax, [rbp+var_20]"], [46, "mov rcx, [rax+10h]"], [47, "mov rdx, [rbp+var_10]"], [48, "mov rax, [rbp+s1]"], [49, "mov rsi, rdx"], [50, "mov rdi, rax"], [51, "call rcx"], [52, "jmp short locret_41A17D"], [53, "mov rax, [rbp+var_20]"], [54, "mov rdx, [rax+10h]"], [55, "mov rax, [rbp+s1]"], [56, "mov esi, 0"], [57, "mov rdi, rax"], [58, "call rdx"], [59, "jmp short locret_41A17D"], [60, "sub [rbp+var_24], 1"], [61, "add [rbp+var_20], 18h"], [62, "cmp [rbp+var_24], 0"], [63, "jnz loc_41A0C8"], [64, "mov rax, [rbp+s1]"], [65, "mov rdi, rax"], [66, "call sub_419F5D"], [67, "leave"], [68, "retn"]], "data_dep": [[7, 3], [8, 7], [9, 8], [10, 9], [11, 10], [11, 6], [12, 11], [13, 12], [15, 4], [15, 61], [16, 15], [17, 13], [18, 16], [19, 17], [21, 20], [22, 21], [23, 4], [23, 61], [24, 23], [25, 24], [26, 25], [28, 3], [29, 28], [30, 29], [30, 16], [31, 3], [32, 31], [32, 30], [33, 3], [34, 33], [34, 32], [35, 34], [36, 35], [37, 27], [37, 36], [38, 32], [38, 37], [39, 38], [40, 39], [41, 40], [42, 13], [43, 42], [45, 4], [45, 61], [46, 45], [46, 32], [47, 39], [48, 13], [49, 47], [50, 48], [51, 46], [53, 4], [53, 61], [54, 53], [55, 13], [57, 55], [58, 54], [60, 60], [60, 5], [61, 61], [61, 4], [62, 60], [62, 5], [63, 62], [64, 13], [65, 64], [68, 51], [68, 58]]}
|
static int command_erase2(struct common_hnd *chnd, uint32_t len,
uint32_t off, uint32_t reset)
{
int res = -EIO;
int page = 0;
uint32_t remaining = len;
/*
* TODOD(b/<>):
* Using sector erase instead of chip erase
* For some new chip , the chip erase may not work
* well on the original flow
*/
printf("Erasing flash...erase size=%d\n", len);
if (off != 0 || len != chnd->flash_size) {
fprintf(stderr, "Only full chip erase is supported\n");
return -EINVAL;
}
if (spi_flash_follow_mode(chnd, "erase") < 0)
goto failed_erase;
while (remaining) {
draw_spinner(remaining, len);
if (spi_flash_command_short(chnd, SPI_CMD_WRITE_ENABLE,
"write enable for erase") < 0)
goto failed_erase;
if (spi_check_write_enable(chnd, "erase") < 0)
goto failed_erase;
/* do sector erase */
if (spi_flash_command_short(chnd, spi_cmd_sector_erase,
"sector erase") < 0)
goto failed_erase;
if (spi_flash_set_erase_page(chnd, page, "sector erase") < 0)
goto failed_erase;
if (spi_poll_busy(chnd, "erase") < 0)
goto failed_erase;
if (spi_flash_command_short(chnd, SPI_CMD_WRITE_DISABLE,
"write disable for erase") < 0)
goto failed_erase;
if (reset) {
printf("\n\rreset to prevent the watchdog reset...\n");
break;
}
page += sector_erase_pages;
remaining -= sector_erase_pages * PAGE_SIZE;
draw_spinner(remaining, len);
}
/* No error so far */
printf("\n\rErasing Done.\n");
res = 0;
failed_erase:
if (spi_flash_command_short(chnd, SPI_CMD_WRITE_DISABLE,
"write disable exit erase") < 0)
res = -EIO;
if (spi_flash_follow_mode_exit(chnd, "erase") < 0)
res = -EIO;
return res;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404EB0", "function_addr": 4214448, "binary_name": "a8fcb0344b609795bab1802dba01c96a4d4959f5a9e829e22634f7c43955b254.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1C], esi"], [5, "mov [rbp+var_20], edx"], [6, "mov [rbp+var_24], ecx"], [7, "mov [rbp+var_4], 0FFFFFFFBh"], [8, "mov [rbp+var_8], 0"], [9, "mov eax, [rbp+var_1C]"], [10, "mov [rbp+var_C], eax"], [11, "mov eax, [rbp+var_1C]"], [12, "mov esi, eax"], [13, "mov edi, offset aErasingFlashEr"], [14, "mov eax, 0"], [15, "call _printf"], [16, "cmp [rbp+var_20], 0"], [17, "jnz short loc_404EFF"], [18, "mov rax, [rbp+var_18]"], [19, "mov eax, [rax+60h]"], [20, "cmp [rbp+var_1C], eax"], [21, "jz short loc_404F27"], [22, "mov rax, cs:stderr"], [23, "mov rcx, rax"], [24, "mov edx, 22h "], [25, "mov esi, 1"], [26, "mov edi, offset aOnlyFullChipEr"], [27, "call _fwrite"], [28, "mov eax, 0FFFFFFEAh"], [29, "jmp locret_4050AF"], [30, "mov rax, [rbp+var_18]"], [31, "mov esi, offset aErase"], [32, "mov rdi, rax"], [33, "call sub_403AC9"], [34, "test eax, eax"], [35, "js loc_40505C"], [36, "jmp loc_40503F"], [37, "mov edx, [rbp+var_1C]"], [38, "mov eax, [rbp+var_C]"], [39, "mov esi, edx"], [40, "mov edi, eax"], [41, "call sub_40458F"], [42, "mov rax, [rbp+var_18]"], [43, "mov edx, offset aWriteEnableFor_0"], [44, "mov esi, 6"], [45, "mov rdi, rax"], [46, "call sub_403C8A"], [47, "test eax, eax"], [48, "js loc_40505F"], [49, "mov rax, [rbp+var_18]"], [50, "mov esi, offset aErase"], [51, "mov rdi, rax"], [52, "call sub_403EA5"], [53, "test eax, eax"], [54, "js loc_405062"], [55, "movzx eax, cs:byte_40C241"], [56, "movzx ecx, al"], [57, "mov rax, [rbp+var_18]"], [58, "mov edx, offset aSectorErase"], [59, "mov esi, ecx"], [60, "mov rdi, rax"], [61, "call sub_403C8A"], [62, "test eax, eax"], [63, "js loc_405065"], [64, "mov ecx, [rbp+var_8]"], [65, "mov rax, [rbp+var_18]"], [66, "mov edx, offset aSectorErase"], [67, "mov esi, ecx"], [68, "mov rdi, rax"], [69, "call sub_403D49"], [70, "test eax, eax"], [71, "js loc_405068"], [72, "mov rax, [rbp+var_18]"], [73, "mov esi, offset aErase"], [74, "mov rdi, rax"], [75, "call sub_403DF3"], [76, "test eax, eax"], [77, "js loc_40506B"], [78, "mov rax, [rbp+var_18]"], [79, "mov edx, offset aWriteDisableFo_0"], [80, "mov esi, 4"], [81, "mov rdi, rax"], [82, "call sub_403C8A"], [83, "test eax, eax"], [84, "js short loc_40506E"], [85, "cmp [rbp+var_24], 0"], [86, "jz short loc_405013"], [87, "mov edi, offset aResetToPrevent"], [88, "call _puts"], [89, "jmp short loc_405049"], [90, "movzx eax, cs:byte_40C242"], [91, "movzx eax, al"], [92, "add [rbp+var_8], eax"], [93, "movzx eax, cs:byte_40C242"], [94, "movzx eax, al"], [95, "shl eax, 8"], [96, "sub [rbp+var_C], eax"], [97, "mov edx, [rbp+var_1C]"], [98, "mov eax, [rbp+var_C]"], [99, "mov esi, edx"], [100, "mov edi, eax"], [101, "call sub_40458F"], [102, "cmp [rbp+var_C], 0"], [103, "jnz loc_404F45"], [104, "mov edi, offset aErasingDone"], [105, "call _puts"], [106, "mov [rbp+var_4], 0"], [107, "jmp short loc_40506F"], [108, "nop"], [109, "jmp short loc_40506F"], [110, "nop"], [111, "jmp short loc_40506F"], [112, "nop"], [113, "jmp short loc_40506F"], [114, "nop"], [115, "jmp short loc_40506F"], [116, "nop"], [117, "jmp short loc_40506F"], [118, "nop"], [119, "jmp short loc_40506F"], [120, "nop"], [121, "mov rax, [rbp+var_18]"], [122, "mov edx, offset aWriteDisableEx_0"], [123, "mov esi, 4"], [124, "mov rdi, rax"], [125, "call sub_403C8A"], [126, "test eax, eax"], [127, "jns short loc_405090"], [128, "mov [rbp+var_4], 0FFFFFFFBh"], [129, "mov rax, [rbp+var_18]"], [130, "mov esi, offset aErase"], [131, "mov rdi, rax"], [132, "call sub_403B9D"], [133, "test eax, eax"], [134, "jns short loc_4050AC"], [135, "mov [rbp+var_4], 0FFFFFFFBh"], [136, "mov eax, [rbp+var_4]"], [137, "leave"], [138, "retn"]], "data_dep": [[9, 4], [10, 9], [11, 4], [12, 11], [16, 5], [17, 16], [18, 3], [19, 18], [20, 19], [20, 4], [21, 20], [23, 22], [30, 3], [32, 30], [34, 33], [35, 34], [37, 4], [38, 96], [38, 10], [39, 37], [40, 38], [42, 3], [45, 42], [47, 46], [48, 47], [49, 3], [51, 49], [53, 52], [54, 53], [56, 55], [57, 3], [59, 56], [60, 57], [62, 61], [63, 62], [64, 8], [64, 92], [65, 3], [67, 64], [68, 65], [70, 69], [71, 70], [72, 3], [74, 72], [76, 75], [77, 76], [78, 3], [81, 78], [83, 82], [84, 83], [85, 6], [86, 85], [91, 90], [92, 8], [92, 92], [92, 91], [94, 93], [95, 94], [96, 95], [96, 10], [96, 96], [97, 4], [98, 96], [99, 97], [100, 98], [102, 10], [102, 96], [103, 102], [121, 3], [124, 121], [126, 125], [127, 126], [129, 3], [131, 129], [133, 132], [134, 133], [136, 7], [136, 135], [136, 106], [136, 128], [138, 136], [138, 28]]}
|
int JS_ToFloat64(JSContext *ctx, double *pres, JSValueConst val)
{
return JS_ToFloat64Free(ctx, pres, JS_DupValue(ctx, val));
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42597B", "function_addr": 4348283, "binary_name": "05a784cbaf63e77696cf61106257fb3d5370a16def412a568e4bf7f4bb9147ce.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_20], rdx"], [6, "mov [rbp+var_18], rcx"], [7, "mov rcx, [rbp+var_20]"], [8, "mov rdx, [rbp+var_18]"], [9, "mov rax, [rbp+var_8]"], [10, "mov rsi, rcx"], [11, "mov rdi, rax"], [12, "call sub_40A91D"], [13, "mov rsi, [rbp+var_10]"], [14, "mov rdi, [rbp+var_8]"], [15, "mov rcx, rdx"], [16, "mov rdx, rax"], [17, "call sub_425905"], [18, "leave"], [19, "retn"]], "data_dep": [[7, 5], [8, 6], [9, 3], [10, 7], [11, 9], [13, 4], [14, 3], [15, 8], [16, 12], [19, 17]]}
|
int janet_dobytes(JanetTable *env, const uint8_t *bytes, int32_t len, const char *sourcePath, Janet *out) {
JanetParser parser;
int errflags = 0, done = 0;
int32_t index = 0;
Janet ret = janet_wrap_nil();
JanetFiber *fiber = NULL;
const uint8_t *where = sourcePath ? janet_cstring(sourcePath) : NULL;
if (where) janet_gcroot(janet_wrap_string(where));
if (NULL == sourcePath) sourcePath = "<unknown>";
janet_parser_init(&parser);
/* While we haven't seen an error */
while (!done) {
/* Evaluate parsed values */
while (janet_parser_has_more(&parser)) {
Janet form = janet_parser_produce(&parser);
JanetCompileResult cres = janet_compile(form, env, where);
if (cres.status == JANET_COMPILE_OK) {
JanetFunction *f = janet_thunk(cres.funcdef);
fiber = janet_fiber(f, 64, 0, NULL);
fiber->env = env;
JanetSignal status = janet_continue(fiber, janet_wrap_nil(), &ret);
if (status != JANET_SIGNAL_OK && status != JANET_SIGNAL_EVENT) {
janet_stacktrace_ext(fiber, ret, "");
errflags |= 0x01;
done = 1;
}
} else {
ret = janet_wrap_string(cres.error);
int32_t line = (int32_t) parser.line;
int32_t col = (int32_t) parser.column;
if ((cres.error_mapping.line > 0) &&
(cres.error_mapping.column > 0)) {
line = cres.error_mapping.line;
col = cres.error_mapping.column;
}
if (cres.macrofiber) {
janet_eprintf("%s:%d:%d: compile error", sourcePath,
line, col);
janet_stacktrace_ext(cres.macrofiber, ret, "");
} else {
janet_eprintf("%s:%d:%d: compile error: %s\n", sourcePath,
line, col, (const char *)cres.error);
}
errflags |= 0x02;
done = 1;
}
}
if (done) break;
/* Dispatch based on parse state */
switch (janet_parser_status(&parser)) {
case JANET_PARSE_DEAD:
done = 1;
break;
case JANET_PARSE_ERROR: {
const char *e = janet_parser_error(&parser);
errflags |= 0x04;
ret = janet_cstringv(e);
int32_t line = (int32_t) parser.line;
int32_t col = (int32_t) parser.column;
janet_eprintf("%s:%d:%d: parse error: %s\n", sourcePath, line, col, e);
done = 1;
break;
}
case JANET_PARSE_ROOT:
case JANET_PARSE_PENDING:
if (index >= len) {
janet_parser_eof(&parser);
} else {
janet_parser_consume(&parser, bytes[index++]);
}
break;
}
}
/* Clean up and return errors */
janet_parser_deinit(&parser);
if (where) janet_gcunroot(janet_wrap_string(where));
#ifdef JANET_EV
/* Enter the event loop if we are not already in it */
if (janet_vm.stackn == 0) {
if (fiber) {
janet_gcroot(janet_wrap_fiber(fiber));
}
janet_loop();
if (fiber) {
janet_gcunroot(janet_wrap_fiber(fiber));
ret = fiber->last_value;
}
}
#endif
if (out) *out = ret;
return errflags;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "janet_dobytes", "function_addr": 4522198, "binary_name": "34d708bcb60d5af2e39328b237b23bc6bb4df80dc158ca9262fb4bf1d3328aba.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 120h"], [3, "mov [rbp+var_F8], rdi"], [4, "mov [rbp+var_100], rsi"], [5, "mov [rbp+var_104], edx"], [6, "mov [rbp+var_110], rcx"], [7, "mov [rbp+var_118], r8"], [8, "mov [rbp+var_4], 0"], [9, "mov [rbp+var_8], 0"], [10, "mov [rbp+var_C], 0"], [11, "mov rdi, 0FFF8800000000001h"], [12, "call janet_nanbox_from_bits"], [13, "mov [rbp+var_B8], rax"], [14, "cmp [rbp+var_110], 0"], [15, "jz short loc_450149"], [16, "mov rax, [rbp+var_110]"], [17, "mov rdi, rax"], [18, "call janet_cstring"], [19, "jmp short loc_45014E"], [20, "mov eax, 0"], [21, "mov [rbp+var_18], rax"], [22, "cmp [rbp+var_18], 0"], [23, "jz short loc_450177"], [24, "mov rax, [rbp+var_18]"], [25, "mov rsi, 0FFFA000000000000h"], [26, "mov rdi, rax"], [27, "call janet_nanbox_from_cpointer"], [28, "mov rdi, rax"], [29, "call janet_gcroot"], [30, "cmp [rbp+var_110], 0"], [31, "jnz short loc_45018F"], [32, "lea rax, aUnknown"], [33, "mov [rbp+var_110], rax"], [34, "lea rax, [rbp+var_B0]"], [35, "mov rdi, rax"], [36, "call janet_parser_init"], [37, "jmp loc_4504A7"], [38, "lea rax, [rbp+var_B0]"], [39, "mov rdi, rax"], [40, "call janet_parser_produce"], [41, "mov [rbp+var_C0], rax"], [42, "lea rax, [rbp+var_F0]"], [43, "mov rcx, [rbp+var_18]"], [44, "mov rdx, [rbp+var_F8]"], [45, "mov rsi, [rbp+var_C0]"], [46, "mov rdi, rax"], [47, "call janet_compile"], [48, "mov eax, [rbp+var_D0]"], [49, "test eax, eax"], [50, "jnz loc_450295"], [51, "mov rax, [rbp+var_F0]"], [52, "mov rdi, rax"], [53, "call janet_thunk"], [54, "mov [rbp+var_30], rax"], [55, "mov rax, [rbp+var_30]"], [56, "mov ecx, 0"], [57, "mov edx, 0"], [58, "mov esi, 40h "], [59, "mov rdi, rax"], [60, "call janet_fiber"], [61, "mov [rbp+var_38], rax"], [62, "mov rax, [rbp+var_38]"], [63, "mov rdx, [rbp+var_F8]"], [64, "mov [rax+28h], rdx"], [65, "mov rdi, 0FFF8800000000001h"], [66, "call janet_nanbox_from_bits"], [67, "mov rcx, rax"], [68, "lea rdx, [rbp+var_B8]"], [69, "mov rax, [rbp+var_38]"], [70, "mov rsi, rcx"], [71, "mov rdi, rax"], [72, "call janet_continue"], [73, "mov [rbp+var_3C], eax"], [74, "cmp [rbp+var_3C], 0"], [75, "jz loc_450356"], [76, "cmp [rbp+var_3C], 0Dh"], [77, "jz loc_450356"], [78, "mov rcx, [rbp+var_B8]"], [79, "mov rax, [rbp+var_38]"], [80, "lea rdx, unk_46C480"], [81, "mov rsi, rcx"], [82, "mov rdi, rax"], [83, "call janet_stacktrace_ext"], [84, "or [rbp+var_4], 1"], [85, "mov [rbp+var_8], 1"], [86, "jmp loc_450356"], [87, "mov rax, [rbp+var_E8]"], [88, "mov rsi, 0FFFA000000000000h"], [89, "mov rdi, rax"], [90, "call janet_nanbox_from_cpointer"], [91, "mov [rbp+var_B8], rax"], [92, "mov rax, [rbp+var_E0]"], [93, "test rax, rax"], [94, "jz short loc_450312"], [95, "mov rax, cs:stderr_ptr"], [96, "mov rax, [rax]"], [97, "mov rdx, [rbp+var_110]"], [98, "mov rcx, rdx"], [99, "lea rdx, aCompileErrorIn"], [100, "mov rsi, rax"], [101, "lea rdi, aErr_0"], [102, "mov eax, 0"], [103, "call janet_dynprintf"], [104, "mov rax, [rbp+var_E0]"], [105, "mov rcx, [rbp+var_B8]"], [106, "lea rdx, unk_46C480"], [107, "mov rsi, rcx"], [108, "mov rdi, rax"], [109, "call janet_stacktrace_ext"], [110, "jmp short loc_45034B"], [111, "mov rcx, [rbp+var_E8]"], [112, "mov rax, cs:stderr_ptr"], [113, "mov rax, [rax]"], [114, "mov rdx, [rbp+var_110]"], [115, "mov r8, rcx"], [116, "mov rcx, rdx"], [117, "lea rdx, aCompileErrorIn_0"], [118, "mov rsi, rax"], [119, "lea rdi, aErr_0"], [120, "mov eax, 0"], [121, "call janet_dynprintf"], [122, "or [rbp+var_4], 2"], [123, "mov [rbp+var_8], 1"], [124, "lea rax, [rbp+var_B0]"], [125, "mov rdi, rax"], [126, "call janet_parser_has_more"], [127, "test eax, eax"], [128, "jnz loc_4501A3"], [129, "cmp [rbp+var_8], 0"], [130, "jnz loc_4504B3"], [131, "lea rax, [rbp+var_B0]"], [132, "mov rdi, rax"], [133, "call janet_parser_status"], [134, "cmp eax, 3"], [135, "jz short loc_4503B8"], [136, "cmp eax, 3"], [137, "ja loc_4504A7"], [138, "cmp eax, 2"], [139, "jz loc_45045D"], [140, "cmp eax, 2"], [141, "ja loc_4504A7"], [142, "test eax, eax"], [143, "jz loc_45045D"], [144, "cmp eax, 1"], [145, "jz short loc_4503C4"], [146, "jmp loc_4504A7"], [147, "mov [rbp+var_8], 1"], [148, "jmp loc_4504A7"], [149, "lea rax, [rbp+var_B0]"], [150, "mov rdi, rax"], [151, "call janet_parser_error"], [152, "mov [rbp+var_20], rax"], [153, "or [rbp+var_4], 4"], [154, "mov rax, [rbp+var_20]"], [155, "mov rdi, rax"], [156, "call janet_cstring"], [157, "mov rsi, 0FFFA000000000000h"], [158, "mov rdi, rax"], [159, "call janet_nanbox_from_cpointer"], [160, "mov [rbp+var_B8], rax"], [161, "mov rax, [rbp+var_60]"], [162, "mov [rbp+var_24], eax"], [163, "mov rax, [rbp+var_58]"], [164, "mov [rbp+var_28], eax"], [165, "mov rax, cs:stderr_ptr"], [166, "mov rax, [rax]"], [167, "mov esi, [rbp+var_28]"], [168, "mov ecx, [rbp+var_24]"], [169, "mov rdx, [rbp+var_110]"], [170, "sub rsp, 8"], [171, "push [rbp+var_20]"], [172, "mov r9d, esi"], [173, "mov r8d, ecx"], [174, "mov rcx, rdx"], [175, "lea rdx, aSDDParseErrorS"], [176, "mov rsi, rax"], [177, "lea rdi, aErr_0"], [178, "mov eax, 0"], [179, "call janet_dynprintf"], [180, "add rsp, 10h"], [181, "mov [rbp+var_8], 1"], [182, "jmp short loc_4504A7"], [183, "mov eax, [rbp+var_C]"], [184, "cmp eax, [rbp+var_104]"], [185, "jl short loc_450479"], [186, "lea rax, [rbp+var_B0]"], [187, "mov rdi, rax"], [188, "call janet_parser_eof"], [189, "jmp short loc_4504A6"], [190, "mov eax, [rbp+var_C]"], [191, "lea edx, [rax+1]"], [192, "mov [rbp+var_C], edx"], [193, "movsxd rdx, eax"], [194, "mov rax, [rbp+var_100]"], [195, "add rax, rdx"], [196, "movzx eax, byte ptr [rax]"], [197, "movzx edx, al"], [198, "lea rax, [rbp+var_B0]"], [199, "mov esi, edx"], [200, "mov rdi, rax"], [201, "call janet_parser_consume"], [202, "nop"], [203, "cmp [rbp+var_8], 0"], [204, "jz loc_450356"], [205, "jmp short loc_4504B4"], [206, "nop"], [207, "lea rax, [rbp+var_B0]"], [208, "mov rdi, rax"], [209, "call janet_parser_deinit"], [210, "cmp [rbp+var_18], 0"], [211, "jz short loc_4504E8"], [212, "mov rax, [rbp+var_18]"], [213, "mov rsi, 0FFFA000000000000h"], [214, "mov rdi, rax"], [215, "call janet_nanbox_from_cpointer"], [216, "mov rdi, rax"], [217, "call janet_gcunroot"], [218, "mov rax, fs:0"], [219, "lea rax, [rax-19C0h]"], [220, "mov eax, [rax+18h]"], [221, "test eax, eax"], [222, "jnz short loc_450522"], [223, "mov rax, [rbp+var_B8]"], [224, "mov rdi, rax"], [225, "call janet_gcroot"], [226, "call janet_loop"], [227, "mov rax, [rbp+var_B8]"], [228, "mov rdi, rax"], [229, "call janet_gcunroot"], [230, "cmp [rbp+var_118], 0"], [231, "jz short loc_45053D"], [232, "mov rax, [rbp+var_118]"], [233, "mov rdx, [rbp+var_B8]"], [234, "mov [rax], rdx"], [235, "mov eax, [rbp+var_4]"], [236, "leave"], [237, "retn"]], "data_dep": [[13, 12], [14, 6], [15, 14], [16, 6], [17, 16], [21, 18], [21, 20], [22, 21], [23, 22], [24, 21], [26, 24], [28, 27], [30, 6], [31, 30], [32, 18], [32, 20], [32, 29], [33, 32], [34, 18], [34, 32], [34, 20], [34, 29], [35, 34], [38, 127], [39, 38], [41, 40], [42, 40], [43, 21], [44, 3], [45, 41], [46, 42], [49, 48], [50, 49], [52, 51], [54, 53], [55, 54], [59, 55], [61, 60], [62, 61], [63, 3], [64, 62], [64, 63], [67, 66], [68, 91], [68, 13], [68, 63], [68, 160], [69, 61], [70, 67], [71, 69], [73, 72], [74, 73], [75, 74], [76, 73], [77, 76], [78, 13], [78, 160], [78, 91], [79, 61], [80, 68], [81, 78], [82, 79], [84, 84], [84, 8], [84, 122], [84, 153], [89, 87], [91, 90], [93, 92], [94, 93], [96, 95], [96, 64], [97, 33], [97, 6], [98, 97], [99, 97], [100, 96], [101, 89], [105, 91], [106, 99], [107, 105], [108, 104], [113, 64], [113, 112], [114, 33], [114, 6], [115, 111], [116, 114], [117, 114], [118, 113], [119, 89], [122, 122], [122, 153], [122, 84], [122, 8], [124, 179], [124, 188], [124, 133], [124, 83], [124, 142], [124, 201], [124, 36], [124, 121], [124, 109], [124, 72], [125, 124], [127, 126], [128, 127], [129, 9], [129, 123], [129, 181], [129, 147], [129, 85], [130, 129], [131, 127], [132, 131], [134, 133], [135, 134], [136, 133], [137, 136], [138, 133], [139, 138], [140, 133], [141, 140], [142, 133], [143, 142], [144, 142], [145, 144], [149, 142], [150, 149], [152, 151], [153, 153], [153, 84], [153, 8], [153, 122], [154, 152], [155, 154], [158, 156], [160, 159], [162, 161], [164, 163], [166, 165], [166, 64], [167, 164], [168, 162], [169, 33], [169, 6], [170, 2], [170, 180], [171, 152], [172, 167], [173, 168], [174, 169], [175, 169], [176, 166], [177, 158], [180, 170], [183, 192], [183, 10], [184, 183], [184, 5], [185, 184], [186, 183], [187, 186], [190, 10], [190, 192], [191, 64], [191, 68], [191, 175], [191, 106], [191, 197], [191, 117], [191, 190], [191, 80], [192, 191], [193, 190], [194, 4], [195, 193], [195, 194], [196, 64], [196, 195], [197, 196], [198, 196], [199, 197], [200, 198], [203, 147], [203, 181], [203, 85], [203, 9], [203, 123], [204, 203], [207, 127], [207, 179], [207, 188], [207, 133], [207, 142], [207, 201], [207, 36], [208, 207], [210, 21], [211, 210], [212, 21], [214, 212], [216, 215], [219, 64], [219, 218], [220, 64], [220, 219], [221, 220], [222, 221], [223, 91], [223, 13], [223, 160], [224, 223], [227, 13], [227, 160], [227, 91], [228, 227], [230, 7], [231, 230], [232, 7], [233, 91], [233, 13], [233, 160], [234, 233], [234, 232], [235, 8], [235, 122], [235, 153], [235, 84], [237, 235]]}
|
bool virtqueue_kick_prepare(struct virtqueue *_vq)
{
struct vring_virtqueue *vq = to_vvq(_vq);
return vq->packed_ring ? virtqueue_kick_prepare_packed(_vq) :
virtqueue_kick_prepare_split(_vq);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_409BCA", "function_addr": 4234186, "binary_name": "29e4113bfd3fbc2c21f4909d106aedefdb53a375dcc4b6d32baa2735fcd7a441.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov rax, [rbp+var_18]"], [5, "mov [rbp+var_8], rax"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rbp+var_10], rax"], [8, "mov rax, [rbp+var_10]"], [9, "movzx eax, byte ptr [rax+38h]"], [10, "test al, al"], [11, "jz short loc_409C08"], [12, "mov rax, [rbp+var_18]"], [13, "mov rdi, rax"], [14, "call sub_408C5F"], [15, "movzx eax, al"], [16, "test eax, eax"], [17, "setnz al"], [18, "jmp short locret_409C1C"], [19, "mov rax, [rbp+var_18]"], [20, "mov rdi, rax"], [21, "call sub_4075DA"], [22, "movzx eax, al"], [23, "test eax, eax"], [24, "setnz al"], [25, "leave"], [26, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 5], [7, 6], [8, 7], [9, 8], [10, 9], [11, 10], [12, 3], [13, 12], [15, 14], [16, 15], [17, 16], [19, 3], [20, 19], [22, 21], [23, 22], [24, 23], [26, 24], [26, 17]]}
|
srtp_err_status_t
srtp_protect_mki(srtp_ctx_t *ctx, void *rtp_hdr, int *pkt_octet_len,
unsigned int use_mki, unsigned int mki_index ) {
srtp_hdr_t *hdr = (srtp_hdr_t *)rtp_hdr;
uint32_t *enc_start; /* pointer to start of encrypted portion */
uint32_t *auth_start; /* pointer to start of auth. portion */
int enc_octet_len = 0; /* number of octets in encrypted portion */
srtp_xtd_seq_num_t est; /* estimated xtd_seq_num_t of *hdr */
int delta; /* delta of local pkt idx and that in hdr */
uint8_t *auth_tag = NULL; /* location of auth_tag within packet */
srtp_err_status_t status;
int tag_len;
srtp_stream_ctx_t *stream;
uint32_t prefix_len;
srtp_hdr_xtnd_t *xtn_hdr = NULL;
unsigned int mki_size = 0;
srtp_session_keys_t *session_keys = NULL;
uint8_t* mki_location = NULL;
int advance_packet_index = 0;
debug_print(mod_srtp, "function srtp_protect", NULL);
/* we assume the hdr is 32-bit aligned to start */
/* Verify RTP header */
status = srtp_validate_rtp_header(rtp_hdr, pkt_octet_len);
if (status)
return status;
/* check the packet length - it must at least contain a full header */
if (*pkt_octet_len < octets_in_rtp_header)
return srtp_err_status_bad_param;
/*
* look up ssrc in srtp_stream list, and process the packet with
* the appropriate stream. if we haven't seen this stream before,
* there's a template key for this srtp_session, and the cipher
* supports key-sharing, then we assume that a new stream using
* that key has just started up
*/
stream = srtp_get_stream(ctx, hdr->ssrc);
if (stream == NULL) {
if (ctx->stream_template != NULL) {
srtp_stream_ctx_t *new_stream;
/* allocate and initialize a new stream */
status = srtp_stream_clone(ctx->stream_template,
hdr->ssrc, &new_stream);
if (status)
return status;
/* add new stream to the head of the stream_list */
new_stream->next = ctx->stream_list;
ctx->stream_list = new_stream;
/* set direction to outbound */
new_stream->direction = dir_srtp_sender;
/* set stream (the pointer used in this function) */
stream = new_stream;
} else {
/* no template stream, so we return an error */
return srtp_err_status_no_ctx;
}
}
/*
* verify that stream is for sending traffic - this check will
* detect SSRC collisions, since a stream that appears in both
* srtp_protect() and srtp_unprotect() will fail this test in one of
* those functions.
*/
if (stream->direction != dir_srtp_sender) {
if (stream->direction == dir_unknown) {
stream->direction = dir_srtp_sender;
} else {
srtp_handle_event(ctx, stream, event_ssrc_collision);
}
}
session_keys = srtp_get_session_keys_with_mki_index(stream, use_mki, mki_index);
/*
* Check if this is an AEAD stream (GCM mode). If so, then dispatch
* the request to our AEAD handler.
*/
if (session_keys->rtp_cipher->algorithm == SRTP_AES_GCM_128 ||
session_keys->rtp_cipher->algorithm == SRTP_AES_GCM_256) {
return srtp_protect_aead(ctx, stream, rtp_hdr,
(unsigned int*)pkt_octet_len, session_keys,
use_mki);
}
/*
* update the key usage limit, and check it to make sure that we
* didn't just hit either the soft limit or the hard limit, and call
* the event handler if we hit either.
*/
switch(srtp_key_limit_update(session_keys->limit)) {
case srtp_key_event_normal:
break;
case srtp_key_event_soft_limit:
srtp_handle_event(ctx, stream, event_key_soft_limit);
break;
case srtp_key_event_hard_limit:
srtp_handle_event(ctx, stream, event_key_hard_limit);
return srtp_err_status_key_expired;
default:
break;
}
/* get tag length from stream */
tag_len = srtp_auth_get_tag_length(session_keys->rtp_auth);
/*
* find starting point for encryption and length of data to be
* encrypted - the encrypted portion starts after the rtp header
* extension, if present; otherwise, it starts after the last csrc,
* if any are present
*
* if we're not providing confidentiality, set enc_start to NULL
*/
if (stream->rtp_services & sec_serv_conf) {
enc_start = (uint32_t *)hdr + uint32s_in_rtp_header + hdr->cc;
if (hdr->x == 1) {
xtn_hdr = (srtp_hdr_xtnd_t *)enc_start;
enc_start += (ntohs(xtn_hdr->length) + 1);
}
/* note: the passed size is without the auth tag */
if (!((uint8_t*)enc_start <= (uint8_t*)hdr + *pkt_octet_len))
return srtp_err_status_parse_err;
enc_octet_len = (int)(*pkt_octet_len -
((uint8_t*)enc_start - (uint8_t*)hdr));
if (enc_octet_len < 0) return srtp_err_status_parse_err;
} else {
enc_start = NULL;
}
mki_location = (uint8_t *)hdr + *pkt_octet_len;
mki_size = srtp_inject_mki(mki_location, session_keys, use_mki);
/*
* if we're providing authentication, set the auth_start and auth_tag
* pointers to the proper locations; otherwise, set auth_start to NULL
* to indicate that no authentication is needed
*/
if (stream->rtp_services & sec_serv_auth) {
auth_start = (uint32_t *)hdr;
auth_tag = (uint8_t *)hdr + *pkt_octet_len + mki_size;
} else {
auth_start = NULL;
auth_tag = NULL;
}
/*
* estimate the packet index using the start of the replay window
* and the sequence number from the header
*/
status = srtp_get_est_pkt_index(hdr,
stream,
&est,
&delta);
if (status && (status != srtp_err_status_pkt_idx_adv))
return status;
if (status == srtp_err_status_pkt_idx_adv)
advance_packet_index = 1;
if (advance_packet_index) {
srtp_rdbx_set_roc_seq(&stream->rtp_rdbx,
(uint32_t)(est >> 16),
(uint16_t)(est & 0xFFFF));
stream->pending_roc = 0;
srtp_rdbx_add_index(&stream->rtp_rdbx, 0);
} else {
status = srtp_rdbx_check(&stream->rtp_rdbx, delta);
if (status) {
if (status != srtp_err_status_replay_fail || !stream->allow_repeat_tx)
return status; /* we've been asked to reuse an index */
}
srtp_rdbx_add_index(&stream->rtp_rdbx, delta);
}
#ifdef NO_64BIT_MATH
debug_print2(mod_srtp, "estimated packet index: %08x%08x",
high32(est),low32(est));
#else
debug_print(mod_srtp, "estimated packet index: %016llx", est);
#endif
/*
* if we're using rindael counter mode, set nonce and seq
*/
if (session_keys->rtp_cipher->type->id == SRTP_AES_ICM_128 ||
session_keys->rtp_cipher->type->id == SRTP_AES_ICM_192 ||
session_keys->rtp_cipher->type->id == SRTP_AES_ICM_256) {
v128_t iv;
iv.v32[0] = 0;
iv.v32[1] = hdr->ssrc;
#ifdef NO_64BIT_MATH
iv.v64[1] = be64_to_cpu(make64((high32(est) << 16) | (low32(est) >> 16),
low32(est) << 16));
#else
iv.v64[1] = be64_to_cpu(est << 16);
#endif
status = srtp_cipher_set_iv(session_keys->rtp_cipher, (uint8_t*)&iv, srtp_direction_encrypt);
if (!status && session_keys->rtp_xtn_hdr_cipher) {
status = srtp_cipher_set_iv(session_keys->rtp_xtn_hdr_cipher, (uint8_t*)&iv, srtp_direction_encrypt);
}
} else {
v128_t iv;
/* otherwise, set the index to est */
#ifdef NO_64BIT_MATH
iv.v32[0] = 0;
iv.v32[1] = 0;
#else
iv.v64[0] = 0;
#endif
iv.v64[1] = be64_to_cpu(est);
status = srtp_cipher_set_iv(session_keys->rtp_cipher, (uint8_t*)&iv, srtp_direction_encrypt);
if (!status && session_keys->rtp_xtn_hdr_cipher) {
status = srtp_cipher_set_iv(session_keys->rtp_xtn_hdr_cipher, (uint8_t*)&iv, srtp_direction_encrypt);
}
}
if (status)
return srtp_err_status_cipher_fail;
/* shift est, put into network byte order */
#ifdef NO_64BIT_MATH
est = be64_to_cpu(make64((high32(est) << 16) |
(low32(est) >> 16),
low32(est) << 16));
#else
est = be64_to_cpu(est << 16);
#endif
/*
* if we're authenticating using a universal hash, put the keystream
* prefix into the authentication tag
*/
if (auth_start) {
prefix_len = srtp_auth_get_prefix_length(session_keys->rtp_auth);
if (prefix_len) {
status = srtp_cipher_output(session_keys->rtp_cipher, auth_tag, &prefix_len);
if (status)
return srtp_err_status_cipher_fail;
debug_print(mod_srtp, "keystream prefix: %s",
srtp_octet_string_hex_string(auth_tag, prefix_len));
}
}
if (xtn_hdr && session_keys->rtp_xtn_hdr_cipher) {
/*
* extensions header encryption RFC 6904
*/
status = srtp_process_header_encryption(stream, xtn_hdr, session_keys);
if (status) {
return status;
}
}
/* if we're encrypting, exor keystream into the message */
if (enc_start) {
status = srtp_cipher_encrypt(session_keys->rtp_cipher,
(uint8_t *)enc_start, (unsigned int *)&enc_octet_len);
if (status)
return srtp_err_status_cipher_fail;
}
/*
* if we're authenticating, run authentication function and put result
* into the auth_tag
*/
if (auth_start) {
/* initialize auth func context */
status = srtp_auth_start(session_keys->rtp_auth);
if (status) return status;
/* run auth func over packet */
status = srtp_auth_update(session_keys->rtp_auth,
(uint8_t *)auth_start, *pkt_octet_len);
if (status) return status;
/* run auth func over ROC, put result into auth_tag */
debug_print(mod_srtp, "estimated packet index: %016llx", est);
status = srtp_auth_compute(session_keys->rtp_auth, (uint8_t *)&est, 4, auth_tag);
debug_print(mod_srtp, "srtp auth tag: %s",
srtp_octet_string_hex_string(auth_tag, tag_len));
if (status)
return srtp_err_status_auth_fail;
}
if (auth_tag) {
/* increase the packet length by the length of the auth tag */
*pkt_octet_len += tag_len;
}
if (use_mki) {
/* increate the packet length by the mki size */
*pkt_octet_len += mki_size;
}
return srtp_err_status_ok;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_45934E", "function_addr": 4559694, "binary_name": "cf1695820213fbf6b72d0a2a2c8f7406ba3da1515cfec93bb0899b8d9d8f038e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0F0h"], [3, "mov [rbp+var_D8], rdi"], [4, "mov [rbp+var_E0], rsi"], [5, "mov [rbp+var_E8], rdx"], [6, "mov [rbp+var_EC], ecx"], [7, "mov [rbp+var_F0], r8d"], [8, "mov rax, [rbp+var_E0]"], [9, "mov [rbp+var_40], rax"], [10, "mov [rbp+var_60], 0"], [11, "mov [rbp+var_18], 0"], [12, "mov [rbp+var_30], 0"], [13, "mov [rbp+var_44], 0"], [14, "mov [rbp+var_50], 0"], [15, "mov [rbp+var_58], 0"], [16, "mov [rbp+var_34], 0"], [17, "mov eax, cs:dword_4A1320"], [18, "test eax, eax"], [19, "jz short loc_4593E8"], [20, "mov rax, cs:off_4A1328"], [21, "mov ecx, 0"], [22, "mov rdx, rax"], [23, "mov esi, offset aSFunctionSrtpP_0"], [24, "mov edi, 3"], [25, "mov eax, 0"], [26, "call sub_4605E2"], [27, "mov rdx, [rbp+var_E8]"], [28, "mov rax, [rbp+var_E0]"], [29, "mov rsi, rdx"], [30, "mov rdi, rax"], [31, "call sub_45607C"], [32, "mov [rbp+var_1C], eax"], [33, "cmp [rbp+var_1C], 0"], [34, "jz short loc_459412"], [35, "mov eax, [rbp+var_1C]"], [36, "jmp locret_459CC6"], [37, "mov rax, [rbp+var_E8]"], [38, "mov eax, [rax]"], [39, "cmp eax, 0Bh"], [40, "jg short loc_45942A"], [41, "mov eax, 2"], [42, "jmp locret_459CC6"], [43, "mov rax, [rbp+var_40]"], [44, "mov edx, [rax+8]"], [45, "mov rax, [rbp+var_D8]"], [46, "mov esi, edx"], [47, "mov rdi, rax"], [48, "call sub_45A76E"], [49, "mov [rbp+var_28], rax"], [50, "cmp [rbp+var_28], 0"], [51, "jnz loc_4594D1"], [52, "mov rax, [rbp+var_D8]"], [53, "mov rax, [rax+8]"], [54, "test rax, rax"], [55, "jz short loc_4594C7"], [56, "mov rax, [rbp+var_40]"], [57, "mov ecx, [rax+8]"], [58, "mov rax, [rbp+var_D8]"], [59, "mov rax, [rax+8]"], [60, "lea rdx, [rbp+var_78]"], [61, "mov esi, ecx"], [62, "mov rdi, rax"], [63, "call sub_456B10"], [64, "mov [rbp+var_1C], eax"], [65, "cmp [rbp+var_1C], 0"], [66, "jz short loc_459492"], [67, "mov eax, [rbp+var_1C]"], [68, "jmp locret_459CC6"], [69, "mov rax, [rbp+var_78]"], [70, "mov rdx, [rbp+var_D8]"], [71, "mov rdx, [rdx]"], [72, "mov [rax+78h], rdx"], [73, "mov rdx, [rbp+var_78]"], [74, "mov rax, [rbp+var_D8]"], [75, "mov [rax], rdx"], [76, "mov rax, [rbp+var_78]"], [77, "mov dword ptr [rax+54h], 1"], [78, "mov rax, [rbp+var_78]"], [79, "mov [rbp+var_28], rax"], [80, "jmp short loc_4594D1"], [81, "mov eax, 0Dh"], [82, "jmp locret_459CC6"], [83, "mov rax, [rbp+var_28]"], [84, "mov eax, [rax+54h]"], [85, "cmp eax, 1"], [86, "jz short loc_45953F"], [87, "mov rax, [rbp+var_28]"], [88, "mov eax, [rax+54h]"], [89, "test eax, eax"], [90, "jnz short loc_4594F5"], [91, "mov rax, [rbp+var_28]"], [92, "mov dword ptr [rax+54h], 1"], [93, "jmp short loc_45953F"], [94, "mov rax, cs:off_4A1330"], [95, "test rax, rax"], [96, "jz short loc_45953F"], [97, "mov rax, [rbp+var_D8]"], [98, "mov [rbp+var_90], rax"], [99, "mov rax, [rbp+var_28]"], [100, "mov eax, [rax]"], [101, "mov edi, eax"], [102, "call _ntohl"], [103, "mov [rbp+var_88], eax"], [104, "mov [rbp+var_84], 0"], [105, "mov rdx, cs:off_4A1330"], [106, "lea rax, [rbp+var_90]"], [107, "mov rdi, rax"], [108, "call rdx "], [109, "mov edx, [rbp+var_F0]"], [110, "mov ecx, [rbp+var_EC]"], [111, "mov rax, [rbp+var_28]"], [112, "mov esi, ecx"], [113, "mov rdi, rax"], [114, "call sub_45716E"], [115, "mov [rbp+var_50], rax"], [116, "mov rax, [rbp+var_50]"], [117, "mov rax, [rax]"], [118, "mov eax, [rax+14h]"], [119, "cmp eax, 6"], [120, "jz short loc_45957B"], [121, "mov rax, [rbp+var_50]"], [122, "mov rax, [rax]"], [123, "mov eax, [rax+14h]"], [124, "cmp eax, 7"], [125, "jnz short loc_4595B2"], [126, "mov r8d, [rbp+var_EC]"], [127, "mov rdi, [rbp+var_50]"], [128, "mov rcx, [rbp+var_E8]"], [129, "mov rdx, [rbp+var_E0]"], [130, "mov rsi, [rbp+var_28]"], [131, "mov rax, [rbp+var_D8]"], [132, "mov r9d, r8d"], [133, "mov r8, rdi"], [134, "mov rdi, rax"], [135, "call sub_4589AD"], [136, "jmp locret_459CC6"], [137, "mov rax, [rbp+var_50]"], [138, "mov rax, [rax+50h]"], [139, "mov rdi, rax"], [140, "call sub_460577"], [141, "cmp eax, 2"], [142, "jz short loc_459632"], [143, "cmp eax, 2"], [144, "ja loc_459686"], [145, "test eax, eax"], [146, "jz loc_459689"], [147, "cmp eax, 1"], [148, "jz short loc_4595E2"], [149, "jmp loc_459686"], [150, "mov rax, cs:off_4A1330"], [151, "test rax, rax"], [152, "jz loc_45968C"], [153, "mov rax, [rbp+var_D8]"], [154, "mov [rbp+var_A0], rax"], [155, "mov rax, [rbp+var_28]"], [156, "mov eax, [rax]"], [157, "mov edi, eax"], [158, "call _ntohl"], [159, "mov [rbp+var_98], eax"], [160, "mov [rbp+var_94], 1"], [161, "mov rdx, cs:off_4A1330"], [162, "lea rax, [rbp+var_A0]"], [163, "mov rdi, rax"], [164, "call rdx "], [165, "jmp short loc_45968C"], [166, "mov rax, cs:off_4A1330"], [167, "test rax, rax"], [168, "jz short loc_45967C"], [169, "mov rax, [rbp+var_D8]"], [170, "mov [rbp+var_B0], rax"], [171, "mov rax, [rbp+var_28]"], [172, "mov eax, [rax]"], [173, "mov edi, eax"], [174, "call _ntohl"], [175, "mov [rbp+var_A8], eax"], [176, "mov [rbp+var_A4], 2"], [177, "mov rdx, cs:off_4A1330"], [178, "lea rax, [rbp+var_B0]"], [179, "mov rdi, rax"], [180, "call rdx "], [181, "mov eax, 0Fh"], [182, "jmp locret_459CC6"], [183, "nop"], [184, "jmp short loc_45968D"], [185, "nop"], [186, "jmp short loc_45968D"], [187, "nop"], [188, "mov rax, [rbp+var_50]"], [189, "mov rax, [rax+10h]"], [190, "mov rdi, rax"], [191, "call sub_45EBB1"], [192, "mov [rbp+var_5C], eax"], [193, "mov rax, [rbp+var_28]"], [194, "mov eax, [rax+30h]"], [195, "and eax, 1"], [196, "test eax, eax"], [197, "jz loc_45975D"], [198, "mov rax, [rbp+var_40]"], [199, "movzx eax, byte ptr [rax]"], [200, "and eax, 0Fh"], [201, "movzx eax, al"], [202, "add rax, 3"], [203, "lea rdx, ds:0[rax*4]"], [204, "mov rax, [rbp+var_40]"], [205, "add rax, rdx"], [206, "mov [rbp+var_8], rax"], [207, "mov rax, [rbp+var_40]"], [208, "movzx eax, byte ptr [rax]"], [209, "and eax, 10h"], [210, "test al, al"], [211, "jz short loc_45970D"], [212, "mov rax, [rbp+var_8]"], [213, "mov [rbp+var_30], rax"], [214, "mov rax, [rbp+var_30]"], [215, "movzx eax, word ptr [rax+2]"], [216, "movzx eax, ax"], [217, "mov edi, eax"], [218, "call _ntohs"], [219, "movzx eax, ax"], [220, "add rax, 1"], [221, "shl rax, 2"], [222, "add [rbp+var_8], rax"], [223, "mov rax, [rbp+var_E8]"], [224, "mov eax, [rax]"], [225, "movsxd rdx, eax"], [226, "mov rax, [rbp+var_40]"], [227, "add rax, rdx"], [228, "cmp [rbp+var_8], rax"], [229, "jbe short loc_459730"], [230, "mov eax, 15h"], [231, "jmp locret_459CC6"], [232, "mov rax, [rbp+var_E8]"], [233, "mov eax, [rax]"], [234, "mov edx, eax"], [235, "mov rax, [rbp+var_8]"], [236, "sub rax, [rbp+var_40]"], [237, "mov ecx, eax"], [238, "mov eax, edx"], [239, "sub eax, ecx"], [240, "mov [rbp+var_60], eax"], [241, "mov eax, [rbp+var_60]"], [242, "test eax, eax"], [243, "jns short loc_459765"], [244, "mov eax, 15h"], [245, "jmp locret_459CC6"], [246, "mov [rbp+var_8], 0"], [247, "mov rax, [rbp+var_E8]"], [248, "mov eax, [rax]"], [249, "movsxd rdx, eax"], [250, "mov rax, [rbp+var_40]"], [251, "add rax, rdx"], [252, "mov [rbp+var_58], rax"], [253, "mov edx, [rbp+var_EC]"], [254, "mov rcx, [rbp+var_50]"], [255, "mov rax, [rbp+var_58]"], [256, "mov rsi, rcx"], [257, "mov rdi, rax"], [258, "call sub_4571BC"], [259, "mov [rbp+var_44], eax"], [260, "mov rax, [rbp+var_28]"], [261, "mov eax, [rax+30h]"], [262, "and eax, 2"], [263, "test eax, eax"], [264, "jz short loc_4597CD"], [265, "mov rax, [rbp+var_40]"], [266, "mov [rbp+var_10], rax"], [267, "mov rax, [rbp+var_E8]"], [268, "mov eax, [rax]"], [269, "movsxd rdx, eax"], [270, "mov eax, [rbp+var_44]"], [271, "add rdx, rax"], [272, "mov rax, [rbp+var_40]"], [273, "add rax, rdx"], [274, "mov [rbp+var_18], rax"], [275, "jmp short loc_4597DD"], [276, "mov [rbp+var_10], 0"], [277, "mov [rbp+var_18], 0"], [278, "lea rcx, [rbp+var_6C]"], [279, "lea rdx, [rbp+var_68]"], [280, "mov rsi, [rbp+var_28]"], [281, "mov rax, [rbp+var_40]"], [282, "mov rdi, rax"], [283, "call sub_4588DF"], [284, "mov [rbp+var_1C], eax"], [285, "cmp [rbp+var_1C], 0"], [286, "jz short loc_45980C"], [287, "cmp [rbp+var_1C], 1Bh"], [288, "jz short loc_45980C"], [289, "mov eax, [rbp+var_1C]"], [290, "jmp locret_459CC6"], [291, "cmp [rbp+var_1C], 1Bh"], [292, "jnz short loc_459819"], [293, "mov [rbp+var_34], 1"], [294, "cmp [rbp+var_34], 0"], [295, "jz short loc_459864"], [296, "mov rax, [rbp+var_68]"], [297, "movzx eax, ax"], [298, "mov rdx, [rbp+var_68]"], [299, "shr rdx, 10h"], [300, "mov esi, edx"], [301, "mov rdx, [rbp+var_28]"], [302, "lea rcx, [rdx+18h]"], [303, "mov edx, eax"], [304, "mov rdi, rcx"], [305, "call sub_460CB0"], [306, "mov rax, [rbp+var_28]"], [307, "mov dword ptr [rax+74h], 0"], [308, "mov rax, [rbp+var_28]"], [309, "add rax, 18h"], [310, "mov esi, 0"], [311, "mov rdi, rax"], [312, "call sub_460B2C"], [313, "jmp short loc_4598B0"], [314, "mov eax, [rbp+var_6C]"], [315, "mov rdx, [rbp+var_28]"], [316, "add rdx, 18h"], [317, "mov esi, eax"], [318, "mov rdi, rdx"], [319, "call sub_460AA8"], [320, "mov [rbp+var_1C], eax"], [321, "cmp [rbp+var_1C], 0"], [322, "jz short loc_45989B"], [323, "cmp [rbp+var_1C], 9"], [324, "jnz short loc_459893"], [325, "mov rax, [rbp+var_28]"], [326, "mov eax, [rax+58h]"], [327, "test eax, eax"], [328, "jnz short loc_45989B"], [329, "mov eax, [rbp+var_1C]"], [330, "jmp locret_459CC6"], [331, "mov eax, [rbp+var_6C]"], [332, "mov rdx, [rbp+var_28]"], [333, "add rdx, 18h"], [334, "mov esi, eax"], [335, "mov rdi, rdx"], [336, "call sub_460B2C"], [337, "mov eax, cs:dword_4A1320"], [338, "test eax, eax"], [339, "jz short loc_4598DF"], [340, "mov rdx, [rbp+var_68]"], [341, "mov rax, cs:off_4A1328"], [342, "mov rcx, rdx"], [343, "mov rdx, rax"], [344, "mov esi, offset aSEstimatedPack"], [345, "mov edi, 3"], [346, "mov eax, 0"], [347, "call sub_4605E2"], [348, "mov rax, [rbp+var_50]"], [349, "mov rax, [rax]"], [350, "mov rax, [rax]"], [351, "mov eax, [rax+50h]"], [352, "cmp eax, 1"], [353, "jz short loc_459919"], [354, "mov rax, [rbp+var_50]"], [355, "mov rax, [rax]"], [356, "mov rax, [rax]"], [357, "mov eax, [rax+50h]"], [358, "cmp eax, 4"], [359, "jz short loc_459919"], [360, "mov rax, [rbp+var_50]"], [361, "mov rax, [rax]"], [362, "mov rax, [rax]"], [363, "mov eax, [rax+50h]"], [364, "cmp eax, 5"], [365, "jnz loc_4599A7"], [366, "mov [rbp+var_C0], 0"], [367, "mov rax, [rbp+var_40]"], [368, "mov eax, [rax+8]"], [369, "mov [rbp+var_BC], eax"], [370, "mov rax, [rbp+var_68]"], [371, "shl rax, 10h"], [372, "mov rdi, rax"], [373, "call sub_45603C"], [374, "mov [rbp+var_B8], rax"], [375, "mov rax, [rbp+var_50]"], [376, "mov rax, [rax]"], [377, "lea rcx, [rbp+var_C0]"], [378, "mov edx, 0"], [379, "mov rsi, rcx"], [380, "mov rdi, rax"], [381, "call sub_45D7C1"], [382, "mov [rbp+var_1C], eax"], [383, "cmp [rbp+var_1C], 0"], [384, "jnz loc_459A1D"], [385, "mov rax, [rbp+var_50]"], [386, "mov rax, [rax+8]"], [387, "test rax, rax"], [388, "jz loc_459A1D"], [389, "mov rax, [rbp+var_50]"], [390, "mov rax, [rax+8]"], [391, "lea rcx, [rbp+var_C0]"], [392, "mov edx, 0"], [393, "mov rsi, rcx"], [394, "mov rdi, rax"], [395, "call sub_45D7C1"], [396, "mov [rbp+var_1C], eax"], [397, "jmp short loc_459A1D"], [398, "mov [rbp+var_D0], 0"], [399, "mov rax, [rbp+var_68]"], [400, "mov rdi, rax"], [401, "call sub_45603C"], [402, "mov [rbp+var_C8], rax"], [403, "mov rax, [rbp+var_50]"], [404, "mov rax, [rax]"], [405, "lea rcx, [rbp+var_D0]"], [406, "mov edx, 0"], [407, "mov rsi, rcx"], [408, "mov rdi, rax"], [409, "call sub_45D7C1"], [410, "mov [rbp+var_1C], eax"], [411, "cmp [rbp+var_1C], 0"], [412, "jnz short loc_459A1E"], [413, "mov rax, [rbp+var_50]"], [414, "mov rax, [rax+8]"], [415, "test rax, rax"], [416, "jz short loc_459A1E"], [417, "mov rax, [rbp+var_50]"], [418, "mov rax, [rax+8]"], [419, "lea rcx, [rbp+var_D0]"], [420, "mov edx, 0"], [421, "mov rsi, rcx"], [422, "mov rdi, rax"], [423, "call sub_45D7C1"], [424, "mov [rbp+var_1C], eax"], [425, "jmp short loc_459A1E"], [426, "nop"], [427, "cmp [rbp+var_1C], 0"], [428, "jz short loc_459A2E"], [429, "mov eax, 8"], [430, "jmp locret_459CC6"], [431, "mov rax, [rbp+var_68]"], [432, "shl rax, 10h"], [433, "mov rdi, rax"], [434, "call sub_45603C"], [435, "mov [rbp+var_68], rax"], [436, "cmp [rbp+var_10], 0"], [437, "jz loc_459AD5"], [438, "mov rax, [rbp+var_50]"], [439, "mov rax, [rax+10h]"], [440, "mov rdi, rax"], [441, "call sub_45EBC2"], [442, "mov [rbp+var_70], eax"], [443, "mov eax, [rbp+var_70]"], [444, "test eax, eax"], [445, "jz short loc_459AD5"], [446, "mov rax, [rbp+var_50]"], [447, "mov rax, [rax]"], [448, "lea rdx, [rbp+var_70]"], [449, "mov rcx, [rbp+var_18]"], [450, "mov rsi, rcx"], [451, "mov rdi, rax"], [452, "call sub_45D820"], [453, "mov [rbp+var_1C], eax"], [454, "cmp [rbp+var_1C], 0"], [455, "jz short loc_459A94"], [456, "mov eax, 8"], [457, "jmp locret_459CC6"], [458, "mov eax, cs:dword_4A1320"], [459, "test eax, eax"], [460, "jz short loc_459AD5"], [461, "mov eax, [rbp+var_70]"], [462, "mov edx, eax"], [463, "mov rax, [rbp+var_18]"], [464, "mov esi, edx"], [465, "mov rdi, rax"], [466, "call sub_45EFDC"], [467, "mov rdx, rax"], [468, "mov rax, cs:off_4A1328"], [469, "mov rcx, rdx"], [470, "mov rdx, rax"], [471, "mov esi, offset aSKeystreamPref"], [472, "mov edi, 3"], [473, "mov eax, 0"], [474, "call sub_4605E2"], [475, "cmp [rbp+var_30], 0"], [476, "jz short loc_459B11"], [477, "mov rax, [rbp+var_50]"], [478, "mov rax, [rax+8]"], [479, "test rax, rax"], [480, "jz short loc_459B11"], [481, "mov rdx, [rbp+var_50]"], [482, "mov rcx, [rbp+var_30]"], [483, "mov rax, [rbp+var_28]"], [484, "mov rsi, rcx"], [485, "mov rdi, rax"], [486, "call sub_458223"], [487, "mov [rbp+var_1C], eax"], [488, "cmp [rbp+var_1C], 0"], [489, "jz short loc_459B11"], [490, "mov eax, [rbp+var_1C]"], [491, "jmp locret_459CC6"], [492, "cmp [rbp+var_8], 0"], [493, "jz short loc_459B45"], [494, "mov rax, [rbp+var_50]"], [495, "mov rax, [rax]"], [496, "lea rdx, [rbp+var_60]"], [497, "mov rcx, [rbp+var_8]"], [498, "mov rsi, rcx"], [499, "mov rdi, rax"], [500, "call sub_45D871"], [501, "mov [rbp+var_1C], eax"], [502, "cmp [rbp+var_1C], 0"], [503, "jz short loc_459B45"], [504, "mov eax, 8"], [505, "jmp locret_459CC6"], [506, "cmp [rbp+var_10], 0"], [507, "jz loc_459C7F"], [508, "mov rax, [rbp+var_50]"], [509, "mov rax, [rax+10h]"], [510, "mov rax, [rax]"], [511, "mov rdx, [rax+28h]"], [512, "mov rax, [rbp+var_50]"], [513, "mov rax, [rax+10h]"], [514, "mov rax, [rax+8]"], [515, "mov rdi, rax"], [516, "call rdx"], [517, "mov [rbp+var_1C], eax"], [518, "cmp [rbp+var_1C], 0"], [519, "jz short loc_459B81"], [520, "mov eax, [rbp+var_1C]"], [521, "jmp locret_459CC6"], [522, "mov rax, [rbp+var_50]"], [523, "mov rax, [rax+10h]"], [524, "mov rax, [rax]"], [525, "mov r8, [rax+20h]"], [526, "mov rax, [rbp+var_E8]"], [527, "mov edx, [rax]"], [528, "mov rax, [rbp+var_50]"], [529, "mov rax, [rax+10h]"], [530, "mov rax, [rax+8]"], [531, "mov rcx, [rbp+var_10]"], [532, "mov rsi, rcx"], [533, "mov rdi, rax"], [534, "call r8"], [535, "mov [rbp+var_1C], eax"], [536, "cmp [rbp+var_1C], 0"], [537, "jz short loc_459BC3"], [538, "mov eax, [rbp+var_1C]"], [539, "jmp locret_459CC6"], [540, "mov eax, cs:dword_4A1320"], [541, "test eax, eax"], [542, "jz short loc_459BF2"], [543, "mov rdx, [rbp+var_68]"], [544, "mov rax, cs:off_4A1328"], [545, "mov rcx, rdx"], [546, "mov rdx, rax"], [547, "mov esi, offset aSEstimatedPack"], [548, "mov edi, 3"], [549, "mov eax, 0"], [550, "call sub_4605E2"], [551, "mov rax, [rbp+var_50]"], [552, "mov rax, [rax+10h]"], [553, "mov rax, [rax]"], [554, "mov r9, [rax+18h]"], [555, "mov rax, [rbp+var_50]"], [556, "mov rax, [rax+10h]"], [557, "mov edx, [rax+10h]"], [558, "mov rax, [rbp+var_50]"], [559, "mov rax, [rax+10h]"], [560, "mov rax, [rax+8]"], [561, "mov rcx, [rbp+var_18]"], [562, "lea rsi, [rbp+var_68]"], [563, "mov r8, rcx"], [564, "mov ecx, edx"], [565, "mov edx, 4"], [566, "mov rdi, rax"], [567, "call r9"], [568, "mov [rbp+var_1C], eax"], [569, "mov eax, cs:dword_4A1320"], [570, "test eax, eax"], [571, "jz short loc_459C72"], [572, "mov edx, [rbp+var_5C]"], [573, "mov rax, [rbp+var_18]"], [574, "mov esi, edx"], [575, "mov rdi, rax"], [576, "call sub_45EFDC"], [577, "mov rdx, rax"], [578, "mov rax, cs:off_4A1328"], [579, "mov rcx, rdx"], [580, "mov rdx, rax"], [581, "mov esi, offset aSSrtpAuthTagS"], [582, "mov edi, 3"], [583, "mov eax, 0"], [584, "call sub_4605E2"], [585, "cmp [rbp+var_1C], 0"], [586, "jz short loc_459C7F"], [587, "mov eax, 7"], [588, "jmp short locret_459CC6"], [589, "cmp [rbp+var_18], 0"], [590, "jz short loc_459C9D"], [591, "mov rax, [rbp+var_E8]"], [592, "mov edx, [rax]"], [593, "mov eax, [rbp+var_5C]"], [594, "add edx, eax"], [595, "mov rax, [rbp+var_E8]"], [596, "mov [rax], edx"], [597, "cmp [rbp+var_EC], 0"], [598, "jz short loc_459CC1"], [599, "mov rax, [rbp+var_E8]"], [600, "mov eax, [rax]"], [601, "mov edx, eax"], [602, "mov eax, [rbp+var_44]"], [603, "add eax, edx"], [604, "mov edx, eax"], [605, "mov rax, [rbp+var_E8]"], [606, "mov [rax], edx"], [607, "mov eax, 0"], [608, "leave"], [609, "retn"]], "data_dep": [[8, 4], [9, 8], [18, 17], [19, 18], [22, 20], [27, 5], [28, 4], [29, 27], [30, 28], [32, 31], [33, 32], [34, 33], [35, 32], [37, 5], [38, 37], [39, 38], [40, 39], [43, 9], [44, 43], [45, 3], [46, 44], [47, 45], [49, 48], [50, 49], [51, 50], [52, 3], [53, 52], [54, 53], [55, 54], [56, 9], [57, 56], [58, 3], [59, 58], [60, 44], [61, 57], [62, 59], [64, 63], [65, 64], [66, 65], [67, 64], [70, 3], [71, 70], [72, 71], [72, 69], [74, 3], [75, 74], [75, 73], [77, 76], [79, 78], [83, 79], [83, 49], [84, 83], [84, 77], [84, 72], [84, 75], [85, 84], [86, 85], [87, 79], [87, 49], [88, 75], [88, 87], [88, 77], [88, 72], [89, 88], [90, 89], [91, 79], [91, 49], [92, 91], [95, 94], [96, 95], [97, 3], [98, 97], [99, 79], [99, 49], [100, 77], [100, 72], [100, 99], [100, 75], [101, 100], [103, 102], [106, 102], [106, 98], [107, 106], [108, 105], [109, 7], [110, 6], [111, 49], [111, 79], [112, 110], [113, 111], [115, 114], [116, 115], [117, 116], [117, 92], [117, 77], [117, 72], [117, 75], [118, 117], [118, 75], [118, 92], [118, 77], [118, 72], [119, 118], [120, 119], [121, 115], [122, 92], [122, 77], [122, 72], [122, 121], [122, 75], [123, 75], [123, 92], [123, 77], [123, 72], [123, 122], [124, 123], [125, 124], [126, 6], [127, 115], [128, 5], [129, 4], [130, 49], [130, 79], [131, 3], [132, 126], [133, 127], [134, 131], [137, 115], [138, 77], [138, 72], [138, 137], [138, 75], [138, 92], [139, 138], [141, 140], [142, 141], [143, 140], [144, 143], [145, 140], [146, 145], [147, 145], [148, 147], [151, 150], [152, 151], [153, 3], [154, 153], [155, 49], [155, 79], [156, 75], [156, 92], [156, 77], [156, 72], [156, 155], [157, 156], [159, 158], [162, 154], [162, 158], [163, 162], [164, 161], [167, 166], [168, 167], [169, 3], [170, 169], [171, 49], [171, 79], [172, 75], [172, 171], [172, 92], [172, 77], [172, 72], [173, 172], [175, 174], [178, 170], [178, 174], [179, 178], [180, 177], [188, 115], [189, 75], [189, 92], [189, 77], [189, 72], [189, 188], [190, 189], [192, 191], [193, 49], [193, 79], [194, 75], [194, 92], [194, 77], [194, 72], [194, 193], [195, 194], [196, 195], [197, 196], [198, 9], [199, 92], [199, 77], [199, 198], [199, 72], [199, 75], [200, 199], [201, 200], [202, 201], [203, 161], [203, 109], [204, 9], [205, 204], [205, 203], [206, 205], [207, 9], [208, 75], [208, 92], [208, 77], [208, 207], [208, 72], [209, 208], [210, 209], [211, 210], [212, 206], [213, 212], [214, 213], [215, 92], [215, 77], [215, 72], [215, 75], [215, 214], [216, 215], [217, 216], [219, 218], [220, 219], [221, 220], [222, 206], [222, 221], [223, 5], [224, 75], [224, 223], [224, 92], [224, 77], [224, 72], [225, 224], [226, 9], [227, 226], [227, 225], [228, 222], [228, 206], [228, 227], [229, 228], [232, 5], [233, 77], [233, 72], [233, 75], [233, 232], [233, 92], [234, 233], [235, 222], [235, 206], [236, 235], [236, 9], [237, 236], [238, 234], [239, 238], [239, 237], [240, 239], [241, 240], [242, 241], [243, 242], [247, 5], [248, 92], [248, 77], [248, 72], [248, 247], [248, 75], [249, 248], [250, 9], [251, 250], [251, 249], [252, 251], [253, 6], [254, 115], [255, 252], [256, 254], [257, 255], [259, 258], [260, 79], [260, 49], [261, 77], [261, 72], [261, 75], [261, 260], [261, 92], [262, 261], [263, 262], [264, 263], [265, 9], [266, 265], [267, 5], [268, 75], [268, 92], [268, 267], [268, 77], [268, 72], [269, 268], [270, 259], [271, 270], [271, 269], [272, 9], [273, 272], [273, 271], [274, 273], [278, 254], [279, 271], [279, 253], [280, 49], [280, 79], [281, 9], [282, 281], [284, 283], [285, 284], [286, 285], [287, 284], [288, 287], [289, 284], [291, 284], [292, 291], [294, 16], [294, 293], [295, 294], [297, 296], [299, 298], [300, 299], [301, 79], [301, 49], [302, 77], [302, 301], [302, 72], [302, 75], [302, 307], [302, 278], [302, 92], [303, 297], [304, 302], [306, 79], [306, 49], [307, 306], [308, 79], [308, 49], [309, 308], [311, 309], [315, 79], [315, 49], [316, 315], [317, 314], [318, 316], [320, 319], [321, 320], [322, 321], [323, 320], [324, 323], [325, 79], [325, 49], [326, 77], [326, 72], [326, 75], [326, 92], [326, 325], [327, 326], [328, 327], [329, 320], [332, 49], [332, 79], [333, 332], [334, 331], [335, 333], [338, 337], [339, 338], [342, 340], [343, 341], [348, 115], [349, 92], [349, 348], [349, 77], [349, 72], [349, 75], [349, 307], [350, 72], [350, 75], [350, 307], [350, 349], [350, 92], [350, 77], [351, 92], [351, 77], [351, 72], [351, 350], [351, 75], [351, 307], [352, 351], [353, 352], [354, 115], [355, 75], [355, 307], [355, 354], [355, 92], [355, 77], [355, 72], [356, 355], [356, 75], [356, 307], [356, 92], [356, 77], [356, 72], [357, 92], [357, 77], [357, 72], [357, 356], [357, 75], [357, 307], [358, 357], [359, 358], [360, 115], [361, 360], [361, 75], [361, 307], [361, 92], [361, 77], [361, 72], [362, 92], [362, 361], [362, 77], [362, 72], [362, 75], [362, 307], [363, 75], [363, 307], [363, 362], [363, 92], [363, 77], [363, 72], [364, 363], [365, 364], [367, 9], [368, 307], [368, 367], [368, 92], [368, 77], [368, 72], [368, 75], [369, 368], [371, 370], [372, 371], [374, 373], [375, 115], [376, 92], [376, 77], [376, 375], [376, 72], [376, 75], [376, 307], [377, 302], [377, 278], [377, 366], [377, 342], [379, 377], [380, 376], [382, 381], [383, 382], [384, 383], [385, 115], [386, 75], [386, 307], [386, 385], [386, 92], [386, 77], [386, 72], [387, 386], [388, 387], [389, 115], [390, 92], [390, 77], [390, 72], [390, 389], [390, 307], [390, 75], [391, 377], [391, 366], [393, 391], [394, 390], [396, 395], [400, 399], [402, 401], [403, 115], [404, 75], [404, 307], [404, 92], [404, 77], [404, 72], [404, 403], [405, 398], [405, 302], [405, 278], [405, 342], [407, 405], [408, 404], [410, 409], [411, 410], [412, 411], [413, 115], [414, 413], [414, 92], [414, 77], [414, 72], [414, 75], [414, 307], [415, 414], [416, 415], [417, 115], [418, 75], [418, 307], [418, 92], [418, 77], [418, 72], [418, 417], [419, 398], [419, 405], [421, 419], [422, 418], [424, 423], [427, 424], [427, 410], [427, 396], [427, 382], [428, 427], [432, 431], [433, 432], [435, 434], [436, 276], [436, 266], [437, 436], [438, 115], [439, 438], [439, 307], [439, 92], [439, 77], [439, 72], [439, 75], [440, 439], [442, 441], [443, 442], [444, 443], [445, 444], [446, 115], [447, 307], [447, 446], [447, 92], [447, 77], [447, 72], [447, 75], [448, 406], [448, 392], [448, 378], [448, 442], [448, 420], [449, 277], [449, 274], [450, 449], [451, 447], [453, 452], [454, 453], [455, 454], [459, 458], [460, 459], [461, 442], [462, 461], [463, 274], [463, 277], [464, 462], [465, 463], [467, 466], [469, 467], [470, 468], [475, 213], [475, 12], [476, 475], [477, 115], [478, 75], [478, 307], [478, 92], [478, 477], [478, 77], [478, 72], [479, 478], [480, 479], [481, 115], [482, 12], [482, 213], [483, 79], [483, 49], [484, 482], [485, 483], [487, 486], [488, 487], [489, 488], [490, 487], [492, 206], [492, 246], [492, 222], [493, 492], [494, 115], [495, 77], [495, 72], [495, 494], [495, 75], [495, 307], [495, 92], [496, 240], [496, 481], [496, 448], [496, 420], [496, 406], [496, 392], [496, 10], [496, 378], [496, 470], [497, 206], [497, 246], [497, 222], [498, 497], [499, 495], [501, 500], [502, 501], [503, 502], [506, 276], [506, 266], [507, 506], [508, 115], [509, 92], [509, 77], [509, 72], [509, 508], [509, 75], [509, 307], [510, 75], [510, 307], [510, 92], [510, 509], [510, 77], [510, 72], [511, 75], [511, 92], [511, 307], [511, 510], [511, 77], [511, 72], [512, 115], [513, 512], [513, 75], [513, 307], [513, 92], [513, 77], [513, 72], [514, 77], [514, 72], [514, 513], [514, 75], [514, 307], [514, 92], [515, 514], [516, 511], [517, 516], [518, 517], [519, 518], [520, 517], [522, 115], [523, 77], [523, 72], [523, 522], [523, 75], [523, 92], [523, 307], [524, 75], [524, 92], [524, 307], [524, 523], [524, 77], [524, 72], [525, 77], [525, 72], [525, 75], [525, 307], [525, 524], [525, 92], [526, 5], [527, 307], [527, 526], [527, 92], [527, 77], [527, 72], [527, 75], [528, 115], [529, 75], [529, 92], [529, 307], [529, 528], [529, 77], [529, 72], [530, 75], [530, 307], [530, 529], [530, 92], [530, 77], [530, 72], [531, 276], [531, 266], [532, 531], [533, 530], [534, 525], [535, 534], [536, 535], [537, 536], [538, 535], [541, 540], [542, 541], [543, 435], [545, 543], [546, 544], [551, 115], [552, 72], [552, 92], [552, 75], [552, 307], [552, 551], [552, 77], [553, 77], [553, 552], [553, 72], [553, 75], [553, 307], [553, 92], [554, 75], [554, 92], [554, 307], [554, 553], [554, 77], [554, 72], [555, 115], [556, 307], [556, 92], [556, 77], [556, 72], [556, 555], [556, 75], [557, 75], [557, 307], [557, 92], [557, 556], [557, 77], [557, 72], [558, 115], [559, 75], [559, 92], [559, 307], [559, 558], [559, 77], [559, 72], [560, 77], [560, 72], [560, 75], [560, 559], [560, 307], [560, 92], [561, 277], [561, 274], [562, 435], [562, 547], [562, 532], [563, 561], [564, 557], [566, 560], [567, 554], [568, 567], [570, 569], [571, 570], [572, 192], [573, 274], [573, 277], [574, 572], [575, 573], [577, 576], [579, 577], [580, 578], [585, 568], [586, 585], [589, 274], [589, 277], [590, 589], [591, 5], [592, 307], [592, 591], [592, 92], [592, 77], [592, 72], [592, 75], [592, 596], [593, 192], [594, 593], [594, 592], [595, 5], [596, 595], [596, 594], [597, 6], [598, 597], [599, 5], [600, 92], [600, 599], [600, 77], [600, 72], [600, 606], [600, 75], [600, 596], [600, 307], [601, 600], [602, 259], [603, 602], [603, 601], [604, 603], [605, 5], [606, 605], [606, 604], [609, 607], [609, 490], [609, 81], [609, 67], [609, 587], [609, 429], [609, 456], [609, 289], [609, 135], [609, 520], [609, 181], [609, 329], [609, 41], [609, 35], [609, 538], [609, 244], [609, 230], [609, 504]]}
|
static unsigned outBuffer(void (*myoutchar)(void *arg,char),void *arg,const char *buffer,int len,unsigned toupper)
{
unsigned count = 0;
int i;
char c;
for (i = 0; i < len ; i++)
{
c = buffer[i];
if (toupper && (c >= 'a' && c <= 'z'))
{
c = (char)(c - ('a' - 'A'));
}
(*myoutchar)(arg,c);
count++;
}
return count;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401CAF", "function_addr": 4201647, "binary_name": "93192e07cec4d59483e6b3e32da52f5af5f7a99b328cbb9789aa4ddee58b024e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov [rbp+var_2C], ecx"], [7, "mov [rbp+var_30], r8d"], [8, "mov [rbp+var_4], 0"], [9, "mov [rbp+var_8], 0"], [10, "jmp short loc_401D24"], [11, "mov eax, [rbp+var_8]"], [12, "movsxd rdx, eax"], [13, "mov rax, [rbp+var_28]"], [14, "add rax, rdx"], [15, "movzx eax, byte ptr [rax]"], [16, "mov [rbp+var_9], al"], [17, "cmp [rbp+var_30], 0"], [18, "jz short loc_401D09"], [19, "cmp [rbp+var_9], 60h "], [20, "jle short loc_401D09"], [21, "cmp [rbp+var_9], 7Ah "], [22, "jg short loc_401D09"], [23, "movzx eax, [rbp+var_9]"], [24, "sub eax, 20h "], [25, "mov [rbp+var_9], al"], [26, "movsx edx, [rbp+var_9]"], [27, "mov rax, [rbp+var_20]"], [28, "mov rcx, [rbp+var_18]"], [29, "mov esi, edx"], [30, "mov rdi, rax"], [31, "call rcx"], [32, "add [rbp+var_4], 1"], [33, "add [rbp+var_8], 1"], [34, "mov eax, [rbp+var_8]"], [35, "cmp eax, [rbp+var_2C]"], [36, "jl short loc_401CDA"], [37, "mov eax, [rbp+var_4]"], [38, "leave"], [39, "retn"]], "data_dep": [[11, 9], [11, 33], [12, 11], [13, 5], [14, 13], [14, 12], [15, 14], [16, 15], [17, 7], [18, 17], [19, 16], [20, 19], [21, 16], [22, 21], [23, 16], [24, 23], [25, 24], [26, 16], [26, 25], [27, 4], [28, 3], [29, 26], [30, 27], [31, 28], [32, 8], [32, 32], [33, 9], [33, 33], [34, 9], [34, 33], [35, 34], [35, 6], [36, 35], [37, 8], [37, 32], [39, 37]]}
|
static int
getNextETag(const char * restrict buf, int i,
int *x_return, int *y_return, int *weak_return)
{
int weak = 0;
int x, y;
while(buf[i] == ' ' || buf[i] == '\t')
i++;
if(buf[i] == 'W' && buf[i + 1] == '/') {
weak = 1;
i += 2;
}
if(buf[i] == '"')
i++;
else
return -1;
x = i;
while(buf[i] != '"') {
if(buf[i] == '\r' || buf[i] == '\n')
return -1;
i++;
}
y = i;
i++;
*x_return = x;
*y_return = y;
*weak_return = weak;
return i;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42C593", "function_addr": 4375955, "binary_name": "c0e109c02d23041cf557f0ac45598de9043334cedae0010bfabb46cc9f0ec43c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov [rbp+var_1C], esi"], [4, "mov [rbp+var_28], rdx"], [5, "mov [rbp+var_30], rcx"], [6, "mov [rbp+var_38], r8"], [7, "mov [rbp+var_4], 0"], [8, "jmp short loc_42C5B7"], [9, "add [rbp+var_1C], 1"], [10, "mov eax, [rbp+var_1C]"], [11, "movsxd rdx, eax"], [12, "mov rax, [rbp+var_18]"], [13, "add rax, rdx"], [14, "movzx eax, byte ptr [rax]"], [15, "cmp al, 20h "], [16, "jz short loc_42C5B3"], [17, "mov eax, [rbp+var_1C]"], [18, "movsxd rdx, eax"], [19, "mov rax, [rbp+var_18]"], [20, "add rax, rdx"], [21, "movzx eax, byte ptr [rax]"], [22, "cmp al, 9"], [23, "jz short loc_42C5B3"], [24, "mov eax, [rbp+var_1C]"], [25, "movsxd rdx, eax"], [26, "mov rax, [rbp+var_18]"], [27, "add rax, rdx"], [28, "movzx eax, byte ptr [rax]"], [29, "cmp al, 57h "], [30, "jnz short loc_42C615"], [31, "mov eax, [rbp+var_1C]"], [32, "cdqe"], [33, "lea rdx, [rax+1]"], [34, "mov rax, [rbp+var_18]"], [35, "add rax, rdx"], [36, "movzx eax, byte ptr [rax]"], [37, "cmp al, 2Fh "], [38, "jnz short loc_42C615"], [39, "mov [rbp+var_4], 1"], [40, "add [rbp+var_1C], 2"], [41, "mov eax, [rbp+var_1C]"], [42, "movsxd rdx, eax"], [43, "mov rax, [rbp+var_18]"], [44, "add rax, rdx"], [45, "movzx eax, byte ptr [rax]"], [46, "cmp al, 22h "], [47, "jnz short loc_42C635"], [48, "add [rbp+var_1C], 1"], [49, "mov eax, [rbp+var_1C]"], [50, "mov [rbp+var_8], eax"], [51, "jmp short loc_42C66F"], [52, "mov eax, 0FFFFFFFFh"], [53, "jmp short loc_42C6AB"], [54, "mov eax, [rbp+var_1C]"], [55, "movsxd rdx, eax"], [56, "mov rax, [rbp+var_18]"], [57, "add rax, rdx"], [58, "movzx eax, byte ptr [rax]"], [59, "cmp al, 0Dh"], [60, "jz short loc_42C664"], [61, "mov eax, [rbp+var_1C]"], [62, "movsxd rdx, eax"], [63, "mov rax, [rbp+var_18]"], [64, "add rax, rdx"], [65, "movzx eax, byte ptr [rax]"], [66, "cmp al, 0Ah"], [67, "jnz short loc_42C66B"], [68, "mov eax, 0FFFFFFFFh"], [69, "jmp short loc_42C6AB"], [70, "add [rbp+var_1C], 1"], [71, "mov eax, [rbp+var_1C]"], [72, "movsxd rdx, eax"], [73, "mov rax, [rbp+var_18]"], [74, "add rax, rdx"], [75, "movzx eax, byte ptr [rax]"], [76, "cmp al, 22h "], [77, "jnz short loc_42C63C"], [78, "mov eax, [rbp+var_1C]"], [79, "mov [rbp+var_C], eax"], [80, "add [rbp+var_1C], 1"], [81, "mov rax, [rbp+var_28]"], [82, "mov edx, [rbp+var_8]"], [83, "mov [rax], edx"], [84, "mov rax, [rbp+var_30]"], [85, "mov edx, [rbp+var_C]"], [86, "mov [rax], edx"], [87, "mov rax, [rbp+var_38]"], [88, "mov edx, [rbp+var_4]"], [89, "mov [rax], edx"], [90, "mov eax, [rbp+var_1C]"], [91, "pop rbp"], [92, "retn"]], "data_dep": [[9, 3], [9, 9], [10, 3], [10, 9], [11, 10], [12, 2], [13, 12], [13, 11], [14, 13], [15, 14], [16, 15], [17, 3], [17, 9], [18, 17], [19, 2], [20, 19], [20, 18], [21, 20], [22, 21], [23, 22], [24, 3], [24, 9], [25, 24], [26, 2], [27, 26], [27, 25], [28, 27], [29, 28], [30, 29], [31, 3], [31, 9], [33, 31], [33, 25], [34, 2], [35, 33], [35, 34], [36, 35], [37, 36], [38, 37], [40, 3], [40, 9], [41, 40], [41, 3], [41, 9], [42, 41], [43, 2], [44, 42], [44, 43], [45, 44], [46, 45], [47, 46], [48, 40], [48, 3], [48, 9], [49, 48], [50, 49], [54, 48], [54, 70], [55, 54], [56, 2], [57, 56], [57, 55], [58, 57], [59, 58], [60, 59], [61, 70], [61, 48], [62, 61], [63, 2], [64, 62], [64, 63], [65, 64], [66, 65], [67, 66], [70, 48], [70, 70], [71, 48], [71, 70], [72, 71], [73, 2], [74, 73], [74, 72], [75, 74], [76, 75], [77, 76], [78, 70], [78, 48], [79, 78], [80, 48], [80, 70], [81, 4], [82, 50], [83, 82], [83, 81], [84, 5], [85, 79], [86, 85], [86, 84], [87, 6], [88, 39], [88, 7], [89, 88], [89, 87], [90, 80], [91, 0], [92, 90], [92, 68], [92, 52]]}
|
TPokeMini_DrawVideo32 PokeMini_GetVideo5x5_32(int filter, int lcdmode)
{
if (filter == PokeMini_Scanline) {
switch (lcdmode) {
case 3: return PokeMini_VideoColorL5x5_32;
case 2: return PokeMini_Video2ScanLine5x5_32;
case 1: return PokeMini_Video3ScanLine5x5_32;
default: return PokeMini_VideoAScanLine5x5_32;
}
} else if (filter == PokeMini_Matrix) {
switch (lcdmode) {
case 3: return (VidEnableHighcolor) ? PokeMini_VideoColorH5x5_32 : PokeMini_VideoColor5x5_32;
case 2: return PokeMini_Video2Matrix5x5_32;
case 1: return PokeMini_Video3Matrix5x5_32;
default: return PokeMini_VideoAMatrix5x5_32;
}
} else {
switch (lcdmode) {
case 3: return PokeMini_VideoColor5x5_32;
case 2: return PokeMini_Video2None5x5_32;
case 1: return PokeMini_Video3None5x5_32;
default: return PokeMini_VideoANone5x5_32;
}
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414F80", "function_addr": 4280192, "binary_name": "876701f3a9046127c14232fb92e42c99080f16ec5c3cb376c624f10cf0c1511f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "mov [rbp+var_8], esi"], [4, "cmp [rbp+var_4], 2"], [5, "jnz short loc_414FD2"], [6, "cmp [rbp+var_8], 3"], [7, "jz short loc_414FAA"], [8, "cmp [rbp+var_8], 3"], [9, "jg short loc_414FC8"], [10, "cmp [rbp+var_8], 1"], [11, "jz short loc_414FBE"], [12, "cmp [rbp+var_8], 2"], [13, "jz short loc_414FB4"], [14, "jmp short loc_414FC8"], [15, "mov eax, offset sub_419E87"], [16, "jmp loc_415053"], [17, "mov eax, offset sub_41678C"], [18, "jmp loc_415053"], [19, "mov eax, offset sub_415A17"], [20, "jmp loc_415053"], [21, "mov eax, offset sub_41512A"], [22, "jmp loc_415053"], [23, "cmp [rbp+var_4], 1"], [24, "jnz short loc_41501F"], [25, "cmp [rbp+var_8], 3"], [26, "jz short loc_414FF2"], [27, "cmp [rbp+var_8], 3"], [28, "jg short loc_415018"], [29, "cmp [rbp+var_8], 1"], [30, "jz short loc_415011"], [31, "cmp [rbp+var_8], 2"], [32, "jz short loc_41500A"], [33, "jmp short loc_415018"], [34, "mov eax, cs:dword_4A21D4"], [35, "test eax, eax"], [36, "jz short loc_415003"], [37, "mov eax, offset sub_41A774"], [38, "jmp short loc_415053"], [39, "mov eax, offset sub_419703"], [40, "jmp short loc_415053"], [41, "mov eax, offset sub_41781C"], [42, "jmp short loc_415053"], [43, "mov eax, offset sub_417428"], [44, "jmp short loc_415053"], [45, "mov eax, offset sub_4170CE"], [46, "jmp short loc_415053"], [47, "cmp [rbp+var_8], 3"], [48, "jz short loc_415039"], [49, "cmp [rbp+var_8], 3"], [50, "jg short loc_41504E"], [51, "cmp [rbp+var_8], 1"], [52, "jz short loc_415047"], [53, "cmp [rbp+var_8], 2"], [54, "jz short loc_415040"], [55, "jmp short loc_41504E"], [56, "mov eax, offset sub_419703"], [57, "jmp short loc_415053"], [58, "mov eax, offset sub_418F2A"], [59, "jmp short loc_415053"], [60, "mov eax, offset sub_41831E"], [61, "jmp short loc_415053"], [62, "mov eax, offset sub_417B9A"], [63, "pop rbp"], [64, "retn"]], "data_dep": [[4, 2], [5, 4], [6, 3], [7, 6], [8, 3], [9, 8], [10, 3], [11, 10], [12, 3], [13, 12], [23, 2], [24, 23], [25, 3], [26, 25], [27, 3], [28, 27], [29, 3], [30, 29], [31, 3], [32, 31], [35, 34], [36, 35], [47, 3], [48, 47], [49, 3], [50, 49], [51, 3], [52, 51], [53, 3], [54, 53], [63, 0], [64, 17], [64, 41], [64, 56], [64, 62], [64, 19], [64, 37], [64, 43], [64, 58], [64, 15], [64, 21], [64, 39], [64, 45], [64, 60]]}
|
int repeated_message_scalar_value_types_encode(
struct repeated_message_scalar_value_types_t *self_p,
uint8_t *encoded_p,
size_t size)
{
return (pbtools_message_encode(
&self_p->base,
encoded_p,
size,
(pbtools_message_encode_inner_t)repeated_message_scalar_value_types_encode_inner));
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_426BD0", "function_addr": 4352976, "binary_name": "c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4, "mov [rbp+var_10], rsi"], [5, "mov [rbp+var_18], rdx"], [6, "mov rax, cs:qword_4EBCE0"], [7, "add rax, 1"], [8, "mov cs:qword_4EBCE0, rax"], [9, "mov rax, [rbp+var_8]"], [10, "mov rdx, [rbp+var_18]"], [11, "mov rsi, [rbp+var_10]"], [12, "mov ecx, offset sub_4250B0"], [13, "mov rdi, rax"], [14, "call sub_415A57"], [15, "mov rdx, cs:qword_4EBCE8"], [16, "add rdx, 1"], [17, "mov cs:qword_4EBCE8, rdx"], [18, "leave"], [19, "retn"]], "data_dep": [[7, 6], [8, 7], [9, 3], [10, 5], [11, 4], [13, 9], [16, 15], [17, 16], [19, 14]]}
|
void optionsmenu() {
int setColor;
data.index = OPTION_NIL;
cleanStatusBar();
write_str(1, rows, STATUS_BAR_MSG2, STATUSBAR, STATUSMSG);
loadmenus(mylist, OPT_MENU);
write_str(7, 1, "Options", MENU_SELECTOR, MENU_FOREGROUND1);
draw_window(7, 2, 20, 6, MENU_PANEL, MENU_FOREGROUND0,0, 1,0);
kglobal = start_vmenu(&data);
close_window();
write_str(1, 1, "File Options Help", MENU_PANEL, MENU_FOREGROUND0);
write_str(1, 1, "F", MENU_PANEL, F_RED);
write_str(8, 1, "p", MENU_PANEL, F_RED);
write_str(16, 1, "H", MENU_PANEL, F_RED);
update_screen();
free_list(mylist);
if(data.index == OPTION_1) {
//File Info
fileInfoDialog();
}
if(data.index == OPTION_3) {
//Set Colors
setColor = colorsWindow(mylist,COLORSWTITLE);
setColorScheme(setColor);
checkConfigFile(setColor); //save new configuration in config file
refresh_screen(1);
}
data.index = OPTION_NIL;
//Restore message in status bar
cleanStatusBar();
write_str(1, rows, STATUS_BAR_MSG1, STATUSBAR, STATUSMSG);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40382B", "function_addr": 4208683, "binary_name": "d34344be19f8160d9b1e2d2ede7625426fa3ac2992618f14e4353da89d8f0fa3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov cs:dword_40E200, 0FFFFFFFFh"], [4, "mov eax, 0"], [5, "call sub_4033ED"], [6, "mov ecx, cs:dword_40E174"], [7, "mov edx, cs:dword_40E170"], [8, "mov eax, cs:dword_1538C10"], [9, "mov r8d, ecx"], [10, "mov ecx, edx"], [11, "mov edx, offset aCEditPressEscT"], [12, "mov esi, eax"], [13, "mov edi, 1"], [14, "call sub_406AE1"], [15, "mov rax, cs:qword_40E1E0"], [16, "mov esi, 1"], [17, "mov rdi, rax"], [18, "call sub_408C30"], [19, "mov edx, cs:dword_40E18C"], [20, "mov eax, cs:dword_40E180"], [21, "mov r8d, edx"], [22, "mov ecx, eax"], [23, "mov edx, offset aOptions"], [24, "mov esi, 1"], [25, "mov edi, 7"], [26, "call sub_406AE1"], [27, "mov edx, cs:dword_40E184"], [28, "mov eax, cs:dword_40E178"], [29, "sub rsp, 8"], [30, "push 0"], [31, "push 1"], [32, "push 0"], [33, "mov r9d, edx"], [34, "mov r8d, eax"], [35, "mov ecx, 6"], [36, "mov edx, 14h"], [37, "mov esi, 2"], [38, "mov edi, 7"], [39, "call sub_407076"], [40, "add rsp, 20h"], [41, "mov edi, offset dword_40E200"], [42, "call sub_406055"], [43, "mov cs:byte_1538C24, al"], [44, "mov eax, 0"], [45, "call sub_406F5F"], [46, "mov edx, cs:dword_40E184"], [47, "mov eax, cs:dword_40E178"], [48, "mov r8d, edx"], [49, "mov ecx, eax"], [50, "mov edx, offset aFileOptionsHel"], [51, "mov esi, 1"], [52, "mov edi, 1"], [53, "call sub_406AE1"], [54, "mov eax, cs:dword_40E178"], [55, "mov r8d, 1Fh"], [56, "mov ecx, eax"], [57, "mov edx, offset off_40B10D"], [58, "mov esi, 1"], [59, "mov edi, 1"], [60, "call sub_406AE1"], [61, "mov eax, cs:dword_40E178"], [62, "mov r8d, 1Fh"], [63, "mov ecx, eax"], [64, "mov edx, 40B10Fh"], [65, "mov esi, 1"], [66, "mov edi, 8"], [67, "call sub_406AE1"], [68, "mov eax, cs:dword_40E178"], [69, "mov r8d, 1Fh"], [70, "mov ecx, eax"], [71, "mov edx, offset unk_40B111"], [72, "mov esi, 1"], [73, "mov edi, 10h"], [74, "call sub_406AE1"], [75, "mov eax, 0"], [76, "call sub_406C9A"], [77, "mov rax, cs:qword_40E1E0"], [78, "mov rdi, rax"], [79, "mov eax, 0"], [80, "call sub_405D93"], [81, "mov eax, cs:dword_40E200"], [82, "test eax, eax"], [83, "jnz short loc_4039B8"], [84, "mov eax, 0"], [85, "call sub_404DE6"], [86, "mov eax, cs:dword_40E200"], [87, "cmp eax, 2"], [88, "jnz short loc_4039F8"], [89, "mov rax, cs:qword_40E1E0"], [90, "mov esi, offset aSetColor"], [91, "mov rdi, rax"], [92, "call sub_40A070"], [93, "mov [rbp+var_4], eax"], [94, "mov eax, [rbp+var_4]"], [95, "mov edi, eax"], [96, "call sub_409E14"], [97, "mov eax, [rbp+var_4]"], [98, "mov edi, eax"], [99, "call sub_40A5C1"], [100, "mov edi, 1"], [101, "call sub_401C44"], [102, "mov cs:dword_40E200, 0FFFFFFFFh"], [103, "mov eax, 0"], [104, "call sub_4033ED"], [105, "mov ecx, cs:dword_40E174"], [106, "mov edx, cs:dword_40E170"], [107, "mov eax, cs:dword_1538C10"], [108, "mov r8d, ecx"], [109, "mov ecx, edx"], [110, "mov edx, offset aCEditF2CtrlLMe"], [111, "mov esi, eax"], [112, "mov edi, 1"], [113, "call sub_406AE1"], [114, "nop"], [115, "leave"], [116, "retn"]], "data_dep": [[9, 6], [10, 7], [12, 8], [17, 15], [21, 19], [22, 20], [29, 2], [33, 27], [34, 28], [40, 29], [43, 42], [48, 46], [49, 47], [56, 54], [63, 61], [70, 68], [78, 77], [81, 3], [82, 81], [83, 82], [86, 3], [87, 86], [88, 87], [91, 89], [93, 92], [94, 93], [95, 94], [97, 93], [98, 97], [108, 105], [109, 106], [111, 107], [116, 113]]}
|
int32 sim_rtcn_calb (uint32 ticksper, int32 tmr)
{
uint32 new_rtime, delta_rtime, last_idle_pct, catchup_ticks_curr;
int32 delta_vtime;
double new_gtime;
int32 new_currd;
int32 itmr;
RTC *rtc;
if (tmr == SIM_INTERNAL_CLK)
tmr = SIM_NTIMERS;
else {
if ((tmr < 0) || (tmr >= SIM_NTIMERS))
return 10000;
}
rtc = &rtcs[tmr];
if (rtc->hz != ticksper) { /* changing tick rate? */
uint32 prior_hz = rtc->hz;
if (rtc->hz == 0)
rtc->clock_tick_start_time = sim_timenow_double ();
if ((rtc->last_hz != 0) &&
(rtc->last_hz != ticksper) &&
(ticksper != 0))
rtc->currd = (int32)(sim_timer_inst_per_sec () / ticksper);
rtc->last_hz = rtc->hz;
rtc->hz = ticksper;
_rtcn_configure_calibrated_clock (tmr);
if (ticksper != 0) {
RTC *crtc = &rtcs[sim_calb_tmr];
rtc->clock_tick_size = 1.0 / ticksper;
sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(ticksper=%d,tmr=%d) currd=%d, prior_hz=%d\n", ticksper, tmr, rtc->currd, (int)prior_hz);
if ((tmr != sim_calb_tmr) && rtc->clock_unit && (ticksper > crtc->hz)) {
sim_catchup_ticks = TRUE;
sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(%d) - forcing catchup ticks for %s ticking at %d, host tick rate %ds\n", tmr, sim_uname (rtc->clock_unit), ticksper, sim_os_tick_hz);
_rtcn_tick_catchup_check (rtc, 0);
}
}
else
sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(ticksper=%d,tmr=%d) timer stopped currd was %d, prior_hz=%d\n", ticksper, tmr, rtc->currd, (int)prior_hz);
}
if (ticksper == 0) /* running? */
return 10000;
if (rtc->clock_unit == NULL) { /* Not using TIMER units? */
rtc->clock_ticks += 1;
rtc->calib_tick_time += rtc->clock_tick_size;
}
if (rtc->clock_catchup_pending) { /* catchup tick? */
++rtc->clock_catchup_ticks; /* accumulating which were catchups */
++rtc->clock_catchup_ticks_curr;
rtc->clock_catchup_pending = FALSE;
}
rtc->ticks += 1; /* count ticks */
if (rtc->ticks < ticksper) /* 1 sec yet? */
return rtc->currd;
catchup_ticks_curr = rtc->clock_catchup_ticks_curr;
rtc->clock_catchup_ticks_curr = 0;
rtc->ticks = 0; /* reset ticks */
rtc->elapsed += 1; /* count sec */
if (!rtc_avail) /* no timer? */
return rtc->currd;
if (sim_calb_tmr != tmr) {
rtc->currd = (int32)(sim_timer_inst_per_sec()/ticksper);
sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(tmr=%d) calibrated against internal system tmr=%d, tickper=%d (result: %d)\n", tmr, sim_calb_tmr, ticksper, rtc->currd);
return rtc->currd;
}
new_rtime = sim_os_msec (); /* wall time */
if (!sim_signaled_int_char &&
((new_rtime - sim_last_poll_kbd_time) > 500)) {
sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(tmr=%d) gratuitious keyboard poll after %d msecs\n", tmr, (int)(new_rtime - sim_last_poll_kbd_time));
(void)sim_poll_kbd ();
}
++rtc->calibrations; /* count calibrations */
sim_debug (DBG_TRC, &sim_timer_dev, "sim_rtcn_calb(ticksper=%d, tmr=%d)\n", ticksper, tmr);
if (new_rtime < rtc->rtime) { /* time running backwards? */
/* This happens when the value returned by sim_os_msec wraps (as an uint32) */
/* Wrapping will happen initially sometime before a simulator has been running */
/* for 49 days approximately every 49 days thereafter. */
++rtc->clock_calib_backwards; /* Count statistic */
sim_debug (DBG_CAL, &sim_timer_dev, "time running backwards - OldTime: %u, NewTime: %u, result: %d\n", rtc->rtime, new_rtime, rtc->currd);
rtc->vtime = rtc->rtime = new_rtime; /* reset wall time */
rtc->nxintv = 1000;
rtc->based = rtc->currd;
if (rtc->clock_catchup_eligible) {
rtc->clock_catchup_base_time = sim_timenow_double();
rtc->calib_tick_time = 0.0;
}
return rtc->currd; /* can't calibrate */
}
delta_rtime = new_rtime - rtc->rtime; /* elapsed wtime */
rtc->rtime = new_rtime; /* adv wall time */
rtc->vtime += 1000; /* adv sim time */
if (delta_rtime > 30000) { /* gap too big? */
/* This simulator process has somehow been suspended for a significant */
/* amount of time. This will certainly happen if the host system has */
/* slept or hibernated. It also might happen when a simulator */
/* developer stops the simulator at a breakpoint (a process, not simh */
/* breakpoint). To accomodate this, we set the calibration state to */
/* ignore what happened and proceed from here. */
++rtc->clock_calib_gap2big; /* Count statistic */
rtc->vtime = rtc->rtime; /* sync virtual and real time */
rtc->nxintv = 1000; /* reset next interval */
rtc->gtime = sim_gtime(); /* save instruction time */
rtc->based = rtc->currd;
if (rtc->clock_catchup_eligible)
rtc->calib_tick_time += ((double)delta_rtime / 1000.0);/* advance tick time */
sim_debug (DBG_CAL, &sim_timer_dev, "gap too big: delta = %d - result: %d\n", delta_rtime, rtc->currd);
return rtc->currd; /* can't calibr */
}
last_idle_pct = 0; /* normally force calibration */
if (tmr != SIM_NTIMERS) {
if (delta_rtime != 0) /* avoid divide by zero */
last_idle_pct = MIN(100, (uint32)(100.0 * (((double)(rtc->clock_time_idled - rtc->clock_time_idled_last)) / ((double)delta_rtime))));
rtc->clock_time_idled_last = rtc->clock_time_idled;
if (last_idle_pct > sim_idle_calib_pct) {
rtc->rtime = new_rtime; /* save wall time */
rtc->vtime += 1000; /* adv sim time */
rtc->gtime = sim_gtime(); /* save instruction time */
rtc->based = rtc->currd;
++rtc->clock_calib_skip_idle;
sim_debug (DBG_CAL, &sim_timer_dev, "skipping calibration due to idling (%d%%) - result: %d\n", last_idle_pct, rtc->currd);
return rtc->currd; /* avoid calibrating idle checks */
}
}
new_gtime = sim_gtime();
if ((last_idle_pct == 0) && (delta_rtime != 0)) {
sim_idle_cyc_ms = (uint32)((new_gtime - rtc->gtime) / delta_rtime);
if ((sim_idle_rate_ms != 0) && (delta_rtime > 1))
sim_idle_cyc_sleep = (uint32)((new_gtime - rtc->gtime) / (delta_rtime / sim_idle_rate_ms));
}
if (sim_asynch_timer || (catchup_ticks_curr > 0)) {
/* An asynchronous clock or when catchup ticks have */
/* occurred, we merely needs to divide the number of */
/* instructions actually executed by the clock rate. */
new_currd = (int32)((new_gtime - rtc->gtime)/ticksper);
/* avoid excessive swings in the calibrated result */
if (new_currd > 10*rtc->currd) /* don't swing big too fast */
new_currd = 10*rtc->currd;
else {
if (new_currd < rtc->currd/10) /* don't swing small too fast */
new_currd = rtc->currd/10;
}
rtc->based = rtc->currd = new_currd;
rtc->gtime = new_gtime; /* save instruction time */
sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(%s tmr=%d, tickper=%d) catchups=%u, idle=%d%% result: %d\n",
sim_asynch_timer ? "asynch" : "catchup", tmr, ticksper, catchup_ticks_curr, last_idle_pct, rtc->currd);
return rtc->currd; /* calibrated result */
}
rtc->gtime = new_gtime; /* save instruction time */
/* This self regulating algorithm depends directly on the assumption */
/* that this routine is called back after processing the number of */
/* instructions which was returned the last time it was called. */
if (delta_rtime == 0) /* gap too small? */
rtc->based = rtc->based * ticksper; /* slew wide */
else
rtc->based = (int32) (((double) rtc->based * (double) rtc->nxintv) /
((double) delta_rtime));/* new base rate */
delta_vtime = rtc->vtime - rtc->rtime; /* gap */
if (delta_vtime > SIM_TMAX) /* limit gap */
delta_vtime = SIM_TMAX;
else {
if (delta_vtime < -SIM_TMAX)
delta_vtime = -SIM_TMAX;
}
rtc->nxintv = 1000 + delta_vtime; /* next wtime */
rtc->currd = (int32) (((double) rtc->based * (double) rtc->nxintv) /
1000.0); /* next delay */
if (rtc->based <= 0) /* never negative or zero! */
rtc->based = 1;
if (rtc->currd <= 0) /* never negative or zero! */
rtc->currd = 1;
sim_debug (DBG_CAL, &sim_timer_dev, "sim_rtcn_calb(tmr=%d, tickper=%d) (delta_rtime=%d, delta_vtime=%d, base=%d, nxintv=%u, catchups=%u, idle=%d%%, result: %d)\n",
tmr, ticksper, (int)delta_rtime, (int)delta_vtime, rtc->based, rtc->nxintv, catchup_ticks_curr, last_idle_pct, rtc->currd);
/* Adjust calibration for other timers which depend on this timer's calibration */
for (itmr=0; itmr<=SIM_NTIMERS; itmr++) {
RTC *irtc = &rtcs[itmr];
if ((itmr != tmr) && (irtc->hz != 0))
irtc->currd = (rtc->currd * ticksper) / irtc->hz;
}
AIO_SET_INTERRUPT_LATENCY(rtc->currd * ticksper); /* set interrrupt latency */
return rtc->currd;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_44CC0A", "function_addr": 4508682, "binary_name": "52f1da104c77cf2534115453b0acfa2fd0959e3e1f5afe1e26cf18ea69b902cc.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push rbx"], [3, "sub rsp, 68h"], [4, "mov [rbp+var_64], edi"], [5, "mov [rbp+var_68], esi"], [6, "cmp [rbp+var_68], 40000008h"], [7, "jnz short loc_44CC2B"], [8, "mov [rbp+var_68], 8"], [9, "jmp short loc_44CC41"], [10, "cmp [rbp+var_68], 0"], [11, "js short loc_44CC37"], [12, "cmp [rbp+var_68], 7"], [13, "jle short loc_44CC41"], [14, "mov eax, 2710h"], [15, "jmp loc_44DA33"], [16, "mov eax, [rbp+var_68]"], [17, "movsxd rdx, eax"], [18, "mov rax, rdx"], [19, "shl rax, 2"], [20, "add rax, rdx"], [21, "lea rdx, ds:0[rax*4]"], [22, "add rax, rdx"], [23, "shl rax, 3"], [24, "add rax, 1513980h"], [25, "mov [rbp+var_28], rax"], [26, "mov rax, [rbp+var_28]"], [27, "mov eax, [rax+20h]"], [28, "cmp [rbp+var_64], eax"], [29, "jz loc_44CEF7"], [30, "mov rax, [rbp+var_28]"], [31, "mov eax, [rax+20h]"], [32, "mov [rbp+var_2C], eax"], [33, "mov rax, [rbp+var_28]"], [34, "mov eax, [rax+20h]"], [35, "test eax, eax"], [36, "jnz short loc_44CCA4"], [37, "call sub_4523C8"], [38, "movq rax, xmm0"], [39, "mov rdx, [rbp+var_28]"], [40, "mov [rdx+90h], rax"], [41, "mov rax, [rbp+var_28]"], [42, "mov eax, [rax+24h]"], [43, "test eax, eax"], [44, "jz short loc_44CD0B"], [45, "mov rax, [rbp+var_28]"], [46, "mov eax, [rax+24h]"], [47, "cmp [rbp+var_64], eax"], [48, "jz short loc_44CD0B"], [49, "cmp [rbp+var_64], 0"], [50, "jz short loc_44CD0B"], [51, "call sub_45373D"], [52, "movq rcx, xmm0"], [53, "mov eax, [rbp+var_64]"], [54, "test rax, rax"], [55, "js short loc_44CCDE"], [56, "pxor xmm0, xmm0"], [57, "cvtsi2sd xmm0, rax"], [58, "jmp short loc_44CCF7"], [59, "mov rdx, rax"], [60, "shr rdx, 1"], [61, "and eax, 1"], [62, "or rdx, rax"], [63, "pxor xmm0, xmm0"], [64, "cvtsi2sd xmm0, rdx"], [65, "addsd xmm0, xmm0"], [66, "movq xmm1, rcx"], [67, "divsd xmm1, xmm0"], [68, "cvttsd2si edx, xmm1"], [69, "mov rax, [rbp+var_28]"], [70, "mov [rax+40h], edx"], [71, "mov rax, [rbp+var_28]"], [72, "mov edx, [rax+20h]"], [73, "mov rax, [rbp+var_28]"], [74, "mov [rax+24h], edx"], [75, "mov rax, [rbp+var_28]"], [76, "mov edx, [rbp+var_64]"], [77, "mov [rax+20h], edx"], [78, "mov eax, [rbp+var_68]"], [79, "mov edi, eax"], [80, "call sub_4529D6"], [81, "cmp [rbp+var_64], 0"], [82, "jz loc_44CEA4"], [83, "mov eax, cs:dword_4E6EC8"], [84, "movsxd rdx, eax"], [85, "mov rax, rdx"], [86, "shl rax, 2"], [87, "add rax, rdx"], [88, "lea rdx, ds:0[rax*4]"], [89, "add rax, rdx"], [90, "shl rax, 3"], [91, "add rax, 1513980h"], [92, "mov [rbp+var_38], rax"], [93, "mov eax, [rbp+var_64]"], [94, "test rax, rax"], [95, "js short loc_44CD76"], [96, "pxor xmm0, xmm0"], [97, "cvtsi2sd xmm0, rax"], [98, "jmp short loc_44CD8F"], [99, "mov rdx, rax"], [100, "shr rdx, 1"], [101, "and eax, 1"], [102, "or rdx, rax"], [103, "pxor xmm0, xmm0"], [104, "cvtsi2sd xmm0, rdx"], [105, "addsd xmm0, xmm0"], [106, "movsd xmm1, cs:qword_4B3DD0"], [107, "divsd xmm1, xmm0"], [108, "mov rax, [rbp+var_28]"], [109, "movsd qword ptr [rax+58h], xmm1"], [110, "mov rax, cs:qword_14EFB20"], [111, "test rax, rax"], [112, "jz short loc_44CDF7"], [113, "mov eax, cs:dword_4E70B4"], [114, "and eax, 10h"], [115, "test eax, eax"], [116, "jz short loc_44CDF7"], [117, "mov edx, [rbp+var_2C]"], [118, "mov rax, [rbp+var_28]"], [119, "mov esi, [rax+40h]"], [120, "mov ecx, [rbp+var_68]"], [121, "mov eax, [rbp+var_64]"], [122, "sub rsp, 8"], [123, "push rdx"], [124, "mov r9d, esi"], [125, "mov r8d, ecx"], [126, "mov ecx, eax"], [127, "mov edx, offset aSimRtcnCalbTic"], [128, "mov esi, offset off_4E7040"], [129, "mov edi, 10h"], [130, "mov eax, 0"], [131, "call sub_43A3B9"], [132, "add rsp, 10h"], [133, "mov eax, cs:dword_4E6EC8"], [134, "cmp [rbp+var_68], eax"], [135, "jz loc_44CEF7"], [136, "mov rax, [rbp+var_28]"], [137, "mov rax, [rax]"], [138, "test rax, rax"], [139, "jz loc_44CEF7"], [140, "mov rax, [rbp+var_38]"], [141, "mov eax, [rax+20h]"], [142, "cmp [rbp+var_64], eax"], [143, "jbe loc_44CEF7"], [144, "mov cs:dword_4E6EE0, 1"], [145, "mov rax, cs:qword_14EFB20"], [146, "test rax, rax"], [147, "jz short loc_44CE91"], [148, "mov eax, cs:dword_4E70B4"], [149, "and eax, 10h"], [150, "test eax, eax"], [151, "jz short loc_44CE91"], [152, "mov ebx, cs:dword_1514DF4"], [153, "mov rax, [rbp+var_28]"], [154, "mov rax, [rax]"], [155, "mov rdi, rax"], [156, "call sub_428DAA"], [157, "mov rdx, rax"], [158, "mov ecx, [rbp+var_64]"], [159, "mov eax, [rbp+var_68]"], [160, "sub rsp, 8"], [161, "push rbx"], [162, "mov r9d, ecx"], [163, "mov r8, rdx"], [164, "mov ecx, eax"], [165, "mov edx, offset aSimRtcnCalbDFo"], [166, "mov esi, offset off_4E7040"], [167, "mov edi, 10h"], [168, "mov eax, 0"], [169, "call sub_43A3B9"], [170, "add rsp, 10h"], [171, "mov rax, [rbp+var_28]"], [172, "mov esi, 0"], [173, "mov rdi, rax"], [174, "call sub_451CA5"], [175, "jmp short loc_44CEF7"], [176, "mov rax, cs:qword_14EFB20"], [177, "test rax, rax"], [178, "jz short loc_44CEF7"], [179, "mov eax, cs:dword_4E70B4"], [180, "and eax, 10h"], [181, "test eax, eax"], [182, "jz short loc_44CEF7"], [183, "mov edx, [rbp+var_2C]"], [184, "mov rax, [rbp+var_28]"], [185, "mov esi, [rax+40h]"], [186, "mov ecx, [rbp+var_68]"], [187, "mov eax, [rbp+var_64]"], [188, "sub rsp, 8"], [189, "push rdx"], [190, "mov r9d, esi"], [191, "mov r8d, ecx"], [192, "mov ecx, eax"], [193, "mov edx, offset aSimRtcnCalbTic_0"], [194, "mov esi, offset off_4E7040"], [195, "mov edi, 10h"], [196, "mov eax, 0"], [197, "call sub_43A3B9"], [198, "add rsp, 10h"], [199, "cmp [rbp+var_64], 0"], [200, "jnz short loc_44CF07"], [201, "mov eax, 2710h"], [202, "jmp loc_44DA33"], [203, "mov rax, [rbp+var_28]"], [204, "mov rax, [rax]"], [205, "test rax, rax"], [206, "jnz short loc_44CF49"], [207, "mov rax, [rbp+var_28]"], [208, "mov eax, [rax+80h]"], [209, "lea edx, [rax+1]"], [210, "mov rax, [rbp+var_28]"], [211, "mov [rax+80h], edx"], [212, "mov rax, [rbp+var_28]"], [213, "movsd xmm1, qword ptr [rax+68h]"], [214, "mov rax, [rbp+var_28]"], [215, "movsd xmm0, qword ptr [rax+58h]"], [216, "addsd xmm0, xmm1"], [217, "mov rax, [rbp+var_28]"], [218, "movsd qword ptr [rax+68h], xmm0"], [219, "mov rax, [rbp+var_28]"], [220, "mov eax, [rax+0ACh]"], [221, "test eax, eax"], [222, "jz short loc_44CF93"], [223, "mov rax, [rbp+var_28]"], [224, "mov eax, [rax+0A0h]"], [225, "lea edx, [rax+1]"], [226, "mov rax, [rbp+var_28]"], [227, "mov [rax+0A0h], edx"], [228, "mov rax, [rbp+var_28]"], [229, "mov eax, [rax+0A8h]"], [230, "lea edx, [rax+1]"], [231, "mov rax, [rbp+var_28]"], [232, "mov [rax+0A8h], edx"], [233, "mov rax, [rbp+var_28]"], [234, "mov dword ptr [rax+0ACh], 0"], [235, "mov rax, [rbp+var_28]"], [236, "mov eax, [rax+1Ch]"], [237, "lea edx, [rax+1]"], [238, "mov rax, [rbp+var_28]"], [239, "mov [rax+1Ch], edx"], [240, "mov rax, [rbp+var_28]"], [241, "mov eax, [rax+1Ch]"], [242, "cmp [rbp+var_64], eax"], [243, "jbe short loc_44CFBC"], [244, "mov rax, [rbp+var_28]"], [245, "mov eax, [rax+40h]"], [246, "jmp loc_44DA33"], [247, "mov rax, [rbp+var_28]"], [248, "mov eax, [rax+0A8h]"], [249, "mov [rbp+var_3C], eax"], [250, "mov rax, [rbp+var_28]"], [251, "mov dword ptr [rax+0A8h], 0"], [252, "mov rax, [rbp+var_28]"], [253, "mov dword ptr [rax+1Ch], 0"], [254, "mov rax, [rbp+var_28]"], [255, "mov eax, [rax+48h]"], [256, "lea edx, [rax+1]"], [257, "mov rax, [rbp+var_28]"], [258, "mov [rax+48h], edx"], [259, "mov eax, 1"], [260, "test eax, eax"], [261, "jnz short loc_44D008"], [262, "mov rax, [rbp+var_28]"], [263, "mov eax, [rax+40h]"], [264, "jmp loc_44DA33"], [265, "mov eax, cs:dword_4E6EC8"], [266, "cmp [rbp+var_68], eax"], [267, "jz loc_44D0C3"], [268, "call sub_45373D"], [269, "movq rcx, xmm0"], [270, "mov eax, [rbp+var_64]"], [271, "test rax, rax"], [272, "js short loc_44D034"], [273, "pxor xmm0, xmm0"], [274, "cvtsi2sd xmm0, rax"], [275, "jmp short loc_44D04D"], [276, "mov rdx, rax"], [277, "shr rdx, 1"], [278, "and eax, 1"], [279, "or rdx, rax"], [280, "pxor xmm0, xmm0"], [281, "cvtsi2sd xmm0, rdx"], [282, "addsd xmm0, xmm0"], [283, "movq xmm1, rcx"], [284, "divsd xmm1, xmm0"], [285, "cvttsd2si edx, xmm1"], [286, "mov rax, [rbp+var_28]"], [287, "mov [rax+40h], edx"], [288, "mov rax, cs:qword_14EFB20"], [289, "test rax, rax"], [290, "jz short loc_44D0B7"], [291, "mov eax, cs:dword_4E70B4"], [292, "and eax, 10h"], [293, "test eax, eax"], [294, "jz short loc_44D0B7"], [295, "mov rax, [rbp+var_28]"], [296, "mov edx, [rax+40h]"], [297, "mov ecx, cs:dword_4E6EC8"], [298, "mov esi, [rbp+var_64]"], [299, "mov eax, [rbp+var_68]"], [300, "sub rsp, 8"], [301, "push rdx"], [302, "mov r9d, esi"], [303, "mov r8d, ecx"], [304, "mov ecx, eax"], [305, "mov edx, offset aSimRtcnCalbTmr"], [306, "mov esi, offset off_4E7040"], [307, "mov edi, 10h"], [308, "mov eax, 0"], [309, "call sub_43A3B9"], [310, "add rsp, 10h"], [311, "mov rax, [rbp+var_28]"], [312, "mov eax, [rax+40h]"], [313, "jmp loc_44DA33"], [314, "call sub_44C5AB"], [315, "mov [rbp+var_40], eax"], [316, "mov eax, cs:dword_4E2B8C"], [317, "test eax, eax"], [318, "jnz short loc_44D133"], [319, "mov edx, cs:dword_15125A8"], [320, "mov eax, [rbp+var_40]"], [321, "sub eax, edx"], [322, "cmp eax, 1F4h"], [323, "jbe short loc_44D133"], [324, "mov rax, cs:qword_14EFB20"], [325, "test rax, rax"], [326, "jz short loc_44D12E"], [327, "mov eax, cs:dword_4E70B4"], [328, "and eax, 10h"], [329, "test eax, eax"], [330, "jz short loc_44D12E"], [331, "mov edx, cs:dword_15125A8"], [332, "mov eax, [rbp+var_40]"], [333, "sub eax, edx"], [334, "mov edx, eax"], [335, "mov eax, [rbp+var_68]"], [336, "mov r8d, edx"], [337, "mov ecx, eax"], [338, "mov edx, offset aSimRtcnCalbTmr_0"], [339, "mov esi, offset off_4E7040"], [340, "mov edi, 10h"], [341, "mov eax, 0"], [342, "call sub_43A3B9"], [343, "call sub_4487DC"], [344, "mov rax, [rbp+var_28]"], [345, "mov eax, [rax+4Ch]"], [346, "lea edx, [rax+1]"], [347, "mov rax, [rbp+var_28]"], [348, "mov [rax+4Ch], edx"], [349, "mov rax, cs:qword_14EFB20"], [350, "test rax, rax"], [351, "jz short loc_44D181"], [352, "mov eax, cs:dword_4E70B4"], [353, "and eax, 8"], [354, "test eax, eax"], [355, "jz short loc_44D181"], [356, "mov edx, [rbp+var_68]"], [357, "mov eax, [rbp+var_64]"], [358, "mov r8d, edx"], [359, "mov ecx, eax"], [360, "mov edx, offset aSimRtcnCalbTic_1"], [361, "mov esi, offset off_4E7040"], [362, "mov edi, 8"], [363, "mov eax, 0"], [364, "call sub_43A3B9"], [365, "mov rax, [rbp+var_28]"], [366, "mov eax, [rax+28h]"], [367, "cmp [rbp+var_40], eax"], [368, "jnb loc_44D260"], [369, "mov rax, [rbp+var_28]"], [370, "mov eax, [rax+0C4h]"], [371, "lea edx, [rax+1]"], [372, "mov rax, [rbp+var_28]"], [373, "mov [rax+0C4h], edx"], [374, "mov rax, cs:qword_14EFB20"], [375, "test rax, rax"], [376, "jz short loc_44D1F3"], [377, "mov eax, cs:dword_4E70B4"], [378, "and eax, 10h"], [379, "test eax, eax"], [380, "jz short loc_44D1F3"], [381, "mov rax, [rbp+var_28]"], [382, "mov ecx, [rax+40h]"], [383, "mov rax, [rbp+var_28]"], [384, "mov eax, [rax+28h]"], [385, "mov edx, [rbp+var_40]"], [386, "mov r9d, ecx"], [387, "mov r8d, edx"], [388, "mov ecx, eax"], [389, "mov edx, offset aTimeRunningBac"], [390, "mov esi, offset off_4E7040"], [391, "mov edi, 10h"], [392, "mov eax, 0"], [393, "call sub_43A3B9"], [394, "mov rax, [rbp+var_28]"], [395, "mov edx, [rbp+var_40]"], [396, "mov [rax+28h], edx"], [397, "mov rax, [rbp+var_28]"], [398, "mov edx, [rax+28h]"], [399, "mov rax, [rbp+var_28]"], [400, "mov [rax+2Ch], edx"], [401, "mov rax, [rbp+var_28]"], [402, "mov dword ptr [rax+38h], 3E8h"], [403, "mov rax, [rbp+var_28]"], [404, "mov edx, [rax+40h]"], [405, "mov rax, [rbp+var_28]"], [406, "mov [rax+3Ch], edx"], [407, "mov rax, [rbp+var_28]"], [408, "mov eax, [rax+0B0h]"], [409, "test eax, eax"], [410, "jz short loc_44D254"], [411, "call sub_4523C8"], [412, "movq rax, xmm0"], [413, "mov rdx, [rbp+var_28]"], [414, "mov [rdx+98h], rax"], [415, "mov rax, [rbp+var_28]"], [416, "pxor xmm0, xmm0"], [417, "movsd qword ptr [rax+68h], xmm0"], [418, "mov rax, [rbp+var_28]"], [419, "mov eax, [rax+40h]"], [420, "jmp loc_44DA33"], [421, "mov rax, [rbp+var_28]"], [422, "mov edx, [rax+28h]"], [423, "mov eax, [rbp+var_40]"], [424, "sub eax, edx"], [425, "mov [rbp+var_44], eax"], [426, "mov rax, [rbp+var_28]"], [427, "mov edx, [rbp+var_40]"], [428, "mov [rax+28h], edx"], [429, "mov rax, [rbp+var_28]"], [430, "mov eax, [rax+2Ch]"], [431, "lea edx, [rax+3E8h]"], [432, "mov rax, [rbp+var_28]"], [433, "mov [rax+2Ch], edx"], [434, "cmp [rbp+var_44], 7530h"], [435, "jbe loc_44D393"], [436, "mov rax, [rbp+var_28]"], [437, "mov eax, [rax+0C0h]"], [438, "lea edx, [rax+1]"], [439, "mov rax, [rbp+var_28]"], [440, "mov [rax+0C0h], edx"], [441, "mov rax, [rbp+var_28]"], [442, "mov edx, [rax+28h]"], [443, "mov rax, [rbp+var_28]"], [444, "mov [rax+2Ch], edx"], [445, "mov rax, [rbp+var_28]"], [446, "mov dword ptr [rax+38h], 3E8h"], [447, "call sub_433941"], [448, "movq rax, xmm0"], [449, "mov rdx, [rbp+var_28]"], [450, "mov [rdx+30h], rax"], [451, "mov rax, [rbp+var_28]"], [452, "mov edx, [rax+40h]"], [453, "mov rax, [rbp+var_28]"], [454, "mov [rax+3Ch], edx"], [455, "mov rax, [rbp+var_28]"], [456, "mov eax, [rax+0B0h]"], [457, "test eax, eax"], [458, "jz short loc_44D346"], [459, "mov rax, [rbp+var_28]"], [460, "movsd xmm1, qword ptr [rax+68h]"], [461, "mov eax, [rbp+var_44]"], [462, "test rax, rax"], [463, "js short loc_44D314"], [464, "pxor xmm0, xmm0"], [465, "cvtsi2sd xmm0, rax"], [466, "jmp short loc_44D32D"], [467, "mov rdx, rax"], [468, "shr rdx, 1"], [469, "and eax, 1"], [470, "or rdx, rax"], [471, "pxor xmm0, xmm0"], [472, "cvtsi2sd xmm0, rdx"], [473, "addsd xmm0, xmm0"], [474, "movsd xmm2, cs:qword_4B3DD8"], [475, "divsd xmm0, xmm2"], [476, "addsd xmm0, xmm1"], [477, "mov rax, [rbp+var_28]"], [478, "movsd qword ptr [rax+68h], xmm0"], [479, "mov rax, cs:qword_14EFB20"], [480, "test rax, rax"], [481, "jz short loc_44D387"], [482, "mov eax, cs:dword_4E70B4"], [483, "and eax, 10h"], [484, "test eax, eax"], [485, "jz short loc_44D387"], [486, "mov rax, [rbp+var_28]"], [487, "mov edx, [rax+40h]"], [488, "mov eax, [rbp+var_44]"], [489, "mov r8d, edx"], [490, "mov ecx, eax"], [491, "mov edx, offset aGapTooBigDelta"], [492, "mov esi, offset off_4E7040"], [493, "mov edi, 10h"], [494, "mov eax, 0"], [495, "call sub_43A3B9"], [496, "mov rax, [rbp+var_28]"], [497, "mov eax, [rax+40h]"], [498, "jmp loc_44DA33"], [499, "mov [rbp+var_14], 0"], [500, "cmp [rbp+var_68], 8"], [501, "jz loc_44D507"], [502, "cmp [rbp+var_44], 0"], [503, "jz loc_44D442"], [504, "mov rax, [rbp+var_28]"], [505, "mov edx, [rax+0B4h]"], [506, "mov rax, [rbp+var_28]"], [507, "mov eax, [rax+0B8h]"], [508, "sub edx, eax"], [509, "mov eax, edx"], [510, "test rax, rax"], [511, "js short loc_44D3D6"], [512, "pxor xmm0, xmm0"], [513, "cvtsi2sd xmm0, rax"], [514, "jmp short loc_44D3EF"], [515, "mov rdx, rax"], [516, "shr rdx, 1"], [517, "and eax, 1"], [518, "or rdx, rax"], [519, "pxor xmm0, xmm0"], [520, "cvtsi2sd xmm0, rdx"], [521, "addsd xmm0, xmm0"], [522, "mov eax, [rbp+var_44]"], [523, "test rax, rax"], [524, "js short loc_44D402"], [525, "pxor xmm1, xmm1"], [526, "cvtsi2sd xmm1, rax"], [527, "jmp short loc_44D41B"], [528, "mov rdx, rax"], [529, "shr rdx, 1"], [530, "and eax, 1"], [531, "or rdx, rax"], [532, "pxor xmm1, xmm1"], [533, "cvtsi2sd xmm1, rdx"], [534, "addsd xmm1, xmm1"], [535, "movapd xmm2, xmm0"], [536, "divsd xmm2, xmm1"], [537, "movsd xmm0, cs:qword_4B3DE0"], [538, "mulsd xmm0, xmm2"], [539, "cvttsd2si rax, xmm0"], [540, "mov edx, 64h "], [541, "cmp eax, 64h "], [542, "cmova eax, edx"], [543, "mov [rbp+var_14], eax"], [544, "mov rax, [rbp+var_28]"], [545, "mov edx, [rax+0B4h]"], [546, "mov rax, [rbp+var_28]"], [547, "mov [rax+0B8h], edx"], [548, "mov eax, cs:dword_4E6ED4"], [549, "cmp [rbp+var_14], eax"], [550, "jbe loc_44D507"], [551, "mov rax, [rbp+var_28]"], [552, "mov edx, [rbp+var_40]"], [553, "mov [rax+28h], edx"], [554, "mov rax, [rbp+var_28]"], [555, "mov eax, [rax+2Ch]"], [556, "lea edx, [rax+3E8h]"], [557, "mov rax, [rbp+var_28]"], [558, "mov [rax+2Ch], edx"], [559, "call sub_433941"], [560, "movq rax, xmm0"], [561, "mov rdx, [rbp+var_28]"], [562, "mov [rdx+30h], rax"], [563, "mov rax, [rbp+var_28]"], [564, "mov edx, [rax+40h]"], [565, "mov rax, [rbp+var_28]"], [566, "mov [rax+3Ch], edx"], [567, "mov rax, [rbp+var_28]"], [568, "mov eax, [rax+0BCh]"], [569, "lea edx, [rax+1]"], [570, "mov rax, [rbp+var_28]"], [571, "mov [rax+0BCh], edx"], [572, "mov rax, cs:qword_14EFB20"], [573, "test rax, rax"], [574, "jz short loc_44D4FB"], [575, "mov eax, cs:dword_4E70B4"], [576, "and eax, 10h"], [577, "test eax, eax"], [578, "jz short loc_44D4FB"], [579, "mov rax, [rbp+var_28]"], [580, "mov edx, [rax+40h]"], [581, "mov eax, [rbp+var_14]"], [582, "mov r8d, edx"], [583, "mov ecx, eax"], [584, "mov edx, offset aSkippingCalibr"], [585, "mov esi, offset off_4E7040"], [586, "mov edi, 10h"], [587, "mov eax, 0"], [588, "call sub_43A3B9"], [589, "mov rax, [rbp+var_28]"], [590, "mov eax, [rax+40h]"], [591, "jmp loc_44DA33"], [592, "call sub_433941"], [593, "movq rax, xmm0"], [594, "mov [rbp+var_50], rax"], [595, "cmp [rbp+var_14], 0"], [596, "jnz loc_44D5EA"], [597, "cmp [rbp+var_44], 0"], [598, "jz loc_44D5EA"], [599, "mov rax, [rbp+var_28]"], [600, "movsd xmm2, qword ptr [rax+30h]"], [601, "movsd xmm0, [rbp+var_50]"], [602, "movapd xmm1, xmm0"], [603, "subsd xmm1, xmm2"], [604, "mov eax, [rbp+var_44]"], [605, "test rax, rax"], [606, "js short loc_44D552"], [607, "pxor xmm0, xmm0"], [608, "cvtsi2sd xmm0, rax"], [609, "jmp short loc_44D56B"], [610, "mov rdx, rax"], [611, "shr rdx, 1"], [612, "and eax, 1"], [613, "or rdx, rax"], [614, "pxor xmm0, xmm0"], [615, "cvtsi2sd xmm0, rdx"], [616, "addsd xmm0, xmm0"], [617, "divsd xmm1, xmm0"], [618, "cvttsd2si rax, xmm1"], [619, "mov cs:dword_1514E3C, eax"], [620, "mov eax, cs:dword_1514DE4"], [621, "test eax, eax"], [622, "jz short loc_44D5EA"], [623, "cmp [rbp+var_44], 1"], [624, "jbe short loc_44D5EA"], [625, "mov rax, [rbp+var_28]"], [626, "movsd xmm2, qword ptr [rax+30h]"], [627, "movsd xmm0, [rbp+var_50]"], [628, "movapd xmm1, xmm0"], [629, "subsd xmm1, xmm2"], [630, "mov ebx, cs:dword_1514DE4"], [631, "mov eax, [rbp+var_44]"], [632, "mov edx, 0"], [633, "div ebx"], [634, "mov eax, eax"], [635, "test rax, rax"], [636, "js short loc_44D5C2"], [637, "pxor xmm0, xmm0"], [638, "cvtsi2sd xmm0, rax"], [639, "jmp short loc_44D5DB"], [640, "mov rdx, rax"], [641, "shr rdx, 1"], [642, "and eax, 1"], [643, "or rdx, rax"], [644, "pxor xmm0, xmm0"], [645, "cvtsi2sd xmm0, rdx"], [646, "addsd xmm0, xmm0"], [647, "divsd xmm1, xmm0"], [648, "cvttsd2si rax, xmm1"], [649, "mov cs:dword_1514E40, eax"], [650, "mov eax, cs:dword_15149E8"], [651, "test eax, eax"], [652, "jnz short loc_44D5FE"], [653, "cmp [rbp+var_3C], 0"], [654, "jz loc_44D760"], [655, "mov rax, [rbp+var_28]"], [656, "movsd xmm2, qword ptr [rax+30h]"], [657, "movsd xmm0, [rbp+var_50]"], [658, "movapd xmm1, xmm0"], [659, "subsd xmm1, xmm2"], [660, "mov eax, [rbp+var_64]"], [661, "test rax, rax"], [662, "js short loc_44D627"], [663, "pxor xmm0, xmm0"], [664, "cvtsi2sd xmm0, rax"], [665, "jmp short loc_44D640"], [666, "mov rdx, rax"], [667, "shr rdx, 1"], [668, "and eax, 1"], [669, "or rdx, rax"], [670, "pxor xmm0, xmm0"], [671, "cvtsi2sd xmm0, rdx"], [672, "addsd xmm0, xmm0"], [673, "divsd xmm1, xmm0"], [674, "cvttsd2si eax, xmm1"], [675, "mov [rbp+var_1C], eax"], [676, "mov rax, [rbp+var_28]"], [677, "mov edx, [rax+40h]"], [678, "mov eax, edx"], [679, "shl eax, 2"], [680, "add eax, edx"], [681, "add eax, eax"], [682, "cmp [rbp+var_1C], eax"], [683, "jle short loc_44D675"], [684, "mov rax, [rbp+var_28]"], [685, "mov edx, [rax+40h]"], [686, "mov eax, edx"], [687, "shl eax, 2"], [688, "add eax, edx"], [689, "add eax, eax"], [690, "mov [rbp+var_1C], eax"], [691, "jmp short loc_44D6BF"], [692, "mov rax, [rbp+var_28]"], [693, "mov eax, [rax+40h]"], [694, "movsxd rdx, eax"], [695, "imul rdx, 66666667h"], [696, "shr rdx, 20h"], [697, "sar edx, 2"], [698, "sar eax, 1Fh"], [699, "mov ecx, eax"], [700, "mov eax, edx"], [701, "sub eax, ecx"], [702, "cmp [rbp+var_1C], eax"], [703, "jge short loc_44D6BF"], [704, "mov rax, [rbp+var_28]"], [705, "mov eax, [rax+40h]"], [706, "movsxd rdx, eax"], [707, "imul rdx, 66666667h"], [708, "shr rdx, 20h"], [709, "sar edx, 2"], [710, "sar eax, 1Fh"], [711, "mov ecx, eax"], [712, "mov eax, edx"], [713, "sub eax, ecx"], [714, "mov [rbp+var_1C], eax"], [715, "mov rax, [rbp+var_28]"], [716, "mov edx, [rbp+var_1C]"], [717, "mov [rax+40h], edx"], [718, "mov rax, [rbp+var_28]"], [719, "mov edx, [rax+40h]"], [720, "mov rax, [rbp+var_28]"], [721, "mov [rax+3Ch], edx"], [722, "mov rax, [rbp+var_28]"], [723, "movsd xmm0, [rbp+var_50]"], [724, "movsd qword ptr [rax+30h], xmm0"], [725, "mov rax, cs:qword_14EFB20"], [726, "test rax, rax"], [727, "jz short loc_44D754"], [728, "mov eax, cs:dword_4E70B4"], [729, "and eax, 10h"], [730, "test eax, eax"], [731, "jz short loc_44D754"], [732, "mov rax, [rbp+var_28]"], [733, "mov eax, [rax+40h]"], [734, "mov edx, cs:dword_15149E8"], [735, "test edx, edx"], [736, "jz short loc_44D716"], [737, "mov esi, offset aAsynch"], [738, "jmp short loc_44D71B"], [739, "mov esi, offset aCatchup"], [740, "mov ecx, [rbp+var_64]"], [741, "mov edx, [rbp+var_68]"], [742, "sub rsp, 8"], [743, "push rax"], [744, "mov eax, [rbp+var_14]"], [745, "push rax"], [746, "mov eax, [rbp+var_3C]"], [747, "push rax"], [748, "mov r9d, ecx"], [749, "mov r8d, edx"], [750, "mov rcx, rsi"], [751, "mov edx, offset aSimRtcnCalbSTm"], [752, "mov esi, offset off_4E7040"], [753, "mov edi, 10h"], [754, "mov eax, 0"], [755, "call sub_43A3B9"], [756, "add rsp, 20h"], [757, "mov rax, [rbp+var_28]"], [758, "mov eax, [rax+40h]"], [759, "jmp loc_44DA33"], [760, "mov rax, [rbp+var_28]"], [761, "movsd xmm0, [rbp+var_50]"], [762, "movsd qword ptr [rax+30h], xmm0"], [763, "cmp [rbp+var_44], 0"], [764, "jnz short loc_44D78D"], [765, "mov rax, [rbp+var_28]"], [766, "mov eax, [rax+3Ch]"], [767, "imul eax, [rbp+var_64]"], [768, "mov edx, eax"], [769, "mov rax, [rbp+var_28]"], [770, "mov [rax+3Ch], edx"], [771, "jmp loc_44D80D"], [772, "mov rax, [rbp+var_28]"], [773, "mov eax, [rax+3Ch]"], [774, "pxor xmm1, xmm1"], [775, "cvtsi2sd xmm1, eax"], [776, "mov rax, [rbp+var_28]"], [777, "mov eax, [rax+38h]"], [778, "mov eax, eax"], [779, "test rax, rax"], [780, "js short loc_44D7B5"], [781, "pxor xmm0, xmm0"], [782, "cvtsi2sd xmm0, rax"], [783, "jmp short loc_44D7CE"], [784, "mov rdx, rax"], [785, "shr rdx, 1"], [786, "and eax, 1"], [787, "or rdx, rax"], [788, "pxor xmm0, xmm0"], [789, "cvtsi2sd xmm0, rdx"], [790, "addsd xmm0, xmm0"], [791, "mulsd xmm1, xmm0"], [792, "mov eax, [rbp+var_44]"], [793, "test rax, rax"], [794, "js short loc_44D7E5"], [795, "pxor xmm0, xmm0"], [796, "cvtsi2sd xmm0, rax"], [797, "jmp short loc_44D7FE"], [798, "mov rdx, rax"], [799, "shr rdx, 1"], [800, "and eax, 1"], [801, "or rdx, rax"], [802, "pxor xmm0, xmm0"], [803, "cvtsi2sd xmm0, rdx"], [804, "addsd xmm0, xmm0"], [805, "divsd xmm1, xmm0"], [806, "cvttsd2si edx, xmm1"], [807, "mov rax, [rbp+var_28]"], [808, "mov [rax+3Ch], edx"], [809, "mov rax, [rbp+var_28]"], [810, "mov edx, [rax+2Ch]"], [811, "mov rax, [rbp+var_28]"], [812, "mov ecx, [rax+28h]"], [813, "mov eax, edx"], [814, "sub eax, ecx"], [815, "mov [rbp+var_18], eax"], [816, "cmp [rbp+var_18], 1F4h"], [817, "jle short loc_44D834"], [818, "mov [rbp+var_18], 1F4h"], [819, "jmp short loc_44D844"], [820, "cmp [rbp+var_18], 0FFFFFE0Ch"], [821, "jge short loc_44D844"], [822, "mov [rbp+var_18], 0FFFFFE0Ch"], [823, "mov eax, [rbp+var_18]"], [824, "add eax, 3E8h"], [825, "mov edx, eax"], [826, "mov rax, [rbp+var_28]"], [827, "mov [rax+38h], edx"], [828, "mov rax, [rbp+var_28]"], [829, "mov eax, [rax+3Ch]"], [830, "pxor xmm1, xmm1"], [831, "cvtsi2sd xmm1, eax"], [832, "mov rax, [rbp+var_28]"], [833, "mov eax, [rax+38h]"], [834, "mov eax, eax"], [835, "test rax, rax"], [836, "js short loc_44D87D"], [837, "pxor xmm0, xmm0"], [838, "cvtsi2sd xmm0, rax"], [839, "jmp short loc_44D896"], [840, "mov rdx, rax"], [841, "shr rdx, 1"], [842, "and eax, 1"], [843, "or rdx, rax"], [844, "pxor xmm0, xmm0"], [845, "cvtsi2sd xmm0, rdx"], [846, "addsd xmm0, xmm0"], [847, "mulsd xmm0, xmm1"], [848, "movsd xmm1, cs:qword_4B3DD8"], [849, "divsd xmm0, xmm1"], [850, "cvttsd2si edx, xmm0"], [851, "mov rax, [rbp+var_28]"], [852, "mov [rax+40h], edx"], [853, "mov rax, [rbp+var_28]"], [854, "mov eax, [rax+3Ch]"], [855, "test eax, eax"], [856, "jg short loc_44D8C7"], [857, "mov rax, [rbp+var_28]"], [858, "mov dword ptr [rax+3Ch], 1"], [859, "mov rax, [rbp+var_28]"], [860, "mov eax, [rax+40h]"], [861, "test eax, eax"], [862, "jg short loc_44D8DD"], [863, "mov rax, [rbp+var_28]"], [864, "mov dword ptr [rax+40h], 1"], [865, "mov rax, cs:qword_14EFB20"], [866, "test rax, rax"], [867, "jz short loc_44D949"], [868, "mov eax, cs:dword_4E70B4"], [869, "and eax, 10h"], [870, "test eax, eax"], [871, "jz short loc_44D949"], [872, "mov rax, [rbp+var_28]"], [873, "mov esi, [rax+40h]"], [874, "mov rax, [rbp+var_28]"], [875, "mov ecx, [rax+38h]"], [876, "mov rax, [rbp+var_28]"], [877, "mov edx, [rax+3Ch]"], [878, "mov r8d, [rbp+var_44]"], [879, "mov edi, [rbp+var_64]"], [880, "mov eax, [rbp+var_68]"], [881, "push rsi"], [882, "mov esi, [rbp+var_14]"], [883, "push rsi"], [884, "mov esi, [rbp+var_3C]"], [885, "push rsi"], [886, "push rcx"], [887, "push rdx"], [888, "mov edx, [rbp+var_18]"], [889, "push rdx"], [890, "mov r9d, r8d"], [891, "mov r8d, edi"], [892, "mov ecx, eax"], [893, "mov edx, offset aSimRtcnCalbTmr_1"], [894, "mov esi, offset off_4E7040"], [895, "mov edi, 10h"], [896, "mov eax, 0"], [897, "call sub_43A3B9"], [898, "add rsp, 30h"], [899, "mov [rbp+var_20], 0"], [900, "jmp short loc_44D9B4"], [901, "mov eax, [rbp+var_20]"], [902, "movsxd rdx, eax"], [903, "mov rax, rdx"], [904, "shl rax, 2"], [905, "add rax, rdx"], [906, "lea rdx, ds:0[rax*4]"], [907, "add rax, rdx"], [908, "shl rax, 3"], [909, "add rax, 1513980h"], [910, "mov [rbp+var_58], rax"], [911, "mov eax, [rbp+var_20]"], [912, "cmp eax, [rbp+var_68]"], [913, "jz short loc_44D9B0"], [914, "mov rax, [rbp+var_58]"], [915, "mov eax, [rax+20h]"], [916, "test eax, eax"], [917, "jz short loc_44D9B0"], [918, "mov rax, [rbp+var_28]"], [919, "mov eax, [rax+40h]"], [920, "imul eax, [rbp+var_64]"], [921, "mov rdx, [rbp+var_58]"], [922, "mov ebx, [rdx+20h]"], [923, "mov edx, 0"], [924, "div ebx"], [925, "mov edx, eax"], [926, "mov rax, [rbp+var_58]"], [927, "mov [rax+40h], edx"], [928, "add [rbp+var_20], 1"], [929, "cmp [rbp+var_20], 8"], [930, "jle short loc_44D952"], [931, "mov rax, [rbp+var_28]"], [932, "mov eax, [rax+40h]"], [933, "imul eax, [rbp+var_64]"], [934, "mov eax, eax"], [935, "test rax, rax"], [936, "js short loc_44D9D7"], [937, "pxor xmm0, xmm0"], [938, "cvtsi2sd xmm0, rax"], [939, "jmp short loc_44D9F0"], [940, "mov rdx, rax"], [941, "shr rdx, 1"], [942, "and eax, 1"], [943, "or rdx, rax"], [944, "pxor xmm0, xmm0"], [945, "cvtsi2sd xmm0, rdx"], [946, "addsd xmm0, xmm0"], [947, "mov eax, cs:dword_4DE404"], [948, "pxor xmm1, xmm1"], [949, "cvtsi2sd xmm1, eax"], [950, "mulsd xmm0, xmm1"], [951, "movsd xmm1, cs:qword_4B3DE8"], [952, "divsd xmm0, xmm1"], [953, "cvttsd2si eax, xmm0"], [954, "mov cs:dword_4DE408, eax"], [955, "mov eax, cs:dword_4DE408"], [956, "test eax, eax"], [957, "jnz short loc_44DA2C"], [958, "mov cs:dword_4DE408, 1"], [959, "mov rax, [rbp+var_28]"], [960, "mov eax, [rax+40h]"], [961, "mov rbx, [rbp+var_8]"], [962, "leave"], [963, "retn"]], "data_dep": [[6, 5], [7, 6], [10, 5], [11, 10], [12, 5], [13, 12], [16, 8], [16, 5], [17, 16], [18, 17], [19, 18], [20, 17], [20, 19], [21, 17], [22, 20], [22, 21], [23, 22], [24, 23], [25, 24], [26, 25], [27, 26], [28, 4], [28, 27], [29, 28], [30, 25], [31, 30], [32, 31], [33, 25], [34, 33], [35, 34], [36, 35], [39, 25], [40, 38], [40, 39], [41, 25], [42, 40], [42, 41], [43, 42], [44, 43], [45, 25], [46, 45], [46, 40], [47, 4], [47, 46], [48, 47], [49, 4], [50, 49], [53, 4], [54, 53], [55, 54], [57, 54], [57, 56], [59, 54], [60, 59], [61, 54], [62, 61], [62, 60], [64, 63], [64, 62], [65, 64], [66, 52], [67, 65], [67, 66], [67, 57], [68, 62], [68, 21], [68, 67], [68, 39], [69, 25], [70, 68], [70, 69], [71, 25], [72, 71], [72, 74], [72, 40], [72, 77], [72, 70], [73, 25], [74, 72], [74, 73], [75, 25], [76, 4], [77, 75], [77, 76], [78, 5], [78, 8], [79, 78], [81, 4], [82, 81], [84, 83], [85, 84], [86, 85], [87, 86], [87, 84], [88, 84], [89, 88], [89, 87], [90, 89], [91, 90], [92, 91], [93, 4], [94, 93], [95, 94], [97, 94], [97, 96], [99, 94], [100, 99], [101, 94], [102, 100], [102, 101], [104, 103], [104, 102], [105, 104], [107, 97], [107, 105], [107, 106], [108, 25], [109, 108], [109, 107], [111, 110], [112, 111], [114, 113], [115, 114], [116, 115], [117, 32], [118, 25], [119, 74], [119, 40], [119, 118], [119, 77], [119, 109], [119, 70], [120, 5], [120, 8], [121, 4], [122, 3], [123, 117], [124, 119], [125, 120], [126, 121], [132, 122], [134, 133], [134, 5], [134, 8], [135, 134], [136, 25], [137, 77], [137, 109], [137, 136], [137, 70], [137, 74], [137, 40], [138, 137], [139, 138], [140, 92], [141, 109], [141, 40], [141, 77], [141, 70], [141, 140], [141, 74], [142, 4], [142, 141], [143, 142], [146, 145], [147, 146], [149, 148], [150, 149], [151, 150], [153, 25], [154, 40], [154, 153], [154, 77], [154, 109], [154, 70], [154, 74], [155, 154], [157, 156], [158, 4], [159, 5], [159, 8], [160, 132], [160, 3], [161, 152], [162, 158], [163, 157], [164, 159], [170, 160], [171, 25], [173, 171], [177, 176], [178, 177], [180, 179], [181, 180], [182, 181], [183, 32], [184, 25], [185, 40], [185, 74], [185, 184], [185, 77], [185, 70], [186, 5], [186, 8], [187, 4], [188, 3], [189, 183], [190, 185], [191, 186], [192, 187], [198, 188], [199, 4], [200, 199], [203, 25], [204, 109], [204, 40], [204, 77], [204, 70], [204, 203], [204, 74], [205, 204], [206, 205], [207, 25], [208, 70], [208, 218], [208, 74], [208, 109], [208, 207], [208, 40], [208, 77], [208, 211], [209, 208], [209, 77], [209, 211], [209, 165], [209, 21], [209, 102], [209, 70], [209, 193], [209, 127], [209, 218], [209, 74], [209, 109], [209, 40], [209, 76], [209, 88], [210, 25], [211, 210], [211, 209], [212, 25], [213, 211], [213, 212], [214, 25], [215, 109], [215, 211], [215, 214], [216, 215], [216, 213], [217, 25], [218, 216], [218, 217], [219, 25], [220, 109], [220, 219], [220, 77], [220, 211], [220, 70], [220, 40], [220, 218], [220, 74], [221, 220], [222, 221], [223, 25], [224, 223], [224, 234], [224, 70], [224, 218], [224, 74], [224, 227], [224, 109], [224, 40], [224, 232], [224, 77], [224, 211], [225, 77], [225, 211], [225, 165], [225, 21], [225, 102], [225, 234], [225, 224], [225, 70], [225, 40], [225, 193], [225, 127], [225, 218], [225, 74], [225, 227], [225, 109], [225, 76], [225, 232], [225, 88], [225, 209], [226, 25], [227, 225], [227, 226], [228, 25], [229, 228], [229, 227], [230, 227], [230, 229], [230, 225], [231, 25], [232, 230], [232, 231], [233, 25], [234, 233], [235, 25], [236, 109], [236, 232], [236, 77], [236, 211], [236, 235], [236, 234], [236, 70], [236, 227], [236, 40], [236, 239], [236, 218], [236, 74], [237, 218], [237, 74], [237, 21], [237, 109], [237, 230], [237, 76], [237, 232], [237, 88], [237, 209], [237, 77], [237, 234], [237, 211], [237, 165], [237, 102], [237, 70], [237, 227], [237, 40], [237, 236], [237, 239], [237, 193], [237, 127], [238, 25], [239, 237], [239, 238], [240, 25], [241, 239], [241, 240], [242, 241], [242, 4], [243, 242], [244, 25], [245, 244], [245, 77], [245, 234], [245, 211], [245, 70], [245, 227], [245, 40], [245, 239], [245, 218], [245, 74], [245, 109], [245, 232], [247, 25], [248, 70], [248, 227], [248, 40], [248, 239], [248, 251], [248, 218], [248, 74], [248, 253], [248, 109], [248, 232], [248, 77], [248, 234], [248, 211], [248, 258], [248, 247], [249, 248], [250, 25], [251, 250], [252, 25], [253, 252], [254, 25], [255, 253], [255, 254], [256, 253], [256, 255], [256, 237], [257, 25], [258, 256], [258, 257], [260, 259], [261, 260], [262, 25], [263, 70], [263, 227], [263, 40], [263, 239], [263, 251], [263, 218], [263, 74], [263, 253], [263, 109], [263, 262], [263, 232], [263, 77], [263, 234], [263, 211], [263, 258], [266, 5], [266, 8], [266, 265], [267, 266], [269, 65], [269, 57], [269, 105], [269, 216], [269, 97], [270, 4], [271, 270], [272, 271], [274, 271], [274, 273], [276, 271], [277, 276], [278, 271], [279, 277], [279, 278], [281, 279], [281, 280], [282, 281], [283, 269], [284, 283], [284, 274], [284, 282], [285, 284], [285, 279], [285, 256], [286, 25], [287, 286], [287, 285], [289, 288], [290, 289], [292, 291], [293, 292], [294, 293], [295, 25], [296, 258], [296, 70], [296, 227], [296, 40], [296, 239], [296, 251], [296, 218], [296, 74], [296, 253], [296, 109], [296, 295], [296, 232], [296, 287], [296, 77], [296, 234], [296, 211], [298, 4], [299, 5], [299, 8], [300, 132], [300, 198], [300, 170], [300, 3], [301, 296], [302, 298], [303, 297], [304, 299], [310, 300], [311, 25], [312, 70], [312, 227], [312, 40], [312, 239], [312, 251], [312, 218], [312, 74], [312, 253], [312, 109], [312, 232], [312, 287], [312, 77], [312, 234], [312, 211], [312, 311], [312, 258], [315, 314], [317, 316], [318, 317], [320, 315], [321, 319], [321, 320], [322, 321], [323, 322], [325, 324], [326, 325], [328, 327], [329, 328], [330, 329], [332, 315], [333, 331], [333, 332], [334, 333], [335, 5], [335, 8], [336, 334], [337, 335], [344, 25], [345, 258], [345, 227], [345, 348], [345, 40], [345, 239], [345, 251], [345, 218], [345, 74], [345, 77], [345, 253], [345, 109], [345, 232], [345, 234], [345, 211], [345, 70], [345, 344], [346, 258], [346, 227], [346, 348], [346, 338], [346, 40], [346, 239], [346, 251], [346, 218], [346, 74], [346, 77], [346, 319], [346, 253], [346, 109], [346, 232], [346, 234], [346, 211], [346, 345], [346, 70], [346, 256], [347, 25], [348, 346], [348, 347], [350, 349], [351, 350], [353, 352], [354, 353], [355, 354], [356, 5], [356, 8], [357, 4], [358, 356], [359, 357], [365, 25], [366, 211], [366, 70], [366, 258], [366, 74], [366, 227], [366, 348], [366, 40], [366, 239], [366, 251], [366, 218], [366, 77], [366, 253], [366, 109], [366, 232], [366, 365], [366, 234], [367, 366], [367, 315], [368, 367], [369, 25], [370, 40], [370, 239], [370, 373], [370, 251], [370, 218], [370, 74], [370, 77], [370, 253], [370, 109], [370, 232], [370, 234], [370, 211], [370, 70], [370, 258], [370, 369], [370, 227], [370, 348], [371, 232], [371, 234], [371, 211], [371, 70], [371, 258], [371, 346], [371, 227], [371, 348], [371, 40], [371, 370], [371, 239], [371, 360], [371, 373], [371, 251], [371, 218], [371, 74], [371, 77], [371, 253], [371, 109], [372, 25], [373, 371], [373, 372], [375, 374], [376, 375], [378, 377], [379, 378], [380, 379], [381, 25], [382, 70], [382, 258], [382, 74], [382, 381], [382, 227], [382, 348], [382, 40], [382, 239], [382, 373], [382, 251], [382, 218], [382, 77], [382, 253], [382, 109], [382, 232], [382, 234], [382, 211], [383, 25], [384, 227], [384, 348], [384, 40], [384, 383], [384, 239], [384, 373], [384, 251], [384, 218], [384, 74], [384, 77], [384, 253], [384, 109], [384, 232], [384, 234], [384, 211], [384, 70], [384, 258], [385, 315], [386, 382], [387, 385], [388, 384], [394, 25], [395, 315], [396, 394], [396, 395], [397, 25], [398, 396], [398, 397], [399, 25], [400, 399], [400, 398], [401, 25], [402, 401], [403, 25], [404, 70], [404, 402], [404, 403], [405, 25], [406, 404], [406, 405], [407, 25], [408, 407], [408, 406], [409, 408], [410, 409], [412, 105], [412, 216], [412, 65], [412, 97], [412, 57], [413, 25], [414, 413], [414, 412], [415, 25], [417, 416], [417, 415], [418, 25], [419, 40], [419, 406], [419, 239], [419, 396], [419, 373], [419, 418], [419, 251], [419, 218], [419, 77], [419, 417], [419, 253], [419, 109], [419, 232], [419, 234], [419, 211], [419, 70], [419, 400], [419, 402], [419, 258], [419, 74], [419, 414], [419, 227], [419, 348], [421, 25], [422, 218], [422, 77], [422, 253], [422, 109], [422, 232], [422, 421], [422, 234], [422, 211], [422, 70], [422, 433], [422, 258], [422, 74], [422, 227], [422, 348], [422, 40], [422, 239], [422, 428], [422, 251], [423, 315], [424, 422], [424, 423], [425, 424], [426, 25], [427, 315], [428, 427], [428, 426], [429, 25], [430, 428], [430, 429], [431, 427], [431, 428], [431, 430], [432, 25], [433, 432], [433, 431], [434, 425], [435, 434], [436, 25], [437, 251], [437, 218], [437, 74], [437, 450], [437, 227], [437, 348], [437, 109], [437, 40], [437, 239], [437, 428], [437, 77], [437, 440], [437, 211], [437, 253], [437, 232], [437, 454], [437, 444], [437, 234], [437, 70], [437, 433], [437, 446], [437, 436], [437, 258], [438, 450], [438, 77], [438, 440], [438, 253], [438, 109], [438, 232], [438, 454], [438, 431], [438, 444], [438, 234], [438, 211], [438, 70], [438, 433], [438, 446], [438, 258], [438, 74], [438, 437], [438, 227], [438, 348], [438, 40], [438, 239], [438, 428], [438, 251], [438, 218], [439, 25], [440, 439], [440, 438], [441, 25], [442, 428], [442, 440], [442, 441], [443, 25], [444, 443], [444, 442], [445, 25], [446, 445], [448, 105], [448, 216], [448, 97], [448, 65], [448, 57], [449, 25], [450, 449], [450, 448], [451, 25], [452, 451], [452, 70], [452, 450], [453, 25], [454, 453], [454, 452], [455, 25], [456, 455], [456, 454], [457, 456], [458, 457], [459, 25], [460, 232], [460, 454], [460, 444], [460, 234], [460, 70], [460, 433], [460, 446], [460, 258], [460, 74], [460, 227], [460, 348], [460, 459], [460, 40], [460, 239], [460, 428], [460, 251], [460, 218], [460, 450], [460, 77], [460, 440], [460, 211], [460, 253], [460, 109], [461, 425], [462, 461], [463, 462], [465, 462], [465, 464], [467, 462], [468, 467], [469, 462], [470, 469], [470, 468], [472, 471], [472, 470], [473, 472], [475, 474], [475, 473], [475, 465], [476, 460], [476, 475], [477, 25], [478, 476], [478, 477], [480, 479], [481, 480], [483, 482], [484, 483], [485, 484], [486, 25], [487, 486], [487, 77], [487, 440], [487, 211], [487, 253], [487, 232], [487, 454], [487, 444], [487, 234], [487, 70], [487, 433], [487, 446], [487, 478], [487, 258], [487, 218], [487, 74], [487, 450], [487, 227], [487, 348], [487, 109], [487, 40], [487, 239], [487, 428], [487, 251], [488, 425], [489, 487], [490, 488], [496, 25], [497, 258], [497, 218], [497, 74], [497, 227], [497, 348], [497, 109], [497, 40], [497, 239], [497, 428], [497, 251], [497, 496], [497, 450], [497, 77], [497, 440], [497, 211], [497, 253], [497, 232], [497, 454], [497, 444], [497, 234], [497, 70], [497, 433], [497, 446], [497, 478], [500, 8], [500, 5], [501, 500], [502, 425], [503, 502], [504, 25], [505, 504], [505, 232], [505, 428], [505, 77], [505, 211], [505, 253], [505, 258], [505, 234], [505, 70], [505, 348], [505, 433], [505, 40], [505, 239], [505, 251], [505, 218], [505, 74], [505, 227], [505, 109], [506, 25], [507, 428], [507, 506], [507, 77], [507, 234], [507, 211], [507, 433], [507, 258], [507, 70], [507, 227], [507, 348], [507, 40], [507, 239], [507, 251], [507, 218], [507, 74], [507, 253], [507, 109], [507, 232], [508, 507], [508, 505], [509, 508], [510, 509], [511, 510], [513, 510], [513, 512], [515, 510], [516, 515], [517, 510], [518, 516], [518, 517], [520, 519], [520, 518], [521, 520], [522, 425], [523, 522], [524, 523], [526, 523], [526, 525], [528, 523], [529, 528], [530, 523], [531, 529], [531, 530], [533, 531], [533, 532], [534, 533], [535, 521], [535, 513], [536, 526], [536, 535], [536, 534], [538, 537], [538, 536], [539, 523], [539, 538], [539, 530], [541, 539], [542, 540], [542, 541], [543, 542], [544, 25], [545, 258], [545, 70], [545, 227], [545, 348], [545, 40], [545, 547], [545, 239], [545, 428], [545, 251], [545, 218], [545, 74], [545, 253], [545, 109], [545, 232], [545, 77], [545, 234], [545, 211], [545, 433], [545, 544], [546, 25], [547, 546], [547, 545], [549, 548], [549, 543], [549, 499], [550, 549], [551, 25], [552, 315], [553, 551], [553, 552], [554, 25], [555, 433], [555, 554], [555, 553], [556, 553], [556, 555], [556, 552], [557, 25], [558, 557], [558, 556], [560, 57], [560, 105], [560, 216], [560, 97], [560, 538], [560, 65], [561, 25], [562, 561], [562, 560], [563, 25], [564, 562], [564, 563], [564, 70], [565, 25], [566, 564], [566, 565], [567, 25], [568, 566], [568, 567], [569, 564], [569, 566], [569, 568], [570, 25], [571, 570], [571, 569], [573, 572], [574, 573], [576, 575], [577, 576], [578, 577], [579, 25], [580, 40], [580, 547], [580, 239], [580, 579], [580, 428], [580, 251], [580, 218], [580, 74], [580, 558], [580, 571], [580, 253], [580, 109], [580, 232], [580, 562], [580, 77], [580, 234], [580, 211], [580, 433], [580, 553], [580, 566], [580, 258], [580, 70], [580, 227], [580, 348], [581, 499], [581, 543], [582, 580], [583, 581], [589, 25], [590, 553], [590, 232], [590, 562], [590, 234], [590, 211], [590, 70], [590, 433], [590, 589], [590, 566], [590, 258], [590, 558], [590, 227], [590, 348], [590, 40], [590, 547], [590, 239], [590, 428], [590, 251], [590, 218], [590, 74], [590, 77], [590, 571], [590, 253], [590, 109], [593, 57], [593, 105], [593, 216], [593, 97], [593, 538], [593, 65], [594, 593], [595, 543], [595, 499], [596, 595], [597, 425], [598, 597], [599, 25], [600, 227], [600, 348], [600, 40], [600, 547], [600, 239], [600, 428], [600, 251], [600, 218], [600, 74], [600, 77], [600, 253], [600, 109], [600, 232], [600, 234], [600, 211], [600, 70], [600, 433], [600, 599], [600, 258], [601, 594], [602, 601], [603, 600], [603, 602], [604, 425], [605, 604], [606, 605], [608, 605], [608, 607], [610, 605], [611, 610], [612, 605], [613, 612], [613, 611], [615, 614], [615, 613], [616, 615], [617, 603], [617, 616], [617, 608], [618, 605], [618, 617], [618, 612], [619, 618], [621, 620], [622, 621], [623, 425], [624, 623], [625, 25], [626, 234], [626, 211], [626, 70], [626, 433], [626, 258], [626, 227], [626, 348], [626, 40], [626, 547], [626, 239], [626, 625], [626, 428], [626, 251], [626, 218], [626, 74], [626, 77], [626, 253], [626, 109], [626, 232], [627, 594], [628, 627], [629, 626], [629, 628], [631, 425], [633, 630], [634, 631], [635, 634], [636, 635], [638, 637], [638, 635], [640, 635], [641, 640], [642, 635], [643, 641], [643, 642], [645, 643], [645, 644], [646, 645], [647, 646], [647, 629], [647, 638], [648, 635], [648, 647], [648, 642], [649, 648], [651, 650], [652, 651], [653, 249], [654, 653], [655, 25], [656, 234], [656, 211], [656, 70], [656, 433], [656, 655], [656, 258], [656, 227], [656, 348], [656, 40], [656, 547], [656, 239], [656, 428], [656, 251], [656, 218], [656, 74], [656, 77], [656, 253], [656, 109], [656, 232], [657, 594], [658, 657], [659, 656], [659, 658], [660, 4], [661, 660], [662, 661], [664, 661], [664, 663], [666, 661], [667, 666], [668, 661], [669, 668], [669, 667], [671, 670], [671, 669], [672, 671], [673, 672], [673, 664], [673, 659], [674, 668], [674, 661], [674, 673], [675, 674], [676, 25], [677, 227], [677, 348], [677, 40], [677, 547], [677, 239], [677, 428], [677, 251], [677, 218], [677, 74], [677, 77], [677, 253], [677, 109], [677, 232], [677, 676], [677, 234], [677, 211], [677, 70], [677, 433], [677, 258], [678, 677], [679, 678], [680, 679], [680, 677], [681, 680], [682, 681], [682, 675], [683, 682], [684, 25], [685, 428], [685, 251], [685, 218], [685, 74], [685, 77], [685, 253], [685, 109], [685, 684], [685, 232], [685, 234], [685, 211], [685, 70], [685, 433], [685, 258], [685, 227], [685, 348], [685, 40], [685, 547], [685, 239], [686, 685], [687, 686], [688, 685], [688, 687], [689, 688], [690, 689], [692, 25], [693, 227], [693, 348], [693, 40], [693, 547], [693, 239], [693, 428], [693, 251], [693, 218], [693, 74], [693, 77], [693, 692], [693, 253], [693, 109], [693, 232], [693, 234], [693, 211], [693, 70], [693, 433], [693, 258], [694, 693], [695, 694], [696, 695], [697, 696], [698, 693], [699, 698], [700, 697], [701, 700], [701, 699], [702, 675], [702, 701], [703, 702], [704, 25], [705, 234], [705, 211], [705, 70], [705, 433], [705, 258], [705, 227], [705, 348], [705, 40], [705, 547], [705, 239], [705, 428], [705, 251], [705, 218], [705, 74], [705, 77], [705, 253], [705, 109], [705, 704], [705, 232], [706, 705], [707, 706], [708, 707], [709, 708], [710, 705], [711, 710], [712, 709], [713, 712], [713, 711], [714, 713], [715, 25], [716, 690], [716, 714], [716, 675], [717, 715], [717, 716], [718, 25], [719, 718], [719, 717], [720, 25], [721, 719], [721, 720], [722, 25], [723, 594], [724, 723], [724, 722], [726, 725], [727, 726], [729, 728], [730, 729], [731, 730], [732, 25], [733, 547], [733, 239], [733, 251], [733, 218], [733, 74], [733, 227], [733, 109], [733, 724], [733, 40], [733, 232], [733, 428], [733, 77], [733, 211], [733, 253], [733, 717], [733, 258], [733, 732], [733, 234], [733, 70], [733, 721], [733, 348], [733, 433], [735, 734], [736, 735], [740, 4], [741, 5], [741, 8], [742, 3], [742, 170], [742, 198], [742, 132], [743, 733], [744, 543], [744, 499], [745, 744], [746, 249], [747, 746], [748, 740], [749, 741], [750, 739], [750, 737], [756, 742], [757, 25], [758, 258], [758, 234], [758, 70], [758, 721], [758, 348], [758, 433], [758, 547], [758, 251], [758, 218], [758, 74], [758, 227], [758, 757], [758, 109], [758, 724], [758, 40], [758, 239], [758, 232], [758, 428], [758, 77], [758, 211], [758, 253], [758, 717], [760, 25], [761, 594], [762, 761], [762, 760], [763, 425], [764, 763], [765, 25], [766, 40], [766, 547], [766, 239], [766, 251], [766, 218], [766, 74], [766, 770], [766, 253], [766, 109], [766, 232], [766, 428], [766, 77], [766, 234], [766, 211], [766, 433], [766, 762], [766, 258], [766, 765], [766, 70], [766, 227], [766, 348], [767, 4], [767, 766], [768, 767], [769, 25], [770, 769], [770, 768], [772, 25], [773, 77], [773, 211], [773, 253], [773, 762], [773, 234], [773, 70], [773, 433], [773, 547], [773, 258], [773, 251], [773, 218], [773, 74], [773, 227], [773, 348], [773, 109], [773, 40], [773, 239], [773, 772], [773, 232], [773, 428], [775, 773], [775, 774], [776, 25], [777, 433], [777, 776], [777, 258], [777, 218], [777, 74], [777, 227], [777, 348], [777, 109], [777, 40], [777, 547], [777, 239], [777, 428], [777, 251], [777, 77], [777, 211], [777, 253], [777, 232], [777, 762], [777, 234], [777, 70], [778, 777], [779, 778], [780, 779], [782, 779], [782, 781], [784, 779], [785, 784], [786, 779], [787, 786], [787, 785], [789, 787], [789, 788], [790, 789], [791, 775], [791, 790], [791, 782], [792, 425], [793, 792], [794, 793], [796, 793], [796, 795], [798, 793], [799, 798], [800, 793], [801, 799], [801, 800], [803, 802], [803, 801], [804, 803], [805, 796], [805, 791], [805, 804], [806, 632], [806, 545], [806, 787], [806, 643], [806, 613], [806, 801], [806, 805], [806, 431], [807, 25], [808, 806], [808, 807], [809, 25], [810, 70], [810, 348], [810, 433], [810, 809], [810, 40], [810, 547], [810, 239], [810, 251], [810, 218], [810, 74], [810, 227], [810, 770], [810, 109], [810, 232], [810, 428], [810, 77], [810, 211], [810, 253], [810, 808], [810, 762], [810, 258], [810, 234], [811, 25], [812, 40], [812, 547], [812, 239], [812, 811], [812, 251], [812, 218], [812, 74], [812, 770], [812, 253], [812, 109], [812, 232], [812, 428], [812, 77], [812, 234], [812, 211], [812, 433], [812, 808], [812, 762], [812, 258], [812, 70], [812, 227], [812, 348], [813, 810], [814, 812], [814, 813], [815, 814], [816, 815], [817, 816], [820, 815], [821, 820], [823, 818], [823, 822], [823, 815], [824, 823], [825, 824], [826, 25], [827, 825], [827, 826], [828, 25], [829, 770], [829, 827], [829, 828], [829, 808], [831, 829], [831, 830], [832, 25], [833, 827], [833, 832], [834, 833], [835, 834], [836, 835], [838, 835], [838, 837], [840, 835], [841, 840], [842, 835], [843, 842], [843, 841], [845, 844], [845, 843], [846, 845], [847, 838], [847, 831], [847, 846], [849, 847], [849, 848], [850, 825], [850, 849], [850, 843], [851, 25], [852, 851], [852, 850], [853, 25], [854, 808], [854, 853], [854, 770], [854, 852], [855, 854], [856, 855], [857, 25], [858, 857], [859, 25], [860, 70], [860, 227], [860, 348], [860, 40], [860, 547], [860, 239], [860, 428], [860, 251], [860, 218], [860, 74], [860, 859], [860, 770], [860, 253], [860, 109], [860, 858], [860, 232], [860, 762], [860, 827], [860, 77], [860, 234], [860, 211], [860, 852], [860, 433], [860, 808], [860, 258], [861, 860], [862, 861], [863, 25], [864, 863], [866, 865], [867, 866], [869, 868], [870, 869], [871, 870], [872, 25], [873, 852], [873, 70], [873, 227], [873, 348], [873, 40], [873, 547], [873, 239], [873, 251], [873, 218], [873, 74], [873, 770], [873, 253], [873, 109], [873, 858], [873, 232], [873, 428], [873, 827], [873, 77], [873, 872], [873, 234], [873, 211], [873, 433], [873, 864], [873, 808], [873, 762], [873, 258], [874, 25], [875, 232], [875, 762], [875, 827], [875, 234], [875, 211], [875, 852], [875, 70], [875, 433], [875, 874], [875, 864], [875, 808], [875, 258], [875, 227], [875, 348], [875, 40], [875, 547], [875, 239], [875, 428], [875, 251], [875, 218], [875, 74], [875, 77], [875, 770], [875, 253], [875, 109], [875, 858], [876, 25], [877, 808], [877, 258], [877, 876], [877, 70], [877, 227], [877, 348], [877, 40], [877, 547], [877, 239], [877, 428], [877, 251], [877, 218], [877, 74], [877, 770], [877, 253], [877, 109], [877, 858], [877, 232], [877, 762], [877, 827], [877, 77], [877, 234], [877, 211], [877, 852], [877, 433], [877, 864], [878, 425], [879, 4], [880, 5], [880, 8], [881, 873], [882, 499], [882, 543], [883, 882], [884, 249], [885, 884], [886, 875], [887, 877], [888, 818], [888, 822], [888, 815], [889, 888], [890, 878], [891, 879], [892, 880], [898, 198], [898, 132], [898, 170], [898, 3], [901, 928], [901, 899], [902, 901], [903, 902], [904, 903], [905, 902], [905, 904], [906, 902], [907, 905], [907, 906], [908, 907], [909, 908], [910, 909], [911, 899], [911, 928], [912, 5], [912, 8], [912, 911], [913, 912], [914, 910], [915, 547], [915, 239], [915, 428], [915, 251], [915, 218], [915, 74], [915, 77], [915, 914], [915, 770], [915, 253], [915, 109], [915, 858], [915, 232], [915, 762], [915, 827], [915, 234], [915, 211], [915, 852], [915, 70], [915, 433], [915, 927], [915, 864], [915, 808], [915, 258], [915, 227], [915, 348], [915, 40], [916, 915], [917, 916], [918, 25], [919, 232], [919, 762], [919, 827], [919, 918], [919, 234], [919, 211], [919, 852], [919, 70], [919, 433], [919, 927], [919, 864], [919, 808], [919, 258], [919, 227], [919, 348], [919, 40], [919, 547], [919, 239], [919, 428], [919, 251], [919, 218], [919, 74], [919, 77], [919, 770], [919, 253], [919, 109], [919, 858], [920, 4], [920, 919], [921, 910], [922, 232], [922, 762], [922, 827], [922, 234], [922, 211], [922, 852], [922, 70], [922, 433], [922, 864], [922, 808], [922, 258], [922, 921], [922, 227], [922, 348], [922, 40], [922, 547], [922, 239], [922, 428], [922, 251], [922, 218], [922, 74], [922, 77], [922, 770], [922, 253], [922, 927], [922, 109], [922, 858], [924, 922], [925, 920], [926, 910], [927, 925], [927, 926], [928, 928], [928, 899], [929, 899], [929, 928], [930, 929], [931, 25], [932, 864], [932, 258], [932, 74], [932, 931], [932, 227], [932, 348], [932, 858], [932, 40], [932, 547], [932, 239], [932, 428], [932, 827], [932, 251], [932, 218], [932, 77], [932, 770], [932, 253], [932, 927], [932, 109], [932, 808], [932, 232], [932, 762], [932, 234], [932, 211], [932, 852], [932, 70], [932, 433], [933, 4], [933, 932], [934, 933], [935, 934], [936, 935], [938, 935], [938, 937], [940, 935], [941, 940], [942, 935], [943, 942], [943, 941], [945, 944], [945, 943], [946, 945], [949, 947], [949, 948], [950, 949], [950, 938], [950, 946], [952, 951], [952, 950], [953, 947], [953, 952], [954, 953], [955, 954], [956, 955], [957, 956], [959, 25], [960, 433], [960, 864], [960, 808], [960, 258], [960, 74], [960, 227], [960, 348], [960, 858], [960, 40], [960, 547], [960, 239], [960, 428], [960, 251], [960, 218], [960, 77], [960, 770], [960, 253], [960, 927], [960, 109], [960, 959], [960, 232], [960, 762], [960, 827], [960, 234], [960, 211], [960, 852], [960, 70], [963, 758], [963, 263], [963, 419], [963, 497], [963, 245], [963, 201], [963, 960], [963, 312], [963, 14], [963, 590]]}
|
sl_status_t sl_btmesh_node_init_provisioning_records() {
struct sl_btmesh_packet *cmd = (struct sl_btmesh_packet *)sl_btmesh_cmd_msg;
struct sl_btmesh_packet *rsp = (struct sl_btmesh_packet *)sl_btmesh_rsp_msg;
cmd->header=sl_btmesh_cmd_node_init_provisioning_records_id+(((0)&0xff)<<8)+(((0)&0x700)>>8);
sl_btmesh_host_handle_command();
return rsp->data.rsp_node_init_provisioning_records.result;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B1F6", "function_addr": 4239862, "binary_name": "d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov rax, cs:off_43E280"], [4, "mov [rbp+var_8], rax"], [5, "mov rax, cs:off_43E288"], [6, "mov [rbp+var_10], rax"], [7, "mov rax, [rbp+var_8]"], [8, "mov dword ptr [rax], 26140028h"], [9, "mov eax, 0"], [10, "call sub_40A2AC"], [11, "mov rax, [rbp+var_10]"], [12, "movzx eax, word ptr [rax+4]"], [13, "movzx eax, ax"], [14, "leave"], [15, "retn"]], "data_dep": [[4, 3], [6, 5], [7, 4], [8, 7], [11, 6], [12, 11], [12, 8], [13, 12], [15, 13]]}
|
int sysfs_is_idlestate_disabled(unsigned int cpu,
unsigned int idlestate)
{
if (sysfs_get_idlestate_count(cpu) <= idlestate)
return -1;
if (!sysfs_idlestate_file_exists(cpu, idlestate,
idlestate_value_files[IDLESTATE_DISABLE]))
return -2;
return sysfs_idlestate_get_one_value(cpu, idlestate, IDLESTATE_DISABLE);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_404459", "function_addr": 4211801, "binary_name": "98f33d596ee72dd128aaca33f1dfd87c1dabdef4149e767cb3cce1896d9876c3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov [rbp+var_8], esi"], [5, "mov eax, [rbp+var_4]"], [6, "mov edi, eax"], [7, "call sub_404630"], [8, "cmp [rbp+var_8], eax"], [9, "jb short loc_40447D"], [10, "mov eax, 0FFFFFFFFh"], [11, "jmp short locret_4044B2"], [12, "mov rdx, cs:off_414400"], [13, "mov ecx, [rbp+var_8]"], [14, "mov eax, [rbp+var_4]"], [15, "mov esi, ecx"], [16, "mov edi, eax"], [17, "call sub_40408F"], [18, "test eax, eax"], [19, "jnz short loc_40449E"], [20, "mov eax, 0FFFFFFFEh"], [21, "jmp short locret_4044B2"], [22, "mov ecx, [rbp+var_8]"], [23, "mov eax, [rbp+var_4]"], [24, "mov edx, 4"], [25, "mov esi, ecx"], [26, "mov edi, eax"], [27, "call sub_4042D0"], [28, "leave"], [29, "retn"]], "data_dep": [[5, 3], [6, 5], [8, 4], [8, 7], [9, 8], [13, 4], [14, 3], [15, 13], [16, 14], [18, 17], [19, 18], [22, 4], [23, 3], [25, 22], [26, 23], [29, 27], [29, 10], [29, 20]]}
|
void btstack_memory_avdtp_connection_free(avdtp_connection_t *avdtp_connection){
free(avdtp_connection);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4050AC", "function_addr": 4214956, "binary_name": "1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+ptr], rdi"], [4, "mov rax, [rbp+ptr]"], [5, "mov rdi, rax"], [6, "call _free"], [7, "nop"], [8, "leave"], [9, "retn"]], "data_dep": [[4, 3], [5, 4], [9, 6]]}
|
static void printOperand(MCInst *MI, unsigned OpNo, SStream *O)
{
int opsize = 0;
MCOperand *Op = MCInst_getOperand(MI, OpNo);
if (MCOperand_isReg(Op)) {
unsigned int reg = MCOperand_getReg(Op);
printRegName(O, reg);
if (MI->csh->detail) {
if (MI->csh->doing_mem) {
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].mem.base = reg;
} else {
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].type = X86_OP_REG;
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].reg = reg;
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].size = MI->csh->regsize_map[reg];
MI->flat_insn->detail->x86.op_count++;
}
}
} else if (MCOperand_isImm(Op)) {
// Print X86 immediates as signed values.
int64_t imm = MCOperand_getImm(Op);
switch(MCInst_getOpcode(MI)) {
default:
break;
case X86_AAD8i8:
case X86_AAM8i8:
case X86_ADC8i8:
case X86_ADD8i8:
case X86_AND8i8:
case X86_CMP8i8:
case X86_OR8i8:
case X86_SBB8i8:
case X86_SUB8i8:
case X86_TEST8i8:
case X86_XOR8i8:
case X86_ROL8ri:
case X86_ADC8ri:
case X86_ADD8ri:
case X86_ADD8ri8:
case X86_AND8ri:
case X86_AND8ri8:
case X86_CMP8ri:
case X86_MOV8ri:
case X86_MOV8ri_alt:
case X86_OR8ri:
case X86_OR8ri8:
case X86_RCL8ri:
case X86_RCR8ri:
case X86_ROR8ri:
case X86_SAL8ri:
case X86_SAR8ri:
case X86_SBB8ri:
case X86_SHL8ri:
case X86_SHR8ri:
case X86_SUB8ri:
case X86_SUB8ri8:
case X86_TEST8ri:
case X86_TEST8ri_NOREX:
case X86_TEST8ri_alt:
case X86_XOR8ri:
case X86_XOR8ri8:
case X86_OUT8ir:
case X86_ADC8mi:
case X86_ADD8mi:
case X86_AND8mi:
case X86_CMP8mi:
case X86_LOCK_ADD8mi:
case X86_LOCK_AND8mi:
case X86_LOCK_OR8mi:
case X86_LOCK_SUB8mi:
case X86_LOCK_XOR8mi:
case X86_MOV8mi:
case X86_OR8mi:
case X86_RCL8mi:
case X86_RCR8mi:
case X86_ROL8mi:
case X86_ROR8mi:
case X86_SAL8mi:
case X86_SAR8mi:
case X86_SBB8mi:
case X86_SHL8mi:
case X86_SHR8mi:
case X86_SUB8mi:
case X86_TEST8mi:
case X86_TEST8mi_alt:
case X86_XOR8mi:
case X86_PUSH64i8:
case X86_CMP32ri8:
case X86_CMP64ri8:
imm = imm & 0xff;
opsize = 1; // immediate of 1 byte
break;
}
switch(MI->flat_insn->id) {
default:
if (imm >= 0) {
if (imm > HEX_THRESHOLD)
SStream_concat(O, "$0x%"PRIx64, imm);
else
SStream_concat(O, "$%"PRIu64, imm);
} else {
if (imm < -HEX_THRESHOLD)
SStream_concat(O, "$-0x%"PRIx64, -imm);
else
SStream_concat(O, "$-%"PRIu64, -imm);
}
break;
case X86_INS_INT:
// do not print number in negative form
imm = imm & 0xff;
if (imm >= 0 && imm <= HEX_THRESHOLD)
SStream_concat(O, "$%u", imm);
else {
SStream_concat(O, "$0x%x", imm);
}
break;
case X86_INS_LCALL:
case X86_INS_LJMP:
// always print address in positive form
if (OpNo == 1) { // selector is ptr16
imm = imm & 0xffff;
opsize = 2;
}
SStream_concat(O, "$0x%"PRIx64, imm);
break;
case X86_INS_AND:
case X86_INS_OR:
case X86_INS_XOR:
// do not print number in negative form
if (imm >= 0 && imm <= HEX_THRESHOLD)
SStream_concat(O, "$%u", imm);
else {
imm = arch_masks[MI->op1_size? MI->op1_size : MI->imm_size] & imm;
SStream_concat(O, "$0x%"PRIx64, imm);
}
break;
case X86_INS_RET:
// RET imm16
if (imm >= 0 && imm <= HEX_THRESHOLD)
SStream_concat(O, "$%u", imm);
else {
imm = 0xffff & imm;
SStream_concat(O, "$0x%x", imm);
}
break;
}
if (MI->csh->detail) {
if (MI->csh->doing_mem) {
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].type = X86_OP_MEM;
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].mem.disp = imm;
} else {
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].type = X86_OP_IMM;
MI->has_imm = true;
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].imm = imm;
if (opsize > 0)
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].size = opsize;
else if (MI->op1_size > 0)
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].size = MI->op1_size;
else
MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].size = MI->imm_size;
MI->flat_insn->detail->x86.op_count++;
}
}
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4F335C", "function_addr": 5190492, "binary_name": "23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_2C], esi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_4], 0"], [7, "mov edx, [rbp+var_2C]"], [8, "mov rax, [rbp+var_28]"], [9, "mov esi, edx"], [10, "mov rdi, rax"], [11, "call sub_4050EA"], [12, "mov [rbp+var_18], rax"], [13, "mov rax, [rbp+var_18]"], [14, "mov rdi, rax"], [15, "call sub_4051A8"], [16, "test al, al"], [17, "jz loc_4F3543"], [18, "mov rax, [rbp+var_18]"], [19, "mov rdi, rax"], [20, "call sub_4051ED"], [21, "mov [rbp+var_1C], eax"], [22, "mov edx, [rbp+var_1C]"], [23, "mov rax, [rbp+var_38]"], [24, "mov esi, edx"], [25, "mov rdi, rax"], [26, "call sub_4F6CD1"], [27, "mov rax, [rbp+var_28]"], [28, "mov rax, [rax+320h]"], [29, "mov eax, [rax+68h]"], [30, "test eax, eax"], [31, "jz loc_4F3D8F"], [32, "mov rax, [rbp+var_28]"], [33, "mov rax, [rax+320h]"], [34, "movzx eax, byte ptr [rax+70h]"], [35, "test al, al"], [36, "jz short loc_4F3434"], [37, "mov rax, [rbp+var_28]"], [38, "mov rax, [rax+310h]"], [39, "mov rcx, [rax+0E8h]"], [40, "mov rax, [rbp+var_28]"], [41, "mov rax, [rax+310h]"], [42, "mov rax, [rax+0E8h]"], [43, "movzx eax, byte ptr [rax+5Ch]"], [44, "movzx eax, al"], [45, "movsxd rdx, eax"], [46, "mov rax, rdx"], [47, "add rax, rax"], [48, "add rax, rdx"], [49, "shl rax, 4"], [50, "add rax, rcx"], [51, "lea rdx, [rax+6Ch]"], [52, "mov eax, [rbp+var_1C]"], [53, "mov [rdx], eax"], [54, "jmp loc_4F3D8F"], [55, "mov rax, [rbp+var_28]"], [56, "mov rax, [rax+310h]"], [57, "mov rcx, [rax+0E8h]"], [58, "mov rax, [rbp+var_28]"], [59, "mov rax, [rax+310h]"], [60, "mov rax, [rax+0E8h]"], [61, "movzx eax, byte ptr [rax+5Ch]"], [62, "movzx eax, al"], [63, "movsxd rdx, eax"], [64, "mov rax, rdx"], [65, "add rax, rax"], [66, "add rax, rdx"], [67, "shl rax, 4"], [68, "add rax, rcx"], [69, "add rax, 60h "], [70, "mov dword ptr [rax], 1"], [71, "mov rax, [rbp+var_28]"], [72, "mov rax, [rax+310h]"], [73, "mov rcx, [rax+0E8h]"], [74, "mov rax, [rbp+var_28]"], [75, "mov rax, [rax+310h]"], [76, "mov rax, [rax+0E8h]"], [77, "movzx eax, byte ptr [rax+5Ch]"], [78, "movzx eax, al"], [79, "movsxd rdx, eax"], [80, "mov rax, rdx"], [81, "add rax, rax"], [82, "add rax, rdx"], [83, "shl rax, 4"], [84, "add rax, rcx"], [85, "lea rdx, [rax+68h]"], [86, "mov eax, [rbp+var_1C]"], [87, "mov [rdx], eax"], [88, "mov rax, [rbp+var_28]"], [89, "mov rax, [rax+320h]"], [90, "mov rdx, [rax+0A8h]"], [91, "mov eax, [rbp+var_1C]"], [92, "add rdx, rax"], [93, "mov rax, [rbp+var_28]"], [94, "mov rax, [rax+310h]"], [95, "mov rsi, [rax+0E8h]"], [96, "mov rax, [rbp+var_28]"], [97, "mov rax, [rax+310h]"], [98, "mov rax, [rax+0E8h]"], [99, "movzx eax, byte ptr [rax+5Ch]"], [100, "movzx eax, al"], [101, "movzx edx, byte ptr [rdx]"], [102, "movsxd rcx, eax"], [103, "mov rax, rcx"], [104, "add rax, rax"], [105, "add rax, rcx"], [106, "shl rax, 4"], [107, "add rax, rsi"], [108, "sub rax, 0FFFFFFFFFFFFFF80h"], [109, "mov [rax], dl"], [110, "mov rax, [rbp+var_28]"], [111, "mov rax, [rax+310h]"], [112, "mov rax, [rax+0E8h]"], [113, "movzx edx, byte ptr [rax+5Ch]"], [114, "add edx, 1"], [115, "mov [rax+5Ch], dl"], [116, "jmp loc_4F3D8F"], [117, "mov rax, [rbp+var_18]"], [118, "mov rdi, rax"], [119, "call sub_4051BF"], [120, "test al, al"], [121, "jz loc_4F3D8F"], [122, "mov rax, [rbp+var_18]"], [123, "mov rdi, rax"], [124, "call sub_405216"], [125, "mov [rbp+var_10], rax"], [126, "mov rax, [rbp+var_28]"], [127, "mov rdi, rax"], [128, "call sub_4050C9"], [129, "cmp eax, 1867h"], [130, "ja loc_4F38A0"], [131, "cmp eax, 1866h"], [132, "jnb loc_4F388F"], [133, "cmp eax, 1864h"], [134, "ja loc_4F38A0"], [135, "cmp eax, 1863h"], [136, "jnb loc_4F388F"], [137, "cmp eax, 0B59h"], [138, "ja loc_4F38A0"], [139, "cmp eax, 0B54h"], [140, "jnb loc_4F388F"], [141, "cmp eax, 0AF1h"], [142, "ja loc_4F38A0"], [143, "cmp eax, 0AF0h"], [144, "jnb loc_4F388F"], [145, "cmp eax, 0AEEh"], [146, "ja loc_4F38A0"], [147, "cmp eax, 0AEDh"], [148, "jnb loc_4F388F"], [149, "cmp eax, 0A74h"], [150, "ja loc_4F38A0"], [151, "cmp eax, 0A49h"], [152, "jnb loc_4F372C"], [153, "cmp eax, 9EDh"], [154, "ja loc_4F38A0"], [155, "cmp eax, 9B1h"], [156, "jnb loc_4F375B"], [157, "cmp eax, 9AEh"], [158, "ja loc_4F38A0"], [159, "cmp eax, 97Eh"], [160, "jnb loc_4F378A"], [161, "cmp eax, 969h"], [162, "jz loc_4F388F"], [163, "cmp eax, 969h"], [164, "ja loc_4F38A0"], [165, "cmp eax, 966h"], [166, "jz loc_4F388F"], [167, "cmp eax, 966h"], [168, "ja loc_4F38A0"], [169, "cmp eax, 928h"], [170, "ja loc_4F38A0"], [171, "cmp eax, 905h"], [172, "jnb loc_4F37B9"], [173, "cmp eax, 8D6h"], [174, "jz loc_4F388F"], [175, "cmp eax, 8D6h"], [176, "ja loc_4F38A0"], [177, "cmp eax, 76Ah"], [178, "ja loc_4F38A0"], [179, "cmp eax, 75Ah"], [180, "jnb loc_4F37E8"], [181, "cmp eax, 668h"], [182, "ja loc_4F38A0"], [183, "cmp eax, 667h"], [184, "jnb loc_4F388F"], [185, "cmp eax, 662h"], [186, "jz loc_4F388F"], [187, "cmp eax, 662h"], [188, "ja loc_4F38A0"], [189, "cmp eax, 514h"], [190, "ja loc_4F38A0"], [191, "cmp eax, 4DFh"], [192, "jnb loc_4F3812"], [193, "cmp eax, 222h"], [194, "ja loc_4F38A0"], [195, "cmp eax, 212h"], [196, "jnb loc_4F383A"], [197, "cmp eax, 0CAh"], [198, "ja loc_4F38A0"], [199, "cmp eax, 0C9h"], [200, "jnb loc_4F388F"], [201, "cmp eax, 0C7h"], [202, "ja loc_4F38A0"], [203, "cmp eax, 0C6h"], [204, "jnb loc_4F388F"], [205, "cmp eax, 16h"], [206, "ja loc_4F3883"], [207, "cmp eax, 15h"], [208, "jnb loc_4F388F"], [209, "jmp loc_4F38A0"], [210, "sub eax, 0A49h"], [211, "mov edx, 1"], [212, "mov ecx, eax"], [213, "shl rdx, cl"], [214, "mov rax, 90000000009h"], [215, "and rax, rdx"], [216, "test rax, rax"], [217, "setnz al"], [218, "test al, al"], [219, "jnz loc_4F388F"], [220, "jmp loc_4F38A0"], [221, "sub eax, 9B1h"], [222, "mov edx, 1"], [223, "mov ecx, eax"], [224, "shl rdx, cl"], [225, "mov rax, 1600000002400001h"], [226, "and rax, rdx"], [227, "test rax, rax"], [228, "setnz al"], [229, "test al, al"], [230, "jnz loc_4F388F"], [231, "jmp loc_4F38A0"], [232, "sub eax, 97Eh"], [233, "mov edx, 1"], [234, "mov ecx, eax"], [235, "shl rdx, cl"], [236, "mov rax, 1000000000009h"], [237, "and rax, rdx"], [238, "test rax, rax"], [239, "setnz al"], [240, "test al, al"], [241, "jnz loc_4F388F"], [242, "jmp loc_4F38A0"], [243, "sub eax, 905h"], [244, "mov edx, 1"], [245, "mov ecx, eax"], [246, "shl rdx, cl"], [247, "mov rax, 900000009h"], [248, "and rax, rdx"], [249, "test rax, rax"], [250, "setnz al"], [251, "test al, al"], [252, "jnz loc_4F388F"], [253, "jmp loc_4F38A0"], [254, "sub eax, 75Ah"], [255, "mov edx, 1"], [256, "mov ecx, eax"], [257, "shl rdx, cl"], [258, "mov rax, rdx"], [259, "and eax, 1001Bh"], [260, "test rax, rax"], [261, "setnz al"], [262, "test al, al"], [263, "jnz loc_4F388F"], [264, "jmp loc_4F38A0"], [265, "sub eax, 4DFh"], [266, "mov edx, 1"], [267, "mov ecx, eax"], [268, "shl rdx, cl"], [269, "mov rax, 20040040000801h"], [270, "and rax, rdx"], [271, "test rax, rax"], [272, "setnz al"], [273, "test al, al"], [274, "jnz short loc_4F388F"], [275, "jmp short loc_4F38A0"], [276, "sub eax, 212h"], [277, "mov edx, 1"], [278, "mov ecx, eax"], [279, "shl rdx, cl"], [280, "mov rax, rdx"], [281, "and eax, 16201h"], [282, "test rax, rax"], [283, "setnz al"], [284, "test al, al"], [285, "jnz short loc_4F388F"], [286, "jmp short loc_4F38A0"], [287, "sub eax, 3Bh "], [288, "mov edx, 1"], [289, "mov ecx, eax"], [290, "shl rdx, cl"], [291, "mov rax, 0D80000000000Bh"], [292, "and rax, rdx"], [293, "test rax, rax"], [294, "setnz al"], [295, "test al, al"], [296, "jnz short loc_4F388F"], [297, "jmp short loc_4F38A0"], [298, "cmp eax, 6Eh "], [299, "ja short loc_4F38A0"], [300, "cmp eax, 3Bh "], [301, "jnb short loc_4F385D"], [302, "jmp short loc_4F38A0"], [303, "and [rbp+var_10], 0FFh"], [304, "mov [rbp+var_4], 1"], [305, "jmp short loc_4F38A1"], [306, "nop"], [307, "mov rax, [rbp+var_28]"], [308, "mov rax, [rax+310h]"], [309, "mov eax, [rax]"], [310, "cmp eax, 147h"], [311, "jz loc_4F3A3D"], [312, "cmp eax, 147h"], [313, "ja short loc_4F390A"], [314, "cmp eax, 145h"], [315, "jz loc_4F3A3D"], [316, "cmp eax, 145h"], [317, "ja short loc_4F390A"], [318, "cmp eax, 0DEh"], [319, "jz loc_4F39AF"], [320, "cmp eax, 0DEh"], [321, "ja short loc_4F390A"], [322, "cmp eax, 9Dh"], [323, "ja short loc_4F390A"], [324, "cmp eax, 9Ch"], [325, "jnb loc_4F3A07"], [326, "cmp eax, 19h"], [327, "jz loc_4F3A3D"], [328, "cmp eax, 95h"], [329, "jz loc_4F3AC9"], [330, "cmp [rbp+var_10], 0"], [331, "js short loc_4F395A"], [332, "cmp [rbp+var_10], 9"], [333, "jle short loc_4F3939"], [334, "mov rdx, [rbp+var_10]"], [335, "mov rax, [rbp+var_38]"], [336, "lea rsi, a0xLx_15"], [337, "mov rdi, rax"], [338, "mov eax, 0"], [339, "call sub_403EEA"], [340, "jmp loc_4F3B1A"], [341, "mov rdx, [rbp+var_10]"], [342, "mov rax, [rbp+var_38]"], [343, "lea rsi, aLu_14"], [344, "mov rdi, rax"], [345, "mov eax, 0"], [346, "call sub_403EEA"], [347, "jmp loc_4F3B1A"], [348, "cmp [rbp+var_10], 0FFFFFFFFFFFFFFF7h"], [349, "jge short loc_4F3988"], [350, "mov rax, [rbp+var_10]"], [351, "neg rax"], [352, "mov rdx, rax"], [353, "mov rax, [rbp+var_38]"], [354, "lea rsi, a0xLx_14"], [355, "mov rdi, rax"], [356, "mov eax, 0"], [357, "call sub_403EEA"], [358, "jmp loc_4F3B1A"], [359, "mov rax, [rbp+var_10]"], [360, "neg rax"], [361, "mov rdx, rax"], [362, "mov rax, [rbp+var_38]"], [363, "lea rsi, aLu_13"], [364, "mov rdi, rax"], [365, "mov eax, 0"], [366, "call sub_403EEA"], [367, "jmp loc_4F3B1A"], [368, "and [rbp+var_10], 0FFh"], [369, "cmp [rbp+var_10], 0"], [370, "js short loc_4F39E6"], [371, "cmp [rbp+var_10], 9"], [372, "jg short loc_4F39E6"], [373, "mov rdx, [rbp+var_10]"], [374, "mov rax, [rbp+var_38]"], [375, "lea rsi, aU_23"], [376, "mov rdi, rax"], [377, "mov eax, 0"], [378, "call sub_403EEA"], [379, "jmp loc_4F3B1A"], [380, "mov rdx, [rbp+var_10]"], [381, "mov rax, [rbp+var_38]"], [382, "lea rsi, a0xX_21"], [383, "mov rdi, rax"], [384, "mov eax, 0"], [385, "call sub_403EEA"], [386, "jmp loc_4F3B1A"], [387, "cmp [rbp+var_2C], 1"], [388, "jnz short loc_4F3A1C"], [389, "and [rbp+var_10], 0FFFFh"], [390, "mov [rbp+var_4], 2"], [391, "mov rdx, [rbp+var_10]"], [392, "mov rax, [rbp+var_38]"], [393, "lea rsi, a0xLx_15"], [394, "mov rdi, rax"], [395, "mov eax, 0"], [396, "call sub_403EEA"], [397, "jmp loc_4F3B1A"], [398, "cmp [rbp+var_10], 0"], [399, "js short loc_4F3A6C"], [400, "cmp [rbp+var_10], 9"], [401, "jg short loc_4F3A6C"], [402, "mov rdx, [rbp+var_10]"], [403, "mov rax, [rbp+var_38]"], [404, "lea rsi, aU_23"], [405, "mov rdi, rax"], [406, "mov eax, 0"], [407, "call sub_403EEA"], [408, "jmp loc_4F3B1A"], [409, "mov rax, [rbp+var_28]"], [410, "movzx eax, byte ptr [rax+6]"], [411, "test al, al"], [412, "jz short loc_4F3A85"], [413, "mov rax, [rbp+var_28]"], [414, "movzx eax, byte ptr [rax+6]"], [415, "movzx eax, al"], [416, "jmp short loc_4F3A93"], [417, "mov rax, [rbp+var_28]"], [418, "movzx eax, byte ptr [rax+32Dh]"], [419, "movzx eax, al"], [420, "mov rdx, offset unk_683960"], [421, "cdqe"], [422, "mov rdx, [rdx+rax*8]"], [423, "mov rax, [rbp+var_10]"], [424, "and rax, rdx"], [425, "mov [rbp+var_10], rax"], [426, "mov rdx, [rbp+var_10]"], [427, "mov rax, [rbp+var_38]"], [428, "lea rsi, a0xLx_15"], [429, "mov rdi, rax"], [430, "mov eax, 0"], [431, "call sub_403EEA"], [432, "jmp short loc_4F3B1A"], [433, "cmp [rbp+var_10], 0"], [434, "js short loc_4F3AF5"], [435, "cmp [rbp+var_10], 9"], [436, "jg short loc_4F3AF5"], [437, "mov rdx, [rbp+var_10]"], [438, "mov rax, [rbp+var_38]"], [439, "lea rsi, aU_23"], [440, "mov rdi, rax"], [441, "mov eax, 0"], [442, "call sub_403EEA"], [443, "jmp short loc_4F3B19"], [444, "and [rbp+var_10], 0FFFFh"], [445, "mov rdx, [rbp+var_10]"], [446, "mov rax, [rbp+var_38]"], [447, "lea rsi, a0xX_21"], [448, "mov rdi, rax"], [449, "mov eax, 0"], [450, "call sub_403EEA"], [451, "nop"], [452, "mov rax, [rbp+var_28]"], [453, "mov rax, [rax+320h]"], [454, "mov eax, [rax+68h]"], [455, "test eax, eax"], [456, "jz loc_4F3D8F"], [457, "mov rax, [rbp+var_28]"], [458, "mov rax, [rax+320h]"], [459, "movzx eax, byte ptr [rax+70h]"], [460, "test al, al"], [461, "jz loc_4F3BDD"], [462, "mov rax, [rbp+var_28]"], [463, "mov rax, [rax+310h]"], [464, "mov rcx, [rax+0E8h]"], [465, "mov rax, [rbp+var_28]"], [466, "mov rax, [rax+310h]"], [467, "mov rax, [rax+0E8h]"], [468, "movzx eax, byte ptr [rax+5Ch]"], [469, "movzx eax, al"], [470, "movsxd rdx, eax"], [471, "mov rax, rdx"], [472, "add rax, rax"], [473, "add rax, rdx"], [474, "shl rax, 4"], [475, "add rax, rcx"], [476, "add rax, 60h "], [477, "mov dword ptr [rax], 3"], [478, "mov rax, [rbp+var_28]"], [479, "mov rax, [rax+310h]"], [480, "mov rcx, [rax+0E8h]"], [481, "mov rax, [rbp+var_28]"], [482, "mov rax, [rax+310h]"], [483, "mov rax, [rax+0E8h]"], [484, "movzx eax, byte ptr [rax+5Ch]"], [485, "movzx eax, al"], [486, "movsxd rdx, eax"], [487, "mov rax, rdx"], [488, "add rax, rax"], [489, "add rax, rdx"], [490, "shl rax, 4"], [491, "add rax, rcx"], [492, "lea rdx, [rax+78h]"], [493, "mov rax, [rbp+var_10]"], [494, "mov [rdx], rax"], [495, "jmp loc_4F3D8F"], [496, "mov rax, [rbp+var_28]"], [497, "mov rax, [rax+310h]"], [498, "mov rcx, [rax+0E8h]"], [499, "mov rax, [rbp+var_28]"], [500, "mov rax, [rax+310h]"], [501, "mov rax, [rax+0E8h]"], [502, "movzx eax, byte ptr [rax+5Ch]"], [503, "movzx eax, al"], [504, "movsxd rdx, eax"], [505, "mov rax, rdx"], [506, "add rax, rax"], [507, "add rax, rdx"], [508, "shl rax, 4"], [509, "add rax, rcx"], [510, "add rax, 60h "], [511, "mov dword ptr [rax], 2"], [512, "mov rax, [rbp+var_28]"], [513, "mov byte ptr [rax+5], 1"], [514, "mov rax, [rbp+var_28]"], [515, "mov rax, [rax+310h]"], [516, "mov rcx, [rax+0E8h]"], [517, "mov rax, [rbp+var_28]"], [518, "mov rax, [rax+310h]"], [519, "mov rax, [rax+0E8h]"], [520, "movzx eax, byte ptr [rax+5Ch]"], [521, "movzx eax, al"], [522, "movsxd rdx, eax"], [523, "mov rax, rdx"], [524, "add rax, rax"], [525, "add rax, rdx"], [526, "shl rax, 4"], [527, "add rax, rcx"], [528, "lea rdx, [rax+68h]"], [529, "mov rax, [rbp+var_10]"], [530, "mov [rdx], rax"], [531, "cmp [rbp+var_4], 0"], [532, "jle short loc_4F3CCA"], [533, "mov rax, [rbp+var_28]"], [534, "mov rax, [rax+310h]"], [535, "mov rsi, [rax+0E8h]"], [536, "mov rax, [rbp+var_28]"], [537, "mov rax, [rax+310h]"], [538, "mov rax, [rax+0E8h]"], [539, "movzx eax, byte ptr [rax+5Ch]"], [540, "movzx eax, al"], [541, "mov edx, [rbp+var_4]"], [542, "mov ecx, edx"], [543, "movsxd rdx, eax"], [544, "mov rax, rdx"], [545, "add rax, rax"], [546, "add rax, rdx"], [547, "shl rax, 4"], [548, "add rax, rsi"], [549, "sub rax, 0FFFFFFFFFFFFFF80h"], [550, "mov [rax], cl"], [551, "jmp loc_4F3D73"], [552, "mov rax, [rbp+var_28]"], [553, "movzx eax, byte ptr [rax+6]"], [554, "test al, al"], [555, "jz short loc_4F3D24"], [556, "mov rax, [rbp+var_28]"], [557, "mov rax, [rax+310h]"], [558, "mov rsi, [rax+0E8h]"], [559, "mov rax, [rbp+var_28]"], [560, "mov rax, [rax+310h]"], [561, "mov rax, [rax+0E8h]"], [562, "movzx eax, byte ptr [rax+5Ch]"], [563, "movzx ecx, al"], [564, "mov rax, [rbp+var_28]"], [565, "movzx edx, byte ptr [rax+6]"], [566, "movsxd rcx, ecx"], [567, "mov rax, rcx"], [568, "add rax, rax"], [569, "add rax, rcx"], [570, "shl rax, 4"], [571, "add rax, rsi"], [572, "sub rax, 0FFFFFFFFFFFFFF80h"], [573, "mov [rax], dl"], [574, "jmp short loc_4F3D73"], [575, "mov rax, [rbp+var_28]"], [576, "mov rax, [rax+310h]"], [577, "mov rsi, [rax+0E8h]"], [578, "mov rax, [rbp+var_28]"], [579, "mov rax, [rax+310h]"], [580, "mov rax, [rax+0E8h]"], [581, "movzx eax, byte ptr [rax+5Ch]"], [582, "movzx ecx, al"], [583, "mov rax, [rbp+var_28]"], [584, "movzx edx, byte ptr [rax+32Dh]"], [585, "movsxd rcx, ecx"], [586, "mov rax, rcx"], [587, "add rax, rax"], [588, "add rax, rcx"], [589, "shl rax, 4"], [590, "add rax, rsi"], [591, "sub rax, 0FFFFFFFFFFFFFF80h"], [592, "mov [rax], dl"], [593, "mov rax, [rbp+var_28]"], [594, "mov rax, [rax+310h]"], [595, "mov rax, [rax+0E8h]"], [596, "movzx edx, byte ptr [rax+5Ch]"], [597, "add edx, 1"], [598, "mov [rax+5Ch], dl"], [599, "nop"], [600, "leave"], [601, "retn"]], "data_dep": [[7, 4], [8, 3], [9, 7], [10, 8], [12, 11], [13, 12], [14, 13], [16, 15], [17, 16], [18, 12], [19, 18], [21, 20], [22, 21], [23, 5], [24, 22], [25, 23], [27, 3], [28, 27], [29, 28], [30, 29], [31, 30], [32, 3], [33, 32], [34, 33], [35, 34], [36, 35], [37, 3], [38, 37], [39, 38], [40, 3], [41, 40], [42, 41], [43, 42], [44, 43], [45, 44], [46, 45], [47, 46], [48, 45], [48, 47], [49, 48], [50, 39], [50, 49], [51, 50], [51, 45], [52, 21], [53, 52], [53, 51], [55, 3], [56, 55], [57, 56], [58, 3], [59, 58], [60, 59], [61, 60], [62, 61], [63, 62], [64, 63], [65, 64], [66, 65], [66, 63], [67, 66], [68, 67], [68, 57], [69, 68], [70, 69], [71, 3], [72, 71], [72, 70], [73, 72], [73, 70], [74, 3], [75, 70], [75, 74], [76, 75], [76, 70], [77, 76], [77, 70], [78, 77], [79, 78], [80, 79], [81, 80], [82, 79], [82, 81], [83, 82], [84, 83], [84, 73], [85, 84], [85, 70], [85, 79], [86, 21], [87, 86], [87, 85], [88, 3], [89, 88], [89, 87], [90, 87], [90, 89], [91, 21], [92, 91], [92, 90], [93, 3], [94, 93], [94, 87], [95, 87], [95, 94], [96, 3], [97, 87], [97, 96], [98, 97], [98, 87], [99, 98], [99, 87], [100, 99], [101, 92], [101, 87], [102, 100], [103, 102], [104, 103], [105, 104], [105, 102], [106, 105], [107, 95], [107, 106], [108, 107], [109, 101], [109, 108], [110, 3], [111, 110], [111, 109], [112, 111], [112, 109], [113, 109], [113, 112], [114, 113], [115, 112], [115, 114], [117, 12], [118, 117], [120, 119], [121, 120], [122, 12], [123, 122], [125, 124], [126, 3], [127, 126], [129, 128], [130, 129], [131, 128], [132, 131], [133, 128], [134, 133], [135, 128], [136, 135], [137, 128], [138, 137], [139, 128], [140, 139], [141, 128], [142, 141], [143, 128], [144, 143], [145, 128], [146, 145], [147, 128], [148, 147], [149, 128], [150, 149], [151, 128], [152, 151], [153, 128], [154, 153], [155, 128], [156, 155], [157, 128], [158, 157], [159, 128], [160, 159], [161, 128], [162, 161], [163, 128], [164, 163], [165, 128], [166, 165], [167, 128], [168, 167], [169, 128], [170, 169], [171, 128], [172, 171], [173, 128], [174, 173], [175, 128], [176, 175], [177, 128], [178, 177], [179, 128], [180, 179], [181, 128], [182, 181], [183, 128], [184, 183], [185, 128], [186, 185], [187, 128], [188, 187], [189, 128], [190, 189], [191, 128], [192, 191], [193, 128], [194, 193], [195, 128], [196, 195], [197, 128], [198, 197], [199, 128], [200, 199], [201, 128], [202, 201], [203, 128], [204, 203], [205, 128], [206, 205], [207, 128], [208, 207], [210, 128], [212, 210], [213, 212], [213, 211], [215, 214], [215, 213], [216, 215], [217, 216], [218, 217], [219, 218], [221, 128], [223, 221], [224, 223], [224, 222], [226, 225], [226, 224], [227, 226], [228, 227], [229, 228], [230, 229], [232, 128], [234, 232], [235, 233], [235, 234], [237, 236], [237, 235], [238, 237], [239, 238], [240, 239], [241, 240], [243, 128], [245, 243], [246, 245], [246, 244], [248, 247], [248, 246], [249, 248], [250, 249], [251, 250], [252, 251], [254, 128], [256, 254], [257, 256], [257, 255], [258, 257], [259, 258], [260, 259], [261, 260], [262, 261], [263, 262], [265, 128], [267, 265], [268, 266], [268, 267], [270, 269], [270, 268], [271, 270], [272, 271], [273, 272], [274, 273], [276, 128], [278, 276], [279, 278], [279, 277], [280, 279], [281, 280], [282, 281], [283, 282], [284, 283], [285, 284], [287, 128], [289, 287], [290, 289], [290, 288], [292, 291], [292, 290], [293, 292], [294, 293], [295, 294], [296, 295], [298, 128], [299, 298], [300, 128], [301, 300], [303, 125], [307, 3], [308, 307], [309, 308], [310, 309], [311, 310], [312, 309], [313, 312], [314, 309], [315, 314], [316, 309], [317, 316], [318, 309], [319, 318], [320, 309], [321, 320], [322, 309], [323, 322], [324, 309], [325, 324], [326, 309], [327, 326], [328, 309], [329, 328], [330, 125], [330, 303], [331, 330], [332, 303], [332, 125], [333, 332], [334, 303], [334, 125], [335, 5], [336, 9], [337, 335], [341, 125], [341, 303], [342, 5], [343, 9], [344, 342], [348, 303], [348, 125], [349, 348], [350, 303], [350, 125], [351, 350], [352, 351], [353, 5], [354, 9], [355, 353], [359, 303], [359, 125], [360, 359], [361, 360], [362, 5], [363, 9], [364, 362], [368, 125], [368, 303], [369, 368], [370, 369], [371, 368], [372, 371], [373, 368], [374, 5], [375, 9], [376, 374], [380, 368], [381, 5], [382, 9], [383, 381], [387, 4], [388, 387], [389, 303], [389, 125], [391, 303], [391, 125], [391, 389], [392, 5], [393, 9], [394, 392], [398, 125], [398, 303], [399, 398], [400, 303], [400, 125], [401, 400], [402, 303], [402, 125], [403, 5], [404, 9], [405, 403], [409, 3], [410, 409], [411, 410], [412, 411], [413, 3], [414, 413], [415, 414], [417, 3], [418, 417], [419, 418], [422, 415], [422, 419], [423, 303], [423, 125], [424, 423], [424, 422], [425, 424], [426, 425], [427, 5], [428, 9], [429, 427], [433, 125], [433, 303], [434, 433], [435, 303], [435, 125], [436, 435], [437, 303], [437, 125], [438, 5], [439, 9], [440, 438], [444, 125], [444, 303], [445, 444], [446, 5], [447, 9], [448, 446], [452, 3], [453, 452], [454, 453], [455, 454], [456, 455], [457, 3], [458, 457], [459, 458], [460, 459], [461, 460], [462, 3], [463, 462], [464, 463], [465, 3], [466, 465], [467, 466], [468, 467], [469, 468], [470, 469], [471, 470], [472, 471], [473, 470], [473, 472], [474, 473], [475, 474], [475, 464], [476, 475], [477, 476], [478, 3], [479, 478], [479, 477], [480, 479], [480, 477], [481, 3], [482, 477], [482, 481], [483, 482], [483, 477], [484, 477], [484, 483], [485, 484], [486, 485], [487, 486], [488, 487], [489, 488], [489, 486], [490, 489], [491, 480], [491, 490], [492, 491], [492, 477], [492, 486], [493, 125], [493, 389], [493, 444], [493, 425], [493, 368], [493, 303], [494, 493], [494, 492], [496, 3], [497, 496], [498, 497], [499, 3], [500, 499], [501, 500], [502, 501], [503, 502], [504, 503], [505, 504], [506, 505], [507, 506], [507, 504], [508, 507], [509, 508], [509, 498], [510, 509], [511, 510], [512, 3], [513, 512], [514, 3], [515, 514], [515, 513], [516, 513], [516, 515], [517, 3], [518, 513], [518, 517], [519, 513], [519, 518], [520, 519], [520, 513], [521, 520], [522, 521], [523, 522], [524, 523], [525, 522], [525, 524], [526, 525], [527, 526], [527, 516], [528, 527], [528, 513], [528, 522], [529, 125], [529, 389], [529, 444], [529, 425], [529, 303], [529, 368], [530, 529], [530, 528], [531, 390], [531, 304], [531, 6], [532, 531], [533, 3], [534, 533], [534, 550], [534, 513], [534, 530], [534, 511], [535, 550], [535, 513], [535, 530], [535, 534], [535, 511], [536, 3], [537, 530], [537, 511], [537, 550], [537, 536], [537, 513], [538, 537], [538, 550], [538, 513], [538, 530], [538, 511], [539, 511], [539, 538], [539, 550], [539, 513], [539, 530], [540, 539], [541, 304], [541, 6], [541, 390], [542, 541], [543, 540], [544, 543], [545, 544], [546, 545], [546, 543], [547, 546], [548, 547], [548, 535], [549, 548], [550, 542], [550, 549], [552, 3], [553, 552], [553, 513], [553, 530], [553, 511], [554, 553], [555, 554], [556, 3], [557, 573], [557, 530], [557, 511], [557, 556], [557, 513], [558, 573], [558, 513], [558, 530], [558, 511], [558, 557], [559, 3], [560, 573], [560, 559], [560, 513], [560, 530], [560, 511], [561, 560], [561, 573], [561, 513], [561, 530], [561, 511], [562, 530], [562, 511], [562, 561], [562, 513], [562, 573], [563, 562], [564, 3], [565, 513], [565, 530], [565, 511], [565, 564], [565, 573], [566, 563], [567, 566], [568, 567], [569, 568], [569, 566], [570, 569], [571, 558], [571, 570], [572, 571], [573, 572], [573, 565], [575, 3], [576, 592], [576, 513], [576, 530], [576, 511], [576, 575], [577, 513], [577, 592], [577, 530], [577, 511], [577, 576], [578, 3], [579, 592], [579, 578], [579, 530], [579, 511], [579, 513], [580, 579], [580, 592], [580, 513], [580, 530], [580, 511], [581, 513], [581, 530], [581, 511], [581, 580], [581, 592], [582, 581], [583, 3], [584, 513], [584, 530], [584, 511], [584, 583], [584, 592], [585, 582], [586, 585], [587, 586], [588, 587], [588, 585], [589, 588], [590, 577], [590, 589], [591, 590], [592, 591], [592, 584], [593, 3], [594, 598], [594, 513], [594, 593], [594, 592], [594, 573], [594, 550], [594, 530], [594, 511], [595, 573], [595, 550], [595, 530], [595, 511], [595, 594], [595, 598], [595, 513], [595, 592], [596, 598], [596, 592], [596, 573], [596, 550], [596, 513], [596, 530], [596, 511], [596, 595], [597, 596], [598, 597], [598, 595], [601, 52], [601, 112], [601, 493], [601, 120], [601, 595], [601, 455], [601, 30]]}
|
static DecodeStatus DecodeSTRPreImm(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned pred;
unsigned Rn = fieldFromInstruction_4(Insn, 16, 4);
unsigned Rt = fieldFromInstruction_4(Insn, 12, 4);
unsigned imm = fieldFromInstruction_4(Insn, 0, 12);
imm |= fieldFromInstruction_4(Insn, 16, 4) << 13;
imm |= fieldFromInstruction_4(Insn, 23, 1) << 12;
pred = fieldFromInstruction_4(Insn, 28, 4);
if (Rn == 0xF || Rn == Rt) S = MCDisassembler_SoftFail;
if (!Check(&S, DecodeGPRRegisterClass(Inst, Rn, Address, Decoder)))
return MCDisassembler_Fail;
if (!Check(&S, DecodeGPRRegisterClass(Inst, Rt, Address, Decoder)))
return MCDisassembler_Fail;
if (!Check(&S, DecodeAddrModeImm12Operand(Inst, imm, Address, Decoder)))
return MCDisassembler_Fail;
if (!Check(&S, DecodePredicateOperand(Inst, pred, Address, Decoder)))
return MCDisassembler_Fail;
return S;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_470D2E", "function_addr": 4656430, "binary_name": "d6f1c4fccbb8fc2066c0c7749389636df7b33c67e152dc8852a86b3a79bd4c3d.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [4, "mov [rbp+var_2C], esi"], [5, "mov [rbp+var_38], rdx"], [6, "mov [rbp+var_40], rcx"], [7, "mov [rbp+var_14], 3"], [8, "mov eax, [rbp+var_2C]"], [9, "mov edx, 4"], [10, "mov esi, 10h"], [11, "mov edi, eax"], [12, "call sub_452336"], [13, "mov [rbp+var_4], eax"], [14, "mov eax, [rbp+var_2C]"], [15, "mov edx, 4"], [16, "mov esi, 0Ch"], [17, "mov edi, eax"], [18, "call sub_452336"], [19, "mov [rbp+var_8], eax"], [20, "mov eax, [rbp+var_2C]"], [21, "mov edx, 0Ch"], [22, "mov esi, 0"], [23, "mov edi, eax"], [24, "call sub_452336"], [25, "mov [rbp+var_C], eax"], [26, "mov eax, [rbp+var_2C]"], [27, "mov edx, 4"], [28, "mov esi, 10h"], [29, "mov edi, eax"], [30, "call sub_452336"], [31, "shl eax, 0Dh"], [32, "or [rbp+var_C], eax"], [33, "mov eax, [rbp+var_2C]"], [34, "mov edx, 1"], [35, "mov esi, 17h"], [36, "mov edi, eax"], [37, "call sub_452336"], [38, "shl eax, 0Ch"], [39, "or [rbp+var_C], eax"], [40, "mov eax, [rbp+var_2C]"], [41, "mov edx, 4"], [42, "mov esi, 1Ch"], [43, "mov edi, eax"], [44, "call sub_452336"], [45, "mov [rbp+var_10], eax"], [46, "cmp [rbp+var_4], 0Fh"], [47, "jz short loc_470DEA"], [48, "mov eax, [rbp+var_4]"], [49, "cmp eax, [rbp+var_8]"], [50, "jnz short loc_470DF1"], [51, "mov [rbp+var_14], 1"], [52, "mov rcx, [rbp+var_40]"], [53, "mov rdx, [rbp+var_38]"], [54, "mov esi, [rbp+var_4]"], [55, "mov rax, [rbp+var_28]"], [56, "mov rdi, rax"], [57, "call sub_4696F7"], [58, "mov edx, eax"], [59, "lea rax, [rbp+var_14]"], [60, "mov esi, edx"], [61, "mov rdi, rax"], [62, "call sub_438931"], [63, "xor eax, 1"], [64, "test al, al"], [65, "jz short loc_470E29"], [66, "mov eax, 0"], [67, "jmp locret_470ECB"], [68, "mov rcx, [rbp+var_40]"], [69, "mov rdx, [rbp+var_38]"], [70, "mov esi, [rbp+var_8]"], [71, "mov rax, [rbp+var_28]"], [72, "mov rdi, rax"], [73, "call sub_4696F7"], [74, "mov edx, eax"], [75, "lea rax, [rbp+var_14]"], [76, "mov esi, edx"], [77, "mov rdi, rax"], [78, "call sub_438931"], [79, "xor eax, 1"], [80, "test al, al"], [81, "jz short loc_470E5E"], [82, "mov eax, 0"], [83, "jmp short locret_470ECB"], [84, "mov rcx, [rbp+var_40]"], [85, "mov rdx, [rbp+var_38]"], [86, "mov esi, [rbp+var_C]"], [87, "mov rax, [rbp+var_28]"], [88, "mov rdi, rax"], [89, "call sub_46C185"], [90, "mov edx, eax"], [91, "lea rax, [rbp+var_14]"], [92, "mov esi, edx"], [93, "mov rdi, rax"], [94, "call sub_438931"], [95, "xor eax, 1"], [96, "test al, al"], [97, "jz short loc_470E93"], [98, "mov eax, 0"], [99, "jmp short locret_470ECB"], [100, "mov rcx, [rbp+var_40]"], [101, "mov rdx, [rbp+var_38]"], [102, "mov esi, [rbp+var_10]"], [103, "mov rax, [rbp+var_28]"], [104, "mov rdi, rax"], [105, "call sub_468188"], [106, "mov edx, eax"], [107, "lea rax, [rbp+var_14]"], [108, "mov esi, edx"], [109, "mov rdi, rax"], [110, "call sub_438931"], [111, "xor eax, 1"], [112, "test al, al"], [113, "jz short loc_470EC8"], [114, "mov eax, 0"], [115, "jmp short locret_470ECB"], [116, "mov eax, [rbp+var_14]"], [117, "leave"], [118, "retn"]], "data_dep": [[8, 4], [11, 8], [13, 12], [14, 4], [17, 14], [19, 18], [20, 4], [23, 20], [25, 24], [26, 4], [29, 26], [31, 30], [32, 25], [32, 31], [33, 4], [36, 33], [38, 37], [39, 32], [39, 38], [40, 4], [43, 40], [45, 44], [46, 13], [47, 46], [48, 13], [49, 48], [49, 19], [50, 49], [52, 6], [53, 5], [54, 13], [55, 3], [56, 55], [58, 57], [59, 57], [59, 51], [59, 7], [60, 58], [61, 59], [63, 62], [64, 63], [65, 64], [68, 6], [69, 5], [70, 19], [71, 3], [72, 71], [74, 73], [75, 51], [75, 7], [75, 73], [76, 74], [77, 75], [79, 78], [80, 79], [81, 80], [84, 6], [85, 5], [86, 39], [87, 3], [88, 87], [90, 89], [91, 7], [91, 89], [91, 51], [92, 90], [93, 91], [95, 94], [96, 95], [97, 96], [100, 6], [101, 5], [102, 45], [103, 3], [104, 103], [106, 105], [107, 51], [107, 105], [107, 7], [108, 106], [109, 107], [111, 110], [112, 111], [113, 112], [116, 51], [116, 7], [118, 98], [118, 82], [118, 66], [118, 114], [118, 116]]}
|
int
pg_strcasecmp(const char *s1, const char *s2)
{
for (;;)
{
unsigned char ch1 = (unsigned char) *s1++;
unsigned char ch2 = (unsigned char) *s2++;
if (ch1 != ch2)
{
if (ch1 >= 'A' && ch1 <= 'Z')
ch1 += 'a' - 'A';
else if (IS_HIGHBIT_SET(ch1) && isupper(ch1))
ch1 = tolower(ch1);
if (ch2 >= 'A' && ch2 <= 'Z')
ch2 += 'a' - 'A';
else if (IS_HIGHBIT_SET(ch2) && isupper(ch2))
ch2 = tolower(ch2);
if (ch1 != ch2)
return (int) ch1 - (int) ch2;
}
if (ch1 == 0)
break;
}
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_412E04", "function_addr": 4271620, "binary_name": "40874554c46d15a39ce91c8819ccc126854a63e765dafd614f39346dbaf3dc95.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov rax, [rbp+var_18]"], [6, "lea rdx, [rax+1]"], [7, "mov [rbp+var_18], rdx"], [8, "movzx eax, byte ptr [rax]"], [9, "mov [rbp+var_1], al"], [10, "mov rax, [rbp+var_20]"], [11, "lea rdx, [rax+1]"], [12, "mov [rbp+var_20], rdx"], [13, "movzx eax, byte ptr [rax]"], [14, "mov [rbp+var_2], al"], [15, "movzx eax, [rbp+var_1]"], [16, "cmp al, [rbp+var_2]"], [17, "jz loc_412EEC"], [18, "cmp [rbp+var_1], 40h "], [19, "jbe short loc_412E57"], [20, "cmp [rbp+var_1], 5Ah "], [21, "ja short loc_412E57"], [22, "add [rbp+var_1], 20h "], [23, "jmp short loc_412E8E"], [24, "movzx eax, [rbp+var_1]"], [25, "test al, al"], [26, "jns short loc_412E8E"], [27, "call ___ctype_b_loc"], [28, "mov rdx, [rax]"], [29, "movzx eax, [rbp+var_1]"], [30, "add rax, rax"], [31, "add rax, rdx"], [32, "movzx eax, word ptr [rax]"], [33, "movzx eax, ax"], [34, "and eax, 100h"], [35, "test eax, eax"], [36, "jz short loc_412E8E"], [37, "movzx eax, [rbp+var_1]"], [38, "mov edi, eax"], [39, "call _tolower"], [40, "mov [rbp+var_1], al"], [41, "cmp [rbp+var_2], 40h "], [42, "jbe short loc_412EA0"], [43, "cmp [rbp+var_2], 5Ah "], [44, "ja short loc_412EA0"], [45, "add [rbp+var_2], 20h "], [46, "jmp short loc_412ED7"], [47, "movzx eax, [rbp+var_2]"], [48, "test al, al"], [49, "jns short loc_412ED7"], [50, "call ___ctype_b_loc"], [51, "mov rdx, [rax]"], [52, "movzx eax, [rbp+var_2]"], [53, "add rax, rax"], [54, "add rax, rdx"], [55, "movzx eax, word ptr [rax]"], [56, "movzx eax, ax"], [57, "and eax, 100h"], [58, "test eax, eax"], [59, "jz short loc_412ED7"], [60, "movzx eax, [rbp+var_2]"], [61, "mov edi, eax"], [62, "call _tolower"], [63, "mov [rbp+var_2], al"], [64, "movzx eax, [rbp+var_1]"], [65, "cmp al, [rbp+var_2]"], [66, "jz short loc_412EEC"], [67, "movzx eax, [rbp+var_1]"], [68, "movzx edx, [rbp+var_2]"], [69, "sub eax, edx"], [70, "jmp short locret_412EFD"], [71, "cmp [rbp+var_1], 0"], [72, "jz short loc_412EF7"], [73, "jmp loc_412E14"], [74, "nop"], [75, "mov eax, 0"], [76, "leave"], [77, "retn"]], "data_dep": [[5, 3], [5, 7], [6, 11], [6, 51], [6, 28], [6, 5], [7, 6], [8, 5], [9, 8], [10, 12], [10, 4], [11, 6], [11, 10], [12, 11], [13, 10], [14, 13], [15, 9], [16, 15], [16, 14], [17, 16], [18, 9], [19, 18], [20, 9], [21, 20], [22, 9], [24, 9], [25, 24], [26, 25], [28, 27], [29, 9], [30, 29], [31, 28], [31, 30], [32, 31], [33, 32], [34, 33], [35, 34], [36, 35], [37, 9], [38, 37], [40, 39], [41, 14], [42, 41], [43, 14], [44, 43], [45, 14], [47, 14], [48, 47], [49, 48], [51, 50], [52, 14], [53, 52], [54, 51], [54, 53], [55, 54], [56, 55], [57, 56], [58, 57], [59, 58], [60, 14], [61, 60], [63, 62], [64, 9], [64, 22], [64, 40], [65, 45], [65, 63], [65, 14], [65, 64], [66, 65], [67, 22], [67, 40], [67, 9], [68, 45], [68, 63], [68, 14], [69, 67], [69, 68], [71, 22], [71, 40], [71, 9], [72, 71], [77, 69], [77, 75]]}
|
LZ4F_errorCode_t LZ4F_freeDecompressionContext(LZ4F_dctx* dctx)
{
LZ4F_errorCode_t result = LZ4F_OK_NoError;
if (dctx != NULL) { /* can accept NULL input, like free() */
result = (LZ4F_errorCode_t)dctx->dStage;
LZ4F_free(dctx->tmpIn, dctx->cmem);
LZ4F_free(dctx->tmpOutBuffer, dctx->cmem);
LZ4F_free(dctx, dctx->cmem);
}
return result;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402F4D", "function_addr": 4206413, "binary_name": "ecd5ea0a04b776f1878205cebed33a0e2b619cb076050cb0b4237b12dc536049.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+ptr], rdi"], [4, "mov [rbp+var_8], 0"], [5, "cmp [rbp+ptr], 0"], [6, "jz short loc_402FA1"], [7, "mov rax, [rbp+ptr]"], [8, "mov eax, [rax+24h]"], [9, "mov eax, eax"], [10, "mov [rbp+var_8], rax"], [11, "mov rax, [rbp+ptr]"], [12, "mov rax, [rax+40h]"], [13, "mov rdi, rax"], [14, "call _free"], [15, "mov rax, [rbp+ptr]"], [16, "mov rax, [rax+58h]"], [17, "mov rdi, rax"], [18, "call _free"], [19, "mov rax, [rbp+ptr]"], [20, "mov rdi, rax"], [21, "call _free"], [22, "mov rax, [rbp+var_8]"], [23, "leave"], [24, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 3], [8, 7], [9, 8], [10, 9], [11, 3], [12, 11], [13, 12], [15, 3], [16, 15], [17, 16], [19, 3], [20, 19], [22, 4], [22, 10], [24, 22]]}
|
static void on_rx_from_peer(pj_ioqueue_key_t *key,
pj_ioqueue_op_key_t *op_key,
pj_ssize_t bytes_read)
{
pj_turn_relay_res *rel;
pj_status_t status;
rel = (pj_turn_relay_res*) pj_ioqueue_get_user_data(key);
/* Lock the allocation */
pj_lock_acquire(rel->allocation->lock);
do {
if (bytes_read > 0) {
handle_peer_pkt(rel->allocation, rel, rel->tp.rx_pkt,
bytes_read, &rel->tp.src_addr);
}
/* Read next packet */
bytes_read = sizeof(rel->tp.rx_pkt);
rel->tp.src_addr_len = sizeof(rel->tp.src_addr);
status = pj_ioqueue_recvfrom(key, op_key,
rel->tp.rx_pkt, &bytes_read, 0,
&rel->tp.src_addr,
&rel->tp.src_addr_len);
if (status != PJ_EPENDING && status != PJ_SUCCESS)
bytes_read = -status;
} while (status != PJ_EPENDING && status != PJ_ECANCELLED);
/* Release allocation lock */
pj_lock_release(rel->allocation->lock);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4059FE", "function_addr": 4217342, "binary_name": "d4ed0248ecf0b71e46b6ba1555cac8234904a28ed79445617a3fd566e7483f9c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_20], rsi"], [5, "mov [rbp+var_28], rdx"], [6, "mov rax, [rbp+var_18]"], [7, "mov rdi, rax"], [8, "call sub_416314"], [9, "mov [rbp+var_8], rax"], [10, "mov rax, [rbp+var_8]"], [11, "mov rax, [rax+20h]"], [12, "mov rax, [rax+80h]"], [13, "mov rdi, rax"], [14, "call sub_41EB35"], [15, "mov rax, [rbp+var_28]"], [16, "test rax, rax"], [17, "jle short loc_405A79"], [18, "mov rax, [rbp+var_8]"], [19, "lea rcx, [rax+0D58h]"], [20, "mov rax, [rbp+var_28]"], [21, "mov rdi, rax"], [22, "mov rax, [rbp+var_8]"], [23, "lea rdx, [rax+1A0h]"], [24, "mov rax, [rbp+var_8]"], [25, "mov rax, [rax+20h]"], [26, "mov rsi, [rbp+var_8]"], [27, "mov r8, rcx"], [28, "mov rcx, rdi"], [29, "mov rdi, rax"], [30, "call sub_405718"], [31, "mov [rbp+var_28], 0BB8h"], [32, "mov rax, [rbp+var_8]"], [33, "mov dword ptr [rax+0D74h], 1Ch"], [34, "mov rax, [rbp+var_8]"], [35, "lea rcx, [rax+0D74h]"], [36, "mov rax, [rbp+var_8]"], [37, "lea r8, [rax+0D58h]"], [38, "mov rax, [rbp+var_8]"], [39, "lea rdi, [rax+1A0h]"], [40, "lea rdx, [rbp+var_28]"], [41, "mov rsi, [rbp+var_20]"], [42, "mov rax, [rbp+var_18]"], [43, "sub rsp, 8"], [44, "push rcx"], [45, "mov r9, r8"], [46, "mov r8d, 0"], [47, "mov rcx, rdx"], [48, "mov rdx, rdi"], [49, "mov rdi, rax"], [50, "call sub_416F95"], [51, "add rsp, 10h"], [52, "mov [rbp+var_C], eax"], [53, "cmp [rbp+var_C], 11172h"], [54, "jz short loc_405AF9"], [55, "cmp [rbp+var_C], 0"], [56, "jz short loc_405AF9"], [57, "mov eax, [rbp+var_C]"], [58, "neg eax"], [59, "cdqe"], [60, "mov [rbp+var_28], rax"], [61, "cmp [rbp+var_C], 11172h"], [62, "jz short loc_405B0F"], [63, "cmp [rbp+var_C], 1117Eh"], [64, "jnz loc_405A39"], [65, "mov rax, [rbp+var_8]"], [66, "mov rax, [rax+20h]"], [67, "mov rax, [rax+80h]"], [68, "mov rdi, rax"], [69, "call sub_41EBD5"], [70, "nop"], [71, "leave"], [72, "retn"]], "data_dep": [[6, 3], [7, 6], [9, 8], [10, 9], [11, 10], [12, 11], [13, 12], [15, 60], [15, 5], [15, 31], [16, 15], [17, 16], [18, 9], [19, 18], [19, 47], [19, 33], [20, 31], [20, 60], [20, 5], [21, 20], [22, 9], [23, 22], [23, 33], [23, 48], [24, 9], [25, 24], [25, 33], [26, 9], [27, 19], [28, 21], [29, 25], [32, 9], [33, 32], [34, 9], [35, 33], [35, 28], [35, 34], [35, 47], [36, 9], [37, 33], [37, 46], [37, 27], [37, 36], [38, 9], [39, 33], [39, 13], [39, 29], [39, 38], [39, 49], [40, 31], [40, 23], [40, 48], [41, 4], [42, 3], [43, 2], [43, 51], [44, 35], [45, 37], [47, 40], [48, 39], [49, 42], [51, 43], [52, 50], [53, 52], [54, 53], [55, 52], [56, 55], [57, 52], [58, 57], [60, 58], [61, 52], [62, 61], [63, 52], [64, 63], [65, 9], [66, 33], [66, 65], [67, 33], [67, 66], [68, 67], [72, 69]]}
|
static void
rtnl_hash_initialize(const char *file, struct rtnl_hash_entry **hash, int size)
{
struct rtnl_hash_entry *entry;
FILE *fp;
int id;
char namebuf[NAME_MAX_LEN] = {0};
int ret;
fp = fopen(file, "r");
if (!fp)
return;
while ((ret = fread_id_name(fp, &id, &namebuf[0]))) {
if (ret == -1) {
fprintf(stderr, "Database %s is corrupted at %s\n",
file, namebuf);
fclose(fp);
return;
}
if (id < 0)
continue;
entry = malloc(sizeof(*entry));
entry->id = id;
entry->name = strdup(namebuf);
entry->next = hash[id & (size - 1)];
hash[id & (size - 1)] = entry;
}
fclose(fp);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4172CB", "function_addr": 4289227, "binary_name": "1c264dfb9894591a66e05f9ae328f637a7f80f4b0e59d451e9c4fdd94a3497b3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 240h"], [3, "mov [rbp+filename], rdi"], [4, "mov [rbp+var_230], rsi"], [5, "mov [rbp+var_234], edx"], [6, "mov qword ptr [rbp+s], 0"], [7, "mov [rbp+var_218], 0"], [8, "lea rdx, [rbp+var_210]"], [9, "mov eax, 0"], [10, "mov ecx, 3Eh "], [11, "mov rdi, rdx"], [12, "rep stosq"], [13, "mov rax, [rbp+filename]"], [14, "lea rsi, aR_0"], [15, "mov rdi, rax"], [16, "call _fopen64"], [17, "mov [rbp+stream], rax"], [18, "cmp [rbp+stream], 0"], [19, "jz loc_41744E"], [20, "jmp loc_417419"], [21, "cmp [rbp+var_C], 0FFFFFFFFh"], [22, "jnz short loc_417384"], [23, "mov rax, cs:stderr_ptr"], [24, "mov rax, [rax]"], [25, "lea rcx, [rbp+s]"], [26, "mov rdx, [rbp+filename]"], [27, "lea rsi, aDatabaseSIsCor"], [28, "mov rdi, rax"], [29, "mov eax, 0"], [30, "call _fprintf"], [31, "mov rax, [rbp+stream]"], [32, "mov rdi, rax"], [33, "call _fclose"], [34, "jmp locret_41744F"], [35, "mov eax, [rbp+var_1C]"], [36, "test eax, eax"], [37, "jns short loc_417390"], [38, "jmp loc_417419"], [39, "mov edi, 18h"], [40, "call _malloc"], [41, "mov [rbp+var_18], rax"], [42, "mov eax, [rbp+var_1C]"], [43, "mov edx, eax"], [44, "mov rax, [rbp+var_18]"], [45, "mov [rax+10h], edx"], [46, "lea rax, [rbp+s]"], [47, "mov rdi, rax"], [48, "call _strdup"], [49, "mov rdx, rax"], [50, "mov rax, [rbp+var_18]"], [51, "mov [rax+8], rdx"], [52, "mov eax, [rbp+var_234]"], [53, "lea edx, [rax-1]"], [54, "mov eax, [rbp+var_1C]"], [55, "and eax, edx"], [56, "cdqe"], [57, "lea rdx, ds:0[rax*8]"], [58, "mov rax, [rbp+var_230]"], [59, "add rax, rdx"], [60, "mov rdx, [rax]"], [61, "mov rax, [rbp+var_18]"], [62, "mov [rax], rdx"], [63, "mov eax, [rbp+var_234]"], [64, "lea edx, [rax-1]"], [65, "mov eax, [rbp+var_1C]"], [66, "and eax, edx"], [67, "cdqe"], [68, "lea rdx, ds:0[rax*8]"], [69, "mov rax, [rbp+var_230]"], [70, "add rdx, rax"], [71, "mov rax, [rbp+var_18]"], [72, "mov [rdx], rax"], [73, "lea rdx, [rbp+s]"], [74, "lea rcx, [rbp+var_1C]"], [75, "mov rax, [rbp+stream]"], [76, "mov rsi, rcx"], [77, "mov rdi, rax"], [78, "call sub_417151"], [79, "mov [rbp+var_C], eax"], [80, "cmp [rbp+var_C], 0"], [81, "jnz loc_417341"], [82, "mov rax, [rbp+stream]"], [83, "mov rdi, rax"], [84, "call _fclose"], [85, "jmp short locret_41744F"], [86, "nop"], [87, "leave"], [88, "retn"]], "data_dep": [[11, 8], [13, 3], [15, 13], [17, 16], [18, 17], [19, 18], [21, 79], [22, 21], [24, 51], [24, 72], [24, 23], [24, 62], [24, 45], [25, 6], [25, 74], [26, 3], [27, 76], [28, 24], [31, 17], [32, 31], [36, 35], [37, 36], [41, 40], [43, 42], [44, 41], [45, 43], [45, 44], [46, 6], [46, 44], [47, 46], [49, 48], [50, 41], [51, 50], [51, 49], [52, 5], [53, 52], [53, 49], [53, 51], [55, 54], [55, 53], [57, 53], [58, 4], [59, 57], [59, 58], [60, 62], [60, 59], [60, 51], [61, 41], [62, 60], [62, 61], [63, 5], [64, 62], [64, 63], [64, 60], [66, 64], [66, 65], [68, 64], [69, 4], [70, 68], [70, 69], [71, 41], [72, 70], [72, 71], [73, 73], [73, 6], [73, 70], [73, 8], [74, 10], [74, 74], [75, 17], [76, 74], [77, 75], [79, 78], [80, 79], [81, 80], [82, 17], [83, 82], [88, 33], [88, 16], [88, 84]]}
|
static int is_sshd_lookup_exit(int status, int fd, regex_t * re) {
if (fd != -1)
close(fd);
if (re)
regfree(re);
return status;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403835", "function_addr": 4208693, "binary_name": "5378cc4a870cbbe04a2e0fa50f6ae7f4584c4209fcca85eed72a642595eeb234.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_4], edi"], [4, "mov [rbp+fd], esi"], [5, "mov [rbp+preg], rdx"], [6, "cmp [rbp+fd], 0FFFFFFFFh"], [7, "jz short loc_403857"], [8, "mov eax, [rbp+fd]"], [9, "mov edi, eax"], [10, "call _close"], [11, "cmp [rbp+preg], 0"], [12, "jz short loc_40386A"], [13, "mov rax, [rbp+preg]"], [14, "mov rdi, rax"], [15, "call _regfree"], [16, "mov eax, [rbp+var_4]"], [17, "leave"], [18, "retn"]], "data_dep": [[6, 4], [7, 6], [8, 4], [9, 8], [11, 5], [12, 11], [13, 5], [14, 13], [16, 3], [18, 16]]}
|
sl_status_t sl_btmesh_fw_update_server_init(uint16_t elem_index,
uint8_t num_installed_fw,
uint8_t max_metadata_len) {
struct sl_btmesh_packet *cmd = (struct sl_btmesh_packet *)sl_btmesh_cmd_msg;
struct sl_btmesh_packet *rsp = (struct sl_btmesh_packet *)sl_btmesh_rsp_msg;
cmd->data.cmd_fw_update_server_init.elem_index=elem_index;
cmd->data.cmd_fw_update_server_init.num_installed_fw=num_installed_fw;
cmd->data.cmd_fw_update_server_init.max_metadata_len=max_metadata_len;
cmd->header=sl_btmesh_cmd_fw_update_server_init_id+(((4)&0xff)<<8)+(((4)&0x700)>>8);
sl_btmesh_host_handle_command();
return rsp->data.rsp_fw_update_server_init.result;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_415F4D", "function_addr": 4284237, "binary_name": "d641d4455ba968ec8cdc678803903e8adc4e0f690e4b42f19186ba657d295323.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov eax, edi"], [4, "mov ecx, esi"], [5, "mov [rbp+var_14], ax"], [6, "mov eax, ecx"], [7, "mov [rbp+var_18], al"], [8, "mov eax, edx"], [9, "mov [rbp+var_1C], al"], [10, "mov rax, cs:off_43E280"], [11, "mov [rbp+var_8], rax"], [12, "mov rax, cs:off_43E288"], [13, "mov [rbp+var_10], rax"], [14, "mov rax, [rbp+var_8]"], [15, "movzx edx, [rbp+var_14]"], [16, "mov [rax+4], dx"], [17, "mov rax, [rbp+var_8]"], [18, "movzx edx, [rbp+var_18]"], [19, "mov [rax+6], dl"], [20, "mov rax, [rbp+var_8]"], [21, "movzx edx, [rbp+var_1C]"], [22, "mov [rax+7], dl"], [23, "mov rax, [rbp+var_8]"], [24, "mov dword ptr [rax], 570428h"], [25, "mov eax, 0"], [26, "call sub_40A2AC"], [27, "mov rax, [rbp+var_10]"], [28, "movzx eax, word ptr [rax+4]"], [29, "movzx eax, ax"], [30, "leave"], [31, "retn"]], "data_dep": [[5, 3], [6, 4], [7, 6], [9, 8], [11, 10], [13, 12], [14, 11], [15, 5], [16, 15], [16, 14], [17, 11], [18, 7], [19, 18], [19, 17], [20, 11], [21, 9], [22, 20], [22, 21], [23, 11], [24, 23], [27, 13], [28, 24], [28, 27], [28, 16], [29, 28], [31, 29]]}
|
void
chart_set_hole_size(lxw_chart *self, uint8_t size)
{
if (size >= 10 && size <= 90)
self->hole_size = size;
else
LXW_WARN_FORMAT1("chart_set_hole_size(): Hole size '%d' outside "
"Excel range: 10 <= size <= 90", size);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_432119", "function_addr": 4399385, "binary_name": "904bc715a64912f3c45e58cf4d0dc596e8f09d4e25313a1b7583c9384b19fb40.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4, "mov eax, esi"], [5, "mov [rbp+var_C], al"], [6, "cmp [rbp+var_C], 9"], [7, "jbe short loc_432147"], [8, "cmp [rbp+var_C], 5Ah "], [9, "ja short loc_432147"], [10, "movzx edx, [rbp+var_C]"], [11, "mov rax, [rbp+var_8]"], [12, "mov [rax+9Eh], dx"], [13, "jmp short loc_432165"], [14, "movzx edx, [rbp+var_C]"], [15, "mov rax, cs:stderr"], [16, "mov esi, offset aWarningChartSe_17"], [17, "mov rdi, rax"], [18, "mov eax, 0"], [19, "call _fprintf"], [20, "nop"], [21, "nop"], [22, "leave"], [23, "retn"]], "data_dep": [[5, 4], [6, 5], [7, 6], [8, 5], [9, 8], [10, 5], [11, 3], [12, 10], [12, 11], [14, 5], [17, 15], [23, 11], [23, 19]]}
|
void i8008_singlestep(struct i8008 *cpu, unsigned int step)
{
cpu->step = step;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403342", "function_addr": 4207426, "binary_name": "f6d19e397df5fc897a4738f9fb6aa0f2069771552cafdab9765c3b2b5810222b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_C], esi"], [4, "cmp [rbp+var_C], 0"], [5, "setnz dl"], [6, "mov rax, [rbp+var_8]"], [7, "mov [rax+2Eh], dl"], [8, "nop"], [9, "pop rbp"], [10, "retn"]], "data_dep": [[4, 3], [5, 4], [6, 2], [7, 6], [7, 5], [9, 0], [10, 6]]}
|
static void root_message_function(const mw_message_t *message)
{
bool consumed = false;
uint32_t x;
uint32_t y;
MW_ASSERT(message != (void*)0, "Null pointer argument");
/* check if the messages sent to the root window is to be consumed by the system */
switch (message->message_id)
{
case MW_TOUCH_DOWN_MESSAGE:
x = message->message_data >> 16U;
y = message->message_data & 0x0000ffffU;
consumed = check_for_restore_touch((int16_t)x, (int16_t)y);
break;
default:
/* keep MISRA happy */
break;
}
/* if the system did not consume the message pass it on to the user root window message handler */
if (!consumed)
{
mw_user_root_message_function(message);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_405FD7", "function_addr": 4218839, "binary_name": "93ff8321496f266e0636349715512c5b08cf85171f3c7301da663912d1131b72.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [4, "mov [rbp+var_1], 0"], [5, "cmp [rbp+var_18], 0"], [6, "setnz al"], [7, "movzx eax, al"], [8, "mov ecx, offset aNullPointerArg_4"], [9, "mov edx, 2D1h"], [10, "mov esi, offset aRootMessageFun"], [11, "mov edi, eax"], [12, "call sub_411B34"], [13, "mov rax, [rbp+var_18]"], [14, "mov eax, [rax+8]"], [15, "cmp eax, 14h"], [16, "jnz short loc_406048"], [17, "mov rax, [rbp+var_18]"], [18, "mov eax, [rax+10h]"], [19, "shr eax, 10h"], [20, "mov [rbp+var_8], eax"], [21, "mov rax, [rbp+var_18]"], [22, "mov eax, [rax+10h]"], [23, "and eax, 0FFFFh"], [24, "mov [rbp+var_C], eax"], [25, "mov eax, [rbp+var_C]"], [26, "movsx edx, ax"], [27, "mov eax, [rbp+var_8]"], [28, "cwde"], [29, "mov esi, edx"], [30, "mov edi, eax"], [31, "call sub_4062F2"], [32, "mov [rbp+var_1], al"], [33, "jmp short loc_406049"], [34, "nop"], [35, "movzx eax, [rbp+var_1]"], [36, "xor eax, 1"], [37, "test al, al"], [38, "jz short loc_406060"], [39, "mov rax, [rbp+var_18]"], [40, "mov rdi, rax"], [41, "call sub_403371"], [42, "nop"], [43, "leave"], [44, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [11, 7], [13, 3], [14, 13], [15, 14], [16, 15], [17, 3], [18, 17], [19, 18], [20, 19], [21, 3], [22, 21], [23, 22], [24, 23], [25, 24], [26, 25], [27, 20], [29, 26], [30, 27], [32, 31], [35, 32], [35, 4], [36, 35], [37, 36], [38, 37], [39, 3], [40, 39], [44, 41], [44, 37]]}
|
static void
_PrintFileData(ArchiveHandle *AH, char *filename)
{
lclContext *ctx = (lclContext *) AH->formatData;
char buf[4096];
size_t cnt;
TAR_MEMBER *th;
if (!filename)
return;
th = tarOpen(AH, filename, 'r');
ctx->FH = th;
while ((cnt = tarRead(buf, 4095, th)) > 0)
{
buf[cnt] = '\0';
ahwrite(buf, 1, cnt, AH);
}
tarClose(AH, th);
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43BF9E", "function_addr": 4439966, "binary_name": "c3f4a7f441ca303829131d9a7a23699182b1e72c36b1b2ec18a602e1429bd9aa.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 1030h"], [3, "mov [rbp+var_1028], rdi"], [4, "mov [rbp+var_1030], rsi"], [5, "mov rax, [rbp+var_1028]"], [6, "mov rax, [rax+238h]"], [7, "mov [rbp+var_8], rax"], [8, "cmp [rbp+var_1030], 0"], [9, "jz loc_43C072"], [10, "mov rcx, [rbp+var_1030]"], [11, "mov rax, [rbp+var_1028]"], [12, "mov edx, 72h "], [13, "mov rsi, rcx"], [14, "mov rdi, rax"], [15, "call sub_43B81D"], [16, "mov [rbp+var_10], rax"], [17, "mov rax, [rbp+var_8]"], [18, "mov rdx, [rbp+var_10]"], [19, "mov [rax+30h], rdx"], [20, "jmp short loc_43C037"], [21, "lea rdx, [rbp+var_1020]"], [22, "mov rax, [rbp+var_18]"], [23, "add rax, rdx"], [24, "mov byte ptr [rax], 0"], [25, "mov rcx, [rbp+var_1028]"], [26, "mov rdx, [rbp+var_18]"], [27, "lea rax, [rbp+var_1020]"], [28, "mov esi, 1"], [29, "mov rdi, rax"], [30, "call sub_4321BF"], [31, "mov rdx, [rbp+var_10]"], [32, "lea rax, [rbp+var_1020]"], [33, "mov esi, 0FFFh"], [34, "mov rdi, rax"], [35, "call sub_43BDB8"], [36, "mov [rbp+var_18], rax"], [37, "cmp [rbp+var_18], 0"], [38, "jnz short loc_43C007"], [39, "mov rdx, [rbp+var_10]"], [40, "mov rax, [rbp+var_1028]"], [41, "mov rsi, rdx"], [42, "mov rdi, rax"], [43, "call sub_43BA0E"], [44, "jmp short locret_43C073"], [45, "nop"], [46, "leave"], [47, "retn"]], "data_dep": [[5, 3], [6, 5], [7, 6], [8, 4], [9, 8], [10, 4], [11, 3], [13, 10], [14, 11], [16, 15], [17, 7], [18, 16], [19, 18], [19, 17], [21, 31], [22, 36], [23, 22], [23, 21], [24, 23], [25, 3], [26, 36], [27, 23], [29, 27], [31, 16], [32, 30], [32, 17], [34, 32], [36, 35], [37, 36], [38, 37], [39, 16], [40, 3], [41, 39], [42, 40], [47, 43], [47, 6]]}
|
int for_each_reflog_ent(const char *refname, each_reflog_ent_fn fn, void *cb_data)
{
FILE *logfp;
struct strbuf sb = STRBUF_INIT;
int ret = 0;
logfp = fopen(git_path("logs/%s", refname), "r");
if (!logfp)
return -1;
while (!ret && !strbuf_getwholeline(&sb, logfp, '\n'))
ret = show_one_reflog_ent(&sb, fn, cb_data);
fclose(logfp);
strbuf_release(&sb);
return ret;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4135B9", "function_addr": 4273593, "binary_name": "fe061f006c9207a403c62f4326f1088f1778f9ddddd6b2b4a2e47dc4d592c0fc.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_38], rdi"], [4, "mov [rbp+var_40], rsi"], [5, "mov [rbp+var_48], rdx"], [6, "mov [rbp+var_30], 0"], [7, "mov [rbp+var_28], 0"], [8, "mov [rbp+var_20], offset unk_4FFB21"], [9, "mov [rbp+var_4], 0"], [10, "mov rax, [rbp+var_38]"], [11, "mov rsi, rax"], [12, "mov edi, offset aLogsS"], [13, "mov eax, 0"], [14, "call sub_40B236"], [15, "mov esi, offset modes"], [16, "mov rdi, rax"], [17, "call _fopen64"], [18, "mov [rbp+stream], rax"], [19, "cmp [rbp+stream], 0"], [20, "jnz short loc_41363B"], [21, "mov eax, 0FFFFFFFFh"], [22, "jmp short locret_413678"], [23, "mov rdx, [rbp+var_48]"], [24, "mov rcx, [rbp+var_40]"], [25, "lea rax, [rbp+var_30]"], [26, "mov rsi, rcx"], [27, "mov rdi, rax"], [28, "call sub_412FA4"], [29, "mov [rbp+var_4], eax"], [30, "cmp [rbp+var_4], 0"], [31, "jnz short loc_41365D"], [32, "mov rcx, [rbp+stream]"], [33, "lea rax, [rbp+var_30]"], [34, "mov edx, 0Ah"], [35, "mov rsi, rcx"], [36, "mov rdi, rax"], [37, "call sub_409378"], [38, "test eax, eax"], [39, "jz short loc_413621"], [40, "mov rax, [rbp+stream]"], [41, "mov rdi, rax"], [42, "call _fclose"], [43, "lea rax, [rbp+var_30]"], [44, "mov rdi, rax"], [45, "call sub_40807B"], [46, "mov eax, [rbp+var_4]"], [47, "leave"], [48, "retn"]], "data_dep": [[10, 3], [11, 10], [16, 14], [18, 17], [19, 18], [20, 19], [23, 5], [24, 4], [25, 38], [25, 6], [26, 24], [27, 25], [29, 28], [30, 9], [30, 29], [31, 30], [32, 18], [33, 17], [33, 28], [33, 6], [35, 32], [36, 33], [38, 37], [39, 38], [40, 18], [41, 40], [43, 6], [43, 42], [44, 43], [46, 29], [46, 9], [48, 21], [48, 46]]}
|