	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function drawGrid
LCPI0_0:
	.long	0x3d4ccccd                      ## float 0.0500000007
LCPI0_1:
	.long	0x3e4ccccd                      ## float 0.200000003
LCPI0_3:
	.long	0x3f800000                      ## float 1
LCPI0_4:
	.long	0x3f000000                      ## float 0.5
LCPI0_5:
	.long	0xbf000000                      ## float -0.5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
	.space	4
	.space	4
LCPI0_6:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_drawGrid:                              ## @drawGrid
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movss	%xmm0, -24(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_glPushMatrix
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm3, %xmm3
	movaps	%xmm0, %xmm1
	callq	_glClearColor
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glClear
	movaps	LCPI0_2(%rip), %xmm4            ## xmm4 = <0.0E+0,1.0E+0,u,u>
	movss	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	xorps	%xmm2, %xmm2
	xorps	%xmm3, %xmm3
	xorps	%xmm5, %xmm5
	callq	_mat4x4_look_at
	callq	_glLoadMatrixf
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glDepthMask
	movss	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	movaps	%xmm1, %xmm2
	callq	_glColor3f
	movq	_GL_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glBegin
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.1:
	leal	-1(%r14), %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	-24(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_4(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm2
	mulss	%xmm0, %xmm2
	movss	LCPI0_5(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	mulss	%xmm0, %xmm3
	movaps	LCPI0_6(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	movaps	%xmm2, -64(%rbp)                ## 16-byte Spill
	xorps	%xmm2, %xmm0
	movl	%r14d, %ebx
	movss	%xmm3, -20(%rbp)                ## 4-byte Spill
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm3, -28(%rbp)                ## 4-byte Spill
	xorps	%xmm2, %xmm2
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_glVertex3f
	xorps	%xmm2, %xmm2
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_glVertex3f
	movss	-28(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movaps	-48(%rbp), %xmm0                ## 16-byte Reload
	addss	-24(%rbp), %xmm3                ## 4-byte Folded Reload
	decl	%ebx
	jne	LBB0_2
## %bb.3:
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	xorps	%xmm2, %xmm2
	movaps	-48(%rbp), %xmm1                ## 16-byte Reload
	callq	_glVertex3f
	xorps	%xmm2, %xmm2
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movaps	-64(%rbp), %xmm1                ## 16-byte Reload
	callq	_glVertex3f
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	-24(%rbp), %xmm0                ## 4-byte Folded Reload
	decl	%r14d
	jne	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_glEnd
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glDepthMask
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_glPopMatrix                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_GL_LINES,4,2                   ## @GL_LINES
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.no_dead_strip	_drawGrid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drawGrid
_drawGrid:                              ; @drawGrid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	.cfi_offset b12, -72
	.cfi_offset b13, -80
	mov	x19, x0
	fmov	s8, s0
	bl	_glPushMatrix
	mov	w8, #52429
	movk	w8, #15692, lsl #16
	fmov	s0, w8
	mov	w8, #52429
	movk	w8, #15948, lsl #16
	fmov	s2, w8
	movi	d3, #0000000000000000
	fmov	s1, s0
	bl	_glClearColor
Lloh0:
	adrp	x8, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_glClear
	str	wzr, [sp, #8]
	mov	x8, #4575657221408423936
	str	x8, [sp]
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	movi	d3, #0000000000000000
	movi	d4, #0000000000000000
	movi	d5, #0000000000000000
	bl	_mat4x4_look_at
	bl	_glLoadMatrixf
Lloh3:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_glDepthMask
	fmov	s9, #0.50000000
	movi	d0, #0000000000000000
	fmov	s1, #0.50000000
	fmov	s2, #0.50000000
	bl	_glColor3f
Lloh6:
	adrp	x8, _GL_LINES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_LINES@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_glBegin
	subs	w8, w19, #1
	b.lt	LBB0_4
; %bb.1:
	fmul	s0, s8, s9
	scvtf	s1, w8
	fmul	s9, s0, s1
	fmov	s0, #-0.50000000
	fmul	s0, s8, s0
	fmul	s10, s0, s1
	fneg	s11, s9
	mov	x20, x19
	fmov	s12, s10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	movi	d2, #0000000000000000
	fmov	s0, s11
	fmov	s1, s12
	bl	_glVertex3f
	movi	d2, #0000000000000000
	fmov	s0, s9
	fmov	s1, s12
	bl	_glVertex3f
	fadd	s12, s12, s8
	subs	w20, w20, #1
	b.ne	LBB0_2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	movi	d2, #0000000000000000
	fmov	s0, s10
	fmov	s1, s11
	bl	_glVertex3f
	movi	d2, #0000000000000000
	fmov	s0, s10
	fmov	s1, s9
	bl	_glVertex3f
	fadd	s10, s10, s8
	subs	w19, w19, #1
	b.ne	LBB0_3
LBB0_4:
	bl	_glEnd
Lloh9:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_glDepthMask
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_glPopMatrix
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_GL_LINES,4,2                   ; @GL_LINES
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.no_dead_strip	_drawGrid
.subsections_via_symbols
