	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btrfs_file_read
_btrfs_file_read:                       ## @btrfs_file_read
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_READ_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%rbx, -72(%rbp)
	movq	_BTRFS_EXTENT_DATA_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_path
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_BtrFsSearchTree
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rdi
	callq	_path_current_disk_key
	leaq	-88(%rbp), %rdi
	movq	%rax, %rsi
	callq	_btrfs_comp_keys
	testq	%rax, %rax
	js	LBB0_2
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_path_current_disk_key
	leaq	-88(%rbp), %rdi
	movq	%rax, %rsi
	callq	_btrfs_comp_keys_type
	testq	%rax, %rax
	jne	LBB0_17
LBB0_5:
	leaq	-48(%rbp), %r15
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_path_current_disk_key
	movq	(%rax), %r14
	movq	%r15, %rdi
	callq	_path_current_disk_key
	movq	8(%rax), %rbx
	movq	%r15, %rdi
	callq	_path_current_disk_key
	movq	16(%rax), %rcx
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rbx
	callq	_TRACE
	movq	%r15, %rdi
	callq	_path_current_data
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_path_current_disk_key
	movq	%r13, %rdx
	cmpq	16(%rax), %r13
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_path_current_disk_key
	movq	%r13, %rdx
	subq	16(%rax), %rdx
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14), %rax
	movq	_BTRFS_FILE_EXTENT_INLINE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_btrfs_read_extent_inline
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_btrfs_read_extent_reg
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movq	_READ_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	%rbx, %r13
	movq	%r12, %rsi
	subq	%rbx, %rsi
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_TRACE
	subq	%rbx, %r12
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	%rbx, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %rdi
	movq	%r15, %rsi
	callq	_next_slot
	testl	%eax, %eax
	je	LBB0_6
	jmp	LBB0_15
LBB0_2:
	leaq	-88(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_prev_slot
	testq	%rax, %rax
	jne	LBB0_17
	jmp	LBB0_5
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	callq	_ERR
LBB0_15:
	movq	_READ_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_17
LBB0_16:
	subq	-64(%rbp), %r13                 ## 8-byte Folded Reload
LBB0_17:
	leaq	-48(%rbp), %rdi
	callq	_free_path
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ_ERROR,8,3                 ## @READ_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"btrfs_file_read inr=%llu offset=%llu size=%llu\n"

	.comm	_BTRFS_EXTENT_DATA_KEY,4,2      ## @BTRFS_EXTENT_DATA_KEY
L_.str.1:                               ## @.str.1
	.asciz	"Current extent: (%llu %u %llu) \n"

	.comm	_BTRFS_FILE_EXTENT_INLINE,8,3   ## @BTRFS_FILE_EXTENT_INLINE
L_.str.2:                               ## @.str.2
	.asciz	"Error while reading extent\n"

L_.str.3:                               ## @.str.3
	.asciz	"file_read size=%llu rd=%llu seek_pointer=%llu\n"

	.no_dead_strip	_btrfs_file_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btrfs_file_read
_btrfs_file_read:                       ; @btrfs_file_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x27, _READ_ERROR@GOTPAGE
Lloh1:
	ldr	x27, [x27, _READ_ERROR@GOTPAGEOFF]
	ldr	x22, [x27]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	str	x23, [sp, #16]
Lloh4:
	adrp	x8, _BTRFS_EXTENT_DATA_KEY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BTRFS_EXTENT_DATA_KEY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	x20, [sp]
	add	x0, sp, #24
	bl	_init_path
	mov	x1, sp
	add	x2, sp, #24
	mov	x0, x24
	bl	_BtrFsSearchTree
	cbnz	w0, LBB0_2
; %bb.1:
	add	x0, sp, #24
	bl	_path_current_disk_key
	mov	x1, x0
	mov	x0, sp
	bl	_btrfs_comp_keys
	tbnz	x0, #63, LBB0_4
LBB0_2:
	add	x0, sp, #24
	bl	_path_current_disk_key
	mov	x1, x0
	mov	x0, sp
	bl	_btrfs_comp_keys_type
	cbz	x0, LBB0_5
LBB0_3:
	add	x0, sp, #24
	bl	_free_path
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	mov	x0, sp
	add	x1, sp, #24
	bl	_prev_slot
	cbnz	x0, LBB0_3
LBB0_5:
Lloh7:
	adrp	x22, l_.str.1@PAGE
Lloh8:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh9:
	adrp	x28, _BTRFS_FILE_EXTENT_INLINE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _BTRFS_FILE_EXTENT_INLINE@GOTPAGEOFF]
	mov	x23, x20
Lloh11:
	adrp	x24, l_.str.3@PAGE
Lloh12:
	add	x24, x24, l_.str.3@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	bl	_path_current_disk_key
	ldr	x25, [x0]
	add	x0, sp, #24
	bl	_path_current_disk_key
	ldr	x26, [x0, #8]
	add	x0, sp, #24
	bl	_path_current_disk_key
	ldr	x3, [x0, #16]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x26
	bl	_TRACE
	add	x0, sp, #24
	bl	_path_current_data
	mov	x25, x0
	add	x0, sp, #24
	bl	_path_current_disk_key
	ldr	x8, [x0, #16]
	mov	x2, x23
	cmp	x23, x8
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #24
	bl	_path_current_disk_key
	ldr	x8, [x0, #16]
	sub	x2, x23, x8
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x28]
	add	x0, sp, #24
	mov	x1, x25
	mov	x3, x21
	mov	x4, x19
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_btrfs_read_extent_inline
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_btrfs_read_extent_reg
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x25, x23
	sub	x21, x21, x25
	mov	x0, x24
	mov	x1, x21
	mov	x2, x25
	mov	x3, x23
	bl	_TRACE
	cbz	x21, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x19, x25
	mov	x0, sp
	add	x1, sp, #24
	bl	_next_slot
	cbz	w0, LBB0_6
; %bb.14:
	ldr	x22, [x27]
	b	LBB0_3
LBB0_15:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ERR
	ldr	x22, [x27]
	b	LBB0_3
LBB0_16:
	sub	x22, x23, x20
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_READ_ERROR,8,3                 ; @READ_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"btrfs_file_read inr=%llu offset=%llu size=%llu\n"

	.comm	_BTRFS_EXTENT_DATA_KEY,4,2      ; @BTRFS_EXTENT_DATA_KEY
l_.str.1:                               ; @.str.1
	.asciz	"Current extent: (%llu %u %llu) \n"

	.comm	_BTRFS_FILE_EXTENT_INLINE,8,3   ; @BTRFS_FILE_EXTENT_INLINE
l_.str.2:                               ; @.str.2
	.asciz	"Error while reading extent\n"

l_.str.3:                               ; @.str.3
	.asciz	"file_read size=%llu rd=%llu seek_pointer=%llu\n"

	.no_dead_strip	_btrfs_file_read
.subsections_via_symbols
