	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_list_pop_stack
_menu_list_pop_stack:                   ## @menu_list_pop_stack
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	callq	_menu_list_get
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_menu_list_get_stack_size
	xorl	%ebx, %ebx
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.1:
	movq	_MENU_LIST_PLAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	$0, -104(%rbp)
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	leaq	-128(%rbp), %rdi
	callq	_menu_driver_list_cache
LBB0_3:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, -72(%rbp)
	decq	%rax
	movq	%rax, -88(%rbp)
	movq	%rax, -80(%rbp)
	movq	_RARCH_MENU_CTL_LIST_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-88(%rbp), %rsi
	callq	_menu_driver_ctl
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_file_list_pop
	movq	%r12, %rdi
	callq	_menu_driver_list_set_selection
	movl	$1, %ebx
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movq	_MENU_ENTRIES_CTL_SET_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_menu_entries_ctl
LBB0_7:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_LIST_PLAIN,4,2            ## @MENU_LIST_PLAIN
	.comm	_RARCH_MENU_CTL_LIST_FREE,4,2   ## @RARCH_MENU_CTL_LIST_FREE
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ## @MENU_ENTRIES_CTL_SET_REFRESH
	.no_dead_strip	_menu_list_pop_stack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_list_pop_stack
_menu_list_pop_stack:                   ; @menu_list_pop_stack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	str	wzr, [sp, #52]
	bl	_menu_list_get
	mov	x21, x0
	mov	x0, x23
	mov	x1, x22
	bl	_menu_list_get_stack_size
	mov	x8, x0
	mov	w0, #0
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _MENU_LIST_PLAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_LIST_PLAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #88]
	str	xzr, [sp, #80]
	cbz	w19, LBB0_3
; %bb.2:
	add	x0, sp, #56
	bl	_menu_driver_list_cache
LBB0_3:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	sub	x8, x8, #1
	str	x8, [sp, #8]
	stp	x8, x21, [sp, #16]
Lloh3:
	adrp	x8, _RARCH_MENU_CTL_LIST_FREE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RARCH_MENU_CTL_LIST_FREE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_menu_driver_ctl
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_file_list_pop
	mov	x0, x21
	bl	_menu_driver_list_set_selection
	cbz	w19, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #52
	bl	_menu_entries_ctl
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_LIST_PLAIN,4,2            ; @MENU_LIST_PLAIN
	.comm	_RARCH_MENU_CTL_LIST_FREE,4,2   ; @RARCH_MENU_CTL_LIST_FREE
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ; @MENU_ENTRIES_CTL_SET_REFRESH
	.no_dead_strip	_menu_list_pop_stack
.subsections_via_symbols
