	.file	"extr_cs4270.c_cs4270_i2c_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"i2c write failed\n"
	.text
	.p2align 4
	.type	cs4270_i2c_write, @function
cs4270_i2c_write:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR CS4270_FIRSTREG[rip]
	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
	cmp	eax, esi
	ja	.L8
	cmp	DWORD PTR CS4270_LASTREG[rip], esi
	mov	ebx, esi
	jb	.L8
	mov	ecx, esi
	mov	r14, QWORD PTR [rdi]
	mov	r12, rdi
	mov	ebp, edx
	sub	ecx, eax
	xor	r13d, r13d
	cmp	DWORD PTR [r14+rcx*4], edx
	je	.L1
	mov	rdi, QWORD PTR 16[rdi]
	call	i2c_smbus_write_byte_data@PLT
	test	rax, rax
	jne	.L10
	sub	ebx, DWORD PTR CS4270_FIRSTREG[rip]
	mov	eax, r13d
	mov	DWORD PTR [r14+rbx*4], ebp
	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
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[r12]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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	cs4270_i2c_write, .-cs4270_i2c_write
	.comm	EIO,4,4
	.comm	CS4270_LASTREG,4,4
	.comm	CS4270_FIRSTREG,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_cs4270.c_cs4270_i2c_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i2c write failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cs4270_i2c_write, %function
cs4270_i2c_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L11
	ldr	r3, [r8]
	cmp	r3, r1
	bhi	.L8
	mov	r5, r0
	ldr	r0, .L11+4
	mov	r4, r1
	ldr	r0, [r0]
	cmp	r0, r1
	bcc	.L8
	ldr	r7, [r5]
	sub	r3, r1, r3
	ldr	r3, [r7, r3, lsl #2]
	mov	r6, r2
	cmp	r3, r2
	beq	.L6
	ldr	r0, [r5, #8]
	bl	i2c_smbus_write_byte_data
	cmp	r0, #0
	bne	.L10
	ldr	r1, [r8]
	sub	r4, r4, r1
	str	r6, [r7, r4, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, [r5, #4]
	ldr	r1, .L11+8
	bl	dev_err
.L8:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	CS4270_FIRSTREG
	.word	CS4270_LASTREG
	.word	.LC0
	.word	EIO
	.size	cs4270_i2c_write, .-cs4270_i2c_write
	.comm	EIO,4,4
	.comm	CS4270_LASTREG,4,4
	.comm	CS4270_FIRSTREG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
