// File: /workspace/github_cpp_makefile_star2_O3/myudelson[P]hmm-scalable/InputUtil.cpp
// Function: InputUtil::readBin(char const*, param*)
bool InputUtil::readBin(const char *fn, struct param * param) {
    char c, v/*version*/;
    NDAT i;
    NDAT nread;
    FILE *fid = fopen(fn,"rb");
    
    // version
    nread = (NDAT)fread (&v, sizeof(char), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading version data from %s\n",fn);
        return false;
    }
    if( v > bin_input_file_verstion) { // we will handle earlier versions
        fprintf(stderr,"Wrong version of the data file. Expected %d, actual %d\n",(int)bin_input_file_verstion, (int)v);
        return false;
    }
    
    // N
    nread = (NDAT)fread (&i, sizeof(NDAT), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading number of rows from %s\n",fn);
        return false;
    }
    param->N = (NDAT)i;
    
    // Nstacked
    nread = (NDAT)fread (&i, sizeof(NDAT), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading number of rows (stacked) from %s\n",fn);
        return false;
    }
    param->Nstacked = (NDAT)i;
    
    // N_null
    nread = (NDAT)fread (&i, sizeof(NDAT), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading number of rows with null skills from %s\n",fn);
        return false;
    }
    param->N_null = (NDAT)i;
    
    // nO
    nread = (NDAT)fread (&i, sizeof(NDAT), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading number of observations from %s\n",fn);
        return false;
    }
    param->nO = (NPAR)i;
    
    // nG
    nread = (NDAT)fread (&i, sizeof(NDAT), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading number of groups (students) from %s\n",fn);
        return false;
    }
    param->nG = (NCAT)i;
    
    // nI
    nread = (NDAT)fread (&i, sizeof(NDAT), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading number of items from %s\n",fn);
        return false;
    }
    param->nI = (NCAT)i;
    
    // nK
    nread = (NDAT)fread (&i, sizeof(NDAT), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading number of skills from %s\n",fn);
        return false;
    }
    param->nK = (NCAT)i;
    
    // nZ
    nread = (NDAT)fread (&i, sizeof(NDAT), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading number of slices from %s\n",fn);
        return false;
    }
    param->nZ = (NPAR)i;
    if(param->nZ<1) {
        fprintf(stderr,"Number of slices should be at least 1\n");
        return true;
    }
    
    // multiskill
    nread = (NDAT)fread (&c, sizeof(char), (size_t)1, fid);
    if(nread != 1) {
        fprintf(stderr,"Error reading multiskill flag from %s\n",fn);
        return false;
    }
    param->multiskill = (NPAR)c;
    
    
    // dat_obs
    StripedArray<NPAR> *striped_dat_obs = new StripedArray<NPAR>(fid, param->N);
    param->dat_obs = striped_dat_obs->toArray();
    delete striped_dat_obs;

//    if(v==1) { // older NCAT of unsigned short
//        StripedArray<short> *dat_group_legacy = NULL;
//        StripedArray<short> *dat_skill_legacy = NULL;
//        StripedArray<short*> *dat_multiskill_legacy = NULL;
//        dat_group_legacy = new StripedArray<short>(fid, param->N);
//        for(t=0; t<param->N; t++)
//            param->dat_group[t] = (NCAT)dat_group_legacy->get(t);
//        if(param->multiskill == 0) {
//            dat_skill_legacy = new StripedArray<short>(fid, param->N);
//            for(t=0; t<param->N; t++)
//                param->dat_skill[t] = (NCAT)dat_skill_legacy->get(t);
//            delete dat_skill_legacy;
//        } else {
//            param->dat_multiskill = new StripedArray<NCAT*>(param->N,true);
//            nread = readMultiSkill(fid, param, v);
//            delete dat_multiskill_legacy;
//        }
//        delete dat_group_legacy;
//    } else {
        // dat_group
        StripedArray<NCAT> *striped_dat_group = new StripedArray<NCAT>(fid, param->N);
        param->dat_group = striped_dat_group->toArray();
        delete striped_dat_group;
//    }
    
    // dat_item
    StripedArray<NCAT> *striped_dat_item = new StripedArray<NCAT>(fid, param->N);
    param->dat_item = striped_dat_item->toArray();
    delete striped_dat_item;
    
    // dat_skill
    if(param->multiskill == 0) {
        StripedArray<NCAT> *striped_dat_skill = new StripedArray<NCAT>(fid, param->N);
        param->dat_skill = striped_dat_skill->toArray();
        delete striped_dat_skill;
    } else {
//            param->dat_multiskill = new StripedArray< NCAT* >(param->N,true);
//            nread = readMultiSkill(fid, param, v);
        StripedArray<NCAT> *striped_dat_skill_stacked = new StripedArray<NCAT>(fid, param->Nstacked);
        param->dat_skill_stacked = striped_dat_skill_stacked->toArray();
        StripedArray<NCAT> *striped_dat_skill_rcount = new StripedArray<NCAT>(fid, param->N);
        param->dat_skill_rcount = striped_dat_skill_rcount->toArray();
        StripedArray<NCAT> *striped_dat_skill_rix = new StripedArray<NCAT>(fid, param->N);
        param->dat_skill_rix = striped_dat_skill_rix->toArray();
        delete striped_dat_skill_stacked;
        delete striped_dat_skill_rcount;
        delete striped_dat_skill_rix;
    }
    // dat_slices, only of nZ > 1
    if(param->nZ > 1) {
        NDAT szZ = (param->multiskill == 0)?param->N:param->Nstacked;
        StripedArray<NPAR> *striped_dat_slice = new StripedArray<NPAR>(fid, szZ);
        param->dat_slice = striped_dat_slice->toArray();
        delete striped_dat_slice;
    }
        
    string str;
    param->map_group_fwd = new map<string,NCAT>();
    param->map_group_bwd = new map<NCAT,string>();
    param->map_skill_fwd = new map<string,NCAT>();
    param->map_skill_bwd = new map<NCAT,string>();
    param->map_step_fwd = new map<string,NCAT>();
    param->map_step_bwd = new map<NCAT,string>();
    // voc_group
    for(NCAT g=0; g<param->nG; g++) {
        str = readString(fid);
        param->map_group_fwd->insert(pair<string,NCAT>(str, g));
        param->map_group_bwd->insert(pair<NCAT,string>(g, str));
    }
    
    // voc_skill
    for(NCAT k=0; k<param->nK; k++) {
        str = readString(fid);
        param->map_skill_fwd->insert(pair<string,NCAT>(str, k));
        param->map_skill_bwd->insert(pair<NCAT,string>(k, str));
    }
    
    // voc_item
    for(NCAT i=0; i<param->nI; i++) {
        str = readString(fid);
        param->map_step_fwd->insert(pair<string,NCAT>(str, i));
        param->map_step_bwd->insert(pair<NCAT,string>(i, str));
    }
    
    fclose(fid);
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x254ef(%rip), %rsi     # 0x340ea
callq 0x4290
movq %rax, %r14
leaq 0x6(%rsp), %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf3ed
movsbl 0x6(%rsp), %ecx
cmpl $0x4, %ecx
jge 0xf403
movq %rsp, %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf427
movq %rsp, %rdi
movl (%rdi), %eax
movl %eax, 0x8b0(%rbx)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf43d
movq %rsp, %rdi
movl (%rdi), %eax
movl %eax, 0x8b4(%rbx)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf453
movq %rsp, %rdi
movl (%rdi), %eax
movl %eax, 0x8cc(%rbx)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf466
movq %rsp, %rdi
movb (%rdi), %al
movb %al, 0x8b9(%rbx)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf479
movq %rsp, %rdi
movl (%rdi), %eax
movl %eax, 0x8bc(%rbx)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf48c
movq %rsp, %rdi
movl (%rdi), %eax
movl %eax, 0x8c4(%rbx)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf49f
movq %rsp, %rdi
movl (%rdi), %eax
movl %eax, 0x8c0(%rbx)
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf4b2
movb (%rsp), %al
movb %al, 0x8c8(%rbx)
testb %al, %al
jle 0xf4c5
leaq 0x7(%rsp), %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf4cf
movb 0x7(%rsp), %al
movb %al, 0x918(%rbx)
movl $0x18, %edi
callq 0x4210
movq %rax, %r15
movl 0x8b0(%rbx), %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0xfdba
movq %r15, %rdi
callq 0xfc30
movq %rax, 0x870(%rbx)
movq %r15, %rdi
callq 0xfcb2
movl $0x18, %esi
movq %r15, %rdi
callq 0x4220
movl $0x18, %edi
callq 0x4210
movq %rax, %r15
movl 0x8b0(%rbx), %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0xfe8a
movq %r15, %rdi
callq 0xfcec
movq %rax, 0x878(%rbx)
movq %r15, %rdi
callq 0xfd80
movl $0x18, %esi
movq %r15, %rdi
callq 0x4220
movl $0x18, %edi
callq 0x4210
movq %rax, %r15
movl 0x8b0(%rbx), %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0xfe8a
movq %r15, %rdi
callq 0xfcec
movq %rax, 0x8a0(%rbx)
movq %r15, %rdi
callq 0xfd80
movl $0x18, %esi
movq %r15, %rdi
callq 0x4220
movb 0x918(%rbx), %bpl
movl $0x18, %edi
callq 0x4210
movq %rax, %r15
testb %bpl, %bpl
je 0xef20
movl 0x8b4(%rbx), %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0xfe8a
movq %r15, %rdi
callq 0xfcec
movq %rax, 0x888(%rbx)
movl $0x18, %edi
callq 0x4210
movq %rax, %r12
movl 0x8b0(%rbx), %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0xfe8a
movq %r12, %rdi
callq 0xfcec
movq %rax, 0x890(%rbx)
movl $0x18, %edi
callq 0x4210
movq %rax, %r13
movl 0x8b0(%rbx), %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0xfe8a
movq %r13, %rdi
callq 0xfcec
movq %rax, 0x898(%rbx)
movq %r15, %rdi
callq 0xfd80
movl $0x18, %esi
movq %r15, %rdi
callq 0x4220
movq %r12, %rdi
callq 0xfd80
movl $0x18, %esi
movq %r12, %rdi
callq 0x4220
movq %r13, %r15
jmp 0xef40
movl 0x8b0(%rbx), %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0xfe8a
movq %r15, %rdi
callq 0xfcec
movq %rax, 0x880(%rbx)
movq %r15, %rdi
callq 0xfd80
movl $0x18, %esi
movq %r15, %rdi
callq 0x4220
cmpb $0x2, 0x8c8(%rbx)
jl 0xefaf
xorl %eax, %eax
cmpb $0x0, 0x918(%rbx)
setne %al
movl 0x8b0(%rbx,%rax,4), %ebp
movl $0x18, %edi
callq 0x4210
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0xfdba
movq %r15, %rdi
callq 0xfc30
movq %rax, 0x8a8(%rbx)
movq %r15, %rdi
callq 0xfcb2
movl $0x18, %esi
movq %r15, %rdi
callq 0x4220
movq %r14, 0x50(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl $0x30, %edi
callq 0x4210
movq %rax, %rcx
addq $0x8, %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq %rax, 0x920(%rbx)
movl $0x30, %edi
callq 0x4210
movq %rax, %rcx
addq $0x8, %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq %rax, 0x928(%rbx)
movl $0x30, %edi
callq 0x4210
movq %rax, %rcx
addq $0x8, %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq %rax, 0x940(%rbx)
movl $0x30, %edi
callq 0x4210
movq %rax, %rcx
addq $0x8, %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq %rax, 0x948(%rbx)
movl $0x30, %edi
callq 0x4210
movq %rax, %rcx
addq $0x8, %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq %rax, 0x930(%rbx)
movl $0x30, %edi
callq 0x4210
movq %rax, %rcx
addq $0x8, %rcx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movq %rcx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq $0x0, 0x28(%rax)
movq %rax, 0x938(%rbx)
cmpl $0x0, 0x8bc(%rbx)
leaq 0x18(%rsp), %r15
jle 0xf1e6
xorl %r14d, %r14d
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq 0x50(%rsp), %rsi
callq 0xdb60
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x42c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf144
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4220
movq 0x920(%rbx), %rbp
movq %r15, 0x8(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xa6be
movl %r14d, 0x28(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x100c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf18c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4220
movq 0x928(%rbx), %rbp
movl %r14d, 0x8(%rsp)
movq %r13, 0x10(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0xa6be
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1028a
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf1d6
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4220
incl %r14d
cmpl 0x8bc(%rbx), %r14d
jl 0xf113
cmpl $0x0, 0x8c0(%rbx)
jle 0xf2d3
xorl %r14d, %r14d
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq 0x50(%rsp), %rsi
callq 0xdb60
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x42c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf231
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4220
movq 0x940(%rbx), %rbp
movq %r15, 0x8(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xa6be
movl %r14d, 0x28(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x100c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf279
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4220
movq 0x948(%rbx), %rbp
movl %r14d, 0x8(%rsp)
movq %r13, 0x10(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0xa6be
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1028a
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf2c3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4220
incl %r14d
cmpl 0x8c0(%rbx), %r14d
jl 0xf200
cmpl $0x0, 0x8c4(%rbx)
jle 0xf3c0
xorl %r14d, %r14d
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq 0x50(%rsp), %rsi
callq 0xdb60
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x42c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf31e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4220
movq 0x930(%rbx), %rbp
movq %r15, 0x8(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xa6be
movl %r14d, 0x28(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x100c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf366
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4220
movq 0x938(%rbx), %rbp
movl %r14d, 0x8(%rsp)
movq %r13, 0x10(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0xa6be
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1028a
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf3b0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4220
incl %r14d
cmpl 0x8c4(%rbx), %r14d
jl 0xf2ed
movq 0x50(%rsp), %rdi
callq 0x4200
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xf3e6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4220
movb $0x1, %bl
jmp 0xf4ec
movq 0x2fbe4(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24cef(%rip), %rsi     # 0x340ed
jmp 0xf4e0
movq 0x2fbce(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24cfd(%rip), %rsi     # 0x34111
xorl %ebx, %ebx
movl $0x3, %edx
xorl %eax, %eax
callq 0x4330
jmp 0xf4ec
movq 0x2fbaa(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24d11(%rip), %rsi     # 0x34149
jmp 0xf4e0
movq 0x2fb94(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24d21(%rip), %rsi     # 0x3416f
jmp 0xf4e0
movq 0x2fb7e(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24d3b(%rip), %rsi     # 0x3419f
jmp 0xf4e0
movq 0x2fb6b(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24d5f(%rip), %rsi     # 0x341d6
jmp 0xf4e0
movq 0x2fb58(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24d7a(%rip), %rsi     # 0x34204
jmp 0xf4e0
movq 0x2fb45(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24d9a(%rip), %rsi     # 0x34237
jmp 0xf4e0
movq 0x2fb32(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24dae(%rip), %rsi     # 0x3425e
jmp 0xf4e0
movq 0x2fb1f(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24dc3(%rip), %rsi     # 0x34286
jmp 0xf4e0
callq 0x49bf
jmp 0xf3e6
movq 0x2fb02(%rip), %rax     # 0x3efd8
movq (%rax), %rdi
leaq 0x24df5(%rip), %rsi     # 0x342d5
xorl %ebx, %ebx
movq %r15, %rdx
xorl %eax, %eax
callq 0x4330
movl %ebx, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xf524
jmp 0xf524
movq %rax, %rbx
movl $0x18, %esi
movq %r13, %rdi
jmp 0xf595
movq %rax, %rbx
movl $0x18, %esi
movq %r12, %rdi
jmp 0xf595
jmp 0xf524
jmp 0xf524
jmp 0xf524
movq %rax, %rbx
movl $0x18, %esi
movq %r15, %rdi
jmp 0xf595
jmp 0xf55f
jmp 0xf55f
jmp 0xf55f
jmp 0xf54b
jmp 0xf55f
jmp 0xf564
jmp 0xf55f
jmp 0xf55f
jmp 0xf54b
jmp 0xf55f
jmp 0xf564
jmp 0xf55f
jmp 0xf55f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf57e
movq 0x18(%rsp), %rsi
jmp 0xf576
movq %rax, %rbx
jmp 0xf57e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf57e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4220
leaq 0x40(%rsp), %rax
movq 0x30(%rsp), %rdi
cmpq %rax, %rdi
je 0xf59a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4220
movq %rbx, %rdi
callq 0x4430