	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ingenic_drm_plane_atomic_update
_ingenic_drm_plane_atomic_update:       ## @ingenic_drm_plane_atomic_update
	.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, %rbx
	callq	_drm_plane_get_priv
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	8(%rbx), %rsi
	movq	(%rsi), %rdi
	movq	8(%rsi), %rcx
	movq	(%rcx), %rcx
	movl	4(%rcx), %ebx
	movq	(%rdi), %rdx
	movq	(%rdx), %rdx
	imull	(%rcx), %ebx
	imull	(%rdx,%rax,4), %ebx
	xorl	%edx, %edx
	callq	_drm_fb_cma_get_gem_addr
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	shrl	$2, %ebx
	movl	%ebx, (%rcx)
	movq	_JZ_LCD_CMD_EOF_IRQ@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JZ_LCD_CMD_EOF_IRQ,4,2         ## @JZ_LCD_CMD_EOF_IRQ
	.no_dead_strip	_ingenic_drm_plane_atomic_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ingenic_drm_plane_atomic_update
_ingenic_drm_plane_atomic_update:       ; @ingenic_drm_plane_atomic_update
	.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
	bl	_drm_plane_get_priv
	mov	x20, x0
	ldp	x8, x1, [x19]
	ldp	x0, x9, [x1]
	ldr	x9, [x9]
	ldp	w19, w21, [x9]
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	w22, [x9, x8, lsl #2]
	mov	w2, #0
	bl	_drm_fb_cma_get_gem_addr
	ldr	x8, [x20]
	mul	w9, w21, w19
	mul	w9, w9, w22
	lsr	w9, w9, #2
	stp	w9, w0, [x8]
Lloh0:
	adrp	x10, _JZ_LCD_CMD_EOF_IRQ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _JZ_LCD_CMD_EOF_IRQ@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_JZ_LCD_CMD_EOF_IRQ,4,2         ; @JZ_LCD_CMD_EOF_IRQ
	.no_dead_strip	_ingenic_drm_plane_atomic_update
.subsections_via_symbols
