	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xmb_list_switch
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xmb_list_switch:                       ## @xmb_list_switch
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_menu_entries_get_selection_buf_ptr
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r12
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	8(%rbx), %rax
	setg	%cl
	movl	16(%rbx), %eax
	leal	(%rax,%rcx,2), %eax
	decl	%eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_xmb_list_switch_horizontal_list
	movq	_XMB_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	cvtsi2ssq	(%rbx), %xmm0
	xorps	LCPI0_0(%rip), %xmm0
	mulss	20(%rbx), %xmm0
	movss	%xmm0, -72(%rbp)
	leaq	48(%rbx), %rax
	movq	%rax, -64(%rbp)
	movq	_EASING_OUT_QUAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$-1, -68(%rbp)
	movq	$0, -56(%rbp)
	leaq	-72(%rbp), %rdi
	callq	_menu_animation_push
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	8(%rbx), %rax
	setg	%cl
	leal	(%rcx,%rcx), %r13d
	decl	%r13d
	movl	44(%rbx), %esi
	movl	40(%rbx), %ecx
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_xmb_list_switch_old
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movq	%r15, %rcx
	callq	_xmb_list_switch_new
LBB0_2:
	movl	(%rbx), %eax
	movl	28(%rbx), %edi
	movl	%eax, 24(%rbx)
	movq	_MENU_THUMBNAIL_RIGHT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	28(%rbx), %edi
	movq	_MENU_THUMBNAIL_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	callq	_xmb_unload_thumbnail_textures
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_xmb_set_thumbnail_content
	movl	28(%rbx), %edi
	movl	(%r14), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$82, %edx
	callq	_xmb_update_thumbnail_path
LBB0_7:
	movl	28(%rbx), %edi
	movq	_MENU_THUMBNAIL_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$76, %edx
	callq	_xmb_update_thumbnail_path
LBB0_9:
	movq	%rbx, %rdi
	callq	_xmb_update_thumbnail_image
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XMB_DELAY,4,2                  ## @XMB_DELAY
	.comm	_EASING_OUT_QUAD,4,2            ## @EASING_OUT_QUAD
	.comm	_MENU_THUMBNAIL_RIGHT,4,2       ## @MENU_THUMBNAIL_RIGHT
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ## @MENU_THUMBNAIL_LEFT
	.no_dead_strip	_xmb_list_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_list_switch
_xmb_list_switch:                       ; @xmb_list_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w0, #0
	bl	_menu_entries_get_selection_buf_ptr
	mov	x20, x0
	bl	_menu_navigation_get_selection
	mov	x21, x0
	bl	_config_get_ptr
	mov	x23, x0
	ldp	x8, x9, [x19]
	ldr	w10, [x19, #16]
	sub	w11, w10, #1
	cmp	x8, x9
	csinc	w8, w11, w10, le
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_xmb_list_switch_horizontal_list
Lloh0:
	adrp	x8, _XMB_DELAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XMB_DELAY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	s0, [x19, #20]
	ldr	x9, [x19]
	scvtf	s1, x9
	fneg	s1, s1
	fmul	s0, s0, s1
	str	s0, [sp]
Lloh3:
	adrp	x9, _EASING_OUT_QUAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EASING_OUT_QUAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	mov	w8, #-1
	str	w8, [sp, #4]
	add	x8, x19, #48
	stp	x8, xzr, [sp, #8]
	mov	x0, sp
	bl	_menu_animation_push
	ldp	x8, x9, [x19]
	cmp	x8, x9
	mov	w8, #1
	cneg	w22, w8, le
	ldp	w3, w1, [x19, #40]
	mov	x0, x19
	mov	x2, x22
	bl	_xmb_list_switch_old
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_xmb_list_switch_new
LBB0_2:
	ldr	x8, [x19]
	str	w8, [x19, #24]
	ldr	w0, [x19, #28]
Lloh6:
	adrp	x20, _MENU_THUMBNAIL_RIGHT@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MENU_THUMBNAIL_RIGHT@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_menu_thumbnail_is_enabled
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #28]
Lloh8:
	adrp	x8, _MENU_THUMBNAIL_LEFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MENU_THUMBNAIL_LEFT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_xmb_unload_thumbnail_textures
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, #0
	bl	_xmb_set_thumbnail_content
	ldr	w0, [x19, #28]
	ldr	w1, [x20]
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #82
	bl	_xmb_update_thumbnail_path
LBB0_7:
	ldr	w0, [x19, #28]
Lloh11:
	adrp	x8, _MENU_THUMBNAIL_LEFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MENU_THUMBNAIL_LEFT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #76
	bl	_xmb_update_thumbnail_path
LBB0_9:
	mov	x0, x19
	bl	_xmb_update_thumbnail_image
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_XMB_DELAY,4,2                  ; @XMB_DELAY
	.comm	_EASING_OUT_QUAD,4,2            ; @EASING_OUT_QUAD
	.comm	_MENU_THUMBNAIL_RIGHT,4,2       ; @MENU_THUMBNAIL_RIGHT
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ; @MENU_THUMBNAIL_LEFT
	.no_dead_strip	_xmb_list_switch
.subsections_via_symbols
