// File: /workspace/github_cpp_makefile_star2_O1/VanAndelInstitute[P]intent/src/edlib.cpp
// Function: edlibAlign
EdlibAlignResult edlibAlign(const char* const queryOriginal, const int queryLength,
                                       const char* const targetOriginal, const int targetLength,
                                       const EdlibAlignConfig config) {
    EdlibAlignResult result;
    result.status = EDLIB_STATUS_OK;
    result.editDistance = -1;
    result.endLocations = result.startLocations = NULL;
    result.numLocations = 0;
    result.alignment = NULL;
    result.alignmentLength = 0;
    result.alphabetLength = 0;

    /*------------ TRANSFORM SEQUENCES AND RECOGNIZE ALPHABET -----------*/
    unsigned char* query, * target;
    string alphabet = transformSequences(queryOriginal, queryLength, targetOriginal, targetLength,
                                         &query, &target);
    result.alphabetLength = static_cast<int>(alphabet.size());
    /*-------------------------------------------------------*/

    // Handle special situation when at least one of the sequences has length 0.
    if (queryLength == 0 || targetLength == 0) {
        if (config.mode == EDLIB_MODE_NW) {
            result.editDistance = std::max(queryLength, targetLength);
            result.endLocations = static_cast<int *>(malloc(sizeof(int) * 1));
            result.endLocations[0] = targetLength - 1;
            result.numLocations = 1;
        } else if (config.mode == EDLIB_MODE_SHW || config.mode == EDLIB_MODE_HW) {
            result.editDistance = queryLength;
            result.endLocations = static_cast<int *>(malloc(sizeof(int) * 1));
            result.endLocations[0] = -1;
            result.numLocations = 1;
        } else {
            result.status = EDLIB_STATUS_ERROR;
        }

        free(query);
        free(target);
        return result;
    }

    /*--------------------- INITIALIZATION ------------------*/
    int maxNumBlocks = ceilDiv(queryLength, WORD_SIZE); // bmax in Myers
    int W = maxNumBlocks * WORD_SIZE - queryLength; // number of redundant cells in last level blocks
    EqualityDefinition equalityDefinition(alphabet, config.additionalEqualities, config.additionalEqualitiesLength);
    Word* Peq = buildPeq(static_cast<int>(alphabet.size()), query, queryLength, equalityDefinition);
    /*-------------------------------------------------------*/

    /*------------------ MAIN CALCULATION -------------------*/
    // TODO: Store alignment data only after k is determined? That could make things faster.
    int positionNW; // Used only when mode is NW.
    AlignmentData* alignData = NULL;
    bool dynamicK = false;
    int k = config.k;
    if (k < 0) { // If valid k is not given, auto-adjust k until solution is found.
        dynamicK = true;
        k = WORD_SIZE; // Gives better results than smaller k.
    }

    do {
        if (config.mode == EDLIB_MODE_HW || config.mode == EDLIB_MODE_SHW) {
            myersCalcEditDistanceSemiGlobal(Peq, W, maxNumBlocks,
                                            queryLength, target, targetLength,
                                            k, config.mode, &(result.editDistance),
                                            &(result.endLocations), &(result.numLocations));
        } else {  // mode == EDLIB_MODE_NW
            myersCalcEditDistanceNW(Peq, W, maxNumBlocks,
                                    queryLength, target, targetLength,
                                    k, &(result.editDistance), &positionNW,
                                    false, &alignData, -1);
        }
        k *= 2;
    } while(dynamicK && result.editDistance == -1);

    if (result.editDistance >= 0) {  // If there is solution.
        // If NW mode, set end location explicitly.
        if (config.mode == EDLIB_MODE_NW) {
            result.endLocations = static_cast<int *>(malloc(sizeof(int) * 1));
            result.endLocations[0] = targetLength - 1;
            result.numLocations = 1;
        }

        // Find starting locations.
        if (config.task == EDLIB_TASK_LOC || config.task == EDLIB_TASK_PATH) {
            result.startLocations = static_cast<int *>(malloc(result.numLocations * sizeof(int)));
            if (config.mode == EDLIB_MODE_HW) {  // If HW, I need to calculate start locations.
                const unsigned char* rTarget = createReverseCopy(target, targetLength);
                const unsigned char* rQuery  = createReverseCopy(query, queryLength);
                // Peq for reversed query.
                Word* rPeq = buildPeq(static_cast<int>(alphabet.size()), rQuery, queryLength, equalityDefinition);
                for (int i = 0; i < result.numLocations; i++) {
                    int endLocation = result.endLocations[i];
                    if (endLocation == -1) {
                        // NOTE: Sometimes one of optimal solutions is that query starts before target, like this:
                        //                       AAGG <- target
                        //                   CCTT     <- query
                        //   It will never be only optimal solution and it does not happen often, however it is
                        //   possible and in that case end location will be -1. What should we do with that?
                        //   Should we just skip reporting such end location, although it is a solution?
                        //   If we do report it, what is the start location? -4? -1? Nothing?
                        // TODO: Figure this out. This has to do in general with how we think about start
                        //   and end locations.
                        //   Also, we have alignment later relying on this locations to limit the space of it's
                        //   search -> how can it do it right if these locations are negative or incorrect?
                        result.startLocations[i] = 0;  // I put 0 for now, but it does not make much sense.
                    } else {
                        int bestScoreSHW, numPositionsSHW;
                        int* positionsSHW;
                        myersCalcEditDistanceSemiGlobal(
                                rPeq, W, maxNumBlocks,
                                queryLength, rTarget + targetLength - endLocation - 1, endLocation + 1,
                                result.editDistance, EDLIB_MODE_SHW,
                                &bestScoreSHW, &positionsSHW, &numPositionsSHW);
                        // Taking last location as start ensures that alignment will not start with insertions
                        // if it can start with mismatches instead.
                        result.startLocations[i] = endLocation - positionsSHW[numPositionsSHW - 1];
                        free(positionsSHW);
                    }
                }
                delete[] rTarget;
                delete[] rQuery;
                delete[] rPeq;
            } else {  // If mode is SHW or NW
                for (int i = 0; i < result.numLocations; i++) {
                    result.startLocations[i] = 0;
                }
            }
        }

        // Find alignment -> all comes down to finding alignment for NW.
        // Currently we return alignment only for first pair of locations.
        if (config.task == EDLIB_TASK_PATH) {
            int alnStartLocation = result.startLocations[0];
            int alnEndLocation = result.endLocations[0];
            const unsigned char* alnTarget = target + alnStartLocation;
            const int alnTargetLength = alnEndLocation - alnStartLocation + 1;
            const unsigned char* rAlnTarget = createReverseCopy(alnTarget, alnTargetLength);
            const unsigned char* rQuery  = createReverseCopy(query, queryLength);
            obtainAlignment(query, rQuery, queryLength,
                            alnTarget, rAlnTarget, alnTargetLength,
                            equalityDefinition, static_cast<int>(alphabet.size()), result.editDistance,
                            &(result.alignment), &(result.alignmentLength));
            delete[] rAlnTarget;
            delete[] rQuery;
        }
    }
    /*-------------------------------------------------------*/

    //--- Free memory ---//
    delete[] Peq;
    free(query);
    free(target);
    if (alignData) delete alignData;
    //-------------------//

    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x101c8, %rsp          # imm = 0x101C8
movl %r8d, %ebx
movq %rcx, 0x48(%rsp)
movq %rsi, %rbp
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movl $0x0, 0x18(%rdi)
movq %rdi, 0x38(%rsp)
movups %xmm0, 0x20(%rdi)
movq %rdx, 0x10(%rsp)
movslq %edx, %r13
movq %r13, %rdi
callq 0x6530
movq %rax, %r15
movq %rbx, 0x8(%rsp)
movslq %ebx, %rdi
movq %rdi, 0x90(%rsp)
callq 0x6530
movq %rax, 0x28(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0xc0(%rsp), %rdi
movl $0x100, %edx            # imm = 0x100
xorl %esi, %esi
callq 0x6240
testl %r13d, %r13d
jle 0x2a64d
movl 0x10(%rsp), %r12d
xorl %r14d, %r14d
movzbl (%rbp,%r14), %ebx
cmpb $0x0, 0xc0(%rsp,%rbx)
jne 0x2a63a
movb $0x1, 0xc0(%rsp,%rbx)
movb 0x60(%rsp), %al
movb %al, 0x1c0(%rsp,%rbx)
movsbl %bl, %esi
leaq 0x58(%rsp), %rdi
callq 0x6340
movb 0x1c0(%rsp,%rbx), %al
movb %al, (%r15,%r14)
incq %r14
cmpq %r14, %r12
jne 0x2a60a
cmpl $0x0, 0x8(%rsp)
jle 0x2a6a8
movl 0x8(%rsp), %r12d
xorl %ebp, %ebp
leaq 0x58(%rsp), %r14
movq 0x48(%rsp), %rax
movzbl (%rax,%rbp), %ebx
cmpb $0x0, 0xc0(%rsp,%rbx)
jne 0x2a691
movb $0x1, 0xc0(%rsp,%rbx)
movb 0x60(%rsp), %al
movb %al, 0x1c0(%rsp,%rbx)
movsbl %bl, %esi
movq %r14, %rdi
callq 0x6340
movb 0x1c0(%rsp,%rbx), %al
movq 0x28(%rsp), %rcx
movb %al, (%rcx,%rbp)
incq %rbp
cmpq %rbp, %r12
jne 0x2a660
leaq 0x10200(%rsp), %rsi
movq 0x38(%rsp), %rcx
leaq 0x4(%rcx), %rdi
leaq 0x8(%rcx), %rax
movq %rax, 0x50(%rsp)
leaq 0x18(%rcx), %rax
movq %rax, 0x30(%rsp)
movl 0x60(%rsp), %eax
movl %eax, 0x2c(%rcx)
movq 0x10(%rsp), %rdx
testl %edx, %edx
setne %al
movq 0x8(%rsp), %rbx
testl %ebx, %ebx
setne %cl
testb %cl, %al
jne 0x2a726
movl 0x4(%rsi), %ecx
testl %ecx, %ecx
je 0x2a73f
movq 0x38(%rsp), %rax
cmpl $0x2, %ecx
leaq 0x68(%rsp), %rbx
ja 0x2a766
movq 0x10(%rsp), %rax
movl %eax, (%rdi)
movl $0x4, %edi
callq 0x6530
movq 0x50(%rsp), %rcx
movq %rax, (%rcx)
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq 0x30(%rsp), %rax
jmp 0x2a766
testb $0x3f, %dl
movq %rdi, 0x20(%rsp)
je 0x2a783
leal 0x3f(%rdx), %eax
testl %edx, %edx
cmovnsl %edx, %eax
sarl $0x6, %eax
incl %eax
jmp 0x2a788
cmpl %ebx, %edx
cmovlel %ebx, %edx
movl %edx, (%rdi)
movl $0x4, %edi
callq 0x6530
movq 0x50(%rsp), %rcx
movq %rax, (%rcx)
decl %ebx
movl %ebx, (%rax)
movq 0x30(%rsp), %rax
leaq 0x68(%rsp), %rbx
movl $0x1, (%rax)
movq %r15, %rdi
callq 0x64b0
movq 0x28(%rsp), %rdi
callq 0x64b0
jmp 0x2adbe
movl %edx, %eax
sarl $0x6, %eax
movl %eax, 0x18(%rsp)
movq %rdx, %r12
movq 0x10(%rsi), %rdx
movl 0x18(%rsi), %ecx
leaq 0x1c0(%rsp), %rdi
leaq 0x58(%rsp), %rbx
movq %rbx, %rsi
callq 0x2d67e
movl 0x8(%rbx), %r14d
testb $0x3f, %r12b
je 0x2a7c8
leal 0x3f(%r12), %ebx
testl %r12d, %r12d
cmovnsl %r12d, %ebx
sarl $0x6, %ebx
incl %ebx
jmp 0x2a7ce
movl %r12d, %ebx
sarl $0x6, %ebx
leal 0x1(%r14), %eax
imull %ebx, %eax
cltq
leaq (,%rax,8), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x6030
movq %rax, 0x48(%rsp)
movl 0x18(%rsp), %eax
shll $0x6, %eax
movl %eax, 0x1c(%rsp)
testl %r14d, %r14d
js 0x2a8a1
movl %ebx, %eax
xorl %edx, %edx
xorl %ecx, %ecx
testl %ebx, %ebx
jle 0x2a893
movl %edx, %edi
imull %ebx, %edi
movzbl %cl, %esi
movq 0x48(%rsp), %r8
leaq (%r8,%rdi,8), %rdi
movl $0x3f, %r8d
xorl %r9d, %r9d
cmpl %r14d, %edx
jge 0x2a87f
movq $0x0, (%rdi,%r9,8)
movq %r9, %r10
shlq $0x6, %r10
movq %r8, %r12
xorl %r11d, %r11d
addq %r11, %r11
cmpq %r13, %r12
jge 0x2a868
movzbl (%r15,%r12), %ebp
shll $0x8, %ebp
addq %rsp, %rbp
addq $0x1c0, %rbp            # imm = 0x1C0
cmpb $0x1, (%rsi,%rbp)
jne 0x2a86c
orq $0x1, %r11
leaq -0x1(%r12), %rbp
cmpq %r10, %r12
movq %rbp, %r12
ja 0x2a848
movq %r11, (%rdi,%r9,8)
jmp 0x2a887
movq $-0x1, (%rdi,%r9,8)
incq %r9
addq $0x40, %r8
cmpq %rax, %r9
jne 0x2a82e
incb %cl
movzbl %cl, %edx
cmpl %r14d, %edx
jle 0x2a810
movq 0x38(%rsp), %rax
leaq 0x20(%rax), %rcx
movq %rcx, 0xa8(%rsp)
addq $0x28, %rax
movq %rax, 0xa0(%rsp)
movl 0x1c(%rsp), %eax
subl 0x10(%rsp), %eax
movl %eax, 0x1c(%rsp)
movq $0x0, 0xc0(%rsp)
leaq 0x10200(%rsp), %rax
movl (%rax), %r12d
movl 0x4(%rax), %eax
testl %r12d, %r12d
movl $0x40, %ebx
cmovnsl %r12d, %ebx
movq %rax, 0x40(%rsp)
leal -0x1(%rax), %ebp
cmpl $0x1, %ebp
ja 0x2a93c
subq $0x8, %rsp
movq 0x50(%rsp), %rdi
movl 0x24(%rsp), %esi
movl 0x20(%rsp), %edx
movq 0x18(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x10(%rsp), %r9
pushq 0x38(%rsp)
pushq 0x60(%rsp)
movq 0x38(%rsp), %r14
pushq %r14
pushq 0x60(%rsp)
pushq %rbx
callq 0x2ae25
addq $0x30, %rsp
jmp 0x2a97f
movq 0x48(%rsp), %rdi
movl 0x1c(%rsp), %esi
movl 0x18(%rsp), %edx
movq 0x10(%rsp), %rcx
movq 0x28(%rsp), %r8
movq 0x8(%rsp), %r9
pushq $-0x1
leaq 0xc8(%rsp), %rax
pushq %rax
pushq $0x0
leaq 0xd4(%rsp), %rax
pushq %rax
movq 0x40(%rsp), %r14
pushq %r14
pushq %rbx
callq 0x2b689
addq $0x30, %rsp
movl (%r14), %r14d
testl %r12d, %r12d
jns 0x2a993
addl %ebx, %ebx
cmpl $-0x1, %r14d
je 0x2a8f8
testl %r14d, %r14d
movq 0x28(%rsp), %rbx
js 0x2ad7d
cmpl $0x0, 0x40(%rsp)
movq 0x8(%rsp), %r12
jne 0x2a9d1
movl $0x4, %edi
callq 0x6530
movq 0x50(%rsp), %rcx
movq %rax, (%rcx)
leal -0x1(%r12), %ecx
movl %ecx, (%rax)
movq 0x30(%rsp), %rax
movl $0x1, (%rax)
leaq 0x10200(%rsp), %rax
movl 0x8(%rax), %ebp
leal -0x1(%rbp), %eax
cmpl $0x1, %eax
ja 0x2aca7
movq 0x38(%rsp), %rbx
movslq 0x18(%rbx), %r12
leaq (,%r12,4), %rdi
movq %rdi, 0x20(%rsp)
callq 0x6530
movq %rax, 0x80(%rsp)
movq %rax, 0x10(%rbx)
cmpl $0x2, 0x40(%rsp)
jne 0x2aa9e
movq %r12, 0x40(%rsp)
movq 0x90(%rsp), %rdi
callq 0x6030
movq %rax, 0x78(%rsp)
movq 0x28(%rsp), %rsi
movq 0x8(%rsp), %rax
testl %eax, %eax
movq 0x10(%rsp), %rbx
jle 0x2aa59
movl %eax, %eax
movq 0x78(%rsp), %rcx
movb -0x1(%rsi,%rax), %dl
movb %dl, (%rcx)
incq %rcx
decq %rax
jne 0x2aa4b
movq %r13, %rdi
callq 0x6030
movq %rax, %r12
movq %rbp, 0x98(%rsp)
testl %ebx, %ebx
jle 0x2aa84
movl %ebx, %eax
movq %r12, %rcx
movb -0x1(%r15,%rax), %dl
movb %dl, (%rcx)
incq %rcx
decq %rax
jne 0x2aa75
movl 0x60(%rsp), %ebp
testb $0x3f, %bl
je 0x2aac5
leal 0x3f(%rbx), %eax
testl %ebx, %ebx
cmovnsl %ebx, %eax
movl %eax, %ebx
sarl $0x6, %ebx
incl %ebx
jmp 0x2aac8
testl %r12d, %r12d
movq 0x28(%rsp), %rbx
jle 0x2aca7
movq 0x80(%rsp), %rdi
xorl %esi, %esi
movq 0x20(%rsp), %rdx
callq 0x6240
jmp 0x2aca7
sarl $0x6, %ebx
leal 0x1(%rbp), %eax
imull %ebx, %eax
cltq
leaq (,%rax,8), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x6030
movq %rax, 0x30(%rsp)
testl %ebp, %ebp
js 0x2abab
movl %ebx, %eax
xorl %edx, %edx
movq $0x0, 0x8(%rsp)
movl %ebx, 0x20(%rsp)
testl %ebx, %ebx
jle 0x2ab90
movl %edx, %edi
imull 0x20(%rsp), %edi
movzbl 0x8(%rsp), %esi
movq 0x30(%rsp), %rcx
leaq (%rcx,%rdi,8), %rdi
movl $0x3f, %ebx
xorl %r9d, %r9d
cmpl %ebp, %edx
jge 0x2ab7c
movq $0x0, (%rdi,%r9,8)
movq %r9, %r10
shlq $0x6, %r10
movq %rbx, %r8
xorl %r11d, %r11d
addq %r11, %r11
cmpq %r13, %r8
jge 0x2ab66
movzbl (%r12,%r8), %ecx
shll $0x8, %ecx
addq %rsp, %rcx
addq $0x1c0, %rcx            # imm = 0x1C0
cmpb $0x1, (%rsi,%rcx)
jne 0x2ab6a
orq $0x1, %r11
leaq -0x1(%r8), %rcx
cmpq %r10, %r8
movq %rcx, %r8
ja 0x2ab46
movq %r11, (%rdi,%r9,8)
jmp 0x2ab84
movq $-0x1, (%rdi,%r9,8)
incq %r9
addq $0x40, %rbx
cmpq %rax, %r9
jne 0x2ab2d
movq 0x8(%rsp), %rcx
incb %cl
movq %rcx, 0x8(%rsp)
movzbl %cl, %edx
cmpl %ebp, %edx
movl 0x20(%rsp), %ebx
jle 0x2ab08
movq 0x40(%rsp), %rcx
testl %ecx, %ecx
jle 0x2ac7e
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x90(%rsp), %rax
movq 0x78(%rsp), %rdx
addq %rdx, %rax
decq %rax
movq %rax, 0x20(%rsp)
xorl %ebp, %ebp
movq 0x8(%rsp), %rax
movslq (%rax,%rbp,4), %rbx
cmpq $-0x1, %rbx
je 0x2ac63
movq 0x20(%rsp), %r8
subq %rbx, %r8
leal 0x1(%rbx), %r9d
subq $0x8, %rsp
movq 0x38(%rsp), %rdi
movl 0x24(%rsp), %esi
movl 0x20(%rsp), %edx
movq 0x18(%rsp), %rcx
leaq 0x94(%rsp), %rax
pushq %rax
leaq 0xc0(%rsp), %rax
pushq %rax
leaq 0xd0(%rsp), %rax
pushq %rax
pushq $0x1
pushq %r14
callq 0x2ae25
addq $0x30, %rsp
movq 0xb0(%rsp), %rdi
movslq 0x8c(%rsp), %rax
subl -0x4(%rdi,%rax,4), %ebx
movq 0x80(%rsp), %rax
movl %ebx, (%rax,%rbp,4)
callq 0x64b0
movq 0x40(%rsp), %rcx
jmp 0x2ac72
movq 0x80(%rsp), %rax
movl $0x0, (%rax,%rbp,4)
incq %rbp
cmpq %rbp, %rcx
jne 0x2abdf
movq 0x78(%rsp), %rdi
callq 0x64f0
movq %r12, %rdi
callq 0x64f0
movq 0x30(%rsp), %rdi
callq 0x64f0
movq 0x28(%rsp), %rbx
movq 0x98(%rsp), %rbp
cmpl $0x2, %ebp
jne 0x2ad7d
movq 0x38(%rsp), %rcx
movq 0x8(%rcx), %rax
movq 0x10(%rcx), %rcx
movslq (%rcx), %rbp
movslq (%rax), %rbx
subq %rbp, %rbx
leaq 0x1(%rbx), %r12
movq %r12, %rdi
callq 0x6030
movq %rax, 0x8(%rsp)
testl %ebx, %ebx
movq 0x28(%rsp), %rbx
js 0x2acfe
movl %r12d, %eax
leaq (%rbx,%rbp), %rcx
decq %rcx
movq 0x8(%rsp), %rdx
movb (%rcx,%rax), %sil
movb %sil, (%rdx)
incq %rdx
decq %rax
jne 0x2acef
movq %r13, %rdi
callq 0x6030
movq %rax, %r13
movq %rbx, %rcx
addq %rbp, %rcx
cmpl $0x0, 0x10(%rsp)
jle 0x2ad2d
movl 0x10(%rsp), %eax
movq %r13, %rdx
movb -0x1(%r15,%rax), %sil
movb %sil, (%rdx)
incq %rdx
decq %rax
jne 0x2ad1d
movl 0x60(%rsp), %eax
subq $0x8, %rsp
movq %r15, %rdi
movq %r13, %rsi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %r8
movl %r12d, %r9d
pushq 0xa8(%rsp)
pushq 0xb8(%rsp)
pushq %r14
pushq %rax
leaq 0x1e8(%rsp), %rax
pushq %rax
callq 0x2c179
addq $0x30, %rsp
movq 0x8(%rsp), %rdi
callq 0x64f0
movq %r13, %rdi
callq 0x64f0
movq 0x48(%rsp), %rdi
callq 0x64f0
movq %r15, %rdi
callq 0x64b0
movq %rbx, %rdi
callq 0x64b0
movq 0xc0(%rsp), %rbx
testq %rbx, %rbx
je 0x2adb9
movq %rbx, %rdi
callq 0x2d736
movl $0x28, %esi
movq %rbx, %rdi
callq 0x63c0
leaq 0x68(%rsp), %rbx
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2add5
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x38(%rsp), %rax
addq $0x101c8, %rsp          # imm = 0x101C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2adfe
jmp 0x2adfe
jmp 0x2adfe
jmp 0x2adfe
jmp 0x2adfe
jmp 0x2adfe
jmp 0x2adfe
jmp 0x2adfe
jmp 0x2adfe
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x2ae1d
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x63c0
movq %rbx, %rdi
callq 0x6660