LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x27001(%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 0x111d0
testl %ebx, %ebx
jle 0x2f771
movl %ebx, %r13d
xorl %ebp, %ebp
movslq (%r14,%rbp,4), %rsi
movq %r15, %rdi
callq 0x113b0
incq %rbp
cmpq %rbp, %r13
jne 0x2f75d
movq %r15, %rdi
movq %r12, %rsi
callq 0x11360
movq %r15, %rdi
movq %r14, %rsi
callq 0x11360
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x11150
cmpl $0x8624, %eax           # imm = 0x8624
jle 0x2f99d
cmpl $0x889e, %eax           # imm = 0x889E
jg 0x2f9d7
cmpl $0x8625, %eax           # imm = 0x8625
je 0x2fa4f
cmpl $0x874e, %eax           # imm = 0x874E
je 0x2f9ec
cmpl $0x886a, %eax           # imm = 0x886A
je 0x2f9ec
jmp 0x2f9ba
leal -0x82d4(%rax), %ecx
cmpl $0x2, %ecx
jb 0x2fa17
leal -0x8623(%rax), %ecx
cmpl $0x2, %ecx
jb 0x2fa17
cmpl $0x8622, %eax           # imm = 0x8622
je 0x2f9ec
leaq 0x1abfe(%rip), %rdx     # 0x4a5bf
movq %rbx, %rdi
movl $0x2, %esi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x11930
cmpl $0x889f, %eax           # imm = 0x889F
je 0x2fa17
cmpl $0x88fe, %eax           # imm = 0x88FE
je 0x2fa17
cmpl $0x88fd, %eax           # imm = 0x88FD
jne 0x2f9ba
movq 0x2698d(%rip), %rcx     # 0x56380
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movl %eax, %esi
movq %r15, %rdx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11870
movl (%r15), %esi
movq %rbx, %rdi
callq 0x117e0
jmp 0x2fa40
movq 0x26962(%rip), %rcx     # 0x56380
leaq 0x8(%rsp), %r15
movl %r14d, %edi
movl %eax, %esi
movq %r15, %rdx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11870
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x113b0
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq 0x2692a(%rip), %rax     # 0x56380
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8625, %esi           # imm = 0x8625
movq %r15, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
movl (%r15), %edx
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11110
jmp 0x2fa45
// File: /workspace/github_c_makefile_star2_O3/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 0x11150
addl $0xffffec00, %eax       # imm = 0xFFFFEC00
cmpl $0xa, %eax
ja 0x2fbb6
leaq 0x1aa7c(%rip), %rcx     # 0x4a53c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x26bd0(%rip), %rax     # 0x566a0
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %r14d, %r14d
xorps %xmm0, %xmm0
cvtss2sd (%rsp,%r14,4), %xmm0
movq %rbx, %rdi
callq 0x11370
incq %r14
cmpq $0x4, %r14
jne 0x2fae8
movl $0x4, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
movq 0x269fa(%rip), %rax     # 0x56510
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %r14d, %r14d
movslq (%rsp,%r14,4), %rsi
movq %rbx, %rdi
callq 0x113b0
incq %r14
cmpq $0x4, %r14
jne 0x2fb2e
jmp 0x2fb02
movq 0x27114(%rip), %rax     # 0x56c60
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %r14d, %r14d
movl (%rsp,%r14,4), %esi
movq %rbx, %rdi
callq 0x113b0
incq %r14
cmpq $0x4, %r14
jne 0x2fb64
jmp 0x2fb02
movq 0x26fbe(%rip), %rax     # 0x56b40
movq %rsp, %rdx
movl %r14d, %edi
movl $0x8626, %esi           # imm = 0x8626
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %r14d, %r14d
movsd (%rsp,%r14,8), %xmm0
movq %rbx, %rdi
callq 0x11370
incq %r14
cmpq $0x4, %r14
jne 0x2fb9a
jmp 0x2fb02
leaq 0x1aa10(%rip), %rsi     # 0x4a5cd
movq %rbx, %rdi
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O3/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 0x26e8a(%rip), %rcx     # 0x56a70
movq %rsp, %r14
movl %eax, %edi
movl $0x8645, %esi           # imm = 0x8645
movq %r14, %rdx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11870
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x113b0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x47, %esi
movl $0x2, %edx
callq 0x11150
movl %ebp, %edi
movl %eax, %esi
callq 0x110f0
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/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 0x268e4(%rip), %rax     # 0x56660
movb $0x1, (%rax)
callq 0x11510
testl %eax, %eax
je 0x2fda9
movl %eax, %edi
callq 0x11690
leaq 0x1a8a6(%rip), %rsi     # 0x4a63c
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x11ae0
callq 0x11240
movb $0x1, 0x27ba3(%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 0x26d5b(%rip), %rcx     # 0x56b38
movl (%rcx), %eax
cmpl %eax, %ebp
jae 0x2fde7
movl %ebp, (%rcx)
movl %ebp, %eax
cmpl $0x302, %eax            # imm = 0x302
ja 0x2fe05
leaq 0x1a85a(%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_O3/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 0x11440
movq %rax, %rdi
callq 0x11180
movzbl %al, %esi
movq %rbx, %rdi
callq 0x117e0
movq %rbx, %rdi
callq 0x11870
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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, 0x279f7(%rip)     # 0x57958
jne 0x2ff74
leaq 0x1a688(%rip), %rsi     # 0x4a5f2
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11ae0
movq 0x26bbd(%rip), %rax     # 0x56b38
movl (%rax), %edx
movzbl %dl, %ecx
shrl $0x8, %edx
leaq 0x1a7f1(%rip), %rsi     # 0x4a77b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x11160
movl $0x1, %eax
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x277b6(%rip), %rdi     # 0x57960
testq %rdi, %rdi
je 0x301d0
pushq %rax
callq 0x11430
movq 0x277a4(%rip), %rdi     # 0x57960
callq 0x11470
movq $0x0, 0x27794(%rip) # 0x57960
addq $0x8, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/object.c
// Function: moongl_object_free
void object_free(lua_State *L, uint32_t otype, uint32_t oname)
    {
    rec_t *rec;
    GLuint name = oname;    
    if(trace_objects)
        printf("delete %s %d\n", tracename(otype), oname);
    if(track_objects)
        {
        rec = search(otype, oname);
        if(rec)
            { removeeee(rec); Free(L, rec); }
        }

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movl %edx, 0x4(%rsp)
cmpl $0x0, 0x265aa(%rip)     # 0x57968
je 0x313ef
leal -0x1(%r14), %eax
cmpl $0xa, %eax
ja 0x313d8
movl %eax, %eax
leaq 0x23b8e(%rip), %rcx     # 0x54f60
movq (%rcx,%rax,8), %rsi
jmp 0x313df
leaq 0x18549(%rip), %rsi     # 0x49928
leaq 0x194f8(%rip), %rdi     # 0x4a8de
movl %ebp, %edx
xorl %eax, %eax
callq 0x11070
movq 0x2657a(%rip), %r15     # 0x57970
testq %r15, %r15
sete %al
orb 0x2656a(%rip), %al      # 0x5796c
testb $0x1, %al
jne 0x3143a
cmpl %r14d, 0x20(%r15)
jne 0x31410
cmpl %ebp, 0x24(%r15)
setb %al
ja 0x3141d
testb %al, %al
je 0x31427
addq $0x8, %r15
movq (%r15), %r15
testq %r15, %r15
jne 0x31406
jmp 0x3143a
movq %r15, %rdi
callq 0x31502
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11360
decl %r14d
cmpl $0xa, %r14d
ja 0x314e3
leaq 0x19456(%rip), %rax     # 0x4a8a4
movslq (%rax,%r14,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x2566a(%rip), %rax     # 0x56ac8
jmp 0x314c4
movq 0x24ea9(%rip), %rax     # 0x56310
jmp 0x314c4
movq 0x25238(%rip), %rax     # 0x566a8
jmp 0x314c4
movq 0x2514f(%rip), %rax     # 0x565c8
jmp 0x314c4
leaq 0x4(%rsp), %rsi
movl $0x1, %edi
callq 0x11680
jmp 0x314d0
movq 0x24f3d(%rip), %rax     # 0x563d0
jmp 0x314ae
movq 0x25414(%rip), %rax     # 0x568b0
jmp 0x314c4
movq 0x2527b(%rip), %rax     # 0x56720
jmp 0x314c4
movq 0x255a2(%rip), %rax     # 0x56a50
movl %ebp, %edi
callq *(%rax)
jmp 0x314d0
movq 0x25105(%rip), %rax     # 0x565c0
jmp 0x314c4
movq 0x256b4(%rip), %rax     # 0x56b78
leaq 0x4(%rsp), %rsi
movl $0x1, %edi
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdd9b(%rip), %rsi      # 0x3f285
leaq 0x193fb(%rip), %rdx     # 0x4a8ec
movq %rbx, %rdi
movl $0x9a, %ecx
xorl %eax, %eax
callq 0x11ae0
jmp 0x314d0
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/object.c
// Function: moongl_object_free_all
void object_free_all(lua_State *L)
    {
    rec_t *rec;
    if(track_objects)
        {
        while((rec = first(0, 0)))
            object_free(L, rec->otype, rec->oname);
        }
    else /* just remove any object inserted before object tracking was disabled */
        {
        while((rec = first(0, 0)))
            { removeeee(rec); Free(L, rec); }
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x26067(%rip), %rax     # 0x57970
cmpb $0x0, 0x2605c(%rip)     # 0x5796c
je 0x3194b
testq %rax, %rax
je 0x31980
movq %rax, %r14
cmpl $0x0, 0x20(%rax)
jne 0x31927
cmpl $0x0, 0x24(%r14)
je 0x3192f
movq (%r14), %rax
testq %rax, %rax
jne 0x31917
movq %r14, %rdi
callq 0x31502
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11360
movq 0x26027(%rip), %rax     # 0x57970
jmp 0x31912
testq %rax, %rax
je 0x31980
movq %rax, %rcx
movl 0x20(%rax), %esi
testl %esi, %esi
jne 0x31960
cmpl $0x0, 0x24(%rcx)
je 0x3196d
movq (%rcx), %rax
testq %rax, %rax
jne 0x31950
movl 0x24(%rcx), %edx
jmp 0x3196f
xorl %edx, %edx
movq %rbx, %rdi
callq 0x11090
movq 0x25ff2(%rip), %rax     # 0x57970
jmp 0x3194b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/perfragment.c
// Function: Scissor
static int Scissor(lua_State *L)
    {
    GLint x, y;
    GLsizei width, height;
    GLint v[4];
    GLint index;
    if(lua_isinteger(L, 5))
        {
        v[0] = luaL_checkinteger(L, 1);
        v[1] = luaL_checkinteger(L, 2);
        v[2] = luaL_checkinteger(L, 3);
        v[3] = luaL_checkinteger(L, 4);
        index = luaL_checkinteger(L, 5);
        glScissorIndexedv(index, v);
        }
    else
        {
        x = luaL_checkinteger(L, 1);
        y = luaL_checkinteger(L, 2);
        width = luaL_checkinteger(L, 3);
        height = luaL_checkinteger(L, 4);
        glScissor(x, y, width, height);
        }
    CheckError(L);
    return 0;
    }

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11850
testl %eax, %eax
jle 0x31b70
movl $0x1, %r15d
movl $0x4, %r12d
leal 0x2(%r15), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11af0
movq %rbx, %rdi
movl %ebp, %esi
callq 0x11850
incq %r15
addq $0x4, %r12
testl %eax, %eax
jg 0x31ad3
cmpl $0x4, %r15d
setae %al
testb $0x3, %r15b
sete %cl
testb %cl, %al
je 0x31b70
movq %rbx, %rdi
movq %r12, %rsi
callq 0x111f0
movq %rax, %r12
xorl %r13d, %r13d
movq %r15, %rbp
leal 0x2(%r13), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r12,%r13,4)
incq %r13
decq %rbp
jne 0x31b1c
movq 0x25193(%rip), %rax     # 0x56cd0
shrl $0x2, %r15d
movl %r14d, %edi
movl %r15d, %esi
movq %r12, %rdx
callq *(%rax)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11360
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xda07(%rip), %rsi      # 0x3f57e
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/perfragment.c
// Function: SampleCoverage
static int SampleCoverage(lua_State *L)
    {
    GLfloat value = luaL_checknumber(L, 1);
    GLboolean invert = checkboolean(L, 2);
    glSampleCoverage(value, invert);
    CheckError(L);
    return 0;
    }

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

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

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

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

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

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

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0x115b0
movq %rbx, %rdi
testl %eax, %eax
je 0x31de5
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x21, %esi
movl $0x2, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
callq 0x110b0
testl %eax, %eax
je 0x31e28
movq %rbx, %rdi
movl $0x21, %esi
movl $0x3, %edx
callq 0x11150
movq 0x24f06(%rip), %rcx     # 0x56ce0
movl %r14d, %edi
movl %ebp, %esi
movl %eax, %edx
callq *(%rcx)
jmp 0x31e43
movl $0x21, %esi
movl $0x1, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x110b0
testl %eax, %eax
je 0x31e38
movq %rbx, %rdi
movl $0x21, %esi
movl $0x2, %edx
callq 0x11150
movq 0x24b90(%rip), %rcx     # 0x569b0
movl %ebp, %edi
movl %eax, %esi
callq *(%rcx)
jmp 0x31e43
movq 0x25049(%rip), %rax     # 0x56e78
movl %r14d, %edi
movl %ebp, %esi
callq *(%rax)
jmp 0x31e43
movq 0x24fe1(%rip), %rax     # 0x56e20
movl %ebp, %edi
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/perfragment.c
// Function: BlendFunc
static int BlendFunc(lua_State *L)
    {
    GLuint buf;
    GLenum sfactor, dfactor, sfactorAlpha, dfactorAlpha;
    if(lua_isinteger(L, 1))
        {
        buf = luaL_checkinteger(L, 1);
        sfactor = checkblendfactor(L, 2);
        dfactor = checkblendfactor(L, 3);
        if(lua_isstring(L, 4))
            {
            sfactorAlpha = checkblendfactor(L, 4);
            dfactorAlpha = checkblendfactor(L, 5);
            glBlendFuncSeparatei(buf, sfactor, dfactor, sfactorAlpha, dfactorAlpha);
            }
        else
            glBlendFunci(buf, sfactor, dfactor);
        }
    else
        {
        sfactor = checkblendfactor(L, 1);
        dfactor = checkblendfactor(L, 2);
        if(lua_isstring(L, 3))
            {
            sfactorAlpha = checkblendfactor(L, 3);
            dfactorAlpha = checkblendfactor(L, 4);
            glBlendFuncSeparate(sfactor, dfactor, sfactorAlpha, dfactorAlpha);
            }
        else
            glBlendFunc(sfactor, dfactor);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0x115b0
movq %rbx, %rdi
testl %eax, %eax
je 0x31f01
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x22, %esi
movl $0x2, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x22, %esi
movl $0x3, %edx
callq 0x11150
movl %eax, %r15d
movq %rbx, %rdi
movl $0x4, %esi
callq 0x110b0
testl %eax, %eax
je 0x31f75
movq %rbx, %rdi
movl $0x22, %esi
movl $0x4, %edx
callq 0x11150
movl %eax, %r12d
movq %rbx, %rdi
movl $0x22, %esi
movl $0x5, %edx
callq 0x11150
movq 0x24a45(%rip), %r9      # 0x56930
movl %r14d, %edi
movl %ebp, %esi
movl %r15d, %edx
movl %r12d, %ecx
movl %eax, %r8d
callq *(%r9)
jmp 0x31f92
movl $0x22, %esi
movl $0x1, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x22, %esi
movl $0x2, %edx
callq 0x11150
movl %eax, %r14d
movq %rbx, %rdi
movl $0x3, %esi
callq 0x110b0
testl %eax, %eax
je 0x31f88
movq %rbx, %rdi
movl $0x22, %esi
movl $0x3, %edx
callq 0x11150
movl %eax, %r15d
movq %rbx, %rdi
movl $0x22, %esi
movl $0x4, %edx
callq 0x11150
movq 0x243a2(%rip), %r8      # 0x56308
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
movl %eax, %ecx
callq *(%r8)
jmp 0x31f92
movq 0x248b4(%rip), %rax     # 0x56830
movl %r14d, %edi
movl %ebp, %esi
movl %r15d, %edx
callq *(%rax)
jmp 0x31f92
movl %ebp, %edi
movl %r14d, %esi
callq 0x11520
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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:
pushq %rbx
movq %rdi, %rbx
movl $0x23, %esi
movl $0x1, %edx
callq 0x11150
movl %eax, %edi
callq 0x117f0
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/pipeline.c
// Function: GetProgramPipelineInfoLog
static int GetProgramPipelineInfoLog(lua_State *L)
    {
    char *buf;
    GLint bufsz;
    GLuint name = luaL_checkinteger(L, 1);

    glGetProgramPipelineiv(name, GL_INFO_LOG_LENGTH, &bufsz);
    CheckError(L);
    if(bufsz==0) return 0;
    buf = (char*)Malloc(L, bufsz * sizeof(char));
    glGetProgramPipelineInfoLog(name, bufsz, NULL, buf);
    CheckErrorFree(L, buf);
    lua_pushstring(L, buf);
    Free(L, buf);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x1, %ebx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
movq 0x23dea(%rip), %rax     # 0x56388
leaq 0x4(%rsp), %r12
movl %r15d, %edi
movl $0x8b84, %esi           # imm = 0x8B84
movq %r12, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x11870
movslq (%r12), %rsi
testq %rsi, %rsi
je 0x32604
movq %r14, %rdi
callq 0x111f0
movq %rax, %r12
movq 0x24025(%rip), %rax     # 0x565f8
movl 0x4(%rsp), %esi
movl %r15d, %edi
xorl %edx, %edx
movq %r12, %rcx
callq *(%rax)
movq %r14, %rdi
movq %r12, %rsi
callq 0x11540
movq %r14, %rdi
movq %r12, %rsi
callq 0x110c0
movq %r14, %rdi
movq %r12, %rsi
callq 0x11360
jmp 0x32606
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/pixel.c
// Function: ReadBuffer
static int ReadBuffer(lua_State *L)
/* read_buffer(src)
 * read_buffer(framebuffer, src)
 */
    {
    GLuint framebuffer;
    GLenum src;
    if(lua_isstring(L, 1))
        {
        src = checkbuffer(L, 1);
        glReadBuffer(src);
        }
    else
        {
        framebuffer = luaL_checkinteger(L, 1);
        src = checkbuffer(L, 2);
        glNamedFramebufferReadBuffer(framebuffer, src);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x110b0
movq %rbx, %rdi
testl %eax, %eax
je 0x32652
movl $0x4f, %esi
movl $0x1, %edx
callq 0x11150
movl %eax, %edi
callq 0x11210
jmp 0x3267f
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x4f, %esi
movl $0x2, %edx
callq 0x11150
movq 0x23f60(%rip), %rcx     # 0x565d8
movl %r14d, %edi
movl %eax, %esi
callq *(%rcx)
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/pixel.c
// Function: ReadPixels
static int ReadPixels(lua_State *L)
    {
    GLint x = luaL_checkinteger(L, 1);
    GLint y = luaL_checkinteger(L, 2);
    GLsizei width = luaL_checkinteger(L, 3);
    GLsizei height = luaL_checkinteger(L, 4);
    GLenum format = checkformat(L, 5);
    GLenum type = checktype(L, 6);
    GLsizei bufsz = width*height*sizeoftype(L, type);
    void *data = Malloc(L, bufsz);
#if 0 /* #ifdef GL_VERSION_4_5 */
    glReadnPixels(x, y, width, height, format, type, bufsz, data);
#else
    glReadPixels(x, y, width, height, format, type, data);
#endif
    CheckErrorFree(L, data);
    lua_pushlstring(L, (char*)data, bufsz);
    Free(L, data);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11af0
movq %rax, %r13
movq %rbx, %rdi
movl $0x12, %esi
movl $0x5, %edx
callq 0x11150
movl %eax, 0x14(%rsp)
movq %rbx, %rdi
movl $0x7, %esi
movl $0x6, %edx
callq 0x11150
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x115f0
movl %r12d, %ecx
imull %r13d, %ecx
imull %ecx, %eax
movslq %eax, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x111f0
movq %rax, %rbp
movq %rax, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl %r12d, %edx
movl %r13d, %ecx
movl 0x14(%rsp), %r8d
movl %r14d, %r9d
callq 0x113d0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x11540
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x11ab0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x11360
movl $0x1, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/pixel.c
// Function: ClampColor
static int ClampColor(lua_State *L)
    {
    GLenum clamp;
    GLenum target = checkclamptarget(L, 1);
    if(lua_isboolean(L, 2))
        clamp = lua_toboolean(L, 2) ? GL_TRUE : GL_FALSE;
    else
        clamp = checkclamp(L, 2);
    glClampColor(target, clamp);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x30, %esi
movl $0x1, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11850
movq %rbx, %rdi
cmpl $0x1, %eax
jne 0x327cc
movl $0x2, %esi
callq 0x11700
xorl %esi, %esi
testl %eax, %eax
setne %sil
jmp 0x327dd
movl $0x31, %esi
movl $0x2, %edx
callq 0x11150
movl %eax, %esi
movq 0x24454(%rip), %rax     # 0x56c38
movl %ebp, %edi
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/pixel.c
// Function: PixelStore
static int PixelStore(lua_State *L)
    {
    GLenum pname = checkpixelstorepname(L, 1);
    switch(pname)
        {
        case GL_UNPACK_SWAP_BYTES: 
        case GL_UNPACK_LSB_FIRST: return StoreBoolean(L, pname, 2);
        case GL_UNPACK_ROW_LENGTH: 
        case GL_UNPACK_SKIP_ROWS: 
        case GL_UNPACK_SKIP_PIXELS: 
        case GL_UNPACK_ALIGNMENT:
        case GL_UNPACK_IMAGE_HEIGHT:
        case GL_UNPACK_SKIP_IMAGES: 
        case GL_UNPACK_COMPRESSED_BLOCK_WIDTH: 
        case GL_UNPACK_COMPRESSED_BLOCK_HEIGHT: 
        case GL_UNPACK_COMPRESSED_BLOCK_DEPTH: 
        case GL_UNPACK_COMPRESSED_BLOCK_SIZE: return StoreInt(L, pname, 2);
        case GL_PACK_SWAP_BYTES: 
        case GL_PACK_LSB_FIRST: return StoreBoolean(L, pname, 2);
        case GL_PACK_ROW_LENGTH: 
        case GL_PACK_SKIP_ROWS: 
        case GL_PACK_SKIP_PIXELS: 
        case GL_PACK_ALIGNMENT:
        case GL_PACK_IMAGE_HEIGHT: 
        case GL_PACK_SKIP_IMAGES: 
        case GL_PACK_COMPRESSED_BLOCK_WIDTH: 
        case GL_PACK_COMPRESSED_BLOCK_HEIGHT: 
        case GL_PACK_COMPRESSED_BLOCK_DEPTH: 
        case GL_PACK_COMPRESSED_BLOCK_SIZE:     return StoreInt(L, pname, 2);
        default:
            return luaL_error(L, UNEXPECTED_ERROR);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x33, %esi
movl $0x1, %edx
callq 0x11150
movl %eax, %r14d
cmpl $0x806c, %eax           # imm = 0x806C
jg 0x32b73
leal -0xcf0(%r14), %eax
cmpl $0x15, %eax
ja 0x32b95
leaq 0x17fff(%rip), %rcx     # 0x4ab54
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11500
movzbl %al, %esi
movl %r14d, %edi
jmp 0x32bb4
leal -0x9127(%r14), %eax
cmpl $0x4, %eax
jb 0x32ba2
leal -0x912b(%r14), %eax
cmpl $0x4, %eax
jb 0x32ba2
movl %r14d, %eax
addl $0xffff7f93, %eax       # imm = 0xFFFF7F93
jmp 0x32b9d
movl %r14d, %eax
addl $0xffff7f95, %eax       # imm = 0xFFFF7F95
cmpl $0x2, %eax
jae 0x32bcb
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movl %r14d, %edi
movl %eax, %esi
callq 0x116c0
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xc6b3(%rip), %rsi      # 0x3f285
leaq 0x18028(%rip), %rdx     # 0x4ac01
movq %rbx, %rdi
movl $0xc3, %ecx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x11ae0
nop
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/proginterface.c
// Function: GetProgramInterface
static int GetProgramInterface(lua_State *L)
    {
    GLuint prog = luaL_checkinteger(L, 1);
    GLenum itf = checkinterface(L, 2);
    GLenum pname = checkinterfacepname(L, 3);
    switch(pname)
        {
        case GL_ACTIVE_RESOURCES: return GetInt(L, prog, itf, pname);
        case GL_MAX_NAME_LENGTH: return GetInt(L, prog, itf, pname);
        case GL_MAX_NUM_ACTIVE_VARIABLES: return GetInt(L, prog, itf, pname);
        case GL_MAX_NUM_COMPATIBLE_SUBROUTINES: return GetInt(L, prog, itf, pname);
        default:
            return luaL_error(L, UNEXPECTED_ERROR);
        }
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x40, %esi
movl $0x2, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x41, %esi
movl $0x3, %edx
callq 0x11150
addl $0xffff6d0b, %eax       # imm = 0xFFFF6D0B
cmpl $0x3, %eax
ja 0x32cdf
leaq 0x17fbc(%rip), %rcx     # 0x4ac0c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x24138(%rip), %rax     # 0x56d98
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movl %ebp, %esi
movl $0x92f5, %edx           # imm = 0x92F5
jmp 0x32cb7
movq 0x24120(%rip), %rax     # 0x56d98
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movl %ebp, %esi
movl $0x92f7, %edx           # imm = 0x92F7
jmp 0x32cb7
movq 0x24108(%rip), %rax     # 0x56d98
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movl %ebp, %esi
movl $0x92f8, %edx           # imm = 0x92F8
jmp 0x32cb7
movq 0x240f0(%rip), %rax     # 0x56d98
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movl %ebp, %esi
movl $0x92f6, %edx           # imm = 0x92F6
movq %r15, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x113b0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc59f(%rip), %rsi      # 0x3f285
leaq 0x18075(%rip), %rdx     # 0x4ad62
movq %rbx, %rdi
movl $0x3f, %ecx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/proginterface.c
// Function: GetProgramResourceIndex
static int GetProgramResourceIndex(lua_State *L)
    {
    GLuint prog = luaL_checkinteger(L, 1);
    GLenum itf = checkinterface(L, 2);
    const char *name = luaL_checkstring(L, 3);
    GLuint index = glGetProgramResourceIndex(prog, itf, 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 $0x40, %esi
movl $0x2, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x11440
movq %rax, %r14
movq 0x23bf6(%rip), %rax     # 0x56940
movl %r15d, %edi
movl %ebp, %esi
movq %r14, %rdx
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11870
cmpl $-0x1, %ebp
je 0x32d7d
movl %ebp, %esi
movq %rbx, %rdi
callq 0x113b0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x17781(%rip), %rsi     # 0x4a505
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x11160
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11630
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/proginterface.c
// Function: GetProgramResourceName
static int GetProgramResourceName(lua_State *L)
    {
    GLsizei length;
    char *name;
    GLuint prog = luaL_checkinteger(L, 1);
    GLenum itf = checkinterface(L, 2);
    GLuint index = luaL_checkinteger(L, 3);
    GLsizei bufsz = GetMaxNameLength(L, prog, itf);
    name = (char*)Malloc(L, bufsz*sizeof(char));
    glGetProgramResourceName(prog, itf, index, bufsz, &length, name);
    CheckErrorFree(L, name);
    lua_pushstring(L, name);
    Free(L, name);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x40, %esi
movl $0x2, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq %rax, %r15
movq 0x23faf(%rip), %rax     # 0x56d98
leaq 0x4(%rsp), %r12
movl %r14d, %edi
movl %ebp, %esi
movl $0x92f6, %edx           # imm = 0x92F6
movq %r12, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
movl (%r12), %eax
movslq %eax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x111f0
movq %rax, %r13
movq 0x2416f(%rip), %rax     # 0x56f90
movq %rsp, %r8
movl %r14d, %edi
movl %ebp, %esi
movl %r15d, %edx
movl %r12d, %ecx
movq %r13, %r9
callq *(%rax)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11540
movq %rbx, %rdi
movq %r13, %rsi
callq 0x110c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11360
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/proginterface.c
// Function: GetProgramResourceLocation
static int GetProgramResourceLocation(lua_State *L)
    {
    GLuint prog = luaL_checkinteger(L, 1);
    GLenum itf = checkinterface(L, 2);
    const char *name = luaL_checkstring(L, 3);
    GLint loc = glGetProgramResourceLocation(prog, itf, name);
    CheckError(L);
    lua_pushinteger(L, loc);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x40, %esi
movl $0x2, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x11440
movq 0x23a9c(%rip), %rcx     # 0x56d48
movl %r14d, %edi
movl %ebp, %esi
movq %rax, %rdx
callq *(%rcx)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11870
movslq %ebp, %rsi
movq %rbx, %rdi
callq 0x113b0
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/proginterface.c
// Function: GetPropInt
static int GetPropInt(lua_State *L, GLuint prog, GLenum itf, GLuint index, GLenum prop)
    {
    GLsizei length;
    GLint param;
    glGetProgramResourceiv(prog, itf, index, 1, &prop, 1, &length, &param);
    CheckError(L);
    lua_pushinteger(L, param);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x14(%rsp), %rax
movl %r8d, (%rax)
movq 0x2337c(%rip), %r10     # 0x56708
leaq 0xc(%rsp), %r14
leaq 0x10(%rsp), %r11
movl %esi, %edi
movl %edx, %esi
movl %ecx, %edx
movl $0x1, %ecx
movq %rax, %r8
movl $0x1, %r9d
pushq %r14
pushq %r11
callq *(%r10)
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x11870
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x113b0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/proginterface.c
// Function: GetPropBoolean
static int GetPropBoolean(lua_State *L, GLuint prog, GLenum itf, GLuint index, GLenum prop)
    {
    GLsizei length;
    GLint param;
    glGetProgramResourceiv(prog, itf, index, 1, &prop, 1, &length, &param);
    CheckError(L);
    lua_pushboolean(L, param);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x14(%rsp), %rax
movl %r8d, (%rax)
movq 0x2331f(%rip), %r10     # 0x56708
leaq 0xc(%rsp), %r14
leaq 0x10(%rsp), %r11
movl %esi, %edi
movl %edx, %esi
movl %ecx, %edx
movl $0x1, %ecx
movq %rax, %r8
movl $0x1, %r9d
pushq %r14
pushq %r11
callq *(%r10)
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x11870
movl (%r14), %esi
movq %rbx, %rdi
callq 0x117e0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/program.c
// Function: CreateProgram
static int CreateProgram(lua_State *L)
    {
    GLuint ref;
    check_init_called(L);
    ref = glCreateProgram();
    CheckError(L);
    object_new(L, OTYPE_PROGRAM, ref);
    lua_pushinteger(L, ref);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x115d0
movq 0x235b9(%rip), %rax     # 0x56a38
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11870
movq %rbx, %rdi
movl $0x7, %esi
movl %ebp, %edx
callq 0x11a90
movl %ebp, %esi
movq %rbx, %rdi
callq 0x113b0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/program.c
// Function: CreateShaderProgram
static int CreateShaderProgram(lua_State *L)
    {
    GLenum type = checkshadertype(L, 1);
    const GLchar *string = luaL_checkstring(L, 2);
    GLuint program;
    check_init_called(L);
    program = glCreateShaderProgramv(type, 1, &string);
    CheckError(L);
    object_new(L, OTYPE_PROGRAM, program);
    lua_pushinteger(L, program);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, %esi
movl $0x1, %edx
callq 0x11150
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0x11440
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x115d0
movq 0x22e3e(%rip), %rax     # 0x56330
movl %ebp, %edi
movl $0x1, %esi
movq %r14, %rdx
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11870
movq %rbx, %rdi
movl $0x7, %esi
movl %ebp, %edx
callq 0x11a90
movl %ebp, %esi
movq %rbx, %rdi
callq 0x113b0
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/program.c
// Function: GetProgramInfoLog
static int GetProgramInfoLog(lua_State *L)
    {
    char *buf;
    GLint bufsz;
    GLuint program = luaL_checkinteger(L, 1);

    glGetProgramiv(program, GL_INFO_LOG_LENGTH, &bufsz);
    CheckError(L);
    if(bufsz==0) return 0;
    buf = (char*)Malloc(L, bufsz*sizeof(char));
    glGetProgramInfoLog(program, bufsz, NULL, buf);
    CheckErrorFree(L, buf);
    lua_pushstring(L, buf);
    Free(L, buf);
    return 1;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x1, %ebx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
movq 0x235b5(%rip), %rax     # 0x56d50
leaq 0x4(%rsp), %r12
movl %r15d, %edi
movl $0x8b84, %esi           # imm = 0x8B84
movq %r12, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x11870
movslq (%r12), %rsi
testq %rsi, %rsi
je 0x33801
movq %r14, %rdi
callq 0x111f0
movq %rax, %r12
movq 0x23118(%rip), %rax     # 0x568e8
movl 0x4(%rsp), %esi
movl %r15d, %edi
xorl %edx, %edx
movq %r12, %rcx
callq *(%rax)
movq %r14, %rdi
movq %r12, %rsi
callq 0x11540
movq %r14, %rdi
movq %r12, %rsi
callq 0x110c0
movq %r14, %rdi
movq %r12, %rsi
callq 0x11360
jmp 0x33803
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/program.c
// Function: GetAttachedShaders
static int GetAttachedShaders(lua_State *L)
    {
    GLuint *shaders;
    GLsizei i, count;
    GLuint program = luaL_checkinteger(L, 1);

    glGetProgramiv(program, GL_ATTACHED_SHADERS, &count);
    CheckError(L);
    if(count==0) return 0;
    shaders = (GLuint*)Malloc(L, count*sizeof(GLuint));
    glGetAttachedShaders(program, count, NULL, shaders);
    CheckErrorFree(L, shaders);
    for(i=0; i<count; i++)
        lua_pushinteger(L, shaders[i]);
    Free(L, shaders);
    return count;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
movq 0x2351f(%rip), %rax     # 0x56d50
leaq 0xc(%rsp), %r14
movl %r15d, %edi
movl $0x8b85, %esi           # imm = 0x8B85
movq %r14, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
movslq (%r14), %rsi
testq %rsi, %rsi
je 0x338b6
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x111f0
movq %rax, %r14
movq 0x22bb7(%rip), %rax     # 0x56420
movl 0xc(%rsp), %esi
movl %r15d, %edi
xorl %edx, %edx
movq %r14, %rcx
callq *(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11540
cmpl $0x0, 0xc(%rsp)
jle 0x338a5
xorl %r15d, %r15d
movl (%r14,%r15,4), %esi
movq %rbx, %rdi
callq 0x113b0
incq %r15
movslq 0xc(%rsp), %rax
cmpq %rax, %r15
jl 0x3388c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11360
movl 0xc(%rsp), %eax
jmp 0x338b8
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq