// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonassimp/src/enums.c
// Function: moonassimp_checktexturetype
unsigned int checktexturetype(lua_State *L, int arg)
    {
    const char *s = luaL_checkstring(L, arg);
#define CASE(CODE,str) if((strcmp(s, str)==0)) return CODE
    CASE(aiTextureType_NONE, "none");
    CASE(aiTextureType_DIFFUSE, "diffuse");
    CASE(aiTextureType_SPECULAR, "specular");
    CASE(aiTextureType_AMBIENT, "ambient");
    CASE(aiTextureType_EMISSIVE, "emissive");
    CASE(aiTextureType_HEIGHT, "height");
    CASE(aiTextureType_NORMALS, "normals");
    CASE(aiTextureType_SHININESS, "shininess");
    CASE(aiTextureType_OPACITY, "opacity");
    CASE(aiTextureType_DISPLACEMENT, "displacement");
    CASE(aiTextureType_LIGHTMAP, "lightmap");
    CASE(aiTextureType_REFLECTION, "reflection");
    CASE(aiTextureType_UNKNOWN, "unknown");
#undef CASE
    return (unsigned int)luaL_argerror(L, arg, badvalue(L,s));
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movl %esi, 0x24(%rsp)
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x6380
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
leaq 0xc321(%rip), %rsi      # 0x16231
callq 0x6420
cmpl $0x0, %eax
jne 0x9f27
movl $0x0, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xd14b(%rip), %rsi      # 0x1707e
callq 0x6420
cmpl $0x0, %eax
jne 0x9f4a
movl $0x1, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xd142(%rip), %rsi      # 0x17098
callq 0x6420
cmpl $0x0, %eax
jne 0x9f6d
movl $0x2, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xd112(%rip), %rsi      # 0x1708b
callq 0x6420
cmpl $0x0, %eax
jne 0x9f90
movl $0x3, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xd10a(%rip), %rsi      # 0x170a6
callq 0x6420
cmpl $0x0, %eax
jne 0x9fb3
movl $0x4, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xc74f(%rip), %rsi      # 0x1670e
callq 0x6420
cmpl $0x0, %eax
jne 0x9fd6
movl $0x5, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xc3cd(%rip), %rsi      # 0x163af
callq 0x6420
cmpl $0x0, %eax
jne 0x9ff9
movl $0x6, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xd039(%rip), %rsi      # 0x1703e
callq 0x6420
cmpl $0x0, %eax
jne 0xa01c
movl $0x7, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xcff8(%rip), %rsi      # 0x17020
callq 0x6420
cmpl $0x0, %eax
jne 0xa03f
movl $0x8, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xc6ca(%rip), %rsi      # 0x16715
callq 0x6420
cmpl $0x0, %eax
jne 0xa062
movl $0x9, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xc6b4(%rip), %rsi      # 0x16722
callq 0x6420
cmpl $0x0, %eax
jne 0xa082
movl $0xa, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xc69d(%rip), %rsi      # 0x1672b
callq 0x6420
cmpl $0x0, %eax
jne 0xa0a2
movl $0xb, 0x34(%rsp)
jmp 0xa101
movq 0x18(%rsp), %rdi
leaq 0xc688(%rip), %rsi      # 0x16736
callq 0x6420
cmpl $0x0, %eax
jne 0xa0c2
movl $0x12, 0x34(%rsp)
jmp 0xa101
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl 0x24(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rdx
leaq 0xc139(%rip), %rsi      # 0x1621e
movb $0x0, %al
callq 0x63e0
movq 0x8(%rsp), %rdi
movl 0x14(%rsp), %esi
movq %rax, %rdx
callq 0x61c0
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw (%rax,%rax)