	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RenderShadowEdges            ## -- Begin function R_RenderShadowEdges
	.p2align	4, 0x90
_R_RenderShadowEdges:                   ## @R_RenderShadowEdges
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_tess@GOTPCREL(%rip), %rax
	movl	16(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.1:
	movq	_edgeDefs@GOTPCREL(%rip), %r9
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_tess@GOTPCREL(%rip), %rax
	movl	16(%rax), %eax
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_22
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movq	_numEdgeDefs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %r13d
	testl	%r13d, %r13d
	jle	LBB0_21
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_GL_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglBegin
	movq	_tess@GOTPCREL(%rip), %r12
	movq	24(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_qglVertex3fv
	movq	24(%r12), %rax
	movslq	16(%r12), %rcx
	movslq	%ebx, %rdx
	addq	%rcx, %rdx
	movl	(%rax,%rdx,4), %edi
	callq	_qglVertex3fv
	movq	24(%r12), %rax
	movl	(%rax,%r15,4), %edi
	callq	_qglVertex3fv
	movq	24(%r12), %rax
	movslq	16(%r12), %rcx
	addq	%r15, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_qglVertex3fv
	xorl	%eax, %eax
	callq	_qglEnd
	movq	_edgeDefs@GOTPCREL(%rip), %r9
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	cmpq	%r13, %r14
	je	LBB0_20
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	movq	(%r9), %rax
	movq	(%rax,%rbx,8), %rcx
	movq	%r14, %rdx
	shlq	$4, %rdx
	cmpq	$0, (%rcx,%rdx)
	je	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	$0, -56(%rbp)
	movslq	8(%rcx,%rdx), %r15
	movq	_numEdgeDefs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r15,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%rax,%r15,8), %r8
	cmpl	$1, %ecx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edx, %edx
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	testb	$1, %cl
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=2
	shlq	$4, %rdx
	movl	8(%r8,%rdx), %eax
	cmpq	%rax, %rbx
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r8,%rdx), %rax
	incl	-56(%rbp,%rax,4)
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, -52(%rbp)
	jne	LBB0_19
	jmp	LBB0_18
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%ecx, %esi
	andl	$-2, %esi
	leaq	24(%r8), %rdi
	xorl	%edx, %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=3
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %rsi
	je	LBB0_14
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-16(%rdi), %eax
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-24(%rdi), %rax
	incl	-56(%rbp,%rax,4)
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=3
	movl	(%rdi), %eax
	cmpq	%rax, %rbx
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-8(%rdi), %rax
	incl	-56(%rbp,%rax,4)
	jmp	LBB0_13
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,32,3                      ## @tess
	.comm	_numEdgeDefs,8,3                ## @numEdgeDefs
	.comm	_edgeDefs,8,3                   ## @edgeDefs
	.comm	_GL_TRIANGLE_STRIP,4,2          ## @GL_TRIANGLE_STRIP
	.comm	_facing,8,3                     ## @facing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_RenderShadowEdges            ; -- Begin function R_RenderShadowEdges
	.p2align	2
_R_RenderShadowEdges:                   ; @R_RenderShadowEdges
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, _tess@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tess@GOTPAGEOFF]
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x20, #0
Lloh2:
	adrp	x21, _numEdgeDefs@GOTPAGE
Lloh3:
	ldr	x21, [x21, _numEdgeDefs@GOTPAGEOFF]
Lloh4:
	adrp	x22, _edgeDefs@GOTPAGE
Lloh5:
	ldr	x22, [x22, _edgeDefs@GOTPAGEOFF]
	add	x23, sp, #8
Lloh6:
	adrp	x24, _GL_TRIANGLE_STRIP@GOTPAGE
Lloh7:
	ldr	x24, [x24, _GL_TRIANGLE_STRIP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	x9, [x21]
	ldr	w25, [x9, x20, lsl #2]
	cmp	w25, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x24]
	bl	_qglBegin
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x20, lsl #2]
	bl	_qglVertex3fv
	ldr	x8, [x19, #24]
	ldr	w9, [x19, #16]
	add	w9, w9, w20
	ldr	w0, [x8, w9, sxtw #2]
	bl	_qglVertex3fv
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x27, lsl #2]
	bl	_qglVertex3fv
	ldr	x8, [x19, #24]
	ldr	w9, [x19, #16]
	add	w9, w9, w27
	ldr	w0, [x8, w9, sxtw #2]
	bl	_qglVertex3fv
	bl	_qglEnd
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x26, x26, #1
	cmp	x26, x25
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	x9, [x22]
	ldr	x8, [x9, x20, lsl #3]
	lsl	x10, x26, #4
	ldr	x10, [x8, x10]
	cbz	x10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	str	xzr, [sp, #8]
	add	x8, x8, x26, lsl #4
	ldrsw	x27, [x8, #8]
	ldr	x8, [x21]
	ldr	w8, [x8, x27, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x9, x27, lsl #3]
	add	x9, x9, #8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=3
	add	x9, x9, #16
	subs	x8, x8, #1
	b.eq	LBB0_14
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w10, [x9]
	cmp	x20, x10
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=3
	ldur	x10, [x9, #-8]
	lsl	x10, x10, #2
	ldr	w11, [x23, x10]
	add	w11, w11, #1
	str	w11, [x23, x10]
	b	LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_7
	b	LBB0_6
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,32,3                      ; @tess
	.comm	_numEdgeDefs,8,3                ; @numEdgeDefs
	.comm	_edgeDefs,8,3                   ; @edgeDefs
	.comm	_GL_TRIANGLE_STRIP,4,2          ; @GL_TRIANGLE_STRIP
	.comm	_facing,8,3                     ; @facing
.subsections_via_symbols
