	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_file                    ## -- Begin function remove_file
	.p2align	4, 0x90
_remove_file:                           ## @remove_file
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_old_dir@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_old_dir_length@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rdi,%rax), %rbx
	incq	%rbx
	movl	(%rsi), %edx
	movl	%r14d, %esi
	callq	_append_path
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%rbx, %rdx
	callq	_vkprintf
	movq	_status@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf
	jmp	LBB0_8
LBB0_2:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r13), %esi
	movq	_tmp_dir@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %r8
	callq	_snprintf
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	setl	%dil
	callq	_assert
	movq	_use_clone@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_delete_file
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_tmp_dir@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_kprintf
	movq	_faults@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_7
LBB0_3:
	movq	_pot_remove@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_pending_operation_create
	movl	%eax, %edi
	callq	_pending_operation_push
LBB0_5:
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	_LEV_FILESYS_XFS_FILE_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leal	8(%r15), %esi
	callq	_filesys_xfs_alloc_log_event
	movl	%r15d, (%rax)
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
LBB0_7:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_8:
	movq	(%r12), %rax
	movslq	%r14d, %rcx
	movb	$0, (%rax,%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_old_dir,8,3                    ## @old_dir
	.comm	_old_dir_length,4,2             ## @old_dir_length
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Remove: %s\n"

	.comm	_status,8,3                     ## @status
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

	.comm	_tmp_dir,8,3                    ## @tmp_dir
	.comm	_use_clone,8,3                  ## @use_clone
	.comm	_pot_remove,4,2                 ## @pot_remove
	.comm	_LEV_FILESYS_XFS_FILE_REMOVE,4,2 ## @LEV_FILESYS_XFS_FILE_REMOVE
L_.str.2:                               ## @.str.2
	.asciz	"delete_file (%s/%s) failed (exit_code = %d).\n"

	.comm	_faults,4,2                     ## @faults
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remove_file                    ; -- Begin function remove_file
	.p2align	2
_remove_file:                           ; @remove_file
	.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
	sub	sp, sp, #16
	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, #-72]
Lloh3:
	adrp	x22, _old_dir@GOTPAGE
Lloh4:
	ldr	x22, [x22, _old_dir@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh5:
	adrp	x8, _old_dir_length@GOTPAGE
Lloh6:
	ldr	x8, [x8, _old_dir_length@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	add	x8, x0, x8
	add	x20, x8, #1
	ldr	w2, [x1]
	mov	x1, x19
	bl	_append_path
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x20
	bl	_vkprintf
Lloh10:
	adrp	x8, _status@GOTPAGE
Lloh11:
	ldr	x8, [x8, _status@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_printf
	b	LBB0_8
LBB0_2:
	mov	x23, sp
Lloh15:
	adrp	x25, _PATH_MAX@GOTPAGE
Lloh16:
	ldr	x25, [x25, _PATH_MAX@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh17:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh18:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w1, [x25]
Lloh19:
	adrp	x24, _tmp_dir@GOTPAGE
Lloh20:
	ldr	x24, [x24, _tmp_dir@GOTPAGEOFF]
	ldr	x3, [x24]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x4, x20
	bl	_snprintf
	ldr	w8, [x25]
	cmp	w0, w8
	cset	w0, lt
	bl	_assert
Lloh23:
	adrp	x8, _use_clone@GOTPAGE
Lloh24:
	ldr	x8, [x8, _use_clone@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_delete_file
	cbz	w0, LBB0_6
; %bb.4:
	mov	x3, x0
	ldr	x1, [x24]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_kprintf
Lloh28:
	adrp	x8, _faults@GOTPAGE
Lloh29:
	ldr	x8, [x8, _faults@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_7
LBB0_5:
Lloh30:
	adrp	x8, _pot_remove@GOTPAGE
Lloh31:
	ldr	x8, [x8, _pot_remove@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, x20
	mov	x3, #0
	bl	_pending_operation_create
	bl	_pending_operation_push
LBB0_6:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
Lloh33:
	adrp	x8, _LEV_FILESYS_XFS_FILE_REMOVE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LEV_FILESYS_XFS_FILE_REMOVE@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	add	w1, w21, #8
	bl	_filesys_xfs_alloc_log_event
	str	w21, [x0]
	ldr	w0, [x0, #4]
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
LBB0_7:
	mov	sp, x23
LBB0_8:
	ldr	x8, [x22]
	strb	wzr, [x8, w19, sxtw]
	ldur	x8, [x29, #-72]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #64
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_old_dir,8,3                    ; @old_dir
	.comm	_old_dir_length,4,2             ; @old_dir_length
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Remove: %s\n"

	.comm	_status,8,3                     ; @status
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

	.comm	_tmp_dir,8,3                    ; @tmp_dir
	.comm	_use_clone,8,3                  ; @use_clone
	.comm	_pot_remove,4,2                 ; @pot_remove
	.comm	_LEV_FILESYS_XFS_FILE_REMOVE,4,2 ; @LEV_FILESYS_XFS_FILE_REMOVE
l_.str.2:                               ; @.str.2
	.asciz	"delete_file (%s/%s) failed (exit_code = %d).\n"

	.comm	_faults,4,2                     ; @faults
.subsections_via_symbols
