	.file	"extr_filesys-data.c_filesys_unlink.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"filesys_unlink (%s)\n"
	.text
	.p2align 4
	.type	filesys_unlink, @function
filesys_unlink:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdx, rdi
	mov	rbp, rdi
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	vkprintf@PLT
	mov	esi, DWORD PTR lf_unlink[rip]
	mov	rdi, rbp
	call	filesys_lookup_file@PLT
	test	rax, rax
	je	.L8
	mov	edi, DWORD PTR [rax]
	mov	esi, -1
	mov	rbp, rax
	call	get_inode_f@PLT
	test	rax, rax
	je	.L9
	cmp	QWORD PTR [rax], 0
	jle	.L10
	mov	rdi, rbp
	call	filesys_directory_node_free@PLT
	xor	eax, eax
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOENT[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rax
	call	free_inode@PLT
	mov	rdi, rbp
	call	filesys_directory_node_free@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR EFAULT[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	filesys_unlink, .-filesys_unlink
	.comm	lf_unlink,4,4
	.comm	ENOENT,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_filesys-data.c_filesys_unlink.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"filesys_unlink (%s)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	filesys_unlink, %function
filesys_unlink:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	mov	r2, r0
	ldr	r1, .L11
	mov	r0, #2
	bl	vkprintf
	ldr	r3, .L11+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	filesys_lookup_file
	subs	r4, r0, #0
	beq	.L8
	mvn	r1, #0
	ldr	r0, [r4]
	bl	get_inode_f
	subs	r3, r0, #0
	beq	.L9
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L10
.L5:
	mov	r0, r4
	bl	filesys_directory_node_free
	mov	r0, #0
	pop	{r4, pc}
.L8:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L10:
	bl	free_inode
	b	.L5
.L9:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	lf_unlink
	.word	ENOENT
	.word	EFAULT
	.size	filesys_unlink, .-filesys_unlink
	.comm	lf_unlink,4,4
	.comm	ENOENT,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
