LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetBoolean
static int GetBoolean(lua_State *L, GLenum pname)
    {
    GLboolean data;
    glGetBooleanv(pname, &data);
    CheckError(L);
    lua_pushboolean(L, (data == GL_TRUE));
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x7(%rsp), %r14
movl %esi, %edi
movq %r14, %rsi
callq 0x11980
movq %rbx, %rdi
callq 0x11880
xorl %esi, %esi
cmpb $0x1, (%r14)
sete %sil
movq %rbx, %rdi
callq 0x117f0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetFloat4
static int GetFloat4(lua_State *L, GLenum pname)
    {
    GLfloat data[4];
    glGetFloatv(pname, data);
    CheckError(L);
    lua_pushnumber(L, data[0]);
    lua_pushnumber(L, data[1]);
    lua_pushnumber(L, data[2]);
    lua_pushnumber(L, data[3]);
    return 4;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movl %esi, %edi
movq %r14, %rsi
callq 0x11aa0
movq %rbx, %rdi
callq 0x11880
cvtss2sd (%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0x4(%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0x8(%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0xc(%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetBoolean4OptIndex
static int GetBoolean4OptIndex(lua_State *L, GLenum pname) /* index is optional */
    {
    GLboolean data[4];
    GLuint index;
    if(!lua_isnoneornil(L, 2))
        {
        index = luaL_checkinteger(L, 2);
        glGetBooleani_v(pname, index, data);
        }
    else
        glGetBooleanv(pname, data);
    CheckError(L);
    lua_pushboolean(L, data[0]);
    lua_pushboolean(L, data[1]);
    lua_pushboolean(L, data[2]);
    lua_pushboolean(L, data[3]);
    return 4;
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x2, %esi
callq 0x11860
testl %eax, %eax
jle 0x2dba1
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq 0x28f7f(%rip), %rcx     # 0x56b10
leaq 0xc(%rsp), %rdx
movl $0xc23, %edi            # imm = 0xC23
movl %eax, %esi
callq *(%rcx)
jmp 0x2dbb0
leaq 0xc(%rsp), %rsi
movl $0xc23, %edi            # imm = 0xC23
callq 0x11980
movq %rbx, %rdi
callq 0x11880
movzbl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0x117f0
movzbl 0xd(%rsp), %esi
movq %rbx, %rdi
callq 0x117f0
movzbl 0xe(%rsp), %esi
movq %rbx, %rdi
callq 0x117f0
movzbl 0xf(%rsp), %esi
movq %rbx, %rdi
callq 0x117f0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetFloat
static int GetFloat(lua_State *L, GLenum pname)
    {
    GLfloat data;
    glGetFloatv(pname, &data);
    CheckError(L);
    lua_pushnumber(L, data);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x4(%rsp), %r14
movl %esi, %edi
movq %r14, %rsi
callq 0x11aa0
movq %rbx, %rdi
callq 0x11880
cvtss2sd (%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetBooleanOptIndex
static int GetBooleanOptIndex(lua_State *L, GLenum pname) /* index is optional */
    {
    GLboolean data;
    GLuint index;
    if(!lua_isnoneornil(L, 2))
        {
        index = luaL_checkinteger(L, 2);
        glGetBooleani_v(pname, index, &data);
        }
    else
        glGetBooleanv(pname, &data);
    CheckError(L);
    lua_pushboolean(L, data);
    return 1;
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x2, %esi
callq 0x11860
testl %eax, %eax
jle 0x2dc9b
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq 0x28e85(%rip), %rcx     # 0x56b10
leaq 0xf(%rsp), %rdx
movl $0xbe2, %edi            # imm = 0xBE2
movl %eax, %esi
callq *(%rcx)
jmp 0x2dcaa
leaq 0xf(%rsp), %rsi
movl $0xbe2, %edi            # imm = 0xBE2
callq 0x11980
movq %rbx, %rdi
callq 0x11880
movzbl 0xf(%rsp), %esi
movq %rbx, %rdi
callq 0x117f0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetFloat4OptIndex
static int GetFloat4OptIndex(lua_State *L, GLenum pname) /* index is optional */
    {
    GLfloat data[4];
    GLuint index;
    if(!lua_isnoneornil(L, 2))
        {
        index = luaL_checkinteger(L, 2);
        glGetFloati_v(pname, index, data);
        }
    else
        glGetFloatv(pname, data);
    CheckError(L);
    lua_pushnumber(L, data[0]);
    lua_pushnumber(L, data[1]);
    lua_pushnumber(L, data[2]);
    lua_pushnumber(L, data[3]);
    return 4;
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x2, %esi
callq 0x11860
testl %eax, %eax
jle 0x2dcfd
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq 0x28ec1(%rip), %rcx     # 0x56bb0
movq %rsp, %rdx
movl $0x8005, %edi           # imm = 0x8005
movl %eax, %esi
callq *(%rcx)
jmp 0x2dd0a
movq %rsp, %rsi
movl $0x8005, %edi           # imm = 0x8005
callq 0x11aa0
movq %rbx, %rdi
callq 0x11880
cvtss2sd (%rsp), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0x4(%rsp), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0x8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0xc(%rsp), %xmm0
movq %rbx, %rdi
callq 0x11380
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetEnumOptIndex
static int GetEnumOptIndex(lua_State *L, GLenum pname, uint32_t domain) /* index is optional */
    {
    GLint data;
    GLuint index;
    if(!lua_isnoneornil(L, 2))
        {
        index = luaL_checkinteger(L, 2);
        glGetIntegeri_v(pname, index, &data);
        }
    else
        glGetIntegerv(pname, &data);
    CheckError(L);
    return enums_push(L, domain, data);
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movl $0x2, %esi
callq 0x11860
testl %eax, %eax
jle 0x2dd96
movq %r14, %rdi
movl $0x2, %esi
callq 0x11af0
movq 0x286df(%rip), %rcx     # 0x56468
leaq 0xc(%rsp), %rdx
movl %ebp, %edi
movl %eax, %esi
callq *(%rcx)
jmp 0x2dda2
leaq 0xc(%rsp), %rsi
movl %ebp, %edi
callq 0x116e0
movq %r14, %rdi
callq 0x11880
movl 0xc(%rsp), %edx
movq %r14, %rdi
movl %ebx, %esi
callq 0x11120
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetFloat4Index
static int GetFloat4Index(lua_State *L, GLenum pname)
    {
    GLfloat data[4];
    GLuint index;
    index = luaL_checkinteger(L, 2);
    glGetFloati_v(pname, index, data);
    CheckError(L);
    lua_pushnumber(L, data[0]);
    lua_pushnumber(L, data[1]);
    lua_pushnumber(L, data[2]);
    lua_pushnumber(L, data[3]);
    return 4;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x2, %esi
callq 0x11af0
movq 0x28dd4(%rip), %rcx     # 0x56bb0
movq %rsp, %r14
movl $0xc10, %edi            # imm = 0xC10
movl %eax, %esi
movq %r14, %rdx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
cvtss2sd (%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0x4(%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0x8(%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0xc(%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetBoolean4Index
static int GetBoolean4Index(lua_State *L, GLenum pname)
    {
    GLboolean data[4];
    GLuint index;
    index = luaL_checkinteger(L, 2);
    glGetBooleani_v(pname, index, data);
    CheckError(L);
    lua_pushboolean(L, data[0]);
    lua_pushboolean(L, data[1]);
    lua_pushboolean(L, data[2]);
    lua_pushboolean(L, data[3]);
    return 4;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x2, %esi
callq 0x11af0
movq 0x28cbd(%rip), %rcx     # 0x56b10
leaq 0x4(%rsp), %r14
movl $0xc11, %edi            # imm = 0xC11
movl %eax, %esi
movq %r14, %rdx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
movzbl (%r14), %esi
movq %rbx, %rdi
callq 0x117f0
movzbl 0x1(%r14), %esi
movq %rbx, %rdi
callq 0x117f0
movzbl 0x2(%r14), %esi
movq %rbx, %rdi
callq 0x117f0
movzbl 0x3(%r14), %esi
movq %rbx, %rdi
callq 0x117f0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetIntN
static int GetIntN(lua_State *L, GLenum pname, GLenum numpname)
    {
    GLint64 *data;
    GLsizei i, num = getSizei(L, numpname);
    if(num==0) return 0;
    data = (GLint64*)Malloc(L, num*sizeof(GLint64));
    glGetInteger64v(pname, data);
    CheckErrorFree(L, data);
    for(i = 0; i<num; i++)
        lua_pushinteger(L, data[i]);
    Free(L, data);
    return num;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x2894a(%rip), %r12     # 0x56808
leaq 0x8(%rsp), %r14
movl $0x87fe, %edi           # imm = 0x87FE
movq %r14, %rsi
callq *(%r12)
movq %rbx, %rdi
callq 0x11880
movq (%r14), %r14
testl %r14d, %r14d
je 0x2df3b
movslq %r14d, %rsi
shlq $0x3, %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r15
movl $0x87ff, %edi           # imm = 0x87FF
movq %rax, %rsi
callq *(%r12)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11550
testl %r14d, %r14d
jle 0x2df2e
movl %r14d, %r12d
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %r13d, %r13d
movq (%r15,%r13,8), %rsi
movq %rbx, %rdi
callq 0x113c0
incq %r13
cmpq %r13, %r12
jne 0x2df1a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11370
jmp 0x2df3e
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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, %ebp
movq %rdi, %r14
movq 0x288a0(%rip), %rax     # 0x56808
movq %rsp, %r15
movl %edx, %edi
movq %r15, %rsi
callq *(%rax)
movq %r14, %rdi
callq 0x11880
movq (%r15), %r15
testl %r15d, %r15d
je 0x2dfea
movslq %r15d, %rsi
shlq $0x2, %rsi
movq %r14, %rdi
callq 0x11200
movq %rax, %r12
movl %ebp, %edi
movq %rax, %rsi
callq 0x116e0
movq %r14, %rdi
movq %r12, %rsi
callq 0x11550
movq %r14, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x11260
testl %r15d, %r15d
jle 0x2dfdd
movl %r15d, %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
xorl %ebp, %ebp
movl (%r12,%rbp,4), %edx
movq %r14, %rdi
movl %ebx, %esi
callq 0x11120
incq %rbp
cmpq %rbp, %r13
jne 0x2dfc7
movq %r14, %rdi
movq %r12, %rsi
callq 0x11370
jmp 0x2dfed
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x11880
cvtss2sd (%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
xorps %xmm0, %xmm0
cvtss2sd 0x4(%r14), %xmm0
movq %rbx, %rdi
callq 0x11380
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetEnum2
static int GetEnum2(lua_State *L, GLenum pname, uint32_t domain)
    {
    GLint val[2];
    glGetIntegerv(pname, val);
    CheckError(L);
    enums_push(L, domain, val[0]);
    enums_push(L, domain, val[1]);
    return 2;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %r14
movl $0xb40, %edi            # imm = 0xB40
movq %r14, %rsi
callq 0x116e0
movq %rbx, %rdi
callq 0x11880
movl (%r14), %edx
movq %rbx, %rdi
movl $0x61, %esi
callq 0x11120
movl 0x4(%r14), %edx
movq %rbx, %rdi
movl $0x61, %esi
callq 0x11120
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x4(%rsp), %r14
movl $0x84e0, %edi           # imm = 0x84E0
movq %r14, %rsi
callq 0x116e0
movq %rbx, %rdi
callq 0x11880
movl $0xffff7b40, %eax       # imm = 0xFFFF7B40
addl (%r14), %eax
cmpl $0x1f, %eax
ja 0x2e1b4
leaq 0x1c0c2(%rip), %rcx     # 0x4a184
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x2e1fe
movl $0x1b, %esi
jmp 0x2e1fb
movl $0x10, %esi
jmp 0x2e1fb
movl $0xe, %esi
jmp 0x2e1fb
movl $0xb, %esi
jmp 0x2e1fb
movl $0x4, %esi
jmp 0x2e1fb
movl $0xc, %esi
jmp 0x2e1fb
movl $0x9, %esi
jmp 0x2e1fb
movl $0x19, %esi
jmp 0x2e1fb
movl $0x18, %esi
jmp 0x2e1fb
movl $0x2, %esi
jmp 0x2e1fb
movl $0xf, %esi
jmp 0x2e1fb
movl $0x3, %esi
jmp 0x2e1fb
movl $0x7, %esi
jmp 0x2e1fb
movl $0x1, %esi
jmp 0x2e1fb
movl $0x1f, %esi
jmp 0x2e1fb
movl $0x11, %esi
jmp 0x2e1fb
movl $0x14, %esi
jmp 0x2e1fb
movl $0x5, %esi
jmp 0x2e1fb
movl $0x15, %esi
jmp 0x2e1fb
movl $0xd, %esi
jmp 0x2e1fb
movl $0x6, %esi
jmp 0x2e1fb
movl $0x12, %esi
jmp 0x2e1fb
movl $0xa, %esi
jmp 0x2e1fb
movl $0x8, %esi
jmp 0x2e1fb
movl $0x1e, %esi
jmp 0x2e1fb
leaq 0x110ca(%rip), %rsi     # 0x3f285
leaq 0x1c05c(%rip), %rdx     # 0x4a21e
movq %rbx, %rdi
movl $0x4d, %ecx
xorl %eax, %eax
callq 0x11ae0
jmp 0x2e203
movl $0x16, %esi
jmp 0x2e1fb
movl $0x13, %esi
jmp 0x2e1fb
movl $0x17, %esi
jmp 0x2e1fb
movl $0x1c, %esi
jmp 0x2e1fb
movl $0x1d, %esi
jmp 0x2e1fb
movl $0x1a, %esi
movq %rbx, %rdi
callq 0x113c0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/get.c
// Function: GetInt4OptIndex
static int GetInt4OptIndex(lua_State *L, GLenum pname) /* index is optional */
    {
    GLint64 data[4];
    GLuint index;
    if(!lua_isnoneornil(L, 2))
        {
        index = luaL_checkinteger(L, 2);
        glGetInteger64i_v(pname, index, data);
        }
    else
        glGetInteger64v(pname, data);
    CheckError(L);
    lua_pushinteger(L, data[0]);
    lua_pushinteger(L, data[1]);
    lua_pushinteger(L, data[2]);
    lua_pushinteger(L, data[3]);
    return 4;
    }

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movl $0x2, %esi
callq 0x11860
testl %eax, %eax
jle 0x2e243
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq 0x28a93(%rip), %rcx     # 0x56cc8
movq %rsp, %rdx
movl $0xba2, %edi            # imm = 0xBA2
movl %eax, %esi
callq *(%rcx)
jmp 0x2e254
movq 0x285be(%rip), %rax     # 0x56808
movq %rsp, %rsi
movl $0xba2, %edi            # imm = 0xBA2
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x113c0
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x113c0
movq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x113c0
movq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x113c0
addq $0x20, %rsp
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/getintformat.c
// Function: GetN
static int GetN(lua_State *L, GLenum target, GLenum internalformat, GLenum pname, GLenum numpname)
    {
    GLint64 *params;
    GLsizei i, num = GetNum(L, target, internalformat, numpname);
    if(num==0) return 0;
    params = (GLint64*)Malloc(L, num*sizeof(GLint64));
    glGetInternalformati64v(target, internalformat, pname, num*sizeof(GLint64), params);
    CheckErrorFree(L, params);
    for(i = 0; i<num; i++)
        lua_pushinteger(L, params[i]);
    Free(L, params);
    return num;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %rbx
movq 0x2837e(%rip), %rax     # 0x56948
leaq 0x4(%rsp), %r14
movl %esi, %edi
movl %edx, %esi
movl $0x9380, %edx           # imm = 0x9380
movl $0x4, %ecx
movq %r14, %r8
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movslq (%r14), %r14
testq %r14, %r14
je 0x2e655
leaq (,%r14,8), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11200
movq %rax, %r15
movq 0x28409(%rip), %rax     # 0x56a18
movl %r12d, %edi
movl %ebp, %esi
movl $0x80a9, %edx           # imm = 0x80A9
movl %r13d, %ecx
movq %r15, %r8
callq *(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11550
testl %r14d, %r14d
jle 0x2e648
xorl %r12d, %r12d
movq (%r15,%r12,8), %rsi
movq %rbx, %rdi
callq 0x113c0
incq %r12
cmpq %r12, %r14
jne 0x2e634
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11370
jmp 0x2e658
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %esi
xorl %edx, %edx
callq 0x112e0
movl %eax, %ebp
movq %rbx, %rdi
movl $0x821d, %esi           # imm = 0x821D
callq 0x11a70
movl %eax, %r14d
movq %rbx, %rdi
callq 0x11880
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x11330
testl %r14d, %r14d
jle 0x2e8bf
movl %r14d, %r12d
xorl %r14d, %r14d
movq 0x2814a(%rip), %r13     # 0x569a8
movl $0x1f03, %edi           # imm = 0x1F03
movl %r14d, %esi
callq *(%r13)
movq %rax, %r15
movq %rbx, %rdi
callq 0x11880
testq %r15, %r15
je 0x2e8d3
movq %rbx, %rdi
testb %bpl, %bpl
je 0x2e89e
movl $0x1, %esi
callq 0x117f0
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0x118a0
jmp 0x2e8b7
movq %r15, %rsi
callq 0x110c0
leaq 0x1(%r14), %rdx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x117a0
incq %r14
cmpq %r14, %r12
jne 0x2e85e
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x109ab(%rip), %rsi     # 0x3f285
leaq 0x1baea(%rip), %rdx     # 0x4a3cb
movq %rbx, %rdi
movl $0x5d, %ecx
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_O1/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
movl $0x1, %esi
xorl %edx, %edx
callq 0x112e0
movl %eax, %ebp
movq %rbx, %rdi
movl $0x9554, %esi           # imm = 0x9554
callq 0x11a70
movl %eax, %r14d
movq %rbx, %rdi
callq 0x11880
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x11330
testl %r14d, %r14d
jle 0x2e9b1
movl %r14d, %r12d
xorl %r14d, %r14d
movq 0x28058(%rip), %r13     # 0x569a8
movl $0x9553, %edi           # imm = 0x9553
movl %r14d, %esi
callq *(%r13)
movq %rax, %r15
movq %rbx, %rdi
callq 0x11880
testq %r15, %r15
je 0x2e9c5
movq %rbx, %rdi
testb %bpl, %bpl
je 0x2e990
movl $0x1, %esi
callq 0x117f0
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r15, %rdx
callq 0x118a0
jmp 0x2e9a9
movq %r15, %rsi
callq 0x110c0
leaq 0x1(%r14), %rdx
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x117a0
incq %r14
cmpq %r14, %r12
jne 0x2e950
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x108b9(%rip), %rsi     # 0x3f285
leaq 0x1b9f8(%rip), %rdx     # 0x4a3cb
movq %rbx, %rdi
movl $0x7d, %ecx
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_O1/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
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0x11450
movq %rax, %r14
movq 0x2798b(%rip), %rax     # 0x56600
movl %r15d, %edi
movq %r14, %rsi
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11880
cmpl $-0x1, %ebp
je 0x2eca7
movslq %ebp, %rsi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1b857(%rip), %rsi     # 0x4a505
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_O1/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
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r14
movq 0x28059(%rip), %rax     # 0x56d50
leaq 0x4(%rsp), %r12
movl %r15d, %edi
movl $0x8b87, %esi           # imm = 0x8B87
movq %r12, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movl (%r12), %eax
movslq %eax, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11200
movq %rax, %r12
movq 0x2803b(%rip), %rax     # 0x56d68
movq %rsp, %rbp
movl %r15d, %edi
movl %r14d, %esi
movl %r13d, %edx
movq %rbp, %rcx
movq %r12, %r8
callq *(%rax)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11550
cmpl $0x0, (%rbp)
jle 0x2ed5d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x110c0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11370
cmpl $0x0, (%rsp)
movl $0x1, %eax
jg 0x2ed87
leaq 0x1b79d(%rip), %rsi     # 0x4a517
movq %rbx, %rdi
movl %r14d, %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_O1/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
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
movl $0x2, %r14d
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11860
testl %eax, %eax
jle 0x2edf0
movl $0x2, %esi
leal 0x1(%rsi), %r14d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11450
movq %rbx, %rdi
movl %r14d, %esi
callq 0x11860
movl %r14d, %esi
testl %eax, %eax
jg 0x2edd0
cmpl $0x2, %r14d
jne 0x2ee18
leaq 0x10203(%rip), %rdx     # 0x3f000
movq %rbx, %rdi
movl $0x2, %esi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11940
movq %r15, 0x10(%rsp)
leal -0x2(%r14), %ebp
movslq %r14d, %rax
leaq -0x10(,%rax,8), %rsi
leaq -0x8(,%rax,4), %rcx
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x11700
movq %rax, %r15
cmpl $0x3, %r14d
jl 0x2ee6b
movl %ebp, %r13d
xorl %r12d, %r12d
leal 0x2(%r12), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11950
movq %rax, (%r15,%r12,8)
incq %r12
cmpq %r12, %r13
jne 0x2ee50
movq 0x2761e(%rip), %rax     # 0x56490
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rdi
movl %ebp, %esi
movq %r15, %rdx
callq *(%rax)
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x111e0
cmpl $0x3, %r14d
jl 0x2eeb0
movq 0x8(%rsp), %rax
movl %ebp, %ecx
xorl %edx, %edx
cmpl $-0x1, (%rax,%rdx,4)
je 0x2eeef
incq %rdx
cmpq %rdx, %rcx
jne 0x2eea2
cmpl $0x3, %r14d
jl 0x2eed5
movl %ebp, %r14d
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x113c0
incq %r12
cmpq %r12, %r14
jne 0x2eebc
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11370
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x11370
jmp 0x2ef26
movq (%r15,%rdx,8), %rdx
leaq 0x1b60b(%rip), %rsi     # 0x4a505
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11170
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11370
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x11370
movq %rbx, %rdi
callq 0x11640
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r14
movq 0x27de4(%rip), %rax     # 0x56d50
leaq 0x14(%rsp), %r15
movl %r12d, %edi
movl $0x8b87, %esi           # imm = 0x8B87
movq %r15, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movl (%r15), %eax
movslq %eax, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11200
movq %rax, %r15
movq 0x27bef(%rip), %rax     # 0x56b90
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 0x11550
cmpl $0x0, (%rbp)
je 0x2f00e
movq %rbx, %rdi
movq %r15, %rsi
callq 0x110c0
movl 0xc(%rsp), %edx
movq %rbx, %rdi
movl $0xe, %esi
callq 0x11120
movslq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x113c0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11370
movl $0x3, %eax
jmp 0x2f02d
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11370
leaq 0x1b4f7(%rip), %rsi     # 0x4a517
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_O1/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
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0x11450
movq %rax, %r14
movq 0x27a59(%rip), %rax     # 0x56dc8
movl %r15d, %edi
movq %r14, %rsi
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11880
cmpl $-0x1, %ebp
je 0x2f3a0
movl %ebp, %esi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1b15e(%rip), %rsi     # 0x4a505
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x11170
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11640
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r15
movq 0x2753e(%rip), %rax     # 0x56938
leaq 0xc(%rsp), %r12
movl %r14d, %edi
movl %r15d, %esi
movl $0x8a41, %edx           # imm = 0x8A41
movq %r12, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movl (%r12), %eax
movslq %eax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11200
movq %rax, %r13
movq 0x26ea5(%rip), %rax     # 0x562d8
leaq 0x8(%rsp), %rcx
movl %r14d, %edi
movl %r15d, %esi
movl %r12d, %edx
movq %r13, %r8
callq *(%rax)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11550
movq %rbx, %rdi
movq %r13, %rsi
callq 0x110c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11370
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x4d, %esi
movl $0x3, %edx
callq 0x11160
cmpl $0x8a43, %eax           # imm = 0x8A43
jg 0x2f4f4
leal -0x8a3f(%rax), %ecx
cmpl $0x5, %ecx
jae 0x2f52e
movq 0x2746b(%rip), %r8      # 0x56938
movq %rsp, %r12
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
movq %r12, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11880
movslq (%r12), %rsi
movq %rbx, %rdi
callq 0x113c0
jmp 0x2f569
leal -0x8a44(%rax), %ecx
cmpl $0x3, %ecx
jb 0x2f53b
cmpl $0x90ec, %eax           # imm = 0x90EC
je 0x2f53b
leaq 0xfd78(%rip), %rsi      # 0x3f285
leaq 0x1afe4(%rip), %rdx     # 0x4a4f8
movq %rbx, %rdi
movl $0x13f, %ecx            # imm = 0x13F
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x11ae0
movl %eax, %ecx
addl $0xffff7b10, %ecx       # imm = 0xFFFF7B10
cmpl $0x2, %ecx
jae 0x2f506
movq 0x273f6(%rip), %r8      # 0x56938
leaq 0x4(%rsp), %r12
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
movq %r12, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11880
movl (%r12), %esi
movq %rbx, %rdi
callq 0x117f0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x4e, %esi
movl $0x3, %edx
callq 0x11160
leal -0x92c1(%rax), %ecx
cmpl $0xa, %ecx
ja 0x2f644
movl $0x7c0, %edx            # imm = 0x7C0
btl %ecx, %edx
jae 0x2f5fd
movq 0x2755c(%rip), %r8      # 0x56b30
leaq 0x4(%rsp), %r12
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
movq %r12, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11880
movl (%r12), %esi
movq %rbx, %rdi
callq 0x117f0
jmp 0x2f633
movl $0x39, %edx
btl %ecx, %edx
jae 0x2f644
movq 0x27522(%rip), %r8      # 0x56b30
movq %rsp, %r12
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
movq %r12, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11880
movslq (%r12), %rsi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
cmpl $0x90ed, %eax           # imm = 0x90ED
je 0x2f5cd
leaq 0xfc33(%rip), %rsi      # 0x3f285
leaq 0x1ae9f(%rip), %rdx     # 0x4a4f8
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_O1/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 0x270a8(%rip), %rax     # 0x56738
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 0x111e0
testl %ebx, %ebx
jle 0x2f6ca
movl %ebx, %r13d
xorl %ebp, %ebp
movslq (%r14,%rbp,4), %rsi
movq %r15, %rdi
callq 0x113c0
incq %rbp
cmpq %rbp, %r13
jne 0x2f6b6
movq %r15, %rdi
movq %r12, %rsi
callq 0x11370
movq %r15, %rdi
movq %r14, %rsi
callq 0x11370
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_O1/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, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x6, %esi
movl $0x2, %edx
callq 0x11160
cmpl $0x8624, %eax           # imm = 0x8624
jle 0x2f8f9
cmpl $0x889e, %eax           # imm = 0x889E
jg 0x2f933
cmpl $0x8625, %eax           # imm = 0x8625
je 0x2f9ab
cmpl $0x874e, %eax           # imm = 0x874E
je 0x2f948
cmpl $0x886a, %eax           # imm = 0x886A
je 0x2f948
jmp 0x2f916
leal -0x82d4(%rax), %ecx
cmpl $0x2, %ecx
jb 0x2f973
leal -0x8623(%rax), %ecx
cmpl $0x2, %ecx
jb 0x2f973
cmpl $0x8622, %eax           # imm = 0x8622
je 0x2f948
leaq 0x1aca2(%rip), %rdx     # 0x4a5bf
movq %rbx, %rdi
movl $0x2, %esi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x11940
cmpl $0x889f, %eax           # imm = 0x889F
je 0x2f973
cmpl $0x88fe, %eax           # imm = 0x88FE
je 0x2f973
cmpl $0x88fd, %eax           # imm = 0x88FD
jne 0x2f916
movq 0x26a31(%rip), %rcx     # 0x56380
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movl %eax, %esi
movq %r15, %rdx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
movl (%r15), %esi
movq %rbx, %rdi
callq 0x117f0
jmp 0x2f99c
movq 0x26a06(%rip), %rcx     # 0x56380
leaq 0x8(%rsp), %r15
movl %r14d, %edi
movl %eax, %esi
movq %r15, %rdx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x269ce(%rip), %rax     # 0x56380
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8625, %esi           # imm = 0x8625
movq %r15, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movl (%r15), %edx
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11120
jmp 0x2f9a1
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x7, %esi
movl $0x2, %edx
callq 0x11160
addl $0xffffec00, %eax       # imm = 0xFFFFEC00
cmpl $0xa, %eax
ja 0x2fb12
leaq 0x1ab20(%rip), %rcx     # 0x4a53c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x26c74(%rip), %rax     # 0x566a0
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %r14d, %r14d
xorps %xmm0, %xmm0
cvtss2sd (%rsp,%r14,4), %xmm0
movq %rbx, %rdi
callq 0x11380
incq %r14
cmpq $0x4, %r14
jne 0x2fa44
movl $0x4, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq 0x26a9e(%rip), %rax     # 0x56510
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %r14d, %r14d
movslq (%rsp,%r14,4), %rsi
movq %rbx, %rdi
callq 0x113c0
incq %r14
cmpq $0x4, %r14
jne 0x2fa8a
jmp 0x2fa5e
movq 0x271b8(%rip), %rax     # 0x56c60
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %r14d, %r14d
movl (%rsp,%r14,4), %esi
movq %rbx, %rdi
callq 0x113c0
incq %r14
cmpq $0x4, %r14
jne 0x2fac0
jmp 0x2fa5e
movq 0x27062(%rip), %rax     # 0x56b40
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %r14d, %r14d
movsd (%rsp,%r14,8), %xmm0
movq %rbx, %rdi
callq 0x11380
incq %r14
cmpq $0x4, %r14
jne 0x2faf6
jmp 0x2fa5e
leaq 0x1aab4(%rip), %rsi     # 0x4a5cd
movq %rbx, %rdi
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq 0x26f2e(%rip), %rcx     # 0x56a70
movq %rsp, %r14
movl %eax, %edi
movl $0x8645, %esi           # imm = 0x8645
movq %r14, %rdx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x46, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x47, %esi
movl $0x2, %edx
callq 0x11160
movl %ebp, %edi
movl %eax, %esi
callq 0x11100
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 0x26988(%rip), %rax     # 0x56660
movb $0x1, (%rax)
callq 0x11520
testl %eax, %eax
je 0x2fd05
movl %eax, %edi
callq 0x116a0
leaq 0x1a94a(%rip), %rsi     # 0x4a63c
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x11ae0
callq 0x11250
movb $0x1, 0x27c47(%rip)     # 0x57958
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 0x26dff(%rip), %rax     # 0x56b38
cmpl (%rax), %ebp
jae 0x2fd3f
movl %ebp, (%rax)
cmpl $0x302, (%rax)          # imm = 0x302
ja 0x2fd5e
leaq 0x1a901(%rip), %rsi     # 0x4a64f
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_O1/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 %rbx
movq %rdi, %rbx
movl $0x1, %esi
xorl %edx, %edx
callq 0x11450
movq %rax, %rdi
callq 0x11190
movzbl %al, %esi
movq %rbx, %rdi
callq 0x117f0
movq %rbx, %rdi
callq 0x11880
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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
cmpb $0x0, 0x27a9e(%rip)     # 0x57958
jne 0x2fecd
leaq 0x1a72f(%rip), %rsi     # 0x4a5f2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11ae0
movq 0x26c64(%rip), %rax     # 0x56b38
movl (%rax), %edx
movzbl %dl, %ecx
shrl $0x8, %edx
leaq 0x1a898(%rip), %rsi     # 0x4a77b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11170
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x2785e(%rip), %rdi     # 0x57960
testq %rdi, %rdi
je 0x30128
pushq %rax
callq 0x11440
movq 0x2784c(%rip), %rdi     # 0x57960
callq 0x11480
movq $0x0, 0x2783c(%rip) # 0x57960
addq $0x8, %rsp
retq
nopl (%rax)