	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function CG_DrawActive
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_DrawActive
	.p2align	4, 0x90
_CG_DrawActive:                         ## @CG_DrawActive
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_cg@GOTPCREL(%rip), %rbx
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	(%rax), %rcx
	movq	_PERS_TEAM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_PMF_SCOREBOARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_3
## %bb.16:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_DrawTourneyScoreboard       ## TAILCALL
LBB0_3:
	cmpl	$128, %edi
	je	LBB0_8
## %bb.4:
	cmpl	$130, %edi
	je	LBB0_5
## %bb.6:
	cmpl	$129, %edi
	jne	LBB0_10
## %bb.7:
	movq	_cg_stereoSeparation@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	negl	%ecx
	jmp	LBB0_9
LBB0_15:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_DrawInformation             ## TAILCALL
LBB0_8:
	movq	_cg_stereoSeparation@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
LBB0_9:
	cvtsi2ss	%ecx, %xmm0
	movaps	%xmm0, -32(%rbp)                ## 16-byte Spill
	jmp	LBB0_11
LBB0_5:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)                ## 16-byte Spill
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str(%rip), %rdi
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)                ## 16-byte Spill
	callq	_CG_Error
LBB0_11:
	xorl	%eax, %eax
	callq	_CG_TileClear
	movl	(%rbx), %edi
	callq	_VectorCopy
	xorps	%xmm0, %xmm0
	movaps	-32(%rbp), %xmm1                ## 16-byte Reload
	ucomiss	%xmm0, %xmm1
	jne	LBB0_12
	jnp	LBB0_13
LBB0_12:
	movaps	%xmm1, %xmm0
	movl	(%rbx), %edi
	xorps	LCPI0_0(%rip), %xmm0
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	movl	%edi, %edx
	callq	_VectorMA
	movq	%rbx, %rdi
	callq	_trap_R_RenderScene
	movl	(%rbx), %esi
	callq	_VectorCopy
	jmp	LBB0_14
LBB0_13:
	movq	_cg@GOTPCREL(%rip), %rdi
	callq	_trap_R_RenderScene
LBB0_14:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_Draw2D                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,24,3                        ## @cg
	.comm	_PERS_TEAM,8,3                  ## @PERS_TEAM
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_PMF_SCOREBOARD,4,2             ## @PMF_SCOREBOARD
	.comm	_cg_stereoSeparation,4,2        ## @cg_stereoSeparation
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_DrawActive: Undefined stereoView"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawActive                  ; -- Begin function CG_DrawActive
	.p2align	2
_CG_DrawActive:                         ; @CG_DrawActive
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
Lloh0:
	adrp	x19, _cg@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cg@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _PERS_TEAM@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PERS_TEAM@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
Lloh5:
	adrp	x10, _TEAM_SPECTATOR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x8, #8]
Lloh8:
	adrp	x9, _PMF_SCOREBOARD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PMF_SCOREBOARD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_CG_DrawTourneyScoreboard
LBB0_4:
	cmp	w0, #128
	b.eq	LBB0_9
; %bb.5:
	movi	d8, #0000000000000000
	cmp	w0, #130
	b.eq	LBB0_11
; %bb.6:
	cmp	w0, #129
	b.ne	LBB0_10
; %bb.7:
Lloh11:
	adrp	x8, _cg_stereoSeparation@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cg_stereoSeparation@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	neg	w8, w8, asr #1
	scvtf	s8, w8
	b	LBB0_11
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_CG_DrawInformation
LBB0_9:
Lloh14:
	adrp	x8, _cg_stereoSeparation@GOTPAGE
Lloh15:
	ldr	x8, [x8, _cg_stereoSeparation@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	scvtf	s8, w8
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CG_Error
LBB0_11:
	bl	_CG_TileClear
	ldr	w0, [x19]
	bl	_VectorCopy
	fcmp	s8, #0.0
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x19]
	fneg	s0, s8
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	mov	x2, x0
	bl	_VectorMA
	mov	x0, x19
	bl	_trap_R_RenderScene
	ldr	w1, [x19]
	bl	_VectorCopy
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x0, _cg@GOTPAGE
Lloh20:
	ldr	x0, [x0, _cg@GOTPAGEOFF]
	bl	_trap_R_RenderScene
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_CG_Draw2D
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,24,3                        ; @cg
	.comm	_PERS_TEAM,8,3                  ; @PERS_TEAM
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_PMF_SCOREBOARD,4,2             ; @PMF_SCOREBOARD
	.comm	_cg_stereoSeparation,4,2        ; @cg_stereoSeparation
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_DrawActive: Undefined stereoView"

.subsections_via_symbols
