	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_frontend_update_formats  ## -- Begin function sun4i_frontend_update_formats
	.p2align	4, 0x90
_sun4i_frontend_update_formats:         ## @sun4i_frontend_update_formats
	.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	%edx, %r12d
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r15
	movl	(%rax), %r13d
	leaq	-52(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sun4i_frontend_drm_format_to_input_fmt
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_14
LBB0_2:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_sun4i_frontend_drm_format_to_input_mode
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_14
LBB0_4:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sun4i_frontend_drm_format_to_input_sequence
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_14
LBB0_6:
	leaq	-56(%rbp), %rsi
	movl	%r12d, %edi
	callq	_sun4i_frontend_drm_format_to_output_fmt
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_14
LBB0_8:
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_CH0_HORZPHASE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_CH1_HORZPHASE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	16(%rax), %edx
	callq	_regmap_write
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_CH0_VERTPHASE0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_CH1_VERTPHASE0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_CH0_VERTPHASE1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %edx
	callq	_regmap_write
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_CH1_VERTPHASE1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	24(%rax), %rax
	movl	4(%rax), %edx
	callq	_regmap_write
	cmpq	$0, (%r15)
	je	LBB0_12
## %bb.9:
	movq	_sunxi_bt601_yuv2rgb_coef@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r12d
	movl	%ebx, %edi
	callq	_SUN4I_FRONTEND_CSC_COEF_REG
	movq	(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	incq	%rbx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_11
	jmp	LBB0_13
LBB0_12:
	movq	_SUN4I_FRONTEND_BYPASS_CSC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_13:
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_BYPASS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_FRONTEND_BYPASS_CSC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	callq	_regmap_update_bits
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_INPUT_FMT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edx
	orl	-48(%rbp), %edx
	orl	-44(%rbp), %edx
	callq	_regmap_write
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_OUTPUT_FMT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edx
	callq	_regmap_write
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid input format\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid input mode\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid pixel sequence\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid output format\n"

	.comm	_SUN4I_FRONTEND_CH0_HORZPHASE_REG,4,2 ## @SUN4I_FRONTEND_CH0_HORZPHASE_REG
	.comm	_SUN4I_FRONTEND_CH1_HORZPHASE_REG,4,2 ## @SUN4I_FRONTEND_CH1_HORZPHASE_REG
	.comm	_SUN4I_FRONTEND_CH0_VERTPHASE0_REG,4,2 ## @SUN4I_FRONTEND_CH0_VERTPHASE0_REG
	.comm	_SUN4I_FRONTEND_CH1_VERTPHASE0_REG,4,2 ## @SUN4I_FRONTEND_CH1_VERTPHASE0_REG
	.comm	_SUN4I_FRONTEND_CH0_VERTPHASE1_REG,4,2 ## @SUN4I_FRONTEND_CH0_VERTPHASE1_REG
	.comm	_SUN4I_FRONTEND_CH1_VERTPHASE1_REG,4,2 ## @SUN4I_FRONTEND_CH1_VERTPHASE1_REG
	.comm	_sunxi_bt601_yuv2rgb_coef,8,3   ## @sunxi_bt601_yuv2rgb_coef
	.comm	_SUN4I_FRONTEND_BYPASS_CSC_EN,4,2 ## @SUN4I_FRONTEND_BYPASS_CSC_EN
	.comm	_SUN4I_FRONTEND_BYPASS_REG,4,2  ## @SUN4I_FRONTEND_BYPASS_REG
	.comm	_SUN4I_FRONTEND_INPUT_FMT_REG,4,2 ## @SUN4I_FRONTEND_INPUT_FMT_REG
	.comm	_SUN4I_FRONTEND_OUTPUT_FMT_REG,4,2 ## @SUN4I_FRONTEND_OUTPUT_FMT_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_frontend_update_formats  ; -- Begin function sun4i_frontend_update_formats
	.p2align	2
_sun4i_frontend_update_formats:         ; @sun4i_frontend_update_formats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x19, x0
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldr	x20, [x8, #8]
	ldr	w23, [x8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_sun4i_frontend_drm_format_to_input_fmt
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_15
LBB0_2:
	add	x2, sp, #4
	mov	x0, x20
	mov	x1, x23
	bl	_sun4i_frontend_drm_format_to_input_mode
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_15
LBB0_4:
	mov	x1, sp
	mov	x0, x20
	bl	_sun4i_frontend_drm_format_to_input_sequence
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_15
LBB0_6:
	add	x1, sp, #12
	mov	x0, x22
	bl	_sun4i_frontend_drm_format_to_output_fmt
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	b	LBB0_15
LBB0_8:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _SUN4I_FRONTEND_CH0_HORZPHASE_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH0_HORZPHASE_REG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	bl	_regmap_write
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _SUN4I_FRONTEND_CH1_HORZPHASE_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH1_HORZPHASE_REG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w2, [x8, #16]
	bl	_regmap_write
Lloh14:
	adrp	x8, _SUN4I_FRONTEND_CH0_VERTPHASE0_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH0_VERTPHASE0_REG@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh16:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w2, [x8]
	bl	_regmap_write
Lloh17:
	adrp	x8, _SUN4I_FRONTEND_CH1_VERTPHASE0_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH1_VERTPHASE0_REG@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh19:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #24]
	ldr	w2, [x8]
	bl	_regmap_write
Lloh20:
	adrp	x8, _SUN4I_FRONTEND_CH0_VERTPHASE1_REG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH0_VERTPHASE1_REG@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh22:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w2, [x8, #4]
	bl	_regmap_write
Lloh23:
	adrp	x8, _SUN4I_FRONTEND_CH1_VERTPHASE1_REG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH1_VERTPHASE1_REG@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh25:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, #24]
	ldr	w2, [x8, #4]
	bl	_regmap_write
	ldr	x8, [x20]
Lloh26:
	adrp	x22, _SUN4I_FRONTEND_BYPASS_CSC_EN@GOTPAGE
Lloh27:
	ldr	x22, [x22, _SUN4I_FRONTEND_BYPASS_CSC_EN@GOTPAGEOFF]
	cbz	x8, LBB0_13
; %bb.9:
Lloh28:
	adrp	x23, _sunxi_bt601_yuv2rgb_coef@GOTPAGE
Lloh29:
	ldr	x23, [x23, _sunxi_bt601_yuv2rgb_coef@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_12
; %bb.10:
	mov	x20, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19]
	mov	x0, x20
	bl	_SUN4I_FRONTEND_CSC_COEF_REG
	mov	x1, x0
	ldr	x8, [x23]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x21
	bl	_regmap_write
	add	x20, x20, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x20, w0, uxtw
	b.lo	LBB0_11
LBB0_12:
	mov	w3, #0
	b	LBB0_14
LBB0_13:
	ldr	w3, [x22]
LBB0_14:
	ldr	w0, [x19]
Lloh30:
	adrp	x8, _SUN4I_FRONTEND_BYPASS_REG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SUN4I_FRONTEND_BYPASS_REG@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_regmap_update_bits
	ldr	w0, [x19]
Lloh33:
	adrp	x8, _SUN4I_FRONTEND_INPUT_FMT_REG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SUN4I_FRONTEND_INPUT_FMT_REG@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldp	w8, w9, [sp, #4]
	orr	w8, w9, w8
	ldr	w9, [sp]
	orr	w2, w8, w9
	bl	_regmap_write
	ldr	w0, [x19]
Lloh36:
	adrp	x8, _SUN4I_FRONTEND_OUTPUT_FMT_REG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SUN4I_FRONTEND_OUTPUT_FMT_REG@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_regmap_write
	mov	w21, #0
LBB0_15:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid input format\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid input mode\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid pixel sequence\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid output format\n"

	.comm	_SUN4I_FRONTEND_CH0_HORZPHASE_REG,4,2 ; @SUN4I_FRONTEND_CH0_HORZPHASE_REG
	.comm	_SUN4I_FRONTEND_CH1_HORZPHASE_REG,4,2 ; @SUN4I_FRONTEND_CH1_HORZPHASE_REG
	.comm	_SUN4I_FRONTEND_CH0_VERTPHASE0_REG,4,2 ; @SUN4I_FRONTEND_CH0_VERTPHASE0_REG
	.comm	_SUN4I_FRONTEND_CH1_VERTPHASE0_REG,4,2 ; @SUN4I_FRONTEND_CH1_VERTPHASE0_REG
	.comm	_SUN4I_FRONTEND_CH0_VERTPHASE1_REG,4,2 ; @SUN4I_FRONTEND_CH0_VERTPHASE1_REG
	.comm	_SUN4I_FRONTEND_CH1_VERTPHASE1_REG,4,2 ; @SUN4I_FRONTEND_CH1_VERTPHASE1_REG
	.comm	_sunxi_bt601_yuv2rgb_coef,8,3   ; @sunxi_bt601_yuv2rgb_coef
	.comm	_SUN4I_FRONTEND_BYPASS_CSC_EN,4,2 ; @SUN4I_FRONTEND_BYPASS_CSC_EN
	.comm	_SUN4I_FRONTEND_BYPASS_REG,4,2  ; @SUN4I_FRONTEND_BYPASS_REG
	.comm	_SUN4I_FRONTEND_INPUT_FMT_REG,4,2 ; @SUN4I_FRONTEND_INPUT_FMT_REG
	.comm	_SUN4I_FRONTEND_OUTPUT_FMT_REG,4,2 ; @SUN4I_FRONTEND_OUTPUT_FMT_REG
.subsections_via_symbols
