	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handleKeyEvent
_handleKeyEvent:                        ## @handleKeyEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_BTN_MISC@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%esi, %rsi
	subq	%rcx, %rsi
	movl	(%rax,%rsi,4), %esi
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_GLFW_RELEASE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	popq	%rbp
	jmp	__glfwInputJoystickButton       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_MISC,4,2                   ## @BTN_MISC
	.comm	_GLFW_PRESS,4,2                 ## @GLFW_PRESS
	.comm	_GLFW_RELEASE,4,2               ## @GLFW_RELEASE
	.no_dead_strip	_handleKeyEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handleKeyEvent
_handleKeyEvent:                        ; @handleKeyEvent
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BTN_MISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTN_MISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w1, w9
	ldr	w1, [x8, w9, sxtw #2]
Lloh3:
	adrp	x8, _GLFW_PRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_PRESS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _GLFW_RELEASE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GLFW_RELEASE@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	b	__glfwInputJoystickButton
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_MISC,4,2                   ; @BTN_MISC
	.comm	_GLFW_PRESS,4,2                 ; @GLFW_PRESS
	.comm	_GLFW_RELEASE,4,2               ; @GLFW_RELEASE
	.no_dead_strip	_handleKeyEvent
.subsections_via_symbols
