// File: DoubleString[P]RtConverter/src/Rtklib/rtcm3.cpp
// Function: bamboo::decode_type1046(bamboo::rtcm_t*)
static int decode_type1046(rtcm_t *rtcm)
{
    eph_t eph={0};
    double toc,sqrtA;
    char *msg;
    int i=24+12,prn,sat,week,e5b_hs,e5b_dvs,e1_hs,e1_dvs,sys=SYS_GAL;
    
    if (i+492<=rtcm->len*8) {
        prn       =getbitu(rtcm->buff,i, 6);              i+= 6;
        week      =getbitu(rtcm->buff,i,12);              i+=12;
        eph.iode  =getbitu(rtcm->buff,i,10);              i+=10;
        eph.sva   =getbitu(rtcm->buff,i, 8);              i+= 8;
        eph.idot  =getbits(rtcm->buff,i,14)*P2_43*SC2RAD; i+=14;
        toc       =getbitu(rtcm->buff,i,14)*60.0;         i+=14;
        eph.f2    =getbits(rtcm->buff,i, 6)*P2_59;        i+= 6;
        eph.f1    =getbits(rtcm->buff,i,21)*P2_46;        i+=21;
        eph.f0    =getbits(rtcm->buff,i,31)*P2_34;        i+=31;
        eph.crs   =getbits(rtcm->buff,i,16)*P2_5;         i+=16;
        eph.deln  =getbits(rtcm->buff,i,16)*P2_43*SC2RAD; i+=16;
        eph.M0    =getbits(rtcm->buff,i,32)*P2_31*SC2RAD; i+=32;
        eph.cuc   =getbits(rtcm->buff,i,16)*P2_29;        i+=16;
        eph.e     =getbitu(rtcm->buff,i,32)*P2_33;        i+=32;
        eph.cus   =getbits(rtcm->buff,i,16)*P2_29;        i+=16;
        sqrtA     =getbitu(rtcm->buff,i,32)*P2_19;        i+=32;
        eph.toes  =getbitu(rtcm->buff,i,14)*60.0;         i+=14;
        eph.cic   =getbits(rtcm->buff,i,16)*P2_29;        i+=16;
        eph.OMG0  =getbits(rtcm->buff,i,32)*P2_31*SC2RAD; i+=32;
        eph.cis   =getbits(rtcm->buff,i,16)*P2_29;        i+=16;
        eph.i0    =getbits(rtcm->buff,i,32)*P2_31*SC2RAD; i+=32;
        eph.crc   =getbits(rtcm->buff,i,16)*P2_5;         i+=16;
        eph.omg   =getbits(rtcm->buff,i,32)*P2_31*SC2RAD; i+=32;
        eph.OMGd  =getbits(rtcm->buff,i,24)*P2_43*SC2RAD; i+=24;
        eph.tgd[0]=getbits(rtcm->buff,i,10)*P2_32;        i+=10; /* E5a/E1 */
        eph.tgd[1]=getbits(rtcm->buff,i,10)*P2_32;        i+=10; /* E5b/E1 */
        e5b_hs    =getbitu(rtcm->buff,i, 2);              i+= 2; /* E5b OSHS */
        e5b_dvs   =getbitu(rtcm->buff,i, 1);              i+= 1; /* E5b OSDVS */
        e1_hs     =getbitu(rtcm->buff,i, 2);              i+= 2; /* E1 OSHS */
        e1_dvs    =getbitu(rtcm->buff,i, 1);              i+= 1; /* E1 OSDVS */
    }
    else {
        trace(2,"rtcm3 1046 length error: len=%d\n",rtcm->len);
        return -1;
    }
    trace(4,"decode_type1046: prn=%d iode=%d toe=%.0f\n",prn,eph.iode,eph.toes);
    
    if (rtcm->outtype) {
        msg=rtcm->msgtype+strlen(rtcm->msgtype);
        sprintf(msg," prn=%2d iode=%3d week=%d toe=%6.0f toc=%6.0f hs=%d %d dvs=%d %d",
                prn,eph.iode,week,eph.toes,toc,e5b_hs,e1_hs,e5b_dvs,e1_dvs);
    }
    if (!(sat=satno(sys,prn))) {
        trace(2,"rtcm3 1046 satellite number error: prn=%d\n",prn);
        return -1;
    }
    if (strstr(rtcm->opt,"-GALFNAV")) {
        return 0;
    }
    eph.sat=sat;
    eph.week=week+1024; /* gal-week = gst-week + 1024 */
    eph.toe=gpst2time(eph.week,eph.toes);
    eph.toc=gpst2time(eph.week,toc);
    eph.ttr=rtcm->time;
    eph.A=sqrtA*sqrtA;
    eph.svh=(e5b_hs<<7)+(e5b_dvs<<6)+(e1_hs<<1)+(e1_dvs<<0);
    eph.code=(1<<0)|(1<<9); /* data source = i/nav e1b + af0-2,toc,sisa for e5b-e1 */
    if (!strstr(rtcm->opt,"-EPHALL")) {
        if (eph.iode==rtcm->nav.eph[sat-1].iode) return 0; /* unchanged */
    }
    rtcm->nav.eph[sat-1]=eph;
    rtcm->ephsat=sat;
    return 2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, -0x10(%rbp)
leaq -0x130(%rbp), %rdi
xorl %esi, %esi
movl $0x120, %edx            # imm = 0x120
callq 0x93d0
movl $0x24, -0x14c(%rbp)
movl $0x8, -0x16c(%rbp)
movl -0x14c(%rbp), %eax
addl $0x1ec, %eax            # imm = 0x1EC
movq -0x10(%rbp), %rcx
movl 0x9f0c0(%rcx), %ecx
shll $0x3, %ecx
cmpl %ecx, %eax
jg 0x74dd1
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x6, %edx
movl %edx, -0x1bc(%rbp)
callq 0x8bfc0
movl %eax, -0x150(%rbp)
movl -0x14c(%rbp), %eax
addl $0x6, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0xc, %edx
callq 0x8bfc0
movl %eax, -0x158(%rbp)
movl -0x14c(%rbp), %eax
addl $0xc, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0xa, %edx
callq 0x8bfc0
movl %eax, -0x12c(%rbp)
movl -0x14c(%rbp), %eax
addl $0xa, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x8, %edx
callq 0x8bfc0
movl %eax, -0x124(%rbp)
movl -0x14c(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0xe, %edx
movl %edx, -0x194(%rbp)
callq 0x8c050
movl -0x194(%rbp), %edx
cvtsi2sd %eax, %xmm0
movsd 0x4a749(%rip), %xmm1    # 0xbee68
movsd %xmm1, -0x1b8(%rbp)
mulsd %xmm1, %xmm0
movsd 0x49625(%rip), %xmm1    # 0xbdd58
movsd %xmm1, -0x1b0(%rbp)
mulsd %xmm1, %xmm0
movsd %xmm0, -0xa0(%rbp)
movl -0x14c(%rbp), %eax
addl $0xe, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
callq 0x8bfc0
movl -0x1bc(%rbp), %edx
movl %eax, %eax
cvtsi2sd %rax, %xmm0
movsd 0x48697(%rip), %xmm1    # 0xbce18
mulsd %xmm1, %xmm0
movsd %xmm0, -0x138(%rbp)
movl -0x14c(%rbp), %eax
addl $0xe, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4a68a(%rip), %xmm1    # 0xbee48
mulsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
movl -0x14c(%rbp), %eax
addl $0x6, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x15, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4a653(%rip), %xmm1    # 0xbee50
mulsd %xmm1, %xmm0
movsd %xmm0, -0x50(%rbp)
movl -0x14c(%rbp), %eax
addl $0x15, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x1f, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4a61c(%rip), %xmm1    # 0xbee58
mulsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
movl -0x14c(%rbp), %eax
addl $0x1f, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x10, %edx
movl %edx, -0x1a4(%rbp)
callq 0x8c050
movl -0x1a4(%rbp), %edx
cvtsi2sd %eax, %xmm0
movsd 0x4a5f1(%rip), %xmm1    # 0xbee78
mulsd %xmm1, %xmm0
movsd %xmm0, -0x90(%rbp)
movl -0x14c(%rbp), %eax
addl $0x10, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
callq 0x8c050
movsd -0x1b8(%rbp), %xmm2
movsd -0x1b0(%rbp), %xmm1
cvtsi2sd %eax, %xmm0
mulsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0xb0(%rbp)
movl -0x14c(%rbp), %eax
addl $0x10, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x20, %edx
movl %edx, -0x198(%rbp)
callq 0x8c050
movsd -0x1b0(%rbp), %xmm1
movl -0x1a4(%rbp), %edx
cvtsi2sd %eax, %xmm0
movsd 0x486b2(%rip), %xmm2    # 0xbcfd8
mulsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0xb8(%rbp)
movl -0x14c(%rbp), %eax
addl $0x20, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
callq 0x8c050
movl -0x198(%rbp), %edx
cvtsi2sd %eax, %xmm0
movsd 0x4a503(%rip), %xmm1    # 0xbee70
movsd %xmm1, -0x1a0(%rbp)
mulsd %xmm1, %xmm0
movsd %xmm0, -0x88(%rbp)
movl -0x14c(%rbp), %eax
addl $0x10, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
callq 0x8bfc0
movl -0x1a4(%rbp), %edx
movl %eax, %eax
cvtsi2sd %rax, %xmm0
movsd 0x4a4a5(%rip), %xmm1    # 0xbee60
mulsd %xmm1, %xmm0
movsd %xmm0, -0xd8(%rbp)
movl -0x14c(%rbp), %eax
addl $0x20, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
callq 0x8c050
movsd -0x1a0(%rbp), %xmm1
movl -0x198(%rbp), %edx
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x80(%rbp)
movl -0x14c(%rbp), %eax
addl $0x10, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
callq 0x8bfc0
movl -0x194(%rbp), %edx
movl %eax, %eax
cvtsi2sd %rax, %xmm0
movsd 0x4859f(%rip), %xmm1    # 0xbcfe0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x140(%rbp)
movl -0x14c(%rbp), %eax
addl $0x20, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
callq 0x8bfc0
movl %eax, %eax
cvtsi2sd %rax, %xmm0
movsd 0x48397(%rip), %xmm1    # 0xbce18
mulsd %xmm1, %xmm0
movsd %xmm0, -0x68(%rbp)
movl -0x14c(%rbp), %eax
addl $0xe, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x10, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4a3b0(%rip), %xmm1    # 0xbee70
mulsd %xmm1, %xmm0
movsd %xmm0, -0x78(%rbp)
movl -0x14c(%rbp), %eax
addl $0x10, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x20, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x484d9(%rip), %xmm1    # 0xbcfd8
mulsd %xmm1, %xmm0
movsd 0x4924d(%rip), %xmm1    # 0xbdd58
mulsd %xmm1, %xmm0
movsd %xmm0, -0xc8(%rbp)
movl -0x14c(%rbp), %eax
addl $0x20, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x10, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4a323(%rip), %xmm1    # 0xbee70
mulsd %xmm1, %xmm0
movsd %xmm0, -0x70(%rbp)
movl -0x14c(%rbp), %eax
addl $0x10, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x20, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4844c(%rip), %xmm1    # 0xbcfd8
mulsd %xmm1, %xmm0
movsd 0x491c0(%rip), %xmm1    # 0xbdd58
mulsd %xmm1, %xmm0
movsd %xmm0, -0xd0(%rbp)
movl -0x14c(%rbp), %eax
addl $0x20, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x10, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4a29e(%rip), %xmm1    # 0xbee78
mulsd %xmm1, %xmm0
movsd %xmm0, -0x98(%rbp)
movl -0x14c(%rbp), %eax
addl $0x10, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x20, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x483bc(%rip), %xmm1    # 0xbcfd8
mulsd %xmm1, %xmm0
movsd 0x49130(%rip), %xmm1    # 0xbdd58
mulsd %xmm1, %xmm0
movsd %xmm0, -0xc0(%rbp)
movl -0x14c(%rbp), %eax
addl $0x20, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x18, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4a1fe(%rip), %xmm1    # 0xbee68
mulsd %xmm1, %xmm0
movsd 0x490e2(%rip), %xmm1    # 0xbdd58
mulsd %xmm1, %xmm0
movsd %xmm0, -0xa8(%rbp)
movl -0x14c(%rbp), %eax
addl $0x18, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0xa, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4a188(%rip), %xmm1    # 0xbee40
mulsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movl -0x14c(%rbp), %eax
addl $0xa, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0xa, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x4a149(%rip), %xmm1    # 0xbee40
mulsd %xmm1, %xmm0
movsd %xmm0, -0x38(%rbp)
movl -0x14c(%rbp), %eax
addl $0xa, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x2, %edx
callq 0x8bfc0
movl %eax, -0x15c(%rbp)
movl -0x14c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x1, %edx
callq 0x8bfc0
movl %eax, -0x160(%rbp)
movl -0x14c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x2, %edx
callq 0x8bfc0
movl %eax, -0x164(%rbp)
movl -0x14c(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x14c(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9f0c4, %rdi          # imm = 0x9F0C4
movl -0x14c(%rbp), %esi
movl $0x1, %edx
callq 0x8bfc0
movl %eax, -0x168(%rbp)
movl -0x14c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14c(%rbp)
jmp 0x74dfa
movq -0x10(%rbp), %rax
movl 0x9f0c0(%rax), %edx
movl $0x2, %edi
leaq 0x4cb54(%rip), %rsi     # 0xc193b
movb $0x0, %al
callq 0x8b980
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x750c5
movl -0x150(%rbp), %edx
movl -0x12c(%rbp), %ecx
movsd -0x68(%rbp), %xmm0
movl $0x4, %edi
leaq 0x4cb45(%rip), %rsi     # 0xc195c
movb $0x1, %al
callq 0x8b980
movq -0x10(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x74ebe
movq -0x10(%rbp), %rax
addq $0x9b9d0, %rax          # imm = 0x9B9D0
movq %rax, -0x1c8(%rbp)
movq -0x10(%rbp), %rdi
addq $0x9b9d0, %rdi          # imm = 0x9B9D0
callq 0x92e0
movq %rax, %rcx
movq -0x1c8(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rdi
movl -0x150(%rbp), %edx
movl -0x12c(%rbp), %ecx
movl -0x158(%rbp), %r8d
movsd -0x68(%rbp), %xmm0
movsd -0x138(%rbp), %xmm1
movl -0x15c(%rbp), %r9d
movl -0x164(%rbp), %r11d
movl -0x160(%rbp), %r10d
movl -0x168(%rbp), %eax
leaq 0x4cadc(%rip), %rsi     # 0xc1986
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x2, %al
callq 0x9150
movl -0x16c(%rbp), %edi
movl -0x150(%rbp), %esi
callq 0x8b1b0
movl %eax, -0x154(%rbp)
cmpl $0x0, %eax
jne 0x74eff
movl -0x150(%rbp), %edx
movl $0x2, %edi
leaq 0x4cadb(%rip), %rsi     # 0xc19c7
movb $0x0, %al
callq 0x8b980
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x750c5
movq -0x10(%rbp), %rdi
addq $0x9fd48, %rdi          # imm = 0x9FD48
leaq 0x49a3a(%rip), %rsi     # 0xbe94b
callq 0x91b0
cmpq $0x0, %rax
je 0x74f28
movl $0x0, -0x4(%rbp)
jmp 0x750c5
movl -0x154(%rbp), %eax
movl %eax, -0x130(%rbp)
movl -0x158(%rbp), %eax
addl $0x400, %eax            # imm = 0x400
movl %eax, -0x11c(%rbp)
movl -0x11c(%rbp), %edi
movsd -0x68(%rbp), %xmm0
callq 0x8e4a0
movq %rax, -0x180(%rbp)
movsd %xmm0, -0x178(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x108(%rbp)
movl -0x11c(%rbp), %edi
movsd -0x138(%rbp), %xmm0
callq 0x8e4a0
movq %rax, -0x190(%rbp)
movsd %xmm0, -0x188(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
movq %rcx, -0xf0(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0xe8(%rbp)
movsd -0x140(%rbp), %xmm0
mulsd -0x140(%rbp), %xmm0
movsd %xmm0, -0xe0(%rbp)
movl -0x15c(%rbp), %eax
shll $0x7, %eax
movl -0x160(%rbp), %ecx
shll $0x6, %ecx
addl %ecx, %eax
movl -0x164(%rbp), %ecx
shll %ecx
addl %ecx, %eax
movl -0x168(%rbp), %ecx
shll $0x0, %ecx
addl %ecx, %eax
movl %eax, -0x120(%rbp)
movl $0x201, -0x118(%rbp)    # imm = 0x201
movq -0x10(%rbp), %rdi
addq $0x9fd48, %rdi          # imm = 0x9FD48
leaq 0x49824(%rip), %rsi     # 0xbe85f
callq 0x91b0
cmpq $0x0, %rax
jne 0x7507d
movl -0x12c(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x80(%rcx), %rcx
movl -0x154(%rbp), %edx
subl $0x1, %edx
movslq %edx, %rdx
imulq $0x120, %rdx, %rdx      # imm = 0x120
addq %rdx, %rcx
cmpl 0x4(%rcx), %eax
jne 0x7507b
movl $0x0, -0x4(%rbp)
jmp 0x750c5
jmp 0x7507d
movq -0x10(%rbp), %rax
movq 0x80(%rax), %rdi
movl -0x154(%rbp), %eax
subl $0x1, %eax
cltq
imulq $0x120, %rax, %rax      # imm = 0x120
addq %rax, %rdi
leaq -0x130(%rbp), %rsi
movl $0x120, %edx            # imm = 0x120
callq 0x9610
movl -0x154(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x9bdd4(%rax)
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
nopw %cs:(%rax,%rax)