	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_btree_node_read_done       ## -- Begin function bch_btree_node_read_done
	.p2align	4, 0x90
_bch_btree_node_read_done:              ## @bch_btree_node_read_done
	.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	%rdi, %r15
	callq	_btree_bset_first
	movq	%rax, %r14
	movq	16(%r15), %rdi
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mempool_alloc
	movq	%rax, %rsi
	movq	16(%r15), %rcx
	movl	4(%rcx), %eax
	cltd
	idivl	8(%rcx)
	movl	%eax, (%rsi)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%rsi)
	leaq	L_.str(%rip), %r13
	cmpq	$0, (%r14)
	je	LBB0_28
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	movq	%r15, %rdi
	callq	_btree_blocks
	cmpq	%rax, %rbx
	jge	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rax
	movq	24(%r15), %rcx
	movq	16(%rcx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, 8(%r14)
	jg	LBB0_23
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %r12
	movq	16(%r15), %rdi
	callq	_block_bytes
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_set_blocks
	movq	%rax, %rbx
	addq	%r12, %rbx
	movq	%r15, %rdi
	callq	_btree_blocks
	cmpq	%rax, %rbx
	jg	LBB0_28
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r14), %rbx
	movq	16(%r15), %rdi
	addq	$4, %rdi
	callq	_bset_magic
	cmpq	%rax, %rbx
	jne	LBB0_24
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	32(%r14), %ebx
	movq	%r14, %rdi
	callq	_csum_set
	cmpl	%eax, %ebx
	je	LBB0_10
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	32(%r14), %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_btree_csum_set
	cmpl	%eax, %ebx
	jne	LBB0_27
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r15), %rax
	cmpq	16(%rax), %r14
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 24(%r14)
	je	LBB0_25
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	28(%r14), %ebx
	movq	%r14, %rdi
	callq	_bset_bkey_last
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_bch_btree_iter_push
	movq	16(%r15), %rdi
	callq	_block_bytes
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_set_blocks
	addq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_write_block
	movq	%rax, %r14
	jmp	LBB0_1
LBB0_13:
	movq	%r15, %rdi
	callq	_write_block
	movq	%rax, %r14
	leaq	24(%r15), %r13
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_bset_sector_offset
	movq	%rax, %rbx
	leaq	8(%r15), %r12
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_KEY_SIZE
	cmpq	%rax, %rbx
	jge	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movq	16(%rcx), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%r15), %rdi
	callq	_block_bytes
	cltq
	addq	%rax, %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_bset_sector_offset
	movq	%rax, %rbx
	jmp	LBB0_14
LBB0_17:
	movq	16(%r15), %rdx
	addq	$12, %rdx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_bch_btree_sort_and_fix_extents
	movq	24(%r15), %rsi
	cmpq	$0, 8(%rsi)
	je	LBB0_19
## %bb.18:
	movq	16(%rsi), %r14
	movq	%r12, %rdi
	callq	_bkey_cmp
	testq	%rax, %rax
	js	LBB0_22
LBB0_19:
	movq	(%r15), %rbx
	movq	%r15, %rdi
	callq	_btree_blocks
	cmpq	%rax, %rbx
	jge	LBB0_29
## %bb.20:
	movq	%r15, %rdi
	callq	_write_block
	movq	%rax, %rbx
	movq	16(%r15), %rdi
	addq	$4, %rdi
	callq	_bset_magic
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_bch_bset_init_next
	jmp	LBB0_29
LBB0_21:
	leaq	L_.str.5(%rip), %r13
	jmp	LBB0_28
LBB0_22:
	leaq	L_.str.6(%rip), %r13
	jmp	LBB0_28
LBB0_23:
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_28
LBB0_24:
	leaq	L_.str.2(%rip), %r13
	jmp	LBB0_28
LBB0_27:
	leaq	L_.str.3(%rip), %r13
	jmp	LBB0_28
LBB0_25:
	leaq	L_.str.4(%rip), %r13
LBB0_28:
	movq	%r15, %rdi
	callq	_set_btree_node_io_error
	movq	16(%r15), %rbx
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_PTR_BUCKET_NR
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bset_block_offset
	movl	24(%r14), %r9d
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_bch_cache_set_error
LBB0_29:
	movq	16(%r15), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mempool_free                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad btree header"

	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
L_.str.1:                               ## @.str.1
	.asciz	"unsupported bset version"

L_.str.2:                               ## @.str.2
	.asciz	"bad magic"

L_.str.3:                               ## @.str.3
	.asciz	"bad checksum"

L_.str.4:                               ## @.str.4
	.asciz	"empty set"

L_.str.5:                               ## @.str.5
	.asciz	"corrupted btree"

L_.str.6:                               ## @.str.6
	.asciz	"short btree key"

L_.str.7:                               ## @.str.7
	.asciz	"%s at bucket %zu, block %u, %u keys"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_btree_node_read_done       ; -- Begin function bch_btree_node_read_done
	.p2align	2
_bch_btree_node_read_done:              ; @bch_btree_node_read_done
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	bl	_btree_bset_first
	mov	x21, x0
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mempool_alloc
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldp	w9, w8, [x8, #4]
	sdiv	w8, w9, w8
	str	w8, [x0]
	str	xzr, [x0, #16]
	ldr	x8, [x21]
	cbz	x8, LBB0_23
; %bb.1:
	ldr	x22, [x19]
	mov	x0, x19
	bl	_btree_blocks
	cmp	x22, x0
	b.ge	LBB0_15
; %bb.2:
Lloh3:
	adrp	x22, l_.str.1@PAGE
Lloh4:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh5:
	adrp	x25, l_.str@PAGE
Lloh6:
	add	x25, x25, l_.str@PAGEOFF
Lloh7:
	adrp	x26, l_.str.2@PAGE
Lloh8:
	add	x26, x26, l_.str.2@PAGEOFF
Lloh9:
	adrp	x24, l_.str.3@PAGE
Lloh10:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh11:
	adrp	x27, l_.str.4@PAGE
Lloh12:
	add	x27, x27, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x21, #28]
	mov	x0, x21
	bl	_bset_bkey_last
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_bch_btree_iter_push
	ldr	x0, [x19, #16]
	bl	_block_bytes
	mov	x1, x0
	mov	x0, x21
	bl	_set_blocks
	ldr	x8, [x19]
	add	x8, x8, x0
	str	x8, [x19]
	mov	x0, x19
	bl	_write_block
	mov	x21, x0
	ldr	x23, [x19]
	mov	x0, x19
	bl	_btree_blocks
	cmp	x23, x0
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #16]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #8]
	cmp	w8, #128
	b.gt	LBB0_24
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x19]
	ldr	x0, [x19, #16]
	bl	_block_bytes
	mov	x1, x0
	mov	x0, x21
	bl	_set_blocks
	add	x23, x0, x23
	mov	x0, x19
	bl	_btree_blocks
	cmp	x23, x0
	b.gt	LBB0_27
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x21, #16]
	ldr	x8, [x19, #16]
	add	x0, x8, #4
	bl	_bset_magic
	cmp	x23, x0
	b.ne	LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #8]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x21, #32]
	mov	x0, x21
	bl	_csum_set
	cmp	w23, w0
	b.eq	LBB0_12
	b	LBB0_29
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x21, #32]
	mov	x0, x19
	mov	x1, x21
	bl	_btree_csum_set
	cmp	w23, w0
	b.ne	LBB0_29
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #16]
	cmp	x21, x8
	b.eq	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #24]
	cbnz	w8, LBB0_3
; %bb.14:
	mov	x22, x27
	b	LBB0_24
LBB0_15:
	mov	x0, x19
	bl	_write_block
	mov	x21, x0
	add	x23, x19, #24
	mov	x0, x23
	mov	x1, x21
	bl	_bset_sector_offset
	mov	x22, x0
	add	x24, x19, #8
	mov	x0, x24
	bl	_KEY_SIZE
	cmp	x22, x0
	b.ge	LBB0_19
; %bb.16:
Lloh13:
	adrp	x22, l_.str.5@PAGE
Lloh14:
	add	x22, x22, l_.str.5@PAGEOFF
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x23]
	ldr	x9, [x9, #16]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x0, [x19, #16]
	bl	_block_bytes
	add	x21, x21, w0, sxtw
	mov	x0, x23
	mov	x1, x21
	bl	_bset_sector_offset
	mov	x25, x0
	mov	x0, x24
	bl	_KEY_SIZE
	cmp	x25, x0
	b.lt	LBB0_17
LBB0_19:
	ldr	x8, [x19, #16]
	add	x2, x8, #12
	mov	x0, x23
	mov	x1, x20
	bl	_bch_btree_sort_and_fix_extents
	ldr	x1, [x19, #24]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_21
; %bb.20:
	ldr	x21, [x1, #16]
	mov	x0, x24
	bl	_bkey_cmp
	tbnz	x0, #63, LBB0_26
LBB0_21:
	ldr	x21, [x19]
	mov	x0, x19
	bl	_btree_blocks
	cmp	x21, x0
	b.ge	LBB0_25
; %bb.22:
	mov	x0, x19
	bl	_write_block
	mov	x21, x0
	ldr	x8, [x19, #16]
	add	x0, x8, #4
	bl	_bset_magic
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_bch_bset_init_next
	b	LBB0_25
LBB0_23:
Lloh15:
	adrp	x22, l_.str@PAGE
Lloh16:
	add	x22, x22, l_.str@PAGEOFF
LBB0_24:
	mov	x0, x19
	bl	_set_btree_node_io_error
	ldr	x23, [x19, #16]
	add	x1, x19, #8
	mov	x0, x23
	mov	w2, #0
	bl	_PTR_BUCKET_NR
	mov	x24, x0
	mov	x0, x19
	mov	x1, x21
	bl	_bset_block_offset
	mov	x4, x0
	ldr	w5, [x21, #24]
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	mov	x3, x24
	bl	_bch_cache_set_error
LBB0_25:
	ldr	x1, [x19, #16]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mempool_free
LBB0_26:
Lloh19:
	adrp	x22, l_.str.6@PAGE
Lloh20:
	add	x22, x22, l_.str.6@PAGEOFF
	b	LBB0_24
LBB0_27:
	mov	x22, x25
	b	LBB0_24
LBB0_28:
	mov	x22, x26
	b	LBB0_24
LBB0_29:
	mov	x22, x24
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad btree header"

	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
l_.str.1:                               ; @.str.1
	.asciz	"unsupported bset version"

l_.str.2:                               ; @.str.2
	.asciz	"bad magic"

l_.str.3:                               ; @.str.3
	.asciz	"bad checksum"

l_.str.4:                               ; @.str.4
	.asciz	"empty set"

l_.str.5:                               ; @.str.5
	.asciz	"corrupted btree"

l_.str.6:                               ; @.str.6
	.asciz	"short btree key"

l_.str.7:                               ; @.str.7
	.asciz	"%s at bucket %zu, block %u, %u keys"

.subsections_via_symbols
