	.file	"extr_go7007-v4l2.c_go7007_v4l2_ctrl_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Could not register controls\n"
	.text
	.p2align 4
	.globl	go7007_v4l2_ctrl_init
	.type	go7007_v4l2_ctrl_init, @function
go7007_v4l2_ctrl_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 22
	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
	lea	rbx, 64[rdi]
	mov	rdi, rbx
	call	v4l2_ctrl_handler_init@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	xor	ecx, ecx
	xor	esi, esi
	push	15
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR V4L2_CID_MPEG_VIDEO_GOP_SIZE[rip]
	mov	r9d, 1
	mov	rdi, rbx
	mov	r8d, 34
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_MPEG_VIDEO_GOP_CLOSURE[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	QWORD PTR 56[rbp], rax
	mov	r9d, 1
	mov	r8d, 1
	mov	rdi, rbx
	mov	DWORD PTR [rsp], 1
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_MPEG_VIDEO_BITRATE[rip]
	xor	esi, esi
	mov	rdi, rbx
	mov	QWORD PTR 48[rbp], rax
	mov	r9d, 1
	mov	r8d, 10000000
	mov	ecx, 64000
	mov	DWORD PTR [rsp], 9800000
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_MPEG_VIDEO_B_FRAMES[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	QWORD PTR 40[rbp], rax
	mov	r9d, 2
	mov	r8d, 2
	mov	rdi, rbx
	mov	DWORD PTR [rsp], 0
	call	v4l2_ctrl_new_std@PLT
	mov	edx, DWORD PTR V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	QWORD PTR 32[rbp], rax
	mov	r9d, 1
	mov	r8d, 1
	mov	rdi, rbx
	mov	DWORD PTR [rsp], 1
	call	v4l2_ctrl_new_std@PLT
	mov	ecx, DWORD PTR V4L2_MPEG_VIDEO_ASPECT_16x9[rip]
	xor	r8d, r8d
	xor	esi, esi
	mov	QWORD PTR 24[rbp], rax
	mov	r9d, DWORD PTR V4L2_MPEG_VIDEO_ASPECT_1x1[rip]
	mov	rdi, rbx
	mov	edx, DWORD PTR V4L2_CID_MPEG_VIDEO_ASPECT[rip]
	call	v4l2_ctrl_new_std_menu@PLT
	mov	edx, DWORD PTR V4L2_CID_JPEG_ACTIVE_MARKER[rip]
	xor	ecx, ecx
	xor	r9d, r9d
	mov	QWORD PTR 16[rbp], rax
	mov	r8d, DWORD PTR V4L2_JPEG_ACTIVE_MARKER_DQT[rip]
	xor	esi, esi
	mov	rdi, rbx
	or	r8d, DWORD PTR V4L2_JPEG_ACTIVE_MARKER_DHT[rip]
	mov	DWORD PTR [rsp], r8d
	call	v4l2_ctrl_new_std@PLT
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR V4L2_CTRL_FLAG_READ_ONLY[rip]
	or	DWORD PTR [rax], edx
.L2:
	xor	edx, edx
	lea	rsi, go7007_pixel_threshold0_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_motion_threshold0_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_mb_threshold0_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_pixel_threshold1_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_motion_threshold1_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_mb_threshold1_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_pixel_threshold2_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_motion_threshold2_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_mb_threshold2_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_pixel_threshold3_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_motion_threshold3_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_mb_threshold3_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	xor	edx, edx
	lea	rsi, go7007_mb_regions_ctrl[rip]
	mov	rdi, rbx
	call	v4l2_ctrl_new_custom@PLT
	mov	ecx, DWORD PTR V4L2_DETECT_MD_MODE_THRESHOLD_GRID[rip]
	xor	esi, esi
	mov	rdi, rbx
	mov	r8d, 1
	mov	r9d, DWORD PTR V4L2_DETECT_MD_MODE_DISABLED[rip]
	mov	edx, DWORD PTR V4L2_CID_DETECT_MD_MODE[rip]
	sal	r8d, cl
	mov	ecx, DWORD PTR V4L2_DETECT_MD_MODE_REGION_GRID[rip]
	call	v4l2_ctrl_new_std_menu@PLT
	mov	r12d, DWORD PTR 64[rbp]
	mov	QWORD PTR 8[rbp], rax
	test	r12d, r12d
	jne	.L10
	mov	QWORD PTR 0[rbp], rbx
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	v4l2_err@PLT
	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
	.cfi_endproc
.LFE0:
	.size	go7007_v4l2_ctrl_init, .-go7007_v4l2_ctrl_init
	.comm	go7007_pixel_threshold3_ctrl,4,4
	.comm	go7007_pixel_threshold2_ctrl,4,4
	.comm	go7007_pixel_threshold1_ctrl,4,4
	.comm	go7007_pixel_threshold0_ctrl,4,4
	.comm	go7007_motion_threshold3_ctrl,4,4
	.comm	go7007_motion_threshold2_ctrl,4,4
	.comm	go7007_motion_threshold1_ctrl,4,4
	.comm	go7007_motion_threshold0_ctrl,4,4
	.comm	go7007_mb_threshold3_ctrl,4,4
	.comm	go7007_mb_threshold2_ctrl,4,4
	.comm	go7007_mb_threshold1_ctrl,4,4
	.comm	go7007_mb_threshold0_ctrl,4,4
	.comm	go7007_mb_regions_ctrl,4,4
	.comm	V4L2_MPEG_VIDEO_ASPECT_1x1,4,4
	.comm	V4L2_MPEG_VIDEO_ASPECT_16x9,4,4
	.comm	V4L2_JPEG_ACTIVE_MARKER_DQT,4,4
	.comm	V4L2_JPEG_ACTIVE_MARKER_DHT,4,4
	.comm	V4L2_DETECT_MD_MODE_THRESHOLD_GRID,4,4
	.comm	V4L2_DETECT_MD_MODE_REGION_GRID,4,4
	.comm	V4L2_DETECT_MD_MODE_DISABLED,4,4
	.comm	V4L2_CTRL_FLAG_READ_ONLY,4,4
	.comm	V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER,4,4
	.comm	V4L2_CID_MPEG_VIDEO_GOP_SIZE,4,4
	.comm	V4L2_CID_MPEG_VIDEO_GOP_CLOSURE,4,4
	.comm	V4L2_CID_MPEG_VIDEO_B_FRAMES,4,4
	.comm	V4L2_CID_MPEG_VIDEO_BITRATE,4,4
	.comm	V4L2_CID_MPEG_VIDEO_ASPECT,4,4
	.comm	V4L2_CID_JPEG_ACTIVE_MARKER,4,4
	.comm	V4L2_CID_DETECT_MD_MODE,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_go7007-v4l2.c_go7007_v4l2_ctrl_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not register controls\012\000"
	.text
	.align	2
	.global	go7007_v4l2_ctrl_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	go7007_v4l2_ctrl_init, %function
go7007_v4l2_ctrl_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	add	r4, r0, #32
	sub	sp, sp, #20
	mov	r5, r0
	mov	r1, #22
	mov	r0, r4
	bl	v4l2_ctrl_handler_init
	mov	r7, #1
	mov	ip, #15
	mov	r1, #34
	mov	r3, #0
	stm	sp, {r1, r7, ip}
	ldr	r2, .L11
	mov	r1, r3
	ldr	r2, [r2]
	mov	r0, r4
	bl	v4l2_ctrl_new_std
	mov	r3, #0
	ldr	r2, .L11+4
	str	r0, [r5, #28]
	str	r7, [sp, #8]
	str	r7, [sp, #4]
	str	r7, [sp]
	mov	r1, r3
	ldr	r2, [r2]
	mov	r0, r4
	bl	v4l2_ctrl_new_std
	ldr	r1, .L11+8
	ldr	r3, .L11+12
	ldr	r2, .L11+16
	str	r7, [sp, #4]
	ldr	r2, [r2]
	str	r0, [r5, #24]
	str	r1, [sp, #8]
	str	r3, [sp]
	mov	r1, #0
	mov	r3, #64000
	mov	r0, r4
	bl	v4l2_ctrl_new_std
	mov	r6, #0
	mov	r2, #2
	ldr	ip, .L11+20
	str	r0, [r5, #20]
	str	r6, [sp, #8]
	str	r2, [sp, #4]
	str	r2, [sp]
	ldr	r2, [ip]
	mov	r3, r6
	mov	r1, r6
	mov	r0, r4
	bl	v4l2_ctrl_new_std
	ldr	r2, .L11+24
	str	r7, [sp, #8]
	str	r7, [sp, #4]
	str	r7, [sp]
	mov	r3, r6
	mov	r1, r6
	ldr	r2, [r2]
	str	r0, [r5, #16]
	mov	r0, r4
	bl	v4l2_ctrl_new_std
	ldr	r2, .L11+28
	ldr	r3, .L11+32
	ldr	r1, [r2]
	ldr	r2, .L11+36
	str	r6, [sp]
	str	r0, [r5, #12]
	str	r1, [sp, #4]
	ldr	r3, [r3]
	mov	r1, r6
	ldr	r2, [r2]
	mov	r0, r4
	bl	v4l2_ctrl_new_std_menu
	ldr	r2, .L11+40
	ldr	r3, .L11+44
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L11+48
	orr	r3, r3, r1
	str	r6, [sp, #4]
	str	r0, [r5, #8]
	str	r3, [sp, #8]
	str	r3, [sp]
	ldr	r2, [r2]
	mov	r3, r6
	mov	r1, r6
	mov	r0, r4
	bl	v4l2_ctrl_new_std
	cmp	r0, #0
	ldrne	r2, .L11+52
	ldrne	r3, [r0]
	ldrne	r2, [r2]
	ldr	r1, .L11+56
	orrne	r3, r3, r2
	strne	r3, [r0]
	mov	r2, #0
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+60
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+64
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+68
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+72
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+76
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+80
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+84
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+88
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+92
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+96
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+100
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r2, #0
	ldr	r1, .L11+104
	mov	r0, r4
	bl	v4l2_ctrl_new_custom
	mov	r3, #1
	ldr	r1, .L11+108
	ldr	r2, .L11+112
	ldr	ip, [r1]
	ldr	r0, [r2]
	lsl	r3, r3, ip
	ldr	r1, .L11+116
	ldr	r2, .L11+120
	str	r0, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r1]
	mov	r0, r4
	mov	r1, #0
	ldr	r2, [r2]
	bl	v4l2_ctrl_new_std_menu
	ldr	r6, [r5, #32]
	str	r0, [r5, #4]
	cmp	r6, #0
	streq	r4, [r5]
	bne	.L10
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	mov	r0, r5
	ldr	r1, .L11+124
	bl	v4l2_err
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	.align	2
.L11:
	.word	V4L2_CID_MPEG_VIDEO_GOP_SIZE
	.word	V4L2_CID_MPEG_VIDEO_GOP_CLOSURE
	.word	9800000
	.word	10000000
	.word	V4L2_CID_MPEG_VIDEO_BITRATE
	.word	V4L2_CID_MPEG_VIDEO_B_FRAMES
	.word	V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER
	.word	V4L2_MPEG_VIDEO_ASPECT_1x1
	.word	V4L2_MPEG_VIDEO_ASPECT_16x9
	.word	V4L2_CID_MPEG_VIDEO_ASPECT
	.word	V4L2_JPEG_ACTIVE_MARKER_DHT
	.word	V4L2_JPEG_ACTIVE_MARKER_DQT
	.word	V4L2_CID_JPEG_ACTIVE_MARKER
	.word	V4L2_CTRL_FLAG_READ_ONLY
	.word	go7007_pixel_threshold0_ctrl
	.word	go7007_motion_threshold0_ctrl
	.word	go7007_mb_threshold0_ctrl
	.word	go7007_pixel_threshold1_ctrl
	.word	go7007_motion_threshold1_ctrl
	.word	go7007_mb_threshold1_ctrl
	.word	go7007_pixel_threshold2_ctrl
	.word	go7007_motion_threshold2_ctrl
	.word	go7007_mb_threshold2_ctrl
	.word	go7007_pixel_threshold3_ctrl
	.word	go7007_motion_threshold3_ctrl
	.word	go7007_mb_threshold3_ctrl
	.word	go7007_mb_regions_ctrl
	.word	V4L2_DETECT_MD_MODE_THRESHOLD_GRID
	.word	V4L2_DETECT_MD_MODE_DISABLED
	.word	V4L2_DETECT_MD_MODE_REGION_GRID
	.word	V4L2_CID_DETECT_MD_MODE
	.word	.LC0
	.size	go7007_v4l2_ctrl_init, .-go7007_v4l2_ctrl_init
	.comm	go7007_pixel_threshold3_ctrl,4,4
	.comm	go7007_pixel_threshold2_ctrl,4,4
	.comm	go7007_pixel_threshold1_ctrl,4,4
	.comm	go7007_pixel_threshold0_ctrl,4,4
	.comm	go7007_motion_threshold3_ctrl,4,4
	.comm	go7007_motion_threshold2_ctrl,4,4
	.comm	go7007_motion_threshold1_ctrl,4,4
	.comm	go7007_motion_threshold0_ctrl,4,4
	.comm	go7007_mb_threshold3_ctrl,4,4
	.comm	go7007_mb_threshold2_ctrl,4,4
	.comm	go7007_mb_threshold1_ctrl,4,4
	.comm	go7007_mb_threshold0_ctrl,4,4
	.comm	go7007_mb_regions_ctrl,4,4
	.comm	V4L2_MPEG_VIDEO_ASPECT_1x1,4,4
	.comm	V4L2_MPEG_VIDEO_ASPECT_16x9,4,4
	.comm	V4L2_JPEG_ACTIVE_MARKER_DQT,4,4
	.comm	V4L2_JPEG_ACTIVE_MARKER_DHT,4,4
	.comm	V4L2_DETECT_MD_MODE_THRESHOLD_GRID,4,4
	.comm	V4L2_DETECT_MD_MODE_REGION_GRID,4,4
	.comm	V4L2_DETECT_MD_MODE_DISABLED,4,4
	.comm	V4L2_CTRL_FLAG_READ_ONLY,4,4
	.comm	V4L2_CID_MPEG_VIDEO_REPEAT_SEQ_HEADER,4,4
	.comm	V4L2_CID_MPEG_VIDEO_GOP_SIZE,4,4
	.comm	V4L2_CID_MPEG_VIDEO_GOP_CLOSURE,4,4
	.comm	V4L2_CID_MPEG_VIDEO_B_FRAMES,4,4
	.comm	V4L2_CID_MPEG_VIDEO_BITRATE,4,4
	.comm	V4L2_CID_MPEG_VIDEO_ASPECT,4,4
	.comm	V4L2_CID_JPEG_ACTIVE_MARKER,4,4
	.comm	V4L2_CID_DETECT_MD_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
