// File: /workspace/github_cpp_makefile_star2_O3/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x38d83(%rip), %rsi     # 0x6d0aa
movl $0x3, %edi
xorl %eax, %eax
callq 0x4d55d
movq %r15, %rdi
movl $0x2a, %esi
movl $0x4, %edx
callq 0x4d9d6
movl %eax, -0x40(%rbp)
movq %r15, %rdi
movl $0x12, %esi
movl $0x8, %edx
callq 0x4d9d6
movq %rax, -0x100(%rbp)
movq %r15, %rdi
movl $0x1e, %esi
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0xb0(%rbp)
movq %r15, %rdi
movl $0x2e, %esi
movl $0x1, %edx
callq 0x4d9d6
movl %eax, 0x10(%rbx)
movq %r15, %rdi
movl $0x2f, %esi
movl $0x5, %edx
callq 0x4d9d6
movl %eax, 0x8(%rbx)
movq %r15, %rdi
movl $0x3c, %esi
movl $0x4, %edx
callq 0x4d9d6
movl %eax, 0xc(%rbx)
movq %r15, %rdi
movl $0x40, %esi
movl $0xd, %edx
callq 0x4d9d6
movl %eax, 0x14(%rbx)
movq %r15, %rdi
movl $0x4d, %esi
movl $0x5, %edx
callq 0x4d9d6
movq %rax, -0xc0(%rbp)
movq %r15, %rdi
movl $0x5a, %esi
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0x8c(%rbp)
movq %r15, %rdi
movl $0x66, %esi
movl $0xa, %edx
callq 0x4da25
cvtsi2sd %eax, %xmm0
mulsd 0x3796c(%rip), %xmm0    # 0x6bd88
mulsd 0x388e4(%rip), %xmm0    # 0x6cd08
movsd %xmm0, 0xf0(%rbx)
movq %r15, %rdi
movl $0x78, %esi
movl $0xa, %edx
callq 0x4da25
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x3793b(%rip), %xmm0    # 0x6bd88
mulsd 0x388b3(%rip), %xmm0    # 0x6cd08
movsd %xmm0, 0xf8(%rbx)
movq %r15, %rdi
movl $0x28a, %esi            # imm = 0x28A
movl $0x4, %edx
callq 0x4d9d6
movl %eax, -0x38(%rbp)
movq %r15, %rdi
movl $0x272, %esi            # imm = 0x272
movl $0x8, %edx
callq 0x4d9d6
movq %rax, -0xf8(%rbp)
movq %r15, %rdi
movl $0x27e, %esi            # imm = 0x27E
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0xac(%rbp)
movq %r15, %rdi
movl $0x2c4, %esi            # imm = 0x2C4
movl $0xc, %edx
movl $0x2d8, %ecx            # imm = 0x2D8
movl $0xc, %r8d
callq 0x3429f
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x387f1(%rip), %xmm0    # 0x6ccc0
movsd %xmm0, 0xd8(%rbx)
movq %r15, %rdi
movl $0x2e4, %esi            # imm = 0x2E4
movl $0x4, %edx
callq 0x4da25
movl %eax, -0x88(%rbp)
movq %r15, %rdi
movl $0x3ba, %esi            # imm = 0x3BA
movl $0x4, %edx
callq 0x4d9d6
movl %eax, -0xb8(%rbp)
movq %r15, %rdi
movl $0x3a2, %esi            # imm = 0x3A2
movl $0x8, %edx
callq 0x4d9d6
movq %rax, -0xf0(%rbp)
movq %r15, %rdi
movl $0x3ae, %esi            # imm = 0x3AE
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0xa8(%rbp)
movq %r15, %rdi
movl $0x3be, %esi            # imm = 0x3BE
movl $0x6, %edx
callq 0x4d9d6
movl %eax, -0x84(%rbp)
movq %r15, %rdi
movl $0x3cc, %esi            # imm = 0x3CC
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0x80(%rbp)
movq %r15, %rdi
movl $0x3d8, %esi            # imm = 0x3D8
movl $0xa, %edx
movl $0x3ea, %ecx            # imm = 0x3EA
movl $0x1, %r8d
callq 0x3429f
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x3877f(%rip), %xmm0    # 0x6cd10
movsd %xmm0, 0xe8(%rbx)
movq %r15, %rdi
movl $0x3eb, %esi            # imm = 0x3EB
movl $0x5, %edx
callq 0x4d9d6
movl %eax, 0x4(%rbx)
movq %r15, %rdi
movl $0x3f0, %esi            # imm = 0x3F0
movl $0x10, %edx
callq 0x4da25
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x38701(%rip), %xmm0    # 0x6ccd0
mulsd 0x377d1(%rip), %xmm0    # 0x6bda8
movsd %xmm0, 0x80(%rbx)
movq %r15, %rdi
movl $0x408, %esi            # imm = 0x408
movl $0xe, %edx
callq 0x4da25
movl %eax, -0x7c(%rbp)
movq %r15, %rdi
movl $0x4ea, %esi            # imm = 0x4EA
movl $0x4, %edx
callq 0x4d9d6
movl %eax, -0xb4(%rbp)
movq %r15, %rdi
movl $0x4d2, %esi            # imm = 0x4D2
movl $0x8, %edx
callq 0x4d9d6
movq %rax, -0xe8(%rbp)
movq %r15, %rdi
movl $0x4de, %esi            # imm = 0x4DE
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0xa4(%rbp)
movq %r15, %rdi
movl $0x4ee, %esi            # imm = 0x4EE
movl $0x4, %edx
callq 0x4d9d6
movl %eax, -0x78(%rbp)
movq %r15, %rdi
movl $0x4f2, %esi            # imm = 0x4F2
movl $0x2, %edx
movl $0x4fc, %ecx            # imm = 0x4FC
movl $0x51a, %r8d            # imm = 0x51A
movl $0x8, %r9d
callq 0x34e9a
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x38634(%rip), %xmm0    # 0x6ccb8
mulsd 0x3771c(%rip), %xmm0    # 0x6bda8
movsd %xmm0, 0x78(%rbx)
movq %r15, %rdi
movl $0x522, %esi            # imm = 0x522
movl $0xe, %edx
movl $0x538, %ecx            # imm = 0x538
movl $0x4, %r8d
callq 0x3429f
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x385fb(%rip), %xmm0    # 0x6ccb8
movsd %xmm0, 0xb0(%rbx)
movq %r15, %rdi
movl $0x53c, %esi            # imm = 0x53C
movl $0xa, %edx
callq 0x4da25
movl %eax, -0x74(%rbp)
movq %r15, %rdi
movl $0x61a, %esi            # imm = 0x61A
movl $0x4, %edx
callq 0x4d9d6
movq %rax, -0x110(%rbp)
movq %r15, %rdi
movl $0x602, %esi            # imm = 0x602
movl $0x8, %edx
callq 0x4d9d6
movq %rax, -0xe0(%rbp)
movq %r15, %rdi
movl $0x60e, %esi            # imm = 0x60E
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0xa0(%rbp)
movq %r15, %rdi
movl $0x61e, %esi            # imm = 0x61E
movl $0x6, %edx
callq 0x4d9d6
movl %eax, -0x70(%rbp)
movq %r15, %rdi
movl $0x62c, %esi            # imm = 0x62C
movl $0x10, %edx
callq 0x4d9d6
movl %eax, -0x6c(%rbp)
movq %r15, %rdi
movl $0x63c, %esi            # imm = 0x63C
movl $0x6, %edx
movl $0x64a, %ecx            # imm = 0x64A
movl $0x668, %r8d            # imm = 0x668
movl $0x4, %r9d
callq 0x34f3d
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x38545(%rip), %xmm0    # 0x6ccc8
movsd %xmm0, -0x30(%rbp)
movq %r15, %rdi
movl $0x66c, %esi            # imm = 0x66C
movl $0xa, %edx
callq 0x4da25
movl %eax, -0x68(%rbp)
movsd -0x30(%rbp), %xmm0
mulsd %xmm0, %xmm0
movsd %xmm0, 0x50(%rbx)
movq %r15, %rdi
movl $0x74a, %esi            # imm = 0x74A
movl $0x4, %edx
callq 0x4d9d6
movq %rax, -0x30(%rbp)
movq %r15, %rdi
movl $0x732, %esi            # imm = 0x732
movl $0x8, %edx
callq 0x4d9d6
movq %rax, -0xd8(%rbp)
movq %r15, %rdi
movl $0x73e, %esi            # imm = 0x73E
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0x9c(%rbp)
movq %r15, %rdi
movl $0x74e, %esi            # imm = 0x74E
movl $0x6, %edx
callq 0x4d9d6
movl %eax, -0x64(%rbp)
movq %r15, %rdi
movl $0x75c, %esi            # imm = 0x75C
movl $0x2, %edx
callq 0x4d9d6
movl %eax, -0x60(%rbp)
movq %r15, %rdi
movl $0x75e, %esi            # imm = 0x75E
movl $0x12, %edx
callq 0x4da25
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x3847b(%rip), %xmm0    # 0x6ccb8
movsd %xmm0, 0xc0(%rbx)
movq %r15, %rdi
movl $0x770, %esi            # imm = 0x770
movl $0x2, %edx
callq 0x4d9d6
movl %eax, %r14d
shll $0xf, %r14d
movq %r15, %rdi
movl $0x77a, %esi            # imm = 0x77A
movl $0xf, %edx
callq 0x4d9d6
addl %r14d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x361bd(%rip), %xmm0    # 0x6aa40
movsd %xmm0, 0xc8(%rbx)
movq %r15, %rdi
movl $0x789, %esi            # imm = 0x789
movl $0x7, %edx
movl $0x798, %ecx            # imm = 0x798
movl $0xe, %r8d
callq 0x3429f
movl %eax, -0x5c(%rbp)
movq %r15, %rdi
movl $0x87a, %esi            # imm = 0x87A
movl $0x4, %edx
callq 0x4d9d6
movq %rax, -0x108(%rbp)
movq %r15, %rdi
movl $0x862, %esi            # imm = 0x862
movl $0x8, %edx
callq 0x4d9d6
movq %rax, -0xd0(%rbp)
movq %r15, %rdi
movl $0x86e, %esi            # imm = 0x86E
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0x98(%rbp)
movq %r15, %rdi
movl $0x87e, %esi            # imm = 0x87E
movl $0x6, %edx
callq 0x4d9d6
movl %eax, -0x58(%rbp)
movq %r15, %rdi
movl $0x88c, %esi            # imm = 0x88C
movl $0x5, %edx
callq 0x4d9d6
movl %eax, -0x54(%rbp)
movq %r15, %rdi
movl $0x891, %esi            # imm = 0x891
movl $0x11, %edx
movl $0x8aa, %ecx            # imm = 0x8AA
movl $0x1, %r8d
callq 0x3429f
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x383d5(%rip), %xmm0    # 0x6cd20
movsd %xmm0, 0x98(%rbx)
movq %r15, %rdi
movl $0x8ab, %esi            # imm = 0x8AB
movl $0x12, %edx
callq 0x4da25
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x383ac(%rip), %xmm0    # 0x6cd20
movsd %xmm0, 0xa0(%rbx)
movq %r15, %rdi
movl $0x8bd, %esi            # imm = 0x8BD
movl $0x3, %edx
movl $0x8c8, %ecx            # imm = 0x8C8
movl $0x10, %r8d
callq 0x3429f
movl %eax, -0x50(%rbp)
movq %r15, %rdi
movl $0x9aa, %esi            # imm = 0x9AA
movl $0x4, %edx
callq 0x4d9d6
movl %eax, %r12d
movq %r15, %rdi
movl $0x992, %esi            # imm = 0x992
movl $0x8, %edx
callq 0x4d9d6
movq %rax, -0xc8(%rbp)
movq %r15, %rdi
movl $0x99e, %esi            # imm = 0x99E
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0x94(%rbp)
movq %r15, %rdi
movl $0x9ae, %esi            # imm = 0x9AE
movl $0x5, %edx
callq 0x4d9d6
movl %eax, -0x4c(%rbp)
movq %r15, %rdi
movl $0x9b3, %esi            # imm = 0x9B3
movl $0x1, %edx
movl $0x9bc, %ecx            # imm = 0x9BC
movl $0x9da, %r8d            # imm = 0x9DA
movl $0x9, %r9d
callq 0x34e9a
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x3828f(%rip), %xmm0    # 0x6ccb8
mulsd 0x37377(%rip), %xmm0    # 0x6bda8
movsd %xmm0, 0x68(%rbx)
movq %r15, %rdi
movl $0x9e3, %esi            # imm = 0x9E3
movl $0xd, %edx
movl $0x9f8, %ecx            # imm = 0x9F8
movl $0xe, %r8d
callq 0x3429f
movl %eax, -0x48(%rbp)
movq %r15, %rdi
movl $0xada, %esi            # imm = 0xADA
movl $0x4, %edx
callq 0x4d9d6
movl %eax, %r14d
movq %r15, %rdi
movl $0xac2, %esi            # imm = 0xAC2
movl $0x8, %edx
callq 0x4d9d6
movl %eax, %r13d
movq %r15, %rdi
movl $0xace, %esi            # imm = 0xACE
movl $0xc, %edx
callq 0x4d9d6
movl %eax, -0x90(%rbp)
movq %r15, %rdi
movl $0xade, %esi            # imm = 0xADE
movl $0x5, %edx
callq 0x4d9d6
movl %eax, -0x44(%rbp)
movq %r15, %rdi
movq -0x108(%rbp), %r15
movl $0xae3, %esi            # imm = 0xAE3
movl $0x1, %edx
movl $0xaec, %ecx            # imm = 0xAEC
movl $0xd, %r8d
callq 0x3429f
movq -0x30(%rbp), %r11
movq -0x110(%rbp), %r10
movl -0xb4(%rbp), %r9d
movl -0xb8(%rbp), %r8d
movl -0x38(%rbp), %ecx
movsd 0x372b3(%rip), %xmm7    # 0x6bda8
movl -0x40(%rbp), %edx
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x381c9(%rip), %xmm0    # 0x6ccd0
mulsd %xmm7, %xmm0
movsd %xmm0, 0x90(%rbx)
movl %edx, %eax
xorl $0x1, %eax
movl %ecx, %edi
xorl $0x3, %edi
orl %eax, %edi
movl %r8d, %eax
xorl $0x4, %eax
movl %r9d, %esi
xorl $0x5, %esi
orl %eax, %esi
orl %edi, %esi
movl %r10d, %eax
xorl $0x6, %eax
movl %r11d, %edi
xorl $0x7, %edi
orl %eax, %edi
movl %r15d, %eax
xorl $0x8, %eax
orl %edi, %eax
orl %esi, %eax
movq %r12, %rsi
xorl $0x9, %esi
orl %eax, %esi
movl %r14d, %eax
xorl $0xa, %eax
orl %esi, %eax
je 0x34b83
subq $0x8, %rsp
leaq 0x38556(%rip), %rsi     # 0x6d0ba
movl $0x3, %edi
xorl %eax, %eax
pushq %r14
pushq %r12
pushq %r15
pushq %r11
pushq %r10
callq 0x4d55d
addq $0x30, %rsp
jmp 0x34ca3
movq -0x100(%rbp), %rdx
shll $0xc, %edx
addl -0xb0(%rbp), %edx
movq -0xf8(%rbp), %rcx
shll $0xc, %ecx
addl -0xac(%rbp), %ecx
movq -0xf0(%rbp), %r8
shll $0xc, %r8d
addl -0xa8(%rbp), %r8d
movq -0xe8(%rbp), %r9
shll $0xc, %r9d
addl -0xa4(%rbp), %r9d
movq -0xe0(%rbp), %r10
shll $0xc, %r10d
addl -0xa0(%rbp), %r10d
movq -0xd8(%rbp), %r11
shll $0xc, %r11d
addl -0x9c(%rbp), %r11d
movq -0xd0(%rbp), %r14
shll $0xc, %r14d
addl -0x98(%rbp), %r14d
movq -0xc8(%rbp), %r15
shll $0xc, %r15d
addl -0x94(%rbp), %r15d
shll $0xc, %r13d
addl -0x90(%rbp), %r13d
leal 0x6(%rdx), %eax
cmpl %eax, %ecx
jne 0x34caa
leal 0x3(%rcx), %eax
cmpl %eax, %r8d
jne 0x34caa
leal 0x3(%r8), %eax
cmpl %eax, %r9d
jne 0x34caa
leal 0x3(%r9), %eax
cmpl %eax, %r10d
jne 0x34caa
leal 0x3(%r10), %eax
cmpl %eax, %r11d
jne 0x34caa
leal 0x3(%r11), %eax
cmpl %eax, %r14d
jne 0x34caa
leal 0x3(%r14), %eax
cmpl %eax, %r15d
jne 0x34caa
leal 0x3(%r15), %eax
cmpl %eax, %r13d
jne 0x34caa
movq -0xc0(%rbp), %rax
shll $0xc, %eax
addl -0x8c(%rbp), %eax
cvtsi2sd %rax, %xmm1
mulsd 0x35dc0(%rip), %xmm1    # 0x6aa40
movsd 0xc8(%rbx), %xmm0
ucomisd %xmm0, %xmm1
jne 0x34c90
jnp 0x34cd6
leaq 0x3848d(%rip), %rsi     # 0x6d124
movl $0x3, %edi
movb $0x2, %al
callq 0x4d55d
xorl %ebx, %ebx
jmp 0x34e86
subq $0x8, %rsp
leaq 0x3843a(%rip), %rsi     # 0x6d0ef
xorl %ebx, %ebx
movl $0x3, %edi
xorl %eax, %eax
pushq %r13
pushq %r15
pushq %r14
pushq %r11
pushq %r10
callq 0x4d55d
addq $0x30, %rsp
jmp 0x34e86
movsd %xmm1, -0x40(%rbp)
movl -0x88(%rbp), %eax
shll $0x12, %eax
movl -0x80(%rbp), %ecx
addl %eax, %ecx
movl -0x84(%rbp), %eax
shll $0xc, %eax
addl %eax, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
movl -0x7c(%rbp), %eax
shll $0x4, %eax
movl -0x78(%rbp), %ecx
addl %eax, %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
movl -0x74(%rbp), %eax
shll $0x16, %eax
movl -0x6c(%rbp), %ecx
addl %eax, %ecx
movl -0x70(%rbp), %eax
shll $0x10, %eax
addl %eax, %ecx
cvtsi2sd %ecx, %xmm2
movl -0x68(%rbp), %eax
shll $0x8, %eax
movl -0x60(%rbp), %ecx
addl %eax, %ecx
movl -0x64(%rbp), %eax
shll $0x2, %eax
addl %eax, %ecx
cvtsi2sd %ecx, %xmm3
movl -0x5c(%rbp), %eax
shll $0xb, %eax
movl -0x54(%rbp), %ecx
addl %eax, %ecx
movl -0x58(%rbp), %eax
shll $0x5, %eax
addl %eax, %ecx
cvtsi2sd %ecx, %xmm4
movl -0x50(%rbp), %eax
shll $0x5, %eax
movl -0x4c(%rbp), %ecx
addl %eax, %ecx
cvtsi2sd %ecx, %xmm5
movl -0x48(%rbp), %eax
shll $0x5, %eax
movl -0x44(%rbp), %ecx
addl %eax, %ecx
cvtsi2sd %ecx, %xmm6
mulsd 0x37fa0(%rip), %xmm0    # 0x6cd18
movsd %xmm0, 0xe0(%rbx)
movsd 0x37f30(%rip), %xmm0    # 0x6ccb8
mulsd %xmm0, %xmm1
movsd %xmm1, 0xa8(%rbx)
mulsd 0x37f24(%rip), %xmm2    # 0x6ccc0
movsd %xmm2, 0x58(%rbx)
mulsd %xmm0, %xmm3
movsd %xmm3, 0xb8(%rbx)
mulsd %xmm0, %xmm4
mulsd %xmm7, %xmm4
movsd %xmm4, 0x60(%rbx)
mulsd 0x37f0e(%rip), %xmm5    # 0x6ccd0
mulsd %xmm7, %xmm5
movsd %xmm5, 0x88(%rbx)
mulsd %xmm0, %xmm6
mulsd %xmm7, %xmm6
movsd %xmm6, 0x70(%rbx)
movl %edx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd %xmm0, -0x38(%rbp)
movl 0x14(%rbx), %edi
callq 0x4f408
movq %rax, %rdi
callq 0x4fb4f
movsd -0x38(%rbp), %xmm2
movq %rax, 0x40(%rbx)
movsd %xmm0, 0x48(%rbx)
movsd 0xc8(%rbx), %xmm0
movsd 0x36fc0(%rip), %xmm1    # 0x6bdd8
addsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x34e29
movl 0x14(%rbx), %edi
incl %edi
jmp 0x34e3c
addsd 0x36f9f(%rip), %xmm2    # 0x6bdd0
ucomisd %xmm0, %xmm2
movl 0x14(%rbx), %edi
jbe 0x34e3f
decl %edi
movl %edi, 0x14(%rbx)
callq 0x4f408
movq %rax, %rdi
callq 0x4fb4f
movq %rax, 0x20(%rbx)
movsd %xmm0, 0x28(%rbx)
movl 0x14(%rbx), %edi
movsd -0x40(%rbp), %xmm0
callq 0x4f408
movq %rax, %rdi
callq 0x4fb4f
movq %rax, 0x30(%rbx)
movsd %xmm0, 0x38(%rbx)
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, 0x18(%rbx)
movl $0x1, %ebx
movl %ebx, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq