	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_plane_atomic_check
_omap_plane_atomic_check:               ## @omap_plane_atomic_check
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$0, 40(%rsi)
	je	LBB0_11
## %bb.1:
	movq	%rsi, %rbx
	xorl	%edi, %edi
	cmpl	$0, 44(%rsi)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_11
## %bb.2:
	movl	44(%rbx), %esi
	movl	48(%rbx), %edi
	callq	_drm_atomic_get_existing_crtc_state
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_11
## %bb.3:
	cmpl	$0, 16(%r15)
	je	LBB0_11
## %bb.4:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	js	LBB0_10
## %bb.5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	addq	16(%rbx), %rcx
	cmpq	(%r15), %rcx
	jg	LBB0_10
## %bb.7:
	addq	24(%rbx), %rax
	cmpq	8(%r15), %rax
	jle	LBB0_8
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	32(%rbx), %rax
	movq	_DRM_MODE_ROTATE_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.9:
	movl	40(%rbx), %edi
	callq	_omap_framebuffer_supports_rotation
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_ROTATE_0,8,3          ## @DRM_MODE_ROTATE_0
	.no_dead_strip	_omap_plane_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_plane_atomic_check
_omap_plane_atomic_check:               ; @omap_plane_atomic_check
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1, #40]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1, #44]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_3
; %bb.2:
	ldp	w1, w0, [x19, #44]
	bl	_drm_atomic_get_existing_crtc_state
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_3
; %bb.6:
	ldr	x9, [x19]
	tbnz	x9, #63, LBB0_10
; %bb.7:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_10
; %bb.8:
	ldr	x10, [x19, #16]
	ldr	x11, [x20]
	add	x9, x10, x9
	cmp	x9, x11
	b.gt	LBB0_10
; %bb.9:
	ldr	x9, [x19, #24]
	ldr	x10, [x20, #8]
	add	x8, x9, x8
	cmp	x8, x10
	b.le	LBB0_11
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_11:
	ldr	x8, [x19, #32]
Lloh3:
	adrp	x9, _DRM_MODE_ROTATE_0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_ROTATE_0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.12:
	ldr	w0, [x19, #40]
	bl	_omap_framebuffer_supports_rotation
	cbnz	w0, LBB0_3
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_ROTATE_0,8,3          ; @DRM_MODE_ROTATE_0
	.no_dead_strip	_omap_plane_atomic_check
.subsections_via_symbols
