// File: /workspace/github_c_makefile_star2_O3/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 0x11150
cmpl $0x8b83, %eax           # imm = 0x8B83
jle 0x3243c
cmpl $0x8e86, %eax           # imm = 0x8E86
jle 0x32499
cmpl $0x8e87, %eax           # imm = 0x8E87
je 0x324ed
cmpl $0x8e88, %eax           # imm = 0x8E88
je 0x32519
cmpl $0x91b9, %eax           # imm = 0x91B9
jne 0x32554
movq 0x23f5e(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x91b9, %esi           # imm = 0x91B9
jmp 0x3252d
cmpl $0x8b30, %eax           # imm = 0x8B30
jg 0x3246e
cmpl $0x8259, %eax           # imm = 0x8259
je 0x324c1
cmpl $0x8b30, %eax           # imm = 0x8B30
jne 0x32554
movq 0x23f2c(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8b30, %esi           # imm = 0x8B30
jmp 0x3252d
cmpl $0x8b31, %eax           # imm = 0x8B31
je 0x324d7
cmpl $0x8b83, %eax           # imm = 0x8B83
jne 0x32554
movq 0x23f01(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8b83, %esi           # imm = 0x8B83
jmp 0x3252d
cmpl $0x8b84, %eax           # imm = 0x8B84
je 0x32503
cmpl $0x8dd9, %eax           # imm = 0x8DD9
jne 0x32554
movq 0x23ed6(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8dd9, %esi           # imm = 0x8DD9
jmp 0x3252d
movq 0x23ec0(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8259, %esi           # imm = 0x8259
jmp 0x3252d
movq 0x23eaa(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8b31, %esi           # imm = 0x8B31
jmp 0x3252d
movq 0x23e94(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8e87, %esi           # imm = 0x8E87
jmp 0x3252d
movq 0x23e7e(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8b84, %esi           # imm = 0x8B84
jmp 0x3252d
movq 0x23e68(%rip), %rax     # 0x56388
leaq 0xc(%rsp), %r15
movl %r14d, %edi
movl $0x8e88, %esi           # imm = 0x8E88
movq %r15, %rdx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
movslq (%r15), %rsi
movq %rbx, %rdi
callq 0x113b0
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0xcd2a(%rip), %rsi      # 0x3f285
leaq 0x185e5(%rip), %rdx     # 0x4ab47
movq %rbx, %rdi
movl $0x75, %ecx
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x11ae0