	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_plane_can_remap          ## -- Begin function intel_plane_can_remap
	.p2align	4, 0x90
_intel_plane_can_remap:                 ## @intel_plane_can_remap
	.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	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_to_intel_plane
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_to_i915
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_PLANE_CURSOR@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.1:
	movq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_INTEL_GEN
	cmpl	$4, %eax
	jl	LBB0_9
## %bb.2:
	movq	(%rbx), %rdi
	callq	_is_ccs_modifier
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	movq	(%rbx), %rax
	movq	_DRM_FORMAT_MOD_LINEAR@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	callq	_intel_tile_size
	movq	16(%rbx), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.5:
	decl	%eax
	movq	8(%rbx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, (%rdx,%rsi,4)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_7
	jmp	LBB0_9
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_CURSOR,8,3               ## @PLANE_CURSOR
	.comm	_DRM_FORMAT_MOD_LINEAR,8,3      ## @DRM_FORMAT_MOD_LINEAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_plane_can_remap          ; -- Begin function intel_plane_can_remap
	.p2align	2
_intel_plane_can_remap:                 ; @intel_plane_can_remap
	.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	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_plane
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_to_i915
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _PLANE_CURSOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLANE_CURSOR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x20, [x20]
	bl	_INTEL_GEN
	cmp	w0, #4
	b.lt	LBB0_3
; %bb.2:
	ldr	x0, [x20]
	bl	_is_ccs_modifier
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
LBB0_5:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _DRM_FORMAT_MOD_LINEAR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_FORMAT_MOD_LINEAR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_intel_tile_size
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.7:
	sub	w9, w0, #1
	ldr	x10, [x20, #8]
	mov	w0, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	tst	w11, w9
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #4
	subs	x8, x8, #1
	b.ne	LBB0_8
	b	LBB0_4
LBB0_10:
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_CURSOR,8,3               ; @PLANE_CURSOR
	.comm	_DRM_FORMAT_MOD_LINEAR,8,3      ; @DRM_FORMAT_MOD_LINEAR
.subsections_via_symbols
