	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_database_cue_prune
_task_database_cue_prune:               ## @task_database_cue_prune
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	incq	%rdi
	callq	_malloc
	movq	%rax, %r15
	movq	_RETRO_VFS_FILE_ACCESS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RETRO_VFS_FILE_ACCESS_HINT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_intfstream_open_file
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	(%r12), %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_cue_next_file
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	leaq	L_.str(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %r14
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_cue_next_file
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%r14, %r12
	movq	(%rbx), %r14
	movq	8(%rbx), %rax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%rbx), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	incq	%r14
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rax), %r14
	jae	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%rax), %rcx
	movq	(%rcx,%r14,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_10 Depth=2
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_RARCH_LOG
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_free
	movq	8(%rbx), %rax
	movq	8(%rax), %rcx
	movq	$0, (%rcx,%r14,8)
	jmp	LBB0_9
LBB0_11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_intfstream_close
	movq	%rbx, %rdi
	callq	_free
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,8,3            ## @PATH_MAX_LENGTH
	.comm	_RETRO_VFS_FILE_ACCESS_READ,4,2 ## @RETRO_VFS_FILE_ACCESS_READ
	.comm	_RETRO_VFS_FILE_ACCESS_HINT_NONE,4,2 ## @RETRO_VFS_FILE_ACCESS_HINT_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pruning file referenced by cue: %s\n"

	.no_dead_strip	_task_database_cue_prune
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_database_cue_prune
_task_database_cue_prune:               ; @task_database_cue_prune
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _PATH_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, #1
	bl	_malloc
	mov	x19, x0
Lloh2:
	adrp	x8, _RETRO_VFS_FILE_ACCESS_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RETRO_VFS_FILE_ACCESS_READ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _RETRO_VFS_FILE_ACCESS_HINT_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RETRO_VFS_FILE_ACCESS_HINT_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_intfstream_open_file
	cbz	x0, LBB0_12
; %bb.1:
	mov	x22, x0
	ldr	x3, [x24]
	mov	x1, x20
	mov	x2, x19
	bl	_cue_next_file
	cbz	x0, LBB0_11
; %bb.2:
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x3, [x24]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_cue_next_file
	cbz	x0, LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldp	x25, x8, [x21]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x8]
	cmp	x25, x9
	b.hs	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x8, #8]
	ldr	x1, [x9, x25, lsl #3]
	cbz	x1, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x19
	bl	_string_is_equal
	cbz	x0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x23
	mov	x1, x19
	bl	_RARCH_LOG
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	lsl	x26, x25, #3
	ldr	x0, [x8, x26]
	bl	_free
	ldr	x8, [x21, #8]
	ldr	x9, [x8, #8]
	str	xzr, [x9, x26]
	b	LBB0_6
LBB0_11:
	mov	x0, x22
	bl	_intfstream_close
	mov	x0, x22
	bl	_free
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,8,3            ; @PATH_MAX_LENGTH
	.comm	_RETRO_VFS_FILE_ACCESS_READ,4,2 ; @RETRO_VFS_FILE_ACCESS_READ
	.comm	_RETRO_VFS_FILE_ACCESS_HINT_NONE,4,2 ; @RETRO_VFS_FILE_ACCESS_HINT_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pruning file referenced by cue: %s\n"

	.no_dead_strip	_task_database_cue_prune
.subsections_via_symbols
