	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	4(%rsi), %edi
	callq	_to_exynos_plane_state
	movq	%rax, %r15
	movq	8(%r13), %r12
	movq	32(%rax), %rdi
	movl	(%rbx), %r14d
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_exynos_drm_fb_dma_addr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r13), %ebx
	movq	16(%r15), %rdi
	callq	_COORDINATE_X
	movl	%eax, %r13d
	movl	(%r15), %edi
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	%edi, %eax
	shrl	$31, %eax
	addl	%edi, %eax
	sarl	%eax
	movl	%eax, %edi
	callq	_COORDINATE_Y
	orl	%eax, %r13d
	movq	8(%r12), %rbx
	movl	%r14d, %edi
	callq	_DECON_VIDOSDxA
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	16(%r15), %rax
	movl	4(%r15), %ecx
	leaq	(%rax,%rcx), %rdi
	decq	%rdi
	callq	_COORDINATE_X
	movl	%eax, %r13d
	movl	8(%r15), %eax
	addl	(%r15), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	decl	%edi
	jmp	LBB0_3
LBB0_2:
	callq	_COORDINATE_Y
	orl	%eax, %r13d
	movq	8(%r12), %rbx
	movl	%r14d, %edi
	callq	_DECON_VIDOSDxA
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	16(%r15), %rax
	movl	4(%r15), %ecx
	leaq	(%rax,%rcx), %rdi
	decq	%rdi
	callq	_COORDINATE_X
	movl	%eax, %r13d
	movl	(%r15), %eax
	movl	8(%r15), %ecx
	leal	(%rax,%rcx), %edi
	decl	%edi
LBB0_3:
	callq	_COORDINATE_Y
	orl	%eax, %r13d
	movq	8(%r12), %rbx
	movl	%r14d, %edi
	callq	_DECON_VIDOSDxB
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	$255, %edi
	callq	_VIDOSD_Wx_ALPHA_R_F
	movl	%eax, %ebx
	movl	$255, %edi
	callq	_VIDOSD_Wx_ALPHA_G_F
	orl	%eax, %ebx
	movl	$255, %edi
	callq	_VIDOSD_Wx_ALPHA_B_F
	orl	%eax, %ebx
	movq	8(%r12), %r13
	movl	%r14d, %edi
	callq	_DECON_VIDOSDxC
	addq	%rax, %r13
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_writel
	xorl	%edi, %edi
	callq	_VIDOSD_Wx_ALPHA_R_F
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_VIDOSD_Wx_ALPHA_G_F
	orl	%eax, %ebx
	xorl	%edi, %edi
	callq	_VIDOSD_Wx_ALPHA_B_F
	orl	%eax, %ebx
	movq	8(%r12), %r13
	movl	%r14d, %edi
	callq	_DECON_VIDOSDxD
	addq	%rax, %r13
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_writel
	movq	8(%r12), %rbx
	movl	%r14d, %edi
	callq	_DECON_VIDW0xADD0B0
	addq	%rax, %rbx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	24(%r15), %ebx
	movl	%r14d, %edi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	imull	%r14d, %ebx
	addl	%r13d, %ebx
	movq	8(%r12), %r13
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_DECON_VIDW0xADD1B0
	addq	%rax, %r13
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_writel
	movq	_IFTYPE_HDMI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%r15), %ecx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	imull	%ebx, %ecx
	subl	%ecx, %r14d
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.5:
	movl	%r14d, %edi
	movl	$29, %esi
	movl	$15, %edx
	callq	_BIT_VAL
	movl	%eax, %r13d
	movl	$14, %esi
	jmp	LBB0_6
LBB0_4:
	movl	%r14d, %edi
	movl	$27, %esi
	movl	$14, %edx
	callq	_BIT_VAL
	movl	%eax, %r13d
	movl	$13, %esi
LBB0_6:
	imull	4(%r15), %ebx
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_BIT_VAL
	orl	%eax, %r13d
	movq	8(%r12), %rbx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_DECON_VIDW0xADD2
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_decon_win_set_pixfmt
	movl	%r14d, %edi
	callq	_DECON_WINCONx
	movq	_WINCONx_ENWIN_F@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$-1, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_decon_set_bits                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_IFTYPE_HDMI,4,2                ## @IFTYPE_HDMI
	.comm	_WINCONx_ENWIN_F,4,2            ## @WINCONx_ENWIN_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:
	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	x20, x1
	mov	x24, x0
	ldr	w0, [x1, #4]
	bl	_to_exynos_plane_state
	mov	x22, x0
	ldr	x19, [x24, #8]
	ldr	x21, [x0, #32]
	ldr	w20, [x20]
	ldp	x9, x8, [x21]
	ldr	x8, [x8]
	ldr	w25, [x8]
	ldr	w26, [x9]
	mov	x0, x21
	mov	w1, #0
	bl	_exynos_drm_fb_dma_addr
	mov	x23, x0
	ldr	w8, [x24]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w27, w9, w8
	ldr	x0, [x22, #16]
	bl	_COORDINATE_X
	mov	x24, x0
	ldr	w0, [x22]
	cbz	w27, LBB0_2
; %bb.1:
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w0, w8, #1
	bl	_COORDINATE_Y
	orr	w24, w0, w24
	ldr	x27, [x19, #8]
	mov	x0, x20
	bl	_DECON_VIDOSDxA
	add	x1, x0, x27
	mov	x0, x24
	bl	_writel
	ldr	x8, [x22, #16]
	ldr	w9, [x22, #4]
	add	x8, x8, x9
	sub	x0, x8, #1
	bl	_COORDINATE_X
	mov	x24, x0
	ldr	w8, [x22]
	ldr	w9, [x22, #8]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	b	LBB0_3
LBB0_2:
	bl	_COORDINATE_Y
	orr	w24, w0, w24
	ldr	x27, [x19, #8]
	mov	x0, x20
	bl	_DECON_VIDOSDxA
	add	x1, x0, x27
	mov	x0, x24
	bl	_writel
	ldr	x8, [x22, #16]
	ldr	w9, [x22, #4]
	add	x8, x8, x9
	sub	x0, x8, #1
	bl	_COORDINATE_X
	mov	x24, x0
	ldr	w8, [x22]
	ldr	w9, [x22, #8]
	add	w8, w8, w9
LBB0_3:
	sub	w0, w8, #1
	bl	_COORDINATE_Y
	orr	w24, w0, w24
	ldr	x27, [x19, #8]
	mov	x0, x20
	bl	_DECON_VIDOSDxB
	add	x1, x0, x27
	mov	x0, x24
	bl	_writel
	mov	w0, #255
	bl	_VIDOSD_Wx_ALPHA_R_F
	mov	x24, x0
	mov	w0, #255
	bl	_VIDOSD_Wx_ALPHA_G_F
	orr	w24, w0, w24
	mov	w0, #255
	bl	_VIDOSD_Wx_ALPHA_B_F
	orr	w24, w24, w0
	ldr	x27, [x19, #8]
	mov	x0, x20
	bl	_DECON_VIDOSDxC
	add	x1, x0, x27
	mov	x0, x24
	bl	_writel
	mov	w0, #0
	bl	_VIDOSD_Wx_ALPHA_R_F
	mov	x24, x0
	mov	w0, #0
	bl	_VIDOSD_Wx_ALPHA_G_F
	orr	w24, w0, w24
	mov	w0, #0
	bl	_VIDOSD_Wx_ALPHA_B_F
	orr	w24, w24, w0
	ldr	x27, [x19, #8]
	mov	x0, x20
	bl	_DECON_VIDOSDxD
	add	x1, x0, x27
	mov	x0, x24
	bl	_writel
	ldr	x24, [x19, #8]
	mov	x0, x20
	bl	_DECON_VIDW0xADD0B0
	add	x1, x0, x24
	mov	x0, x23
	bl	_writel
	ldr	w8, [x22, #24]
	madd	w23, w8, w26, w23
	ldr	x24, [x19, #8]
	mov	x0, x20
	bl	_DECON_VIDW0xADD1B0
	add	x1, x0, x24
	mov	x0, x23
	bl	_writel
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _IFTYPE_HDMI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFTYPE_HDMI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x22, #4]
	msub	w0, w10, w25, w26
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w1, #29
	mov	w2, #15
	bl	_BIT_VAL
	mov	x23, x0
	mov	w1, #14
	b	LBB0_6
LBB0_5:
	mov	w1, #27
	mov	w2, #14
	bl	_BIT_VAL
	mov	x23, x0
	mov	w1, #13
LBB0_6:
	ldr	w8, [x22, #4]
	mul	w0, w8, w25
	mov	w2, #0
	bl	_BIT_VAL
	orr	w22, w0, w23
	ldr	x23, [x19, #8]
	mov	x0, x20
	bl	_DECON_VIDW0xADD2
	add	x1, x0, x23
	mov	x0, x22
	bl	_writel
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_decon_win_set_pixfmt
	mov	x0, x20
	bl	_DECON_WINCONx
	mov	x1, x0
Lloh6:
	adrp	x8, _WINCONx_ENWIN_F@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WINCONx_ENWIN_F@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #-1
	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	_decon_set_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_IFTYPE_HDMI,4,2                ; @IFTYPE_HDMI
	.comm	_WINCONx_ENWIN_F,4,2            ; @WINCONx_ENWIN_F
	.no_dead_strip	_decon_update_plane
.subsections_via_symbols
