	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_list_new
_menu_list_new:                         ## @menu_list_new
	.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
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r14)
	movq	$0, 8(%r14)
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	4(%r14), %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movl	(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	cmpl	$0, 4(%r14)
	je	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movl	4(%r14), %eax
	cmpq	%rax, %rbx
	jb	LBB0_8
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	callq	_menu_list_free
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_menu_list_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_list_new
_menu_list_new:                         ; @menu_list_new
	.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	w0, #24
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	movi.2s	v0, #1
	str	d0, [x19]
	str	xzr, [x19, #8]
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w0, [x19, #4]
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	ldr	x8, [x19, #16]
	str	x0, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldr	w8, [x19]
	cmp	x20, x8
	b.lo	LBB0_5
LBB0_6:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_10
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	ldr	x8, [x19, #8]
	str	x0, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldr	w8, [x19, #4]
	cmp	x20, x8
	b.lo	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_menu_list_free
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_menu_list_new
.subsections_via_symbols
