	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_HeadCountByTeam
_UI_HeadCountByTeam:                    ## @UI_HeadCountByTeam
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpb	$0, _UI_HeadCountByTeam.init(%rip)
	jne	LBB0_12
## %bb.1:
	movq	_uiInfo@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.2:
	movl	4(%r14), %eax
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %ecx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	%ecx, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	16(%r14), %rdx
	leaq	(%r15,%r15,4), %r12
	movl	$0, (%rdx,%r12,8)
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$8, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	32(%rdx,%r12,8), %edi
	movq	32(%r14), %rax
	movl	(%rax,%r13), %esi
	callq	_UI_hasSkinForBase
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movq	16(%r14), %rcx
	orl	%eax, (%rcx,%r12,8)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	movslq	4(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	16(%r14), %rdx
	addq	$16, %r13
	jmp	LBB0_5
LBB0_11:
	movb	$1, _UI_HeadCountByTeam.init(%rip)
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_UI_Cvar_VariableString
	movl	%eax, %edi
	callq	_UI_TeamIndexFromName
	movl	%eax, %ecx
	movq	_uiInfo@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r10d
	movslq	%eax, %r13
	testl	%r10d, %r10d
	jle	LBB0_13
## %bb.27:
	movq	16(%rbx), %r14
	movq	_TEAM_MEMBERS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r13, %r8
	shlq	$4, %r8
	addq	32(%rbx), %r8
	movl	$1, %r15d
	shll	%cl, %r15d
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	xorl	%edx, %edx
	movq	_qfalse@GOTPCREL(%rip), %r11
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rdx
	cmpq	%r10, %rdx
	je	LBB0_14
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	movq	(%r11), %rsi
	leaq	(%rdx,%rdx,4), %rax
	movq	%rsi, 8(%r14,%rax,8)
	testl	%r12d, %r12d
	jle	LBB0_34
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	leaq	(%r14,%rax,8), %rsi
	addq	$8, %rsi
	movq	(%r8), %rdi
	xorl	%eax, %eax
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=2
	incq	%rax
	cmpq	%rax, %r12
	je	LBB0_34
LBB0_30:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rdi,%rax,8)
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	testl	%r15d, -8(%rsi)
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%r9, (%rsi)
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_34
LBB0_13:
	movq	_TEAM_MEMBERS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_14:
	testl	%r12d, %r12d
	jle	LBB0_41
## %bb.15:
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %ecx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	shlq	$4, %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_TEAM_MEMBERS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_40:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	movslq	%r12d, %rax
	movq	%rsi, %rdx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rsi
	jge	LBB0_41
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_22 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_40
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_38:                                ##   in Loop: Header=BB0_18 Depth=2
	incq	%r15
	movslq	8(%rbx), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_39
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_22 Depth 3
	movq	24(%rbx), %rax
	movq	%r15, %r14
	shlq	$4, %r14
	movq	8(%rax,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_38
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	32(%rbx), %rax
	movq	(%rax,%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdi
	callq	_Q_stricmp
	testq	%rax, %rax
	jne	LBB0_38
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_38
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=2
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=3
	incq	%r12
	movslq	%eax, %rcx
	addq	$40, %r13
	cmpq	%rcx, %r12
	jge	LBB0_37
LBB0_22:                                ##   Parent Loop BB0_16 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	16(%rbx), %rcx
	cmpl	$-1, 16(%rcx,%r13)
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=3
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rcx,%r13)
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=3
	movq	24(%rbx), %rax
	movq	(%rax,%r14), %rdi
	movq	24(%rcx,%r13), %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_35
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=3
	movl	(%rbx), %eax
	jmp	LBB0_26
LBB0_35:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	16(%rbx), %rax
	movq	8(%rax,%r13), %rcx
	movq	_qfalse@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax,%r13)
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_37
LBB0_41:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_UI_HeadCountByTeam.init,1,2 ## @UI_HeadCountByTeam.init
	.comm	_uiInfo,40,3                    ## @uiInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_teamName"

	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_TEAM_MEMBERS,4,2               ## @TEAM_MEMBERS
	.comm	_qtrue,8,3                      ## @qtrue
	.no_dead_strip	_UI_HeadCountByTeam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_HeadCountByTeam
_UI_HeadCountByTeam:                    ; @UI_HeadCountByTeam
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	adrp	x19, _UI_HeadCountByTeam.init@PAGE
	ldrb	w8, [x19, _UI_HeadCountByTeam.init@PAGEOFF]
Lloh0:
	adrp	x20, _uiInfo@GOTPAGE
Lloh1:
	ldr	x20, [x20, _uiInfo@GOTPAGEOFF]
	tbnz	w8, #0, LBB0_12
; %bb.1:
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x21, #0
	ldr	w8, [x20, #4]
	mov	w22, #40
	mov	w23, #1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x20]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x10, [x20, #16]
	mul	x11, x21, x22
	str	wzr, [x10, x11]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	mov	w25, #8
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x8, x21, x22, x10
	ldr	w0, [x8, #32]
	ldr	x8, [x20, #32]
	ldr	w1, [x8, x25]
	bl	_UI_hasSkinForBase
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	lsl	w8, w23, w24
	ldr	x9, [x20, #16]
	mul	x10, x21, x22
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	ldrsw	x8, [x20, #4]
	cmp	x24, x8
	b.ge	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [x20, #16]
	add	x25, x25, #16
	b	LBB0_7
LBB0_11:
	mov	w8, #1
	strb	w8, [x19, _UI_HeadCountByTeam.init@PAGEOFF]
LBB0_12:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UI_Cvar_VariableString
	bl	_UI_TeamIndexFromName
                                        ; kill: def $w0 killed $w0 def $x0
Lloh4:
	adrp	x22, _TEAM_MEMBERS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _TEAM_MEMBERS@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh6:
	adrp	x14, _qtrue@GOTPAGE
Lloh7:
	ldr	x14, [x14, _qtrue@GOTPAGEOFF]
Lloh8:
	adrp	x23, _qfalse@GOTPAGE
Lloh9:
	ldr	x23, [x23, _qfalse@GOTPAGEOFF]
	cmp	w9, #0
	b.le	LBB0_21
; %bb.13:
	mov	x10, #0
	mov	w19, #0
	ldr	x11, [x20, #16]
	ldr	w8, [x22]
	ldr	x12, [x20, #32]
	add	x12, x12, w0, sxtw #4
	mov	w13, #1
	lsl	w13, w13, w0
	ldr	x14, [x14]
	mov	w15, #40
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_22
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x17, [x23]
	madd	x16, x10, x15, x11
	str	x17, [x16, #8]!
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x17, [x12]
	madd	x1, x10, x15, x11
	mov	x2, x8
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x17, x17, #8
	subs	x2, x2, #1
	b.eq	LBB0_14
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x3, [x17]
	cbz	x3, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w3, [x1]
	tst	w3, w13
	b.eq	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	str	x14, [x16]
	add	w19, w19, #1
	b	LBB0_14
LBB0_21:
	mov	w19, #0
	ldr	w8, [x22]
LBB0_22:
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.23:
	mov	x24, #0
	sxtw	x10, w0
	mov	w9, #1
	lsl	w25, w9, w0
	ldr	w9, [x20, #8]
	lsl	x26, x10, #4
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	w8, [x22]
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_39
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
                                        ;       Child Loop BB0_33 Depth 3
	cmp	w9, #1
	b.lt	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x27, #0
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	x27, x27, #1
	ldrsw	x9, [x20, #8]
	cmp	x27, x9
	b.ge	LBB0_24
LBB0_29:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_33 Depth 3
	ldr	x8, [x20, #24]
	add	x8, x8, x27, lsl #4
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [x20, #32]
	ldr	x8, [x8, x26]
	ldr	x0, [x8, x24, lsl #3]
	bl	_Q_stricmp
	ldr	w8, [x20]
	cmp	x0, #0
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_28
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	x28, #0
	mov	x21, #0
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=3
	add	x21, x21, #1
	add	x28, x28, #40
	cmp	x21, w8, sxtw
	b.ge	LBB0_28
LBB0_33:                                ;   Parent Loop BB0_26 Depth=1
                                        ;     Parent Loop BB0_29 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x20, #16]
	add	x10, x9, x28
	ldr	w10, [x10, #16]
	cmn	w10, #1
	b.eq	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=3
	ldr	w10, [x9, x28]
	tst	w10, w25
	b.eq	LBB0_32
; %bb.35:                               ;   in Loop: Header=BB0_33 Depth=3
	ldr	x8, [x20, #24]
	lsl	x10, x27, #4
	ldr	x0, [x8, x10]
	add	x8, x9, x28
	ldr	x1, [x8, #24]
	bl	_Q_stricmp
	cbz	x0, LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_33 Depth=3
	ldr	w8, [x20]
	b	LBB0_32
LBB0_37:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [x20, #16]
	add	x8, x8, x28
	ldr	x9, [x8, #8]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_28
; %bb.38:                               ;   in Loop: Header=BB0_29 Depth=2
Lloh10:
	adrp	x9, _qtrue@GOTPAGE
Lloh11:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	x9, [x8, #8]
	add	w19, w19, #1
	b	LBB0_28
LBB0_39:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_UI_HeadCountByTeam.init,1,2 ; @UI_HeadCountByTeam.init
	.comm	_uiInfo,40,3                    ; @uiInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_teamName"

	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_TEAM_MEMBERS,4,2               ; @TEAM_MEMBERS
	.comm	_qtrue,8,3                      ; @qtrue
	.no_dead_strip	_UI_HeadCountByTeam
.subsections_via_symbols
