	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_receive                    ## -- Begin function zfs_receive
	.p2align	4, 0x90
_zfs_receive:                           ## @zfs_receive
	.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	%r9, %rbx
	movl	%r8d, %r15d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movl	$0, -52(%rbp)
	movq	$0, -64(%rbp)
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rax
	movq	%rdx, %rdi
	movq	%rax, %rdx
	callq	_nvlist_lookup_string
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movq	_ENOENT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_14
LBB0_3:
	movq	_ZFS_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_EXCL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_open
	movq	%r14, %r12
	movl	%r15d, %r14d
	movl	%eax, %r15d
	movl	%eax, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_VERIFY
	movq	-64(%rbp), %rdx
	leaq	-52(%rbp), %rax
	movq	%r12, %rdi
	leaq	-48(%rbp), %r10
	xorl	%r12d, %r12d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	%r15
	pushq	%r10
	pushq	%rbx
	pushq	$0
	callq	_zfs_receive_impl
	addq	$48, %rsp
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_close
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_VERIFY
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.4:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	cmpl	$0, (%r13)
	movq	-48(%rbp), %rsi
	jne	LBB0_12
## %bb.5:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.6:
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_zfs_open
	xorl	%r12d, %r12d
	movb	$1, %r13b
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	_ZFS_PROP_MOUNTPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CL_GATHER_MOUNT_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_changelist_gather
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_zfs_close
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_changelist_postfix
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_changelist_free
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_7:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	negl	%eax
	sbbl	%r12d, %r12d
	orl	%r14d, %r12d
	testb	%r13b, %r13b
	movl	$-1, %ebx
	cmovel	%r12d, %ebx
LBB0_11:
	movq	-48(%rbp), %rsi
	movl	%ebx, %r12d
LBB0_12:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:
	movq	%rsi, %rdi
	callq	_free
LBB0_14:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"origin"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ZFS_DEV,4,2                    ## @ZFS_DEV
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_PROP_MOUNTPOINT,4,2        ## @ZFS_PROP_MOUNTPOINT
	.comm	_CL_GATHER_MOUNT_ALWAYS,4,2     ## @CL_GATHER_MOUNT_ALWAYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_receive                    ; -- Begin function zfs_receive
	.p2align	2
_zfs_receive:                           ; @zfs_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x5
	mov	x23, x4
	mov	x20, x3
	mov	x24, x1
	mov	x19, x0
	str	xzr, [sp, #56]
	str	wzr, [sp, #52]
	str	xzr, [sp, #40]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x8, x2
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #40
	mov	x0, x8
	bl	_nvlist_lookup_string
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
LBB0_3:
Lloh5:
	adrp	x8, _ZFS_DEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZFS_DEV@GOTPAGEOFF]
Lloh7:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_open
	mov	x25, x0
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_VERIFY
	ldr	x2, [sp, #40]
	add	x8, sp, #52
	stp	x8, xzr, [sp, #16]
	str	w25, [sp, #8]
	add	x8, sp, #56
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x24
	mov	x3, x20
	mov	x4, x23
	mov	x5, #0
	mov	x6, #0
	mov	x7, x21
	bl	_zfs_receive_impl
	mov	x22, x0
	mov	x0, x25
	bl	_close
	cmp	x0, #0
	cset	w0, eq
	bl	_VERIFY
	cbnz	w22, LBB0_12
; %bb.4:
	ldr	w8, [x20]
	ldr	x1, [sp, #56]
	cbnz	w8, LBB0_13
; %bb.5:
	cbz	x1, LBB0_13
; %bb.6:
Lloh14:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_zfs_open
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.7:
Lloh17:
	adrp	x8, _ZFS_PROP_MOUNTPOINT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ZFS_PROP_MOUNTPOINT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _CL_GATHER_MOUNT_ALWAYS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CL_GATHER_MOUNT_ALWAYS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_changelist_gather
	mov	x20, x0
	mov	x0, x19
	bl	_zfs_close
	cbz	x20, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_changelist_postfix
	mov	x19, x0
	mov	x0, x20
	bl	_changelist_free
	mov	w8, #0
	b	LBB0_11
LBB0_9:
	mov	w19, #0
LBB0_10:
	mov	w8, #1
LBB0_11:
	cmp	w19, #0
	cset	w9, ne
	orr	w8, w8, w9
	cmp	w8, #0
	csinv	w22, w19, wzr, eq
LBB0_12:
	ldr	x1, [sp, #56]
LBB0_13:
	cbz	x1, LBB0_15
; %bb.14:
	mov	x0, x1
	bl	_free
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"origin"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ZFS_DEV,4,2                    ; @ZFS_DEV
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_PROP_MOUNTPOINT,4,2        ; @ZFS_PROP_MOUNTPOINT
	.comm	_CL_GATHER_MOUNT_ALWAYS,4,2     ; @CL_GATHER_MOUNT_ALWAYS
.subsections_via_symbols
