// File: /workspace/github_c_makefile_star2_O0/debbiemarkslab[P]plmc/src/inference.c
// Function: PostCondition
lbfgsfloatval_t PostCondition(const lbfgsfloatval_t *x, lbfgsfloatval_t *g, lbfgsfloatval_t fx, alignment_t *ali, options_t *options) {
    if (options->zeroAPC == 1)
        for (int i = 0; i < ali->nSites; i++)
            for (int ai = 0; ai < ali->nCodes; ai++)
                dHi(i, ai) = 0.0;

    /* Group (L1/L2) regularization  */
    if (options->lambdaGroup > 0)
        for (int i = 0; i < ali->nSites - 1; i++)
            for (int j = i + 1; j < ali->nSites; j++) {
                double l2 = REGULARIZATION_GROUP_EPS;
                for (int ai = 0; ai < ali->nCodes; ai++)
                    for (int aj = 0; aj < ali->nCodes; aj++)
                        l2 += xEij(i, j, ai, aj) * xEij(i, j, ai, aj);
                double l1 = sqrt(l2);
                fx += options->lambdaGroup * l1;
                for (int ai = 0; ai < ali->nCodes; ai++)
                    for (int aj = 0; aj < ali->nCodes; aj++)
                        dEij(i, j, ai, aj) += options->lambdaGroup * xEij(i, j, ai, aj) / l1;
            }

    return fx;
}

// Assembly:
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movsd %xmm0, 0xa0(%rsp)
movq %rdx, 0x98(%rsp)
movq %rcx, 0x90(%rsp)
movq 0x90(%rsp), %rax
cmpl $0x1, 0x58(%rax)
jne 0x163fc
movl $0x0, 0x8c(%rsp)
movl 0x8c(%rsp), %eax
movq 0x98(%rsp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x163fa
movl $0x0, 0x88(%rsp)
movl 0x88(%rsp), %eax
movq 0x98(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x163e2
movq 0xa8(%rsp), %rax
movl 0x8c(%rsp), %ecx
movq 0x98(%rsp), %rdx
movl 0x4(%rdx), %edx
imull 0x88(%rsp), %edx
addl %edx, %ecx
movslq %ecx, %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl 0x88(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x88(%rsp)
jmp 0x1638c
jmp 0x163e4
movl 0x8c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8c(%rsp)
jmp 0x1636d
jmp 0x163fc
movq 0x90(%rsp), %rax
movsd 0x50(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x169d9
movl $0x0, 0x84(%rsp)
movl 0x84(%rsp), %eax
movq 0x98(%rsp), %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x169d7
movl 0x84(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x80(%rsp)
movl 0x80(%rsp), %eax
movq 0x98(%rsp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x169bf
movsd 0x2f91(%rip), %xmm0     # 0x19400
movsd %xmm0, 0x78(%rsp)
movl $0x0, 0x74(%rsp)
movl 0x74(%rsp), %eax
movq 0x98(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x166e7
movl $0x0, 0x70(%rsp)
movl 0x70(%rsp), %eax
movq 0x98(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x166d5
movq 0xb0(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x98(%rsp), %rax
movl 0x4(%rax), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl %eax, 0x5c(%rsp)
movl 0x84(%rsp), %eax
cmpl 0x80(%rsp), %eax
jge 0x1653e
movl 0x80(%rsp), %eax
movl 0x80(%rsp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl 0x84(%rsp), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl 0x70(%rsp), %ecx
movq 0x98(%rsp), %rdx
imull 0x8(%rdx), %ecx
addl %ecx, %eax
addl 0x74(%rsp), %eax
movl %eax, 0x4c(%rsp)
jmp 0x16593
movl 0x84(%rsp), %eax
movl 0x84(%rsp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl 0x80(%rsp), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl 0x74(%rsp), %ecx
movq 0x98(%rsp), %rdx
imull 0x8(%rdx), %ecx
addl %ecx, %eax
addl 0x70(%rsp), %eax
movl %eax, 0x4c(%rsp)
movq 0x50(%rsp), %rax
movl 0x5c(%rsp), %ecx
movl 0x4c(%rsp), %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x98(%rsp), %rax
movl 0x4(%rax), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl %eax, 0x48(%rsp)
movl 0x84(%rsp), %eax
cmpl 0x80(%rsp), %eax
jge 0x1663f
movl 0x80(%rsp), %eax
movl 0x80(%rsp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl 0x84(%rsp), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl 0x70(%rsp), %ecx
movq 0x98(%rsp), %rdx
imull 0x8(%rdx), %ecx
addl %ecx, %eax
addl 0x74(%rsp), %eax
movl %eax, 0x34(%rsp)
jmp 0x16694
movl 0x84(%rsp), %eax
movl 0x84(%rsp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl 0x80(%rsp), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl 0x74(%rsp), %ecx
movq 0x98(%rsp), %rdx
imull 0x8(%rdx), %ecx
addl %ecx, %eax
addl 0x70(%rsp), %eax
movl %eax, 0x34(%rsp)
movsd 0x38(%rsp), %xmm0
movq 0x40(%rsp), %rax
movl 0x48(%rsp), %ecx
movl 0x34(%rsp), %edx
addl %edx, %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm2
movsd 0x78(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x78(%rsp)
movl 0x70(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x70(%rsp)
jmp 0x1649a
jmp 0x166d7
movl 0x74(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x74(%rsp)
jmp 0x1647d
movsd 0x78(%rsp), %xmm0
callq 0x11e0
movsd %xmm0, 0x68(%rsp)
movq 0x90(%rsp), %rax
movsd 0x50(%rax), %xmm0
movsd 0x68(%rsp), %xmm2
movsd 0xa0(%rsp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0xa0(%rsp)
movl $0x0, 0x64(%rsp)
movl 0x64(%rsp), %eax
movq 0x98(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x169a7
movl $0x0, 0x60(%rsp)
movl 0x60(%rsp), %eax
movq 0x98(%rsp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x16995
movq 0x90(%rsp), %rax
movsd 0x50(%rax), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x98(%rsp), %rax
movl 0x4(%rax), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl %eax, 0x30(%rsp)
movl 0x84(%rsp), %eax
cmpl 0x80(%rsp), %eax
jge 0x16801
movl 0x80(%rsp), %eax
movl 0x80(%rsp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl 0x84(%rsp), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl 0x60(%rsp), %ecx
movq 0x98(%rsp), %rdx
imull 0x8(%rdx), %ecx
addl %ecx, %eax
addl 0x64(%rsp), %eax
movl %eax, 0x1c(%rsp)
jmp 0x16856
movl 0x84(%rsp), %eax
movl 0x84(%rsp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl 0x80(%rsp), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl 0x64(%rsp), %ecx
movq 0x98(%rsp), %rdx
imull 0x8(%rdx), %ecx
addl %ecx, %eax
addl 0x60(%rsp), %eax
movl %eax, 0x1c(%rsp)
movq 0x28(%rsp), %rax
movsd 0x20(%rsp), %xmm0
movl 0x30(%rsp), %ecx
movl 0x1c(%rsp), %edx
addl %edx, %ecx
movslq %ecx, %rcx
mulsd (%rax,%rcx,8), %xmm0
divsd 0x68(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x98(%rsp), %rax
movl 0x4(%rax), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl %eax, 0x18(%rsp)
movl 0x84(%rsp), %eax
cmpl 0x80(%rsp), %eax
jge 0x1690e
movl 0x80(%rsp), %eax
movl 0x80(%rsp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl 0x84(%rsp), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl 0x60(%rsp), %ecx
movq 0x98(%rsp), %rdx
imull 0x8(%rdx), %ecx
addl %ecx, %eax
addl 0x64(%rsp), %eax
movl %eax, 0x4(%rsp)
jmp 0x16963
movl 0x84(%rsp), %eax
movl 0x84(%rsp), %ecx
subl $0x1, %ecx
imull %ecx, %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl 0x80(%rsp), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movq 0x98(%rsp), %rcx
imull 0x8(%rcx), %eax
movl 0x64(%rsp), %ecx
movq 0x98(%rsp), %rdx
imull 0x8(%rdx), %ecx
addl %ecx, %eax
addl 0x60(%rsp), %eax
movl %eax, 0x4(%rsp)
movq 0x10(%rsp), %rax
movsd 0x8(%rsp), %xmm0
movl 0x18(%rsp), %ecx
movl 0x4(%rsp), %edx
addl %edx, %ecx
movslq %ecx, %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl 0x60(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x60(%rsp)
jmp 0x1674a
jmp 0x16997
movl 0x64(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x64(%rsp)
jmp 0x1672d
jmp 0x169a9
movl 0x80(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x80(%rsp)
jmp 0x1644f
jmp 0x169c1
movl 0x84(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x84(%rsp)
jmp 0x16421
jmp 0x169d9
movsd 0xa0(%rsp), %xmm0
addq $0xb8, %rsp
retq
nopw (%rax,%rax)