// File: /workspace/github_c_makefile_star2_O1/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 0x3717f
movq %rax, %r14
movq %rbx, %rdi
movl $0x3f, %esi
movl $0x2, %edx
callq 0x11160
addl $0xffff6eee, %eax       # imm = 0xFFFF6EEE
cmpl $0x3, %eax
ja 0x3709e
leaq 0x14550(%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 0x1f690(%rip), %rax     # 0x56630
leaq 0x8(%rsp), %r8
movl $0x9112, %esi           # imm = 0x9112
movl $0x1, %edx
movq %r14, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
cmpl $0x0, (%r14)
je 0x370db
cmpl $0x9116, 0x8(%rsp)      # imm = 0x9116
jne 0x3710b
leaq 0x1457b(%rip), %rsi     # 0x4b556
jmp 0x3712a
movq 0x28(%r14), %rdi
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
movq 0x1f639(%rip), %rax     # 0x56630
leaq 0x8(%rsp), %r8
movl $0x9114, %esi           # imm = 0x9114
movl $0x1, %edx
movq %r14, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11880
cmpl $0x0, (%r14)
je 0x370c3
movl 0x8(%rsp), %eax
cmpl $0x9118, %eax           # imm = 0x9118
je 0x37123
cmpl $0x9119, %eax           # imm = 0x9119
jne 0x37139
leaq 0xc0c0(%rip), %rsi      # 0x430fe
jmp 0x3712a
xorl %ebp, %ebp
jmp 0x37158
movq 0x28(%r14), %rdi
leaq 0xc(%rsp), %r14
movl $0x0, (%r14)
movq 0x1f5cf(%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 0x11880
cmpl $0x0, (%r14)
je 0x370f3
movl 0x8(%rsp), %edx
movq %rbx, %rdi
movl $0x3d, %esi
callq 0x11120
jmp 0x37158
leaq 0x81e0(%rip), %rsi      # 0x3f285
leaq 0x14494(%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 0x81bb(%rip), %rsi      # 0x3f285
leaq 0x1446f(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0xf3, %ecx
jmp 0x3714f
leaq 0x81a3(%rip), %rsi      # 0x3f285
leaq 0x14457(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0xe2, %ecx
jmp 0x3714f
leaq 0x818b(%rip), %rsi      # 0x3f285
leaq 0x1443f(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0x105, %ecx            # imm = 0x105
jmp 0x3714f
leaq 0x8173(%rip), %rsi      # 0x3f285
leaq 0x14427(%rip), %rdx     # 0x4b540
movq %rbx, %rdi
movl $0xe7, %ecx
jmp 0x3714f
leaq 0x14432(%rip), %rsi     # 0x4b55c
movq %rbx, %rdi
callq 0x110c0
movl $0x1, %ebp
jmp 0x37158
leaq 0x8145(%rip), %rsi      # 0x3f285
leaq 0x143f9(%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