	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_plane_mode_set
_exynos_plane_mode_set:                 ## @exynos_plane_mode_set
	.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, %rbx
	movq	80(%rdi), %rsi
	movl	72(%rdi), %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_drm_atomic_get_existing_crtc_state
	movq	%rax, %r14
	movl	40(%rbx), %r15d
	movl	44(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	48(%rbx), %esi
	movl	52(%rbx), %r12d
	movswl	58(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movswl	62(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movzwl	66(%rbx), %eax
	shll	$16, %eax
	movzwl	70(%rbx), %ecx
	shll	$16, %ecx
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, (%rbx)
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, 4(%rbx)
	movl	4(%r14), %edx
	movl	%r15d, %edi
	callq	_exynos_plane_get_size
	movl	%eax, %r13d
	movl	(%r14), %edx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_exynos_plane_get_size
	testl	%r15d, %r15d
	js	LBB0_2
LBB0_5:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	imull	(%rbx), %r15d
	negl	%r15d
	shrl	$16, %r15d
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	addl	%r15d, %edx
	xorl	%r15d, %r15d
LBB0_6:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%r14d, %r14d
	js	LBB0_8
## %bb.7:
	movl	%r14d, %ecx
	jmp	LBB0_10
LBB0_8:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	imull	4(%rbx), %r14d
	negl	%r14d
	shrl	$16, %r14d
	addl	%r14d, %esi
LBB0_10:
	movl	%edx, 24(%rbx)
	movl	%esi, 28(%rbx)
	movl	(%rbx), %edx
	imull	%r13d, %edx
	shrl	$16, %edx
	movl	%edx, 32(%rbx)
	movl	4(%rbx), %edx
	imull	%eax, %edx
	shrl	$16, %edx
	movl	%edx, 36(%rbx)
	movl	%r15d, 8(%rbx)
	movl	%ecx, 12(%rbx)
	movl	%r13d, 16(%rbx)
	movl	%eax, 20(%rbx)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movl	(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEV_DEBUG_KMS              ## TAILCALL
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plane : offset_x/y(%d,%d), width/height(%d,%d)"

	.no_dead_strip	_exynos_plane_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_plane_mode_set
_exynos_plane_mode_set:                 ; @exynos_plane_mode_set
	.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, x0
	ldr	x19, [x0, #80]
	ldr	w0, [x0, #72]
	mov	x1, x19
	bl	_drm_atomic_get_existing_crtc_state
	mov	x24, x0
	ldp	w21, w22, [x20, #40]
	ldp	w1, w25, [x20, #48]
	ldrsh	w26, [x20, #58]
	ldrsh	w27, [x20, #62]
	ldrh	w8, [x20, #66]
	lsl	w8, w8, #16
	ldrh	w9, [x20, #70]
	lsl	w9, w9, #16
	udiv	w8, w8, w1
	udiv	w9, w9, w25
	stp	w8, w9, [x20]
	ldr	w2, [x0, #4]
	mov	x0, x21
	bl	_exynos_plane_get_size
	mov	x23, x0
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x25
	bl	_exynos_plane_get_size
	mov	x5, x0
	tbz	w21, #31, LBB0_3
; %bb.1:
	cbz	w23, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	mneg	w8, w21, w8
	mov	w21, #0
	add	w26, w26, w8, lsr #16
LBB0_3:
	tbz	w22, #31, LBB0_8
LBB0_4:
	cbz	w5, LBB0_7
; %bb.5:
	ldr	w8, [x20, #4]
	mneg	w8, w22, w8
	mov	w22, #0
	add	w27, w27, w8, lsr #16
	b	LBB0_8
LBB0_6:
	mov	w21, #0
	tbz	w22, #31, LBB0_8
	b	LBB0_4
LBB0_7:
	mov	w22, #0
LBB0_8:
	stp	w26, w27, [x20, #24]
	fmov	s0, w23
	mov.s	v0[1], w5
	ldr	d1, [x20]
	mul.2s	v0, v1, v0
	ushr.2s	v0, v0, #16
	str	d0, [x20, #32]
	stp	w21, w22, [x20, #8]
	stp	w23, w5, [x20, #16]
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	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	_DRM_DEV_DEBUG_KMS
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plane : offset_x/y(%d,%d), width/height(%d,%d)"

	.no_dead_strip	_exynos_plane_mode_set
.subsections_via_symbols
