	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BtrFsRead                      ## -- Begin function BtrFsRead
	.p2align	4, 0x90
_BtrFsRead:                             ## @BtrFsRead
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_FsGetDeviceSpecific
	movq	%rax, %r13
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_TRACE
	testq	%rbx, %rbx
	movq	8(%r13), %rax
	cmoveq	%rax, %rbx
	cmpq	%rax, %rbx
	cmovgeq	%rax, %rbx
	movq	_BtrFsInfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_btrfs_file_read
	movq	_READ_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	addl	%eax, (%r13)
	movq	%rax, (%r14)
	movq	_ESUCCESS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BtrFsRead %lu, size=%lu \n"

	.comm	_BtrFsInfo,8,3                  ## @BtrFsInfo
	.comm	_READ_ERROR,8,3                 ## @READ_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"An error occured while reading file %lu\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ESUCCESS,4,2                   ## @ESUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BtrFsRead                      ; -- Begin function BtrFsRead
	.p2align	2
_BtrFsRead:                             ; @BtrFsRead
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_FsGetDeviceSpecific
	mov	x21, x0
	str	x22, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	ldr	x8, [x21, #8]
	cmp	x22, #0
	csel	x9, x8, x22, eq
	cmp	x9, x8
	csel	x3, x9, x8, lt
Lloh2:
	adrp	x8, _BtrFsInfo@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BtrFsInfo@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	ldp	w2, w1, [x21]
	mov	x4, x23
	bl	_btrfs_file_read
Lloh5:
	adrp	x8, _READ_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _READ_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_TRACE
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x21]
	add	w8, w8, w0
	str	w8, [x21]
	str	x0, [x19]
Lloh12:
	adrp	x8, _ESUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ESUCCESS@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BtrFsRead %lu, size=%lu \n"

	.comm	_BtrFsInfo,8,3                  ; @BtrFsInfo
	.comm	_READ_ERROR,8,3                 ; @READ_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"An error occured while reading file %lu\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ESUCCESS,4,2                   ; @ESUCCESS
.subsections_via_symbols
