// File: /workspace/github_cpp_makefile_star2_O1/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 0x262ef(%rip), %rsi     # 0x3505a
callq 0x4290
movq %rax, %r14
leaq 0x6(%rsp), %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf575
movsbl 0x6(%rsp), %ecx
cmpl $0x4, %ecx
jge 0xf58b
movq %rsp, %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf5af
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 0xf5c5
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 0xf5db
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 0xf5ee
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 0xf601
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 0xf614
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 0xf627
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 0xf63a
movb (%rsp), %al
movb %al, 0x8c8(%rbx)
testb %al, %al
jle 0xf64d
leaq 0x7(%rsp), %rdi
movl $0x1, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x4360
cmpl $0x1, %eax
jne 0xf657
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 0xff3a
movq %r15, %rdi
callq 0xfdb0
movq %rax, 0x870(%rbx)
movq %r15, %rdi
callq 0xfe32
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 0x1000a
movq %r15, %rdi
callq 0xfe6c
movq %rax, 0x878(%rbx)
movq %r15, %rdi
callq 0xff00
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 0x1000a
movq %r15, %rdi
callq 0xfe6c
movq %rax, 0x8a0(%rbx)
movq %r15, %rdi
callq 0xff00
movl $0x18, %esi
movq %r15, %rdi
callq 0x4220
movb 0x918(%rbx), %bpl
movl $0x18, %edi
callq 0x4210
movq %rax, %r15
testb %bpl, %bpl
je 0xf090
movl 0x8b4(%rbx), %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1000a
movq %r15, %rdi
callq 0xfe6c
movq %rax, 0x888(%rbx)
movl $0x18, %edi
callq 0x4210
movq %rax, %r12
movl 0x8b0(%rbx), %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1000a
movq %r12, %rdi
callq 0xfe6c
movq %rax, 0x890(%rbx)
movl $0x18, %edi
callq 0x4210
movq %rax, %r13
movl 0x8b0(%rbx), %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x1000a
movq %r13, %rdi
callq 0xfe6c
movq %rax, 0x898(%rbx)
movq %r15, %rdi
callq 0xff00
movl $0x18, %esi
movq %r15, %rdi
callq 0x4220
movq %r12, %rdi
callq 0xff00
movl $0x18, %esi
movq %r12, %rdi
callq 0x4220
movq %r13, %r15
jmp 0xf0b0
movl 0x8b0(%rbx), %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x1000a
movq %r15, %rdi
callq 0xfe6c
movq %rax, 0x880(%rbx)
movq %r15, %rdi
callq 0xff00
movl $0x18, %esi
movq %r15, %rdi
callq 0x4220
cmpb $0x2, 0x8c8(%rbx)
jl 0xf11f
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 0xff3a
movq %r15, %rdi
callq 0xfdb0
movq %rax, 0x8a8(%rbx)
movq %r15, %rdi
callq 0xfe32
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, 0x20(%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, 0x20(%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, 0x20(%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, 0x20(%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, 0x20(%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, 0x20(%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 0xf36e
xorl %r14d, %r14d
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq 0x50(%rsp), %rsi
callq 0xdb28
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x42c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf2cc
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 0xa6c2
movl %r14d, 0x28(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x10240
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf314
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 0xa6c2
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1040a
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf35e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4220
incl %r14d
cmpl 0x8bc(%rbx), %r14d
jl 0xf29b
cmpl $0x0, 0x8c0(%rbx)
jle 0xf45b
xorl %r14d, %r14d
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq 0x50(%rsp), %rsi
callq 0xdb28
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x42c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf3b9
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 0xa6c2
movl %r14d, 0x28(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x10240
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf401
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 0xa6c2
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1040a
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf44b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4220
incl %r14d
cmpl 0x8c0(%rbx), %r14d
jl 0xf388
cmpl $0x0, 0x8c4(%rbx)
jle 0xf548
xorl %r14d, %r14d
leaq 0x20(%rsp), %r13
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq 0x50(%rsp), %rsi
callq 0xdb28
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x42c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf4a6
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 0xa6c2
movl %r14d, 0x28(%rsp)
movq %rbp, %rdi
movq %r12, %rsi
callq 0x10240
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf4ee
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 0xa6c2
movq %rbp, %rdi
movq %r12, %rsi
callq 0x1040a
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf538
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4220
incl %r14d
cmpl 0x8c4(%rbx), %r14d
jl 0xf475
movq 0x50(%rsp), %rdi
callq 0x4200
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xf56e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4220
movb $0x1, %bl
jmp 0xf674
movq 0x30a5c(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25ad7(%rip), %rsi     # 0x3505d
jmp 0xf668
movq 0x30a46(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25ae5(%rip), %rsi     # 0x35081
xorl %ebx, %ebx
movl $0x3, %edx
xorl %eax, %eax
callq 0x4330
jmp 0xf674
movq 0x30a22(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25af9(%rip), %rsi     # 0x350b9
jmp 0xf668
movq 0x30a0c(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25b09(%rip), %rsi     # 0x350df
jmp 0xf668
movq 0x309f6(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25b23(%rip), %rsi     # 0x3510f
jmp 0xf668
movq 0x309e3(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25b47(%rip), %rsi     # 0x35146
jmp 0xf668
movq 0x309d0(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25b62(%rip), %rsi     # 0x35174
jmp 0xf668
movq 0x309bd(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25b82(%rip), %rsi     # 0x351a7
jmp 0xf668
movq 0x309aa(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25b96(%rip), %rsi     # 0x351ce
jmp 0xf668
movq 0x30997(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25bab(%rip), %rsi     # 0x351f6
jmp 0xf668
callq 0x499f
jmp 0xf56e
movq 0x3097a(%rip), %rax     # 0x3ffd8
movq (%rax), %rdi
leaq 0x25bdd(%rip), %rsi     # 0x35245
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 0xf6ac
jmp 0xf6ac
movq %rax, %rbx
movl $0x18, %esi
movq %r13, %rdi
jmp 0xf71d
movq %rax, %rbx
movl $0x18, %esi
movq %r12, %rdi
jmp 0xf71d
jmp 0xf6ac
jmp 0xf6ac
jmp 0xf6ac
movq %rax, %rbx
movl $0x18, %esi
movq %r15, %rdi
jmp 0xf71d
jmp 0xf6e7
jmp 0xf6e7
jmp 0xf6e7
jmp 0xf6d3
jmp 0xf6e7
jmp 0xf6ec
jmp 0xf6e7
jmp 0xf6e7
jmp 0xf6d3
jmp 0xf6e7
jmp 0xf6ec
jmp 0xf6e7
jmp 0xf6e7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xf706
movq 0x18(%rsp), %rsi
jmp 0xf6fe
movq %rax, %rbx
jmp 0xf706
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0xf706
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4220
leaq 0x40(%rsp), %rax
movq 0x30(%rsp), %rdi
cmpq %rax, %rdi
je 0xf722
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x4220
movq %rbx, %rdi
callq 0x4430