	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_SPUnlock_f                  ## -- Begin function UI_SPUnlock_f
	.p2align	4, 0x90
_UI_SPUnlock_f:                         ## @UI_SPUnlock_f
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_INFO_VALUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_trap_Cvar_VariableStringBuffer
	movq	_ui_numSinglePlayerArenas@GOTPCREL(%rip), %r15
	movq	_ui_numSpecialSinglePlayerArenas@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	(%r15), %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$16, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	callq	_Com_sprintf
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_Info_SetValueForKey
	incl	%ebx
	movl	(%r13), %eax
	addl	(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_trap_Cvar_Set
	movl	$1, %edi
	callq	_UI_ShowTierVideo
	movl	$2, %edi
	callq	_UI_ShowTierVideo
	movl	$3, %edi
	callq	_UI_ShowTierVideo
	movl	$4, %edi
	callq	_UI_ShowTierVideo
	movl	$5, %edi
	callq	_UI_ShowTierVideo
	movl	$6, %edi
	callq	_UI_ShowTierVideo
	movl	$7, %edi
	callq	_UI_ShowTierVideo
	movl	$8, %edi
	callq	_UI_ShowTierVideo
	leaq	L_.str.3(%rip), %rdi
	callq	_trap_Print
	xorl	%eax, %eax
	callq	_UI_SPLevelMenu_ReInit
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_VALUE,4,2             ## @MAX_INFO_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g_spScores1"

	.comm	_ui_numSinglePlayerArenas,4,2   ## @ui_numSinglePlayerArenas
	.comm	_ui_numSpecialSinglePlayerArenas,4,2 ## @ui_numSpecialSinglePlayerArenas
L_.str.1:                               ## @.str.1
	.asciz	"l%i"

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

L_.str.3:                               ## @.str.3
	.asciz	"All levels unlocked at skill level 1\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_SPUnlock_f                  ; -- Begin function UI_SPUnlock_f
	.p2align	2
_UI_SPUnlock_f:                         ; @UI_SPUnlock_f
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #32
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x12, _MAX_INFO_VALUE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_INFO_VALUE@GOTPAGEOFF]
	ldr	w8, [x12]
	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	x19, x9, x8
	mov	sp, x19
	ldr	w2, [x12]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_trap_Cvar_VariableStringBuffer
Lloh9:
	adrp	x24, _ui_numSinglePlayerArenas@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ui_numSinglePlayerArenas@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh11:
	adrp	x25, _ui_numSpecialSinglePlayerArenas@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ui_numSpecialSinglePlayerArenas@GOTPAGEOFF]
	ldr	w9, [x25]
	add	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh13:
	adrp	x21, l_.str.1@PAGE
Lloh14:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh15:
	adrp	x22, l_.str.2@PAGE
Lloh16:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #88
	mov	w1, #16
	mov	x2, x21
	mov	x3, x20
	bl	_Com_sprintf
	sub	x1, x29, #88
	mov	x0, x19
	mov	x2, x22
	bl	_Info_SetValueForKey
	add	w20, w20, #1
	ldr	w8, [x24]
	ldr	w9, [x25]
	add	w8, w9, w8
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_trap_Cvar_Set
	mov	w0, #1
	bl	_UI_ShowTierVideo
	mov	w0, #2
	bl	_UI_ShowTierVideo
	mov	w0, #3
	bl	_UI_ShowTierVideo
	mov	w0, #4
	bl	_UI_ShowTierVideo
	mov	w0, #5
	bl	_UI_ShowTierVideo
	mov	w0, #6
	bl	_UI_ShowTierVideo
	mov	w0, #7
	bl	_UI_ShowTierVideo
	mov	w0, #8
	bl	_UI_ShowTierVideo
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_trap_Print
	bl	_UI_SPLevelMenu_ReInit
	mov	sp, x23
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_VALUE,4,2             ; @MAX_INFO_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g_spScores1"

	.comm	_ui_numSinglePlayerArenas,4,2   ; @ui_numSinglePlayerArenas
	.comm	_ui_numSpecialSinglePlayerArenas,4,2 ; @ui_numSpecialSinglePlayerArenas
l_.str.1:                               ; @.str.1
	.asciz	"l%i"

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

l_.str.3:                               ; @.str.3
	.asciz	"All levels unlocked at skill level 1\n"

.subsections_via_symbols
