LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/get.c
// Function: GetEnumN
static int GetEnumN(lua_State *L, GLenum pname, GLenum numpname, uint32_t domain)
    {
    GLint *val;
    GLsizei i, num = getSizei(L, numpname);
    if(num==0) return 0;
    val = (GLint*)Malloc(L, num*sizeof(GLint));
    glGetIntegerv(pname, val);
    CheckErrorFree(L, val);
    luaL_checkstack(L, num, NULL);
    for(i = 0; i<num; i++)
        enums_push(L, domain, val[i]);
    Free(L, val);
    return num;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %esi, %r12d
movq %rdi, %r14
movl %edx, %esi
callq 0x11a70
movl %eax, %ebp
testl %eax, %eax
je 0x2be74
movslq %ebp, %rsi
shlq $0x2, %rsi
movq %r14, %rdi
callq 0x111f0
movq %rax, %r15
movl %r12d, %edi
movq %rax, %rsi
callq 0x116d0
movq %r14, %rdi
movq %r15, %rsi
callq 0x11540
xorl %r12d, %r12d
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11250
testl %ebp, %ebp
movl $0x0, %r13d
cmovgl %ebp, %r13d
cmpq %r12, %r13
je 0x2be69
movl (%r15,%r12,4), %edx
movq %r14, %rdi
movl %ebx, %esi
callq 0x11110
incq %r12
jmp 0x2be51
movq %r14, %rdi
movq %r15, %rsi
callq 0x11360
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/get.c
// Function: GetFloat2
static int GetFloat2(lua_State *L, GLenum pname)
    {
    GLfloat data[2];
    glGetFloatv(pname, data);
    CheckError(L);
    lua_pushnumber(L, data[0]);
    lua_pushnumber(L, data[1]);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %r14
movl %esi, %edi
movq %r14, %rsi
callq 0x11aa0
movq %rbx, %rdi
callq 0x11870
cvtss2sd (%r14), %xmm0
movq %rbx, %rdi
callq 0x11370
cvtss2sd 0x4(%r14), %xmm0
movq %rbx, %rdi
callq 0x11370
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getstring.c
// Function: GetExtensions
static int GetExtensions(lua_State *L)
    {
    GLsizei i, count;
    const GLubyte *s;
    GLboolean byname = optboolean(L, 1, 0);

    count = getSizei(L, GL_NUM_EXTENSIONS);
    CheckError(L);

    lua_newtable(L);

    for(i=0; i<count; i++)
        {
        s = glGetStringi(GL_EXTENSIONS, i);
        CheckError(L);
        if(s == NULL)
            return luaL_error(L, UNEXPECTED_ERROR);
        if(byname)
            {
            lua_pushboolean(L, 1);
            lua_setfield(L, -2, (char*)s);
            }
        else
            {
            lua_pushstring(L, (char*)s);
            lua_rawseti(L, -2, i+1);
            }
        }

    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
xorl %r14d, %r14d
xorl %edx, %edx
callq 0x112d0
movl %eax, %r15d
movq %rbx, %rdi
movl $0x821d, %esi           # imm = 0x821D
callq 0x11a70
movl %eax, %r12d
movq %rbx, %rdi
callq 0x11870
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x11320
testl %r12d, %r12d
cmovlel %r14d, %r12d
pushq $-0x2
popq %r13
cmpq %r12, %r14
je 0x2c46d
movl $0x1f03, %edi           # imm = 0x1F03
movl %r14d, %esi
movq 0x2958b(%rip), %rax     # 0x559a8
callq *(%rax)
movq %rax, %rbp
movq %rbx, %rdi
callq 0x11870
testq %rbp, %rbp
je 0x2c47f
movq %rbx, %rdi
testb %r15b, %r15b
je 0x2c452
pushq $0x1
popq %rsi
callq 0x117e0
movq %rbx, %rdi
movl %r13d, %esi
movq %rbp, %rdx
callq 0x11890
incq %r14
jmp 0x2c409
movq %rbp, %rsi
callq 0x110c0
incq %r14
movq %rbx, %rdi
movl %r13d, %esi
movq %r14, %rdx
callq 0x11790
jmp 0x2c409
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xedff(%rip), %rsi      # 0x3b285
leaq 0x19f3a(%rip), %rdx     # 0x463c7
pushq $0x5d
popq %rcx
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getstring.c
// Function: GetSpirVExtensions
static int GetSpirVExtensions(lua_State *L)
    {
    GLsizei i, count;
    const GLubyte *s;
    GLboolean byname = optboolean(L, 1, 0);

    count = getSizei(L, GL_NUM_SPIR_V_EXTENSIONS);
    CheckError(L);

    lua_newtable(L);

    for(i=0; i<count; i++)
        {
        s = glGetStringi(GL_SPIR_V_EXTENSIONS, i);
        CheckError(L);
        if(s == NULL)
            return luaL_error(L, UNEXPECTED_ERROR);
        if(byname)
            {
            lua_pushboolean(L, 1);
            lua_setfield(L, -2, (char*)s);
            }
        else
            {
            lua_pushstring(L, (char*)s);
            lua_rawseti(L, -2, i+1);
            }
        }

    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
xorl %r14d, %r14d
xorl %edx, %edx
callq 0x112d0
movl %eax, %r15d
movq %rbx, %rdi
movl $0x9554, %esi           # imm = 0x9554
callq 0x11a70
movl %eax, %r12d
movq %rbx, %rdi
callq 0x11870
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x11320
testl %r12d, %r12d
cmovlel %r14d, %r12d
pushq $-0x2
popq %r13
cmpq %r12, %r14
je 0x2c559
movl $0x9553, %edi           # imm = 0x9553
movl %r14d, %esi
movq 0x2949f(%rip), %rax     # 0x559a8
callq *(%rax)
movq %rax, %rbp
movq %rbx, %rdi
callq 0x11870
testq %rbp, %rbp
je 0x2c56b
movq %rbx, %rdi
testb %r15b, %r15b
je 0x2c53e
pushq $0x1
popq %rsi
callq 0x117e0
movq %rbx, %rdi
movl %r13d, %esi
movq %rbp, %rdx
callq 0x11890
incq %r14
jmp 0x2c4f5
movq %rbp, %rsi
callq 0x110c0
incq %r14
movq %rbx, %rdi
movl %r13d, %esi
movq %r14, %rdx
callq 0x11790
jmp 0x2c4f5
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xed13(%rip), %rsi      # 0x3b285
leaq 0x19e4e(%rip), %rdx     # 0x463c7
pushq $0x7d
popq %rcx
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getuniform.c
// Function: GetUniformLocation
static int GetUniformLocation(lua_State *L)
    {
    GLuint program = luaL_checkinteger(L, 1);
    const GLchar *name = luaL_checkstring(L, 2);
    GLint loc = glGetUniformLocation(program, name);
    CheckError(L);
    if(loc==-1)
        return luaL_error(L, "invalid name '%s'", name);
    lua_pushinteger(L, loc);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r15
pushq $0x2
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11440
movq %rax, %r14
movq 0x28e3f(%rip), %rax     # 0x55600
movl %r15d, %edi
movq %r14, %rsi
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11870
cmpl $-0x1, %ebp
je 0x2c7f1
movslq %ebp, %rsi
movq %rbx, %rdi
callq 0x113b0
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x19d09(%rip), %rsi     # 0x46501
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getuniform.c
// Function: GetActiveUniformName
static int GetActiveUniformName(lua_State *L)
    {
    GLsizei maxlen, length;
    GLchar *name;
    GLuint program = luaL_checkinteger(L, 1);
    GLuint index = luaL_checkinteger(L, 2);

    maxlen = ActiveUniformMaxLength(L, program);
    name = (GLchar*)Malloc(L, maxlen*sizeof(GLchar));
    glGetActiveUniformName(program, index, maxlen, &length, name);
    CheckErrorFree(L, name);
    if(length > 0) 
        lua_pushstring(L, name);
    Free(L, name);
    return (length > 0) ? 1 : luaL_error(L, "invalid index %d", index);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r12
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %rbp
movq %rbx, %rdi
movl %r12d, %esi
callq 0x2d0a3
movslq %eax, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x111f0
movq %rax, %r15
movq 0x2950f(%rip), %rax     # 0x55d68
leaq 0x4(%rsp), %r14
movl %r12d, %edi
movl %ebp, %esi
movl %r13d, %edx
movq %r14, %rcx
movq %r15, %r8
callq *(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11540
cmpl $0x0, (%r14)
jle 0x2c88a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x110c0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11360
cmpl $0x0, 0x4(%rsp)
pushq $0x1
popq %rax
jg 0x2c8b2
leaq 0x19c6d(%rip), %rsi     # 0x46513
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x11ae0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getuniform.c
// Function: GetUniformIndices
static int GetUniformIndices(lua_State *L)
    {
    GLsizei i, count;
    const GLchar **names;
    GLuint *indices;
    GLuint program = luaL_checkinteger(L, 1);
    i = 2;
    while(!lua_isnoneornil(L, i)) luaL_checkstring(L, i++);
    if(i == 2)
        return luaL_argerror(L, 2, "string expected");
    count = i - 2;
    names = (const GLchar**)Malloc2(L, count*sizeof(GLchar*), (void**)&indices, count*sizeof(GLuint));
    for(i = 0; i < count; i++)
        names[i] = lua_tostring(L, i + 2);
    glGetUniformIndices(program, count, names, indices);
    CheckErrorFree2(L, names, indices);
    for(i = 0; i < count; i++)
        {
        if(indices[i] == GL_INVALID_INDEX)
            {
            lua_pushfstring(L, "invalid name '%s'", names[i]);
            Free(L, names);
            Free(L, indices);
            return lua_error(L);
            }
        }
    for(i = 0; i < count; i++)
        lua_pushinteger(L, indices[i]);
    Free(L, names);
    Free(L, indices);
    return count;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r12
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %r14d, %r14d
leaq 0x2(%r14), %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11850
testl %eax, %eax
jle 0x2c90e
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11440
incq %r14
addq $0x4, %r13
addq $0x8, %r15
jmp 0x2c8e3
testl %r14d, %r14d
je 0x2c9c1
movq %rsp, %rdx
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rcx
callq 0x116f0
movq %rax, %r15
xorl %r13d, %r13d
cmpq %r13, %r14
je 0x2c94a
leal 0x2(%r13), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11940
movq %rax, (%r15,%r13,8)
incq %r13
jmp 0x2c92e
movq 0x28b3f(%rip), %rax     # 0x55490
movq (%rsp), %rcx
movl %r12d, %edi
movl %r14d, %esi
movq %r15, %rdx
callq *(%rax)
movq (%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x111d0
xorl %eax, %eax
movq (%rsp), %rcx
cmpq %rax, %r14
je 0x2c9e1
leaq 0x1(%rax), %rdx
cmpl $-0x1, (%rcx,%rax,4)
movq %rdx, %rax
jne 0x2c975
movq -0x8(%r15,%rdx,8), %rdx
leaq 0x19b6e(%rip), %rsi     # 0x46501
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11160
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11360
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x11360
movq %rbx, %rdi
callq 0x11630
movl %eax, %r14d
jmp 0x2ca1a
leaq 0xe638(%rip), %rdx      # 0x3b000
pushq $0x2
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11930
xorl %r12d, %r12d
movq %r14, %r13
subq $0x1, %r13
jb 0x2ca03
movq (%rsp), %rax
movl (%rax,%r12), %esi
movq %rbx, %rdi
callq 0x113b0
addq $0x4, %r12
jmp 0x2c9e7
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11360
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x11360
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getuniform.c
// Function: GetActiveUniform
static int GetActiveUniform(lua_State *L)
/* name, type, size = get_active_uniform(program, index) */
    {
    GLsizei maxlen, length;
    GLchar *name;
    GLsizei size;
    GLenum type;
    GLuint program = luaL_checkinteger(L, 1);
    GLuint index = luaL_checkinteger(L, 2);
    maxlen = ActiveUniformMaxLength(L, program);
    name = (GLchar*)Malloc(L, maxlen*sizeof(GLchar));
    glGetActiveUniform(program, index, maxlen, &length, &size, &type, name);
    CheckErrorFree(L, name);
    if(length == 0)
        {
        Free(L, name);
        return luaL_error(L, "invalid index %d", index);
        }
    lua_pushstring(L, name);
    pushglsltype(L, type);
    lua_pushinteger(L, size);
    Free(L, name);
    return 3;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r12
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl %r12d, %esi
callq 0x2d0a3
movslq %eax, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x111f0
movq %rax, %r15
movq 0x29117(%rip), %rax     # 0x55b90
movq %r15, (%rsp)
leaq 0x14(%rsp), %rbp
leaq 0x10(%rsp), %r8
leaq 0xc(%rsp), %r9
movl %r12d, %edi
movl %r14d, %esi
movl %r13d, %edx
movq %rbp, %rcx
callq *(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11540
cmpl $0x0, (%rbp)
je 0x2cae2
movq %rbx, %rdi
movq %r15, %rsi
callq 0x110c0
movl 0xc(%rsp), %edx
pushq $0xe
popq %rsi
movq %rbx, %rdi
callq 0x11110
movslq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x113b0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11360
pushq $0x3
popq %rax
jmp 0x2cb01
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11360
leaq 0x19a1f(%rip), %rsi     # 0x46513
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x11ae0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getuniform.c
// Function: GetUniformBlockIndex
static int GetUniformBlockIndex(lua_State *L)
    {
    GLuint program = luaL_checkinteger(L, 1);
    const char *name = luaL_checkstring(L, 2);
    GLuint index = glGetUniformBlockIndex(program, name);
    CheckError(L);
    if(index == GL_INVALID_INDEX)
        { lua_pushfstring(L, "invalid name '%s'", name); return lua_error(L); }
    lua_pushinteger(L, index);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r15
pushq $0x2
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11440
movq %rax, %r14
movq 0x28ffc(%rip), %rax     # 0x55dc8
movl %r15d, %edi
movq %r14, %rsi
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11870
cmpl $-0x1, %ebp
je 0x2cdfb
movl %ebp, %esi
movq %rbx, %rdi
callq 0x113b0
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x196ff(%rip), %rsi     # 0x46501
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x11160
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11630
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getuniform.c
// Function: GetActiveUniformBlockName
static int GetActiveUniformBlockName(lua_State *L)
    {
    GLsizei length;
    GLuint program = luaL_checkinteger(L, 1);
    GLuint index = luaL_checkinteger(L, 2);
    GLsizei bufsz = GetAUB_NameLength(L, program, index);
    GLchar *name = (GLchar*)Malloc(L, bufsz*sizeof(GLchar));
    glGetActiveUniformBlockName(program, index, bufsz, &length, name);
    CheckErrorFree(L, name);
    lua_pushstring(L, name);
    Free(L, name);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x1
popq %rbx
movl %ebx, %esi
callq 0x11af0
movq %rax, %r15
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0x11af0
movq %rax, %r12
movq 0x28ae7(%rip), %rax     # 0x55938
leaq 0x4(%rsp), %r13
movl %r15d, %edi
movl %r12d, %esi
movl $0x8a41, %edx           # imm = 0x8A41
movq %r13, %rcx
callq *(%rax)
movq %r14, %rdi
callq 0x11870
movl (%r13), %eax
movslq %eax, %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x111f0
movq %rax, %rbp
movq 0x2844e(%rip), %rax     # 0x552d8
movq %rsp, %rcx
movl %r15d, %edi
movl %r12d, %esi
movl %r13d, %edx
movq %rbp, %r8
callq *(%rax)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x11540
movq %r14, %rdi
movq %rbp, %rsi
callq 0x110c0
movq %r14, %rdi
movq %rbp, %rsi
callq 0x11360
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getuniform.c
// Function: GetActiveUniformBlock
static int GetActiveUniformBlock(lua_State *L)
    {
    GLuint program = luaL_checkinteger(L, 1);
    GLuint index = luaL_checkinteger(L, 2);
    GLenum pname = checkblockpname(L, 3);
    switch(pname)
        {
        case GL_UNIFORM_BLOCK_BINDING:
        case GL_UNIFORM_BLOCK_DATA_SIZE:
        case GL_UNIFORM_BLOCK_NAME_LENGTH:
        case GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS:
        case GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:
                        return GetAUB_Int(L, program, index, pname);
        case GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:
        case GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER:
        case GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER:
        case GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER:
        case GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:
        case GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER:
                        return GetAUB_Boolean(L, program, index, pname);
        default:
            return luaL_error(L, UNEXPECTED_ERROR);
        }
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r15
pushq $0x4d
popq %rsi
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x11150
leal -0x8a3f(%rax), %ecx
cmpl $0x5, %ecx
jb 0x2cf57
leal -0x8a44(%rax), %ecx
cmpl $0x3, %ecx
jb 0x2cf27
leal -0x84f0(%rax), %ecx
cmpl $0x2, %ecx
jb 0x2cf27
cmpl $0x90ec, %eax           # imm = 0x90EC
jne 0x2cf92
movq 0x28a0a(%rip), %r8      # 0x55938
leaq 0x4(%rsp), %r12
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
movq %r12, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11870
movl (%r12), %esi
movq %rbx, %rdi
callq 0x117e0
jmp 0x2cf83
movq 0x289da(%rip), %r8      # 0x55938
movq %rsp, %r12
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
movq %r12, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11870
movslq (%r12), %rsi
movq %rbx, %rdi
callq 0x113b0
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0xe2ec(%rip), %rsi      # 0x3b285
leaq 0x19554(%rip), %rdx     # 0x464f4
movq %rbx, %rdi
movl $0x13f, %ecx            # imm = 0x13F
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getuniform.c
// Function: GetActiveAtomicCounterBuffer
static int GetActiveAtomicCounterBuffer(lua_State *L)
    {
    GLuint program = luaL_checkinteger(L, 1);
    GLuint index = luaL_checkinteger(L, 2);
    GLenum pname = checkacbpname(L, 3);
    switch(pname)
        {
        case GL_ATOMIC_COUNTER_BUFFER_BINDING:
        case GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE:
        case GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS:
        case GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES:
                            return GetACB_Int(L, program, index, pname);
        case GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER:
        case GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER:
        case GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER:
        case GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER:
        case GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER:
        case GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER:
                            return GetACB_Boolean(L, program, index, pname);
        default:
            return luaL_error(L, UNEXPECTED_ERROR);
        }
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r15
pushq $0x4e
popq %rsi
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x11150
leal -0x92c1(%rax), %ecx
cmpl $0xa, %ecx
ja 0x2d074
movl $0x7c0, %edx            # imm = 0x7C0
btl %ecx, %edx
jae 0x2d031
movq 0x28b28(%rip), %r8      # 0x55b30
leaq 0x4(%rsp), %r12
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
movq %r12, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11870
movl (%r12), %esi
movq %rbx, %rdi
callq 0x117e0
jmp 0x2d065
pushq $0x39
popq %rdx
btl %ecx, %edx
jae 0x2d074
movq 0x28af0(%rip), %r8      # 0x55b30
movq %rsp, %r12
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
movq %r12, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11870
movslq (%r12), %rsi
movq %rbx, %rdi
callq 0x113b0
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
cmpl $0x90ed, %eax           # imm = 0x90ED
je 0x2d001
leaq 0xe203(%rip), %rsi      # 0x3b285
leaq 0x1946b(%rip), %rdx     # 0x464f4
movq %rbx, %rdi
movl $0x189, %ecx            # imm = 0x189
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getuniform.c
// Function: GetInt
static int GetInt(lua_State *L, GLuint program, GLsizei count, GLuint *indices, GLenum pname, GLint *params)
    {
    int i;
    glGetActiveUniformsiv(program, count, indices, pname, params);
    CheckErrorFree2(L, indices, params);
    for(i = 0; i<count; i++)
        lua_pushinteger(L, params[i]);
    Free(L, indices);
    Free(L, params);
    return count;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %rcx, %r12
movl %edx, %ebx
movq %rdi, %r15
movq 0x28646(%rip), %rax     # 0x55738
movl %esi, %edi
movl %edx, %esi
movq %rcx, %rdx
movl %r8d, %ecx
movq %r9, %r8
callq *(%rax)
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x111d0
xorl %r13d, %r13d
testl %ebx, %ebx
movl $0x0, %ebp
cmovgl %ebx, %ebp
cmpq %r13, %rbp
je 0x2d132
movslq (%r14,%r13,4), %rsi
movq %r15, %rdi
callq 0x113b0
incq %r13
jmp 0x2d11c
movq %r15, %rdi
movq %r12, %rsi
callq 0x11360
movq %r15, %rdi
movq %r14, %rsi
callq 0x11360
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getvertex.c
// Function: GetVertexAttrib
static int GetVertexAttrib(lua_State *L)
    {
    GLuint index = luaL_checkinteger(L, 1);
    GLenum pname = checkvertexpname(L,2);
    switch(pname)
        {
        case GL_VERTEX_ATTRIB_ARRAY_ENABLED:
        case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED:
        case GL_VERTEX_ATTRIB_ARRAY_INTEGER:
        case GL_VERTEX_ATTRIB_ARRAY_LONG:
                        return GetBoolean(L, index, pname);
        case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:
        case GL_VERTEX_ATTRIB_ARRAY_SIZE:
        case GL_VERTEX_ATTRIB_ARRAY_STRIDE:
        case GL_VERTEX_ATTRIB_ARRAY_DIVISOR:
        case GL_VERTEX_ATTRIB_RELATIVE_OFFSET:
        case GL_VERTEX_ATTRIB_BINDING:
                        return GetInt(L, index, pname);
        case GL_VERTEX_ATTRIB_ARRAY_TYPE:
                        return GetEnum(L, index, pname);
//      case GL_VERTEX_BINDING_OFFSET: //@@
        default:
            return luaL_argerror(L, 2, "invalid pname");
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
pushq $0x1
popq %rbx
movl %ebx, %esi
callq 0x11af0
movq %rax, %r15
pushq $0x6
popq %rsi
pushq $0x2
popq %rdx
movq %r14, %rdi
callq 0x11150
leal -0x82d4(%rax), %ecx
cmpl $0x2, %ecx
jb 0x2d342
leal -0x8623(%rax), %ecx
cmpl $0x2, %ecx
jb 0x2d342
cmpl $0x8622, %eax           # imm = 0x8622
je 0x2d336
cmpl $0x8625, %eax           # imm = 0x8625
je 0x2d35d
cmpl $0x874e, %eax           # imm = 0x874E
je 0x2d336
cmpl $0x886a, %eax           # imm = 0x886A
je 0x2d336
cmpl $0x889f, %eax           # imm = 0x889F
je 0x2d342
cmpl $0x88fe, %eax           # imm = 0x88FE
je 0x2d342
cmpl $0x88fd, %eax           # imm = 0x88FD
jne 0x2d38f
movq %r14, %rdi
movl %r15d, %esi
movl %eax, %edx
movl %ebx, %ecx
jmp 0x2d34c
movq %r14, %rdi
movl %r15d, %esi
movl %eax, %edx
xorl %ecx, %ecx
callq 0x2d59e
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x2801c(%rip), %rax     # 0x55380
leaq 0xc(%rsp), %rbx
movl %r15d, %edi
movl $0x8625, %esi           # imm = 0x8625
movq %rbx, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x11870
movl (%rbx), %edx
pushq $0x7
popq %rsi
movq %r14, %rdi
callq 0x11110
movl %eax, %ebx
jmp 0x2d351
leaq 0x19225(%rip), %rdx     # 0x465bb
pushq $0x2
popq %rsi
movq %r14, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x11930
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getvertex.c
// Function: GetCurrentVertexAttrib
static int GetCurrentVertexAttrib(lua_State *L)
/* val1, val2, val3, val4 = get_current_vertex_attrib(L, type) */
    {
    GLuint index = luaL_checkinteger(L, 1);
    GLenum type = checktype(L, 2);
    switch(type)
        {
        case GL_BYTE:
        case GL_UNSIGNED_BYTE:
        case GL_SHORT:
        case GL_UNSIGNED_SHORT:
        case GL_FLOAT: return CurGetFloat(L, index);
        case GL_DOUBLE: return CurGetDouble(L, index);
        case GL_INT: return CurGetInt(L, index);
        case GL_UNSIGNED_INT: return CurGetUint(L, index);
        default:
            return luaL_error(L, "type not supported by this operation");
        }
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r14
pushq $0x7
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x11150
addl $0xffffec00, %eax       # imm = 0xFFFFEC00
cmpl $0xa, %eax
ja 0x2d4d6
leaq 0x19156(%rip), %rcx     # 0x46538
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x282ae(%rip), %rax     # 0x556a0
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %r14d, %r14d
cmpq $0x4, %r14
je 0x2d4cb
cvtss2sd (%rsp,%r14,4), %xmm0
movq %rbx, %rdi
callq 0x11370
incq %r14
jmp 0x2d40a
movq 0x280e2(%rip), %rax     # 0x55510
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %r14d, %r14d
cmpq $0x4, %r14
je 0x2d4cb
movslq (%rsp,%r14,4), %rsi
movq %rbx, %rdi
callq 0x113b0
incq %r14
jmp 0x2d446
movq 0x287fc(%rip), %rax     # 0x55c60
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %r14d, %r14d
cmpq $0x4, %r14
je 0x2d4cb
movl (%rsp,%r14,4), %esi
movq %rbx, %rdi
callq 0x113b0
incq %r14
jmp 0x2d47c
movq 0x286a6(%rip), %rax     # 0x55b40
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %r14d, %r14d
cmpq $0x4, %r14
je 0x2d4cb
movsd (%rsp,%r14,8), %xmm0
movq %rbx, %rdi
callq 0x11370
incq %r14
jmp 0x2d4b2
pushq $0x4
popq %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
leaq 0x190ec(%rip), %rsi     # 0x465c9
movq %rbx, %rdi
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/getvertex.c
// Function: GetVertexAttribPointer
static int GetVertexAttribPointer(lua_State *L)
    {
    GLuint index = luaL_checkinteger(L, 1);
    void *pointer;
    glGetVertexAttribPointerv(index, pname, &pointer);
    CheckError(L);
    lua_pushinteger(L, (GLsizeiptr)pointer);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %esi
callq 0x11af0
movq 0x28566(%rip), %rcx     # 0x55a70
leaq 0x8(%rsp), %r14
movl %eax, %edi
movl $0x8645, %esi           # imm = 0x8645
movq %r14, %rdx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11870
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x113b0
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/hint.c
// Function: Hint
static int Hint(lua_State *L)
    {
    GLenum target = checkhinttarget(L, 1);
    GLenum mode = checkhintmode(L, 2);
    glHint(target, mode);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x46
popq %rsi
pushq $0x1
popq %rdx
callq 0x11150
movl %eax, %ebp
pushq $0x47
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x11150
movl %ebp, %edi
movl %eax, %esi
callq 0x110f0
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/init.c
// Function: Init
static int Init(lua_State *L)
    {
    GLuint major, minor, version;
    GLenum err;
#if 0
    if(lua_isboolean(L, 1))
        glewExperimental = (lua_toboolean(L,1)) ? GL_TRUE : GL_FALSE;
#endif
    /* See:
     * http://stackoverflow.com/questions/8302625/segmentation-fault-at-glgenvertexarrays-1-vao
     * http://glew.sourceforge.net/basic.html ('Experimental drivers')
     */
    glewExperimental = GL_TRUE;
    if((err = glewInit()) != GLEW_OK)
        return luaL_error(L, "glewInit error: %s", glewGetErrorString(err));
    glGetError(); /* just to be sure... */
    Initialized = 1;

    /* get the version supported by the driver */
    major = getUint(L, GL_MAJOR_VERSION);
    minor = getUint(L, GL_MINOR_VERSION);
    version = MAKE_VERSION(major, minor);
    if(version < moongl_version) moongl_version = version;
    if(moongl_version < MAKE_VERSION(3,3))
        return luaL_error(L, "MoonGL requires OpenGL >= 3.3");
    return 0;
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x27f7e(%rip), %rax     # 0x55660
movb $0x1, (%rax)
callq 0x11510
testl %eax, %eax
je 0x2d70f
movl %eax, %edi
callq 0x11690
leaq 0x18f3c(%rip), %rsi     # 0x46638
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x11ae0
callq 0x11240
movb $0x1, 0x2923d(%rip)     # 0x56958
movq %rbx, %rdi
movl $0x821b, %esi           # imm = 0x821B
callq 0x11a70
movl %eax, %ebp
movq %rbx, %rdi
movl $0x821c, %esi           # imm = 0x821C
callq 0x11a70
shll $0x8, %ebp
orl %eax, %ebp
movq 0x283f5(%rip), %rcx     # 0x55b38
movl (%rcx), %eax
cmpl %eax, %ebp
jae 0x2d74d
movl %ebp, (%rcx)
movl %ebp, %eax
cmpl $0x302, %eax            # imm = 0x302
ja 0x2d76b
leaq 0x18ef0(%rip), %rsi     # 0x4664b
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x11ae0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/init.c
// Function: IsSupported
static int IsSupported(lua_State *L)
    {
    const char *what = luaL_checkstring(L, 1);
    lua_pushboolean(L, glewIsSupported(what));
    CheckError(L);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rbp
movl %ebp, %esi
xorl %edx, %edx
callq 0x11440
movq %rax, %rdi
callq 0x11180
movzbl %al, %esi
movq %rbx, %rdi
callq 0x117e0
movq %rbx, %rdi
callq 0x11870
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/init.c
// Function: Version
static int Version(lua_State *L)
    {
    GLuint major, minor;
    check_init_called(L);
    major = VERSION_MAJOR(moongl_version);
    minor = VERSION_MINOR(moongl_version);
    lua_pushfstring(L, "OpenGL %d.%d", major, minor);
    return 1;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x115d0
movq 0x2826a(%rip), %rax     # 0x55b38
movl (%rax), %edx
movzbl %dl, %ecx
shrl $0x8, %edx
leaq 0x18e9a(%rip), %rsi     # 0x46777
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11160
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/main.c
// Function: AtExit
static void AtExit(void)
    {
    if(moongl_L)
        {
        enums_free_all(moongl_L);
        object_free_all(moongl_L);
        moongl_L = NULL;
        }
    }

// Assembly:
movq 0x28e70(%rip), %rdi     # 0x56960
testq %rdi, %rdi
je 0x2db13
pushq %rax
callq 0x11430
movq 0x28e5e(%rip), %rdi     # 0x56960
callq 0x11470
andq $0x0, 0x28e51(%rip)     # 0x56960
addq $0x8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/object.c
// Function: moongl_object_free
void object_free(lua_State *L, uint32_t otype, uint32_t oname)
    {
    rec_t *rec;
    GLuint name = oname;    
    if(trace_objects)
        printf("delete %s %d\n", tracename(otype), oname);
    if(track_objects)
        {
        rec = search(otype, oname);
        if(rec)
            { removeeee(rec); Free(L, rec); }
        }

    switch(otype)
        {
        case OTYPE_BUFFER: glDeleteBuffers(1, &name); break;
        case OTYPE_VERTEX_ARRAY: glDeleteVertexArrays(1, &name); break;
        case OTYPE_SAMPLER: glDeleteSamplers(1, &name); break;
        case OTYPE_TEXTURE: glDeleteTextures(1, &name); break;
        case OTYPE_FRAMEBUFFER: glDeleteFramebuffers(1, &name); break;
        case OTYPE_RENDERBUFFER: glDeleteRenderbuffers(1, &name); break;
        case OTYPE_PROGRAM: glDeleteProgram(name); break;
        case OTYPE_SHADER: glDeleteShader(name); break;
        case OTYPE_PROGRAM_PIPELINE: glDeleteProgramPipelines(1, &name); break;
        case OTYPE_TRANSFORM_FEEDBACK: glDeleteTransformFeedbacks(1, &name); break;
        case OTYPE_QUERY: glDeleteQueries(1, &name); break;
        default:
            unexpected(L);
        }
    CheckError(L);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movl %edx, 0x4(%rsp)
cmpl $0x0, 0x27d31(%rip)     # 0x56968
je 0x2ec54
movl %r14d, %edi
callq 0x2ebbc
leaq 0x17cbe(%rip), %rdi     # 0x46906
movq %rax, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0x11070
cmpb $0x0, 0x27d11(%rip)     # 0x5696c
jne 0x2ec82
movl %r14d, %edi
movl %ebp, %esi
callq 0x2ebdc
testq %rax, %rax
je 0x2ec82
movq %rax, %r15
movq %rax, %rdi
callq 0x2ed46
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11360
decl %r14d
cmpl $0xa, %r14d
ja 0x2ed27
leaq 0x17c0a(%rip), %rax     # 0x468a0
movslq (%rax,%r14,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x26e22(%rip), %rax     # 0x55ac8
jmp 0x2ed0a
movq 0x26661(%rip), %rax     # 0x55310
jmp 0x2ed0a
movq 0x269f0(%rip), %rax     # 0x556a8
jmp 0x2ed0a
movq 0x26907(%rip), %rax     # 0x555c8
jmp 0x2ed0a
pushq $0x1
popq %rdi
leaq 0x4(%rsp), %rsi
callq 0x11680
jmp 0x2ed14
movq 0x266f7(%rip), %rax     # 0x553d0
jmp 0x2ecf4
movq 0x26bce(%rip), %rax     # 0x558b0
jmp 0x2ed0a
movq 0x26a35(%rip), %rax     # 0x55720
jmp 0x2ed0a
movq 0x26d5c(%rip), %rax     # 0x55a50
movl %ebp, %edi
callq *(%rax)
jmp 0x2ed14
movq 0x268bf(%rip), %rax     # 0x555c0
jmp 0x2ed0a
movq 0x26e6e(%rip), %rax     # 0x55b78
pushq $0x1
popq %rdi
leaq 0x4(%rsp), %rsi
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc557(%rip), %rsi      # 0x3b285
leaq 0x17bdf(%rip), %rdx     # 0x46914
movq %rbx, %rdi
movl $0x9a, %ecx
xorl %eax, %eax
callq 0x11ae0
jmp 0x2ed14
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/object.c
// Function: moongl_object_free_all
void object_free_all(lua_State *L)
    {
    rec_t *rec;
    if(track_objects)
        {
        while((rec = first(0, 0)))
            object_free(L, rec->otype, rec->oname);
        }
    else /* just remove any object inserted before object tracking was disabled */
        {
        while((rec = first(0, 0)))
            { removeeee(rec); Free(L, rec); }
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x27853(%rip)     # 0x5696c
je 0x2f13d
callq 0x2f15f
testq %rax, %rax
je 0x2f157
movq %rax, %r14
movq %rax, %rdi
callq 0x2ed46
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11360
jmp 0x2f11b
callq 0x2f15f
testq %rax, %rax
je 0x2f157
movl 0x20(%rax), %esi
movl 0x24(%rax), %edx
movq %rbx, %rdi
callq 0x11090
jmp 0x2f13d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/perfragment.c
// Function: Scissor
static int Scissor(lua_State *L)
    {
    GLint x, y;
    GLsizei width, height;
    GLint v[4];
    GLint index;
    if(lua_isinteger(L, 5))
        {
        v[0] = luaL_checkinteger(L, 1);
        v[1] = luaL_checkinteger(L, 2);
        v[2] = luaL_checkinteger(L, 3);
        v[3] = luaL_checkinteger(L, 4);
        index = luaL_checkinteger(L, 5);
        glScissorIndexedv(index, v);
        }
    else
        {
        x = luaL_checkinteger(L, 1);
        y = luaL_checkinteger(L, 2);
        width = luaL_checkinteger(L, 3);
        height = luaL_checkinteger(L, 4);
        glScissor(x, y, width, height);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x5
popq %rsi
callq 0x115b0
movl %eax, %ebp
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r15
testl %ebp, %ebp
je 0x2f27b
movq %rsp, %r14
movl %r15d, (%r14)
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movl %eax, 0x4(%r14)
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movl %eax, 0x8(%r14)
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movl %eax, 0xc(%r14)
pushq $0x5
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq 0x26316(%rip), %rcx     # 0x55588
movl %eax, %edi
movq %r14, %rsi
callq *(%rcx)
jmp 0x2f2b2
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r14
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r12
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movl %r15d, %edi
movl %r14d, %esi
movl %r12d, %edx
movl %eax, %ecx
callq 0x11920
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/perfragment.c
// Function: ScissorArray
static int ScissorArray(lua_State *L)
/* scissor_array(first, x1, x2, w1, h1, x2, y2, ...) */
    {
    int i, arg;
    GLsizei count;
    GLint *v;
    GLuint first = luaL_checkinteger(L, 1);
    count = 0;
    arg = 2;
    while(!lua_isnoneornil(L, arg++))
        luaL_checkinteger(L, arg);

    count = arg - 2;
    if((arg < 6) || ((count % 4)!=0))
        return luaL_error(L, NARGS_ERROR);
    v = (GLint*)Malloc(L, count*sizeof(GLint));
    i = 0;
    arg = 2;
    while(i < count)
        v[i++] = lua_tointeger(L, arg++);
    glScissorArrayv(first, count/4, v);
    Free(L, v);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r14
pushq $0x1
popq %r15
pushq $0x4
popq %r12
leal 0x1(%r15), %esi
movq %rbx, %rdi
callq 0x11850
testl %eax, %eax
jle 0x2f30f
leal 0x2(%r15), %esi
movq %rbx, %rdi
callq 0x11af0
incq %r15
addq $0x4, %r12
jmp 0x2f2ea
leal 0x1(%r15), %eax
cmpl $0x5, %eax
setae %al
testb $0x3, %r15b
sete %cl
testb %cl, %al
je 0x2f355
movq %rbx, %rdi
movq %r12, %rsi
callq 0x111f0
movq %rax, %r12
xorl %r13d, %r13d
movq %r15, %rbp
subq $0x1, %rbp
jb 0x2f374
leaq 0x2(%r13), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r12,%r13,4)
incq %r13
jmp 0x2f338
leaq 0xc222(%rip), %rsi      # 0x3b57e
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11ae0
movq 0x26955(%rip), %rax     # 0x55cd0
sarl $0x2, %r15d
movl %r14d, %edi
movl %r15d, %esi
movq %r12, %rdx
callq *(%rax)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11360
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/perfragment.c
// Function: SampleCoverage
static int SampleCoverage(lua_State *L)
    {
    GLfloat value = luaL_checknumber(L, 1);
    GLboolean invert = checkboolean(L, 2);
    glSampleCoverage(value, invert);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11a80
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11500
movq 0x26376(%rip), %rcx     # 0x55750
movzbl %al, %edi
movss 0xc(%rsp), %xmm0
callq *(%rcx)
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/perfragment.c
// Function: SampleMask
static int SampleMask(lua_State *L)
    {
    GLuint maskNumber = luaL_checkinteger(L, 1);
    GLbitfield mask = luaL_checkinteger(L, 2);
    glSampleMaski(maskNumber, mask);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x11af0
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq 0x26707(%rip), %rcx     # 0x55b20
movl %r14d, %edi
movl %eax, %esi
callq *(%rcx)
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/perfragment.c
// Function: StencilFunc
static int StencilFunc(lua_State *L)
    {
    GLenum face;
    GLenum func = checkstencilfunc(L, 1);
    GLint ref = luaL_checkinteger(L, 2);
    GLuint mask = luaL_checkinteger(L, 3);
    if(lua_isstring(L, 4))
        {
        face = checkface(L, 4);
        glStencilFuncSeparate(face, func, ref, mask);
        }
    else
        glStencilFunc(func, ref, mask);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1e
popq %rsi
pushq $0x1
popq %rdx
callq 0x11150
movl %eax, %ebp
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r14
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r15
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x110b0
testl %eax, %eax
je 0x2f498
pushq $0x1f
popq %rsi
pushq $0x4
popq %rdx
movq %rbx, %rdi
callq 0x11150
movq 0x2660f(%rip), %r8      # 0x55a98
movl %eax, %edi
movl %ebp, %esi
movl %r14d, %edx
movl %r15d, %ecx
callq *(%r8)
jmp 0x2f4a5
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
callq 0x112a0
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/perfragment.c
// Function: StencilOp
static int StencilOp(lua_State *L)
    {
    GLenum face;
    GLenum sfail = checkstencilop(L, 1);
    GLenum dpfail = checkstencilop(L, 2);
    GLenum dppass = checkstencilop(L, 3);
    if(lua_isstring(L, 4))
        {
        face = checkface(L, 4);
        glStencilOpSeparate(face, sfail, dpfail, dppass);
        }
    else
        glStencilOp(sfail, dpfail, dppass);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x20
popq %r15
pushq $0x1
popq %rdx
movl %r15d, %esi
callq 0x11150
movl %eax, %ebp
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11150
movl %eax, %r14d
pushq $0x3
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11150
movl %eax, %r15d
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x110b0
testl %eax, %eax
je 0x2f52a
pushq $0x1f
popq %rsi
pushq $0x4
popq %rdx
movq %rbx, %rdi
callq 0x11150
movq 0x26965(%rip), %r8      # 0x55e80
movl %eax, %edi
movl %ebp, %esi
movl %r14d, %edx
movl %r15d, %ecx
callq *(%r8)
jmp 0x2f537
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
callq 0x11650
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/perfragment.c
// Function: DepthFunc
static int DepthFunc(lua_State *L)
    {
    GLenum func = checkstencilfunc(L, 1);
    glDepthFunc(func);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x1e
popq %rsi
pushq $0x1
popq %rdx
callq 0x11150
movl %eax, %edi
callq 0x11880
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/perfragment.c
// Function: BlendEquation
static int BlendEquation(lua_State *L)
    {
    GLuint buf;
    GLenum mode, alpha;

    if(lua_isinteger(L, 1))
        {
        buf = luaL_checkinteger(L, 1);
        mode = checkblendmode(L, 2);
        if(lua_isstring(L, 3))
            {
            alpha = checkblendmode(L,3);
            glBlendEquationSeparatei(buf, mode, alpha);
            }
        else
            glBlendEquationi(buf, mode);
        }
    else
        {
        mode = checkblendmode(L, 1);
        if(lua_isstring(L, 2))
            {
            alpha = checkblendmode(L,2);
            glBlendEquationSeparate(mode, alpha);
            }
        else
            glBlendEquation(mode);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x115b0
testl %eax, %eax
je 0x2f5ce
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r14
pushq $0x21
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x11150
movl %eax, %ebp
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x110b0
testl %eax, %eax
je 0x2f60a
pushq $0x21
popq %rsi
pushq $0x3
popq %rdx
movq %rbx, %rdi
callq 0x11150
movq 0x2671d(%rip), %rcx     # 0x55ce0
movl %r14d, %edi
movl %ebp, %esi
movl %eax, %edx
callq *(%rcx)
jmp 0x2f625
pushq $0x21
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x11150
movl %eax, %ebp
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x110b0
testl %eax, %eax
je 0x2f61a
pushq $0x21
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x11150
movq 0x263ae(%rip), %rcx     # 0x559b0
movl %ebp, %edi
movl %eax, %esi
callq *(%rcx)
jmp 0x2f625
movq 0x26867(%rip), %rax     # 0x55e78
movl %r14d, %edi
movl %ebp, %esi
callq *(%rax)
jmp 0x2f625
movq 0x267ff(%rip), %rax     # 0x55e20
movl %ebp, %edi
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/stetre[P]moongl/src/perfragment.c
// Function: BlendFunc
static int BlendFunc(lua_State *L)
    {
    GLuint buf;
    GLenum sfactor, dfactor, sfactorAlpha, dfactorAlpha;
    if(lua_isinteger(L, 1))
        {
        buf = luaL_checkinteger(L, 1);
        sfactor = checkblendfactor(L, 2);
        dfactor = checkblendfactor(L, 3);
        if(lua_isstring(L, 4))
            {
            sfactorAlpha = checkblendfactor(L, 4);
            dfactorAlpha = checkblendfactor(L, 5);
            glBlendFuncSeparatei(buf, sfactor, dfactor, sfactorAlpha, dfactorAlpha);
            }
        else
            glBlendFunci(buf, sfactor, dfactor);
        }
    else
        {
        sfactor = checkblendfactor(L, 1);
        dfactor = checkblendfactor(L, 2);
        if(lua_isstring(L, 3))
            {
            sfactorAlpha = checkblendfactor(L, 3);
            dfactorAlpha = checkblendfactor(L, 4);
            glBlendFuncSeparate(sfactor, dfactor, sfactorAlpha, dfactorAlpha);
            }
        else
            glBlendFunc(sfactor, dfactor);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0x115b0
testl %eax, %eax
je 0x2f6d8
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, %r14
pushq $0x22
popq %r15
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11150
movl %eax, %ebp
pushq $0x3
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11150
movl %eax, %r15d
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x110b0
testl %eax, %eax
je 0x2f745
pushq $0x22
popq %r12
pushq $0x4
popq %rdx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x11150
movl %eax, %r13d
pushq $0x5
popq %rdx
movq %rbx, %rdi
movl %r12d, %esi
callq 0x11150
movq 0x2626e(%rip), %r9      # 0x55930
movl %r14d, %edi
movl %ebp, %esi
movl %r15d, %edx
movl %r13d, %ecx
movl %eax, %r8d
callq *(%r9)
jmp 0x2f762
pushq $0x22
popq %r14
pushq $0x1
popq %rdx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x11150
movl %eax, %ebp
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x11150
movl %eax, %r14d
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x110b0
testl %eax, %eax
je 0x2f758
pushq $0x22
popq %r15
pushq $0x3
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11150
movl %eax, %r12d
pushq $0x4
popq %rdx
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11150
movq 0x25bd2(%rip), %r8      # 0x55308
movl %ebp, %edi
movl %r14d, %esi
movl %r12d, %edx
movl %eax, %ecx
callq *(%r8)
jmp 0x2f762
movq 0x260e4(%rip), %rax     # 0x55830
movl %r14d, %edi
movl %ebp, %esi
movl %r15d, %edx
callq *(%rax)
jmp 0x2f762
movl %ebp, %edi
movl %r14d, %esi
callq 0x11520
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq