	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindPath                       ## -- Begin function FindPath
	.p2align	4, 0x90
_FindPath:                              ## @FindPath
	.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
	leaq	L_.str(%rip), %rsi
	callq	_strtok
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_isValidDisc
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	callq	_sceCdDiskReady
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movq	_CachedDirInfo@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdx
	movq	_cdReadMode@GOTPCREL(%rip), %rcx
	callq	_ReadSect
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_32
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testq	%r15, %r15
	je	LBB0_36
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %r12d
	movq	(%r14), %rdx
	movslq	(%rdx), %rax
	leaq	(%rdx,%rax,4), %r13
	movslq	8(%r14), %rdi
	movq	%rdi, %rax
	shlq	$11, %rax
	addq	%rdx, %rax
	cmpq	%rax, %r13
	jae	LBB0_31
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=2
	movslq	(%r13), %rax
	leaq	(%r13,%rax,4), %r13
	movslq	8(%r14), %rdi
	movq	%rdi, %rax
	shlq	$11, %rax
	addq	%rdx, %rax
	decl	%ebx
	cmpq	%rax, %r13
	jae	LBB0_30
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r13)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%rax, %r13
	jae	LBB0_9
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	testb	$2, 4(%r13)
	je	LBB0_21
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=2
	subq	%rdx, %r13
	leaq	2047(%r13), %rcx
	testq	%r13, %r13
	cmovnsq	%r13, %rcx
	andq	$-2048, %rcx                    ## imm = 0xF800
	leaq	(%rcx,%rdx), %r13
	addq	$2048, %r13                     ## imm = 0x800
	cmpq	%rax, %r13
	jb	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	addl	12(%r14), %edi
	movl	16(%r14), %eax
	subl	%edi, %eax
	jle	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	%edi, 12(%r14)
	movl	%eax, 8(%r14)
	movslq	%eax, %rsi
	movq	_MAX_DIR_CACHE_SECTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	%eax, 8(%r14)
	movslq	%eax, %rsi
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	addl	20(%r14), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	_cdReadMode@GOTPCREL(%rip), %rcx
	callq	_ReadSect
	movq	_TRUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r14), %rdx
	movq	%rdx, %r13
	testb	$2, 4(%r13)
	je	LBB0_21
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=2
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	callq	_TocEntryCopy
	testl	%ebx, %ebx
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$0, 32(%r14)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	-48(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r14), %rdx
	jmp	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%ebx, %ebx
	je	LBB0_23
## %bb.29:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcat
	movq	40(%r14), %rdi
	movq	%r15, %rsi
	callq	_strcat
	incq	32(%r14)
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rsi
	callq	_strtok
	movq	%rax, %r15
	movl	-56(%rbp), %edi
	movl	-52(%rbp), %eax
	movl	%edi, 20(%r14)
	sarl	$11, %eax
	movq	_CDVolDesc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$2047, %edx                     ## imm = 0x7FF
	andl	%edx, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %eax
	movl	%eax, 16(%r14)
	movl	$0, 12(%r14)
	movl	%eax, 8(%r14)
	movslq	%eax, %rsi
	movq	_MAX_DIR_CACHE_SECTORS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	jae	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 8(%r14)
	movslq	%eax, %rsi
	jmp	LBB0_35
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_3 Depth=1
	decq	%rax
	movq	%rax, 32(%r14)
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movq	40(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%rax)
	jmp	LBB0_31
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%rdi)
	jmp	LBB0_31
LBB0_13:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_37:
	movl	(%rax), %eax
LBB0_38:
	movl	%eax, 24(%r14)
	jmp	LBB0_39
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_39:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movl	(%rbx), %eax
	jmp	LBB0_38
LBB0_36:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\/"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CachedDirInfo,48,3             ## @CachedDirInfo
	.comm	_MAX_DIR_CACHE_SECTORS,8,3      ## @MAX_DIR_CACHE_SECTORS
	.comm	_cdReadMode,4,2                 ## @cdReadMode
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	".."

L_.str.2:                               ## @.str.2
	.asciz	"/"

	.comm	_CDVolDesc,4,2                  ## @CDVolDesc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FindPath                       ; -- Begin function FindPath
	.p2align	2
_FindPath:                              ; @FindPath
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strtok
	mov	x23, x0
	bl	_isValidDisc
Lloh2:
	adrp	x19, _FALSE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	cbz	w0, LBB0_33
; %bb.1:
	mov	w0, #0
	bl	_sceCdDiskReady
Lloh4:
	adrp	x25, _CachedDirInfo@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CachedDirInfo@GOTPAGEOFF]
Lloh6:
	adrp	x27, _TRUE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _TRUE@GOTPAGEOFF]
Lloh8:
	adrp	x28, _MAX_DIR_CACHE_SECTORS@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MAX_DIR_CACHE_SECTORS@GOTPAGEOFF]
Lloh10:
	adrp	x21, _cdReadMode@GOTPAGE
Lloh11:
	ldr	x21, [x21, _cdReadMode@GOTPAGEOFF]
Lloh12:
	adrp	x26, _CDVolDesc@GOTPAGE
Lloh13:
	ldr	x26, [x26, _CDVolDesc@GOTPAGEOFF]
Lloh14:
	adrp	x22, l_.str@PAGE
Lloh15:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [x25]
	mov	x3, x21
	bl	_ReadSect
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_31
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cbz	x23, LBB0_35
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w20, [x19]
	ldr	x2, [x25]
	ldrsw	x8, [x2]
	add	x8, x2, x8, lsl #2
	ldrsw	x10, [x25, #8]
	add	x9, x2, x10, lsl #11
	cmp	x8, x9
	b.hs	LBB0_22
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldrsw	x8, [x24]
	add	x8, x24, x8, lsl #2
	ldrsw	x10, [x25, #8]
	add	x9, x2, x10, lsl #11
	sub	w22, w22, #1
	cmp	x8, x9
	b.hs	LBB0_21
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x8]
	sub	x12, x8, x2
	add	x13, x12, #2047
	cmp	x12, #0
	csel	x12, x13, x12, lt
	and	x12, x12, #0xfffffffffffff800
	add	x12, x12, x2
	add	x12, x12, #2048
	cmp	w11, #0
	csel	x24, x8, x12, ne
	cmp	x24, x9
	b.lo	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldp	w8, w9, [x25, #12]
	add	w8, w8, w10
	subs	w9, w9, w8
	b.le	LBB0_31
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	stp	w9, w8, [x25, #8]
	sxtw	x1, w9
	ldr	x9, [x28]
	cmp	x9, x1
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	str	w9, [x25, #8]
	sxtw	x1, w9
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w9, [x25, #20]
	add	w0, w9, w8
	mov	x3, x21
	bl	_ReadSect
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_31
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x2, [x25]
	mov	x24, x2
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w8, [x24, #4]
	tbz	w8, #1, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, sp
	mov	x1, x24
	bl	_TocEntryCopy
	cbnz	w22, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x25, #32]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [sp, #8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w1, [sp, #8]
	mov	x0, x23
	bl	_strcasecmp
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x2, [x25]
	b	LBB0_6
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w20, [x27]
	cbz	w22, LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x25, #40]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcat
	ldr	x0, [x25, #40]
	mov	x1, x23
	bl	_strcat
	ldr	x8, [x25, #32]
	add	x8, x8, #1
	str	x8, [x25, #32]
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh20:
	adrp	x22, l_.str@PAGE
Lloh21:
	add	x22, x22, l_.str@PAGEOFF
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	cmp	w20, w8
	b.ne	LBB0_31
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
	mov	x1, x22
	bl	_strtok
	mov	x23, x0
	ldp	w0, w8, [sp]
	asr	w8, w8, #11
	ldr	w9, [x26]
	tst	w9, #0x7ff
	cinc	w8, w8, ne
	stp	w8, w0, [x25, #16]
	stp	w8, wzr, [x25, #8]
	sxtw	x1, w8
	ldr	x8, [x28]
	cmp	x8, x1
	b.hs	LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w8, [x25, #8]
	sxtw	x1, w8
	b	LBB0_2
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #32]
	subs	x9, x8, #1
	b.lt	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x9, [x25, #32]
	mov	x8, x9
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh22:
	adrp	x22, l_.str@PAGE
Lloh23:
	add	x22, x22, l_.str@PAGEOFF
	ldr	x0, [x25, #40]
	cbz	x8, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_22
; %bb.29:                               ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x0]
	b	LBB0_22
LBB0_30:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x0]
	b	LBB0_22
LBB0_31:
	ldr	w0, [x19]
LBB0_32:
	str	w0, [x25, #24]
	b	LBB0_34
LBB0_33:
	ldr	w0, [x19]
LBB0_34:
	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_35:
	ldr	w0, [x27]
	b	LBB0_32
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\/"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CachedDirInfo,48,3             ; @CachedDirInfo
	.comm	_MAX_DIR_CACHE_SECTORS,8,3      ; @MAX_DIR_CACHE_SECTORS
	.comm	_cdReadMode,4,2                 ; @cdReadMode
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	".."

l_.str.2:                               ; @.str.2
	.asciz	"/"

	.comm	_CDVolDesc,4,2                  ; @CDVolDesc
.subsections_via_symbols
