	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function main
LCPI0_0:
	.long	0x3f19999a                      ## float 0.600000024
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_error_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glfwSetErrorCallback
	xorl	%eax, %eax
	callq	_glfwInit
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_OFFSET@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	movl	%ecx, %edx
	callq	_open_window
	movq	_windows@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.4:
	xorl	%eax, %eax
	callq	_create_texture
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	leaq	-36(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_glfwGetWindowPos
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	leaq	-28(%rbp), %rsi
	xorl	%edx, %edx
	callq	_glfwGetWindowSize
	movq	(%rbx), %rax
	movl	-28(%rbp), %edx
	addl	-36(%rbp), %edx
	movq	(%rax), %rsi
	addl	(%r15), %edx
	movl	-32(%rbp), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_open_window
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	jne	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	callq	_glfwTerminate
LBB0_3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_5:
	movq	(%rcx), %rdi
	callq	_glfwMakeContextCurrent
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	movaps	%xmm0, %xmm2
	callq	_glColor3f
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_glfwMakeContextCurrent
	xorps	%xmm2, %xmm2
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	callq	_glColor3f
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_glfwMakeContextCurrent
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_glfwWindowShouldClose
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_glfwMakeContextCurrent
	movl	%r14d, %edi
	callq	_draw_quad
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_glfwMakeContextCurrent
	movl	%r14d, %edi
	callq	_draw_quad
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_glfwSwapBuffers
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_glfwSwapBuffers
	xorl	%eax, %eax
	callq	_glfwWaitEvents
	jmp	LBB0_6
LBB0_9:
	xorl	%eax, %eax
	callq	_glfwTerminate
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_error_callback,4,2             ## @error_callback
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"First"

	.comm	_OFFSET,4,2                     ## @OFFSET
	.comm	_windows,8,3                    ## @windows
L_.str.1:                               ## @.str.1
	.asciz	"Second"

	.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, #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
Lloh0:
	adrp	x8, _error_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _error_callback@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_glfwSetErrorCallback
	bl	_glfwInit
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x21, _OFFSET@GOTPAGE
Lloh4:
	ldr	x21, [x21, _OFFSET@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, #0
	mov	x3, x2
	bl	_open_window
Lloh7:
	adrp	x20, _windows@GOTPAGE
Lloh8:
	ldr	x20, [x20, _windows@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x0, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	bl	_create_texture
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x0, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_glfwGetWindowPos
	ldr	x8, [x20]
	ldr	x0, [x8]
	add	x1, sp, #4
	mov	x2, #0
	bl	_glfwGetWindowSize
	ldr	x8, [x20]
	ldr	x1, [x8]
	ldp	w3, w8, [sp, #8]
	ldr	w9, [sp, #4]
	ldr	w10, [x21]
	add	w8, w9, w8
	add	w2, w8, w10
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open_window
	ldr	x8, [x20]
	str	x0, [x8, #8]
	cbnz	x0, LBB0_5
LBB0_3:
	bl	_glfwTerminate
LBB0_4:
Lloh11:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_exit
LBB0_5:
	ldr	x0, [x8]
	bl	_glfwMakeContextCurrent
	mov	w8, #39322
	movk	w8, #16153, lsl #16
	fmov	s8, w8
	movi	d1, #0000000000000000
	fmov	s0, s8
	fmov	s2, s8
	bl	_glColor3f
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_glfwMakeContextCurrent
	movi	d2, #0000000000000000
	fmov	s0, s8
	fmov	s1, s8
	bl	_glColor3f
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_glfwMakeContextCurrent
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_glfwWindowShouldClose
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_glfwWindowShouldClose
	cbnz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_glfwMakeContextCurrent
	mov	x0, x19
	bl	_draw_quad
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_glfwMakeContextCurrent
	mov	x0, x19
	bl	_draw_quad
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_glfwSwapBuffers
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	bl	_glfwSwapBuffers
	bl	_glfwWaitEvents
	b	LBB0_6
LBB0_9:
	bl	_glfwTerminate
Lloh14:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_error_callback,4,2             ; @error_callback
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"First"

	.comm	_OFFSET,4,2                     ; @OFFSET
	.comm	_windows,8,3                    ; @windows
l_.str.1:                               ; @.str.1
	.asciz	"Second"

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
