	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function drawTorus
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_drawTorus:                             ## @drawTorus
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_drawTorus.torus_list(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.11:
	addq	$56, %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, _drawTorus.torus_list(%rip)
	movq	_GL_COMPILE_AND_EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_glNewList
	movq	_TORUS_MINOR_RES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.2:
	movq	_M_PI@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm0
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movq	_TORUS_MINOR@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_glEnd
	incl	%r14d
	movq	_TORUS_MINOR_RES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movq	_GL_QUAD_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glBegin
	movq	_TORUS_MAJOR_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	leal	1(%rbx), %eax
	movq	_TORUS_MAJOR_RES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmpl	%r13d, %ebx
	movl	%eax, %ebx
	jge	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%r14,%r12), %eax
	movq	_TORUS_MINOR_RES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edx, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	movl	%ebx, %eax
	cltd
	idivl	%r13d
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edx, %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movq	_TORUS_MAJOR@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movsd	%xmm1, -88(%rbp)                ## 8-byte Spill
	movsd	(%r15), %xmm1                   ## xmm1 = mem[0],zero
	movsd	%xmm1, -80(%rbp)                ## 8-byte Spill
	mulsd	-72(%rbp), %xmm0                ## 8-byte Folded Reload
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	divsd	%xmm1, %xmm0
	callq	___sincos_stret
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	mulsd	-80(%rbp), %xmm1                ## 8-byte Folded Reload
	addsd	-88(%rbp), %xmm1                ## 8-byte Folded Reload
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	-72(%rbp), %xmm1                ## 8-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r13d, %xmm0
	divsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	callq	___sincos_stret
	movsd	-64(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movapd	%xmm4, %xmm2
	mulsd	%xmm1, %xmm2
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	movsd	-56(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	-80(%rbp), %xmm3                ## 8-byte Folded Reload
	mulsd	%xmm0, %xmm4
	movsd	%xmm4, -64(%rbp)                ## 8-byte Spill
	movsd	-88(%rbp), %xmm6                ## 8-byte Reload
                                        ## xmm6 = mem[0],zero
	mulsd	%xmm6, %xmm1
	subsd	%xmm1, %xmm2
	mulsd	%xmm0, %xmm6
	movapd	%xmm4, %xmm0
	subsd	%xmm6, %xmm0
	movapd	%xmm3, %xmm1
	movapd	%xmm3, %xmm4
	movsd	%xmm3, -56(%rbp)                ## 8-byte Spill
	mulsd	%xmm3, %xmm1
	movapd	%xmm2, %xmm3
	mulsd	%xmm2, %xmm3
	addsd	%xmm1, %xmm3
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	addsd	%xmm3, %xmm1
	sqrtsd	%xmm1, %xmm1
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	divsd	%xmm1, %xmm3
	mulsd	%xmm3, %xmm2
	movapd	%xmm4, %xmm1
	mulsd	%xmm3, %xmm1
	mulsd	%xmm0, %xmm3
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm2, %xmm0
	cvtsd2ss	%xmm1, %xmm1
	xorps	%xmm2, %xmm2
	cvtsd2ss	%xmm3, %xmm2
	callq	_glNormal3f
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	cvtsd2ss	%xmm1, %xmm1
	movsd	-64(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	cvtsd2ss	%xmm2, %xmm2
	callq	_glVertex3f
	subl	$1, %r12d
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=3
	movq	_TORUS_MAJOR_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_6
LBB0_10:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glEndList                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_drawTorus.torus_list,8,3 ## @drawTorus.torus_list
	.comm	_GL_COMPILE_AND_EXECUTE,4,2     ## @GL_COMPILE_AND_EXECUTE
	.comm	_M_PI,8,3                       ## @M_PI
	.comm	_TORUS_MINOR_RES,4,2            ## @TORUS_MINOR_RES
	.comm	_GL_QUAD_STRIP,4,2              ## @GL_QUAD_STRIP
	.comm	_TORUS_MAJOR_RES,4,2            ## @TORUS_MAJOR_RES
	.comm	_TORUS_MAJOR,8,3                ## @TORUS_MAJOR
	.comm	_TORUS_MINOR,8,3                ## @TORUS_MINOR
	.no_dead_strip	_drawTorus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drawTorus
_drawTorus:                             ; @drawTorus
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-160]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 160
	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	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	adrp	x19, _drawTorus.torus_list@PAGE
	ldr	x0, [x19, _drawTorus.torus_list@PAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [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
	ldp	d15, d14, [sp], #160            ; 16-byte Folded Reload
	b	_glCallList
LBB0_2:
	mov	w0, #1
	bl	_glGenLists
	str	x0, [x19, _drawTorus.torus_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, _TORUS_MINOR_RES@GOTPAGE
Lloh4:
	ldr	x19, [x19, _TORUS_MINOR_RES@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	w22, #0
Lloh5:
	adrp	x8, _M_PI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh7:
	ldr	d0, [x8]
	fadd	d9, d0, d0
Lloh8:
	adrp	x20, _GL_QUAD_STRIP@GOTPAGE
Lloh9:
	ldr	x20, [x20, _GL_QUAD_STRIP@GOTPAGEOFF]
Lloh10:
	adrp	x21, _TORUS_MAJOR_RES@GOTPAGE
Lloh11:
	ldr	x21, [x21, _TORUS_MAJOR_RES@GOTPAGEOFF]
	fmov	d10, #0.50000000
Lloh12:
	adrp	x23, _TORUS_MAJOR@GOTPAGE
Lloh13:
	ldr	x23, [x23, _TORUS_MAJOR@GOTPAGEOFF]
Lloh14:
	adrp	x24, _TORUS_MINOR@GOTPAGE
Lloh15:
	ldr	x24, [x24, _TORUS_MINOR@GOTPAGEOFF]
	fmov	d11, #1.00000000
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_glEnd
	ldr	w8, [x19]
	mov	x22, x25
	cmp	w25, w8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x20]
	bl	_glBegin
	ldr	w27, [x21]
	add	w25, w22, #1
	tbnz	w27, #31, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19]
	sdiv	w9, w25, w8
	msub	w9, w9, w8, w25
	scvtf	d0, w9
	fadd	d0, d0, d10
	sdiv	w9, w26, w27
	msub	w9, w9, w27, w26
	scvtf	d12, w9
	ldr	d13, [x23]
	ldr	d14, [x24]
	fmul	d0, d9, d0
	scvtf	d1, w8
	fdiv	d0, d0, d1
	bl	___sincos_stret
	fmov	d8, d0
	fmadd	d15, d14, d1, d13
	fmul	d0, d9, d12
	scvtf	d1, w27
	fdiv	d0, d0, d1
	bl	___sincos_stret
	fmul	d12, d15, d1
	fmul	d8, d14, d8
	fmul	d14, d15, d0
	fmsub	d1, d13, d1, d12
	fmsub	d0, d13, d0, d14
	fmul	d2, d8, d8
	fmadd	d2, d1, d1, d2
	fmadd	d2, d0, d0, d2
	fsqrt	d2, d2
	fdiv	d2, d11, d2
	fmul	d1, d1, d2
	fmul	d3, d8, d2
	fmul	d2, d0, d2
	fcvt	s0, d1
	fcvt	s1, d3
	fcvt	s2, d2
	bl	_glNormal3f
	fcvt	s0, d12
	fcvt	s1, d8
	fcvt	s2, d14
	bl	_glVertex3f
	ldr	w8, [x19]
	sdiv	w9, w22, w8
	msub	w9, w9, w8, w22
	scvtf	d0, w9
	fadd	d0, d0, d10
	ldr	w27, [x21]
	sdiv	w9, w26, w27
	msub	w9, w9, w27, w26
	scvtf	d12, w9
	ldr	d13, [x23]
	ldr	d14, [x24]
	fmul	d0, d9, d0
	scvtf	d1, w8
	fdiv	d0, d0, d1
	bl	___sincos_stret
	fmov	d8, d0
	fmadd	d15, d14, d1, d13
	fmul	d0, d9, d12
	scvtf	d1, w27
	fdiv	d0, d0, d1
	bl	___sincos_stret
	fmul	d12, d15, d1
	fmul	d8, d14, d8
	fmul	d14, d15, d0
	fmsub	d1, d13, d1, d12
	fmsub	d0, d13, d0, d14
	fmul	d2, d8, d8
	fmadd	d2, d1, d1, d2
	fmadd	d2, d0, d0, d2
	fsqrt	d2, d2
	fdiv	d2, d11, d2
	fmul	d1, d1, d2
	fmul	d3, d8, d2
	fmul	d2, d0, d2
	fcvt	s0, d1
	fcvt	s1, d3
	fcvt	s2, d2
	bl	_glNormal3f
	fcvt	s0, d12
	fcvt	s1, d8
	fcvt	s2, d14
	bl	_glVertex3f
	add	w8, w26, #1
	ldr	w27, [x21]
	cmp	w26, w27
	mov	x26, x8
	b.lt	LBB0_7
	b	LBB0_4
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [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
	ldp	d15, d14, [sp], #160            ; 16-byte Folded Reload
	b	_glEndList
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_drawTorus.torus_list,8,3 ; @drawTorus.torus_list
	.comm	_GL_COMPILE_AND_EXECUTE,4,2     ; @GL_COMPILE_AND_EXECUTE
	.comm	_M_PI,8,3                       ; @M_PI
	.comm	_TORUS_MINOR_RES,4,2            ; @TORUS_MINOR_RES
	.comm	_GL_QUAD_STRIP,4,2              ; @GL_QUAD_STRIP
	.comm	_TORUS_MAJOR_RES,4,2            ; @TORUS_MAJOR_RES
	.comm	_TORUS_MAJOR,8,3                ; @TORUS_MAJOR
	.comm	_TORUS_MINOR,8,3                ; @TORUS_MINOR
	.no_dead_strip	_drawTorus
.subsections_via_symbols
