	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtfs_node_rename               ## -- Begin function dtfs_node_rename
	.p2align	4, 0x90
_dtfs_node_rename:                      ## @dtfs_node_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	%r9, %r13
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdx), %rax
	movq	_VDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	%r8, %rdi
	movq	%r15, %rsi
	movq	%r8, %r14
	callq	_dtfs_isunder
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpl	$1, (%rbx)
	jne	LBB0_6
## %bb.4:
	cmpq	%r15, %r12
	movq	16(%rbp), %r14
	je	LBB0_2
## %bb.5:
	movq	8(%rbx), %rax
	cmpb	$46, (%rax)
	jne	LBB0_7
	jmp	LBB0_2
LBB0_6:
	cmpq	%r15, %r12
	movq	16(%rbp), %r14
	je	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_PCNISDOTDOT
	testq	%rax, %rax
	jne	LBB0_2
## %bb.8:
	movq	%r14, %rdi
	callq	_PCNISDOTDOT
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_2
LBB0_9:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r12, %rdi
	callq	_DTFS_PTOF
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	movl	%eax, %edi
	callq	_dtfs_dirgetbyname
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_14
## %bb.11:
	movq	(%r13), %rax
	movq	_VDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_DTFS_CTOF
	movq	%rax, %rdi
	callq	_LIST_EMPTY
	testl	%eax, %eax
	je	LBB0_18
LBB0_13:
	movq	16(%rbp), %rax
	movq	8(%rax), %rdx
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_dtfs_nukenode
LBB0_14:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_dtfs_removedent
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_dtfs_adddent
	movl	(%r14), %edi
	callq	_free
	movq	16(%rbp), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %esi
	callq	_estrndup
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_strlen
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_dtfs_updatetimes
	jmp	LBB0_17
LBB0_15:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_ENOTEMPTY@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_VDIR,8,3                       ## @VDIR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ENOTEMPTY,4,2                  ## @ENOTEMPTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtfs_node_rename               ; -- Begin function dtfs_node_rename
	.p2align	2
_dtfs_node_rename:                      ; @dtfs_node_rename
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x6
	mov	x23, x5
	mov	x21, x4
	mov	x24, x3
	mov	x19, x2
	mov	x22, x1
	ldr	x8, [x2]
Lloh0:
	adrp	x25, _VDIR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VDIR@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_dtfs_isunder
	cbz	x0, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_3:
	ldr	w8, [x24]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.4:
	cmp	x22, x19
	b.eq	LBB0_2
; %bb.5:
	ldr	x8, [x24, #8]
	ldrb	w8, [x8]
	cmp	w8, #46
	b.ne	LBB0_7
	b	LBB0_2
LBB0_6:
	cmp	x22, x19
	b.eq	LBB0_2
LBB0_7:
	mov	x0, x24
	bl	_PCNISDOTDOT
	cbnz	x0, LBB0_2
; %bb.8:
	mov	x0, x20
	bl	_PCNISDOTDOT
	cbnz	x0, LBB0_2
LBB0_9:
	mov	x0, x22
	bl	_DTFS_PTOF
	ldr	x1, [x24, #8]
	ldr	w2, [x24]
	bl	_dtfs_dirgetbyname
	cbz	x0, LBB0_15
; %bb.10:
	mov	x24, x0
	cbz	x23, LBB0_14
; %bb.11:
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x23
	bl	_DTFS_CTOF
	bl	_LIST_EMPTY
	cbz	w0, LBB0_18
LBB0_13:
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	mov	x0, x23
	mov	x1, x21
	bl	_dtfs_nukenode
LBB0_14:
	mov	x0, x22
	mov	x1, x24
	bl	_dtfs_removedent
	mov	x0, x21
	mov	x1, x24
	bl	_dtfs_adddent
	ldr	w0, [x24]
	bl	_free
	ldr	x0, [x20, #8]
	ldr	w1, [x20]
	bl	_estrndup
	str	w0, [x24]
	bl	_strlen
	str	w0, [x24, #4]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
	bl	_dtfs_updatetimes
	mov	w0, #0
	b	LBB0_17
LBB0_15:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh6:
	adrp	x8, _ENOTEMPTY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTEMPTY@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VDIR,8,3                       ; @VDIR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ENOTEMPTY,4,2                  ; @ENOTEMPTY
.subsections_via_symbols
