// File: /workspace/github_c_makefile_star2_O3/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 $0x178, %rsp            # imm = 0x178
movq %rdx, 0x40(%rsp)
movq %rsi, %r14
movl %edi, %ebx
shll $0x9, %ebx
leal 0x4(%rbx), %esi
movq (%r14), %rdi
movq %rsi, 0x68(%rsp)
callq 0x741e
movq (%r14), %rdi
callq 0x72f0
movl %eax, %ecx
andb $-0x20, %cl
movzbl %cl, %ecx
orl $0x10, %ecx
cmpl $0xf0, %ecx
jne 0x58eb
movq (%r14), %rcx
movq %rcx, 0xd8(%rsp)
movq %r14, 0x30(%rsp)
movq 0x8(%r14), %rcx
movq %rcx, 0xe0(%rsp)
testq %rcx, %rcx
je 0x5942
movq 0x76df(%rip), %rdx      # 0xcfc0
cmpb $0x0, (%rdx)
je 0x593e
incl 0x8(%rcx)
jmp 0x5942
movq 0x76f6(%rip), %rbx      # 0xcfe8
leaq 0x27ab(%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 $0x178, %rsp            # imm = 0x178
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 0x158(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x6796
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x596e
callq 0x6f48
cmpl $0x0, 0x40(%rsp)
js 0x5a00
je 0x59a4
movq 0x7646(%rip), %r14      # 0xcfc8
leaq 0x274a(%rip), %r15      # 0x80d3
movq 0x40(%rsp), %rax
movl %eax, %ebp
movl $0x2, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x5200
decl %ebp
jne 0x5990
movq 0x158(%rsp), %rsi
movq 0x160(%rsp), %rdx
movq 0x760d(%rip), %rdi      # 0xcfc8
callq 0x5200
movq %rax, %r14
leaq 0x26ee(%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 0x5a1f
movq 0x158(%rsp), %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x50f0
movq 0x158(%rsp), %rdi
callq 0x5290
movq 0x30(%rsp), %rax
movq (%rax), %rdi
orl $0x23, %ebx
movq %rbx, %rsi
callq 0x741e
movq 0x30(%rsp), %r14
movq (%r14), %rdi
callq 0x72f0
movl %eax, %ebx
movq (%r14), %rdi
callq 0x72f0
movb %al, 0x15(%rsp)
movq (%r14), %rdi
callq 0x72ce
testw %ax, %ax
je 0x64d3
movq 0x40(%rsp), %rcx
leal 0x1(%rcx), %edx
testl %ecx, %ecx
movzbl %bl, %ecx
movl %ecx, 0x74(%rsp)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmovsl %ecx, %edx
leal 0x1(%rdx), %esi
movq %rdx, 0x28(%rsp)
testl %edx, %edx
cmovsl %ecx, %esi
movl %esi, 0x70(%rsp)
movb $0x1, %cl
movl %ecx, 0x1c(%rsp)
movl $0x0, 0x3c(%rsp)
movq 0x752b(%rip), %rbx      # 0xcfc8
movw %ax, 0x16(%rsp)
movzbl 0x1c(%rsp), %r14d
imull 0x74(%rsp), %r14d
addl 0x68(%rsp), %r14d
movq 0x30(%rsp), %r15
movq (%r15), %rdi
movq %r14, %rsi
callq 0x741e
movq (%r15), %rdi
callq 0x72f0
testb %al, %al
je 0x647b
movq 0x30(%rsp), %rax
movq (%rax), %r13
movq 0x8(%rax), %r15
testq %r15, %r15
je 0x5afb
movq 0x74d5(%rip), %rax      # 0xcfc0
cmpb $0x0, (%rax)
je 0x5af6
incl 0x8(%r15)
jmp 0x5afb
lock
incl 0x8(%r15)
movq %r13, %rdi
movq %r14, %rsi
callq 0x741e
movq %r13, %rdi
callq 0x72f0
movl %eax, %ebp
movq %r13, 0x108(%rsp)
movq %r15, 0x110(%rsp)
testq %r15, %r15
je 0x5b3c
movq 0x7494(%rip), %rax      # 0xcfc0
cmpb $0x0, (%rax)
je 0x5b37
incl 0x8(%r15)
jmp 0x5b3c
lock
incl 0x8(%r15)
movq %r15, 0x8(%rsp)
movzbl %bpl, %r12d
movl %r12d, %edx
andl $0xf, %edx
leaq 0x98(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x6796
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x5b72
callq 0x6f48
addl $0x10, %r14d
movq %r13, %rdi
movq %r14, %rsi
callq 0x741e
movq %r13, %rdi
callq 0x72f0
movb %al, 0x18(%rsp)
movq %r13, %rdi
callq 0x72ce
movl %eax, %r14d
movl $0x2, %esi
movq %r13, %rdi
callq 0x7428
movq %r13, %rdi
callq 0x729c
movl %eax, %r15d
addb $0x30, %bpl
shrb $0x4, %bpl
movzbl %bpl, %eax
leal -0x4(%rax), %ecx
cmpl $0x3, %ecx
jae 0x5e54
cmpl $0x0, 0x28(%rsp)
js 0x5eb5
movq %r13, %rdi
callq 0x72ce
movl %eax, %r12d
movq %r13, %rdi
callq 0x72ce
movw %ax, 0x26(%rsp)
movl $0x3, %esi
movq %r13, %rdi
callq 0x7428
movq %r13, %rdi
callq 0x72ce
movw %ax, 0x22(%rsp)
movq %r13, %rdi
callq 0x72ce
movw %ax, 0x24(%rsp)
movq %r13, %rdi
callq 0x72ce
movl %eax, %r13d
movq 0x28(%rsp), %rax
movl %eax, %ebp
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x24a0(%rip), %rsi      # 0x80d3
callq 0x5200
decl %ebp
jne 0x5c24
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
movq %rbx, %rdi
callq 0x5200
movq %rax, %r14
movq (%rax), %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
movq 0x28(%rsp), %rax
movl %eax, %ebp
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x243f(%rip), %rsi      # 0x80d3
callq 0x5200
decl %ebp
jne 0x5c85
movl $0x8, %edx
movq %rbx, %rdi
leaq 0x242a(%rip), %rsi      # 0x80d6
callq 0x5200
movl %r15d, %esi
movq %rbx, %rdi
callq 0x5110
movl $0xa, %edx
movq %rbx, %rdi
leaq 0x2414(%rip), %rsi      # 0x80df
callq 0x5200
movzwl %r12w, %edi
movzwl 0x26(%rsp), %esi
callq 0x6b6f
movl $0xb, %edx
movq %rbx, %rdi
leaq 0x23fd(%rip), %rsi      # 0x80ea
callq 0x5200
movzwl 0x24(%rsp), %edi
movzwl %r13w, %esi
callq 0x6b6f
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
movq 0x28(%rsp), %rax
movl %eax, %ebp
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x2396(%rip), %rsi      # 0x80d3
callq 0x5200
decl %ebp
jne 0x5d2e
movl $0x9, %edx
movq %rbx, %rdi
leaq 0x23a1(%rip), %rsi      # 0x80f6
callq 0x5200
movq (%rbx), %rax
movq -0x18(%rax), %rcx
movl 0x18(%rbx,%rcx), %edx
andl $-0x4b, %edx
orl $0x8, %edx
movl %edx, 0x18(%rbx,%rcx)
movq -0x18(%rax), %rcx
movq $0x2, 0x10(%rbx,%rcx)
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %r14
cmpb $0x0, 0xe1(%rbx,%rax)
jne 0x5da3
movq %r14, %rdi
movl $0x20, %esi
callq 0x5180
movb $0x1, 0xe1(%r14)
movb $0x30, 0xe0(%r14)
movzbl 0x18(%rsp), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5310
movq %rax, %r15
movl $0x7, %edx
movq %rax, %rdi
leaq 0x2334(%rip), %rsi      # 0x8100
callq 0x5200
movq (%r15), %rax
movq -0x18(%rax), %rax
movq $0x4, 0x10(%r15,%rax)
movzwl 0x22(%rsp), %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 0x22be(%rip), %rsi      # 0x80d4
callq 0x5200
shll $0x8, %r14d
orl %ebp, %r14d
movl $0x10, %r15d
leaq 0x5791(%rip), %rcx      # 0xb5c0
movl -0x10(%r15,%rcx), %eax
andl %r14d, %eax
cmpl -0xc(%r15,%rcx), %eax
je 0x5fa0
addq $0x18, %r15
cmpq $0x1768, %r15           # imm = 0x1768
jne 0x5e28
jmp 0x6033
testl %eax, %eax
je 0x5f1a
cmpl $0x8, %eax
jne 0x5f4a
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x78(%rsp), %rdi
callq 0x6fb8
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x60ef
movq 0x711c(%rip), %rcx      # 0xcfc0
cmpb $0x0, (%rcx)
je 0x60eb
incl 0x8(%rax)
jmp 0x60ef
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x6fb8
movq %r13, 0x48(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x6068
movq 0x70bc(%rip), %rax      # 0xcfc0
cmpb $0x0, (%rax)
je 0x605f
movq 0x8(%rsp), %rax
incl 0x8(%rax)
jmp 0x6068
movq %r13, 0x48(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x50(%rsp)
testq %rax, %rax
je 0x60c1
movq 0x7087(%rip), %rcx      # 0xcfc0
cmpb $0x0, (%rcx)
je 0x60bd
incl 0x8(%rax)
jmp 0x60c1
movl $0x16, %edx
movq 0x7092(%rip), %rdi      # 0xcfe8
leaq 0x21ad(%rip), %rsi      # 0x810a
callq 0x5200
movq 0x707f(%rip), %rdi      # 0xcfe8
movl %r12d, %esi
callq 0x5310
movq %rax, %r14
movq (%rax), %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 0x6443
leaq 0x5619(%rip), %rax      # 0xb5c0
movq -0x8(%r15,%rax), %r14
testq %r14, %r14
je 0x5fc9
movq %r14, %rdi
callq 0x50e0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x5200
jmp 0x5fe0
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x5300
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x2119(%rip), %rsi      # 0x8108
callq 0x5200
leaq 0x55c5(%rip), %rax      # 0xb5c0
movq (%r15,%rax), %r14
testq %r14, %r14
je 0x601c
movq %r14, %rdi
callq 0x50e0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x5200
jmp 0x6033
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x5300
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 0x6443
movq 0x8(%rsp), %rax
lock
incl 0x8(%rax)
shrl $0x4, %r12d
movzwl %r14w, %edi
movl %r15d, %esi
leaq 0xe8(%rsp), %rdx
leaq 0x48(%rsp), %rcx
movl %r12d, %r8d
callq 0x6882
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x6097
callq 0x6f48
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x6443
movq 0xf8(%rsp), %rsi
jmp 0x643b
lock
incl 0x8(%rax)
movzwl %r14w, %edi
leaq 0x48(%rsp), %rsi
movl 0x70(%rsp), %edx
callq 0x5870
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x6443
callq 0x6f48
jmp 0x6443
lock
incl 0x8(%rax)
movzwl %r14w, %r15d
shll $0x9, %r15d
movq %r13, %rdi
movq %r15, %rsi
callq 0x741e
movq %r13, %rdi
callq 0x72f0
movl %eax, %ebp
movq %r13, %rdi
callq 0x72ce
movl %eax, %r12d
movl $0x2, %esi
movq %r13, %rdi
callq 0x7428
movq %r13, %rdi
callq 0x729c
movl %eax, %r14d
cmpl $0x0, 0x28(%rsp)
jns 0x61e2
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x6fb8
movq %r13, 0x148(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x150(%rsp)
testq %rax, %rax
je 0x6197
movq 0x6e41(%rip), %rax      # 0xcfc0
cmpb $0x0, (%rax)
je 0x618e
movq 0x8(%rsp), %rax
incl 0x8(%rax)
jmp 0x6197
movq 0x8(%rsp), %rax
lock
incl 0x8(%rax)
movzbl %bpl, %r8d
movzwl %r12w, %edi
movl %r14d, %esi
leaq 0x48(%rsp), %rdx
leaq 0x148(%rsp), %rcx
callq 0x6882
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0x61c6
callq 0x6f48
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x61e2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0xc8(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %rdi
callq 0x6fb8
leaq 0xb8(%rsp), %rdi
leaq 0x3109(%rip), %rsi      # 0x9327
callq 0x5370
orl $0x100, %r15d           # imm = 0x100
movq %r13, %rdi
movq %r15, %rsi
callq 0x741e
movq %r13, %rdi
callq 0x72f0
movl %eax, %ebp
movq %r13, %rdi
callq 0x72ce
movl %eax, %r12d
movl $0x2, %esi
movq %r13, %rdi
callq 0x7428
movl %r14d, %r15d
movq %r13, %rdi
callq 0x729c
movl %eax, 0x18(%rsp)
movq 0x28(%rsp), %rax
movl %eax, %r14d
testl %eax, %eax
js 0x632c
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x1e4e(%rip), %rsi      # 0x80d3
callq 0x5200
decl %r14d
jne 0x6276
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
movq %rbx, %rdi
callq 0x5200
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
leaq 0x1e1d(%rip), %rsi      # 0x80d3
callq 0x5200
movl %r15d, %esi
movq %r12, %rdi
callq 0x5110
movq %rax, %r14
movl $0x12, %edx
movq %rax, %rdi
leaq 0x3054(%rip), %rsi      # 0x932c
callq 0x5200
movl 0x18(%rsp), %esi
movq %r14, %rdi
callq 0x5110
movq %rax, %r14
movl $0x6, %edx
movq %rax, %rdi
leaq 0x3044(%rip), %rsi      # 0x933f
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 0x63ed
leaq 0x138(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x128(%rsp), %rdi
callq 0x6fb8
movq %r13, 0x118(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x120(%rsp)
testq %rax, %rax
je 0x6395
movq 0x6c43(%rip), %rax      # 0xcfc0
cmpb $0x0, (%rax)
je 0x638c
movq 0x8(%rsp), %rax
incl 0x8(%rax)
jmp 0x6395
movq 0x8(%rsp), %rax
lock
incl 0x8(%rax)
movzbl %bpl, %r8d
movzwl %r12w, %edi
movl 0x18(%rsp), %esi
leaq 0x128(%rsp), %rdx
leaq 0x118(%rsp), %rcx
callq 0x6882
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x63c8
callq 0x6f48
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x63ed
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x6412
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6421
callq 0x6f48
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x6443
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6468
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x6477
callq 0x6f48
incl 0x3c(%rsp)
movl 0x1c(%rsp), %eax
incb %al
movl %eax, 0x1c(%rsp)
cmpb 0x15(%rsp), %al
jne 0x64c3
movq 0x30(%rsp), %rax
movq (%rax), %rdi
movq 0x68(%rsp), %rsi
addl $-0x2, %esi
callq 0x741e
movq 0x30(%rsp), %rax
movq (%rax), %rdi
callq 0x72ce
movzwl %ax, %eax
shll $0x9, %eax
orl $0x4, %eax
movq %rax, 0x68(%rsp)
movl $0x0, 0x1c(%rsp)
movzwl 0x16(%rsp), %eax
cmpw %ax, 0x3c(%rsp)
jb 0x5aa2
cmpl $0x0, 0x40(%rsp)
jns 0x64e6
leaq 0x1bde(%rip), %rdi      # 0x80bf
callq 0x5290
leaq 0x168(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6507
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x51c0
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x120(%rsp), %rdi
testq %rdi, %rdi
je 0x652e
callq 0x6f48
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x667b
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x667b
movq %rax, %rbx
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0x6571
callq 0x6f48
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x66a0
movq 0x58(%rsp), %rsi
jmp 0x6698
jmp 0x6670
jmp 0x6670
jmp 0x6670
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x6737
callq 0x6f48
jmp 0x6737
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x66df
callq 0x6f48
jmp 0x66df
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x65e8
callq 0x6f48
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x66df
movq 0xf8(%rsp), %rsi
jmp 0x66cc
jmp 0x66dc
jmp 0x66dc
jmp 0x66dc
jmp 0x6670
jmp 0x66dc
jmp 0x66dc
jmp 0x6678
jmp 0x66dc
jmp 0x66dc
jmp 0x66dc
movq %rax, %rbx
movq 0x110(%rsp), %rdi
testq %rdi, %rdi
je 0x664f
callq 0x6f48
movq 0x8(%rsp), %r15
jmp 0x6709
jmp 0x6670
movq %rax, %rbx
jmp 0x66a0
jmp 0x6678
jmp 0x6670
movq %rax, %rbx
jmp 0x6709
jmp 0x66dc
jmp 0x66dc
movq %rax, %rbx
jmp 0x6716
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x66a0
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x51c0
cmpq $0x0, 0x8(%rsp)
je 0x66b2
movq 0x8(%rsp), %rdi
callq 0x6f48
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x66df
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x66df
jmp 0x66dc
jmp 0x66dc
jmp 0x66dc
movq %rax, %rbx
movq 0x8(%rsp), %r15
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6709
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x51c0
testq %r15, %r15
je 0x6716
movq %r15, %rdi
callq 0x6f48
leaq 0x168(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6737
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x51c0
movq %rbx, %rdi
callq 0x5340