	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_destroy
_recv_destroy:                          ## @recv_destroy
	.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	%r8, %rbx
	movq	%rcx, %r15
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ZFS_TYPE_DATASET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_zfs_open
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rax, %r12
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_ZFS_PROP_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_MS_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_3:
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_changelist_gather
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_zfs_get_type
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.4:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_zfs_spa_version
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	-64(%rbp), %eax
	movq	_SPA_VERSION_USERREFS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_7
## %bb.6:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_7:
	movq	%r12, %rdi
	callq	_zfs_close
	testq	%r15, %r15
	je	LBB0_21
## %bb.8:
	movq	%r15, %rdi
	callq	_changelist_prefix
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_11:
	movq	(%r12), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_fnvlist_alloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_fnvlist_add_boolean
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_lzc_destroy_snaps
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_fnvlist_free
	testl	%r14d, %r14d
	je	LBB0_15
LBB0_19:
	movq	%r15, %rdi
	callq	_changelist_postfix
	movq	%r15, %rdi
	callq	_changelist_free
LBB0_20:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_recv_rename
	movl	%eax, %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r13, %rdi
	callq	_lzc_destroy
	movl	%eax, %r14d
	testl	%r14d, %r14d
	jne	LBB0_19
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.16:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_17:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_changelist_remove
	movq	%r15, %rdi
	callq	_changelist_postfix
	movq	%r15, %rdi
	callq	_changelist_free
	xorl	%r14d, %r14d
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.18:
	movq	(%rbx), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_zfs_dataset_exists
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_B_FALSE,8,3                    ## @B_FALSE
	.comm	_ZFS_TYPE_DATASET,4,2           ## @ZFS_TYPE_DATASET
	.comm	_ZFS_PROP_NAME,4,2              ## @ZFS_PROP_NAME
	.comm	_MS_FORCE,4,2                   ## @MS_FORCE
	.comm	_ZFS_TYPE_SNAPSHOT,8,3          ## @ZFS_TYPE_SNAPSHOT
	.comm	_SPA_VERSION_USERREFS,4,2       ## @SPA_VERSION_USERREFS
	.comm	_B_TRUE,8,3                     ## @B_TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attempting destroy %s\n"

L_str:                                  ## @str
	.asciz	"success"

	.no_dead_strip	_recv_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_destroy
_recv_destroy:                          ; @recv_destroy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
Lloh3:
	adrp	x8, _ZFS_TYPE_DATASET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZFS_TYPE_DATASET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_zfs_open
	cbz	x0, LBB0_12
; %bb.1:
	mov	x26, x0
Lloh6:
	adrp	x8, _ZFS_PROP_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZFS_PROP_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _MS_FORCE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MS_FORCE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w3, wzr, w9, eq
	mov	w2, #0
	bl	_changelist_gather
	mov	x25, x0
	mov	x0, x26
	bl	_zfs_get_type
Lloh12:
	adrp	x28, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	add	x1, sp, #12
	mov	x0, x26
	bl	_zfs_spa_version
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
Lloh14:
	adrp	x9, _SPA_VERSION_USERREFS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SPA_VERSION_USERREFS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _B_TRUE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _B_TRUE@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	w8, w9
	csel	x24, x24, x10, lt
LBB0_4:
	mov	x0, x26
	bl	_zfs_close
	cbz	x25, LBB0_12
; %bb.5:
	mov	x0, x25
	bl	_changelist_prefix
	cbnz	w0, LBB0_13
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	str	x22, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_8:
	ldr	x8, [x26]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.9:
	bl	_fnvlist_alloc
	mov	x27, x0
	mov	x1, x22
	bl	_fnvlist_add_boolean
	mov	x0, x27
	mov	x1, x24
	mov	x2, #0
	bl	_lzc_destroy_snaps
	mov	x26, x0
	mov	x0, x27
	bl	_fnvlist_free
	cbz	w26, LBB0_15
LBB0_10:
	mov	x0, x25
	bl	_changelist_postfix
	mov	x0, x25
	bl	_changelist_free
LBB0_11:
	mov	x0, x23
	mov	x1, x22
	mov	x2, #0
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_recv_rename
	b	LBB0_13
LBB0_12:
	mov	w0, #-1
LBB0_13:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	x0, x22
	bl	_lzc_destroy
	mov	x26, x0
	cbnz	w26, LBB0_10
LBB0_15:
	ldr	x8, [x19]
	cbz	x8, LBB0_17
; %bb.16:
Lloh22:
	adrp	x0, l_str@PAGE
Lloh23:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_17:
	mov	x0, x25
	mov	x1, x22
	bl	_changelist_remove
	mov	x0, x25
	bl	_changelist_postfix
	mov	x0, x25
	bl	_changelist_free
	cbz	x24, LBB0_19
; %bb.18:
	ldr	x2, [x28]
	mov	x0, x23
	mov	x1, x22
	bl	_zfs_dataset_exists
	cbnz	x0, LBB0_11
	b	LBB0_13
LBB0_19:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_B_FALSE,8,3                    ; @B_FALSE
	.comm	_ZFS_TYPE_DATASET,4,2           ; @ZFS_TYPE_DATASET
	.comm	_ZFS_PROP_NAME,4,2              ; @ZFS_PROP_NAME
	.comm	_MS_FORCE,4,2                   ; @MS_FORCE
	.comm	_ZFS_TYPE_SNAPSHOT,8,3          ; @ZFS_TYPE_SNAPSHOT
	.comm	_SPA_VERSION_USERREFS,4,2       ; @SPA_VERSION_USERREFS
	.comm	_B_TRUE,8,3                     ; @B_TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attempting destroy %s\n"

l_str:                                  ; @str
	.asciz	"success"

	.no_dead_strip	_recv_destroy
.subsections_via_symbols
