	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_rename                     ## -- Begin function zfs_rename
	.p2align	4, 0x90
_zfs_rename:                            ## @zfs_rename
	.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	$1144, %rsp                     ## imm = 0x478
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -1152(%rbp)
	movaps	%xmm0, -1168(%rbp)
	movq	_ZFS_MAX_DATASET_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -1112(%rbp)               ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -1080(%rbp)               ## 8-byte Spill
	movq	_ZFS_MAXPROPLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -1120(%rbp)               ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -1104(%rbp)               ## 8-byte Spill
	movq	8(%r12), %rax
	movq	%rax, -1128(%rbp)               ## 8-byte Spill
	movq	%r12, %rbx
	movq	(%r12), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	16(%rbp), %r12
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dgettext
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	movq	%r15, -1096(%rbp)               ## 8-byte Spill
	movq	%r15, %rcx
	callq	_snprintf
	testq	%r13, %r13
	je	LBB0_4
## %bb.2:
	movq	(%r12), %rdi
	callq	_assert
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %edx
	callq	_strlcat
	movq	(%rbx), %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_strlcat
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 16(%rbx)
	jmp	LBB0_5
LBB0_3:
	xorl	%r12d, %r12d
	movq	%r14, %r15
	jmp	LBB0_28
LBB0_4:
	movl	16(%rbx), %edx
LBB0_5:
	movq	%r14, %r15
	movq	(%rbx), %rsi
	movq	_B_TRUE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	-1128(%rbp), %r13               ## 8-byte Reload
	movq	%r13, %rdi
	callq	_zfs_validate_name
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	%rbx, %r14
	movl	16(%rbx), %edx
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ZFS_TYPE_BOOKMARK@GOTPCREL(%rip), %rcx
	cmpl	%eax, %edx
	je	LBB0_12
## %bb.7:
	cmpl	(%rcx), %edx
	je	LBB0_12
## %bb.8:
	leaq	16(%rbp), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.9:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dgettext
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	movq	_EZFS_BADTYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_EZFS_INVALIDNAME@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r13, %rdi
	jmp	LBB0_27
LBB0_12:
	movq	%r14, %r13
	movq	%r15, -1088(%rbp)               ## 8-byte Spill
	cmpl	%eax, %edx
	movl	$64, %eax
	movl	$35, %ebx
	cmovel	%eax, %ebx
	movq	-1096(%rbp), %r14               ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_strchr
	movzbl	%bl, %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %r15
	movsbl	(%r14), %eax
	cmpl	%ebx, %eax
	jne	LBB0_37
LBB0_14:
	movq	%r13, %r12
	movq	(%r13), %rsi
	movq	-1080(%rbp), %r13               ## 8-byte Reload
	movq	%r13, %rdi
	movq	-1112(%rbp), %r15               ## 8-byte Reload
	movl	%r15d, %edx
	callq	_strlcpy
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_strchr
	movl	%ebx, %esi
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_strchr
	cmpq	$1, %rax
	adcq	$0, %rbx
	movb	$0, (%rbx)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %r14
	movl	%r15d, %edx
	callq	_strlcat
LBB0_15:
	movl	16(%r14), %edx
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-1128(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_zfs_validate_name
	testl	%eax, %eax
	movq	-1088(%rbp), %r15               ## 8-byte Reload
	je	LBB0_25
LBB0_16:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_dgettext
	movq	(%r14), %rcx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	callq	_snprintf
	xorl	%eax, %eax
	callq	_getzoneid
	movq	_GLOBAL_ZONEID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.17:
	movq	_ZFS_PROP_ZONED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_zfs_prop_get_int
	testq	%rax, %rax
	je	LBB0_30
## %bb.18:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_dgettext
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	movq	_EZFS_ZONED@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_19:
	movq	(%r12), %rcx
	movq	%r13, %rdi
	movq	%r13, %rbx
	movq	-1096(%rbp), %r13               ## 8-byte Reload
	movq	%r13, %rsi
	callq	_zfs_validate_name
	testl	%eax, %eax
	je	LBB0_25
## %bb.20:
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_check_parents
	movl	$-1, %r12d
	testq	%rax, %rax
	jne	LBB0_28
## %bb.21:
	movq	%rbx, %r12
	movq	%r13, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_verify
	movq	(%r14), %rdi
	subq	%r13, %rbx
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_44
## %bb.22:
	movq	(%r14), %rdi
	cmpb	$47, (%rdi,%rbx)
	jne	LBB0_44
## %bb.23:
	movq	-1096(%rbp), %r13               ## 8-byte Reload
	movq	%r13, %rsi
	callq	_is_descendant
	testq	%rax, %rax
	movq	%r12, %rbx
	je	LBB0_16
## %bb.24:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_dgettext
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_zfs_error_aux
LBB0_25:
	movq	_EZFS_INVALIDNAME@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%rbx, %rdi
LBB0_27:
	callq	_zfs_error
	movl	%eax, %r12d
LBB0_28:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_85
## %bb.29:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movl	16(%r14), %eax
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rcx
	leaq	16(%rbp), %rbx
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	cmpl	(%rcx), %eax
	jne	LBB0_40
## %bb.31:
	testq	%rsi, %rsi
	jne	LBB0_40
## %bb.32:
	testq	%rdx, %rdx
	jne	LBB0_40
## %bb.33:
	movq	%r13, -1096(%rbp)               ## 8-byte Spill
	movq	_ZFS_PROP_MOUNTPOINT@GOTPCREL(%rip), %rax
	movq	%rsi, %r12
	movl	(%rax), %esi
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	movq	%rcx, -1112(%rbp)               ## 8-byte Spill
	movq	%r14, %rdi
	movq	-1104(%rbp), %r13               ## 8-byte Reload
	movq	%r13, %rdx
	movq	-1120(%rbp), %rcx               ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_zfs_prop_get
	movq	%r12, %rsi
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_49
## %bb.34:
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_47
## %bb.35:
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_47
## %bb.36:
	xorl	%eax, %eax
	movq	%rax, -1112(%rbp)               ## 8-byte Spill
	jmp	LBB0_48
LBB0_37:
	movl	%ebx, %r12d
	movq	%r13, %rbx
	movq	(%r13), %rdi
	subq	%r14, %r15
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_strncmp
	testq	%rax, %rax
	movq	%r14, %r13
	movq	%rbx, %r14
	jne	LBB0_39
## %bb.38:
	movq	(%r14), %rax
	movsbl	(%rax,%r15), %eax
	cmpl	%r12d, %eax
	je	LBB0_15
LBB0_39:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dgettext
	movl	16(%r14), %ecx
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	-1128(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	movq	_EZFS_CROSSTARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_zfs_error
	movl	%eax, %r12d
	movq	-1088(%rbp), %r15               ## 8-byte Reload
	jmp	LBB0_28
LBB0_40:
	movq	%rdx, -1112(%rbp)               ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_45
## %bb.41:
	movq	%rsi, %r12
	movq	(%r14), %rsi
	movq	8(%r14), %rdi
	callq	_zfs_strdup
	testq	%rax, %rax
	je	LBB0_46
## %bb.42:
	movq	%r13, -1096(%rbp)               ## 8-byte Spill
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$64, %esi
	callq	_strchr
	movb	$0, (%rax)
	movq	8(%r14), %rdi
	movq	_ZFS_TYPE_DATASET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, -1104(%rbp)               ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_zfs_open
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_75
## %bb.43:
	movq	%rax, -1080(%rbp)               ## 8-byte Spill
	movq	%r15, -1088(%rbp)               ## 8-byte Spill
	movb	$1, %al
	movq	%rax, -1120(%rbp)               ## 8-byte Spill
	movq	%r12, %rsi
	jmp	LBB0_59
LBB0_44:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dgettext
	movq	%r12, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	movq	_EZFS_CROSSTARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%r12, %rdi
	jmp	LBB0_27
LBB0_45:
	movq	%r13, -1096(%rbp)               ## 8-byte Spill
	jmp	LBB0_49
LBB0_47:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rax
	movq	%rcx, -1112(%rbp)               ## 8-byte Spill
	movq	%rcx, 8(%rbx)
LBB0_48:
	movq	%r12, %rsi
LBB0_49:
	movl	16(%r14), %eax
	xorl	%ecx, %ecx
	movq	%rcx, -1080(%rbp)               ## 8-byte Spill
	movq	_ZFS_TYPE_SNAPSHOT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_58
## %bb.50:
	movq	_ZFS_TYPE_BOOKMARK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_58
## %bb.51:
	movq	%rsi, -1176(%rbp)               ## 8-byte Spill
	movq	_ZFS_PROP_NAME@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	$0, %edx
	cmpq	$0, -1112(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_53
## %bb.52:
	movq	_CL_GATHER_DONT_UNMOUNT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_53:
	movl	(%rax), %esi
	cmpq	$0, 16(%rbx)
	je	LBB0_55
## %bb.54:
	movq	_MS_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_55:
	movq	%r14, %rdi
	callq	_changelist_gather
	testq	%rax, %rax
	je	LBB0_46
## %bb.56:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_changelist_haszonedchild
	testq	%rax, %rax
	je	LBB0_70
## %bb.57:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	callq	_dgettext
	movq	-1128(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	movq	_EZFS_ZONED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_zfs_error
	movl	$-1, %r12d
	jmp	LBB0_83
LBB0_58:
	movl	$0, %eax
	movq	%rax, -1120(%rbp)               ## 8-byte Spill
	movq	%r15, -1088(%rbp)               ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -1104(%rbp)               ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_59:
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	setne	%r15b
	movq	%r14, %rdi
	callq	_ZFS_IS_VOLUME
	testq	%rax, %rax
	jne	LBB0_61
## %bb.60:
	movq	_DMU_OST_ZFS@GOTPCREL(%rip), %rax
	jmp	LBB0_62
LBB0_61:
	movq	_DMU_OST_ZVOL@GOTPCREL(%rip), %rax
LBB0_62:
	movl	(%rax), %eax
	movl	%eax, -1148(%rbp)
	movq	-1168(%rbp), %rdi
	movq	(%r14), %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	-1160(%rbp), %rdi
	movq	-1096(%rbp), %r12               ## 8-byte Reload
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_strlcpy
	movb	%r15b, %bl
	leal	2(%rbx), %eax
	cmpq	$0, -1112(%rbp)                 ## 8-byte Folded Reload
	cmovel	%ebx, %eax
	movl	%eax, -1152(%rbp)
	movq	8(%r14), %rdi
	movq	_ZFS_IOC_RENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1168(%rbp), %rdx
	callq	_zfs_ioctl
	testl	%eax, %eax
	je	LBB0_65
## %bb.63:
	movl	%eax, %r12d
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_dgettext
	movq	-1168(%rbp), %rcx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	callq	_snprintf
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	sete	%al
	movq	-1120(%rbp), %rcx               ## 8-byte Reload
	andb	%al, %cl
	cmpb	$1, %cl
	movq	-1088(%rbp), %r15               ## 8-byte Reload
	jne	LBB0_67
## %bb.64:
	movl	(%rbx), %edi
	leaq	L_.str.13(%rip), %rsi
	callq	_dgettext
	movq	-1128(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_zfs_error_aux
	movq	_EZFS_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_zfs_error
	jmp	LBB0_73
LBB0_46:
	movl	$-1, %r12d
	jmp	LBB0_28
LBB0_65:
	testq	%r13, %r13
	movq	-1088(%rbp), %r15               ## 8-byte Reload
	je	LBB0_76
## %bb.66:
	movq	%r12, %rbx
	movq	%r14, %rdi
	callq	_zfs_get_name
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_changelist_rename
	movq	%r13, %rdi
	callq	_changelist_postfix
	movl	%eax, %r12d
	jmp	LBB0_77
LBB0_67:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	movq	-1128(%rbp), %rdi               ## 8-byte Reload
	jne	LBB0_72
## %bb.68:
	movq	_EZFS_INVALIDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	callq	_zfs_error
	jmp	LBB0_73
LBB0_70:
	movq	%r13, %rdi
	callq	_changelist_prefix
	testl	%eax, %eax
	je	LBB0_84
## %bb.71:
	movl	%eax, %r12d
	jmp	LBB0_83
LBB0_72:
	movq	8(%r14), %rdi
	leaq	-1072(%rbp), %rdx
	callq	_zfs_standard_error
LBB0_73:
	movq	-1080(%rbp), %rbx               ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_78
## %bb.74:
	movq	%r13, %rdi
	callq	_changelist_postfix
	jmp	LBB0_78
LBB0_75:
	movl	$-1, %r12d
	xorl	%ebx, %ebx
	movq	-1104(%rbp), %rdi               ## 8-byte Reload
	jmp	LBB0_79
LBB0_76:
	xorl	%r12d, %r12d
LBB0_77:
	movq	-1080(%rbp), %rbx               ## 8-byte Reload
LBB0_78:
	movq	-1104(%rbp), %rdi               ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_80
LBB0_79:
	callq	_free
LBB0_80:
	testq	%rbx, %rbx
	je	LBB0_82
## %bb.81:
	movq	%rbx, %rdi
	callq	_zfs_close
LBB0_82:
	testq	%r13, %r13
	je	LBB0_28
LBB0_83:
	movq	%r13, %rdi
	callq	_changelist_free
	jmp	LBB0_28
LBB0_84:
	movq	%r15, -1088(%rbp)               ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -1120(%rbp)               ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -1080(%rbp)               ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -1104(%rbp)               ## 8-byte Spill
	movq	-1176(%rbp), %rsi               ## 8-byte Reload
	jmp	LBB0_59
LBB0_85:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ## @ZFS_MAX_DATASET_NAME_LEN
	.comm	_ZFS_MAXPROPLEN,4,2             ## @ZFS_MAXPROPLEN
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot rename to '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"@"

	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ## @ZFS_TYPE_SNAPSHOT
	.comm	_B_TRUE,8,3                     ## @B_TRUE
	.comm	_EZFS_INVALIDNAME,4,2           ## @EZFS_INVALIDNAME
	.comm	_ZFS_TYPE_BOOKMARK,4,2          ## @ZFS_TYPE_BOOKMARK
L_.str.2:                               ## @.str.2
	.asciz	"%s must be part of same dataset"

L_.str.3:                               ## @.str.3
	.asciz	"snapshots"

L_.str.4:                               ## @.str.4
	.asciz	"bookmarks"

	.comm	_EZFS_CROSSTARGET,4,2           ## @EZFS_CROSSTARGET
L_.str.5:                               ## @.str.5
	.asciz	"recursive rename must be a snapshot"

	.comm	_EZFS_BADTYPE,4,2               ## @EZFS_BADTYPE
	.comm	_B_FALSE,4,2                    ## @B_FALSE
L_.str.6:                               ## @.str.6
	.asciz	"datasets must be within same pool"

L_.str.7:                               ## @.str.7
	.asciz	"New dataset name cannot be a descendant of current dataset name"

L_.str.8:                               ## @.str.8
	.asciz	"cannot rename '%s'"

	.comm	_GLOBAL_ZONEID,8,3              ## @GLOBAL_ZONEID
	.comm	_ZFS_PROP_ZONED,4,2             ## @ZFS_PROP_ZONED
L_.str.9:                               ## @.str.9
	.asciz	"dataset is used in a non-global zone"

	.comm	_EZFS_ZONED,4,2                 ## @EZFS_ZONED
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_PROP_MOUNTPOINT,4,2        ## @ZFS_PROP_MOUNTPOINT
L_.str.10:                              ## @.str.10
	.asciz	"legacy"

L_.str.11:                              ## @.str.11
	.asciz	"none"

	.comm	_ZFS_TYPE_DATASET,4,2           ## @ZFS_TYPE_DATASET
	.comm	_ZFS_PROP_NAME,4,2              ## @ZFS_PROP_NAME
	.comm	_CL_GATHER_DONT_UNMOUNT,4,2     ## @CL_GATHER_DONT_UNMOUNT
	.comm	_MS_FORCE,4,2                   ## @MS_FORCE
L_.str.12:                              ## @.str.12
	.asciz	"child dataset with inherited mountpoint is used in a non-global zone"

	.comm	_DMU_OST_ZVOL,4,2               ## @DMU_OST_ZVOL
	.comm	_DMU_OST_ZFS,4,2                ## @DMU_OST_ZFS
	.comm	_ZFS_IOC_RENAME,4,2             ## @ZFS_IOC_RENAME
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.13:                              ## @.str.13
	.asciz	"a child dataset already has a snapshot with the new name"

	.comm	_EZFS_EXISTS,4,2                ## @EZFS_EXISTS
	.comm	_EINVAL,8,3                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zfs_rename                     ; -- Begin function zfs_rename
	.p2align	2
_zfs_rename:                            ; @zfs_rename
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1104
	mov	x19, sp
	mov	x24, x3
	mov	x23, x2
	mov	x28, x1
	mov	x21, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #32]
Lloh3:
	adrp	x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZFS_MAX_DATASET_NAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	mov	x9, x26
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x26, #15
	and	x9, x9, #0x1fffffff0
	sub	x27, x8, x9
	mov	sp, x27
Lloh8:
	adrp	x8, _ZFS_MAXPROPLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZFS_MAXPROPLEN@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	mov	x9, x25
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x8, x8, x9
	str	x8, [x19, #16]                  ; 8-byte Folded Spill
	mov	sp, x8
	ldp	x0, x8, [x0]
	str	x8, [x19, #24]                  ; 8-byte Folded Spill
	mov	x1, x2
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x22
Lloh13:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	add	x0, x19, #64
	mov	w1, #1024
	mov	x3, x23
	bl	_snprintf
Lloh18:
	adrp	x22, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh19:
	ldr	x22, [x22, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
	cbz	x28, LBB0_4
; %bb.2:
	ldr	x0, [x24]
	bl	_assert
	ldr	x0, [x21]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #8
	bl	_strlcat
	ldr	x0, [x21]
	mov	x1, x28
	mov	w2, #8
	bl	_strlcat
	ldr	w2, [x22]
	str	w2, [x21, #16]
	b	LBB0_5
LBB0_3:
	mov	w27, #0
	b	LBB0_40
LBB0_4:
	ldr	w2, [x21, #16]
LBB0_5:
	mov	x28, x22
	ldr	x1, [x21]
Lloh22:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh24:
	ldr	x3, [x8]
	ldr	x0, [x19, #24]                  ; 8-byte Folded Reload
	bl	_zfs_validate_name
	mov	x22, x20
	cbz	w0, LBB0_23
; %bb.6:
	ldr	w2, [x21, #16]
	ldr	w8, [x28]
Lloh25:
	adrp	x9, _ZFS_TYPE_BOOKMARK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ZFS_TYPE_BOOKMARK@GOTPAGEOFF]
	cmp	w2, w8
	b.eq	LBB0_10
; %bb.7:
	ldr	w9, [x9]
	cmp	w2, w9
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x24]
	cbz	x8, LBB0_17
; %bb.9:
Lloh27:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldr	x20, [x19, #24]                 ; 8-byte Folded Reload
	mov	x0, x20
	bl	_zfs_error_aux
Lloh32:
	adrp	x8, _EZFS_BADTYPE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EZFS_BADTYPE@GOTPAGEOFF]
	b	LBB0_38
LBB0_10:
	str	x24, [x19, #8]                  ; 8-byte Folded Spill
	mov	w9, #35
	mov	w10, #64
	cmp	w2, w8
	csel	w28, w10, w9, eq
	mov	x0, x23
	mov	x1, x28
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.11:
	ldrsb	w8, [x23]
	cmp	w8, w28
	b.ne	LBB0_35
LBB0_12:
	ldr	x1, [x21]
	mov	x0, x27
	mov	x2, x26
	bl	_strlcpy
	mov	x0, x27
	mov	x1, x28
	bl	_strchr
	mov	x20, x22
	mov	x22, x0
	mov	x0, x23
	mov	x1, x28
	bl	_strchr
	cmp	x0, #0
	cinc	x8, x22, eq
	mov	x22, x20
	strb	wzr, [x8]
	mov	x0, x27
	mov	x1, x23
	mov	x2, x26
	bl	_strlcat
	mov	x23, x27
LBB0_13:
	ldr	w2, [x21, #16]
Lloh34:
	adrp	x20, _B_TRUE@GOTPAGE
Lloh35:
	ldr	x20, [x20, _B_TRUE@GOTPAGEOFF]
	ldr	x3, [x20]
	ldr	x0, [x19, #24]                  ; 8-byte Folded Reload
	mov	x1, x23
	bl	_zfs_validate_name
	cbz	w0, LBB0_23
LBB0_14:
Lloh36:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.8@PAGE
Lloh40:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	ldr	x3, [x21]
	add	x0, x19, #64
	mov	w1, #1024
	bl	_snprintf
	bl	_getzoneid
Lloh41:
	adrp	x8, _GLOBAL_ZONEID@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GLOBAL_ZONEID@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.15:
Lloh44:
	adrp	x8, _ZFS_PROP_ZONED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ZFS_PROP_ZONED@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_zfs_prop_get_int
	cbz	x0, LBB0_24
; %bb.16:
Lloh47:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x1, l_.str.9@PAGE
Lloh51:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldr	x20, [x19, #24]                 ; 8-byte Folded Reload
	mov	x0, x20
	bl	_zfs_error_aux
Lloh52:
	adrp	x8, _EZFS_ZONED@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EZFS_ZONED@GOTPAGEOFF]
	b	LBB0_38
LBB0_17:
Lloh54:
	adrp	x20, _B_TRUE@GOTPAGE
Lloh55:
	ldr	x20, [x20, _B_TRUE@GOTPAGEOFF]
	ldr	x3, [x20]
	ldr	x0, [x19, #24]                  ; 8-byte Folded Reload
	mov	x1, x23
	bl	_zfs_validate_name
	cbz	w0, LBB0_23
; %bb.18:
Lloh56:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh57:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh58:
	ldr	w3, [x8]
	ldr	x0, [x19, #24]                  ; 8-byte Folded Reload
	mov	x1, x23
	mov	x2, #0
	mov	x4, #0
	bl	_check_parents
	cbnz	x0, LBB0_47
; %bb.19:
	mov	x28, x22
	mov	x0, x23
	mov	w1, #47
	bl	_strchr
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_verify
	ldr	x0, [x21]
	sub	x26, x22, x23
	mov	x1, x23
	mov	x2, x26
	bl	_strncmp
	cbnz	x0, LBB0_48
; %bb.20:
	ldr	x0, [x21]
	ldrb	w8, [x0, x26]
	cmp	w8, #47
	b.ne	LBB0_48
; %bb.21:
	str	x24, [x19, #8]                  ; 8-byte Folded Spill
	mov	x1, x23
	bl	_is_descendant
	mov	x22, x28
	cbz	x0, LBB0_14
; %bb.22:
Lloh59:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh60:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
Lloh62:
	adrp	x1, l_.str.7@PAGE
Lloh63:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldr	x20, [x19, #24]                 ; 8-byte Folded Reload
	mov	x0, x20
	bl	_zfs_error_aux
Lloh64:
	adrp	x8, _EZFS_INVALIDNAME@GOTPAGE
Lloh65:
	ldr	x8, [x8, _EZFS_INVALIDNAME@GOTPAGEOFF]
	b	LBB0_38
LBB0_23:
Lloh66:
	adrp	x8, _EZFS_INVALIDNAME@GOTPAGE
Lloh67:
	ldr	x8, [x8, _EZFS_INVALIDNAME@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	add	x2, x19, #64
	ldr	x0, [x19, #24]                  ; 8-byte Folded Reload
	b	LBB0_39
LBB0_24:
	ldr	w8, [x21, #16]
Lloh69:
	adrp	x9, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh70:
	ldr	x9, [x9, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	cmp	w8, w9
	ldr	x28, [x19, #8]                  ; 8-byte Folded Reload
	b.ne	LBB0_31
; %bb.25:
	ldr	x8, [x28]
	cbnz	x8, LBB0_31
; %bb.26:
	ldr	x8, [x28, #8]
	cbnz	x8, LBB0_31
; %bb.27:
Lloh72:
	adrp	x8, _ZFS_PROP_MOUNTPOINT@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ZFS_PROP_MOUNTPOINT@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
Lloh75:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh76:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh77:
	ldr	w7, [x8]
	mov	x0, x21
	ldr	x2, [x19, #16]                  ; 8-byte Folded Reload
	mov	x3, x25
	mov	x4, #0
	mov	x5, #0
	mov	w6, #0
	bl	_zfs_prop_get
	cbnz	x0, LBB0_31
; %bb.28:
Lloh78:
	adrp	x1, l_.str.10@PAGE
Lloh79:
	add	x1, x1, l_.str.10@PAGEOFF
	ldr	x0, [x19, #16]                  ; 8-byte Folded Reload
	bl	_strcmp
	cbz	x0, LBB0_30
; %bb.29:
Lloh80:
	adrp	x1, l_.str.11@PAGE
Lloh81:
	add	x1, x1, l_.str.11@PAGEOFF
	ldr	x0, [x19, #16]                  ; 8-byte Folded Reload
	bl	_strcmp
	cbnz	x0, LBB0_31
LBB0_30:
	ldr	x8, [x20]
	str	x8, [x28, #8]
LBB0_31:
	ldr	x8, [x28]
	cbz	x8, LBB0_42
; %bb.32:
	ldp	x1, x0, [x21]
	bl	_zfs_strdup
	cbz	x0, LBB0_47
; %bb.33:
	mov	x26, x0
	mov	w1, #64
	bl	_strchr
	strb	wzr, [x0]
	ldr	x0, [x21, #8]
Lloh82:
	adrp	x8, _ZFS_TYPE_DATASET@GOTPAGE
Lloh83:
	ldr	x8, [x8, _ZFS_TYPE_DATASET@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
	mov	x1, x26
	bl	_zfs_open
	mov	x25, x0
	mov	x24, #0
	cbnz	x0, LBB0_50
; %bb.34:
	mov	w27, #-1
	b	LBB0_65
LBB0_35:
	ldr	x8, [x21]
	sub	x26, x0, x23
	mov	x0, x8
	mov	x1, x23
	mov	x2, x26
	bl	_strncmp
	cbnz	x0, LBB0_37
; %bb.36:
	ldr	x8, [x21]
	ldrsb	w8, [x8, x26]
	cmp	w8, w28
	b.eq	LBB0_13
LBB0_37:
Lloh85:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh86:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh87:
	ldr	w0, [x8]
Lloh88:
	adrp	x1, l_.str.2@PAGE
Lloh89:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldr	w8, [x21, #16]
Lloh90:
	adrp	x9, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh91:
	ldr	x9, [x9, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
Lloh93:
	adrp	x10, l_.str.4@PAGE
Lloh94:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh95:
	adrp	x11, l_.str.3@PAGE
Lloh96:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	w8, w9
	csel	x8, x11, x10, eq
	str	x8, [sp, #-16]!
	ldr	x20, [x19, #24]                 ; 8-byte Folded Reload
	mov	x0, x20
	bl	_zfs_error_aux
	add	sp, sp, #16
Lloh97:
	adrp	x8, _EZFS_CROSSTARGET@GOTPAGE
Lloh98:
	ldr	x8, [x8, _EZFS_CROSSTARGET@GOTPAGEOFF]
LBB0_38:
	ldr	w1, [x8]
	add	x2, x19, #64
	mov	x0, x20
LBB0_39:
	bl	_zfs_error
	mov	x27, x0
LBB0_40:
	mov	sp, x22
	ldur	x8, [x29, #-96]
Lloh99:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh100:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh101:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_73
; %bb.41:
	mov	x0, x27
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_42:
	mov	x25, #0
	ldr	w8, [x21, #16]
Lloh102:
	adrp	x9, _ZFS_TYPE_SNAPSHOT@GOTPAGE
Lloh103:
	ldr	x9, [x9, _ZFS_TYPE_SNAPSHOT@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_49
; %bb.43:
Lloh105:
	adrp	x9, _ZFS_TYPE_BOOKMARK@GOTPAGE
Lloh106:
	ldr	x9, [x9, _ZFS_TYPE_BOOKMARK@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	mov	x26, x25
	mov	x24, x25
	cmp	w8, w9
	b.eq	LBB0_50
; %bb.44:
Lloh108:
	adrp	x8, _ZFS_PROP_NAME@GOTPAGE
Lloh109:
	ldr	x8, [x8, _ZFS_PROP_NAME@GOTPAGEOFF]
Lloh110:
	ldr	w1, [x8]
Lloh111:
	adrp	x8, _CL_GATHER_DONT_UNMOUNT@GOTPAGE
Lloh112:
	ldr	x8, [x8, _CL_GATHER_DONT_UNMOUNT@GOTPAGEOFF]
Lloh113:
	ldr	w8, [x8]
	ldp	x9, x10, [x28, #8]
	cmp	x9, #0
	csel	w2, wzr, w8, eq
Lloh114:
	adrp	x8, _MS_FORCE@GOTPAGE
Lloh115:
	ldr	x8, [x8, _MS_FORCE@GOTPAGEOFF]
Lloh116:
	ldr	w8, [x8]
	cmp	x10, #0
	csel	w3, wzr, w8, eq
	mov	x0, x21
	bl	_changelist_gather
	cbz	x0, LBB0_47
; %bb.45:
	mov	x24, x0
	bl	_changelist_haszonedchild
	cbz	x0, LBB0_70
; %bb.46:
Lloh117:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh118:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh119:
	ldr	w0, [x8]
Lloh120:
	adrp	x1, l_.str.12@PAGE
Lloh121:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldr	x20, [x19, #24]                 ; 8-byte Folded Reload
	mov	x0, x20
	bl	_zfs_error_aux
Lloh122:
	adrp	x8, _EZFS_ZONED@GOTPAGE
Lloh123:
	ldr	x8, [x8, _EZFS_ZONED@GOTPAGEOFF]
Lloh124:
	ldr	w1, [x8]
	add	x2, x19, #64
	mov	x0, x20
	bl	_zfs_error
	mov	w27, #-1
	b	LBB0_69
LBB0_47:
	mov	w27, #-1
	b	LBB0_40
LBB0_48:
Lloh125:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh126:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh127:
	ldr	w0, [x8]
Lloh128:
	adrp	x1, l_.str.6@PAGE
Lloh129:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldr	x20, [x19, #24]                 ; 8-byte Folded Reload
	mov	x0, x20
	bl	_zfs_error_aux
Lloh130:
	adrp	x8, _EZFS_CROSSTARGET@GOTPAGE
Lloh131:
	ldr	x8, [x8, _EZFS_CROSSTARGET@GOTPAGEOFF]
Lloh132:
	ldr	w1, [x8]
	add	x2, x19, #64
	mov	x0, x20
	bl	_zfs_error
	mov	x27, x0
	mov	x22, x28
	b	LBB0_40
LBB0_49:
	mov	x26, x25
	mov	x24, x25
LBB0_50:
	mov	x0, x21
	bl	_ZFS_IS_VOLUME
Lloh133:
	adrp	x8, _DMU_OST_ZFS@GOTPAGE
Lloh134:
	ldr	x8, [x8, _DMU_OST_ZFS@GOTPAGEOFF]
Lloh135:
	adrp	x9, _DMU_OST_ZVOL@GOTPAGE
Lloh136:
	ldr	x9, [x9, _DMU_OST_ZVOL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #52]
	ldr	x0, [x19, #32]
	ldr	x1, [x21]
	mov	w2, #8
	bl	_strlcpy
	ldr	x0, [x19, #40]
	mov	x1, x23
	mov	w2, #8
	bl	_strlcpy
	mov	x9, x28
	ldp	x8, x9, [x28]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [x19, #48]
	cbz	x9, LBB0_52
; %bb.51:
	orr	w8, w8, #0x2
	str	w8, [x19, #48]
LBB0_52:
	ldr	x0, [x21, #8]
Lloh137:
	adrp	x8, _ZFS_IOC_RENAME@GOTPAGE
Lloh138:
	ldr	x8, [x8, _ZFS_IOC_RENAME@GOTPAGEOFF]
Lloh139:
	ldr	w1, [x8]
	add	x2, x19, #32
	bl	_zfs_ioctl
	cbz	w0, LBB0_56
; %bb.53:
	mov	x27, x0
Lloh140:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh141:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh142:
	ldr	w0, [x8]
Lloh143:
	adrp	x1, l_.str.8@PAGE
Lloh144:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dgettext
	mov	x2, x0
	ldr	x3, [x19, #32]
	add	x0, x19, #64
	mov	w1, #1024
	bl	_snprintf
	ldr	x8, [x28]
Lloh145:
	adrp	x9, _errno@GOTPAGE
Lloh146:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh147:
	ldr	x1, [x9]
	cbz	x8, LBB0_58
; %bb.54:
Lloh148:
	adrp	x8, _EEXIST@GOTPAGE
Lloh149:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh150:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_58
; %bb.55:
Lloh151:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh152:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh153:
	ldr	w0, [x8]
Lloh154:
	adrp	x1, l_.str.13@PAGE
Lloh155:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_dgettext
	mov	x1, x0
	ldr	x20, [x19, #24]                 ; 8-byte Folded Reload
	mov	x0, x20
	bl	_zfs_error_aux
Lloh156:
	adrp	x8, _EZFS_EXISTS@GOTPAGE
Lloh157:
	ldr	x8, [x8, _EZFS_EXISTS@GOTPAGEOFF]
Lloh158:
	ldr	w1, [x8]
	add	x2, x19, #64
	mov	x0, x20
	bl	_zfs_error
	b	LBB0_61
LBB0_56:
	cbz	x24, LBB0_63
; %bb.57:
	mov	x0, x21
	bl	_zfs_get_name
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	bl	_changelist_rename
	mov	x0, x24
	bl	_changelist_postfix
	mov	x27, x0
	b	LBB0_64
LBB0_58:
Lloh159:
	adrp	x8, _EINVAL@GOTPAGE
Lloh160:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh161:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_60
; %bb.59:
Lloh162:
	adrp	x8, _EZFS_INVALIDNAME@GOTPAGE
Lloh163:
	ldr	x8, [x8, _EZFS_INVALIDNAME@GOTPAGEOFF]
Lloh164:
	ldr	w1, [x8]
	add	x2, x19, #64
	ldr	x0, [x19, #24]                  ; 8-byte Folded Reload
	bl	_zfs_error
	b	LBB0_61
LBB0_60:
	ldr	x0, [x21, #8]
	add	x2, x19, #64
	bl	_zfs_standard_error
LBB0_61:
	cbz	x24, LBB0_64
; %bb.62:
	mov	x0, x24
	bl	_changelist_postfix
	b	LBB0_64
LBB0_63:
	mov	w27, #0
LBB0_64:
	cbz	x26, LBB0_66
LBB0_65:
	mov	x0, x26
	bl	_free
LBB0_66:
	cbz	x25, LBB0_68
; %bb.67:
	mov	x0, x25
	bl	_zfs_close
LBB0_68:
	cbz	x24, LBB0_40
LBB0_69:
	mov	x0, x24
	bl	_changelist_free
	b	LBB0_40
LBB0_70:
	mov	x0, x24
	bl	_changelist_prefix
	cbz	w0, LBB0_72
; %bb.71:
	mov	x27, x0
	b	LBB0_69
LBB0_72:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_50
LBB0_73:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGot	Lloh135, Lloh136
	.loh AdrpLdrGot	Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpAdd	Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpAdd	Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_MAX_DATASET_NAME_LEN,4,2   ; @ZFS_MAX_DATASET_NAME_LEN
	.comm	_ZFS_MAXPROPLEN,4,2             ; @ZFS_MAXPROPLEN
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot rename to '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"@"

	.comm	_ZFS_TYPE_SNAPSHOT,4,2          ; @ZFS_TYPE_SNAPSHOT
	.comm	_B_TRUE,8,3                     ; @B_TRUE
	.comm	_EZFS_INVALIDNAME,4,2           ; @EZFS_INVALIDNAME
	.comm	_ZFS_TYPE_BOOKMARK,4,2          ; @ZFS_TYPE_BOOKMARK
l_.str.2:                               ; @.str.2
	.asciz	"%s must be part of same dataset"

l_.str.3:                               ; @.str.3
	.asciz	"snapshots"

l_.str.4:                               ; @.str.4
	.asciz	"bookmarks"

	.comm	_EZFS_CROSSTARGET,4,2           ; @EZFS_CROSSTARGET
l_.str.5:                               ; @.str.5
	.asciz	"recursive rename must be a snapshot"

	.comm	_EZFS_BADTYPE,4,2               ; @EZFS_BADTYPE
	.comm	_B_FALSE,4,2                    ; @B_FALSE
l_.str.6:                               ; @.str.6
	.asciz	"datasets must be within same pool"

l_.str.7:                               ; @.str.7
	.asciz	"New dataset name cannot be a descendant of current dataset name"

l_.str.8:                               ; @.str.8
	.asciz	"cannot rename '%s'"

	.comm	_GLOBAL_ZONEID,8,3              ; @GLOBAL_ZONEID
	.comm	_ZFS_PROP_ZONED,4,2             ; @ZFS_PROP_ZONED
l_.str.9:                               ; @.str.9
	.asciz	"dataset is used in a non-global zone"

	.comm	_EZFS_ZONED,4,2                 ; @EZFS_ZONED
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_PROP_MOUNTPOINT,4,2        ; @ZFS_PROP_MOUNTPOINT
l_.str.10:                              ; @.str.10
	.asciz	"legacy"

l_.str.11:                              ; @.str.11
	.asciz	"none"

	.comm	_ZFS_TYPE_DATASET,4,2           ; @ZFS_TYPE_DATASET
	.comm	_ZFS_PROP_NAME,4,2              ; @ZFS_PROP_NAME
	.comm	_CL_GATHER_DONT_UNMOUNT,4,2     ; @CL_GATHER_DONT_UNMOUNT
	.comm	_MS_FORCE,4,2                   ; @MS_FORCE
l_.str.12:                              ; @.str.12
	.asciz	"child dataset with inherited mountpoint is used in a non-global zone"

	.comm	_DMU_OST_ZVOL,4,2               ; @DMU_OST_ZVOL
	.comm	_DMU_OST_ZFS,4,2                ; @DMU_OST_ZFS
	.comm	_ZFS_IOC_RENAME,4,2             ; @ZFS_IOC_RENAME
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.13:                              ; @.str.13
	.asciz	"a child dataset already has a snapshot with the new name"

	.comm	_EZFS_EXISTS,4,2                ; @EZFS_EXISTS
	.comm	_EINVAL,8,3                     ; @EINVAL
.subsections_via_symbols
