	.file	"extr_i2c.c_snd_i2c_bit_sendbytes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_i2c_bit_sendbytes, @function
snd_i2c_bit_sendbytes:
.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
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR SND_I2C_DEVICE_ADDRTEN[rip], eax
	je	.L2
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	r15, QWORD PTR 8[rdi]
	mov	rbp, rdi
	mov	rbx, rsi
	mov	r13d, edx
	mov	rdi, r15
	call	snd_i2c_bit_start@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, r15
	add	esi, esi
	call	snd_i2c_bit_sendbyte@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L11
	xor	r12d, r12d
	test	r13d, r13d
	jle	.L6
	lea	eax, -1[r13]
	mov	r14, rbx
	mov	ebp, 1
	lea	r13, 1[rbx+rax]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12d, ebp
	sub	r12d, ebx
	add	r12d, r14d
	add	r14, 1
	cmp	r14, r13
	je	.L6
.L8:
	movzx	esi, BYTE PTR [r14]
	mov	rdi, r15
	call	snd_i2c_bit_sendbyte@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L7
.L11:
	mov	rdi, r15
	call	snd_i2c_bit_hw_stop@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r15
	call	snd_i2c_bit_stop@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	snd_i2c_bit_sendbytes, .-snd_i2c_bit_sendbytes
	.comm	SND_I2C_DEVICE_ADDRTEN,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_i2c.c_snd_i2c_bit_sendbytes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_i2c_bit_sendbytes, %function
snd_i2c_bit_sendbytes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, .L13
	ldr	r3, [r4]
	ldr	r5, [r0]
	ands	r5, r3, r5
	beq	.L2
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r9, [r4, #8]
	mov	r8, r1
	mov	r0, r9
	mov	r7, r2
	bl	snd_i2c_bit_start
	ldr	r1, [r4, #4]
	mov	r0, r9
	lsl	r1, r1, #1
	bl	snd_i2c_bit_sendbyte
	subs	r4, r0, #0
	blt	.L11
	cmp	r7, #0
	movle	r4, r5
	ble	.L6
	sub	r7, r7, #1
	add	r7, r8, r7
	sub	r5, r8, #1
	b	.L8
.L7:
	cmp	r5, r7
	sub	r4, r6, r8
	beq	.L6
.L8:
	mov	r6, r5
	mov	r0, r9
	ldrb	r1, [r5, #1]!	@ zero_extendqisi2
	bl	snd_i2c_bit_sendbyte
	subs	r4, r0, #0
	add	r6, r6, #2
	bge	.L7
.L11:
	mov	r0, r9
	bl	snd_i2c_bit_hw_stop
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, r9
	bl	snd_i2c_bit_stop
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	SND_I2C_DEVICE_ADDRTEN
	.word	EIO
	.size	snd_i2c_bit_sendbytes, .-snd_i2c_bit_sendbytes
	.comm	SND_I2C_DEVICE_ADDRTEN,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
