	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun8i_de3_ccsc_set_coefficients
_sun8i_de3_ccsc_set_coefficients:       ## @sun8i_de3_ccsc_set_coefficients
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpl	$129, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_5
## %bb.3:
	movq	_yvu2rgb_de3@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_yuv2rgb_de3@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movl	%r8d, %edx
	movq	(%rax,%rdx,8), %rax
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	_DE3_BLD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SUN50I_MIXER_BLEND_CSC_COEFF
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movl	$12, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_bulk_write              ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_WARN                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_yuv2rgb_de3,8,3                ## @yuv2rgb_de3
	.comm	_yvu2rgb_de3,8,3                ## @yvu2rgb_de3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong CSC mode specified.\n"

	.comm	_DE3_BLD_BASE,4,2               ## @DE3_BLD_BASE
	.no_dead_strip	_sun8i_de3_ccsc_set_coefficients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun8i_de3_ccsc_set_coefficients
_sun8i_de3_ccsc_set_coefficients:       ; @sun8i_de3_ccsc_set_coefficients
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _yvu2rgb_de3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _yvu2rgb_de3@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _yuv2rgb_de3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _yuv2rgb_de3@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	ldr	x8, [x8, w4, uxtw #3]
	ldr	x20, [x8, w3, uxtw #3]
Lloh4:
	adrp	x8, _DE3_BLD_BASE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DE3_BLD_BASE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SUN50I_MIXER_BLEND_CSC_COEFF
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	mov	w3, #12
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regmap_bulk_write
LBB0_5:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_WARN
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_yuv2rgb_de3,8,3                ; @yuv2rgb_de3
	.comm	_yvu2rgb_de3,8,3                ; @yvu2rgb_de3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong CSC mode specified.\n"

	.comm	_DE3_BLD_BASE,4,2               ; @DE3_BLD_BASE
	.no_dead_strip	_sun8i_de3_ccsc_set_coefficients
.subsections_via_symbols
