	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_removeoldleaves                ## -- Begin function removeoldleaves
	.p2align	4, 0x90
_removeoldleaves:                       ## @removeoldleaves
	.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	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_vprintf
	movq	_UFS_WINO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_lookupino
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_vprintf
	movq	_usedinomap@GOTPCREL(%rip), %r15
	movq	_dumpmap@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_delwhiteout
	movq	%rbx, %rdi
	callq	_freeentry
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rbx
	testq	%r13, %r13
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %r13
	movq	32(%rbx), %rax
	movq	(%rax), %r14
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_TSTINO
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_TSTINO
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movq	_UFS_ROOTINO@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	incq	%r15
	movq	_maxino@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jge	LBB0_15
## %bb.7:
	leaq	L_.str.2(%rip), %r14
	movq	_removelist@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	movq	_maxino@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jge	LBB0_15
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%r15, %rdi
	callq	_lookupino
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rbx
	movq	_usedinomap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_TSTINO
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	callq	_mktempname
	movl	16(%rbx), %edi
	callq	_deleteino
	movq	(%r13), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, (%r13)
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_myname
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_dprintf
	movq	(%rbx), %rax
	movq	_LEAF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	callq	_removeleaf
	movq	%rbx, %rdi
	callq	_freeentry
	jmp	LBB0_13
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mark entries to be removed.\n"

	.comm	_UFS_WINO,8,3                   ## @UFS_WINO
L_.str.1:                               ## @.str.1
	.asciz	"Delete whiteouts\n"

	.comm	_usedinomap,4,2                 ## @usedinomap
	.comm	_dumpmap,4,2                    ## @dumpmap
	.comm	_UFS_ROOTINO,8,3                ## @UFS_ROOTINO
	.comm	_maxino,8,3                     ## @maxino
L_.str.2:                               ## @.str.2
	.asciz	"%s: REMOVE\n"

	.comm	_LEAF,8,3                       ## @LEAF
	.comm	_removelist,8,3                 ## @removelist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_removeoldleaves                ; -- Begin function removeoldleaves
	.p2align	2
_removeoldleaves:                       ; @removeoldleaves
	.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
Lloh0:
	adrp	x23, _stdout@GOTPAGE
Lloh1:
	ldr	x23, [x23, _stdout@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vprintf
Lloh4:
	adrp	x8, _UFS_WINO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UFS_WINO@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	bl	_lookupino
Lloh7:
	adrp	x24, _usedinomap@GOTPAGE
Lloh8:
	ldr	x24, [x24, _usedinomap@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w0, [x23]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_vprintf
Lloh11:
	adrp	x21, _dumpmap@GOTPAGE
Lloh12:
	ldr	x21, [x21, _dumpmap@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_delwhiteout
	mov	x0, x19
	bl	_freeentry
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, x22
	cbz	x22, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x22, x8, [x19, #24]
	ldr	x20, [x8]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_TSTINO
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_TSTINO
	cbnz	x0, LBB0_2
	b	LBB0_3
LBB0_6:
Lloh13:
	adrp	x8, _UFS_ROOTINO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UFS_ROOTINO@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	add	x19, x8, #1
Lloh16:
	adrp	x25, _maxino@GOTPAGE
Lloh17:
	ldr	x25, [x25, _maxino@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x19, x8
	b.ge	LBB0_14
; %bb.7:
Lloh18:
	adrp	x20, l_.str.2@PAGE
Lloh19:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh20:
	adrp	x26, _LEAF@GOTPAGE
Lloh21:
	ldr	x26, [x26, _LEAF@GOTPAGEOFF]
Lloh22:
	adrp	x27, _removelist@GOTPAGE
Lloh23:
	ldr	x27, [x27, _removelist@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x19, x19, #1
	ldr	x8, [x25]
	cmp	x19, x8
	b.ge	LBB0_14
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x19
	bl	_lookupino
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, x0
	ldr	w1, [x24]
	mov	x0, x19
	bl	_TSTINO
	cbnz	x0, LBB0_8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	bl	_mktempname
	ldr	w0, [x21, #16]
	bl	_deleteino
	ldr	x8, [x27]
	str	x8, [x21, #8]
	str	x21, [x27]
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_8
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w22, [x23]
	mov	x0, x21
	bl	_myname
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_dprintf
	ldr	x8, [x21]
	ldr	x9, [x26]
	mov	x0, x21
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	bl	_removeleaf
	mov	x0, x21
	bl	_freeentry
	ldr	x21, [x21, #24]
	cbnz	x21, LBB0_12
	b	LBB0_8
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mark entries to be removed.\n"

	.comm	_UFS_WINO,8,3                   ; @UFS_WINO
l_.str.1:                               ; @.str.1
	.asciz	"Delete whiteouts\n"

	.comm	_usedinomap,4,2                 ; @usedinomap
	.comm	_dumpmap,4,2                    ; @dumpmap
	.comm	_UFS_ROOTINO,8,3                ; @UFS_ROOTINO
	.comm	_maxino,8,3                     ; @maxino
l_.str.2:                               ; @.str.2
	.asciz	"%s: REMOVE\n"

	.comm	_LEAF,8,3                       ; @LEAF
	.comm	_removelist,8,3                 ; @removelist
.subsections_via_symbols
