	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MenuParse_itemDef              ## -- Begin function MenuParse_itemDef
	.p2align	4, 0x90
_MenuParse_itemDef:                     ## @MenuParse_itemDef
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_MAX_MENUITEMS@GOTPCREL(%rip), %rcx
	movq	_qtrue@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	jae	LBB0_4
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$4, %edi
	callq	_UI_Alloc
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	8(%rbx), %rax
	movq	(%rax,%rcx,8), %rdi
	callq	_Item_Init
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rsi
	movl	%r14d, %edi
	callq	_Item_Parse
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdi
	callq	_Item_InitControls
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movq	(%rcx,%rax,8), %rax
	movq	%rbx, (%rax)
	jmp	LBB0_4
LBB0_2:
	movq	_qfalse@GOTPCREL(%rip), %r15
LBB0_4:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MENUITEMS,8,3              ## @MAX_MENUITEMS
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MenuParse_itemDef              ; -- Begin function MenuParse_itemDef
	.p2align	2
_MenuParse_itemDef:                     ; @MenuParse_itemDef
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAX_MENUITEMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_MENUITEMS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w0, #4
	bl	_UI_Alloc
	ldp	x9, x8, [x19]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x9]
	bl	_Item_Init
	ldp	x9, x8, [x19]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_Item_Parse
	cbz	w0, LBB0_4
; %bb.2:
	ldp	x9, x8, [x19]
	ldr	x0, [x8, x9, lsl #3]
	bl	_Item_InitControls
	ldp	x9, x8, [x19]
	add	x10, x9, #1
	str	x10, [x19]
	ldr	x8, [x8, x9, lsl #3]
	str	x19, [x8]
LBB0_3:
Lloh3:
	adrp	x8, _qtrue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _qfalse@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MENUITEMS,8,3              ; @MAX_MENUITEMS
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
