// File: /workspace/github_cpp_makefile_star2_O1/williewillus[P]panda_scratchpad/src/checker/DiskContents.cpp
// Function: DiskContents::makeFiles(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::basic_ofstream<char, std::char_traits<char>>&)
bool DiskContents::makeFiles(string base_path, ofstream &diff_file) {
  get_contents(base_path.c_str());
  for (auto &i : contents) {
    if (S_ISDIR((i.second).stat_attr.st_mode)) {
      string filepath = base_path + i.first + "/" + "_dummy";
      int fd = open(filepath.c_str(), O_CREAT|O_RDWR);
      if (fd < 0) {
        diff_file <<  "Couldn't create file " << filepath << endl;
        cout <<  "Couldn't create file " << filepath << endl;
        return false;
      }
      close(fd);
    }
  }
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, -0x50(%rbp)
movq %rdi, %rbx
movq %rsi, -0x60(%rbp)
movq (%rsi), %rsi
callq 0x11016
movq 0x80(%rbx), %r12
addq $0x70, %rbx
cmpq %rbx, %r12
sete %r13b
je 0x13712
leaq -0x70(%rbp), %r15
movq %rbx, -0x58(%rbp)
movl 0x170(%r12), %eax
movl $0xf000, %ecx           # imm = 0xF000
andl %ecx, %eax
cmpl $0x4000, %eax           # imm = 0x4000
jne 0x136fa
leaq 0x20(%r12), %rdx
leaq -0xa0(%rbp), %r14
movq %r14, %rdi
movq -0x60(%rbp), %rsi
callq 0x13a79
movq %r14, %rdi
leaq 0x20bc(%rip), %rsi      # 0x1561a
callq 0x5860
movq %r15, -0x80(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x13583
movq %rdx, -0x80(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x70(%rbp)
jmp 0x1358a
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, -0x78(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x80(%rbp), %rdi
leaq 0x2200(%rip), %rsi      # 0x157ac
callq 0x5860
leaq -0x38(%rbp), %rsi
movq %rsi, -0x48(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x135d5
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x135db
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x13600
callq 0x5460
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x13618
callq 0x5460
movq -0x48(%rbp), %rdi
movl $0x42, %esi
xorl %eax, %eax
callq 0x5330
movl %eax, %ebx
testl %eax, %eax
js 0x1363a
movl %ebx, %edi
callq 0x5890
jmp 0x136e0
movl $0x15, %edx
movq -0x50(%rbp), %rdi
leaq 0x2169(%rip), %rsi      # 0x157b3
callq 0x54f0
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x50(%rbp), %rdi
callq 0x54f0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5470
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5300
movl $0x15, %edx
movq 0x8932(%rip), %rdi      # 0x1bfc8
leaq 0x2116(%rip), %rsi      # 0x157b3
callq 0x54f0
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq 0x8917(%rip), %rdi      # 0x1bfc8
callq 0x54f0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5470
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5300
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x136f2
callq 0x5460
testl %ebx, %ebx
movq -0x58(%rbp), %rbx
js 0x13712
movq %r12, %rdi
callq 0x5310
movq %rax, %r12
cmpq %rbx, %rax
sete %r13b
jne 0x13522
andb $0x1, %r13b
movl %r13d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x1373e
callq 0x5460
jmp 0x1373e
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
jmp 0x13759
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x13763
callq 0x5460
movq %rbx, %rdi
callq 0x57c0
nop