LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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, 0x26636(%rip)     # 0x57968
je 0x31363
leal -0x1(%r14), %eax
cmpl $0xa, %eax
ja 0x3134c
movl %eax, %eax
leaq 0x23c1a(%rip), %rcx     # 0x54f60
movq (%rcx,%rax,8), %rsi
jmp 0x31353
leaq 0x185d5(%rip), %rsi     # 0x49928
leaq 0x19584(%rip), %rdi     # 0x4a8de
movl %ebp, %edx
xorl %eax, %eax
callq 0x11070
cmpb $0x0, 0x26602(%rip)     # 0x5796c
jne 0x31391
movl %r14d, %edi
movl %ebp, %esi
callq 0x312ea
testq %rax, %rax
je 0x31391
movq %rax, %r15
movq %rax, %rdi
callq 0x3145b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11370
decl %r14d
cmpl $0xa, %r14d
ja 0x3143c
leaq 0x194ff(%rip), %rax     # 0x4a8a4
movslq (%rax,%r14,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x25713(%rip), %rax     # 0x56ac8
jmp 0x3141d
movq 0x24f52(%rip), %rax     # 0x56310
jmp 0x3141d
movq 0x252e1(%rip), %rax     # 0x566a8
jmp 0x3141d
movq 0x251f8(%rip), %rax     # 0x565c8
jmp 0x3141d
leaq 0x4(%rsp), %rsi
movl $0x1, %edi
callq 0x11690
jmp 0x31429
movq 0x24fe6(%rip), %rax     # 0x563d0
jmp 0x31405
movq 0x254bd(%rip), %rax     # 0x568b0
jmp 0x3141d
movq 0x25324(%rip), %rax     # 0x56720
jmp 0x3141d
movq 0x2564b(%rip), %rax     # 0x56a50
movl 0x4(%rsp), %edi
callq *(%rax)
jmp 0x31429
movq 0x251ac(%rip), %rax     # 0x565c0
jmp 0x3141d
movq 0x2575b(%rip), %rax     # 0x56b78
leaq 0x4(%rsp), %rsi
movl $0x1, %edi
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xde42(%rip), %rsi      # 0x3f285
leaq 0x194a2(%rip), %rdx     # 0x4a8ec
movq %rbx, %rdi
movl $0x9a, %ecx
xorl %eax, %eax
callq 0x11ae0
jmp 0x31429
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x2612d(%rip)     # 0x5796c
je 0x3189a
xorl %r15d, %r15d
movq 0x26125(%rip), %rax     # 0x57970
xorl %r14d, %r14d
testq %rax, %rax
je 0x31880
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x0, 0x20(%rax)
jne 0x31869
cmpl 0x24(%rax), %r15d
movl $0x0, %ecx
sbbl %ecx, %ecx
testl %ecx, %ecx
js 0x31875
je 0x3187d
addq $0x8, %rax
jmp 0x31878
movq %rax, %r14
movq (%rax), %rax
jmp 0x3184e
movq %rax, %r14
testq %r14, %r14
je 0x318ed
movq %r14, %rdi
callq 0x3145b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11370
jmp 0x31844
xorl %r14d, %r14d
movq 0x260cc(%rip), %rcx     # 0x57970
xorl %eax, %eax
testq %rcx, %rcx
je 0x318d8
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpl $0x0, 0x20(%rcx)
jne 0x318c1
cmpl 0x24(%rcx), %r14d
movl $0x0, %edx
sbbl %edx, %edx
testl %edx, %edx
js 0x318cd
je 0x318d5
addq $0x8, %rcx
jmp 0x318d0
movq %rcx, %rax
movq (%rcx), %rcx
jmp 0x318a6
movq %rcx, %rax
testq %rax, %rax
je 0x318ed
movl 0x20(%rax), %esi
movl 0x24(%rax), %edx
movq %rbx, %rdi
callq 0x11090
jmp 0x3189d
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x115c0
movl %eax, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
testl %ebp, %ebp
je 0x319af
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 0x24be2(%rip), %rcx     # 0x56588
movl %eax, %edi
movq %r14, %rsi
callq *(%rcx)
jmp 0x319ec
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 0x11930
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x2, %r15d
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11860
testl %eax, %eax
jle 0x31a58
movl $0x2, %r15d
incl %r15d
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11af0
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11860
testl %eax, %eax
jg 0x31a3b
leal -0x1(%r15), %ebp
cmpl $0x5, %r15d
setae %al
testb $0x3, %bpl
sete %cl
testb %cl, %al
je 0x31ad8
movslq %ebp, %rsi
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r15
movl %ebp, %r12d
xorl %r13d, %r13d
leal 0x2(%r13), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r15,%r13,4)
incq %r13
cmpq %r13, %r12
jne 0x31a86
movq 0x25229(%rip), %rax     # 0x56cd0
sarl $0x2, %ebp
movl %r14d, %edi
movl %ebp, %esi
movq %r15, %rdx
callq *(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11370
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xda9f(%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_O1/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 0x11510
movq 0x24c29(%rip), %rcx     # 0x56750
movzbl %al, %edi
movss 0xc(%rsp), %xmm0
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x24fb6(%rip), %rcx     # 0x56b20
movl %r14d, %edi
movl %eax, %esi
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x11160
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 0x31bf7
movq %rbx, %rdi
movl $0x1f, %esi
movl $0x4, %edx
callq 0x11160
movq 0x24eb0(%rip), %r8      # 0x56a98
movl %eax, %edi
movl %ebp, %esi
movl %r14d, %edx
movl %r15d, %ecx
callq *(%r8)
jmp 0x31c04
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
callq 0x112b0
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x20, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %r14d
movq %rbx, %rdi
movl $0x20, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, %r15d
movq %rbx, %rdi
movl $0x4, %esi
callq 0x110b0
testl %eax, %eax
je 0x31c97
movq %rbx, %rdi
movl $0x1f, %esi
movl $0x4, %edx
callq 0x11160
movq 0x251f8(%rip), %r8      # 0x56e80
movl %eax, %edi
movl %ebp, %esi
movl %r14d, %edx
movl %r15d, %ecx
callq *(%r8)
jmp 0x31ca4
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
callq 0x11660
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x11160
movl %eax, %edi
callq 0x11890
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x115c0
movq %rbx, %rdi
testl %eax, %eax
je 0x31d4d
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x21, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
callq 0x110b0
testl %eax, %eax
je 0x31d90
movq %rbx, %rdi
movl $0x21, %esi
movl $0x3, %edx
callq 0x11160
movq 0x24f9e(%rip), %rcx     # 0x56ce0
movl %r14d, %edi
movl %ebp, %esi
movl %eax, %edx
callq *(%rcx)
jmp 0x31dab
movl $0x21, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x110b0
testl %eax, %eax
je 0x31da0
movq %rbx, %rdi
movl $0x21, %esi
movl $0x2, %edx
callq 0x11160
movq 0x24c28(%rip), %rcx     # 0x569b0
movl %ebp, %edi
movl %eax, %esi
callq *(%rcx)
jmp 0x31dab
movq 0x250e1(%rip), %rax     # 0x56e78
movl %r14d, %edi
movl %ebp, %esi
callq *(%rax)
jmp 0x31dab
movq 0x25079(%rip), %rax     # 0x56e20
movl %ebp, %edi
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x115c0
movq %rbx, %rdi
testl %eax, %eax
je 0x31e69
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x22, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x22, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, %r15d
movq %rbx, %rdi
movl $0x4, %esi
callq 0x110b0
testl %eax, %eax
je 0x31edd
movq %rbx, %rdi
movl $0x22, %esi
movl $0x4, %edx
callq 0x11160
movl %eax, %r12d
movq %rbx, %rdi
movl $0x22, %esi
movl $0x5, %edx
callq 0x11160
movq 0x24add(%rip), %r9      # 0x56930
movl %r14d, %edi
movl %ebp, %esi
movl %r15d, %edx
movl %r12d, %ecx
movl %eax, %r8d
callq *(%r9)
jmp 0x31efa
movl $0x22, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x22, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %r14d
movq %rbx, %rdi
movl $0x3, %esi
callq 0x110b0
testl %eax, %eax
je 0x31ef0
movq %rbx, %rdi
movl $0x22, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, %r15d
movq %rbx, %rdi
movl $0x22, %esi
movl $0x4, %edx
callq 0x11160
movq 0x2443a(%rip), %r8      # 0x56308
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
movl %eax, %ecx
callq *(%r8)
jmp 0x31efa
movq 0x2494c(%rip), %rax     # 0x56830
movl %r14d, %edi
movl %ebp, %esi
movl %r15d, %edx
callq *(%rax)
jmp 0x31efa
movl %ebp, %edi
movl %r14d, %esi
callq 0x11530
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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:
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 0x11a80
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11a80
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11a80
cvtsd2ss %xmm0, %xmm3
movq 0x24a69(%rip), %rax     # 0x569d8
movss 0xc(%rsp), %xmm0
movss 0x8(%rsp), %xmm1
movss 0x4(%rsp), %xmm2
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x11160
movl %eax, %edi
callq 0x11800
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
popq %rbx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 0x23e82(%rip), %rax     # 0x56388
leaq 0x4(%rsp), %r12
movl %r15d, %edi
movl $0x8b84, %esi           # imm = 0x8B84
movq %r12, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x11880
movslq (%r12), %rsi
testq %rsi, %rsi
je 0x3256c
movq %r14, %rdi
callq 0x11200
movq %rax, %r12
movq 0x240bd(%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 0x11550
movq %r14, %rdi
movq %r12, %rsi
callq 0x110c0
movq %r14, %rdi
movq %r12, %rsi
callq 0x11370
jmp 0x3256e
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x325ba
movl $0x4f, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, %edi
callq 0x11220
jmp 0x325e7
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x4f, %esi
movl $0x2, %edx
callq 0x11160
movq 0x23ff8(%rip), %rcx     # 0x565d8
movl %r14d, %edi
movl %eax, %esi
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x11160
movl %eax, 0x14(%rsp)
movq %rbx, %rdi
movl $0x7, %esi
movl $0x6, %edx
callq 0x11160
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x11600
movl %r12d, %ecx
imull %r13d, %ecx
imull %ecx, %eax
movslq %eax, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11200
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 0x113e0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x11550
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x11ab0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x11370
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_O1/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 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11860
movq %rbx, %rdi
cmpl $0x1, %eax
jne 0x32734
movl $0x2, %esi
callq 0x11710
xorl %esi, %esi
testl %eax, %eax
setne %sil
jmp 0x32745
movl $0x31, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %esi
movq 0x244ec(%rip), %rax     # 0x56c38
movl %ebp, %edi
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/pixel.c
// Function: CopyImageSubData
static int CopyImageSubData(lua_State *L)
    {
    int arg = 1;
    GLuint srcName = luaL_checkinteger(L, arg++);
    GLenum srcTarget = checkimagetarget(L, arg++);
    GLint srcLevel = luaL_checkinteger(L, arg++);
    GLint srcX = luaL_checkinteger(L, arg++);
    GLint srcY = luaL_checkinteger(L, arg++);
    GLint srcZ = luaL_checkinteger(L, arg++);
    GLuint dstName = luaL_checkinteger(L, arg++);
    GLenum dstTarget = checkimagetarget(L, arg++);
    GLint dstLevel = luaL_checkinteger(L, arg++);
    GLint dstX = luaL_checkinteger(L, arg++);
    GLint dstY = luaL_checkinteger(L, arg++);
    GLint dstZ = luaL_checkinteger(L, arg++);
    GLsizei srcWidth = luaL_checkinteger(L, arg++);
    GLsizei srcHeight = luaL_checkinteger(L, arg++);
    GLsizei srcDepth = luaL_checkinteger(L, arg++);
    glCopyImageSubData(srcName, srcTarget, srcLevel, srcX, srcY, srcZ, 
                        dstName, dstTarget, dstLevel, dstX, dstY, dstZ, 
                            srcWidth, srcHeight, srcDepth);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, 0x40(%rsp)
movq %rbx, %rdi
movl $0x32, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq %rax, 0x30(%rsp)
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11af0
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
movl $0x6, %esi
callq 0x11af0
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11af0
movq %rax, 0x38(%rsp)
movq %rbx, %rdi
movl $0x32, %esi
movl $0x8, %edx
callq 0x11160
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
movl $0x9, %esi
callq 0x11af0
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movl $0xa, %esi
callq 0x11af0
movq %rax, %r13
movq %rbx, %rdi
movl $0xb, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0xc, %esi
callq 0x11af0
movq %rax, %rbp
movq %rbx, %rdi
movl $0xd, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0xe, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0xf, %esi
callq 0x11af0
movq 0x23eb0(%rip), %r10     # 0x568e0
subq $0x8, %rsp
movq 0x48(%rsp), %rdi
movl 0xc(%rsp), %esi
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %rcx
movq 0x20(%rsp), %r8
movq 0x18(%rsp), %r9
pushq %rax
pushq %r12
pushq %r15
pushq %rbp
pushq %r14
pushq %r13
pushq 0x40(%rsp)
pushq 0x60(%rsp)
pushq 0x80(%rsp)
callq *(%r10)
addq $0x50, %rsp
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/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 0x11160
movl %eax, %r14d
cmpl $0x806c, %eax           # imm = 0x806C
jg 0x32adb
leal -0xcf0(%r14), %eax
cmpl $0x15, %eax
ja 0x32afd
leaq 0x18097(%rip), %rcx     # 0x4ab54
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11510
movzbl %al, %esi
movl %r14d, %edi
jmp 0x32b1c
leal -0x9127(%r14), %eax
cmpl $0x4, %eax
jb 0x32b0a
leal -0x912b(%r14), %eax
cmpl $0x4, %eax
jb 0x32b0a
movl %r14d, %eax
addl $0xffff7f93, %eax       # imm = 0xFFFF7F93
jmp 0x32b05
movl %r14d, %eax
addl $0xffff7f95, %eax       # imm = 0xFFFF7F95
cmpl $0x2, %eax
jae 0x32b33
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movl %r14d, %edi
movl %eax, %esi
callq 0x116d0
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xc74b(%rip), %rsi      # 0x3f285
leaq 0x180c0(%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_O1/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 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x41, %esi
movl $0x3, %edx
callq 0x11160
addl $0xffff6d0b, %eax       # imm = 0xFFFF6D0B
cmpl $0x3, %eax
ja 0x32c47
leaq 0x18054(%rip), %rcx     # 0x4ac0c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x241d0(%rip), %rax     # 0x56d98
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movl %ebp, %esi
movl $0x92f5, %edx           # imm = 0x92F5
jmp 0x32c1f
movq 0x241b8(%rip), %rax     # 0x56d98
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movl %ebp, %esi
movl $0x92f7, %edx           # imm = 0x92F7
jmp 0x32c1f
movq 0x241a0(%rip), %rax     # 0x56d98
leaq 0x4(%rsp), %r15
movl %r14d, %edi
movl %ebp, %esi
movl $0x92f8, %edx           # imm = 0x92F8
jmp 0x32c1f
movq 0x24188(%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 0x11880
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc637(%rip), %rsi      # 0x3f285
leaq 0x1810d(%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_O1/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 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x11450
movq %rax, %r14
movq 0x23c8e(%rip), %rax     # 0x56940
movl %r15d, %edi
movl %ebp, %esi
movq %r14, %rdx
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11880
cmpl $-0x1, %ebp
je 0x32ce5
movl %ebp, %esi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x17819(%rip), %rsi     # 0x4a505
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x11170
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11640
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/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 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq %rax, %r15
movq 0x24047(%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 0x11880
movl (%r12), %eax
movslq %eax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11200
movq %rax, %r13
movq 0x24207(%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 0x11550
movq %rbx, %rdi
movq %r13, %rsi
callq 0x110c0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11370
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_O1/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 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x11450
movq 0x23b34(%rip), %rcx     # 0x56d48
movl %r14d, %edi
movl %ebp, %esi
movq %rax, %rdx
callq *(%rcx)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11880
movslq %ebp, %rsi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x23414(%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 0x11880
movslq (%r14), %rsi
movq %rbx, %rdi
callq 0x113c0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x233b7(%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 0x11880
movl (%r14), %esi
movq %rbx, %rdi
callq 0x117f0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 0x115e0
movq 0x23651(%rip), %rax     # 0x56a38
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11880
movq %rbx, %rdi
movl $0x7, %esi
movl %ebp, %edx
callq 0x11a90
movl %ebp, %esi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0x11450
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x115e0
movq 0x22ed6(%rip), %rax     # 0x56330
movl %ebp, %edi
movl $0x1, %esi
movq %r14, %rdx
callq *(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x11880
movq %rbx, %rdi
movl $0x7, %esi
movl %ebp, %edx
callq 0x11a90
movl %ebp, %esi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x2364d(%rip), %rax     # 0x56d50
leaq 0x4(%rsp), %r12
movl %r15d, %edi
movl $0x8b84, %esi           # imm = 0x8B84
movq %r12, %rdx
callq *(%rax)
movq %r14, %rdi
callq 0x11880
movslq (%r12), %rsi
testq %rsi, %rsi
je 0x33769
movq %r14, %rdi
callq 0x11200
movq %rax, %r12
movq 0x231b0(%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 0x11550
movq %r14, %rdi
movq %r12, %rsi
callq 0x110c0
movq %r14, %rdi
movq %r12, %rsi
callq 0x11370
jmp 0x3376b
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x235b7(%rip), %rax     # 0x56d50
leaq 0xc(%rsp), %r14
movl %r15d, %edi
movl $0x8b85, %esi           # imm = 0x8B85
movq %r14, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movslq (%r14), %rsi
testq %rsi, %rsi
je 0x3381e
shlq $0x2, %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r14
movq 0x22c4f(%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 0x11550
cmpl $0x0, 0xc(%rsp)
jle 0x3380d
xorl %r15d, %r15d
movl (%r14,%r15,4), %esi
movq %rbx, %rdi
callq 0x113c0
incq %r15
movslq 0xc(%rsp), %rax
cmpq %rax, %r15
jl 0x337f4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11370
movl 0xc(%rsp), %eax
jmp 0x33820
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/program.c
// Function: ProgramParameter
static int ProgramParameter(lua_State *L)
    {
    GLuint program = luaL_checkinteger(L, 1);
    GLenum pname = checkprogramparameterpname(L, 2);
    GLint value = checkboolean(L, 3);
    glProgramParameteri(program, pname, value);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x51, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11510
movzbl %al, %edx
movq 0x22fe7(%rip), %rax     # 0x56d10
movl %r14d, %edi
movl %ebp, %esi
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/program.c
// Function: GetProgramBinary
static int GetProgramBinary(lua_State *L)
/* get_program_binary(program)
 * -> format, binary  (or nil)
 */
    {
    GLsizei length;
    GLenum format;
    void *binary;
    GLuint program = luaL_checkinteger(L, 1);
    GLsizei bufsz = programGet(L, program, GL_PROGRAM_BINARY_LENGTH);
    if(bufsz==0)
        return 0;   
    binary = Malloc(L, bufsz);
    glGetProgramBinary(program, bufsz, &length, &format, binary);
    CheckErrorFree(L, binary);
    if(length==0)
        return 0;
    lua_pushinteger(L, format);
    lua_pushlstring(L, (char*)binary, length);
    Free(L, binary);
    return 2;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
movq 0x22fec(%rip), %rax     # 0x56d50
leaq 0x14(%rsp), %r14
movl %r15d, %edi
movl $0x8741, %esi           # imm = 0x8741
movq %r14, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movslq (%r14), %r12
xorl %ebp, %ebp
testq %r12, %r12
je 0x33df3
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11200
movq %rax, %r14
movq 0x22833(%rip), %rax     # 0x565d0
leaq 0x10(%rsp), %r13
leaq 0xc(%rsp), %rcx
movl %r15d, %edi
movl %r12d, %esi
movq %r13, %rdx
movq %r14, %r8
callq *(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11550
cmpl $0x0, (%r13)
je 0x33df3
movl 0xc(%rsp), %esi
movq %rbx, %rdi
callq 0x113c0
movslq 0x10(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11ab0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11370
movl $0x2, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/program.c
// Function: ProgramBinary
static int ProgramBinary(lua_State *L)
/* program_binary(program, format, binary)
 */
    {
    size_t length;
    GLuint program = luaL_checkinteger(L, 1);
    GLenum format = luaL_checkinteger(L, 2);
    const void *binary = luaL_checklstring(L, 3, &length);
    glProgramBinary(program, format, binary, (GLsizei)length);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r15
movq %rsp, %r12
movq %rbx, %rdi
movl $0x3, %esi
movq %r12, %rdx
callq 0x11450
movq 0x22e6a(%rip), %r8      # 0x56cb0
movl (%r12), %ecx
movl %r14d, %edi
movl %r15d, %esi
movq %rax, %rdx
callq *(%r8)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/program.c
// Function: GetBoolean
static int GetBoolean(lua_State *L, GLuint program, GLenum pname)
    {
    GLint params; 
    glGetProgramiv(program, pname, &params);
    CheckError(L);
    lua_pushboolean(L, params == GL_TRUE); 
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x22ed6(%rip), %rax     # 0x56d50
leaq 0x4(%rsp), %r14
movl %esi, %edi
movl %edx, %esi
movq %r14, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %esi, %esi
cmpl $0x1, (%r14)
sete %sil
movq %rbx, %rdi
callq 0x117f0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/query.c
// Function: CreateQueries
IS_FUNC(Query)

static int CreateQueries(lua_State *L)
    {
    GLsizei i;
    GLuint* names;
    GLenum target = checkquerytarget(L, 1);
    GLsizei n = luaL_optinteger(L, 2, 1);
    check_init_called(L);
    luaL_checkstack(L, n, NULL);
    names = (GLuint*)Malloc(L, n*sizeof(GLuint));
    glCreateQueries(target, n, names);
    CheckErrorFree(L, names);
    for(i = 0; i < n; i++)
        {
        object_new(L, OTYPE_QUERY, names[i]);
        lua_pushinteger(L, names[i]);
        }
    Free(L, names);
    return n;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x48, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, %ebp
movl $0x1, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11b30
movq %rax, %r14
movq %rbx, %rdi
callq 0x115e0
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
callq 0x11260
movslq %r14d, %r12
leaq (,%r12,4), %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r15
movq 0x22418(%rip), %rax     # 0x56408
movl %ebp, %edi
movl %r12d, %esi
movq %r15, %rdx
callq *(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11550
testl %r12d, %r12d
jle 0x3403c
movl %r14d, %r12d
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %r13d, %r13d
movl (%r15,%r13,4), %edx
movq %rbx, %rdi
movl $0xb, %esi
callq 0x11a90
movl (%r15,%r13,4), %esi
movq %rbx, %rdi
callq 0x113c0
incq %r13
cmpq %r13, %r12
jne 0x34017
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11370
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/query.c
// Function: BeginQuery
static int BeginQuery(lua_State *L)
    {
    GLenum index;
    GLenum target = checkquerytarget(L, 1);
    GLuint name = luaL_checkinteger(L, 2);
    if(lua_isnoneornil(L, 3))
        glBeginQuery(target, name);
    else
        {
        index = luaL_checkinteger(L, 3);
        glBeginQueryIndexed(target, index, name);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x48, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11860
testl %eax, %eax
jle 0x34140
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq 0x22543(%rip), %rcx     # 0x56678
movl %ebp, %edi
movl %eax, %esi
movl %r14d, %edx
callq *(%rcx)
jmp 0x3414e
movq 0x22c31(%rip), %rax     # 0x56d78
movl %ebp, %edi
movl %r14d, %esi
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/query.c
// Function: EndQuery
static int EndQuery(lua_State *L)
    {
    GLenum index;
    GLenum target = checkquerytarget(L, 1);
    if(lua_isnoneornil(L, 2))
        glEndQuery(target);
    else
        {
        index = luaL_checkinteger(L, 2);
        glEndQueryIndexed(target, index);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x48, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11860
testl %eax, %eax
jle 0x341a1
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq 0x22daf(%rip), %rcx     # 0x56f48
movl %ebp, %edi
movl %eax, %esi
callq *(%rcx)
jmp 0x341ac
movq 0x22668(%rip), %rax     # 0x56810
movl %ebp, %edi
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq