	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_list_switch_old
_xmb_list_switch_old:                   ## @xmb_list_switch_old
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_file_list_get_size
	imull	(%r13), %r15d
	movq	%rax, %r14
	movl	$0, -52(%rbp)
	decl	%eax
	xorl	%ecx, %ecx
	testq	%r14, %r14
	cmovel	%ecx, %eax
	movl	%eax, -48(%rbp)
	leaq	-56(%rbp), %rsi
	xorl	%edi, %edi
	callq	_video_driver_get_size
	movl	-56(%rbp), %esi
	leaq	-52(%rbp), %r8
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_xmb_calculate_visible_range
	testq	%r14, %r14
	je	LBB0_8
## %bb.1:
	negl	%r15d
	cvtsi2ss	%r15d, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	$1, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rax)
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 8(%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	incl	%ebx
	cmpq	%rax, %r14
	jbe	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_file_list_get_userdata_at_offset
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-52(%rbp), %r15d
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-48(%rbp), %r15d
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm0, %xmm0
	movq	%rax, %rdi
	movq	%r12, %rsi
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_xmb_push_animations
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xmb_list_switch_old
.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_old
_xmb_list_switch_old:                   ; @xmb_list_switch_old
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	mov	x0, x1
	bl	_file_list_get_size
	mov	x20, x0
	ldr	w24, [x23]
	sub	w8, w20, #1
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	stp	w8, wzr, [sp, #4]
	add	x1, sp, #12
	mov	x0, #0
	bl	_video_driver_get_size
	ldr	w1, [sp, #12]
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x0, x23
	mov	x2, x20
	mov	x3, x22
	bl	_xmb_calculate_visible_range
	cbz	x20, LBB0_7
; %bb.1:
	mneg	w8, w24, w21
	scvtf	s8, w8
	mov	w22, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x0]
	str	s8, [x0, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, w22, uxtw
	add	w22, w22, #1
	b.ls	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w22, #1
	mov	x0, x19
	mov	x1, x21
	bl	_file_list_get_userdata_at_offset
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w9, w8, [sp, #4]
	cmp	w21, w8
	ccmp	w21, w9, #2, hs
	b.hi	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	movi	d0, #0000000000000000
	mov	x1, x19
	fmov	s1, s8
	bl	_xmb_push_animations
	b	LBB0_3
LBB0_7:
	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
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xmb_list_switch_old
.subsections_via_symbols
