	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skl_build_plane_wm
_skl_build_plane_wm:                    ## @skl_build_plane_wm
	.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
	movl	8(%rsi), %edi
	callq	_to_intel_plane
	movq	(%rbx), %r12
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_wm_plane_visible
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_skl_build_plane_wm_single
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	(%r12), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.3:
	cmpl	$2, (%rax)
	jl	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_skl_build_plane_wm_uv
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_skl_build_plane_wm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skl_build_plane_wm
_skl_build_plane_wm:                    ; @skl_build_plane_wm
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	bl	_to_intel_plane
	ldr	x22, [x19]
	ldr	w21, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_intel_wm_plane_visible
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	bl	_skl_build_plane_wm_single
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x22]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_skl_build_plane_wm_uv
	cbnz	w0, LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_skl_build_plane_wm
.subsections_via_symbols
