	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_build_plane_wm
_icl_build_plane_wm:                    ## @icl_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	%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, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	callq	_to_intel_plane
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$0, 24(%rbx)
	je	LBB0_1
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rcx), %r15d
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	8(%rbx), %r13
	movl	(%rax), %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_wm_plane_visible
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	movq	(%r13), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_3
## %bb.4:
	xorl	%edi, %edi
	cmpl	$1, (%rax)
	sete	%dil
	jmp	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_wm_plane_visible
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_3:
	movl	$1, %edi
LBB0_5:
	callq	_WARN_ON
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_skl_build_plane_wm_single
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	$1, %ecx
LBB0_9:
	callq	_skl_build_plane_wm_single
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_icl_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 icl_build_plane_wm
_icl_build_plane_wm:                    ; @icl_build_plane_wm
	.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
	mov	x20, x0
	ldr	w0, [x1, #16]
	bl	_to_intel_plane
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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_3:
	ldr	w21, [x0]
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x23, [x19, #8]
	ldr	w22, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_intel_wm_plane_visible
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x23]
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_8
; %bb.5:
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w0, eq
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_wm_plane_visible
	cbz	x0, LBB0_1
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	bl	_skl_build_plane_wm_single
	cbnz	w0, LBB0_2
	b	LBB0_1
LBB0_8:
	mov	w0, #1
LBB0_9:
	bl	_WARN_ON
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	bl	_skl_build_plane_wm_single
	cbnz	w0, LBB0_2
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	w3, #1
	bl	_skl_build_plane_wm_single
	cbnz	w0, LBB0_2
	b	LBB0_1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_icl_build_plane_wm
.subsections_via_symbols
