	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateTournamentInfo           ## -- Begin function UpdateTournamentInfo
	.p2align	4, 0x90
_UpdateTournamentInfo:                  ## @UpdateTournamentInfo
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_STRING_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	_level@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.1:
	movq	_g_entities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	_SVF_BOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$8, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	$16, %r13
	cmpq	%rbx, %rax
	je	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%r14,%r13)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, (%r14,%r13)
	jne	LBB0_4
## %bb.5:
	testq	%r14, %r14
	je	LBB0_19
## %bb.6:
	cmpl	%ebx, %eax
	je	LBB0_19
## %bb.7:
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_CalculateRanks
	movq	24(%r12), %rcx
	movq	(%rcx,%r13), %rax
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_9
## %bb.8:
	movl	4(%r12), %ecx
	leaq	L_.str(%rip), %rdx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_Com_sprintf
	jmp	LBB0_14
LBB0_9:
	movq	-8(%r14,%r13), %rsi
	movl	(%rsi), %edi
	testl	%edi, %edi
	movl	$0, %r9d
	je	LBB0_11
## %bb.10:
	imull	$100, 4(%rsi), %eax
	cltd
	idivl	%edi
	movl	%eax, %r9d
LBB0_11:
	movq	-8(%rcx,%r13), %rax
	movq	_PERS_RANK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r11d, %r11d
	cmpl	$0, (%rax,%rcx,4)
	movq	8(%rsi), %r10
	jne	LBB0_13
## %bb.12:
	movq	_PERS_KILLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r11d, %r11d
	cmpq	$0, (%r10,%rax,8)
	sete	%r11b
LBB0_13:
	movl	4(%r12), %ecx
	movq	_PERS_IMPRESSIVE_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_PERS_EXCELLENT_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_PERS_GAUNTLET_FRAG_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_PERS_SCORE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	pushq	%r11
	pushq	(%r10,%r13,8)
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	pushq	(%r10,%rbx,8)
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	pushq	(%r10,%rbx,8)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	pushq	(%r10,%rbx,8)
	callq	_Com_sprintf
	addq	$48, %rsp
LBB0_14:
	movq	%r14, %rdi
	callq	_strlen
	cmpl	$0, 4(%r12)
	jle	LBB0_18
## %bb.15:
	movl	%eax, %r13d
	incl	%r13d
	leaq	-80(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	24(%r12), %rdx
	movq	(%rax,%rbx,8), %rax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	shlq	$4, %rax
	movq	(%rdx,%rax), %rax
	movq	_PERS_RANK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %r8d
	movq	_PERS_SCORE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rax,%rdx,4), %r9d
	movq	%r14, %rdi
	movl	$32, %esi
	leaq	L_.str.2(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_Com_sprintf
	movq	%r14, %rdi
	callq	_strlen
	addl	%r13d, %eax
	cltq
	cmpq	%r15, %rax
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_strcat
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_18:
	movq	_EXEC_APPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_trap_SendConsoleCommand
LBB0_19:
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STRING_CHARS,4,2           ## @MAX_STRING_CHARS
	.comm	_level,40,3                     ## @level
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_SVF_BOT,4,2                    ## @SVF_BOT
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"postgame %i %i 0 0 0 0 0 0"

	.comm	_PERS_RANK,8,3                  ## @PERS_RANK
	.comm	_PERS_KILLED,8,3                ## @PERS_KILLED
L_.str.1:                               ## @.str.1
	.asciz	"postgame %i %i %i %i %i %i %i %i"

	.comm	_PERS_IMPRESSIVE_COUNT,8,3      ## @PERS_IMPRESSIVE_COUNT
	.comm	_PERS_EXCELLENT_COUNT,8,3       ## @PERS_EXCELLENT_COUNT
	.comm	_PERS_GAUNTLET_FRAG_COUNT,8,3   ## @PERS_GAUNTLET_FRAG_COUNT
	.comm	_PERS_SCORE,8,3                 ## @PERS_SCORE
L_.str.2:                               ## @.str.2
	.asciz	" %i %i %i"

	.comm	_EXEC_APPEND,4,2                ## @EXEC_APPEND
	.comm	_GT_CTF,8,3                     ## @GT_CTF
	.comm	_PERS_ASSIST_COUNT,8,3          ## @PERS_ASSIST_COUNT
	.comm	_PERS_CAPTURES,8,3              ## @PERS_CAPTURES
	.comm	_PERS_DEFEND_COUNT,8,3          ## @PERS_DEFEND_COUNT
	.comm	_TEAM_BLUE,8,3                  ## @TEAM_BLUE
	.comm	_TEAM_RED,8,3                   ## @TEAM_RED
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UpdateTournamentInfo           ; -- Begin function UpdateTournamentInfo
	.p2align	2
_UpdateTournamentInfo:                  ; @UpdateTournamentInfo
	.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
	sub	sp, sp, #48
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_STRING_CHARS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_STRING_CHARS@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x23, _level@GOTPAGE
Lloh9:
	ldr	x23, [x23, _level@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.1:
	mov	w21, #0
	mov	x26, #0
Lloh10:
	adrp	x9, _g_entities@GOTPAGE
Lloh11:
	ldr	x9, [x9, _g_entities@GOTPAGEOFF]
Lloh12:
	ldr	x27, [x9]
Lloh13:
	adrp	x9, _SVF_BOT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SVF_BOT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	lsl	x10, x8, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #16
	add	w21, w21, #1
	cmp	x10, x26
	b.eq	LBB0_20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x27, x26
	ldr	w12, [x11, #12]
	cbz	w12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x11, #8]
	tst	w9, w11
	b.ne	LBB0_2
; %bb.5:
	cbz	x27, LBB0_20
; %bb.6:
	cmp	w8, w21
	b.eq	LBB0_20
; %bb.7:
	bl	_CalculateRanks
	ldr	x9, [x23, #24]
	add	x8, x9, x26
	ldr	x8, [x8, #8]
Lloh16:
	adrp	x10, _TEAM_SPECTATOR@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
Lloh19:
	adrp	x24, _PERS_RANK@GOTPAGE
Lloh20:
	ldr	x24, [x24, _PERS_RANK@GOTPAGEOFF]
Lloh21:
	adrp	x25, _PERS_SCORE@GOTPAGE
Lloh22:
	ldr	x25, [x25, _PERS_SCORE@GOTPAGEOFF]
	cmp	x8, x10
	b.ne	LBB0_9
; %bb.8:
	ldr	w3, [x23, #4]
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x4, x21
	bl	_Com_sprintf
	b	LBB0_15
LBB0_9:
	ldr	x10, [x27, x26]
	ldr	w8, [x10]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	w11, [x10, #4]
	mov	w12, #100
	mul	w11, w11, w12
	sdiv	w8, w11, w8
LBB0_11:
	ldr	x9, [x9, x26]
	ldr	x11, [x24]
	ldr	w11, [x9, x11, lsl #2]
	ldr	x9, [x10, #8]
	cbz	w11, LBB0_13
; %bb.12:
	mov	w10, #0
	b	LBB0_14
LBB0_13:
Lloh25:
	adrp	x10, _PERS_KILLED@GOTPAGE
Lloh26:
	ldr	x10, [x10, _PERS_KILLED@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	ldr	x10, [x9, x10, lsl #3]
	cmp	x10, #0
	cset	w10, eq
LBB0_14:
Lloh28:
	adrp	x11, _PERS_IMPRESSIVE_COUNT@GOTPAGE
Lloh29:
	ldr	x11, [x11, _PERS_IMPRESSIVE_COUNT@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	ldr	x11, [x9, x11, lsl #3]
Lloh31:
	adrp	x12, _PERS_EXCELLENT_COUNT@GOTPAGE
Lloh32:
	ldr	x12, [x12, _PERS_EXCELLENT_COUNT@GOTPAGEOFF]
	ldr	w3, [x23, #4]
Lloh33:
	ldr	x12, [x12]
	ldr	x12, [x9, x12, lsl #3]
Lloh34:
	adrp	x13, _PERS_GAUNTLET_FRAG_COUNT@GOTPAGE
Lloh35:
	ldr	x13, [x13, _PERS_GAUNTLET_FRAG_COUNT@GOTPAGEOFF]
Lloh36:
	ldr	x13, [x13]
	ldr	x13, [x9, x13, lsl #3]
	ldr	x14, [x25]
	ldr	x9, [x9, x14, lsl #3]
	sub	sp, sp, #48
	stp	x9, x10, [sp, #32]
	stp	x12, x13, [sp, #16]
Lloh37:
	adrp	x2, l_.str.1@PAGE
Lloh38:
	add	x2, x2, l_.str.1@PAGEOFF
	stp	x8, x11, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x4, x21
	bl	_Com_sprintf
	add	sp, sp, #48
LBB0_15:
	mov	x0, x20
	bl	_strlen
	ldr	w8, [x23, #4]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.16:
	mov	x26, #0
	add	w27, w0, #1
Lloh39:
	adrp	x21, l_.str.2@PAGE
Lloh40:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x23, #16]
	ldr	x3, [x8, x26, lsl #3]
	sbfiz	x8, x3, #4, #32
	ldr	x8, [x9, x8]
	ldr	x9, [x24]
	ldr	w4, [x8, x9, lsl #2]
	ldr	x9, [x25]
	ldr	w8, [x8, x9, lsl #2]
	str	x8, [sp, #-16]!
	sub	x0, x29, #120
	mov	w1, #32
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_Com_sprintf
	add	sp, sp, #16
	sub	x0, x29, #120
	bl	_strlen
	add	w8, w27, w0
	sxtw	x8, w8
	cmp	x8, x19
	b.hs	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	sub	x1, x29, #120
	mov	x0, x20
	bl	_strcat
	add	x26, x26, #1
	ldrsw	x8, [x23, #4]
	cmp	x26, x8
	b.lt	LBB0_17
LBB0_19:
Lloh41:
	adrp	x8, _EXEC_APPEND@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EXEC_APPEND@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_trap_SendConsoleCommand
LBB0_20:
	mov	sp, x22
	ldur	x8, [x29, #-88]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #80
	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
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STRING_CHARS,4,2           ; @MAX_STRING_CHARS
	.comm	_level,40,3                     ; @level
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_SVF_BOT,4,2                    ; @SVF_BOT
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"postgame %i %i 0 0 0 0 0 0"

	.comm	_PERS_RANK,8,3                  ; @PERS_RANK
	.comm	_PERS_KILLED,8,3                ; @PERS_KILLED
l_.str.1:                               ; @.str.1
	.asciz	"postgame %i %i %i %i %i %i %i %i"

	.comm	_PERS_IMPRESSIVE_COUNT,8,3      ; @PERS_IMPRESSIVE_COUNT
	.comm	_PERS_EXCELLENT_COUNT,8,3       ; @PERS_EXCELLENT_COUNT
	.comm	_PERS_GAUNTLET_FRAG_COUNT,8,3   ; @PERS_GAUNTLET_FRAG_COUNT
	.comm	_PERS_SCORE,8,3                 ; @PERS_SCORE
l_.str.2:                               ; @.str.2
	.asciz	" %i %i %i"

	.comm	_EXEC_APPEND,4,2                ; @EXEC_APPEND
	.comm	_GT_CTF,8,3                     ; @GT_CTF
	.comm	_PERS_ASSIST_COUNT,8,3          ; @PERS_ASSIST_COUNT
	.comm	_PERS_CAPTURES,8,3              ; @PERS_CAPTURES
	.comm	_PERS_DEFEND_COUNT,8,3          ; @PERS_DEFEND_COUNT
	.comm	_TEAM_BLUE,8,3                  ; @TEAM_BLUE
	.comm	_TEAM_RED,8,3                   ; @TEAM_RED
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
