	.file	"extr_ble_mesh_demo_main.c_app_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Initializing..."
.LC1:
	.string	"board_init failed (err %d)"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"esp32_bluetooth_init failed (err %d)"
	.align 8
.LC3:
	.string	"Bluetooth mesh init failed (err %d)"
	.text
	.p2align 4
	.globl	app_main
	.type	app_main, @function
app_main:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC0[rip]
	call	ESP_LOGI@PLT
	xor	eax, eax
	call	board_init@PLT
	test	rax, rax
	jne	.L8
	xor	eax, eax
	call	nvs_flash_init@PLT
	cmp	QWORD PTR ESP_ERR_NVS_NO_FREE_PAGES[rip], rax
	mov	rdi, rax
	je	.L9
.L3:
	call	ESP_ERROR_CHECK@PLT
	xor	eax, eax
	call	bluetooth_init@PLT
	test	rax, rax
	jne	.L10
	mov	edi, DWORD PTR dev_uuid[rip]
	call	ble_mesh_get_dev_uuid@PLT
	xor	eax, eax
	call	ble_mesh_init@PLT
	test	rax, rax
	jne	.L11
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR TAG[rip]
	mov	rdx, rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	lea	rsi, .LC2[rip]
	jmp	ESP_LOGE@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR TAG[rip]
	mov	rdx, rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	lea	rsi, .LC1[rip]
	jmp	ESP_LOGE@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	xor	eax, eax
	call	nvs_flash_erase@PLT
	mov	rdi, rax
	call	ESP_ERROR_CHECK@PLT
	xor	eax, eax
	call	nvs_flash_init@PLT
	mov	rdi, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR TAG[rip]
	mov	rdx, rax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	lea	rsi, .LC3[rip]
	jmp	ESP_LOGE@PLT
	.cfi_endproc
.LFE0:
	.size	app_main, .-app_main
	.comm	dev_uuid,4,4
	.comm	TAG,4,4
	.comm	ESP_ERR_NVS_NO_FREE_PAGES,8,8
	.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_ble_mesh_demo_main.c_app_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Initializing...\000"
	.align	2
.LC1:
	.ascii	"board_init failed (err %d)\000"
	.align	2
.LC2:
	.ascii	"esp32_bluetooth_init failed (err %d)\000"
	.align	2
.LC3:
	.ascii	"Bluetooth mesh init failed (err %d)\000"
	.text
	.align	2
	.global	app_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	app_main, %function
app_main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L11
	ldr	r1, .L11+4
	ldr	r0, [r4]
	bl	ESP_LOGI
	bl	board_init
	subs	r2, r0, #0
	bne	.L8
	bl	nvs_flash_init
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L9
.L3:
	bl	ESP_ERROR_CHECK
	bl	bluetooth_init
	subs	r2, r0, #0
	bne	.L10
	ldr	r3, .L11+12
	ldr	r0, [r3]
	bl	ble_mesh_get_dev_uuid
	bl	ble_mesh_init
	subs	r2, r0, #0
	popeq	{r4, pc}
	ldr	r0, [r4]
	ldr	r1, .L11+16
	pop	{r4, lr}
	b	ESP_LOGE
.L10:
	ldr	r0, [r4]
	ldr	r1, .L11+20
	pop	{r4, lr}
	b	ESP_LOGE
.L8:
	ldr	r0, [r4]
	ldr	r1, .L11+24
	pop	{r4, lr}
	b	ESP_LOGE
.L9:
	bl	nvs_flash_erase
	bl	ESP_ERROR_CHECK
	bl	nvs_flash_init
	b	.L3
.L12:
	.align	2
.L11:
	.word	TAG
	.word	.LC0
	.word	ESP_ERR_NVS_NO_FREE_PAGES
	.word	dev_uuid
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.size	app_main, .-app_main
	.comm	dev_uuid,4,4
	.comm	TAG,4,4
	.comm	ESP_ERR_NVS_NO_FREE_PAGES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
