	.file	"extr_ov7x20.c_ov7x20_get_v4l1_control.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"control not supported: %d"
.LC1:
	.string	"id=%d, arg=%d, rc=%d"
	.text
	.p2align 4
	.type	ov7x20_get_v4l1_control, @function
ov7x20_get_v4l1_control:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	i2c_get_clientdata@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	rsi, QWORD PTR [rax]
	mov	BYTE PTR 7[rsp], 0
	lea	eax, -128[rcx]
	cmp	eax, 8
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	movzx	r8d, BYTE PTR 2[rsi]
	xor	r12d, r12d
	mov	DWORD PTR 4[rbx], r8d
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r9d, r12d
	lea	rdx, .LC1[rip]
	mov	rsi, rbp
	xor	eax, eax
	mov	edi, 3
	call	DDEBUG@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movzx	r8d, BYTE PTR 1[rsi]
	xor	r12d, r12d
	mov	DWORD PTR 4[rbx], r8d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR REG_SAT[rip]
	lea	rdx, 7[rsp]
.L17:
	mov	rdi, rbp
	call	ov_read@PLT
	movzx	r8d, BYTE PTR 7[rsp]
	mov	ecx, DWORD PTR [rbx]
	mov	r12d, eax
	sal	r8d, 8
	mov	DWORD PTR 4[rbx], r8d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	movzx	r8d, BYTE PTR 4[rsi]
	xor	r12d, r12d
	mov	DWORD PTR 4[rbx], r8d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR REG_EXP[rip]
	lea	rdx, 7[rsp]
	mov	rdi, rbp
	call	ov_read@PLT
	movzx	r8d, BYTE PTR 7[rsp]
	mov	ecx, DWORD PTR [rbx]
	mov	r12d, eax
	mov	DWORD PTR 4[rbx], r8d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdx, 7[rsp]
	mov	esi, 100
	mov	rdi, rbp
	call	ov_read@PLT
	movzx	edx, BYTE PTR 7[rsp]
	mov	edi, DWORD PTR ctab[rip]
	mov	esi, 16
	mov	r12d, eax
	call	ov7x20_lut_find@PLT
	mov	ecx, DWORD PTR [rbx]
	sal	eax, 12
	mov	DWORD PTR 4[rbx], eax
	mov	r8d, eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR REG_BRT[rip]
	lea	rdx, 7[rsp]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L7:
	movzx	r8d, BYTE PTR [rsi]
	xor	r12d, r12d
	mov	DWORD PTR 4[rbx], r8d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	movzx	r8d, BYTE PTR 3[rsi]
	xor	r12d, r12d
	mov	DWORD PTR 4[rbx], r8d
	jmp	.L13
.L2:
	lea	rdx, .LC0[rip]
	mov	rsi, rbp
	mov	edi, 2
	xor	eax, eax
	call	DDEBUG@PLT
	mov	r12d, DWORD PTR EPERM[rip]
	neg	r12d
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ov7x20_get_v4l1_control, .-ov7x20_get_v4l1_control
	.comm	ctab,4,4
	.comm	REG_SAT,4,4
	.comm	REG_EXP,4,4
	.comm	REG_BRT,4,4
	.comm	EPERM,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_ov7x20.c_ov7x20_get_v4l1_control.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"control not supported: %d\000"
	.align	2
.LC1:
	.ascii	"id=%d, arg=%d, rc=%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ov7x20_get_v4l1_control, %function
ov7x20_get_v4l1_control:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r3, .L20
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	bl	i2c_get_clientdata
	mov	r1, #0
	ldr	r3, [r4]
	ldr	r0, [r0]
	sub	r2, r3, #128
	strb	r1, [sp, #11]
	cmp	r2, #8
	ldrls	pc, [pc, r2, asl #2]
	b	.L2
.L4:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	mov	r6, #0
	ldrb	r2, [r0, #1]	@ zero_extendqisi2
	str	r2, [r4, #4]
.L13:
	stm	sp, {r2, r6}
	mov	r1, r5
	mov	r0, #3
	ldr	r2, .L20+4
	bl	DDEBUG
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L20+8
.L17:
	ldr	r1, [r3]
	add	r2, sp, #11
	mov	r0, r5
	bl	ov_read
	ldrb	r2, [sp, #11]	@ zero_extendqisi2
	mov	r6, r0
	lsl	r2, r2, #8
	ldr	r3, [r4]
	str	r2, [r4, #4]
	b	.L13
.L11:
	ldrb	r2, [r0, #4]	@ zero_extendqisi2
	mov	r6, #0
	str	r2, [r4, #4]
	b	.L13
.L10:
	ldr	r3, .L20+12
	add	r2, sp, #11
	ldr	r1, [r3]
	mov	r0, r5
	bl	ov_read
	ldrb	r2, [sp, #11]	@ zero_extendqisi2
	mov	r6, r0
	ldr	r3, [r4]
	str	r2, [r4, #4]
	b	.L13
.L9:
	mov	r1, #100
	add	r2, sp, #11
	mov	r0, r5
	bl	ov_read
	ldr	r3, .L20+16
	ldrb	r2, [sp, #11]	@ zero_extendqisi2
	mov	r6, r0
	mov	r1, #16
	ldr	r0, [r3]
	bl	ov7x20_lut_find
	lsl	r2, r0, #12
	ldr	r3, [r4]
	str	r2, [r4, #4]
	b	.L13
.L8:
	ldr	r3, .L20+20
	b	.L17
.L7:
	ldrb	r2, [r0]	@ zero_extendqisi2
	mov	r6, #0
	str	r2, [r4, #4]
	b	.L13
.L6:
	ldrb	r2, [r0, #3]	@ zero_extendqisi2
	mov	r6, #0
	str	r2, [r4, #4]
	b	.L13
.L5:
	ldrb	r2, [r0, #2]	@ zero_extendqisi2
	mov	r6, #0
	str	r2, [r4, #4]
	b	.L13
.L19:
	bl	__stack_chk_fail
.L2:
	mov	r1, r5
	mov	r0, #2
	ldr	r2, .L20+24
	bl	DDEBUG
	ldr	r3, .L20+28
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	.LC1
	.word	REG_SAT
	.word	REG_EXP
	.word	ctab
	.word	REG_BRT
	.word	.LC0
	.word	EPERM
	.size	ov7x20_get_v4l1_control, .-ov7x20_get_v4l1_control
	.comm	ctab,4,4
	.comm	REG_SAT,4,4
	.comm	REG_EXP,4,4
	.comm	REG_BRT,4,4
	.comm	EPERM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
