	.file	"extr_nand_base.c_nand_write_page_raw_syndrome.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nand_write_page_raw_syndrome, @function
nand_write_page_raw_syndrome:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	call	nand_to_mtd@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, r14
	mov	QWORD PTR 24[rsp], rax
	mov	r13d, DWORD PTR 8[r14]
	mov	r15d, DWORD PTR 12[r14]
	mov	r12, QWORD PTR [r14]
	call	nand_prog_page_begin_op@PLT
	test	eax, eax
	jne	.L1
	mov	ebp, DWORD PTR 16[r14]
	test	ebp, ebp
	jle	.L3
	movsx	rax, r13d
	sal	rax, 2
	mov	QWORD PTR 8[rsp], rax
	movsx	rax, r15d
	sal	rax, 2
	mov	QWORD PTR 16[rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	sub	ebp, 1
	je	.L3
.L6:
	xor	ecx, ecx
	mov	edx, r13d
	mov	rsi, rbx
	mov	rdi, r14
	call	nand_write_data_op@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR 20[r14]
	add	rbx, QWORD PTR 8[rsp]
	test	edx, edx
	je	.L4
	xor	ecx, ecx
	mov	rsi, r12
	mov	rdi, r14
	call	nand_write_data_op@PLT
	test	eax, eax
	jne	.L1
	movsx	rax, DWORD PTR 20[r14]
	lea	r12, [r12+rax*4]
.L4:
	xor	ecx, ecx
	mov	edx, r15d
	mov	rsi, r12
	mov	rdi, r14
	call	nand_write_data_op@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR 24[r14]
	add	r12, QWORD PTR 16[rsp]
	test	edx, edx
	je	.L5
	xor	ecx, ecx
	mov	rsi, r12
	mov	rdi, r14
	call	nand_write_data_op@PLT
	test	eax, eax
	jne	.L1
	movsx	rax, DWORD PTR 24[r14]
	lea	r12, [r12+rax*4]
	sub	ebp, 1
	jne	.L6
.L3:
	mov	rbx, QWORD PTR 24[rsp]
	mov	rax, r12
	sub	rax, QWORD PTR [r14]
	sar	rax, 2
	mov	edx, DWORD PTR [rbx]
	sub	edx, eax
	je	.L8
	xor	ecx, ecx
	mov	rsi, r12
	mov	rdi, r14
	call	nand_write_data_op@PLT
	test	eax, eax
	jne	.L1
.L8:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, 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
	jmp	nand_prog_page_end_op@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 40
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	nand_write_page_raw_syndrome, .-nand_write_page_raw_syndrome
	.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_nand_base.c_nand_write_page_raw_syndrome.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nand_write_page_raw_syndrome, %function
nand_write_page_raw_syndrome:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r5, r3
	mov	r4, r0
	mov	r6, r1
	bl	nand_to_mtd
	mov	r3, #0
	mov	ip, r0
	str	r3, [sp]
	mov	r1, r5
	ldm	r4, {r5, r8, r9}
	mov	r2, r3
	mov	r0, r4
	str	ip, [sp, #12]
	bl	nand_prog_page_begin_op
	subs	r3, r0, #0
	bne	.L1
	ldr	r7, [r4, #12]
	cmp	r7, #0
	ble	.L3
	lsl	r10, r8, #2
	lsl	fp, r9, #2
	b	.L6
.L5:
	subs	r7, r7, #1
	beq	.L3
.L6:
	mov	r3, #0
	mov	r2, r8
	mov	r1, r6
	mov	r0, r4
	bl	nand_write_data_op
	subs	r3, r0, #0
	bne	.L1
	ldr	r2, [r4, #16]
	add	r6, r6, r10
	cmp	r2, #0
	beq	.L4
	mov	r1, r5
	mov	r0, r4
	bl	nand_write_data_op
	subs	r3, r0, #0
	bne	.L1
	ldr	r3, [r4, #16]
	add	r5, r5, r3, lsl #2
.L4:
	mov	r3, #0
	mov	r2, r9
	mov	r1, r5
	mov	r0, r4
	bl	nand_write_data_op
	subs	r3, r0, #0
	bne	.L1
	ldr	r2, [r4, #20]
	add	r5, r5, fp
	cmp	r2, #0
	beq	.L5
	mov	r1, r5
	mov	r0, r4
	bl	nand_write_data_op
	subs	r3, r0, #0
	bne	.L1
	ldr	r3, [r4, #20]
	subs	r7, r7, #1
	add	r5, r5, r3, lsl #2
	bne	.L6
.L3:
	ldr	r3, [sp, #12]
	ldr	r2, [r4]
	ldr	r3, [r3]
	sub	r2, r5, r2
	subs	r2, r3, r2, asr #2
	beq	.L8
	mov	r3, #0
	mov	r1, r5
	mov	r0, r4
	bl	nand_write_data_op
	subs	r3, r0, #0
	bne	.L1
.L8:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	nand_prog_page_end_op
.L1:
	mov	r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	nand_write_page_raw_syndrome, .-nand_write_page_raw_syndrome
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
