	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_auto_cluster         ## -- Begin function v4l2_ctrl_auto_cluster
	.p2align	4, 0x90
_v4l2_ctrl_auto_cluster:                ## @v4l2_ctrl_auto_cluster
	.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	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	(%rsi), %r12
	callq	_v4l2_ctrl_cluster
	xorl	%edi, %edi
	cmpl	$2, %r14d
	setb	%dil
	callq	_WARN_ON
	movl	$1, %edi
	cmpq	%r13, (%r12)
	jg	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	%r13, 8(%r12)
	setl	%dil
LBB0_2:
	callq	_WARN_ON
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	movq	_g_volatile_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_has_op
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_5
LBB0_3:
	xorl	%edi, %edi
LBB0_5:
	callq	_WARN_ON
	movl	$1, 16(%r12)
	movl	%r15d, 20(%r12)
	movq	%r13, 32(%r12)
	movq	_V4L2_CTRL_FLAG_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
	movq	%r12, %rdi
	callq	_is_cur_manual
	movq	_V4L2_CTRL_FLAG_INACTIVE@GOTPCREL(%rip), %rcx
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movq	_V4L2_CTRL_FLAG_VOLATILE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
LBB0_7:
	orl	(%rcx), %r15d
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovel	%r15d, %ecx
	cmpl	$2, %r14d
	jb	LBB0_18
## %bb.8:
	movl	%r14d, %eax
	decq	%rax
	movl	$1, %edx
	cmpl	$2, %r14d
	jne	LBB0_9
LBB0_15:
	testb	$1, %al
	je	LBB0_18
## %bb.16:
	movq	(%rbx,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	orl	%ecx, 24(%rax)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rax, %rsi
	andq	$-2, %rsi
	negq	%rsi
	movl	$1, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	(%rsi,%rdx), %rdi
	addq	$2, %rdi
	addq	$2, %rdx
	cmpq	$1, %rdi
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	orl	%ecx, 24(%rdi)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	orl	%ecx, 24(%rdi)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_g_volatile_ctrl,4,2            ## @g_volatile_ctrl
	.comm	_V4L2_CTRL_FLAG_UPDATE,4,2      ## @V4L2_CTRL_FLAG_UPDATE
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ## @V4L2_CTRL_FLAG_INACTIVE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ## @V4L2_CTRL_FLAG_VOLATILE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_ctrl_auto_cluster         ; -- Begin function v4l2_ctrl_auto_cluster
	.p2align	2
_v4l2_ctrl_auto_cluster:                ; @v4l2_ctrl_auto_cluster
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x1]
	bl	_v4l2_ctrl_cluster
	cmp	w20, #2
	cset	w0, lo
	bl	_WARN_ON
	ldr	x8, [x22]
	cmp	x8, x23
	b.le	LBB0_3
; %bb.1:
	mov	w0, #1
	bl	_WARN_ON
	cbz	w21, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _g_volatile_ctrl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_volatile_ctrl@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_has_op
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_5
LBB0_3:
	ldr	x8, [x22, #8]
	cmp	x8, x23
	cset	w0, lt
	bl	_WARN_ON
	cbnz	w21, LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_WARN_ON
	mov	w8, #1
	stp	w8, w21, [x22, #16]
	str	x23, [x22, #32]
Lloh3:
	adrp	x8, _V4L2_CTRL_FLAG_UPDATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_UPDATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x22, #24]
	orr	w8, w9, w8
	str	w8, [x22, #24]
	mov	x0, x22
	bl	_is_cur_manual
Lloh6:
	adrp	x8, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_VOLATILE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	cmp	w20, #2
	b.lo	LBB0_10
; %bb.6:
	mov	w10, w20
	add	x9, x19, #8
	sub	x10, x10, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x11, #24]
	orr	w12, w12, w8
	str	w12, [x11, #24]
	b	LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_g_volatile_ctrl,4,2            ; @g_volatile_ctrl
	.comm	_V4L2_CTRL_FLAG_UPDATE,4,2      ; @V4L2_CTRL_FLAG_UPDATE
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ; @V4L2_CTRL_FLAG_INACTIVE
	.comm	_V4L2_CTRL_FLAG_VOLATILE,4,2    ; @V4L2_CTRL_FLAG_VOLATILE
.subsections_via_symbols
