	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fileXioCDDread
_fileXioCDDread:                        ## @fileXioCDDread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	___ps2_fd_grab
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jae	LBB0_6
## %bb.2:
	movl	4(%r14), %edi
	movq	16(%rbx), %rcx
	shlq	$4, %rax
	movl	8(%rcx,%rax), %esi
	callq	_strcpy
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	%rax, %rdx
	shlq	$4, %rdx
	cmpq	$0, (%rcx,%rdx)
	jne	LBB0_3
## %bb.4:
	movq	_FIO_S_IFREG@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	movq	$0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_FIO_S_IFDIR@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	incq	%rax
	movq	%rax, (%rbx)
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIO_S_IFDIR,4,2                ## @FIO_S_IFDIR
	.comm	_FIO_S_IFREG,4,2                ## @FIO_S_IFREG
	.no_dead_strip	_fileXioCDDread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fileXioCDDread
_fileXioCDDread:                        ; @fileXioCDDread
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	___ps2_fd_grab
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
	ldr	x9, [x20, #16]
	add	x8, x9, x8, lsl #4
	ldr	w1, [x8, #8]
	bl	_strcpy
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	lsl	x10, x9, #4
	ldr	x8, [x8, x10]
Lloh0:
	adrp	x10, _FIO_S_IFREG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FIO_S_IFREG@GOTPAGEOFF]
Lloh2:
	adrp	x11, _FIO_S_IFDIR@GOTPAGE
Lloh3:
	ldr	x11, [x11, _FIO_S_IFDIR@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19]
	add	x8, x9, #1
	str	x8, [x20]
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
	str	xzr, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FIO_S_IFDIR,4,2                ; @FIO_S_IFDIR
	.comm	_FIO_S_IFREG,4,2                ; @FIO_S_IFREG
	.no_dead_strip	_fileXioCDDread
.subsections_via_symbols
