	.file	"extr_saa7115.c_saa711x_writeregs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"tried to access reserved reg 0x%02x\n"
	.text
	.p2align 4
	.type	saa711x_writeregs, @function
saa711x_writeregs:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	to_state@PLT
	movzx	esi, BYTE PTR [rbx]
	test	sil, sil
	je	.L2
	mov	r13, rax
	lea	r14, .LC0[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	movzx	edx, bpl
	mov	esi, r15d
	mov	rdi, r12
	call	saa711x_write@PLT
	test	rax, rax
	js	.L14
	movzx	esi, BYTE PTR [rbx]
	test	sil, sil
	je	.L2
.L6:
	movzx	r15d, sil
	mov	edi, DWORD PTR 0[r13]
	add	rbx, 2
	movzx	ebp, BYTE PTR -1[rbx]
	mov	esi, r15d
	call	saa711x_has_reg@PLT
	test	rax, rax
	jne	.L15
	mov	esi, DWORD PTR debug[rip]
	mov	r8d, r15d
	mov	rcx, r14
	mov	rdx, r12
	mov	edi, 1
	call	v4l2_dbg@PLT
	movzx	esi, BYTE PTR [rbx]
	test	sil, sil
	jne	.L6
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L14:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, -1
	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
	.cfi_endproc
.LFE0:
	.size	saa711x_writeregs, .-saa711x_writeregs
	.comm	debug,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_saa7115.c_saa711x_writeregs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tried to access reserved reg 0x%02x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	saa711x_writeregs, %function
saa711x_writeregs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	sub	sp, sp, #8
	mov	r8, r0
	bl	to_state
	ldrb	r4, [r5]	@ zero_extendqisi2
	cmp	r4, #0
	beq	.L2
	mov	r7, r0
	ldr	r10, .L16
	ldr	r9, .L16+4
	b	.L6
.L15:
	mov	r2, r6
	mov	r1, r4
	mov	r0, r8
	bl	saa711x_write
	cmp	r0, #0
	blt	.L14
	ldrb	r4, [r5, #2]!	@ zero_extendqisi2
	cmp	r4, #0
	beq	.L2
.L6:
	mov	r1, r4
	ldr	r0, [r7]
	ldrb	r6, [r5, #1]	@ zero_extendqisi2
	bl	saa711x_has_reg
	cmp	r0, #0
	bne	.L15
	str	r4, [sp]
	mov	r3, r9
	mov	r2, r8
	mov	r0, #1
	ldr	r1, [r10]
	bl	v4l2_dbg
	ldrb	r4, [r5, #2]!	@ zero_extendqisi2
	cmp	r4, #0
	bne	.L6
.L2:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mvn	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	debug
	.word	.LC0
	.size	saa711x_writeregs, .-saa711x_writeregs
	.comm	debug,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
