LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movl %esi, 0x2c(%rsp)
movl %edx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movl %r8d, 0x1c(%rsp)
movq %r9, 0x10(%rsp)
movq 0x2f0f9(%rip), %rax     # 0x675f0
movq (%rax), %rax
movl 0x2c(%rsp), %edi
movl 0x28(%rsp), %esi
movq 0x20(%rsp), %rdx
movl 0x1c(%rsp), %ecx
movq 0x10(%rsp), %r8
callq *%rax
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x111e0
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x28(%rsp), %eax
jge 0x3855d
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rax
movslq 0xc(%rsp), %rcx
movslq (%rax,%rcx,4), %rsi
callq 0x113c0
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x3852e
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x11370
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x11370
movl 0x28(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getuniform.c
// Function: GetBoolean
static int GetBoolean(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_pushboolean(L, params[i]);
    Free(L, indices);
    Free(L, params);
    return count;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movl %esi, 0x2c(%rsp)
movl %edx, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movl %r8d, 0x1c(%rsp)
movq %r9, 0x10(%rsp)
movq 0x2f039(%rip), %rax     # 0x675f0
movq (%rax), %rax
movl 0x2c(%rsp), %edi
movl 0x28(%rsp), %esi
movq 0x20(%rsp), %rdx
movl 0x1c(%rsp), %ecx
movq 0x10(%rsp), %r8
callq *%rax
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x111e0
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x28(%rsp), %eax
jge 0x3861c
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rax
movslq 0xc(%rsp), %rcx
movl (%rax,%rcx,4), %esi
callq 0x117f0
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x385ee
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x11370
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x11370
movl 0x28(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getuniform.c
// Function: GetAUB_Int
static int GetAUB_Int(lua_State *L, GLuint program, GLuint index, GLenum pname)
    {
    GLint param;
    glGetActiveUniformBlockiv(program, index, pname, &param);
    CheckError(L);
    lua_pushinteger(L, param);
    return 1;
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
movq 0x2f18c(%rip), %rax     # 0x67848
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
movl 0x4(%rsp), %edx
movq %rsp, %rcx
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
movq 0x10(%rsp), %rdi
movslq (%rsp), %rsi
callq 0x113c0
movl $0x1, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getuniform.c
// Function: GetAUB_Boolean
static int GetAUB_Boolean(lua_State *L, GLuint program, GLuint index, GLenum pname)
    {
    GLint param;
    glGetActiveUniformBlockiv(program, index, pname, &param);
    CheckError(L);
    lua_pushboolean(L, param);
    return 1;
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
movq 0x2f12c(%rip), %rax     # 0x67848
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
movl 0x4(%rsp), %edx
movq %rsp, %rcx
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
movq 0x10(%rsp), %rdi
movl (%rsp), %esi
callq 0x117f0
movl $0x1, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getuniform.c
// Function: GetACB_Int
static int GetACB_Int(lua_State *L, GLuint program, GLuint index, GLenum pname)
    {
    GLint param;
    glGetActiveAtomicCounterBufferiv(program, index, pname, &param);
    CheckError(L);
    lua_pushinteger(L, param);
    return 1;
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
movq 0x2f2e4(%rip), %rax     # 0x67a60
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
movl 0x4(%rsp), %edx
movq %rsp, %rcx
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
movq 0x10(%rsp), %rdi
movslq (%rsp), %rsi
callq 0x113c0
movl $0x1, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getuniform.c
// Function: GetACB_Boolean
static int GetACB_Boolean(lua_State *L, GLuint program, GLuint index, GLenum pname)
    {
    GLint param;
    glGetActiveAtomicCounterBufferiv(program, index, pname, &param);
    CheckError(L);
    lua_pushboolean(L, param);
    return 1;
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movl %ecx, 0x4(%rsp)
movq 0x2f284(%rip), %rax     # 0x67a60
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
movl 0x4(%rsp), %edx
movq %rsp, %rcx
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
movq 0x10(%rsp), %rdi
movl (%rsp), %esi
callq 0x117f0
movl $0x1, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getvertex.c
// Function: GetVertexArray
static int GetVertexArray(lua_State *L)
/* get_vertex_array(array, pname [, index]) */
    {
    GLuint array = 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 ArrayGetBoolean(L, array, pname);
        case GL_VERTEX_ATTRIB_ARRAY_SIZE:
        case GL_VERTEX_ATTRIB_ARRAY_STRIDE:
        case GL_VERTEX_ATTRIB_ARRAY_DIVISOR:
        case GL_VERTEX_ATTRIB_RELATIVE_OFFSET:
                return ArrayGetInt(L, array, pname);
        case GL_VERTEX_ATTRIB_ARRAY_TYPE:
                return ArrayGetEnum(L, array, pname);
        case GL_VERTEX_BINDING_OFFSET:
                return ArrayGetInt64(L, array, pname);
        case GL_ELEMENT_ARRAY_BUFFER_BINDING:
                return ArrayGetNonIndexed(L, array, pname);
        default:
            return luaL_argerror(L, 3, "invalid pname");
        }

    CheckError(L);
    return 0;
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rdi
movl $0x6, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movl %eax, 0xc(%rsp)
subl $0x82d5, %eax           # imm = 0x82D5
je 0x38926
jmp 0x38889
movl 0xc(%rsp), %eax
subl $0x82d7, %eax           # imm = 0x82D7
je 0x38958
jmp 0x3889a
movl 0xc(%rsp), %eax
subl $0x8622, %eax           # imm = 0x8622
je 0x38909
jmp 0x388a7
movl 0xc(%rsp), %eax
addl $0xffff79dd, %eax       # imm = 0xFFFF79DD
subl $0x2, %eax
jb 0x38926
jmp 0x388b7
movl 0xc(%rsp), %eax
subl $0x8625, %eax           # imm = 0x8625
je 0x38940
jmp 0x388c4
movl 0xc(%rsp), %eax
subl $0x874e, %eax           # imm = 0x874E
je 0x38909
jmp 0x388d1
movl 0xc(%rsp), %eax
subl $0x886a, %eax           # imm = 0x886A
je 0x38909
jmp 0x388de
movl 0xc(%rsp), %eax
subl $0x8895, %eax           # imm = 0x8895
je 0x38970
jmp 0x388ef
movl 0xc(%rsp), %eax
subl $0x88fd, %eax           # imm = 0x88FD
je 0x38909
jmp 0x388fc
movl 0xc(%rsp), %eax
subl $0x88fe, %eax           # imm = 0x88FE
je 0x38926
jmp 0x38988
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
movl $0x1, %ecx
callq 0x38c10
movl %eax, 0x24(%rsp)
jmp 0x389a2
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
xorl %ecx, %ecx
callq 0x38c10
movl %eax, 0x24(%rsp)
jmp 0x389a2
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x38c90
movl %eax, 0x24(%rsp)
jmp 0x389a2
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x38d00
movl %eax, 0x24(%rsp)
jmp 0x389a2
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x38d70
movl %eax, 0x24(%rsp)
jmp 0x389a2
movq 0x18(%rsp), %rdi
movl $0x3, %esi
leaq 0x242ae(%rip), %rdx     # 0x5cc47
callq 0x11940
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rdi
movl $0x6, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movl %eax, 0xc(%rsp)
addl $0xffff7d2c, %eax       # imm = 0xFFFF7D2C
subl $0x2, %eax
jb 0x38a84
jmp 0x389fc
movl 0xc(%rsp), %eax
subl $0x8622, %eax           # imm = 0x8622
je 0x38a67
jmp 0x38a09
movl 0xc(%rsp), %eax
addl $0xffff79dd, %eax       # imm = 0xFFFF79DD
subl $0x2, %eax
jb 0x38a84
jmp 0x38a19
movl 0xc(%rsp), %eax
subl $0x8625, %eax           # imm = 0x8625
je 0x38a9e
jmp 0x38a26
movl 0xc(%rsp), %eax
subl $0x874e, %eax           # imm = 0x874E
je 0x38a67
jmp 0x38a33
movl 0xc(%rsp), %eax
subl $0x886a, %eax           # imm = 0x886A
je 0x38a67
jmp 0x38a40
movl 0xc(%rsp), %eax
subl $0x889f, %eax           # imm = 0x889F
je 0x38a84
jmp 0x38a4d
movl 0xc(%rsp), %eax
subl $0x88fd, %eax           # imm = 0x88FD
je 0x38a67
jmp 0x38a5a
movl 0xc(%rsp), %eax
subl $0x88fe, %eax           # imm = 0x88FE
je 0x38a84
jmp 0x38ab6
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
movl $0x1, %ecx
callq 0x38dc0
movl %eax, 0x24(%rsp)
jmp 0x38ad0
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
xorl %ecx, %ecx
callq 0x38dc0
movl %eax, 0x24(%rsp)
jmp 0x38ad0
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x38e30
movl %eax, 0x24(%rsp)
jmp 0x38ad0
movq 0x18(%rsp), %rdi
movl $0x2, %esi
leaq 0x24180(%rip), %rdx     # 0x5cc47
callq 0x11940
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rdi
movl $0x7, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
addl $0xffffec00, %eax       # imm = 0xFFFFEC00
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0xa, %eax
ja 0x38b8e
movq 0x8(%rsp), %rax
leaq 0x2408f(%rip), %rcx     # 0x5cbc4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0x38e80
movl %eax, 0x24(%rsp)
jmp 0x38ba5
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0x38ef0
movl %eax, 0x24(%rsp)
jmp 0x38ba5
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0x38f60
movl %eax, 0x24(%rsp)
jmp 0x38ba5
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0x38fd0
movl %eax, 0x24(%rsp)
jmp 0x38ba5
movq 0x18(%rsp), %rdi
leaq 0x240bb(%rip), %rsi     # 0x5cc55
movb $0x0, %al
callq 0x11ae0
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0xc(%rsp)
movq 0x2edbd(%rip), %rax     # 0x67990
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl $0x8645, %esi           # imm = 0x8645
movq %rsp, %rdx
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
callq 0x113c0
movl $0x1, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getvertex.c
// Function: ArrayGetEnum
static int ArrayGetEnum(lua_State *L, GLuint array, GLenum pname)
    {
    GLint param;
    GLuint index = luaL_checkinteger(L, 3);
    glGetVertexArrayIndexediv(array, index, pname, &param);
    CheckError(L);
    return pushtype(L, param);
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movl $0x3, %esi
callq 0x11af0
movl %eax, (%rsp)
movq 0x2e9f6(%rip), %rax     # 0x676b0
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl (%rsp), %esi
movl 0x8(%rsp), %edx
leaq 0x4(%rsp), %rcx
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
movq 0x10(%rsp), %rdi
movl 0x4(%rsp), %edx
movl $0x7, %esi
callq 0x11120
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getvertex.c
// Function: ArrayGetInt64
static int ArrayGetInt64(lua_State *L, GLuint array, GLenum pname)
    {
    GLint64 param;
    GLuint index = luaL_checkinteger(L, 3);
    glGetVertexArrayIndexed64iv(array, index, pname, &param);
    CheckError(L);
    lua_pushinteger(L, param);
    return 1;
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movl %edx, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movl $0x3, %esi
callq 0x11af0
movl %eax, 0xc(%rsp)
movq 0x2f0bd(%rip), %rax     # 0x67de8
movq (%rax), %rax
movl 0x1c(%rsp), %edi
movl 0xc(%rsp), %esi
movl 0x18(%rsp), %edx
leaq 0x10(%rsp), %rcx
callq *%rax
movq 0x20(%rsp), %rdi
callq 0x11880
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x113c0
movl $0x1, %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getvertex.c
// Function: ArrayGetNonIndexed
static int ArrayGetNonIndexed(lua_State *L, GLuint array, GLenum pname)
    {
    GLint param;
    glGetVertexArrayiv(array, pname, &param);
    CheckError(L);
    lua_pushinteger(L, param);
    return 1;
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movq 0x2e830(%rip), %rax     # 0x675b8
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
leaq 0x4(%rsp), %rdx
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
movq 0x10(%rsp), %rdi
movslq 0x4(%rsp), %rsi
callq 0x113c0
movl $0x1, %eax
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getvertex.c
// Function: CurGetFloat
static int CurGetFloat(lua_State *L, GLuint index)
    {
    int i;
    GLfloat params[4];
    glGetVertexAttribfv(index, pname, params);
    CheckError(L);
    for(i=0 ; i<4; i++)
        lua_pushnumber(L, params[i]);
    return 4;
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movq 0x2e6ac(%rip), %rax     # 0x67540
movq (%rax), %rax
movl 0x1c(%rsp), %edi
movq %rsp, %rdx
movl $0x8626, %esi           # imm = 0x8626
callq *%rax
movq 0x20(%rsp), %rdi
callq 0x11880
movl $0x0, 0x18(%rsp)
cmpl $0x4, 0x18(%rsp)
jge 0x38ee3
movq 0x20(%rsp), %rdi
movslq 0x18(%rsp), %rax
movss (%rsp,%rax,4), %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x11380
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x38eb7
movl $0x4, %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getvertex.c
// Function: CurGetDouble
static int CurGetDouble(lua_State *L, GLuint index)
    {
    int i;
    GLdouble params[4];
    glGetVertexAttribLdv(index, pname, params);
    CheckError(L);
    for(i=0 ; i<4; i++)
        lua_pushnumber(L, params[i]);
    return 4;
    }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movl %esi, 0x2c(%rsp)
movq 0x2eb6c(%rip), %rax     # 0x67a70
movq (%rax), %rax
movl 0x2c(%rsp), %edi
movq %rsp, %rdx
movl $0x8626, %esi           # imm = 0x8626
callq *%rax
movq 0x30(%rsp), %rdi
callq 0x11880
movl $0x0, 0x28(%rsp)
cmpl $0x4, 0x28(%rsp)
jge 0x38f4f
movq 0x30(%rsp), %rdi
movslq 0x28(%rsp), %rax
movsd (%rsp,%rax,8), %xmm0
callq 0x11380
movl 0x28(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x28(%rsp)
jmp 0x38f27
movl $0x4, %eax
addq $0x38, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getvertex.c
// Function: CurGetInt
static int CurGetInt(lua_State *L, GLuint index)
    {
    int i;
    GLint params[4];
    glGetVertexAttribIiv(index, pname, params);
    CheckError(L);
    for(i=0 ; i<4; i++)
        lua_pushinteger(L, params[i]);
    return 4;
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movq 0x2e424(%rip), %rax     # 0x67398
movq (%rax), %rax
movl 0x1c(%rsp), %edi
movq %rsp, %rdx
movl $0x8626, %esi           # imm = 0x8626
callq *%rax
movq 0x20(%rsp), %rdi
callq 0x11880
movl $0x0, 0x18(%rsp)
cmpl $0x4, 0x18(%rsp)
jge 0x38fbe
movq 0x20(%rsp), %rdi
movslq 0x18(%rsp), %rax
movslq (%rsp,%rax,4), %rsi
callq 0x113c0
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x38f97
movl $0x4, %eax
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/getvertex.c
// Function: CurGetUint
static int CurGetUint(lua_State *L, GLuint index)
    {
    int i;
    GLuint params[4];
    glGetVertexAttribIuiv(index, pname, params);
    CheckError(L);
    for(i=0 ; i<4; i++)
        lua_pushinteger(L, params[i]);
    return 4;
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movq 0x2ebd4(%rip), %rax     # 0x67bb8
movq (%rax), %rax
movl 0x1c(%rsp), %edi
movq %rsp, %rdx
movl $0x8626, %esi           # imm = 0x8626
callq *%rax
movq 0x20(%rsp), %rdi
callq 0x11880
movl $0x0, 0x18(%rsp)
cmpl $0x4, 0x18(%rsp)
jge 0x3902f
movq 0x20(%rsp), %rdi
movslq 0x18(%rsp), %rax
movl (%rsp,%rax,4), %eax
movl %eax, %esi
callq 0x113c0
movl 0x18(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x18(%rsp)
jmp 0x39007
movl $0x4, %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x46, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl $0x47, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x8(%rsp)
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
callq 0x11100
movq 0x10(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x18, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x2e318(%rip), %rax     # 0x674f8
movb $0x1, (%rax)
callq 0x11520
movl %eax, 0x8(%rsp)
cmpl $0x0, %eax
je 0x39221
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movl 0x8(%rsp), %edi
callq 0x116a0
movq (%rsp), %rdi
movq %rax, %rdx
leaq 0x23ab3(%rip), %rsi     # 0x5ccc4
movb $0x0, %al
callq 0x11ae0
movl %eax, 0x24(%rsp)
jmp 0x392b1
callq 0x11250
movl $0x1, 0x2f738(%rip)     # 0x68968
movq 0x18(%rsp), %rdi
movl $0x821b, %esi           # imm = 0x821B
callq 0x11a70
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rdi
movl $0x821c, %esi           # imm = 0x821C
callq 0x11a70
movl %eax, 0x10(%rsp)
movl 0x14(%rsp), %eax
shll $0x8, %eax
orl 0x10(%rsp), %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movq 0x2e7f8(%rip), %rcx     # 0x67a68
cmpl (%rcx), %eax
jae 0x39281
movl 0xc(%rsp), %ecx
movq 0x2e7e9(%rip), %rax     # 0x67a68
movl %ecx, (%rax)
movq 0x2e7e0(%rip), %rax     # 0x67a68
cmpl $0x303, (%rax)          # imm = 0x303
jae 0x392a9
movq 0x18(%rsp), %rdi
leaq 0x23a3b(%rip), %rsi     # 0x5ccd7
movb $0x0, %al
callq 0x11ae0
movl %eax, 0x24(%rsp)
jmp 0x392b1
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x11450
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
callq 0x11190
movq (%rsp), %rdi
movzbl %al, %esi
callq 0x117f0
movq 0x10(%rsp), %rdi
callq 0x11880
movl $0x1, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x115e0
movq 0x2e50e(%rip), %rax     # 0x67a68
movl (%rax), %eax
shrl $0x8, %eax
movl %eax, 0xc(%rsp)
movq 0x2e4fe(%rip), %rax     # 0x67a68
movl (%rax), %eax
andl $0xff, %eax
movl %eax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %edx
movl 0x8(%rsp), %ecx
leaq 0x2387a(%rip), %rsi     # 0x5ce03
movb $0x0, %al
callq 0x11170
movl $0x1, %eax
addq $0x18, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rax
cmpq $0x0, 0x2f0f7(%rip)     # 0x68970
je 0x3989e
movq 0x2f0ee(%rip), %rdi     # 0x68970
callq 0x11440
movq 0x2f0e2(%rip), %rdi     # 0x68970
callq 0x11480
movq $0x0, 0x2f0d2(%rip) # 0x68970
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/object.c
// Function: moongl_object_new
int object_new(lua_State *L, uint32_t otype, uint32_t oname)
    {
    rec_t *rec;
    if(trace_objects)
        printf("create %s %d\n", tracename(otype), oname);

    if(track_objects==0)
        return 0;
    if(search(otype, oname))
        {
        /* duplicate value: this should mean that we are working with
         * multiple concurrent GL contexts, so we stop tracking objects
         * (we wouldn't be able to delete them at exit anyway, since
         * we have no control on the current context).
         */
        track_objects = 0;
        return 0; // unexpected(L);
        }

    if((rec = (rec_t*)Malloc(L, sizeof(rec_t))) == NULL) 
        return luaL_error(L, errstring(ERR_MEMORY));

    memset(rec, 0, sizeof(rec_t));
    rec->otype = otype;
    rec->oname = oname;
    insert(rec);

    return 0;
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movl %esi, 0x14(%rsp)
movl %edx, 0x10(%rsp)
cmpl $0x0, 0x2d1b0(%rip)     # 0x68978
je 0x3b7e8
movl 0x14(%rsp), %edi
callq 0x3b8b0
movq %rax, %rsi
movl 0x10(%rsp), %edx
leaq 0x21737(%rip), %rdi     # 0x5cf18
movb $0x0, %al
callq 0x11070
cmpl $0x0, 0x2cf51(%rip)     # 0x68740
jne 0x3b7fe
movl $0x0, 0x24(%rsp)
jmp 0x3b8a1
movl 0x14(%rsp), %edi
movl 0x10(%rsp), %esi
callq 0x3b9a0
cmpq $0x0, %rax
je 0x3b825
movl $0x0, 0x2cf25(%rip)     # 0x68740
movl $0x0, 0x24(%rsp)
jmp 0x3b8a1
movq 0x18(%rsp), %rdi
movl $0x28, %esi
callq 0x11200
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
jne 0x3b866
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movl $0xfffffffa, %edi       # imm = 0xFFFFFFFA
callq 0x114d0
movq (%rsp), %rdi
movq %rax, %rsi
movb $0x0, %al
callq 0x11ae0
movl %eax, 0x24(%rsp)
jmp 0x3b8a1
movq 0x8(%rsp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x110e0
movl 0x14(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x20(%rax)
movl 0x10(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x24(%rax)
movq 0x8(%rsp), %rdi
callq 0x3b9e0
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/object.c
// Function: tracename
static char *tracename(uint32_t otype)
    {
    switch(otype)
        {
        case OTYPE_BUFFER: return "moongl_buffer";
        case OTYPE_VERTEX_ARRAY: return "moongl_vertex_array";
        case OTYPE_SAMPLER: return "moongl_sampler";
        case OTYPE_TEXTURE: return "moongl_texture";
        case OTYPE_FRAMEBUFFER: return "moongl_framebuffer";
        case OTYPE_RENDERBUFFER: return "moongl_renderbuffer";
        case OTYPE_PROGRAM: return "moongl_program";
        case OTYPE_SHADER: return "moongl_shader";
        case OTYPE_PROGRAM_PIPELINE: return "moongl_program_pipeline";
        case OTYPE_TRANSFORM_FEEDBACK: return "moongl_transform_feedback";
        case OTYPE_QUERY: return "moongl_query";
        default:
            break;
        }
    return "???";
    }

// Assembly:
movl %edi, -0xc(%rsp)
movl -0xc(%rsp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x18(%rsp)
subl $0xa, %eax
ja 0x3b97f
movq -0x18(%rsp), %rax
leaq 0x215ea(%rip), %rcx     # 0x5cec0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x21657(%rip), %rax     # 0x5cf3d
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x21654(%rip), %rax     # 0x5cf4b
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x21657(%rip), %rax     # 0x5cf5f
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x21658(%rip), %rax     # 0x5cf6e
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x21659(%rip), %rax     # 0x5cf7d
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x2165e(%rip), %rax     # 0x5cf90
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x21664(%rip), %rax     # 0x5cfa4
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x21665(%rip), %rax     # 0x5cfb3
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x21665(%rip), %rax     # 0x5cfc1
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x2166f(%rip), %rax     # 0x5cfd9
movq %rax, -0x8(%rsp)
jmp 0x3b98d
leaq 0x2167b(%rip), %rax     # 0x5cff3
movq %rax, -0x8(%rsp)
jmp 0x3b98d
jmp 0x3b981
leaq 0x20f70(%rip), %rax     # 0x5c8f8
movq %rax, -0x8(%rsp)
movq -0x8(%rsp), %rax
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
cmpl $0x0, 0x2cb40(%rip)     # 0x68740
je 0x3bc36
jmp 0x3bc04
xorl %esi, %esi
movl %esi, %edi
callq 0x3bc70
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
je 0x3bc34
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movl 0x20(%rax), %esi
movq 0x8(%rsp), %rax
movl 0x24(%rax), %edx
callq 0x11090
jmp 0x3bc04
jmp 0x3bc69
jmp 0x3bc38
xorl %esi, %esi
movl %esi, %edi
callq 0x3bc70
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
je 0x3bc67
movq 0x8(%rsp), %rdi
callq 0x3bbd0
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x11370
jmp 0x3bc38
jmp 0x3bc69
addq $0x18, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movl $0x5, %esi
callq 0x115c0
cmpl $0x0, %eax
je 0x3d013
movq 0x30(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
movl $0x2, %esi
callq 0x11af0
movl %eax, 0x14(%rsp)
movq 0x30(%rsp), %rdi
movl $0x3, %esi
callq 0x11af0
movl %eax, 0x18(%rsp)
movq 0x30(%rsp), %rdi
movl $0x4, %esi
callq 0x11af0
movl %eax, 0x1c(%rsp)
movq 0x30(%rsp), %rdi
movl $0x5, %esi
callq 0x11af0
movl %eax, 0xc(%rsp)
movq 0x2a40d(%rip), %rax     # 0x67410
movq (%rax), %rax
movl 0xc(%rsp), %edi
leaq 0x10(%rsp), %rsi
callq *%rax
jmp 0x3d074
movq 0x30(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0x2c(%rsp)
movq 0x30(%rsp), %rdi
movl $0x2, %esi
callq 0x11af0
movl %eax, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movl $0x3, %esi
callq 0x11af0
movl %eax, 0x24(%rsp)
movq 0x30(%rsp), %rdi
movl $0x4, %esi
callq 0x11af0
movl %eax, 0x20(%rsp)
movl 0x2c(%rsp), %edi
movl 0x28(%rsp), %esi
movl 0x24(%rsp), %edx
movl 0x20(%rsp), %ecx
callq 0x11930
movq 0x30(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0xc(%rsp)
movl $0x0, 0x1c(%rsp)
movl $0x2, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movl 0x20(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
callq 0x11860
cmpl $0x0, %eax
setle %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x3d0e1
jmp 0x3d0f1
movq 0x28(%rsp), %rdi
movl 0x20(%rsp), %esi
callq 0x11af0
jmp 0x3d0bc
movl 0x20(%rsp), %eax
subl $0x2, %eax
movl %eax, 0x1c(%rsp)
cmpl $0x6, 0x20(%rsp)
jl 0x3d114
movl 0x1c(%rsp), %eax
movl $0x4, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
je 0x3d130
movq 0x28(%rsp), %rdi
leaq 0x1545e(%rip), %rsi     # 0x5257e
movb $0x0, %al
callq 0x11ae0
movl %eax, 0x34(%rsp)
jmp 0x3d1e5
movq 0x28(%rsp), %rdi
movslq 0x1c(%rsp), %rsi
shlq $0x2, %rsi
callq 0x11200
movq %rax, 0x10(%rsp)
movl $0x0, 0x24(%rsp)
movl $0x2, 0x20(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x1c(%rsp), %eax
jge 0x3d199
movq 0x28(%rsp), %rdi
movl 0x20(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x20(%rsp)
xorl %eax, %eax
movl %eax, %edx
callq 0x11040
movl %eax, %edx
movq 0x10(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, 0x24(%rsp)
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
jmp 0x3d158
movq 0x2aaa8(%rip), %rax     # 0x67c48
movq (%rax), %rax
movq %rax, (%rsp)
movl 0xc(%rsp), %edi
movl 0x1c(%rsp), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %eax, %esi
movq (%rsp), %rax
movq 0x10(%rsp), %rdx
callq *%rax
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x11370
movq 0x28(%rsp), %rdi
callq 0x11880
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x11a80
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl $0x2, %esi
callq 0x11510
movb %al, 0xb(%rsp)
movq 0x2a3e4(%rip), %rax     # 0x67610
movq (%rax), %rax
movss 0xc(%rsp), %xmm0
movzbl 0xb(%rsp), %edi
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl $0x2, %esi
callq 0x11af0
movl %eax, 0x8(%rsp)
movq 0x2a7ca(%rip), %rax     # 0x67a50
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1e, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movl $0x2, %esi
callq 0x11af0
movl %eax, 0x4(%rsp)
movq 0x10(%rsp), %rdi
movl $0x3, %esi
callq 0x11af0
movl %eax, (%rsp)
movq 0x10(%rsp), %rdi
movl $0x4, %esi
callq 0x110b0
cmpl $0x0, %eax
je 0x3d33f
movq 0x10(%rsp), %rdi
movl $0x1f, %esi
movl $0x4, %edx
callq 0x11160
movl %eax, 0xc(%rsp)
movq 0x2a697(%rip), %rax     # 0x679c0
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
movl 0x4(%rsp), %edx
movl (%rsp), %ecx
callq *%rax
jmp 0x3d34f
movl 0x8(%rsp), %edi
movl 0x4(%rsp), %esi
movl (%rsp), %edx
callq 0x112b0
movq 0x10(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x20, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movl $0x20, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x4(%rsp)
movq 0x10(%rsp), %rdi
movl $0x20, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, (%rsp)
movq 0x10(%rsp), %rdi
movl $0x4, %esi
callq 0x110b0
cmpl $0x0, %eax
je 0x3d3f9
movq 0x10(%rsp), %rdi
movl $0x1f, %esi
movl $0x4, %edx
callq 0x11160
movl %eax, 0xc(%rsp)
movq 0x2aa5d(%rip), %rax     # 0x67e40
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
movl 0x4(%rsp), %edx
movl (%rsp), %ecx
callq *%rax
jmp 0x3d409
movl 0x8(%rsp), %edi
movl 0x4(%rsp), %esi
movl (%rsp), %edx
callq 0x11660
movq 0x10(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x18, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1e, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %edi
callq 0x11890
movq 0x10(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x115c0
cmpl $0x0, %eax
je 0x3d508
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl $0x21, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movl $0x3, %esi
callq 0x110b0
cmpl $0x0, %eax
je 0x3d4f2
movq 0x10(%rsp), %rdi
movl $0x21, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, 0x4(%rsp)
movq 0x2a781(%rip), %rax     # 0x67c60
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
movl 0x4(%rsp), %edx
callq *%rax
jmp 0x3d506
movq 0x2a93f(%rip), %rax     # 0x67e38
movq (%rax), %rax
movl 0xc(%rsp), %edi
movl 0x8(%rsp), %esi
callq *%rax
jmp 0x3d574
movq 0x10(%rsp), %rdi
movl $0x21, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movl $0x2, %esi
callq 0x110b0
cmpl $0x0, %eax
je 0x3d562
movq 0x10(%rsp), %rdi
movl $0x21, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x4(%rsp)
movq 0x2a36d(%rip), %rax     # 0x678c0
movq (%rax), %rax
movl 0x8(%rsp), %edi
movl 0x4(%rsp), %esi
callq *%rax
jmp 0x3d572
movq 0x2a867(%rip), %rax     # 0x67dd0
movq (%rax), %rax
movl 0x8(%rsp), %edi
callq *%rax
jmp 0x3d574
movq 0x10(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movl $0x1, %esi
callq 0x115c0
cmpl $0x0, %eax
je 0x3d678
movq 0x20(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0x1c(%rsp)
movq 0x20(%rsp), %rdi
movl $0x22, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movl $0x22, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rdi
movl $0x4, %esi
callq 0x110b0
cmpl $0x0, %eax
je 0x3d65b
movq 0x20(%rsp), %rdi
movl $0x22, %esi
movl $0x4, %edx
callq 0x11160
movl %eax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movl $0x22, %esi
movl $0x5, %edx
callq 0x11160
movl %eax, 0xc(%rsp)
movq 0x2a201(%rip), %rax     # 0x67840
movq (%rax), %rax
movl 0x1c(%rsp), %edi
movl 0x18(%rsp), %esi
movl 0x14(%rsp), %edx
movl 0x10(%rsp), %ecx
movl 0xc(%rsp), %r8d
callq *%rax
jmp 0x3d673
movq 0x2a0a6(%rip), %rax     # 0x67708
movq (%rax), %rax
movl 0x1c(%rsp), %edi
movl 0x18(%rsp), %esi
movl 0x14(%rsp), %edx
callq *%rax
jmp 0x3d719
movq 0x20(%rsp), %rdi
movl $0x22, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movl $0x22, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rdi
movl $0x3, %esi
callq 0x110b0
cmpl $0x0, %eax
je 0x3d70a
movq 0x20(%rsp), %rdi
movl $0x22, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movl $0x22, %esi
movl $0x4, %edx
callq 0x11160
movl %eax, 0xc(%rsp)
movq 0x29a5d(%rip), %rax     # 0x67150
movq (%rax), %rax
movl 0x18(%rsp), %edi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
movl 0xc(%rsp), %ecx
callq *%rax
jmp 0x3d717
movl 0x18(%rsp), %edi
movl 0x14(%rsp), %esi
callq 0x11530
jmp 0x3d719
movq 0x20(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x28, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/perfragment.c
// Function: BlendColor
static int BlendColor(lua_State *L)
    {
    GLfloat r = luaL_checknumber(L, 1);
    GLfloat g = luaL_checknumber(L, 2);
    GLfloat b = luaL_checknumber(L, 3);
    GLfloat a = luaL_checknumber(L, 4);
    glBlendColor(r, g, b, a);
    CheckError(L);
    return 0;
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x11a80
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl $0x2, %esi
callq 0x11a80
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movl $0x3, %esi
callq 0x11a80
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
movq 0x10(%rsp), %rdi
movl $0x4, %esi
callq 0x11a80
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%rsp)
movq 0x2a145(%rip), %rax     # 0x678e8
movq (%rax), %rax
movss 0xc(%rsp), %xmm0
movss 0x8(%rsp), %xmm1
movss 0x4(%rsp), %xmm2
movss (%rsp), %xmm3
callq *%rax
movq 0x10(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/perfragment.c
// Function: LogicOp
static int LogicOp(lua_State *L)
    {
    GLenum opcode = checklogicop(L, 1);
    glLogicOp(opcode);
    CheckError(L);
    return 0;
    }

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x23, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %edi
callq 0x11800
movq 0x10(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/pipeline.c
// Function: GetProgramPipeline
static int GetProgramPipeline(lua_State *L)
    {
#define INTEGER return GetInteger(L, pipeline, pname);
    GLuint pipeline = luaL_checkinteger(L, 1);
    GLenum pname = checkpipelinepname(L, 2);
    switch(pname)
        {
        case GL_ACTIVE_PROGRAM: INTEGER
        case GL_VALIDATE_STATUS: INTEGER
        case GL_VERTEX_SHADER: INTEGER
        case GL_GEOMETRY_SHADER: INTEGER
        case GL_FRAGMENT_SHADER: INTEGER
        case GL_COMPUTE_SHADER: INTEGER
        case GL_TESS_CONTROL_SHADER: INTEGER
        case GL_TESS_EVALUATION_SHADER: INTEGER
        case GL_INFO_LOG_LENGTH: INTEGER
        default: return luaL_error(L, UNEXPECTED_ERROR);
        }
    return 0;
#undef INTEGER
    }

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movl $0x1, %esi
callq 0x11af0
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rdi
movl $0x4, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movl %eax, 0xc(%rsp)
subl $0x8259, %eax           # imm = 0x8259
je 0x3ddd0
jmp 0x3dd49
movl 0xc(%rsp), %eax
subl $0x8b30, %eax           # imm = 0x8B30
je 0x3de3c
jmp 0x3dd5a
movl 0xc(%rsp), %eax
subl $0x8b31, %eax           # imm = 0x8B31
je 0x3de06
jmp 0x3dd6b
movl 0xc(%rsp), %eax
subl $0x8b83, %eax           # imm = 0x8B83
je 0x3ddeb
jmp 0x3dd78
movl 0xc(%rsp), %eax
subl $0x8b84, %eax           # imm = 0x8B84
je 0x3de9f
jmp 0x3dd89
movl 0xc(%rsp), %eax
subl $0x8dd9, %eax           # imm = 0x8DD9
je 0x3de21
jmp 0x3dd9a
movl 0xc(%rsp), %eax
subl $0x8e87, %eax           # imm = 0x8E87
je 0x3de87
jmp 0x3ddab
movl 0xc(%rsp), %eax
subl $0x8e88, %eax           # imm = 0x8E88
je 0x3de6f
jmp 0x3ddbc
movl 0xc(%rsp), %eax
subl $0x91b9, %eax           # imm = 0x91B9
je 0x3de57
jmp 0x3deb7
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x3dfc0
movl %eax, 0x24(%rsp)
jmp 0x3deda
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x3dfc0
movl %eax, 0x24(%rsp)
jmp 0x3deda
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x3dfc0
movl %eax, 0x24(%rsp)
jmp 0x3deda
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x3dfc0
movl %eax, 0x24(%rsp)
jmp 0x3deda
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x3dfc0
movl %eax, 0x24(%rsp)
jmp 0x3deda
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x3dfc0
movl %eax, 0x24(%rsp)
jmp 0x3deda
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x3dfc0
movl %eax, 0x24(%rsp)
jmp 0x3deda
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x3dfc0
movl %eax, 0x24(%rsp)
jmp 0x3deda
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x3dfc0
movl %eax, 0x24(%rsp)
jmp 0x3deda
movq 0x18(%rsp), %rdi
leaq 0x143c2(%rip), %rsi     # 0x52285
leaq 0x1f2c5(%rip), %rdx     # 0x5d18f
movl $0x75, %ecx
movb $0x0, %al
callq 0x11ae0
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)