// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/lib/lbfgs.c
// Function: update_trial_interval
static int update_trial_interval(
    lbfgsfloatval_t *x,
    lbfgsfloatval_t *fx,
    lbfgsfloatval_t *dx,
    lbfgsfloatval_t *y,
    lbfgsfloatval_t *fy,
    lbfgsfloatval_t *dy,
    lbfgsfloatval_t *t,
    lbfgsfloatval_t *ft,
    lbfgsfloatval_t *dt,
    const lbfgsfloatval_t tmin,
    const lbfgsfloatval_t tmax,
    int *brackt
    )
{
    int bound;
    int dsign = fsigndiff(dt, dx);
    lbfgsfloatval_t mc; /* minimizer of an interpolated cubic. */
    lbfgsfloatval_t mq; /* minimizer of an interpolated quadratic. */
    lbfgsfloatval_t newt;   /* new trial value. */
    USES_MINIMIZER;     /* for CUBIC_MINIMIZER and QUARD_MINIMIZER. */

    /* Check the input parameters for errors. */
    if (*brackt) {
        if (*t <= min2(*x, *y) || max2(*x, *y) <= *t) {
            /* The trival value t is out of the interval. */
            return LBFGSERR_OUTOFINTERVAL;
        }
        if (0. <= *dx * (*t - *x)) {
            /* The function must decrease from x. */
            return LBFGSERR_INCREASEGRADIENT;
        }
        if (tmax < tmin) {
            /* Incorrect tmin and tmax specified. */
            return LBFGSERR_INCORRECT_TMINMAX;
        }
    }

    /*
        Trial value selection.
     */
    if (*fx < *ft) {
        /*
            Case 1: a higher function value.
            The minimum is brackt. If the cubic minimizer is closer
            to x than the quadratic one, the cubic one is taken, else
            the average of the minimizers is taken.
         */
        *brackt = 1;
        bound = 1;
        CUBIC_MINIMIZER(mc, *x, *fx, *dx, *t, *ft, *dt);
        QUARD_MINIMIZER(mq, *x, *fx, *dx, *t, *ft);
        if (fabs(mc - *x) < fabs(mq - *x)) {
            newt = mc;
        } else {
            newt = mc + 0.5 * (mq - mc);
        }
    } else if (dsign) {
        /*
            Case 2: a lower function value and derivatives of
            opposite sign. The minimum is brackt. If the cubic
            minimizer is closer to x than the quadratic (secant) one,
            the cubic one is taken, else the quadratic one is taken.
         */
        *brackt = 1;
        bound = 0;
        CUBIC_MINIMIZER(mc, *x, *fx, *dx, *t, *ft, *dt);
        QUARD_MINIMIZER2(mq, *x, *dx, *t, *dt);
        if (fabs(mc - *t) > fabs(mq - *t)) {
            newt = mc;
        } else {
            newt = mq;
        }
    } else if (fabs(*dt) < fabs(*dx)) {
        /*
            Case 3: a lower function value, derivatives of the
            same sign, and the magnitude of the derivative decreases.
            The cubic minimizer is only used if the cubic tends to
            infinity in the direction of the minimizer or if the minimum
            of the cubic is beyond t. Otherwise the cubic minimizer is
            defined to be either tmin or tmax. The quadratic (secant)
            minimizer is also computed and if the minimum is brackt
            then the the minimizer closest to x is taken, else the one
            farthest away is taken.
         */
        bound = 1;
        CUBIC_MINIMIZER2(mc, *x, *fx, *dx, *t, *ft, *dt, tmin, tmax);
        QUARD_MINIMIZER2(mq, *x, *dx, *t, *dt);
        if (*brackt) {
            if (fabs(*t - mc) < fabs(*t - mq)) {
                newt = mc;
            } else {
                newt = mq;
            }
        } else {
            if (fabs(*t - mc) > fabs(*t - mq)) {
                newt = mc;
            } else {
                newt = mq;
            }
        }
    } else {
        /*
            Case 4: a lower function value, derivatives of the
            same sign, and the magnitude of the derivative does
            not decrease. If the minimum is not brackt, the step
            is either tmin or tmax, else the cubic minimizer is taken.
         */
        bound = 0;
        if (*brackt) {
            CUBIC_MINIMIZER(newt, *t, *ft, *dt, *y, *fy, *dy);
        } else if (*x < *t) {
            newt = tmax;
        } else {
            newt = tmin;
        }
    }

    /*
        Update the interval of uncertainty. This update does not
        depend on the new step or the case analysis above.

        - Case a: if f(x) < f(t),
            x <- x, y <- t.
        - Case b: if f(t) <= f(x) && f'(t)*f'(x) > 0,
            x <- t, y <- y.
        - Case c: if f(t) <= f(x) && f'(t)*f'(x) < 0, 
            x <- t, y <- x.
     */
    if (*fx < *ft) {
        /* Case a */
        *y = *t;
        *fy = *ft;
        *dy = *dt;
    } else {
        /* Case c */
        if (dsign) {
            *y = *x;
            *fy = *fx;
            *dy = *dx;
        }
        /* Cases b and c */
        *x = *t;
        *fx = *ft;
        *dx = *dt;
    }

    /* Clip the new trial value in [tmin, tmax]. */
    if (tmax < newt) newt = tmax;
    if (newt < tmin) newt = tmin;

    /*
        Redefine the new trial value if it is close to the upper bound
        of the interval.
     */
    if (*brackt && bound) {
        mq = *x + 0.66 * (*y - *x);
        if (*x < *y) {
            if (mq < newt) newt = mq;
        } else {
            if (newt < mq) newt = mq;
        }
    }

    /* Return the new trial value. */
    *t = newt;
    return 0;
}

// Assembly:
subq $0x148, %rsp            # imm = 0x148
movq 0x168(%rsp), %rax
movq 0x160(%rsp), %rax
movq 0x158(%rsp), %rax
movq 0x150(%rsp), %rax
movq %rdi, 0x138(%rsp)
movq %rsi, 0x130(%rsp)
movq %rdx, 0x128(%rsp)
movq %rcx, 0x120(%rsp)
movq %r8, 0x118(%rsp)
movq %r9, 0x110(%rsp)
movsd %xmm0, 0x108(%rsp)
movsd %xmm1, 0x100(%rsp)
movq 0x160(%rsp), %rax
movsd (%rax), %xmm1
movq 0x128(%rsp), %rax
movsd (%rax), %xmm0
movq 0x128(%rsp), %rax
movsd (%rax), %xmm2
movaps 0x14cec(%rip), %xmm3    # 0x19080
pand %xmm3, %xmm2
divsd %xmm2, %xmm0
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
ucomisd %xmm1, %xmm0
seta %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0xf8(%rsp)
movq 0x168(%rsp), %rax
cmpl $0x0, (%rax)
je 0x451a
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x98(%rsp)
movq 0x138(%rsp), %rax
movsd (%rax), %xmm1
movq 0x120(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0x4411
movq 0x138(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x90(%rsp)
jmp 0x4426
movq 0x120(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x90(%rsp)
movsd 0x98(%rsp), %xmm1
movsd 0x90(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jae 0x449f
movq 0x138(%rsp), %rax
movsd (%rax), %xmm0
movq 0x120(%rsp), %rax
ucomisd (%rax), %xmm0
jb 0x446f
movq 0x138(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x88(%rsp)
jmp 0x4484
movq 0x120(%rsp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x88(%rsp)
movsd 0x88(%rsp), %xmm1
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0x44af
movl $0xfffffc15, 0x144(%rsp) # imm = 0xFFFFFC15
jmp 0x58cf
movq 0x128(%rsp), %rax
movsd (%rax), %xmm0
movq 0x150(%rsp), %rax
movsd (%rax), %xmm1
movq 0x138(%rsp), %rax
subsd (%rax), %xmm1
mulsd %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x44f0
movl $0xfffffc1e, 0x144(%rsp) # imm = 0xFFFFFC1E
jmp 0x58cf
movsd 0x100(%rsp), %xmm1
movsd 0x108(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x4518
movl $0xfffffc16, 0x144(%rsp) # imm = 0xFFFFFC16
jmp 0x58cf
jmp 0x451a
movq 0x130(%rsp), %rax
movsd (%rax), %xmm1
movq 0x158(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x4981
movq 0x168(%rsp), %rax
movl $0x1, (%rax)
movl $0x1, 0xfc(%rsp)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
movq 0x138(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0xd0(%rsp)
movq 0x130(%rsp), %rax
movsd (%rax), %xmm0
movq 0x158(%rsp), %rax
subsd (%rax), %xmm0
movsd 0x14ae2(%rip), %xmm1    # 0x19078
mulsd %xmm1, %xmm0
divsd 0xd0(%rsp), %xmm0
movq 0x128(%rsp), %rax
addsd (%rax), %xmm0
movq 0x160(%rsp), %rax
addsd (%rax), %xmm0
movsd %xmm0, 0xc0(%rsp)
movsd 0xc0(%rsp), %xmm0
movaps 0x14aac(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xb8(%rsp)
movq 0x128(%rsp), %rax
movsd (%rax), %xmm0
movaps 0x14a8c(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xb0(%rsp)
movq 0x160(%rsp), %rax
movsd (%rax), %xmm0
movaps 0x14a6c(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd 0xb8(%rsp), %xmm0
ucomisd 0xb0(%rsp), %xmm0
jb 0x4649
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x80(%rsp)
jmp 0x465b
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x80(%rsp)
movsd 0x80(%rsp), %xmm0
ucomisd 0xa8(%rsp), %xmm0
jb 0x46b1
movsd 0xb8(%rsp), %xmm0
ucomisd 0xb0(%rsp), %xmm0
jb 0x4694
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x78(%rsp)
jmp 0x46a3
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x78(%rsp)
movsd 0x78(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
jmp 0x46c0
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0x70(%rsp)
movsd 0x70(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0xc0(%rsp), %xmm0
divsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0xd8(%rsp)
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x68(%rsp)
movsd 0xd8(%rsp), %xmm0
movsd 0xd8(%rsp), %xmm2
movq 0x128(%rsp), %rax
movsd (%rax), %xmm1
divsd 0xa0(%rsp), %xmm1
movq 0x160(%rsp), %rax
movsd (%rax), %xmm3
divsd 0xa0(%rsp), %xmm3
mulsd %xmm3, %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
callq 0x11e0
movaps %xmm0, %xmm1
movsd 0x68(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0xc8(%rsp)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm1
movq 0x138(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x47ba
movsd 0xc8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0xc8(%rsp)
movsd 0xc8(%rsp), %xmm0
movq 0x128(%rsp), %rax
subsd (%rax), %xmm0
addsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0xb8(%rsp)
movsd 0xc8(%rsp), %xmm0
movq 0x128(%rsp), %rax
subsd (%rax), %xmm0
addsd 0xc8(%rsp), %xmm0
movq 0x160(%rsp), %rax
addsd (%rax), %xmm0
movsd %xmm0, 0xb0(%rsp)
movsd 0xb8(%rsp), %xmm0
divsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
movq 0x138(%rsp), %rax
movsd (%rax), %xmm1
movsd 0xa8(%rsp), %xmm0
movsd 0xd0(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xf0(%rsp)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
movq 0x138(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0xd8(%rsp)
movq 0x138(%rsp), %rax
movsd (%rax), %xmm1
movq 0x128(%rsp), %rax
movsd (%rax), %xmm0
movq 0x130(%rsp), %rax
movsd (%rax), %xmm2
movq 0x158(%rsp), %rax
subsd (%rax), %xmm2
divsd 0xd8(%rsp), %xmm2
movq 0x128(%rsp), %rax
addsd (%rax), %xmm2
divsd %xmm2, %xmm0
movsd 0x14788(%rip), %xmm2    # 0x19058
divsd %xmm2, %xmm0
movsd 0xd8(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xe8(%rsp)
movsd 0xf0(%rsp), %xmm1
movq 0x138(%rsp), %rax
subsd (%rax), %xmm1
movaps 0x14776(%rip), %xmm0    # 0x19080
pand %xmm0, %xmm1
movsd 0xe8(%rsp), %xmm0
movq 0x138(%rsp), %rax
subsd (%rax), %xmm0
movaps 0x14756(%rip), %xmm2    # 0x19080
pand %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x4948
movsd 0xf0(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x497c
movsd 0xf0(%rsp), %xmm1
movsd 0xe8(%rsp), %xmm0
subsd 0xf0(%rsp), %xmm0
movsd 0x146ad(%rip), %xmm2    # 0x19018
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x5682
cmpl $0x0, 0xf8(%rsp)
je 0x4d88
movq 0x168(%rsp), %rax
movl $0x1, (%rax)
movl $0x0, 0xfc(%rsp)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
movq 0x138(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0xd0(%rsp)
movq 0x130(%rsp), %rax
movsd (%rax), %xmm0
movq 0x158(%rsp), %rax
subsd (%rax), %xmm0
movsd 0x1468f(%rip), %xmm1    # 0x19078
mulsd %xmm1, %xmm0
divsd 0xd0(%rsp), %xmm0
movq 0x128(%rsp), %rax
addsd (%rax), %xmm0
movq 0x160(%rsp), %rax
addsd (%rax), %xmm0
movsd %xmm0, 0xc0(%rsp)
movsd 0xc0(%rsp), %xmm0
movaps 0x14659(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xb8(%rsp)
movq 0x128(%rsp), %rax
movsd (%rax), %xmm0
movaps 0x14639(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xb0(%rsp)
movq 0x160(%rsp), %rax
movsd (%rax), %xmm0
movaps 0x14619(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd 0xb8(%rsp), %xmm0
ucomisd 0xb0(%rsp), %xmm0
jb 0x4a99
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x60(%rsp)
jmp 0x4aa8
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x60(%rsp)
movsd 0x60(%rsp), %xmm0
ucomisd 0xa8(%rsp), %xmm0
jb 0x4afb
movsd 0xb8(%rsp), %xmm0
ucomisd 0xb0(%rsp), %xmm0
jb 0x4ade
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
jmp 0x4aed
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
jmp 0x4b0a
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0xc0(%rsp), %xmm0
divsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0xd8(%rsp)
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0xd8(%rsp), %xmm0
movsd 0xd8(%rsp), %xmm2
movq 0x128(%rsp), %rax
movsd (%rax), %xmm1
divsd 0xa0(%rsp), %xmm1
movq 0x160(%rsp), %rax
movsd (%rax), %xmm3
divsd 0xa0(%rsp), %xmm3
mulsd %xmm3, %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
callq 0x11e0
movaps %xmm0, %xmm1
movsd 0x48(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0xc8(%rsp)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm1
movq 0x138(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x4c04
movsd 0xc8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0xc8(%rsp)
movsd 0xc8(%rsp), %xmm0
movq 0x128(%rsp), %rax
subsd (%rax), %xmm0
addsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0xb8(%rsp)
movsd 0xc8(%rsp), %xmm0
movq 0x128(%rsp), %rax
subsd (%rax), %xmm0
addsd 0xc8(%rsp), %xmm0
movq 0x160(%rsp), %rax
addsd (%rax), %xmm0
movsd %xmm0, 0xb0(%rsp)
movsd 0xb8(%rsp), %xmm0
divsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
movq 0x138(%rsp), %rax
movsd (%rax), %xmm1
movsd 0xa8(%rsp), %xmm0
movsd 0xd0(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xf0(%rsp)
movq 0x138(%rsp), %rax
movsd (%rax), %xmm0
movq 0x150(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0xd8(%rsp)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm1
movq 0x160(%rsp), %rax
movsd (%rax), %xmm0
movq 0x160(%rsp), %rax
movsd (%rax), %xmm2
movq 0x128(%rsp), %rax
subsd (%rax), %xmm2
divsd %xmm2, %xmm0
movsd 0xd8(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xe8(%rsp)
movsd 0xf0(%rsp), %xmm0
movq 0x150(%rsp), %rax
subsd (%rax), %xmm0
movaps 0x1434d(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd 0xe8(%rsp), %xmm1
movq 0x150(%rsp), %rax
subsd (%rax), %xmm1
movaps 0x1432d(%rip), %xmm2    # 0x19080
pand %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x4d71
movsd 0xf0(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x4d83
movsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x5680
movq 0x160(%rsp), %rax
movsd (%rax), %xmm1
movaps 0x142e5(%rip), %xmm0    # 0x19080
pand %xmm0, %xmm1
movq 0x128(%rsp), %rax
movsd (%rax), %xmm0
movaps 0x142ce(%rip), %xmm2    # 0x19080
pand %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x531a
movl $0x1, 0xfc(%rsp)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
movq 0x138(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0xd0(%rsp)
movq 0x130(%rsp), %rax
movsd (%rax), %xmm0
movq 0x158(%rsp), %rax
subsd (%rax), %xmm0
movsd 0x1426c(%rip), %xmm1    # 0x19078
mulsd %xmm1, %xmm0
divsd 0xd0(%rsp), %xmm0
movq 0x128(%rsp), %rax
addsd (%rax), %xmm0
movq 0x160(%rsp), %rax
addsd (%rax), %xmm0
movsd %xmm0, 0xc0(%rsp)
movsd 0xc0(%rsp), %xmm0
movaps 0x14236(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xb8(%rsp)
movq 0x128(%rsp), %rax
movsd (%rax), %xmm0
movaps 0x14216(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xb0(%rsp)
movq 0x160(%rsp), %rax
movsd (%rax), %xmm0
movaps 0x141f6(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd 0xb8(%rsp), %xmm0
ucomisd 0xb0(%rsp), %xmm0
jb 0x4ebc
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
jmp 0x4ecb
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x40(%rsp), %xmm0
ucomisd 0xa8(%rsp), %xmm0
jb 0x4f1e
movsd 0xb8(%rsp), %xmm0
ucomisd 0xb0(%rsp), %xmm0
jb 0x4f01
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
jmp 0x4f10
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
movsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x4f2d
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0x30(%rsp)
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0xc0(%rsp), %xmm0
divsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0xd8(%rsp)
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movsd 0xd8(%rsp), %xmm1
movsd 0xd8(%rsp), %xmm2
movq 0x128(%rsp), %rax
movsd (%rax), %xmm0
divsd 0xa0(%rsp), %xmm0
movq 0x160(%rsp), %rax
movsd (%rax), %xmm3
divsd 0xa0(%rsp), %xmm3
mulsd %xmm3, %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jb 0x4fd9
xorps %xmm0, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x503e
movsd 0xd8(%rsp), %xmm0
movsd 0xd8(%rsp), %xmm2
movq 0x128(%rsp), %rax
movsd (%rax), %xmm1
divsd 0xa0(%rsp), %xmm1
movq 0x160(%rsp), %rax
movsd (%rax), %xmm3
divsd 0xa0(%rsp), %xmm3
mulsd %xmm3, %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp)
movsd 0x20(%rsp), %xmm0
callq 0x11e0
movaps %xmm0, %xmm1
movsd 0x28(%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0xc8(%rsp)
movq 0x138(%rsp), %rax
movsd (%rax), %xmm1
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x50a6
movsd 0xc8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0xc8(%rsp)
movsd 0xc8(%rsp), %xmm0
movq 0x160(%rsp), %rax
subsd (%rax), %xmm0
addsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0xb8(%rsp)
movsd 0xc8(%rsp), %xmm0
movq 0x160(%rsp), %rax
subsd (%rax), %xmm0
addsd 0xc8(%rsp), %xmm0
movq 0x128(%rsp), %rax
addsd (%rax), %xmm0
movsd %xmm0, 0xb0(%rsp)
movsd 0xb8(%rsp), %xmm0
divsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
xorps %xmm0, %xmm0
ucomisd 0xa8(%rsp), %xmm0
jbe 0x5187
movsd 0xc8(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x513f
jp 0x513f
jmp 0x5187
movq 0x150(%rsp), %rax
movsd (%rax), %xmm1
movsd 0xa8(%rsp), %xmm0
movsd 0xd0(%rsp), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xf0(%rsp)
jmp 0x51bd
xorps %xmm0, %xmm0
ucomisd 0xd8(%rsp), %xmm0
jbe 0x51a9
movsd 0x100(%rsp), %xmm0
movsd %xmm0, 0xf0(%rsp)
jmp 0x51bb
movsd 0x108(%rsp), %xmm0
movsd %xmm0, 0xf0(%rsp)
jmp 0x51bd
movq 0x138(%rsp), %rax
movsd (%rax), %xmm0
movq 0x150(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0xd8(%rsp)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm1
movq 0x160(%rsp), %rax
movsd (%rax), %xmm0
movq 0x160(%rsp), %rax
movsd (%rax), %xmm2
movq 0x128(%rsp), %rax
subsd (%rax), %xmm2
divsd %xmm2, %xmm0
movsd 0xd8(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xe8(%rsp)
movq 0x168(%rsp), %rax
cmpl $0x0, (%rax)
je 0x52a7
movq 0x150(%rsp), %rax
movsd (%rax), %xmm1
subsd 0xf0(%rsp), %xmm1
movaps 0x13e2b(%rip), %xmm0    # 0x19080
pand %xmm0, %xmm1
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
subsd 0xe8(%rsp), %xmm0
movaps 0x13e0b(%rip), %xmm2    # 0x19080
pand %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x5293
movsd 0xf0(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x52a5
movsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x5315
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
subsd 0xf0(%rsp), %xmm0
movaps 0x13dbd(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movq 0x150(%rsp), %rax
movsd (%rax), %xmm1
subsd 0xe8(%rsp), %xmm1
movaps 0x13d9d(%rip), %xmm2    # 0x19080
pand %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x5301
movsd 0xf0(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x5313
movsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x5315
jmp 0x567e
movl $0x0, 0xfc(%rsp)
movq 0x168(%rsp), %rax
cmpl $0x0, (%rax)
je 0x5636
movq 0x120(%rsp), %rax
movsd (%rax), %xmm0
movq 0x150(%rsp), %rax
subsd (%rax), %xmm0
movsd %xmm0, 0xd0(%rsp)
movq 0x158(%rsp), %rax
movsd (%rax), %xmm0
movq 0x118(%rsp), %rax
subsd (%rax), %xmm0
movsd 0x13d01(%rip), %xmm1    # 0x19078
mulsd %xmm1, %xmm0
divsd 0xd0(%rsp), %xmm0
movq 0x160(%rsp), %rax
addsd (%rax), %xmm0
movq 0x110(%rsp), %rax
addsd (%rax), %xmm0
movsd %xmm0, 0xc0(%rsp)
movsd 0xc0(%rsp), %xmm0
movaps 0x13ccb(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xb8(%rsp)
movq 0x160(%rsp), %rax
movsd (%rax), %xmm0
movaps 0x13cab(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xb0(%rsp)
movq 0x110(%rsp), %rax
movsd (%rax), %xmm0
movaps 0x13c8b(%rip), %xmm1    # 0x19080
pand %xmm1, %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd 0xb8(%rsp), %xmm0
ucomisd 0xb0(%rsp), %xmm0
jb 0x5427
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
jmp 0x5436
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0x18(%rsp), %xmm0
ucomisd 0xa8(%rsp), %xmm0
jb 0x5489
movsd 0xb8(%rsp), %xmm0
ucomisd 0xb0(%rsp), %xmm0
jb 0x546c
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
jmp 0x547b
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
jmp 0x5498
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0xc0(%rsp), %xmm0
divsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0xd8(%rsp)
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, (%rsp)
movsd 0xd8(%rsp), %xmm0
movsd 0xd8(%rsp), %xmm2
movq 0x160(%rsp), %rax
movsd (%rax), %xmm1
divsd 0xa0(%rsp), %xmm1
movq 0x110(%rsp), %rax
movsd (%rax), %xmm3
divsd 0xa0(%rsp), %xmm3
mulsd %xmm3, %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
callq 0x11e0
movaps %xmm0, %xmm1
movsd (%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, 0xc8(%rsp)
movq 0x120(%rsp), %rax
movsd (%rax), %xmm1
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x5590
movsd 0xc8(%rsp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0xc8(%rsp)
movsd 0xc8(%rsp), %xmm0
movq 0x160(%rsp), %rax
subsd (%rax), %xmm0
addsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0xb8(%rsp)
movsd 0xc8(%rsp), %xmm0
movq 0x160(%rsp), %rax
subsd (%rax), %xmm0
addsd 0xc8(%rsp), %xmm0
movq 0x110(%rsp), %rax
addsd (%rax), %xmm0
movsd %xmm0, 0xb0(%rsp)
movsd 0xb8(%rsp), %xmm0
divsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm1
movsd 0xa8(%rsp), %xmm0
movsd 0xd0(%rsp), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x567c
movq 0x138(%rsp), %rax
movsd (%rax), %xmm1
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x5668
movsd 0x100(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x567a
movsd 0x108(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x567c
jmp 0x567e
jmp 0x5680
jmp 0x5682
movq 0x130(%rsp), %rax
movsd (%rax), %xmm1
movq 0x158(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x56ed
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
movq 0x120(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x158(%rsp), %rax
movsd (%rax), %xmm0
movq 0x118(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x160(%rsp), %rax
movsd (%rax), %xmm0
movq 0x110(%rsp), %rax
movsd %xmm0, (%rax)
jmp 0x5787
cmpl $0x0, 0xf8(%rsp)
je 0x573f
movq 0x138(%rsp), %rax
movsd (%rax), %xmm0
movq 0x120(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x130(%rsp), %rax
movsd (%rax), %xmm0
movq 0x118(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x128(%rsp), %rax
movsd (%rax), %xmm0
movq 0x110(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x150(%rsp), %rax
movsd (%rax), %xmm0
movq 0x138(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x158(%rsp), %rax
movsd (%rax), %xmm0
movq 0x130(%rsp), %rax
movsd %xmm0, (%rax)
movq 0x160(%rsp), %rax
movsd (%rax), %xmm0
movq 0x128(%rsp), %rax
movsd %xmm0, (%rax)
movsd 0x100(%rsp), %xmm1
movsd 0xe0(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x57b1
movsd 0x100(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
movsd 0xe0(%rsp), %xmm1
movsd 0x108(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x57db
movsd 0x108(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
movq 0x168(%rsp), %rax
cmpl $0x0, (%rax)
je 0x58af
cmpl $0x0, 0xfc(%rsp)
je 0x58af
movq 0x138(%rsp), %rax
movsd (%rax), %xmm1
movq 0x120(%rsp), %rax
movsd (%rax), %xmm0
movq 0x138(%rsp), %rax
subsd (%rax), %xmm0
movsd 0x13842(%rip), %xmm2    # 0x19068
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xe8(%rsp)
movq 0x138(%rsp), %rax
movsd (%rax), %xmm1
movq 0x120(%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x5881
movsd 0xe8(%rsp), %xmm1
movsd 0xe0(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x587f
movsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x58ad
movsd 0xe0(%rsp), %xmm1
movsd 0xe8(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x58ab
movsd 0xe8(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
jmp 0x58ad
jmp 0x58af
movsd 0xe0(%rsp), %xmm0
movq 0x150(%rsp), %rax
movsd %xmm0, (%rax)
movl $0x0, 0x144(%rsp)
movl 0x144(%rsp), %eax
addq $0x148, %rsp            # imm = 0x148
retq
nop