	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_build_message_list
_menu_build_message_list:               ## @menu_build_message_list
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_menu_get_prompt
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%rcx), %rdx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdx
LBB0_3:
	movl	24(%rbx), %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_message__add
	cmpq	$0, 40(%rbx)
	je	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	callq	_menu_has_help
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_menu_get_help
	movq	32(%rbx), %rcx
	movq	40(%rbx), %rdx
	movq	(%rdx), %rsi
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	(%rcx), %rdx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdx
LBB0_8:
	movl	24(%rbx), %ecx
	movl	%eax, %edi
	callq	_message__add
LBB0_9:
	movq	16(%rbx), %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rbx
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	callq	_menu_build_message_list
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Root Menu"

	.no_dead_strip	_menu_build_message_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_build_message_list
_menu_build_message_list:               ; @menu_build_message_list
	.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	x19, x0
	bl	_menu_get_prompt
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x2, [x8]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
LBB0_3:
	ldr	w3, [x19, #24]
	mov	x1, #0
	bl	_message__add
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_menu_has_help
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_menu_get_help
	ldp	x8, x9, [x19, #32]
	ldr	x1, [x9]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x2, [x8]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
LBB0_8:
	ldr	w3, [x19, #24]
	bl	_message__add
LBB0_9:
	ldr	x19, [x19, #16]
	cbnz	x19, LBB0_12
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_menu_build_message_list
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Root Menu"

	.no_dead_strip	_menu_build_message_list
.subsections_via_symbols
