	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_list_deep_copy
_xmb_list_deep_copy:                    ## @xmb_list_deep_copy
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)
	leaq	-88(%rbp), %rdi
	callq	_menu_animation_kill_by_tag
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_xmb_free_list_nodes
	movq	%r15, %rdi
	callq	_file_list_clear
	movq	%r14, %rax
	subq	%rbx, %rax
	leaq	1(%rax), %rsi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_file_list_reserve
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %r14
	jae	LBB0_2
## %bb.1:
	xorl	%r15d, %r15d
LBB0_17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	(,%rbx,8), %rax
	leaq	(%rax,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r15), %rax
	incq	%rax
	incq	%r15
	addq	$40, %r13
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	ja	LBB0_17
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movq	32(%r13,%rax), %r14
	movq	24(%r13,%rax), %r12
	movups	(%r13,%rax), %xmm0
	movups	16(%r13,%rax), %xmm1
	movups	%xmm1, 16(%rbx,%r13)
	movq	%r14, 32(%rbx,%r13)
	movups	%xmm0, (%rbx,%r13)
	movq	16(%rbx,%r13), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx,%r13), %rdi
	callq	_strdup
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, 16(%rbx,%r13)
	movq	8(%rbx,%r13), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx,%r13), %rdi
	callq	_strdup
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, 8(%rbx,%r13)
	movq	(%rbx,%r13), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx,%r13), %rdi
	callq	_strdup
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rbx,%r13)
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_xmb_copy_node
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_file_list_set_userdata
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%r12, %r12
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_file_list_set_actiondata
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xmb_list_deep_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_list_deep_copy
_xmb_list_deep_copy:                    ; @xmb_list_deep_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	stp	x0, x1, [sp]                    ; 8-byte Folded Spill
	add	x0, sp, #8
	bl	_menu_animation_kill_by_tag
	mov	x0, x19
	mov	w1, #1
	bl	_xmb_free_list_nodes
	mov	x0, x19
	bl	_file_list_clear
	sub	x8, x20, x21
	add	x1, x8, #1
	mov	x0, x19
	bl	_file_list_reserve
	cmp	x21, x20
	b.ls	LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:
	str	x23, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x26, #0
	mov	x23, #0
	add	x8, x21, x21, lsl #2
	lsl	x27, x8, #3
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	add	x26, x26, #40
	add	x8, x21, x23
	cmp	x8, x20
	b.hi	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #8]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x8, x8, x27
	add	x8, x8, x26
	ldp	x24, x25, [x8, #24]
	add	x22, x28, x26
	ldp	q0, q1, [x8]
	str	x25, [x22, #32]
	stp	q0, q1, [x22]
	ldr	x0, [x22, #16]
	bl	_string_is_empty
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, #16]
	bl	_strdup
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [x22, #16]
	ldr	x0, [x22, #8]
	bl	_string_is_empty
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, #8]
	bl	_strdup
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [x22, #8]
	ldr	x0, [x28, x26]
	bl	_string_is_empty
	cbz	x0, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, #0
	str	x0, [x28, x26]
	cbz	x25, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_xmb_copy_node
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_file_list_set_userdata
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x24, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #4
	bl	_malloc
	mov	x25, x0
	mov	x1, x24
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	bl	_file_list_set_actiondata
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x28, x26]
	bl	_strdup
	str	x0, [x28, x26]
	cbnz	x25, LBB0_13
	b	LBB0_14
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xmb_list_deep_copy
.subsections_via_symbols
