// File: /workspace/github_c_makefile_star2_O1/nh13[P]ksw/src/parasail/src/sg_trace_scan.c
// Function: parasail_sg_flags_trace_scan
parasail_result_t* FNAME(
        const char * const restrict _s1, const int _s1Len,
        const char * const restrict _s2, const int s2Len,
        const int open, const int gap, const parasail_matrix_t *matrix,
        int s1_beg, int s1_end, int s2_beg, int s2_end)
{
    /* declare local variables */
    parasail_result_t *result = NULL;
    int * restrict s1 = NULL;
    int * restrict s2 = NULL;
    int * restrict HB = NULL;
    int * restrict H = NULL;
    int * restrict E = NULL;
    int * restrict HtB = NULL;
    int * restrict Ht = NULL;
    int8_t * restrict HT = NULL;
    int * restrict Ex = NULL;
    int i = 0;
    int j = 0;
    int s1Len = 0;
    int score = 0;
    int end_query = 0;
    int end_ref = 0;

    /* validate inputs */
    PARASAIL_CHECK_NULL(_s2);
    PARASAIL_CHECK_GT0(s2Len);
    PARASAIL_CHECK_GE0(open);
    PARASAIL_CHECK_GE0(gap);
    PARASAIL_CHECK_NULL(matrix);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        PARASAIL_CHECK_NULL(_s1);
        PARASAIL_CHECK_GT0(_s1Len);
    }

    /* initialize stack variables */
    i = 0;
    j = 0;
    s1Len = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ? _s1Len : matrix->length;
    score = NEG_INF_32;
    end_query = s1Len;
    end_ref = s2Len;

    /* initialize result */
    result = parasail_result_new_trace(s1Len, s2Len, 16, sizeof(int8_t));
    if (!result) return NULL;

    /* set known flags */
    result->flag |= PARASAIL_FLAG_SG | PARASAIL_FLAG_NOVEC_SCAN
        | PARASAIL_FLAG_TRACE
        | PARASAIL_FLAG_BITS_INT | PARASAIL_FLAG_LANES_1;
    result->flag |= s1_beg ? PARASAIL_FLAG_SG_S1_BEG : 0;
    result->flag |= s1_end ? PARASAIL_FLAG_SG_S1_END : 0;
    result->flag |= s2_beg ? PARASAIL_FLAG_SG_S2_BEG : 0;
    result->flag |= s2_end ? PARASAIL_FLAG_SG_S2_END : 0;

    /* initialize heap variables */
    s2 = parasail_memalign_int(16, s2Len);
    HB = parasail_memalign_int(16, s1Len+1);
    H  = HB+1;
    E  = parasail_memalign_int(16, s1Len);
    HtB= parasail_memalign_int(16, s1Len+1);
    Ht = HtB+1;
    Ex = parasail_memalign_int(16, s1Len);
    HT = (int8_t* restrict)result->trace->trace_table;

    /* validate heap variables */
    if (!s2) return NULL;
    if (!HB) return NULL;
    if (!E) return NULL;
    if (!HtB) return NULL;
    if (!Ex) return NULL;

    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        s1 = parasail_memalign_int(16, s1Len);
        if (!s1) return NULL;
        for (i=0; i<s1Len; ++i) {
            s1[i] = matrix->mapper[(unsigned char)_s1[i]];
        }
    }
    for (j=0; j<s2Len; ++j) {
        s2[j] = matrix->mapper[(unsigned char)_s2[j]];
    }

    /* initialize H */
    H[-1] = 0;
    Ht[-1] = 0;
    if (s1_beg) {
        for (i=0; i<s1Len; ++i) {
            H[i] = 0;
        }
    }
    else {
        for (i=0; i<s1Len; ++i) {
            H[i] = -open -i*gap;
        }
    }

    /* initialize E */
    for (i=0; i<s1Len; ++i) {
        E[i] = NEG_INF_32;
    }

    /* iterate over database */
    for (j=0; j<s2Len-1; ++j) {
        int Ft = NEG_INF_32;
        /* calculate E */
        for (i=0; i<s1Len; ++i) {
            int E_opn = H[i]-open;
            int E_ext = E[i]-gap;
            E[i] = MAX(E_ext, E_opn);
            HT[1LL*i*s2Len + j] = (E_opn > E_ext) ? PARASAIL_DIAG_E
                                                  : PARASAIL_INS_E;
        }
        /* calculate Ht */
        Ht[-1] = s2_beg ? 0 : (-open -j*gap);
        for (i=0; i<s1Len; ++i) {
            int matval = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ?
                         matrix->matrix[matrix->size*s1[i]+s2[j]] :
                         matrix->matrix[matrix->size*i+s2[j]];
            int H_dag = H[i-1]+matval;
            Ht[i] = MAX(H_dag, E[i]);
            Ex[i] = (E[i] > H_dag);
        }
        /* calculate H */
        for (i=0; i<s1Len; ++i) {
            int Ft_opn;
            int Ht_pre = Ht[i-1];
            int Ft_ext = Ft-gap;
            if (Ht_pre >= Ft_ext) {
                Ft = Ht_pre;
            }
            else {
                Ft = Ft_ext;
            }
            Ft_opn = Ft-open;
            if (H[i-1] > Ft_ext) {
                HT[1LL*i*s2Len + j] |= PARASAIL_DIAG_F;
            }
            else {
                HT[1LL*i*s2Len + j] |= PARASAIL_DEL_F;
            }
            if (Ht[i] > Ft_opn) {
                H[i] = Ht[i];
                HT[1LL*i*s2Len + j] |= Ex[i] ? PARASAIL_INS : PARASAIL_DIAG;
            }
            else {
                H[i] = Ft_opn;
                if (Ht[i] == Ft_opn) {
                    if (Ex[i]) {
                        HT[1LL*i*s2Len + j] |= PARASAIL_DEL;
                    }
                    else {
                        HT[1LL*i*s2Len + j] |= PARASAIL_DIAG;
                    }
                }
                else {
                    HT[1LL*i*s2Len + j] |= PARASAIL_DEL;
                }
            }
        }
        H[-1] = s2_beg ? 0 : (-open - j*gap);
        if (s2_end && H[s1Len-1] > score) {
            score = H[s1Len-1];
            end_query = s1Len-1;
            end_ref = j;
        }
    }
    j = s2Len - 1;
    {
        int Ft = NEG_INF_32;
        /* calculate E */
        for (i=0; i<s1Len; ++i) {
            int E_opn = H[i]-open;
            int E_ext = E[i]-gap;
            E[i] = MAX(E_ext, E_opn);
            HT[1LL*i*s2Len + j] = (E_opn > E_ext) ? PARASAIL_DIAG_E
                                                  : PARASAIL_INS_E;
        }
        /* calculate Ht */
        Ht[-1] = s2_beg ? 0 : (-open -j*gap);
        for (i=0; i<s1Len; ++i) {
            int matval = matrix->type == PARASAIL_MATRIX_TYPE_SQUARE ?
                         matrix->matrix[matrix->size*s1[i]+s2[j]] :
                         matrix->matrix[matrix->size*i+s2[j]];
            int H_dag = H[i-1]+matval;
            Ht[i] = MAX(H_dag, E[i]);
            Ex[i] = (E[i] > H_dag);
        }
        /* calculate H */
        for (i=0; i<s1Len; ++i) {
            int Ft_opn;
            int Ht_pre = Ht[i-1];
            int Ft_ext = Ft-gap;
            if (Ht_pre >= Ft_ext) {
                Ft = Ht_pre;
            }
            else {
                Ft = Ft_ext;
            }
            Ft_opn = Ft-open;
            if (H[i-1] > Ft_ext) {
                HT[1LL*i*s2Len + j] |= PARASAIL_DIAG_F;
            }
            else {
                HT[1LL*i*s2Len + j] |= PARASAIL_DEL_F;
            }
            if (Ht[i] > Ft_opn) {
                H[i] = Ht[i];
                HT[1LL*i*s2Len + j] |= Ex[i] ? PARASAIL_INS : PARASAIL_DIAG;
            }
            else {
                H[i] = Ft_opn;
                if (Ht[i] == Ft_opn) {
                    if (Ex[i]) {
                        HT[1LL*i*s2Len + j] |= PARASAIL_DEL;
                    }
                    else {
                        HT[1LL*i*s2Len + j] |= PARASAIL_DIAG;
                    }
                }
                else {
                    HT[1LL*i*s2Len + j] |= PARASAIL_DEL;
                }
            }
            if (s1_end && H[i] > score) {
                score = H[i];
                end_query = i;
                end_ref = j;
            }
        }
    }
    if (s2_end && H[s1Len-1] > score) {
        score = H[s1Len-1];
        end_query = s1Len-1;
        end_ref = s2Len-1;
    }
    if (!s1_end && !s2_end) {
        score = H[s1Len-1];
        end_query = s1Len-1;
        end_ref = s2Len-1;
    }

    result->score = score;
    result->end_query = end_query;
    result->end_ref = end_ref;

    parasail_free(Ex);
    parasail_free(HtB);
    parasail_free(E);
    parasail_free(HB);
    parasail_free(s2);
    if (matrix->type == PARASAIL_MATRIX_TYPE_SQUARE) {
        parasail_free(s1);
    }

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r8d, 0xc(%rsp)
testq %rdx, %rdx
je 0x2aa767
movl %r9d, %ebp
movl %ecx, %r9d
testl %ecx, %ecx
jle 0x2aa76e
cmpl $0x0, 0xc(%rsp)
js 0x2aa775
testl %ebp, %ebp
js 0x2aa77c
movq 0xb0(%rsp), %rcx
testq %rcx, %rcx
je 0x2aa783
movq %rdx, %r15
movl 0x30(%rcx), %eax
testl %eax, %eax
jne 0x2aa08c
testq %rdi, %rdi
je 0x2aa799
movl %esi, %r8d
testl %esi, %esi
jle 0x2aa7a0
testl %eax, %eax
je 0x2aa090
movl 0x34(%rcx), %r8d
movq %rdi, 0x28(%rsp)
movl $0x10, %edx
movl $0x1, %ecx
movl %r8d, %edi
movl %r9d, %esi
movq %r8, %r14
movq %r9, %rbx
callq 0x2097d1
testq %rax, %rax
je 0x2aa7a5
movq %r15, 0x60(%rsp)
movl 0xd0(%rsp), %edi
xorl %r8d, %r8d
cmpl $0x0, 0xb8(%rsp)
setne %r8b
xorl %ecx, %ecx
cmpl $0x0, 0xc0(%rsp)
setne %cl
shll $0x4, %ecx
xorl %edx, %edx
cmpl $0x0, 0xc8(%rsp)
setne %dl
shll $0xe, %edx
xorl %esi, %esi
movl %edi, 0x68(%rsp)
testl %edi, %edi
setne %sil
shll $0xf, %esi
leal (%rcx,%r8,8), %ecx
orl %edx, %ecx
orl %esi, %ecx
orl 0xc(%rax), %ecx
orl $0x1480202, %ecx        # imm = 0x1480202
movq %rax, 0x58(%rsp)
movl %ecx, 0xc(%rax)
movq %rbx, 0x30(%rsp)
movl %ebx, %r13d
movl $0x10, %edi
movq %r13, %rsi
callq 0x2094bf
movq %rax, 0x38(%rsp)
leal 0x1(%r14), %eax
movslq %eax, %rbx
movl $0x10, %edi
movq %rbx, %rsi
callq 0x2094bf
movq %rax, %r15
movq %r14, 0x18(%rsp)
movslq %r14d, %r12
movl $0x10, %edi
movq %r12, %rsi
callq 0x2094bf
movq %rax, %r14
movl $0x10, %edi
movq %rbx, %rsi
callq 0x2094bf
movq %rax, %rbx
movl $0x10, %edi
movq %r12, 0x50(%rsp)
movq %r12, %rsi
callq 0x2094bf
movq 0x38(%rsp), %r11
movq %rax, 0x20(%rsp)
xorl %eax, %eax
testq %r11, %r11
je 0x2aa7a7
testq %r15, %r15
je 0x2aa7a7
testq %r14, %r14
je 0x2aa7a7
testq %rbx, %rbx
je 0x2aa7a7
cmpq $0x0, 0x20(%rsp)
je 0x2aa7a7
movq 0x58(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movq %rax, 0x48(%rsp)
movq 0xb0(%rsp), %r10
cmpl $0x0, 0x30(%r10)
movq 0x18(%rsp), %rax
movl %eax, %r12d
je 0x2aa287
movq $0x0, 0x40(%rsp)
movq 0x30(%rsp), %r8
movl 0xc(%rsp), %r9d
movq %r15, 0x28(%rsp)
addq $0x4, %r15
movq 0x10(%r10), %rax
cmpl $0x2, %r8d
movl $0x1, %ecx
cmovgel %r8d, %ecx
xorl %edx, %edx
movq 0x60(%rsp), %rdi
movzbl (%rdi,%rdx), %esi
movl (%rax,%rsi,4), %esi
movl %esi, (%r11,%rdx,4)
incq %rdx
cmpq %rdx, %rcx
jne 0x2aa223
xorl %eax, %eax
movq 0x28(%rsp), %rcx
movl %eax, (%rcx)
movl %eax, (%rbx)
cmpl $0x0, 0xb8(%rsp)
je 0x2aa2e8
movq 0x18(%rsp), %rdi
testl %edi, %edi
jle 0x2aa306
leaq (,%r12,4), %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x19e090
movl 0xc(%rsp), %r9d
movq 0x30(%rsp), %r8
movq 0x18(%rsp), %rdi
movq 0xb0(%rsp), %r10
jmp 0x2aa306
movl $0x10, %edi
movq 0x50(%rsp), %rsi
callq 0x2094bf
testq %rax, %rax
je 0x2aa7a5
cmpl $0x0, 0x18(%rsp)
movl 0xc(%rsp), %r9d
movq %rax, 0x40(%rsp)
movq 0xb0(%rsp), %r10
jle 0x2aa78a
movq 0x10(%r10), %rsi
xorl %ecx, %ecx
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r11
movq 0x28(%rsp), %rdi
movzbl (%rdi,%rcx), %edx
movl (%rsi,%rdx,4), %edx
movl %edx, (%rax,%rcx,4)
incq %rcx
cmpq %rcx, %r12
jne 0x2aa2d1
jmp 0x2aa202
movq 0x18(%rsp), %rdi
testl %edi, %edi
jle 0x2aa306
movl %r9d, %eax
negl %eax
xorl %ecx, %ecx
movl %eax, (%r15,%rcx,4)
incq %rcx
subl %ebp, %eax
cmpq %rcx, %r12
jne 0x2aa2f8
testl %edi, %edi
jle 0x2aa31c
xorl %eax, %eax
movl $0xc0000000, (%r14,%rax,4) # imm = 0xC0000000
incq %rax
cmpq %rax, %r12
jne 0x2aa30c
leal -0x1(%r8), %eax
movl $0xc0000000, %ecx       # imm = 0xC0000000
cmpl $0x1, %r8d
movl %eax, 0x10(%rsp)
jne 0x2aa338
movl %edi, 0x14(%rsp)
jmp 0x2aa527
leal -0x1(%rdi), %ecx
movl %ecx, 0x6c(%rsp)
movslq %ecx, %rcx
movq %rcx, 0x70(%rsp)
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
movq %rcx, 0x60(%rsp)
movl $0xc0000000, %ecx       # imm = 0xC0000000
movq 0x48(%rsp), %rsi
xorl %r11d, %r11d
movl %edi, 0x14(%rsp)
cmpl $0x0, 0x18(%rsp)
jle 0x2aa3a7
movq %rsi, %rax
xorl %edx, %edx
movl (%r15,%rdx,4), %edi
subl %r9d, %edi
movl (%r14,%rdx,4), %r8d
subl %ebp, %r8d
cmpl %edi, %r8d
cmovlel %edi, %r8d
movl %r8d, (%r14,%rdx,4)
setge %dil
shlb $0x3, %dil
addb $0x8, %dil
movb %dil, (%rax)
incq %rdx
addq %r13, %rax
cmpq %rdx, %r12
jne 0x2aa374
movl %r11d, %eax
imull %ebp, %eax
addl %r9d, %eax
negl %eax
cmpl $0x0, 0xc8(%rsp)
movl $0x0, %edx
cmovnel %edx, %eax
movl %eax, (%rbx)
cmpl $0x0, 0x18(%rsp)
jle 0x2aa438
movq 0x8(%r10), %rdx
xorl %r9d, %r9d
cmpl $0x0, 0x30(%r10)
je 0x2aa3e3
movl 0x18(%r10), %edi
imull %r9d, %edi
jmp 0x2aa3f1
movq 0x40(%rsp), %rdi
movl (%rdi,%r9,4), %edi
imull 0x18(%r10), %edi
movq 0x38(%rsp), %r8
movslq (%r8,%r11,4), %r8
movslq %edi, %rdi
addq %r8, %rdi
movq 0x28(%rsp), %r8
movl (%r8,%r9,4), %r8d
addl (%rdx,%rdi,4), %r8d
movl (%r14,%r9,4), %edi
cmpl %edi, %r8d
cmovgl %r8d, %edi
movl %edi, 0x4(%rbx,%r9,4)
xorl %edi, %edi
cmpl %r8d, (%r14,%r9,4)
setg %dil
movq 0x20(%rsp), %r8
movl %edi, (%r8,%r9,4)
incq %r9
cmpq %r9, %r12
jne 0x2aa3d2
cmpl $0x0, 0x18(%rsp)
jle 0x2aa4d2
movl $0xc0000000, %edi       # imm = 0xC0000000
movq %rsi, %r10
xorl %edx, %edx
movl %edi, %r8d
movl (%rbx,%rdx,4), %edi
subl %ebp, %r8d
cmpl %r8d, %edi
cmovlel %r8d, %edi
movl %edi, %r9d
subl 0xc(%rsp), %r9d
cmpl %r8d, -0x4(%r15,%rdx,4)
setle %r8b
shlb $0x5, %r8b
addb $0x20, %r8b
orb %r8b, (%r10)
movl 0x4(%rbx,%rdx,4), %r8d
cmpl %r9d, %r8d
jle 0x2aa4a4
movl %r8d, (%r15,%rdx,4)
xorl %r8d, %r8d
movq 0x20(%rsp), %r9
cmpl $0x0, (%r9,%rdx,4)
sete %r8b
leal (%r8,%r8,2), %r8d
incl %r8d
orb %r8b, (%r10)
jmp 0x2aa4bf
movl %r9d, (%r15,%rdx,4)
cmpl %r9d, 0x4(%rbx,%rdx,4)
jne 0x2aa4bb
movq 0x20(%rsp), %r8
cmpl $0x0, (%r8,%rdx,4)
je 0x2aa4cc
orb $0x2, (%r10)
incq %rdx
addq %r13, %r10
cmpq %rdx, %r12
jne 0x2aa44d
jmp 0x2aa4d2
orb $0x4, (%r10)
jmp 0x2aa4bf
movq 0x28(%rsp), %rdx
movl %eax, (%rdx)
cmpl $0x0, 0xd0(%rsp)
je 0x2aa509
movq 0x70(%rsp), %rax
movl (%r15,%rax,4), %eax
cmpl %ecx, %eax
movl 0xc(%rsp), %r9d
jle 0x2aa50e
movl %eax, %ecx
movl 0x6c(%rsp), %eax
movl %eax, 0x14(%rsp)
movl %r11d, %eax
movq %rax, 0x30(%rsp)
jmp 0x2aa50e
movl 0xc(%rsp), %r9d
incq %r11
incq %rsi
cmpq 0x60(%rsp), %r11
movq 0xb0(%rsp), %r10
jne 0x2aa368
movl 0x10(%rsp), %eax
movl %r9d, %r11d
movq 0x18(%rsp), %r9
testl %r9d, %r9d
jle 0x2aa575
movq 0x48(%rsp), %rdx
addq %rax, %rdx
xorl %esi, %esi
movl (%r15,%rsi,4), %edi
subl %r11d, %edi
movl (%r14,%rsi,4), %r8d
subl %ebp, %r8d
cmpl %edi, %r8d
cmovlel %edi, %r8d
movl %r8d, (%r14,%rsi,4)
setge %dil
shlb $0x3, %dil
addb $0x8, %dil
movb %dil, (%rdx)
incq %rsi
addq %r13, %rdx
cmpq %rsi, %r12
jne 0x2aa542
movl 0x10(%rsp), %edx
imull %ebp, %edx
addl %r11d, %edx
negl %edx
xorl %esi, %esi
cmpl $0x0, 0xc8(%rsp)
cmovel %edx, %esi
movl %esi, (%rbx)
testl %r9d, %r9d
movq 0x30(%rsp), %r11
jle 0x2aa603
movq 0x8(%r10), %rdx
xorl %esi, %esi
cmpl $0x0, 0x30(%r10)
je 0x2aa5b0
movl 0x18(%r10), %edi
imull %esi, %edi
jmp 0x2aa5bd
movq 0x40(%rsp), %rdi
movl (%rdi,%rsi,4), %edi
imull 0x18(%r10), %edi
movq 0x38(%rsp), %r8
movslq (%r8,%rax,4), %r8
movslq %edi, %rdi
addq %r8, %rdi
movq 0x28(%rsp), %r8
movl (%r8,%rsi,4), %r8d
addl (%rdx,%rdi,4), %r8d
movl (%r14,%rsi,4), %edi
cmpl %edi, %r8d
cmovgl %r8d, %edi
movl %edi, 0x4(%rbx,%rsi,4)
xorl %edi, %edi
cmpl %r8d, (%r14,%rsi,4)
setg %dil
movq 0x20(%rsp), %r8
movl %edi, (%r8,%rsi,4)
incq %rsi
cmpq %rsi, %r12
jne 0x2aa5a0
testl %r9d, %r9d
movl 0xc0(%rsp), %r8d
jle 0x2aa6b7
movq 0x48(%rsp), %r10
addq %rax, %r10
movl $0xc0000000, %esi       # imm = 0xC0000000
xorl %eax, %eax
movl %esi, %edi
movl (%rbx,%rax,4), %esi
subl %ebp, %edi
cmpl %edi, %esi
cmovlel %edi, %esi
movl %esi, %edx
subl 0xc(%rsp), %edx
cmpl %edi, -0x4(%r15,%rax,4)
setle %dil
shlb $0x5, %dil
addb $0x20, %dil
orb %dil, (%r10)
movl 0x4(%rbx,%rax,4), %edi
cmpl %edx, %edi
jle 0x2aa66d
movl %edi, (%r15,%rax,4)
xorl %edx, %edx
movq 0x20(%rsp), %rdi
cmpl $0x0, (%rdi,%rax,4)
sete %dl
leal (%rdx,%rdx,2), %edx
incl %edx
orb %dl, (%r10)
jmp 0x2aa686
movl %edx, (%r15,%rax,4)
cmpl %edx, 0x4(%rbx,%rax,4)
jne 0x2aa682
movq 0x20(%rsp), %rdx
cmpl $0x0, (%rdx,%rax,4)
je 0x2aa6b1
orb $0x2, (%r10)
testl %r8d, %r8d
je 0x2aa6a0
movl (%r15,%rax,4), %edx
cmpl %ecx, %edx
jle 0x2aa6a0
movl %edx, %ecx
movl %eax, 0x14(%rsp)
movl 0x10(%rsp), %edx
movl %edx, %r11d
incq %rax
addq %r13, %r10
cmpq %rax, %r12
jne 0x2aa623
jmp 0x2aa6b7
orb $0x4, (%r10)
jmp 0x2aa686
cmpl $0x0, 0xd0(%rsp)
je 0x2aa6e7
movq 0x50(%rsp), %rax
movl -0x4(%r15,%rax,4), %eax
cmpl %ecx, %eax
movq 0x58(%rsp), %r12
movl 0x14(%rsp), %edx
jle 0x2aa6f0
leal -0x1(%r9), %edx
movl %eax, %ecx
movl 0x10(%rsp), %eax
movl %eax, %r11d
jmp 0x2aa6f0
movq 0x58(%rsp), %r12
movl 0x14(%rsp), %edx
orl %r8d, 0x68(%rsp)
jne 0x2aa70e
decl %r9d
movq 0x50(%rsp), %rax
movl -0x4(%r15,%rax,4), %ecx
movl %r9d, %edx
movl 0x10(%rsp), %eax
movl %eax, %r11d
movl %ecx, (%r12)
movl %edx, 0x4(%r12)
movl %r11d, 0x8(%r12)
movq 0x20(%rsp), %rdi
callq 0x2094b5
movq %rbx, %rdi
callq 0x2094b5
movq %r14, %rdi
callq 0x2094b5
movq 0x28(%rsp), %rdi
callq 0x2094b5
movq 0x38(%rsp), %rdi
callq 0x2094b5
movq 0xb0(%rsp), %rax
cmpl $0x0, 0x30(%rax)
jne 0x2aa762
movq 0x40(%rsp), %rdi
callq 0x2094b5
movq %r12, %rax
jmp 0x2aa7a7
callq 0x1a2345
jmp 0x2aa7a5
callq 0x1a231f
jmp 0x2aa7a5
callq 0x1a22f9
jmp 0x2aa7a5
callq 0x1a22d3
jmp 0x2aa7a5
callq 0x1a22ad
jmp 0x2aa7a5
movq 0x30(%rsp), %r8
movq 0x38(%rsp), %r11
jmp 0x2aa202
callq 0x1a2287
jmp 0x2aa7a5
callq 0x1a2261
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq