	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_JoinGameType_HandleKey
_UI_JoinGameType_HandleKey:             ## @UI_JoinGameType_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edx, %edi
	callq	_UI_SelectForKey
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	%eax, %rsi
	movq	_ui_joinGameType@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%rsi, (%rax)
	movq	_uiInfo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	js	LBB0_3
## %bb.4:
	cmpq	%rcx, %rsi
	jl	LBB0_7
## %bb.5:
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_1:
	movq	_qfalse@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_3:
	decq	%rcx
	movq	%rcx, %rsi
LBB0_6:
	movq	%rsi, (%rax)
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_SetValue
	movq	_qtrue@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_UI_BuildServerDisplayList
LBB0_8:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ui_joinGameType,8,3            ## @ui_joinGameType
	.comm	_uiInfo,8,3                     ## @uiInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_joinGameType"

	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
	.no_dead_strip	_UI_JoinGameType_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_JoinGameType_HandleKey
_UI_JoinGameType_HandleKey:             ; @UI_JoinGameType_HandleKey
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x0, x2
	bl	_UI_SelectForKey
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ui_joinGameType@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ui_joinGameType@GOTPAGEOFF]
	ldr	x9, [x8]
	adds	x1, x9, w0, sxtw
	str	x1, [x8]
Lloh2:
	adrp	x9, _uiInfo@GOTPAGE
Lloh3:
	ldr	x9, [x9, _uiInfo@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	b.mi	LBB0_5
; %bb.2:
	cmp	x1, x9
	b.lt	LBB0_7
; %bb.3:
	mov	x1, #0
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x19, _qfalse@GOTPAGE
Lloh6:
	ldr	x19, [x19, _qfalse@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	sub	x1, x9, #1
LBB0_6:
	str	x1, [x8]
LBB0_7:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_SetValue
Lloh9:
	adrp	x19, _qtrue@GOTPAGE
Lloh10:
	ldr	x19, [x19, _qtrue@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_UI_BuildServerDisplayList
LBB0_8:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ui_joinGameType,8,3            ; @ui_joinGameType
	.comm	_uiInfo,8,3                     ; @uiInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_joinGameType"

	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_UI_JoinGameType_HandleKey
.subsections_via_symbols
