	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_NetGameType_HandleKey
_UI_NetGameType_HandleKey:              ## @UI_NetGameType_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %edi
	callq	_UI_SelectForKey
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_ui_netGameType@GOTPCREL(%rip), %rbx
	addl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_uiInfo@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	js	LBB0_3
## %bb.4:
	xorl	%ecx, %ecx
	cmpl	%edx, %eax
	jge	LBB0_5
	jmp	LBB0_6
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	decl	%edx
	movl	%edx, %ecx
LBB0_5:
	movl	%ecx, (%rbx)
	movl	%ecx, %eax
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_trap_Cvar_SetValue
	movq	8(%r14), %rax
	movslq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_trap_Cvar_SetValue
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	callq	_trap_Cvar_SetValue
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_UI_MapCountByGameType
	movq	_FEEDER_ALLMAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_Menu_SetFeederSelection
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ui_netGameType,4,2             ## @ui_netGameType
	.comm	_uiInfo,16,3                    ## @uiInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_netGameType"

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

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

	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_FEEDER_ALLMAPS,4,2             ## @FEEDER_ALLMAPS
	.comm	_qtrue,4,2                      ## @qtrue
	.no_dead_strip	_UI_NetGameType_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_NetGameType_HandleKey
_UI_NetGameType_HandleKey:              ; @UI_NetGameType_HandleKey
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x0, x2
	bl	_UI_SelectForKey
Lloh0:
	adrp	x19, _qfalse@GOTPAGE
Lloh1:
	ldr	x19, [x19, _qfalse@GOTPAGEOFF]
	cbz	w0, LBB0_7
; %bb.1:
Lloh2:
	adrp	x20, _ui_netGameType@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ui_netGameType@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh4:
	adrp	x21, _uiInfo@GOTPAGE
Lloh5:
	ldr	x21, [x21, _uiInfo@GOTPAGEOFF]
	ldr	w8, [x21]
	adds	w1, w9, w0
	str	w1, [x20]
	b.mi	LBB0_4
; %bb.2:
	cmp	w1, w8
	b.lt	LBB0_6
; %bb.3:
	mov	w1, #0
	b	LBB0_5
LBB0_4:
	sub	w1, w8, #1
LBB0_5:
	str	w1, [x20]
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_SetValue
	ldr	x8, [x21, #8]
	ldrsw	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_trap_Cvar_SetValue
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_trap_Cvar_SetValue
	ldr	w0, [x19]
	bl	_UI_MapCountByGameType
Lloh12:
	adrp	x8, _FEEDER_ALLMAPS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FEEDER_ALLMAPS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, #0
	mov	w2, #0
	mov	x3, #0
	bl	_Menu_SetFeederSelection
Lloh15:
	adrp	x19, _qtrue@GOTPAGE
Lloh16:
	ldr	x19, [x19, _qtrue@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ui_netGameType,4,2             ; @ui_netGameType
	.comm	_uiInfo,16,3                    ; @uiInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_netGameType"

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

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

	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_FEEDER_ALLMAPS,4,2             ; @FEEDER_ALLMAPS
	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_UI_NetGameType_HandleKey
.subsections_via_symbols
