	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btrfs_read_chunk_tree
_btrfs_read_chunk_tree:                 ## @btrfs_read_chunk_tree
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_BtrFsInfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_BTRFS_SUPER_FLAG_METADUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_9
## %bb.1:
	cmpl	$2, 4(%rbx)
	jl	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
LBB0_3:
	movq	_BTRFS_DEV_ITEMS_OBJECTID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_BTRFS_DEV_ITEM_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_BTRFS_FIRST_CHUNK_TREE_OBJECTID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_BTRFS_CHUNK_ITEM_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	callq	_init_path
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	leaq	-56(%rbp), %r14
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	__BtrFsSearchTree
	leaq	-72(%rbp), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_path_current_data
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_path_current_disk_key
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_insert_map
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_next_slot
	testl	%eax, %eax
	jne	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_path_current_disk_key
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_btrfs_comp_keys_type
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_path_current_disk_key
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_btrfs_comp_keys_type
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	leaq	-40(%rbp), %rdi
	callq	_free_path
LBB0_9:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BtrFsInfo,8,3                  ## @BtrFsInfo
	.comm	_BTRFS_SUPER_FLAG_METADUMP,4,2  ## @BTRFS_SUPER_FLAG_METADUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: only support single device btrfs\n"

	.comm	_BTRFS_DEV_ITEMS_OBJECTID,4,2   ## @BTRFS_DEV_ITEMS_OBJECTID
	.comm	_BTRFS_DEV_ITEM_KEY,4,2         ## @BTRFS_DEV_ITEM_KEY
	.comm	_BTRFS_FIRST_CHUNK_TREE_OBJECTID,4,2 ## @BTRFS_FIRST_CHUNK_TREE_OBJECTID
	.comm	_BTRFS_CHUNK_ITEM_KEY,4,2       ## @BTRFS_CHUNK_ITEM_KEY
	.no_dead_strip	_btrfs_read_chunk_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btrfs_read_chunk_tree
_btrfs_read_chunk_tree:                 ; @btrfs_read_chunk_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, _BtrFsInfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BtrFsInfo@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _BTRFS_SUPER_FLAG_METADUMP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTRFS_SUPER_FLAG_METADUMP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.lt	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
LBB0_3:
Lloh8:
	adrp	x8, _BTRFS_DEV_ITEMS_OBJECTID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTRFS_DEV_ITEMS_OBJECTID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _BTRFS_DEV_ITEM_KEY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BTRFS_DEV_ITEM_KEY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
Lloh14:
	adrp	x8, _BTRFS_FIRST_CHUNK_TREE_OBJECTID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTRFS_FIRST_CHUNK_TREE_OBJECTID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _BTRFS_CHUNK_ITEM_KEY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BTRFS_CHUNK_ITEM_KEY@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	str	xzr, [sp, #16]
	add	x0, sp, #8
	bl	_init_path
	ldp	w1, w0, [x19, #8]
	add	x2, sp, #16
	add	x3, sp, #8
	bl	__BtrFsSearchTree
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	bl	_path_current_data
	mov	x19, x0
	add	x0, sp, #8
	bl	_path_current_disk_key
	mov	x1, x19
	bl	_insert_map
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_next_slot
	cbnz	w0, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_path_current_disk_key
	mov	x1, x0
	add	x0, sp, #32
	bl	_btrfs_comp_keys_type
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #8
	bl	_path_current_disk_key
	mov	x1, x0
	add	x0, sp, #16
	bl	_btrfs_comp_keys_type
	cbz	x0, LBB0_4
LBB0_8:
	add	x0, sp, #8
	bl	_free_path
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BtrFsInfo,8,3                  ; @BtrFsInfo
	.comm	_BTRFS_SUPER_FLAG_METADUMP,4,2  ; @BTRFS_SUPER_FLAG_METADUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: only support single device btrfs\n"

	.comm	_BTRFS_DEV_ITEMS_OBJECTID,4,2   ; @BTRFS_DEV_ITEMS_OBJECTID
	.comm	_BTRFS_DEV_ITEM_KEY,4,2         ; @BTRFS_DEV_ITEM_KEY
	.comm	_BTRFS_FIRST_CHUNK_TREE_OBJECTID,4,2 ; @BTRFS_FIRST_CHUNK_TREE_OBJECTID
	.comm	_BTRFS_CHUNK_ITEM_KEY,4,2       ; @BTRFS_CHUNK_ITEM_KEY
	.no_dead_strip	_btrfs_read_chunk_tree
.subsections_via_symbols
