// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/get.c
// Function: GetActiveTexture
static int GetActiveTexture(lua_State *L, GLenum pname)
    {
    GLint val;
    glGetIntegerv(pname, &val);
    CheckError(L);
    switch(val)
        {
#define CASE(n) case GL_TEXTURE##n: lua_pushinteger(L, n); break
        CASE(0); CASE(1); CASE(2); CASE(3); CASE(4); CASE(5);
        CASE(6); CASE(7); CASE(8); CASE(9); CASE(10); CASE(11);
        CASE(12); CASE(13); CASE(14); CASE(15); CASE(16); CASE(17);
        CASE(18); CASE(19); CASE(20); CASE(21); CASE(22); CASE(23);
        CASE(24); CASE(25); CASE(26); CASE(27); CASE(28); CASE(29);
        CASE(30); CASE(31);
#undef CASE
        default:
            luaL_error(L, UNEXPECTED_ERROR);
        }
    return 1;
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movl 0xc(%rsp), %edi
leaq 0x8(%rsp), %rsi
callq 0x116e0
movq 0x10(%rsp), %rdi
callq 0x11880
movl 0x8(%rsp), %eax
addl $0xffff7b40, %eax       # imm = 0xFFFF7B40
movl %eax, %ecx
movq %rcx, (%rsp)
subl $0x1f, %eax
ja 0x366be
movq (%rsp), %rax
leaq 0x26524(%rip), %rcx     # 0x5c96c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x2, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x3, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x4, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x5, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x6, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x7, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x8, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x9, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0xa, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0xb, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0xc, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0xd, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0xe, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0xf, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x10, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x11, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x12, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x13, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x14, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x15, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x16, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x17, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x18, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x19, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x1a, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x1b, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x1c, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x1d, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x1e, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
movl $0x1f, %esi
callq 0x113c0
jmp 0x366dd
movq 0x10(%rsp), %rdi
leaq 0x1bbbb(%rip), %rsi     # 0x52285
leaq 0x26335(%rip), %rdx     # 0x5ca06
movl $0x4d, %ecx
movb $0x0, %al
callq 0x11ae0
movl $0x1, %eax
addq $0x18, %rsp
retq
nopw (%rax,%rax)