	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function window_close_callback
_window_close_callback:                 ## @window_close_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_glfwGetWindowUserPointer
	movq	%rax, %r15
	movq	_counter@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	leal	1(%rbx), %ecx
	movl	%ecx, (%rax)
	movl	(%r15), %r12d
	xorl	%eax, %eax
	callq	_glfwGetTime
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movb	$1, %al
	callq	_printf
	movl	4(%r15), %esi
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movq	_GLFW_KEY_C@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glfwGetKeyName
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	4(%r15), %esi
LBB0_2:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glfwSetWindowShouldClose       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%08x to %i at %0.3f: Window close\n"

	.comm	_counter,4,2                    ## @counter
L_.str.1:                               ## @.str.1
	.asciz	"(( closing is disabled, press %s to re-enable )\n"

	.comm	_GLFW_KEY_C,4,2                 ## @GLFW_KEY_C
	.no_dead_strip	_window_close_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function window_close_callback
_window_close_callback:                 ; @window_close_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_glfwGetWindowUserPointer
	mov	x20, x0
Lloh0:
	adrp	x8, _counter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _counter@GOTPAGEOFF]
	ldrsw	x21, [x8]
	add	w9, w21, #1
	str	w9, [x8]
	ldr	w22, [x0]
	bl	_glfwGetTime
	str	d0, [sp, #8]
	str	x22, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_printf
	ldr	w1, [x20, #4]
	cbnz	w1, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _GLFW_KEY_C@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GLFW_KEY_C@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_glfwGetKeyName
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w1, [x20, #4]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_glfwSetWindowShouldClose
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%08x to %i at %0.3f: Window close\n"

	.comm	_counter,4,2                    ; @counter
l_.str.1:                               ; @.str.1
	.asciz	"(( closing is disabled, press %s to re-enable )\n"

	.comm	_GLFW_KEY_C,4,2                 ; @GLFW_KEY_C
	.no_dead_strip	_window_close_callback
.subsections_via_symbols
