	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_callback
_monitor_callback:                      ## @monitor_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GLFW_CONNECTED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_glfwGetVideoMode
	movq	%rax, %r14
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_glfwGetMonitorPos
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_glfwGetMonitorPhysicalSize
	movq	_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	1(%r15), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_glfwGetTime
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_glfwGetMonitorName
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	movl	-48(%rbp), %r9d
	movl	-44(%rbp), %r10d
	movl	-40(%rbp), %r11d
	movl	-36(%rbp), %ebx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	%rax, %rdx
	movb	$1, %al
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_printf
	addq	$32, %rsp
	jmp	LBB0_3
LBB0_2:
	movq	_GLFW_DISCONNECTED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_counter@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leal	1(%r14), %ecx
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_glfwGetTime
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_glfwGetMonitorName
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	%rax, %rdx
	movb	$1, %al
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_CONNECTED,4,2             ## @GLFW_CONNECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%08x at %0.3f: Monitor %s (%ix%i at %ix%i, %ix%i mm) was connected\n"

	.comm	_counter,4,2                    ## @counter
	.comm	_GLFW_DISCONNECTED,4,2          ## @GLFW_DISCONNECTED
L_.str.1:                               ## @.str.1
	.asciz	"%08x at %0.3f: Monitor %s was disconnected\n"

	.no_dead_strip	_monitor_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_callback
_monitor_callback:                      ; @monitor_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _GLFW_CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_glfwGetVideoMode
	mov	x20, x0
	sub	x1, x29, #52
	add	x2, sp, #56
	mov	x0, x19
	bl	_glfwGetMonitorPos
	add	x1, sp, #52
	add	x2, sp, #48
	mov	x0, x19
	bl	_glfwGetMonitorPhysicalSize
Lloh3:
	adrp	x8, _counter@GOTPAGE
Lloh4:
	ldr	x8, [x8, _counter@GOTPAGEOFF]
	ldr	w21, [x8]
	add	w9, w21, #1
	str	w9, [x8]
	bl	_glfwGetTime
	fmov	d8, d0
	mov	x0, x19
	bl	_glfwGetMonitorName
	mov	x2, x0
	ldp	w8, w9, [x20]
	ldur	w10, [x29, #-52]
	ldp	w12, w11, [sp, #52]
	ldr	w13, [sp, #48]
	stp	x12, x13, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	fmov	d0, d8
	bl	_printf
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x8, _GLFW_DISCONNECTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GLFW_DISCONNECTED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _counter@GOTPAGE
Lloh11:
	ldr	x8, [x8, _counter@GOTPAGEOFF]
	ldr	w20, [x8]
	add	w9, w20, #1
	str	w9, [x8]
	bl	_glfwGetTime
	fmov	d8, d0
	mov	x0, x19
	bl	_glfwGetMonitorName
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	fmov	d0, d8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_printf
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_CONNECTED,4,2             ; @GLFW_CONNECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%08x at %0.3f: Monitor %s (%ix%i at %ix%i, %ix%i mm) was connected\n"

	.comm	_counter,4,2                    ; @counter
	.comm	_GLFW_DISCONNECTED,4,2          ; @GLFW_DISCONNECTED
l_.str.1:                               ; @.str.1
	.asciz	"%08x at %0.3f: Monitor %s was disconnected\n"

	.no_dead_strip	_monitor_callback
.subsections_via_symbols
