	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menu_SetNextCursorItem         ## -- Begin function Menu_SetNextCursorItem
	.p2align	4, 0x90
_Menu_SetNextCursorItem:                ## @Menu_SetNextCursorItem
	.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	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	4(%rdi), %ecx
	xorl	%eax, %eax
	cmpl	$-1, %r14d
	cmovnel	%r14d, %eax
	cmpl	%ecx, %eax
	jge	LBB0_10
## %bb.1:
	cmpl	$-1, %r14d
	jne	LBB0_2
## %bb.3:
	movq	_qtrue@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_2:
	movq	_qfalse@GOTPCREL(%rip), %rdx
LBB0_4:
	movq	(%rdx), %r12
	movq	_DC@GOTPCREL(%rip), %r15
	movq	_qtrue@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	movl	%eax, (%rbx)
	cmpl	%ecx, %eax
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %r12
	movl	$0, (%rbx)
	xorl	%eax, %eax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rdi
	movq	(%r15), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_Item_SetFocus
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_5
LBB0_10:
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_12:
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	incq	%rsi
	incq	%rdx
	movq	%rbx, %rdi
	callq	_Menu_HandleMouseMove
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_DC,8,3                         ## @DC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menu_SetNextCursorItem         ; -- Begin function Menu_SetNextCursorItem
	.p2align	2
_Menu_SetNextCursorItem:                ; @Menu_SetNextCursorItem
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldp	w20, w8, [x0]
	cmn	w20, #1
	csel	w9, wzr, w20, eq
	cmp	w9, w8
	b.ge	LBB0_6
; %bb.1:
Lloh0:
	adrp	x21, _qtrue@GOTPAGE
Lloh1:
	ldr	x21, [x21, _qtrue@GOTPAGEOFF]
Lloh2:
	adrp	x10, _qfalse@GOTPAGE
Lloh3:
	ldr	x10, [x10, _qfalse@GOTPAGEOFF]
	cmn	w20, #1
	csel	x10, x21, x10, eq
	ldr	x22, [x10]
Lloh4:
	adrp	x23, _DC@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w9, #1
	str	w9, [x19]
	cmp	w9, w8
	ccmp	x22, #0, #0, ge
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #0
	ldr	x22, [x21]
	str	wzr, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, w9, sxtw #3]
	ldr	x8, [x23]
	ldp	w2, w1, [x8]
	bl	_Item_SetFocus
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w8, [x19]
	cmp	w9, w8
	b.lt	LBB0_2
LBB0_6:
	mov	x0, #0
	str	w20, [x19]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	ldp	x8, x9, [x8]
	add	x1, x9, #1
	add	x2, x8, #1
	mov	x0, x19
	bl	_Menu_HandleMouseMove
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_DC,8,3                         ; @DC
.subsections_via_symbols
