	.file	"extr_cyapa_gen3.c_cyapa_gen3_write_blocks.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cyapa_gen3_write_blocks, @function
cyapa_gen3_write_blocks:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdx, rdx
	je	.L10
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	add	rbx, 1
	cmp	rbx, rbp
	je	.L15
.L4:
	mov	eax, DWORD PTR CYAPA_FW_BLOCK_SIZE[rip]
	lea	rsi, 0[r13+rbx]
	mov	rdi, r12
	imul	eax, ebx
	cdqe
	lea	rdx, [r14+rax*4]
	call	cyapa_gen3_write_fw_block@PLT
	test	eax, eax
	je	.L16
	pop	rbx
	.cfi_remember_state
	.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
.L15:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L10:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	cyapa_gen3_write_blocks, .-cyapa_gen3_write_blocks
	.comm	CYAPA_FW_BLOCK_SIZE,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_cyapa_gen3.c_cyapa_gen3_write_blocks.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cyapa_gen3_write_blocks, %function
cyapa_gen3_write_blocks:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r2, #0
	beq	.L2
	mov	r6, r0
	mov	r7, r1
	mov	r8, r3
	mov	r4, #0
	ldr	r9, .L11
.L4:
	ldr	r2, [r9]
	add	r1, r4, r7
	mul	r2, r4, r2
	mov	r0, r6
	add	r2, r8, r2, lsl #2
	bl	cyapa_gen3_write_fw_block
	cmp	r0, #0
	add	r4, r4, #1
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	cmp	r5, r4
	bne	.L4
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	CYAPA_FW_BLOCK_SIZE
	.size	cyapa_gen3_write_blocks, .-cyapa_gen3_write_blocks
	.comm	CYAPA_FW_BLOCK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
