// File: /workspace/github_c_makefile_star2_O1/stetre[P]moongl/src/pipeline.c
// Function: GetProgramPipeline
static int GetProgramPipeline(lua_State *L)
    {
#define INTEGER return GetInteger(L, pipeline, pname);
    GLuint pipeline = luaL_checkinteger(L, 1);
    GLenum pname = checkpipelinepname(L, 2);
    switch(pname)
        {
        case GL_ACTIVE_PROGRAM: INTEGER
        case GL_VALIDATE_STATUS: INTEGER
        case GL_VERTEX_SHADER: INTEGER
        case GL_GEOMETRY_SHADER: INTEGER
        case GL_FRAGMENT_SHADER: INTEGER
        case GL_COMPUTE_SHADER: INTEGER
        case GL_TESS_CONTROL_SHADER: INTEGER
        case GL_TESS_EVALUATION_SHADER: INTEGER
        case GL_INFO_LOG_LENGTH: INTEGER
        default: return luaL_error(L, UNEXPECTED_ERROR);
        }
    return 0;
#undef INTEGER
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0x11af0
movq %rax, %r14
movq %rbx, %rdi
movl $0x4, %esi
movl $0x2, %edx
callq 0x11160
cmpl $0x8b83, %eax           # imm = 0x8B83
jle 0x323a4
cmpl $0x8e86, %eax           # imm = 0x8E86
jle 0x32401
cmpl $0x8e87, %eax           # imm = 0x8E87
je 0x32455
cmpl $0x8e88, %eax           # imm = 0x8E88
je 0x32481
cmpl $0x91b9, %eax           # imm = 0x91B9
jne 0x324bc
movq 0x23ff6(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x91b9, %esi           # imm = 0x91B9
jmp 0x32495
cmpl $0x8b30, %eax           # imm = 0x8B30
jg 0x323d6
cmpl $0x8259, %eax           # imm = 0x8259
je 0x32429
cmpl $0x8b30, %eax           # imm = 0x8B30
jne 0x324bc
movq 0x23fc4(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8b30, %esi           # imm = 0x8B30
jmp 0x32495
cmpl $0x8b31, %eax           # imm = 0x8B31
je 0x3243f
cmpl $0x8b83, %eax           # imm = 0x8B83
jne 0x324bc
movq 0x23f99(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8b83, %esi           # imm = 0x8B83
jmp 0x32495
cmpl $0x8b84, %eax           # imm = 0x8B84
je 0x3246b
cmpl $0x8dd9, %eax           # imm = 0x8DD9
jne 0x324bc
movq 0x23f6e(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8dd9, %esi           # imm = 0x8DD9
jmp 0x32495
movq 0x23f58(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8259, %esi           # imm = 0x8259
jmp 0x32495
movq 0x23f42(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8b31, %esi           # imm = 0x8B31
jmp 0x32495
movq 0x23f2c(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8e87, %esi           # imm = 0x8E87
jmp 0x32495
movq 0x23f16(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8b84, %esi           # imm = 0x8B84
jmp 0x32495
movq 0x23f00(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8e88, %esi           # imm = 0x8E88
movq %r15, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x113c0
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0xcdc2(%rip), %rsi      # 0x3f285
leaq 0x1867d(%rip), %rdx     # 0x4ab47
movq %rbx, %rdi
movl $0x75, %ecx
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x11ae0