	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function main
LCPI0_0:
	.quad	0x3f689374bc6a7efa              ## double 0.0030000000000000001
	.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	%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
	xorl	%eax, %eax
	callq	_bcm_host_init
	movq	_state@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r13), %rdi
	callq	_init_ogl
	movq	(%r13), %rdi
	callq	_init_shaders
	movq	(%r13), %rdi
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_draw_mandelbrot_to_texture
	movq	(%r13), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_get_mouse
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %r15
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %r8d
	movl	%r14d, %esi
	movl	%ebx, %edx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_draw_triangles
	movq	(%r13), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_get_mouse
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state,8,3                      ## @state
.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	_bcm_host_init
Lloh0:
	adrp	x21, _state@GOTPAGE
Lloh1:
	ldr	x21, [x21, _state@GOTPAGEOFF]
	ldr	x0, [x21]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x0, [x21]
	bl	_init_ogl
	ldr	x0, [x21]
	bl	_init_shaders
	ldr	x0, [x21]
	ldp	w8, w9, [x0]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w19, w8, #1
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w20, w8, #1
	mov	x8, #32506
	movk	x8, #48234, lsl #16
	movk	x8, #37748, lsl #32
	movk	x8, #16232, lsl #48
	fmov	d0, x8
	mov	x1, x19
	mov	x2, x20
	bl	_draw_mandelbrot_to_texture
	ldr	x0, [x21]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_get_mouse
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x22, #32506
	movk	x22, #48234, lsl #16
	movk	x22, #37748, lsl #32
	movk	x22, #16232, lsl #48
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldp	w4, w3, [sp, #8]
	fmov	d0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_draw_triangles
	ldr	x0, [x21]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_get_mouse
	cbz	w0, LBB0_2
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_state,8,3                      ; @state
.subsections_via_symbols
