// File: /workspace/github_cpp_makefile_star2_O3/alan0201tw[P]RayTracer/include/tiny_obj_loader.h
// Function: tinyobj::ObjReader::ParseFromString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, tinyobj::ObjReaderConfig const&)
bool ObjReader::ParseFromString(const std::string &obj_text,
                                const std::string &mtl_text,
                                const ObjReaderConfig &config) {
  std::stringbuf obj_buf(obj_text);
  std::stringbuf mtl_buf(mtl_text);

  std::istream obj_ifs(&obj_buf);
  std::istream mtl_ifs(&mtl_buf);

  MaterialStreamReader mtl_ss(mtl_ifs);

  valid_ = LoadObj(&attrib_, &shapes_, &materials_, &warning_, &error_,
                   &obj_ifs, &mtl_ss, config.triangulate, config.vertex_color);

  return valid_;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %rcx, %rbx
movq %rdx, %r15
movq %rdi, %r14
leaq 0x80(%rsp), %rdi
movl $0x18, %edx
callq 0x6240
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
movl $0x18, %edx
callq 0x6240
leaq 0xe8(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x6740
leaq 0x200(%rsp), %r15
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x6740
leaq 0x39c2c(%rip), %rax     # 0x4e418
leaq 0x8(%rsp), %r10
movq %rax, (%r10)
movq %r15, 0x8(%r10)
leaq 0x8(%r14), %rdi
leaq 0x98(%r14), %rsi
leaq 0xb0(%r14), %rdx
leaq 0xc8(%r14), %rcx
leaq 0xe8(%r14), %r8
movzbl (%rbx), %eax
movzbl 0x1(%rbx), %r11d
subq $0x8, %rsp
leaq 0xf0(%rsp), %r9
pushq %r11
pushq %rax
pushq %r10
callq 0xf4e3
addq $0x20, %rsp
movl %eax, %ebx
movb %al, (%r14)
movq 0x3a772(%rip), %rax     # 0x4efb8
movq (%rax), %r14
movq 0x8(%rax), %r15
leaq 0x210(%rsp), %rdi
movq %r14, -0x10(%rdi)
movq -0x18(%r14), %rax
movq %r15, 0x200(%rsp,%rax)
xorl %r12d, %r12d
movq %r12, -0x8(%rdi)
callq 0x6100
leaq 0xf8(%rsp), %rdi
movq %r14, -0x10(%rdi)
movq -0x18(%r14), %rax
movq %r15, 0xe8(%rsp,%rax)
movq %r12, -0x8(%rdi)
callq 0x6100
movq 0x3a757(%rip), %r14     # 0x4eff0
addq $0x10, %r14
leaq 0x70(%rsp), %rax
movq %r14, -0x58(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x148bc
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x6400
movq 0x3a6ad(%rip), %r15     # 0x4ef70
addq $0x10, %r15
leaq 0x50(%rsp), %rdi
movq %r15, -0x38(%rdi)
callq 0x6530
leaq 0xd8(%rsp), %rax
movq %r14, -0x58(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x148fa
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x6400
leaq 0xb8(%rsp), %rdi
movq %r15, -0x38(%rdi)
callq 0x6530
movl %ebx, %eax
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x3a692(%rip), %rax     # 0x4efb8
movq (%rax), %r14
movq 0x8(%rax), %r15
leaq 0x210(%rsp), %rdi
movq %r14, -0x10(%rdi)
movq -0x18(%r14), %rax
movq %r15, 0x200(%rsp,%rax)
movq $0x0, -0x8(%rdi)
callq 0x6100
jmp 0x14965
movq %rax, %rbx
movq 0x3a65a(%rip), %rax     # 0x4efb8
movq (%rax), %r14
movq 0x8(%rax), %r15
leaq 0xf8(%rsp), %rdi
movq %r14, -0x10(%rdi)
movq -0x18(%r14), %rax
movq %r15, 0xe8(%rsp,%rax)
movq $0x0, -0x8(%rdi)
callq 0x6100
jmp 0x1498f
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x1b21a
jmp 0x1499e
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x1b21a
movq %rbx, %rdi
callq 0x66e0
nop