	.file	"extr_i2c-iop3xx.c_iop3xx_i2c_writebytes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iop3xx_i2c_writebytes, @function
iop3xx_i2c_writebytes:
.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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR [rdi]
	test	edx, edx
	je	.L5
	mov	ebp, edx
	lea	r13d, -1[rdx]
	mov	r14, rsi
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movsx	esi, BYTE PTR [r14]
	xor	edx, edx
	cmp	r13d, ebx
	mov	rdi, r12
	sete	dl
	add	ebx, 1
	add	r14, 1
	call	iop3xx_i2c_write_byte@PLT
	test	eax, eax
	jne	.L1
	cmp	ebp, ebx
	jne	.L3
.L1:
	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
.L5:
	.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
	.cfi_endproc
.LFE0:
	.size	iop3xx_i2c_writebytes, .-iop3xx_i2c_writebytes
	.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_i2c-iop3xx.c_iop3xx_i2c_writebytes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iop3xx_i2c_writebytes, %function
iop3xx_i2c_writebytes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r2, #0
	ldr	r6, [r0]
	beq	.L4
	mov	r4, #0
	sub	r8, r1, #1
	sub	r7, r5, #1
.L3:
	sub	r2, r7, r4
	clz	r2, r2
	mov	r0, r6
	ldrb	r1, [r8, #1]!	@ zero_extendqisi2
	lsr	r2, r2, #5
	bl	iop3xx_i2c_write_byte
	add	r4, r4, #1
	subs	r3, r5, r4
	movne	r3, #1
	cmp	r0, #0
	movne	r3, #0
	cmp	r3, #0
	bne	.L3
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
	.size	iop3xx_i2c_writebytes, .-iop3xx_i2c_writebytes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
