	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_frontend_scaler_init
_sun4i_frontend_scaler_init:            ## @sun4i_frontend_scaler_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_FRM_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_FRONTEND_FRM_CTRL_COEF_ACCESS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_write_bits
LBB0_2:
	xorl	%ebx, %ebx
	movq	_sun4i_frontend_horz_coef@GOTPCREL(%rip), %r12
	movq	_sun4i_frontend_vert_coef@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_SUN4I_FRONTEND_CH0_HORZCOEF0_REG
	movq	(%r12), %rcx
	movl	(%rcx,%rbx,8), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_SUN4I_FRONTEND_CH1_HORZCOEF0_REG
	movq	(%r12), %rcx
	movl	(%rcx,%rbx,8), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_SUN4I_FRONTEND_CH0_HORZCOEF1_REG
	movq	(%r12), %rcx
	movl	4(%rcx,%rbx,8), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_SUN4I_FRONTEND_CH1_HORZCOEF1_REG
	movq	(%r12), %rcx
	movl	4(%rcx,%rbx,8), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_SUN4I_FRONTEND_CH0_VERTCOEF_REG
	movq	(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_SUN4I_FRONTEND_CH1_VERTCOEF_REG
	movq	(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_regmap_write
	incq	%rbx
	cmpq	$32, %rbx
	jne	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	movq	_SUN4I_FRONTEND_FRM_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_FRONTEND_FRM_CTRL_COEF_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write_bits              ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN4I_FRONTEND_FRM_CTRL_REG,4,2 ## @SUN4I_FRONTEND_FRM_CTRL_REG
	.comm	_SUN4I_FRONTEND_FRM_CTRL_COEF_ACCESS_CTRL,4,2 ## @SUN4I_FRONTEND_FRM_CTRL_COEF_ACCESS_CTRL
	.comm	_sun4i_frontend_horz_coef,8,3   ## @sun4i_frontend_horz_coef
	.comm	_sun4i_frontend_vert_coef,8,3   ## @sun4i_frontend_vert_coef
	.comm	_SUN4I_FRONTEND_FRM_CTRL_COEF_RDY,4,2 ## @SUN4I_FRONTEND_FRM_CTRL_COEF_RDY
	.no_dead_strip	_sun4i_frontend_scaler_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_frontend_scaler_init
_sun4i_frontend_scaler_init:            ; @sun4i_frontend_scaler_init
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
Lloh0:
	adrp	x22, _SUN4I_FRONTEND_FRM_CTRL_REG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SUN4I_FRONTEND_FRM_CTRL_REG@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _SUN4I_FRONTEND_FRM_CTRL_COEF_ACCESS_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUN4I_FRONTEND_FRM_CTRL_COEF_ACCESS_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_write_bits
LBB0_2:
	mov	x20, #0
	mov	w23, #4
Lloh5:
	adrp	x24, _sun4i_frontend_horz_coef@GOTPAGE
Lloh6:
	ldr	x24, [x24, _sun4i_frontend_horz_coef@GOTPAGEOFF]
Lloh7:
	adrp	x25, _sun4i_frontend_vert_coef@GOTPAGE
Lloh8:
	ldr	x25, [x25, _sun4i_frontend_vert_coef@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19]
	mov	x0, x20
	bl	_SUN4I_FRONTEND_CH0_HORZCOEF0_REG
	mov	x1, x0
	ldr	x8, [x24]
	add	x8, x8, x23
	ldur	w2, [x8, #-4]
	mov	x0, x21
	bl	_regmap_write
	ldr	w21, [x19]
	mov	x0, x20
	bl	_SUN4I_FRONTEND_CH1_HORZCOEF0_REG
	mov	x1, x0
	ldr	x8, [x24]
	add	x8, x8, x23
	ldur	w2, [x8, #-4]
	mov	x0, x21
	bl	_regmap_write
	ldr	w21, [x19]
	mov	x0, x20
	bl	_SUN4I_FRONTEND_CH0_HORZCOEF1_REG
	mov	x1, x0
	ldr	x8, [x24]
	ldr	w2, [x8, x23]
	mov	x0, x21
	bl	_regmap_write
	ldr	w21, [x19]
	mov	x0, x20
	bl	_SUN4I_FRONTEND_CH1_HORZCOEF1_REG
	mov	x1, x0
	ldr	x8, [x24]
	ldr	w2, [x8, x23]
	mov	x0, x21
	bl	_regmap_write
	ldr	w21, [x19]
	mov	x0, x20
	bl	_SUN4I_FRONTEND_CH0_VERTCOEF_REG
	mov	x1, x0
	ldr	x8, [x25]
	lsl	x26, x20, #2
	ldr	w2, [x8, x26]
	mov	x0, x21
	bl	_regmap_write
	ldr	w21, [x19]
	mov	x0, x20
	bl	_SUN4I_FRONTEND_CH1_VERTCOEF_REG
	mov	x1, x0
	ldr	x8, [x25]
	ldr	w2, [x8, x26]
	mov	x0, x21
	bl	_regmap_write
	add	x20, x20, #1
	add	x23, x23, #8
	cmp	x23, #260
	b.ne	LBB0_3
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _SUN4I_FRONTEND_FRM_CTRL_COEF_RDY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUN4I_FRONTEND_FRM_CTRL_COEF_RDY@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh11:
	ldr	w2, [x8]
	mov	x3, x2
	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	_regmap_write_bits
LBB0_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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN4I_FRONTEND_FRM_CTRL_REG,4,2 ; @SUN4I_FRONTEND_FRM_CTRL_REG
	.comm	_SUN4I_FRONTEND_FRM_CTRL_COEF_ACCESS_CTRL,4,2 ; @SUN4I_FRONTEND_FRM_CTRL_COEF_ACCESS_CTRL
	.comm	_sun4i_frontend_horz_coef,8,3   ; @sun4i_frontend_horz_coef
	.comm	_sun4i_frontend_vert_coef,8,3   ; @sun4i_frontend_vert_coef
	.comm	_SUN4I_FRONTEND_FRM_CTRL_COEF_RDY,4,2 ; @SUN4I_FRONTEND_FRM_CTRL_COEF_RDY
	.no_dead_strip	_sun4i_frontend_scaler_init
.subsections_via_symbols
