	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zdb_claim_removing
_zdb_claim_removing:                    ## @zdb_claim_removing
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_SCL_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RW_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_spa_config_enter
	movq	(%rbx), %r13
	movl	4(%r13), %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_vdev_lookup_top
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	callq	_range_tree_space
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, (%rcx)
	movl	(%r13), %edi
	movq	_claim_segment_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_range_tree_vacate
	incq	%r14
	cmpq	(%rbx), %r14
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %r15
	movq	(%r15), %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vdev_indirect_mapping_max_offset
	cmpq	%rax, %r12
	jge	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	callq	_range_tree_space
	movq	%rax, %rdi
	callq	_ASSERT0
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %esi
	movq	_SM_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_space_map_load
	movl	%eax, %edi
	callq	_VERIFY0
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vdev_indirect_mapping_max_offset
	movq	8(%r15), %rcx
	movq	8(%rcx), %rdx
	addq	(%rcx), %rdx
	subq	%rax, %rdx
	jbe	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	movq	%rax, %rsi
	callq	_range_tree_clear
	jmp	LBB0_7
LBB0_8:
	movq	_SCL_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spa_config_exit                ## TAILCALL
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCL_CONFIG,4,2                 ## @SCL_CONFIG
	.comm	_FTAG,4,2                       ## @FTAG
	.comm	_RW_READER,4,2                  ## @RW_READER
	.comm	_SM_ALLOC,4,2                   ## @SM_ALLOC
	.comm	_claim_segment_cb,4,2           ## @claim_segment_cb
	.no_dead_strip	_zdb_claim_removing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zdb_claim_removing
_zdb_claim_removing:                    ; @zdb_claim_removing
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SCL_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCL_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _FTAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FTAG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _RW_READER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RW_READER@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_spa_config_enter
	ldr	x25, [x19]
	ldr	w1, [x25, #4]
	mov	x0, x19
	bl	_vdev_lookup_top
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.2:
	mov	x21, x0
	mov	x26, #0
	ldr	x22, [x0, #16]
Lloh9:
	adrp	x27, _claim_segment_cb@GOTPAGE
Lloh10:
	ldr	x27, [x27, _claim_segment_cb@GOTPAGEOFF]
Lloh11:
	adrp	x28, _SM_ALLOC@GOTPAGE
Lloh12:
	ldr	x28, [x28, _SM_ALLOC@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	bl	_range_tree_space
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	ldr	w0, [x25]
	ldr	w1, [x27]
	mov	x2, x21
	bl	_range_tree_vacate
	add	x26, x26, #1
	ldr	x8, [x21]
	cmp	x26, x8
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x23, [x8, x26, lsl #3]
	ldr	x24, [x23]
	mov	x0, x22
	bl	_vdev_indirect_mapping_max_offset
	cmp	x24, x0
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	bl	_range_tree_space
	bl	_ASSERT0
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25]
	ldr	w2, [x28]
	bl	_space_map_load
	bl	_VERIFY0
	mov	x0, x22
	bl	_vdev_indirect_mapping_max_offset
	ldr	x8, [x23, #8]
	ldp	x9, x8, [x8]
	add	x8, x8, x9
	subs	x2, x8, x0
	b.ls	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	ldr	w0, [x25]
	bl	_range_tree_clear
	b	LBB0_3
LBB0_8:
Lloh13:
	adrp	x8, _SCL_CONFIG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SCL_CONFIG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _FTAG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FTAG@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	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	_spa_config_exit
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SCL_CONFIG,4,2                 ; @SCL_CONFIG
	.comm	_FTAG,4,2                       ; @FTAG
	.comm	_RW_READER,4,2                  ; @RW_READER
	.comm	_SM_ALLOC,4,2                   ; @SM_ALLOC
	.comm	_claim_segment_cb,4,2           ; @claim_segment_cb
	.no_dead_strip	_zdb_claim_removing
.subsections_via_symbols
