	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menu_AddItem                   ## -- Begin function Menu_AddItem
	.p2align	4, 0x90
_Menu_AddItem:                          ## @Menu_AddItem
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MAX_MENUITEMS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Error
	movq	(%rbx), %rax
LBB0_2:
	movq	8(%rbx), %rcx
	movq	%r14, (%rcx,%rax,8)
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdx
	movq	%rbx, 16(%rdx)
	movq	(%rcx,%rax,8), %rcx
	movq	%rax, (%rcx)
	movq	_QMF_HASMOUSEFOCUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rcx)
	movq	_QMF_NODEFAULTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_3
LBB0_16:
	incq	(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	12(%r14), %esi
	leal	-128(%rsi), %eax
	cmpl	$9, %eax
	ja	LBB0_15
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	%r14, %rdi
	callq	_Text_Init
	jmp	LBB0_16
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_va
	movq	%rax, %rdi
	callq	_trap_Error
	jmp	LBB0_16
LBB0_7:
	movq	%r14, %rdi
	callq	_SpinControl_Init
	jmp	LBB0_16
LBB0_9:
	movq	%r14, %rdi
	callq	_Slider_Init
	jmp	LBB0_16
LBB0_12:
	movq	%r14, %rdi
	callq	_ScrollList_Init
	jmp	LBB0_16
LBB0_8:
	movq	%r14, %rdi
	callq	_RadioButton_Init
	jmp	LBB0_16
LBB0_13:
	movq	%r14, %rdi
	callq	_PText_Init
	jmp	LBB0_16
LBB0_6:
	movq	%r14, %rdi
	callq	_MenuField_Init
	jmp	LBB0_16
LBB0_14:
	movq	%r14, %rdi
	callq	_BText_Init
	jmp	LBB0_16
LBB0_10:
	movq	%r14, %rdi
	callq	_Bitmap_Init
	jmp	LBB0_16
LBB0_5:
	movq	%r14, %rdi
	callq	_Action_Init
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_6
	.long	L0_0_set_14
	.long	L0_0_set_10
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_MAX_MENUITEMS,8,3              ## @MAX_MENUITEMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Menu_AddItem: excessive items"

	.comm	_QMF_HASMOUSEFOCUS,4,2          ## @QMF_HASMOUSEFOCUS
	.comm	_QMF_NODEFAULTINIT,4,2          ## @QMF_NODEFAULTINIT
L_.str.1:                               ## @.str.1
	.asciz	"Menu_Init: unknown type %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menu_AddItem                   ; -- Begin function Menu_AddItem
	.p2align	2
_Menu_AddItem:                          ; @Menu_AddItem
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAX_MENUITEMS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_MENUITEMS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Error
	ldr	x8, [x19]
LBB0_2:
	ldr	x9, [x19, #8]
	lsl	x10, x8, #3
	str	x20, [x9, x10]
	ldr	x9, [x19, #8]
	ldr	x11, [x9, x10]
	str	x19, [x11, #16]
	ldr	x9, [x9, x10]
	str	x8, [x9]
Lloh5:
	adrp	x8, _QMF_HASMOUSEFOCUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QMF_HASMOUSEFOCUS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w10, [x9, #8]
	bic	w8, w10, w8
	str	w8, [x9, #8]
	ldr	w8, [x20, #8]
Lloh8:
	adrp	x9, _QMF_NODEFAULTINIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QMF_NODEFAULTINIT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w1, [x20, #12]
	sub	w8, w1, #128
	cmp	w8, #9
	b.hi	LBB0_7
; %bb.5:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	x0, x20
	bl	_Text_Init
	b	LBB0_3
LBB0_7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_va
	bl	_trap_Error
	b	LBB0_3
LBB0_8:
	mov	x0, x20
	bl	_SpinControl_Init
	b	LBB0_3
LBB0_9:
	mov	x0, x20
	bl	_Slider_Init
	b	LBB0_3
LBB0_10:
	mov	x0, x20
	bl	_ScrollList_Init
	b	LBB0_3
LBB0_11:
	mov	x0, x20
	bl	_RadioButton_Init
	b	LBB0_3
LBB0_12:
	mov	x0, x20
	bl	_PText_Init
	b	LBB0_3
LBB0_13:
	mov	x0, x20
	bl	_MenuField_Init
	b	LBB0_3
LBB0_14:
	mov	x0, x20
	bl	_BText_Init
	b	LBB0_3
LBB0_15:
	mov	x0, x20
	bl	_Bitmap_Init
	b	LBB0_3
LBB0_16:
	mov	x0, x20
	bl	_Action_Init
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
                                        ; -- End function
	.comm	_MAX_MENUITEMS,8,3              ; @MAX_MENUITEMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Menu_AddItem: excessive items"

	.comm	_QMF_HASMOUSEFOCUS,4,2          ; @QMF_HASMOUSEFOCUS
	.comm	_QMF_NODEFAULTINIT,4,2          ; @QMF_NODEFAULTINIT
l_.str.1:                               ; @.str.1
	.asciz	"Menu_Init: unknown type %d"

.subsections_via_symbols
