	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	callq	_glfwGetWindowUserPointer
	movq	_counter@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %r13
	leal	1(%r13), %ecx
	movl	%ecx, (%rdx)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_glfwGetTime
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	callq	_get_key_name
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_get_mods_name
	movq	%rax, %r12
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_get_action_name
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movsd	-72(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%r14d, %ecx
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movq	%r15, %r9
	movb	$1, %al
	pushq	%rbx
	pushq	%r12
	callq	_printf
	addq	$16, %rsp
	cmpl	$128, %r14d
	jne	LBB0_2
## %bb.1:
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, 4(%rcx)
	sete	%al
	movl	%eax, 4(%rcx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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) (with%s) was %s\n"

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

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

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

	.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, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	bl	_glfwGetWindowUserPointer
	mov	x19, x0
Lloh0:
	adrp	x8, _counter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _counter@GOTPAGEOFF]
	ldrsw	x24, [x8]
	add	w9, w24, #1
	str	w9, [x8]
	ldr	w26, [x0]
	bl	_glfwGetTime
	fmov	d8, d0
	mov	x0, x23
	bl	_get_key_name
	mov	x25, x0
	mov	x0, x21
	bl	_get_mods_name
	mov	x21, x0
	mov	x0, x20
	bl	_get_action_name
	stp	x21, x0, [sp, #40]
	stp	x22, x25, [sp, #24]
	str	x23, [sp, #16]
	str	d8, [sp, #8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	str	x26, [sp]
	mov	x1, x24
	bl	_printf
	cmp	w23, #128
	b.ne	LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _GLFW_PRESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GLFW_PRESS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w8, eq
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh9:
	adrp	x10, l_.str.2@PAGE
Lloh10:
	add	x10, x10, l_.str.2@PAGEOFF
	str	w8, [x19, #4]
	csel	x1, x10, x9, eq
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_printf
LBB0_3:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.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) (with%s) was %s\n"

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

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

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

	.no_dead_strip	_key_callback
.subsections_via_symbols
