	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_queryctrl                 ## -- Begin function cx18_queryctrl
	.p2align	4, 0x90
_cx18_queryctrl:                        ## @cx18_queryctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	(%rsi), %r14
	movq	_ctrl_classes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rdx), %esi
	callq	_v4l2_ctrl_next
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%rbx)
	cmpl	$132, %eax
	jg	LBB0_6
## %bb.1:
	leal	-129(%rax), %ecx
	cmpl	$4, %ecx
	jb	LBB0_5
## %bb.2:
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_v4l2_ctrl_query_fill           ## TAILCALL
LBB0_6:
	addl	$-133, %eax
	cmpl	$6, %eax
	jae	LBB0_7
LBB0_5:
	movl	4(%r14), %edi
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_queryctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	callq	_v4l2_subdev_call
LBB0_8:
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.9:
	movq	_V4L2_CTRL_FLAG_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%rbx)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cx2341x_ctrl_query
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ctrl_classes,4,2               ## @ctrl_classes
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_core,4,2                       ## @core
	.comm	_queryctrl,4,2                  ## @queryctrl
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ## @V4L2_CTRL_FLAG_DISABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_queryctrl                 ; -- Begin function cx18_queryctrl
	.p2align	2
_cx18_queryctrl:                        ; @cx18_queryctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	x20, [x1]
Lloh0:
	adrp	x8, _ctrl_classes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ctrl_classes@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x2]
	bl	_v4l2_ctrl_next
	str	w0, [x19]
	cmp	w0, #132
	b.gt	LBB0_5
; %bb.1:
	sub	w8, w0, #129
	cmp	w8, #4
	b.lo	LBB0_6
; %bb.2:
	cbz	w0, LBB0_9
; %bb.3:
	cmp	w0, #128
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_ctrl_query_fill
LBB0_5:
	sub	w8, w0, #133
	cmp	w8, #6
	b.hs	LBB0_10
LBB0_6:
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _core@GOTPAGE
Lloh4:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _queryctrl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _queryctrl@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_8
LBB0_7:
	mov	w0, #0
Lloh9:
	adrp	x8, _V4L2_CTRL_FLAG_DISABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_DISABLED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_cx2341x_ctrl_query
	cbnz	w0, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ctrl_classes,4,2               ; @ctrl_classes
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_core,4,2                       ; @core
	.comm	_queryctrl,4,2                  ; @queryctrl
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ; @V4L2_CTRL_FLAG_DISABLED
.subsections_via_symbols
