	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_btree_lookup_next_single
_dm_btree_lookup_next_single:           ## @dm_btree_lookup_next_single
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movl	%edx, %ebx
	movq	%rdi, %r13
	leaq	-72(%rbp), %rdx
	callq	_bn_read_lock
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi
	callq	_dm_block_data
	movq	%rax, %r12
	movl	12(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_le32_to_cpu
	movq	_INTERNAL_NODE@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_6
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_lower_bound
	movl	%eax, %r15d
	xorl	%r14d, %r14d
	testl	%eax, %eax
	cmovlel	%r14d, %r15d
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	jge	LBB0_9
## %bb.3:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_value64
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_dm_btree_lookup_next_single
	movl	%eax, %r14d
	movq	_ENODATA@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	addl	(%rax), %ecx
	jne	LBB0_12
## %bb.4:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	cmpl	%eax, %r15d
	jge	LBB0_12
## %bb.5:
	incl	%r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_value64
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_dm_btree_lookup_next_single
	movl	%eax, %r14d
	jmp	LBB0_12
LBB0_6:
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_upper_bound
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movl	%eax, %r14d
	cmpl	%ebx, %eax
	jge	LBB0_10
## %bb.8:
	movq	(%r12), %rax
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %edi
	callq	_le64_to_cpu
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_value_ptr
	movl	4(%r13), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_9:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_11:
	subl	(%rax), %r14d
LBB0_12:
	movl	(%r13), %edi
	movq	-72(%rbp), %rsi
	callq	_dm_tm_unlock
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTERNAL_NODE,4,2              ## @INTERNAL_NODE
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_dm_btree_lookup_next_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_btree_lookup_next_single
_dm_btree_lookup_next_single:           ; @dm_btree_lookup_next_single
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	add	x2, sp, #8
	bl	_bn_read_lock
	mov	x25, x0
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_dm_block_data
	mov	x23, x0
	ldr	w0, [x0, #12]
	bl	_le32_to_cpu
	mov	x25, x0
	ldr	w0, [x23, #8]
	bl	_le32_to_cpu
	mov	x24, x0
Lloh0:
	adrp	x8, _INTERNAL_NODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTERNAL_NODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x0, x23
	tst	w8, w25
	b.eq	LBB0_5
; %bb.2:
	mov	x1, x22
	bl	_lower_bound
	cmp	w0, #0
	csel	w26, w0, wzr, gt
	cmp	w26, w24
	b.ge	LBB0_8
; %bb.3:
	mov	x0, x23
	mov	x1, x26
	bl	_value64
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_dm_btree_lookup_next_single
	mov	x25, x0
Lloh3:
	adrp	x8, _ENODATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w9, w24, #1
	cmn	w0, w8
	ccmp	w26, w9, #0, eq
	b.ge	LBB0_9
; %bb.4:
	add	w1, w26, #1
	mov	x0, x23
	bl	_value64
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_dm_btree_lookup_next_single
	mov	x25, x0
	b	LBB0_9
LBB0_5:
	mov	x1, x22
	bl	_upper_bound
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	x22, x0
	cmp	w0, w24
	b.ge	LBB0_8
; %bb.7:
	ldr	x8, [x23]
	ldr	w0, [x8, w22, uxtw #2]
	bl	_le64_to_cpu
	str	w0, [x21]
	mov	x0, x23
	mov	x1, x22
	bl	_value_ptr
	mov	x1, x0
	ldr	w2, [x19, #4]
	mov	x0, x20
	bl	_memcpy
	mov	w25, #0
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _ENODATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_9:
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_dm_tm_unlock
LBB0_10:
	mov	x0, x25
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INTERNAL_NODE,4,2              ; @INTERNAL_NODE
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_dm_btree_lookup_next_single
.subsections_via_symbols
