	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_plane_has_windowing
_i9xx_plane_has_windowing:              ## @i9xx_plane_has_windowing
	.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
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movl	(%rbx), %ebx
	movq	%rax, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_PLANE_B@GOTPCREL(%rip), %rax
LBB0_2:
	cmpl	(%rax), %ebx
	sete	%al
	jmp	LBB0_7
LBB0_3:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jg	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_IS_G4X
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_PLANE_C@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	_PLANE_B@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	sete	%cl
	movq	_PLANE_C@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	sete	%al
	orb	%cl, %al
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_B,4,2                    ## @PLANE_B
	.comm	_PLANE_C,4,2                    ## @PLANE_C
	.no_dead_strip	_i9xx_plane_has_windowing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_plane_has_windowing
_i9xx_plane_has_windowing:              ; @i9xx_plane_has_windowing
	.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	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x19, x0
	ldr	w20, [x20]
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _PLANE_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANE_B@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	cmp	w20, w8
LBB0_3:
	cset	w0, eq
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #4
	b.gt	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_IS_G4X
	cbz	x0, LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	mov	w1, #4
	bl	_IS_GEN
	cbz	x0, LBB0_10
; %bb.9:
Lloh2:
	adrp	x8, _PLANE_C@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PLANE_C@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
Lloh4:
	adrp	x8, _PLANE_B@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PLANE_B@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w20, w8
Lloh7:
	adrp	x8, _PLANE_C@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PLANE_C@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ccmp	w20, w8, #4, ne
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_B,4,2                    ; @PLANE_B
	.comm	_PLANE_C,4,2                    ; @PLANE_C
	.no_dead_strip	_i9xx_plane_has_windowing
.subsections_via_symbols
