	.file	"extr_cx18-controls.c_cx18_queryctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cx18_queryctrl
	.type	cx18_queryctrl, @function
cx18_queryctrl:
.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, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12, QWORD PTR [rsi]
	mov	edi, DWORD PTR ctrl_classes[rip]
	mov	esi, DWORD PTR [rdx]
	call	v4l2_ctrl_next@PLT
	mov	DWORD PTR 0[rbp], eax
	test	eax, eax
	je	.L22
	cmp	eax, 132
	jg	.L4
	cmp	eax, 128
	jg	.L17
	jne	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	r8d, r8d
	xor	ecx, ecx
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	edx, edx
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	v4l2_ctrl_query_fill@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	sub	eax, 133
	cmp	eax, 5
	ja	.L7
.L17:
	mov	edi, DWORD PTR 4[r12]
	mov	edx, DWORD PTR queryctrl[rip]
	mov	rcx, rbp
	mov	esi, DWORD PTR core[rip]
	call	v4l2_subdev_call@PLT
	test	eax, eax
	jne	.L19
.L20:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	call	cx2341x_ctrl_query@PLT
	test	eax, eax
	je	.L20
.L19:
	mov	eax, DWORD PTR V4L2_CTRL_FLAG_DISABLED[rip]
	or	DWORD PTR 16[rbp], eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	cx18_queryctrl, .-cx18_queryctrl
	.comm	queryctrl,4,4
	.comm	ctrl_classes,4,4
	.comm	core,4,4
	.comm	V4L2_CTRL_FLAG_DISABLED,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_cx18-controls.c_cx18_queryctrl.c"
	.text
	.align	2
	.global	cx18_queryctrl
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx18_queryctrl, %function
cx18_queryctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r2
	mov	r3, r1
	ldr	r2, .L22
	ldr	r1, [r4]
	ldr	r0, [r2]
	sub	sp, sp, #12
	ldr	r5, [r3]
	bl	v4l2_ctrl_next
	cmp	r0, #0
	str	r0, [r4]
	beq	.L21
	cmp	r0, #132
	bgt	.L4
	cmp	r0, #128
	bgt	.L5
	bne	.L7
	mov	r3, #0
	mov	r0, r4
	mov	r2, r3
	mov	r1, r3
	str	r3, [sp]
	bl	v4l2_ctrl_query_fill
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L4:
	sub	r0, r0, #133
	cmp	r0, #5
	bhi	.L7
.L5:
	ldr	r3, .L22+4
	ldr	r2, .L22+8
	ldr	r1, [r3]
	ldr	r0, [r5, #4]
	mov	r3, r4
	ldr	r2, [r2]
	bl	v4l2_subdev_call
	cmp	r0, #0
	bne	.L19
.L10:
	mov	r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L21:
	ldr	r3, .L22+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	mov	r0, r5
	mov	r1, r4
	bl	cx2341x_ctrl_query
	cmp	r0, #0
	beq	.L10
	ldr	r2, .L22+16
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	mov	r0, #0
	orr	r3, r3, r2
	str	r3, [r4, #8]
	b	.L1
.L19:
	mov	r0, #0
	ldr	r2, .L22+16
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L23:
	.align	2
.L22:
	.word	ctrl_classes
	.word	core
	.word	queryctrl
	.word	EINVAL
	.word	V4L2_CTRL_FLAG_DISABLED
	.size	cx18_queryctrl, .-cx18_queryctrl
	.comm	queryctrl,4,4
	.comm	ctrl_classes,4,4
	.comm	core,4,4
	.comm	V4L2_CTRL_FLAG_DISABLED,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
