	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Multi_HandleKey           ## -- Begin function Item_Multi_HandleKey
	.p2align	4, 0x90
_Item_Multi_HandleKey:                  ## @Item_Multi_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r15
	movq	_qfalse@GOTPCREL(%rip), %r13
	testq	%r15, %r15
	je	LBB0_15
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$12, %rdi
	movq	_DC@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	callq	_Rect_ContainsPoint
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_15
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_15
## %bb.4:
	movq	_K_MOUSE1@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_K_ENTER@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_8
## %bb.6:
	movq	_K_MOUSE2@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_K_MOUSE3@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_15
LBB0_8:
	movq	%rbx, %rdi
	callq	_Item_Multi_FindCvarByValue
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_Item_Multi_CountSettings
	leal	1(%r14), %ecx
	xorl	%edx, %edx
	cmpl	%eax, %ecx
	cmovgel	%edx, %ecx
	cmpl	$-1, %r14d
	cmovll	%edx, %ecx
	cmpq	$0, 16(%r15)
	je	LBB0_10
## %bb.9:
	movq	(%r12), %rax
	movq	(%rbx), %rdi
	movq	8(%r15), %rdx
	movl	%ecx, %ecx
	movl	(%rdx,%rcx,4), %esi
	callq	*(%rax)
	jmp	LBB0_14
LBB0_10:
	movq	(%r15), %rax
	movl	%ecx, %ecx
	movss	(%rax,%rcx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	cvttps2dq	%xmm0, %xmm1
	cvtdq2ps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	movq	(%r12), %rax
	movq	(%rax), %r14
	movq	(%rbx), %rbx
	jne	LBB0_12
	jp	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
	movaps	%xmm1, %xmm0
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
LBB0_13:
	callq	_va
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r14
LBB0_14:
	movq	_qtrue@GOTPCREL(%rip), %r13
LBB0_15:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC,8,3                         ## @DC
	.comm	_WINDOW_HASFOCUS,4,2            ## @WINDOW_HASFOCUS
	.comm	_K_MOUSE1,4,2                   ## @K_MOUSE1
	.comm	_K_ENTER,4,2                    ## @K_ENTER
	.comm	_K_MOUSE2,4,2                   ## @K_MOUSE2
	.comm	_K_MOUSE3,4,2                   ## @K_MOUSE3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i"

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Multi_HandleKey           ; -- Begin function Item_Multi_HandleKey
	.p2align	2
_Item_Multi_HandleKey:                  ; @Item_Multi_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
	ldr	x21, [x0, #16]
	cbz	x21, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #12
Lloh0:
	adrp	x22, _DC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DC@GOTPAGEOFF]
	ldr	x8, [x22]
	ldp	w2, w1, [x8, #8]
	bl	_Rect_ContainsPoint
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x9, _WINDOW_HASFOCUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WINDOW_HASFOCUS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _K_MOUSE1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _K_MOUSE1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_10
; %bb.5:
Lloh8:
	adrp	x8, _K_ENTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _K_ENTER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_10
; %bb.6:
Lloh11:
	adrp	x8, _K_MOUSE2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _K_MOUSE2@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_10
; %bb.7:
Lloh14:
	adrp	x8, _K_MOUSE3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _K_MOUSE3@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _qfalse@GOTPAGE
Lloh18:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [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
LBB0_10:
	mov	x0, x19
	bl	_Item_Multi_FindCvarByValue
	mov	x20, x0
	mov	x0, x19
	bl	_Item_Multi_CountSettings
	add	w8, w20, #1
	cmp	w8, w0
	mov	w8, #-2
	ccmp	w20, w8, #4, lt
	csinc	w8, wzr, w20, le
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_12
; %bb.11:
	ldr	x9, [x22]
	ldr	x9, [x9]
	ldr	x0, [x19]
	ldr	x10, [x21, #8]
	ldr	w1, [x10, w8, uxtw #2]
	blr	x9
	b	LBB0_16
LBB0_12:
	ldr	x9, [x21]
	ldr	s0, [x9, w8, uxtw #2]
	fcvtzs	s1, s0
	scvtf	s1, s1
	ldr	x8, [x22]
	ldr	x20, [x8]
	ldr	x19, [x19]
	fcmp	s0, s1
	b.ne	LBB0_14
; %bb.13:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	fmov	s0, s1
	b	LBB0_15
LBB0_14:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_15:
	bl	_va
	mov	x1, x0
	mov	x0, x19
	blr	x20
LBB0_16:
Lloh23:
	adrp	x8, _qtrue@GOTPAGE
Lloh24:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DC,8,3                         ; @DC
	.comm	_WINDOW_HASFOCUS,4,2            ; @WINDOW_HASFOCUS
	.comm	_K_MOUSE1,4,2                   ; @K_MOUSE1
	.comm	_K_ENTER,4,2                    ; @K_ENTER
	.comm	_K_MOUSE2,4,2                   ; @K_MOUSE2
	.comm	_K_MOUSE3,4,2                   ; @K_MOUSE3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i"

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

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