	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zfs_fix_auto_resv
_zfs_fix_auto_resv:                     ## @zfs_fix_auto_resv
	.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, %r14
	movq	%rdi, %r12
	callq	_ZFS_IS_VOLUME
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_zfs_which_resv_prop
	testq	%rax, %rax
	je	LBB0_2
LBB0_11:
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_2:
	movq	-48(%rbp), %rdi
	movq	_ZFS_PROP_REFRESERVATION@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_12
## %bb.3:
	callq	_zfs_prop_to_name
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvlist_lookup_uint64
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:
	movq	-56(%rbp), %rax
	movq	_UINT64_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.5:
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movq	%rax, %r15
	movq	_ZFS_PROP_VOLBLOCKSIZE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_zfs_prop_to_name
	movl	%eax, %ebx
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_zfs_prop_get_int
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_fnvlist_add_uint64
	movq	_ZFS_PROP_VOLSIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_zfs_prop_to_name
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvlist_lookup_uint64
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_zfs_prop_get_int
	movq	%rax, %rdi
	movq	%rax, -64(%rbp)
	jmp	LBB0_8
LBB0_6:
	movq	-64(%rbp), %rdi
LBB0_8:
	movq	%r15, %rsi
	callq	_zvol_volsize_to_reservation
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	callq	_fnvlist_free
	movq	-48(%rbp), %rdi
	callq	_zfs_prop_to_name
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvlist_remove_all
	movq	-48(%rbp), %rdi
	callq	_zfs_prop_to_name
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvlist_add_uint64
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	(%r12), %edi
	callq	_no_memory
	jmp	LBB0_11
LBB0_9:
	movl	$1, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_PROP_REFRESERVATION,8,3    ## @ZFS_PROP_REFRESERVATION
	.comm	_UINT64_MAX,8,3                 ## @UINT64_MAX
	.comm	_ZFS_PROP_VOLBLOCKSIZE,8,3      ## @ZFS_PROP_VOLBLOCKSIZE
	.comm	_ZFS_PROP_VOLSIZE,8,3           ## @ZFS_PROP_VOLSIZE
	.no_dead_strip	_zfs_fix_auto_resv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zfs_fix_auto_resv
_zfs_fix_auto_resv:                     ; @zfs_fix_auto_resv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	bl	_ZFS_IS_VOLUME
	cbz	w0, LBB0_9
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_zfs_which_resv_prop
	cbz	x0, LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_9
LBB0_3:
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x8, _ZFS_PROP_REFRESERVATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZFS_PROP_REFRESERVATION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	bl	_zfs_prop_to_name
	mov	x1, x0
	add	x2, sp, #16
	mov	x0, x20
	bl	_nvlist_lookup_uint64
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	x8, [sp, #16]
Lloh3:
	adrp	x9, _UINT64_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UINT64_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	bl	_fnvlist_alloc
	mov	x21, x0
Lloh6:
	adrp	x23, _ZFS_PROP_VOLBLOCKSIZE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ZFS_PROP_VOLBLOCKSIZE@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_zfs_prop_to_name
	mov	x22, x0
	ldr	x1, [x23]
	mov	x0, x19
	bl	_zfs_prop_get_int
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_fnvlist_add_uint64
Lloh8:
	adrp	x22, _ZFS_PROP_VOLSIZE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ZFS_PROP_VOLSIZE@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_zfs_prop_to_name
	mov	x1, x0
	add	x2, sp, #24
	mov	x0, x20
	bl	_nvlist_lookup_uint64
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x1, [x22]
	mov	x0, x19
	bl	_zfs_prop_get_int
	str	x0, [sp, #24]
	b	LBB0_11
LBB0_8:
	mov	w0, #0
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
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x0, [sp, #24]
LBB0_11:
	mov	x1, x21
	bl	_zvol_volsize_to_reservation
	str	x0, [sp, #16]
	mov	x0, x21
	bl	_fnvlist_free
	ldr	x0, [sp, #8]
	bl	_zfs_prop_to_name
	mov	x1, x0
	mov	x0, x20
	bl	_nvlist_remove_all
	ldr	x0, [sp, #8]
	bl	_zfs_prop_to_name
	mov	x1, x0
	ldr	x2, [sp, #16]
	mov	x0, x20
	bl	_nvlist_add_uint64
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w0, [x19]
	bl	_no_memory
	b	LBB0_2
LBB0_13:
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_PROP_REFRESERVATION,8,3    ; @ZFS_PROP_REFRESERVATION
	.comm	_UINT64_MAX,8,3                 ; @UINT64_MAX
	.comm	_ZFS_PROP_VOLBLOCKSIZE,8,3      ; @ZFS_PROP_VOLBLOCKSIZE
	.comm	_ZFS_PROP_VOLSIZE,8,3           ; @ZFS_PROP_VOLSIZE
	.no_dead_strip	_zfs_fix_auto_resv
.subsections_via_symbols
