// File: /workspace/github_cpp_makefile_star2_O2/alan0201tw[P]RayTracer/include/tiny_obj_loader.h
// Function: tinyobj::InitMaterial(tinyobj::material_t*)
static void InitMaterial(material_t *material) {
  InitTexOpt(&material->ambient_texopt, /* is_bump */ false);
  InitTexOpt(&material->diffuse_texopt, /* is_bump */ false);
  InitTexOpt(&material->specular_texopt, /* is_bump */ false);
  InitTexOpt(&material->specular_highlight_texopt, /* is_bump */ false);
  InitTexOpt(&material->bump_texopt, /* is_bump */ true);
  InitTexOpt(&material->displacement_texopt, /* is_bump */ false);
  InitTexOpt(&material->alpha_texopt, /* is_bump */ false);
  InitTexOpt(&material->reflection_texopt, /* is_bump */ false);
  InitTexOpt(&material->roughness_texopt, /* is_bump */ false);
  InitTexOpt(&material->metallic_texopt, /* is_bump */ false);
  InitTexOpt(&material->sheen_texopt, /* is_bump */ false);
  InitTexOpt(&material->emissive_texopt, /* is_bump */ false);
  InitTexOpt(&material->normal_texopt,
             /* is_bump */ false);  // @fixme { is_bump will be true? }
  material->name = "";
  material->ambient_texname = "";
  material->diffuse_texname = "";
  material->specular_texname = "";
  material->specular_highlight_texname = "";
  material->bump_texname = "";
  material->displacement_texname = "";
  material->reflection_texname = "";
  material->alpha_texname = "";
  for (int i = 0; i < 3; i++) {
    material->ambient[i] = static_cast<real_t>(0.0);
    material->diffuse[i] = static_cast<real_t>(0.0);
    material->specular[i] = static_cast<real_t>(0.0);
    material->transmittance[i] = static_cast<real_t>(0.0);
    material->emission[i] = static_cast<real_t>(0.0);
  }
  material->illum = 0;
  material->dissolve = static_cast<real_t>(1.0);
  material->shininess = static_cast<real_t>(1.0);
  material->ior = static_cast<real_t>(1.0);

  material->roughness = static_cast<real_t>(0.0);
  material->metallic = static_cast<real_t>(0.0);
  material->sheen = static_cast<real_t>(0.0);
  material->clearcoat_thickness = static_cast<real_t>(0.0);
  material->clearcoat_roughness = static_cast<real_t>(0.0);
  material->anisotropy_rotation = static_cast<real_t>(0.0);
  material->anisotropy = static_cast<real_t>(0.0);
  material->roughness_texname = "";
  material->metallic_texname = "";
  material->sheen_texname = "";
  material->emissive_texname = "";
  material->normal_texname = "";

  material->unknown_parameter.clear();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x170, %rdi            # imm = 0x170
xorl %esi, %esi
callq 0x16274
leaq 0x1d0(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x230(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x290(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x2f0(%rbx), %rdi
pushq $0x1
popq %rsi
callq 0x16274
leaq 0x350(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x3b0(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x410(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x530(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x590(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x5f0(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x650(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x6b0(%rbx), %rdi
xorl %esi, %esi
callq 0x16274
leaq 0x226a8(%rip), %r14     # 0x307b2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0x70(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0x90(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0xb0(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0xd0(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0xf0(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0x110(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0x150(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0x130(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
pushq $-0xc
popq %rax
testq %rax, %rax
je 0xe1b1
andl $0x0, 0x2c(%rbx,%rax)
andl $0x0, 0x38(%rbx,%rax)
andl $0x0, 0x44(%rbx,%rax)
andl $0x0, 0x50(%rbx,%rax)
andl $0x0, 0x5c(%rbx,%rax)
addq $0x4, %rax
jmp 0xe18d
movq $0x3f800000, 0x64(%rbx) # imm = 0x3F800000
movsd 0x2236f(%rip), %xmm0    # 0x30530
movsd %xmm0, 0x5c(%rbx)
leaq 0x490(%rbx), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x470(%rbx)
movups %xmm0, 0x47c(%rbx)
leaq 0x225cd(%rip), %r14     # 0x307b2
movq %r14, %rsi
callq 0x67a0
leaq 0x4b0(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0x4d0(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0x4f0(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
leaq 0x510(%rbx), %rdi
movq %r14, %rsi
callq 0x67a0
addq $0x718, %rbx            # imm = 0x718
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1725c