	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CalculateRanks                 ## -- Begin function CalculateRanks
	.p2align	4, 0x90
_CalculateRanks:                        ## @CalculateRanks
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_level@GOTPCREL(%rip), %r15
	movq	$-1, (%r15)
	movq	$0, 8(%r15)
	movl	$0, 16(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r15)
	movq	_TEAM_NUM_TEAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_2
## %bb.1:
	movq	56(%r15), %rdi
	shlq	$3, %rsi
	callq	___bzero
LBB0_2:
	cmpl	$0, 20(%r15)
	jle	LBB0_16
## %bb.3:
	movq	24(%r15), %rax
	movq	48(%r15), %rcx
	movq	_g_entities@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r13
	movq	56(%r15), %r9
	leaq	8(%r9), %r8
	addq	$16, %rcx
	xorl	%edi, %edi
	movq	_CON_DISCONNECTED@GOTPCREL(%rip), %rsi
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %r14
	movq	_CON_CONNECTED@GOTPCREL(%rip), %r10
	movq	_SVF_BOT@GOTPCREL(%rip), %r11
	jmp	LBB0_4
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, (%r15)
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	movslq	20(%r15), %rdx
	addq	$24, %rcx
	cmpq	%rdx, %rdi
	jge	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %r12
	cmpq	(%rsi), %r12
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rdx
	movl	%edi, (%rax,%rdx,4)
	incq	%rdx
	movq	%rdx, 8(%r15)
	movq	-8(%rcx), %rdx
	cmpq	(%r14), %rdx
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	72(%r15)
	cmpq	(%r10), %r12
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	16(%r15)
	movl	(%r11), %ebx
	testl	%ebx, (%r13,%rdi,4)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	64(%r15)
	movq	%r9, %r12
	movq	_TEAM_RED@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r8, %r12
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	jne	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	(%r12)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, (%r15)
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, 4(%r15)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, 4(%r15)
	jmp	LBB0_15
LBB0_16:
	movq	8(%r15), %rsi
	movq	24(%r15), %rdi
	movq	_SortRanks@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %edx
	callq	_qsort
	movq	_g_gametype@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_GT_TEAM@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %r9
	jge	LBB0_17
## %bb.20:
	cmpl	$0, 16(%r15)
	jle	LBB0_36
## %bb.21:
	movq	24(%r15), %rdx
	movq	48(%r15), %rsi
	movq	_PERS_SCORE@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_PERS_RANK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_GT_SINGLE_PLAYER@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	$-1, %r13d
	xorl	%ebx, %ebx
	movq	_RANK_TIED_FLAG@GOTPCREL(%rip), %r10
	xorl	%edi, %edi
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_34
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, %eax
	movslq	(%rdx,%rbx,4), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rsi,%rcx,8), %rcx
	movl	(%rcx,%r11,4), %edi
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	%eax, %edi
	jne	LBB0_24
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	(%r10), %eax
	orl	%r13d, %eax
	movslq	-4(%rdx,%rbx,4), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rsi,%rcx,8), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	(%r10), %eax
	orl	%r13d, %eax
	movslq	(%rdx,%rbx,4), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rsi,%rcx,8), %rcx
	movl	%eax, (%rcx,%r12,4)
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%ebx, (%rcx,%r12,4)
	movl	%ebx, %r13d
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	16(%r15), %ecx
	cmpq	%r14, %r9
	jne	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpl	$1, %ecx
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	(%r10), %eax
	orl	%r13d, %eax
	movslq	(%rdx,%rbx,4), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rsi,%rcx,8), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	16(%r15), %ecx
	jmp	LBB0_33
LBB0_17:
	movq	8(%r15), %r14
	testq	%r14, %r14
	je	LBB0_35
## %bb.18:
	movq	48(%r15), %rax
	movq	24(%r15), %rcx
	movq	32(%r15), %rdx
	movq	_TEAM_RED@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rdx,%rsi,8), %r10
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rdx,%rsi,8), %r11
	movq	_PERS_RANK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	cmpq	$1, %r14
	jne	LBB0_25
## %bb.19:
	xorl	%edi, %edi
	jmp	LBB0_27
LBB0_25:
	movq	%r14, %r12
	andq	$-2, %r12
	xorl	%edi, %edi
	cmpq	%r11, %r10
	setle	%dil
	movl	$2, %ebx
	cmovnel	%edi, %ebx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rcx,%rdi,4), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	(%rax,%rdx,8), %rdx
	movl	%ebx, (%rdx,%rsi,4)
	movslq	4(%rcx,%rdi,4), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	(%rax,%rdx,8), %rdx
	movl	%ebx, (%rdx,%rsi,4)
	addq	$2, %rdi
	cmpq	%rdi, %r12
	jne	LBB0_26
LBB0_27:
	testb	$1, %r14b
	je	LBB0_34
## %bb.28:
	xorl	%edx, %edx
	cmpq	%r11, %r10
	setle	%dl
	movslq	(%rcx,%rdi,4), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	$2, %ecx
	cmovnel	%edx, %ecx
	movl	%ecx, (%rax,%rsi,4)
LBB0_34:
	cmpq	%r8, %r9
	jge	LBB0_35
LBB0_36:
	movq	8(%r15), %rax
	cmpq	$1, %rax
	je	LBB0_39
## %bb.37:
	testq	%rax, %rax
	jne	LBB0_40
## %bb.38:
	movq	_CS_SCORES1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SCORE_NOT_PRESENT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_va
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_trap_SetConfigstring
	movq	(%rbx), %rsi
	jmp	LBB0_41
LBB0_35:
	movq	_CS_SCORES1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	32(%r15), %rax
	movq	_TEAM_RED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_va
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_trap_SetConfigstring
	movq	32(%r15), %rax
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	jmp	LBB0_41
LBB0_39:
	movq	_CS_SCORES1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	24(%r15), %rax
	movq	48(%r15), %rcx
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movq	(%rcx,%rax,8), %rax
	movq	_PERS_SCORE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax,%rcx,4), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_va
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_trap_SetConfigstring
	movq	_SCORE_NOT_PRESENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_41
LBB0_40:
	movq	_CS_SCORES1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	24(%r15), %rax
	movq	48(%r15), %rcx
	movslq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movq	(%rcx,%rax,8), %rax
	movq	_PERS_SCORE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movslq	(%rax,%rcx,4), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_va
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_trap_SetConfigstring
	movq	24(%r15), %rax
	movq	48(%r15), %rcx
	movslq	4(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movq	(%rcx,%rax,8), %rax
	movq	(%rbx), %rcx
	movslq	(%rax,%rcx,4), %rsi
LBB0_41:
	movq	_CS_SCORES2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_va
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_trap_SetConfigstring
	xorl	%eax, %eax
	callq	_CheckExitRules
	cmpq	$0, 40(%r15)
	je	LBB0_42
## %bb.43:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SendScoreboardMessageToAllClients ## TAILCALL
LBB0_42:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,80,3                     ## @level
	.comm	_TEAM_NUM_TEAMS,4,2             ## @TEAM_NUM_TEAMS
	.comm	_CON_DISCONNECTED,8,3           ## @CON_DISCONNECTED
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_CON_CONNECTED,8,3              ## @CON_CONNECTED
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_SVF_BOT,4,2                    ## @SVF_BOT
	.comm	_TEAM_RED,8,3                   ## @TEAM_RED
	.comm	_TEAM_BLUE,8,3                  ## @TEAM_BLUE
	.comm	_SortRanks,4,2                  ## @SortRanks
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
	.comm	_PERS_RANK,8,3                  ## @PERS_RANK
	.comm	_PERS_SCORE,8,3                 ## @PERS_SCORE
	.comm	_RANK_TIED_FLAG,4,2             ## @RANK_TIED_FLAG
	.comm	_GT_SINGLE_PLAYER,8,3           ## @GT_SINGLE_PLAYER
	.comm	_CS_SCORES1,4,2                 ## @CS_SCORES1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i"

	.comm	_CS_SCORES2,4,2                 ## @CS_SCORES2
	.comm	_SCORE_NOT_PRESENT,8,3          ## @SCORE_NOT_PRESENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CalculateRanks                 ; -- Begin function CalculateRanks
	.p2align	2
_CalculateRanks:                        ; @CalculateRanks
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	movi.2d	v0, #0xffffffffffffffff
Lloh0:
	adrp	x20, _level@GOTPAGE
Lloh1:
	ldr	x20, [x20, _level@GOTPAGEOFF]
	str	d0, [x20]
	str	xzr, [x20, #8]
	str	wzr, [x20, #16]
	stp	xzr, xzr, [x20, #64]
Lloh2:
	adrp	x8, _TEAM_NUM_TEAMS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TEAM_NUM_TEAMS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x0, [x20, #56]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_2:
	ldr	w8, [x20, #20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.3:
	mov	x8, #0
Lloh5:
	adrp	x10, _g_entities@GOTPAGE
Lloh6:
	ldr	x10, [x10, _g_entities@GOTPAGEOFF]
	ldr	x9, [x20, #24]
Lloh7:
	ldr	x10, [x10]
	ldp	x13, x11, [x20, #48]
	add	x12, x11, #8
	add	x13, x13, #16
Lloh8:
	adrp	x14, _CON_DISCONNECTED@GOTPAGE
Lloh9:
	ldr	x14, [x14, _CON_DISCONNECTED@GOTPAGEOFF]
Lloh10:
	adrp	x15, _TEAM_SPECTATOR@GOTPAGE
Lloh11:
	ldr	x15, [x15, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh12:
	adrp	x16, _CON_CONNECTED@GOTPAGE
Lloh13:
	ldr	x16, [x16, _CON_CONNECTED@GOTPAGEOFF]
Lloh14:
	adrp	x17, _SVF_BOT@GOTPAGE
Lloh15:
	ldr	x17, [x17, _SVF_BOT@GOTPAGEOFF]
Lloh16:
	adrp	x0, _TEAM_RED@GOTPAGE
Lloh17:
	ldr	x0, [x0, _TEAM_RED@GOTPAGEOFF]
Lloh18:
	adrp	x1, _TEAM_BLUE@GOTPAGE
Lloh19:
	ldr	x1, [x1, _TEAM_BLUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [x20]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	ldrsw	x2, [x20, #20]
	add	x13, x13, #24
	cmp	x8, x2
	b.ge	LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x13]
	ldr	x2, [x14]
	cmp	x3, x2
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x20, #8]
	str	w8, [x9, x2, lsl #2]
	add	x2, x2, #1
	str	x2, [x20, #8]
	ldur	x2, [x13, #-8]
	ldr	x4, [x15]
	cmp	x2, x4
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x4, [x20, #72]
	add	x4, x4, #1
	str	x4, [x20, #72]
	ldr	x4, [x16]
	cmp	x3, x4
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w3, [x20, #16]
	add	w3, w3, #1
	str	w3, [x20, #16]
	ldr	w3, [x10, x8, lsl #2]
	ldr	w4, [x17]
	tst	w4, w3
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x3, [x20, #64]
	add	x3, x3, #1
	str	x3, [x20, #64]
	ldr	x4, [x0]
	mov	x3, x11
	cmp	x2, x4
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x4, [x1]
	mov	x3, x12
	cmp	x2, x4
	b.ne	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x2, [x3]
	add	x2, x2, #1
	str	x2, [x3]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x20]
	cmn	w2, #1
	b.eq	LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x20, #4]
	cmn	w2, #1
	b.ne	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [x20, #4]
	b	LBB0_5
LBB0_16:
	ldr	x0, [x20, #24]
	ldr	x1, [x20, #8]
Lloh20:
	adrp	x8, _SortRanks@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SortRanks@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	w2, #4
	bl	_qsort
Lloh23:
	adrp	x8, _g_gametype@GOTPAGE
Lloh24:
	ldr	x8, [x8, _g_gametype@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _GT_TEAM@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GT_TEAM@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_27
; %bb.17:
	ldr	w10, [x20, #16]
	cmp	w10, #1
	b.lt	LBB0_31
; %bb.18:
	mov	x10, #0
	mov	w3, #0
	ldr	x11, [x20, #48]
	ldr	x12, [x20, #24]
Lloh29:
	adrp	x13, _PERS_SCORE@GOTPAGE
Lloh30:
	ldr	x13, [x13, _PERS_SCORE@GOTPAGEOFF]
Lloh31:
	ldr	x13, [x13]
Lloh32:
	adrp	x14, _PERS_RANK@GOTPAGE
Lloh33:
	ldr	x14, [x14, _PERS_RANK@GOTPAGEOFF]
Lloh34:
	ldr	x14, [x14]
Lloh35:
	adrp	x15, _GT_SINGLE_PLAYER@GOTPAGE
Lloh36:
	ldr	x15, [x15, _GT_SINGLE_PLAYER@GOTPAGEOFF]
Lloh37:
	ldr	x15, [x15]
	mov	w16, #-1
	mov	w17, #24
Lloh38:
	adrp	x0, _RANK_TIED_FLAG@GOTPAGE
Lloh39:
	ldr	x0, [x0, _RANK_TIED_FLAG@GOTPAGEOFF]
	lsl	x1, x14, #2
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x10, x10, #1
	cmp	x10, w3, sxtw
	mov	x3, x2
	b.ge	LBB0_30
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x2, [x12, x10, lsl #2]
	mul	x2, x2, x17
	ldr	x4, [x11, x2]
	ldr	w2, [x4, x13, lsl #2]
	cbz	x10, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w2, w3
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w3, [x0]
	orr	w3, w3, w16
	add	x4, x12, x10, lsl #2
	ldursw	x5, [x4, #-4]
	mul	x5, x5, x17
	ldr	x5, [x11, x5]
	str	w3, [x5, x1]
	ldr	w3, [x0]
	orr	w3, w3, w16
	ldrsw	x4, [x4]
	mul	x4, x4, x17
	ldr	x4, [x11, x4]
	str	w3, [x4, x1]
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	str	w10, [x4, x14, lsl #2]
	mov	x16, x10
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w3, [x20, #16]
	cmp	x8, x15
	b.ne	LBB0_19
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w3, #1
	b.ne	LBB0_19
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w3, [x0]
	orr	w3, w3, w16
	ldrsw	x4, [x12, x10, lsl #2]
	mul	x4, x4, x17
	ldr	x4, [x11, x4]
	str	w3, [x4, x14, lsl #2]
	ldr	w3, [x20, #16]
	b	LBB0_19
LBB0_27:
	ldr	x10, [x20, #8]
	cbz	x10, LBB0_34
; %bb.28:
Lloh40:
	adrp	x12, _TEAM_RED@GOTPAGE
Lloh41:
	ldr	x12, [x12, _TEAM_RED@GOTPAGEOFF]
	ldp	x11, x13, [x20, #24]
Lloh42:
	ldr	x12, [x12]
	ldr	x14, [x13, x12, lsl #3]
Lloh43:
	adrp	x15, _TEAM_BLUE@GOTPAGE
Lloh44:
	ldr	x15, [x15, _TEAM_BLUE@GOTPAGEOFF]
	ldr	x12, [x20, #48]
Lloh45:
	ldr	x15, [x15]
	ldr	x13, [x13, x15, lsl #3]
	cmp	x14, x13
	cset	w14, le
Lloh46:
	adrp	x13, _PERS_RANK@GOTPAGE
Lloh47:
	ldr	x13, [x13, _PERS_RANK@GOTPAGEOFF]
Lloh48:
	ldr	x13, [x13]
	mov	w15, #2
	csel	w14, w15, w14, eq
	mov	w15, #24
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x16, [x11], #4
	mul	x16, x16, x15
	ldr	x16, [x12, x16]
	str	w14, [x16, x13, lsl #2]
	subs	x10, x10, #1
	b.ne	LBB0_29
LBB0_30:
	cmp	x8, x9
	b.ge	LBB0_34
LBB0_31:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.eq	LBB0_35
; %bb.32:
	cbnz	x8, LBB0_36
; %bb.33:
Lloh49:
	adrp	x8, _CS_SCORES1@GOTPAGE
Lloh50:
	ldr	x8, [x8, _CS_SCORES1@GOTPAGEOFF]
Lloh51:
	ldr	w19, [x8]
Lloh52:
	adrp	x21, _SCORE_NOT_PRESENT@GOTPAGE
Lloh53:
	ldr	x21, [x21, _SCORE_NOT_PRESENT@GOTPAGEOFF]
	ldr	x1, [x21]
Lloh54:
	adrp	x0, l_.str@PAGE
Lloh55:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SetConfigstring
	ldr	x1, [x21]
	b	LBB0_37
LBB0_34:
Lloh56:
	adrp	x8, _CS_SCORES1@GOTPAGE
Lloh57:
	ldr	x8, [x8, _CS_SCORES1@GOTPAGEOFF]
Lloh58:
	ldr	w19, [x8]
	ldr	x8, [x20, #32]
Lloh59:
	adrp	x9, _TEAM_RED@GOTPAGE
Lloh60:
	ldr	x9, [x9, _TEAM_RED@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
Lloh62:
	adrp	x0, l_.str@PAGE
Lloh63:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SetConfigstring
	ldr	x8, [x20, #32]
Lloh64:
	adrp	x9, _TEAM_BLUE@GOTPAGE
Lloh65:
	ldr	x9, [x9, _TEAM_BLUE@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	b	LBB0_37
LBB0_35:
Lloh67:
	adrp	x8, _CS_SCORES1@GOTPAGE
Lloh68:
	ldr	x8, [x8, _CS_SCORES1@GOTPAGEOFF]
	ldr	x9, [x20, #48]
	ldr	x10, [x20, #24]
	ldrsw	x10, [x10]
	mov	w11, #24
	mul	x10, x10, x11
	ldr	x9, [x9, x10]
Lloh69:
	ldr	w19, [x8]
Lloh70:
	adrp	x8, _PERS_SCORE@GOTPAGE
Lloh71:
	ldr	x8, [x8, _PERS_SCORE@GOTPAGEOFF]
Lloh72:
	ldr	x8, [x8]
	ldrsw	x1, [x9, x8, lsl #2]
Lloh73:
	adrp	x0, l_.str@PAGE
Lloh74:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SetConfigstring
Lloh75:
	adrp	x8, _SCORE_NOT_PRESENT@GOTPAGE
Lloh76:
	ldr	x8, [x8, _SCORE_NOT_PRESENT@GOTPAGEOFF]
Lloh77:
	ldr	x1, [x8]
	b	LBB0_37
LBB0_36:
Lloh78:
	adrp	x8, _CS_SCORES1@GOTPAGE
Lloh79:
	ldr	x8, [x8, _CS_SCORES1@GOTPAGEOFF]
	ldr	x9, [x20, #48]
	ldr	x10, [x20, #24]
	ldrsw	x10, [x10]
	mov	w21, #24
	mul	x10, x10, x21
	ldr	x9, [x9, x10]
Lloh80:
	ldr	w19, [x8]
Lloh81:
	adrp	x22, _PERS_SCORE@GOTPAGE
Lloh82:
	ldr	x22, [x22, _PERS_SCORE@GOTPAGEOFF]
	ldr	x8, [x22]
	ldrsw	x1, [x9, x8, lsl #2]
Lloh83:
	adrp	x0, l_.str@PAGE
Lloh84:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SetConfigstring
	ldr	x8, [x20, #48]
	ldr	x9, [x20, #24]
	ldrsw	x9, [x9, #4]
	mul	x9, x9, x21
	ldr	x8, [x8, x9]
	ldr	x9, [x22]
	ldrsw	x1, [x8, x9, lsl #2]
LBB0_37:
Lloh85:
	adrp	x8, _CS_SCORES2@GOTPAGE
Lloh86:
	ldr	x8, [x8, _CS_SCORES2@GOTPAGEOFF]
Lloh87:
	ldr	w19, [x8]
Lloh88:
	adrp	x0, l_.str@PAGE
Lloh89:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SetConfigstring
	bl	_CheckExitRules
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_39
; %bb.38:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_SendScoreboardMessageToAllClients
LBB0_39:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.cfi_endproc
                                        ; -- End function
	.comm	_level,80,3                     ; @level
	.comm	_TEAM_NUM_TEAMS,4,2             ; @TEAM_NUM_TEAMS
	.comm	_CON_DISCONNECTED,8,3           ; @CON_DISCONNECTED
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_CON_CONNECTED,8,3              ; @CON_CONNECTED
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_SVF_BOT,4,2                    ; @SVF_BOT
	.comm	_TEAM_RED,8,3                   ; @TEAM_RED
	.comm	_TEAM_BLUE,8,3                  ; @TEAM_BLUE
	.comm	_SortRanks,4,2                  ; @SortRanks
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
	.comm	_PERS_RANK,8,3                  ; @PERS_RANK
	.comm	_PERS_SCORE,8,3                 ; @PERS_SCORE
	.comm	_RANK_TIED_FLAG,4,2             ; @RANK_TIED_FLAG
	.comm	_GT_SINGLE_PLAYER,8,3           ; @GT_SINGLE_PLAYER
	.comm	_CS_SCORES1,4,2                 ; @CS_SCORES1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i"

	.comm	_CS_SCORES2,4,2                 ; @CS_SCORES2
	.comm	_SCORE_NOT_PRESENT,8,3          ; @SCORE_NOT_PRESENT
.subsections_via_symbols
