	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_set_effect            ## -- Begin function camif_hw_set_effect
	.p2align	4, 0x90
_camif_hw_set_effect:                   ## @camif_hw_set_effect
	.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	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	_camif_hw_set_effect.colorfx(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	_camif_hw_set_effect.colorfx+4(%rip), %r14
	xorl	%r13d, %r13d
	leaq	_camif_hw_set_effect.colorfx(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%r14)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$16, %r14
	cmpq	%rax, %r13
	jb	LBB0_3
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
LBB0_6:
	leaq	_camif_hw_set_effect.colorfx(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jne	LBB0_7
## %bb.12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_S3C_CAMIF_REG_CIIMGEFF
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_camif_read
	movq	_CIIMGEFF_FIN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%r13d, %eax
	shlq	$4, %rax
	orl	8(%rax,%r14), %ecx
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_S3C6400_CAMIF_IP_REV@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jl	LBB0_11
## %bb.8:
	movq	_CIIMGEFF_IE_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$131, %r15d
	jne	LBB0_10
## %bb.9:
	notl	%eax
	andl	%eax, %ecx
	jmp	LBB0_11
LBB0_10:
	orl	%eax, %ecx
LBB0_11:
	movq	_CIIMGEFF_PAT_CBCR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	shll	$13, %r12d
	orl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	orl	%eax, %r12d
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_S3C_CAMIF_REG_CIIMGEFF
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_camif_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @camif_hw_set_effect.colorfx
_camif_hw_set_effect.colorfx:
	.long	131                             ## 0x83
	.long	139                             ## 0x8b
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	134                             ## 0x86
	.long	141                             ## 0x8d
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	130                             ## 0x82
	.long	141                             ## 0x8d
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	132                             ## 0x84
	.long	137                             ## 0x89
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	135                             ## 0x87
	.long	140                             ## 0x8c
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	133                             ## 0x85
	.long	138                             ## 0x8a
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	128                             ## 0x80
	.long	136                             ## 0x88
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	129                             ## 0x81
	.long	141                             ## 0x8d
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_CIIMGEFF_FIN_MASK,4,2          ## @CIIMGEFF_FIN_MASK
	.comm	_S3C6400_CAMIF_IP_REV,8,3       ## @S3C6400_CAMIF_IP_REV
	.comm	_CIIMGEFF_IE_ENABLE_MASK,4,2    ## @CIIMGEFF_IE_ENABLE_MASK
	.comm	_CIIMGEFF_PAT_CBCR_MASK,4,2     ## @CIIMGEFF_PAT_CBCR_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_set_effect            ; -- Begin function camif_hw_set_effect
	.p2align	2
_camif_hw_set_effect:                   ; @camif_hw_set_effect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _camif_hw_set_effect.colorfx@PAGE
Lloh1:
	add	x0, x0, _camif_hw_set_effect.colorfx@PAGEOFF
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x25, _camif_hw_set_effect.colorfx@PAGE+4
Lloh3:
	add	x25, x25, _camif_hw_set_effect.colorfx@PAGEOFF+4
Lloh4:
	adrp	x23, _camif_hw_set_effect.colorfx@PAGE
Lloh5:
	add	x23, x23, _camif_hw_set_effect.colorfx@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	w8, w22
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	mov	x0, x23
	bl	_ARRAY_SIZE
	add	x25, x25, #16
	cmp	x24, w0, uxtw
	b.lo	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w24, #0
LBB0_5:
Lloh6:
	adrp	x23, _camif_hw_set_effect.colorfx@PAGE
Lloh7:
	add	x23, x23, _camif_hw_set_effect.colorfx@PAGEOFF
	mov	x0, x23
	bl	_ARRAY_SIZE
	cmp	w24, w0
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_S3C_CAMIF_REG_CIIMGEFF
	mov	x1, x0
	mov	x0, x19
	bl	_camif_read
Lloh8:
	adrp	x8, _CIIMGEFF_FIN_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CIIMGEFF_FIN_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w0, w8
	add	x9, x23, w24, uxtw #4
	ldr	w9, [x9, #8]
	orr	w8, w8, w9
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _S3C6400_CAMIF_IP_REV@GOTPAGE
Lloh12:
	ldr	x10, [x10, _S3C6400_CAMIF_IP_REV@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.lt	LBB0_9
; %bb.8:
Lloh14:
	adrp	x9, _CIIMGEFF_IE_ENABLE_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CIIMGEFF_IE_ENABLE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w8, w8, w9
	cmp	w22, #131
	csel	w8, w10, w8, ne
LBB0_9:
Lloh17:
	adrp	x9, _CIIMGEFF_PAT_CBCR_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CIIMGEFF_PAT_CBCR_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	bic	w8, w8, w9
	orr	w9, w21, w20, lsl #13
	orr	w20, w9, w8
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_S3C_CAMIF_REG_CIIMGEFF
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_camif_write
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @camif_hw_set_effect.colorfx
_camif_hw_set_effect.colorfx:
	.long	131                             ; 0x83
	.long	139                             ; 0x8b
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	134                             ; 0x86
	.long	141                             ; 0x8d
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	130                             ; 0x82
	.long	141                             ; 0x8d
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	132                             ; 0x84
	.long	137                             ; 0x89
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	135                             ; 0x87
	.long	140                             ; 0x8c
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	133                             ; 0x85
	.long	138                             ; 0x8a
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	128                             ; 0x80
	.long	136                             ; 0x88
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	129                             ; 0x81
	.long	141                             ; 0x8d
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_CIIMGEFF_FIN_MASK,4,2          ; @CIIMGEFF_FIN_MASK
	.comm	_S3C6400_CAMIF_IP_REV,8,3       ; @S3C6400_CAMIF_IP_REV
	.comm	_CIIMGEFF_IE_ENABLE_MASK,4,2    ; @CIIMGEFF_IE_ENABLE_MASK
	.comm	_CIIMGEFF_PAT_CBCR_MASK,4,2     ; @CIIMGEFF_PAT_CBCR_MASK
.subsections_via_symbols
