	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_toggle
_xmb_toggle:                            ## @xmb_toggle
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_MENU_LIST_PLAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xmb_list_get_size
	movl	%eax, (%rbx)
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.3:
	movq	_XMB_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	movl	%eax, -56(%rbp)
	movabsq	$-3229614080, %rax              ## imm = 0xFFFFFFFF3F800000
	movq	%rax, -52(%rbp)
	leaq	8(%rbx), %rax
	movq	%rax, -24(%rbp)
	movq	_EASING_OUT_QUAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_menu_animation_push
	movq	_MENU_ENTRIES_CTL_NEEDS_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_menu_entries_ctl
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_RARCH_MENU_CTL_SET_PREVENT_POPULATE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	$0, 8(%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	_RARCH_MENU_CTL_UNSET_PREVENT_POPULATE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_menu_driver_ctl
	movq	%rbx, %rdi
	callq	_xmb_toggle_horizontal_list
LBB0_7:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_LIST_PLAIN,4,2            ## @MENU_LIST_PLAIN
	.comm	_XMB_DELAY,4,2                  ## @XMB_DELAY
	.comm	_EASING_OUT_QUAD,4,2            ## @EASING_OUT_QUAD
	.comm	_MENU_ENTRIES_CTL_NEEDS_REFRESH,4,2 ## @MENU_ENTRIES_CTL_NEEDS_REFRESH
	.comm	_RARCH_MENU_CTL_SET_PREVENT_POPULATE,4,2 ## @RARCH_MENU_CTL_SET_PREVENT_POPULATE
	.comm	_RARCH_MENU_CTL_UNSET_PREVENT_POPULATE,4,2 ## @RARCH_MENU_CTL_UNSET_PREVENT_POPULATE
	.no_dead_strip	_xmb_toggle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_toggle
_xmb_toggle:                            ; @xmb_toggle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MENU_LIST_PLAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_LIST_PLAIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_xmb_list_get_size
	str	w0, [x19]
	cbz	w20, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _XMB_DELAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XMB_DELAY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	str	w8, [sp, #8]
	mov	x8, #-65536
	movk	x8, #16256, lsl #16
	stur	x8, [sp, #12]
	add	x8, x19, #8
	str	x8, [sp, #40]
Lloh6:
	adrp	x8, _EASING_OUT_QUAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EASING_OUT_QUAD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	str	xzr, [sp, #24]
	add	x0, sp, #8
	bl	_menu_animation_push
Lloh9:
	adrp	x8, _MENU_ENTRIES_CTL_NEEDS_REFRESH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_NEEDS_REFRESH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_menu_entries_ctl
Lloh12:
	adrp	x8, _RARCH_MENU_CTL_SET_PREVENT_POPULATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RARCH_MENU_CTL_SET_PREVENT_POPULATE@GOTPAGEOFF]
Lloh14:
	adrp	x9, _RARCH_MENU_CTL_UNSET_PREVENT_POPULATE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RARCH_MENU_CTL_UNSET_PREVENT_POPULATE@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	mov	x1, #0
	bl	_menu_driver_ctl
	mov	x0, x19
	bl	_xmb_toggle_horizontal_list
	b	LBB0_4
LBB0_3:
	str	xzr, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_LIST_PLAIN,4,2            ; @MENU_LIST_PLAIN
	.comm	_XMB_DELAY,4,2                  ; @XMB_DELAY
	.comm	_EASING_OUT_QUAD,4,2            ; @EASING_OUT_QUAD
	.comm	_MENU_ENTRIES_CTL_NEEDS_REFRESH,4,2 ; @MENU_ENTRIES_CTL_NEEDS_REFRESH
	.comm	_RARCH_MENU_CTL_SET_PREVENT_POPULATE,4,2 ; @RARCH_MENU_CTL_SET_PREVENT_POPULATE
	.comm	_RARCH_MENU_CTL_UNSET_PREVENT_POPULATE,4,2 ; @RARCH_MENU_CTL_UNSET_PREVENT_POPULATE
	.no_dead_strip	_xmb_toggle
.subsections_via_symbols
