	.file	"extr_ext_flash_fatfs_example_main.c_app_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"storage"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"FAT FS: %d kB total, %d kB free"
	.section	.rodata.str1.1
.LC2:
	.string	"Opening file"
.LC3:
	.string	"wb"
.LC4:
	.string	"/extflash/hello.txt"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Failed to open file for writing"
	.section	.rodata.str1.1
.LC6:
	.string	"Written using ESP-IDF %s\n"
.LC7:
	.string	"File written"
.LC8:
	.string	"Reading file"
.LC9:
	.string	"rb"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"Failed to open file for reading"
	.section	.rodata.str1.1
.LC11:
	.string	"Read from file: '%s'"
	.text
	.p2align 4
	.globl	app_main
	.type	app_main, @function
app_main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 168
	.cfi_def_cfa_offset 192
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	call	example_init_ext_flash@PLT
	test	rax, rax
	je	.L1
	mov	rdi, rax
	lea	rsi, .LC0[rip]
	call	example_add_partition@PLT
	xor	eax, eax
	call	example_list_data_partitions@PLT
	lea	rdi, .LC0[rip]
	call	example_mount_fatfs@PLT
	test	eax, eax
	jne	.L20
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	lea	rsi, 8[rsp]
	mov	rdi, rsp
	call	example_get_fatfs_usage@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR [rsp]
	xor	eax, eax
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC1[rip]
	shr	rcx, 10
	shr	rdx, 10
	call	ESP_LOGI@PLT
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	ESP_LOGI@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L22
	xor	eax, eax
	call	esp_get_idf_version@PLT
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	mov	rdx, rax
	call	fprintf@PLT
	mov	rdi, rbp
	call	fclose@PLT
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	ESP_LOGI@PLT
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC8[rip]
	xor	eax, eax
	call	ESP_LOGI@PLT
	lea	rsi, .LC9[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L23
	lea	r12, 16[rsp]
	mov	esi, 128
	mov	rdx, rax
	mov	rdi, r12
	call	fgets@PLT
	mov	rdi, rbp
	call	fclose@PLT
	mov	esi, 10
	mov	rdi, r12
	call	strchr@PLT
	test	rax, rax
	je	.L6
	mov	BYTE PTR [rax], 0
.L6:
	mov	edi, DWORD PTR TAG[rip]
	mov	rdx, r12
	lea	rsi, .LC11[rip]
	xor	eax, eax
	call	ESP_LOGI@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC5[rip]
	call	ESP_LOGE@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC10[rip]
	call	ESP_LOGE@PLT
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	app_main, .-app_main
	.comm	TAG,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_ext_flash_fatfs_example_main.c_app_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"storage\000"
	.align	2
.LC1:
	.ascii	"FAT FS: %d kB total, %d kB free\000"
	.align	2
.LC2:
	.ascii	"Opening file\000"
	.align	2
.LC3:
	.ascii	"wb\000"
	.align	2
.LC4:
	.ascii	"/extflash/hello.txt\000"
	.align	2
.LC5:
	.ascii	"Failed to open file for writing\000"
	.align	2
.LC6:
	.ascii	"Written using ESP-IDF %s\012\000"
	.align	2
.LC7:
	.ascii	"File written\000"
	.align	2
.LC8:
	.ascii	"Reading file\000"
	.align	2
.LC9:
	.ascii	"rb\000"
	.align	2
.LC10:
	.ascii	"Failed to open file for reading\000"
	.align	2
.LC11:
	.ascii	"Read from file: '%s'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	app_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	app_main, %function
app_main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L24
	sub	sp, sp, #148
	ldr	r3, [r3]
	str	r3, [sp, #140]
	mov	r3,#0
	bl	example_init_ext_flash
	cmp	r0, #0
	beq	.L1
	ldr	r1, .L24+4
	bl	example_add_partition
	bl	example_list_data_partitions
	ldr	r0, .L24+4
	bl	example_mount_fatfs
	cmp	r0, #0
	bne	.L20
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #140]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #148
	@ sp needed
	pop	{r4, r5, pc}
.L20:
	ldr	r4, .L24+8
	add	r1, sp, #8
	add	r0, sp, #4
	bl	example_get_fatfs_usage
	ldmib	sp, {r2, r3}
	ldr	r1, .L24+12
	lsr	r3, r3, #10
	lsr	r2, r2, #10
	ldr	r0, [r4]
	bl	ESP_LOGI
	ldr	r1, .L24+16
	ldr	r0, [r4]
	bl	ESP_LOGI
	ldr	r1, .L24+20
	ldr	r0, .L24+24
	bl	fopen
	subs	r5, r0, #0
	beq	.L22
	bl	esp_get_idf_version
	ldr	r1, .L24+28
	mov	r2, r0
	mov	r0, r5
	bl	fprintf
	mov	r0, r5
	bl	fclose
	ldr	r1, .L24+32
	ldr	r0, [r4]
	bl	ESP_LOGI
	ldr	r1, .L24+36
	ldr	r0, [r4]
	bl	ESP_LOGI
	ldr	r1, .L24+40
	ldr	r0, .L24+24
	bl	fopen
	subs	r5, r0, #0
	beq	.L23
	mov	r2, r5
	mov	r1, #128
	add	r0, sp, #12
	bl	fgets
	mov	r0, r5
	bl	fclose
	mov	r1, #10
	add	r0, sp, #12
	bl	strchr
	cmp	r0, #0
	movne	r3, #0
	strbne	r3, [r0]
	ldr	r0, [r4]
	ldr	r1, .L24+44
	add	r2, sp, #12
	bl	ESP_LOGI
	b	.L1
.L22:
	ldr	r0, [r4]
	ldr	r1, .L24+48
	bl	ESP_LOGE
	b	.L1
.L23:
	ldr	r0, [r4]
	ldr	r1, .L24+52
	bl	ESP_LOGE
	b	.L1
.L21:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC12
	.word	.LC0
	.word	TAG
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC11
	.word	.LC5
	.word	.LC10
	.size	app_main, .-app_main
	.comm	TAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
