	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_dev_read_r
_fs_dev_read_r:                         ## @fs_dev_read_r
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.5:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	cmpl	$0, 20(%r14)
	je	LBB0_8
## %bb.9:
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	(%rax), %edi
	callq	_OSLockMutex
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rcx
	subq	%rbx, %rcx
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	leaq	(%rbx,%r13), %rsi
	movl	16(%r14), %r8d
	movl	$1, %edx
	xorl	%r9d, %r9d
	callq	_IOSUHAX_FSA_ReadFile
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ecx
	addq	%rcx, %rbx
	addl	%eax, (%r14)
	cmpq	%r12, %rbx
	jb	LBB0_10
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_11:
	movl	%eax, (%r15)
	xorl	%ebx, %ebx
LBB0_14:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_OSUnlockMutex
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EACCES,4,2                     ## @EACCES
	.no_dead_strip	_fs_dev_read_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_dev_read_r
_fs_dev_read_r:                         ; @fs_dev_read_r
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	cbz	x1, LBB0_9
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	w9, [x20, #20]
	cbz	w9, LBB0_11
; %bb.4:
	mov	x22, x3
	mov	x23, x2
	ldr	w0, [x8]
	bl	_OSLockMutex
	mov	x19, #0
	cbz	x22, LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x3, x22, x19
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	add	x1, x23, x19
	ldr	w4, [x20, #16]
	mov	w2, #1
	mov	w5, #0
	bl	_IOSUHAX_FSA_ReadFile
	tbnz	w0, #31, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, w0, uxtw
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	cmp	x19, x22
	b.lo	LBB0_5
	b	LBB0_14
LBB0_8:
	mov	x19, #0
	b	LBB0_15
LBB0_9:
	mov	x19, #0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	x19, #0
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	mov	x19, #0
Lloh4:
	adrp	x8, _EACCES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_15
LBB0_13:
	mov	x19, #0
	str	w0, [x21]
LBB0_14:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_OSUnlockMutex
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EACCES,4,2                     ; @EACCES
	.no_dead_strip	_fs_dev_read_r
.subsections_via_symbols
