	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_queryctrl
_vidioc_queryctrl:                      ## @vidioc_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	(%rsi), %r14
	movl	(%rdx), %r12d
	movq	%r14, %rdi
	callq	_check_dev
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_ctrl_classes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_v4l2_ctrl_next
	movl	%eax, (%r15)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_3:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r12d, (%r15)
	movq	_V4L2_CID_BASE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_11
## %bb.4:
	movq	_V4L2_CID_LASTP1@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_11
## %bb.5:
	movq	_CX231XX_CTLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.12:
	movq	_cx231xx_ctls@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%rdx)
	je	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_13
	jmp	LBB0_15
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	cmpl	%eax, %ecx
	jne	LBB0_8
LBB0_15:
	movq	_no_ctl@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_8:
	movq	_cx231xx_ctls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, %ecx
	shlq	$4, %rcx
	movups	(%rax,%rcx), %xmm0
	movups	%xmm0, (%r15)
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_queryctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_call_all
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	je	LBB0_9
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctrl_classes,4,2               ## @ctrl_classes
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CID_BASE,4,2              ## @V4L2_CID_BASE
	.comm	_V4L2_CID_LASTP1,4,2            ## @V4L2_CID_LASTP1
	.comm	_CX231XX_CTLS,4,2               ## @CX231XX_CTLS
	.comm	_cx231xx_ctls,8,3               ## @cx231xx_ctls
	.comm	_no_ctl,16,3                    ## @no_ctl
	.comm	_core,4,2                       ## @core
	.comm	_queryctrl,4,2                  ## @queryctrl
	.no_dead_strip	_vidioc_queryctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_queryctrl
_vidioc_queryctrl:                      ; @vidioc_queryctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	ldr	x20, [x1]
	ldr	w21, [x2]
	mov	x0, x20
	bl	_check_dev
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ctrl_classes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ctrl_classes@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_v4l2_ctrl_next
	str	w0, [x19]
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	w21, [x19]
Lloh3:
	adrp	x8, _V4L2_CID_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _V4L2_CID_LASTP1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_CID_LASTP1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #0, ge
	b.lt	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh12:
	adrp	x8, _CX231XX_CTLS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CX231XX_CTLS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x9, #0
Lloh15:
	adrp	x10, _cx231xx_ctls@GOTPAGE
Lloh16:
	ldr	x10, [x10, _cx231xx_ctls@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w21
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_7
	b	LBB0_11
LBB0_9:
	mov	w9, #0
LBB0_10:
	cmp	w9, w8
	b.ne	LBB0_12
LBB0_11:
	mov	w0, #0
Lloh18:
	adrp	x8, _no_ctl@GOTPAGE
Lloh19:
	ldr	x8, [x8, _no_ctl@GOTPAGEOFF]
Lloh20:
	ldr	q0, [x8]
	str	q0, [x19]
	b	LBB0_4
LBB0_12:
Lloh21:
	adrp	x8, _cx231xx_ctls@GOTPAGE
Lloh22:
	ldr	x8, [x8, _cx231xx_ctls@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	q0, [x8, w9, uxtw #4]
	str	q0, [x19]
Lloh24:
	adrp	x8, _core@GOTPAGE
Lloh25:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _queryctrl@GOTPAGE
Lloh28:
	ldr	x8, [x8, _queryctrl@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_call_all
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.13:
	mov	w0, #0
	b	LBB0_4
	.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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ctrl_classes,4,2               ; @ctrl_classes
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CID_BASE,4,2              ; @V4L2_CID_BASE
	.comm	_V4L2_CID_LASTP1,4,2            ; @V4L2_CID_LASTP1
	.comm	_CX231XX_CTLS,4,2               ; @CX231XX_CTLS
	.comm	_cx231xx_ctls,8,3               ; @cx231xx_ctls
	.comm	_no_ctl,16,3                    ; @no_ctl
	.comm	_core,4,2                       ; @core
	.comm	_queryctrl,4,2                  ; @queryctrl
	.no_dead_strip	_vidioc_queryctrl
.subsections_via_symbols
