LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/yupyub[P]PathFinding_Visual/DFS.cpp
// Function: DFS::sol_path(int, int)
void DFS::sol_path(int x,int y){
    if(dist[x][y] == 0) return;
    vv.state[x][y] = 1;
    vector<tuple<int,int,int> > v;
    for(int i = 0;i<4;i++){
        int nx = x+dx[i];
        int ny = y+dy[i];
        if(nx<0||ny<0||nx>=vv.N||ny>=vv.M) continue;
        v.push_back(make_tuple(dist[nx][ny],nx,ny));
    }
    sort(v.begin(),v.end());
    sol_path(get<1>(v[0]),get<2>(v[0]));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movslq %esi, %rcx
movslq %edx, %rax
imulq $0x320, %rcx, %rcx      # imm = 0x320
leaq (%rdi,%rcx), %rdx
addq $0x4e208, %rdx          # imm = 0x4E208
cmpl $0x0, (%rdx,%rax,4)
je 0x259f
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x4e208(%rdi), %r13
addq %rdi, %rcx
movl $0x1, 0x27100(%rcx,%rax,4)
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movl $0x1d4cd, %r12d         # imm = 0x1D4CD
movl -0x10(%rbx,%r12,4), %eax
addl %r14d, %eax
js 0x2523
movl (%rbx,%r12,4), %ecx
addl %ebp, %ecx
js 0x2523
cmpl 0x4e200(%rbx), %eax
jge 0x2523
cmpl 0x4e204(%rbx), %ecx
jge 0x2523
movl %eax, %edx
movl %ecx, %esi
imulq $0x320, %rdx, %rdx      # imm = 0x320
addq %r13, %rdx
movl %ecx, 0x1c(%rsp)
movl %eax, 0x20(%rsp)
movl (%rdx,%rsi,4), %eax
movl %eax, 0x24(%rsp)
movq %r15, %rdi
leaq 0x1c(%rsp), %rsi
callq 0x2832
incq %r12
cmpq $0x1d4d1, %r12          # imm = 0x1D4D1
jne 0x24d7
movq (%rsp), %r14
movq 0x8(%rsp), %r15
cmpq %r15, %r14
je 0x2578
movq %r15, %rax
subq %r14, %rax
sarq $0x2, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rcx
bsrq %rcx, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2a03
movq %r14, %rdi
movq %r15, %rsi
callq 0x2ac2
movq (%rsp), %rax
movl (%rax), %edx
movl 0x4(%rax), %esi
movq %rbx, %rdi
callq 0x2472
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x259f
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x10e0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25b0
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x25c9
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x10e0
movq %rbx, %rdi
callq 0x1190
nop
// File: /workspace/github_cpp_makefile_star2_O1/yupyub[P]PathFinding_Visual/DFS.cpp
// Function: DFS::DFS_H(int, int, int)
int DFS::DFS_H(int x,int y,int dir){ // DFS + Heuristic
    vv.state[x][y] = 3;
    vv.draw();
    itr++;
    printf("Total Iteration : %d\n",itr);
    printf("DFS Stack Count : %d\n",scnt);
    usleep(timeSet);
    vv.state[x][y] = 2;
    if(x == ex && y == ey) return 1;
    int si = 0;
    if(dir%2){
        if(ey>=y) si = 0;
        else si = 2;
    }
    else{
        if(ex>=x) si = 1;
        else si =3;
    }
    for(int i = 0;i<4;i++){
        int ni = (si+i)%4;
        int nx = x+dx[ni];
        int ny = y+dy[ni];
        if(nx<0||ny<0||nx>=vv.N||ny>=vv.M) continue;
        if(vv.map[nx][ny] != 1 && dist[nx][ny] > dist[x][y] + 1){
            if(dist[nx][ny] == INF){
                dist[nx][ny] = dist[x][y] + 1;
                scnt++;
                int ret = DFS_H(nx,ny,ni);
                scnt--;
                if(ret == 1)return 1;
            }
            else dist[nx][ny] = dist[x][y] + 1;
        }
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0x8(%rsp)
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movslq %esi, %rax
imulq $0x320, %rax, %rax      # imm = 0x320
movq %rax, 0x10(%rsp)
leaq (%rdi,%rax), %r15
movslq %edx, %r13
movl $0x3, 0x27100(%r15,%r13,4)
callq 0x32a8
movl 0x7531c(%r14), %esi
incl %esi
movl %esi, 0x7531c(%r14)
leaq 0x1bf0(%rip), %rdi      # 0x4219
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x1030
movl 0x75318(%r14), %esi
leaq 0x1bee(%rip), %rdi      # 0x422f
xorl %eax, %eax
callq 0x1030
movl 0x75320(%r14), %edi
callq 0x1160
movl $0x2, 0x27100(%r15,%r13,4)
movl 0x75310(%r14), %ecx
movl 0x75314(%r14), %edx
movl %ecx, %esi
xorl %ebp, %esi
movl %edx, %edi
xorl %ebx, %edi
movl $0x1, %eax
orl %esi, %edi
je 0x278b
xorl %eax, %eax
cmpl %r13d, %edx
setl %al
addl %eax, %eax
xorl %edx, %edx
cmpl %ebp, %ecx
setl %dl
testb $0x1, 0x8(%rsp)
leal 0x1(%rdx,%rdx), %r15d
cmovnel %eax, %r15d
leaq 0x4e208(%r14), %r10
movq 0x10(%rsp), %rax
leaq 0x4e208(%r14,%rax), %rax
leaq (%rax,%r13,4), %r11
movb $0x1, %r13b
movq %r10, 0x8(%rsp)
movq %r11, 0x10(%rsp)
leal (%r15,%r12), %ecx
andl $0x3, %ecx
movl 0x75324(%r14,%rcx,4), %esi
addl %ebp, %esi
movl $0x4, %edi
js 0x2765
movl 0x75334(%r14,%rcx,4), %edx
addl %ebx, %edx
js 0x2765
cmpl 0x4e200(%r14), %esi
jge 0x2765
cmpl 0x4e204(%r14), %edx
jge 0x2765
movl %esi, %edi
movl %edx, %eax
imulq $0x320, %rdi, %rdi      # imm = 0x320
leaq (%r14,%rdi), %r8
cmpl $0x1, (%r8,%rax,4)
je 0x2763
addq %r10, %rdi
movl (%rdi,%rax,4), %r8d
movl (%r11), %r9d
incl %r9d
cmpl %r9d, %r8d
jle 0x2763
leaq (%rdi,%rax,4), %rax
movl %r9d, (%rax)
cmpl $0x3ade68b1, %r8d       # imm = 0x3ADE68B1
jne 0x2763
incl 0x75318(%r14)
movq %r14, %rdi
callq 0x25d2
movq 0x10(%rsp), %r11
movq 0x8(%rsp), %r10
decl 0x75318(%r14)
movl $0x1, %edi
cmpl $0x1, %eax
je 0x2765
xorl %edi, %edi
testb $0x3, %dil
jne 0x2784
cmpl $0x3, %r12d
leal 0x1(%r12), %eax
setb %r13b
movl %eax, %r12d
cmpl $0x4, %eax
jne 0x26c7
movzbl %r13b, %eax
andl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yupyub[P]PathFinding_Visual/DFS.cpp
// Function: DFS::DFS_Run(int, int)
int DFS::DFS_Run(int tset, int mnum){
    Init(tset,mnum);
    dist[sx][sy] = 0;
    if(DFS_H(sx,sy,-1)){
        sol_path(ex,ey);
        vv.draw();
        printf("Total Iteration : %d / Path Distance : %d\n",itr,dist[ex][ey]);
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x235c
movslq 0x75308(%rbx), %rax
movslq 0x7530c(%rbx), %rcx
imulq $0x320, %rax, %rax      # imm = 0x320
addq %rbx, %rax
addq $0x4e208, %rax          # imm = 0x4E208
movl $0x0, (%rax,%rcx,4)
movl 0x75308(%rbx), %esi
movl 0x7530c(%rbx), %edx
movq %rbx, %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x25d2
movl 0x75310(%rbx), %esi
movl 0x75314(%rbx), %edx
movq %rbx, %rdi
callq 0x2472
movq %rbx, %rdi
callq 0x32a8
movl 0x7531c(%rbx), %esi
movslq 0x75310(%rbx), %rax
movslq 0x75314(%rbx), %rcx
imulq $0x320, %rax, %rax      # imm = 0x320
addq %rbx, %rax
addq $0x4e208, %rax          # imm = 0x4E208
movl (%rax,%rcx,4), %edx
leaq 0x19a9(%rip), %rdi      # 0x41d4
xorl %eax, %eax
callq 0x1030
// File: /workspace/github_cpp_makefile_star2_O1/yupyub[P]PathFinding_Visual/visual.cpp
// Function: Visual::read_map(int)
int Visual::read_map(int mnum){
    FILE *fp;
    std::string name = "MAP/map";
    name += std::to_string(mnum);
    name += ".txt";
    fp = fopen(name.c_str(),"r");
    if(fp == NULL){
        printf("Map Open Error\n");
        return -1;
    }
    fscanf(fp,"%d %d",&N,&M);
    for(int i = 0;i<N;i++){
        for(int j = 0;j<M;j++){
            fscanf(fp,"%1d",&map[i][j]);
        }
    }
    fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x48(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x11a9(%rip), %rsi      # 0x4245
leaq 0x11a9(%rip), %rdx      # 0x424c
leaq 0x38(%rsp), %rdi
callq 0x3440
movl %r14d, %ebp
negl %ebp
cmovsl %r14d, %ebp
movl $0x1, %r15d
cmpl $0xa, %ebp
jb 0x310a
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x3101
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3107
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x310a
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x30ce
addl $-0x3, %r15d
jmp 0x310a
addl $-0x2, %r15d
jmp 0x310a
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x18(%rsp), %rdi
movl $0x2d, %edx
callq 0x1110
movl %r14d, %edi
addq 0x18(%rsp), %rdi
movl %r15d, %esi
movl %ebp, %edx
callq 0x33d2
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
leaq 0x38(%rsp), %rdi
callq 0x1040
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x3168
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x10e0
leaq 0x10de(%rip), %rsi      # 0x424d
leaq 0x38(%rsp), %rdi
callq 0x11c0
movq 0x38(%rsp), %rdi
leaq 0xe83(%rip), %rsi       # 0x4008
callq 0x1130
testq %rax, %rax
jne 0x31c6
leaq 0x10f0(%rip), %rdi      # 0x4286
callq 0x1180
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x31b2
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x10e0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x4e200(%rbx), %rdx
leaq 0x4e204(%rbx), %r12
leaq 0x1074(%rip), %rsi      # 0x4252
movq %rax, %rdi
movq %rdx, (%rsp)
movq %r12, %rcx
xorl %eax, %eax
callq 0x11b0
movq (%rsp), %rax
cmpl $0x0, (%rax)
jle 0x325d
movq %rbx, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
cmpl $0x0, 0x4e204(%rbx)
jle 0x323b
movq 0x8(%rsp), %rbp
xorl %r15d, %r15d
movq %r14, %rdi
leaq 0x1037(%rip), %rsi      # 0x4258
movq %rbp, %rdx
xorl %eax, %eax
callq 0x11b0
incq %r15
movslq (%r12), %rax
addq $0x4, %rbp
cmpq %rax, %r15
jl 0x3217
movq 0x10(%rsp), %rdx
incq %rdx
movq (%rsp), %rax
movslq (%rax), %rax
addq $0x320, 0x8(%rsp)       # imm = 0x320
movq %rdx, 0x10(%rsp)
cmpq %rax, %rdx
jl 0x3206
movq %r14, %rdi
callq 0x10c0
jmp 0x3285
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x3288
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x10e0
jmp 0x3288
jmp 0x3285
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x329f
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x10e0
movq %rbx, %rdi
callq 0x1190
nop
// File: /workspace/github_cpp_makefile_star2_O1/yupyub[P]PathFinding_Visual/visual.cpp
// Function: Visual::draw()
void Visual::draw(){
    system("clear");
    for(int i = 0;i<M+2;i++) printf("#");
    printf("\n");
    for(int i = 0;i<N;i++){
        printf("#");
        for(int j = 0;j<M;j++){
            if(map[i][j] == 1) printf("#");
            else if(map[i][j] == 2) printf("S");
            else if(map[i][j] == 3) printf("E");
            else if(state[i][j] == 1)printf("O");
            else if(state[i][j] == 3)printf("O");
            else if(state[i][j] == 2)printf(".");
            else if(state[i][j] == 0)printf(" ");
        }
        printf("#\n");
    }
    for(int i = 0;i<M+2;i++) printf("#");
    printf("\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xd47(%rip), %rdi       # 0x4004
callq 0x10b0
cmpl $-0x1, 0x4e204(%rbx)
jl 0x32e4
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x23, %edi
callq 0x1150
incl %ebp
cmpl 0x4e204(%rbx), %ebp
jle 0x32d0
movl $0xa, %edi
callq 0x1150
cmpl $0x0, 0x4e200(%rbx)
jle 0x3398
leaq 0x27100(%rbx), %r15
xorl %r12d, %r12d
leaq 0x1060(%rip), %r13      # 0x436c
leaq 0x1065(%rip), %rbp      # 0x4378
movl $0x23, %edi
callq 0x1150
cmpl $0x0, 0x4e204(%rbx)
jle 0x3372
xorl %r14d, %r14d
movl -0x27100(%r15,%r14,4), %eax
decl %eax
cmpl $0x3, %eax
jae 0x3347
movl %eax, %eax
leaq (,%rax,4), %rax
addq %r13, %rax
jmp 0x335c
movl (%r15,%r14,4), %eax
cmpq $0x4, %rax
jae 0x3363
leaq (,%rax,4), %rax
addq %rbp, %rax
movl (%rax), %edi
callq 0x1150
incq %r14
movslq 0x4e204(%rbx), %rax
cmpq %rax, %r14
jl 0x3329
leaq 0xf1c(%rip), %rdi       # 0x4295
callq 0x1180
incq %r12
movslq 0x4e200(%rbx), %rax
addq $0x320, %r15            # imm = 0x320
cmpq %rax, %r12
jl 0x3313
cmpl $-0x1, 0x4e204(%rbx)
jl 0x33ba
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x23, %edi
callq 0x1150
incl %ebp
cmpl 0x4e204(%rbx), %ebp
jle 0x33a6
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1150
// File: /workspace/github_cpp_makefile_star2_O1/yupyub[P]PathFinding_Visual/linuxfunc.cpp
// Function: init_keyboard()
void init_keyboard(){
    tcgetattr(0,&initial_settings);
    new_settings = initial_settings;
    new_settings.c_lflag &= ~ICANON;
    new_settings.c_lflag &= ~ECHO;
    new_settings.c_cc[VMIN] = 1;
    new_settings.c_cc[VTIME] = 0;
    tcsetattr(0, TCSANOW, &new_settings);
}

// Assembly:
pushq %rax
leaq 0x3c30(%rip), %rsi      # 0x7108
xorl %edi, %edi
callq 0x10f0
movups 0x3c22(%rip), %xmm0     # 0x7108
movups %xmm0, 0x3c57(%rip)     # 0x7144
movups 0x3c24(%rip), %xmm0     # 0x7118
movups %xmm0, 0x3c59(%rip)     # 0x7154
movups 0x3c26(%rip), %xmm0     # 0x7128
movups %xmm0, 0x3c5b(%rip)     # 0x7164
movups 0x3c24(%rip), %xmm0     # 0x7134
movups %xmm0, 0x3c59(%rip)     # 0x7170
leaq 0x3c26(%rip), %rdx      # 0x7144
andb $-0xb, 0x3c2b(%rip)     # 0x7150
movw $0x100, 0x3c2c(%rip)    # imm = 0x100
xorl %edi, %edi
xorl %esi, %esi
popq %rax
jmp 0x1140
// File: /workspace/github_cpp_makefile_star2_O1/yupyub[P]PathFinding_Visual/linuxfunc.cpp
// Function: kbhit()
int _kbhit(){
    unsigned char ch;
    int nread;
    if (peek_character != -1) return 1;
    new_settings.c_cc[VMIN]=0;
    tcsetattr(0, TCSANOW, &new_settings);
    nread = read(0,&ch,1);
    new_settings.c_cc[VMIN]=1;
    tcsetattr(0, TCSANOW, &new_settings);
    if(nread == 1) {
        peek_character = ch;
        return 1;
    }
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl $0x1, %ebx
cmpl $-0x1, 0x3ba3(%rip)     # 0x7100
jne 0x35b8
movb $0x0, 0x3bf5(%rip)      # 0x715b
leaq 0x3bd7(%rip), %r14      # 0x7144
xorl %ebx, %ebx
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1140
leaq 0xf(%rsp), %rsi
movl $0x1, %edx
xorl %edi, %edi
callq 0x1170
movq %rax, %r15
movb $0x1, 0x3bc5(%rip)      # 0x715b
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1140
cmpl $0x1, %r15d
jne 0x35b8
movzbl 0xf(%rsp), %eax
movl %eax, 0x3b4d(%rip)      # 0x7100
movl $0x1, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/yupyub[P]PathFinding_Visual/linuxfunc.cpp
// Function: getch()
int _getch(){
    char ch;
    if(peek_character != -1) {
        ch = peek_character;
        peek_character = -1;
        return ch;
    }
    read(0,&ch,1);
    return ch;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl 0x3b31(%rip), %eax      # 0x7100
cmpl $-0x1, %eax
je 0x35e7
movb %al, 0xf(%rsp)
movl $0xffffffff, 0x3b1e(%rip) # imm = 0xFFFFFFFF
movsbl %al, %eax
jmp 0x35fe
leaq 0xf(%rsp), %rbx
movl $0x1, %edx
xorl %edi, %edi
movq %rbx, %rsi
callq 0x1170
movsbl (%rbx), %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/nmmmnu[P]asyncore_cpp/net/test/test_iobuffer.cc
// Function: test(char const*)
void test(const char *module = "iobuffer"){
	using Buffer = net::IOBuffer<8>;

	Buffer b;

	std::string s;

	testPush(module, "push",		"aaa",	b, s);
	testPush(module, "push zero",		"",	b, s, false);
	testPush(module, "push",		"bbb",	b, s);
	testPush(module, "push overflow",	"ccc",	b, s, false);
	testPush(module, "push limit",		"dd",	b, s);
	testPush(module, "push overflow",	"ccc",	b, s, false);

	testPop( module, "pop",			3,	b, s);
	testPop( module, "pop zero",		0,	b, s, false);
	testPop( module, "pop",			3,	b, s);
	testPop( module, "pop overflow",	3,	b, s, false);
	testPop( module, "pop limit",		2,	b, s);
	testPop( module, "pop overflow",	3,	b, s, false);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
leaq -0x1c(%rbp), %rcx
movl $0x0, (%rcx)
leaq -0x30(%rbp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0xe25(%rip), %rsi       # 0x2004
leaq 0xe23(%rip), %rdx       # 0x2009
leaq -0x40(%rbp), %r8
movl $0x1, %r9d
callq 0x13a4
leaq 0xe11(%rip), %rsi       # 0x200d
leaq 0xe7c(%rip), %rdx       # 0x207f
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0x13a4
leaq 0xde7(%rip), %rsi       # 0x2004
leaq 0xdf3(%rip), %rdx       # 0x2017
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x13a4
leaq 0xdda(%rip), %rsi       # 0x201b
leaq 0xde1(%rip), %rdx       # 0x2029
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0x13a4
leaq 0xdcb(%rip), %rsi       # 0x202d
leaq 0xdcf(%rip), %rdx       # 0x2038
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x13a4
leaq 0xd95(%rip), %rsi       # 0x201b
leaq 0xd9c(%rip), %rdx       # 0x2029
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0x13a4
leaq 0xd94(%rip), %rsi       # 0x203b
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movl $0x3, %edx
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x1466
leaq 0xd76(%rip), %rsi       # 0x203f
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movq %rbx, %rdi
xorl %edx, %edx
xorl %r9d, %r9d
callq 0x1466
leaq 0xd56(%rip), %rsi       # 0x203b
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movl $0x3, %edx
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x1466
leaq 0xd41(%rip), %rsi       # 0x2048
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movl $0x3, %edx
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0x1466
leaq 0xd2f(%rip), %rsi       # 0x2055
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movl $0x2, %edx
movq %rbx, %rdi
movl $0x1, %r9d
callq 0x1466
leaq 0xd00(%rip), %rsi       # 0x2048
leaq -0x1c(%rbp), %rcx
leaq -0x40(%rbp), %r8
movl $0x3, %edx
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0x1466
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x136e
callq 0x1060
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0x1388
callq 0x1060
movq %rbx, %rdi
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O1/nmmmnu[P]asyncore_cpp/net/test/test_iobuffer.cc
// Function: void testPush<net::IOBuffer<8ul, true>>(char const*, char const*, char const*, net::IOBuffer<8ul, true>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool)
void testPush(const char *module, const char *msg, const char *data, BUFFER &b, std::string &s, bool const expect = true){
	bool const result = b.push(data);

	if (expect)
		s += data;

	PRINTF_TEST(msg,	result == expect			);
	PRINTF_TEST("value",	s.compare(0, s.size(), b.data()) == 0	);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r12d
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, -0x30(%rbp)
movq %rdi, -0x38(%rbp)
movq %rcx, %rdi
movq %rdx, %rsi
callq 0x1592
movl %eax, %ebx
testl %r12d, %r12d
je 0x13e6
movq %r14, %rdi
movq %r13, %rsi
callq 0x10a0
xorb %r12b, %bl
leaq 0xc93(%rip), %rax       # 0x2083
leaq 0xc89(%rip), %r12       # 0x2080
movq %r12, %rcx
cmovneq %rax, %rcx
leaq 0xc63(%rip), %rbx       # 0x2068
movq %rbx, %rdi
movq -0x38(%rbp), %r13
movq %r13, %rsi
movq -0x30(%rbp), %rdx
xorl %eax, %eax
callq 0x1030
movq 0x8(%r14), %rdx
movzwl (%r15), %eax
leaq (%r15,%rax), %rcx
addq $0x4, %rcx
movq %r14, %rdi
xorl %esi, %esi
callq 0x1070
testl %eax, %eax
leaq 0xc46(%rip), %rax       # 0x2083
cmovneq %rax, %r12
leaq 0xc40(%rip), %rdx       # 0x2088
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rcx
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_cpp_makefile_star2_O1/nmmmnu[P]asyncore_cpp/net/test/test_iobuffer.cc
// Function: void testPop<net::IOBuffer<8ul, true>>(char const*, char const*, unsigned long, net::IOBuffer<8ul, true>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, bool)
void testPop(const char *module, const char *msg, size_t const size, BUFFER &b, std::string &s, bool const expect = true){
	bool const result = b.pop(size);

	if (expect)
		s.erase(0, size);

	PRINTF_TEST(msg, result == expect);

	if (s.empty()){
		PRINTF_TEST("size zero",	b.size() == 0				);
		PRINTF_TEST("capacity",		b.capacity() == b.max_size()		);
	}else{
		PRINTF_TEST("value",		s.compare(0, s.size(), b.data()) == 0	);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r12d
movq %r8, %r15
movq %rcx, %r14
movq %rsi, %r8
movq %rdi, %rbx
testq %rdx, %rdx
je 0x14a8
movzwl 0x2(%r14), %ecx
movzwl (%r14), %eax
subq %rax, %rcx
cmpq %rdx, %rcx
setae %r13b
jb 0x14b6
jne 0x14ad
movl $0x0, (%r14)
jmp 0x14b3
xorl %r13d, %r13d
jmp 0x14b6
addl %edx, %eax
movw %ax, (%r14)
movb $0x1, %r13b
testb %r12b, %r12b
je 0x14d9
movq %r15, %rdi
xorl %esi, %esi
movq %r15, -0x30(%rbp)
movq %rbx, %r15
movq %r8, %rbx
callq 0x1040
movq %rbx, %r8
movq %r15, %rbx
movq -0x30(%rbp), %r15
xorb %r12b, %r13b
leaq 0xba0(%rip), %r12       # 0x2083
leaq 0xb96(%rip), %r13       # 0x2080
movq %r13, %rcx
cmovneq %r12, %rcx
leaq 0xb70(%rip), %rdi       # 0x2068
movq %rbx, %rsi
movq %r8, %rdx
xorl %eax, %eax
callq 0x1030
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x1532
movzwl (%r14), %eax
leaq (%r14,%rax), %rcx
addq $0x4, %rcx
movq %r15, %rdi
xorl %esi, %esi
callq 0x1070
testl %eax, %eax
sete %al
leaq 0xb58(%rip), %rdx       # 0x2088
jmp 0x156a
movzwl 0x2(%r14), %eax
cmpw (%r14), %ax
movq %r13, %rcx
cmovneq %r12, %rcx
leaq 0xb1f(%rip), %rdi       # 0x2068
leaq 0xb3e(%rip), %rdx       # 0x208e
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1030
cmpw $0x0, 0x2(%r14)
sete %al
leaq 0xb2e(%rip), %rdx       # 0x2098
testb %al, %al
cmovneq %r13, %r12
leaq 0xaf1(%rip), %rdi       # 0x2068
movq %rbx, %rsi
movq %r12, %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/server_files/server.cpp
// Function: close_handler(int)
void close_handler(int s){
	cout<<endl<<"Terminating.."<<endl;
	client_socket.closeConnection();						
	KeyManager::destroyKeys();
	close(server_socket);
	exit(s);
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movq 0xb23a(%rip), %rdi      # 0xffd0
callq 0x4230
leaq 0x627e(%rip), %rsi      # 0xb020
movq %rax, %rdi
callq 0x4450
movq %rax, %rdi
callq 0x4230
leaq 0xb7c7(%rip), %rdi      # 0x10580
callq 0x6840
callq 0x9f40
movl 0xb7bf(%rip), %edi      # 0x10588
callq 0x4920
movl %ebx, %edi
callq 0x45b0
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/server_files/server.cpp
// Function: isClientAuthorized(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, char const*)
bool isClientAuthorized(string& clientName, const char* filePath){

	ifstream file(filePath);
	if(!file){
		cerr<<"Error opening file"<<endl;
		return false;
	}

	while(!file.eof()){
		string name;
		file>>name;
		if(name == clientName){
			file.close();
			return true;
		}

	}

	file.close();
	return false;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rdi, %rbx
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x4890
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x48(%rsp,%rax)
je 0x4e52
movq 0xb1e2(%rip), %rbx      # 0xfff0
leaq 0x6219(%rip), %rsi      # 0xb02e
movl $0x12, %edx
movq %rbx, %rdi
callq 0x4530
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4440
movsbl %al, %esi
movq 0xb1b0(%rip), %rdi      # 0xfff0
callq 0x4040
movq %rax, %rdi
callq 0x4330
jmp 0x4f1f
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x48(%rsp,%rax)
jne 0x4f15
leaq 0x18(%rsp), %r12
leaq 0x28(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x4600
movq 0x10(%rsp), %rdx
cmpq 0x8(%rbx), %rdx
jne 0x4eb8
testq %rdx, %rdx
je 0x4ebc
movq (%rbx), %rsi
movq 0x8(%rsp), %rdi
callq 0x4490
testl %eax, %eax
sete %bpl
jmp 0x4ebf
xorl %ebp, %ebp
jmp 0x4ebf
movb $0x1, %bpl
testb %bpl, %bpl
je 0x4eea
movq %r14, %rdi
callq 0x40d0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4ee3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4480
testb %bpl, %bpl
je 0x4f01
jmp 0x4f3d
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4f01
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4480
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x48(%rsp,%rax)
je 0x4e75
leaq 0x28(%rsp), %rdi
callq 0x40d0
xorl %ebx, %ebx
leaq 0x28(%rsp), %rdi
callq 0x4130
movl %ebx, %eax
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bl
jmp 0x4f21
movq %rax, %rbx
jmp 0x4f60
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4f60
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4480
leaq 0x28(%rsp), %rdi
callq 0x4130
movq %rbx, %rdi
callq 0x4830
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/server_files/server.cpp
// Function: cmd_upload()
bool cmd_upload(){
	int len;

	char* encryted_data = recvDataHMAC(client_socket,len);
	if(encryted_data == NULL)
		return false;


	EncryptedChunk ec;
	ec.setCipherText(encryted_data);				//now in charge of memory management
	ec.size = len;

	Chunk c;

	DecryptManager dm;
	if(!dm.DecryptUpdate(c,ec))			return false;
	if(!dm.DecryptFinal(c))				return false;

	string filename(c.getPlainText());

	string path(SERVER_PATH);
	if(!ReceiveFile(path,filename,client_socket,public_key_rsa,false)){
		cout << "[ERROR]" << endl;
		return false;
	}

	return true;

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
leaq 0xb0bd(%rip), %rdi      # 0x10580
leaq 0xc(%rsp), %rsi
callq 0x6f64
testq %rax, %rax
je 0x5637
movq %rax, %rbx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0xa1da
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa228
movl 0xc(%rsp), %eax
movl %eax, 0x58(%rsp)
leaq 0x30(%rsp), %rdi
callq 0xa0c4
movq %rsp, %rdi
callq 0x7e5c
movq %rsp, %rdi
leaq 0x30(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x7efa
testb %al, %al
je 0x5617
movq %rsp, %rdi
leaq 0x30(%rsp), %rsi
callq 0x8018
testb %al, %al
je 0x5617
leaq 0x30(%rsp), %rdi
callq 0xa192
leaq 0x60(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rax, %rsi
callq 0x66c4
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x5adb(%rip), %rsi      # 0xb041
leaq 0x5aea(%rip), %rdx      # 0xb057
leaq 0x10(%rsp), %rdi
callq 0x6792
leaq 0xb002(%rip), %rdx      # 0x10580
leaq 0xb00b(%rip), %rcx      # 0x10590
leaq 0x10(%rsp), %rdi
leaq 0x60(%rsp), %rsi
xorl %r8d, %r8d
callq 0x8daa
movl %eax, %ebx
testb %al, %al
jne 0x55e3
movq 0xaa2c(%rip), %r14      # 0xffd0
leaq 0x5b0d(%rip), %rsi      # 0xb0b8
movl $0x7, %edx
movq %r14, %rdi
callq 0x4530
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x4440
movsbl %al, %esi
movq 0xa9fa(%rip), %rdi      # 0xffd0
callq 0x4040
movq %rax, %rdi
callq 0x4330
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x55fa
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4480
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5619
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4480
jmp 0x5619
xorl %ebx, %ebx
movq %rsp, %rdi
callq 0x7ee6
leaq 0x30(%rsp), %rdi
callq 0xa0d8
leaq 0x48(%rsp), %rdi
callq 0xa1ee
jmp 0x5639
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x566b
jmp 0x5694
jmp 0x5694
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x566b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4480
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5697
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x4480
jmp 0x5697
movq %rax, %rbx
jmp 0x569f
jmp 0x568f
movq %rax, %rbx
jmp 0x56a9
movq %rax, %rbx
movq %rsp, %rdi
callq 0x7ee6
leaq 0x30(%rsp), %rdi
callq 0xa0d8
leaq 0x48(%rsp), %rdi
callq 0xa1ee
movq %rbx, %rdi
callq 0x4830
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/server_files/server.cpp
// Function: initialize_server(int)
int initialize_server(int port){
	
	int listener;
	int status;

	if(port <= 0){
		cout<<"Port error"<<endl;
		exit(-1);
	}

	listener = socket(AF_INET, SOCK_STREAM, 0);
	if(listener < 0){
		cout<<"[Error] socket"<<endl;
		exit(-1);
	}

	struct sockaddr_in listenerAddress;
	memset(&listenerAddress,0,sizeof(listenerAddress));
	
	listenerAddress.sin_port = htons(port);
	listenerAddress.sin_family = AF_INET;
	inet_pton(AF_INET,"0.0.0.0",&listenerAddress.sin_addr);


	status = bind(listener, (struct sockaddr*)& listenerAddress, sizeof(listenerAddress));
	if(status < 0){
		perror("[Error] bind\n");
		exit(-1);
	}

	status = listen(listener,10);
	if(status < 0){
		perror("[Error] listen\n");
		exit(-1);
	}


	return listener;

}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
testl %edi, %edi
jle 0x5753
movl %edi, %ebp
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x4120
testl %eax, %eax
js 0x5763
movl %eax, %ebx
xorps %xmm0, %xmm0
leaq 0x4(%rsp), %rdx
movaps %xmm0, -0x4(%rdx)
rolw $0x8, %bp
movw %bp, -0x2(%rdx)
movw $0x2, -0x4(%rdx)
leaq 0x59bd(%rip), %rsi      # 0xb0da
movl $0x2, %edi
callq 0x48c0
movq %rsp, %rsi
movl %ebx, %edi
movl $0x10, %edx
callq 0x40c0
testl %eax, %eax
js 0x5788
movl %ebx, %edi
movl $0xa, %esi
callq 0x4500
testl %eax, %eax
js 0x578d
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
movq 0xa876(%rip), %rdi      # 0xffd0
leaq 0x595f(%rip), %rsi      # 0xb0c0
jmp 0x5771
movq 0xa866(%rip), %rdi      # 0xffd0
leaq 0x595a(%rip), %rsi      # 0xb0cb
callq 0x4450
movq %rax, %rdi
callq 0x4230
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x45b0
callq 0x4955
callq 0x4940
// File: /workspace/github_cpp_makefile_star2_O1/luigix25[P]SSLP/server_files/server.cpp
// Function: receive_command(int&)
bool receive_command(int &command){

	int len;
	char *raw_data = recvDataHMAC(client_socket,len);

	if(raw_data == NULL){
		cout<<"[Error] receive command"<<endl;
		return false;
	}

	EncryptedChunk ec;
	ec.size = len;
	ec.setCipherText(raw_data);

	Chunk c;

	DecryptManager dm;
	dm.DecryptUpdate(c,ec);
	dm.DecryptFinal(c);

	//il plaintext è un numero

	command = c.getInt();

	//delete[] c.plaintext;			//non mi serve più
	//delete[] ec.ciphertext;

	return true;


}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
leaq 0xaddb(%rip), %rdi      # 0x10580
leaq 0xc(%rsp), %rsi
callq 0x6f64
movq %rax, %rbx
testq %rax, %rax
je 0x5833
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0xa1da
movl 0xc(%rsp), %eax
movl %eax, 0x10(%r15)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xa228
leaq 0x10(%rsp), %rdi
callq 0xa0c4
movq %rsp, %rdi
callq 0x7e5c
movq %rsp, %rdi
leaq 0x10(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x7efa
movq %rsp, %rdi
leaq 0x10(%rsp), %rsi
callq 0x8018
leaq 0x10(%rsp), %rdi
callq 0xa1d2
movl %eax, (%r14)
movq %rsp, %rdi
callq 0x7ee6
leaq 0x10(%rsp), %rdi
callq 0xa0d8
leaq 0x28(%rsp), %rdi
callq 0xa1ee
jmp 0x5875
movq 0xa796(%rip), %r14      # 0xffd0
leaq 0x58bf(%rip), %rsi      # 0xb100
movl $0x17, %edx
movq %r14, %rdi
callq 0x4530
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4440
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x4330
testq %rbx, %rbx
setne %al
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x589c
jmp 0x588c
movq %rax, %rbx
jmp 0x58a6
movq %rax, %rbx
movq %rsp, %rdi
callq 0x7ee6
leaq 0x10(%rsp), %rdi
callq 0xa0d8
leaq 0x28(%rsp), %rdi
callq 0xa1ee
movq %rbx, %rdi
callq 0x4830
// File: /workspace/github_cpp_makefile_star2_O1/iZhangHui[P]CppPrimer/CH16_TemplatesAndGenericProgramming/examples/special.cc
// Function: main
int main()
{
	int i = 42;
	f(i);  // calls f(T), f(const T*) isn't viable

	f(&i); // calls f(T), which is an exact match,
	       // f(const T*) requires a conversion
	cout << "=====================" << endl;

	g(i);  // calls g(T), g(T*) isn't viable
	g(&i); // calls g(T*), both templates are viable,
	       // but g(T*) is more specialized

	cout << "=====================" << endl;

	int* p = &i;
	const int ci = 0;
	const int* p2 = &ci;
	g(42);   g(p);  // g(T) g(T*)
	g(ci);   g(p2); // g(T) g(T*)
	cout << "=====================" << endl;
	f(42);   f(p);  // f(T) f(T)
	f(ci);   f(p2); // f(T) f(T*)

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
leaq -0x28(%rbp), %rbx
movl $0x2a, (%rbx)
movl $0x2a, %edi
callq 0x1316
movq %rbx, %rdi
callq 0x1364
movq 0x2dda(%rip), %r14      # 0x3fd8
leaq 0xdff(%rip), %r15       # 0x2004
movl $0x15, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1070
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
movl (%rbx), %edi
callq 0x13b2
movq %rbx, %rdi
callq 0x1400
movl $0x15, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1070
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
leaq -0x24(%rbp), %r12
movl $0x0, (%r12)
movl $0x2a, %edi
callq 0x13b2
movq %rbx, %rdi
callq 0x1400
xorl %edi, %edi
callq 0x13b2
movq %r12, %rdi
callq 0x144e
movl $0x15, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1070
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %r14, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
movl $0x2a, %edi
callq 0x1316
movq %rbx, %rdi
callq 0x1364
xorl %edi, %edi
callq 0x1316
movq %r12, %rdi
callq 0x149c
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/Image.cpp
// Function: Image::resize(int, int, int)
bool
Image::resize(int w_, int h_, int nc_)
{
  if (w == w_ && h == h_ && nc == nc_)
    return true;

  if (w_ < 0 || h_ < 0 || nc_ < 0)
  {
    std::cerr << "Image dimensions must be non-negative" << std::endl;
    return false;
  }

  std::free(buf);

  size_t num_bytes = (size_t)(w_ * h_ * nc_);
  if (num_bytes > 0)
    buf = (unsigned char *)std::malloc(num_bytes);
  else
    buf = NULL;

  w = w_;
  h = h_;
  nc = nc_;

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r12d
movq %rdi, %r15
movb $0x1, %bl
cmpl %esi, (%rdi)
jne 0x4b13
cmpl %r14d, 0x4(%r15)
jne 0x4b13
cmpl %ebp, 0x8(%r15)
je 0x4b94
movl %r14d, %eax
orl %r12d, %eax
orl %ebp, %eax
js 0x4b3d
movq 0x10(%r15), %rdi
callq 0x4390
movl %r14d, %eax
imull %r12d, %eax
imull %ebp, %eax
testl %eax, %eax
je 0x4b83
movl %eax, %edi
callq 0x4400
jmp 0x4b85
movq 0x334ac(%rip), %rbx     # 0x37ff0
leaq 0x27513(%rip), %rsi     # 0x2c05e
movl $0x25, %edx
movq %rbx, %rdi
callq 0x4370
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
xorl %ebx, %ebx
jmp 0x4b94
xorl %eax, %eax
movq %rax, 0x10(%r15)
movl %r12d, (%r15)
movl %r14d, 0x4(%r15)
movl %ebp, 0x8(%r15)
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/Image.cpp
// Function: Image::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
bool
Image::load(std::string const & path, int req_nc)
{
  std::free(buf);
  buf = stbi_load(path.c_str(), &w, &h, &nc, req_nc);

  if (!buf)
  {
    std::cerr << "Could not load image from " << path << std::endl;
    return false;
  }

  if (req_nc != 0)
    nc = req_nc;

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r12
movq 0x10(%rdi), %rdi
callq 0x4390
movq (%r14), %rdi
leaq 0x4(%r12), %rdx
leaq 0x8(%r12), %r15
movq %r12, %rsi
movq %r15, %rcx
movl %ebp, %r8d
callq 0x14618
movq %rax, %rbx
movq %rax, 0x10(%r12)
testq %rax, %rax
je 0x4c7a
testl %ebp, %ebp
je 0x4cce
movl %ebp, (%r15)
jmp 0x4cce
movq 0x3336f(%rip), %r15     # 0x37ff0
leaq 0x2737c(%rip), %rsi     # 0x2c004
movl $0x1a, %edx
movq %r15, %rdi
callq 0x4370
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x4370
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
testq %rbx, %rbx
setne %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/Image.cpp
// Function: Image::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) const
bool
Image::save(std::string const & path) const
{
  if (path.length() >= 4)
  {
    std::string ext = toLower(path.substr(path.length() - 4, 4));
    bool ok = true;
    if (ext == ".png")
    {
      ok = (bool)stbi_write_png(path.c_str(), w, h, nc, buf, w * nc);
      if (ok) return true;
    }
    else if (ext == ".bmp")
    {
      ok = (bool)stbi_write_bmp(path.c_str(), w, h, nc, buf);
      if (ok) return true;
    }

    if (!ok)
    {
      std::cerr << "Error load image: " << path << std::endl;
      return false;
    }
  }

  std::cerr << "Unsupported output image format: " << path << std::endl;
  return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq 0x8(%rsi), %rdx
cmpq $0x4, %rdx
jb 0x4e72
movq %rdi, %r14
addq $-0x4, %rdx
leaq 0x28(%rsp), %r15
movl $0x4, %ecx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4340
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x4a7c
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4dd7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4320
leaq 0x27241(%rip), %rsi     # 0x2c01f
leaq 0x8(%rsp), %rdi
callq 0x4110
testl %eax, %eax
je 0x4e1a
leaq 0x27231(%rip), %rsi     # 0x2c024
leaq 0x8(%rsp), %rdi
callq 0x4110
testl %eax, %eax
jne 0x4e4f
movq (%rbx), %rdi
movl (%r14), %esi
movl 0x4(%r14), %edx
movl 0x8(%r14), %ecx
movq 0x10(%r14), %r8
callq 0x2384c
jmp 0x4e38
movq (%rbx), %rdi
movl (%r14), %esi
movl 0x4(%r14), %edx
movl 0x8(%r14), %ecx
movq 0x10(%r14), %r8
movl %ecx, %r9d
imull %esi, %r9d
callq 0x25307
testl %eax, %eax
setne %al
je 0x4e47
xorl %r14d, %r14d
movb $0x1, %bpl
jmp 0x4e52
testb %al, %al
je 0x4ed9
movb $0x1, %r14b
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4e6d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
testb %r14b, %r14b
je 0x4ec8
movq 0x33177(%rip), %r14     # 0x37ff0
leaq 0x271bc(%rip), %rsi     # 0x2c03c
movl $0x21, %edx
movq %r14, %rdi
callq 0x4370
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x4370
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
xorl %ebp, %ebp
andb $0x1, %bpl
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x33110(%rip), %rdi     # 0x37ff0
leaq 0x27142(%rip), %rsi     # 0x2c029
movl $0x12, %edx
callq 0x4370
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x330f1(%rip), %rdi     # 0x37ff0
callq 0x4370
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
xorl %ebp, %ebp
xorl %r14d, %r14d
jmp 0x4e52
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4f6e
movq 0x38(%rsp), %rsi
jmp 0x4f66
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4f6e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x45c0
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/MeshInfo.cpp
// Function: TriangleMesh::clear()
void
TriangleMesh::clear()
{
  for (auto it = triangles.begin(); it != triangles.end(); ++it)
  {
    delete *it;
  }

  for (auto it = vertices.begin(); it != vertices.end(); ++it)
  {
    delete *it;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %r14
cmpq 0x20(%rdi), %r14
je 0x50d1
movq (%r14), %rdi
testq %rdi, %rdi
je 0x50c7
movl $0xc, %esi
callq 0x4320
addq $0x8, %r14
cmpq 0x20(%rbx), %r14
jne 0x50b5
movq (%rbx), %r14
cmpq 0x8(%rbx), %r14
je 0x50f2
movq (%r14), %rdi
testq %rdi, %rdi
je 0x50ec
movl $0x18, %esi
callq 0x4320
addq $0x8, %r14
jmp 0x50d4
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/MeshInfo.cpp
// Function: getFirstValue(std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char>>&, int&)
bool
getFirstValue(std::istringstream & ss, int & value)
{
  std::string s;

  if (ss >> s)
  {
    std::istringstream valuestream(s);
    if (valuestream >> value)
      return true;
  }

  return false;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rsi, %rbx
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq $0x0, -0x8(%r14)
movb $0x0, (%r14)
leaq 0x8(%rsp), %rsi
callq 0x43c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x5183
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movl $0x8, %edx
callq 0x4540
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x41f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movb 0x20(%rax,%rcx), %bl
movq 0x32e61(%rip), %rsi     # 0x37fc8
leaq 0x28(%rsp), %rdi
callq 0x4460
leaq 0xa0(%rsp), %rdi
callq 0x4130
testb $0x5, %bl
je 0x51a9
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x519c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movl %ebx, %eax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r14
retq
movb $0x1, %bl
jmp 0x5185
movq %rax, %rbx
movq 0x32e11(%rip), %rsi     # 0x37fc8
leaq 0x28(%rsp), %rdi
callq 0x4460
leaq 0xa0(%rsp), %rdi
callq 0x4130
jmp 0x51d5
jmp 0x51d2
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x51ec
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x45c0
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/Algebra3.hpp
// Function: operator>>(std::istream&, Vec3&)
inline std::istream & operator >> (std::istream & s, Vec3 & v)
{
  Vec3 v_tmp;
  char c = ' ';

  while (std::isspace(c))
    s >> c;

  // The vectors can be formatted either as x y z or | x y z |
  if (c == '|')
  {
    s >> v_tmp[0] >> v_tmp[1] >> v_tmp[2];
    while (s >> c && std::isspace(c)) ;
    if (c != '|')
      s.setstate(std::ios::badbit);
  }
  else
  {
    s.putback(c);
    s >> v_tmp[0] >> v_tmp[1] >> v_tmp[2];
  }

  if (s)
    v = v_tmp;

  return s;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movb $0x20, 0xf(%rsp)
movl $0x20, %edi
callq 0x4070
testl %eax, %eax
je 0x555e
leaq 0xf(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x43e0
movb 0xf(%rsp), %bpl
movsbl %bpl, %edi
callq 0x4070
testl %eax, %eax
jne 0x553f
jmp 0x5561
movb $0x20, %bpl
cmpb $0x7c, %bpl
jne 0x55da
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4210
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x4210
leaq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x4210
leaq 0xf(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x43e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x55ba
movsbl 0xf(%rsp), %edi
callq 0x4070
testl %eax, %eax
jne 0x5593
cmpb $0x7c, 0xf(%rsp)
je 0x560d
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x4560
jmp 0x560d
movsbl %bpl, %esi
movq %rbx, %rdi
callq 0x4620
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x4210
leaq 0x18(%rsp), %rsi
movq %rax, %rdi
callq 0x4210
leaq 0x20(%rsp), %rsi
movq %rax, %rdi
callq 0x4210
movq (%rbx), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rbx,%rax)
jne 0x563e
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%r14)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%r14)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x10(%r14)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/Scene.cpp
// Function: printNode(SceneInstance*, int)
void
printNode(SceneInstance * n, int level = 0)
{
  tab(level);
  std::cout << "Node " << n->getName() << " {" << std::endl;

  if (n->getChild())
  {
    SceneGroup * below = n->getChild();

    for (int i = 0; i < below->getChildCount(); i++)
    {
      printNode(below->getChild(i), level + 1);
    }
  }

  tab(level);
  std::cout << "}" << std::endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebx
movq %rdi, %r15
testl %esi, %esi
jle 0x5999
leal 0x1(%rbx), %ebp
movq 0x32655(%rip), %r14     # 0x37fd0
leaq 0x26762(%rip), %r12     # 0x2c0e4
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x4370
decl %ebp
cmpl $0x1, %ebp
jg 0x5982
movq 0x32630(%rip), %r14     # 0x37fd0
leaq 0x2673f(%rip), %rsi     # 0x2c0e6
movl $0x5, %edx
movq %r14, %rdi
callq 0x4370
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x65ba
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r14, %rdi
callq 0x4370
movq %rax, %r12
leaq 0x2670f(%rip), %rsi     # 0x2c0ec
movl $0x2, %edx
movq %rax, %rdi
callq 0x4370
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5a2d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4320
movq %r15, %rdi
callq 0x65b4
testq %rax, %rax
je 0x5a7c
movq %r15, %rdi
callq 0x65b4
movq %rax, %r15
movq %rax, %rdi
callq 0x5dba
testl %eax, %eax
jle 0x5a7c
leal 0x1(%rbx), %ebp
xorl %r12d, %r12d
movq %r15, %rdi
movl %r12d, %esi
callq 0x5dc8
movq %rax, %rdi
movl %ebp, %esi
callq 0x595c
incl %r12d
movq %r15, %rdi
callq 0x5dba
cmpl %eax, %r12d
jl 0x5a57
testl %ebx, %ebx
jle 0x5aa7
incl %ebx
movq 0x32547(%rip), %r15     # 0x37fd0
leaq 0x26654(%rip), %r12     # 0x2c0e4
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x4370
decl %ebx
cmpl $0x1, %ebx
jg 0x5a90
leaq 0x26641(%rip), %rsi     # 0x2c0ef
movl $0x1, %edx
movq %r14, %rdi
callq 0x4370
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x42f0
movsbl %al, %esi
movq %r14, %rdi
callq 0x4050
movq %rax, %rdi
callq 0x4230
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5b0d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x45c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/SceneGroup.cpp
// Function: SceneGroup::SceneGroup()
SceneGroup::SceneGroup()
{
  name_ = "unassigned";
  sphere_ = NULL;
  light_ = NULL;
  camera_ = NULL;
  meshMaterial_ = NULL;
  mesh_ = NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r15
leaq 0x31c35(%rip), %rax     # 0x37880
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
leaq 0x18(%rdi), %r14
movq %r14, 0x8(%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
leaq 0x28(%rdi), %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rdi)
movq %rax, 0x38(%rdi)
leaq 0x26485(%rip), %rcx     # 0x2c0ff
movl $0xa, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x44b0
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%r15)
movups %xmm0, 0x40(%r15)
movq $0x0, 0x60(%r15)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r12
movq (%r13), %rdi
testq %rdi, %rdi
je 0x5cc3
movq 0x38(%r15), %rsi
subq %rdi, %rsi
callq 0x4320
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4672
movq %r12, %rdi
callq 0x45c0
// File: /workspace/github_cpp_makefile_star2_O1/srajangarg[P]raytracer/src/core/SceneGroup.cpp
// Function: SceneGroup::~SceneGroup()
SceneGroup::~SceneGroup()
{
  delete sphere_;
  delete light_;
  delete camera_;
  delete mesh_;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x31b9c(%rip), %rax     # 0x37880
movq %rax, (%rdi)
movq 0x40(%rdi), %r14
testq %r14, %r14
je 0x5d0b
movq (%r14), %rdi
testq %rdi, %rdi
je 0x5cfe
movq (%rdi), %rax
callq *0x20(%rax)
movl $0x10, %esi
movq %r14, %rdi
callq 0x4320
movq 0x48(%rbx), %r14
testq %r14, %r14
je 0x5d29
movq %r14, %rdi
callq 0x5fe2
movl $0x30, %esi
movq %r14, %rdi
callq 0x4320
movq 0x50(%rbx), %r14
testq %r14, %r14
je 0x5d47
movq %r14, %rdi
callq 0x6070
movl $0x38, %esi
movq %r14, %rdi
callq 0x4320
movq 0x58(%rbx), %r14
testq %r14, %r14
je 0x5d65
movq %r14, %rdi
callq 0x60ac
movl $0x30, %esi
movq %r14, %rdi
callq 0x4320
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x5d7a
movq 0x38(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq 0x8(%rbx), %rdi
addq $0x18, %rbx
cmpq %rbx, %rdi
je 0x5d99
movq (%rbx), %rsi
incq %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4320
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop