// File: /workspace/github_cpp_makefile_star2_O2/alan0201tw[P]RayTracer/include/tiny_obj_loader.h
// Function: tinyobj::LoadObjWithCallback(std::istream&, tinyobj::callback_t_ const&, void*, tinyobj::MaterialReader*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
bool LoadObjWithCallback(std::istream &inStream, const callback_t &callback,
                         void *user_data /*= NULL*/,
                         MaterialReader *readMatFn /*= NULL*/,
                         std::string *warn, /* = NULL*/
                         std::string *err /*= NULL*/) {
  std::stringstream errss;

  // material
  std::map<std::string, int> material_map;
  int material_id = -1;  // -1 = invalid

  std::vector<index_t> indices;
  std::vector<material_t> materials;
  std::vector<std::string> names;
  names.reserve(2);
  std::vector<const char *> names_out;

  std::string linebuf;
  while (inStream.peek() != -1) {
    safeGetline(inStream, linebuf);

    // Trim newline '\r\n' or '\n'
    if (linebuf.size() > 0) {
      if (linebuf[linebuf.size() - 1] == '\n')
        linebuf.erase(linebuf.size() - 1);
    }
    if (linebuf.size() > 0) {
      if (linebuf[linebuf.size() - 1] == '\r')
        linebuf.erase(linebuf.size() - 1);
    }

    // Skip if empty line.
    if (linebuf.empty()) {
      continue;
    }

    // Skip leading space.
    const char *token = linebuf.c_str();
    token += strspn(token, " \t");

    assert(token);
    if (token[0] == '\0') continue;  // empty line

    if (token[0] == '#') continue;  // comment line

    // vertex
    if (token[0] == 'v' && IS_SPACE((token[1]))) {
      token += 2;
      // TODO(syoyo): Support parsing vertex color extension.
      real_t x, y, z, w;  // w is optional. default = 1.0
      parseV(&x, &y, &z, &w, &token);
      if (callback.vertex_cb) {
        callback.vertex_cb(user_data, x, y, z, w);
      }
      continue;
    }

    // normal
    if (token[0] == 'v' && token[1] == 'n' && IS_SPACE((token[2]))) {
      token += 3;
      real_t x, y, z;
      parseReal3(&x, &y, &z, &token);
      if (callback.normal_cb) {
        callback.normal_cb(user_data, x, y, z);
      }
      continue;
    }

    // texcoord
    if (token[0] == 'v' && token[1] == 't' && IS_SPACE((token[2]))) {
      token += 3;
      real_t x, y, z;  // y and z are optional. default = 0.0
      parseReal3(&x, &y, &z, &token);
      if (callback.texcoord_cb) {
        callback.texcoord_cb(user_data, x, y, z);
      }
      continue;
    }

    // face
    if (token[0] == 'f' && IS_SPACE((token[1]))) {
      token += 2;
      token += strspn(token, " \t");

      indices.clear();
      while (!IS_NEW_LINE(token[0])) {
        vertex_index_t vi = parseRawTriple(&token);

        index_t idx;
        idx.vertex_index = vi.v_idx;
        idx.normal_index = vi.vn_idx;
        idx.texcoord_index = vi.vt_idx;

        indices.push_back(idx);
        size_t n = strspn(token, " \t\r");
        token += n;
      }

      if (callback.index_cb && indices.size() > 0) {
        callback.index_cb(user_data, &indices.at(0),
                          static_cast<int>(indices.size()));
      }

      continue;
    }

    // use mtl
    if ((0 == strncmp(token, "usemtl", 6)) && IS_SPACE((token[6]))) {
      token += 7;
      std::stringstream ss;
      ss << token;
      std::string namebuf = ss.str();

      int newMaterialId = -1;
      if (material_map.find(namebuf) != material_map.end()) {
        newMaterialId = material_map[namebuf];
      } else {
        // { error!! material not found }
      }

      if (newMaterialId != material_id) {
        material_id = newMaterialId;
      }

      if (callback.usemtl_cb) {
        callback.usemtl_cb(user_data, namebuf.c_str(), material_id);
      }

      continue;
    }

    // load mtl
    if ((0 == strncmp(token, "mtllib", 6)) && IS_SPACE((token[6]))) {
      if (readMatFn) {
        token += 7;

        std::vector<std::string> filenames;
        SplitString(std::string(token), ' ', filenames);

        if (filenames.empty()) {
          if (warn) {
            (*warn) +=
                "Looks like empty filename for mtllib. Use default "
                "material. \n";
          }
        } else {
          bool found = false;
          for (size_t s = 0; s < filenames.size(); s++) {
            std::string warn_mtl;
            std::string err_mtl;
            bool ok = (*readMatFn)(filenames[s].c_str(), &materials,
                                   &material_map, &warn_mtl, &err_mtl);

            if (warn && (!warn_mtl.empty())) {
              (*warn) += warn_mtl;  // This should be warn message.
            }

            if (err && (!err_mtl.empty())) {
              (*err) += err_mtl;
            }

            if (ok) {
              found = true;
              break;
            }
          }

          if (!found) {
            if (warn) {
              (*warn) +=
                  "Failed to load material file(s). Use default "
                  "material.\n";
            }
          } else {
            if (callback.mtllib_cb) {
              callback.mtllib_cb(user_data, &materials.at(0),
                                 static_cast<int>(materials.size()));
            }
          }
        }
      }

      continue;
    }

    // group name
    if (token[0] == 'g' && IS_SPACE((token[1]))) {
      names.clear();

      while (!IS_NEW_LINE(token[0])) {
        std::string str = parseString(&token);
        names.push_back(str);
        token += strspn(token, " \t\r");  // skip tag
      }

      assert(names.size() > 0);

      if (callback.group_cb) {
        if (names.size() > 1) {
          // create const char* array.
          names_out.resize(names.size() - 1);
          for (size_t j = 0; j < names_out.size(); j++) {
            names_out[j] = names[j + 1].c_str();
          }
          callback.group_cb(user_data, &names_out.at(0),
                            static_cast<int>(names_out.size()));

        } else {
          callback.group_cb(user_data, NULL, 0);
        }
      }

      continue;
    }

    // object name
    if (token[0] == 'o' && IS_SPACE((token[1]))) {
      // @todo { multiple object name? }
      token += 2;

      std::stringstream ss;
      ss << token;
      std::string object_name = ss.str();

      if (callback.object_cb) {
        callback.object_cb(user_data, object_name.c_str());
      }

      continue;
    }

#if 0  // @todo
    if (token[0] == 't' && IS_SPACE(token[1])) {
      tag_t tag;

      token += 2;
      std::stringstream ss;
      ss << token;
      tag.name = ss.str();

      token += tag.name.size() + 1;

      tag_sizes ts = parseTagTriple(&token);

      tag.intValues.resize(static_cast<size_t>(ts.num_ints));

      for (size_t i = 0; i < static_cast<size_t>(ts.num_ints); ++i) {
        tag.intValues[i] = atoi(token);
        token += strcspn(token, "/ \t\r") + 1;
      }

      tag.floatValues.resize(static_cast<size_t>(ts.num_reals));
      for (size_t i = 0; i < static_cast<size_t>(ts.num_reals); ++i) {
        tag.floatValues[i] = parseReal(&token);
        token += strcspn(token, "/ \t\r") + 1;
      }

      tag.stringValues.resize(static_cast<size_t>(ts.num_strings));
      for (size_t i = 0; i < static_cast<size_t>(ts.num_strings); ++i) {
        std::stringstream ss;
        ss << token;
        tag.stringValues[i] = ss.str();
        token += tag.stringValues[i].size() + 1;
      }

      tags.push_back(tag);
    }
#endif

    // Ignore unknown command.
  }

  if (err) {
    (*err) += errss.str();
  }

  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x488, %rsp            # imm = 0x488
movq %r9, 0x48(%rsp)
movq %r8, 0x20(%rsp)
movq %rcx, 0xe0(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdi, %rbp
leaq 0x300(%rsp), %rdi
callq 0x62d0
leaq 0x150(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
andq $0x0, 0x60(%rsp)
movaps %xmm0, 0x110(%rsp)
andq $0x0, 0x120(%rsp)
leaq 0xf0(%rsp), %rdi
movaps %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
pushq $0x2
popq %rsi
callq 0x169b0
leaq 0xc0(%rsp), %rax
andq $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x80(%rsp), %r14
leaq 0x50(%rsp), %r13
xorl %r12d, %r12d
movq %rbp, 0xe8(%rsp)
movq %rbp, %rdi
callq 0x6130
cmpl $-0x1, %eax
je 0x11870
movq %rbp, %rdi
movq %r14, %rsi
callq 0xe23f
movq 0x88(%rsp), %rsi
testq %rsi, %rsi
je 0x10f75
movq 0x80(%rsp), %rax
cmpb $0xa, -0x1(%rax,%rsi)
jne 0x10fc8
decq %rsi
movq %r14, %rdi
pushq $-0x1
popq %rdx
callq 0x60a0
movq 0x88(%rsp), %rsi
testq %rsi, %rsi
je 0x10f75
movq 0x80(%rsp), %rbx
cmpb $0xd, -0x1(%rbx,%rsi)
jne 0x10ff8
decq %rsi
movq %r14, %rdi
pushq $-0x1
popq %rdx
callq 0x60a0
cmpq $0x0, 0x88(%rsp)
je 0x10f75
movq 0x80(%rsp), %rbx
movq %rbx, %rdi
leaq 0x1f7ae(%rip), %rsi     # 0x307b0
callq 0x6180
movq %rax, %r15
addq %rbx, %r15
movq %r15, (%rsp)
testq %rbx, %rbx
je 0x11918
movzbl (%r15), %ebx
testl %ebx, %ebx
je 0x10f75
cmpl $0x23, %ebx
je 0x10f75
cmpl $0x66, %ebx
je 0x110e6
cmpl $0x76, %ebx
jne 0x11374
movzbl 0x1(%r15), %eax
cmpl $0x9, %eax
je 0x11066
cmpl $0x74, %eax
je 0x1128a
cmpl $0x6e, %eax
je 0x11301
cmpl $0x20, %eax
jne 0x11374
addq $0x2, %r15
movq %r15, (%rsp)
xorps %xmm0, %xmm0
movq %rsp, %rbx
movq %rbx, %rdi
callq 0xccc7
movss %xmm0, 0x7c(%rsp)
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0xccc7
movss %xmm0, 0x78(%rsp)
xorps %xmm0, %xmm0
movq %rbx, %rdi
callq 0xccc7
movss %xmm0, 0x74(%rsp)
movq %rbx, %rdi
movsd 0x1f401(%rip), %xmm0    # 0x304b0
callq 0xccc7
movq 0x8(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x10f75
movaps %xmm0, %xmm3
movq 0x10(%rsp), %rdi
movss 0x7c(%rsp), %xmm0
movss 0x78(%rsp), %xmm1
movss 0x74(%rsp), %xmm2
callq *%rax
jmp 0x10f75
movzbl 0x1(%r15), %eax
cmpl $0x20, %eax
je 0x110f9
cmpl $0x9, %eax
jne 0x11374
leaq 0x2(%r15), %rdi
movq %rdi, (%rsp)
leaq 0x1f6a8(%rip), %rsi     # 0x307b0
callq 0x6180
leaq (%r15,%rax), %r12
addq $0x2, %r12
movq %r12, (%rsp)
movq 0x50(%rsp), %rax
cmpq %rax, 0x58(%rsp)
je 0x1120c
movq %rax, 0x58(%rsp)
jmp 0x1120c
movq %r12, %rdi
callq 0x6620
movl %eax, %r15d
movq %r12, %rdi
leaq 0x1fc5c(%rip), %rsi     # 0x30da4
callq 0x6050
leaq (%r12,%rax), %rbx
xorl %r14d, %r14d
cmpb $0x2f, (%r12,%rax)
jne 0x1116d
movq %r13, %rbp
cmpb $0x2f, 0x1(%rbx)
jne 0x11172
addq $0x2, %rbx
xorl %r12d, %r12d
jmp 0x111a1
xorl %r12d, %r12d
jmp 0x111cf
movq %rbx, %r13
incq %r13
movq %r13, %rdi
callq 0x6620
movl %eax, %r12d
movq %r13, %rdi
leaq 0x1fc17(%rip), %rsi     # 0x30da4
callq 0x6050
leaq (%rax,%r13), %rbx
cmpb $0x2f, (%r13,%rax)
jne 0x111c4
incq %rbx
movq %rbx, %r13
movq %rbx, %rdi
callq 0x6620
movl %eax, %r14d
movq %rbx, %rdi
leaq 0x1fbeb(%rip), %rsi     # 0x30da4
callq 0x6050
movq %rax, %rbx
addq %r13, %rbx
movq %rbp, %r13
movq 0xe8(%rsp), %rbp
movl %r15d, 0x178(%rsp)
movl %r14d, 0x17c(%rsp)
movl %r12d, 0x180(%rsp)
movq %r13, %rdi
leaq 0x178(%rsp), %rsi
callq 0x16a44
movq %rbx, %rdi
leaq 0x1fba4(%rip), %rsi     # 0x30da5
callq 0x6180
movq %rax, %r12
addq %rbx, %r12
movzbl (%r12), %eax
cmpl $0xd, %eax
ja 0x11133
movl $0x2401, %ecx           # imm = 0x2401
btl %eax, %ecx
jae 0x11133
movq %r12, (%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rbx
testq %rbx, %rbx
leaq 0x80(%rsp), %r14
movl $0x0, %r12d
je 0x10f75
movq 0x58(%rsp), %rax
cmpq 0x50(%rsp), %rax
je 0x10f75
movq %r13, %rdi
xorl %esi, %esi
callq 0x16a68
movq %rax, %rsi
movq 0x58(%rsp), %rax
subq 0x50(%rsp), %rax
cqto
pushq $0xc
popq %rcx
idivq %rcx
movq %rax, %rdx
movq 0x10(%rsp), %rdi
callq *%rbx
jmp 0x10f75
movzbl 0x2(%r15), %eax
cmpl $0x20, %eax
je 0x1129d
cmpl $0x9, %eax
jne 0x11374
addq $0x3, %r15
movq %r15, (%rsp)
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
leaq 0x178(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x128(%rsp), %rdx
movq %rsp, %rcx
callq 0xcd3c
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x10f75
movss 0x178(%rsp), %xmm0
movss 0x28(%rsp), %xmm1
movss 0x128(%rsp), %xmm2
movq 0x10(%rsp), %rdi
callq *%rax
jmp 0x10f75
movzbl 0x2(%r15), %eax
cmpl $0x20, %eax
je 0x11310
cmpl $0x9, %eax
jne 0x11374
addq $0x3, %r15
movq %r15, (%rsp)
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
leaq 0x178(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x128(%rsp), %rdx
movq %rsp, %rcx
callq 0xcd3c
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x10f75
movss 0x178(%rsp), %xmm0
movss 0x28(%rsp), %xmm1
movss 0x128(%rsp), %xmm2
movq 0x10(%rsp), %rdi
callq *%rax
jmp 0x10f75
movq %r15, %rdi
leaq 0x1f796(%rip), %rsi     # 0x30b14
pushq $0x6
popq %rdx
callq 0x61c0
testl %eax, %eax
je 0x1143b
movq %r15, %rdi
leaq 0x1f783(%rip), %rsi     # 0x30b1b
pushq $0x6
popq %rdx
callq 0x61c0
testl %eax, %eax
je 0x114df
cmpl $0x6f, %ebx
je 0x116d4
cmpl $0x67, %ebx
jne 0x10f75
movzbl 0x1(%r15), %eax
cmpl $0x20, %eax
je 0x113cd
cmpl $0x9, %eax
jne 0x10f75
leaq 0xf0(%rsp), %rdi
callq 0x16aa8
movzbl (%r15), %eax
cmpl $0xd, %eax
ja 0x113f1
movl $0x2401, %ecx           # imm = 0x2401
btl %eax, %ecx
jb 0x11754
leaq 0x178(%rsp), %r12
movq %r12, %rdi
movq %rsp, %rsi
callq 0xcde4
leaq 0xf0(%rsp), %rdi
movq %r12, %rsi
callq 0x1685a
movq (%rsp), %rbx
movq %rbx, %rdi
leaq 0x1f983(%rip), %rsi     # 0x30da5
callq 0x6180
movq %rax, %r15
addq %rbx, %r15
movq %r15, (%rsp)
movq %r12, %rdi
callq 0x61a0
jmp 0x113da
movzbl 0x6(%r15), %eax
cmpl $0x20, %eax
je 0x1144e
cmpl $0x9, %eax
jne 0x1138e
addq $0x7, %r15
movq %r15, (%rsp)
leaq 0x178(%rsp), %rdi
callq 0x62d0
leaq 0x188(%rsp), %rdi
movq %r15, %rsi
callq 0x6420
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
leaq 0x190(%rsp), %rsi
callq 0x6660
leaq 0x148(%rsp), %rdi
movq %rbx, %rsi
callq 0x1a48c
pushq $-0x1
popq %rdx
leaq 0x150(%rsp), %rcx
cmpq %rcx, %rax
je 0x114bc
leaq 0x148(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x16700
movl (%rax), %edx
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x11738
movq 0x28(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq *%rax
jmp 0x11738
movzbl 0x6(%r15), %eax
cmpl $0x20, %eax
je 0x114f2
cmpl $0x9, %eax
jne 0x113a8
cmpq $0x0, 0xe0(%rsp)
je 0x10f75
addq $0x7, %r15
movq %r15, (%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
andq $0x0, 0xb0(%rsp)
leaq 0x178(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
leaq 0x28(%rsp), %rdx
callq 0x1631a
movq %rbx, %rdi
leaq 0xa0(%rsp), %rsi
callq 0x10df5
movq %rbx, %rdi
callq 0x61a0
movq 0xa0(%rsp), %rax
cmpq 0xa8(%rsp), %rax
je 0x117d9
pushq $-0x1
popq %r14
xorl %r15d, %r15d
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
incq %r14
cmpq %rcx, %r14
jae 0x11838
leaq 0x188(%rsp), %rcx
movq %rcx, 0x178(%rsp)
andq $0x0, 0x180(%rsp)
leaq 0x38(%rsp), %rcx
movq %rcx, 0x28(%rsp)
andq $0x0, 0x30(%rsp)
movb %r12b, 0x188(%rsp)
movb %r12b, 0x38(%rsp)
movq (%rax,%r15), %rsi
leaq 0x128(%rsp), %r13
movq %r13, %rdi
leaq 0x1f(%rsp), %rdx
callq 0x1631a
movq 0xe0(%rsp), %rdi
movq (%rdi), %rax
movq %r13, %rsi
leaq 0x110(%rsp), %rdx
leaq 0x148(%rsp), %rcx
leaq 0x178(%rsp), %r8
leaq 0x28(%rsp), %r9
callq *0x10(%rax)
movl %eax, %ebx
movq %r13, %rdi
callq 0x61a0
cmpq $0x0, 0x20(%rsp)
je 0x11639
cmpq $0x0, 0x180(%rsp)
je 0x11639
movq 0x20(%rsp), %rdi
leaq 0x178(%rsp), %rsi
callq 0x67d0
cmpq $0x0, 0x48(%rsp)
je 0x11658
cmpq $0x0, 0x30(%rsp)
je 0x11658
movq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x67d0
addq $0x20, %r15
leaq 0x28(%rsp), %rdi
callq 0x61a0
leaq 0x178(%rsp), %rdi
callq 0x61a0
testb %bl, %bl
je 0x1156a
movq 0x8(%rsp), %rax
movq 0x28(%rax), %rbx
testq %rbx, %rbx
leaq 0x80(%rsp), %r14
leaq 0x50(%rsp), %r13
je 0x1185e
leaq 0x110(%rsp), %rdi
xorl %esi, %esi
callq 0x16a86
movq %rax, %rsi
movq 0x118(%rsp), %rax
subq 0x110(%rsp), %rax
cqto
movl $0x748, %ecx            # imm = 0x748
idivq %rcx
movq 0x10(%rsp), %rdi
movl %eax, %edx
callq *%rbx
jmp 0x1185e
movzbl 0x1(%r15), %eax
cmpl $0x20, %eax
je 0x116e7
cmpl $0x9, %eax
jne 0x10f75
addq $0x2, %r15
movq %r15, (%rsp)
leaq 0x178(%rsp), %rdi
callq 0x62d0
leaq 0x188(%rsp), %rdi
movq %r15, %rsi
callq 0x6420
leaq 0x28(%rsp), %rdi
leaq 0x190(%rsp), %rsi
callq 0x6660
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rax
testq %rax, %rax
je 0x11738
movq 0x28(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq *%rax
leaq 0x28(%rsp), %rdi
callq 0x61a0
leaq 0x178(%rsp), %rdi
callq 0x6320
jmp 0x10f75
movq 0xf8(%rsp), %rsi
movq 0xf0(%rsp), %rax
subq %rax, %rsi
movl $0x0, %r12d
je 0x11937
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
testq %rax, %rax
je 0x10f75
sarq $0x5, %rsi
cmpq $0x2, %rsi
jb 0x117f4
decq %rsi
leaq 0xc0(%rsp), %rdi
callq 0x16ab0
pushq $0x20
popq %rax
xorl %ecx, %ecx
movq 0xc0(%rsp), %rdx
movq 0xc8(%rsp), %rsi
subq %rdx, %rsi
sarq $0x3, %rsi
cmpq %rsi, %rcx
jae 0x11804
movq 0xf0(%rsp), %rsi
movq (%rsi,%rax), %rsi
movq %rsi, (%rdx,%rcx,8)
incq %rcx
addq $0x20, %rax
jmp 0x117a4
cmpq $0x0, 0x20(%rsp)
je 0x1185e
movq 0x20(%rsp), %rdi
leaq 0x1f4c2(%rip), %rsi     # 0x30caf
callq 0x6790
jmp 0x1185e
movq 0x10(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq *%rax
jmp 0x10f75
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rbx
leaq 0xc0(%rsp), %rdi
xorl %esi, %esi
callq 0x16ae2
movq %rax, %rsi
movq 0xc8(%rsp), %rdx
subq 0xc0(%rsp), %rdx
shrq $0x3, %rdx
jmp 0x1127e
cmpq $0x0, 0x20(%rsp)
leaq 0x80(%rsp), %r14
leaq 0x50(%rsp), %r13
je 0x1185e
movq 0x20(%rsp), %rdi
leaq 0x1f30b(%rip), %rsi     # 0x30b64
callq 0x6790
leaq 0xa0(%rsp), %rdi
callq 0x1676e
jmp 0x10f75
cmpq $0x0, 0x48(%rsp)
je 0x118ac
leaq 0x318(%rsp), %rsi
leaq 0x178(%rsp), %rdi
callq 0x6660
leaq 0x178(%rsp), %rsi
movq 0x48(%rsp), %rdi
callq 0x67d0
leaq 0x178(%rsp), %rdi
callq 0x61a0
leaq 0x80(%rsp), %rdi
callq 0x61a0
leaq 0xc0(%rsp), %rdi
callq 0x1b37c
leaq 0xf0(%rsp), %rdi
callq 0x1676e
leaq 0x110(%rsp), %rdi
callq 0x16b04
leaq 0x50(%rsp), %rdi
callq 0x19c20
leaq 0x148(%rsp), %rdi
callq 0x186a4
leaq 0x300(%rsp), %rdi
callq 0x6320
movb $0x1, %al
addq $0x488, %rsp            # imm = 0x488
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1eecd(%rip), %rdi     # 0x307ec
leaq 0x1eecc(%rip), %rsi     # 0x307f2
leaq 0x1f304(%rip), %rcx     # 0x30c31
movl $0xa55, %edx            # imm = 0xA55
callq 0x6280
leaq 0x1f3af(%rip), %rdi     # 0x30ced
leaq 0x1eead(%rip), %rsi     # 0x307f2
leaq 0x1f2e5(%rip), %rcx     # 0x30c31
movl $0xaf0, %edx            # imm = 0xAF0
callq 0x6280
jmp 0x1196b
jmp 0x11a09
jmp 0x11a09
jmp 0x1196b
jmp 0x11998
movq %rax, %rbx
jmp 0x119d7
movq %rax, %rbx
jmp 0x119e4
jmp 0x11991
jmp 0x11991
jmp 0x11a09
jmp 0x119f3
jmp 0x11a09
jmp 0x11a09
movq %rax, %rbx
jmp 0x11a26
jmp 0x11998
jmp 0x11991
movq %rax, %rbx
jmp 0x119a5
jmp 0x11a09
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x61a0
leaq 0x178(%rsp), %rdi
callq 0x6320
jmp 0x11a0c
jmp 0x11a09
jmp 0x119b8
movq %rax, %rbx
jmp 0x119cd
movq %rax, %rbx
leaq 0x128(%rsp), %rdi
callq 0x61a0
leaq 0x28(%rsp), %rdi
callq 0x61a0
leaq 0x178(%rsp), %rdi
callq 0x61a0
leaq 0xa0(%rsp), %rdi
callq 0x1676e
jmp 0x11a0c
movq %rax, %rbx
leaq 0x178(%rsp), %rdi
callq 0x61a0
jmp 0x11a0c
jmp 0x11a09
jmp 0x11a09
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x61a0
leaq 0xc0(%rsp), %rdi
callq 0x1b37c
leaq 0xf0(%rsp), %rdi
callq 0x1676e
leaq 0x110(%rsp), %rdi
callq 0x16b04
leaq 0x50(%rsp), %rdi
callq 0x19c20
leaq 0x148(%rsp), %rdi
callq 0x186a4
leaq 0x300(%rsp), %rdi
callq 0x6320
movq %rbx, %rdi
callq 0x6710