	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_backend_apply_color_correction
_sun4i_backend_apply_color_correction:  ## @sun4i_backend_apply_color_correction
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	(%rbx), %edi
	movq	_SUN4I_BACKEND_OCCTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_BACKEND_OCCTL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	(%rbx), %r14d
	xorl	%edi, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	_sunxi_rgb2yuv_coef@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$1, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	4(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$2, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	8(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$3, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	12(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$4, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	16(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$5, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	20(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$6, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	24(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$7, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	28(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$8, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	32(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$9, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	36(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %r14d
	movl	$10, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	40(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%rbx), %ebx
	movl	$11, %edi
	callq	_SUN4I_BACKEND_OCRCOEF_REG
	movq	(%r15), %rcx
	movl	44(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Applying RGB to YUV color correction\n"

	.comm	_SUN4I_BACKEND_OCCTL_REG,4,2    ## @SUN4I_BACKEND_OCCTL_REG
	.comm	_SUN4I_BACKEND_OCCTL_ENABLE,4,2 ## @SUN4I_BACKEND_OCCTL_ENABLE
	.comm	_sunxi_rgb2yuv_coef,8,3         ## @sunxi_rgb2yuv_coef
	.no_dead_strip	_sun4i_backend_apply_color_correction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_backend_apply_color_correction
_sun4i_backend_apply_color_correction:  ; @sun4i_backend_apply_color_correction
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _SUN4I_BACKEND_OCCTL_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUN4I_BACKEND_OCCTL_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SUN4I_BACKEND_OCCTL_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUN4I_BACKEND_OCCTL_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #0
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
Lloh8:
	adrp	x21, _sunxi_rgb2yuv_coef@GOTPAGE
Lloh9:
	ldr	x21, [x21, _sunxi_rgb2yuv_coef@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #1
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #2
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #8]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #3
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #12]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #4
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #16]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #5
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #20]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #6
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #24]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #7
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #28]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #8
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #32]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #9
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #36]
	mov	x0, x20
	bl	_regmap_write
	ldr	w20, [x19]
	mov	w0, #10
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #40]
	mov	x0, x20
	bl	_regmap_write
	ldr	w19, [x19]
	mov	w0, #11
	bl	_SUN4I_BACKEND_OCRCOEF_REG
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, #44]
	mov	x0, x19
	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	_regmap_write
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Applying RGB to YUV color correction\n"

	.comm	_SUN4I_BACKEND_OCCTL_REG,4,2    ; @SUN4I_BACKEND_OCCTL_REG
	.comm	_SUN4I_BACKEND_OCCTL_ENABLE,4,2 ; @SUN4I_BACKEND_OCCTL_ENABLE
	.comm	_sunxi_rgb2yuv_coef,8,3         ; @sunxi_rgb2yuv_coef
	.no_dead_strip	_sun4i_backend_apply_color_correction
.subsections_via_symbols
