	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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
	callq	_fprintf
	jmp	LBB0_2
LBB0_3:
	movq	_GLFW_DEPTH_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$16, %esi
	callq	_glfwWindowHint
	movq	_GLFW_TRANSPARENT_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwWindowHint
	leaq	L_.str.1(%rip), %rdx
	movl	$300, %edi                      ## imm = 0x12C
	movl	$300, %esi                      ## imm = 0x12C
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_glfwCreateWindow
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	xorl	%eax, %eax
	callq	_glfwTerminate
LBB0_2:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_5:
	movq	%rax, %rbx
	movq	_reshape@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_glfwSetFramebufferSizeCallback
	movq	_key@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_glfwSetKeyCallback
	movq	%rbx, %rdi
	callq	_glfwMakeContextCurrent
	movq	_glfwGetProcAddress@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gladLoadGL
	movl	$1, %edi
	callq	_glfwSwapInterval
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_glfwGetFramebufferSize
	movl	-16(%rbp), %esi
	movl	-12(%rbp), %edx
	movq	%rbx, %rdi
	callq	_reshape
	xorl	%eax, %eax
	callq	_init
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_draw
	xorl	%eax, %eax
	callq	_animate
	movq	%rbx, %rdi
	callq	_glfwSwapBuffers
	xorl	%eax, %eax
	callq	_glfwPollEvents
	jmp	LBB0_7
LBB0_8:
	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
	.comm	_GLFW_DEPTH_BITS,4,2            ## @GLFW_DEPTH_BITS
	.comm	_GLFW_TRANSPARENT_FRAMEBUFFER,4,2 ## @GLFW_TRANSPARENT_FRAMEBUFFER
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
L_.str.1:                               ## @.str.1
	.asciz	"Gears"

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

	.comm	_key,4,2                        ## @key
	.comm	_glfwGetProcAddress,4,2         ## @glfwGetProcAddress
	.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:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_fprintf
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _GLFW_DEPTH_BITS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GLFW_DEPTH_BITS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #16
	bl	_glfwWindowHint
Lloh8:
	adrp	x8, _GLFW_TRANSPARENT_FRAMEBUFFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_TRANSPARENT_FRAMEBUFFER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_glfwWindowHint
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #300
	mov	w1, #300
	mov	x3, #0
	mov	x4, #0
	bl	_glfwCreateWindow
	cbnz	x0, LBB0_5
; %bb.3:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	bl	_glfwTerminate
LBB0_4:
Lloh21:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_exit
LBB0_5:
	mov	x19, x0
Lloh24:
	adrp	x1, _reshape@GOTPAGE
Lloh25:
	ldr	x1, [x1, _reshape@GOTPAGEOFF]
	bl	_glfwSetFramebufferSizeCallback
Lloh26:
	adrp	x8, _key@GOTPAGE
Lloh27:
	ldr	x8, [x8, _key@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetKeyCallback
	mov	x0, x19
	bl	_glfwMakeContextCurrent
Lloh29:
	adrp	x8, _glfwGetProcAddress@GOTPAGE
Lloh30:
	ldr	x8, [x8, _glfwGetProcAddress@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_gladLoadGL
	mov	w0, #1
	bl	_glfwSwapInterval
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_glfwGetFramebufferSize
	ldp	w2, w1, [sp, #8]
	mov	x0, x19
	bl	_reshape
	bl	_init
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_glfwWindowShouldClose
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_draw
	bl	_animate
	mov	x0, x19
	bl	_glfwSwapBuffers
	bl	_glfwPollEvents
	b	LBB0_6
LBB0_8:
	bl	_glfwTerminate
Lloh32:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.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
	.comm	_GLFW_DEPTH_BITS,4,2            ; @GLFW_DEPTH_BITS
	.comm	_GLFW_TRANSPARENT_FRAMEBUFFER,4,2 ; @GLFW_TRANSPARENT_FRAMEBUFFER
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
l_.str.1:                               ; @.str.1
	.asciz	"Gears"

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

	.comm	_key,4,2                        ; @key
	.comm	_glfwGetProcAddress,4,2         ; @glfwGetProcAddress
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
