	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moveentry                      ## -- Begin function moveentry
	.p2align	4, 0x90
_moveentry:                             ## @moveentry
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_lookupparent
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	32(%rbx), %r15
	je	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_removeentry
	movq	%r15, 32(%rbx)
	movq	16(%r15), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, 16(%r15)
LBB0_4:
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r14
	movl	4(%rbx), %edi
	callq	_freename
	movq	%r14, %rdi
	callq	_savename
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_gentempname
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_strcmp
	movq	_TMPNAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	notl	%ecx
	andl	%ecx, (%rbx)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_badentry
	cmpq	32(%rbx), %r15
	jne	LBB0_3
	jmp	LBB0_4
LBB0_5:
	orl	%ecx, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot move ROOT"

	.comm	_TMPNAME,4,2                    ## @TMPNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moveentry                      ; -- Begin function moveentry
	.p2align	2
_moveentry:                             ; @moveentry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_lookupparent
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_badentry
LBB0_2:
	ldr	x8, [x19, #32]
	cmp	x21, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_removeentry
	ldr	x8, [x21, #16]
	stp	x8, x21, [x19, #24]
	str	x19, [x21, #16]
LBB0_4:
	mov	x0, x20
	mov	w1, #47
	bl	_strrchr
	add	x20, x0, #1
	ldr	w0, [x19, #4]
	bl	_freename
	mov	x0, x20
	bl	_savename
	str	w0, [x19, #4]
	mov	x0, x20
	bl	_strlen
	str	w0, [x19, #8]
	mov	x0, x19
	bl	_gentempname
	ldr	w1, [x19, #4]
	bl	_strcmp
Lloh2:
	adrp	x8, _TMPNAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TMPNAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_7
LBB0_6:
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_7:
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot move ROOT"

	.comm	_TMPNAME,4,2                    ; @TMPNAME
.subsections_via_symbols
