	.file	"extr_nvs_blob_example_main.c_save_run_time.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"run_time"
	.text
	.p2align 4
	.globl	save_run_time
	.type	save_run_time, @function
save_run_time:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR NVS_READWRITE[rip]
	mov	edi, DWORD PTR STORAGE_NAMESPACE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdx, 12[rsp]
	call	nvs_open@PLT
	cmp	QWORD PTR ESP_OK[rip], rax
	mov	r12, rax
	je	.L10
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rsp]
	lea	r13, 16[rsp]
	xor	edx, edx
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 16[rsp], 0
	mov	rcx, r13
	call	nvs_get_blob@PLT
	cmp	QWORD PTR ESP_OK[rip], rax
	mov	r12, rax
	je	.L3
	cmp	QWORD PTR ESP_ERR_NVS_NOT_FOUND[rip], rax
	jne	.L1
.L3:
	mov	r12, QWORD PTR 16[rsp]
	lea	rdi, 4[r12]
	call	malloc@PLT
	mov	rbp, rax
	test	r12, r12
	je	.L7
	mov	edi, DWORD PTR 12[rsp]
	mov	rcx, r13
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	call	nvs_get_blob@PLT
	cmp	QWORD PTR ESP_OK[rip], rax
	mov	r12, rax
	jne	.L5
	mov	rax, QWORD PTR 16[rsp]
	add	rax, 4
.L4:
	mov	QWORD PTR 16[rsp], rax
	xor	eax, eax
	call	xTaskGetTickCount@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 12[rsp]
	lea	rsi, .LC0[rip]
	imul	eax, DWORD PTR portTICK_PERIOD_MS[rip]
	mov	rdx, rcx
	and	rdx, -4
	mov	DWORD PTR -4[rbp+rdx], eax
	mov	rdx, rbp
	call	nvs_set_blob@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	free@PLT
	cmp	QWORD PTR ESP_OK[rip], r12
	jne	.L1
	mov	edi, DWORD PTR 12[rsp]
	call	nvs_commit@PLT
	cmp	QWORD PTR ESP_OK[rip], rax
	mov	r12, rax
	jne	.L1
	mov	edi, DWORD PTR 12[rsp]
	call	nvs_close@PLT
	mov	r12, QWORD PTR ESP_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, 4
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	free@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	save_run_time, .-save_run_time
	.comm	portTICK_PERIOD_MS,4,4
	.comm	STORAGE_NAMESPACE,4,4
	.comm	NVS_READWRITE,4,4
	.comm	ESP_OK,8,8
	.comm	ESP_ERR_NVS_NOT_FOUND,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_nvs_blob_example_main.c_save_run_time.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"run_time\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	save_run_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_run_time, %function
save_run_time:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	ldr	r2, .L12+4
	sub	sp, sp, #16
	ldr	r0, [r3]
	ldr	r3, .L12+8
	ldr	r1, [r2]
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	nvs_open
	ldr	r5, .L12+12
	mov	r4, r0
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L10
.L1:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	mov	r2, #0
	add	r3, sp, #8
	ldr	r1, .L12+16
	ldr	r0, [sp, #4]
	str	r2, [sp, #8]
	bl	nvs_get_blob
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, r0
	beq	.L3
	ldr	r3, .L12+20
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
.L3:
	ldr	r4, [sp, #8]
	add	r0, r4, #4
	bl	malloc
	cmp	r4, #0
	mov	r6, r0
	beq	.L7
	mov	r2, r0
	add	r3, sp, #8
	ldr	r1, .L12+16
	ldr	r0, [sp, #4]
	bl	nvs_get_blob
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, r0
	bne	.L5
	ldr	r3, [sp, #8]
	add	r3, r3, #4
.L4:
	str	r3, [sp, #8]
	bl	xTaskGetTickCount
	ldr	r2, .L12+24
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	bic	ip, r3, #3
	mul	r0, r2, r0
	add	ip, r6, ip
	str	r0, [ip, #-4]
	mov	r2, r6
	ldr	r1, .L12+16
	ldr	r0, [sp, #4]
	bl	nvs_set_blob
	mov	r4, r0
	mov	r0, r6
	bl	free
	ldr	r3, [r5]
	cmp	r3, r4
	bne	.L1
	ldr	r0, [sp, #4]
	bl	nvs_commit
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r3, r0
	bne	.L1
	ldr	r0, [sp, #4]
	bl	nvs_close
	ldr	r4, [r5]
	b	.L1
.L7:
	mov	r3, #4
	b	.L4
.L5:
	mov	r0, r6
	bl	free
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	STORAGE_NAMESPACE
	.word	NVS_READWRITE
	.word	.LC1
	.word	ESP_OK
	.word	.LC0
	.word	ESP_ERR_NVS_NOT_FOUND
	.word	portTICK_PERIOD_MS
	.size	save_run_time, .-save_run_time
	.comm	portTICK_PERIOD_MS,4,4
	.comm	STORAGE_NAMESPACE,4,4
	.comm	NVS_READWRITE,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_ERR_NVS_NOT_FOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
