	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_menu_item_count
_get_menu_item_count:                   ## @get_menu_item_count
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MIIM_DATA@GOTPCREL(%rip), %rax
	movq	_MIIM_SUBMENU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	$16, -56(%rbp)
	movl	%ecx, -52(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rcx
	xorl	%esi, %esi
	callq	_GetMenuItemInfoW
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	movl	$1, %ebx
	leaq	-56(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %r15d
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rcx
	callq	_GetMenuItemInfoW
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movl	$1, %eax
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_get_menu_item_count
	jmp	LBB0_4
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIIM_DATA,4,2                  ## @MIIM_DATA
	.comm	_MIIM_SUBMENU,4,2               ## @MIIM_SUBMENU
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_get_menu_item_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_menu_item_count
_get_menu_item_count:                   ; @get_menu_item_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w8, #16
Lloh0:
	adrp	x9, _MIIM_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MIIM_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MIIM_SUBMENU@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MIIM_SUBMENU@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w8, w9, [sp]
Lloh6:
	adrp	x22, _TRUE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x3, sp
	mov	w1, #0
	bl	_GetMenuItemInfoW
	mov	w20, #0
	cbz	x0, LBB0_6
; %bb.1:
	mov	w21, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_get_menu_item_count
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w0, w20
	ldr	w2, [x22]
	mov	x3, sp
	mov	x0, x19
	mov	x1, x21
	bl	_GetMenuItemInfoW
	add	w21, w21, #1
	cbz	x0, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	b	LBB0_3
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIIM_DATA,4,2                  ; @MIIM_DATA
	.comm	_MIIM_SUBMENU,4,2               ; @MIIM_SUBMENU
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_get_menu_item_count
.subsections_via_symbols
