	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdfs_find_file
_cdfs_find_file:                        ## @cdfs_find_file
	.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
	movl	$8232, %eax                     ## imm = 0x2028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	movl	$92, %esi
	callq	_strrchr
	testq	%rax, %rax
	movq	%rax, -8256(%rbp)               ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	subq	%r12, %rbx
	leaq	-8240(%rbp), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	shlq	$32, %rbx
	movq	%rbx, %rax
	sarq	$30, %rax
	movl	$0, -8240(%rbp,%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cdfs_find_file
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	addq	%rax, %rbx
	sarq	$32, %rbx
	addq	%rbx, %r12
	jmp	LBB0_4
LBB0_3:
	movq	8(%r14), %rdi
	movl	$16, %esi
	callq	_cdfs_seek_track_sector
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	-8240(%rbp), %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_intfstream_read
	movl	-7604(%rbp), %eax
	movl	-7600(%rbp), %r13d
	shll	$8, %eax
	orl	-7608(%rbp), %eax
	shll	$16, %r13d
	orl	%eax, %r13d
LBB0_4:
	movq	8(%r14), %rdi
	movl	%r13d, %esi
	callq	_cdfs_seek_track_sector
	movq	%r14, -8248(%rbp)               ## 8-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	-8240(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$8192, %edx                     ## imm = 0x2000
	callq	_intfstream_read
	movq	%r12, -8264(%rbp)               ## 8-byte Spill
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %r15d
	addl	$33, %eax
	movslq	%eax, %r12
	movl	$-1, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	132(%rbx), %rdi
	movq	-8264(%rbp), %rsi               ## 8-byte Reload
	movl	%r15d, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rbx,%r14,4), %rbx
	leaq	24528(%rbp), %rax
	cmpq	%rax, %rbx
	jae	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx,%r12,4), %eax
	cmpl	$59, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	je	LBB0_8
	jmp	LBB0_12
LBB0_9:
	cmpq	$0, -8256(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	movl	44(%rbx), %eax
	movl	48(%rbx), %ecx
	shll	$8, %eax
	orl	40(%rbx), %eax
	shll	$16, %ecx
	movl	52(%rbx), %edx
	shll	$24, %edx
	orl	%ecx, %edx
	orl	%eax, %edx
	movq	-8248(%rbp), %rax               ## 8-byte Reload
	movl	%edx, (%rax)
LBB0_11:
	movl	12(%rbx), %eax
	movl	16(%rbx), %r13d
	shll	$8, %eax
	orl	8(%rbx), %eax
	shll	$16, %r13d
	orl	%eax, %r13d
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r13d, %eax
	addq	$8232, %rsp                     ## imm = 0x2028
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cdfs_find_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdfs_find_file
_cdfs_find_file:                        ; @cdfs_find_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #8208
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, x1
	mov	w1, #92
	bl	_strrchr
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.1:
	sub	x22, x21, x20
	add	x23, sp, #8
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	sbfiz	x8, x22, #2, #32
	str	wzr, [x23, x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_cdfs_find_file
	mov	x1, x0
	tbnz	w0, #31, LBB0_13
; %bb.2:
	lsl	x8, x22, #32
	mov	x9, #4294967296
	add	x8, x8, x9
	add	x20, x20, x8, asr #32
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19, #8]
	mov	w1, #16
	bl	_cdfs_seek_track_sector
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #8192
	bl	_intfstream_read
	ldr	w8, [sp, #640]
	ldr	w9, [sp, #644]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [sp, #648]
	orr	w1, w8, w9, lsl #16
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_cdfs_seek_track_sector
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	add	x23, sp, #8
	add	x1, sp, #8
	mov	w2, #8192
	bl	_intfstream_read
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	add	x24, x23, #8, lsl #12           ; =32768
	add	w8, w0, #33
	sxtw	x25, w8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, x26, lsl #2
	cmp	x23, x24
	b.hs	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x26, [x23]
	cbz	w26, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23, x25, lsl #2]
	cmp	w8, #59
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x23, #132
	mov	x1, x20
	mov	x2, x22
	bl	_strncasecmp
	cbnz	x0, LBB0_5
; %bb.9:
	cbnz	x21, LBB0_11
; %bb.10:
	ldp	w8, w9, [x23, #40]
	orr	w8, w8, w9, lsl #8
	ldp	w9, w10, [x23, #48]
	orr	w8, w8, w9, lsl #16
	orr	w8, w8, w10, lsl #24
	str	w8, [x19]
LBB0_11:
	ldp	w8, w9, [x23, #8]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x23, #16]
	orr	w1, w8, w9, lsl #16
	b	LBB0_13
LBB0_12:
	mov	w1, #-1
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x1
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #16
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cdfs_find_file
.subsections_via_symbols
