// File: /workspace/github_c_makefile_star2_O1/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 0x3330
testq %rax, %rax
je 0x4355
movq %rax, %r15
movq %rax, %rdi
callq 0x3340
testq %rax, %rax
je 0x4349
movq %rax, %r13
leaq 0x28(%rsp), %r12
leaq 0x48(%rsp), %rbp
cmpb $0x2e, 0x13(%r13)
je 0x4335
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6368
movq %r12, %rdi
leaq 0x5e49(%rip), %rsi      # 0xa09a
callq 0x3400
addq $0x13, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x3400
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x428d
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4293
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 0x42c7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x6368
movq %r14, %rdi
movq %rbp, %rsi
callq 0x4444
movl %eax, %r13d
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4310
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3210
testb %r13b, %r13b
je 0x43ba
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4335
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
movq %r15, %rdi
callq 0x3340
movq %rax, %r13
testq %rax, %rax
jne 0x4220
movq %r15, %rdi
callq 0x3380
movb $0x1, %al
jmp 0x43ab
movq 0x9c94(%rip), %r14      # 0xdff0
leaq 0x5d1d(%rip), %rsi      # 0xa080
movl $0x19, %edx
movq %r14, %rdi
callq 0x3240
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r14, %rdi
callq 0x3240
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3160
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
callq 0x3380
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x43a9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x43a9
jmp 0x441c
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4406
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3210
jmp 0x4406
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x443b
movq 0x18(%rsp), %rsi
jmp 0x4433
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x443b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3210
movq %rbx, %rdi
callq 0x33e0
nop