// File: /workspace/github_c_makefile_star2_O2/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 0x343d2
movq %rax, %r14
pushq $0x3f
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x11150
addl $0xffff6eee, %eax       # imm = 0xFFFF6EEE
cmpl $0x3, %eax
ja 0x342db
leaq 0x1332b(%rip), %rcx     # 0x474f8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x28(%r14), %rdi
leaq 0xc(%rsp), %r14
andl $0x0, (%r14)
movq 0x21446(%rip), %rax     # 0x55630
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %r8
movl $0x9112, %esi           # imm = 0x9112
movl %ebp, %edx
movq %r14, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
cmpl $0x0, (%r14)
je 0x34318
cmpl $0x9116, 0x8(%rsp)      # imm = 0x9116
jne 0x34348
leaq 0x13359(%rip), %rsi     # 0x4757e
jmp 0x34367
movq 0x28(%r14), %rdi
leaq 0xc(%rsp), %r14
andl $0x0, (%r14)
movq 0x213f2(%rip), %rax     # 0x55630
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %r8
movl $0x9114, %esi           # imm = 0x9114
movl %ebp, %edx
movq %r14, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
cmpl $0x0, (%r14)
je 0x34300
movl 0x8(%rsp), %eax
cmpl $0x9118, %eax           # imm = 0x9118
je 0x34360
cmpl $0x9119, %eax           # imm = 0x9119
jne 0x34371
leaq 0xae79(%rip), %rsi      # 0x3f0fe
jmp 0x34367
xorl %ebp, %ebp
jmp 0x34390
movq 0x28(%r14), %rdi
leaq 0xc(%rsp), %r14
andl $0x0, (%r14)
movq 0x2138b(%rip), %rax     # 0x55630
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %r8
movl $0x9113, %esi           # imm = 0x9113
movl %ebp, %edx
movq %r14, %rcx
callq *(%rax)
movq %rbx, %rdi
callq 0x11870
cmpl $0x0, (%r14)
je 0x34330
movl 0x8(%rsp), %edx
pushq $0x3d
popq %rsi
movq %rbx, %rdi
callq 0x11110
jmp 0x34390
leaq 0x6fa3(%rip), %rsi      # 0x3b285
leaq 0x1327f(%rip), %rdx     # 0x47568
movq %rbx, %rdi
movl $0x131, %ecx            # imm = 0x131
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x11ae0
leaq 0x6f7e(%rip), %rsi      # 0x3b285
leaq 0x1325a(%rip), %rdx     # 0x47568
movq %rbx, %rdi
movl $0xf3, %ecx
jmp 0x34387
leaq 0x6f66(%rip), %rsi      # 0x3b285
leaq 0x13242(%rip), %rdx     # 0x47568
movq %rbx, %rdi
movl $0xe2, %ecx
jmp 0x34387
leaq 0x6f4e(%rip), %rsi      # 0x3b285
leaq 0x1322a(%rip), %rdx     # 0x47568
movq %rbx, %rdi
movl $0x105, %ecx            # imm = 0x105
jmp 0x34387
leaq 0x6f36(%rip), %rsi      # 0x3b285
leaq 0x13212(%rip), %rdx     # 0x47568
movq %rbx, %rdi
movl $0xe7, %ecx
jmp 0x34387
leaq 0x1321d(%rip), %rsi     # 0x47584
movq %rbx, %rdi
callq 0x110c0
jmp 0x34390
leaq 0x6f0d(%rip), %rsi      # 0x3b285
leaq 0x131e9(%rip), %rdx     # 0x47568
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