	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_frontend_update_coord    ## -- Begin function sun4i_frontend_update_coord
	.p2align	4, 0x90
_sun4i_frontend_update_coord:           ## @sun4i_frontend_update_coord
	.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
	movq	%rdi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r12
	movq	16(%r12), %rbx
	movl	(%r12), %esi
	movl	4(%r12), %edx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	8(%r12), %r13d
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	12(%r12), %r15d
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	sarl	$16, %r13d
	sarl	$16, %r15d
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movl	%r13d, %edi
	callq	_DIV_ROUND_UP
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_DIV_ROUND_UP
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %ebx
	movq	_SUN4I_FRONTEND_CH0_INSIZE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_SUN4I_FRONTEND_INSIZE
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r14d
	movq	_SUN4I_FRONTEND_CH1_INSIZE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_SUN4I_FRONTEND_INSIZE
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %r14d
	movq	_SUN4I_FRONTEND_CH0_OUTSIZE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r12), %esi
	movl	4(%r12), %edi
	callq	_SUN4I_FRONTEND_OUTSIZE
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %r14d
	movq	_SUN4I_FRONTEND_CH1_OUTSIZE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r12), %esi
	movl	4(%r12), %edi
	callq	_SUN4I_FRONTEND_OUTSIZE
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_SUN4I_FRONTEND_CH0_HORZFACT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	cltd
	idivl	(%r12)
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_SUN4I_FRONTEND_CH1_HORZFACT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$16, %r13d
	movl	%r13d, %eax
	cltd
	idivl	(%r12)
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_SUN4I_FRONTEND_CH0_VERTFACT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	cltd
	idivl	4(%r12)
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_SUN4I_FRONTEND_CH1_VERTFACT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shll	$16, %eax
	cltd
	idivl	4(%r12)
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %edi
	movq	_SUN4I_FRONTEND_FRM_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SUN4I_FRONTEND_FRM_CTRL_REG_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write_bits              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Frontend size W: %u H: %u\n"

	.comm	_SUN4I_FRONTEND_CH0_INSIZE_REG,4,2 ## @SUN4I_FRONTEND_CH0_INSIZE_REG
	.comm	_SUN4I_FRONTEND_CH1_INSIZE_REG,4,2 ## @SUN4I_FRONTEND_CH1_INSIZE_REG
	.comm	_SUN4I_FRONTEND_CH0_OUTSIZE_REG,4,2 ## @SUN4I_FRONTEND_CH0_OUTSIZE_REG
	.comm	_SUN4I_FRONTEND_CH1_OUTSIZE_REG,4,2 ## @SUN4I_FRONTEND_CH1_OUTSIZE_REG
	.comm	_SUN4I_FRONTEND_CH0_HORZFACT_REG,4,2 ## @SUN4I_FRONTEND_CH0_HORZFACT_REG
	.comm	_SUN4I_FRONTEND_CH1_HORZFACT_REG,4,2 ## @SUN4I_FRONTEND_CH1_HORZFACT_REG
	.comm	_SUN4I_FRONTEND_CH0_VERTFACT_REG,4,2 ## @SUN4I_FRONTEND_CH0_VERTFACT_REG
	.comm	_SUN4I_FRONTEND_CH1_VERTFACT_REG,4,2 ## @SUN4I_FRONTEND_CH1_VERTFACT_REG
	.comm	_SUN4I_FRONTEND_FRM_CTRL_REG,4,2 ## @SUN4I_FRONTEND_FRM_CTRL_REG
	.comm	_SUN4I_FRONTEND_FRM_CTRL_REG_RDY,4,2 ## @SUN4I_FRONTEND_FRM_CTRL_REG_RDY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_frontend_update_coord    ; -- Begin function sun4i_frontend_update_coord
	.p2align	2
_sun4i_frontend_update_coord:           ; @sun4i_frontend_update_coord
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x26, [x1]
	ldr	x20, [x26, #16]
	ldp	w1, w2, [x26]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldp	w28, w27, [x26, #8]
	asr	w22, w28, #16
	asr	w23, w27, #16
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
	mov	x0, x22
	bl	_DIV_ROUND_UP
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x23
	bl	_DIV_ROUND_UP
	mov	x20, x0
	ldr	w24, [x19]
Lloh2:
	adrp	x8, _SUN4I_FRONTEND_CH0_INSIZE_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH0_INSIZE_REG@GOTPAGEOFF]
Lloh4:
	ldr	w25, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_SUN4I_FRONTEND_INSIZE
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_regmap_write
	ldr	w22, [x19]
Lloh5:
	adrp	x8, _SUN4I_FRONTEND_CH1_INSIZE_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH1_INSIZE_REG@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_SUN4I_FRONTEND_INSIZE
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_regmap_write
	ldr	w22, [x19]
Lloh8:
	adrp	x8, _SUN4I_FRONTEND_CH0_OUTSIZE_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH0_OUTSIZE_REG@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	ldp	w1, w0, [x26]
	bl	_SUN4I_FRONTEND_OUTSIZE
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_regmap_write
	ldr	w22, [x19]
Lloh11:
	adrp	x8, _SUN4I_FRONTEND_CH1_OUTSIZE_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH1_OUTSIZE_REG@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	ldp	w1, w0, [x26]
	bl	_SUN4I_FRONTEND_OUTSIZE
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_regmap_write
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _SUN4I_FRONTEND_CH0_HORZFACT_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH0_HORZFACT_REG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	and	w8, w28, #0xffff0000
	ldr	w9, [x26]
	sdiv	w2, w8, w9
	bl	_regmap_write
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _SUN4I_FRONTEND_CH1_HORZFACT_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH1_HORZFACT_REG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	lsl	w8, w21, #16
	ldr	w9, [x26]
	sdiv	w2, w8, w9
	bl	_regmap_write
	ldr	w0, [x19]
Lloh20:
	adrp	x8, _SUN4I_FRONTEND_CH0_VERTFACT_REG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH0_VERTFACT_REG@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	and	w8, w27, #0xffff0000
	ldr	w9, [x26, #4]
	sdiv	w2, w8, w9
	bl	_regmap_write
	ldr	w0, [x19]
Lloh23:
	adrp	x8, _SUN4I_FRONTEND_CH1_VERTFACT_REG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SUN4I_FRONTEND_CH1_VERTFACT_REG@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	lsl	w8, w20, #16
	ldr	w9, [x26, #4]
	sdiv	w2, w8, w9
	bl	_regmap_write
	ldr	w0, [x19]
Lloh26:
	adrp	x8, _SUN4I_FRONTEND_FRM_CTRL_REG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SUN4I_FRONTEND_FRM_CTRL_REG@GOTPAGEOFF]
Lloh28:
	adrp	x9, _SUN4I_FRONTEND_FRM_CTRL_REG_RDY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SUN4I_FRONTEND_FRM_CTRL_REG_RDY@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	ldr	w2, [x9]
	mov	x3, x2
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_regmap_write_bits
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.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 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	"Frontend size W: %u H: %u\n"

	.comm	_SUN4I_FRONTEND_CH0_INSIZE_REG,4,2 ; @SUN4I_FRONTEND_CH0_INSIZE_REG
	.comm	_SUN4I_FRONTEND_CH1_INSIZE_REG,4,2 ; @SUN4I_FRONTEND_CH1_INSIZE_REG
	.comm	_SUN4I_FRONTEND_CH0_OUTSIZE_REG,4,2 ; @SUN4I_FRONTEND_CH0_OUTSIZE_REG
	.comm	_SUN4I_FRONTEND_CH1_OUTSIZE_REG,4,2 ; @SUN4I_FRONTEND_CH1_OUTSIZE_REG
	.comm	_SUN4I_FRONTEND_CH0_HORZFACT_REG,4,2 ; @SUN4I_FRONTEND_CH0_HORZFACT_REG
	.comm	_SUN4I_FRONTEND_CH1_HORZFACT_REG,4,2 ; @SUN4I_FRONTEND_CH1_HORZFACT_REG
	.comm	_SUN4I_FRONTEND_CH0_VERTFACT_REG,4,2 ; @SUN4I_FRONTEND_CH0_VERTFACT_REG
	.comm	_SUN4I_FRONTEND_CH1_VERTFACT_REG,4,2 ; @SUN4I_FRONTEND_CH1_VERTFACT_REG
	.comm	_SUN4I_FRONTEND_FRM_CTRL_REG,4,2 ; @SUN4I_FRONTEND_FRM_CTRL_REG
	.comm	_SUN4I_FRONTEND_FRM_CTRL_REG_RDY,4,2 ; @SUN4I_FRONTEND_FRM_CTRL_REG_RDY
.subsections_via_symbols
