	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fixup_rootmenu                 ## -- Begin function fixup_rootmenu
	.p2align	4, 0x90
_fixup_rootmenu:                        ## @fixup_rootmenu
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MENU_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rdi)
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	_P_MENU@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	_fixup_rootmenu.menu_cnt(%rip)
	movq	%rbx, %rdi
	callq	_fixup_rootmenu
	decl	_fixup_rootmenu.menu_cnt(%rip)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, _fixup_rootmenu.menu_cnt(%rip)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_fixup_rootmenu
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fixup_rootmenu.menu_cnt,4,2 ## @fixup_rootmenu.menu_cnt
	.comm	_MENU_ROOT,4,2                  ## @MENU_ROOT
	.comm	_P_MENU,8,3                     ## @P_MENU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fixup_rootmenu                 ; -- Begin function fixup_rootmenu
	.p2align	2
_fixup_rootmenu:                        ; @fixup_rootmenu
	.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, _MENU_ROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_ROOT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
	orr	w8, w9, w8
	str	w8, [x0, #24]
	ldr	x19, [x0, #16]
	cbz	x19, LBB0_8
; %bb.1:
	adrp	x20, _fixup_rootmenu.menu_cnt@PAGE
Lloh3:
	adrp	x21, _P_MENU@GOTPAGE
Lloh4:
	ldr	x21, [x21, _P_MENU@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, _fixup_rootmenu.menu_cnt@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x20, _fixup_rootmenu.menu_cnt@PAGEOFF]
	mov	x0, x19
	bl	_fixup_rootmenu
	ldr	w8, [x20, _fixup_rootmenu.menu_cnt@PAGEOFF]
	sub	w8, w8, #1
	str	w8, [x20, _fixup_rootmenu.menu_cnt@PAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, _fixup_rootmenu.menu_cnt@PAGEOFF]
	cbnz	w8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_fixup_rootmenu
	b	LBB0_3
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fixup_rootmenu.menu_cnt,4,2 ; @fixup_rootmenu.menu_cnt
	.comm	_MENU_ROOT,4,2                  ; @MENU_ROOT
	.comm	_P_MENU,8,3                     ; @P_MENU
.subsections_via_symbols
