	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimd_update_plane
_fimd_update_plane:                     ## @fimd_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, %r15
	movq	%rdi, %rbx
	movl	4(%rsi), %edi
	callq	_to_exynos_plane_state
	movq	(%rbx), %r12
	cmpq	$0, 40(%r12)
	je	LBB0_1
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r14
	movq	32(%rax), %rdi
	movl	(%r15), %r13d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movl	(%rax), %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	(%rcx), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%r14), %ebx
	imull	%eax, %ebx
	movl	4(%r14), %r15d
	imull	%edx, %r15d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_exynos_drm_fb_dma_addr
	addq	%rax, %rbx
	addq	%r15, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %r12
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_VIDWx_BUF_START
	addq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_writel
	movl	12(%r14), %r12d
	imull	-56(%rbp), %r12d                ## 4-byte Folded Reload
	leaq	(%rbx,%r12), %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	callq	_VIDWx_BUF_END
	addq	%rax, %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_writel
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edi
	movl	12(%r14), %ecx
	movl	16(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	imull	16(%r14), %r12d
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	subl	%r12d, %r13d
	movl	%r13d, %edi
	callq	_VIDW_BUF_SIZE_OFFSET
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_VIDW_BUF_SIZE_PAGEWIDTH
	orq	%rax, %r15
	movl	%r13d, %edi
	callq	_VIDW_BUF_SIZE_OFFSET_E
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_VIDW_BUF_SIZE_PAGEWIDTH_E
	orq	%rax, %rbx
	orq	%r15, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_VIDWx_BUF_SIZE
	addq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_writel
	movl	20(%r14), %edi
	callq	_VIDOSDxA_TOPLEFT_X
	movq	%rax, %r15
	movl	24(%r14), %edi
	callq	_VIDOSDxA_TOPLEFT_Y
	orq	%rax, %r15
	movl	20(%r14), %edi
	callq	_VIDOSDxA_TOPLEFT_X_E
	movq	%rax, %rbx
	movl	24(%r14), %edi
	callq	_VIDOSDxA_TOPLEFT_Y_E
	orq	%rax, %rbx
	orq	%r15, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %r15
	movl	%r12d, %edi
	callq	_VIDOSD_A
	addq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_writel
	movl	12(%r14), %r15d
	movl	16(%r14), %r13d
	addl	20(%r14), %r13d
	subl	$1, %r13d
	movl	$0, %eax
	cmovbl	%eax, %r13d
	addl	24(%r14), %r15d
	subl	$1, %r15d
	cmovbl	%eax, %r15d
	movl	%r13d, %edi
	callq	_VIDOSDxB_BOTRIGHT_X
	movq	%rax, %r12
	movl	%r15d, %edi
	callq	_VIDOSDxB_BOTRIGHT_Y
	orq	%rax, %r12
	movl	%r13d, %edi
	callq	_VIDOSDxB_BOTRIGHT_X_E
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_VIDOSDxB_BOTRIGHT_Y_E
	orq	%rax, %rbx
	orq	%r12, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edi
	callq	_VIDOSD_B
	addq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	callq	_writel
	movl	24(%rbx), %edi
	movl	20(%r14), %edx
	movl	24(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	leal	-5(%r12), %eax
	cmpl	$-2, %eax
	jae	LBB0_2
## %bb.3:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	%r12d, %edi
	callq	_VIDOSD_D
	testl	%r12d, %r12d
	jne	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_VIDOSD_C
LBB0_5:
	movl	12(%r14), %r15d
	imull	16(%r14), %r15d
	addq	32(%rbx), %rax
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_writel
	movl	24(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_DEBUG_KMS
	movl	8(%r14), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_fimd_win_set_pixfmt
	testl	%r12d, %r12d
	jne	LBB0_6
	jmp	LBB0_7
LBB0_2:
	movl	8(%r14), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_fimd_win_set_pixfmt
LBB0_6:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_fimd_win_set_colkey
LBB0_7:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_fimd_enable_video_output
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_fimd_enable_shadow_channel_path
LBB0_9:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_set                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start addr = 0x%lx, end addr = 0x%lx, size = 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"

L_.str.3:                               ## @.str.3
	.asciz	"osd size = 0x%x\n"

	.no_dead_strip	_fimd_update_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimd_update_plane
_fimd_update_plane:                     ; @fimd_update_plane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	ldr	w0, [x1, #4]
	bl	_to_exynos_plane_state
	ldr	x19, [x19]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	mov	x21, x0
	ldr	x22, [x0, #32]
	ldr	w20, [x20]
	ldp	x8, x9, [x22]
	ldr	w25, [x8]
	ldr	x8, [x9]
	ldr	w26, [x8]
	ldp	w8, w9, [x0]
	mul	w23, w8, w26
	mul	w24, w9, w25
	mov	x0, x22
	mov	w1, #0
	bl	_exynos_drm_fb_dma_addr
	add	x8, x0, x23
	add	x23, x8, x24
	ldr	x24, [x19, #32]
	mov	x0, x20
	mov	w1, #0
	bl	_VIDWx_BUF_START
	add	x1, x0, x24
	mov	x0, x23
	bl	_writel
	ldr	w8, [x21, #12]
	mul	w27, w8, w25
	add	x24, x23, x27
	ldr	x28, [x19, #32]
	mov	x0, x20
	mov	w1, #0
	bl	_VIDWx_BUF_END
	add	x1, x0, x28
	mov	x0, x24
	bl	_writel
	ldr	w0, [x19, #24]
	stp	x24, x27, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_DRM_DEV_DEBUG_KMS
	ldr	w0, [x19, #24]
	ldp	w8, w2, [x21, #12]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_DEBUG_KMS
	ldr	w8, [x21, #16]
	mul	w23, w8, w26
	sub	w24, w25, w23
	mov	x0, x24
	bl	_VIDW_BUF_SIZE_OFFSET
	mov	x25, x0
	mov	x0, x23
	bl	_VIDW_BUF_SIZE_PAGEWIDTH
	orr	x25, x0, x25
	mov	x0, x24
	bl	_VIDW_BUF_SIZE_OFFSET_E
	orr	x24, x25, x0
	mov	x0, x23
	bl	_VIDW_BUF_SIZE_PAGEWIDTH_E
	orr	x23, x24, x0
	ldr	x24, [x19, #32]
	mov	x0, x20
	mov	w1, #0
	bl	_VIDWx_BUF_SIZE
	add	x1, x0, x24
	mov	x0, x23
	bl	_writel
	ldr	w0, [x21, #20]
	bl	_VIDOSDxA_TOPLEFT_X
	mov	x23, x0
	ldr	w0, [x21, #24]
	bl	_VIDOSDxA_TOPLEFT_Y
	orr	x23, x0, x23
	ldr	w0, [x21, #20]
	bl	_VIDOSDxA_TOPLEFT_X_E
	orr	x23, x23, x0
	ldr	w0, [x21, #24]
	bl	_VIDOSDxA_TOPLEFT_Y_E
	orr	x23, x23, x0
	ldr	x24, [x19, #32]
	mov	x0, x20
	bl	_VIDOSD_A
	add	x1, x0, x24
	mov	x0, x23
	bl	_writel
	ldp	w8, w9, [x21, #20]
	ldp	w11, w10, [x21, #12]
	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
	mov	x0, x23
	bl	_VIDOSDxB_BOTRIGHT_X_E
	orr	x25, x25, x0
	mov	x0, x24
	bl	_VIDOSDxB_BOTRIGHT_Y_E
	orr	x25, x25, x0
	ldr	x26, [x19, #32]
	mov	x0, x20
	bl	_VIDOSD_B
	add	x1, x0, x26
	mov	x0, x25
	bl	_writel
	ldr	w0, [x19, #24]
	ldp	w2, w8, [x21, #20]
	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
	sub	w8, w20, #5
	cmn	w8, #2
	b.hs	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_VIDOSD_D
	cbnz	w20, LBB0_5
; %bb.4:
	mov	w0, #0
	bl	_VIDOSD_C
LBB0_5:
	ldp	w9, w8, [x21, #12]
	mul	w23, w9, w8
	ldr	x8, [x19, #32]
	add	x1, x8, x0
	mov	x0, x23
	bl	_writel
	ldr	w0, [x19, #24]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x23
	bl	_DRM_DEV_DEBUG_KMS
	ldr	w3, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_fimd_win_set_pixfmt
	cbnz	w20, LBB0_7
	b	LBB0_8
LBB0_6:
	ldr	w3, [x21, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_fimd_win_set_pixfmt
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_fimd_win_set_colkey
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_fimd_enable_video_output
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_fimd_enable_shadow_channel_path
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_1
; %bb.11:
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_atomic_set
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start addr = 0x%lx, end addr = 0x%lx, size = 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"

l_.str.3:                               ; @.str.3
	.asciz	"osd size = 0x%x\n"

	.no_dead_strip	_fimd_update_plane
.subsections_via_symbols
