// File: /workspace/github_cpp_makefile_star2_O3/andrakis[P]alisp/contrib/linenoise-ng/src/linenoise.cpp
// Function: InputBuffer::completeLine(PromptBase&)
int InputBuffer::completeLine(PromptBase& pi) {
  linenoiseCompletions lc;
  char32_t c = 0;

  // completionCallback() expects a parsable entity, so find the previous break
  // character and
  // extract a copy to parse.  we also handle the case where tab is hit while
  // not at end-of-line.
  int startIndex = pos;
  while (--startIndex >= 0) {
    if (strchr(breakChars, buf32[startIndex])) {
      break;
    }
  }
  ++startIndex;
  int itemLength = pos - startIndex;
  Utf32String unicodeCopy(&buf32[startIndex], itemLength);
  Utf8String parseItem(unicodeCopy);

  // get a list of completions
  completionCallback(parseItem.get(), &lc);

  // if no completions, we are done
  if (lc.completionStrings.size() == 0) {
    beep();
    freeCompletions(&lc);
    return 0;
  }

  // at least one completion
  int longestCommonPrefix = 0;
  int displayLength = 0;
  if (lc.completionStrings.size() == 1) {
    longestCommonPrefix = static_cast<int>(lc.completionStrings[0].length());
  } else {
    bool keepGoing = true;
    while (keepGoing) {
      for (size_t j = 0; j < lc.completionStrings.size() - 1; ++j) {
        char32_t c1 = lc.completionStrings[j][longestCommonPrefix];
        char32_t c2 = lc.completionStrings[j + 1][longestCommonPrefix];
        if ((0 == c1) || (0 == c2) || (c1 != c2)) {
          keepGoing = false;
          break;
        }
      }
      if (keepGoing) {
        ++longestCommonPrefix;
      }
    }
  }
  if (lc.completionStrings.size() != 1) {  // beep if ambiguous
    beep();
  }

  // if we can extend the item, extend it and return to main loop
  if (longestCommonPrefix > itemLength) {
    displayLength = len + longestCommonPrefix - itemLength;
    if (displayLength > buflen) {
      longestCommonPrefix -= displayLength - buflen;  // don't overflow buffer
      displayLength = buflen;                         // truncate the insertion
      beep();                                         // and make a noise
    }
    Utf32String displayText(displayLength + 1);
    memcpy(displayText.get(), buf32, sizeof(char32_t) * startIndex);
    memcpy(&displayText[startIndex], &lc.completionStrings[0][0],
           sizeof(char32_t) * longestCommonPrefix);
    int tailIndex = startIndex + longestCommonPrefix;
    memcpy(&displayText[tailIndex], &buf32[pos],
           sizeof(char32_t) * (displayLength - tailIndex + 1));
    copyString32(buf32, displayText.get(), displayLength);
    pos = startIndex + longestCommonPrefix;
    len = displayLength;
    refreshLine(pi);
    return 0;
  }

  // we can't complete any further, wait for second tab
  do {
    c = linenoiseReadChar();
    c = cleanupCtrl(c);
  } while (c == static_cast<char32_t>(-1));

  // if any character other than tab, pass it to the main loop
  if (c != ctrlChar('I')) {
    freeCompletions(&lc);
    return c;
  }

  // we got a second tab, maybe show list of possible completions
  bool showCompletions = true;
  bool onNewLine = false;
  if (lc.completionStrings.size() > completionCountCutoff) {
    int savePos =
        pos;  // move cursor to EOL to avoid overwriting the command line
    pos = len;
    refreshLine(pi);
    pos = savePos;
    printf("\nDisplay all %u possibilities? (y or n)",
           static_cast<unsigned int>(lc.completionStrings.size()));
    fflush(stdout);
    onNewLine = true;
    while (c != 'y' && c != 'Y' && c != 'n' && c != 'N' && c != ctrlChar('C')) {
      do {
        c = linenoiseReadChar();
        c = cleanupCtrl(c);
      } while (c == static_cast<char32_t>(-1));
    }
    switch (c) {
      case 'n':
      case 'N':
        showCompletions = false;
        freeCompletions(&lc);
        break;
      case ctrlChar('C'):
        showCompletions = false;
        freeCompletions(&lc);
        if (write(1, "^C", 2) == -1) return -1;  // Display the ^C we got
        c = 0;
        break;
    }
  }

  // if showing the list, do it the way readline does it
  bool stopList = false;
  if (showCompletions) {
    int longestCompletion = 0;
    for (size_t j = 0; j < lc.completionStrings.size(); ++j) {
      itemLength = static_cast<int>(lc.completionStrings[j].length());
      if (itemLength > longestCompletion) {
        longestCompletion = itemLength;
      }
    }
    longestCompletion += 2;
    int columnCount = pi.promptScreenColumns / longestCompletion;
    if (columnCount < 1) {
      columnCount = 1;
    }
    if (!onNewLine) {  // skip this if we showed "Display all %d possibilities?"
      int savePos =
          pos;  // move cursor to EOL to avoid overwriting the command line
      pos = len;
      refreshLine(pi);
      pos = savePos;
    }
    size_t pauseRow = getScreenRows() - 1;
    size_t rowCount =
        (lc.completionStrings.size() + columnCount - 1) / columnCount;
    for (size_t row = 0; row < rowCount; ++row) {
      if (row == pauseRow) {
        printf("\n--More--");
        fflush(stdout);
        c = 0;
        bool doBeep = false;
        while (c != ' ' && c != '\r' && c != '\n' && c != 'y' && c != 'Y' &&
               c != 'n' && c != 'N' && c != 'q' && c != 'Q' &&
               c != ctrlChar('C')) {
          if (doBeep) {
            beep();
          }
          doBeep = true;
          do {
            c = linenoiseReadChar();
            c = cleanupCtrl(c);
          } while (c == static_cast<char32_t>(-1));
        }
        switch (c) {
          case ' ':
          case 'y':
          case 'Y':
            printf("\r        \r");
            pauseRow += getScreenRows() - 1;
            break;
          case '\r':
          case '\n':
            printf("\r        \r");
            ++pauseRow;
            break;
          case 'n':
          case 'N':
          case 'q':
          case 'Q':
            printf("\r        \r");
            stopList = true;
            break;
          case ctrlChar('C'):
            if (write(1, "^C", 2) == -1) return -1;  // Display the ^C we got
            stopList = true;
            break;
        }
      } else {
        printf("\n");
      }
      if (stopList) {
        break;
      }
      for (int column = 0; column < columnCount; ++column) {
        size_t index = (column * rowCount) + row;
        if (index < lc.completionStrings.size()) {
          itemLength = static_cast<int>(lc.completionStrings[index].length());
          fflush(stdout);
          if (write32(1, lc.completionStrings[index].get(), itemLength) == -1)
            return -1;
          if (((column + 1) * rowCount) + row < lc.completionStrings.size()) {
            for (int k = itemLength; k < longestCompletion; ++k) {
              printf(" ");
            }
          }
        }
      }
    }
    fflush(stdout);
    freeCompletions(&lc);
  }

  // display the prompt on a new line, then redisplay the input buffer
  if (!stopList || c == ctrlChar('C')) {
    if (write(1, "\n", 1) == -1) return 0;
  }
  if (!pi.write()) return 0;
#ifndef _WIN32
  // we have to generate our own newline on line wrap on Linux
  if (pi.promptIndentation == 0 && pi.promptExtraLines > 0)
    if (write(1, "\n", 1) == -1) return 0;
#endif
  pi.promptCursorRowOffset = pi.promptExtraLines;
  refreshLine(pi);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl 0x18(%rdi), %r14d
movq %rdi, 0x38(%rsp)
movq (%rdi), %rbp
movl %r14d, %ebx
sarl $0x1f, %ebx
andl %r14d, %ebx
leaq -0x4(,%r14,4), %r12
addq %rbp, %r12
leaq 0x10816(%rip), %r15     # 0x20ac0
movl %r14d, %r13d
testl %r13d, %r13d
jle 0x102d5
movl (%r12), %esi
movl $0x18, %edx
movq %r15, %rdi
callq 0x73a0
decl %r13d
addq $-0x4, %r12
testq %rax, %rax
je 0x102ad
incl %r13d
movl %r13d, %ebx
subl %ebx, %r14d
movslq %r14d, %r15
movq %r15, 0x68(%rsp)
leal 0x1(%r15), %eax
shlq $0x2, %rax
cmpl $-0x1, %r15d
movq $-0x1, %r12
cmovgeq %rax, %r12
movq %r12, %rdi
callq 0x7030
movq %rax, %r13
movslq %ebx, %rax
movq %rax, 0x20(%rsp)
leaq (%rbp,%rax,4), %rbp
movq %r13, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x7200
leaq 0x68(%rsp), %r12
movq %r13, 0x8(%r12)
shlq $0x2, %r15
movq %r13, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x72b0
leaq 0x40(%rsp), %rdi
movq %r12, %rsi
callq 0x13e8c
movq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq *0x1e33d(%rip)          # 0x2e690
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
movq %rdx, %rcx
subq %rax, %rcx
subq %rax, %rdx
je 0x10374
cmpq $0x10, %rdx
jne 0x103c3
movl (%rax), %ebp
jmp 0x1041e
movq 0x1dc55(%rip), %rbx     # 0x2dfd0
movq (%rbx), %rsi
movl $0x7, %edi
callq 0x7440
movq (%rbx), %rdi
callq 0x73f0
movq (%rsp), %rbx
movq 0x8(%rsp), %r14
xorl %ebp, %ebp
cmpq %rbx, %r14
je 0x1065c
movq %rbx, %r15
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x103b5
callq 0x7490
addq $0x10, %r15
cmpq %r14, %r15
jne 0x103a7
jmp 0x10657
sarq $0x4, %rcx
addq $0x18, %rax
xorl %ebp, %ebp
movl %ebp, %edx
movq %rax, %rsi
movq %rcx, %rdi
decq %rdi
je 0x103fe
movq -0x10(%rsi), %r8
movl (%r8,%rdx,4), %r8d
testl %r8d, %r8d
je 0x10402
movq (%rsi), %r9
movl (%r9,%rdx,4), %r9d
testl %r9d, %r9d
je 0x10402
addq $0x10, %rsi
cmpl %r9d, %r8d
je 0x103d5
jmp 0x10402
incl %ebp
jmp 0x103cd
movq 0x1dbc7(%rip), %r15     # 0x2dfd0
movq (%r15), %rsi
movl $0x7, %edi
callq 0x7440
movq (%r15), %rdi
callq 0x73f0
movl %ebp, %eax
subl %r14d, %eax
jle 0x10460
movq 0x38(%rsp), %rcx
addl 0x14(%rcx), %eax
movl 0x10(%rcx), %r14d
cmpl %r14d, %eax
jle 0x10542
subl %eax, %ebp
addl %r14d, %ebp
movq 0x1db8a(%rip), %r15     # 0x2dfd0
movq (%r15), %rsi
movl $0x7, %edi
callq 0x7440
movq (%r15), %rdi
callq 0x73f0
jmp 0x10545
callq 0x10bde
movl %eax, %edi
callq 0x10d6a
cmpl $-0x1, %eax
je 0x10460
movl %eax, %ebp
cmpl $0x9, %eax
jne 0x1062f
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
movq %rdx, %rbx
subq %rax, %rbx
movl $0x9, %r15d
movq %rbx, %rcx
cmpq $0x640, %rbx            # imm = 0x640
jbe 0x106a2
movq 0x38(%rsp), %r14
movl 0x14(%r14), %eax
movl 0x18(%r14), %ebp
movl %eax, 0x18(%r14)
movq %r14, %rdi
movq 0x28(%rsp), %rsi
callq 0xfd84
movl %ebp, 0x18(%r14)
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
shrq $0x4, %rsi
leaq 0x1066a(%rip), %rdi     # 0x20b41
xorl %eax, %eax
callq 0x7070
movq 0x1da9b(%rip), %rax     # 0x2df80
movq (%rax), %rdi
callq 0x73f0
movl $0x9, %r15d
cmpl $0x58, %r15d
jle 0x10518
cmpl $0x59, %r15d
je 0x10693
cmpl $0x6e, %r15d
je 0x109de
cmpl $0x79, %r15d
jne 0x1052c
jmp 0x10693
cmpl $0x3, %r15d
je 0x10b0a
cmpl $0x4e, %r15d
je 0x109de
callq 0x10bde
movl %eax, %edi
callq 0x10d6a
cmpl $-0x1, %eax
je 0x1052c
movl %eax, %r15d
jmp 0x104f3
movl %eax, %r14d
movq %r14, 0x30(%rsp)
leal 0x1(%r14), %eax
shlq $0x2, %rax
cmpl $-0x1, %r14d
movq $-0x1, %r12
cmovgeq %rax, %r12
movq %r12, %rdi
callq 0x7030
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x7200
movq 0x38(%rsp), %r14
movq (%r14), %r12
movq 0x20(%rsp), %r13
leaq (,%r13,4), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x72b0
leaq (%r15,%r13,4), %rdi
movq (%rsp), %rax
movq 0x8(%rax), %rsi
movslq %ebp, %r13
leaq (,%r13,4), %rdx
callq 0x72b0
addl %ebx, %r13d
movq %r14, %rbx
movslq %r13d, %rax
leaq (%r15,%rax,4), %rdi
movslq 0x18(%r14), %rcx
leaq (%r12,%rcx,4), %rsi
movq 0x30(%rsp), %r14
movl %r14d, %ecx
subl %eax, %ecx
incl %ecx
movslq %ecx, %rdx
shlq $0x2, %rdx
callq 0x72b0
testl %r14d, %r14d
movq %r14, %rsi
je 0x10607
movslq %esi, %rax
xorl %ecx, %ecx
movl (%r15,%rcx,4), %edx
testl %edx, %edx
je 0x10607
movl %edx, (%r12)
addq $0x4, %r12
incq %rcx
cmpq %rcx, %rax
jne 0x105ef
movl $0x0, (%r12)
movl %r13d, 0x18(%rbx)
movl %esi, 0x14(%rbx)
movq %rbx, %rdi
movq 0x28(%rsp), %rsi
callq 0xfd84
movq %r15, %rdi
callq 0x7490
xorl %ebp, %ebp
jmp 0x1065c
movq (%rsp), %rbx
movq 0x8(%rsp), %r14
cmpq %rbx, %r14
je 0x1065c
movq %rbx, %r15
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x1064e
callq 0x7490
addq $0x10, %r15
cmpq %r14, %r15
jne 0x10640
movq %rbx, 0x8(%rsp)
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x1066b
callq 0x7490
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x1067a
callq 0x7490
movq %rsp, %rdi
callq 0x1492c
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%rsp), %rax
movq 0x8(%rsp), %rdx
movq %rdx, %rcx
subq %rax, %rcx
cmpq %rax, %rdx
je 0x106d2
sarq $0x4, %rcx
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %r13d, %r13d
movl %r13d, %edx
movl (%rax), %r13d
cmpl %r13d, %edx
cmovgl %edx, %r13d
addq $0x10, %rax
decq %rcx
jne 0x106b6
addl $0x2, %r13d
jmp 0x106d8
movl $0x2, %r13d
movq 0x28(%rsp), %rax
movl 0x34(%rax), %eax
cltd
idivl %r13d
cmpl $0x2, %eax
movl $0x1, %ebp
cmovgel %eax, %ebp
cmpq $0x640, %rbx            # imm = 0x640
movq 0x38(%rsp), %r14
ja 0x1071a
movl 0x14(%r14), %eax
movl 0x18(%r14), %ebx
movl %eax, 0x18(%r14)
movq %r14, %rdi
movq 0x28(%rsp), %rsi
callq 0xfd84
movl %ebx, 0x18(%r14)
xorl %r12d, %r12d
leaq 0x48(%rsp), %rdx
movl $0x5413, %esi           # imm = 0x5413
movl $0x1, %edi
xorl %eax, %eax
callq 0x74f0
movl %eax, %ecx
movq 0x8(%rsp), %rax
subq (%rsp), %rax
sarq $0x4, %rax
movl %ebp, %ebp
leaq (%rax,%rbp), %rsi
decq %rsi
movq %rsi, %rax
xorl %edx, %edx
divq %rbp
cmpq %rbp, %rsi
jb 0x10a2c
movq %rax, %r14
leaq 0x48(%rsp), %rax
movzwl (%rax), %eax
cmpl $-0x1, %ecx
movl $0x18, %ecx
cmovel %ecx, %eax
subl $0x1, %eax
movl $0x17, %ecx
cmovbl %ecx, %eax
movslq %eax, %rbx
cmpq $0x1, %r14
movq %r14, %rax
adcq $0x0, %rax
movq %rax, 0x50(%rsp)
movq $0x0, 0x20(%rsp)
xorl %r12d, %r12d
movq %rbp, 0x30(%rsp)
cmpq %rbx, 0x20(%rsp)
jne 0x10862
xorl %r15d, %r15d
leaq 0x103b6(%rip), %rdi     # 0x20b6c
xorl %eax, %eax
callq 0x7070
movq 0x1d7bc(%rip), %rax     # 0x2df80
movq (%rax), %rdi
callq 0x73f0
xorl %eax, %eax
cmpl $0x1f, %r15d
jle 0x10809
leal -0x4e(%r15), %ecx
cmpl $0x2b, %ecx
ja 0x10801
movabsq $0x900000009, %rdx      # imm = 0x900000009
btq %rcx, %rdx
jb 0x10a1b
movabsq $0x80000000800, %rdx    # imm = 0x80000000800
btq %rcx, %rdx
jb 0x10871
cmpl $0x20, %r15d
jne 0x10827
jmp 0x10871
cmpl $0x3, %r15d
je 0x108d3
cmpl $0xa, %r15d
je 0x108ba
cmpl $0xd, %r15d
je 0x108ba
testb $0x1, %al
je 0x10847
movq 0x1d79e(%rip), %rbx     # 0x2dfd0
movq (%rbx), %rsi
movl $0x7, %edi
callq 0x7440
movq (%rbx), %rdi
callq 0x73f0
callq 0x10bde
movl %eax, %edi
callq 0x10d6a
cmpl $-0x1, %eax
je 0x10847
movl %eax, %r15d
movb $0x1, %al
jmp 0x107ce
movl $0xa, %edi
callq 0x74d0
jmp 0x10901
leaq 0x102fe(%rip), %rdi     # 0x20b76
xorl %eax, %eax
callq 0x7070
movl $0x5413, %esi           # imm = 0x5413
movl $0x1, %edi
leaq 0x48(%rsp), %rdx
xorl %eax, %eax
callq 0x74f0
cmpl $-0x1, %eax
movzwl 0x48(%rsp), %eax
movl $0x18, %ecx
cmovel %ecx, %eax
subl $0x1, %eax
movl $0x17, %ecx
cmovbl %ecx, %eax
movslq %eax, %rbx
addq 0x20(%rsp), %rbx
jmp 0x10901
leaq 0x102b5(%rip), %rdi     # 0x20b76
xorl %eax, %eax
callq 0x7070
movq 0x20(%rsp), %rax
leaq 0x1(%rax), %rbx
jmp 0x10901
movl $0x2, %edx
movl $0x1, %edi
leaq 0x10285(%rip), %rsi     # 0x20b69
callq 0x7130
cmpq $-0x1, %rax
je 0x10b5c
movl $0x3, %r15d
movb $0x1, %r12b
movq 0x20(%rsp), %rbx
testb $0x1, %r12b
jne 0x10a2c
movq %rbx, 0x58(%rsp)
movq %r12, 0x60(%rsp)
xorl %ebx, %ebx
movq %r14, %r12
imulq %rbx, %r12
addq 0x20(%rsp), %r12
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
cmpq %rcx, %r12
jae 0x109a7
shlq $0x4, %r12
movl (%rax,%r12), %ebp
movq 0x1d639(%rip), %rax     # 0x2df80
movq (%rax), %rdi
callq 0x73f0
movq (%rsp), %rax
movq 0x8(%rax,%r12), %rdi
movl %ebp, %esi
callq 0x101e3
cmpl $-0x1, %eax
je 0x10b5c
incq %rbx
movq %r14, %rax
imulq %rbx, %rax
addq 0x20(%rsp), %rax
movq 0x8(%rsp), %rcx
subq (%rsp), %rcx
sarq $0x4, %rcx
cmpq %rcx, %rax
jae 0x109ac
movl %r13d, %r12d
subl %ebp, %r12d
jle 0x109ac
movq 0x30(%rsp), %rbp
movl $0x20, %edi
callq 0x74d0
decl %r12d
jne 0x10996
jmp 0x109b1
incq %rbx
jmp 0x109b1
movq 0x30(%rsp), %rbp
cmpq %rbp, %rbx
jne 0x10917
movq 0x20(%rsp), %rcx
incq %rcx
movq %rcx, 0x20(%rsp)
cmpq 0x50(%rsp), %rcx
movq 0x60(%rsp), %r12
movq 0x58(%rsp), %rbx
jne 0x107a1
jmp 0x10a2c
movq (%rsp), %rbx
movq 0x8(%rsp), %r14
cmpq %rbx, %r14
movq 0x28(%rsp), %r15
je 0x10a80
movq %rbx, %r15
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x10a06
callq 0x7490
addq $0x10, %r15
cmpq %r14, %r15
jne 0x109f8
movq %rbx, 0x8(%rsp)
movq 0x28(%rsp), %r15
jmp 0x10a80
leaq 0x10154(%rip), %rdi     # 0x20b76
xorl %eax, %eax
callq 0x7070
movb $0x1, %r12b
movq 0x1d54d(%rip), %rax     # 0x2df80
movq (%rax), %rdi
callq 0x73f0
movq (%rsp), %rbx
movq 0x8(%rsp), %r14
cmpq %rbx, %r14
je 0x10a6f
movq %r12, %r13
movq %rbx, %r12
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x10a5e
callq 0x7490
addq $0x10, %r12
cmpq %r14, %r12
jne 0x10a4f
movq %rbx, 0x8(%rsp)
movq %r13, %r12
cmpl $0x3, %r15d
setne %al
testb %al, %r12b
movq 0x28(%rsp), %r15
jne 0x10aa0
leaq 0x101a7(%rip), %rsi     # 0x20c2e
movl $0x1, %edx
movl $0x1, %edi
callq 0x7130
cmpq $-0x1, %rax
je 0x1062b
movq 0x8(%r15), %rdi
movl 0x1c(%r15), %esi
callq 0x101e3
xorl %ebp, %ebp
cmpl $-0x1, %eax
je 0x1065c
cmpl $0x0, 0x24(%r15)
sete %cl
movl 0x20(%r15), %eax
testl %eax, %eax
setg %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x10af4
leaq 0x10157(%rip), %rsi     # 0x20c2e
movl $0x1, %edx
movl $0x1, %edi
callq 0x7130
cmpq $-0x1, %rax
je 0x1065c
movl 0x20(%r15), %eax
movl %eax, 0x30(%r15)
movq 0x38(%rsp), %rdi
movq %r15, %rsi
callq 0xfd84
jmp 0x1065c
movq (%rsp), %rbx
movq 0x8(%rsp), %r14
cmpq %rbx, %r14
je 0x10b37
movq %rbx, %r15
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x10b29
callq 0x7490
addq $0x10, %r15
cmpq %r14, %r15
jne 0x10b1b
movq %rbx, 0x8(%rsp)
leaq 0x1002b(%rip), %rsi     # 0x20b69
movl $0x2, %edx
movl $0x1, %edi
callq 0x7130
cmpq $-0x1, %rax
movq 0x28(%rsp), %r15
jne 0x10a80
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x1065c
jmp 0x10b8f
jmp 0x10b8f
jmp 0x10b8f
jmp 0x10b8f
movq %rax, %rbx
movq %r15, %rdi
callq 0x7490
jmp 0x10b92
jmp 0x10b8f
jmp 0x10b8f
jmp 0x10b8f
movq %rax, %rbx
jmp 0x10ba1
movq %rax, %rbx
jmp 0x10bb0
jmp 0x10b8f
jmp 0x10b8f
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x10ba1
callq 0x7490
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x10bb0
callq 0x7490
movq %rsp, %rdi
callq 0x1492c
movq %rbx, %rdi
callq 0x7630