	.file	"extr_esp_spiffs.c_vfs_spiffs_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vfs_spiffs_open, @function
vfs_spiffs_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	assert@PLT
	mov	edi, r14d
	call	spiffs_mode_conv@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	ecx, r13d
	mov	rsi, r12
	mov	edx, eax
	mov	ebx, eax
	call	SPIFFS_open@PLT
	test	eax, eax
	js	.L6
	mov	r12d, eax
	test	DWORD PTR SPIFFS_RDONLY[rip], ebx
	je	.L7
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, eax
	call	vfs_spiffs_update_mtime@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	mov	r12d, -1
	call	SPIFFS_errno@PLT
	mov	edi, eax
	call	spiffs_res_to_errno@PLT
	mov	DWORD PTR errno[rip], eax
	mov	edi, DWORD PTR 0[rbp]
	call	SPIFFS_clearerr@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vfs_spiffs_open, .-vfs_spiffs_open
	.comm	errno,4,4
	.comm	SPIFFS_RDONLY,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_esp_spiffs.c_vfs_spiffs_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vfs_spiffs_open, %function
vfs_spiffs_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r6, r0
	mov	r0, r1
	mov	r4, r1
	mov	r7, r3
	bl	assert
	mov	r0, r5
	bl	spiffs_mode_conv
	mov	r1, r4
	mov	r2, r0
	mov	r5, r0
	mov	r3, r7
	ldr	r0, [r6]
	bl	SPIFFS_open
	subs	r4, r0, #0
	blt	.L6
	ldr	r3, .L8
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L7
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r1, r4
	ldr	r0, [r6]
	bl	vfs_spiffs_update_mtime
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r0, [r6]
	bl	SPIFFS_errno
	bl	spiffs_res_to_errno
	ldr	r3, .L8+4
	mvn	r4, #0
	str	r0, [r3]
	ldr	r0, [r6]
	bl	SPIFFS_clearerr
	b	.L1
.L9:
	.align	2
.L8:
	.word	SPIFFS_RDONLY
	.word	errno
	.size	vfs_spiffs_open, .-vfs_spiffs_open
	.comm	errno,4,4
	.comm	SPIFFS_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
