	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function RB_ShadowTessEnd
LCPI0_0:
	.long	0x3e4ccccd                      ## float 0.200000003
LCPI0_1:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RB_ShadowTessEnd
	.p2align	4, 0x90
_RB_ShadowTessEnd:                      ## @RB_ShadowTessEnd
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_glConfig@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_8
## %bb.1:
	movq	_backEnd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_VectorCopy
	movq	_tess@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_shadowXyz@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %ecx
	movl	$-512, %esi                     ## imm = 0xFE00
	callq	_VectorMA
	incq	%rbx
	movslq	(%r12), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_3
LBB0_4:
	movq	_numEdgeDefs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_Com_Memset
	movl	16(%r12), %eax
	cmpl	$3, %eax
	jl	LBB0_7
## %bb.5:
	movl	%eax, %eax
	movl	$2863311531, %ecx               ## imm = 0xAAAAAAAB
	imulq	%rax, %rcx
	shrq	$33, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$8, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	24(%r12), %rcx
	movslq	-8(%rcx,%r14), %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movslq	-4(%rcx,%r14), %r12
	movslq	(%rcx,%r14), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rdx,8), %rbx
	movq	(%rax,%r12,8), %rdi
	movq	(%rax,%rcx,8), %r13
	movq	%rbx, %rsi
	callq	_VectorSubtract
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_VectorSubtract
	callq	_CrossProduct
	callq	_DotProduct
	xorl	%edx, %edx
	ucomiss	LCPI0_1(%rip), %xmm0
	seta	%dl
	movq	_facing@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rcx, %r13
	movl	%edx, (%rax,%r15,4)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_R_AddEdgeDef
	movq	(%r13), %rax
	movl	(%rax,%r15,4), %edx
	movl	%r12d, %edi
	movq	_tess@GOTPCREL(%rip), %r12
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_R_AddEdgeDef
	movq	_facing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edx
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_R_AddEdgeDef
	incq	%r15
	addq	$12, %r14
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_6
LBB0_7:
	movq	_tr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GL_Bind
	movq	_GLS_SRCBLEND_ONE@GOTPCREL(%rip), %rax
	movq	_GLS_DSTBLEND_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_GL_State
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	movaps	%xmm0, %xmm2
	callq	_qglColor3f
	movq	_GL_COLOR_WRITEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_qglGetBooleanv
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edi
	movl	%ecx, %esi
	movl	%ecx, %edx
	callq	_qglColorMask
	movq	_GL_STENCIL_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_qglEnable
	movq	_GL_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	movl	$255, %edx
	callq	_qglStencilFunc
	movq	_CT_BACK_SIDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GL_Cull
	movq	_GL_KEEP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GL_INCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edi, %esi
	callq	_qglStencilOp
	xorl	%eax, %eax
	callq	_R_RenderShadowEdges
	movq	_CT_FRONT_SIDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GL_Cull
	movl	(%rbx), %edi
	movq	_GL_DECR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edi, %esi
	callq	_qglStencilOp
	xorl	%eax, %eax
	callq	_R_RenderShadowEdges
	movl	-64(%rbp), %edi
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	callq	_qglColorMask
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_glConfig,4,2                   ## @glConfig
	.comm	_backEnd,8,3                    ## @backEnd
	.comm	_tess,32,3                      ## @tess
	.comm	_shadowXyz,8,3                  ## @shadowXyz
	.comm	_numEdgeDefs,4,2                ## @numEdgeDefs
	.comm	_facing,8,3                     ## @facing
	.comm	_tr,4,2                         ## @tr
	.comm	_GLS_SRCBLEND_ONE,4,2           ## @GLS_SRCBLEND_ONE
	.comm	_GLS_DSTBLEND_ZERO,4,2          ## @GLS_DSTBLEND_ZERO
	.comm	_GL_COLOR_WRITEMASK,4,2         ## @GL_COLOR_WRITEMASK
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_GL_STENCIL_TEST,4,2            ## @GL_STENCIL_TEST
	.comm	_GL_ALWAYS,4,2                  ## @GL_ALWAYS
	.comm	_CT_BACK_SIDED,4,2              ## @CT_BACK_SIDED
	.comm	_GL_KEEP,4,2                    ## @GL_KEEP
	.comm	_GL_INCR,4,2                    ## @GL_INCR
	.comm	_CT_FRONT_SIDED,4,2             ## @CT_FRONT_SIDED
	.comm	_GL_DECR,4,2                    ## @GL_DECR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_ShadowTessEnd               ; -- Begin function RB_ShadowTessEnd
	.p2align	2
_RB_ShadowTessEnd:                      ; @RB_ShadowTessEnd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _glConfig@GOTPAGE
Lloh4:
	ldr	x8, [x8, _glConfig@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #4
	b.lt	LBB0_8
; %bb.1:
Lloh6:
	adrp	x8, _backEnd@GOTPAGE
Lloh7:
	ldr	x8, [x8, _backEnd@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_VectorCopy
Lloh9:
	adrp	x24, _tess@GOTPAGE
Lloh10:
	ldr	x24, [x24, _tess@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x19, #0
Lloh11:
	adrp	x20, _shadowXyz@GOTPAGE
Lloh12:
	ldr	x20, [x20, _shadowXyz@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldr	x0, [x8, x19, lsl #3]
	ldr	x8, [x20]
	ldr	w3, [x8, x19, lsl #2]
	mov	w1, #-512
	bl	_VectorMA
	add	x19, x19, #1
	ldrsw	x8, [x24]
	cmp	x19, x8
	b.lt	LBB0_3
LBB0_4:
Lloh13:
	adrp	x9, _numEdgeDefs@GOTPAGE
Lloh14:
	ldr	x9, [x9, _numEdgeDefs@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_Com_Memset
	ldr	w8, [x24, #16]
	cmp	w8, #3
	b.lt	LBB0_7
; %bb.5:
	mov	x25, #0
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #31
	and	x26, x8, #0x1fffffffc
	mov	w27, #4
Lloh16:
	adrp	x28, _facing@GOTPAGE
Lloh17:
	ldr	x28, [x28, _facing@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #24]
	add	x8, x8, x27
	ldpsw	x19, x20, [x8, #-4]
	ldrsw	x21, [x8, #4]
	ldr	x8, [x24, #8]
	ldr	x22, [x8, x19, lsl #3]
	ldr	x0, [x8, x20, lsl #3]
	ldr	x23, [x8, x21, lsl #3]
	mov	x1, x22
	bl	_VectorSubtract
	mov	x0, x23
	mov	x1, x22
	bl	_VectorSubtract
	bl	_CrossProduct
	bl	_DotProduct
	fcmp	s0, #0.0
	cset	w2, gt
	ldr	x8, [x28]
	str	w2, [x8, x25]
	mov	x0, x19
	mov	x1, x20
	bl	_R_AddEdgeDef
	ldr	x8, [x28]
	ldr	w2, [x8, x25]
	mov	x0, x20
	mov	x1, x21
	bl	_R_AddEdgeDef
	ldr	x8, [x28]
	ldr	w2, [x8, x25]
	mov	x0, x21
	mov	x1, x19
	bl	_R_AddEdgeDef
	add	x25, x25, #4
	add	x27, x27, #12
	cmp	x26, x25
	b.ne	LBB0_6
LBB0_7:
Lloh18:
	adrp	x8, _tr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_GL_Bind
Lloh21:
	adrp	x8, _GLS_SRCBLEND_ONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GLS_SRCBLEND_ONE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _GLS_DSTBLEND_ZERO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _GLS_DSTBLEND_ZERO@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_GL_State
	mov	w8, #52429
	movk	w8, #15948, lsl #16
	fmov	s0, w8
	fmov	s1, s0
	fmov	s2, s0
	bl	_qglColor3f
Lloh27:
	adrp	x8, _GL_COLOR_WRITEMASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GL_COLOR_WRITEMASK@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_qglGetBooleanv
Lloh30:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, x0
	mov	x2, x0
	mov	x3, x0
	bl	_qglColorMask
Lloh33:
	adrp	x8, _GL_STENCIL_TEST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GL_STENCIL_TEST@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_qglEnable
Lloh36:
	adrp	x8, _GL_ALWAYS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GL_ALWAYS@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	w1, #1
	mov	w2, #255
	bl	_qglStencilFunc
Lloh39:
	adrp	x8, _CT_BACK_SIDED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CT_BACK_SIDED@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_GL_Cull
Lloh42:
	adrp	x19, _GL_KEEP@GOTPAGE
Lloh43:
	ldr	x19, [x19, _GL_KEEP@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh44:
	adrp	x8, _GL_INCR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GL_INCR@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_qglStencilOp
	bl	_R_RenderShadowEdges
Lloh47:
	adrp	x8, _CT_FRONT_SIDED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CT_FRONT_SIDED@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_GL_Cull
	ldr	w0, [x19]
Lloh50:
	adrp	x8, _GL_DECR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _GL_DECR@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_qglStencilOp
	bl	_R_RenderShadowEdges
	ldp	w0, w1, [sp, #8]
	ldp	w2, w3, [sp, #16]
	bl	_qglColorMask
LBB0_8:
	ldr	x8, [sp, #24]
Lloh53:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh54:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	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
	add	sp, sp, #128
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_glConfig,4,2                   ; @glConfig
	.comm	_backEnd,8,3                    ; @backEnd
	.comm	_tess,32,3                      ; @tess
	.comm	_shadowXyz,8,3                  ; @shadowXyz
	.comm	_numEdgeDefs,4,2                ; @numEdgeDefs
	.comm	_facing,8,3                     ; @facing
	.comm	_tr,4,2                         ; @tr
	.comm	_GLS_SRCBLEND_ONE,4,2           ; @GLS_SRCBLEND_ONE
	.comm	_GLS_DSTBLEND_ZERO,4,2          ; @GLS_DSTBLEND_ZERO
	.comm	_GL_COLOR_WRITEMASK,4,2         ; @GL_COLOR_WRITEMASK
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_GL_STENCIL_TEST,4,2            ; @GL_STENCIL_TEST
	.comm	_GL_ALWAYS,4,2                  ; @GL_ALWAYS
	.comm	_CT_BACK_SIDED,4,2              ; @CT_BACK_SIDED
	.comm	_GL_KEEP,4,2                    ; @GL_KEEP
	.comm	_GL_INCR,4,2                    ; @GL_INCR
	.comm	_CT_FRONT_SIDED,4,2             ; @CT_FRONT_SIDED
	.comm	_GL_DECR,4,2                    ; @GL_DECR
.subsections_via_symbols
