	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_plane_init               ## -- Begin function intel_plane_init
	.p2align	4, 0x90
_intel_plane_init:                      ## @intel_plane_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jg	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_INTEL_INFO
	movl	(%rax), %eax
	leal	-5(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_9
## %bb.4:
	movabsq	$68719476737, %rax              ## imm = 0x1000000001
	movq	%rax, (%r12)
	movq	_ilk_update_plane@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_ilk_disable_plane@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_ilk_update_colorkey@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_ilk_get_colorkey@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%r14, %rdi
	callq	_IS_GEN6
	testl	%eax, %eax
	jne	LBB0_13
## %bb.5:
	movq	_ilk_plane_formats@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	$7, %eax
	jne	LBB0_17
## %bb.10:
	movq	%r14, %rdi
	callq	_IS_HASWELL
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_IS_VALLEYVIEW
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
LBB0_12:
	movl	%ecx, (%r12)
	movl	$2, 4(%r12)
	movq	_ivb_update_plane@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_ivb_disable_plane@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_ivb_update_colorkey@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_ivb_get_colorkey@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
LBB0_13:
	movq	_snb_plane_formats@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	movl	%r15d, 8(%r12)
	movslq	%edx, %rdx
	movq	%r12, %rsi
	addq	$12, %rsi
	movl	$0, (%rsp)
	movq	_intel_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_drm_plane_init
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_17:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ilk_update_plane,4,2           ## @ilk_update_plane
	.comm	_ilk_disable_plane,4,2          ## @ilk_disable_plane
	.comm	_ilk_update_colorkey,4,2        ## @ilk_update_colorkey
	.comm	_ilk_get_colorkey,4,2           ## @ilk_get_colorkey
	.comm	_snb_plane_formats,8,3          ## @snb_plane_formats
	.comm	_ilk_plane_formats,8,3          ## @ilk_plane_formats
	.comm	_ivb_update_plane,4,2           ## @ivb_update_plane
	.comm	_ivb_disable_plane,4,2          ## @ivb_disable_plane
	.comm	_ivb_update_colorkey,4,2        ## @ivb_update_colorkey
	.comm	_ivb_get_colorkey,4,2           ## @ivb_get_colorkey
	.comm	_intel_plane_funcs,4,2          ## @intel_plane_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function intel_plane_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	16                              ; 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_intel_plane_init
	.p2align	2
_intel_plane_init:                      ; @intel_plane_init
	.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	x21, x1
	mov	x19, x0
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #4
	b.gt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_INTEL_INFO
	ldr	w8, [x0]
	sub	w9, w8, #5
	cmp	w9, #2
	b.hs	LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
Lloh7:
	adrp	x8, _ilk_update_plane@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ilk_update_plane@GOTPAGEOFF]
Lloh9:
	adrp	x9, _ilk_disable_plane@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ilk_disable_plane@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh13:
	adrp	x8, _ilk_update_colorkey@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ilk_update_colorkey@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _ilk_get_colorkey@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ilk_get_colorkey@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
	mov	x0, x19
	bl	_IS_GEN6
Lloh19:
	adrp	x8, _snb_plane_formats@GOTPAGE
Lloh20:
	ldr	x8, [x8, _snb_plane_formats@GOTPAGEOFF]
Lloh21:
	adrp	x9, _ilk_plane_formats@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ilk_plane_formats@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	b	LBB0_14
LBB0_5:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	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_8:
	cmp	w8, #7
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_IS_HASWELL
	cbz	w0, LBB0_12
; %bb.10:
	mov	w8, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_kfree
	b	LBB0_1
LBB0_12:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
	cmp	w0, #0
	cset	w8, eq
LBB0_13:
	mov	w9, #2
	stp	w8, w9, [x20]
Lloh25:
	adrp	x8, _ivb_update_plane@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ivb_update_plane@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _ivb_disable_plane@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ivb_disable_plane@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
Lloh31:
	adrp	x8, _ivb_update_colorkey@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ivb_update_colorkey@GOTPAGEOFF]
Lloh33:
	adrp	x9, _ivb_get_colorkey@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ivb_get_colorkey@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh37:
	adrp	x8, _snb_plane_formats@GOTPAGE
Lloh38:
	ldr	x8, [x8, _snb_plane_formats@GOTPAGEOFF]
LBB0_14:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x5, x0
	str	w21, [x20, #8]
	mov	w8, #1
	lsl	w8, w8, w21
	sxtw	x2, w8
	add	x1, x20, #12
Lloh39:
	adrp	x3, _intel_plane_funcs@GOTPAGE
Lloh40:
	ldr	x3, [x3, _intel_plane_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x4, x22
	mov	w6, #0
	bl	_drm_plane_init
	mov	x19, x0
	cbz	w0, LBB0_7
; %bb.15:
	mov	x0, x20
	bl	_kfree
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ilk_update_plane,4,2           ; @ilk_update_plane
	.comm	_ilk_disable_plane,4,2          ; @ilk_disable_plane
	.comm	_ilk_update_colorkey,4,2        ; @ilk_update_colorkey
	.comm	_ilk_get_colorkey,4,2           ; @ilk_get_colorkey
	.comm	_snb_plane_formats,8,3          ; @snb_plane_formats
	.comm	_ilk_plane_formats,8,3          ; @ilk_plane_formats
	.comm	_ivb_update_plane,4,2           ; @ivb_update_plane
	.comm	_ivb_disable_plane,4,2          ; @ivb_disable_plane
	.comm	_ivb_update_colorkey,4,2        ; @ivb_update_colorkey
	.comm	_ivb_get_colorkey,4,2           ; @ivb_get_colorkey
	.comm	_intel_plane_funcs,4,2          ; @intel_plane_funcs
.subsections_via_symbols
