	.file	"extr_m5602_ov9650.c_ov9650_init_controls.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not initialize controls\n"
	.text
	.p2align 4
	.globl	ov9650_init_controls
	.type	ov9650_init_controls, @function
ov9650_init_controls:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 80[rdi]
	mov	esi, 9
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	QWORD PTR 72[rdi], r12
	mov	rdi, r12
	call	v4l2_ctrl_handler_init@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	xor	ecx, ecx
	push	1
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR V4L2_CID_AUTO_WHITE_BALANCE[rip]
	mov	r9d, 1
	mov	r8d, 1
	lea	rsi, ov9650_ctrl_ops[rip]
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_RED_BALANCE[rip]
	mov	rdi, r12
	xor	ecx, ecx
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR RED_GAIN_DEFAULT[rip]
	mov	r9d, 1
	mov	r8d, 255
	lea	rsi, ov9650_ctrl_ops[rip]
	mov	DWORD PTR [rsp], eax
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_BLUE_BALANCE[rip]
	mov	rdi, r12
	xor	ecx, ecx
	mov	QWORD PTR 64[rbp], rax
	mov	eax, DWORD PTR BLUE_GAIN_DEFAULT[rip]
	mov	r9d, 1
	mov	r8d, 255
	lea	rsi, ov9650_ctrl_ops[rip]
	mov	DWORD PTR [rsp], eax
	call	v4l2_ctrl_new_std@PLT
	mov	rdi, r12
	xor	r8d, r8d
	mov	ecx, 1
	mov	QWORD PTR 56[rbp], rax
	mov	r9d, DWORD PTR V4L2_EXPOSURE_AUTO[rip]
	lea	rsi, ov9650_ctrl_ops[rip]
	mov	edx, DWORD PTR V4L2_CID_EXPOSURE_AUTO[rip]
	call	v4l2_ctrl_new_std_menu@PLT
	mov	edx, DWORD PTR V4L2_CID_EXPOSURE[rip]
	mov	rdi, r12
	xor	ecx, ecx
	mov	QWORD PTR 16[rbp], rax
	mov	eax, DWORD PTR EXPOSURE_DEFAULT[rip]
	mov	r9d, 4
	mov	r8d, 511
	lea	rsi, ov9650_ctrl_ops[rip]
	mov	DWORD PTR [rsp], eax
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_AUTOGAIN[rip]
	mov	rdi, r12
	xor	ecx, ecx
	mov	QWORD PTR 48[rbp], rax
	mov	r9d, 1
	mov	r8d, 1
	lea	rsi, ov9650_ctrl_ops[rip]
	mov	DWORD PTR [rsp], 1
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_GAIN[rip]
	mov	rdi, r12
	xor	ecx, ecx
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR GAIN_DEFAULT[rip]
	mov	r9d, 1
	mov	r8d, 1023
	lea	rsi, ov9650_ctrl_ops[rip]
	mov	DWORD PTR [rsp], eax
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_HFLIP[rip]
	mov	rdi, r12
	xor	ecx, ecx
	mov	QWORD PTR 40[rbp], rax
	mov	r9d, 1
	mov	r8d, 1
	lea	rsi, ov9650_ctrl_ops[rip]
	mov	DWORD PTR [rsp], 0
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_VFLIP[rip]
	mov	rdi, r12
	xor	ecx, ecx
	mov	QWORD PTR 0[rbp], rax
	mov	r9d, 1
	mov	r8d, 1
	lea	rsi, ov9650_ctrl_ops[rip]
	mov	DWORD PTR [rsp], 0
	call	v4l2_ctrl_new_std@PLT
	mov	r12d, DWORD PTR 80[rbp]
	mov	QWORD PTR 32[rbp], rax
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
	test	r12d, r12d
	jne	.L6
	lea	rsi, 24[rbp]
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, 3
	call	v4l2_ctrl_auto_cluster@PLT
	lea	rsi, 16[rbp]
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, 2
	call	v4l2_ctrl_auto_cluster@PLT
	lea	rsi, 8[rbp]
	xor	ecx, ecx
	xor	edx, edx
	mov	edi, 2
	call	v4l2_ctrl_auto_cluster@PLT
	mov	rsi, rbp
	mov	edi, 2
	call	v4l2_ctrl_cluster@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	mov	r12d, DWORD PTR 80[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ov9650_init_controls, .-ov9650_init_controls
	.comm	ov9650_ctrl_ops,4,4
	.comm	V4L2_EXPOSURE_AUTO,4,4
	.comm	V4L2_CID_VFLIP,4,4
	.comm	V4L2_CID_RED_BALANCE,4,4
	.comm	V4L2_CID_HFLIP,4,4
	.comm	V4L2_CID_GAIN,4,4
	.comm	V4L2_CID_EXPOSURE_AUTO,4,4
	.comm	V4L2_CID_EXPOSURE,4,4
	.comm	V4L2_CID_BLUE_BALANCE,4,4
	.comm	V4L2_CID_AUTO_WHITE_BALANCE,4,4
	.comm	V4L2_CID_AUTOGAIN,4,4
	.comm	RED_GAIN_DEFAULT,4,4
	.comm	GAIN_DEFAULT,4,4
	.comm	EXPOSURE_DEFAULT,4,4
	.comm	BLUE_GAIN_DEFAULT,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_m5602_ov9650.c_ov9650_init_controls.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not initialize controls\012\000"
	.text
	.align	2
	.global	ov9650_init_controls
	.syntax unified
	.arm
	.fpu softvfp
	.type	ov9650_init_controls, %function
ov9650_init_controls:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, #1
	add	r6, r0, #40
	sub	sp, sp, #20
	mov	r4, r0
	mov	r1, #9
	str	r6, [r0, #36]
	mov	r0, r6
	bl	v4l2_ctrl_handler_init
	ldr	r3, .L7
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r5, [sp]
	ldr	r2, [r3]
	ldr	r1, .L7+4
	mov	r3, #0
	mov	r0, r6
	bl	v4l2_ctrl_new_std
	mov	r7, #255
	ldr	r2, .L7+8
	ldr	r3, .L7+12
	ldr	r2, [r2]
	str	r0, [r4, #12]
	str	r5, [sp, #4]
	str	r7, [sp]
	str	r2, [sp, #8]
	ldr	r2, [r3]
	ldr	r1, .L7+4
	mov	r3, #0
	mov	r0, r6
	bl	v4l2_ctrl_new_std
	ldr	r2, .L7+16
	ldr	r3, .L7+20
	ldr	r2, [r2]
	str	r5, [sp, #4]
	str	r7, [sp]
	str	r0, [r4, #32]
	str	r2, [sp, #8]
	ldr	r2, [r3]
	ldr	r1, .L7+4
	mov	r3, #0
	mov	r0, r6
	bl	v4l2_ctrl_new_std
	mov	r7, #0
	ldr	r3, .L7+24
	ldr	r2, .L7+28
	ldr	r3, [r3]
	str	r0, [r4, #28]
	str	r3, [sp, #4]
	str	r7, [sp]
	mov	r3, r5
	ldr	r2, [r2]
	ldr	r1, .L7+4
	mov	r0, r6
	bl	v4l2_ctrl_new_std_menu
	mov	ip, #4
	ldr	r3, .L7+32
	ldr	r1, .L7+36
	ldr	r3, [r3]
	ldr	r2, .L7+40
	str	r0, [r4, #8]
	str	ip, [sp, #4]
	str	r3, [sp, #8]
	ldr	r2, [r2]
	mov	r3, r7
	str	r1, [sp]
	mov	r0, r6
	ldr	r1, .L7+4
	bl	v4l2_ctrl_new_std
	ldr	r2, .L7+44
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r5, [sp]
	mov	r3, r7
	ldr	r2, [r2]
	ldr	r1, .L7+4
	str	r0, [r4, #24]
	mov	r0, r6
	bl	v4l2_ctrl_new_std
	ldr	r3, .L7+48
	ldr	r1, .L7+52
	ldr	r3, [r3]
	ldr	r2, .L7+56
	str	r5, [sp, #4]
	str	r0, [r4, #4]
	str	r3, [sp, #8]
	ldr	r2, [r2]
	mov	r3, r7
	str	r1, [sp]
	mov	r0, r6
	ldr	r1, .L7+4
	bl	v4l2_ctrl_new_std
	stmib	sp, {r5, r7}
	ldr	r2, .L7+60
	str	r5, [sp]
	mov	r3, r7
	ldr	r2, [r2]
	ldr	r1, .L7+4
	str	r0, [r4, #20]
	mov	r0, r6
	bl	v4l2_ctrl_new_std
	mov	r1, r0
	stmib	sp, {r5, r7}
	ldr	r2, .L7+64
	str	r5, [sp]
	mov	r3, r7
	str	r1, [r4]
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, .L7+4
	bl	v4l2_ctrl_new_std
	ldr	r5, [r4, #40]
	str	r0, [r4, #16]
	cmp	r5, r7
	bne	.L6
	mov	r3, r5
	mov	r2, r5
	add	r1, r4, #12
	mov	r0, #3
	bl	v4l2_ctrl_auto_cluster
	mov	r3, r5
	mov	r2, r5
	add	r1, r4, #8
	mov	r0, #2
	bl	v4l2_ctrl_auto_cluster
	mov	r3, r5
	mov	r2, r5
	add	r1, r4, #4
	mov	r0, #2
	bl	v4l2_ctrl_auto_cluster
	mov	r1, r4
	mov	r0, #2
	bl	v4l2_ctrl_cluster
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	ldr	r0, .L7+68
	bl	pr_err
	ldr	r5, [r4, #40]
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	V4L2_CID_AUTO_WHITE_BALANCE
	.word	ov9650_ctrl_ops
	.word	RED_GAIN_DEFAULT
	.word	V4L2_CID_RED_BALANCE
	.word	BLUE_GAIN_DEFAULT
	.word	V4L2_CID_BLUE_BALANCE
	.word	V4L2_EXPOSURE_AUTO
	.word	V4L2_CID_EXPOSURE_AUTO
	.word	EXPOSURE_DEFAULT
	.word	511
	.word	V4L2_CID_EXPOSURE
	.word	V4L2_CID_AUTOGAIN
	.word	GAIN_DEFAULT
	.word	1023
	.word	V4L2_CID_GAIN
	.word	V4L2_CID_HFLIP
	.word	V4L2_CID_VFLIP
	.word	.LC0
	.size	ov9650_init_controls, .-ov9650_init_controls
	.comm	ov9650_ctrl_ops,4,4
	.comm	V4L2_EXPOSURE_AUTO,4,4
	.comm	V4L2_CID_VFLIP,4,4
	.comm	V4L2_CID_RED_BALANCE,4,4
	.comm	V4L2_CID_HFLIP,4,4
	.comm	V4L2_CID_GAIN,4,4
	.comm	V4L2_CID_EXPOSURE_AUTO,4,4
	.comm	V4L2_CID_EXPOSURE,4,4
	.comm	V4L2_CID_BLUE_BALANCE,4,4
	.comm	V4L2_CID_AUTO_WHITE_BALANCE,4,4
	.comm	V4L2_CID_AUTOGAIN,4,4
	.comm	RED_GAIN_DEFAULT,4,4
	.comm	GAIN_DEFAULT,4,4
	.comm	EXPOSURE_DEFAULT,4,4
	.comm	BLUE_GAIN_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
