	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_glfwInit
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	leaq	L_.str.1(%rip), %rdx
	movl	$200, %edi
	movl	$200, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_glfwCreateWindow
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_glfwTerminate
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_glfwMakeContextCurrent
	movq	_glfwGetProcAddress@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gladLoadGL
	movq	_key_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_glfwSetKeyCallback
	movq	_cur_icon_color@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_icon
	movq	%rbx, %rdi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_glClear
	movq	%rbx, %rdi
	callq	_glfwSwapBuffers
	xorl	%eax, %eax
	callq	_glfwWaitEvents
	movq	%rbx, %rdi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_glfwDestroyWindow
	xorl	%eax, %eax
	callq	_glfwTerminate
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize GLFW\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"Window Icon"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to open GLFW window\n"

	.comm	_glfwGetProcAddress,4,2         ## @glfwGetProcAddress
	.comm	_key_callback,4,2               ## @key_callback
	.comm	_cur_icon_color,4,2             ## @cur_icon_color
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_glfwInit
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #200
	mov	w1, #200
	mov	x3, #0
	mov	x4, #0
	bl	_glfwCreateWindow
	cbnz	x0, LBB0_5
; %bb.3:
	bl	_glfwTerminate
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	bl	_fprintf
Lloh12:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_exit
LBB0_5:
	mov	x19, x0
	bl	_glfwMakeContextCurrent
Lloh15:
	adrp	x8, _glfwGetProcAddress@GOTPAGE
Lloh16:
	ldr	x8, [x8, _glfwGetProcAddress@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_gladLoadGL
Lloh18:
	adrp	x8, _key_callback@GOTPAGE
Lloh19:
	ldr	x8, [x8, _key_callback@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetKeyCallback
Lloh21:
	adrp	x8, _cur_icon_color@GOTPAGE
Lloh22:
	ldr	x8, [x8, _cur_icon_color@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_set_icon
	mov	x0, x19
	bl	_glfwWindowShouldClose
	cbnz	w0, LBB0_8
; %bb.6:
Lloh24:
	adrp	x20, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh25:
	ldr	x20, [x20, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_glClear
	mov	x0, x19
	bl	_glfwSwapBuffers
	bl	_glfwWaitEvents
	mov	x0, x19
	bl	_glfwWindowShouldClose
	cbz	w0, LBB0_7
LBB0_8:
	mov	x0, x19
	bl	_glfwDestroyWindow
	bl	_glfwTerminate
Lloh26:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize GLFW\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"Window Icon"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to open GLFW window\n"

	.comm	_glfwGetProcAddress,4,2         ; @glfwGetProcAddress
	.comm	_key_callback,4,2               ; @key_callback
	.comm	_cur_icon_color,4,2             ; @cur_icon_color
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
