	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_add_synthetic_resv         ## -- Begin function zfs_add_synthetic_resv
	.p2align	4, 0x90
_zfs_add_synthetic_resv:                ## @zfs_add_synthetic_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	$40, %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, %rbx
	movq	_ZFS_PROP_VOLSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_zfs_prop_get_int
	movq	%rax, %r15
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_zfs_which_resv_prop
	movl	$-1, %ecx
	testq	%rax, %rax
	js	LBB0_10
## %bb.1:
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_zfs_prop_get_int
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movq	_ZFS_PROP_VOLBLOCKSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_zfs_prop_to_name
	movl	%eax, %r12d
	movl	(%r13), %esi
	movq	%r14, %r13
	movq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_zfs_prop_get_int
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_fnvlist_add_uint64
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_zvol_volsize_to_reservation
	cmpq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	jne	LBB0_3
## %bb.2:
	movl	-44(%rbp), %edi
	callq	_zfs_prop_to_name
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvlist_exists
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_fnvlist_free
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ZFS_PROP_VOLSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_zfs_prop_to_name
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_nvlist_lookup_uint64
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_fnvlist_free
	jmp	LBB0_9
LBB0_6:
	movq	-72(%rbp), %rdi
	movq	%r15, %rsi
	callq	_zvol_volsize_to_reservation
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_fnvlist_free
	movl	-44(%rbp), %edi
	callq	_zfs_prop_to_name
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_nvlist_add_uint64
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%r14), %edi
	callq	_no_memory
LBB0_9:
	movl	$-1, %ecx
	jmp	LBB0_10
LBB0_7:
	movl	$1, %ecx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_PROP_VOLSIZE,4,2           ## @ZFS_PROP_VOLSIZE
	.comm	_ZFS_PROP_VOLBLOCKSIZE,4,2      ## @ZFS_PROP_VOLBLOCKSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_add_synthetic_resv         ; -- Begin function zfs_add_synthetic_resv
	.p2align	2
_zfs_add_synthetic_resv:                ; @zfs_add_synthetic_resv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _ZFS_PROP_VOLSIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ZFS_PROP_VOLSIZE@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_zfs_prop_get_int
	mov	x22, x0
	add	x1, sp, #4
	mov	x0, x19
	bl	_zfs_which_resv_prop
	tbnz	x0, #63, LBB0_8
; %bb.1:
	ldr	w1, [sp, #4]
	mov	x0, x19
	bl	_zfs_prop_get_int
	mov	x23, x0
	bl	_fnvlist_alloc
	mov	x21, x0
Lloh2:
	adrp	x26, _ZFS_PROP_VOLBLOCKSIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ZFS_PROP_VOLBLOCKSIZE@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_zfs_prop_to_name
	mov	x24, x0
	ldr	w1, [x26]
	mov	x0, x19
	bl	_zfs_prop_get_int
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_fnvlist_add_uint64
	mov	x0, x22
	mov	x1, x21
	bl	_zvol_volsize_to_reservation
	cmp	x0, x23
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [sp, #4]
	bl	_zfs_prop_to_name
	mov	x1, x0
	mov	x0, x20
	bl	_nvlist_exists
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_fnvlist_free
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	ldr	w0, [x25]
	bl	_zfs_prop_to_name
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_nvlist_lookup_uint64
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_fnvlist_free
	b	LBB0_8
LBB0_6:
	ldr	x0, [sp, #8]
	mov	x1, x21
	bl	_zvol_volsize_to_reservation
	mov	x22, x0
	mov	x0, x21
	bl	_fnvlist_free
	ldr	w0, [sp, #4]
	bl	_zfs_prop_to_name
	mov	x1, x0
	mov	x0, x20
	mov	x2, x22
	bl	_nvlist_add_uint64
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w0, [x19]
	bl	_no_memory
LBB0_8:
	mov	w0, #-1
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
	add	sp, sp, #96
	ret
LBB0_10:
	mov	w0, #1
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_PROP_VOLSIZE,4,2           ; @ZFS_PROP_VOLSIZE
	.comm	_ZFS_PROP_VOLBLOCKSIZE,4,2      ; @ZFS_PROP_VOLBLOCKSIZE
.subsections_via_symbols
