	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_GameType_HandleKey
_UI_GameType_HandleKey:                 ## @UI_GameType_HandleKey
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %edi
	callq	_UI_SelectForKey
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_qtrue@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_UI_MapCountByGameType
	movl	%eax, %r14d
	movq	_ui_gameType@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.6:
	incl	%eax
	movl	%eax, (%r13)
	movq	_uiInfo@GOTPCREL(%rip), %rdx
	movl	$1, %ecx
	cmpl	(%rdx), %eax
	jge	LBB0_8
## %bb.7:
	movl	$3, %ecx
	movl	%eax, %edx
	cmpl	$2, %eax
	je	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %r12
	jmp	LBB0_12
LBB0_3:
	leal	-1(%rax), %edx
	movl	%edx, (%r13)
	movl	$1, %ecx
	cmpl	$2, %edx
	je	LBB0_8
## %bb.4:
	cmpl	$2, %eax
	jg	LBB0_9
## %bb.5:
	movq	_uiInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	decl	%ecx
LBB0_8:
	movl	%ecx, (%r13)
	movl	%ecx, %edx
LBB0_9:
	movq	_uiInfo@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_GT_TEAM@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	setl	%sil
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_SetValue
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_trap_Cvar_SetValue
	movq	(%r12), %rdi
	callq	_UI_SetCapFragLimits
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	_ui_currentMap@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %edi
	movslq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rsi
	callq	_UI_LoadBestScores
	testq	%r15, %r15
	je	LBB0_12
## %bb.10:
	movq	_qtrue@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_UI_MapCountByGameType
	cmpl	%eax, %r14d
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	callq	_trap_Cvar_SetValue
	movq	_FEEDER_MAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_Menu_SetFeederSelection
LBB0_12:
	movq	(%r12), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_ui_gameType,4,2                ## @ui_gameType
	.comm	_uiInfo,24,3                    ## @uiInfo
	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_Q3Model"

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

	.comm	_ui_currentMap,8,3              ## @ui_currentMap
L_.str.2:                               ## @.str.2
	.asciz	"ui_currentMap"

	.comm	_FEEDER_MAPS,4,2                ## @FEEDER_MAPS
	.comm	_qfalse,8,3                     ## @qfalse
	.no_dead_strip	_UI_GameType_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_GameType_HandleKey
_UI_GameType_HandleKey:                 ; @UI_GameType_HandleKey
	.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	x19, x3
	mov	x0, x2
	bl	_UI_SelectForKey
	cbz	w0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _qtrue@GOTPAGE
Lloh1:
	ldr	x22, [x22, _qtrue@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_UI_MapCountByGameType
	mov	x20, x0
Lloh2:
	adrp	x23, _ui_gameType@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ui_gameType@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh4:
	adrp	x24, _uiInfo@GOTPAGE
Lloh5:
	ldr	x24, [x24, _uiInfo@GOTPAGEOFF]
	tbnz	w21, #31, LBB0_6
; %bb.2:
	add	w8, w9, #1
	str	w8, [x23]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.3:
	cmp	w8, #2
	b.ne	LBB0_9
; %bb.4:
	mov	w8, #3
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x22, _qfalse@GOTPAGE
Lloh7:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	sub	w8, w9, #1
	str	w8, [x23]
	cmp	w8, #2
	b.ne	LBB0_13
LBB0_7:
	mov	w8, #1
LBB0_8:
	str	w8, [x23]
LBB0_9:
	ldr	x9, [x24, #8]
	ldr	x8, [x9, w8, sxtw #3]
Lloh8:
	adrp	x9, _GT_TEAM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GT_TEAM@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, lt
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_SetValue
	ldr	w1, [x23]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trap_Cvar_SetValue
	ldr	x0, [x22]
	bl	_UI_SetCapFragLimits
Lloh15:
	adrp	x8, _ui_currentMap@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ui_currentMap@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldp	x10, x9, [x24, #8]
	ldr	w0, [x9, x8, lsl #2]
	ldrsw	x8, [x23]
	ldr	x1, [x10, x8, lsl #3]
	bl	_UI_LoadBestScores
	cbz	x19, LBB0_12
; %bb.10:
	ldr	x0, [x22]
	bl	_UI_MapCountByGameType
	cmp	w20, w0
	b.eq	LBB0_12
; %bb.11:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_trap_Cvar_SetValue
Lloh20:
	adrp	x8, _FEEDER_MAPS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FEEDER_MAPS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, #0
	mov	w2, #0
	mov	x3, #0
	bl	_Menu_SetFeederSelection
Lloh23:
	adrp	x22, _qtrue@GOTPAGE
Lloh24:
	ldr	x22, [x22, _qtrue@GOTPAGEOFF]
LBB0_12:
	ldr	x0, [x22]
	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_13:
	cmp	w9, #2
	b.gt	LBB0_9
; %bb.14:
	ldr	w8, [x24]
	sub	w8, w8, #1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_ui_gameType,4,2                ; @ui_gameType
	.comm	_uiInfo,24,3                    ; @uiInfo
	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_Q3Model"

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

	.comm	_ui_currentMap,8,3              ; @ui_currentMap
l_.str.2:                               ; @.str.2
	.asciz	"ui_currentMap"

	.comm	_FEEDER_MAPS,4,2                ; @FEEDER_MAPS
	.comm	_qfalse,8,3                     ; @qfalse
	.no_dead_strip	_UI_GameType_HandleKey
.subsections_via_symbols
