	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glfwGetKey                     ## -- Begin function glfwGetKey
	.p2align	4, 0x90
_glfwGetKey:                            ## @glfwGetKey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	movq	_GLFW_RELEASE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	__GLFW_REQUIRE_INIT_OR_RETURN
	movq	_GLFW_KEY_SPACE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_GLFW_KEY_LAST@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_2
## %bb.3:
	movq	(%r14), %rcx
	movslq	%ebx, %rdx
	movq	(%rcx,%rdx,8), %rax
	movq	__GLFW_STICK@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_5
## %bb.4:
	movslq	(%r15), %rax
	movq	%rax, (%rcx,%rdx,8)
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_2:
	movq	_GLFW_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	__glfwInputError
	movl	(%r15), %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_RELEASE,4,2               ## @GLFW_RELEASE
	.comm	_GLFW_KEY_SPACE,4,2             ## @GLFW_KEY_SPACE
	.comm	_GLFW_KEY_LAST,4,2              ## @GLFW_KEY_LAST
	.comm	_GLFW_INVALID_ENUM,4,2          ## @GLFW_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid key %i"

	.comm	__GLFW_STICK,8,3                ## @_GLFW_STICK
	.comm	_GLFW_PRESS,4,2                 ## @GLFW_PRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glfwGetKey                     ; -- Begin function glfwGetKey
	.p2align	2
_glfwGetKey:                            ; @glfwGetKey
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x21, _GLFW_RELEASE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GLFW_RELEASE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	__GLFW_REQUIRE_INIT_OR_RETURN
Lloh2:
	adrp	x8, _GLFW_KEY_SPACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GLFW_KEY_SPACE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GLFW_KEY_LAST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GLFW_KEY_LAST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _GLFW_INVALID_ENUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_INVALID_ENUM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	__glfwInputError
	ldr	w0, [x21]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20]
	ldr	x0, [x8, w19, sxtw #3]
Lloh13:
	adrp	x9, __GLFW_STICK@GOTPAGE
Lloh14:
	ldr	x9, [x9, __GLFW_STICK@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_4
; %bb.3:
	sxtw	x9, w19
	ldrsw	x10, [x21]
	str	x10, [x8, x9, lsl #3]
Lloh16:
	adrp	x8, _GLFW_PRESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GLFW_PRESS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_RELEASE,4,2               ; @GLFW_RELEASE
	.comm	_GLFW_KEY_SPACE,4,2             ; @GLFW_KEY_SPACE
	.comm	_GLFW_KEY_LAST,4,2              ; @GLFW_KEY_LAST
	.comm	_GLFW_INVALID_ENUM,4,2          ; @GLFW_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid key %i"

	.comm	__GLFW_STICK,8,3                ; @_GLFW_STICK
	.comm	_GLFW_PRESS,4,2                 ; @GLFW_PRESS
.subsections_via_symbols
