	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menu_AdjustCursor              ## -- Begin function Menu_AdjustCursor
	.p2align	4, 0x90
_Menu_AdjustCursor:                     ## @Menu_AdjustCursor
	.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
	.cfi_offset %rbx, -24
	movq	_QMF_GRAYED@GOTPCREL(%rip), %rax
	movq	_QMF_MOUSEONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	orl	(%rax), %r11d
	movq	(%rdi), %rdx
	movq	_QMF_INACTIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %r11d
	movq	8(%rdi), %rcx
	movslq	%esi, %r9
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	_qtrue@GOTPCREL(%rip), %r8
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%rax), %r10
	cmpq	%rcx, %rdx
	jae	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rdi), %rax
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rdx,8), %rbx
	testl	%r11d, (%rbx)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	addq	%r9, %rdx
	movq	%rdx, (%rdi)
	cmpq	%rcx, %rdx
	jb	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %esi
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 24(%rdi)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%r10, %r10
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, (%rdi)
	xorl	%edx, %edx
	movq	%r8, %rax
	jmp	LBB0_1
LBB0_9:
	movslq	16(%rdi), %rax
	movq	%rax, (%rdi)
LBB0_10:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_QMF_GRAYED,4,2                 ## @QMF_GRAYED
	.comm	_QMF_MOUSEONLY,4,2              ## @QMF_MOUSEONLY
	.comm	_QMF_INACTIVE,4,2               ## @QMF_INACTIVE
	.comm	_qtrue,8,3                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menu_AdjustCursor              ; -- Begin function Menu_AdjustCursor
	.p2align	2
_Menu_AdjustCursor:                     ; @Menu_AdjustCursor
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _QMF_GRAYED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QMF_GRAYED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _QMF_MOUSEONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QMF_MOUSEONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _QMF_INACTIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QMF_INACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	sxtw	x9, w1
	ldp	x12, x10, [x0]
Lloh9:
	adrp	x13, _qfalse@GOTPAGE
Lloh10:
	ldr	x13, [x13, _qfalse@GOTPAGEOFF]
Lloh11:
	adrp	x11, _qtrue@GOTPAGE
Lloh12:
	ldr	x11, [x11, _qtrue@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	x13, [x13]
	cmp	x12, x10
	b.hs	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x14, [x0, #32]
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x15, [x14, x12, lsl #3]
	ldr	w15, [x15]
	tst	w8, w15
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x12, x12, x9
	cmp	x12, x10
	str	x12, [x0]
	b.lo	LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w1, #1
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x12, [x0, #24]
	cmp	x12, #0
	ccmp	x13, #0, #0, ne
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x12, #0
	str	xzr, [x0]
	mov	x13, x11
	b	LBB0_1
LBB0_8:
	ldrsw	x8, [x0, #16]
	str	x8, [x0]
LBB0_9:
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_QMF_GRAYED,4,2                 ; @QMF_GRAYED
	.comm	_QMF_MOUSEONLY,4,2              ; @QMF_MOUSEONLY
	.comm	_QMF_INACTIVE,4,2               ; @QMF_INACTIVE
	.comm	_qtrue,8,3                      ; @qtrue
.subsections_via_symbols
