LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/teximage.c
// Function: TextureStorageMultisample
static int TextureStorageMultisample(lua_State *L)
/* texture_storage_multisample(target|texture, samples, intfmt, fslocs, width, height)
 * texture_storage_multisample(target|texture, samples, intfmt, fslocs, width, height, depth)
 */
    {
    GLsizei depth;
    int arg = 1;
    GLenum target;
    GLuint texture = checktargetorname(L, arg++, &target, DOMAIN_TEXTURE_TARGET);
    GLsizei samples = luaL_checkinteger(L, arg++);
    GLenum intfmt = checkinternalformat(L, arg++);
    GLboolean fslocs = checkboolean(L, arg++);
    GLsizei width = luaL_checkinteger(L, arg++);
    GLsizei height = luaL_checkinteger(L, arg++);
    if(lua_isnoneornil(L, arg))
        {
        if(texture==0)
            glTexStorage2DMultisample(target,samples,intfmt,width,height,fslocs);
        else
            glTextureStorage2DMultisample(texture,samples,intfmt,width,height,fslocs);
        CheckError(L);
        return 0;
        }
    depth = luaL_checkinteger(L, arg++);
    if(texture==0)
        glTexStorage3DMultisample(target,samples,intfmt,width,height,depth,fslocs);
    else
        glTextureStorage3DMultisample(texture,samples,intfmt,width,height,depth,fslocs);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rdx
movl $0x1, %esi
movl $0x13, %ecx
callq 0x11430
movl %eax, %r15d
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movl $0x11, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11510
movl %eax, %r14d
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x6, %esi
callq 0x11af0
movq %rax, %r13
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11860
testl %eax, %eax
jle 0x37d7d
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11af0
testl %r15d, %r15d
je 0x37d92
movq 0x1ec4f(%rip), %r10     # 0x569c0
movzbl %r14b, %ecx
movl %ecx, (%rsp)
movl %r15d, %edi
jmp 0x37da4
testl %r15d, %r15d
je 0x37db9
movq 0x1e627(%rip), %rax     # 0x563b0
movzbl %r14b, %r9d
movl %r15d, %edi
jmp 0x37dc8
movq 0x1ef4f(%rip), %r10     # 0x56ce8
movl 0xc(%rsp), %edi
movzbl %r14b, %ecx
movl %ecx, (%rsp)
movq 0x10(%rsp), %rsi
movl %ebp, %edx
movl %r12d, %ecx
movl %r13d, %r8d
movl %eax, %r9d
callq *(%r10)
jmp 0x37dd7
movq 0x1eca0(%rip), %rax     # 0x56a60
movl 0xc(%rsp), %edi
movzbl %r14b, %r9d
movq 0x10(%rsp), %rsi
movl %ebp, %edx
movl %r12d, %ecx
movl %r13d, %r8d
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %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/teximage.c
// Function: CopyTextureImage
static int CopyTextureImage(lua_State *L)
/* copy_texture_image(target, level, intfmt, x, y, width)
 * copy_texture_image(target, level, intfmt, x, y, width, height)
 */
    {
    GLsizei height;
    int arg = 1;
    GLenum target = checktexturetarget(L, arg++);
    GLint level = luaL_checkinteger(L, arg++);
    GLenum intfmt = checkinternalformat(L, arg++);
    GLint x = luaL_checkinteger(L, arg++);
    GLint y = luaL_checkinteger(L, arg++);
    GLsizei width = luaL_checkinteger(L, arg++);
    if(lua_isnoneornil(L, arg))
        {
        glCopyTexImage1D(target, level, intfmt, x, y, width, border);
        CheckError(L);
        return 0;
        }
    height = luaL_checkinteger(L, arg++);
    glCopyTexImage2D(target, level, intfmt, x, y, width, height, border);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x13, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x11, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, %r15d
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
movq %rax, %r13
movq %rbx, %rdi
movl $0x6, %esi
callq 0x11af0
movq %rax, %rbp
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11860
testl %eax, %eax
jle 0x37ea1
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11af0
movl 0x4(%rsp), %edi
movl %r14d, %esi
movl %r15d, %edx
movl %r12d, %ecx
movl %r13d, %r8d
movl %ebp, %r9d
pushq $0x0
pushq %rax
callq 0x110a0
jmp 0x37ebf
subq $0x8, %rsp
movl 0xc(%rsp), %edi
movl %r14d, %esi
movl %r15d, %edx
movl %r12d, %ecx
movl %r13d, %r8d
movl %ebp, %r9d
pushq $0x0
callq 0x11680
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/teximage.c
// Function: InvalidateTextureImage
static int InvalidateTextureImage(lua_State *L)
    {
    int arg = 1;
    GLuint texture = luaL_checkinteger(L, arg++);
    GLint level = luaL_checkinteger(L, arg++);
    glInvalidateTexImage(texture, level);
    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 0x1e2ae(%rip), %rcx     # 0x56378
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/teximage.c
// Function: InvalidateTextureSubImage
static int InvalidateTextureSubImage(lua_State *L)
    {
    int arg = 1;
    GLuint texture = luaL_checkinteger(L, arg++);
    GLint level = luaL_checkinteger(L, arg++);
    GLint xoffset = luaL_checkinteger(L, arg++);
    GLint yoffset = luaL_checkinteger(L, arg++);
    GLint zoffset = luaL_checkinteger(L, arg++);
    GLsizei width = luaL_checkinteger(L, arg++);
    GLsizei height = luaL_checkinteger(L, arg++);
    GLsizei depth = luaL_checkinteger(L, arg++);
    glInvalidateTexSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth);
    CheckError(L);
    return 0;
    }

// 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, 0x10(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, 0x8(%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 $0x5, %esi
callq 0x11af0
movq %rax, %rbp
movq %rbx, %rdi
movl $0x6, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x8, %esi
callq 0x11af0
movq 0x1e627(%rip), %r10     # 0x567a0
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movl %r12d, %edx
movl %r13d, %ecx
movl %ebp, %r8d
movl %r14d, %r9d
pushq %rax
pushq %r15
callq *(%r10)
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x11880
xorl %eax, %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/teximage.c
// Function: ClearTextureImage
static int ClearTextureImage(lua_State *L)
    {
    int arg = 1;
    const void* data;
    size_t len;
    GLuint texture = luaL_checkinteger(L, arg++);
    GLint level = luaL_checkinteger(L, arg++);
    GLenum format = checkformat(L, arg++);
    GLenum type = checktype(L, arg++);
    if(lua_isnoneornil(L, arg))
        { data = 0; arg++; }
    else if(lua_isstring(L, arg))
        data = (void*)luaL_checkstring(L, arg++);
    else if(lua_istable(L, arg))
        data = (void*)checkdataptr(L, arg++, &len);
    else
        return luaL_argerror(L, arg, "invalid type");
    glClearTexImage(texture, level, format, type, data);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x12, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x7, %esi
movl $0x4, %edx
callq 0x11160
movl %eax, %r12d
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11860
testl %eax, %eax
jle 0x3823a
movq %rbx, %rdi
movl $0x5, %esi
callq 0x110b0
movq %rbx, %rdi
movl $0x5, %esi
testl %eax, %eax
je 0x3823f
xorl %edx, %edx
callq 0x11450
jmp 0x3825b
xorl %r8d, %r8d
jmp 0x3825e
callq 0x11860
cmpl $0x5, %eax
jne 0x38289
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11b20
movq %rax, %r8
movq 0x1e2d3(%rip), %rax     # 0x56538
movl %r14d, %edi
movl %r15d, %esi
movl %ebp, %edx
movl %r12d, %ecx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6f68(%rip), %rdx      # 0x3f1f8
movq %rbx, %rdi
movl $0x5, %esi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x11940
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/teximage.c
// Function: ClearTextureSubImage
static int ClearTextureSubImage(lua_State *L)
    {
    int arg = 1;
    const void* data;
    size_t len;
    GLuint texture = luaL_checkinteger(L, arg++);
    GLint level = luaL_checkinteger(L, arg++);
    GLenum format = checkformat(L, arg++);
    GLenum type = checktype(L, arg++);
    if(lua_isnoneornil(L, arg))
        { data = 0; arg++; }
    else if(lua_isstring(L, arg))
        data = (void*)luaL_checkstring(L, arg++);
    else if(lua_istable(L, arg))
        data = (void*)checkdataptr(L, arg++, &len);
    else
        return luaL_argerror(L, arg, "invalid type");
    GLint xoffset = luaL_checkinteger(L, arg++);
    GLint yoffset = luaL_checkinteger(L, arg++);
    GLint zoffset = luaL_checkinteger(L, arg++);
    GLsizei width = luaL_checkinteger(L, arg++);
    GLsizei height = luaL_checkinteger(L, arg++);
    GLsizei depth = luaL_checkinteger(L, arg++);
    glClearTexSubImage(texture, level,xoffset,yoffset,zoffset,width,height,depth,format,type,data);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x12, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, %r15d
movq %rbx, %rdi
movl $0x7, %esi
movl $0x4, %edx
callq 0x11160
movl %eax, %r13d
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11860
testl %eax, %eax
jle 0x38348
movq %rbx, %rdi
movl $0x5, %esi
callq 0x110b0
testl %eax, %eax
je 0x38367
movq %r13, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movq %rbx, %rdi
movl $0x5, %esi
xorl %edx, %edx
callq 0x11450
jmp 0x383a3
movq %r13, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movq $0x0, 0x8(%rsp)
jmp 0x383a8
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11860
cmpl $0x5, %eax
jne 0x38454
movq %r13, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movq %r14, 0x28(%rsp)
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11b20
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movl $0x6, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x8, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x9, %esi
callq 0x11af0
movq %rax, %r13
movq %rbx, %rdi
movl $0xa, %esi
callq 0x11af0
movq %rax, %rbp
movq %rbx, %rdi
movl $0xb, %esi
callq 0x11af0
movq 0x1e31c(%rip), %r10     # 0x56728
subq $0x8, %rsp
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movl %r14d, %edx
movl %r15d, %ecx
movl %r12d, %r8d
movl %r13d, %r9d
pushq 0x10(%rsp)
pushq 0x20(%rsp)
pushq 0x38(%rsp)
pushq %rax
pushq %rbp
callq *(%r10)
addq $0x30, %rsp
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6d9d(%rip), %rdx      # 0x3f1f8
movq %rbx, %rdi
movl $0x5, %esi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x11940
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/teximage.c
// Function: TexBuffer
static int TexBuffer(lua_State *L)
    {
    int arg = 1;
    GLenum target;
    GLuint texture = checktargetorname(L, arg++, &target, DOMAIN_TEXTURE_TARGET);
    GLenum intfmt = checkinternalformat(L, arg++);
    GLuint buffer = luaL_checkinteger(L, arg++);
    if(texture==0)
        glTexBuffer(target, intfmt, buffer);
    else
        glTextureBuffer(texture, intfmt, buffer);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rdx
movl $0x1, %esi
movl $0x13, %ecx
callq 0x11430
movl %eax, %ebp
movq %rbx, %rdi
movl $0x11, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %r14d
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
testl %ebp, %ebp
je 0x384c8
movq 0x1e254(%rip), %rcx     # 0x56718
movl %ebp, %edi
jmp 0x384d3
movq 0x1e389(%rip), %rcx     # 0x56858
movl 0xc(%rsp), %edi
movl %r14d, %esi
movl %eax, %edx
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/teximage.c
// Function: TexBufferRange
static int TexBufferRange(lua_State *L)
    {
    int arg = 1;
    GLenum target;
    GLuint texture = checktargetorname(L, arg++, &target, DOMAIN_TEXTURE_TARGET);
    GLenum intfmt = checkinternalformat(L, arg++);
    GLuint buffer = luaL_checkinteger(L, arg++);
    GLintptr offset = luaL_checkinteger(L, arg++);
    GLsizei size = luaL_checkinteger(L, arg++);
    if(texture==0)
        glTexBufferRange(target, intfmt, buffer, offset, size);
    else
        glTextureBufferRange(texture, intfmt, buffer, offset, size);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rdx
movl $0x1, %esi
movl $0x13, %ecx
callq 0x11430
movl %eax, %r14d
movq %rbx, %rdi
movl $0x11, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
testl %r14d, %r14d
je 0x38568
movq 0x1e9a0(%rip), %r9      # 0x56f00
movslq %eax, %r8
movl %r14d, %edi
jmp 0x38576
movq 0x1e129(%rip), %r9      # 0x56698
movl 0xc(%rsp), %edi
movslq %eax, %r8
movl %ebp, %esi
movl %r15d, %edx
movq %r12, %rcx
callq *(%r9)
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/teximage.c
// Function: GetTextureImage
static int GetTextureImage(lua_State *L)
/* get_texture_image(target|texture, lod, format, type, n)
 * -> bstring or nil
 */
    {
    intptr_t data = 0;
    GLsizei bufsz = 0;
    int arg = 1;
    GLenum target;
    GLuint texture = checktargetorname(L, arg++, &target, DOMAIN_TEXTURE_TARGET);
    GLint level = luaL_checkinteger(L, arg++);
    GLenum format = checkformat(L, arg++);
    GLenum type = checktype(L, arg++);
    intptr_t n = luaL_checkinteger(L, arg++);
    GLint64 bound_buffer = getUint(L, GL_PIXEL_PACK_BUFFER_BINDING);
    if(bound_buffer == 0)
        {
        /* no buffer is bound to GL_PIXEL_PACK_BUFFER, so treat n as the data size */
        bufsz = (GLsizei)n;
        data = (intptr_t)Malloc(L, bufsz *sizeof(char));
        if(texture==0)
            glGetTexImage(target, level, format, type, (void*)data);
        else
            glGetTextureImage(texture, level, format, type, bufsz, (void*)data);
        CheckErrorFree(L, (void*)data);
        lua_pushlstring(L, (char*)data, bufsz);
        Free(L, (void*)data);
        return 1;
        }
    else /* a buffer is bound to GL_PIXEL_PACK_BUFFER, so treat n as an offset */
        {
        if(texture==0)
            glGetTexImage(target, level, format, type, (void*)n);
        else
            glGetTextureImage(texture, level, format, type, 0, (void*)n);
        CheckError(L);
        }
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x4(%rsp), %rdx
movl $0x1, %esi
movl $0x13, %ecx
callq 0x11430
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x12, %esi
movl $0x3, %edx
callq 0x11160
movl %eax, %r15d
movq %rbx, %rdi
movl $0x7, %esi
movl $0x4, %edx
callq 0x11160
movl %eax, %r12d
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
movq %rax, %r13
movq %rbx, %rdi
movl $0x88ed, %esi           # imm = 0x88ED
callq 0x11a70
testl %eax, %eax
je 0x3863a
testl %ebp, %ebp
je 0x38674
movq 0x1de53(%rip), %rax     # 0x56478
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
movl %r12d, %ecx
xorl %r8d, %r8d
movq %r13, %r9
callq *(%rax)
jmp 0x38689
movq %r14, 0x8(%rsp)
movslq %r13d, %rsi
movq %rbx, %rdi
movq %rsi, 0x10(%rsp)
callq 0x11200
movq %rax, %r14
testl %ebp, %ebp
je 0x38695
movq 0x1de1b(%rip), %rax     # 0x56478
movl %ebp, %edi
movq 0x8(%rsp), %rsi
movl %r15d, %edx
movl %r12d, %ecx
movl %r13d, %r8d
movq %r14, %r9
callq *(%rax)
jmp 0x386ac
movl 0x4(%rsp), %edi
movl %r14d, %esi
movl %r15d, %edx
movl %r12d, %ecx
movq %r13, %r8
callq 0x11500
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
jmp 0x386d7
movl 0x4(%rsp), %edi
movq 0x8(%rsp), %rsi
movl %r15d, %edx
movl %r12d, %ecx
movq %r14, %r8
callq 0x11500
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11550
movq %rbx, %rdi
movq %r14, %rsi
movq 0x10(%rsp), %rdx
callq 0x11ab0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11370
movl $0x1, %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/teximage.c
// Function: GetCompressedTextureImage
static int GetCompressedTextureImage(lua_State *L)
    {
    int arg = 1;
    GLenum target;
    GLuint texture = checktargetorname(L, arg++, &target, DOMAIN_TEXTURE_TARGET);
    GLint level = luaL_checkinteger(L, arg++);
    GLsizei bufsz = luaL_checkinteger(L, arg++);
    char* data = (char*)Malloc(L, bufsz *sizeof(char));
    if(texture==0)
        glGetCompressedTexImage(target, level, (void*)data);
    else
        glGetCompressedTextureImage(texture, level, bufsz, (void*)data);
    CheckErrorFree(L, data);
    lua_pushlstring(L, data, bufsz);
    Free(L, data);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x4(%rsp), %rdx
movl $0x1, %esi
movl $0x13, %ecx
callq 0x11430
movl %eax, %ebp
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq %rax, %r13
movslq %r13d, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11200
movq %rax, %r15
testl %ebp, %ebp
je 0x38755
movq 0x1e6ca(%rip), %rax     # 0x56e10
movl %ebp, %edi
movl %r12d, %esi
movl %r13d, %edx
movq %r15, %rcx
callq *(%rax)
jmp 0x38768
movq 0x1e824(%rip), %rax     # 0x56f80
movl 0x4(%rsp), %edi
movl %r12d, %esi
movq %r15, %rdx
callq *(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x11550
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x11ab0
movq %rbx, %rdi
movq %r15, %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/teximage.c
// Function: GetTextureSubImage
static int GetTextureSubImage(lua_State *L)
    {
    int arg = 1;
    GLuint texture = luaL_checkinteger(L, arg++);
    GLint level = luaL_checkinteger(L, arg++);
    GLenum format = checkformat(L, arg++);
    GLenum type = checktype(L, arg++);
    GLint xoffset = luaL_checkinteger(L, arg++);
    GLint yoffset = luaL_checkinteger(L, arg++);
    GLint zoffset = luaL_checkinteger(L, arg++);
    GLsizei width = luaL_checkinteger(L, arg++);
    GLsizei height = luaL_checkinteger(L, arg++);
    GLsizei depth = luaL_checkinteger(L, arg++);
    GLsizei bufsz = luaL_checkinteger(L, arg++);
    char* data = (char*)Malloc(L, bufsz *sizeof(char));
    glGetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, bufsz, (void*)data);
    CheckErrorFree(L, data);
    lua_pushlstring(L, data, bufsz);
    Free(L, data);
    return 1;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, 0x30(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
movl $0x12, %esi
movl $0x3, %edx
callq 0x11160
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
movl $0x7, %esi
movl $0x4, %edx
callq 0x11160
movq %rax, 0x18(%rsp)
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movl $0x6, %esi
callq 0x11af0
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x8, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x9, %esi
callq 0x11af0
movq %rax, (%rsp)
movq %rbx, %rdi
movl $0xa, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0xb, %esi
callq 0x11af0
movslq %eax, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11200
movq %rax, %rbp
movq 0x1dcd6(%rip), %rax     # 0x56560
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movl %r12d, %r8d
movl %r14d, %r9d
pushq %rbp
pushq %r13
pushq 0x28(%rsp)
pushq 0x40(%rsp)
pushq %r15
pushq 0x28(%rsp)
callq *(%rax)
addq $0x30, %rsp
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x11550
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x11ab0
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x11370
movl $0x1, %eax
addq $0x38, %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/teximage.c
// Function: GetCompressedTextureSubImage
static int GetCompressedTextureSubImage(lua_State *L)
    {
    int arg = 1;
    GLuint texture = luaL_checkinteger(L, arg++);
    GLint level = luaL_checkinteger(L, arg++);
    GLint xoffset = luaL_checkinteger(L, arg++);
    GLint yoffset = luaL_checkinteger(L, arg++);
    GLint zoffset = luaL_checkinteger(L, arg++);
    GLsizei width = luaL_checkinteger(L, arg++);
    GLsizei height = luaL_checkinteger(L, arg++);
    GLsizei depth = luaL_checkinteger(L, arg++);
    GLsizei bufsz = luaL_checkinteger(L, arg++);
    char* data = (char*)Malloc(L, bufsz *sizeof(char));
    glGetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, bufsz, (void*)data);
    CheckErrorFree(L, data);
    lua_pushlstring(L, 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, 0x10(%rsp)
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11af0
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
movq %rax, (%rsp)
movq %rbx, %rdi
movl $0x6, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x8, %esi
callq 0x11af0
movq %rax, %rbp
movq %rbx, %rdi
movl $0x9, %esi
callq 0x11af0
movslq %eax, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x11200
movq %rax, %r13
movq 0x1e281(%rip), %rax     # 0x56c30
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq (%rsp), %r8
movl %r15d, %r9d
pushq %r13
pushq %r12
pushq %rbp
pushq %r14
callq *(%rax)
addq $0x20, %rsp
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11550
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x11ab0
movq %rbx, %rdi
movq %r13, %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/teximage.c
// Function: GenerateMipmap
static int GenerateMipmap(lua_State *L)
    {
    int arg = 1;
    GLenum target;
    GLuint texture = checktargetorname(L, arg++, &target, DOMAIN_TEXTURE_TARGET);
    if(texture==0)
        glGenerateMipmap(target);
    else
        glGenerateTextureMipmap(texture);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rdx
movl $0x1, %esi
movl $0x13, %ecx
callq 0x11430
testl %eax, %eax
je 0x38a3c
movq 0x1e582(%rip), %rcx     # 0x56fb8
movl %eax, %edi
callq *(%rcx)
jmp 0x38a49
movq 0x1d925(%rip), %rax     # 0x56368
movl 0xc(%rsp), %edi
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/teximage.c
// Function: TextureView
static int TextureView(lua_State *L)
    {
    int arg = 1;
    GLuint texture = luaL_checkinteger(L, arg++);
    GLenum target = checktexturetarget(L, arg++);
    GLuint origtexture = luaL_checkinteger(L, arg++);
    GLenum intfmt = checkinternalformat(L, arg++);
    GLuint minlevel = luaL_checkinteger(L, arg++);
    GLuint numlevels = luaL_checkinteger(L, arg++);
    GLuint minlayer = luaL_checkinteger(L, arg++);
    GLuint numlayers = luaL_checkinteger(L, arg++);
    glTextureView(texture, target, origtexture, intfmt, minlevel, numlevels, minlayer, numlayers);
    CheckError(L);
    return 0;
    }

// 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, 0x10(%rsp)
movq %rbx, %rdi
movl $0x13, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x11, %esi
movl $0x4, %edx
callq 0x11160
movl %eax, %r12d
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
movq %rax, %r13
movq %rbx, %rdi
movl $0x6, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x7, %esi
callq 0x11af0
movq %rax, %rbp
movq %rbx, %rdi
movl $0x8, %esi
callq 0x11af0
movq 0x1e0a0(%rip), %r10     # 0x56b98
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
movl %r15d, %edx
movl %r12d, %ecx
movl %r13d, %r8d
movl %r14d, %r9d
pushq %rax
pushq %rbp
callq *(%r10)
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x11880
xorl %eax, %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/teximage.c
// Function: BindImageTexture
static int BindImageTexture(lua_State *L)
    {
    int arg = 1;
    GLuint unit = luaL_checkinteger(L, arg++);
    GLuint texture = luaL_checkinteger(L, arg++);
    GLint level = luaL_checkinteger(L, arg++);
    GLboolean layered = checkboolean(L, arg++);
    GLint layer = luaL_checkinteger(L, arg++);
    GLenum access = checktextureaccess(L, arg++);
    GLenum format = checkinternalformat(L, arg++);
    glBindImageTexture(unit, texture, level, layered, layer, access, format);
    CheckError(L);
    return 0;
    }

// 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, 0x10(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11510
movl %eax, %ebp
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
movq %rax, %r13
movq %rbx, %rdi
movl $0x5c, %esi
movl $0x6, %edx
callq 0x11160
movl %eax, %r14d
movq %rbx, %rdi
movl $0x11, %esi
movl $0x7, %edx
callq 0x11160
movq 0x1e434(%rip), %r10     # 0x56ff0
movl %eax, (%rsp)
movzbl %bpl, %ecx
movq 0x10(%rsp), %rdi
movl %r15d, %esi
movl %r12d, %edx
movl %r13d, %r8d
movl %r14d, %r9d
callq *(%r10)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %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/teximage.c
// Function: BindImageTextures
static int BindImageTextures(lua_State *L)
    {
    GLsizei count, i, arg;
    GLuint *textures;
    GLuint first = luaL_checkinteger(L, 1);
    arg = 2;
    while(!lua_isnoneornil(L, arg))
        luaL_checkinteger(L, arg++);
    if(arg==2)
        luaL_checkinteger(L, arg); /* raise an error */
    count = arg - 2;
    textures = (GLuint*)Malloc(L, count*sizeof(GLuint));
    arg = 2;
    for(i=0; i < count; i++)
        textures[i]=lua_tointeger(L, arg++);
    glBindImageTextures(first, count, textures);
    Free(L, textures);  
    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 0x38c45
movl $0x2, %esi
leal 0x1(%rsi), %r15d
movq %rbx, %rdi
callq 0x11af0
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11860
movl %r15d, %esi
testl %eax, %eax
jg 0x38c27
cmpl $0x2, %r15d
jne 0x38c58
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
leal -0x2(%r15), %ebp
movslq %r15d, %rax
leaq -0x8(,%rax,4), %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r12
cmpl $0x3, %r15d
jl 0x38c98
movl %ebp, %r15d
xorl %r13d, %r13d
leal 0x2(%r13), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11040
movl %eax, (%r12,%r13,4)
incq %r13
cmpq %r13, %r15
jne 0x38c7e
movq 0x1e329(%rip), %rax     # 0x56fc8
movl %r14d, %edi
movl %ebp, %esi
movq %r12, %rdx
callq *(%rax)
movq %rbx, %rdi
movq %r12, %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
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/texture.c
// Function: ActiveTexture
static int ActiveTexture(lua_State *L)
    {
    GLuint n = luaL_checkinteger(L, 1);
    GLenum texture;
    switch(n)
        {
#define C(i) case i: texture = GL_TEXTURE##i; break
        C(0); C(1); C(2); C(3); C(4); C(5); C(6); C(7); C(8); C(9); 
        C(10); C(11); C(12); C(13); C(14); C(15); C(16); C(17); C(18); C(19); C(20); 
        C(21); C(22); C(23); C(24); C(25); C(26); C(27); C(28); C(29); C(30); C(31); 
#undef C
        default: return luaL_argerror(L, 1, "out of range");
        }
    glActiveTexture(texture);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
cmpl $0x20, %eax
jae 0x39101
orl $0x84c0, %eax           # imm = 0x84C0
movq 0x1d3cf(%rip), %rcx     # 0x564c0
movl %eax, %edi
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
popq %rbx
retq
leaq 0x112b6(%rip), %rdx     # 0x4a3be
movq %rbx, %rdi
movl $0x1, %esi
popq %rbx
jmp 0x11940
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/texture.c
// Function: SetEnum
static int SetEnum(lua_State *L, GLuint texture, GLenum target, GLenum pname, int arg, uint32_t domain) 
    {
    GLint param = enums_check(L, domain, arg);
    if(texture==0)
        glTexParameteri(target, pname, param);
    else 
        glTextureParameteri(texture, pname, param);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r15d
movl %esi, %r14d
movq %rdi, %rbx
movl %r8d, %esi
movl $0x3, %edx
callq 0x11160
testl %r14d, %r14d
je 0x399bc
movq 0x1c91f(%rip), %rcx     # 0x562d0
movl %r14d, %edi
movl %ebp, %esi
movl %eax, %edx
callq *(%rcx)
jmp 0x399c8
movl %r15d, %edi
movl %ebp, %esi
movl %eax, %edx
callq 0x11b00
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11880
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/texture.c
// Function: SetFloat
static int SetFloat(lua_State *L, GLuint texture, GLenum target, GLenum pname, int arg)
    {
    GLfloat param = luaL_checkinteger(L, arg);
    if(texture==0)
        glTexParameterf(target, pname, param);
    else 
        glTextureParameterf(texture, pname, param);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movl %edx, %r15d
movl %esi, %r14d
movq %rdi, %rbx
movl $0x3, %esi
callq 0x11af0
cvtsi2ss %rax, %xmm0
testl %r14d, %r14d
je 0x39a10
movq 0x1d319(%rip), %rax     # 0x56d20
movl %r14d, %edi
movl %ebp, %esi
callq *(%rax)
jmp 0x39a1a
movl %r15d, %edi
movl %ebp, %esi
callq 0x111d0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11880
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/texture.c
// Function: GetEnum
static int GetEnum(lua_State *L, GLuint texture, GLenum target, GLenum pname, uint32_t domain)
    {
    GLint param;
    if(texture==0)
        glGetTexParameteriv(target, pname, &param);
    else
        glGetTextureParameteriv(texture, pname, &param);
    CheckError(L);
    enums_push(L, domain, param);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %r8d, %ebx
movq %rdi, %r14
testl %esi, %esi
je 0x39a4e
movq 0x1caff(%rip), %rax     # 0x56540
leaq 0x4(%rsp), %rdx
movl %esi, %edi
movl %ecx, %esi
callq *(%rax)
jmp 0x39a5f
leaq 0x4(%rsp), %rax
movl %edx, %edi
movl %ecx, %esi
movq %rax, %rdx
callq 0x119a0
movq %r14, %rdi
callq 0x11880
movl 0x4(%rsp), %edx
movq %r14, %rdi
movl %ebx, %esi
callq 0x11120
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/texture.c
// Function: GetFloat
static int GetFloat(lua_State *L, GLuint texture, GLenum target, GLenum pname)
    {
    GLfloat param;
    if(texture==0)
        glGetTexParameterfv(target, pname, &param);
    else
        glGetTextureParameterfv(texture, pname, &param);
    CheckError(L);
    lua_pushnumber(L, param); 
    return 1;
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testl %esi, %esi
je 0x39af6
movq 0x1cba7(%rip), %rax     # 0x56690
leaq 0xc(%rsp), %rdx
movl %esi, %edi
movl %ecx, %esi
callq *(%rax)
jmp 0x39b07
leaq 0xc(%rsp), %rax
movl %edx, %edi
movl %ecx, %esi
movq %rax, %rdx
callq 0x11360
movq %rbx, %rdi
callq 0x11880
cvtss2sd 0xc(%rsp), %xmm0
movq %rbx, %rdi
callq 0x11380
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/texture.c
// Function: LGetEnum
static int LGetEnum(lua_State *L, GLuint texture, GLenum target, GLint level, GLenum pname, uint32_t domain)
    {
    GLint param;
    if(texture==0)
        glGetTexLevelParameteriv(target, level, pname, &param);
    else
        glGetTextureLevelParameteriv(texture, level, pname, &param);
    CheckError(L);
    enums_push(L, domain, param);
    return 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %r9d, %ebx
movq %rdi, %r14
testl %esi, %esi
je 0x39baf
movq 0x1d18d(%rip), %r9      # 0x56d28
leaq 0x4(%rsp), %rax
movl %esi, %edi
movl %ecx, %esi
movl %r8d, %edx
movq %rax, %rcx
callq *(%r9)
jmp 0x39bc3
leaq 0x4(%rsp), %rax
movl %edx, %edi
movl %ecx, %esi
movl %r8d, %edx
movq %rax, %rcx
callq 0x11a10
movq %r14, %rdi
callq 0x11880
movl 0x4(%rsp), %edx
movq %r14, %rdi
movl %ebx, %esi
callq 0x11120
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/transform.c
// Function: TransformFeedbackBufferRange
static int TransformFeedbackBufferRange(lua_State *L)
    {
    GLuint xfb = luaL_checkinteger(L, 1);
    GLuint index = luaL_checkinteger(L, 2);
    GLuint buffer = luaL_checkinteger(L, 3);
    GLintptr offset = luaL_checkinteger(L, 4);
    GLsizei size = luaL_checkinteger(L, 5);
    glTransformFeedbackBufferRange(xfb, index, buffer, offset, size);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11af0
movq %rax, %r13
movq %rbx, %rdi
movl $0x5, %esi
callq 0x11af0
movq 0x1c5a3(%rip), %r9      # 0x56590
movslq %eax, %r8
movl %r14d, %edi
movl %r15d, %esi
movl %r12d, %edx
movq %r13, %rcx
callq *(%r9)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/transform.c
// Function: DrawTransformFeedback
static int DrawTransformFeedback(lua_State *L)
    {
    GLsizei instancecount;
    GLenum mode = checkdrawmode(L, 1);
    GLuint id = luaL_checkinteger(L, 2);
    if(lua_isnoneornil(L, 3))
        glDrawTransformFeedback(mode, id);
    else
        {
        instancecount = luaL_checkinteger(L, 3);
        glDrawTransformFeedbackInstanced(mode, id, instancecount);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x2c, %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 0x3a06b
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq 0x1caf8(%rip), %rcx     # 0x56b58
movl %ebp, %edi
movl %r14d, %esi
movl %eax, %edx
callq *(%rcx)
jmp 0x3a079
movq 0x1c346(%rip), %rax     # 0x563b8
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/transform.c
// Function: DrawTransformFeedbackStream
static int DrawTransformFeedbackStream(lua_State *L)
    {
    GLsizei instancecount;
    GLenum mode = checkdrawmode(L, 1);
    GLuint id = luaL_checkinteger(L, 2);
    GLuint stream = luaL_checkinteger(L, 3);
    if(lua_isnoneornil(L, 4))
        glDrawTransformFeedbackStream(mode, id, stream);
    else
        {
        instancecount = luaL_checkinteger(L, 4);
        glDrawTransformFeedbackStreamInstanced(mode, id, stream, instancecount);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x2c, %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 0x11860
testl %eax, %eax
jle 0x3a0f7
movq %rbx, %rdi
movl $0x4, %esi
callq 0x11af0
movq 0x1c900(%rip), %r8      # 0x569e8
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
movl %eax, %ecx
callq *(%r8)
jmp 0x3a108
movq 0x1c802(%rip), %rax     # 0x56900
movl %ebp, %edi
movl %r14d, %esi
movl %r15d, %edx
callq *(%rax)
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/transform.c
// Function: TransformFeedbackVaryings
static int TransformFeedbackVaryings(lua_State *L)
/* transform_feedback_varyings(program, mode, varying1 [, varying2, ...])
 */
    {
    GLsizei count, arg, i;
    const GLchar **varyings;
    GLuint program = luaL_checkinteger(L, 1);
    GLenum mode = checkbuffermode(L, 2);
    arg = 3;
    while(!lua_isnoneornil(L, arg))
        luaL_checkstring(L, arg++);
    if(arg == 3)
        luaL_checkstring(L, arg); /* raise an error */
    count = arg - 3;
    varyings = (const GLchar**)Malloc(L, count*sizeof(GLchar*));
    arg = 3;
    for(i=0; i<count; i++)
        varyings[i] = lua_tostring(L, arg++);
    glTransformFeedbackVaryings(program, count, varyings, mode);
    Free(L, varyings);  
    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, (%rsp)
movq %rbx, %rdi
movl $0x57, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %ebp
movl $0x3, %r15d
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11860
testl %eax, %eax
jle 0x3a189
movl $0x3, %esi
leal 0x1(%rsi), %r15d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11450
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11860
movl %r15d, %esi
testl %eax, %eax
jg 0x3a169
cmpl $0x3, %r15d
jne 0x3a19e
movq %rbx, %rdi
movl $0x3, %esi
xorl %edx, %edx
callq 0x11450
leal -0x3(%r15), %r12d
movslq %r15d, %rax
leaq -0x18(,%rax,8), %rsi
movq %rbx, %rdi
callq 0x11200
movq %rax, %r13
cmpl $0x4, %r15d
jl 0x3a1df
movl %r12d, %r15d
xorl %r14d, %r14d
leal 0x3(%r14), %esi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x11950
movq %rax, (%r13,%r14,8)
incq %r14
cmpq %r14, %r15
jne 0x3a1c4
movq 0x1c8ca(%rip), %rax     # 0x56ab0
movq (%rsp), %rdi
movl %r12d, %esi
movq %r13, %rdx
movl %ebp, %ecx
callq *(%rax)
movq %rbx, %rdi
movq %r13, %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
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/transform.c
// Function: GetTransformFeedbackVarying
static int GetTransformFeedbackVarying(lua_State *L)
/* get_transform_feedback_varying(program, index)
 * -> name, type, size
 */
    {
    GLchar *name;
    GLenum type;
    GLsizei bufsz, length, size;
    GLuint program = luaL_checkinteger(L, 1);
    GLuint index = luaL_checkinteger(L, 2);
    bufsz = programGet(L, program, GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH);
    name = (GLchar*)Malloc(L, bufsz*sizeof(GLchar));
    glGetTransformFeedbackVarying(program, index, bufsz, &length, &size, &type, name);
    CheckErrorFree(L, name);
    if(length == 0)
        { Free(L, name); return 0; }
    lua_pushstring(L, name);
    pushglsltype(L, type);
    lua_pushinteger(L, size);
    Free(L, name);
    return 3;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r15
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, %r12
movq %rbx, %rdi
movl %r15d, %esi
movl $0x8c76, %edx           # imm = 0x8C76
callq 0x11850
movslq %eax, %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11200
movq %rax, %r14
movq 0x1c04a(%rip), %rax     # 0x562b8
movq %r14, (%rsp)
leaq 0x14(%rsp), %rbp
leaq 0xc(%rsp), %r8
leaq 0x10(%rsp), %r9
movl %r15d, %edi
movl %r12d, %esi
movl %r13d, %edx
movq %rbp, %rcx
callq *(%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11550
cmpl $0x0, (%rbp)
je 0x3a2d0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x110c0
movl 0x10(%rsp), %edx
movq %rbx, %rdi
movl $0xe, %esi
callq 0x11120
movslq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x113c0
movl $0x3, %ebp
jmp 0x3a2d2
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x11370
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/transform.c
// Function: GetTransformFeedback
static int GetTransformFeedback(lua_State *L)
    {
    GLuint index;
    GLint param;
    GLint64 param64;
    GLuint xfb = luaL_checkinteger(L, 1);
    GLenum pname = checktransformpname(L, 2);
    switch(pname)
        {
        case GL_TRANSFORM_FEEDBACK_PAUSED:
        case GL_TRANSFORM_FEEDBACK_ACTIVE:
                    glGetTransformFeedbackiv(xfb, pname, &param);
                    CheckError(L);
                    lua_pushboolean(L, param);
                    return 1;
        case GL_TRANSFORM_FEEDBACK_BUFFER_BINDING:
                    index = luaL_checkinteger(L, 3);
                    glGetTransformFeedbacki_v(xfb, pname, index, &param);
                    CheckError(L);
                    lua_pushinteger(L, param);
                    return 1;
        case GL_TRANSFORM_FEEDBACK_BUFFER_START:
        case GL_TRANSFORM_FEEDBACK_BUFFER_SIZE:
                    index = luaL_checkinteger(L, 3);
                    glGetTransformFeedbacki64_v(xfb, pname, index, &param64);
                    CheckError(L);
                    lua_pushinteger(L, param64);
                    return 1;
        default:
            return luaL_error(L, UNEXPECTED_ERROR);
        }
    return 0;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0xd, %esi
movl $0x2, %edx
callq 0x11160
movl %eax, %r15d
leal -0x8c84(%r15), %eax
cmpl $0x2, %eax
jb 0x3a363
leal -0x8e23(%r15), %eax
cmpl $0x2, %eax
jae 0x3a398
movq 0x1c44b(%rip), %rax     # 0x56788
leaq 0xc(%rsp), %r12
movl %r14d, %edi
movl %r15d, %esi
movq %r12, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movl (%r12), %esi
movq %rbx, %rdi
callq 0x117f0
jmp 0x3a3dd
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq 0x1c051(%rip), %r8      # 0x563c8
leaq 0x10(%rsp), %r12
movl %r14d, %edi
movl %r15d, %esi
movl %eax, %edx
movq %r12, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11880
movq (%r12), %rsi
jmp 0x3a3d5
cmpl $0x8c8f, %r15d          # imm = 0x8C8F
jne 0x3a3ee
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq 0x1c9ab(%rip), %r8      # 0x56d60
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8c8f, %esi           # imm = 0x8C8F
movl %eax, %edx
movq %r15, %rcx
callq *(%r8)
movq %rbx, %rdi
callq 0x11880
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x4e90(%rip), %rsi      # 0x3f285
leaq 0x11604(%rip), %rdx     # 0x4ba00
movq %rbx, %rdi
movl $0xb9, %ecx
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x11ae0
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/transform.c
// Function: ProvokingVertex
static int ProvokingVertex(lua_State *L)
    {
    GLenum mode = checkprovokemode(L, 1);
    glProvokingVertex(mode);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0xa, %esi
movl $0x1, %edx
callq 0x11160
movq 0x1c9a0(%rip), %rcx     # 0x56dd0
movl %eax, %edi
callq *(%rcx)
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/transform.c
// Function: ClipControl
static int ClipControl(lua_State *L)
    {
    GLenum origin = checkorigin(L, 1);
    GLenum depth = checkdepth(L, 2);
    glClipControl(origin, depth);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xb, %esi
movl $0x1, %edx
callq 0x11160
movl %eax, %ebp
movq %rbx, %rdi
movl $0xc, %esi
movl $0x2, %edx
callq 0x11160
movq 0x1c768(%rip), %rcx     # 0x56bd8
movl %ebp, %edi
movl %eax, %esi
callq *(%rcx)
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/transform.c
// Function: DepthRange
static int DepthRange(lua_State *L)
    {
    GLuint index;
    GLdouble near = luaL_checknumber(L, 1);
    GLdouble far = luaL_checknumber(L, 2);
    if(lua_isnoneornil(L, 3))
        glDepthRange(near, far);
    else
        {
        index = luaL_checkinteger(L, 3);
        glDepthRangeIndexed(index, near, far);
        }
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11a80
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11a80
movsd %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11860
testl %eax, %eax
jle 0x3a4e7
movq %rbx, %rdi
movl $0x3, %esi
callq 0x11af0
movq 0x1c90a(%rip), %rcx     # 0x56de0
movl %eax, %edi
movsd 0x8(%rsp), %xmm0
movsd (%rsp), %xmm1
callq *(%rcx)
jmp 0x3a4f7
movsd 0x8(%rsp), %xmm0
movsd (%rsp), %xmm1
callq 0x115f0
movq %rbx, %rdi
callq 0x11880
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq