// File: /workspace/github_c_makefile_star2_O3/stetre[P]moongl/src/sync.c
// Function: GetSync
static int GetSync(lua_State *L)
    {
    node_t *node = CheckSync(L, 1);
    GLenum pname = checksyncpname(L, 2);
    switch(pname)
        {
        case GL_OBJECT_TYPE: return GetObjectType(L, node->sync, pname);
        case GL_SYNC_STATUS: return GetSyncStatus(L, node->sync, pname);
        case GL_SYNC_CONDITION: return GetSyncCondition(L, node->sync, pname);
        case GL_SYNC_FLAGS: return GetSyncFlags(L, node->sync, pname);
        default:
            return luaL_error(L, UNEXPECTED_ERROR);
        }
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x37230
movq %rax, %r14
movq %rbx, %rdi
movl $0x3f, %esi
movl $0x2, %edx
callq 0x11150
addl $0xffff6eee, %eax       # imm = 0xFFFF6EEE
cmpl $0x3, %eax
ja 0x3714f
leaq 0x1449f(%rip), %rcx     # 0x4b4d0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x28(%r14), %rdi
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
movq 0x1f5df(%rip), %rax     # 0x56630
leaq 0x8(%rsp), %r8
movl $0x9112, %esi           # imm = 0x9112
movl $0x1, %edx
movq %r14, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
cmpl $0x0, (%r14)
je 0x3718c
cmpl $0x9116, 0x8(%rsp)      # imm = 0x9116
jne 0x371bc
leaq 0x144ca(%rip), %rsi     # 0x4b556
jmp 0x371db
movq 0x28(%r14), %rdi
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
movq 0x1f588(%rip), %rax     # 0x56630
leaq 0x8(%rsp), %r8
movl $0x9114, %esi           # imm = 0x9114
movl $0x1, %edx
movq %r14, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
cmpl $0x0, (%r14)
je 0x37174
movl 0x8(%rsp), %eax
cmpl $0x9118, %eax           # imm = 0x9118
je 0x371d4
cmpl $0x9119, %eax           # imm = 0x9119
jne 0x371ea
leaq 0xc00f(%rip), %rsi      # 0x430fe
jmp 0x371db
xorl %ebp, %ebp
jmp 0x37209
movq 0x28(%r14), %rdi
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
movq 0x1f51e(%rip), %rax     # 0x56630
movl $0x1, %ebp
leaq 0x8(%rsp), %r8
movl $0x9113, %esi           # imm = 0x9113
movl $0x1, %edx
movq %r14, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
cmpl $0x0, (%r14)
je 0x371a4
movl 0x8(%rsp), %edx
movq %rbx, %rdi
movl $0x3d, %esi
callq 0x11110
jmp 0x37209
leaq 0x812f(%rip), %rsi      # 0x3f285
leaq 0x143e3(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0x131, %ecx            # imm = 0x131
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x11ae0
leaq 0x810a(%rip), %rsi      # 0x3f285
leaq 0x143be(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0xf3, %ecx
jmp 0x37200
leaq 0x80f2(%rip), %rsi      # 0x3f285
leaq 0x143a6(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0xe2, %ecx
jmp 0x37200
leaq 0x80da(%rip), %rsi      # 0x3f285
leaq 0x1438e(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0x105, %ecx            # imm = 0x105
jmp 0x37200
leaq 0x80c2(%rip), %rsi      # 0x3f285
leaq 0x14376(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0xe7, %ecx
jmp 0x37200
leaq 0x14381(%rip), %rsi     # 0x4b55c
movq %rbx, %rdi
callq 0x110c0
movl $0x1, %ebp
jmp 0x37209
leaq 0x8094(%rip), %rsi      # 0x3f285
leaq 0x14348(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0xf9, %ecx
xorl %eax, %eax
callq 0x11ae0
movl %eax, %ebp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq