	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_ext_ctrls
_prepare_ext_ctrls:                     ## @prepare_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rsi)
	je	LBB0_11
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %r15
	addq	$8, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	_V4L2_CTRL_ID_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	andq	(%rax,%r12,8), %rbx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, 8(%r15)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%r15)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_V4L2_CTRL_ID2CLASS
	cmpq	16(%r15), %rax
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_V4L2_CID_PRIVATE_BASE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_v4l2_ctrl_find
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_V4L2_CTRL_FLAG_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%r13)
	movl	$0, -8(%r13)
	incq	%r12
	addq	$16, %r13
	cmpq	(%r15), %r12
	jb	LBB0_2
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_ID_MASK,8,3          ## @V4L2_CTRL_ID_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_CID_PRIVATE_BASE,8,3      ## @V4L2_CID_PRIVATE_BASE
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ## @V4L2_CTRL_FLAG_DISABLED
	.no_dead_strip	_prepare_ext_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_ext_ctrls
_prepare_ext_ctrls:                     ; @prepare_ext_ctrls
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x1]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	x23, #0
	add	x24, x2, #8
Lloh0:
	adrp	x25, _V4L2_CTRL_ID_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _V4L2_CTRL_ID_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _V4L2_CID_PRIVATE_BASE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _V4L2_CID_PRIVATE_BASE@GOTPAGEOFF]
Lloh4:
	adrp	x27, _V4L2_CTRL_FLAG_DISABLED@GOTPAGE
Lloh5:
	ldr	x27, [x27, _V4L2_CTRL_FLAG_DISABLED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x23, lsl #3]
	cbz	w19, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x23, [x20, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x25]
	and	x22, x9, x8
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_V4L2_CTRL_ID2CLASS
	ldr	x8, [x20, #16]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	cmp	x22, x8
	b.hs	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_v4l2_ctrl_find
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x0]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [x24]
	stur	wzr, [x24, #-8]
	add	x23, x23, #1
	ldr	x8, [x20]
	add	x24, x24, #16
	cmp	x23, x8
	b.lo	LBB0_2
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_ID_MASK,8,3          ; @V4L2_CTRL_ID_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_CID_PRIVATE_BASE,8,3      ; @V4L2_CID_PRIVATE_BASE
	.comm	_V4L2_CTRL_FLAG_DISABLED,4,2    ; @V4L2_CTRL_FLAG_DISABLED
	.no_dead_strip	_prepare_ext_ctrls
.subsections_via_symbols
