// File: /workspace/github_c_makefile_star2_O1/nh13[P]ksw/src/parasail/tests/test_verify_tables.c
// Function: check_functions
static void check_functions(
        parasail_function_group_t f,
        parasail_sequences_t *sequences,
        unsigned long pair_limit_,
        const parasail_matrix_t *matrix_,
        gap_score_t gap)
{
    const parasail_function_info_t *functions = f.fs;
    unsigned long matrix_index = 0;
    unsigned long gap_index = 0;
    unsigned long function_index = 0;
    long long pair_index = 0;
    long long pair_limit = (long long)pair_limit_;
    parasail_function_t *reference_function = NULL;
    const parasail_matrix_t ** matrices = parasail_matrices;
    const parasail_matrix_t * single_matrix[] = {
        matrix_,
        NULL
    };

    if (NULL != matrix_) {
        matrices = single_matrix;
    }

    printf("checking %s functions\n", f.name);
    for (matrix_index=0; NULL!=matrices[matrix_index]; ++matrix_index) {
        const parasail_matrix_t *matrix = matrices[matrix_index];
        const char *matrixname = matrix->name;
        if (verbose) printf("\t%s\n", matrixname);
        for (gap_index=0; INT_MIN!=gap_scores[gap_index].open; ++gap_index) {
            int open = gap_scores[gap_index].open;
            int extend = gap_scores[gap_index].extend;
            if (gap.open != INT_MIN && gap.extend != INT_MIN) {
                open = gap.open;
                extend = gap.extend;
            }
            if (verbose) printf("\t\topen=%d extend=%d\n", open, extend);
            reference_function = functions[0].pointer;
            for (function_index=1;
                    NULL!=functions[function_index].pointer;
                    ++function_index) {
                unsigned long saturated = 0;
                if (verbose) printf("\t\t\t%s\n", functions[function_index].name);
#pragma omp parallel for
                for (pair_index=0; pair_index<pair_limit; ++pair_index) {
                    parasail_result_t *reference_result = NULL;
                    parasail_result_t *result = NULL;
                    unsigned long a = 0;
                    unsigned long b = 1;
                    int *ref_score_table = NULL;
                    int *score_table = NULL;
                    size_t size_a = 0;
                    size_t size_b = 0;
                    k_combination2(pair_index, &a, &b);
                    size_a = sequences->seqs[a].seq.l;
                    size_b = sequences->seqs[b].seq.l;
                    /*if (verbose) printf("\t\t\t\tpair=%lld (%lu,%lu)\n", pair_index, a, b);*/
                    reference_result = reference_function(
                            sequences->seqs[a].seq.s, size_a,
                            sequences->seqs[b].seq.s, size_b,
                            open, extend,
                            matrix);
                    result = functions[function_index].pointer(
                            sequences->seqs[a].seq.s, size_a,
                            sequences->seqs[b].seq.s, size_b,
                            open, extend,
                            matrix);
                    if (parasail_result_is_saturated(result)) {
                        /* no point in comparing a result that saturated */
                        parasail_result_free(reference_result);
                        parasail_result_free(result);
#pragma omp atomic
                        saturated += 1;
                        continue;
                    }
                    ref_score_table = parasail_result_get_score_table(reference_result);
                    score_table = parasail_result_get_score_table(result);
                    if (reference_result->score != result->score) {
#pragma omp critical(printer)
                        {
                            printf("%s(%lu,%lu,%d,%d,%s) wrong score (%d!=%d)\n",
                                    functions[function_index].name,
                                    a, b, open, extend,
                                    matrixname,
                                    reference_result->score, result->score);
                            if (exit_on_mismatch) exit(EXIT_FAILURE);
                        }
                    }
                    if (reference_result->end_query != result->end_query) {
#pragma omp critical(printer)
                        {
                            printf("%s(%lu,%lu,%d,%d,%s) wrong end_query (%d!=%d)\n",
                                    functions[function_index].name,
                                    a, b, open, extend,
                                    matrixname,
                                    reference_result->end_query, result->end_query);
                            if (exit_on_mismatch) exit(EXIT_FAILURE);
                        }
                    }
                    if (reference_result->end_ref != result->end_ref) {
#pragma omp critical(printer)
                        {
                            printf("%s(%lu,%lu,%d,%d,%s) wrong end_ref (%d!=%d)\n",
                                    functions[function_index].name,
                                    a, b, open, extend,
                                    matrixname,
                                    reference_result->end_ref, result->end_ref);
                            if (exit_on_mismatch) exit(EXIT_FAILURE);
                        }
                    }
                    if (diff_array(size_a, size_b, ref_score_table, score_table)) {
#pragma omp critical(printer)
                        {
                            printf("%s(%lu,%lu,%d,%d,%s) bad score table\n",
                                    functions[function_index].name,
                                    a, b, open, extend,
                                    matrixname);
                            if (exit_on_mismatch) exit(EXIT_FAILURE);
                        }
                    }
                    if (parasail_result_is_stats(result)) {
                        int ref_matches = parasail_result_get_matches(reference_result);
                        int ref_similar = parasail_result_get_similar(reference_result);
                        int ref_length = parasail_result_get_length(reference_result);
                        int matches = parasail_result_get_matches(result);
                        int similar = parasail_result_get_similar(result);
                        int length = parasail_result_get_length(result);
                        int *ref_matches_table = parasail_result_get_matches_table(reference_result);
                        int *ref_similar_table = parasail_result_get_similar_table(reference_result);
                        int *ref_length_table = parasail_result_get_length_table(reference_result);
                        int *matches_table = parasail_result_get_matches_table(result);
                        int *similar_table = parasail_result_get_similar_table(result);
                        int *length_table = parasail_result_get_length_table(result);
                        if (diff_array(size_a, size_b, ref_matches_table, matches_table)) {
#pragma omp critical(printer)
                            {
                                printf("%s(%lu,%lu,%d,%d,%s) bad matches table\n",
                                        functions[function_index].name,
                                        a, b, open, extend,
                                        matrixname);
                                if (exit_on_mismatch) exit(EXIT_FAILURE);
                            }
                        }
                        if (ref_matches != matches) {
#pragma omp critical(printer)
                            {
                                printf("%s(%lu,%lu,%d,%d,%s) wrong matches (%d!=%d)\n",
                                        functions[function_index].name,
                                        a, b, open, extend,
                                        matrixname,
                                        ref_matches, matches);
                                if (exit_on_mismatch) exit(EXIT_FAILURE);
                            }
                        }
                        if (diff_array(size_a, size_b, ref_similar_table, similar_table)) {
#pragma omp critical(printer)
                            {
                                printf("%s(%lu,%lu,%d,%d,%s) bad similar table\n",
                                        functions[function_index].name,
                                        a, b, open, extend,
                                        matrixname);
                                if (exit_on_mismatch) exit(EXIT_FAILURE);
                            }
                        }
                        if (ref_similar != similar) {
#pragma omp critical(printer)
                            {
                                printf("%s(%lu,%lu,%d,%d,%s) wrong similar (%d!=%d)\n",
                                        functions[function_index].name,
                                        a, b, open, extend,
                                        matrixname,
                                        ref_similar, similar);
                                if (exit_on_mismatch) exit(EXIT_FAILURE);
                            }
                        }
                        if (diff_array(size_a, size_b, ref_length_table, length_table)) {
#pragma omp critical(printer)
                            {
                                printf("%s(%lu,%lu,%d,%d,%s) bad length table\n",
                                        functions[function_index].name,
                                        a, b, open, extend,
                                        matrixname);
                                if (exit_on_mismatch) exit(EXIT_FAILURE);
                            }
                        }
                        if (ref_length != length) {
#pragma omp critical(printer)
                            {
                                printf("%s(%lu,%lu,%d,%d,%s) wrong length (%d!=%d)\n",
                                        functions[function_index].name,
                                        a, b, open, extend,
                                        matrixname,
                                        ref_length, length);
                                if (exit_on_mismatch) exit(EXIT_FAILURE);
                            }
                        }
                    }
                    parasail_result_free(reference_result);
                    parasail_result_free(result);
                }
                if (verbose && saturated) {
                    printf("%s %d %d %s saturated %lu times\n",
                            functions[function_index].name,
                            open, extend,
                            matrixname,
                            saturated);
                }
            }
            if (gap.open != INT_MIN && gap.extend != INT_MIN) {
                /* user-specified gap, don't loop */
                break;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r9, 0x58(%rsp)
movq %rcx, 0x60(%rsp)
movq %rdx, 0x78(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdi, %rsi
leaq 0x100(%rsp), %rax
movq %r8, (%rax)
movq $0x0, 0x8(%rax)
testq %r8, %r8
leaq 0x4e224f(%rip), %rbx    # 0x688320
cmovneq %rax, %rbx
leaq 0x3a7aaf(%rip), %rdi    # 0x54db8b
xorl %eax, %eax
callq 0x149040
movq %rbx, 0x88(%rsp)
movq (%rbx), %rcx
testq %rcx, %rcx
je 0x1a692f
movq 0x58(%rsp), %rax
movq %rax, %rdx
shrq $0x20, %rdx
negl %eax
setno %al
movq %rdx, 0xa0(%rsp)
cmpl $0x80000000, %edx       # imm = 0x80000000
setne %dl
andb %al, %dl
movb %dl, 0x17(%rsp)
movq 0x38(%rsp), %rax
addq $0x48, %rax
movq %rax, 0x98(%rsp)
xorl %eax, %eax
movq %rax, 0x90(%rsp)
movq %rcx, 0x80(%rsp)
movq (%rcx), %rax
movq %rax, 0x18(%rsp)
cmpb $0x1, 0x504fe3(%rip)    # 0x6ab134
jne 0x1a6166
leaq 0x3a7a5f(%rip), %rdi    # 0x54dbb9
movq 0x18(%rsp), %rsi
xorl %eax, %eax
callq 0x149040
movl 0x4e4fa4(%rip), %eax    # 0x68b110
movl %eax, %ecx
negl %ecx
jo 0x1a690b
leaq 0x4e4f93(%rip), %rcx    # 0x68b110
xorl %ebx, %ebx
movq 0xa0(%rsp), %rdx
movl %edx, 0xc(%rsp)
movq 0x58(%rsp), %rdx
movl %edx, 0x10(%rsp)
cmpb $0x0, 0x17(%rsp)
jne 0x1a61a6
movl 0x4(%rcx), %ecx
movl %ecx, 0xc(%rsp)
movl %eax, 0x10(%rsp)
cmpb $0x1, 0x504f87(%rip)    # 0x6ab134
jne 0x1a61c5
leaq 0x3a79ec(%rip), %rdi    # 0x54dba2
movl 0x10(%rsp), %esi
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x149040
movq 0x38(%rsp), %rax
cmpq $0x0, 0x48(%rax)
je 0x1a68e6
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xf0(%rsp)
movl $0x1, %r14d
movq 0x98(%rsp), %rbp
movq %rbx, 0xe8(%rsp)
cmpb $0x1, 0x504f32(%rip)    # 0x6ab134
jne 0x1a6216
movq 0x8(%rbp), %rsi
leaq 0x3a79a8(%rip), %rdi    # 0x54dbb7
xorl %eax, %eax
callq 0x149040
cmpq $0x0, 0x60(%rsp)
jle 0x1a6899
xorl %eax, %eax
xorl %r9d, %r9d
movq %r14, 0x50(%rsp)
movq %rbp, 0x68(%rsp)
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
addsd %xmm0, %xmm0
ucomisd 0x3a7838(%rip), %xmm0   # 0x54da80
movq %r9, 0x70(%rsp)
movq %rax, 0xf8(%rsp)
jb 0x1a625d
sqrtsd %xmm0, %xmm0
jmp 0x1a6262
callq 0x1490f0
callq 0x1491e0
movsd 0x3a77f1(%rip), %xmm2   # 0x54da60
addsd %xmm2, %xmm0
movsd 0x3a77ed(%rip), %xmm3   # 0x54da68
movapd %xmm3, %xmm1
maxsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
mulsd 0x3a77d9(%rip), %xmm0   # 0x54da70
movsd 0x20(%rsp), %xmm4
movapd %xmm4, %xmm2
subsd %xmm0, %xmm2
ucomisd %xmm1, %xmm2
jb 0x1a62b5
addsd %xmm1, %xmm0
addsd %xmm3, %xmm1
jmp 0x1a629d
cvttsd2si %xmm2, %rax
movsd 0x3a77b6(%rip), %xmm0   # 0x54da78
subsd %xmm0, %xmm2
cvttsd2si %xmm2, %rcx
movq %rax, %rbx
sarq $0x3f, %rbx
andq %rcx, %rbx
orq %rax, %rbx
cvttsd2si %xmm1, %rax
subsd %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
movq %rax, %r12
sarq $0x3f, %r12
andq %rcx, %r12
orq %rax, %r12
movq 0x78(%rsp), %rax
movq (%rax), %rax
movq %rbx, %r14
shlq $0x6, %r14
movq 0x20(%rax,%r14), %rsi
movq %rsi, 0x30(%rsp)
movq 0x28(%rax,%r14), %rdi
movq %r12, %r15
shlq $0x6, %r15
movq 0x20(%rax,%r15), %r13
movq 0x28(%rax,%r15), %rdx
subq $0x8, %rsp
movl %r13d, %ecx
movl 0x18(%rsp), %ebp
movl %ebp, %r8d
movl 0x14(%rsp), %r9d
pushq 0x88(%rsp)
callq *0x100(%rsp)
addq $0x10, %rsp
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rax
movq (%rax), %rax
movq 0x28(%rax,%r14), %rdi
movq 0x28(%rax,%r15), %rdx
movq 0x30(%rsp), %rsi
subq $0x8, %rsp
movq %r13, 0x30(%rsp)
movl %r13d, %ecx
movl %ebp, %r8d
movl 0x14(%rsp), %r9d
pushq 0x88(%rsp)
movq 0x78(%rsp), %rbp
callq *(%rbp)
addq $0x10, %rsp
movq %rax, %r14
movq %rax, %rdi
callq 0x1a7eb9
testl %eax, %eax
je 0x1a63bd
movq 0x20(%rsp), %rdi
callq 0x1a704d
movq %r14, %rdi
callq 0x1a704d
movq 0x70(%rsp), %r9
incq %r9
movq 0x50(%rsp), %r14
jmp 0x1a6879
movq 0x20(%rsp), %rbp
movq %rbp, %rdi
callq 0x1a80ba
movq %rax, %r13
movq %r14, %rdi
callq 0x1a80ba
movq %rax, %r15
movl (%rbp), %r10d
movq %r14, 0x48(%rsp)
movl (%r14), %r11d
cmpl %r11d, %r10d
movq 0x50(%rsp), %r14
movq %rbp, %rax
movq 0x68(%rsp), %rbp
je 0x1a643a
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a77b9(%rip), %rdi    # 0x54dbbe
movq %rbx, %rdx
movq %r12, %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x30(%rsp)
callq 0x149040
movq 0x40(%rsp), %rax
addq $0x20, %rsp
cmpb $0x1, 0x504d04(%rip)    # 0x6ab138
je 0x1a6941
movl 0x4(%rax), %r10d
movq 0x48(%rsp), %rcx
movl 0x4(%rcx), %r11d
cmpl %r11d, %r10d
je 0x1a6490
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a778e(%rip), %rdi    # 0x54dbe9
movq %rbx, %rdx
movq %r12, %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x30(%rsp)
callq 0x149040
movq 0x40(%rsp), %rax
addq $0x20, %rsp
cmpb $0x1, 0x504cae(%rip)    # 0x6ab138
je 0x1a6941
movl 0x8(%rax), %r10d
movq 0x48(%rsp), %rax
movl 0x8(%rax), %r11d
cmpl %r11d, %r10d
je 0x1a64e1
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a7767(%rip), %rdi    # 0x54dc18
movq %rbx, %rdx
movq %r12, %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x30(%rsp)
callq 0x149040
addq $0x20, %rsp
cmpb $0x1, 0x504c5d(%rip)    # 0x6ab138
je 0x1a6941
movq 0x28(%rsp), %rdx
imulq 0x30(%rsp), %rdx
testq %rdx, %rdx
movq %rdx, 0x28(%rsp)
je 0x1a6548
xorl %eax, %eax
movl (%r13,%rax,4), %ecx
cmpl (%r15,%rax,4), %ecx
jne 0x1a650d
incq %rax
cmpq %rax, %rdx
jne 0x1a64f8
jmp 0x1a6548
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a7729(%rip), %rdi    # 0x54dc45
movq %rbx, %rdx
movq %r12, %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq 0x20(%rsp)
callq 0x149040
addq $0x10, %rsp
cmpb $0x1, 0x504bf6(%rip)    # 0x6ab138
je 0x1a6941
movq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0x1a7f59
testl %eax, %eax
je 0x1a6862
movq %r12, 0x40(%rsp)
movq %rbx, 0x30(%rsp)
movq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x1a804c
movq %rax, 0xe0(%rsp)
movq %r14, %rdi
callq 0x1a8070
movq %rax, 0xd0(%rsp)
movq %r14, %rdi
callq 0x1a8095
movq %rax, 0xc0(%rsp)
movq %r15, %rdi
callq 0x1a804c
movq %rax, 0xd8(%rsp)
movq %r15, %rdi
callq 0x1a8070
movq %rax, 0xc8(%rsp)
movq %r15, %rdi
callq 0x1a8095
movq %rax, 0xb8(%rsp)
movq %r14, %rdi
callq 0x1a8107
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a8137
movq %rax, %r12
movq %r14, %rdi
callq 0x1a8167
movq %rax, 0xb0(%rsp)
movq %r15, %rdi
callq 0x1a8107
movq %rax, %r14
movq %r15, %rdi
callq 0x1a8137
movq %rax, %r13
movq %r15, %rdi
callq 0x1a8167
movq %rax, %r10
movq 0x28(%rsp), %rdx
testq %rdx, %rdx
je 0x1a667c
xorl %eax, %eax
movl (%rbx,%rax,4), %ecx
cmpl (%r14,%rax,4), %ecx
jne 0x1a6632
incq %rax
cmpq %rax, %rdx
jne 0x1a661f
jmp 0x1a667c
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a762a(%rip), %rdi    # 0x54dc6b
movq 0x38(%rsp), %rdx
movq 0x48(%rsp), %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq 0x20(%rsp)
movq %r10, %rbx
callq 0x149040
movq %rbx, %r10
movq 0x38(%rsp), %rdx
addq $0x10, %rsp
cmpb $0x1, 0x504ac2(%rip)    # 0x6ab138
je 0x1a6941
movq %r10, 0xa8(%rsp)
movq 0xe0(%rsp), %r10
movq 0xd8(%rsp), %r11
cmpl %r11d, %r10d
movq 0x30(%rsp), %rbx
movq 0x40(%rsp), %r15
je 0x1a66e7
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a75e1(%rip), %rdi    # 0x54dc93
movq %rbx, %rdx
movq %r15, %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x30(%rsp)
callq 0x149040
movq 0x48(%rsp), %rdx
addq $0x20, %rsp
cmpb $0x1, 0x504a57(%rip)    # 0x6ab138
je 0x1a6941
testq %rdx, %rdx
movq 0x50(%rsp), %r14
je 0x1a6748
xorl %eax, %eax
movl (%r12,%rax,4), %ecx
cmpl (%r13,%rax,4), %ecx
jne 0x1a6708
incq %rax
cmpq %rax, %rdx
jne 0x1a66f3
jmp 0x1a6748
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a75a9(%rip), %rdi    # 0x54dcc0
movq %rbx, %rdx
movq %r15, %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq 0x20(%rsp)
callq 0x149040
movq 0x38(%rsp), %rdx
addq $0x10, %rsp
cmpb $0x1, 0x5049f6(%rip)    # 0x6ab138
je 0x1a6941
movq 0xd0(%rsp), %r10
movq 0xc8(%rsp), %r11
cmpl %r11d, %r10d
je 0x1a67a1
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a757c(%rip), %rdi    # 0x54dce8
movq %rbx, %rdx
movq %r15, %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x30(%rsp)
callq 0x149040
movq 0x48(%rsp), %rdx
addq $0x20, %rsp
cmpb $0x1, 0x50499d(%rip)    # 0x6ab138
je 0x1a6941
testq %rdx, %rdx
movq 0x48(%rsp), %r15
movq 0xc0(%rsp), %r12
movq 0xb8(%rsp), %r13
movq 0xb0(%rsp), %rsi
movq 0xa8(%rsp), %rdi
je 0x1a681c
xorl %eax, %eax
movl (%rsi,%rax,4), %ecx
cmpl (%rdi,%rax,4), %ecx
jne 0x1a67df
incq %rax
cmpq %rax, %rdx
jne 0x1a67cd
jmp 0x1a681c
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a7527(%rip), %rdi    # 0x54dd15
movq %rbx, %rdx
movq 0x48(%rsp), %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq 0x20(%rsp)
callq 0x149040
addq $0x10, %rsp
cmpb $0x1, 0x504922(%rip)    # 0x6ab138
je 0x1a6941
cmpl %r13d, %r12d
je 0x1a6862
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3a750c(%rip), %rdi    # 0x54dd3c
movq %rbx, %rdx
movq 0x48(%rsp), %rcx
movl 0x18(%rsp), %r8d
movl 0x14(%rsp), %r9d
xorl %eax, %eax
pushq %r13
pushq %r12
pushq 0x30(%rsp)
callq 0x149040
addq $0x20, %rsp
cmpb $0x1, 0x5048dc(%rip)    # 0x6ab138
je 0x1a6941
movq 0x20(%rsp), %rdi
callq 0x1a704d
movq %r15, %rdi
callq 0x1a704d
movq 0x70(%rsp), %r9
movq 0xf8(%rsp), %rax
incq %rax
cmpq 0x60(%rsp), %rax
movq 0xe8(%rsp), %rbx
jne 0x1a6231
jmp 0x1a689c
xorl %r9d, %r9d
testq %r9, %r9
setne %al
andb 0x50488c(%rip), %al     # 0x6ab134
cmpb $0x1, %al
jne 0x1a68cb
movq 0x8(%rbp), %rsi
leaq 0x3a74b1(%rip), %rdi    # 0x54dd68
movl 0x10(%rsp), %edx
movl 0xc(%rsp), %ecx
movq 0x18(%rsp), %r8
xorl %eax, %eax
callq 0x149040
incq %r14
leaq (%r14,%r14,8), %rax
movq 0x38(%rsp), %rcx
leaq (%rcx,%rax,8), %rbp
cmpq $0x0, (%rbp)
jne 0x1a61fb
cmpb $0x0, 0x17(%rsp)
jne 0x1a690b
leaq 0x4e481c(%rip), %rax    # 0x68b110
leaq (%rax,%rbx,8), %rcx
addq $0x8, %rcx
incq %rbx
movl (%rcx), %eax
movl %eax, %edx
negl %edx
jno 0x1a617f
movq 0x88(%rsp), %rax
movq 0x90(%rsp), %rdx
movq 0x8(%rax,%rdx,8), %rcx
movq %rdx, %rax
incq %rax
testq %rcx, %rcx
jne 0x1a6132
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %edi
callq 0x149170
nop