// File: /workspace/github_cpp_makefile_star2_O3/chrischute[P]are-you-the-one/src/ayto.cpp
// Function: runAreYouTheOne(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, AreYouTheOneSettings const*)
void runAreYouTheOne(const Pm& answer, const AytoSettings* settings)
{
    TbSet* tbGuessesAlreadyMade = new TbSet(); // Queries submitted in truth booth.
    PmSet* pmGuessesAlreadyMade = new PmSet(); // Queries submitted in perfect matching.
    PmSet* possibleAnswers = new PmSet();      // Remaining possibilities for answer.
    possibleAnswers->populateAll();

    if (!settings->_isInteractiveMode) {
        if (settings->_isPrintNumbersMode) {
            cout << "Answer: " << getPrintableNumbers(answer) << endl;
        } else {
            cout << "Answer:" << endl
                 << getPrintableNames(answer, settings->_femaleNames, settings->_maleNames)
                 << endl;
        }
    }

    while (true) {
        // Submit a single Tb to the Truth Booth.
        cout << "End of Week " << (tbGuessesAlreadyMade->size() + 1) << endl;
        Tb nextTbGuess = getNextTruthBoothGuess(possibleAnswers, tbGuessesAlreadyMade);
        tbGuessesAlreadyMade->add(nextTbGuess);
        bool isPairCorrect;
        if (settings->_isInteractiveMode) {
            string userInput;
            do {
                if (settings->_isPrintNumbersMode) {
                    cout << "Question: Is there a '" << nextTbGuess.charAtIndex
                         << "' in position " << nextTbGuess.index
                         << " (indexed starting with 0)? [yes/no]" << endl;
                } else {
                    cout << "Question: Are " << settings->_femaleNames->at(nextTbGuess.index)
                         << " and " << settings->_maleNames->at(nextTbGuess.charAtIndex)
                         << " matched together? [yes/no]" << endl;
                }
                cin >> userInput;
                isPairCorrect = userInput[0] == 'y' || userInput[0] == 'Y';
            } while (userInput[0] != 'y' && userInput[0] != 'n' &&
                     userInput[0] != 'Y' && userInput[0] != 'N');
        } else {
            isPairCorrect = nextTbGuess.isContainedIn(answer);
        }
        possibleAnswers->filter(nextTbGuess, isPairCorrect);
        if (settings->_isVerboseMode) {
            cout << "  * Truth Booth: " << flush;
            if (settings->_isPrintNumbersMode) {
                cout << getPrintableNumbers(nextTbGuess.toString()) << endl;
            } else {
                cout << getPrintableNames(nextTbGuess,
                                          settings->_femaleNames,
                                          settings->_maleNames)
                     << endl;
            }
            cout << "  > Feedback: " << (isPairCorrect ? "Yes" : "No") << endl;
            cout << "    Now " << possibleAnswers->size() << " remaining." << endl;
        }

        // Submit a full PM as the Perfect Matching.
        Pm nextPmGuess = getNextPerfectMatchingGuess(possibleAnswers, pmGuessesAlreadyMade);
        pmGuessesAlreadyMade->add(nextPmGuess);
        int numCorrect;
        if (settings->_isInteractiveMode) {
            do {
                if (settings->_isPrintNumbersMode) {
                    cout << "Question: How many of the following "
                         << "are in the correct spot?" << endl;
                    cout << getPrintableNumbers(nextPmGuess) << endl;
                } else {
                    cout << "Question: How many of the following "
                         << "matches are correct?" << endl;
                    cout << getPrintableNames(nextPmGuess,
                                              settings->_femaleNames,
                                              settings->_maleNames)
                         << endl;
                }
                cin >> numCorrect;
            } while (numCorrect < 0 || numCorrect > PERM_LENGTH);
        } else {
            numCorrect = numInCommon(nextPmGuess, answer);
        }

        possibleAnswers->filter(nextPmGuess, numCorrect);
        if (settings->_isVerboseMode) {
            cout << "  * Perfect Matching: " << flush;
            if (settings->_isPrintNumbersMode) {
                cout << getPrintableNumbers(nextPmGuess) << endl;
            } else {
                cout << endl << getPrintableNames(nextPmGuess,
                                                  settings->_femaleNames,
                                                  settings->_maleNames)
                     << endl;
            }
            cout << "  > Feedback: " << numCorrect << " correct" << endl;
            cout << "    Now " << possibleAnswers->size() << " remaining." << endl;
        }
        if (numCorrect == PERM_LENGTH) {
            break;
        }
        if (settings->_isInteractiveMode && possibleAnswers->size() == 0) {
            cout << "Sorry, that's not a possible combination of responses."
                 << endl << "Please try again." << endl;
            break;
        }
    }

    // Print a summary of the game, the guesses made in each week.
    cout << "Results:" << endl;
    for (unsigned int i = 0; i < tbGuessesAlreadyMade->size(); ++i) {
        int intWidth = (tbGuessesAlreadyMade->size() < 10 ? 1 : 2);
        cout << "[Week " << setw(intWidth) << (i + 1) << "] ";
        if (settings->_isPrintNumbersMode) {
            cout << getPrintableNumbers(tbGuessesAlreadyMade->get(i).toString())
                 << ", "
                 << getPrintableNumbers(pmGuessesAlreadyMade->get(i))
                 << endl;
        } else {
            cout << getPrintableNames(tbGuessesAlreadyMade->get(i),
                                      settings->_femaleNames,
                                      settings->_maleNames)
                 << endl
                 << getPrintableNames(pmGuessesAlreadyMade->get(i),
                                      settings->_femaleNames,
                                      settings->_maleNames)
                 << endl;
        }
    }

    delete tbGuessesAlreadyMade;
    delete pmGuessesAlreadyMade;
    delete possibleAnswers;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r12
movq %rdi, 0x80(%rsp)
movl $0x8, %edi
callq 0x2230
movq %rax, 0x58(%rsp)
movq %rax, %rdi
callq 0x6a54
movl $0x8, %edi
callq 0x2230
movq %rax, 0x50(%rsp)
movq %rax, %rdi
callq 0x6070
movl $0x8, %edi
callq 0x2230
movq %rax, %r13
movq %rax, %rdi
callq 0x6070
movq %r13, %rdi
callq 0x6288
cmpb $0x0, 0x21(%r12)
jne 0x3213
cmpb $0x1, 0x22(%r12)
jne 0x315b
movq 0x7edc(%rip), %rbx      # 0xafd0
leaq 0x413e(%rip), %rsi      # 0x7239
movl $0x8, %edx
movq %rbx, %rdi
callq 0x2270
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq 0x80(%rsp), %rsi
callq 0x4bc1
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x2270
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
jmp 0x31f8
movq 0x7e6e(%rip), %rbx      # 0xafd0
leaq 0x40d9(%rip), %rsi      # 0x7242
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2270
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq %rax, %rbx
movq 0x28(%r12), %rdx
movq 0x30(%r12), %rcx
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq 0x80(%rsp), %rsi
callq 0x4935
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x2270
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3213
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2240
movq %r13, 0x48(%rsp)
movq 0x7db1(%rip), %r13      # 0xafd0
movq 0x7dba(%rip), %rbp      # 0xafe0
leaq 0x20(%rsp), %rbx
movl $0xc, %edx
movq %r13, %rdi
leaq 0x4010(%rip), %rsi      # 0x724a
callq 0x2270
movq 0x58(%rsp), %r15
movq %r15, %rdi
callq 0x6b12
leaq 0x1(%rax), %rsi
movq %r13, %rdi
callq 0x2150
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x4542
movl %eax, 0x60(%rsp)
shrq $0x20, %rax
movb %al, 0x64(%rsp)
movq %r15, %rdi
leaq 0x60(%rsp), %r15
movq %r15, %rsi
callq 0x6aa2
cmpb $0x1, 0x21(%r12)
jne 0x3453
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movb $0x0, 0x30(%rsp)
cmpb $0x1, 0x22(%r12)
jne 0x3355
movl $0x16, %edx
movq %r13, %rdi
leaq 0x3f71(%rip), %rsi      # 0x7257
callq 0x2270
movb 0x64(%rsp), %al
movb %al, (%rsp)
movl $0x1, %edx
movq %r13, %rdi
movq %rsp, %rsi
callq 0x2270
movq %rax, %r14
movl $0xe, %edx
movq %rax, %rdi
leaq 0x3f5a(%rip), %rsi      # 0x726e
callq 0x2270
movl 0x60(%rsp), %esi
movq %r14, %rdi
callq 0x2350
movq %rax, %r14
movl $0x24, %edx
movq %rax, %rdi
leaq 0x3f46(%rip), %rsi      # 0x727d
callq 0x2270
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
jmp 0x33e5
movl $0xe, %edx
movq %r13, %rdi
leaq 0x3f3e(%rip), %rsi      # 0x72a2
callq 0x2270
movq 0x28(%r12), %rdi
movq %r15, %rsi
callq 0x5008
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r13, %rdi
callq 0x2270
movq %rax, %r14
movl $0x5, %edx
movq %rax, %rdi
leaq 0x3f1a(%rip), %rsi      # 0x72b1
callq 0x2270
movq 0x30(%r12), %rdi
leaq 0x64(%rsp), %rsi
callq 0x504e
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r14, %rdi
callq 0x2270
movq %rax, %r14
movl $0x1b, %edx
movq %rax, %rdi
leaq 0x3eeb(%rip), %rsi      # 0x72b7
callq 0x2270
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x2290
movq 0x20(%rsp), %rdi
movb (%rdi), %cl
addb $-0x4e, %cl
cmpb $0x2b, %cl
ja 0x32cf
movzbl %cl, %eax
movabsq $0x80100000801, %rdx    # imm = 0x80100000801
btq %rax, %rdx
jae 0x32cf
movabsq $0xffefffffffe, %r14    # imm = 0xFFEFFFFFFFE
shrq %cl, %r14
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x346e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2240
jmp 0x346e
movslq 0x60(%rsp), %rax
movq 0x80(%rsp), %rcx
movq (%rcx), %rcx
movb (%rcx,%rax), %al
cmpb 0x64(%rsp), %al
sete %r14b
movzbl %r14b, %r14d
movl %r14d, %edx
andl $0x1, %edx
movq 0x48(%rsp), %r15
movq %r15, %rdi
leaq 0x60(%rsp), %rsi
callq 0x61ca
cmpb $0x1, 0x24(%r12)
jne 0x36a3
movl $0x11, %edx
movq %r13, %rdi
leaq 0x3e2e(%rip), %rsi      # 0x72d3
callq 0x2270
movq %r13, %rdi
callq 0x2160
cmpb $0x1, 0x22(%r12)
jne 0x3565
movl 0x60(%rsp), %eax
movl 0x64(%rsp), %ecx
addl $0x30, %eax
leaq 0x10(%rsp), %rdx
movq %rdx, (%rsp)
shll $0x8, %ecx
movzbl %al, %eax
orl %ecx, %eax
movw %ax, 0x10(%rsp)
movq $0x2, 0x8(%rsp)
movb $0x0, 0x12(%rsp)
movq %rbx, %rdi
movq %rsp, %rsi
callq 0x4bc1
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r13, %rdi
callq 0x2270
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3550
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2240
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x35d4
movq 0x10(%rsp), %rsi
jmp 0x35cc
movq 0x28(%r12), %rdx
movq 0x30(%r12), %rcx
movq %rbx, %rdi
leaq 0x60(%rsp), %rsi
callq 0x4ab7
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r13, %rdi
callq 0x2270
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x35d4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2240
movl $0xe, %edx
movq %r13, %rdi
leaq 0x3d02(%rip), %rsi      # 0x72e5
callq 0x2270
testb $0x1, %r14b
leaq 0x3d05(%rip), %rsi      # 0x72f8
leaq 0x3cfa(%rip), %rax      # 0x72f4
cmovneq %rax, %rsi
andl $0x1, %r14d
orq $0x2, %r14
movq %r13, %rdi
movq %r14, %rdx
callq 0x2270
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movl $0x8, %edx
movq %r13, %rdi
leaq 0x3cb3(%rip), %rsi      # 0x72fb
callq 0x2270
movq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0x63ea
movq %r13, %rdi
movq %rax, %rsi
callq 0x2150
movq %rax, %r14
movl $0xb, %edx
movq %rax, %rdi
leaq 0x3c8d(%rip), %rsi      # 0x7304
callq 0x2270
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq %rbx, %rdi
movq %r15, %rsi
movq 0x50(%rsp), %r14
movq %r14, %rdx
callq 0x3fee
movq %r14, %rdi
movq %rbx, %rsi
callq 0x610a
cmpb $0x1, 0x21(%r12)
jne 0x384b
leaq 0x10(%rsp), %r15
cmpb $0x1, 0x22(%r12)
jne 0x3779
movl $0x24, %edx
movq %r13, %rdi
leaq 0x3c23(%rip), %rsi      # 0x7310
callq 0x2270
movl $0x18, %edx
movq %r13, %rdi
leaq 0x3c34(%rip), %rsi      # 0x7335
callq 0x2270
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x4bc1
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rdi
callq 0x2270
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
jmp 0x3819
movl $0x24, %edx
movq %r13, %rdi
leaq 0x3b88(%rip), %rsi      # 0x7310
callq 0x2270
movl $0x14, %edx
movq %r13, %rdi
leaq 0x3bb2(%rip), %rsi      # 0x734e
callq 0x2270
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x28(%r12), %rdx
movq 0x30(%r12), %rcx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x4935
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rdi
callq 0x2270
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x382f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2240
movq %rbp, %rdi
leaq 0x44(%rsp), %rsi
callq 0x2120
movl 0x44(%rsp), %eax
cmpl $0xa, %eax
ja 0x36d2
jmp 0x3864
movq %rbx, %rdi
movq 0x80(%rsp), %rsi
callq 0x6030
leaq 0x10(%rsp), %r15
movl %eax, 0x44(%rsp)
movq 0x48(%rsp), %rdi
movq %rbx, %rsi
movl %eax, %edx
callq 0x6144
cmpb $0x1, 0x24(%r12)
jne 0x3a41
movl $0x16, %edx
movq %r13, %rdi
leaq 0x3ad5(%rip), %rsi      # 0x7363
callq 0x2270
movq %r13, %rdi
callq 0x2160
cmpb $0x1, 0x22(%r12)
jne 0x38eb
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x4bc1
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r13, %rdi
callq 0x2270
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
jmp 0x3966
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq %rax, %r14
movq 0x28(%r12), %rdx
movq 0x30(%r12), %rcx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x4935
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x2270
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x397c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2240
movl $0xe, %edx
movq %r13, %rdi
leaq 0x395a(%rip), %rsi      # 0x72e5
callq 0x2270
movl 0x44(%rsp), %esi
movq %r13, %rdi
callq 0x2350
movq %rax, %r14
movl $0x8, %edx
movq %rax, %rdi
leaq 0x39cc(%rip), %rsi      # 0x737a
callq 0x2270
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movl $0x8, %edx
movq %r13, %rdi
leaq 0x3912(%rip), %rsi      # 0x72fb
callq 0x2270
movq 0x48(%rsp), %rdi
callq 0x63ea
movq %r13, %rdi
movq %rax, %rsi
callq 0x2150
movq %rax, %r14
movl $0xb, %edx
movq %rax, %rdi
leaq 0x38ef(%rip), %rsi      # 0x7304
callq 0x2270
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
cmpl $0xa, 0x44(%rsp)
jne 0x3a4d
xorl %r14d, %r14d
jmp 0x3a67
movb $0x1, %r14b
cmpb $0x1, 0x21(%r12)
jne 0x3a67
movq 0x48(%rsp), %rdi
callq 0x63ea
testq %rax, %rax
je 0x3a8e
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3a83
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2240
testb %r14b, %r14b
jne 0x322b
jmp 0x3b0d
movl $0x36, %edx
movq %r13, %rdi
leaq 0x38e6(%rip), %rsi      # 0x7383
callq 0x2270
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq %rax, %r14
movl $0x11, %edx
movq %rax, %rdi
leaq 0x38de(%rip), %rsi      # 0x73ba
callq 0x2270
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
jmp 0x3a48
leaq 0x38b8(%rip), %rsi      # 0x73cc
movl $0x8, %edx
movq %r13, %rdi
callq 0x2270
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x58(%rsp), %r14
movq %r14, %rdi
callq 0x6b12
testq %rax, %rax
je 0x3df7
movl $0x1, %r15d
leal -0x1(%r15), %ebp
movq %r14, %rdi
callq 0x6b12
movq %rax, %rbx
movl $0x6, %edx
movq %r13, %rdi
leaq 0x3852(%rip), %rsi      # 0x73d5
callq 0x2270
cmpq $0xa, %rbx
movq (%r13), %rax
movq -0x18(%rax), %rax
movl $0x2, %ecx
sbbq $0x0, %rcx
movq %rcx, 0x10(%r13,%rax)
movl %r15d, %ebx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x2150
movl $0x2, %edx
movq %rax, %rdi
leaq 0x381d(%rip), %rsi      # 0x73dc
callq 0x2270
cmpb $0x1, 0x22(%r12)
jne 0x3cea
movq %r14, %rdi
movl %ebp, %esi
callq 0x6ae4
movl (%rax), %ecx
movl 0x4(%rax), %eax
addl $0x30, %ecx
leaq 0x10(%rsp), %rdx
movq %rdx, (%rsp)
shll $0x8, %eax
movzbl %cl, %ecx
orl %eax, %ecx
movw %cx, 0x10(%rsp)
movq $0x2, 0x8(%rsp)
movb $0x0, 0x12(%rsp)
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x4bc1
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r13, %rdi
callq 0x2270
movq %rax, %r15
movl $0x2, %edx
movq %rax, %rdi
leaq 0x35ff(%rip), %rsi      # 0x7236
callq 0x2270
movq 0x50(%rsp), %rdi
movl %ebp, %esi
callq 0x6258
leaq 0x60(%rsp), %rdi
movq %rax, %rsi
callq 0x4bc1
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq %r15, %rdi
callq 0x2270
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
movq 0x58(%rsp), %r14
leaq 0x10(%rsp), %r15
je 0x3cb7
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2240
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3cd3
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2240
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3de2
movq 0x10(%rsp), %rsi
jmp 0x3dda
movq %r14, %rdi
movl %ebp, %esi
callq 0x6ae4
movq 0x28(%r12), %rdx
movq 0x30(%r12), %rcx
leaq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x4ab7
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r13, %rdi
callq 0x2270
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq %rax, %r15
movq 0x50(%rsp), %rdi
movl %ebp, %esi
callq 0x6258
movq 0x28(%r12), %rdx
movq 0x30(%r12), %rcx
movq %rsp, %rdi
movq %rax, %rsi
callq 0x4935
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x2270
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
movq 0x58(%rsp), %r14
je 0x3dc6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2240
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3de2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2240
movq %r14, %rdi
callq 0x6b12
leal 0x1(%rbx), %r15d
cmpq %rbx, %rax
ja 0x3b65
movq %r14, %rdi
callq 0x6a76
movl $0x8, %esi
movq %r14, %rdi
callq 0x2240
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x60ea
movl $0x8, %esi
movq %rbx, %rdi
callq 0x2240
movq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0x60ea
movl $0x8, %esi
movq %rbx, %rdi
callq 0x2240
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3e54
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x3f63
movq %rax, %rbx
movl $0x8, %esi
movq %r13, %rdi
jmp 0x3f70
movq %rax, %rbx
movl $0x8, %esi
movq 0x50(%rsp), %rdi
jmp 0x3f70
movq %rax, %rbx
movl $0x8, %esi
movq 0x58(%rsp), %rdi
jmp 0x3f70
jmp 0x3f56
jmp 0x3f56
jmp 0x3ea5
movq %rax, %rbx
jmp 0x3f1c
jmp 0x3f56
jmp 0x3ebf
jmp 0x3ebf
jmp 0x3f39
jmp 0x3f39
jmp 0x3f56
movq %rax, %rbx
jmp 0x3f00
jmp 0x3f56
jmp 0x3f56
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
jne 0x3f45
jmp 0x3f59
movq %rax, %rbx
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x3f00
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2240
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3f1c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2240
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x3f75
movq 0x10(%rsp), %rsi
jmp 0x3f6d
jmp 0x3f56
jmp 0x3f56
jmp 0x3f56
jmp 0x3f39
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3f59
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2240
jmp 0x3f59
jmp 0x3f56
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x3f75
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2240
movq %rbx, %rdi
callq 0x2360