	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_window
_open_window:                           ## @open_window
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_glfwGetTime
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_glfwCreateWindow
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_glfwMakeContextCurrent
	movl	$1, %edi
	callq	_glfwSwapInterval
	movq	_framebuffer_size_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_glfwSetFramebufferSizeCallback
	movq	_window_close_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_glfwSetWindowCloseCallback
	movq	_key_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_glfwSetKeyCallback
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_glfwGetMonitorName
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_glfwGetTime
	subsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movb	$1, %al
	callq	_printf
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_glfwGetTime
	subsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	leaq	L_.str.2(%rip), %rdi
	movb	$1, %al
	callq	_printf
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Window Re-opener"

	.comm	_framebuffer_size_callback,4,2  ## @framebuffer_size_callback
	.comm	_window_close_callback,4,2      ## @window_close_callback
	.comm	_key_callback,4,2               ## @key_callback
L_.str.1:                               ## @.str.1
	.asciz	"Opening full screen window on monitor %s took %0.3f seconds\n"

L_.str.2:                               ## @.str.2
	.asciz	"Opening regular window took %0.3f seconds\n"

	.no_dead_strip	_open_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_window
_open_window:                           ; @open_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_glfwGetTime
	fmov	d8, d0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	mov	x4, #0
	bl	_glfwCreateWindow
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_glfwMakeContextCurrent
	mov	w0, #1
	bl	_glfwSwapInterval
Lloh2:
	adrp	x8, _framebuffer_size_callback@GOTPAGE
Lloh3:
	ldr	x8, [x8, _framebuffer_size_callback@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetFramebufferSizeCallback
Lloh5:
	adrp	x8, _window_close_callback@GOTPAGE
Lloh6:
	ldr	x8, [x8, _window_close_callback@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetWindowCloseCallback
Lloh8:
	adrp	x8, _key_callback@GOTPAGE
Lloh9:
	ldr	x8, [x8, _key_callback@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetKeyCallback
	cbz	x20, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_glfwGetMonitorName
	mov	x20, x0
	bl	_glfwGetTime
	fsub	d0, d0, d8
	str	d0, [sp, #8]
	str	x20, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	bl	_glfwGetTime
	fsub	d0, d0, d8
	str	d0, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	bl	_printf
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Window Re-opener"

	.comm	_framebuffer_size_callback,4,2  ; @framebuffer_size_callback
	.comm	_window_close_callback,4,2      ; @window_close_callback
	.comm	_key_callback,4,2               ; @key_callback
l_.str.1:                               ; @.str.1
	.asciz	"Opening full screen window on monitor %s took %0.3f seconds\n"

l_.str.2:                               ; @.str.2
	.asciz	"Opening regular window took %0.3f seconds\n"

	.no_dead_strip	_open_window
.subsections_via_symbols
