	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_SetFocus                  ## -- Begin function Item_SetFocus
	.p2align	4, 0x90
_Item_SetFocus:                         ## @Item_SetFocus
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_qfalse@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.1:
	movq	%rdi, %r15
	movl	32(%rdi), %eax
	movq	_WINDOW_DECORATION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_26
## %bb.2:
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_3
LBB0_26:
	movq	(%rbx), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_WINDOW_VISIBLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.4:
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	56(%r15), %r14
	movl	(%r15), %eax
	movq	_CVAR_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CVAR_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%esi, %ecx
	testl	%eax, %ecx
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_Item_EnableShowViaCvar
	testl	%eax, %eax
	je	LBB0_26
## %bb.6:
	movl	(%r15), %eax
LBB0_7:
	movq	_CVAR_SHOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CVAR_HIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%esi, %ecx
	testl	%eax, %ecx
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_Item_EnableShowViaCvar
	testl	%eax, %eax
	je	LBB0_26
LBB0_9:
	movq	%r14, %rbx
	addq	$8, %r12
	movq	56(%r15), %rdi
	callq	_Menu_ClearFocus
	movq	%rax, %r14
	movq	8(%r15), %rax
	movq	_ITEM_TYPE_TEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.10:
	movups	40(%r15), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	-80(%rbp), %eax
	subl	%eax, -72(%rbp)
	leaq	-80(%rbp), %rdi
	movss	-52(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_Rect_ContainsPoint
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r13), %eax
	orl	%eax, 32(%r15)
	jmp	LBB0_18
LBB0_16:
	movl	(%r13), %eax
	orl	%eax, 32(%r15)
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_Item_RunScript
LBB0_18:
	leaq	16(%r15), %rax
	cmpq	$0, 16(%r15)
	cmovneq	%rax, %r12
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, %r14
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rdi
	movq	_CHAN_LOCAL_SOUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
LBB0_21:
	movl	(%r14), %eax
	movq	_qtrue@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	jle	LBB0_26
## %bb.22:
	movq	8(%r14), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rdx,%rcx,8)
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_23
	jmp	LBB0_26
LBB0_24:
	movl	%ecx, 4(%r14)
	jmp	LBB0_26
LBB0_12:
	testq	%r14, %r14
	je	LBB0_15
## %bb.13:
	movl	(%r13), %eax
	orl	%eax, 32(%r14)
	movq	24(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_Item_RunScript
LBB0_15:
	movq	%rbx, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_DC,8,3                         ## @DC
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_WINDOW_DECORATION,4,2          ## @WINDOW_DECORATION
	.comm	_WINDOW_HASFOCUS,4,2            ## @WINDOW_HASFOCUS
	.comm	_WINDOW_VISIBLE,4,2             ## @WINDOW_VISIBLE
	.comm	_CVAR_ENABLE,4,2                ## @CVAR_ENABLE
	.comm	_CVAR_DISABLE,4,2               ## @CVAR_DISABLE
	.comm	_CVAR_SHOW,4,2                  ## @CVAR_SHOW
	.comm	_CVAR_HIDE,4,2                  ## @CVAR_HIDE
	.comm	_ITEM_TYPE_TEXT,8,3             ## @ITEM_TYPE_TEXT
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_CHAN_LOCAL_SOUND,4,2           ## @CHAN_LOCAL_SOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_SetFocus                  ; -- Begin function Item_SetFocus
	.p2align	2
_Item_SetFocus:                         ; @Item_SetFocus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
Lloh0:
	adrp	x8, _qfalse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0, #32]
Lloh2:
	adrp	x10, _WINDOW_DECORATION@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WINDOW_DECORATION@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x25, _WINDOW_HASFOCUS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _WINDOW_HASFOCUS@GOTPAGEOFF]
	ldr	w10, [x25]
	tst	w10, w9
	b.eq	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _qfalse@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
Lloh9:
	adrp	x10, _WINDOW_VISIBLE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WINDOW_VISIBLE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.6:
	fmov	s8, s1
	fmov	s9, s0
Lloh12:
	adrp	x22, _DC@GOTPAGE
Lloh13:
	ldr	x22, [x22, _DC@GOTPAGEOFF]
	ldr	x20, [x22]
	ldr	x23, [x8]
	ldr	x21, [x19, #56]
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _CVAR_ENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CVAR_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
Lloh17:
	adrp	x9, _CVAR_DISABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CVAR_DISABLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w9, w9, w1
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_Item_EnableShowViaCvar
	cbz	w0, LBB0_3
; %bb.8:
	ldr	w8, [x19]
LBB0_9:
Lloh20:
	adrp	x9, _CVAR_SHOW@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CVAR_SHOW@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
Lloh23:
	adrp	x9, _CVAR_HIDE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CVAR_HIDE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w9, w9, w1
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_Item_EnableShowViaCvar
	cbz	w0, LBB0_3
LBB0_11:
	add	x24, x20, #8
	ldr	x0, [x19, #56]
	bl	_Menu_ClearFocus
	ldr	x8, [x19, #8]
Lloh26:
	adrp	x9, _ITEM_TYPE_TEXT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ITEM_TYPE_TEXT@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	mov	x20, x0
	ldur	q0, [x19, #40]
	str	q0, [sp]
	ldr	w8, [sp]
	ldr	w9, [sp, #8]
	sub	w8, w9, w8
	str	w8, [sp, #8]
	mov	x0, sp
	fmov	s0, s9
	fmov	s1, s8
	bl	_Rect_ContainsPoint
	cbz	x0, LBB0_26
; %bb.13:
	ldr	w8, [x25]
	mov	x9, x19
	ldr	x10, [x9, #16]!
	ldr	w11, [x9, #16]
	orr	w8, w11, w8
	str	w8, [x9, #16]
	cmp	x10, #0
	csel	x24, x24, x9, eq
	b	LBB0_17
LBB0_14:
	ldr	w8, [x25]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_Item_RunScript
LBB0_16:
	mov	x8, x19
	ldr	x9, [x8, #16]!
	cmp	x9, #0
	csel	x24, x24, x8, eq
LBB0_17:
Lloh29:
	adrp	x8, _qtrue@GOTPAGE
Lloh30:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh31:
	ldr	x23, [x8]
LBB0_18:
	cbz	x23, LBB0_20
; %bb.19:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x0, [x24]
Lloh32:
	adrp	x9, _CHAN_LOCAL_SOUND@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CHAN_LOCAL_SOUND@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x9]
	blr	x8
LBB0_20:
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_25
; %bb.21:
	mov	x10, #0
	ldr	x11, [x21, #8]
Lloh35:
	adrp	x8, _qtrue@GOTPAGE
Lloh36:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, x10, lsl #3]
	cmp	x12, x19
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_22
	b	LBB0_4
LBB0_24:
	str	w10, [x21, #4]
LBB0_25:
Lloh37:
	adrp	x8, _qtrue@GOTPAGE
Lloh38:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_4
LBB0_26:
	cbz	x20, LBB0_18
; %bb.27:
	ldr	w8, [x25]
	ldr	w9, [x20, #32]
	orr	w8, w9, w8
	str	w8, [x20, #32]
	ldr	x1, [x20, #24]
	cbz	x1, LBB0_18
; %bb.28:
	mov	x0, x20
	bl	_Item_RunScript
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_DC,8,3                         ; @DC
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_WINDOW_DECORATION,4,2          ; @WINDOW_DECORATION
	.comm	_WINDOW_HASFOCUS,4,2            ; @WINDOW_HASFOCUS
	.comm	_WINDOW_VISIBLE,4,2             ; @WINDOW_VISIBLE
	.comm	_CVAR_ENABLE,4,2                ; @CVAR_ENABLE
	.comm	_CVAR_DISABLE,4,2               ; @CVAR_DISABLE
	.comm	_CVAR_SHOW,4,2                  ; @CVAR_SHOW
	.comm	_CVAR_HIDE,4,2                  ; @CVAR_HIDE
	.comm	_ITEM_TYPE_TEXT,8,3             ; @ITEM_TYPE_TEXT
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_CHAN_LOCAL_SOUND,4,2           ; @CHAN_LOCAL_SOUND
.subsections_via_symbols
