	.file	"extr_sd_fat_devoptab.c_sd_fat_unlink_r.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sd_fat_unlink_r, @function
sd_fat_unlink_r:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	sd_fat_get_device_data@PLT
	test	rax, rax
	je	.L8
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	OSLockMutex@PLT
	mov	rdi, rbp
	mov	rsi, rbx
	call	sd_fat_real_path@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L9
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	ecx, -1
	mov	rdx, rax
	call	FSRemove@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	free@PLT
	mov	edi, DWORD PTR [rbx]
	call	OSUnlockMutex@PLT
	test	r13d, r13d
	js	.L10
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR ENODEV[rip]
	mov	DWORD PTR [r12], eax
	mov	eax, -1
	jmp	.L1
.L10:
	mov	DWORD PTR [r12], r13d
	mov	eax, -1
	jmp	.L1
.L9:
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR [r12], eax
	call	OSUnlockMutex@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sd_fat_unlink_r, .-sd_fat_unlink_r
	.comm	ENOMEM,4,4
	.comm	ENODEV,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_sd_fat_devoptab.c_sd_fat_unlink_r.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sd_fat_unlink_r, %function
sd_fat_unlink_r:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r5, r1
	bl	sd_fat_get_device_data
	subs	r4, r0, #0
	beq	.L8
	ldr	r0, [r4]
	bl	OSLockMutex
	mov	r0, r5
	mov	r1, r4
	bl	sd_fat_real_path
	subs	r5, r0, #0
	beq	.L9
	mvn	r3, #0
	mov	r2, r5
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	bl	FSRemove
	mov	r6, r0
	mov	r0, r5
	bl	free
	ldr	r0, [r4]
	bl	OSUnlockMutex
	cmp	r6, #0
	mvnlt	r0, #0
	strlt	r6, [r7]
	movge	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L10
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L10+4
	ldr	r0, [r4]
	ldr	r3, [r3]
	str	r3, [r7]
	bl	OSUnlockMutex
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	ENODEV
	.word	ENOMEM
	.size	sd_fat_unlink_r, .-sd_fat_unlink_r
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
