	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -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_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_glfwWindowHint
	leaq	L_.str.1(%rip), %rdx
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$500, %esi                      ## imm = 0x1F4
	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	_framebufferSizeFun@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_glfwSetFramebufferSizeCallback
	movq	_windowRefreshFun@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_glfwSetWindowRefreshCallback
	movq	_cursorPosFun@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_glfwSetCursorPosCallback
	movq	_mouseButtonFun@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_glfwSetMouseButtonCallback
	movq	_key_callback@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
	movq	_GLAD_GL_ARB_multisample@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GLAD_GL_VERSION_1_3@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_GL_MULTISAMPLE_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnable
LBB0_7:
	movq	_width@GOTPCREL(%rip), %r14
	movq	_height@GOTPCREL(%rip), %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_glfwGetFramebufferSize
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_framebufferSizeFun
	movq	_do_redraw@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_glfwWaitEvents
	movq	%rbx, %rdi
	callq	_glfwWindowShouldClose
	testq	%rax, %rax
	jne	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	_windowRefreshFun
	jmp	LBB0_10
LBB0_11:
	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_SAMPLES,4,2               ## @GLFW_SAMPLES
L_.str.1:                               ## @.str.1
	.asciz	"Split view demo"

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

	.comm	_cursorPosFun,4,2               ## @cursorPosFun
	.comm	_mouseButtonFun,4,2             ## @mouseButtonFun
	.comm	_key_callback,4,2               ## @key_callback
	.comm	_glfwGetProcAddress,4,2         ## @glfwGetProcAddress
	.comm	_GLAD_GL_ARB_multisample,8,3    ## @GLAD_GL_ARB_multisample
	.comm	_GLAD_GL_VERSION_1_3,8,3        ## @GLAD_GL_VERSION_1_3
	.comm	_GL_MULTISAMPLE_ARB,4,2         ## @GL_MULTISAMPLE_ARB
	.comm	_width,4,2                      ## @width
	.comm	_height,4,2                     ## @height
	.comm	_do_redraw,8,3                  ## @do_redraw
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	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_SAMPLES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GLFW_SAMPLES@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_glfwWindowHint
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #500
	mov	w1, #500
	mov	x3, #0
	mov	x4, #0
	bl	_glfwCreateWindow
	cbnz	x0, LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	bl	_glfwTerminate
LBB0_4:
Lloh15:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_exit
LBB0_5:
	mov	x19, x0
Lloh18:
	adrp	x1, _framebufferSizeFun@GOTPAGE
Lloh19:
	ldr	x1, [x1, _framebufferSizeFun@GOTPAGEOFF]
	bl	_glfwSetFramebufferSizeCallback
Lloh20:
	adrp	x1, _windowRefreshFun@GOTPAGE
Lloh21:
	ldr	x1, [x1, _windowRefreshFun@GOTPAGEOFF]
	mov	x0, x19
	bl	_glfwSetWindowRefreshCallback
Lloh22:
	adrp	x8, _cursorPosFun@GOTPAGE
Lloh23:
	ldr	x8, [x8, _cursorPosFun@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetCursorPosCallback
Lloh25:
	adrp	x8, _mouseButtonFun@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mouseButtonFun@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetMouseButtonCallback
Lloh28:
	adrp	x8, _key_callback@GOTPAGE
Lloh29:
	ldr	x8, [x8, _key_callback@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_glfwSetKeyCallback
	mov	x0, x19
	bl	_glfwMakeContextCurrent
Lloh31:
	adrp	x8, _glfwGetProcAddress@GOTPAGE
Lloh32:
	ldr	x8, [x8, _glfwGetProcAddress@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_gladLoadGL
	mov	w0, #1
	bl	_glfwSwapInterval
Lloh34:
	adrp	x8, _GLAD_GL_ARB_multisample@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GLAD_GL_ARB_multisample@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _GLAD_GL_VERSION_1_3@GOTPAGE
Lloh38:
	ldr	x9, [x9, _GLAD_GL_VERSION_1_3@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_7
; %bb.6:
Lloh40:
	adrp	x8, _GL_MULTISAMPLE_ARB@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GL_MULTISAMPLE_ARB@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_glEnable
LBB0_7:
Lloh43:
	adrp	x20, _width@GOTPAGE
Lloh44:
	ldr	x20, [x20, _width@GOTPAGEOFF]
Lloh45:
	adrp	x21, _height@GOTPAGE
Lloh46:
	ldr	x21, [x21, _height@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_glfwGetFramebufferSize
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_framebufferSizeFun
Lloh47:
	adrp	x20, _do_redraw@GOTPAGE
Lloh48:
	ldr	x20, [x20, _do_redraw@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_glfwWaitEvents
	mov	x0, x19
	bl	_glfwWindowShouldClose
	cbnz	x0, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_windowRefreshFun
	b	LBB0_8
LBB0_11:
	bl	_glfwTerminate
Lloh49:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.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_SAMPLES,4,2               ; @GLFW_SAMPLES
l_.str.1:                               ; @.str.1
	.asciz	"Split view demo"

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

	.comm	_cursorPosFun,4,2               ; @cursorPosFun
	.comm	_mouseButtonFun,4,2             ; @mouseButtonFun
	.comm	_key_callback,4,2               ; @key_callback
	.comm	_glfwGetProcAddress,4,2         ; @glfwGetProcAddress
	.comm	_GLAD_GL_ARB_multisample,8,3    ; @GLAD_GL_ARB_multisample
	.comm	_GLAD_GL_VERSION_1_3,8,3        ; @GLAD_GL_VERSION_1_3
	.comm	_GL_MULTISAMPLE_ARB,4,2         ; @GL_MULTISAMPLE_ARB
	.comm	_width,4,2                      ; @width
	.comm	_height,4,2                     ; @height
	.comm	_do_redraw,8,3                  ; @do_redraw
	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
