	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_ext_ctrls
_check_ext_ctrls:                       ## @check_ext_ctrls
	.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	%rdi, %r15
	movq	32(%rdi), %rax
	movq	$0, (%rax)
	xorl	%r14d, %r14d
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	24(%r15), %rcx
	addq	$8, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rax
	movq	$0, (%rax)
	incq	%rdx
	movq	(%r15), %rax
	addq	$16, %rcx
	cmpq	%rax, %rdx
	jb	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	movq	8(%r15), %rcx
	testl	%esi, %esi
	jne	LBB0_6
## %bb.5:
	movq	_V4L2_CID_PRIVATE_BASE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
LBB0_6:
	movl	$1, %r14d
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.7:
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%r12), %edi
	callq	_V4L2_CTRL_ID2WHICH
	cmpq	8(%r15), %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	addq	$16, %r12
	cmpq	(%r15), %rbx
	jb	LBB0_9
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, 16(%r15)
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CID_PRIVATE_BASE,8,3      ## @V4L2_CID_PRIVATE_BASE
	.no_dead_strip	_check_ext_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_ext_ctrls
_check_ext_ctrls:                       ; @check_ext_ctrls
	.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, x0
	ldr	x8, [x0, #32]
	str	xzr, [x8]
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x8, [x19, #24]
	add	x10, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x10], #16
	str	xzr, [x8]
	add	x9, x9, #1
	ldr	x8, [x19]
	cmp	x9, x8
	b.lo	LBB0_2
LBB0_3:
	ldr	x9, [x19, #8]
	cbnz	w1, LBB0_6
; %bb.4:
Lloh0:
	adrp	x10, _V4L2_CID_PRIVATE_BASE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_CID_PRIVATE_BASE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_10
; %bb.7:
	mov	x21, #0
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x21]
	bl	_V4L2_CTRL_ID2WHICH
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	add	x21, x21, #16
	cmp	x20, x8
	b.lo	LBB0_8
LBB0_10:
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
	str	x20, [x19, #16]
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_PRIVATE_BASE,8,3      ; @V4L2_CID_PRIVATE_BASE
	.no_dead_strip	_check_ext_ctrls
.subsections_via_symbols
