	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp5_plane_atomic_async_check
_mdp5_plane_atomic_async_check:         ## @mdp5_plane_atomic_async_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_to_mdp5_plane_state
	movl	56(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_drm_atomic_get_existing_crtc_state
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, (%r15)
	je	LBB0_12
## %bb.2:
	movq	%rbx, %rdi
	callq	_to_mdp5_plane_state
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.3:
	movq	(%r14), %rax
	movq	(%rax), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_12
## %bb.4:
	movq	8(%rax), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_12
## %bb.5:
	movq	16(%rax), %rcx
	cmpq	16(%rbx), %rcx
	jne	LBB0_12
## %bb.6:
	movq	24(%rax), %rcx
	cmpq	24(%rbx), %rcx
	jne	LBB0_12
## %bb.7:
	movq	32(%rax), %rcx
	cmpq	32(%rbx), %rcx
	jne	LBB0_12
## %bb.8:
	movq	40(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	cmpq	40(%rbx), %rax
	jne	LBB0_12
## %bb.10:
	movl	$1, %edi
	movl	$8, %esi
	callq	_FRAC_16_16
	movl	%eax, %r12d
	movl	$8, %edi
	movl	$1, %esi
	callq	_FRAC_16_16
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_drm_atomic_helper_check_plane_state
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	48(%rbx), %rcx
	movq	(%r14), %rdx
	xorl	%eax, %eax
	cmpq	48(%rdx), %rcx
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mdp5_plane_atomic_async_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp5_plane_atomic_async_check
_mdp5_plane_atomic_async_check:         ; @mdp5_plane_atomic_async_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_to_mdp5_plane_state
	ldr	w0, [x20, #56]
	ldr	x1, [x20]
	bl	_drm_atomic_get_existing_crtc_state
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x21]
	cbz	w8, LBB0_1
; %bb.4:
	mov	x0, x20
	bl	_to_mdp5_plane_state
	ldr	w8, [x0]
	cbz	w8, LBB0_1
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_1
; %bb.6:
	ldr	x9, [x8, #8]
	ldr	x10, [x20, #8]
	cmp	x9, x10
	b.ne	LBB0_1
; %bb.7:
	ldr	x9, [x8, #16]
	ldr	x10, [x20, #16]
	cmp	x9, x10
	b.ne	LBB0_1
; %bb.8:
	ldr	x9, [x8, #24]
	ldr	x10, [x20, #24]
	cmp	x9, x10
	b.ne	LBB0_1
; %bb.9:
	ldr	x9, [x8, #32]
	ldr	x10, [x20, #32]
	cmp	x9, x10
	b.ne	LBB0_1
; %bb.10:
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_1
; %bb.11:
	ldr	x9, [x20, #40]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.12:
	mov	w0, #1
	mov	w1, #8
	bl	_FRAC_16_16
	mov	x22, x0
	mov	w0, #8
	mov	w1, #1
	bl	_FRAC_16_16
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w4, #1
	mov	w5, #1
	bl	_drm_atomic_helper_check_plane_state
	cbnz	w0, LBB0_2
; %bb.13:
	ldr	x8, [x20, #48]
	ldr	x9, [x19]
	ldr	x9, [x9, #48]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.14:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mdp5_plane_atomic_async_check
.subsections_via_symbols
