	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_GetDir_RPC                ## -- Begin function CDVD_GetDir_RPC
	.p2align	4, 0x90
_CDVD_GetDir_RPC:                       ## @CDVD_GetDir_RPC
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	_CACHE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CDVD_Cache_Dir
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	$-1, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_50
## %bb.1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_CDVD_GET_DIRS_ONLY@GOTPCREL(%rip), %rax
	movq	_CDVD_GET_FILES_AND_DIRS@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rax)
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movl	%ebx, %edx
	je	LBB0_6
## %bb.2:
	xorl	%r12d, %r12d
	movl	(%rcx), %eax
	movl	$0, %ebx
	cmpl	%edx, %eax
	je	LBB0_6
LBB0_3:
	movq	_CDVD_GET_FILES_ONLY@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	je	LBB0_25
## %bb.4:
	cmpl	%edx, %eax
	je	LBB0_25
LBB0_49:
	movl	%r12d, %r15d
	jmp	LBB0_50
LBB0_6:
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	_CachedDirInfo@GOTPCREL(%rip), %r14
	movq	8(%r14), %rdi
	movq	_CACHE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CDVD_Cache_Dir
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_50
## %bb.7:
	movq	16(%r14), %rax
	movslq	(%rax), %rcx
	leaq	(%rax,%rcx,4), %r15
	cmpq	$0, 24(%r14)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.8:
	movslq	(%r15), %rcx
	leaq	(%r15,%rcx,4), %r15
LBB0_9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movslq	32(%r14), %rcx
	movq	%rcx, %rdx
	shlq	$11, %rdx
	addq	%rax, %rdx
	cmpq	%rdx, %r15
	jae	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	subq	%rax, %r15
	leaq	2047(%r15), %rsi
	testq	%r15, %r15
	cmovnsq	%r15, %rsi
	andq	$-2048, %rsi                    ## imm = 0xF800
	leaq	(%rsi,%rax), %r15
	addq	$2048, %r15                     ## imm = 0x800
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rdx, %r15
	jae	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	testb	$2, 4(%r15)
	je	LBB0_20
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_sceSifDmaStat
	testq	%rax, %rax
	jns	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_TocEntryCopy
	testl	%r13d, %r13d
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 24(%r14)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-48(%rbp), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	-48(%rbp), %rax
	movq	%rax, -80(%rbp)
	movslq	%r12d, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rax
	movq	%rax, -88(%rbp)
	movl	$4, -104(%rbp)
	movq	$0, -96(%rbp)
	leaq	-52(%rbp), %rdi
	callq	_CpuSuspendIntr
	leaq	-104(%rbp), %rdi
	movl	$1, %esi
	callq	_sceSifSetDma
	movl	%eax, %ebx
	movl	-52(%rbp), %edi
	callq	_CpuResumeIntr
	incl	%r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%edi, %r12d
	jae	LBB0_49
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%r13d
	movslq	(%r15), %rax
	leaq	(%r15,%rax,4), %r15
	movq	16(%r14), %rax
	jmp	LBB0_10
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	movslq	%ecx, %rax
	addq	40(%r14), %rax
	movslq	(%r14), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_48
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r14), %rdi
	movq	_CACHE_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CDVD_Cache_Dir
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_47
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r14), %rax
	movq	%rax, %r15
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_25:
	movq	_CachedDirInfo@GOTPCREL(%rip), %r14
	movq	8(%r14), %rdi
	movq	_CACHE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CDVD_Cache_Dir
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_50
## %bb.26:
	movq	16(%r14), %rax
	movslq	(%rax), %rcx
	leaq	(%rax,%rcx,4), %r15
	cmpq	$0, 24(%r14)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_28
## %bb.27:
	movslq	(%r15), %rcx
	leaq	(%r15,%rcx,4), %r15
	.p2align	4, 0x90
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
                                        ##       Child Loop BB0_35 Depth 3
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_35 Depth 3
	movslq	32(%r14), %rcx
	movq	%rcx, %rdx
	shlq	$11, %rdx
	addq	%rax, %rdx
	cmpq	%rdx, %r15
	jae	LBB0_42
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=2
	cmpl	$0, (%r15)
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=2
	subq	%rax, %r15
	leaq	2047(%r15), %rsi
	testq	%r15, %r15
	cmovnsq	%r15, %rsi
	andq	$-2048, %rsi                    ## imm = 0xF800
	leaq	(%rsi,%rax), %r15
	addq	$2048, %r15                     ## imm = 0x800
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=2
	cmpq	%rdx, %r15
	jae	LBB0_42
## %bb.33:                              ##   in Loop: Header=BB0_29 Depth=2
	testb	$2, 4(%r15)
	jne	LBB0_40
## %bb.34:                              ##   in Loop: Header=BB0_29 Depth=2
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_28 Depth=1
                                        ##     Parent Loop BB0_29 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ebx, %edi
	callq	_sceSifDmaStat
	testq	%rax, %rax
	jns	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_29 Depth=2
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_TocEntryCopy
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	callq	_strlen
	testq	%rax, %rax
	jle	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_29 Depth=2
	movl	-48(%rbp), %edi
	movq	%r14, %rsi
	callq	_TocEntryCompare
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_29 Depth=2
	leaq	-48(%rbp), %rax
	movq	%rax, -80(%rbp)
	movslq	%r12d, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rax
	movq	%rax, -88(%rbp)
	movl	$4, -104(%rbp)
	movq	$0, -96(%rbp)
	leaq	-52(%rbp), %rdi
	callq	_CpuSuspendIntr
	leaq	-104(%rbp), %rdi
	movl	$1, %esi
	callq	_sceSifSetDma
	movl	%eax, %ebx
	movl	-52(%rbp), %edi
	callq	_CpuResumeIntr
	incl	%r12d
LBB0_39:                                ##   in Loop: Header=BB0_29 Depth=2
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %r14
LBB0_40:                                ##   in Loop: Header=BB0_29 Depth=2
	cmpl	%edi, %r12d
	jae	LBB0_49
## %bb.41:                              ##   in Loop: Header=BB0_29 Depth=2
	movslq	(%r15), %rax
	leaq	(%r15,%rax,4), %r15
	movq	16(%r14), %rax
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_28 Depth=1
	movslq	%ecx, %rax
	addq	40(%r14), %rax
	movslq	(%r14), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_49
## %bb.43:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	8(%r14), %rdi
	movq	_CACHE_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CDVD_Cache_Dir
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_47
## %bb.44:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	16(%r14), %rax
	movq	%rax, %r15
	jmp	LBB0_28
LBB0_47:
	movl	$-1, %r15d
LBB0_50:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_48:
	movq	_CDVD_GET_FILES_AND_DIRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$-1, %r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHE_START,4,2                ## @CACHE_START
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_CDVD_GET_DIRS_ONLY,4,2         ## @CDVD_GET_DIRS_ONLY
	.comm	_CDVD_GET_FILES_AND_DIRS,4,2    ## @CDVD_GET_FILES_AND_DIRS
	.comm	_CachedDirInfo,48,3             ## @CachedDirInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".."

	.comm	_CACHE_NEXT,4,2                 ## @CACHE_NEXT
	.comm	_CDVD_GET_FILES_ONLY,4,2        ## @CDVD_GET_FILES_ONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_GetDir_RPC                ; -- Begin function CDVD_GetDir_RPC
	.p2align	2
_CDVD_GetDir_RPC:                       ; @CDVD_GetDir_RPC
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
Lloh0:
	adrp	x28, _CACHE_START@GOTPAGE
Lloh1:
	ldr	x28, [x28, _CACHE_START@GOTPAGEOFF]
	ldr	w1, [x28]
	bl	_CDVD_Cache_Dir
Lloh2:
	adrp	x26, _TRUE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_37
; %bb.1:
Lloh4:
	adrp	x8, _CDVD_GET_DIRS_ONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CDVD_GET_DIRS_ONLY@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
Lloh7:
	adrp	x8, _CDVD_GET_FILES_AND_DIRS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CDVD_GET_FILES_AND_DIRS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w9, w24
	ccmp	w8, w24, #4, ne
	b.ne	LBB0_19
; %bb.2:
Lloh10:
	adrp	x25, _CachedDirInfo@GOTPAGE
Lloh11:
	ldr	x25, [x25, _CachedDirInfo@GOTPAGEOFF]
	ldr	x0, [x25, #8]
	ldr	w1, [x28]
	bl	_CDVD_Cache_Dir
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_37
; %bb.3:
	ldp	x8, x10, [x25, #16]
	ldrsw	x9, [x8]
	add	x9, x8, x9, lsl #2
	cbnz	x10, LBB0_5
; %bb.4:
	ldrsw	x10, [x9]
	add	x9, x9, x10, lsl #2
LBB0_5:
	mov	w22, #0
	mov	w27, #0
	mov	w23, #0
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	ldrsw	x10, [x25, #32]
	add	x11, x8, x10, lsl #11
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	cmp	x9, x11
	b.hs	LBB0_16
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	ldr	w12, [x9]
	sub	x13, x9, x8
	add	x14, x13, #2047
	cmp	x13, #0
	csel	x13, x14, x13, lt
	and	x13, x13, #0xfffffffffffff800
	add	x8, x13, x8
	add	x8, x8, #2048
	cmp	w12, #0
	csel	x26, x9, x8, ne
	cmp	x26, x11
	b.hs	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w8, [x26, #4]
	tbz	w8, #1, LBB0_14
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x23
	bl	_sceSifDmaStat
	tbz	x0, #63, LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	add	x0, sp, #40
	mov	x1, x26
	bl	_TocEntryCopy
	cbnz	w27, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [sp, #40]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x8, sp, #40
	str	x8, [sp, #24]
	mov	w8, #4
	str	w8, [sp]
	add	x8, x20, w22, sxtw #2
	stp	xzr, x8, [sp, #8]
	add	x0, sp, #36
	bl	_CpuSuspendIntr
	mov	x0, sp
	mov	w1, #1
	bl	_sceSifSetDma
	mov	x23, x0
	ldr	w0, [sp, #36]
	bl	_CpuResumeIntr
	add	w22, w22, #1
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w22, w19
	b.hs	LBB0_38
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w27, w27, #1
	ldrsw	x8, [x26]
	add	x9, x26, x8, lsl #2
	ldr	x8, [x25, #16]
	ldrsw	x10, [x25, #32]
	add	x11, x8, x10, lsl #11
	cmp	x9, x11
	b.lo	LBB0_7
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #40]
	add	x8, x8, w10, sxtw
	ldrsw	x9, [x25]
	cmp	x8, x9
	b.ge	LBB0_39
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x25, #8]
Lloh14:
	adrp	x8, _CACHE_NEXT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CACHE_NEXT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_CDVD_Cache_Dir
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_37
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #16]
	mov	x9, x8
	b	LBB0_6
LBB0_19:
	mov	w22, #0
	mov	w23, #0
LBB0_20:
Lloh20:
	adrp	x9, _CDVD_GET_FILES_ONLY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CDVD_GET_FILES_ONLY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w9, w24
	ccmp	w8, w24, #4, ne
	b.ne	LBB0_38
; %bb.21:
Lloh23:
	adrp	x25, _CachedDirInfo@GOTPAGE
Lloh24:
	ldr	x25, [x25, _CachedDirInfo@GOTPAGEOFF]
	ldr	x0, [x25, #8]
	ldr	w1, [x28]
	bl	_CDVD_Cache_Dir
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_37
; %bb.22:
	ldp	x8, x10, [x25, #16]
	ldrsw	x9, [x8]
	add	x9, x8, x9, lsl #2
	cbnz	x10, LBB0_24
; %bb.23:
	ldrsw	x10, [x9]
	add	x9, x9, x10, lsl #2
LBB0_24:
	add	x26, sp, #40
	mov	w27, #4
Lloh25:
	adrp	x28, _CACHE_NEXT@GOTPAGE
Lloh26:
	ldr	x28, [x28, _CACHE_NEXT@GOTPAGEOFF]
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
                                        ;       Child Loop BB0_28 Depth 3
	ldrsw	x10, [x25, #32]
	add	x11, x8, x10, lsl #11
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	cmp	x9, x11
	b.hs	LBB0_34
LBB0_26:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_28 Depth 3
	ldr	w12, [x9]
	sub	x13, x9, x8
	add	x14, x13, #2047
	cmp	x13, #0
	csel	x13, x14, x13, lt
	and	x13, x13, #0xfffffffffffff800
	add	x8, x13, x8
	add	x8, x8, #2048
	cmp	w12, #0
	csel	x24, x9, x8, ne
	cmp	x24, x11
	b.hs	LBB0_34
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	ldrb	w8, [x24, #4]
	tbnz	w8, #1, LBB0_32
LBB0_28:                                ;   Parent Loop BB0_25 Depth=1
                                        ;     Parent Loop BB0_26 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x23
	bl	_sceSifDmaStat
	tbz	x0, #63, LBB0_28
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=2
	add	x0, sp, #40
	mov	x1, x24
	bl	_TocEntryCopy
	mov	x0, x21
	bl	_strlen
	cmp	x0, #1
	b.lt	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	w0, [sp, #40]
	mov	x1, x21
	bl	_TocEntryCompare
Lloh27:
	adrp	x8, _TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_26 Depth=2
	str	w27, [sp]
	add	x8, x20, w22, sxtw #2
	stp	x8, x26, [sp, #16]
	str	xzr, [sp, #8]
	add	x0, sp, #36
	bl	_CpuSuspendIntr
	mov	x0, sp
	mov	w1, #1
	bl	_sceSifSetDma
	mov	x23, x0
	ldr	w0, [sp, #36]
	bl	_CpuResumeIntr
	add	w22, w22, #1
LBB0_32:                                ;   in Loop: Header=BB0_26 Depth=2
	cmp	w22, w19
	b.hs	LBB0_38
; %bb.33:                               ;   in Loop: Header=BB0_26 Depth=2
	ldrsw	x8, [x24]
	add	x9, x24, x8, lsl #2
	ldr	x8, [x25, #16]
	ldrsw	x10, [x25, #32]
	add	x11, x8, x10, lsl #11
	cmp	x9, x11
	b.lo	LBB0_26
LBB0_34:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x25, #40]
	add	x8, x8, w10, sxtw
	ldrsw	x9, [x25]
	cmp	x8, x9
	b.ge	LBB0_38
; %bb.35:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x0, [x25, #8]
	ldr	w1, [x28]
	bl	_CDVD_Cache_Dir
Lloh30:
	adrp	x8, _TRUE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x25, #16]
	mov	x9, x8
	b	LBB0_25
LBB0_37:
	mov	w22, #-1
LBB0_38:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_39:
Lloh33:
	adrp	x8, _CDVD_GET_FILES_AND_DIRS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CDVD_GET_FILES_AND_DIRS@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x26, _TRUE@GOTPAGE
Lloh37:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHE_START,4,2                ; @CACHE_START
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_CDVD_GET_DIRS_ONLY,4,2         ; @CDVD_GET_DIRS_ONLY
	.comm	_CDVD_GET_FILES_AND_DIRS,4,2    ; @CDVD_GET_FILES_AND_DIRS
	.comm	_CachedDirInfo,48,3             ; @CachedDirInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".."

	.comm	_CACHE_NEXT,4,2                 ; @CACHE_NEXT
	.comm	_CDVD_GET_FILES_ONLY,4,2        ; @CDVD_GET_FILES_ONLY
.subsections_via_symbols
