	.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	0x3dcccccd                      ## float 0.100000001
LCPI0_1:
	.long	0x3f19999a                      ## float 0.600000024
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_DrawGrid
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GRID_SIZE@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	imulq	$715827883, %rax, %r15          ## imm = 0x2AAAAAAB
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$33, %r15
	addl	%eax, %r15d
	xorl	%eax, %eax
	callq	_glPushMatrix
	movq	_GL_CULL_FACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glDisable
	movq	_DIST_BALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	callq	_glTranslatef
	movl	$13, %eax
	movq	_GL_POLYGON@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movl	%r14d, %r12d
	subl	%ebx, %r12d
	leal	2(%r12), %r13d
	movl	$-2, %r15d
	subl	%ebx, %r15d
	movl	(%rcx), %edi
	callq	_glBegin
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm2
	callq	_glColor3f
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	$-40, %edx
	callq	_glVertex3f
	movl	%r12d, %edi
	movl	%ebx, %esi
	movq	_GRID_SIZE@GOTPCREL(%rip), %rbx
	movl	$-40, %edx
	callq	_glVertex3f
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	$-40, %edx
	callq	_glVertex3f
	movl	%r13d, %edi
	movl	%r15d, %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	$-40, %edx
	callq	_glVertex3f
	xorl	%eax, %eax
	callq	_glEnd
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_GL_POLYGON@GOTPCREL(%rip), %rcx
	addl	%r15d, %r14d
	decl	%eax
	jne	LBB0_1
## %bb.2:
	movl	$13, %r13d
	movl	$-2, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	leal	(%r14,%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(%r14,%rbx), %r15d
	addl	$2, %r15d
	movl	%ebx, %r12d
	negl	%r12d
	addl	$2, %ebx
	movl	(%rcx), %edi
	callq	_glBegin
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm2
	callq	_glColor3f
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	$-40, %edx
	callq	_glVertex3f
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	$-40, %edx
	callq	_glVertex3f
	movl	%r12d, %edi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	$-40, %edx
	callq	_glVertex3f
	movl	%ebx, %edi
	movq	_GRID_SIZE@GOTPCREL(%rip), %rbx
	movl	%r15d, %esi
	movl	$-40, %edx
	callq	_glVertex3f
	xorl	%eax, %eax
	callq	_glEnd
	movq	_GL_POLYGON@GOTPCREL(%rip), %rcx
	subl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	decl	%r13d
	jne	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glPopMatrix                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GRID_SIZE,4,2                  ## @GRID_SIZE
	.comm	_GL_CULL_FACE,4,2               ## @GL_CULL_FACE
	.comm	_DIST_BALL,4,2                  ## @DIST_BALL
	.comm	_GL_POLYGON,4,2                 ## @GL_POLYGON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DrawGrid                       ; -- Begin function DrawGrid
	.p2align	2
_DrawGrid:                              ; @DrawGrid
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x19, _GRID_SIZE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GRID_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x19]
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w24, w8, w9
	bl	_glPushMatrix
Lloh2:
	adrp	x8, _GL_CULL_FACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_CULL_FACE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_glDisable
Lloh5:
	adrp	x8, _DIST_BALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIST_BALL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	bl	_glTranslatef
	mov	w26, #0
	mov	w27, #13
Lloh8:
	adrp	x25, _GL_POLYGON@GOTPAGE
Lloh9:
	ldr	x25, [x25, _GL_POLYGON@GOTPAGEOFF]
	mov	w28, #39322
	movk	w28, #16153, lsl #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
	mov	x23, x19
	asr	w19, w8, #1
	sub	w20, w26, w19
	add	w21, w20, #2
	mov	w8, #-2
	sub	w22, w8, w19
	ldr	w0, [x25]
	bl	_glBegin
	mov	w8, #52429
	movk	w8, #15820, lsl #16
	fmov	s1, w8
	fmov	s0, w28
	fmov	s2, s0
	bl	_glColor3f
	mov	x0, x21
	mov	x1, x19
	mov	w2, #-40
	bl	_glVertex3f
	mov	x0, x20
	mov	x1, x19
	mov	x19, x23
	mov	w2, #-40
	bl	_glVertex3f
	mov	x0, x20
	mov	x1, x22
	mov	w2, #-40
	bl	_glVertex3f
	mov	x0, x21
	mov	x1, x22
	mov	w2, #-40
	bl	_glVertex3f
	bl	_glEnd
	add	w26, w26, w24
	subs	w27, w27, #1
	b.ne	LBB0_1
; %bb.2:
	mov	w26, #13
	mov	w27, #-2
	mov	w28, #39322
	movk	w28, #16153, lsl #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w19, w27, w8
	add	w20, w19, #2
	neg	w21, w8
	add	w22, w8, #2
	ldr	w0, [x25]
	bl	_glBegin
	mov	w8, #52429
	movk	w8, #15820, lsl #16
	fmov	s1, w8
	fmov	s0, w28
	fmov	s2, s0
	bl	_glColor3f
	mov	x0, x22
	mov	x1, x20
	mov	w2, #-40
	bl	_glVertex3f
	mov	x0, x21
	mov	x1, x20
	mov	w2, #-40
	bl	_glVertex3f
	mov	x0, x21
	mov	x1, x19
	mov	w2, #-40
	bl	_glVertex3f
	mov	x0, x22
	mov	x1, x19
	mov	x19, x23
	mov	w2, #-40
	bl	_glVertex3f
	bl	_glEnd
	sub	w27, w27, w24
	sub	w26, w26, #1
	cbnz	w26, LBB0_3
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_glPopMatrix
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GRID_SIZE,4,2                  ; @GRID_SIZE
	.comm	_GL_CULL_FACE,4,2               ; @GL_CULL_FACE
	.comm	_DIST_BALL,4,2                  ; @DIST_BALL
	.comm	_GL_POLYGON,4,2                 ; @GL_POLYGON
.subsections_via_symbols
