	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_GetCurrentGame              ## -- Begin function UI_GetCurrentGame
	.p2align	4, 0x90
_UI_GetCurrentGame:                     ## @UI_GetCurrentGame
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_UI_GetSpecialArenaInfo
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_Info_ValueForKey
	movl	%eax, %edi
	callq	_atoi
	movl	%eax, %ebx
	leaq	-36(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movl	%eax, %edi
	callq	_UI_GetBestScore
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	cmpl	$1, %eax
	jg	LBB0_11
LBB0_3:
	movq	_ui_numSinglePlayerArenas@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-36(%rbp), %r14
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_UI_GetBestScore
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, %eax
	jg	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_5
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_UI_GetSpecialArenaInfo
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_Info_ValueForKey
	movl	%eax, %edi
	callq	_atoi
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_9:
	movl	$-1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"training"

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

	.comm	_ui_numSinglePlayerArenas,4,2   ## @ui_numSinglePlayerArenas
L_.str.2:                               ## @.str.2
	.asciz	"final"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_GetCurrentGame              ; -- Begin function UI_GetCurrentGame
	.p2align	2
_UI_GetCurrentGame:                     ; @UI_GetCurrentGame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UI_GetSpecialArenaInfo
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Info_ValueForKey
	bl	_atoi
	mov	x19, x0
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_UI_GetBestScore
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_10
; %bb.2:
	cmp	w8, #1
	b.gt	LBB0_10
LBB0_3:
Lloh4:
	adrp	x20, _ui_numSinglePlayerArenas@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ui_numSinglePlayerArenas@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w19, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_UI_GetBestScore
	ldr	w8, [sp, #12]
	cmp	w8, #0
	ccmp	w8, #1, #0, ne
	b.gt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	b.lt	LBB0_5
LBB0_7:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_UI_GetSpecialArenaInfo
	cbz	x0, LBB0_9
; %bb.8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Info_ValueForKey
	bl	_atoi
	mov	x19, x0
	b	LBB0_10
LBB0_9:
	mov	w19, #-1
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"training"

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

	.comm	_ui_numSinglePlayerArenas,4,2   ; @ui_numSinglePlayerArenas
l_.str.2:                               ; @.str.2
	.asciz	"final"

.subsections_via_symbols
