	.file	"extr_saa717x.c_saa717x_read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"read:  reg 0x%03x=0x%08x\n"
	.text
	.p2align 4
	.type	saa717x_read, @function
saa717x_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	sub	rsp, 80
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	v4l2_get_subdevdata@PLT
	mov	DWORD PTR 68[rsp], 0
	mov	rdx, QWORD PTR I2C_M_RD[rip]
	mov	rdi, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rsp], 2
	mov	QWORD PTR 24[rsp], 0
	mov	DWORD PTR 48[rsp], eax
	mov	DWORD PTR 16[rsp], eax
	mov	eax, ebx
	rol	ax, 8
	mov	QWORD PTR 56[rsp], rdx
	mov	WORD PTR 66[rsp], ax
	lea	rax, 66[rsp]
	mov	QWORD PTR 8[rsp], rax
	lea	eax, -1028[rbx]
	cmp	eax, 180
	jbe	.L2
	cmp	ebx, 1320
	je	.L2
	lea	rax, 68[rsp]
	mov	rsi, rsp
	mov	edx, 2
	mov	DWORD PTR 32[rsp], 1
	mov	QWORD PTR 40[rsp], rax
	call	i2c_transfer@PLT
	movzx	r13d, BYTE PTR 68[rsp]
.L4:
	mov	esi, DWORD PTR debug[rip]
	mov	r9d, r13d
	mov	r8d, ebx
	mov	rdx, r12
	lea	rcx, .LC0[rip]
	mov	edi, 2
	call	v4l2_dbg@PLT
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rax, 68[rsp]
	mov	rsi, rsp
	mov	edx, 2
	mov	DWORD PTR 32[rsp], 3
	mov	QWORD PTR 40[rsp], rax
	call	i2c_transfer@PLT
	movzx	r13d, BYTE PTR 70[rsp]
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	saa717x_read, .-saa717x_read
	.comm	debug,4,4
	.comm	I2C_M_RD,8,8
	.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_saa717x.c_saa717x_read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"read:  reg 0x%03x=0x%08x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	saa717x_read, %function
saa717x_read:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r3, .L12
	sub	sp, sp, #56
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	r5, r0
	bl	v4l2_get_subdevdata
	mov	r1, #0
	ldr	r2, .L12+4
	sub	r3, r4, #1024
	sub	r3, r3, #4
	cmp	r4, r2
	cmpne	r3, #180
	mov	r2, #2
	ldr	lr, .L12+8
	lsl	r3, r4, #16
	str	r1, [sp, #48]
	lsr	r3, r3, #24
	ldr	ip, [r0]
	orr	r3, r3, r4, lsl #8
	ldr	lr, [lr]
	strh	r3, [sp, #44]	@ movhi
	add	r3, sp, #44
	ldr	r0, [r0, #4]
	str	r2, [sp, #12]
	str	ip, [sp, #36]
	str	ip, [sp, #20]
	str	r1, [sp, #24]
	str	lr, [sp, #40]
	str	r3, [sp, #16]
	bhi	.L10
	mov	r1, #3
	add	r3, sp, #48
	str	r1, [sp, #28]
	add	r1, sp, #12
	str	r3, [sp, #32]
	bl	i2c_transfer
	ldrb	r6, [sp, #50]	@ zero_extendqisi2
.L4:
	stm	sp, {r4, r6}
	ldr	r3, .L12+12
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, #2
	ldr	r3, .L12+16
	bl	v4l2_dbg
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r6
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	mov	r1, #1
	add	r3, sp, #48
	str	r1, [sp, #28]
	add	r1, sp, #12
	str	r3, [sp, #32]
	bl	i2c_transfer
	ldrb	r6, [sp, #48]	@ zero_extendqisi2
	b	.L4
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	1320
	.word	I2C_M_RD
	.word	debug
	.word	.LC0
	.size	saa717x_read, .-saa717x_read
	.comm	debug,4,4
	.comm	I2C_M_RD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
