// File: /workspace/github_c_makefile_star2_O3/mrkite[P]regs/docmaker/parser.cc
// Function: Parser::run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Parser::run(std::string directory) {
  DIR *dir = opendir(directory.c_str());
  if (!dir) {
    std::cerr << "Couldn't open directory: " << directory << std::endl;
    return false;
  }
  struct dirent *file;
  while ((file = readdir(dir)) != nullptr) {
    if (file->d_name[0] == '.') {
      continue;
    }
    std::string filename = directory + "/" + file->d_name;
    if (!load(filename)) {
      closedir(dir);
      return false;
    }
  }
  closedir(dir);
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rdi
callq 0x3320
testq %rax, %rax
je 0x4349
movq %rax, %r15
movq %rax, %rdi
callq 0x3330
testq %rax, %rax
je 0x433d
movq %rax, %r13
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %rbp
cmpb $0x2e, 0x13(%r13)
je 0x4329
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6342
movq %r12, %rdi
leaq 0x5e55(%rip), %rsi      # 0xa09a
callq 0x33f0
addq $0x13, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x33f0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4281
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4287
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x42bb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x6342
movq %r14, %rdi
movq %rbp, %rsi
callq 0x4438
movl %eax, %r13d
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4304
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
testb %r13b, %r13b
je 0x43ae
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4329
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
movq %r15, %rdi
callq 0x3330
movq %rax, %r13
testq %rax, %rax
jne 0x4214
movq %r15, %rdi
callq 0x3370
movb $0x1, %al
jmp 0x439f
movq 0x9ca0(%rip), %r14      # 0xdff0
leaq 0x5d29(%rip), %rsi      # 0xa080
movl $0x19, %edx
movq %r14, %rdi
callq 0x3230
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x3230
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3150
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x3370
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x439d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x439d
jmp 0x4410
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x43fa
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3200
jmp 0x43fa
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x442f
movq 0x18(%rsp), %rsi
jmp 0x4427
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x442f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3200
movq %rbx, %rdi
callq 0x33d0
nop