// File: DoubleString[P]RtConverter/src/Rtklib/rtcm3e.cpp
// Function: bamboo::encode_type1020(bamboo::rtcm_t*, int)
static int encode_type1020(rtcm_t *rtcm, int sync)
{
    geph_t *geph;
    gtime_t time;
    double ep[6];
    int i=24,j,prn,tk_h,tk_m,tk_s,tb,pos[3],vel[3],acc[3],gamn,taun,dtaun;
    int fcn,NT;
    
    trace(3,"encode_type1020: sync=%d\n",sync);
    
    if (satsys(rtcm->ephsat,&prn)!=SYS_GLO) return 0;
    geph=rtcm->nav.geph+prn-1;
    if (geph->sat!=rtcm->ephsat) return 0;
    fcn=geph->frq+7;
    
    /* time of frame within day (utc(su) + 3 hr) */
    time=timeadd(gpst2utc(geph->tof),10800.0);
    time2epoch(time,ep);
    tk_h=(int)ep[3];
    tk_m=(int)ep[4];
    tk_s=ROUND(ep[5]/30.0);
    
    /* # of days since jan 1 in leap year */
    ep[0]=floor(ep[0]/4.0)*4.0; ep[1]=ep[2]=1.0;
    ep[3]=ep[4]=ep[5]=0.0;
    NT=(int)floor(timediff(time,epoch2time(ep))/86400.+1.0);
    
    /* index of time interval within day (utc(su) + 3 hr) */
    time=timeadd(gpst2utc(geph->toe),10800.0);
    time2epoch(time,ep);
    tb=ROUND((ep[3]*3600.0+ep[4]*60.0+ep[5])/900.0);
    
    for (j=0;j<3;j++) {
        pos[j]=ROUND(geph->pos[j]/P2_11/1E3);
        vel[j]=ROUND(geph->vel[j]/P2_20/1E3);
        acc[j]=ROUND(geph->acc[j]/P2_30/1E3);
    }
    gamn =ROUND(geph->gamn /P2_40);
    taun =ROUND(geph->taun /P2_30);
    dtaun=ROUND(geph->dtaun/P2_30);
    
    setbitu(rtcm->buff,i,12,1020     ); i+=12;
    setbitu(rtcm->buff,i, 6,prn      ); i+= 6;
    setbitu(rtcm->buff,i, 5,fcn      ); i+= 5;
    setbitu(rtcm->buff,i, 4,0        ); i+= 4; /* almanac health,P1 */
    setbitu(rtcm->buff,i, 5,tk_h     ); i+= 5;
    setbitu(rtcm->buff,i, 6,tk_m     ); i+= 6;
    setbitu(rtcm->buff,i, 1,tk_s     ); i+= 1;
    setbitu(rtcm->buff,i, 1,geph->svh); i+= 1; /* Bn */
    setbitu(rtcm->buff,i, 1,0        ); i+= 1; /* P2 */
    setbitu(rtcm->buff,i, 7,tb       ); i+= 7;
    setbitg(rtcm->buff,i,24,vel[0]   ); i+=24;
    setbitg(rtcm->buff,i,27,pos[0]   ); i+=27;
    setbitg(rtcm->buff,i, 5,acc[0]   ); i+= 5;
    setbitg(rtcm->buff,i,24,vel[1]   ); i+=24;
    setbitg(rtcm->buff,i,27,pos[1]   ); i+=27;
    setbitg(rtcm->buff,i, 5,acc[1]   ); i+= 5;
    setbitg(rtcm->buff,i,24,vel[2]   ); i+=24;
    setbitg(rtcm->buff,i,27,pos[2]   ); i+=27;
    setbitg(rtcm->buff,i, 5,acc[2]   ); i+= 5;
    setbitu(rtcm->buff,i, 1,0        ); i+= 1; /* P3 */
    setbitg(rtcm->buff,i,11,gamn     ); i+=11;
    setbitu(rtcm->buff,i, 3,0        ); i+= 3; /* P,ln */
    setbitg(rtcm->buff,i,22,taun     ); i+=22;
    setbitu(rtcm->buff,i, 5,dtaun    ); i+= 5;
    setbitu(rtcm->buff,i, 5,geph->age); i+= 5; /* En */
    setbitu(rtcm->buff,i, 1,0        ); i+= 1; /* P4 */
    setbitu(rtcm->buff,i, 4,0        ); i+= 4; /* FT */
    setbitu(rtcm->buff,i,11,NT       ); i+=11;
    setbitu(rtcm->buff,i, 2,0        ); i+= 2; /* M */
    setbitu(rtcm->buff,i, 1,0        ); i+= 1; /* flag for addtional data */
    setbitu(rtcm->buff,i,11,0        ); i+=11; /* NA */
    setbitu(rtcm->buff,i,32,0        ); i+=32; /* tauc */
    setbitu(rtcm->buff,i, 5,0        ); i+= 5; /* N4 */
    setbitu(rtcm->buff,i,22,0        ); i+=22; /* taugps */
    setbitu(rtcm->buff,i, 1,0        ); i+= 1; /* ln */
    setbitu(rtcm->buff,i, 7,0        ); i+= 7;
    rtcm->nbit=i;
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl $0x18, -0x64(%rbp)
movl -0x14(%rbp), %edx
movl $0x3, %edi
leaq 0x41f5a(%rip), %rsi     # 0xc2732
movb $0x0, %al
callq 0x8b980
movq -0x10(%rbp), %rax
movl 0x9bdd4(%rax), %edi
leaq -0x6c(%rbp), %rsi
callq 0x8b3b0
cmpl $0x4, %eax
je 0x80803
movl $0x0, -0x4(%rbp)
jmp 0x811d2
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rax
movslq -0x6c(%rbp), %rcx
imulq $0x98, %rcx, %rcx
addq %rcx, %rax
addq $-0x98, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
cmpl 0x9bdd4(%rcx), %eax
je 0x80844
movl $0x0, -0x4(%rbp)
jmp 0x811d2
movq -0x20(%rbp), %rax
movl 0x8(%rax), %eax
addl $0x7, %eax
movl %eax, -0xb0(%rbp)
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rcx
movq %rcx, -0xe8(%rbp)
movq 0x30(%rax), %rax
movq %rax, -0xe0(%rbp)
movq -0xe8(%rbp), %rdi
movsd -0xe0(%rbp), %xmm0
callq 0x8ef80
movq %rax, -0xd8(%rbp)
movsd %xmm0, -0xd0(%rbp)
movq -0xd8(%rbp), %rdi
movsd -0xd0(%rbp), %xmm0
movsd 0x3c748(%rip), %xmm1    # 0xbcff0
callq 0x8e860
movq %rax, -0xc8(%rbp)
movsd %xmm0, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq -0x60(%rbp), %rsi
movq -0xf8(%rbp), %rdi
movsd -0xf0(%rbp), %xmm0
callq 0x8e2f0
cvttsd2si -0x48(%rbp), %eax
movl %eax, -0x70(%rbp)
cvttsd2si -0x40(%rbp), %eax
movl %eax, -0x74(%rbp)
movsd -0x38(%rbp), %xmm0
movsd 0x400e3(%rip), %xmm1    # 0xc0a00
divsd %xmm1, %xmm0
movsd 0x3c557(%rip), %xmm1    # 0xbce80
addsd %xmm1, %xmm0
callq 0x9c90
cvttsd2si %xmm0, %eax
movl %eax, -0x78(%rbp)
movsd -0x60(%rbp), %xmm0
movsd 0x3c4aa(%rip), %xmm1    # 0xbcdf0
divsd %xmm1, %xmm0
callq 0x9c90
movsd 0x3c499(%rip), %xmm1    # 0xbcdf0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x60(%rbp)
movsd 0x3b4f8(%rip), %xmm0    # 0xbbe60
movsd %xmm0, -0x50(%rbp)
movsd 0x3b4eb(%rip), %xmm0    # 0xbbe60
movsd %xmm0, -0x58(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x38(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x40(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x48(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x8e180
movq %rax, -0x118(%rbp)
movsd %xmm0, -0x110(%rbp)
movq -0x108(%rbp), %rdi
movsd -0x100(%rbp), %xmm0
movq -0x118(%rbp), %rsi
movsd -0x110(%rbp), %xmm1
callq 0x8e8e0
movsd 0x3c435(%rip), %xmm1    # 0xbce20
divsd %xmm1, %xmm0
movsd 0x3b469(%rip), %xmm1    # 0xbbe60
addsd %xmm1, %xmm0
callq 0x9c90
cvttsd2si %xmm0, %eax
movl %eax, -0xb4(%rbp)
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rcx
movq %rcx, -0x148(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0x140(%rbp)
movq -0x148(%rbp), %rdi
movsd -0x140(%rbp), %xmm0
callq 0x8ef80
movq %rax, -0x138(%rbp)
movsd %xmm0, -0x130(%rbp)
movq -0x138(%rbp), %rdi
movsd -0x130(%rbp), %xmm0
movsd 0x3c592(%rip), %xmm1    # 0xbcff0
callq 0x8e860
movq %rax, -0x128(%rbp)
movsd %xmm0, -0x120(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq -0x60(%rbp), %rsi
movq -0x158(%rbp), %rdi
movsd -0x150(%rbp), %xmm0
callq 0x8e2f0
movsd -0x48(%rbp), %xmm0
movsd 0x3c355(%rip), %xmm1    # 0xbce18
mulsd -0x40(%rbp), %xmm1
movsd 0x3c340(%rip), %xmm2    # 0xbce10
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
addsd -0x38(%rbp), %xmm0
movsd 0x3c503(%rip), %xmm1    # 0xbcfe8
divsd %xmm1, %xmm0
movsd 0x3c38f(%rip), %xmm1    # 0xbce80
addsd %xmm1, %xmm0
callq 0x9c90
cvttsd2si %xmm0, %eax
movl %eax, -0x7c(%rbp)
movl $0x0, -0x68(%rbp)
cmpl $0x3, -0x68(%rbp)
jge 0x80bf2
movq -0x20(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsd 0x38(%rax,%rcx,8), %xmm0
movsd 0x3e370(%rip), %xmm1    # 0xbee98
divsd %xmm1, %xmm0
movsd 0x3c8f4(%rip), %xmm1    # 0xbd428
divsd %xmm1, %xmm0
movsd 0x3c340(%rip), %xmm1    # 0xbce80
addsd %xmm1, %xmm0
callq 0x9c90
cvttsd2si %xmm0, %ecx
movslq -0x68(%rbp), %rax
movl %ecx, -0x88(%rbp,%rax,4)
movq -0x20(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsd 0x50(%rax,%rcx,8), %xmm0
movsd 0x3e332(%rip), %xmm1    # 0xbeea0
divsd %xmm1, %xmm0
movsd 0x3c8ae(%rip), %xmm1    # 0xbd428
divsd %xmm1, %xmm0
movsd 0x3c2fa(%rip), %xmm1    # 0xbce80
addsd %xmm1, %xmm0
callq 0x9c90
cvttsd2si %xmm0, %ecx
movslq -0x68(%rbp), %rax
movl %ecx, -0x94(%rbp,%rax,4)
movq -0x20(%rbp), %rax
movslq -0x68(%rbp), %rcx
movsd 0x68(%rax,%rcx,8), %xmm0
movsd 0x3e2dc(%rip), %xmm1    # 0xbee90
divsd %xmm1, %xmm0
movsd 0x3c868(%rip), %xmm1    # 0xbd428
divsd %xmm1, %xmm0
movsd 0x3c2b4(%rip), %xmm1    # 0xbce80
addsd %xmm1, %xmm0
callq 0x9c90
cvttsd2si %xmm0, %ecx
movslq -0x68(%rbp), %rax
movl %ecx, -0xa0(%rbp,%rax,4)
movl -0x68(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x68(%rbp)
jmp 0x80b08
movq -0x20(%rbp), %rax
movsd 0x88(%rax), %xmm0
movsd 0x3e2a2(%rip), %xmm1    # 0xbeea8
divsd %xmm1, %xmm0
movsd 0x3c26e(%rip), %xmm1    # 0xbce80
addsd %xmm1, %xmm0
callq 0x9c90
cvttsd2si %xmm0, %eax
movl %eax, -0xa4(%rbp)
movq -0x20(%rbp), %rax
movsd 0x80(%rax), %xmm0
movsd 0x3e257(%rip), %xmm1    # 0xbee90
divsd %xmm1, %xmm0
movsd 0x3c23b(%rip), %xmm1    # 0xbce80
addsd %xmm1, %xmm0
callq 0x9c90
cvttsd2si %xmm0, %eax
movl %eax, -0xa8(%rbp)
movq -0x20(%rbp), %rax
movsd 0x90(%rax), %xmm0
movsd 0x3e224(%rip), %xmm1    # 0xbee90
divsd %xmm1, %xmm0
movsd 0x3c208(%rip), %xmm1    # 0xbce80
addsd %xmm1, %xmm0
callq 0x9c90
cvttsd2si %xmm0, %eax
movl %eax, -0xac(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0xc, %edx
movl $0x3fc, %ecx            # imm = 0x3FC
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0xc, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x6c(%rbp), %ecx
movl $0x6, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x6, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0xb0(%rbp), %ecx
movl $0x5, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x4, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x70(%rbp), %ecx
movl $0x5, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x74(%rbp), %ecx
movl $0x6, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x6, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x78(%rbp), %ecx
movl $0x1, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movq -0x20(%rbp), %rax
movl 0xc(%rax), %ecx
movl $0x1, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x7c(%rbp), %ecx
movl $0x7, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x7, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x94(%rbp), %ecx
movl $0x18, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x18, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x88(%rbp), %ecx
movl $0x1b, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x1b, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0xa0(%rbp), %ecx
movl $0x5, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x90(%rbp), %ecx
movl $0x18, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x18, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x84(%rbp), %ecx
movl $0x1b, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x1b, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x9c(%rbp), %ecx
movl $0x5, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x8c(%rbp), %ecx
movl $0x18, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x18, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x80(%rbp), %ecx
movl $0x1b, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x1b, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0x98(%rbp), %ecx
movl $0x5, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0xa4(%rbp), %ecx
movl $0xb, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0xb, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x3, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x3, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0xa8(%rbp), %ecx
movl $0x16, %edx
callq 0x88570
movl -0x64(%rbp), %eax
addl $0x16, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0xac(%rbp), %ecx
movl $0x5, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movq -0x20(%rbp), %rax
movl 0x14(%rax), %ecx
movl $0x5, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x4, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl -0xb4(%rbp), %ecx
movl $0xb, %edx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0xb, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x2, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0xb, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0xb, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x20, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x20, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x5, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x16, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x16, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x64(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x64(%rbp), %esi
movl $0x7, %edx
xorl %ecx, %ecx
callq 0x8c0d0
movl -0x64(%rbp), %eax
addl $0x7, %eax
movl %eax, -0x64(%rbp)
movl -0x64(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x9f0bc(%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
nop