// File: /workspace/github_c_makefile_star2_O1/mrkite[P]regs/src/2mg.cc
// Function: doDirectory(unsigned short, std::shared_ptr<TheHandle>, int)
static void doDirectory(uint16_t key, Handle h, int depth) {
  uint32_t block = key * 512 + 4;
  h->seek(block);
  auto type = h->r8();
  if ((type & 0xf0) != 0xf0 && (type & 0xf0) != 0xe0) {
    std::cerr << "Invalid ProDOS disk" << std::endl;
    return;
  }
  std::string dirname = readFilename(h, type & 0xf);
  if (depth < 0) {
    mkdir(dirname.c_str(), 0777);
    chdir(dirname.c_str());
  } else {
    indent(depth);
    std::cout << dirname << " <dir>" << std::endl;
  }
  h->seek(block + 0x1f);
  auto entryLength = h->r8();
  auto entriesPerBlock = h->r8();
  auto fileCount = h->r16();
  uint8_t curEntry = 1;
  uint16_t curFile = 0;

  while (curFile < fileCount) {
    auto entry = block + curEntry * entryLength;
    h->seek(entry);
    auto type = h->r8();
    if (type) {
      doEntry(entry, h, depth < 0 ? -1 : depth + 1);
      curFile++;
    }
    curEntry++;
    if (curEntry == entriesPerBlock) {
      curEntry = 0;
      h->seek(block - 2);
      block = h->r16() * 512 + 4;
    }
  }
  if (depth < 0) {
    chdir("..");
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdx, 0x30(%rsp)
movq %rsi, %r14
movl %edi, %ebx
shll $0x9, %ebx
leal 0x4(%rbx), %esi
movq (%r14), %rdi
movq %rsi, 0x58(%rsp)
callq 0x7476
movq (%r14), %rdi
callq 0x7348
movl %eax, %ecx
andb $-0x20, %cl
movzbl %cl, %ecx
orl $0x10, %ecx
cmpl $0xf0, %ecx
jne 0x591b
movq (%r14), %rcx
movq %rcx, 0xc8(%rsp)
movq %r14, 0x20(%rsp)
movq 0x8(%r14), %rcx
movq %rcx, 0xd0(%rsp)
testq %rcx, %rcx
je 0x5972
movq 0x76b7(%rip), %rdx      # 0xcfc8
cmpb $0x0, (%rdx)
je 0x596e
incl 0x8(%rcx)
jmp 0x5972
movq 0x76ce(%rip), %rbx      # 0xcff0
leaq 0x277b(%rip), %rsi      # 0x80a4
movl $0x13, %edx
movq %rbx, %rdi
callq 0x5200
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5120
lock
incl 0x8(%rcx)
andb $0xf, %al
movzbl %al, %edx
leaq 0x148(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x67ed
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x599e
callq 0x6fa6
cmpl $0x0, 0x30(%rsp)
js 0x5a30
je 0x59d4
movq 0x761e(%rip), %r14      # 0xcfd0
leaq 0x271a(%rip), %r15      # 0x80d3
movq 0x30(%rsp), %rax
movl %eax, %ebp
movl $0x2, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x5200
decl %ebp
jne 0x59c0
movq 0x148(%rsp), %rsi
movq 0x150(%rsp), %rdx
movq 0x75e5(%rip), %rdi      # 0xcfd0
callq 0x5200
movq %rax, %r14
leaq 0x26be(%rip), %rsi      # 0x80b8
movl $0x6, %edx
movq %rax, %rdi
callq 0x5200
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5180
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5120
jmp 0x5a4f
movq 0x148(%rsp), %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x50f0
movq 0x148(%rsp), %rdi
callq 0x5290
movq 0x20(%rsp), %rax
movq (%rax), %rdi
orl $0x23, %ebx
movq %rbx, %rsi
callq 0x7476
movq 0x20(%rsp), %r14
movq (%r14), %rdi
callq 0x7348
movl %eax, %ebx
movq (%r14), %rdi
callq 0x7348
movb %al, 0xd(%rsp)
movq (%r14), %rdi
callq 0x7326
testw %ax, %ax
je 0x653a
movq 0x30(%rsp), %rcx
leal 0x1(%rcx), %edx
testl %ecx, %ecx
movzbl %bl, %ecx
movl %ecx, 0x64(%rsp)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmovsl %ecx, %edx
leal 0x1(%rdx), %esi
movq %rdx, 0x10(%rsp)
testl %edx, %edx
cmovsl %ecx, %esi
movl %esi, 0x60(%rsp)
movb $0x1, %cl
movl %ecx, 0x18(%rsp)
movl $0x0, 0x2c(%rsp)
movw %ax, 0xe(%rsp)
movzbl 0x18(%rsp), %r14d
imull 0x64(%rsp), %r14d
addl 0x58(%rsp), %r14d
movq 0x20(%rsp), %rbx
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x7476
movq (%rbx), %rdi
callq 0x7348
testb %al, %al
je 0x64e2
movq 0x20(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %r15
testq %r15, %r15
je 0x5b24
movq 0x74b4(%rip), %rax      # 0xcfc8
cmpb $0x0, (%rax)
je 0x5b1f
incl 0x8(%r15)
jmp 0x5b24
lock
incl 0x8(%r15)
movq %r13, %rdi
movq %r14, %rsi
callq 0x7476
movq %r13, %rdi
callq 0x7348
movl %eax, %ebx
movq %r13, 0xf8(%rsp)
movq %r15, 0x100(%rsp)
testq %r15, %r15
je 0x5b65
movq 0x7473(%rip), %rax      # 0xcfc8
cmpb $0x0, (%rax)
je 0x5b60
incl 0x8(%r15)
jmp 0x5b65
lock
incl 0x8(%r15)
movq %r15, (%rsp)
movzbl %bl, %r12d
movl %r12d, %edx
andl $0xf, %edx
leaq 0x88(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x67ed
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x5b9a
callq 0x6fa6
addl $0x10, %r14d
movq %r13, %rdi
movq %r14, %rsi
callq 0x7476
movq %r13, %rdi
callq 0x7348
movl %eax, %r14d
movq %r13, %rdi
callq 0x7326
movl %eax, %ebp
movl $0x2, %esi
movq %r13, %rdi
callq 0x7480
movq %r13, %rdi
callq 0x72f4
movl %eax, %r15d
addb $0x30, %bl
shrb $0x4, %bl
movzbl %bl, %eax
leal -0x4(%rax), %ecx
cmpl $0x3, %ecx
jae 0x5ec4
cmpl $0x0, 0x10(%rsp)
js 0x5f23
movq %r13, %rdi
callq 0x7326
movw %ax, 0x1e(%rsp)
movq %r13, %rdi
callq 0x7326
movw %ax, 0x1c(%rsp)
movl $0x3, %esi
movq %r13, %rdi
callq 0x7480
movq %r13, %rdi
callq 0x7326
movl %eax, %ebp
movq %r13, %rdi
callq 0x7326
movl %eax, %r12d
movq %r13, %rdi
callq 0x7326
movl %eax, %r13d
cmpl $0x0, 0x10(%rsp)
je 0x5c67
movq 0x10(%rsp), %rax
movl %eax, %ebx
movl $0x2, %edx
movq 0x7379(%rip), %rdi      # 0xcfd0
leaq 0x2475(%rip), %rsi      # 0x80d3
callq 0x5200
decl %ebx
jne 0x5c4b
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq 0x7352(%rip), %rdi      # 0xcfd0
callq 0x5200
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5120
cmpl $0x0, 0x10(%rsp)
je 0x5cd7
movq 0x10(%rsp), %rax
movl %eax, %ebx
movl $0x2, %edx
movq 0x7309(%rip), %rdi      # 0xcfd0
leaq 0x2405(%rip), %rsi      # 0x80d3
callq 0x5200
decl %ebx
jne 0x5cbb
movl $0x8, %edx
movq 0x72ed(%rip), %rdi      # 0xcfd0
leaq 0x23ec(%rip), %rsi      # 0x80d6
callq 0x5200
movl %r15d, %esi
movq 0x72d7(%rip), %rdi      # 0xcfd0
callq 0x5110
movl $0xa, %edx
movq 0x72c6(%rip), %rdi      # 0xcfd0
leaq 0x23ce(%rip), %rsi      # 0x80df
callq 0x5200
movzwl 0x1e(%rsp), %edi
movzwl 0x1c(%rsp), %esi
callq 0x6bc9
movl $0xb, %edx
movq 0x729f(%rip), %rdi      # 0xcfd0
leaq 0x23b2(%rip), %rsi      # 0x80ea
callq 0x5200
movzwl %r12w, %edi
movzwl %r13w, %esi
callq 0x6bc9
movq 0x727f(%rip), %rcx      # 0xcfd0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x5180
movsbl %al, %esi
movq 0x7261(%rip), %rdi      # 0xcfd0
callq 0x5040
movq %rax, %rdi
callq 0x5120
cmpl $0x0, 0x10(%rsp)
je 0x5da6
movq 0x10(%rsp), %rax
movl %eax, %ebx
movl $0x2, %edx
movq 0x723a(%rip), %rdi      # 0xcfd0
leaq 0x2336(%rip), %rsi      # 0x80d3
callq 0x5200
decl %ebx
jne 0x5d8a
movl $0x9, %edx
movq 0x721e(%rip), %rdi      # 0xcfd0
leaq 0x233d(%rip), %rsi      # 0x80f6
callq 0x5200
movq 0x720b(%rip), %rsi      # 0xcfd0
movq (%rsi), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rsi,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rsi,%rcx)
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%rsi,%rcx)
movq -0x18(%rax), %rax
leaq (%rsi,%rax), %rbx
cmpb $0x0, 0xe1(%rsi,%rax)
jne 0x5e13
movq %rbx, %rdi
movl $0x20, %esi
callq 0x5180
movb %al, 0xe0(%rbx)
movb $0x1, 0xe1(%rbx)
movb $0x30, 0xe0(%rbx)
movzbl %r14b, %ebx
movq 0x71ab(%rip), %rdi      # 0xcfd0
movl %ebx, %esi
callq 0x5310
movq %rax, %r15
movl $0x7, %edx
movq %rax, %rdi
leaq 0x22c2(%rip), %rsi      # 0x8100
callq 0x5200
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x4, 0x10(%r15,%rax)
movzwl %bp, %r14d
movq %r15, %rdi
movq %r14, %rsi
callq 0x5110
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x18(%rax,%rcx), %edx
andl $-0x4b, %edx
orl $0x2, %edx
movl %edx, 0x18(%rax,%rcx)
movl $0x1, %edx
movq %rax, %rdi
leaq 0x224e(%rip), %rsi      # 0x80d4
callq 0x5200
shll $0x8, %r14d
orl %ebx, %r14d
movl $0x10, %r15d
leaq 0x56f1(%rip), %rcx      # 0xb590
movl -0x10(%r15,%rcx), %eax
andl %r14d, %eax
cmpl -0xc(%r15,%rcx), %eax
je 0x600b
addq $0x18, %r15
cmpq $0x1768, %r15           # imm = 0x1768
jne 0x5e98
jmp 0x60b8
testl %eax, %eax
je 0x5f86
cmpl $0x8, %eax
jne 0x5fb5
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x7016
movq (%rsp), %r12
testq %r12, %r12
je 0x617e
movq 0x70b8(%rip), %rax      # 0xcfc8
cmpb $0x0, (%rax)
je 0x6178
incl 0x8(%r12)
jmp 0x617e
leaq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
movq 0x88(%rsp), %rsi
movq 0x90(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x7016
movq %r13, 0x38(%rsp)
movq (%rsp), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x60f7
movq 0x7057(%rip), %rax      # 0xcfc8
cmpb $0x0, (%rax)
je 0x60ef
movq (%rsp), %rax
incl 0x8(%rax)
jmp 0x60f7
movq %r13, 0x38(%rsp)
movq (%rsp), %rax
movq %rax, 0x40(%rsp)
testq %rax, %rax
je 0x614f
movq 0x7024(%rip), %rcx      # 0xcfc8
cmpb $0x0, (%rcx)
je 0x614b
incl 0x8(%rax)
jmp 0x614f
movl $0x16, %edx
movq 0x702f(%rip), %rdi      # 0xcff0
leaq 0x2142(%rip), %rsi      # 0x810a
callq 0x5200
movq 0x701c(%rip), %rdi      # 0xcff0
movl %r12d, %esi
callq 0x5310
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5120
jmp 0x64ab
leaq 0x557e(%rip), %rax      # 0xb590
movq -0x8(%r15,%rax), %rbx
testq %rbx, %rbx
je 0x6038
movq %rbx, %rdi
callq 0x50e0
movq 0x6fa5(%rip), %rdi      # 0xcfd0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x5200
jmp 0x6056
movq 0x6f91(%rip), %rcx      # 0xcfd0
movq (%rcx), %rax
movq -0x18(%rax), %rax
leaq (%rcx,%rax), %rdi
movl 0x20(%rcx,%rax), %esi
orl $0x1, %esi
callq 0x5300
movl $0x1, %edx
movq 0x6f6e(%rip), %rdi      # 0xcfd0
leaq 0x209f(%rip), %rsi      # 0x8108
callq 0x5200
leaq 0x551b(%rip), %rax      # 0xb590
movq (%r15,%rax), %rbx
testq %rbx, %rbx
je 0x609a
movq %rbx, %rdi
callq 0x50e0
movq 0x6f43(%rip), %rdi      # 0xcfd0
movq %rbx, %rsi
movq %rax, %rdx
callq 0x5200
jmp 0x60b8
movq 0x6f2f(%rip), %rcx      # 0xcfd0
movq (%rcx), %rax
movq -0x18(%rax), %rax
leaq (%rcx,%rax), %rdi
movl 0x20(%rcx,%rax), %esi
orl $0x1, %esi
callq 0x5300
movq 0x6f11(%rip), %rcx      # 0xcfd0
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x5180
movsbl %al, %esi
movq 0x6ef3(%rip), %rdi      # 0xcfd0
callq 0x5040
movq %rax, %rdi
callq 0x5120
jmp 0x64ab
movq (%rsp), %rax
lock
incl 0x8(%rax)
shrl $0x4, %r12d
movzwl %bp, %edi
movl %r15d, %esi
leaq 0xd8(%rsp), %rdx
leaq 0x38(%rsp), %rcx
movl %r12d, %r8d
callq 0x68dc
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x6125
callq 0x6fa6
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x64ab
movq 0xe8(%rsp), %rsi
jmp 0x64a3
lock
incl 0x8(%rax)
movzwl %bp, %edi
leaq 0x38(%rsp), %rsi
movl 0x60(%rsp), %edx
callq 0x58a0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x64ab
callq 0x6fa6
jmp 0x64ab
lock
incl 0x8(%r12)
movzwl %bp, %r15d
shll $0x9, %r15d
movq %r13, %rdi
movq %r15, %rsi
callq 0x7476
movq %r13, %rdi
callq 0x7348
movl %eax, %ebx
movq %r13, %rdi
callq 0x7326
movl %eax, %ebp
movl $0x2, %esi
movq %r13, %rdi
callq 0x7480
movq %r13, %rdi
callq 0x72f4
movl %eax, %r14d
cmpl $0x0, 0x10(%rsp)
jns 0x6261
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x7016
movq %r13, 0x138(%rsp)
movq %r12, 0x140(%rsp)
testq %r12, %r12
je 0x6217
movq 0x6dc3(%rip), %rax      # 0xcfc8
cmpb $0x0, (%rax)
je 0x6211
incl 0x8(%r12)
jmp 0x6217
lock
incl 0x8(%r12)
movzbl %bl, %r8d
movzwl %bp, %edi
movl %r14d, %esi
leaq 0x38(%rsp), %rdx
leaq 0x138(%rsp), %rcx
callq 0x68dc
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x6245
callq 0x6fa6
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x6261
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0x7016
leaq 0xa8(%rsp), %rdi
leaq 0x308d(%rip), %rsi      # 0x9327
callq 0x5370
orl $0x100, %r15d           # imm = 0x100
movq %r13, %rdi
movq %r15, %rsi
callq 0x7476
movq %r13, %rdi
callq 0x7348
movl %eax, %ebx
movq %r13, %rdi
callq 0x7326
movl %eax, %r15d
movl $0x2, %esi
movq %r13, %rdi
callq 0x7480
movq %r13, %rdi
callq 0x72f4
movl %eax, %ebp
cmpl $0x0, 0x10(%rsp)
js 0x63a9
je 0x630d
movq 0x10(%rsp), %rax
movl %eax, %ebx
movl $0x2, %edx
movq 0x6cd3(%rip), %rdi      # 0xcfd0
leaq 0x1dcf(%rip), %rsi      # 0x80d3
callq 0x5200
decl %ebx
jne 0x62f1
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0x6cb2(%rip), %rdi      # 0xcfd0
callq 0x5200
movq %rax, %rbx
movl $0x2, %edx
movq %rax, %rdi
leaq 0x1d9e(%rip), %rsi      # 0x80d3
callq 0x5200
movl %r14d, %esi
movq %rbx, %rdi
callq 0x5110
movq %rax, %rbx
movl $0x12, %edx
movq %rax, %rdi
leaq 0x2fd5(%rip), %rsi      # 0x932c
callq 0x5200
movl %ebp, %esi
movq %rbx, %rdi
callq 0x5110
movq %rax, %rbx
movl $0x6, %edx
movq %rax, %rdi
leaq 0x2fc7(%rip), %rsi      # 0x933f
callq 0x5200
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5180
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5120
jmp 0x645d
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x118(%rsp), %rdi
callq 0x7016
movq %r13, 0x108(%rsp)
movq %r12, 0x110(%rsp)
testq %r12, %r12
je 0x6407
movq 0x6bd3(%rip), %rax      # 0xcfc8
cmpb $0x0, (%rax)
je 0x6401
incl 0x8(%r12)
jmp 0x6407
lock
incl 0x8(%r12)
movzbl %bl, %r8d
movzwl %r15w, %edi
movl %ebp, %esi
leaq 0x118(%rsp), %rdx
leaq 0x108(%rsp), %rcx
callq 0x68dc
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x6438
callq 0x6fa6
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x645d
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6482
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x51c0
testq %r12, %r12
je 0x648f
movq %r12, %rdi
callq 0x6fa6
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x64ab
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x64d0
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x51c0
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x64de
callq 0x6fa6
incl 0x2c(%rsp)
movl 0x18(%rsp), %eax
incb %al
movl %eax, 0x18(%rsp)
cmpb 0xd(%rsp), %al
jne 0x652a
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x58(%rsp), %rsi
addl $-0x2, %esi
callq 0x7476
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x7326
movzwl %ax, %eax
shll $0x9, %eax
orl $0x4, %eax
movq %rax, 0x58(%rsp)
movl $0x0, 0x18(%rsp)
movzwl 0xe(%rsp), %eax
cmpw %ax, 0x2c(%rsp)
jb 0x5acb
cmpl $0x0, 0x30(%rsp)
jns 0x654d
leaq 0x1b77(%rip), %rdi      # 0x80bf
callq 0x5290
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x656e
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x51c0
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x6595
callq 0x6fa6
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x66d4
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x66d4
movq %rax, %rbx
movq 0x140(%rsp), %rdi
testq %rdi, %rdi
je 0x65d8
callq 0x6fa6
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0x66f9
movq 0x48(%rsp), %rsi
jmp 0x66f1
jmp 0x6729
jmp 0x6729
jmp 0x6729
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x678e
callq 0x6fa6
jmp 0x678e
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x6737
callq 0x6fa6
jmp 0x6737
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x664f
callq 0x6fa6
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x6737
movq 0xe8(%rsp), %rsi
jmp 0x671d
jmp 0x6734
jmp 0x6734
jmp 0x6734
jmp 0x6729
jmp 0x6734
jmp 0x6734
jmp 0x66d1
jmp 0x6734
movq %rax, %rbx
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0x66af
callq 0x6fa6
movq (%rsp), %r15
jmp 0x6760
jmp 0x6734
jmp 0x6734
jmp 0x6729
movq %rax, %rbx
jmp 0x66f9
jmp 0x66d1
jmp 0x6729
movq %rax, %rbx
jmp 0x6760
jmp 0x6734
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x66f9
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x51c0
cmpq $0x0, (%rsp)
je 0x6709
movq (%rsp), %rdi
callq 0x6fa6
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6737
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x6737
jmp 0x6734
movq %rax, %rbx
jmp 0x676d
jmp 0x6734
jmp 0x6734
jmp 0x6734
movq %rax, %rbx
movq (%rsp), %r15
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x6760
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x51c0
testq %r15, %r15
je 0x676d
movq %r15, %rdi
callq 0x6fa6
leaq 0x158(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x678e
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x51c0
movq %rbx, %rdi
callq 0x5340