	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdev_indirect_mapping_entry
_vdev_indirect_mapping_entry:           ## @vdev_indirect_mapping_entry
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
LBB0_2:
	movl	(%rbx), %r15d
	movl	4(%rbx), %eax
	cmpl	%r14d, %eax
	jg	LBB0_8
## %bb.3:
	leal	(%r15,%rax), %edx
	cmpl	%r14d, %edx
	jl	LBB0_8
## %bb.4:
	subl	%eax, %r14d
	movslq	%r14d, %rax
	leaq	(%rcx,%rax,4), %rax
	jmp	LBB0_13
LBB0_6:
	movq	16(%rbx), %rcx
	movl	(%rcx), %edx
	movq	_SPA_MINBLOCKSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	shll	$2, %eax
	movl	%edx, %r15d
	andl	$-4, %r15d
	cmpl	%edx, %eax
	cmovlel	%eax, %r15d
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %rcx
	sarl	$2, %r15d
	movl	%r15d, (%rbx)
	leal	(,%r14,4), %edx
	testl	%edx, %edx
	jne	LBB0_9
	jmp	LBB0_2
LBB0_8:
	leal	(,%r14,4), %edx
LBB0_9:
	movl	%r14d, 4(%rbx)
	shll	$2, %r15d
	movl	24(%rbx), %edi
	movq	16(%rbx), %rsi
	movl	%r15d, %r8d
	callq	_dnode_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rdi
	callq	_free
	movq	$0, 8(%rbx)
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movslq	4(%rbx), %rcx
	movslq	%r14d, %rax
	subq	%rcx, %rax
	shlq	$2, %rax
	addq	8(%rbx), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SPA_MINBLOCKSHIFT,4,2          ## @SPA_MINBLOCKSHIFT
	.no_dead_strip	_vdev_indirect_mapping_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdev_indirect_mapping_entry
_vdev_indirect_mapping_entry:           ; @vdev_indirect_mapping_entry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #32]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x3, [x0, #8]
	cbz	x3, LBB0_5
LBB0_2:
	ldp	w8, w9, [x19]
	add	w10, w8, w9
	cmp	w9, w20
	ccmp	w10, w20, #8, le
	b.ge	LBB0_9
; %bb.3:
	lsl	w2, w20, #2
	b	LBB0_7
LBB0_4:
	mov	x0, #0
	b	LBB0_11
LBB0_5:
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
Lloh0:
	adrp	x10, _SPA_MINBLOCKSHIFT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SPA_MINBLOCKSHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	lsl	w8, w8, #2
	and	w10, w9, #0xfffffffc
	cmp	w8, w9
	csel	w21, w10, w8, gt
	mov	x0, x21
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.6:
	mov	x3, x0
	asr	w8, w21, #2
	str	w8, [x19]
	lsl	w2, w20, #2
	cbz	w2, LBB0_2
LBB0_7:
	str	w20, [x19, #4]
	lsl	w4, w8, #2
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #16]
	bl	_dnode_read
	cbz	w0, LBB0_10
; %bb.8:
	ldr	x0, [x19, #8]
	bl	_free
	mov	x0, #0
	str	xzr, [x19, #8]
	b	LBB0_11
LBB0_9:
	sub	w8, w20, w9
	add	x0, x3, w8, sxtw #2
	b	LBB0_11
LBB0_10:
	ldr	w8, [x19, #4]
	sub	w8, w20, w8
	ldr	x9, [x19, #8]
	add	x0, x9, w8, sxtw #2
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPA_MINBLOCKSHIFT,4,2          ; @SPA_MINBLOCKSHIFT
	.no_dead_strip	_vdev_indirect_mapping_entry
.subsections_via_symbols
