	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zvol_volsize_to_reservation    ## -- Begin function zvol_volsize_to_reservation
	.p2align	4, 0x90
_zvol_volsize_to_reservation:           ## @zvol_volsize_to_reservation
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_ZFS_PROP_COPIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_zfs_prop_to_name
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvlist_lookup_string
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rdi
	callq	_atoi
	movl	%eax, %r14d
LBB0_2:
	movq	_ZFS_PROP_VOLBLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_zfs_prop_to_name
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvlist_lookup_uint64
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_ZVOL_DEFAULT_BLOCKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, -28(%rbp)
	jmp	LBB0_5
LBB0_3:
	movl	-28(%rbp), %ecx
LBB0_5:
	movl	%r15d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movl	$7, %ebx
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.6:
	movq	_DNODES_PER_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$7, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	cmpl	$1, %eax
	jg	LBB0_7
LBB0_8:
	movq	_SPA_DVAS_PER_BP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	1(%r14), %esi
	callq	_MIN
                                        ## kill: def $eax killed $eax def $rax
	imull	%ebx, %eax
	imull	%r14d, %r15d
	movq	_DN_MAX_INDBLKSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	addl	%r15d, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_PROP_COPIES,4,2            ## @ZFS_PROP_COPIES
	.comm	_ZFS_PROP_VOLBLOCKSIZE,4,2      ## @ZFS_PROP_VOLBLOCKSIZE
	.comm	_ZVOL_DEFAULT_BLOCKSIZE,4,2     ## @ZVOL_DEFAULT_BLOCKSIZE
	.comm	_DNODES_PER_LEVEL,4,2           ## @DNODES_PER_LEVEL
	.comm	_SPA_DVAS_PER_BP,4,2            ## @SPA_DVAS_PER_BP
	.comm	_DN_MAX_INDBLKSHIFT,8,3         ## @DN_MAX_INDBLKSHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zvol_volsize_to_reservation    ; -- Begin function zvol_volsize_to_reservation
	.p2align	2
_zvol_volsize_to_reservation:           ; @zvol_volsize_to_reservation
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ZFS_PROP_COPIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZFS_PROP_COPIES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_zfs_prop_to_name
	mov	x1, x0
	mov	x2, sp
	mov	x0, x21
	bl	_nvlist_lookup_string
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #1
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp]
	bl	_atoi
	mov	x20, x0
LBB0_3:
Lloh3:
	adrp	x8, _ZFS_PROP_VOLBLOCKSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZFS_PROP_VOLBLOCKSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_zfs_prop_to_name
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x21
	bl	_nvlist_lookup_uint64
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _ZVOL_DEFAULT_BLOCKSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZVOL_DEFAULT_BLOCKSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	b	LBB0_6
LBB0_5:
	ldr	w8, [sp, #12]
LBB0_6:
	sdiv	w8, w19, w8
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.7:
Lloh9:
	adrp	x9, _DNODES_PER_LEVEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DNODES_PER_LEVEL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mov	w21, #7
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, w9
	sub	w8, w8, #1
	sdiv	w8, w8, w9
	add	w21, w8, w21
	cmp	w8, #1
	b.gt	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w21, #7
LBB0_10:
Lloh12:
	adrp	x8, _SPA_DVAS_PER_BP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPA_DVAS_PER_BP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	add	w1, w20, #1
	bl	_MIN
	mul	w8, w0, w21
Lloh15:
	adrp	x9, _DN_MAX_INDBLKSHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DN_MAX_INDBLKSHIFT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	madd	w0, w20, w19, w8
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_PROP_COPIES,4,2            ; @ZFS_PROP_COPIES
	.comm	_ZFS_PROP_VOLBLOCKSIZE,4,2      ; @ZFS_PROP_VOLBLOCKSIZE
	.comm	_ZVOL_DEFAULT_BLOCKSIZE,4,2     ; @ZVOL_DEFAULT_BLOCKSIZE
	.comm	_DNODES_PER_LEVEL,4,2           ; @DNODES_PER_LEVEL
	.comm	_SPA_DVAS_PER_BP,4,2            ; @SPA_DVAS_PER_BP
	.comm	_DN_MAX_INDBLKSHIFT,8,3         ; @DN_MAX_INDBLKSHIFT
.subsections_via_symbols
