	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_LoadBestScores              ## -- Begin function UI_LoadBestScores
	.p2align	4, 0x90
_UI_LoadBestScores:                     ## @UI_LoadBestScores
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-60(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rcx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_Com_sprintf
	movq	_FS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	callq	_trap_FS_FOpenFile
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movl	$0, -56(%rbp)
	movl	-52(%rbp), %edx
	leaq	-56(%rbp), %rdi
	movl	$4, %esi
	callq	_trap_FS_Read
	cmpl	$4, -56(%rbp)
	jne	LBB0_3
## %bb.2:
	movl	-52(%rbp), %edx
	leaq	-60(%rbp), %rdi
	movl	$4, %esi
	callq	_trap_FS_Read
LBB0_3:
	movl	-52(%rbp), %edi
	callq	_trap_FS_FCloseFile
LBB0_4:
	movq	_qfalse@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-60(%rbp), %rdi
	callq	_UI_SetBestScores
	movl	(%rbx), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_trap_Cvar_VariableValue
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rcx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_Com_sprintf
	movl	(%r13), %eax
	movq	_uiInfo@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_FS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	callq	_trap_FS_FOpenFile
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	-52(%rbp), %edi
	callq	_trap_FS_FCloseFile
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"games/%s_%i.game"

	.comm	_FS_READ,4,2                    ## @FS_READ
	.comm	_qfalse,4,2                     ## @qfalse
L_.str.1:                               ## @.str.1
	.asciz	"demos/%s_%d.dm_%d"

L_.str.2:                               ## @.str.2
	.asciz	"protocol"

	.comm	_uiInfo,4,2                     ## @uiInfo
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_LoadBestScores              ; -- Begin function UI_LoadBestScores
	.p2align	2
_UI_LoadBestScores:                     ; @UI_LoadBestScores
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAX_QPATH@GOTPAGEOFF]
	ldr	w8, [x22]
	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	x21, x9, x8
	mov	sp, x21
	sub	x0, x29, #64
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w1, [x22]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	mov	x4, x19
	bl	_Com_sprintf
Lloh9:
	adrp	x23, _FS_READ@GOTPAGE
Lloh10:
	ldr	x23, [x23, _FS_READ@GOTPAGEOFF]
	ldr	w2, [x23]
	sub	x1, x29, #60
	mov	x0, x21
	bl	_trap_FS_FOpenFile
	tbnz	x0, #63, LBB0_4
; %bb.1:
	stur	wzr, [x29, #-68]
	ldur	w2, [x29, #-60]
	sub	x0, x29, #68
	mov	w1, #4
	bl	_trap_FS_Read
	ldur	w8, [x29, #-68]
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.2:
	ldur	w2, [x29, #-60]
	sub	x0, x29, #64
	mov	w1, #4
	bl	_trap_FS_Read
LBB0_3:
	ldur	w0, [x29, #-60]
	bl	_trap_FS_FCloseFile
LBB0_4:
Lloh11:
	adrp	x24, _qfalse@GOTPAGE
Lloh12:
	ldr	x24, [x24, _qfalse@GOTPAGEOFF]
	ldr	w1, [x24]
	sub	x0, x29, #64
	bl	_UI_SetBestScores
	ldr	w22, [x22]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_trap_Cvar_VariableValue
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x0, [sp, #-16]!
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	mov	x4, x19
	bl	_Com_sprintf
	add	sp, sp, #16
	ldr	w8, [x24]
Lloh17:
	adrp	x19, _uiInfo@GOTPAGE
Lloh18:
	ldr	x19, [x19, _uiInfo@GOTPAGEOFF]
	str	w8, [x19]
	ldr	w2, [x23]
	sub	x1, x29, #60
	mov	x0, x21
	bl	_trap_FS_FOpenFile
	tbnz	x0, #63, LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _qtrue@GOTPAGE
Lloh20:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19]
	ldur	w0, [x29, #-60]
	bl	_trap_FS_FCloseFile
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"games/%s_%i.game"

	.comm	_FS_READ,4,2                    ; @FS_READ
	.comm	_qfalse,4,2                     ; @qfalse
l_.str.1:                               ; @.str.1
	.asciz	"demos/%s_%d.dm_%d"

l_.str.2:                               ; @.str.2
	.asciz	"protocol"

	.comm	_uiInfo,4,2                     ; @uiInfo
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
