// File: /workspace/github_cpp_makefile_star2_O2/mouda[P]LTE_random_access-simulate/specialfunctions.cpp
// Function: alglib_impl::incompletebeta(double, double, double, alglib_impl::ae_state*)
double incompletebeta(double a, double b, double x, ae_state *_state)
{
    double t;
    double xc;
    double w;
    double y;
    ae_int_t flag;
    double sg;
    double big;
    double biginv;
    double maxgam;
    double minlog;
    double maxlog;
    double result;


    big = 4.503599627370496e15;
    biginv = 2.22044604925031308085e-16;
    maxgam = 171.624376956302725;
    minlog = ae_log(ae_minrealnumber, _state);
    maxlog = ae_log(ae_maxrealnumber, _state);
    ae_assert(ae_fp_greater(a,0)&&ae_fp_greater(b,0), "Domain error in IncompleteBeta", _state);
    ae_assert(ae_fp_greater_eq(x,0)&&ae_fp_less_eq(x,1), "Domain error in IncompleteBeta", _state);
    if( ae_fp_eq(x,0) )
    {
        result = 0;
        return result;
    }
    if( ae_fp_eq(x,1) )
    {
        result = 1;
        return result;
    }
    flag = 0;
    if( ae_fp_less_eq(b*x,1.0)&&ae_fp_less_eq(x,0.95) )
    {
        result = ibetaf_incompletebetaps(a, b, x, maxgam, _state);
        return result;
    }
    w = 1.0-x;
    if( ae_fp_greater(x,a/(a+b)) )
    {
        flag = 1;
        t = a;
        a = b;
        b = t;
        xc = x;
        x = w;
    }
    else
    {
        xc = w;
    }
    if( (flag==1&&ae_fp_less_eq(b*x,1.0))&&ae_fp_less_eq(x,0.95) )
    {
        t = ibetaf_incompletebetaps(a, b, x, maxgam, _state);
        if( ae_fp_less_eq(t,ae_machineepsilon) )
        {
            result = 1.0-ae_machineepsilon;
        }
        else
        {
            result = 1.0-t;
        }
        return result;
    }
    y = x*(a+b-2.0)-(a-1.0);
    if( ae_fp_less(y,0.0) )
    {
        w = ibetaf_incompletebetafe(a, b, x, big, biginv, _state);
    }
    else
    {
        w = ibetaf_incompletebetafe2(a, b, x, big, biginv, _state)/xc;
    }
    y = a*ae_log(x, _state);
    t = b*ae_log(xc, _state);
    if( (ae_fp_less(a+b,maxgam)&&ae_fp_less(ae_fabs(y, _state),maxlog))&&ae_fp_less(ae_fabs(t, _state),maxlog) )
    {
        t = ae_pow(xc, b, _state);
        t = t*ae_pow(x, a, _state);
        t = t/a;
        t = t*w;
        t = t*(gammafunction(a+b, _state)/(gammafunction(a, _state)*gammafunction(b, _state)));
        if( flag==1 )
        {
            if( ae_fp_less_eq(t,ae_machineepsilon) )
            {
                result = 1.0-ae_machineepsilon;
            }
            else
            {
                result = 1.0-t;
            }
        }
        else
        {
            result = t;
        }
        return result;
    }
    y = y+t+lngamma(a+b, &sg, _state)-lngamma(a, &sg, _state)-lngamma(b, &sg, _state);
    y = y+ae_log(w/a, _state);
    if( ae_fp_less(y,minlog) )
    {
        t = 0.0;
    }
    else
    {
        t = ae_exp(y, _state);
    }
    if( flag==1 )
    {
        if( ae_fp_less_eq(t,ae_machineepsilon) )
        {
            t = 1.0-ae_machineepsilon;
        }
        else
        {
            t = 1.0-t;
        }
    }
    result = t;
    return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x170, %rsp            # imm = 0x170
movq %rdi, %rbx
movapd %xmm2, 0x40(%rsp)
movsd %xmm1, 0x30(%rsp)
movsd %xmm0, 0x20(%rsp)
movsd 0x27553(%rip), %xmm0    # 0x31270
callq 0x2455f
movsd %xmm0, 0x138(%rsp)
movsd 0x2692d(%rip), %xmm0    # 0x30660
movq %rbx, %rdi
callq 0x2455f
movsd %xmm0, 0x108(%rsp)
xorpd %xmm1, %xmm1
movsd 0x20(%rsp), %xmm0
callq 0x24279
testb %al, %al
je 0x9d68
xorpd %xmm1, %xmm1
movsd 0x30(%rsp), %xmm0
callq 0x24279
jmp 0x9d6a
xorl %eax, %eax
movzbl %al, %edi
leaq 0x289ff(%rip), %rsi     # 0x32773
movq %rbx, %rdx
callq 0x238ca
xorps %xmm0, %xmm0
movsd %xmm0, (%rsp)
xorpd %xmm1, %xmm1
movaps 0x40(%rsp), %xmm0
callq 0x24295
testb %al, %al
je 0x9daa
movsd 0x2645a(%rip), %xmm1    # 0x301f8
movaps 0x40(%rsp), %xmm0
callq 0x24259
jmp 0x9dac
xorl %eax, %eax
movzbl %al, %edi
leaq 0x289bd(%rip), %rsi     # 0x32773
movq %rbx, %rdx
callq 0x238ca
xorpd %xmm1, %xmm1
movapd 0x40(%rsp), %xmm0
callq 0x241f5
testb %al, %al
jne 0xa882
movsd 0x2641b(%rip), %xmm1    # 0x301f8
movapd 0x40(%rsp), %xmm0
movsd %xmm1, (%rsp)
callq 0x241f5
testb %al, %al
jne 0xa882
movsd 0x30(%rsp), %xmm0
mulsd 0x40(%rsp), %xmm0
movsd 0x263ef(%rip), %xmm1    # 0x301f8
callq 0x24259
testb %al, %al
je 0x9e4d
movsd 0x2745e(%rip), %xmm1    # 0x31278
movapd 0x40(%rsp), %xmm0
callq 0x24259
testb %al, %al
je 0x9e4d
movsd 0x20(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movaps 0x40(%rsp), %xmm2
movq %rbx, %rdi
addq $0x170, %rsp            # imm = 0x170
popq %rbx
popq %r14
popq %rbp
jmp 0x1244b
movsd 0x263a3(%rip), %xmm1    # 0x301f8
movapd 0x40(%rsp), %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, 0x60(%rsp)
movsd 0x20(%rsp), %xmm1
movapd %xmm1, %xmm2
addsd 0x30(%rsp), %xmm2
movapd %xmm2, 0xf0(%rsp)
divsd %xmm2, %xmm1
callq 0x24279
movl %eax, %ebp
testb %al, %al
jne 0x9ebc
movsd 0x60(%rsp), %xmm2
movsd %xmm2, 0x98(%rsp)
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd 0x20(%rsp), %xmm1
movapd %xmm1, 0x70(%rsp)
movapd 0x40(%rsp), %xmm3
jmp 0x9eeb
movaps 0x40(%rsp), %xmm0
movsd %xmm0, 0x98(%rsp)
movsd 0x60(%rsp), %xmm2
movapd %xmm2, %xmm3
movsd 0x20(%rsp), %xmm1
movsd %xmm1, 0x58(%rsp)
movsd 0x30(%rsp), %xmm0
movaps %xmm0, 0x70(%rsp)
movapd %xmm3, 0x40(%rsp)
je 0x9f7d
movapd %xmm2, %xmm0
mulsd %xmm1, %xmm0
movsd 0x262f1(%rip), %xmm1    # 0x301f8
movsd %xmm1, (%rsp)
callq 0x24259
movsd 0x60(%rsp), %xmm0
movapd 0x40(%rsp), %xmm3
testb %al, %al
je 0x9f7d
movsd 0x2734f(%rip), %xmm1    # 0x31278
callq 0x24259
movsd 0x60(%rsp), %xmm2
movsd 0x20(%rsp), %xmm1
movapd 0x40(%rsp), %xmm3
testb %al, %al
je 0x9f7d
movsd 0x30(%rsp), %xmm0
movq %rbx, %rdi
callq 0x1244b
movsd 0x26896(%rip), %xmm1    # 0x307f0
movsd %xmm0, 0x20(%rsp)
callq 0x24259
testb %al, %al
jne 0xa866
movsd (%rsp), %xmm0
subsd 0x20(%rsp), %xmm0
jmp 0xa87d
movsd 0x2647b(%rip), %xmm0    # 0x30400
addsd 0xf0(%rsp), %xmm0
movsd 0x2626a(%rip), %xmm1    # 0x30200
addsd 0x70(%rsp), %xmm1
mulsd %xmm3, %xmm0
subsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
callq 0x24239
movapd 0x70(%rsp), %xmm1
movsd 0x2623d(%rip), %xmm2    # 0x301f8
addsd %xmm1, %xmm2
testb %al, %al
je 0xa2d9
movaps 0x261e2(%rip), %xmm0    # 0x301b0
movaps 0x40(%rsp), %xmm5
xorps %xmm5, %xmm0
movapd 0x27ef2(%rip), %xmm3    # 0x31ed0
movsd %xmm1, %xmm3            # xmm3 = xmm1[0],xmm3[1]
movapd %xmm3, 0xe0(%rsp)
unpcklpd %xmm2, %xmm2            # xmm2 = xmm2[0,0]
movapd 0xf0(%rsp), %xmm3
unpcklpd %xmm1, %xmm3            # xmm3 = xmm3[0],xmm1[0]
movapd %xmm3, 0xd0(%rsp)
movsd 0x261eb(%rip), %xmm3    # 0x301f8
xorpd %xmm4, %xmm4
unpcklpd %xmm3, %xmm4            # xmm4 = xmm4[0],xmm3[0]
movlhps %xmm5, %xmm0            # xmm0 = xmm0[0],xmm5[0]
movaps %xmm0, 0xa0(%rsp)
movl $0x12c, %r14d           # imm = 0x12C
movapd %xmm3, %xmm5
movsd 0x58(%rsp), %xmm6
movapd %xmm1, %xmm7
movapd %xmm3, 0xc0(%rsp)
movsd %xmm3, 0x18(%rsp)
movapd %xmm3, %xmm0
addsd 0x261b1(%rip), %xmm6    # 0x30200
addsd 0x263a1(%rip), %xmm7    # 0x303f8
movapd 0xe0(%rsp), %xmm1
mulpd 0xa0(%rsp), %xmm1
movapd 0xd0(%rsp), %xmm3
movapd %xmm3, %xmm8
movapd %xmm6, 0x120(%rsp)
unpcklpd %xmm6, %xmm8            # xmm8 = xmm8[0],xmm6[0]
mulpd %xmm1, %xmm8
movapd %xmm3, %xmm1
movapd %xmm7, 0x110(%rsp)
shufpd $0x1, %xmm7, %xmm1      # xmm1 = xmm1[1],xmm7[0]
movapd %xmm2, (%rsp)
mulpd %xmm2, %xmm1
divpd %xmm1, %xmm8
movapd %xmm4, %xmm1
unpckhpd %xmm4, %xmm1            # xmm1 = xmm1[1],xmm4[1]
mulsd %xmm8, %xmm5
addsd %xmm1, %xmm5
movapd %xmm0, %xmm1
movapd %xmm5, 0x30(%rsp)
unpcklpd %xmm5, %xmm1            # xmm1 = xmm1[0],xmm5[0]
mulpd %xmm8, %xmm4
addpd %xmm1, %xmm4
unpckhpd %xmm8, %xmm8            # xmm8 = xmm8[1,1]
mulsd %xmm0, %xmm8
addsd %xmm4, %xmm8
movapd %xmm8, 0x20(%rsp)
movapd %xmm4, 0x80(%rsp)
movapd %xmm4, %xmm0
unpckhpd %xmm4, %xmm0            # xmm0 = xmm0[1],xmm4[1]
xorpd %xmm1, %xmm1
movapd %xmm0, 0x60(%rsp)
callq 0x24217
movapd 0x20(%rsp), %xmm0
testb %al, %al
jne 0xa11d
movapd 0xc0(%rsp), %xmm0
jmp 0xa123
divsd 0x60(%rsp), %xmm0
xorpd %xmm1, %xmm1
movapd %xmm0, 0xc0(%rsp)
callq 0x24217
testb %al, %al
je 0xa169
movsd 0x18(%rsp), %xmm0
movapd 0xc0(%rsp), %xmm1
subsd %xmm1, %xmm0
divsd %xmm1, %xmm0
movq %rbx, %rdi
callq 0x2440c
movapd 0xc0(%rsp), %xmm1
movsd %xmm1, 0x18(%rsp)
jmp 0xa171
movsd 0x26087(%rip), %xmm0    # 0x301f8
movsd 0x27107(%rip), %xmm1    # 0x31280
callq 0x24239
testb %al, %al
jne 0xa65e
movapd 0xd0(%rsp), %xmm0
addpd 0x27d09(%rip), %xmm0    # 0x31ea0
movapd %xmm0, 0xd0(%rsp)
movapd 0xe0(%rsp), %xmm0
addpd 0x27bff(%rip), %xmm0    # 0x31db0
movapd %xmm0, 0xe0(%rsp)
movapd (%rsp), %xmm0
addpd 0x27d19(%rip), %xmm0    # 0x31ee0
movapd %xmm0, (%rsp)
movaps 0x60(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2440c
movsd %xmm0, 0xb0(%rsp)
movapd 0x20(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2440c
addsd 0xb0(%rsp), %xmm0
movsd 0x2652f(%rip), %xmm1    # 0x30730
callq 0x24279
movapd 0x30(%rsp), %xmm2
unpcklpd 0x20(%rsp), %xmm2       # xmm2 = xmm2[0],mem[0]
testb %al, %al
je 0xa238
movapd 0x80(%rsp), %xmm0
movapd 0x27b09(%rip), %xmm1    # 0x31d30
mulpd %xmm1, %xmm0
movapd %xmm0, 0x80(%rsp)
mulpd %xmm1, %xmm2
movapd %xmm2, 0x30(%rsp)
movapd 0x60(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2440c
movsd 0x27034(%rip), %xmm1    # 0x31288
callq 0x24239
testb %al, %al
jne 0xa27c
movapd 0x20(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2440c
movsd 0x27015(%rip), %xmm1    # 0x31288
callq 0x24239
testb %al, %al
je 0xa29d
movapd 0x80(%rsp), %xmm4
movapd 0x27c33(%rip), %xmm0    # 0x31ec0
mulpd %xmm0, %xmm4
movapd 0x30(%rsp), %xmm5
mulpd %xmm0, %xmm5
jmp 0xa2ac
movapd 0x80(%rsp), %xmm4
movapd 0x30(%rsp), %xmm5
movapd %xmm5, %xmm0
unpckhpd %xmm5, %xmm0            # xmm0 = xmm0[1],xmm5[1]
decq %r14
movapd (%rsp), %xmm2
movapd 0x120(%rsp), %xmm6
movapd 0x110(%rsp), %xmm7
jne 0xa047
jmp 0xa65e
movsd 0x25f17(%rip), %xmm3    # 0x301f8
movapd %xmm3, %xmm0
movapd 0x40(%rsp), %xmm4
subsd %xmm4, %xmm0
divsd %xmm0, %xmm4
movapd 0x25eb5(%rip), %xmm0    # 0x301b0
movapd %xmm4, 0x150(%rsp)
xorpd %xmm4, %xmm0
movapd %xmm0, 0x140(%rsp)
movapd %xmm1, %xmm0
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movapd %xmm0, 0x30(%rsp)
movsd 0x25ed1(%rip), %xmm5    # 0x301f8
movapd 0x27a81(%rip), %xmm6    # 0x31db0
movl $0x12c, %r14d           # imm = 0x12C
movsd 0x58(%rsp), %xmm4
movsd %xmm4, 0x120(%rsp)
movsd %xmm3, 0x60(%rsp)
movapd 0xf0(%rsp), %xmm4
movsd %xmm4, 0xe0(%rsp)
movsd %xmm2, 0xd0(%rsp)
movsd %xmm1, 0x110(%rsp)
movapd %xmm3, 0x80(%rsp)
movsd %xmm3, 0x18(%rsp)
movsd 0x120(%rsp), %xmm3
addsd 0x25e72(%rip), %xmm3    # 0x30200
movsd 0x110(%rsp), %xmm4
addsd 0x26059(%rip), %xmm4    # 0x303f8
movapd 0x140(%rsp), %xmm1
movapd %xmm2, (%rsp)
unpcklpd %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0]
mulpd 0x30(%rsp), %xmm1
movapd %xmm1, %xmm2
movsd %xmm3, 0x120(%rsp)
mulsd %xmm3, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
divsd %xmm1, %xmm2
movapd 0x150(%rsp), %xmm0
mulsd 0x60(%rsp), %xmm0
mulsd 0xe0(%rsp), %xmm0
movsd 0xd0(%rsp), %xmm1
movsd %xmm4, 0x110(%rsp)
mulsd %xmm4, %xmm1
divsd %xmm1, %xmm0
unpcklpd %xmm2, %xmm2            # xmm2 = xmm2[0,0]
mulpd %xmm5, %xmm2
addpd %xmm6, %xmm2
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
mulpd %xmm6, %xmm0
movapd %xmm2, 0xb0(%rsp)
addpd %xmm2, %xmm0
movapd %xmm0, 0x20(%rsp)
xorpd %xmm1, %xmm1
callq 0x24217
movapd 0x20(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
testb %al, %al
movapd %xmm0, 0xc0(%rsp)
jne 0xa458
movapd 0x80(%rsp), %xmm0
jmp 0xa45c
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
movapd %xmm0, 0x80(%rsp)
callq 0x24217
testb %al, %al
je 0xa4a2
movsd 0x18(%rsp), %xmm0
movapd 0x80(%rsp), %xmm1
subsd %xmm1, %xmm0
divsd %xmm1, %xmm0
movq %rbx, %rdi
callq 0x2440c
movapd 0x80(%rsp), %xmm1
movsd %xmm1, 0x18(%rsp)
jmp 0xa4aa
movsd 0x25d4e(%rip), %xmm0    # 0x301f8
movsd 0x26dce(%rip), %xmm1    # 0x31280
callq 0x24239
testb %al, %al
jne 0xa649
movapd 0x30(%rsp), %xmm0
addpd 0x279d3(%rip), %xmm0    # 0x31ea0
movapd %xmm0, 0x30(%rsp)
movaps 0x20(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2440c
movsd %xmm0, 0xa0(%rsp)
movapd 0xc0(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2440c
addsd 0xa0(%rsp), %xmm0
movsd 0x26225(%rip), %xmm1    # 0x30730
callq 0x24279
movapd 0x20(%rsp), %xmm2
movapd 0xb0(%rsp), %xmm0
movapd %xmm0, %xmm3
unpckhpd %xmm2, %xmm3            # xmm3 = xmm3[1],xmm2[1]
movapd %xmm2, %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
testb %al, %al
jne 0xa547
movapd %xmm3, 0xa0(%rsp)
movapd %xmm1, 0xb0(%rsp)
jmp 0xa569
movapd 0x277e1(%rip), %xmm0    # 0x31d30
mulpd %xmm0, %xmm1
movapd %xmm1, 0xb0(%rsp)
mulpd %xmm0, %xmm3
movapd %xmm3, 0xa0(%rsp)
movapd %xmm2, %xmm0
movq %rbx, %rdi
callq 0x2440c
movsd 0x26d0b(%rip), %xmm1    # 0x31288
callq 0x24239
testb %al, %al
jne 0xa5a8
movapd 0xc0(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2440c
movsd 0x26ce9(%rip), %xmm1    # 0x31288
callq 0x24239
testb %al, %al
je 0xa5cc
movapd 0x27910(%rip), %xmm0    # 0x31ec0
movapd 0xb0(%rsp), %xmm5
mulpd %xmm0, %xmm5
movapd 0xa0(%rsp), %xmm4
mulpd %xmm0, %xmm4
jmp 0xa5de
movapd 0xb0(%rsp), %xmm5
movapd 0xa0(%rsp), %xmm4
movapd (%rsp), %xmm2
movsd 0x25e0d(%rip), %xmm1    # 0x303f8
addsd %xmm1, %xmm2
movsd 0x25c01(%rip), %xmm0    # 0x301f8
movsd 0x60(%rsp), %xmm3
addsd %xmm0, %xmm3
movsd %xmm3, 0x60(%rsp)
movsd 0xe0(%rsp), %xmm3
addsd %xmm0, %xmm3
movsd %xmm3, 0xe0(%rsp)
movsd 0xd0(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xd0(%rsp)
movapd %xmm4, %xmm6
movsd %xmm5, %xmm6            # xmm6 = xmm5[0],xmm6[1]
shufpd $0x1, %xmm4, %xmm5      # xmm5 = xmm5[1],xmm4[0]
decq %r14
jne 0xa37d
movsd 0x18(%rsp), %xmm0
divsd 0x98(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movapd 0x40(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2455f
mulsd 0x70(%rsp), %xmm0
movsd %xmm0, (%rsp)
movsd 0x98(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2455f
mulsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x26bcc(%rip), %xmm1    # 0x31268
movaps 0xf0(%rsp), %xmm0
callq 0x24239
testb %al, %al
je 0xa796
movsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x2440c
movsd 0x108(%rsp), %xmm1
callq 0x24239
testb %al, %al
je 0xa796
movsd 0x20(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2440c
movsd 0x108(%rsp), %xmm1
callq 0x24239
testb %al, %al
je 0xa796
movsd 0x98(%rsp), %xmm0
movsd 0x58(%rsp), %xmm1
movq %rbx, %rdi
callq 0x24564
movsd %xmm0, (%rsp)
movapd 0x40(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movq %rbx, %rdi
callq 0x24564
mulsd (%rsp), %xmm0
divsd 0x70(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
movaps 0xf0(%rsp), %xmm0
movq %rbx, %rdi
callq 0x44b6
movsd %xmm0, (%rsp)
movaps 0x70(%rsp), %xmm0
movq %rbx, %rdi
callq 0x44b6
movsd %xmm0, 0x20(%rsp)
movsd 0x58(%rsp), %xmm0
movq %rbx, %rdi
callq 0x44b6
mulsd 0x20(%rsp), %xmm0
movsd (%rsp), %xmm1
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
mulsd 0x18(%rsp), %xmm0
jmp 0xa84b
movsd (%rsp), %xmm0
addsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rsp)
leaq 0x168(%rsp), %r14
movapd 0xf0(%rsp), %xmm0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x48dc
addsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
movapd 0x70(%rsp), %xmm0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x48dc
movsd (%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd 0x58(%rsp), %xmm0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x48dc
movsd (%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd 0x18(%rsp), %xmm0
divsd 0x70(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2455f
addsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
movsd 0x138(%rsp), %xmm1
callq 0x24239
xorpd %xmm0, %xmm0
testb %al, %al
jne 0xa84b
movsd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x24569
testb %bpl, %bpl
movsd %xmm0, (%rsp)
je 0xa882
movsd 0x25f93(%rip), %xmm1    # 0x307f0
callq 0x24259
testb %al, %al
je 0xa870
movsd 0x26a22(%rip), %xmm0    # 0x31290
jmp 0xa87d
movsd 0x25980(%rip), %xmm0    # 0x301f8
subsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
movsd (%rsp), %xmm0
addq $0x170, %rsp            # imm = 0x170
popq %rbx
popq %r14
popq %rbp
retq