	.file	"extr_spiffs_nucleus.c_spiffs_object_update_index_hdr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	spiffs_object_update_index_hdr
	.type	spiffs_object_update_index_hdr, @function
spiffs_object_update_index_hdr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r11, r9
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	or	edx, DWORD PTR SPIFFS_OBJ_ID_IX_FLAG[rip]
	mov	rax, QWORD PTR 128[rsp]
	mov	r12d, edx
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	r8, r8
	je	.L31
.L2:
	mov	edi, DWORD PTR 8[r15]
	xor	edx, edx
	mov	esi, r12d
	mov	QWORD PTR 8[rsp], r11
	call	SPIFFS_VALIDATE_OBJIX@PLT
	mov	r11, QWORD PTR 8[rsp]
	test	r11, r11
	je	.L3
	mov	rdi, QWORD PTR 16[r15]
	mov	edx, DWORD PTR SPIFFS_OBJ_NAME_LEN[rip]
	mov	rsi, r11
	call	strncpy@PLT
.L3:
	cmp	QWORD PTR 120[rsp], 0
	je	.L4
	mov	rax, QWORD PTR 120[rsp]
	mov	QWORD PTR [r15], rax
.L4:
	xor	esi, esi
	test	rbx, rbx
	je	.L5
	mov	esi, DWORD PTR 4[rbx]
.L5:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9d, r14d
	xor	r8d, r8d
	mov	ecx, r12d
	lea	rax, 44[rsp]
	mov	rdx, r15
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 128
	call	spiffs_page_move@PLT
	cmp	QWORD PTR SPIFFS_OK[rip], rax
	pop	rcx
	.cfi_def_cfa_offset 120
	mov	r14, rax
	pop	rsi
	.cfi_def_cfa_offset 112
	je	.L32
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsp]
	mov	r9d, DWORD PTR 36[rsp]
	test	rax, rax
	je	.L8
	mov	DWORD PTR [rax], r9d
.L8:
	test	rbp, rbp
	mov	r8d, DWORD PTR 8[r15]
	mov	edx, DWORD PTR SPIFFS_EV_IX_UPD[rip]
	mov	ecx, r12d
	cmove	edx, DWORD PTR SPIFFS_EV_IX_UPD_HDR[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	push	QWORD PTR [r15]
	.cfi_def_cfa_offset 128
	mov	rsi, r15
	mov	rdi, r13
	call	spiffs_cb_object_event@PLT
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
	test	rbx, rbx
	je	.L1
	mov	eax, DWORD PTR 36[rsp]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	QWORD PTR 24[rsp], r9
	mov	r9, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], r9
	call	SPIFFS_CFG_LOG_PAGE_SZ@PLT
	mov	esi, r14d
	mov	rdi, r13
	mov	r15d, eax
	call	SPIFFS_PAGE_TO_PADDR@PLT
	mov	edx, DWORD PTR 4[rbx]
	mov	r9, QWORD PTR 8[rsp]
	mov	r8d, r15d
	mov	esi, DWORD PTR SPIFFS_OP_T_OBJ_IX[rip]
	mov	ecx, eax
	mov	rdi, r13
	or	esi, DWORD PTR SPIFFS_OP_C_READ[rip]
	call	_spiffs_rd@PLT
	mov	rdi, rax
	call	SPIFFS_CHECK_RES@PLT
	mov	r15, QWORD PTR 0[r13]
	mov	r11, QWORD PTR 24[rsp]
	jmp	.L2
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	spiffs_object_update_index_hdr, .-spiffs_object_update_index_hdr
	.comm	SPIFFS_OP_T_OBJ_IX,4,4
	.comm	SPIFFS_OP_C_READ,4,4
	.comm	SPIFFS_OK,8,8
	.comm	SPIFFS_OBJ_NAME_LEN,4,4
	.comm	SPIFFS_OBJ_META_LEN,4,4
	.comm	SPIFFS_OBJ_ID_IX_FLAG,4,4
	.comm	SPIFFS_EV_IX_UPD_HDR,4,4
	.comm	SPIFFS_EV_IX_UPD,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_spiffs_nucleus.c_spiffs_object_update_index_hdr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	spiffs_object_update_index_hdr
	.syntax unified
	.arm
	.fpu softvfp
	.type	spiffs_object_update_index_hdr, %function
spiffs_object_update_index_hdr:
	@ args = 20, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L31
	sub	sp, sp, #36
	ldr	r9, [sp, #72]
	mov	r8, r3
	ldr	ip, [ip]
	ldr	r3, .L31+4
	cmp	r9, #0
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r7, r0
	movne	r6, r9
	ldr	r10, [sp, #76]
	ldr	fp, [sp, #88]
	orr	r5, r2, ip
	beq	.L29
.L2:
	mov	r2, #0
	mov	r1, r5
	ldr	r0, [r6, #4]
	bl	SPIFFS_VALIDATE_OBJIX
	cmp	r10, #0
	beq	.L3
	ldr	r3, .L31+8
	mov	r1, r10
	ldr	r2, [r3]
	ldr	r0, [r6, #12]
	bl	strncpy
.L3:
	mov	r2, #0
	ldr	r3, [sp, #84]
	mov	r0, r7
	cmp	r3, #0
	strne	r3, [r6]
	cmp	r4, #0
	add	r3, sp, #24
	ldrne	r1, [r4, #4]
	moveq	r1, r4
	stm	sp, {r2, r8}
	str	r3, [sp, #8]
	mov	r2, r6
	mov	r3, r5
	bl	spiffs_page_move
	ldr	r3, .L31+12
	mov	r8, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
	ldr	r3, [sp, #24]
	cmp	fp, #0
	strne	r3, [fp]
	cmp	r9, #0
	ldr	r1, [r6]
	ldrne	r2, .L31+16
	ldreq	r2, .L31+20
	mov	r0, r7
	ldr	r2, [r2]
	str	r3, [sp, #4]
	str	r1, [sp, #8]
	ldr	r1, [r6, #4]
	mov	r3, r5
	str	r1, [sp]
	mov	r1, r6
	bl	spiffs_cb_object_event
	cmp	r4, #0
	ldrne	r3, [sp, #24]
	strne	r3, [r4]
.L1:
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r8
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	ldr	r2, .L31+24
	ldr	r3, .L31+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r8
	orr	r3, r2, r3
	ldr	r2, [r4, #4]
	str	r3, [sp, #20]
	str	r2, [sp, #16]
	bl	SPIFFS_PAGE_TO_PADDR
	mov	r6, r0
	mov	r0, r7
	bl	SPIFFS_CFG_LOG_PAGE_SZ
	ldr	ip, [r7]
	ldr	r3, [sp, #20]
	stm	sp, {r0, ip}
	mov	r1, r3
	ldr	r2, [sp, #16]
	mov	r3, r6
	mov	r0, r7
	bl	_spiffs_rd
	bl	SPIFFS_CHECK_RES
	ldr	r6, [r7]
	b	.L2
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	SPIFFS_OBJ_ID_IX_FLAG
	.word	.LC0
	.word	SPIFFS_OBJ_NAME_LEN
	.word	SPIFFS_OK
	.word	SPIFFS_EV_IX_UPD
	.word	SPIFFS_EV_IX_UPD_HDR
	.word	SPIFFS_OP_T_OBJ_IX
	.word	SPIFFS_OP_C_READ
	.size	spiffs_object_update_index_hdr, .-spiffs_object_update_index_hdr
	.comm	SPIFFS_OP_T_OBJ_IX,4,4
	.comm	SPIFFS_OP_C_READ,4,4
	.comm	SPIFFS_OK,4,4
	.comm	SPIFFS_OBJ_NAME_LEN,4,4
	.comm	SPIFFS_OBJ_META_LEN,4,4
	.comm	SPIFFS_OBJ_ID_IX_FLAG,4,4
	.comm	SPIFFS_EV_IX_UPD_HDR,4,4
	.comm	SPIFFS_EV_IX_UPD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
