	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_rename                      ## -- Begin function be_rename
	.p2align	4, 0x90
_be_rename:                             ## @be_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BE_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_be_validate_name
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.2:
	movq	%r12, %rdi
	movl	%eax, %esi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_error                      ## TAILCALL
LBB0_3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_be_root_concat
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_be_root_concat
	testl	%eax, %eax
	je	LBB0_6
LBB0_4:
	movq	%r12, %rdi
	movl	%eax, %esi
LBB0_15:
	callq	_set_error
	movl	%eax, %r14d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %edi
	movq	_ZFS_TYPE_DATASET@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r15, %rsi
	callq	_zfs_dataset_exists
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%r12), %edi
	movl	(%r14), %edx
	movq	%rbx, %rsi
	callq	_zfs_dataset_exists
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_BE_ERR_EXISTS@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movq	_BE_ERR_NOENT@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r12, %rdi
	jmp	LBB0_15
LBB0_10:
	movl	(%r12), %edi
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_zfs_open
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r15
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_zfs_rename
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_zfs_close
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.13:
	movq	_BE_ERR_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_BE_ERR_ZFSOPEN@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BE_MAXPATHLEN,4,2              ## @BE_MAXPATHLEN
	.comm	_ZFS_TYPE_DATASET,4,2           ## @ZFS_TYPE_DATASET
	.comm	_BE_ERR_NOENT,4,2               ## @BE_ERR_NOENT
	.comm	_BE_ERR_EXISTS,4,2              ## @BE_ERR_EXISTS
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
	.comm	_BE_ERR_ZFSOPEN,4,2             ## @BE_ERR_ZFSOPEN
	.comm	_BE_ERR_UNKNOWN,4,2             ## @BE_ERR_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_rename                      ; -- Begin function be_rename
	.p2align	2
_be_rename:                             ; @be_rename
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BE_MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BE_MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
	mov	x1, x2
	bl	_be_validate_name
	cbz	w0, LBB0_3
; %bb.1:
	ldur	x8, [x29, #-56]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_set_error
LBB0_3:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_be_root_concat
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_be_root_concat
	cbz	w0, LBB0_9
LBB0_5:
	mov	x1, x0
LBB0_6:
	mov	x0, x19
	bl	_set_error
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.8:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x19]
Lloh16:
	adrp	x22, _ZFS_TYPE_DATASET@GOTPAGE
Lloh17:
	ldr	x22, [x22, _ZFS_TYPE_DATASET@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_zfs_dataset_exists
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w0, [x19]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_zfs_dataset_exists
	cbz	x0, LBB0_14
; %bb.11:
Lloh18:
	adrp	x8, _BE_ERR_EXISTS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BE_ERR_EXISTS@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh20:
	adrp	x8, _BE_ERR_NOENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BE_ERR_NOENT@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
	b	LBB0_6
LBB0_14:
	ldr	w0, [x19]
Lloh22:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_zfs_open
	cbz	x0, LBB0_17
; %bb.15:
	mov	x21, x0
	mov	x1, #0
	mov	x2, x20
	mov	w3, #1
	bl	_zfs_rename
	mov	x20, x0
	mov	x0, x21
	bl	_zfs_close
	cbz	w20, LBB0_18
; %bb.16:
Lloh25:
	adrp	x8, _BE_ERR_UNKNOWN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BE_ERR_UNKNOWN@GOTPAGEOFF]
	b	LBB0_13
LBB0_17:
Lloh27:
	adrp	x8, _BE_ERR_ZFSOPEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BE_ERR_ZFSOPEN@GOTPAGEOFF]
	b	LBB0_13
LBB0_18:
	mov	w0, #0
	b	LBB0_7
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_BE_MAXPATHLEN,4,2              ; @BE_MAXPATHLEN
	.comm	_ZFS_TYPE_DATASET,4,2           ; @ZFS_TYPE_DATASET
	.comm	_BE_ERR_NOENT,4,2               ; @BE_ERR_NOENT
	.comm	_BE_ERR_EXISTS,4,2              ; @BE_ERR_EXISTS
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
	.comm	_BE_ERR_ZFSOPEN,4,2             ; @BE_ERR_ZFSOPEN
	.comm	_BE_ERR_UNKNOWN,4,2             ; @BE_ERR_UNKNOWN
.subsections_via_symbols
