	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawTeamSpectators          ## -- Begin function CG_DrawTeamSpectators
	.p2align	4, 0x90
_CG_DrawTeamSpectators:                 ## @CG_DrawTeamSpectators
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cg@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$-1, 8(%r15)
	jne	LBB0_3
## %bb.2:
	movl	$0, 8(%r15)
	movl	(%rbx), %ecx
	incl	%ecx
	movl	%ecx, 12(%r15)
	movl	$-1, 16(%r15)
LBB0_3:
	movq	24(%r15), %r8
	cmpq	%rax, %r8
	jbe	LBB0_5
## %bb.4:
	movq	$0, 24(%r15)
	movl	(%rbx), %ecx
	incl	%ecx
	movl	%ecx, 12(%r15)
	movl	$-1, 16(%r15)
	xorl	%r8d, %r8d
LBB0_5:
	movq	32(%r15), %rcx
	cmpq	40(%r15), %rcx
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	jle	LBB0_6
## %bb.7:
	addq	$10, %rcx
	movq	%rcx, 40(%r15)
	movl	12(%r15), %esi
	movl	(%rbx), %ecx
	leal	2(%rcx), %edx
	cmpl	%edx, %esi
	jle	LBB0_8
## %bb.13:
	decl	%esi
	movl	%esi, 12(%r15)
	movl	16(%r15), %eax
	testl	%eax, %eax
	js	LBB0_15
## %bb.14:
	decl	%eax
	movl	%eax, 16(%r15)
	jmp	LBB0_15
LBB0_6:
	movl	12(%r15), %esi
LBB0_15:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	addl	%ecx, %eax
	addl	$-2, %eax
	cvtsi2ss	%eax, %xmm1
	movss	%xmm1, -32(%rbp)
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	(%rcx,%rax), %rdx
	addq	$-3, %rdx
	shlq	$2, %r8
	addq	48(%r15), %r8
	movq	$0, (%rsp)
	leaq	-32(%rbp), %rdi
	movl	%r14d, %ecx
	xorl	%r9d, %r9d
	callq	_CG_Text_Paint_Limit
	movl	16(%r15), %esi
	testl	%esi, %esi
	js	LBB0_17
## %bb.16:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	addl	%ecx, %eax
	addl	$-2, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -36(%rbp)
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	-3(%rcx,%rax), %rdx
	movq	24(%r15), %rax
	movq	48(%r15), %r8
	movq	%rax, (%rsp)
	leaq	-36(%rbp), %rdi
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%r14d, %ecx
	xorl	%r9d, %r9d
	callq	_CG_Text_Paint_Limit
LBB0_17:
	cmpq	$0, 24(%r15)
	movl	$-1, %eax
	je	LBB0_21
## %bb.18:
	movss	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_21
## %bb.19:
	cmpl	$-1, 16(%r15)
	jne	LBB0_22
## %bb.20:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	addl	%ecx, %eax
	addl	$-2, %eax
LBB0_21:
	movl	%eax, 16(%r15)
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpq	%rax, %r8
	jae	LBB0_10
## %bb.9:
	shlq	$2, %r8
	addq	48(%r15), %r8
	movq	%r8, %rdi
	movl	$1, %esi
	callq	_CG_Text_Width
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
                                        ## kill: def $eax killed $eax def $rax
	movl	12(%r15), %ecx
	leal	(%rax,%rcx), %esi
	decl	%esi
	movl	%esi, 12(%r15)
	movq	24(%r15), %r8
	incq	%r8
	movq	%r8, 24(%r15)
	jmp	LBB0_15
LBB0_10:
	movq	$0, 24(%r15)
	movl	16(%r15), %esi
	testl	%esi, %esi
	jns	LBB0_12
## %bb.11:
	movl	4(%rbx), %eax
	leal	(%rcx,%rax), %esi
	addl	$-2, %esi
LBB0_12:
	movl	%esi, 12(%r15)
	movl	$-1, 16(%r15)
	xorl	%r8d, %r8d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,56,3                        ## @cg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawTeamSpectators          ; -- Begin function CG_DrawTeamSpectators
	.p2align	2
_CG_DrawTeamSpectators:                 ; @CG_DrawTeamSpectators
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -56
	.cfi_offset b9, -64
Lloh0:
	adrp	x21, _cg@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cg@GOTPAGEOFF]
	ldr	x9, [x21]
	cbz	x9, LBB0_23
; %bb.1:
	mov	x20, x1
	fmov	s8, s0
	mov	x19, x0
	ldr	w8, [x21, #8]
	cmn	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	add	w8, w8, #1
	stp	wzr, w8, [x21, #8]
	mov	w8, #-1
	str	w8, [x21, #16]
LBB0_3:
	ldr	x8, [x21, #24]
	cmp	x8, x9
	b.ls	LBB0_5
; %bb.4:
	mov	x8, #0
	str	xzr, [x21, #24]
	ldr	w10, [x19]
	add	w10, w10, #1
	mov	w11, #-1
	stp	w10, w11, [x21, #12]
LBB0_5:
	ldp	x10, x11, [x21, #32]
	cmp	x10, x11
	b.le	LBB0_9
; %bb.6:
	add	x10, x10, #10
	str	x10, [x21, #40]
	ldr	w11, [x21, #12]
	ldr	w10, [x19]
	add	w12, w10, #2
	cmp	w11, w12
	b.le	LBB0_10
; %bb.7:
	sub	w1, w11, #1
	str	w1, [x21, #12]
	ldr	w9, [x21, #16]
	tbnz	w9, #31, LBB0_16
; %bb.8:
	sub	w9, w9, #1
	b	LBB0_15
LBB0_9:
	ldr	w1, [x21, #12]
	b	LBB0_16
LBB0_10:
	cmp	x8, x9
	b.hs	LBB0_12
; %bb.11:
	ldr	x9, [x21, #48]
	add	x0, x9, x8, lsl #2
	fmov	s0, s8
	mov	w1, #1
	bl	_CG_Text_Width
	ldr	w8, [x21, #12]
	add	w8, w0, w8
	sub	w1, w8, #1
	str	w1, [x21, #12]
	ldr	x8, [x21, #24]
	add	x8, x8, #1
	str	x8, [x21, #24]
	b	LBB0_16
LBB0_12:
	str	xzr, [x21, #24]
	ldr	w1, [x21, #16]
	tbz	w1, #31, LBB0_14
; %bb.13:
	ldr	w8, [x19, #4]
	add	w8, w10, w8
	sub	w1, w8, #2
LBB0_14:
	mov	x8, #0
	mov	w9, #-1
	str	w1, [x21, #12]
LBB0_15:
	str	w9, [x21, #16]
LBB0_16:
	ldp	w9, w10, [x19]
	add	w9, w9, w10
	sub	w9, w9, #2
	scvtf	s0, w9
	str	s0, [sp, #12]
	ldp	x10, x9, [x19, #8]
	add	x9, x9, x10
	sub	x2, x9, #3
	ldr	x9, [x21, #48]
	add	x4, x9, x8, lsl #2
	add	x0, sp, #12
	fmov	s0, s8
	mov	x3, x20
	mov	w5, #0
	mov	x6, #0
	bl	_CG_Text_Paint_Limit
	ldr	w1, [x21, #16]
	tbnz	w1, #31, LBB0_18
; %bb.17:
	ldp	w8, w9, [x19]
	add	w8, w8, w9
	sub	w8, w8, #2
	scvtf	s0, w8
	str	s0, [sp, #8]
	ldp	x9, x8, [x19, #8]
	add	x8, x8, x9
	sub	x2, x8, #3
	ldr	x4, [x21, #48]
	ldr	x6, [x21, #24]
	add	x0, sp, #8
	fmov	s0, s8
	mov	x3, x20
	mov	w5, #0
	bl	_CG_Text_Paint_Limit
LBB0_18:
	ldr	x9, [x21, #24]
	mov	w8, #-1
	cbz	x9, LBB0_22
; %bb.19:
	ldr	s0, [sp, #12]
	fcmp	s0, #0.0
	b.le	LBB0_22
; %bb.20:
	ldr	w8, [x21, #16]
	cmn	w8, #1
	b.ne	LBB0_23
; %bb.21:
	ldp	w8, w9, [x19]
	add	w8, w8, w9
	sub	w8, w8, #2
LBB0_22:
	str	w8, [x21, #16]
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,56,3                        ; @cg
.subsections_via_symbols
