	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_list_open_new
_xmb_list_open_new:                     ## @xmb_list_open_new
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	$0, -152(%rbp)
	movl	(%rdi), %r15d
	movq	%rsi, %rdi
	callq	_file_list_get_size
	movq	%rax, %r13
	leaq	-64(%rbp), %rsi
	xorl	%edi, %edi
	callq	_video_driver_get_size
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_15
## %bb.1:
	addl	%r15d, %r15d
	leal	(%r15,%r15,4), %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	12(%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	negl	%eax
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	%xmm1, 4(%r13)
	movss	%xmm1, (%r13)
	movl	$0, 8(%r13)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpq	%r15, -104(%rbp)                ## 8-byte Folded Reload
	jbe	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_file_list_get_userdata_at_offset
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	cmpl	$1, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, -48(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, %r15
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, (%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, 4(%r13)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	imull	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, 8(%r13)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_xmb_item_y
	movss	%xmm0, 12(%r13)
	movl	60(%rbx), %eax
	movl	%eax, 16(%r13)
	addss	4(%rbx), %xmm0
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r14, %r15
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	56(%rbx), %eax
	movl	%eax, 16(%r13)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm2
	ja	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %eax
	addl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	xorps	%xmm2, %xmm2
	cvtsi2ss	%rax, %xmm2
	ucomiss	%xmm2, %xmm0
	ja	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_XMB_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movss	%xmm1, -144(%rbp)
	movq	%r13, -136(%rbp)
	movq	_EASING_OUT_QUAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	%r12, -128(%rbp)
	movq	$0, -120(%rbp)
	leaq	-144(%rbp), %r12
	movq	%r12, %rdi
	callq	_menu_animation_push
	addq	$4, %r13
	movq	%r13, -136(%rbp)
	movq	%r12, %rdi
	callq	_menu_animation_push
	movl	$0, -144(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -136(%rbp)
	movq	%r12, %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	callq	_menu_animation_push
	jmp	LBB0_14
LBB0_15:
	movl	20(%rbx), %eax
	movl	%eax, 16(%rbx)
	movq	_MENU_ENTRIES_CTL_SET_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-152(%rbp), %rsi
	callq	_menu_entries_ctl
	movl	48(%rbx), %esi
	movq	%rbx, %rdi
	callq	_xmb_get_system_tab
	movq	_XMB_SYSTEM_TAB_SETTINGS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_27
## %bb.16:
	movl	24(%rbx), %edi
	movq	_MENU_THUMBNAIL_RIGHT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movl	24(%rbx), %edi
	movq	_MENU_THUMBNAIL_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_27
LBB0_18:
	cmpl	$5, 20(%rbx)
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_xmb_unload_thumbnail_textures
LBB0_20:
	cmpq	$0, 40(%rbx)
	jne	LBB0_22
## %bb.21:
	cmpq	$0, 32(%rbx)
	je	LBB0_27
LBB0_22:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_xmb_set_thumbnail_content
	movl	24(%rbx), %edi
	movl	(%r14), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$82, %edx
	callq	_xmb_update_thumbnail_path
LBB0_24:
	movl	24(%rbx), %edi
	movq	_MENU_THUMBNAIL_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_menu_thumbnail_is_enabled
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$76, %edx
	callq	_xmb_update_thumbnail_path
LBB0_26:
	movq	%rbx, %rdi
	callq	_xmb_update_thumbnail_image
LBB0_27:
	addq	$120, %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_ENTRIES_CTL_SET_START,4,2 ## @MENU_ENTRIES_CTL_SET_START
	.comm	_XMB_SYSTEM_TAB_SETTINGS,4,2    ## @XMB_SYSTEM_TAB_SETTINGS
	.comm	_MENU_THUMBNAIL_RIGHT,4,2       ## @MENU_THUMBNAIL_RIGHT
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ## @MENU_THUMBNAIL_LEFT
	.no_dead_strip	_xmb_list_open_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_list_open_new
_xmb_list_open_new:                     ; @xmb_list_open_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	str	xzr, [sp, #64]
	ldr	w25, [x0]
	mov	x0, x1
	bl	_file_list_get_size
	mov	x23, x0
	add	x1, sp, #76
	mov	x0, #0
	bl	_video_driver_get_size
	cbz	x23, LBB0_15
; %bb.1:
	mov	x24, #0
	add	w8, w25, w25, lsl #2
	lsl	w8, w8, #1
	lsl	w27, w21, #1
	add	x28, x19, #12
	add	x9, x19, #8
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	neg	w8, w8
	scvtf	s8, w8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	s0, [x25, #4]
	str	s0, [x25]
	str	wzr, [x25, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	cmp	x23, x24
	b.ls	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_file_list_get_userdata_at_offset
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	cmp	w21, #1
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmn	w21, #1
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x24, x20
	b.eq	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x25]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x25, #4]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	mul	w8, w27, w8
	mov	x26, x25
	str	w8, [x26, #8]!
	mov	x0, x19
	mov	x1, x24
	mov	x2, x20
	bl	_xmb_item_y
	str	s0, [x26, #4]
	ldr	w8, [x19, #60]
	str	w8, [x26, #8]
	ldr	s1, [x19, #4]
	mov	x8, x28
	cmp	x24, x20
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #56]
	str	w8, [x25, #16]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	fadd	s1, s0, s1
	ldr	s0, [x8]
	fcmp	s1, s8
	b.mi	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #76]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	add	w8, w8, w9
	ucvtf	s2, w8
	fcmp	s1, s2
	b.gt	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _XMB_DELAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XMB_DELAY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	s0, [sp, #24]
Lloh3:
	adrp	x9, _EASING_OUT_QUAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EASING_OUT_QUAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #56]
	stp	x25, x22, [sp, #32]
	str	xzr, [sp, #48]
	add	x0, sp, #24
	bl	_menu_animation_push
	add	x8, x25, #4
	str	x8, [sp, #32]
	add	x0, sp, #24
	bl	_menu_animation_push
	str	wzr, [sp, #24]
	str	x26, [sp, #32]
	add	x0, sp, #24
	bl	_menu_animation_push
	b	LBB0_3
LBB0_15:
	ldr	w8, [x19, #20]
	str	w8, [x19, #16]
Lloh6:
	adrp	x8, _MENU_ENTRIES_CTL_SET_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_SET_START@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #64
	bl	_menu_entries_ctl
	ldr	w1, [x19, #48]
	mov	x0, x19
	bl	_xmb_get_system_tab
Lloh9:
	adrp	x8, _XMB_SYSTEM_TAB_SETTINGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XMB_SYSTEM_TAB_SETTINGS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hi	LBB0_27
; %bb.16:
	ldr	w0, [x19, #24]
Lloh12:
	adrp	x21, _MENU_THUMBNAIL_RIGHT@GOTPAGE
Lloh13:
	ldr	x21, [x21, _MENU_THUMBNAIL_RIGHT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_menu_thumbnail_is_enabled
Lloh14:
	adrp	x20, _MENU_THUMBNAIL_LEFT@GOTPAGE
Lloh15:
	ldr	x20, [x20, _MENU_THUMBNAIL_LEFT@GOTPAGEOFF]
	cbnz	x0, LBB0_18
; %bb.17:
	ldr	w0, [x19, #24]
	ldr	w1, [x20]
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_27
LBB0_18:
	ldr	w8, [x19, #20]
	cmp	w8, #5
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_xmb_unload_thumbnail_textures
LBB0_20:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_22
; %bb.21:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_27
LBB0_22:
	mov	x0, x19
	mov	x1, #0
	bl	_xmb_set_thumbnail_content
	ldr	w0, [x19, #24]
	ldr	w1, [x21]
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_24
; %bb.23:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #82
	bl	_xmb_update_thumbnail_path
LBB0_24:
	ldr	w0, [x19, #24]
	ldr	w1, [x20]
	bl	_menu_thumbnail_is_enabled
	cbz	x0, LBB0_26
; %bb.25:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #76
	bl	_xmb_update_thumbnail_path
LBB0_26:
	mov	x0, x19
	bl	_xmb_update_thumbnail_image
LBB0_27:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_XMB_DELAY,4,2                  ; @XMB_DELAY
	.comm	_EASING_OUT_QUAD,4,2            ; @EASING_OUT_QUAD
	.comm	_MENU_ENTRIES_CTL_SET_START,4,2 ; @MENU_ENTRIES_CTL_SET_START
	.comm	_XMB_SYSTEM_TAB_SETTINGS,4,2    ; @XMB_SYSTEM_TAB_SETTINGS
	.comm	_MENU_THUMBNAIL_RIGHT,4,2       ; @MENU_THUMBNAIL_RIGHT
	.comm	_MENU_THUMBNAIL_LEFT,4,2        ; @MENU_THUMBNAIL_LEFT
	.no_dead_strip	_xmb_list_open_new
.subsections_via_symbols
