// File: DoubleString[P]RtConverter/src/Rtklib/rtkcmn.cpp
// Function: bamboo::readnav(char const*, bamboo::nav_t*)
extern int readnav(const char *file, nav_t *nav)
{
    FILE *fp;
    eph_t eph0={0};
    geph_t geph0={0};
    char buff[4096],*p;
    long toe_time,tof_time,toc_time,ttr_time;
    int i,sat,prn;
    
    trace(3,"loadnav: file=%s\n",file);
    
    if (!(fp=fopen(file,"r"))) return 0;
    
    while (fgets(buff,sizeof(buff),fp)) {
        if (!strncmp(buff,"IONUTC",6)) {
            for (i=0;i<8;i++) nav->ion_gps[i]=0.0;
            for (i=0;i<4;i++) nav->utc_gps[i]=0.0;
            nav->leaps=0;
            sscanf(buff,"IONUTC,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%d",
                   &nav->ion_gps[0],&nav->ion_gps[1],&nav->ion_gps[2],&nav->ion_gps[3],
                   &nav->ion_gps[4],&nav->ion_gps[5],&nav->ion_gps[6],&nav->ion_gps[7],
                   &nav->utc_gps[0],&nav->utc_gps[1],&nav->utc_gps[2],&nav->utc_gps[3],
                   &nav->leaps);
            continue;   
        }
        if ((p=strchr(buff,','))) *p='\0'; else continue;
        if (!(sat=satid2no(buff))) continue;
        if (satsys(sat,&prn)==SYS_GLO) {
            nav->geph[prn-1]=geph0;
            nav->geph[prn-1].sat=sat;
            toe_time=tof_time=0;
            sscanf(p+1,"%d,%d,%d,%d,%d,%ld,%ld,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,"
                        "%lf,%lf,%lf,%lf",
                   &nav->geph[prn-1].iode,&nav->geph[prn-1].frq,&nav->geph[prn-1].svh,
                   &nav->geph[prn-1].sva,&nav->geph[prn-1].age,
                   &toe_time,&tof_time,
                   &nav->geph[prn-1].pos[0],&nav->geph[prn-1].pos[1],&nav->geph[prn-1].pos[2],
                   &nav->geph[prn-1].vel[0],&nav->geph[prn-1].vel[1],&nav->geph[prn-1].vel[2],
                   &nav->geph[prn-1].acc[0],&nav->geph[prn-1].acc[1],&nav->geph[prn-1].acc[2],
                   &nav->geph[prn-1].taun  ,&nav->geph[prn-1].gamn  ,&nav->geph[prn-1].dtaun);
            nav->geph[prn-1].toe.time=toe_time;
            nav->geph[prn-1].tof.time=tof_time;
        }
        else {
            nav->eph[sat-1]=eph0;
            nav->eph[sat-1].sat=sat;
            toe_time=toc_time=ttr_time=0;
            sscanf(p+1,"%d,%d,%d,%d,%ld,%ld,%ld,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,"
                        "%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%d,%d",
                   &nav->eph[sat-1].iode,&nav->eph[sat-1].iodc,&nav->eph[sat-1].sva ,
                   &nav->eph[sat-1].svh ,
                   &toe_time,&toc_time,&ttr_time,
                   &nav->eph[sat-1].A   ,&nav->eph[sat-1].e   ,&nav->eph[sat-1].i0  ,
                   &nav->eph[sat-1].OMG0,&nav->eph[sat-1].omg ,&nav->eph[sat-1].M0  ,
                   &nav->eph[sat-1].deln,&nav->eph[sat-1].OMGd,&nav->eph[sat-1].idot,
                   &nav->eph[sat-1].crc ,&nav->eph[sat-1].crs ,&nav->eph[sat-1].cuc ,
                   &nav->eph[sat-1].cus ,&nav->eph[sat-1].cic ,&nav->eph[sat-1].cis ,
                   &nav->eph[sat-1].toes,&nav->eph[sat-1].fit ,&nav->eph[sat-1].f0  ,
                   &nav->eph[sat-1].f1  ,&nav->eph[sat-1].f2  ,&nav->eph[sat-1].tgd[0],
                   &nav->eph[sat-1].code, &nav->eph[sat-1].flag);
            nav->eph[sat-1].toe.time=toe_time;
            nav->eph[sat-1].toc.time=toc_time;
            nav->eph[sat-1].ttr.time=ttr_time;
        }
    }
    fclose(fp);
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x13c8, %rsp           # imm = 0x13C8
movq %rdi, -0x38(%rbp)
movq %rsi, -0x40(%rbp)
leaq -0x168(%rbp), %rdi
xorl %esi, %esi
movl $0x120, %edx            # imm = 0x120
callq 0x93d0
leaq -0x200(%rbp), %rdi
xorl %esi, %esi
movl $0x98, %edx
callq 0x93d0
movq -0x38(%rbp), %rdx
movl $0x3, %edi
leaq 0x33b42(%rip), %rsi     # 0xc7bd4
movb $0x0, %al
callq 0x8b980
movq -0x38(%rbp), %rdi
leaq 0x33dfb(%rip), %rsi     # 0xc7e9f
callq 0x98d0
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
jne 0x940bf
movl $0x0, -0x2c(%rbp)
jmp 0x94d79
jmp 0x940c1
leaq -0x1200(%rbp), %rdi
movq -0x48(%rbp), %rdx
movl $0x1000, %esi           # imm = 0x1000
callq 0x9ba0
cmpq $0x0, %rax
je 0x94d69
leaq -0x1200(%rbp), %rdi
leaq 0x33af8(%rip), %rsi     # 0xc7be6
movl $0x6, %edx
callq 0x9360
cmpl $0x0, %eax
jne 0x9428f
movl $0x0, -0x122c(%rbp)
cmpl $0x8, -0x122c(%rbp)
jge 0x9413c
movq -0x40(%rbp), %rax
movslq -0x122c(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, 0x170(%rax,%rcx,8)
movl -0x122c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x122c(%rbp)
jmp 0x9410b
movl $0x0, -0x122c(%rbp)
cmpl $0x4, -0x122c(%rbp)
jge 0x94177
movq -0x40(%rbp), %rax
movslq -0x122c(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, 0x90(%rax,%rcx,8)
movl -0x122c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x122c(%rbp)
jmp 0x94146
movq -0x40(%rbp), %rax
movl $0x0, 0x290(%rax)
leaq -0x1200(%rbp), %rdi
movq -0x40(%rbp), %rdx
addq $0x170, %rdx            # imm = 0x170
movq -0x40(%rbp), %rcx
addq $0x170, %rcx            # imm = 0x170
addq $0x8, %rcx
movq -0x40(%rbp), %r8
addq $0x170, %r8             # imm = 0x170
addq $0x10, %r8
movq -0x40(%rbp), %r9
addq $0x170, %r9             # imm = 0x170
addq $0x18, %r9
movq -0x40(%rbp), %rax
addq $0x170, %rax            # imm = 0x170
addq $0x20, %rax
movq -0x40(%rbp), %r13
addq $0x170, %r13            # imm = 0x170
addq $0x28, %r13
movq -0x40(%rbp), %r12
addq $0x170, %r12            # imm = 0x170
addq $0x30, %r12
movq -0x40(%rbp), %r15
addq $0x170, %r15            # imm = 0x170
addq $0x38, %r15
movq -0x40(%rbp), %r14
addq $0x90, %r14
movq -0x40(%rbp), %rbx
addq $0x90, %rbx
addq $0x8, %rbx
movq -0x40(%rbp), %r11
addq $0x90, %r11
addq $0x10, %r11
movq -0x40(%rbp), %r10
addq $0x90, %r10
addq $0x18, %r10
movq -0x40(%rbp), %rsi
addq $0x290, %rsi            # imm = 0x290
movq %rsi, -0x1240(%rbp)
leaq 0x3399d(%rip), %rsi     # 0xc7bed
movq %rax, (%rsp)
movq -0x1240(%rbp), %rax
movq %r13, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq %r15, 0x18(%rsp)
movq %r14, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq %r11, 0x30(%rsp)
movq %r10, 0x38(%rsp)
movq %rax, 0x40(%rsp)
movb $0x0, %al
callq 0x9750
jmp 0x940c1
leaq -0x1200(%rbp), %rdi
movl $0x2c, %esi
callq 0x9280
movq %rax, -0x1208(%rbp)
cmpq $0x0, %rax
je 0x942b9
movq -0x1208(%rbp), %rax
movb $0x0, (%rax)
jmp 0x942be
jmp 0x940c1
leaq -0x1200(%rbp), %rdi
callq 0x8b510
movl %eax, -0x1230(%rbp)
cmpl $0x0, %eax
jne 0x942da
jmp 0x940c1
movl -0x1230(%rbp), %edi
leaq -0x1234(%rbp), %rsi
callq 0x8b3b0
cmpl $0x4, %eax
jne 0x946ee
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rdi
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %rdi
leaq -0x200(%rbp), %rsi
movl $0x98, %edx
callq 0x9610
movl -0x1230(%rbp), %ecx
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x1234(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x98, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq $0x0, -0x1218(%rbp)
movq $0x0, -0x1210(%rbp)
movq -0x1208(%rbp), %rdi
addq $0x1, %rdi
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rdx
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %rdx
addq $0x4, %rdx
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rcx
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %rcx
addq $0x8, %rcx
movq -0x40(%rbp), %rax
movq 0x48(%rax), %r8
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %r8
addq $0xc, %r8
movq -0x40(%rbp), %rax
movq 0x48(%rax), %r9
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %r9
addq $0x10, %r9
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x1234(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x98, %rsi, %rsi
addq %rsi, %rax
addq $0x14, %rax
movq %rax, -0x1280(%rbp)
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x1234(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x98, %rsi, %rsi
addq %rsi, %rax
addq $0x38, %rax
movq %rax, -0x1268(%rbp)
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x1234(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x98, %rsi, %rsi
addq %rsi, %rax
addq $0x38, %rax
addq $0x8, %rax
movq %rax, -0x1260(%rbp)
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x1234(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x98, %rsi, %rsi
addq %rsi, %rax
addq $0x38, %rax
addq $0x10, %rax
movq %rax, -0x1258(%rbp)
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x1234(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x98, %rsi, %rsi
addq %rsi, %rax
addq $0x50, %rax
movq %rax, -0x1250(%rbp)
movq -0x40(%rbp), %rax
movq 0x48(%rax), %r13
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %r13
addq $0x50, %r13
addq $0x8, %r13
movq -0x40(%rbp), %rax
movq 0x48(%rax), %r12
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %r12
addq $0x50, %r12
addq $0x10, %r12
movq -0x40(%rbp), %rax
movq 0x48(%rax), %r15
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %r15
addq $0x68, %r15
movq -0x40(%rbp), %rax
movq 0x48(%rax), %r14
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %r14
addq $0x68, %r14
addq $0x8, %r14
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rbx
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %rbx
addq $0x68, %rbx
addq $0x10, %rbx
movq -0x40(%rbp), %rax
movq 0x48(%rax), %r11
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %r11
addq $0x80, %r11
movq -0x40(%rbp), %rax
movq 0x48(%rax), %r10
movl -0x1234(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x98, %rax, %rax
addq %rax, %r10
addq $0x88, %r10
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x1234(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x98, %rsi, %rsi
addq %rsi, %rax
addq $0x90, %rax
movq %rax, -0x1248(%rbp)
leaq 0x33635(%rip), %rsi     # 0xc7c27
leaq -0x1210(%rbp), %rax
movq %rax, -0x1278(%rbp)
leaq -0x1218(%rbp), %rax
movq %rax, -0x1270(%rbp)
movq -0x1280(%rbp), %rax
movq %rax, (%rsp)
movq -0x1278(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x1270(%rbp), %rax
movq %rax, 0x10(%rsp)
movq -0x1268(%rbp), %rax
movq %rax, 0x18(%rsp)
movq -0x1260(%rbp), %rax
movq %rax, 0x20(%rsp)
movq -0x1258(%rbp), %rax
movq %rax, 0x28(%rsp)
movq -0x1250(%rbp), %rax
movq %rax, 0x30(%rsp)
movq -0x1248(%rbp), %rax
movq %r13, 0x38(%rsp)
movq %r12, 0x40(%rsp)
movq %r15, 0x48(%rsp)
movq %r14, 0x50(%rsp)
movq %rbx, 0x58(%rsp)
movq %r11, 0x60(%rsp)
movq %r10, 0x68(%rsp)
movq %rax, 0x70(%rsp)
movb $0x0, %al
callq 0x9750
movq -0x1210(%rbp), %rcx
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x1234(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x98, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x18(%rax)
movq -0x1218(%rbp), %rcx
movq -0x40(%rbp), %rax
movq 0x48(%rax), %rax
movl -0x1234(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x98, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x28(%rax)
jmp 0x94d64
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rdi
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %rdi
leaq -0x168(%rbp), %rsi
movl $0x120, %edx            # imm = 0x120
callq 0x9610
movl -0x1230(%rbp), %ecx
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x120, %rdx, %rdx      # imm = 0x120
addq %rdx, %rax
movl %ecx, (%rax)
movq $0x0, -0x1228(%rbp)
movq $0x0, -0x1220(%rbp)
movq $0x0, -0x1210(%rbp)
movq -0x1208(%rbp), %rdi
addq $0x1, %rdi
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rdx
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %rdx
addq $0x4, %rdx
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rcx
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %rcx
addq $0x8, %rcx
movq -0x40(%rbp), %rax
movq 0x40(%rax), %r8
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %r8
addq $0xc, %r8
movq -0x40(%rbp), %rax
movq 0x40(%rax), %r9
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %r9
addq $0x10, %r9
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x50, %rax
movq %rax, -0x1300(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x58, %rax
movq %rax, -0x12f8(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x60, %rax
movq %rax, -0x12f0(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x68, %rax
movq %rax, -0x12e8(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x70, %rax
movq %rax, -0x12e0(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x78, %rax
movq %rax, -0x12d8(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x80, %rax
movq %rax, -0x12d0(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x88, %rax
movq %rax, -0x12c8(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x90, %rax
movq %rax, -0x12c0(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x98, %rax
movq %rax, -0x12b8(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0xa0, %rax
movq %rax, -0x12b0(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0xa8, %rax
movq %rax, -0x12a8(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0xb0, %rax
movq %rax, -0x12a0(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0xb8, %rax
movq %rax, -0x1298(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0xc0, %rax
movq %rax, -0x1290(%rbp)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %r13
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %r13
addq $0xc8, %r13
movq -0x40(%rbp), %rax
movq 0x40(%rax), %r12
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %r12
addq $0xd0, %r12
movq -0x40(%rbp), %rax
movq 0x40(%rax), %r15
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %r15
addq $0xd8, %r15
movq -0x40(%rbp), %rax
movq 0x40(%rax), %r14
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %r14
addq $0xe0, %r14
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rbx
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %rbx
addq $0xe8, %rbx
movq -0x40(%rbp), %rax
movq 0x40(%rax), %r11
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %r11
addq $0xf0, %r11
movq -0x40(%rbp), %rax
movq 0x40(%rax), %r10
movl -0x1230(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %r10
addq $0x18, %r10
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %esi
subl $0x1, %esi
movslq %esi, %rsi
imulq $0x120, %rsi, %rsi      # imm = 0x120
addq %rsi, %rax
addq $0x1c, %rax
movq %rax, -0x1288(%rbp)
leaq 0x330da(%rip), %rsi     # 0xc7c6e
leaq -0x1210(%rbp), %rax
movq %rax, -0x1318(%rbp)
leaq -0x1220(%rbp), %rax
movq %rax, -0x1310(%rbp)
leaq -0x1228(%rbp), %rax
movq %rax, -0x1308(%rbp)
movq -0x1318(%rbp), %rax
movq %rax, (%rsp)
movq -0x1310(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x1308(%rbp), %rax
movq %rax, 0x10(%rsp)
movq -0x1300(%rbp), %rax
movq %rax, 0x18(%rsp)
movq -0x12f8(%rbp), %rax
movq %rax, 0x20(%rsp)
movq -0x12f0(%rbp), %rax
movq %rax, 0x28(%rsp)
movq -0x12e8(%rbp), %rax
movq %rax, 0x30(%rsp)
movq -0x12e0(%rbp), %rax
movq %rax, 0x38(%rsp)
movq -0x12d8(%rbp), %rax
movq %rax, 0x40(%rsp)
movq -0x12d0(%rbp), %rax
movq %rax, 0x48(%rsp)
movq -0x12c8(%rbp), %rax
movq %rax, 0x50(%rsp)
movq -0x12c0(%rbp), %rax
movq %rax, 0x58(%rsp)
movq -0x12b8(%rbp), %rax
movq %rax, 0x60(%rsp)
movq -0x12b0(%rbp), %rax
movq %rax, 0x68(%rsp)
movq -0x12a8(%rbp), %rax
movq %rax, 0x70(%rsp)
movq -0x12a0(%rbp), %rax
movq %rax, 0x78(%rsp)
movq -0x1298(%rbp), %rax
movq %rax, 0x80(%rsp)
movq -0x1290(%rbp), %rax
movq %rax, 0x88(%rsp)
movq -0x1288(%rbp), %rax
movq %r13, 0x90(%rsp)
movq %r12, 0x98(%rsp)
movq %r15, 0xa0(%rsp)
movq %r14, 0xa8(%rsp)
movq %rbx, 0xb0(%rsp)
movq %r11, 0xb8(%rsp)
movq %r10, 0xc0(%rsp)
movq %rax, 0xc8(%rsp)
movb $0x0, %al
callq 0x9750
movq -0x1210(%rbp), %rcx
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x120, %rdx, %rdx      # imm = 0x120
addq %rdx, %rax
movq %rcx, 0x20(%rax)
movq -0x1220(%rbp), %rcx
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x120, %rdx, %rdx      # imm = 0x120
addq %rdx, %rax
movq %rcx, 0x30(%rax)
movq -0x1228(%rbp), %rcx
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movl -0x1230(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x120, %rdx, %rdx      # imm = 0x120
addq %rdx, %rax
movq %rcx, 0x40(%rax)
jmp 0x940c1
movq -0x48(%rbp), %rdi
callq 0x9770
movl $0x1, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
addq $0x13c8, %rsp           # imm = 0x13C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop