	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawActive                  ## -- Begin function 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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_cg@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	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.7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_DrawTourneyScoreboard       ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	callq	_CG_TileClear
	movq	_STEREO_CENTER@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_CG_DrawCrosshair3D
LBB0_5:
	movq	_cg@GOTPCREL(%rip), %rdi
	callq	_trap_R_RenderScene
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_Draw2D                      ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_DrawInformation             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,16,3                        ## @cg
	.comm	_PERS_TEAM,8,3                  ## @PERS_TEAM
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_PMF_SCOREBOARD,4,2             ## @PMF_SCOREBOARD
	.comm	_STEREO_CENTER,8,3              ## @STEREO_CENTER
.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _cg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _PERS_TEAM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PERS_TEAM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
Lloh6:
	adrp	x10, _TEAM_SPECTATOR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x8, #8]
Lloh9:
	adrp	x9, _PMF_SCOREBOARD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PMF_SCOREBOARD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CG_DrawTourneyScoreboard
LBB0_4:
	bl	_CG_TileClear
Lloh12:
	adrp	x8, _STEREO_CENTER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STEREO_CENTER@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_6
; %bb.5:
	bl	_CG_DrawCrosshair3D
LBB0_6:
Lloh15:
	adrp	x0, _cg@GOTPAGE
Lloh16:
	ldr	x0, [x0, _cg@GOTPAGEOFF]
	bl	_trap_R_RenderScene
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CG_Draw2D
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CG_DrawInformation
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,16,3                        ; @cg
	.comm	_PERS_TEAM,8,3                  ; @PERS_TEAM
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_PMF_SCOREBOARD,4,2             ; @PMF_SCOREBOARD
	.comm	_STEREO_CENTER,8,3              ; @STEREO_CENTER
.subsections_via_symbols
