	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_ClearScores                 ## -- Begin function UI_ClearScores
	.p2align	4, 0x90
_UI_ClearScores:                        ## @UI_ClearScores
	.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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-4144(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	_trap_FS_GetFileList
	movl	%eax, %r14d
	movl	$4, -4156(%rbp)
	leaq	-4152(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.1:
	movq	_FS_WRITE@GOTPCREL(%rip), %r15
	leaq	-4148(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rax
	addq	%rax, %rbx
	incq	%rbx
	decl	%r14d
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_va
	movl	(%r15), %edx
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_trap_FS_FOpenFile
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4148(%rbp), %edx
	leaq	-4156(%rbp), %rdi
	movl	$4, %esi
	callq	_trap_FS_Write
	movl	-4156(%rbp), %esi
	movl	-4148(%rbp), %edx
	leaq	-4152(%rbp), %rdi
	callq	_trap_FS_Write
	movl	-4148(%rbp), %edi
	callq	_trap_FS_FCloseFile
	jmp	LBB0_4
LBB0_5:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4152(%rbp), %rdi
	callq	_UI_SetBestScores
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"games"

L_.str.1:                               ## @.str.1
	.asciz	"game"

L_.str.2:                               ## @.str.2
	.asciz	"games/%s"

	.comm	_FS_WRITE,4,2                   ## @FS_WRITE
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_ClearScores                 ; -- Begin function UI_ClearScores
	.p2align	2
_UI_ClearScores:                        ; @UI_ClearScores
	.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
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	mov	w3, #4096
	bl	_trap_FS_GetFileList
	mov	x19, x0
	mov	w8, #4
	str	w8, [sp, #20]
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.1:
	add	x20, sp, #24
Lloh9:
	adrp	x21, l_.str.2@PAGE
Lloh10:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh11:
	adrp	x23, _FS_WRITE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _FS_WRITE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w22, #1
	add	x20, x20, w8, sxtw
	subs	w19, w19, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_va
	ldr	w2, [x23]
	add	x1, sp, #16
	bl	_trap_FS_FOpenFile
	tbnz	x0, #63, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [sp, #16]
	add	x0, sp, #20
	mov	w1, #4
	bl	_trap_FS_Write
	ldp	w2, w1, [sp, #16]
	add	x0, sp, #12
	bl	_trap_FS_Write
	ldr	w0, [sp, #16]
	bl	_trap_FS_FCloseFile
	b	LBB0_2
LBB0_5:
Lloh13:
	adrp	x8, _qfalse@GOTPAGE
Lloh14:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_UI_SetBestScores
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"games"

l_.str.1:                               ; @.str.1
	.asciz	"game"

l_.str.2:                               ; @.str.2
	.asciz	"games/%s"

	.comm	_FS_WRITE,4,2                   ; @FS_WRITE
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
