	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_K_MOUSE1@GOTPCREL(%rip), %rcx
	movq	_K_MOUSE2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, (%rcx)
	je	LBB0_5
## %bb.1:
	cmpl	%edx, %eax
	je	LBB0_5
## %bb.2:
	movq	_K_ENTER@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_K_KP_ENTER@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	xorl	%ecx, %ecx
	cmpl	%edx, %eax
	setne	%cl
	movq	_ui_netGameType@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	leaq	(%rax,%rcx,2), %rsi
	decq	%rsi
	movq	_uiInfo@GOTPCREL(%rip), %r15
	xorl	%eax, %eax
	cmpq	(%r15), %rsi
	cmovaeq	%rax, %rsi
	movq	%rsi, (%rbx)
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rdi
	callq	_va
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_trap_Cvar_Set
	movq	8(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%r14, %rdi
	callq	_va
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_trap_Cvar_Set
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_trap_Cvar_Set
	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_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_K_MOUSE1,4,2                   ## @K_MOUSE1
	.comm	_K_MOUSE2,4,2                   ## @K_MOUSE2
	.comm	_K_ENTER,4,2                    ## @K_ENTER
	.comm	_K_KP_ENTER,4,2                 ## @K_KP_ENTER
	.comm	_ui_netGameType,8,3             ## @ui_netGameType
	.comm	_uiInfo,16,3                    ## @uiInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_netGameType"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"0"

	.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
Lloh0:
	adrp	x8, _K_MOUSE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _K_MOUSE1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _K_MOUSE2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _K_MOUSE2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _K_ENTER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _K_ENTER@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _K_KP_ENTER@GOTPAGE
Lloh10:
	ldr	x11, [x11, _K_KP_ENTER@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x20, _qfalse@GOTPAGE
Lloh13:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
	cmp	w9, w2
	ccmp	w8, w2, #4, ne
	ccmp	w10, w2, #4, ne
	ccmp	w11, w2, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh14:
	adrp	x21, _ui_netGameType@GOTPAGE
Lloh15:
	ldr	x21, [x21, _ui_netGameType@GOTPAGEOFF]
	ldr	x9, [x21]
	sub	x10, x9, #1
	cmp	w8, w2
	csinc	x8, x10, x9, eq
Lloh16:
	adrp	x22, _uiInfo@GOTPAGE
Lloh17:
	ldr	x22, [x22, _uiInfo@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	csel	x1, x8, xzr, lo
	str	x1, [x21]
Lloh18:
	adrp	x19, l_.str.1@PAGE
Lloh19:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_va
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
	ldr	x8, [x22, #8]
	ldr	x9, [x21]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x19
	bl	_va
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_trap_Cvar_Set
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_trap_Cvar_Set
	ldr	w0, [x20]
	bl	_UI_MapCountByGameType
Lloh28:
	adrp	x8, _FEEDER_ALLMAPS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FEEDER_ALLMAPS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, #0
	mov	w2, #0
	mov	x3, #0
	bl	_Menu_SetFeederSelection
Lloh31:
	adrp	x20, _qtrue@GOTPAGE
Lloh32:
	ldr	x20, [x20, _qtrue@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x20]
	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	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_K_MOUSE1,4,2                   ; @K_MOUSE1
	.comm	_K_MOUSE2,4,2                   ; @K_MOUSE2
	.comm	_K_ENTER,4,2                    ; @K_ENTER
	.comm	_K_KP_ENTER,4,2                 ; @K_KP_ENTER
	.comm	_ui_netGameType,8,3             ; @ui_netGameType
	.comm	_uiInfo,16,3                    ; @uiInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_netGameType"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"0"

	.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
