	.file	"extr_stv6110x.c_stv6110x_write_regs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"I/O Error"
	.text
	.p2align 4
	.type	stv6110x_write_regs, @function
stv6110x_write_regs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	r9d, 1[rcx]
	mov	r8, rdx
	mov	edx, ecx
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 40
	mov	r10, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, r9d
	mov	rdi, rsp
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rcx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L15:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L15
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L16
.L4:
	mov	ecx, DWORD PTR [r10]
	lea	rdi, 3[rsp]
	mov	DWORD PTR -40[rbp], r9d
	mov	rax, rdi
	and	rdi, -4
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], ecx
	lea	ecx, [rdx+rsi]
	shr	rax, 2
	mov	QWORD PTR -48[rbp], rdi
	cmp	ecx, 8
	jle	.L5
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR -24[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L17
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR 0[0+rax*4], esi
	add	rdi, 4
	mov	rsi, r8
	call	memcpy@PLT
	mov	edi, DWORD PTR [rbx]
	lea	rsi, -48[rbp]
	mov	edx, 1
	call	i2c_transfer@PLT
	mov	r8d, eax
	xor	eax, eax
	cmp	r8d, 1
	je	.L1
	mov	edi, DWORD PTR FE_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	esi, 1
	call	dprintk@PLT
	mov	eax, DWORD PTR EREMOTEIO[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stv6110x_write_regs, .-stv6110x_write_regs
	.comm	FE_ERROR,4,4
	.comm	EREMOTEIO,4,4
	.comm	EINVAL,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_stv6110x.c_stv6110x_write_regs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"I/O Error\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stv6110x_write_regs, %function
stv6110x_write_regs:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	mov	r5, r0
	add	r6, r3, #1
	lsl	ip, r6, #2
	add	ip, ip, #7
	mov	lr, r1
	bic	ip, ip, #7
	sub	sp, sp, ip
	mov	r0, sp
	mov	r4, #0
	ldr	ip, [r5, #4]
	mov	r1, r2
	ldr	r2, [ip]
	ldr	ip, .L9
	ldr	ip, [ip]
	str	ip, [fp, #-24]
	mov	ip,#0
	str	r2, [fp, #-28]
	add	r2, r3, lr
	cmp	r2, #8
	str	r6, [fp, #-36]
	str	r0, [fp, #-40]
	str	r4, [fp, #-32]
	ble	.L2
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L2:
	mov	r2, r3
	str	lr, [r0], #4
	bl	memcpy
	mov	r2, #1
	ldr	r0, [r5]
	sub	r1, fp, #40
	bl	i2c_transfer
	cmp	r0, #1
	moveq	r0, r4
	beq	.L1
	ldr	r3, .L9+8
	mov	r1, #1
	ldr	r0, [r3]
	ldr	r2, .L9+12
	bl	dprintk
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	EINVAL
	.word	FE_ERROR
	.word	.LC0
	.word	EREMOTEIO
	.size	stv6110x_write_regs, .-stv6110x_write_regs
	.comm	FE_ERROR,4,4
	.comm	EREMOTEIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
