	.file	"extr_xattr.c_save_xattr_ref.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"success on saving xref (ino=%u, xid=%u)\n"
	.align 8
.LC1:
	.string	"jffs2_flash_write() returned %d, request=%zu, retlen=%zu, at %#08x\n"
	.text
	.p2align 4
	.type	save_xattr_ref, @function
save_xattr_ref:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 96
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	call	write_ofs@PLT
	mov	edi, DWORD PTR JFFS2_MAGIC_BITMASK[rip]
	mov	r14d, eax
	call	cpu_to_je16@PLT
	mov	edi, DWORD PTR JFFS2_NODETYPE_XREF[rip]
	mov	QWORD PTR 72[rsp], rax
	call	cpu_to_je16@PLT
	mov	edi, 64
	mov	QWORD PTR 64[rsp], rax
	call	PAD@PLT
	mov	edi, eax
	call	cpu_to_je32@PLT
	xor	edx, edx
	xor	edi, edi
	mov	rsi, r12
	mov	QWORD PTR 56[rsp], rax
	call	crc32@PLT
	mov	edi, eax
	call	cpu_to_je32@PLT
	mov	rdi, rbx
	mov	QWORD PTR 48[rsp], rax
	mov	eax, DWORD PTR 0[rbp]
	lea	r13d, 2[rax]
	mov	DWORD PTR 0[rbp], r13d
	call	is_xattr_ref_dead@PLT
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR [rbx]
	or	r13d, DWORD PTR XREF_DELETE_MARKER[rip]
	call	cpu_to_je32@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	QWORD PTR 40[rsp], rax
	call	cpu_to_je32@PLT
	mov	QWORD PTR 32[rsp], rax
.L3:
	mov	edi, r13d
	call	cpu_to_je32@PLT
	mov	rsi, r12
	mov	edx, 60
	xor	edi, edi
	mov	QWORD PTR 24[rsp], rax
	call	crc32@PLT
	mov	edi, eax
	call	cpu_to_je32@PLT
	mov	r8, r12
	lea	rcx, 8[rsp]
	mov	esi, r14d
	mov	edx, 64
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp], rax
	call	jffs2_flash_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	rcx, QWORD PTR 8[rsp]
	cmp	rcx, 64
	je	.L13
	xor	esi, esi
	mov	r8d, r14d
	mov	edx, 64
	lea	rdi, .LC1[rip]
	call	JFFS2_WARNING@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	cmp	QWORD PTR 8[rsp], 0
	jne	.L14
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR [rax]
	call	cpu_to_je32@PLT
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rax]
	call	cpu_to_je32@PLT
	mov	QWORD PTR 32[rsp], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, 64
	call	PAD@PLT
	mov	esi, DWORD PTR REF_OBSOLETE[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	edx, eax
	or	esi, r14d
	call	jffs2_add_physical_node_ref@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	DWORD PTR 8[rbx], r13d
	mov	edi, 64
	call	PAD@PLT
	mov	esi, DWORD PTR REF_PRISTINE[rip]
	mov	rdi, rbp
	mov	rcx, rbx
	mov	edx, eax
	or	esi, r14d
	call	jffs2_add_physical_node_ref@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR 24[rbx]
	lea	rdi, .LC0[rip]
	mov	edx, DWORD PTR [rdx]
	mov	esi, DWORD PTR [rax]
	call	dbg_xattr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rcx, QWORD PTR 8[rsp]
	mov	r8d, r14d
	mov	edx, 64
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	JFFS2_WARNING@PLT
	cmp	QWORD PTR 8[rsp], 0
	je	.L1
	jmp	.L14
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	save_xattr_ref, .-save_xattr_ref
	.comm	XREF_DELETE_MARKER,4,4
	.comm	REF_PRISTINE,4,4
	.comm	REF_OBSOLETE,4,4
	.comm	JFFS2_NODETYPE_XREF,4,4
	.comm	JFFS2_MAGIC_BITMASK,4,4
	.comm	EIO,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_xattr.c_save_xattr_ref.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"success on saving xref (ino=%u, xid=%u)\012\000"
	.align	2
.LC1:
	.ascii	"jffs2_flash_write() returned %d, request=%zu, retle"
	.ascii	"n=%zu, at %#08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_xattr_ref, %function
save_xattr_ref:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L19
	sub	sp, sp, #48
	mov	r4, r1
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	write_ofs
	ldr	r3, .L19+4
	mov	r8, r0
	ldr	r0, [r3]
	bl	cpu_to_je16
	ldr	r3, .L19+8
	str	r0, [sp, #40]
	ldr	r0, [r3]
	bl	cpu_to_je16
	mov	r3, r0
	mov	r0, #32
	str	r3, [sp, #36]
	bl	PAD
	bl	cpu_to_je32
	mov	r2, #0
	mov	r3, r0
	add	r5, sp, #12
	mov	r0, r2
	mov	r1, r5
	str	r3, [sp, #32]
	bl	crc32
	bl	cpu_to_je32
	mov	r3, r0
	ldr	r7, [r6]
	mov	r0, r4
	add	r7, r7, #2
	str	r7, [r6]
	str	r3, [sp, #28]
	bl	is_xattr_ref_dead
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L19+12
	ldr	r0, [r4]
	ldr	r3, [r3]
	orr	r7, r7, r3
	bl	cpu_to_je32
	mov	r3, r0
	ldr	r0, [r4, #4]
	str	r3, [sp, #24]
	bl	cpu_to_je32
	str	r0, [sp, #20]
.L3:
	mov	r0, r7
	bl	cpu_to_je32
	mov	r3, r0
	mov	r1, r5
	mov	r2, #28
	mov	r0, #0
	str	r3, [sp, #16]
	bl	crc32
	bl	cpu_to_je32
	mov	ip, r0
	str	r5, [sp]
	mov	r2, #32
	mov	r1, r8
	mov	r0, r6
	add	r3, sp, #8
	str	ip, [sp, #12]
	bl	jffs2_flash_write
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, [sp, #8]
	cmp	r3, #32
	beq	.L16
	mov	r1, r5
	mov	r2, #32
	ldr	r0, .L19+16
	str	r8, [sp]
	bl	JFFS2_WARNING
	ldr	r3, .L19+20
	ldr	r0, [r3]
	ldr	r3, [sp, #8]
	rsb	r5, r0, #0
	cmp	r3, #0
	bne	.L17
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r5
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [r4, #16]
	ldr	r0, [r3]
	bl	cpu_to_je32
	ldr	r3, [r4, #12]
	str	r0, [sp, #24]
	ldr	r0, [r3]
	bl	cpu_to_je32
	str	r0, [sp, #20]
	b	.L3
.L17:
	ldr	r3, .L19+24
	mov	r0, #32
	ldr	r1, [r3]
	orr	r8, r8, r1
	bl	PAD
	mov	r1, r8
	mov	r2, r0
	mov	r3, #0
	mov	r0, r6
	bl	jffs2_add_physical_node_ref
	b	.L1
.L16:
	ldr	r2, .L19+28
	mov	r0, r3
	ldr	r1, [r2]
	str	r7, [r4, #8]
	orr	r8, r8, r1
	bl	PAD
	mov	r3, r4
	mov	r2, r0
	mov	r1, r8
	mov	r0, r6
	bl	jffs2_add_physical_node_ref
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r0, .L19+32
	bl	dbg_xattr
	b	.L1
.L4:
	ldr	r3, [sp, #8]
	mov	r2, #32
	mov	r1, r5
	ldr	r0, .L19+16
	str	r8, [sp]
	bl	JFFS2_WARNING
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L1
	b	.L17
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	JFFS2_MAGIC_BITMASK
	.word	JFFS2_NODETYPE_XREF
	.word	XREF_DELETE_MARKER
	.word	.LC1
	.word	EIO
	.word	REF_OBSOLETE
	.word	REF_PRISTINE
	.word	.LC0
	.size	save_xattr_ref, .-save_xattr_ref
	.comm	XREF_DELETE_MARKER,4,4
	.comm	REF_PRISTINE,4,4
	.comm	REF_OBSOLETE,4,4
	.comm	JFFS2_NODETYPE_XREF,4,4
	.comm	JFFS2_MAGIC_BITMASK,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
