	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_ablock
_load_ablock:                           ## @load_ablock
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	callq	_unlock_ablock
LBB0_2:
	movq	$0, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_dm_btree_cursor_get_value
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	leaq	16(%rbx), %r14
	leaq	8(%rbx), %r15
	movl	24(%rbx), %r12d
	movl	-36(%rbp), %edi
	callq	_le64_to_cpu
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_get_ablock
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_DMERR
	movq	%rbx, %rdi
	callq	_dm_btree_cursor_end
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dm_btree_cursor_get_value failed"

L_.str.1:                               ## @.str.1
	.asciz	"get_ablock failed"

	.no_dead_strip	_load_ablock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_ablock
_load_ablock:                           ; @load_ablock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	x1, [x20, #16]!
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_unlock_ablock
LBB0_2:
	mov	x22, x19
	str	xzr, [x22, #8]!
	str	xzr, [x19, #32]
	str	xzr, [x19, #16]
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x19
	bl	_dm_btree_cursor_get_value
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w21, [x19, #24]
	ldr	w0, [sp, #12]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	bl	_get_ablock
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_DMERR
	mov	x0, x19
	bl	_dm_btree_cursor_end
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dm_btree_cursor_get_value failed"

l_.str.1:                               ; @.str.1
	.asciz	"get_ablock failed"

	.no_dead_strip	_load_ablock
.subsections_via_symbols
