// File: /workspace/github_c_makefile_star2_O0/stetre[P]moonglfw/src/hint.c
// Function: GetWindowAttrib
static int GetWindowAttrib(lua_State *L)
    {
    win_t *win = checkwindow(L, 1);
    int attrib = checktarget(L, 2);
    
    switch(attrib)
        {
        case GLFW_FOCUSED:
        case GLFW_ICONIFIED:
        case GLFW_VISIBLE:
        case GLFW_RESIZABLE:
        case GLFW_DECORATED:
        case GLFW_FLOATING:
        case GLFW_MAXIMIZED:
        case GLFW_CENTER_CURSOR:
        case GLFW_TRANSPARENT_FRAMEBUFFER:
        case GLFW_HOVERED:
        case GLFW_FOCUS_ON_SHOW:
        case GLFW_SCALE_TO_MONITOR:
        case GLFW_MOUSE_PASSTHROUGH:
        case GLFW_SCALE_FRAMEBUFFER:
        case GLFW_WIN32_KEYBOARD_MENU:
        case GLFW_WIN32_SHOWDEFAULT:
        case GLFW_COCOA_GRAPHICS_SWITCHING:
            return GetBoolean(L, win->window, attrib);
        case GLFW_CLIENT_API: GET_ENUM(L, win->window, attrib, pushapi);
        case GLFW_CONTEXT_CREATION_API: GET_ENUM(L, win->window, attrib, pushcontextcreationapi);
        case GLFW_CONTEXT_VERSION_MAJOR:
        case GLFW_CONTEXT_VERSION_MINOR:
        case GLFW_CONTEXT_REVISION:
            return GetInteger(L, win->window, attrib);
        case GLFW_OPENGL_FORWARD_COMPAT:
        case GLFW_OPENGL_DEBUG_CONTEXT:
            return GetBoolean(L, win->window, attrib);
        case GLFW_OPENGL_PROFILE: GET_ENUM(L, win->window, attrib, pushprofile);
        case GLFW_CONTEXT_ROBUSTNESS: GET_ENUM(L, win->window, attrib, pushrobustness);
        case GLFW_CONTEXT_RELEASE_BEHAVIOR: GET_ENUM(L, win->window, attrib, pushreleasebehavior);
        default:
            return luaL_error(L, "invalid attribute '%s'", lua_tostring(L, 2));
        }
    return 0;
    }

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq 0x38(%rsp), %rdi
movl $0x1, %esi
callq 0x5550
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movl $0x3, %esi
movl $0x2, %edx
callq 0x5430
movl %eax, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
movl %eax, 0x14(%rsp)
addl $0xfffdffff, %eax       # imm = 0xFFFDFFFF
subl $0x5, %eax
jb 0x10c7f
jmp 0x10bbd
movl 0x14(%rsp), %eax
addl $0xfffdfff9, %eax       # imm = 0xFFFDFFF9
subl $0x7, %eax
jb 0x10c7f
jmp 0x10bd1
movl 0x14(%rsp), %eax
subl $0x22001, %eax          # imm = 0x22001
je 0x10ca4
jmp 0x10be2
movl 0x14(%rsp), %eax
addl $0xfffddffe, %eax       # imm = 0xFFFDDFFE
subl $0x3, %eax
jb 0x10d2a
jmp 0x10bf6
movl 0x14(%rsp), %eax
subl $0x22005, %eax          # imm = 0x22005
je 0x10db4
jmp 0x10c07
movl 0x14(%rsp), %eax
addl $0xfffddffa, %eax       # imm = 0xFFFDDFFA
subl $0x2, %eax
jb 0x10d4c
jmp 0x10c1b
movl 0x14(%rsp), %eax
subl $0x22008, %eax          # imm = 0x22008
je 0x10d71
jmp 0x10c2c
movl 0x14(%rsp), %eax
subl $0x22009, %eax          # imm = 0x22009
je 0x10df4
jmp 0x10c3d
movl 0x14(%rsp), %eax
subl $0x2200b, %eax          # imm = 0x2200B
je 0x10ce7
jmp 0x10c4e
movl 0x14(%rsp), %eax
addl $0xfffddff4, %eax       # imm = 0xFFFDDFF4
subl $0x2, %eax
jb 0x10c7f
jmp 0x10c5e
movl 0x14(%rsp), %eax
subl $0x23003, %eax          # imm = 0x23003
je 0x10c7f
jmp 0x10c6b
movl 0x14(%rsp), %eax
addl $0xfffdafff, %eax       # imm = 0xFFFDAFFF
subl $0x1, %eax
ja 0x10e34
jmp 0x10c7f
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rsi
movl 0x2c(%rsp), %edx
movl $0x1, %ecx
callq 0x11200
movl %eax, 0x44(%rsp)
jmp 0x10e6b
jmp 0x10ca6
movq 0x1333b(%rip), %rax     # 0x23fe8
movq 0x140(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x28(%rcx), %rdi
movl 0x2c(%rsp), %esi
callq *%rax
movl %eax, 0x28(%rsp)
movq 0x38(%rsp), %rdi
movl 0x28(%rsp), %edx
movl $0x4, %esi
callq 0x55c0
movl $0x1, 0x44(%rsp)
jmp 0x10e6b
jmp 0x10ce9
movq 0x132f8(%rip), %rax     # 0x23fe8
movq 0x140(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x28(%rcx), %rdi
movl 0x2c(%rsp), %esi
callq *%rax
movl %eax, 0x24(%rsp)
movq 0x38(%rsp), %rdi
movl 0x24(%rsp), %edx
movl $0xb, %esi
callq 0x55c0
movl $0x1, 0x44(%rsp)
jmp 0x10e6b
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rsi
movl 0x2c(%rsp), %edx
xorl %ecx, %ecx
callq 0x11200
movl %eax, 0x44(%rsp)
jmp 0x10e6b
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rsi
movl 0x2c(%rsp), %edx
movl $0x1, %ecx
callq 0x11200
movl %eax, 0x44(%rsp)
jmp 0x10e6b
jmp 0x10d73
movq 0x1326e(%rip), %rax     # 0x23fe8
movq 0x140(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x28(%rcx), %rdi
movl 0x2c(%rsp), %esi
callq *%rax
movl %eax, 0x20(%rsp)
movq 0x38(%rsp), %rdi
movl 0x20(%rsp), %edx
movl $0x7, %esi
callq 0x55c0
movl $0x1, 0x44(%rsp)
jmp 0x10e6b
jmp 0x10db6
movq 0x1322b(%rip), %rax     # 0x23fe8
movq 0x140(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x28(%rcx), %rdi
movl 0x2c(%rsp), %esi
callq *%rax
movl %eax, 0x1c(%rsp)
movq 0x38(%rsp), %rdi
movl 0x1c(%rsp), %edx
movl $0x5, %esi
callq 0x55c0
movl $0x1, 0x44(%rsp)
jmp 0x10e6b
jmp 0x10df6
movq 0x131eb(%rip), %rax     # 0x23fe8
movq 0x140(%rax), %rax
movq 0x30(%rsp), %rcx
movq 0x28(%rcx), %rdi
movl 0x2c(%rsp), %esi
callq *%rax
movl %eax, 0x18(%rsp)
movq 0x38(%rsp), %rdi
movl 0x18(%rsp), %edx
movl $0x6, %esi
callq 0x55c0
movl $0x1, 0x44(%rsp)
jmp 0x10e6b
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rdi
movl $0x2, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x51d0
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0xcd91(%rip), %rsi      # 0x1dbf1
movb $0x0, %al
callq 0x5590
movl %eax, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)