	.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
	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), %rbx
	jmp	LBB0_11
LBB0_5:
	xorl	%esi, %esi
	cmpl	%edx, %eax
	setne	%sil
	movq	_ui_joinGameType@GOTPCREL(%rip), %rax
	addq	%rsi, %rsi
	addq	(%rax), %rsi
	decq	%rsi
	movq	%rsi, (%rax)
	movq	_uiInfo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	js	LBB0_6
## %bb.7:
	cmpq	%rcx, %rsi
	jl	LBB0_10
## %bb.8:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_6:
	decq	%rcx
	movq	%rcx, %rsi
LBB0_9:
	movq	%rsi, (%rax)
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_va
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_trap_Cvar_Set
	movq	_qtrue@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_UI_BuildServerDisplayList
LBB0_11:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	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_joinGameType,8,3            ## @ui_joinGameType
	.comm	_uiInfo,8,3                     ## @uiInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_joinGameType"

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

	.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
Lloh0:
	adrp	x8, _K_MOUSE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _K_MOUSE1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _K_MOUSE2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _K_MOUSE2@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _K_ENTER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _K_ENTER@GOTPAGEOFF]
Lloh8:
	adrp	x11, _K_KP_ENTER@GOTPAGE
Lloh9:
	ldr	x11, [x11, _K_KP_ENTER@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	cmp	w8, w2
	ccmp	w9, w2, #4, ne
	ccmp	w10, w2, #4, ne
	ccmp	w11, w2, #4, ne
	b.ne	LBB0_4
; %bb.1:
Lloh12:
	adrp	x8, _ui_joinGameType@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ui_joinGameType@GOTPAGEOFF]
	ldr	x10, [x8]
	sub	x11, x10, #1
	cmp	w9, w2
	csinc	x1, x11, x10, eq
	str	x1, [x8]
Lloh14:
	adrp	x9, _uiInfo@GOTPAGE
Lloh15:
	ldr	x9, [x9, _uiInfo@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	tbnz	x1, #63, LBB0_5
; %bb.2:
	cmp	x1, x9
	b.lt	LBB0_7
; %bb.3:
	mov	x1, #0
	b	LBB0_6
LBB0_4:
Lloh17:
	adrp	x19, _qfalse@GOTPAGE
Lloh18:
	ldr	x19, [x19, _qfalse@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	sub	x1, x9, #1
LBB0_6:
	str	x1, [x8]
LBB0_7:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_va
	mov	x1, x0
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
Lloh23:
	adrp	x19, _qtrue@GOTPAGE
Lloh24:
	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	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.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_joinGameType,8,3            ; @ui_joinGameType
	.comm	_uiInfo,8,3                     ; @uiInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_joinGameType"

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

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