// File: /workspace/github_cpp_makefile_star2_O2/alan0201tw[P]RayTracer/include/tiny_obj_loader.h
// Function: tinyobj::LoadObj(tinyobj::attrib_t*, std::vector<tinyobj::shape_t, std::allocator<tinyobj::shape_t>>*, std::vector<tinyobj::material_t, std::allocator<tinyobj::material_t>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, char const*, char const*, bool, bool)
bool LoadObj(attrib_t *attrib, std::vector<shape_t> *shapes,
             std::vector<material_t> *materials, std::string *warn,
             std::string *err, const char *filename, const char *mtl_basedir,
             bool trianglulate, bool default_vcols_fallback) {
  attrib->vertices.clear();
  attrib->normals.clear();
  attrib->texcoords.clear();
  attrib->colors.clear();
  shapes->clear();

  std::stringstream errss;

  std::ifstream ifs(filename);
  if (!ifs) {
    errss << "Cannot open file [" << filename << "]" << std::endl;
    if (err) {
      (*err) = errss.str();
    }
    return false;
  }

  std::string baseDir = mtl_basedir ? mtl_basedir : "";
  if (!baseDir.empty()) {
#ifndef _WIN32
    const char dirsep = '/';
#else
    const char dirsep = '\\';
#endif
    if (baseDir[baseDir.length() - 1] != dirsep) baseDir += dirsep;
  }
  MaterialFileReader matFileReader(baseDir);

  return LoadObj(attrib, shapes, materials, warn, err, &ifs, &matFileReader,
                 trianglulate, default_vcols_fallback);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movq %r9, %rbp
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0xe5e9
movq %rax, 0x8(%r13)
movq 0x30(%r13), %rax
cmpq %rax, 0x38(%r13)
je 0xe5f7
movq %rax, 0x38(%r13)
movq 0x48(%r13), %rax
cmpq %rax, 0x50(%r13)
je 0xe605
movq %rax, 0x50(%r13)
movq 0x78(%r13), %rax
cmpq %rax, 0x80(%r13)
je 0xe619
movq %rax, 0x80(%r13)
movq %r12, %rdi
callq 0x16540
leaq 0x48(%rsp), %rdi
callq 0x62d0
leaq 0x1d0(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rbp, %rsi
callq 0x6760
movq 0x1d0(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x1f0(%rsp,%rax)
je 0xe6ba
leaq 0x58(%rsp), %rdi
leaq 0x22344(%rip), %rsi     # 0x309a4
callq 0x6420
movq %rax, %rdi
movq %rbp, %rsi
callq 0x6420
leaq 0x252f3(%rip), %rsi     # 0x3396a
movq %rax, %rdi
callq 0x6420
movq %rax, %rdi
callq 0x61d0
testq %rbx, %rbx
je 0xe6b3
leaq 0x60(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x6660
leaq 0x20(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x64e0
movq %r14, %rdi
callq 0x61a0
xorl %ebx, %ebx
jmp 0xe75c
movq 0x410(%rsp), %rax
testq %rax, %rax
leaq 0x220e6(%rip), %rsi     # 0x307b2
cmovneq %rax, %rsi
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x1631a
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0xe6fd
movq (%rsp), %rcx
cmpb $0x2f, -0x1(%rcx,%rax)
je 0xe6fd
movq %rsp, %rdi
pushq $0x2f
popq %rsi
callq 0x6390
leaq 0x20(%rsp), %rbp
movq %rsp, %rsi
movq %rbp, %rdi
callq 0x16548
movb 0x418(%rsp), %al
subq $0x8, %rsp
movzbl 0x428(%rsp), %r10d
movzbl %al, %eax
leaq 0x1d8(%rsp), %r9
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
pushq %r10
pushq %rax
pushq %rbp
callq 0xe7d0
addq $0x20, %rsp
movl %eax, %ebx
leaq 0x20(%rsp), %rdi
callq 0x1655c
movq %rsp, %rdi
callq 0x61a0
leaq 0x1d0(%rsp), %rdi
callq 0x60c0
leaq 0x48(%rsp), %rdi
callq 0x6320
movl %ebx, %eax
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xe798
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x1655c
jmp 0xe79b
movq %rax, %rbx
movq %rsp, %rdi
callq 0x61a0
jmp 0xe7b1
jmp 0xe7ae
jmp 0xe7ae
movq %rax, %rbx
jmp 0xe7be
movq %rax, %rbx
leaq 0x1d0(%rsp), %rdi
callq 0x60c0
leaq 0x48(%rsp), %rdi
callq 0x6320
movq %rbx, %rdi
callq 0x6710