	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_file
_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_lookup_one_len
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_dcache_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_d_unhashed
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_dcache_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_dget_locked
	movq	%rbx, %rdi
	callq	___d_drop
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_dcache_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_simple_unlink
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dcache_lock,4,2                ## @dcache_lock
	.no_dead_strip	_remove_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_file
_remove_file:                           ; @remove_file
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_lookup_one_len
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x0, _dcache_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _dcache_lock@GOTPAGEOFF]
	bl	_spin_lock
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x20
	bl	_d_unhashed
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_spin_unlock
Lloh2:
	adrp	x0, _dcache_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _dcache_lock@GOTPAGEOFF]
	bl	_spin_unlock
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_dget_locked
	mov	x0, x20
	bl	___d_drop
	mov	x0, x20
	bl	_spin_unlock
Lloh4:
	adrp	x0, _dcache_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _dcache_lock@GOTPAGEOFF]
	bl	_spin_unlock
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_simple_unlink
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dcache_lock,4,2                ; @dcache_lock
	.no_dead_strip	_remove_file
.subsections_via_symbols
