	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freeentry                      ## -- Begin function freeentry
	.p2align	4, 0x90
_freeentry:                             ## @freeentry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_REMOVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_badentry
LBB0_2:
	movq	8(%r14), %rax
	movq	_NODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	cmpq	$0, 40(%r14)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_badentry
LBB0_5:
	cmpq	$0, 48(%r14)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_badentry
LBB0_7:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.8:
	callq	_lookupino
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	cmpq	%r14, %rbx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rax
	movq	40(%rbx), %rbx
	cmpq	%r14, %rbx
	jne	LBB0_13
## %bb.15:
	movq	40(%r14), %rcx
	movq	%rcx, 40(%rax)
	jmp	LBB0_17
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_badentry
	cmpq	%r14, %rbx
	jne	LBB0_13
LBB0_11:
	movq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_deleteino
	movq	40(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.12:
	movq	%rbx, %rdi
	callq	_addino
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_badentry
LBB0_17:
	movq	%r14, %rdi
	callq	_removeentry
	movl	32(%r14), %edi
	callq	_freename
	movq	_freelist@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 24(%r14)
	movq	%r14, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REMOVED,8,3                    ## @REMOVED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not marked REMOVED"

	.comm	_NODE,8,3                       ## @NODE
L_.str.1:                               ## @.str.1
	.asciz	"freeing referenced directory"

L_.str.2:                               ## @.str.2
	.asciz	"freeing non-empty directory"

L_.str.3:                               ## @.str.3
	.asciz	"lookupino failed"

L_.str.4:                               ## @.str.4
	.asciz	"link not found"

	.comm	_freelist,8,3                   ## @freelist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freeentry                      ; -- Begin function freeentry
	.p2align	2
_freeentry:                             ; @freeentry
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _REMOVED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REMOVED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_badentry
LBB0_2:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _NODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NODE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_5
; %bb.4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_badentry
LBB0_5:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.6:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_badentry
LBB0_7:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_17
; %bb.8:
	bl	_lookupino
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.9:
	cmp	x20, x19
	b.eq	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x8, x20
	ldr	x20, [x20, #40]
	cmp	x20, x19
	b.ne	LBB0_10
; %bb.12:
	ldr	x9, [x19, #40]
	str	x9, [x8, #40]
	b	LBB0_17
LBB0_13:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_badentry
	cmp	x20, x19
	b.ne	LBB0_10
LBB0_14:
	ldr	x20, [x19, #16]
	mov	x0, x20
	bl	_deleteino
	ldr	x1, [x19, #40]
	cbz	x1, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_addino
	b	LBB0_17
LBB0_16:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_badentry
LBB0_17:
	mov	x0, x19
	bl	_removeentry
	ldr	w0, [x19, #32]
	bl	_freename
Lloh16:
	adrp	x8, _freelist@GOTPAGE
Lloh17:
	ldr	x8, [x8, _freelist@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19, #24]
	str	x19, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_REMOVED,8,3                    ; @REMOVED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not marked REMOVED"

	.comm	_NODE,8,3                       ; @NODE
l_.str.1:                               ; @.str.1
	.asciz	"freeing referenced directory"

l_.str.2:                               ; @.str.2
	.asciz	"freeing non-empty directory"

l_.str.3:                               ; @.str.3
	.asciz	"lookupino failed"

l_.str.4:                               ; @.str.4
	.asciz	"link not found"

	.comm	_freelist,8,3                   ; @freelist
.subsections_via_symbols
