	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_callback
_key_callback:                          ## @key_callback
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_glfwGetWindowUserPointer
	movq	%rax, %r13
	movl	%r14d, %edi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_glfwGetKeyName
	movq	%rax, %rbx
	movq	_counter@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	leal	1(%r15), %ecx
	movl	%ecx, (%rax)
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r13d
	xorl	%eax, %eax
	callq	_glfwGetTime
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	callq	_get_key_name
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_get_mods_name
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_get_action_name
	movq	%rax, %r10
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movb	$1, %al
	pushq	%r10
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	callq	_printf
	addq	$32, %rsp
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movb	$1, %al
	pushq	%r10
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_printf
	addq	$16, %rsp
LBB0_3:
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_9
## %bb.4:
	cmpl	$128, %r14d
	je	LBB0_7
## %bb.5:
	cmpl	$129, %r14d
	jne	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	sete	%bl
	movl	%ebx, 4(%rax)
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GLFW_LOCK_KEY_MODS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_glfwGetInputMode
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_glfwSetInputMode
	leaq	L_.str.5(%rip), %rdi
LBB0_8:
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	testb	%bl, %bl
	cmovneq	%rax, %rsi
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%08x to %i at %0.3f: Key 0x%04x Scancode 0x%04x (%s) (%s) (with%s) was %s\n"

	.comm	_counter,4,2                    ## @counter
L_.str.1:                               ## @.str.1
	.asciz	"%08x to %i at %0.3f: Key 0x%04x Scancode 0x%04x (%s) (with%s) was %s\n"

	.comm	_GLFW_PRESS,4,2                 ## @GLFW_PRESS
L_.str.2:                               ## @.str.2
	.asciz	"(( closing %s ))\n"

L_.str.3:                               ## @.str.3
	.asciz	"enabled"

L_.str.4:                               ## @.str.4
	.asciz	"disabled"

	.comm	_GLFW_LOCK_KEY_MODS,4,2         ## @GLFW_LOCK_KEY_MODS
L_.str.5:                               ## @.str.5
	.asciz	"(( lock key mods %s ))\n"

	.no_dead_strip	_key_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_callback
_key_callback:                          ; @key_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x27, x4
	mov	x22, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	bl	_glfwGetWindowUserPointer
	mov	x20, x0
	mov	x0, x21
	mov	x1, x24
	bl	_glfwGetKeyName
	mov	x25, x0
Lloh0:
	adrp	x8, _counter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _counter@GOTPAGEOFF]
	ldrsw	x23, [x8]
	add	w9, w23, #1
	str	w9, [x8]
	ldr	w28, [x20]
	bl	_glfwGetTime
	fmov	d8, d0
	mov	x0, x21
	bl	_get_key_name
	mov	x26, x0
	mov	x0, x27
	bl	_get_mods_name
	mov	x27, x0
	mov	x0, x22
	bl	_get_action_name
	cbz	x25, LBB0_2
; %bb.1:
	stp	x27, x0, [sp, #48]
	stp	x26, x25, [sp, #32]
	stp	x21, x24, [sp, #16]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	str	d8, [sp, #8]
	b	LBB0_3
LBB0_2:
	stp	x27, x0, [sp, #40]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	mov	x8, x21
	stp	x24, x26, [sp, #24]
	str	x8, [sp, #16]
	str	d8, [sp, #8]
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_3:
	str	x28, [sp]
	mov	x1, x23
	bl	_printf
Lloh6:
	adrp	x8, _GLFW_PRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GLFW_PRESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_7
; %bb.4:
	cmp	w21, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w21, #129
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w21, eq
	str	w21, [x20, #4]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_8:
Lloh11:
	adrp	x20, _GLFW_LOCK_KEY_MODS@GOTPAGE
Lloh12:
	ldr	x20, [x20, _GLFW_LOCK_KEY_MODS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_glfwGetInputMode
	ldr	w1, [x20]
	cmp	w0, #0
	cset	w21, eq
	mov	x0, x19
	mov	x2, x21
	bl	_glfwSetInputMode
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_9:
Lloh15:
	adrp	x8, l_.str.4@PAGE
Lloh16:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh17:
	adrp	x9, l_.str.3@PAGE
Lloh18:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w21, #0
	csel	x1, x9, x8, ne
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_printf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%08x to %i at %0.3f: Key 0x%04x Scancode 0x%04x (%s) (%s) (with%s) was %s\n"

	.comm	_counter,4,2                    ; @counter
l_.str.1:                               ; @.str.1
	.asciz	"%08x to %i at %0.3f: Key 0x%04x Scancode 0x%04x (%s) (with%s) was %s\n"

	.comm	_GLFW_PRESS,4,2                 ; @GLFW_PRESS
l_.str.2:                               ; @.str.2
	.asciz	"(( closing %s ))\n"

l_.str.3:                               ; @.str.3
	.asciz	"enabled"

l_.str.4:                               ; @.str.4
	.asciz	"disabled"

	.comm	_GLFW_LOCK_KEY_MODS,4,2         ; @GLFW_LOCK_KEY_MODS
l_.str.5:                               ; @.str.5
	.asciz	"(( lock key mods %s ))\n"

	.no_dead_strip	_key_callback
.subsections_via_symbols
