// File: DoubleString[P]RtConverter/src/Rtklib/rcvraw.cpp
// Function: bamboo::decode_bds_d2(unsigned char const*, bamboo::eph_t*)
extern int decode_bds_d2(const unsigned char *buff, eph_t *eph)
{
    double toc_bds,sqrtA;
    unsigned int f1p4,cucp5,ep6,cicp7,i0p8,OMGdp9,omgp10;
    unsigned int sow1,sow3,sow4,sow5,sow6,sow7,sow8,sow9,sow10;
    int i,f1p3,cucp4,ep5,cicp6,i0p7,OMGdp8,omgp9;
    int pgn1,pgn3,pgn4,pgn5,pgn6,pgn7,pgn8,pgn9,pgn10;
    
    trace(3,"decode_bds_d2:\n");
    
    i=8*38*0; /* page 1 */
    pgn1       =getbitu (buff,i+ 42, 4);
    sow1       =getbitu2(buff,i+ 18, 8,i+ 30,12);
    eph->svh   =getbitu (buff,i+ 46, 1); /* SatH1 */
    eph->iodc  =getbitu (buff,i+ 47, 5); /* AODC */
    eph->sva   =getbitu (buff,i+ 60, 4);
    eph->week  =getbitu (buff,i+ 64,13); /* week in BDT */
    toc_bds    =getbitu2(buff,i+ 77, 5,i+ 90,12)*8.0;
    eph->tgd[0]=getbits (buff,i+102,10)*0.1*1E-9;
    eph->tgd[1]=getbits (buff,i+120,10)*0.1*1E-9;
    
    i=8*38*2; /* page 3 */
    pgn3       =getbitu (buff,i+ 42, 4);
    sow3       =getbitu2(buff,i+ 18, 8,i+ 30,12);
    eph->f0    =getbits2(buff,i+100,12,i+120,12)*P2_33;
    f1p3       =getbits (buff,i+132,4);
    
    i=8*38*3; /* page 4 */
    pgn4       =getbitu (buff,i+ 42, 4);
    sow4       =getbitu2(buff,i+ 18, 8,i+ 30,12);
    f1p4       =getbitu2(buff,i+ 46, 6,i+ 60,12);
    eph->f2    =getbits2(buff,i+ 72,10,i+ 90, 1)*P2_66;
    eph->iode  =getbitu (buff,i+ 91, 5); /* AODE */
    eph->deln  =getbits (buff,i+ 96,16)*P2_43*SC2RAD;
    cucp4      =getbits (buff,i+120,14);
    
    i=8*38*4; /* page 5 */
    pgn5       =getbitu (buff,i+ 42, 4);
    sow5       =getbitu2(buff,i+ 18, 8,i+ 30,12);
    cucp5      =getbitu (buff,i+ 46, 4);
    eph->M0    =getbits3(buff,i+ 50, 2,i+ 60,22,i+ 90, 8)*P2_31*SC2RAD;
    eph->cus   =getbits2(buff,i+ 98,14,i+120, 4)*P2_31;
    ep5        =getbits (buff,i+124,10);
    
    i=8*38*5; /* page 6 */
    pgn6       =getbitu (buff,i+ 42, 4);
    sow6       =getbitu2(buff,i+ 18, 8,i+ 30,12);
    ep6        =getbitu2(buff,i+ 46, 6,i+ 60,16);
    sqrtA      =getbitu3(buff,i+ 76, 6,i+ 90,22,i+120,4)*P2_19;
    cicp6      =getbits (buff,i+124,10);
    eph->A     =sqrtA*sqrtA;
    
    i=8*38*6; /* page 7 */
    pgn7       =getbitu (buff,i+ 42, 4);
    sow7       =getbitu2(buff,i+ 18, 8,i+ 30,12);
    cicp7      =getbitu2(buff,i+ 46, 6,i+ 60, 2);
    eph->cis   =getbits (buff,i+ 62,18)*P2_31;
    eph->toes  =getbitu2(buff,i+ 80, 2,i+ 90,15)*8.0;
    i0p7       =getbits2(buff,i+105, 7,i+120,14);
    
    i=8*38*7; /* page 8 */
    pgn8       =getbitu (buff,i+ 42, 4);
    sow8       =getbitu2(buff,i+ 18, 8,i+ 30,12);
    i0p8       =getbitu2(buff,i+ 46, 6,i+ 60, 5);
    eph->crc   =getbits2(buff,i+ 65,17,i+ 90, 1)*P2_6;
    eph->crs   =getbits (buff,i+ 91,18)*P2_6;
    OMGdp8     =getbits2(buff,i+109, 3,i+120,16);
    
    i=8*38*8; /* page 9 */
    pgn9       =getbitu (buff,i+ 42, 4);
    sow9       =getbitu2(buff,i+ 18, 8,i+ 30,12);
    OMGdp9     =getbitu (buff,i+ 46, 5);
    eph->OMG0  =getbits3(buff,i+ 51, 1,i+ 60,22,i+ 90, 9)*P2_31*SC2RAD;
    omgp9      =getbits2(buff,i+ 99,13,i+120,14);
    
    i=8*38*9; /* page 10 */
    pgn10      =getbitu (buff,i+ 42, 4);
    sow10      =getbitu2(buff,i+ 18, 8,i+ 30,12);
    omgp10     =getbitu (buff,i+ 46, 5);
    eph->idot  =getbits2(buff,i+ 51, 1,i+ 60,13)*P2_43*SC2RAD;
    
    /* check consistency of page numbers, sows and toe/toc */
    if (pgn1!=1||pgn3!=3||pgn4!=4||pgn5!=5||pgn6!=6||pgn7!=7||pgn8!=8||pgn9!=9||
        pgn10!=10) {
        trace(3,"decode_bds_d2 error: pgn=%d %d %d %d %d %d %d %d %d\n",
              pgn1,pgn3,pgn4,pgn5,pgn6,pgn7,pgn8,pgn9,pgn10);
        return 0;
    }
    if (sow3!=sow1+6||sow4!=sow3+3||sow5!=sow4+3||sow6!=sow5+3||
        sow7!=sow6+3||sow8!=sow7+3||sow9!=sow8+3||sow10!=sow9+3) {
        trace(3,"decode_bds_d2 error: sow=%d %d %d %d %d %d %d %d %d\n",
              sow1,sow3,sow4,sow5,sow6,sow7,sow8,sow9,sow10);
        return 0;
    }
    if (toc_bds!=eph->toes) {
        trace(3,"decode_bds_d2 error: toe=%.0f toc=%.0f\n",eph->toes,toc_bds);
        return 0;
    }
    eph->f1  =merge_two_s(f1p3  ,f1p4  ,18)*P2_50;
    eph->cuc =merge_two_s(cucp4 ,cucp5 , 4)*P2_31;
    eph->e   =merge_two_s(ep5   ,ep6   ,22)*P2_33;
    eph->cic =merge_two_s(cicp6 ,cicp7 , 8)*P2_31;
    eph->i0  =merge_two_s(i0p7  ,i0p8  ,11)*P2_31*SC2RAD;
    eph->OMGd=merge_two_s(OMGdp8,OMGdp9, 5)*P2_43*SC2RAD;
    eph->omg =merge_two_s(omgp9 ,omgp10, 5)*P2_31*SC2RAD;
    
    eph->ttr=bdt2gpst(bdt2time(eph->week,sow1));      /* bdt -> gpst */
    if      (eph->toes>sow1+302400.0) eph->week++;
    else if (eph->toes<sow1-302400.0) eph->week--;
    eph->toe=bdt2gpst(bdt2time(eph->week,eph->toes)); /* bdt -> gpst */
    eph->toc=bdt2gpst(bdt2time(eph->week,toc_bds));   /* bdt -> gpst */
    eph->code=0; /* data source = unknown */
    eph->flag=2; /* nav type = GEO */
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
leaq 0x5b60d(%rip), %rsi     # 0xbf20a
xorl %eax, %eax
movl $0x3, %edi
callq 0x8b980
movl $0x0, -0x7c(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2a, %esi
movl $0x4, %edx
movl %edx, -0x140(%rbp)
callq 0x8bfc0
movl %eax, -0x9c(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x12, %esi
addl $0x1e, %ecx
movl $0x8, %edx
movl %edx, -0x13c(%rbp)
movl $0xc, %r8d
movl %r8d, -0x138(%rbp)
callq 0x63ae0
movl %eax, -0x58(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2e, %esi
movl $0x1, %edx
movl %edx, -0x160(%rbp)
callq 0x8bfc0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2f, %esi
movl $0x5, %edx
movl %edx, -0x15c(%rbp)
callq 0x8bfc0
movl -0x140(%rbp), %edx
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x3c, %esi
callq 0x8bfc0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x40, %esi
movl $0xd, %edx
callq 0x8bfc0
movl -0x15c(%rbp), %edx
movl -0x138(%rbp), %r8d
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x4d, %esi
addl $0x5a, %ecx
callq 0x63ae0
movl %eax, %eax
cvtsi2sd %rax, %xmm0
movsd 0x59268(%rip), %xmm1    # 0xbcf78
mulsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x66, %esi
movl $0xa, %edx
movl %edx, -0x144(%rbp)
callq 0x8c050
movl -0x144(%rbp), %edx
cvtsi2sd %eax, %xmm0
movsd 0x5a00b(%rip), %xmm1    # 0xbdd50
movsd %xmm1, -0x170(%rbp)
mulsd %xmm1, %xmm0
movsd 0x5a047(%rip), %xmm1    # 0xbdda0
movsd %xmm1, -0x168(%rbp)
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xf0(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x78, %esi
callq 0x8c050
movsd -0x170(%rbp), %xmm2
movsd -0x168(%rbp), %xmm1
movl -0x140(%rbp), %edx
cvtsi2sd %eax, %xmm0
mulsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xf8(%rax)
movl $0x260, -0x7c(%rbp)     # imm = 0x260
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2a, %esi
callq 0x8bfc0
movl -0x13c(%rbp), %edx
movl -0x138(%rbp), %r8d
movl %eax, -0xa0(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x12, %esi
addl $0x1e, %ecx
callq 0x63ae0
movl -0x138(%rbp), %r8d
movl %eax, -0x5c(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x64, %esi
addl $0x78, %ecx
movl %r8d, %edx
callq 0x63b30
movl -0x140(%rbp), %edx
cvtsi2sd %eax, %xmm0
movsd 0x5b042(%rip), %xmm1    # 0xbee60
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xd8(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x84, %esi
callq 0x8c050
movl -0x140(%rbp), %edx
movl %eax, -0x80(%rbp)
movl $0x390, -0x7c(%rbp)     # imm = 0x390
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2a, %esi
callq 0x8bfc0
movl -0x13c(%rbp), %edx
movl -0x138(%rbp), %r8d
movl %eax, -0xa4(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x12, %esi
addl $0x1e, %ecx
callq 0x63ae0
movl -0x138(%rbp), %r8d
movl %eax, -0x60(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x2e, %esi
addl $0x3c, %ecx
movl $0x6, %edx
movl %edx, -0x134(%rbp)
callq 0x63ae0
movl -0x160(%rbp), %r8d
movl -0x144(%rbp), %edx
movl %eax, -0x3c(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x48, %esi
addl $0x5a, %ecx
callq 0x63b30
movl -0x15c(%rbp), %edx
cvtsi2sd %eax, %xmm0
movsd 0x5afa3(%rip), %xmm1    # 0xbee88
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xe8(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x5b, %esi
callq 0x8bfc0
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x60, %esi
movl $0x10, %edx
movl %edx, -0x14c(%rbp)
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x5af35(%rip), %xmm1    # 0xbee68
mulsd %xmm1, %xmm0
movsd 0x59e19(%rip), %xmm1    # 0xbdd58
movsd %xmm1, -0x158(%rbp)
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x80(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x78, %esi
movl $0xe, %edx
movl %edx, -0x150(%rbp)
callq 0x8c050
movl -0x140(%rbp), %edx
movl %eax, -0x84(%rbp)
movl $0x4c0, -0x7c(%rbp)     # imm = 0x4C0
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2a, %esi
callq 0x8bfc0
movl -0x13c(%rbp), %edx
movl -0x138(%rbp), %r8d
movl %eax, -0xa8(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x12, %esi
addl $0x1e, %ecx
callq 0x63ae0
movl -0x140(%rbp), %edx
movl %eax, -0x64(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2e, %esi
callq 0x8bfc0
movl %eax, -0x40(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %r9d
movl %r9d, %esi
addl $0x32, %esi
movl %r9d, %ecx
addl $0x3c, %ecx
addl $0x5a, %r9d
movq %rsp, %rax
movl $0x8, (%rax)
movl $0x2, %edx
movl %edx, -0x124(%rbp)
movl $0x16, %r8d
movl %r8d, -0x148(%rbp)
callq 0x649e0
movsd -0x158(%rbp), %xmm1
movl -0x150(%rbp), %edx
movl -0x140(%rbp), %r8d
cvtsi2sd %eax, %xmm0
movsd 0x58fa4(%rip), %xmm2    # 0xbcfd8
movsd %xmm2, -0x130(%rbp)
mulsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x78(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x62, %esi
addl $0x78, %ecx
callq 0x63b30
movl -0x144(%rbp), %edx
movsd -0x130(%rbp), %xmm1
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xb0(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x7c, %esi
callq 0x8c050
movl -0x140(%rbp), %edx
movl %eax, -0x88(%rbp)
movl $0x5f0, -0x7c(%rbp)     # imm = 0x5F0
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2a, %esi
callq 0x8bfc0
movl -0x13c(%rbp), %edx
movl -0x138(%rbp), %r8d
movl %eax, -0xac(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x12, %esi
addl $0x1e, %ecx
callq 0x63ae0
movl -0x14c(%rbp), %r8d
movl -0x134(%rbp), %edx
movl %eax, -0x68(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x2e, %esi
addl $0x3c, %ecx
callq 0x63ae0
movl -0x148(%rbp), %r8d
movl -0x134(%rbp), %edx
movl %eax, -0x44(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %r9d
movl %r9d, %esi
addl $0x4c, %esi
movl %r9d, %ecx
addl $0x5a, %ecx
addl $0x78, %r9d
movq %rsp, %rax
movl $0x4, (%rax)
callq 0x64aa0
movl -0x144(%rbp), %edx
movl %eax, %eax
cvtsi2sd %rax, %xmm0
movsd 0x58e96(%rip), %xmm1    # 0xbcfe0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x7c, %esi
callq 0x8c050
movl -0x140(%rbp), %edx
movl %eax, -0x8c(%rbp)
movsd -0x38(%rbp), %xmm0
mulsd %xmm0, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x50(%rax)
movl $0x720, -0x7c(%rbp)     # imm = 0x720
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2a, %esi
callq 0x8bfc0
movl -0x13c(%rbp), %edx
movl -0x138(%rbp), %r8d
movl %eax, -0xb0(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x12, %esi
addl $0x1e, %ecx
callq 0x63ae0
movl -0x134(%rbp), %edx
movl -0x124(%rbp), %r8d
movl %eax, -0x6c(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x2e, %esi
addl $0x3c, %ecx
callq 0x63ae0
movl %eax, -0x48(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x3e, %esi
movl $0x12, %edx
callq 0x8c050
movsd -0x130(%rbp), %xmm1
movl -0x124(%rbp), %edx
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xc0(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %ecx
movl %ecx, %esi
addl $0x50, %esi
addl $0x5a, %ecx
movl $0xf, %r8d
callq 0x63ae0
movl %eax, %eax
cvtsi2sd %rax, %xmm0
movsd 0x58d35(%rip), %xmm1    # 0xbcf78
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xc8(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x69, %esi
movl -0x7c(%rbp), %ecx
addl $0x78, %ecx
movl $0x7, %edx
movl $0xe, %r8d
callq 0x63b30
movl %eax, -0x90(%rbp)
movl $0x850, -0x7c(%rbp)     # imm = 0x850
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2a, %esi
movl $0x4, %edx
callq 0x8bfc0
movl %eax, -0xb4(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x12, %esi
movl -0x7c(%rbp), %ecx
addl $0x1e, %ecx
movl $0x8, %edx
movl $0xc, %r8d
callq 0x63ae0
movl %eax, -0x70(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2e, %esi
movl -0x7c(%rbp), %ecx
addl $0x3c, %ecx
movl $0x6, %edx
movl $0x5, %r8d
callq 0x63ae0
movl %eax, -0x4c(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x41, %esi
movl -0x7c(%rbp), %ecx
addl $0x5a, %ecx
movl $0x11, %edx
movl $0x1, %r8d
callq 0x63b30
cvtsi2sd %eax, %xmm0
movsd 0x58cbc(%rip), %xmm1    # 0xbcfc8
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x98(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x5b, %esi
movl $0x12, %edx
callq 0x8c050
cvtsi2sd %eax, %xmm0
movsd 0x58c8c(%rip), %xmm1    # 0xbcfc8
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xa0(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x6d, %esi
movl -0x7c(%rbp), %ecx
addl $0x78, %ecx
movl $0x3, %edx
movl $0x10, %r8d
callq 0x63b30
movl %eax, -0x94(%rbp)
movl $0x980, -0x7c(%rbp)     # imm = 0x980
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2a, %esi
movl $0x4, %edx
callq 0x8bfc0
movl %eax, -0xb8(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x12, %esi
movl -0x7c(%rbp), %ecx
addl $0x1e, %ecx
movl $0x8, %edx
movl $0xc, %r8d
callq 0x63ae0
movl %eax, -0x74(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2e, %esi
movl $0x5, %edx
callq 0x8bfc0
movl %eax, -0x50(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x33, %esi
movl -0x7c(%rbp), %ecx
addl $0x3c, %ecx
movl -0x7c(%rbp), %r9d
addl $0x5a, %r9d
movl $0x1, %edx
movl $0x16, %r8d
movl $0x9, (%rsp)
callq 0x649e0
cvtsi2sd %eax, %xmm0
movsd 0x58bd0(%rip), %xmm1    # 0xbcfd8
mulsd %xmm1, %xmm0
movsd 0x59944(%rip), %xmm1    # 0xbdd58
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x68(%rax)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x63, %esi
movl -0x7c(%rbp), %ecx
addl $0x78, %ecx
movl $0xd, %edx
movl $0xe, %r8d
callq 0x63b30
movl %eax, -0x98(%rbp)
movl $0xab0, -0x7c(%rbp)     # imm = 0xAB0
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2a, %esi
movl $0x4, %edx
callq 0x8bfc0
movl %eax, -0xbc(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x12, %esi
movl -0x7c(%rbp), %ecx
addl $0x1e, %ecx
movl $0x8, %edx
movl $0xc, %r8d
callq 0x63ae0
movl %eax, -0x78(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x2e, %esi
movl $0x5, %edx
callq 0x8bfc0
movl %eax, -0x54(%rbp)
movq -0x20(%rbp), %rdi
movl -0x7c(%rbp), %esi
addl $0x33, %esi
movl -0x7c(%rbp), %ecx
addl $0x3c, %ecx
movl $0x1, %edx
movl $0xd, %r8d
callq 0x63b30
cvtsi2sd %eax, %xmm0
movsd 0x5a99a(%rip), %xmm1    # 0xbee68
mulsd %xmm1, %xmm0
movsd 0x5987e(%rip), %xmm1    # 0xbdd58
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x90(%rax)
cmpl $0x1, -0x9c(%rbp)
jne 0x6453b
cmpl $0x3, -0xa0(%rbp)
jne 0x6453b
cmpl $0x4, -0xa4(%rbp)
jne 0x6453b
cmpl $0x5, -0xa8(%rbp)
jne 0x6453b
cmpl $0x6, -0xac(%rbp)
jne 0x6453b
cmpl $0x7, -0xb0(%rbp)
jne 0x6453b
cmpl $0x8, -0xb4(%rbp)
jne 0x6453b
cmpl $0x9, -0xb8(%rbp)
jne 0x6453b
cmpl $0xa, -0xbc(%rbp)
je 0x645ab
movl -0x9c(%rbp), %edx
movl -0xa0(%rbp), %ecx
movl -0xa4(%rbp), %r8d
movl -0xa8(%rbp), %r9d
movl -0xac(%rbp), %r14d
movl -0xb0(%rbp), %ebx
movl -0xb4(%rbp), %r11d
movl -0xb8(%rbp), %r10d
movl -0xbc(%rbp), %eax
movl $0x3, %edi
leaq 0x5ac98(%rip), %rsi     # 0xbf21a
movl %r14d, (%rsp)
movl %ebx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movl %r10d, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movb $0x0, %al
callq 0x8b980
movl $0x0, -0x14(%rbp)
jmp 0x649c4
movl -0x5c(%rbp), %eax
movl -0x58(%rbp), %ecx
addl $0x6, %ecx
cmpl %ecx, %eax
jne 0x64613
movl -0x60(%rbp), %eax
movl -0x5c(%rbp), %ecx
addl $0x3, %ecx
cmpl %ecx, %eax
jne 0x64613
movl -0x64(%rbp), %eax
movl -0x60(%rbp), %ecx
addl $0x3, %ecx
cmpl %ecx, %eax
jne 0x64613
movl -0x68(%rbp), %eax
movl -0x64(%rbp), %ecx
addl $0x3, %ecx
cmpl %ecx, %eax
jne 0x64613
movl -0x6c(%rbp), %eax
movl -0x68(%rbp), %ecx
addl $0x3, %ecx
cmpl %ecx, %eax
jne 0x64613
movl -0x70(%rbp), %eax
movl -0x6c(%rbp), %ecx
addl $0x3, %ecx
cmpl %ecx, %eax
jne 0x64613
movl -0x74(%rbp), %eax
movl -0x70(%rbp), %ecx
addl $0x3, %ecx
cmpl %ecx, %eax
jne 0x64613
movl -0x78(%rbp), %eax
movl -0x74(%rbp), %ecx
addl $0x3, %ecx
cmpl %ecx, %eax
je 0x64668
movl -0x58(%rbp), %edx
movl -0x5c(%rbp), %ecx
movl -0x60(%rbp), %r8d
movl -0x64(%rbp), %r9d
movl -0x68(%rbp), %r14d
movl -0x6c(%rbp), %ebx
movl -0x70(%rbp), %r11d
movl -0x74(%rbp), %r10d
movl -0x78(%rbp), %eax
movl $0x3, %edi
leaq 0x5ac10(%rip), %rsi     # 0xbf24f
movl %r14d, (%rsp)
movl %ebx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movl %r10d, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movb $0x0, %al
callq 0x8b980
movl $0x0, -0x14(%rbp)
jmp 0x649c4
movsd -0x30(%rbp), %xmm0
movq -0x28(%rbp), %rax
ucomisd 0xc8(%rax), %xmm0
jne 0x6467f
jp 0x6467f
jmp 0x646af
movq -0x28(%rbp), %rax
movsd 0xc8(%rax), %xmm0
movsd -0x30(%rbp), %xmm1
movl $0x3, %edi
leaq 0x5abe8(%rip), %rsi     # 0xbf284
movb $0x2, %al
callq 0x8b980
movl $0x0, -0x14(%rbp)
jmp 0x649c4
movl -0x80(%rbp), %edi
movl -0x3c(%rbp), %esi
movl $0x12, %edx
callq 0x64b20
cvtsi2sd %eax, %xmm0
movsd 0x588ed(%rip), %xmm1    # 0xbcfb8
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xe0(%rax)
movl -0x84(%rbp), %edi
movl -0x40(%rbp), %esi
movl $0x4, %edx
callq 0x64b20
cvtsi2sd %eax, %xmm0
movsd 0x588de(%rip), %xmm1    # 0xbcfd8
movsd %xmm1, -0x180(%rbp)
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xa8(%rax)
movl -0x88(%rbp), %edi
movl -0x44(%rbp), %esi
movl $0x16, %edx
callq 0x64b20
cvtsi2sd %eax, %xmm0
movsd 0x5a72f(%rip), %xmm1    # 0xbee60
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x58(%rax)
movl -0x8c(%rbp), %edi
movl -0x48(%rbp), %esi
movl $0x8, %edx
callq 0x64b20
movsd -0x180(%rbp), %xmm1
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0xb8(%rax)
movl -0x90(%rbp), %edi
movl -0x4c(%rbp), %esi
movl $0xb, %edx
callq 0x64b20
movsd -0x180(%rbp), %xmm1
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
movsd 0x595c0(%rip), %xmm1    # 0xbdd58
movsd %xmm1, -0x178(%rbp)
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x60(%rax)
movl -0x94(%rbp), %edi
movl -0x50(%rbp), %esi
movl $0x5, %edx
movl %edx, -0x184(%rbp)
callq 0x64b20
movl -0x184(%rbp), %edx
movsd -0x178(%rbp), %xmm1
cvtsi2sd %eax, %xmm0
movsd 0x5a688(%rip), %xmm2    # 0xbee68
mulsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x88(%rax)
movl -0x98(%rbp), %edi
movl -0x54(%rbp), %esi
callq 0x64b20
movsd -0x180(%rbp), %xmm2
movsd -0x178(%rbp), %xmm1
cvtsi2sd %eax, %xmm0
mulsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, 0x70(%rax)
movq -0x28(%rbp), %rax
movl 0x14(%rax), %edi
movl -0x58(%rbp), %eax
cvtsi2sd %rax, %xmm0
callq 0x8e720
movq %rax, -0xe0(%rbp)
movsd %xmm0, -0xd8(%rbp)
movq -0xe0(%rbp), %rdi
movsd -0xd8(%rbp), %xmm0
callq 0x8f210
movq %rax, -0xd0(%rbp)
movsd %xmm0, -0xc8(%rbp)
movq -0x28(%rbp), %rax
movups -0xd0(%rbp), %xmm0
movups %xmm0, 0x40(%rax)
movq -0x28(%rbp), %rax
movsd 0xc8(%rax), %xmm0
movl -0x58(%rbp), %eax
cvtsi2sd %rax, %xmm1
movsd 0x594c8(%rip), %xmm2    # 0xbdd60
addsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x648b1
movq -0x28(%rbp), %rax
movl 0x14(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x14(%rax)
jmp 0x648e6
movq -0x28(%rbp), %rax
movsd 0xc8(%rax), %xmm1
movl -0x58(%rbp), %eax
cvtsi2sd %rax, %xmm0
movsd 0x59493(%rip), %xmm2    # 0xbdd60
subsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x648e4
movq -0x28(%rbp), %rax
movl 0x14(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x14(%rax)
jmp 0x648e6
movq -0x28(%rbp), %rax
movl 0x14(%rax), %edi
movq -0x28(%rbp), %rax
movsd 0xc8(%rax), %xmm0
callq 0x8e720
movq %rax, -0x100(%rbp)
movsd %xmm0, -0xf8(%rbp)
movq -0x100(%rbp), %rdi
movsd -0xf8(%rbp), %xmm0
callq 0x8f210
movq %rax, -0xf0(%rbp)
movsd %xmm0, -0xe8(%rbp)
movq -0x28(%rbp), %rax
movq -0xf0(%rbp), %rcx
movq %rcx, 0x20(%rax)
movq -0xe8(%rbp), %rcx
movq %rcx, 0x28(%rax)
movq -0x28(%rbp), %rax
movl 0x14(%rax), %edi
movsd -0x30(%rbp), %xmm0
callq 0x8e720
movq %rax, -0x120(%rbp)
movsd %xmm0, -0x118(%rbp)
movq -0x120(%rbp), %rdi
movsd -0x118(%rbp), %xmm0
callq 0x8f210
movq %rax, -0x110(%rbp)
movsd %xmm0, -0x108(%rbp)
movq -0x28(%rbp), %rax
movq -0x110(%rbp), %rcx
movq %rcx, 0x30(%rax)
movq -0x108(%rbp), %rcx
movq %rcx, 0x38(%rax)
movq -0x28(%rbp), %rax
movl $0x0, 0x18(%rax)
movq -0x28(%rbp), %rax
movl $0x2, 0x1c(%rax)
movl $0x1, -0x14(%rbp)
movl -0x14(%rbp), %eax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r14
popq %rbp
retq
nopw %cs:(%rax,%rax)