	.file	"extr_ov8856.c_ov8856_write_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ov8856_write_reg, @function
ov8856_write_reg:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	v4l2_get_subdevdata@PLT
	cmp	ebx, 4
	jle	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
.L2:
	.cfi_restore_state
	mov	r14, rsp
	mov	edi, r13d
	mov	r12, rax
	mov	rsi, r14
	call	put_unaligned_be16@PLT
	mov	ecx, 4
	mov	edi, ebp
	lea	rsi, 8[rsp]
	sub	ecx, ebx
	add	ebx, 2
	sal	ecx, 3
	sal	edi, cl
	call	put_unaligned_be32@PLT
	mov	edx, ebx
	mov	rsi, r14
	mov	rdi, r12
	call	i2c_master_send@PLT
	mov	r8d, eax
	xor	eax, eax
	cmp	ebx, r8d
	je	.L1
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ov8856_write_reg, .-ov8856_write_reg
	.comm	EIO,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_ov8856.c_ov8856_write_reg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ov8856_write_reg, %function
ov8856_write_reg:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r2
	mov	r6, r3
	ldr	r3, .L9
	sub	sp, sp, #36
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	v4l2_get_subdevdata
	cmp	r4, #4
	ble	.L2
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r5, r0
	add	r1, sp, #4
	mov	r0, r7
	bl	put_unaligned_be16
	rsb	r0, r4, #4
	lsl	r0, r0, #3
	add	r4, r4, #2
	add	r1, sp, #12
	lsl	r0, r6, r0
	bl	put_unaligned_be32
	mov	r0, r5
	mov	r2, r4
	add	r1, sp, #4
	bl	i2c_master_send
	cmp	r4, r0
	ldrne	r3, .L9+8
	moveq	r0, #0
	ldrne	r0, [r3]
	rsbne	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	EINVAL
	.word	EIO
	.size	ov8856_write_reg, .-ov8856_write_reg
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
