	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_range
_calculate_range:                       ## @calculate_range
	.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	%r8, %r14
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	%rcx, %rbx
	leaq	-64(%rbp), %rsi
	movq	%rcx, %rdi
	movl	$10, %edx
	callq	_strtoull
	movl	%eax, (%r14)
	movq	-64(%rbp), %rdi
	movb	(%rdi), %cl
	cmpb	$44, %cl
	je	LBB0_6
## %bb.2:
	testb	%cl, %cl
	jne	LBB0_8
## %bb.3:
	incl	%eax
	cltq
	movq	%rax, 8(%r14)
	jmp	LBB0_7
LBB0_4:
	movl	$0, (%r14)
	movq	$-1, 8(%r14)
	cmpl	$128, %r13d
	jne	LBB0_12
## %bb.5:
	movl	16(%r14), %eax
	shll	$2, %eax
	movl	%eax, (%r14)
	cltq
	addq	$4, %rax
	movq	%rax, 8(%r14)
	movl	$0, 16(%r14)
	jmp	LBB0_12
LBB0_6:
	incq	%rdi
	leaq	-64(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoull
	movq	%rax, 8(%r14)
	movq	-64(%rbp), %rdi
LBB0_7:
	movb	(%rdi), %cl
LBB0_8:
	testb	%cl, %cl
	je	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_14
LBB0_10:
	cmpl	$128, %r13d
	jne	LBB0_12
## %bb.11:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_14
LBB0_12:
	movq	_DMU_OST_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FTAG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	callq	_dmu_objset_own
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_14:
	movl	$-1, %r14d
LBB0_15:
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.16:
	movq	-56(%rbp), %rdi
	callq	_DMU_META_DNODE
	cmpq	%rax, %rbx
	je	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rdi
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dnode_rele
LBB0_18:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dmu_objset_disown
LBB0_20:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	16(%r14), %esi
	movq	-56(%rbp), %rdi
	testl	%esi, %esi
	je	LBB0_24
## %bb.22:
	movl	(%rbx), %edx
	leaq	-48(%rbp), %rcx
	callq	_dnode_hold
	testl	%eax, %eax
	je	LBB0_25
## %bb.23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_14
LBB0_24:
	callq	_DMU_META_DNODE
	movq	%rax, -48(%rbp)
	jmp	LBB0_26
LBB0_25:
	movq	-48(%rbp), %rax
LBB0_26:
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ziprintf
	movq	-48(%rbp), %rax
	movl	4(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_ziprintf
	movl	(%r14), %eax
	movq	8(%r14), %rsi
	testl	%eax, %eax
	jne	LBB0_28
## %bb.27:
	movq	$-1, %rdx
	cmpq	$-1, %rsi
	je	LBB0_29
LBB0_28:
	movq	-48(%rbp), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, (%r14)
	shrq	%cl, %rsi
	movq	%rsi, 8(%r14)
	movq	%rsi, %rdx
	movl	%eax, %ebx
LBB0_29:
	movl	%r12d, 20(%r14)
	testl	%r12d, %r12d
	jle	LBB0_36
## %bb.30:
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_ziprintf
	movq	-48(%rbp), %rdx
	movl	8(%rdx), %ecx
	cmpl	%r12d, %ecx
	jle	LBB0_37
## %bb.31:
	movl	(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_33
## %bb.32:
	cmpq	$0, 8(%r14)
	je	LBB0_36
LBB0_33:
	movl	4(%rdx), %ecx
	movq	_SPA_BLKPTRSHIFT@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	movq	8(%r14), %rdx
	incl	%r12d
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	sarl	%cl, %eax
	shrq	%cl, %rdx
	decl	%r12d
	cmpl	$1, %r12d
	ja	LBB0_34
## %bb.35:
	movl	%eax, (%r14)
	movq	%rdx, 8(%r14)
LBB0_36:
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_37:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%ecx
	leaq	L_.str.7(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid range '%s': must be a numeric range of the form 'start[,end]'\n"

L_.str.1:                               ## @.str.1
	.asciz	"range cannot be specified when type is 'dnode'\n"

	.comm	_DMU_OST_ANY,4,2                ## @DMU_OST_ANY
	.comm	_B_TRUE,4,2                     ## @B_TRUE
	.comm	_FTAG,4,2                       ## @FTAG
L_.str.2:                               ## @.str.2
	.asciz	"cannot open dataset '%s': %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to hold dnode for object %llu\n"

L_.str.4:                               ## @.str.4
	.asciz	"data shift: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	" ind shift: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"level 0 blkid range: [%llu, %llu]\n"

L_.str.7:                               ## @.str.7
	.asciz	"level %d exceeds max level of object (%d)\n"

	.comm	_SPA_BLKPTRSHIFT,4,2            ## @SPA_BLKPTRSHIFT
	.no_dead_strip	_calculate_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_range
_calculate_range:                       ; @calculate_range
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x4
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #32]
Lloh0:
	adrp	x24, _FTAG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FTAG@GOTPAGEOFF]
	cbz	x3, LBB0_4
; %bb.1:
	mov	x22, x3
	add	x1, sp, #24
	mov	x0, x3
	mov	w2, #10
	bl	_strtoull
	str	w0, [x19]
	ldr	x8, [sp, #24]
	ldrb	w9, [x8]
	cmp	w9, #44
	b.eq	LBB0_6
; %bb.2:
	cbnz	w9, LBB0_8
; %bb.3:
	add	w9, w0, #1
	sxtw	x9, w9
	str	x9, [x19, #8]
	b	LBB0_7
LBB0_4:
	str	wzr, [x19]
	mov	x8, #-1
	str	x8, [x19, #8]
	cmp	w23, #128
	b.ne	LBB0_12
; %bb.5:
	ldr	w8, [x19, #16]
	lsl	w8, w8, #2
	str	w8, [x19]
	sxtw	x8, w8
	add	x8, x8, #4
	str	x8, [x19, #8]
	str	wzr, [x19, #16]
	b	LBB0_12
LBB0_6:
	add	x0, x8, #1
	add	x1, sp, #24
	mov	w2, #10
	bl	_strtoull
	str	x0, [x19, #8]
	ldr	x8, [sp, #24]
LBB0_7:
	ldrb	w9, [x8]
LBB0_8:
	cbz	w9, LBB0_10
; %bb.9:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_10:
	cmp	w23, #128
	b.ne	LBB0_12
; %bb.11:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh12:
	adrp	x8, _DMU_OST_ANY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMU_OST_ANY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldr	w3, [x24]
	add	x4, sp, #40
	mov	x0, x21
	bl	_dmu_objset_own
	cbz	w0, LBB0_21
; %bb.13:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
	bl	_strerror
	stp	x21, x0, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
LBB0_14:
	bl	_fprintf
	mov	w20, #-1
LBB0_15:
	ldr	x19, [sp, #32]
	cbz	x19, LBB0_18
; %bb.16:
	ldr	x0, [sp, #40]
	bl	_DMU_META_DNODE
	cmp	x19, x0
	b.eq	LBB0_18
; %bb.17:
	ldr	x0, [sp, #32]
	ldr	w1, [x24]
	bl	_dnode_rele
LBB0_18:
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w1, [x24]
	bl	_dmu_objset_disown
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	ldr	w1, [x19, #16]
	ldr	x0, [sp, #40]
	cbz	w1, LBB0_24
; %bb.22:
	ldr	w2, [x24]
	add	x3, sp, #32
	bl	_dnode_hold
	cbz	w0, LBB0_25
; %bb.23:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w8, [x19, #16]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_24:
	bl	_DMU_META_DNODE
	str	x0, [sp, #32]
	b	LBB0_26
LBB0_25:
	ldr	x0, [sp, #32]
LBB0_26:
	ldr	w1, [x0]
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ziprintf
	ldr	x8, [sp, #32]
	ldr	w1, [x8, #4]
Lloh30:
	adrp	x0, l_.str.5@PAGE
Lloh31:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_ziprintf
	ldr	w9, [x19]
	ldr	x8, [x19, #8]
	cbnz	w9, LBB0_29
; %bb.27:
	cmn	x8, #1
	b.ne	LBB0_29
; %bb.28:
	mov	w1, #0
	b	LBB0_30
LBB0_29:
	ldr	x10, [sp, #32]
	ldr	w10, [x10]
	asr	w1, w9, w10
	str	w1, [x19]
	lsr	x8, x8, x10
	str	x8, [x19, #8]
LBB0_30:
	str	w20, [x19, #20]
	cmp	w20, #1
	b.lt	LBB0_37
; %bb.31:
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_ziprintf
	ldr	x9, [sp, #32]
	ldr	w8, [x9, #8]
	cmp	w8, w20
	b.le	LBB0_38
; %bb.32:
	ldr	w8, [x19]
	cbnz	w8, LBB0_34
; %bb.33:
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_37
LBB0_34:
	ldr	w9, [x9, #4]
Lloh34:
	adrp	x10, _SPA_BLKPTRSHIFT@GOTPAGE
Lloh35:
	ldr	x10, [x10, _SPA_BLKPTRSHIFT@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	sub	w10, w9, w10
	ldr	x9, [x19, #8]
	add	w11, w20, #1
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	asr	w8, w8, w10
	lsr	x9, x9, x10
	sub	w11, w11, #1
	cmp	w11, #1
	b.hi	LBB0_35
; %bb.36:
	mov	w20, #0
	str	w8, [x19]
	str	x9, [x19, #8]
	b	LBB0_15
LBB0_37:
	mov	w20, #0
	b	LBB0_15
LBB0_38:
Lloh37:
	adrp	x9, _stderr@GOTPAGE
Lloh38:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x9]
	sub	w8, w8, #1
	stp	x20, x8, [sp]
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid range '%s': must be a numeric range of the form 'start[,end]'\n"

l_.str.1:                               ; @.str.1
	.asciz	"range cannot be specified when type is 'dnode'\n"

	.comm	_DMU_OST_ANY,4,2                ; @DMU_OST_ANY
	.comm	_B_TRUE,4,2                     ; @B_TRUE
	.comm	_FTAG,4,2                       ; @FTAG
l_.str.2:                               ; @.str.2
	.asciz	"cannot open dataset '%s': %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to hold dnode for object %llu\n"

l_.str.4:                               ; @.str.4
	.asciz	"data shift: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	" ind shift: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"level 0 blkid range: [%llu, %llu]\n"

l_.str.7:                               ; @.str.7
	.asciz	"level %d exceeds max level of object (%d)\n"

	.comm	_SPA_BLKPTRSHIFT,4,2            ; @SPA_BLKPTRSHIFT
	.no_dead_strip	_calculate_range
.subsections_via_symbols
