	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decon_update_plane
_decon_update_plane:                    ## @decon_update_plane
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	4(%rsi), %edi
	callq	_to_exynos_plane_state
	movq	(%rbx), %r12
	cmpq	$0, 16(%r12)
	je	LBB0_1
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r14), %r14d
	movq	32(%rax), %rdx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rax
	movq	24(%rdx), %rcx
	movq	%rdx, %rdi
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_exynos_drm_fb_dma_addr
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r13
	movl	%r14d, %edi
	callq	_VIDW_BUF_START
	addq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_writel
	movq	(%r12), %rbx
	movl	%r14d, %edi
	callq	_VIDW_WHOLE_X
	addq	%rax, %rbx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_writel
	movq	16(%r15), %r13
	movq	(%r12), %rbx
	movl	%r14d, %edi
	callq	_VIDW_WHOLE_Y
	addq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_writel
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r15), %r13
	movq	(%r12), %rbx
	movl	%r14d, %edi
	callq	_VIDW_OFFSET_X
	addq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_writel
	movq	24(%r15), %r13
	movq	(%r12), %rbx
	movl	%r14d, %edi
	movl	%r14d, %r15d
	callq	_VIDW_OFFSET_Y
	addq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_writel
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movl	8(%r12), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movl	8(%r14), %edi
	callq	_VIDOSDxA_TOPLEFT_X
	movq	%rax, %r13
	movl	12(%r14), %edi
	callq	_VIDOSDxA_TOPLEFT_Y
	orq	%rax, %r13
	movq	(%r12), %rbx
	movl	%r15d, %edi
	callq	_VIDOSD_A
	addq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_writel
	movl	(%r14), %ebx
	movl	4(%r14), %r13d
	addl	8(%r14), %ebx
	subl	$1, %ebx
	movl	$0, %eax
	cmovbl	%eax, %ebx
	addl	12(%r14), %r13d
	subl	$1, %r13d
	cmovbl	%eax, %r13d
	movl	%ebx, %edi
	callq	_VIDOSDxB_BOTRIGHT_X
	movq	%rax, %r14
	movl	%r13d, %edi
	callq	_VIDOSDxB_BOTRIGHT_Y
	orq	%rax, %r14
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movl	%r15d, %edi
	callq	_VIDOSD_B
	addq	%rax, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	callq	_writel
	movl	8(%r12), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movl	12(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	xorl	%edi, %edi
	callq	_VIDOSDxC_ALPHA0_R_F
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_VIDOSDxC_ALPHA0_G_F
	orq	%rax, %rbx
	xorl	%edi, %edi
	callq	_VIDOSDxC_ALPHA0_B_F
	orq	%rax, %rbx
	movq	(%r12), %r14
	movl	%r15d, %edi
	callq	_VIDOSD_C
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_writel
	movl	$255, %edi
	callq	_VIDOSDxD_ALPHA1_R_F
	movq	%rax, %rbx
	movl	$255, %edi
	callq	_VIDOSDxD_ALPHA1_G_F
	orq	%rax, %rbx
	movl	$255, %edi
	callq	_VIDOSDxD_ALPHA1_B_F
	orq	%rax, %rbx
	movq	(%r12), %r14
	movl	%r15d, %edi
	callq	_VIDOSD_D
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_writel
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_decon_win_set_pixfmt
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_decon_win_set_colkey
LBB0_3:
	movq	(%r12), %rbx
	movl	%r15d, %edi
	callq	_WINCON
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl
	movq	%rax, %rbx
	movq	_WINCONx_TRIPLE_BUF_MODE@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_WINCONx_ENWIN@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	(%r12), %r14
	movl	%r15d, %edi
	callq	_WINCON
	addq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_writel
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_decon_shadow_protect_win
	movq	_DECON_UPDATE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_DECON_UPDATE_STANDALONE_F@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	(%rbx), %rsi
	addq	(%r12), %rsi
	movq	%rax, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start addr = 0x%lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"ovl_width = %d, ovl_height = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"osd pos: tx = %d, ty = %d, bx = %d, by = %d\n"

	.comm	_WINCONx_TRIPLE_BUF_MODE,8,3    ## @WINCONx_TRIPLE_BUF_MODE
	.comm	_WINCONx_ENWIN,8,3              ## @WINCONx_ENWIN
	.comm	_DECON_UPDATE,8,3               ## @DECON_UPDATE
	.comm	_DECON_UPDATE_STANDALONE_F,8,3  ## @DECON_UPDATE_STANDALONE_F
	.no_dead_strip	_decon_update_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decon_update_plane
_decon_update_plane:                    ; @decon_update_plane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #4]
	bl	_to_exynos_plane_state
	ldr	x19, [x19]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x22, x0
	ldr	w20, [x20]
	ldr	x21, [x0, #32]
	ldr	x8, [x21]
	ldr	w24, [x8]
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	ldr	w25, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_exynos_drm_fb_dma_addr
	mov	x23, x0
	ldr	x26, [x19]
	mov	x0, x20
	bl	_VIDW_BUF_START
	add	x1, x0, x26
	mov	x0, x23
	bl	_writel
	ldr	x26, [x19]
	udiv	w24, w24, w25
	mov	x0, x20
	bl	_VIDW_WHOLE_X
	add	x1, x0, x26
	mov	x0, x24
	bl	_writel
	ldr	x24, [x21, #16]
	ldr	x25, [x19]
	mov	x0, x20
	bl	_VIDW_WHOLE_Y
	add	x1, x0, x25
	mov	x0, x24
	bl	_writel
	ldr	x24, [x22, #16]
	ldr	x25, [x19]
	mov	x0, x20
	bl	_VIDW_OFFSET_X
	add	x1, x0, x25
	mov	x0, x24
	bl	_writel
	ldr	x24, [x22, #24]
	ldr	x25, [x19]
	mov	x0, x20
	bl	_VIDW_OFFSET_Y
	add	x1, x0, x25
	mov	x0, x24
	bl	_writel
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_DRM_DEV_DEBUG_KMS
	ldr	w0, [x19, #8]
	ldp	w2, w8, [x22]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
	ldr	w0, [x22, #8]
	bl	_VIDOSDxA_TOPLEFT_X
	mov	x23, x0
	ldr	w0, [x22, #12]
	bl	_VIDOSDxA_TOPLEFT_Y
	orr	x23, x0, x23
	ldr	x24, [x19]
	mov	x0, x20
	bl	_VIDOSD_A
	add	x1, x0, x24
	mov	x0, x23
	bl	_writel
	ldp	w8, w9, [x22, #8]
	ldp	w10, w11, [x22]
	adds	w8, w10, w8
	sub	w8, w8, #1
	csel	w23, wzr, w8, eq
	adds	w8, w11, w9
	sub	w8, w8, #1
	csel	w24, wzr, w8, eq
	mov	x0, x23
	bl	_VIDOSDxB_BOTRIGHT_X
	mov	x25, x0
	mov	x0, x24
	bl	_VIDOSDxB_BOTRIGHT_Y
	orr	x25, x0, x25
	ldr	x26, [x19]
	mov	x0, x20
	bl	_VIDOSD_B
	add	x1, x0, x26
	mov	x0, x25
	bl	_writel
	ldr	w0, [x19, #8]
	ldp	w2, w8, [x22, #8]
	stp	x23, x24, [sp, #8]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
	mov	w0, #0
	bl	_VIDOSDxC_ALPHA0_R_F
	mov	x22, x0
	mov	w0, #0
	bl	_VIDOSDxC_ALPHA0_G_F
	orr	x22, x0, x22
	mov	w0, #0
	bl	_VIDOSDxC_ALPHA0_B_F
	orr	x22, x22, x0
	ldr	x23, [x19]
	mov	x0, x20
	bl	_VIDOSD_C
	add	x1, x0, x23
	mov	x0, x22
	bl	_writel
	mov	w0, #255
	bl	_VIDOSDxD_ALPHA1_R_F
	mov	x22, x0
	mov	w0, #255
	bl	_VIDOSDxD_ALPHA1_G_F
	orr	x22, x0, x22
	mov	w0, #255
	bl	_VIDOSDxD_ALPHA1_B_F
	orr	x22, x22, x0
	ldr	x23, [x19]
	mov	x0, x20
	bl	_VIDOSD_D
	add	x1, x0, x23
	mov	x0, x22
	bl	_writel
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_decon_win_set_pixfmt
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_decon_win_set_colkey
LBB0_4:
	ldr	x21, [x19]
	mov	x0, x20
	bl	_WINCON
	add	x0, x0, x21
	bl	_readl
Lloh6:
	adrp	x8, _WINCONx_TRIPLE_BUF_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WINCONx_TRIPLE_BUF_MODE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	orr	x8, x8, x0
Lloh9:
	adrp	x9, _WINCONx_ENWIN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WINCONx_ENWIN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	orr	x21, x8, x9
	ldr	x22, [x19]
	mov	x0, x20
	bl	_WINCON
	add	x1, x0, x22
	mov	x0, x21
	bl	_writel
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_decon_shadow_protect_win
	ldr	x8, [x19]
Lloh12:
	adrp	x20, _DECON_UPDATE@GOTPAGE
Lloh13:
	ldr	x20, [x20, _DECON_UPDATE@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh14:
	adrp	x8, _DECON_UPDATE_STANDALONE_F@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DECON_UPDATE_STANDALONE_F@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	orr	x0, x8, x0
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_writel
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start addr = 0x%lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"ovl_width = %d, ovl_height = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"osd pos: tx = %d, ty = %d, bx = %d, by = %d\n"

	.comm	_WINCONx_TRIPLE_BUF_MODE,8,3    ; @WINCONx_TRIPLE_BUF_MODE
	.comm	_WINCONx_ENWIN,8,3              ; @WINCONx_ENWIN
	.comm	_DECON_UPDATE,8,3               ; @DECON_UPDATE
	.comm	_DECON_UPDATE_STANDALONE_F,8,3  ; @DECON_UPDATE_STANDALONE_F
	.no_dead_strip	_decon_update_plane
.subsections_via_symbols
