	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyboardHandleKey
_keyboardHandleKey:                     ## @keyboardHandleKey
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	40(%rax), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	testq	%r14, %r14
	je	LBB0_11
## %bb.1:
	movq	%r9, %r13
	movq	%r8, %r15
	movq	%rdx, %r12
	movq	%r8, %rdi
	callq	_toGLFWKeyCode
	movl	%eax, %edx
	movq	_WL_KEYBOARD_KEY_STATE_PRESSED@GOTPCREL(%rip), %rcx
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_GLFW_RELEASE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	%r12, 32(%rax)
	movq	%rax, %r12
	movl	24(%rax), %r8d
	movq	%r14, %rdi
	movl	%edx, %r13d
	movl	%edx, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	__glfwInputKey
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_inputChar
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.6:
	movl	%r13d, 4(%r12)
	movq	%r15, 16(%r12)
	cmpl	$2, %ecx
	jb	LBB0_8
## %bb.7:
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, -56(%rbp)
	jmp	LBB0_9
LBB0_8:
	movl	$1, -52(%rbp)
LBB0_9:
	movslq	8(%r12), %rax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, -64(%rbp)
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	subl	%ecx, %eax
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	movl	%eax, -60(%rbp)
LBB0_10:
	movl	12(%r12), %edi
	leaq	-64(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_timerfd_settime
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,48,3                     ## @_glfw
	.comm	_WL_KEYBOARD_KEY_STATE_PRESSED,8,3 ## @WL_KEYBOARD_KEY_STATE_PRESSED
	.comm	_GLFW_PRESS,4,2                 ## @GLFW_PRESS
	.comm	_GLFW_RELEASE,4,2               ## @GLFW_RELEASE
	.no_dead_strip	_keyboardHandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyboardHandleKey
_keyboardHandleKey:                     ; @keyboardHandleKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x24, __glfw@GOTPAGE
Lloh1:
	ldr	x24, [x24, __glfw@GOTPAGEOFF]
	ldr	x20, [x24, #40]
	stp	xzr, xzr, [sp]
	cbz	x20, LBB0_8
; %bb.1:
	mov	x23, x5
	mov	x19, x4
	mov	x22, x2
	mov	x0, x4
	bl	_toGLFWKeyCode
	mov	x21, x0
Lloh2:
	adrp	x8, _WL_KEYBOARD_KEY_STATE_PRESSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WL_KEYBOARD_KEY_STATE_PRESSED@GOTPAGEOFF]
Lloh4:
	adrp	x25, _GLFW_PRESS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _GLFW_PRESS@GOTPAGEOFF]
Lloh6:
	adrp	x9, _GLFW_RELEASE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GLFW_RELEASE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x23
	csel	x8, x25, x9, eq
	ldr	w23, [x8]
	str	x22, [x24, #32]
	ldr	w4, [x24, #24]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	bl	__glfwInputKey
	ldr	w8, [x25]
	cmp	w23, w8
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_inputChar
	ldr	w8, [x24]
	cmp	x0, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_7
; %bb.3:
	str	w21, [x24, #4]
	str	x19, [x24, #16]
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.4:
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	udiv	w8, w9, w8
	str	w8, [sp, #8]
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [sp, #12]
LBB0_6:
	ldr	w8, [x24, #8]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	mov	w10, #1000
	msub	w8, w9, w10, w8
	mov	w10, #16960
	movk	w10, #15, lsl #16
	mul	w8, w8, w10
	stp	w9, w8, [sp]
LBB0_7:
	ldr	w0, [x24, #12]
	mov	x2, sp
	mov	w1, #0
	mov	x3, #0
	bl	_timerfd_settime
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,48,3                     ; @_glfw
	.comm	_WL_KEYBOARD_KEY_STATE_PRESSED,8,3 ; @WL_KEYBOARD_KEY_STATE_PRESSED
	.comm	_GLFW_PRESS,4,2                 ; @GLFW_PRESS
	.comm	_GLFW_RELEASE,4,2               ; @GLFW_RELEASE
	.no_dead_strip	_keyboardHandleKey
.subsections_via_symbols
