	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_or_set_ext_ctrls
_try_or_set_ext_ctrls:                  ## @try_or_set_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	4(%rsi), %eax
	movl	%eax, (%rsi)
	testq	%rax, %rax
	je	LBB0_35
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r12
	leaq	8(%rdx), %rsi
	xorl	%edx, %edx
	movq	_V4L2_CTRL_FLAG_READ_ONLY@GOTPCREL(%rip), %r9
	movq	_V4L2_CTRL_FLAG_GRABBED@GOTPCREL(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, (%r12)
	movl	(%r9), %edi
	testl	%edi, (%rbx)
	jne	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	addq	$16, %rsi
	cmpq	%rdx, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rbx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %ebx
	testl	%ebx, (%r9)
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, (%r8)
	je	LBB0_4
## %bb.14:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_36
LBB0_5:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_user_to_new@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_cluster_walk
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_31
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_v4l2_ctrl_unlock
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_cluster_done
	testl	%r14d, %r14d
	jne	LBB0_36
LBB0_34:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movl	4(%r12), %eax
	cmpq	%rax, %rbx
	jae	LBB0_35
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
	movq	%rbx, %rax
	shlq	$4, %rax
	movq	8(%r15,%rax), %r13
	movq	16(%r13), %rcx
	movq	(%rcx), %r14
	movl	%ebx, (%r12)
	cmpq	$0, (%r15,%rax)
	jne	LBB0_34
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_v4l2_ctrl_lock
	movl	4(%r14), %edx
	testq	%rdx, %rdx
	je	LBB0_30
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r14), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%esi, %esi
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=2
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_30
LBB0_27:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	$0, 8(%rsi)
	jmp	LBB0_29
LBB0_31:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_try_or_set_control_cluster
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_new_to_user@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_cluster_walk
	movl	%eax, %r14d
	jmp	LBB0_33
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	andl	$-4, %edx
	xorl	%esi, %esi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=2
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	je	LBB0_25
LBB0_16:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	$0, 8(%rdi)
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	8(%rcx,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	$0, 8(%rdi)
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	16(%rcx,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	$0, 8(%rdi)
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	24(%rcx,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	$0, 8(%rdi)
	jmp	LBB0_24
LBB0_35:
	xorl	%r14d, %r14d
LBB0_36:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ## @V4L2_CTRL_FLAG_READ_ONLY
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_V4L2_CTRL_FLAG_GRABBED,4,2     ## @V4L2_CTRL_FLAG_GRABBED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_user_to_new,4,2                ## @user_to_new
	.comm	_new_to_user,4,2                ## @new_to_user
	.no_dead_strip	_try_or_set_ext_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_or_set_ext_ctrls
_try_or_set_ext_ctrls:                  ; @try_or_set_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	w8, [x1, #4]
	str	w8, [x1]
	cbz	w8, LBB0_22
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x9, #0
	mov	w10, #8
Lloh0:
	adrp	x11, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGE
Lloh1:
	ldr	x11, [x11, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGEOFF]
Lloh2:
	adrp	x12, _V4L2_CTRL_FLAG_GRABBED@GOTPAGE
Lloh3:
	ldr	x12, [x12, _V4L2_CTRL_FLAG_GRABBED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x21]
	ldr	w13, [x13]
	ldr	w14, [x11]
	tst	w14, w13
	b.ne	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x20, x10]
	cbz	w19, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w13, [x13]
	ldr	w14, [x11]
	tst	w14, w13
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x12]
	tst	w14, w13
	b.eq	LBB0_3
; %bb.7:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _EACCES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_23
LBB0_10:
	mov	x22, #0
Lloh8:
	adrp	x26, _user_to_new@GOTPAGE
Lloh9:
	ldr	x26, [x26, _user_to_new@GOTPAGEOFF]
Lloh10:
	adrp	x27, _new_to_user@GOTPAGE
Lloh11:
	ldr	x27, [x27, _new_to_user@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w3, [x26]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_cluster_walk
	mov	x25, x0
	cbz	w0, LBB0_20
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	bl	_v4l2_ctrl_unlock
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_cluster_done
	cbnz	w25, LBB0_23
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x22, x22, #1
	ldr	w8, [x21, #4]
	cmp	x22, x8
	b.hs	LBB0_22
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	add	x8, x20, x22, lsl #4
	ldp	x8, x23, [x8]
	ldr	x9, [x23, #16]
	ldr	x24, [x9]
	str	w22, [x21]
	cbnz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	bl	_v4l2_ctrl_lock
	ldr	w8, [x24, #4]
	cbz	w8, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [x24, #16]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_11
LBB0_18:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9]
	cbz	x10, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	str	xzr, [x10, #8]
	b	LBB0_17
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	mov	x1, x19
	bl	_try_or_set_control_cluster
	mov	x25, x0
	cbnz	w0, LBB0_12
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w3, [x27]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_cluster_walk
	mov	x25, x0
	b	LBB0_12
LBB0_22:
	mov	w25, #0
LBB0_23:
	mov	x0, x25
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ; @V4L2_CTRL_FLAG_READ_ONLY
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_V4L2_CTRL_FLAG_GRABBED,4,2     ; @V4L2_CTRL_FLAG_GRABBED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_user_to_new,4,2                ; @user_to_new
	.comm	_new_to_user,4,2                ; @new_to_user
	.no_dead_strip	_try_or_set_ext_ctrls
.subsections_via_symbols
