	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_GetBestScore                ## -- Begin function UI_GetBestScore
	.p2align	4, 0x90
_UI_GetBestScore:                       ## @UI_GetBestScore
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movq	%rsp, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_INFO_VALUE@GOTPCREL(%rip), %rax
	movq	%rax, %r12
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	testq	%r13, %r13
	je	LBB0_13
## %bb.1:
	testq	%r15, %r15
	je	LBB0_13
## %bb.2:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_13
## %bb.3:
	movq	_ui_numArenas@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jl	LBB0_13
## %bb.4:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	$1, %esi
	callq	_va
	movl	(%r12), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_trap_Cvar_VariableStringBuffer
	leaq	L_.str.1(%rip), %rdx
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	movl	$16, %esi
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_Com_sprintf
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_Info_ValueForKey
	movl	%eax, %edi
	callq	_atoi
                                        ## kill: def $eax killed $eax def $rax
	leal	-9(%rax), %ecx
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	cmpl	$-8, %ecx
	setae	%bl
	cmovael	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	$2, %esi
	callq	_va
	movq	_MAX_INFO_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_trap_Cvar_VariableStringBuffer
	movq	%r12, %rdi
	movl	$16, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r13d, %ecx
	callq	_Com_sprintf
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_Info_ValueForKey
	movl	%eax, %edi
	callq	_atoi
                                        ## kill: def $eax killed $eax def $rax
	leal	-9(%rax), %ecx
	cmpl	$-8, %ecx
	jb	LBB0_6
## %bb.5:
	testl	%r15d, %r15d
	setne	%cl
	cmpl	%r15d, %eax
	seta	%dl
	testb	%dl, %cl
	movl	$2, %ecx
	cmovel	%ecx, %ebx
	cmovnel	%r15d, %eax
	movl	%eax, %r15d
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	$3, %esi
	callq	_va
	movq	_MAX_INFO_VALUE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_trap_Cvar_VariableStringBuffer
	leaq	L_.str.1(%rip), %rdx
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	movl	$16, %esi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	_Com_sprintf
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_Info_ValueForKey
	movl	%eax, %edi
	callq	_atoi
                                        ## kill: def $eax killed $eax def $rax
	leal	-9(%rax), %ecx
	cmpl	$-8, %ecx
	jb	LBB0_8
## %bb.7:
	testl	%r15d, %r15d
	setne	%cl
	cmpl	%r15d, %eax
	seta	%dl
	testb	%dl, %cl
	movl	$3, %ecx
	cmovel	%ecx, %ebx
	cmovnel	%r15d, %eax
	movl	%eax, %r15d
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	$4, %esi
	callq	_va
	movl	(%r12), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_trap_Cvar_VariableStringBuffer
	leaq	L_.str.1(%rip), %rdx
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	movl	$16, %esi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	_Com_sprintf
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_Info_ValueForKey
	movl	%eax, %edi
	callq	_atoi
                                        ## kill: def $eax killed $eax def $rax
	leal	-9(%rax), %ecx
	cmpl	$-8, %ecx
	jb	LBB0_10
## %bb.9:
	testl	%r15d, %r15d
	setne	%cl
	cmpl	%r15d, %eax
	seta	%dl
	testb	%dl, %cl
	movl	$4, %ecx
	cmovel	%ecx, %ebx
	cmovnel	%r15d, %eax
	movl	%eax, %r15d
LBB0_10:
	leaq	L_.str(%rip), %rdi
	movl	$5, %esi
	callq	_va
	movl	(%r12), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_trap_Cvar_VariableStringBuffer
	leaq	L_.str.1(%rip), %rdx
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	movl	$16, %esi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	_Com_sprintf
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_Info_ValueForKey
	movl	%eax, %edi
	callq	_atoi
                                        ## kill: def $eax killed $eax def $rax
	leal	-9(%rax), %ecx
	cmpl	$-8, %ecx
	jb	LBB0_12
## %bb.11:
	testl	%r15d, %r15d
	setne	%cl
	cmpl	%r15d, %eax
	seta	%dl
	testb	%dl, %cl
	movl	$5, %ecx
	cmovel	%ecx, %ebx
	cmovnel	%r15d, %eax
	movl	%eax, %r15d
LBB0_12:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %edx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%r15d, (%rcx)
	movl	%edx, (%rax)
LBB0_13:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_VALUE,4,2             ## @MAX_INFO_VALUE
	.comm	_ui_numArenas,4,2               ## @ui_numArenas
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g_spScores%i"

L_.str.1:                               ## @.str.1
	.asciz	"l%i"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_GetBestScore                ; -- Begin function UI_GetBestScore
	.p2align	2
_UI_GetBestScore:                       ; @UI_GetBestScore
	.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, #32
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x25, 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	x26, _MAX_INFO_VALUE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAX_INFO_VALUE@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cbz	x1, LBB0_5
; %bb.1:
	cbz	x19, LBB0_5
; %bb.2:
	tbnz	w21, #31, LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _ui_numArenas@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ui_numArenas@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w21
	b.lt	LBB0_5
; %bb.4:
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
	mov	x0, x23
	mov	w1, #1
	bl	_va
	ldr	w2, [x26]
	mov	x1, x22
	bl	_trap_Cvar_VariableStringBuffer
Lloh12:
	adrp	x24, l_.str.1@PAGE
Lloh13:
	add	x24, x24, l_.str.1@PAGEOFF
	sub	x0, x29, #104
	mov	w1, #16
	mov	x2, x24
	mov	x3, x21
	bl	_Com_sprintf
	sub	x1, x29, #104
	mov	x0, x22
	bl	_Info_ValueForKey
	bl	_atoi
	sub	w8, w0, #9
	cmn	w8, #9
	cset	w27, hi
	cmn	w8, #8
	csel	w28, wzr, w0, lo
	mov	x0, x23
	mov	w1, #2
	bl	_va
	ldr	w2, [x26]
	mov	x1, x22
	bl	_trap_Cvar_VariableStringBuffer
	sub	x0, x29, #104
	mov	w1, #16
	mov	x2, x24
	mov	x3, x21
	bl	_Com_sprintf
	sub	x1, x29, #104
	mov	x0, x22
	bl	_Info_ValueForKey
	bl	_atoi
	sub	w8, w0, #9
	cmp	w28, #0
	cset	w9, ne
	cmp	w0, w28
	cset	w10, hi
	tst	w9, w10
	mov	w9, #2
	csel	w9, w27, w9, ne
	csel	w10, w28, w0, ne
	cmn	w8, #8
	csel	w23, w27, w9, lo
	csel	w24, w28, w10, lo
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	w27, #3
	mov	w1, #3
	bl	_va
	ldr	w2, [x26]
	mov	x1, x22
	bl	_trap_Cvar_VariableStringBuffer
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	sub	x0, x29, #104
	mov	w1, #16
	mov	x3, x21
	bl	_Com_sprintf
	sub	x1, x29, #104
	mov	x0, x22
	bl	_Info_ValueForKey
	bl	_atoi
	sub	w8, w0, #9
	cmp	w24, #0
	cset	w9, ne
	cmp	w0, w24
	cset	w10, hi
	tst	w9, w10
	csel	w9, w23, w27, ne
	csel	w10, w24, w0, ne
	cmn	w8, #8
	csel	w23, w23, w9, lo
	csel	w24, w24, w10, lo
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	w27, #4
	mov	w1, #4
	bl	_va
	ldr	w2, [x26]
	mov	x1, x22
	bl	_trap_Cvar_VariableStringBuffer
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	sub	x0, x29, #104
	mov	w1, #16
	mov	x3, x21
	bl	_Com_sprintf
	sub	x1, x29, #104
	mov	x0, x22
	bl	_Info_ValueForKey
	bl	_atoi
	sub	w8, w0, #9
	cmp	w24, #0
	cset	w9, ne
	cmp	w0, w24
	cset	w10, hi
	tst	w9, w10
	csel	w9, w23, w27, ne
	csel	w10, w24, w0, ne
	cmn	w8, #8
	csel	w23, w23, w9, lo
	csel	w24, w24, w10, lo
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	w27, #5
	mov	w1, #5
	bl	_va
	ldr	w2, [x26]
	mov	x1, x22
	bl	_trap_Cvar_VariableStringBuffer
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
	sub	x0, x29, #104
	mov	w1, #16
	mov	x3, x21
	bl	_Com_sprintf
	sub	x1, x29, #104
	mov	x0, x22
	bl	_Info_ValueForKey
	bl	_atoi
	sub	w8, w0, #9
	cmp	w24, #0
	cset	w9, ne
	cmp	w0, w24
	cset	w10, hi
	tst	w9, w10
	csel	w9, w23, w27, ne
	csel	w10, w24, w0, ne
	cmn	w8, #8
	csel	w8, w23, w9, lo
	csel	w9, w24, w10, lo
	str	w9, [x20]
	str	w8, [x19]
LBB0_5:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_VALUE,4,2             ; @MAX_INFO_VALUE
	.comm	_ui_numArenas,4,2               ; @ui_numArenas
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g_spScores%i"

l_.str.1:                               ; @.str.1
	.asciz	"l%i"

.subsections_via_symbols
