	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_displaylist_push          ## -- Begin function menu_displaylist_push
	.p2align	4, 0x90
_menu_displaylist_push:                 ## @menu_displaylist_push
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -24
	movq	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	$0, -16(%rbp)
	movq	_MSG_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	-72(%rbp), %rdi
	callq	_menu_displaylist_info_init
	leaq	-32(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_menu_entries_get_last_stack
	movl	4(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -72(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -68(%rbp)
	movq	-32(%rbp), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rdi
	callq	_strdup
	movq	%rax, -48(%rbp)
LBB0_4:
	movq	-24(%rbp), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	cmpl	$0, -64(%rbp)
	jne	LBB0_7
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	-24(%rbp), %rdi
	callq	_strdup
	movq	%rax, -56(%rbp)
	cmpl	$0, -64(%rbp)
	je	LBB0_12
LBB0_7:
	movq	-24(%rbp), %rdi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_menu_displaylist_push_internal
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	-72(%rbp), %rdi
	callq	_menu_displaylist_process
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_9:
	xorl	%eax, %eax
	callq	_menu_entries_get_last_stack_actiondata
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:
	leaq	-72(%rbp), %rdi
	callq	*%rcx
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	leaq	-72(%rbp), %rdi
	callq	_menu_displaylist_info_free
LBB0_14:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_UNKNOWN,4,2                ## @MSG_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_displaylist_push          ; -- Begin function menu_displaylist_push
	.p2align	2
_menu_displaylist_push:                 ; @menu_displaylist_push
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
	str	wzr, [sp, #4]
Lloh0:
	adrp	x8, _MSG_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
	cbz	x0, LBB0_14
; %bb.1:
	add	x0, sp, #24
	bl	_menu_displaylist_info_init
	add	x0, sp, #16
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	x4, #0
	bl	_menu_entries_get_last_stack
	ldp	w9, w10, [x19]
	str	w9, [sp, #56]
	ldp	w9, w8, [sp]
	str	w8, [sp, #24]
	stp	w9, w10, [sp, #28]
	ldr	x0, [sp, #16]
	bl	_string_is_empty
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x0, [sp, #16]
	bl	_strdup
	str	x0, [sp, #48]
LBB0_3:
	ldr	x0, [sp, #8]
	bl	_string_is_empty
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_6
	b	LBB0_11
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_strdup
	str	x0, [sp, #40]
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_11
LBB0_6:
	ldr	x0, [sp, #8]
	add	x2, sp, #24
	mov	x1, x19
	bl	_menu_displaylist_push_internal
	cbz	x0, LBB0_8
; %bb.7:
	add	x0, sp, #24
	bl	_menu_displaylist_process
	mov	x19, x0
	b	LBB0_13
LBB0_8:
	bl	_menu_entries_get_last_stack_actiondata
	cbz	x0, LBB0_12
; %bb.9:
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.10:
	add	x0, sp, #24
	blr	x8
	cbz	x0, LBB0_12
LBB0_11:
	mov	w19, #0
	b	LBB0_13
LBB0_12:
	mov	w19, #1
LBB0_13:
	add	x0, sp, #24
	bl	_menu_displaylist_info_free
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_UNKNOWN,4,2                ; @MSG_UNKNOWN
.subsections_via_symbols
