	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vop_plane_atomic_check
_vop_plane_atomic_check:                ## @vop_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	16(%rsi), %r14
	movq	24(%rsi), %r13
	callq	_to_vop_win
	movq	(%rax), %rbx
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	$1, %edi
	movl	$8, %esi
	callq	_FRAC_16_16
	movq	(%rbx), %rcx
	cmpq	$0, (%rcx)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.2:
	movl	$8, %edi
	movl	$1, %esi
	callq	_FRAC_16_16
	movl	%eax, %r12d
	jmp	LBB0_5
LBB0_3:
	movq	_DRM_PLANE_HELPER_NO_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_4:
	movq	_DRM_PLANE_HELPER_NO_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_5:
	movq	%r14, %rax
	testq	%r13, %r13
	je	LBB0_9
## %bb.6:
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	12(%r15), %edi
	movq	%r13, %rsi
	callq	_drm_atomic_get_existing_crtc_state
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_drm_atomic_helper_check_plane_state
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:
	cmpl	$0, 8(%r15)
	je	LBB0_9
## %bb.14:
	movq	(%r14), %rax
	movl	8(%rax), %edi
	callq	_vop_convert_format
	testl	%eax, %eax
	js	LBB0_12
## %bb.15:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.16:
	testb	$1, 6(%r15)
	jne	LBB0_21
## %bb.17:
	movq	_DRM_MODE_REFLECT_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, %eax
	testl	%ecx, (%r15)
	je	LBB0_12
## %bb.18:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_22
LBB0_9:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str(%rip), %rdi
LBB0_22:
	callq	_DRM_ERROR
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ## @DRM_PLANE_HELPER_NO_SCALING
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid Source: Yuv format not support odd xpos\n"

	.comm	_DRM_MODE_REFLECT_Y,4,2         ## @DRM_MODE_REFLECT_Y
L_.str.1:                               ## @.str.1
	.asciz	"Invalid Source: Yuv format does not support this rotation\n"

	.no_dead_strip	_vop_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 vop_plane_atomic_check
_vop_plane_atomic_check:                ; @vop_plane_atomic_check
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldp	x23, x20, [x1, #16]
	bl	_to_vop_win
	ldr	x22, [x0]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w0, #1
	mov	w1, #8
	bl	_FRAC_16_16
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	w0, #8
	mov	w1, #1
	bl	_FRAC_16_16
	mov	x22, x0
	mov	w0, #0
	cbnz	x20, LBB0_5
	b	LBB0_16
LBB0_3:
Lloh0:
	adrp	x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
LBB0_4:
Lloh3:
	adrp	x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	w0, #0
	cbz	x20, LBB0_16
LBB0_5:
	cbz	x23, LBB0_16
; %bb.6:
	ldr	w0, [x19, #12]
	mov	x1, x20
	bl	_drm_atomic_get_existing_crtc_state
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	w4, #1
	mov	w5, #1
	bl	_drm_atomic_helper_check_plane_state
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
; %bb.10:
	ldr	x8, [x23]
	ldr	w0, [x8, #8]
	bl	_vop_convert_format
	tbnz	w0, #31, LBB0_16
; %bb.11:
	ldr	x8, [x23]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.12:
	ldrb	w8, [x19, #6]
	tbnz	w8, #0, LBB0_17
; %bb.13:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _DRM_MODE_REFLECT_Y@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DRM_MODE_REFLECT_Y@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
LBB0_18:
	bl	_DRM_ERROR
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ; @DRM_PLANE_HELPER_NO_SCALING
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid Source: Yuv format not support odd xpos\n"

	.comm	_DRM_MODE_REFLECT_Y,4,2         ; @DRM_MODE_REFLECT_Y
l_.str.1:                               ; @.str.1
	.asciz	"Invalid Source: Yuv format does not support this rotation\n"

	.no_dead_strip	_vop_plane_atomic_check
.subsections_via_symbols
