	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_fountain
_draw_fountain:                         ## @draw_fountain
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_draw_fountain.fountain_list(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glCallList                     ## TAILCALL
LBB0_1:
	movl	$1, %edi
	callq	_glGenLists
	movq	%rax, _draw_fountain.fountain_list(%rip)
	movq	_GL_COMPILE_AND_EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_glNewList
	movq	_GL_FRONT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GL_DIFFUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fountain_diffuse@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_glMaterialfv
	movl	(%rbx), %edi
	movq	_GL_SPECULAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fountain_specular@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_glMaterialfv
	movl	(%rbx), %edi
	movq	_GL_SHININESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fountain_shininess@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_glMaterialf
	movq	_FOUNTAIN_SIDE_POINTS@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_7
## %bb.2:
	movq	_FOUNTAIN_SWEEP_STEPS@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_glEnd
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	_FOUNTAIN_SIDE_POINTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	movq	%rdx, %rcx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	movq	_FOUNTAIN_SWEEP_STEPS@GOTPCREL(%rip), %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_GL_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glBegin
	movl	(%rbx), %eax
	testl	%eax, %eax
	movq	_M_PI@GOTPCREL(%rip), %rbx
	movq	_fountain_side@GOTPCREL(%rip), %r14
	js	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rcx), %r15
	addq	%rcx, %rcx
	incq	%rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%r13d
	xorps	%xmm2, %xmm2
	cvtsi2sd	%r13d, %xmm2
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
	mulsd	%xmm2, %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	callq	_cos
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_sin
	xorps	%xmm3, %xmm3
	cvtsi2ss	%rax, %xmm3
	movss	%xmm3, -56(%rbp)                ## 4-byte Spill
	movq	_fountain_normal@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movss	8(%rax,%r15,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	movss	12(%rax,%r15,4), %xmm2          ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	mulss	%xmm3, %xmm1
	callq	_glNormal3f
	movq	(%r14), %rax
	movss	8(%rax,%r15,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	movss	12(%rax,%r15,4), %xmm2          ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	mulss	-56(%rbp), %xmm1                ## 4-byte Folded Reload
	callq	_glVertex3f
	movq	(%r12), %rax
	movss	(%rax,%r15,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	mulss	-56(%rbp), %xmm1                ## 4-byte Folded Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movss	(%rax,%r12,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_glNormal3f
	movq	(%r14), %rax
	movss	(%rax,%r15,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	mulss	-56(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	(%rax,%r12,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	callq	_glVertex3f
	movq	_FOUNTAIN_SWEEP_STEPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jl	LBB0_5
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glEndList                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_draw_fountain.fountain_list,8,3 ## @draw_fountain.fountain_list
	.comm	_GL_COMPILE_AND_EXECUTE,4,2     ## @GL_COMPILE_AND_EXECUTE
	.comm	_GL_FRONT,4,2                   ## @GL_FRONT
	.comm	_GL_DIFFUSE,4,2                 ## @GL_DIFFUSE
	.comm	_fountain_diffuse,4,2           ## @fountain_diffuse
	.comm	_GL_SPECULAR,4,2                ## @GL_SPECULAR
	.comm	_fountain_specular,4,2          ## @fountain_specular
	.comm	_GL_SHININESS,4,2               ## @GL_SHININESS
	.comm	_fountain_shininess,4,2         ## @fountain_shininess
	.comm	_FOUNTAIN_SIDE_POINTS,4,2       ## @FOUNTAIN_SIDE_POINTS
	.comm	_GL_TRIANGLE_STRIP,4,2          ## @GL_TRIANGLE_STRIP
	.comm	_FOUNTAIN_SWEEP_STEPS,4,2       ## @FOUNTAIN_SWEEP_STEPS
	.comm	_M_PI,8,3                       ## @M_PI
	.comm	_fountain_normal,8,3            ## @fountain_normal
	.comm	_fountain_side,8,3              ## @fountain_side
	.no_dead_strip	_draw_fountain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_fountain
_draw_fountain:                         ; @draw_fountain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	adrp	x19, _draw_fountain.fountain_list@PAGE
	ldr	x0, [x19, _draw_fountain.fountain_list@PAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_glCallList
LBB0_2:
	mov	w0, #1
	bl	_glGenLists
	str	x0, [x19, _draw_fountain.fountain_list@PAGEOFF]
Lloh0:
	adrp	x8, _GL_COMPILE_AND_EXECUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_COMPILE_AND_EXECUTE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_glNewList
Lloh3:
	adrp	x19, _GL_FRONT@GOTPAGE
Lloh4:
	ldr	x19, [x19, _GL_FRONT@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _GL_DIFFUSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_DIFFUSE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _fountain_diffuse@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fountain_diffuse@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_glMaterialfv
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _GL_SPECULAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_SPECULAR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _fountain_specular@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fountain_specular@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_glMaterialfv
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _GL_SHININESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GL_SHININESS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _fountain_shininess@GOTPAGE
Lloh21:
	ldr	x8, [x8, _fountain_shininess@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_glMaterialf
Lloh23:
	adrp	x8, _FOUNTAIN_SIDE_POINTS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FOUNTAIN_SIDE_POINTS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.3:
	str	xzr, [sp]                       ; 8-byte Folded Spill
Lloh26:
	adrp	x24, _FOUNTAIN_SWEEP_STEPS@GOTPAGE
Lloh27:
	ldr	x24, [x24, _FOUNTAIN_SWEEP_STEPS@GOTPAGEOFF]
Lloh28:
	adrp	x20, _M_PI@GOTPAGE
Lloh29:
	ldr	x20, [x20, _M_PI@GOTPAGEOFF]
Lloh30:
	adrp	x25, _fountain_normal@GOTPAGE
Lloh31:
	ldr	x25, [x25, _fountain_normal@GOTPAGEOFF]
Lloh32:
	adrp	x27, _fountain_side@GOTPAGE
Lloh33:
	ldr	x27, [x27, _fountain_side@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_glEnd
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x9, x9, #1
Lloh34:
	adrp	x8, _FOUNTAIN_SIDE_POINTS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FOUNTAIN_SIDE_POINTS@GOTPAGEOFF]
Lloh36:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	str	x9, [sp]                        ; 8-byte Folded Spill
	cmp	x9, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
Lloh37:
	adrp	x8, _GL_TRIANGLE_STRIP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GL_TRIANGLE_STRIP@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_glBegin
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	lsl	x26, x9, #1
	add	x10, x26, #2
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	add	x28, x26, #3
	mov	w21, #1
	bfi	x21, x9, #1, #63
	mov	w19, #-1
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w19, w19, #1
	scvtf	d0, w19
	ldr	d1, [x20]
	fadd	d1, d1, d1
	scvtf	d2, w8
	fdiv	d1, d1, d2
	fmul	d8, d1, d0
	fmov	d0, d8
	bl	_cos
	scvtf	s9, x0
	fmov	d0, d8
	bl	_sin
	scvtf	s8, x0
	ldr	x8, [x25]
	mov	x22, x20
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	lsl	x20, x9, #2
	ldr	s1, [x8, x20]
	fmul	s0, s1, s9
	fmul	s1, s1, s8
	lsl	x23, x28, #2
	ldr	s2, [x8, x23]
	bl	_glNormal3f
	ldr	x8, [x27]
	ldr	s1, [x8, x20]
	fmul	s0, s1, s9
	fmul	s1, s1, s8
	ldr	s2, [x8, x23]
	bl	_glVertex3f
	ldr	x8, [x25]
	lsl	x20, x26, #2
	ldr	s1, [x8, x20]
	fmul	s0, s1, s9
	fmul	s1, s1, s8
	lsl	x23, x21, #2
	ldr	s2, [x8, x23]
	bl	_glNormal3f
	ldr	x8, [x27]
	ldr	s1, [x8, x20]
	mov	x20, x22
	fmul	s0, s1, s9
	fmul	s1, s1, s8
	ldr	s2, [x8, x23]
	bl	_glVertex3f
	ldr	w8, [x24]
	cmp	w19, w8
	b.lt	LBB0_7
	b	LBB0_4
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_glEndList
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_draw_fountain.fountain_list,8,3 ; @draw_fountain.fountain_list
	.comm	_GL_COMPILE_AND_EXECUTE,4,2     ; @GL_COMPILE_AND_EXECUTE
	.comm	_GL_FRONT,4,2                   ; @GL_FRONT
	.comm	_GL_DIFFUSE,4,2                 ; @GL_DIFFUSE
	.comm	_fountain_diffuse,4,2           ; @fountain_diffuse
	.comm	_GL_SPECULAR,4,2                ; @GL_SPECULAR
	.comm	_fountain_specular,4,2          ; @fountain_specular
	.comm	_GL_SHININESS,4,2               ; @GL_SHININESS
	.comm	_fountain_shininess,4,2         ; @fountain_shininess
	.comm	_FOUNTAIN_SIDE_POINTS,4,2       ; @FOUNTAIN_SIDE_POINTS
	.comm	_GL_TRIANGLE_STRIP,4,2          ; @GL_TRIANGLE_STRIP
	.comm	_FOUNTAIN_SWEEP_STEPS,4,2       ; @FOUNTAIN_SWEEP_STEPS
	.comm	_M_PI,8,3                       ; @M_PI
	.comm	_fountain_normal,8,3            ; @fountain_normal
	.comm	_fountain_side,8,3              ; @fountain_side
	.no_dead_strip	_draw_fountain
.subsections_via_symbols
