	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fimc_s_ctrl
___fimc_s_ctrl:                         ## @__fimc_s_ctrl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_V4L2_CTRL_FLAG_INACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rsi)
	jne	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	40(%rdi), %r14
	movl	4(%rsi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_14
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	8(%rbx), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_14
LBB0_5:
	movq	8(%r14), %r12
	movq	%r14, %rdi
	callq	_fimc_capture_pending
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	32(%r15), %esi
	movl	28(%r15), %edx
	movl	20(%r15), %r8d
	movl	24(%r15), %ecx
	movl	8(%rbx), %r9d
	movq	%r15, %rdi
	callq	_fimc_check_scaler_ratio
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:
	movl	8(%rbx), %eax
	cmpl	$270, %eax                      ## imm = 0x10E
	je	LBB0_10
## %bb.9:
	cmpl	$90, %eax
	jne	LBB0_11
LBB0_10:
	cmpl	$0, (%r12)
	je	LBB0_7
LBB0_11:
	movl	%eax, 8(%r15)
	jmp	LBB0_14
LBB0_3:
	movl	8(%rbx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_14
LBB0_13:
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_fimc_set_color_effect
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_14
LBB0_12:
	movl	8(%rbx), %eax
	movl	%eax, 16(%r15)
LBB0_14:
	movq	_FIMC_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r15)
	movq	_ST_CAPT_APPLY_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_13
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ## @V4L2_CTRL_FLAG_INACTIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FIMC_PARAMS,4,2                ## @FIMC_PARAMS
	.comm	_ST_CAPT_APPLY_CFG,4,2          ## @ST_CAPT_APPLY_CFG
	.no_dead_strip	___fimc_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fimc_s_ctrl
___fimc_s_ctrl:                         ; @__fimc_s_ctrl
	.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, [x1]
Lloh0:
	adrp	x9, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_CTRL_FLAG_INACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #40]
	ldr	w8, [x1, #4]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x21, #8]
	str	w8, [x19, #4]
	b	LBB0_13
LBB0_4:
	ldr	x22, [x20, #8]
	mov	x0, x20
	bl	_fimc_capture_pending
	cbz	w0, LBB0_6
; %bb.5:
	ldp	w2, w1, [x19, #28]
	ldp	w4, w3, [x19, #20]
	ldr	w5, [x21, #8]
	mov	x0, x19
	bl	_fimc_check_scaler_ratio
	cbnz	w0, LBB0_16
LBB0_6:
	ldr	w8, [x21, #8]
	cmp	w8, #270
	b.eq	LBB0_8
; %bb.7:
	cmp	w8, #90
	b.ne	LBB0_9
LBB0_8:
	ldr	w9, [x22]
	cbz	w9, LBB0_16
LBB0_9:
	str	w8, [x19, #8]
	b	LBB0_13
LBB0_10:
	ldr	w8, [x21, #8]
	str	w8, [x19]
	b	LBB0_13
LBB0_11:
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_fimc_set_color_effect
	cbnz	w0, LBB0_15
	b	LBB0_13
LBB0_12:
	ldr	w8, [x21, #8]
	str	w8, [x19, #16]
LBB0_13:
Lloh5:
	adrp	x8, _FIMC_PARAMS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FIMC_PARAMS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
Lloh8:
	adrp	x8, _ST_CAPT_APPLY_CFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ST_CAPT_APPLY_CFG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
LBB0_14:
	mov	w0, #0
LBB0_15:
	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_16:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_V4L2_CTRL_FLAG_INACTIVE,4,2    ; @V4L2_CTRL_FLAG_INACTIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FIMC_PARAMS,4,2                ; @FIMC_PARAMS
	.comm	_ST_CAPT_APPLY_CFG,4,2          ; @ST_CAPT_APPLY_CFG
	.no_dead_strip	___fimc_s_ctrl
.subsections_via_symbols
