	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_ctrls
_validate_ctrls:                        ## @validate_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
	movl	4(%rdi), %eax
	movl	%eax, (%rdi)
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movl	%ecx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_V4L2_CTRL_FLAG_READ_ONLY@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movl	%eax, %ecx
	addq	$8, %r15
	cmpq	%rcx, %r14
	jae	LBB0_15
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r14,8), %rcx
	movq	(%rcx), %rdi
	movl	%r14d, (%rbx)
	movl	(%rdi), %ecx
	testl	%ecx, (%rdx)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_V4L2_CTRL_FLAG_GRABBED@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%rdi)
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rax
	movq	8(%rbx), %rsi
	movq	_V4L2_CTRL_TYPE_INTEGER64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	%r15, %rsi
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	%r15, %rsi
	addq	$4, %rsi
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_validate_new
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %eax
	movq	_V4L2_CTRL_FLAG_READ_ONLY@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	_EACCES@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	_EBUSY@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_4:
	movl	24(%rdi), %edx
	movq	%rax, %rdi
	callq	_dprintk
	xorl	%eax, %eax
	subl	(%rbx), %eax
LBB0_16:
	addq	$8, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"control id 0x%x is read-only\n"

	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_V4L2_CTRL_FLAG_GRABBED,4,2     ## @V4L2_CTRL_FLAG_GRABBED
L_.str.1:                               ## @.str.1
	.asciz	"control id 0x%x is grabbed, cannot set\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_CTRL_TYPE_INTEGER64,8,3   ## @V4L2_CTRL_TYPE_INTEGER64
	.no_dead_strip	_validate_ctrls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_ctrls
_validate_ctrls:                        ; @validate_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, [x0, #4]
	str	w8, [x0]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	x25, #0
	mov	x26, #0
Lloh0:
	adrp	x27, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGE
Lloh1:
	ldr	x27, [x27, _V4L2_CTRL_FLAG_READ_ONLY@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
Lloh4:
	adrp	x28, _V4L2_CTRL_TYPE_INTEGER64@GOTPAGE
Lloh5:
	ldr	x28, [x28, _V4L2_CTRL_TYPE_INTEGER64@GOTPAGEOFF]
Lloh6:
	adrp	x24, _V4L2_CTRL_FLAG_GRABBED@GOTPAGE
Lloh7:
	ldr	x24, [x24, _V4L2_CTRL_FLAG_GRABBED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	add	x25, x25, #8
	cmp	x26, w8, uxtw
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, x26, lsl #3]
	ldr	x0, [x9]
	str	w26, [x23]
	ldr	w9, [x0]
	ldr	w10, [x27]
	tst	w10, w9
	b.ne	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w21, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x24]
	tst	w10, w9
	b.ne	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x0, #16]
	cbnz	x9, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0, #8]
	ldr	x9, [x28]
	ldr	x10, [x23, #8]
	add	x10, x10, x25
	add	x11, x10, #4
	cmp	x8, x9
	csel	x1, x11, x10, eq
	bl	_validate_new
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23, #4]
	b	LBB0_2
LBB0_9:
	mov	w0, #0
	b	LBB0_13
LBB0_10:
Lloh8:
	adrp	x21, _EACCES@GOTPAGE
Lloh9:
	ldr	x21, [x21, _EACCES@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh12:
	adrp	x21, _EBUSY@GOTPAGE
Lloh13:
	ldr	x21, [x21, _EBUSY@GOTPAGEOFF]
LBB0_12:
	ldr	w2, [x0, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_dprintk
	ldr	w8, [x21]
	neg	w0, w8
LBB0_13:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CTRL_FLAG_READ_ONLY,4,2   ; @V4L2_CTRL_FLAG_READ_ONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"control id 0x%x is read-only\n"

	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_V4L2_CTRL_FLAG_GRABBED,4,2     ; @V4L2_CTRL_FLAG_GRABBED
l_.str.1:                               ; @.str.1
	.asciz	"control id 0x%x is grabbed, cannot set\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_CTRL_TYPE_INTEGER64,8,3   ; @V4L2_CTRL_TYPE_INTEGER64
	.no_dead_strip	_validate_ctrls
.subsections_via_symbols
