	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str(%rip), %r15
	movq	_GLFW_TRUE@GOTPCREL(%rip), %r12
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %r13d
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$97, %eax
	je	LBB0_32
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$102, %eax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
LBB0_3:
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.4:
	cmpl	$104, %eax
	jne	LBB0_8
## %bb.5:
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_6
LBB0_10:
	movq	_error_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glfwSetErrorCallback
	xorl	%eax, %eax
	callq	_glfwInit
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	testl	%r13d, %r13d
	je	LBB0_19
## %bb.13:
	leaq	-48(%rbp), %rdi
	callq	_glfwGetMonitors
	movq	%rax, %r15
	movl	-48(%rbp), %r12d
	movl	%r12d, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r13
	testl	%r12d, %r12d
	jle	LBB0_18
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdi
	callq	_create_window
	movq	%rax, (%r13,%rbx,8)
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	-48(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_17:
	testl	%r12d, %r12d
	jg	LBB0_23
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_8:
	xorl	%eax, %eax
	callq	_usage
LBB0_9:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_19:
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	xorl	%eax, %eax
	callq	_glfwGetPrimaryMonitor
	movq	%rax, %r15
	jmp	LBB0_22
LBB0_20:
	xorl	%r15d, %r15d
LBB0_22:
	movl	$1, %r12d
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_create_window
	movq	%rax, (%r13)
LBB0_23:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %r14d
	xorl	%r15d, %r15d
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r15,8), %rdi
	movq	_key_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwSetKeyCallback
	movq	(%r13,%r15,8), %rdi
	movq	_framebuffer_size_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwSetFramebufferSizeCallback
	movq	(%r13,%r15,8), %rdi
	movq	_window_size_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwSetWindowSizeCallback
	movq	(%r13,%r15,8), %rdi
	movq	_window_focus_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwSetWindowFocusCallback
	movq	(%r13,%r15,8), %rdi
	movq	_window_iconify_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwSetWindowIconifyCallback
	movq	(%r13,%r15,8), %rdi
	movq	_window_maximize_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwSetWindowMaximizeCallback
	movq	(%r13,%r15,8), %rdi
	movq	_window_refresh_callback@GOTPCREL(%rip), %rsi
	callq	_glfwSetWindowRefreshCallback
	movq	(%r13,%r15,8), %rdi
	callq	_window_refresh_callback
	movq	(%r13,%r15,8), %rdi
	movq	_GLFW_ICONIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwGetWindowAttrib
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rbx
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %rbx
	movq	(%r13,%r15,8), %rdi
	movq	_GLFW_FOCUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwGetWindowAttrib
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rdx
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_printf
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_24
## %bb.25:
	movb	$1, %r14b
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_26:
	movl	%r12d, %r12d
	movq	_stdout@GOTPCREL(%rip), %r15
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	(%r15), %edi
	callq	_fflush
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	xorl	%eax, %eax
	callq	_glfwWaitEvents
	testb	%r14b, %r14b
	je	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rbx,8), %rdi
	callq	_glfwWindowShouldClose
	testq	%rax, %rax
	jne	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_30 Depth=2
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_30
	jmp	LBB0_33
LBB0_31:
	xorl	%eax, %eax
	callq	_glfwTerminate
LBB0_6:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"afhn"

	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_error_callback,4,2             ## @error_callback
	.comm	_key_callback,4,2               ## @key_callback
	.comm	_framebuffer_size_callback,4,2  ## @framebuffer_size_callback
	.comm	_window_size_callback,4,2       ## @window_size_callback
	.comm	_window_focus_callback,4,2      ## @window_focus_callback
	.comm	_window_iconify_callback,4,2    ## @window_iconify_callback
	.comm	_window_maximize_callback,4,2   ## @window_maximize_callback
L_.str.1:                               ## @.str.1
	.asciz	"Window is %s and %s\n"

	.comm	_GLFW_ICONIFIED,4,2             ## @GLFW_ICONIFIED
L_.str.2:                               ## @.str.2
	.asciz	"iconified"

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

	.comm	_GLFW_FOCUSED,4,2               ## @GLFW_FOCUSED
L_.str.4:                               ## @.str.4
	.asciz	"focused"

L_.str.5:                               ## @.str.5
	.asciz	"defocused"

	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x24, _GLFW_TRUE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _GLFW_TRUE@GOTPAGEOFF]
	mov	x23, x22
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w23, [x24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #97
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #102
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w22, [x24]
	b	LBB0_2
LBB0_5:
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.6:
	cmp	w0, #104
	b.ne	LBB0_17
; %bb.7:
	bl	_usage
	b	LBB0_32
LBB0_8:
Lloh7:
	adrp	x8, _error_callback@GOTPAGE
Lloh8:
	ldr	x8, [x8, _error_callback@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_glfwSetErrorCallback
	bl	_glfwInit
	cbz	w0, LBB0_18
; %bb.9:
	cbz	w22, LBB0_19
; %bb.10:
	cbz	w23, LBB0_19
; %bb.11:
	add	x0, sp, #12
	bl	_glfwGetMonitors
	mov	x21, x0
	ldr	w23, [sp, #12]
	mov	x0, x23
	mov	w1, #8
	bl	_calloc
	mov	x19, x0
	cmp	w23, #1
	b.lt	LBB0_16
; %bb.12:
	mov	x20, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	x22, x20, #3
	ldr	x0, [x21, x22]
	bl	_create_window
	str	x0, [x19, x22]
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [sp, #12]
	cmp	x20, x8
	b.lt	LBB0_13
LBB0_15:
	cmp	w23, #1
	b.ge	LBB0_23
LBB0_16:
	mov	w20, #0
	b	LBB0_26
LBB0_17:
	bl	_usage
LBB0_18:
Lloh10:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_exit
LBB0_19:
	cbz	w22, LBB0_21
; %bb.20:
	bl	_glfwGetPrimaryMonitor
	mov	x21, x0
	b	LBB0_22
LBB0_21:
	mov	x21, #0
LBB0_22:
	mov	w23, #1
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	mov	x19, x0
	mov	x0, x21
	bl	_create_window
	str	x0, [x19]
LBB0_23:
	mov	x24, #0
	str	w23, [sp, #8]                   ; 4-byte Folded Spill
	mov	w25, w23
Lloh13:
	adrp	x21, _window_refresh_callback@GOTPAGE
Lloh14:
	ldr	x21, [x21, _window_refresh_callback@GOTPAGEOFF]
Lloh15:
	adrp	x27, _GLFW_FOCUSED@GOTPAGE
Lloh16:
	ldr	x27, [x27, _GLFW_FOCUSED@GOTPAGEOFF]
Lloh17:
	adrp	x28, l_.str.4@PAGE
Lloh18:
	add	x28, x28, l_.str.4@PAGEOFF
Lloh19:
	adrp	x20, l_.str.5@PAGE
Lloh20:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh21:
	adrp	x22, l_.str.1@PAGE
Lloh22:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	lsl	x26, x24, #3
	ldr	x0, [x19, x26]
Lloh23:
	adrp	x8, _key_callback@GOTPAGE
Lloh24:
	ldr	x8, [x8, _key_callback@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_glfwSetKeyCallback
	ldr	x0, [x19, x26]
Lloh26:
	adrp	x8, _framebuffer_size_callback@GOTPAGE
Lloh27:
	ldr	x8, [x8, _framebuffer_size_callback@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_glfwSetFramebufferSizeCallback
	ldr	x0, [x19, x26]
Lloh29:
	adrp	x8, _window_size_callback@GOTPAGE
Lloh30:
	ldr	x8, [x8, _window_size_callback@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_glfwSetWindowSizeCallback
	ldr	x0, [x19, x26]
Lloh32:
	adrp	x8, _window_focus_callback@GOTPAGE
Lloh33:
	ldr	x8, [x8, _window_focus_callback@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_glfwSetWindowFocusCallback
	ldr	x0, [x19, x26]
Lloh35:
	adrp	x8, _window_iconify_callback@GOTPAGE
Lloh36:
	ldr	x8, [x8, _window_iconify_callback@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_glfwSetWindowIconifyCallback
	ldr	x0, [x19, x26]
Lloh38:
	adrp	x8, _window_maximize_callback@GOTPAGE
Lloh39:
	ldr	x8, [x8, _window_maximize_callback@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	bl	_glfwSetWindowMaximizeCallback
	ldr	x0, [x19, x26]
	mov	x1, x21
	bl	_glfwSetWindowRefreshCallback
	ldr	x0, [x19, x26]
	bl	_window_refresh_callback
	ldr	x0, [x19, x26]
Lloh41:
	adrp	x8, _GLFW_ICONIFIED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GLFW_ICONIFIED@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	bl	_glfwGetWindowAttrib
	cmp	x0, #0
Lloh44:
	adrp	x8, l_.str.2@PAGE
Lloh45:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh46:
	adrp	x9, l_.str.3@PAGE
Lloh47:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x23, x9, x8, eq
	ldr	x0, [x19, x26]
	ldr	w1, [x27]
	bl	_glfwGetWindowAttrib
	cmp	x0, #0
	csel	x2, x20, x28, eq
	mov	x0, x22
	mov	x1, x23
	bl	_printf
	add	x24, x24, #1
	cmp	x25, x24
	b.ne	LBB0_24
; %bb.25:
	mov	w20, #1
	ldr	w23, [sp, #8]                   ; 4-byte Folded Reload
LBB0_26:
	mov	w21, w23
Lloh48:
	adrp	x22, _stdout@GOTPAGE
Lloh49:
	ldr	x22, [x22, _stdout@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	w0, [x22]
	bl	_fflush
LBB0_28:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	bl	_glfwWaitEvents
	mov	x23, x21
	mov	x24, x19
	cbz	w20, LBB0_27
LBB0_29:                                ;   Parent Loop BB0_28 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x24]
	bl	_glfwWindowShouldClose
	cbnz	x0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	add	x24, x24, #8
	subs	x23, x23, #1
	b.ne	LBB0_29
	b	LBB0_27
LBB0_31:
	bl	_glfwTerminate
LBB0_32:
Lloh50:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"afhn"

	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_error_callback,4,2             ; @error_callback
	.comm	_key_callback,4,2               ; @key_callback
	.comm	_framebuffer_size_callback,4,2  ; @framebuffer_size_callback
	.comm	_window_size_callback,4,2       ; @window_size_callback
	.comm	_window_focus_callback,4,2      ; @window_focus_callback
	.comm	_window_iconify_callback,4,2    ; @window_iconify_callback
	.comm	_window_maximize_callback,4,2   ; @window_maximize_callback
l_.str.1:                               ; @.str.1
	.asciz	"Window is %s and %s\n"

	.comm	_GLFW_ICONIFIED,4,2             ; @GLFW_ICONIFIED
l_.str.2:                               ; @.str.2
	.asciz	"iconified"

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

	.comm	_GLFW_FOCUSED,4,2               ; @GLFW_FOCUSED
l_.str.4:                               ; @.str.4
	.asciz	"focused"

l_.str.5:                               ; @.str.5
	.asciz	"defocused"

	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
