	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_ctrls_activate            ## -- Begin function fimc_ctrls_activate
	.p2align	4, 0x90
_fimc_ctrls_activate:                   ## @fimc_ctrls_activate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 64(%rdi)
	je	LBB0_7
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	72(%rdi), %rax
	movq	_FMT_HAS_ALPHA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	(%rax), %r15d
	movl	16(%rdi), %edi
	callq	_mutex_lock
	movq	40(%rbx), %rdi
	movl	%r14d, %esi
	callq	_v4l2_ctrl_activate
	movq	32(%rbx), %rdi
	movl	%r14d, %esi
	callq	_v4l2_ctrl_activate
	movq	24(%rbx), %rdi
	movl	%r14d, %esi
	callq	_v4l2_ctrl_activate
	movq	48(%rbx), %rdi
	movl	%r14d, %esi
	callq	_v4l2_ctrl_activate
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	testl	%r14d, %r14d
	setne	%al
	testl	%r15d, %r15d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %esi
	callq	_v4l2_ctrl_activate
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	movq	48(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_fimc_set_color_effect
	movq	40(%rbx), %rax
	movl	(%rax), %eax
	movq	24(%rbx), %rdx
	movq	32(%rbx), %rcx
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_FIMC_REG_CIIMGEFF_FIN_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
LBB0_6:
	movl	%eax, 8(%rbx)
	movl	%ecx, 4(%rbx)
	movl	%edx, (%rbx)
	movl	16(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FMT_HAS_ALPHA,4,2              ## @FMT_HAS_ALPHA
	.comm	_FIMC_REG_CIIMGEFF_FIN_BYPASS,4,2 ## @FIMC_REG_CIIMGEFF_FIN_BYPASS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_ctrls_activate            ; -- Begin function fimc_ctrls_activate
	.p2align	2
_fimc_ctrls_activate:                   ; @fimc_ctrls_activate
	.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
	ldr	w8, [x0, #64]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #72]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _FMT_HAS_ALPHA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FMT_HAS_ALPHA@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x0, #16]
	bl	_mutex_lock
	ldr	x0, [x19, #40]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #32]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #48]
	mov	x1, x20
	bl	_v4l2_ctrl_activate
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_3
; %bb.2:
	and	w8, w22, w21
	cmp	w20, #0
	ccmp	w8, #0, #4, ne
	cset	w1, ne
	bl	_v4l2_ctrl_activate
LBB0_3:
	cbz	w20, LBB0_6
; %bb.4:
	ldr	x8, [x19, #48]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_fimc_set_color_effect
	ldp	x9, x8, [x19, #32]
	ldr	w8, [x8]
	ldr	x10, [x19, #24]
	ldr	w9, [x9]
	ldr	w10, [x10]
	b	LBB0_7
LBB0_5:
	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
LBB0_6:
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
Lloh3:
	adrp	x11, _FIMC_REG_CIIMGEFF_FIN_BYPASS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _FIMC_REG_CIIMGEFF_FIN_BYPASS@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	str	w11, [x19, #12]
LBB0_7:
	stp	w9, w8, [x19, #4]
	str	w10, [x19]
	ldr	w0, [x19, #16]
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FMT_HAS_ALPHA,4,2              ; @FMT_HAS_ALPHA
	.comm	_FIMC_REG_CIIMGEFF_FIN_BYPASS,4,2 ; @FIMC_REG_CIIMGEFF_FIN_BYPASS
.subsections_via_symbols
