	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_skl_check_plane_surface        ## -- Begin function skl_check_plane_surface
	.p2align	4, 0x90
_skl_check_plane_surface:               ## @skl_check_plane_surface
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	callq	_intel_plane_compute_gtt
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 8(%rbx)
	je	LBB0_2
## %bb.4:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_is_planar_yuv_format
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_skl_check_nv12_aux_surface
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_7:
	movl	(%r14), %edi
	callq	_is_ccs_modifier
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_skl_check_ccs_aux_surface
LBB0_6:
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_10
LBB0_9:
	movq	(%rbx), %rax
	movl	$-4096, 24(%rax)                ## imm = 0xF000
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax)
LBB0_10:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_skl_check_main_surface         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_skl_check_plane_surface        ; -- Begin function skl_check_plane_surface
	.p2align	2
_skl_check_plane_surface:               ; @skl_check_plane_surface
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	bl	_intel_plane_compute_gtt
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_is_planar_yuv_format
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_skl_check_nv12_aux_surface
	cbnz	w0, LBB0_1
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	b	LBB0_1
LBB0_6:
	ldr	w0, [x20]
	bl	_is_ccs_modifier
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_skl_check_ccs_aux_surface
	cbnz	w0, LBB0_1
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19]
	mov	w9, #-4096
	str	w9, [x8, #24]
	stp	xzr, xzr, [x8, #32]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_skl_check_main_surface
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
