// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonassimp/src/material.c
// Function: AllTextureCounts
static int AllTextureCounts(lua_State *L)
    {
    unsigned int count;
    material_t *material = checkmaterial(L, 1);
    lua_newtable(L);
#define ADD(t, s) do {                                                  \
    count = aiGetMaterialTextureCount(material, aiTextureType_##t);     \
    lua_pushinteger(L, count);                                          \
    lua_setfield(L, -2, s);                                             \
} while(0)
//  ADD(NONE, "none");
    ADD(DIFFUSE, "diffuse");
    ADD(SPECULAR, "specular");
    ADD(AMBIENT, "ambient");
    ADD(EMISSIVE, "emissive");
    ADD(HEIGHT, "height");
    ADD(NORMALS, "normals");
    ADD(SHININESS, "shininess");
    ADD(OPACITY, "opacity");
    ADD(DISPLACEMENT, "displacement");
    ADD(LIGHTMAP, "lightmap");
    ADD(REFLECTION, "reflection");
    ADD(UNKNOWN, "unknown");
#undef ADD
    return 1;
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1, %esi
leaq 0x9eb6(%rip), %rdx      # 0x16e90
callq 0x6700
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x6250
movq (%rsp), %rdi
movl $0x1, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0xa05a(%rip), %rdx      # 0x1707e
callq 0x62e0
jmp 0xd02b
movq (%rsp), %rdi
movl $0x2, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0xa03a(%rip), %rdx      # 0x17098
callq 0x62e0
jmp 0xd065
movq (%rsp), %rdi
movl $0x3, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x9ff3(%rip), %rdx      # 0x1708b
callq 0x62e0
jmp 0xd09f
movq (%rsp), %rdi
movl $0x4, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x9fd4(%rip), %rdx      # 0x170a6
callq 0x62e0
jmp 0xd0d9
movq (%rsp), %rdi
movl $0x5, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x9602(%rip), %rdx      # 0x1670e
callq 0x62e0
jmp 0xd113
movq (%rsp), %rdi
movl $0x6, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x9269(%rip), %rdx      # 0x163af
callq 0x62e0
jmp 0xd14d
movq (%rsp), %rdi
movl $0x7, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x9ebe(%rip), %rdx      # 0x1703e
callq 0x62e0
jmp 0xd187
movq (%rsp), %rdi
movl $0x8, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x9e66(%rip), %rdx      # 0x17020
callq 0x62e0
jmp 0xd1c1
movq (%rsp), %rdi
movl $0x9, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x9521(%rip), %rdx      # 0x16715
callq 0x62e0
jmp 0xd1fb
movq (%rsp), %rdi
movl $0xa, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x94f4(%rip), %rdx      # 0x16722
callq 0x62e0
jmp 0xd235
movq (%rsp), %rdi
movl $0xb, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x94c3(%rip), %rdx      # 0x1672b
callq 0x62e0
jmp 0xd26f
movq (%rsp), %rdi
movl $0x12, %esi
callq 0x67c0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
movl %eax, %esi
callq 0x6310
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x9494(%rip), %rdx      # 0x16736
callq 0x62e0
movl $0x1, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)