// File: 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 %rbp
movq %rsp, %rbp
subq $0x390, %rsp            # imm = 0x390
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x368(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x360(%rbp)
movl $0x8, %edi
movl %edi, -0x358(%rbp)
movl $0x10, %esi
movl %esi, -0x354(%rbp)
callq 0x2cac0
movq -0x360(%rbp), %rsi
movl %eax, %edx
leaq -0x88(%rbp), %rdi
callq 0x72d0
movl -0x358(%rbp), %edi
movl -0x354(%rbp), %esi
movq -0x18(%rbp), %rax
movq %rax, -0x350(%rbp)
callq 0x2cac0
movl %eax, -0x344(%rbp)
jmp 0x24165
movl -0x344(%rbp), %edx
movq -0x350(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x72d0
jmp 0x24180
leaq -0x218(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x78e0
jmp 0x24195
leaq -0x330(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x78e0
jmp 0x241aa
leaq -0x340(%rbp), %rdi
leaq -0x330(%rbp), %rsi
callq 0x2cae0
jmp 0x241bf
movq -0x368(%rbp), %r8
movq %r8, %rdi
addq $0x8, %rdi
movq %r8, %rsi
addq $0x98, %rsi
movq %r8, %rdx
addq $0xb0, %rdx
movq %r8, %rcx
addq $0xc8, %rcx
addq $0xe8, %r8
movq -0x20(%rbp), %rax
movzbl (%rax), %r9d
movzbl 0x1(%rax), %r10d
andl $0x1, %r10d
movq %rsp, %rax
movl %r10d, 0x10(%rax)
andl $0x1, %r9d
movl %r9d, 0x8(%rax)
leaq -0x340(%rbp), %r9
movq %r9, (%rax)
leaq -0x218(%rbp), %r9
callq 0x1e8f0
movb %al, -0x369(%rbp)
jmp 0x24230
movq -0x368(%rbp), %rax
movb -0x369(%rbp), %cl
andb $0x1, %cl
movb %cl, (%rax)
movb (%rax), %al
movb %al, -0x36a(%rbp)
leaq -0x340(%rbp), %rdi
callq 0x2cb20
leaq -0x330(%rbp), %rdi
callq 0x7800
leaq -0x218(%rbp), %rdi
callq 0x7800
leaq -0xf0(%rbp), %rdi
callq 0x2cb40
leaq -0x88(%rbp), %rdi
callq 0x2cb40
movb -0x36a(%rbp), %al
andb $0x1, %al
addq $0x390, %rsp            # imm = 0x390
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x24329
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x2431d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x24311
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
jmp 0x24305
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf8(%rbp)
movl %eax, -0xfc(%rbp)
leaq -0x340(%rbp), %rdi
callq 0x2cb20
leaq -0x330(%rbp), %rdi
callq 0x7800
leaq -0x218(%rbp), %rdi
callq 0x7800
leaq -0xf0(%rbp), %rdi
callq 0x2cb40
leaq -0x88(%rbp), %rdi
callq 0x2cb40
movq -0xf8(%rbp), %rdi
callq 0x7860
nopw %cs:(%rax,%rax)