	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_TeamMember_HandleKey
_UI_TeamMember_HandleKey:               ## @UI_TeamMember_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
	movl	%edx, %ebx
	movq	_K_MOUSE1@GOTPCREL(%rip), %rax
	movq	_K_MOUSE2@GOTPCREL(%rip), %r15
	cmpl	%edx, (%rax)
	je	LBB0_5
## %bb.1:
	cmpl	%ebx, (%r15)
	je	LBB0_5
## %bb.2:
	movq	_K_ENTER@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_K_KP_ENTER@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_qfalse@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	testq	%rcx, %rcx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	movl	%r8d, %esi
	callq	_va
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_trap_Cvar_VariableValue
	xorl	%ecx, %ecx
	cmpl	%ebx, (%r15)
                                        ## kill: def $eax killed $eax def $rax
	setne	%cl
	leal	-1(%rax,%rcx,2), %r15d
	movq	_ui_actualNetGameType@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_GT_TEAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_UI_GetNumBots
	addl	$2, %eax
	cmpl	%eax, %r15d
	jge	LBB0_11
## %bb.9:
	movl	%r15d, %ebx
	testl	%r15d, %r15d
	jns	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_UI_GetNumBots
	movl	%eax, %ebx
	incl	%ebx
	jmp	LBB0_11
LBB0_6:
	movq	_uiInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	2(%rax), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %r15d
	jge	LBB0_11
## %bb.7:
	incl	%eax
	testl	%r15d, %r15d
	cmovnsl	%r15d, %eax
	movl	%eax, %ebx
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_va
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_trap_Cvar_Set
	movq	_qtrue@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_blueteam%i"

L_.str.1:                               ## @.str.1
	.asciz	"ui_redteam%i"

	.comm	_ui_actualNetGameType,8,3       ## @ui_actualNetGameType
	.comm	_GT_TEAM,8,3                    ## @GT_TEAM
	.comm	_uiInfo,4,2                     ## @uiInfo
L_.str.2:                               ## @.str.2
	.asciz	"%i"

	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_qfalse,8,3                     ## @qfalse
	.no_dead_strip	_UI_TeamMember_HandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_TeamMember_HandleKey
_UI_TeamMember_HandleKey:               ; @UI_TeamMember_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:
	adrp	x21, _K_MOUSE2@GOTPAGE
Lloh3:
	ldr	x21, [x21, _K_MOUSE2@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x21]
Lloh5:
	adrp	x10, _K_ENTER@GOTPAGE
Lloh6:
	ldr	x10, [x10, _K_ENTER@GOTPAGEOFF]
Lloh7:
	adrp	x11, _K_KP_ENTER@GOTPAGE
Lloh8:
	ldr	x11, [x11, _K_KP_ENTER@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
Lloh10:
	ldr	w11, [x11]
	cmp	w8, w2
	ccmp	w9, w2, #4, ne
	ccmp	w10, w2, #4, ne
	ccmp	w11, w2, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x20, x2
Lloh11:
	adrp	x8, l_.str@PAGE
Lloh12:
	add	x8, x8, l_.str@PAGEOFF
Lloh13:
	adrp	x9, l_.str.1@PAGE
Lloh14:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x3, #0
	csel	x0, x9, x8, eq
	mov	x1, x4
	bl	_va
	mov	x19, x0
	bl	_trap_Cvar_VariableValue
	ldr	w8, [x21]
	sub	w9, w0, #1
	cmp	w8, w20
Lloh15:
	adrp	x8, _ui_actualNetGameType@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ui_actualNetGameType@GOTPAGEOFF]
	csinc	w20, w9, w0, eq
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _GT_TEAM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GT_TEAM@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.2:
	bl	_UI_GetNumBots
	add	w8, w0, #2
	cmp	w20, w8
	b.ge	LBB0_8
; %bb.3:
	tbz	w20, #31, LBB0_9
; %bb.4:
	bl	_UI_GetNumBots
	add	w20, w0, #1
	b	LBB0_9
LBB0_5:
Lloh21:
	adrp	x8, _qfalse@GOTPAGE
Lloh22:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh23:
	adrp	x8, _uiInfo@GOTPAGE
Lloh24:
	ldr	x8, [x8, _uiInfo@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	add	w9, w8, #2
	cmp	w20, w9
	b.ge	LBB0_8
; %bb.7:
	cmp	w20, #0
	csinc	w20, w20, w8, ge
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_va
	mov	x1, x0
	mov	x0, x19
	bl	_trap_Cvar_Set
Lloh28:
	adrp	x8, _qtrue@GOTPAGE
Lloh29:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_10:
	ldr	x0, [x8]
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_blueteam%i"

l_.str.1:                               ; @.str.1
	.asciz	"ui_redteam%i"

	.comm	_ui_actualNetGameType,8,3       ; @ui_actualNetGameType
	.comm	_GT_TEAM,8,3                    ; @GT_TEAM
	.comm	_uiInfo,4,2                     ; @uiInfo
l_.str.2:                               ; @.str.2
	.asciz	"%i"

	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_qfalse,8,3                     ; @qfalse
	.no_dead_strip	_UI_TeamMember_HandleKey
.subsections_via_symbols
