// File: /workspace/github_c_makefile_star2_O3/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 $0x108, %rsp            # imm = 0x108
movq %r9, 0x40(%rsp)
movq %rcx, 0x58(%rsp)
movq %rdx, 0x68(%rsp)
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0xf0(%rsp), %rax
movq %r8, (%rax)
movq $0x0, 0x8(%rax)
testq %r8, %r8
leaq 0x5162b0(%rip), %r14    # 0x6bc320
cmovneq %rax, %r14
leaq 0x3d9b10(%rip), %rdi    # 0x57fb8b
xorl %eax, %eax
callq 0x149040
movq %r14, 0x78(%rsp)
movq (%r14), %rdx
testq %rdx, %rdx
je 0x1a68cf
movq 0x40(%rsp), %rax
movq %rax, %rcx
shrq $0x20, %rcx
negl %eax
setno %al
movq %rcx, 0x90(%rsp)
cmpl $0x80000000, %ecx       # imm = 0x80000000
setne %cl
andb %al, %cl
movb %cl, 0xf(%rsp)
leaq 0x48(%rbx), %rax
movq %rax, 0x88(%rsp)
movb 0x539067(%rip), %al     # 0x6df134
movl %eax, %ecx
xorl %esi, %esi
movq %rbx, 0xd8(%rsp)
movq %rdx, 0x70(%rsp)
movq (%rdx), %r14
testb $0x1, %cl
movq %rsi, 0x80(%rsp)
je 0x1a6109
leaq 0x3d9ac4(%rip), %rdi    # 0x57fbb9
movq %r14, %rsi
xorl %eax, %eax
callq 0x149040
movb 0x53902f(%rip), %al     # 0x6df134
movl %eax, %ecx
jmp 0x1a610b
xorl %ecx, %ecx
movl 0x518fff(%rip), %esi    # 0x6bf110
movl %esi, %edx
negl %edx
jo 0x1a68b1
movl %eax, %ecx
movl %eax, %edx
leaq 0x518fea(%rip), %rdi    # 0x6bf110
xorl %r15d, %r15d
movq %r14, 0x10(%rsp)
movq 0x90(%rsp), %r8
movl %r8d, 0x4(%rsp)
movq 0x40(%rsp), %r8
movl %r8d, 0x8(%rsp)
cmpb $0x0, 0xf(%rsp)
jne 0x1a6157
movl 0x4(%rdi), %edi
movl %edi, 0x4(%rsp)
movl %esi, 0x8(%rsp)
testb $0x1, %dl
je 0x1a617e
leaq 0x3d9a3f(%rip), %rdi    # 0x57fba2
movl 0x8(%rsp), %esi
movl 0x4(%rsp), %edx
xorl %eax, %eax
callq 0x149040
movb 0x538fbc(%rip), %al     # 0x6df134
movl %eax, %ecx
movl %eax, %edx
jmp 0x1a6180
xorl %edx, %edx
cmpq $0x0, 0x48(%rbx)
je 0x1a688a
movq (%rbx), %rax
movq %rax, 0xe0(%rsp)
movl $0x1, %r14d
movl %ecx, %eax
movq 0x88(%rsp), %r12
movq %r15, 0x98(%rsp)
testb $0x1, %al
je 0x1a61c5
movq 0x8(%r12), %rsi
leaq 0x3d99f9(%rip), %rdi    # 0x57fbb7
xorl %eax, %eax
callq 0x149040
movq %r14, 0x48(%rsp)
cmpq $0x0, 0x58(%rsp)
jle 0x1a685d
xorl %eax, %eax
xorl %r9d, %r9d
movq %r12, 0x38(%rsp)
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x20(%rsp)
addsd %xmm0, %xmm0
ucomisd 0x3d9889(%rip), %xmm0   # 0x57fa80
movq %r9, 0x60(%rsp)
movq %rax, 0xe8(%rsp)
jb 0x1a620c
sqrtsd %xmm0, %xmm0
jmp 0x1a6211
callq 0x1490f0
callq 0x1491e0
movsd 0x3d9842(%rip), %xmm2   # 0x57fa60
addsd %xmm2, %xmm0
movsd 0x3d983e(%rip), %xmm3   # 0x57fa68
movapd %xmm3, %xmm1
maxsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
mulsd 0x3d982a(%rip), %xmm0   # 0x57fa70
movsd 0x20(%rsp), %xmm4
movapd %xmm4, %xmm2
subsd %xmm0, %xmm2
ucomisd %xmm1, %xmm2
jb 0x1a6264
addsd %xmm1, %xmm0
addsd %xmm3, %xmm1
jmp 0x1a624c
cvttsd2si %xmm2, %rax
movsd 0x3d9807(%rip), %xmm0   # 0x57fa78
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 0x68(%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 0x10(%rsp), %ebp
movl %ebp, %r8d
movl 0xc(%rsp), %r9d
pushq 0x78(%rsp)
callq *0xf0(%rsp)
addq $0x10, %rsp
movq %rax, 0x20(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq 0x28(%rax,%r14), %rdi
movq 0x28(%rax,%r15), %rdx
movq 0x30(%rsp), %rsi
subq $0x8, %rsp
movq %r13, 0x20(%rsp)
movl %r13d, %ecx
movl %ebp, %r8d
movl 0xc(%rsp), %r9d
pushq 0x78(%rsp)
movq 0x48(%rsp), %rbp
callq *(%rbp)
addq $0x10, %rsp
movq %rax, %r14
movq %rax, %rdi
callq 0x1a8332
testl %eax, %eax
je 0x1a6361
movq 0x20(%rsp), %rdi
callq 0x1a74c0
movq %r14, %rdi
callq 0x1a74c0
movq 0x60(%rsp), %r9
incq %r9
jmp 0x1a6800
movq 0x20(%rsp), %r13
movq %r13, %rdi
callq 0x1a8533
movq %rax, %rbp
movq %r14, %rdi
callq 0x1a8533
movq %rax, %r15
movl (%r13), %r10d
movq %r14, 0x50(%rsp)
movl (%r14), %r11d
cmpl %r11d, %r10d
movq 0x10(%rsp), %r14
movq %rbx, %rdx
movq %r12, %rbx
movq %rdx, 0x28(%rsp)
je 0x1a63e1
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rsi
subq $0x8, %rsp
leaq 0x3d980d(%rip), %rdi    # 0x57fbbe
movq %rbx, %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq %r14
callq 0x149040
movq 0x48(%rsp), %rdx
addq $0x20, %rsp
cmpb $0x1, 0x538d5d(%rip)    # 0x6df138
je 0x1a68e1
movq 0x20(%rsp), %r12
movl 0x4(%r12), %r10d
movq 0x50(%rsp), %r14
movl 0x4(%r14), %r11d
cmpl %r11d, %r10d
movq 0x38(%rsp), %r13
je 0x1a643f
movq 0x8(%r13), %rsi
subq $0x8, %rsp
leaq 0x3d97dc(%rip), %rdi    # 0x57fbe9
movq %rbx, %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x28(%rsp)
callq 0x149040
movq 0x48(%rsp), %rdx
addq $0x20, %rsp
cmpb $0x1, 0x538cff(%rip)    # 0x6df138
je 0x1a68e1
movl 0x8(%r12), %r10d
movl 0x8(%r14), %r11d
cmpl %r11d, %r10d
je 0x1a648e
movq 0x8(%r13), %rsi
subq $0x8, %rsp
leaq 0x3d97bc(%rip), %rdi    # 0x57fc18
movq %rbx, %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x28(%rsp)
callq 0x149040
movq 0x48(%rsp), %rdx
addq $0x20, %rsp
cmpb $0x1, 0x538cb0(%rip)    # 0x6df138
je 0x1a68e1
movq 0x18(%rsp), %rsi
imulq 0x30(%rsp), %rsi
testq %rsi, %rsi
movq %rsi, 0x18(%rsp)
je 0x1a64f1
xorl %eax, %eax
movl (%rbp,%rax,4), %ecx
cmpl (%r15,%rax,4), %ecx
jne 0x1a64b9
incq %rax
cmpq %rax, %rsi
jne 0x1a64a5
jmp 0x1a64f1
movq 0x8(%r13), %rsi
subq $0x8, %rsp
leaq 0x3d977d(%rip), %rdi    # 0x57fc45
movq %rbx, %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq 0x18(%rsp)
callq 0x149040
addq $0x10, %rsp
cmpb $0x1, 0x538c4d(%rip)    # 0x6df138
je 0x1a68e1
movq %r14, %rdi
callq 0x1a83d2
testl %eax, %eax
movq %r14, %r12
movq %r13, %rbp
je 0x1a67e9
movq %rbx, 0x30(%rsp)
movq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x1a84c5
movq %rax, 0xd0(%rsp)
movq %r14, %rdi
callq 0x1a84e9
movq %rax, 0xc0(%rsp)
movq %r14, %rdi
callq 0x1a850e
movq %rax, 0xb0(%rsp)
movq %r12, %rdi
callq 0x1a84c5
movq %rax, 0xc8(%rsp)
movq %r12, %rdi
callq 0x1a84e9
movq %rax, 0xb8(%rsp)
movq %r12, %rdi
callq 0x1a850e
movq %rax, 0xa8(%rsp)
movq %r14, %rdi
callq 0x1a856d
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a859d
movq %rax, %r15
movq %r14, %rdi
callq 0x1a85cd
movq %rax, 0xa0(%rsp)
movq %r12, %rdi
callq 0x1a856d
movq %rax, %r14
movq %r12, %rdi
callq 0x1a859d
movq %rax, %r13
movq %r12, %rdi
callq 0x1a85cd
movq %rax, %r12
movq 0x18(%rsp), %rdx
testq %rdx, %rdx
je 0x1a661b
xorl %eax, %eax
movl (%rbx,%rax,4), %ecx
cmpl (%r14,%rax,4), %ecx
jne 0x1a65d7
incq %rax
cmpq %rax, %rdx
jne 0x1a65c4
jmp 0x1a661b
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3d9685(%rip), %rdi    # 0x57fc6b
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq 0x18(%rsp)
callq 0x149040
movq 0x28(%rsp), %rdx
addq $0x10, %rsp
cmpb $0x1, 0x538b23(%rip)    # 0x6df138
je 0x1a68e1
movq 0xd0(%rsp), %r10
movq 0xc8(%rsp), %r11
cmpl %r11d, %r10d
movq 0x28(%rsp), %rbx
movq 0x30(%rsp), %r14
je 0x1a667e
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3d964a(%rip), %rdi    # 0x57fc93
movq %rbx, %rdx
movq %r14, %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x28(%rsp)
callq 0x149040
movq 0x38(%rsp), %rdx
addq $0x20, %rsp
cmpb $0x1, 0x538ac0(%rip)    # 0x6df138
je 0x1a68e1
testq %rdx, %rdx
je 0x1a66da
xorl %eax, %eax
movl (%r15,%rax,4), %ecx
cmpl (%r13,%rax,4), %ecx
jne 0x1a669a
incq %rax
cmpq %rax, %rdx
jne 0x1a6685
jmp 0x1a66da
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3d9617(%rip), %rdi    # 0x57fcc0
movq %rbx, %rdx
movq %r14, %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq 0x18(%rsp)
callq 0x149040
movq 0x28(%rsp), %rdx
addq $0x10, %rsp
cmpb $0x1, 0x538a64(%rip)    # 0x6df138
je 0x1a68e1
movq 0xc0(%rsp), %r10
movq 0xb8(%rsp), %r11
cmpl %r11d, %r10d
je 0x1a6733
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3d95ea(%rip), %rdi    # 0x57fce8
movq %rbx, %rdx
movq %r14, %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq %r11
pushq %r10
pushq 0x28(%rsp)
callq 0x149040
movq 0x38(%rsp), %rdx
addq $0x20, %rsp
cmpb $0x1, 0x538a0b(%rip)    # 0x6df138
je 0x1a68e1
testq %rdx, %rdx
movq 0xb0(%rsp), %r15
movq 0xa8(%rsp), %r13
movq 0xa0(%rsp), %rsi
je 0x1a67a0
xorl %eax, %eax
movl (%rsi,%rax,4), %ecx
cmpl (%r12,%rax,4), %ecx
jne 0x1a6765
incq %rax
cmpq %rax, %rdx
jne 0x1a6752
jmp 0x1a67a0
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3d95a1(%rip), %rdi    # 0x57fd15
movq %rbx, %rdx
movq %r14, %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq 0x18(%rsp)
callq 0x149040
addq $0x10, %rsp
cmpb $0x1, 0x53899e(%rip)    # 0x6df138
je 0x1a68e1
cmpl %r13d, %r15d
movq 0x50(%rsp), %r12
je 0x1a67e9
movq 0x8(%rbp), %rsi
subq $0x8, %rsp
leaq 0x3d9583(%rip), %rdi    # 0x57fd3c
movq %rbx, %rdx
movq %r14, %rcx
movl 0x10(%rsp), %r8d
movl 0xc(%rsp), %r9d
xorl %eax, %eax
pushq %r13
pushq %r15
pushq 0x28(%rsp)
callq 0x149040
addq $0x20, %rsp
cmpb $0x1, 0x538955(%rip)    # 0x6df138
je 0x1a68e1
movq 0x20(%rsp), %rdi
callq 0x1a74c0
movq %r12, %rdi
callq 0x1a74c0
movq 0x60(%rsp), %r9
movq 0x10(%rsp), %r8
movq 0xe8(%rsp), %rax
incq %rax
cmpq 0x58(%rsp), %rax
movq 0xd8(%rsp), %rbx
jne 0x1a61e0
movb 0x53890b(%rip), %al     # 0x6df134
testq %r9, %r9
setne %cl
andb %al, %cl
cmpb $0x1, %cl
movq 0x48(%rsp), %r14
jne 0x1a6868
movq 0x8(%rbp), %rsi
leaq 0x3d9522(%rip), %rdi    # 0x57fd68
movl 0x8(%rsp), %edx
movl 0x4(%rsp), %ecx
xorl %eax, %eax
callq 0x149040
movb 0x5388d9(%rip), %al     # 0x6df134
jmp 0x1a6868
movb 0x5388d1(%rip), %al     # 0x6df134
movq 0x48(%rsp), %r14
incq %r14
leaq (%r14,%r14,8), %rcx
leaq (%rbx,%rcx,8), %r12
cmpq $0x0, (%r12)
movl %eax, %ecx
movl %eax, %edx
movq 0x98(%rsp), %r15
jne 0x1a61ae
cmpb $0x0, 0xf(%rsp)
jne 0x1a68b1
leaq 0x518878(%rip), %rsi    # 0x6bf110
leaq (%rsi,%r15,8), %rdi
addq $0x8, %rdi
incq %r15
movl (%rdi), %esi
movl %esi, %r8d
negl %r8d
jno 0x1a612e
movq 0x78(%rsp), %rdx
movq 0x80(%rsp), %rsi
movq 0x8(%rdx,%rsi,8), %rdx
incq %rsi
testq %rdx, %rdx
jne 0x1a60d9
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %edi
callq 0x149170
nop