	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function intel_crtc_init
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_intel_crtc_init:                       ## @intel_crtc_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	%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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	_INTELFB_CONN_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	48(,%rax,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %r14
	addq	$40, %r14
	movq	_intel_crtc_funcs@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_drm_crtc_init
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_drm_mode_crtc_set_gamma_size
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	%rcx, %rsi
	subq	%rax, %rsi
	cmpq	$32, %rsi
	jb	LBB0_6
## %bb.2:
	movq	%rdx, %rsi
	subq	%rax, %rsi
	cmpq	$32, %rsi
	jb	LBB0_6
## %bb.3:
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	cmpq	$32, %rsi
	jb	LBB0_6
## %bb.4:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [12,12,12,12]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	paddd	%xmm1, %xmm5
	movdqu	%xmm0, (%rax,%rsi,4)
	movdqu	%xmm5, 16(%rax,%rsi,4)
	movdqu	%xmm0, (%rcx,%rsi,4)
	movdqu	%xmm5, 16(%rcx,%rsi,4)
	movdqu	%xmm0, (%rdx,%rsi,4)
	movdqu	%xmm5, 16(%rdx,%rsi,4)
	movdqa	%xmm0, %xmm5
	paddd	%xmm2, %xmm5
	movdqa	%xmm0, %xmm6
	paddd	%xmm3, %xmm6
	movdqu	%xmm5, 32(%rax,%rsi,4)
	movdqu	%xmm6, 48(%rax,%rsi,4)
	movdqu	%xmm5, 32(%rcx,%rsi,4)
	movdqu	%xmm6, 48(%rcx,%rsi,4)
	movdqu	%xmm5, 32(%rdx,%rsi,4)
	movdqu	%xmm6, 48(%rdx,%rsi,4)
	addq	$16, %rsi
	paddd	%xmm4, %xmm0
	cmpq	$256, %rsi                      ## imm = 0x100
	jne	LBB0_5
	jmp	LBB0_8
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, (%rax,%rsi,4)
	movl	%esi, (%rcx,%rsi,4)
	movl	%esi, (%rdx,%rsi,4)
	leal	1(%rsi), %edi
	movl	%edi, 4(%rax,%rsi,4)
	movl	%edi, 4(%rcx,%rsi,4)
	movl	%edi, 4(%rdx,%rsi,4)
	addq	$2, %rsi
	cmpq	$256, %rsi                      ## imm = 0x100
	jne	LBB0_7
LBB0_8:
	movl	%r15d, 24(%rbx)
	movl	%r15d, 28(%rbx)
	movl	%r15d, 32(%rbx)
	movq	%r12, %rdi
	callq	_IS_MOBILE
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%r12, %rdi
	callq	_IS_GEN3
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	movl	%eax, 28(%rbx)
LBB0_11:
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	$1, %edi
	cmpl	%r15d, %eax
	jle	LBB0_13
## %bb.12:
	movq	8(%r13), %rax
	movslq	28(%rbx), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	setne	%dil
LBB0_13:
	callq	_BUG_ON
	movq	8(%r13), %rax
	movslq	28(%rbx), %rcx
	movq	%r14, (%rax,%rcx,8)
	movq	(%r13), %rax
	movslq	24(%rbx), %rcx
	movq	%r14, (%rax,%rcx,8)
	movl	$24, 36(%rbx)
	movq	_intel_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_crtc_helper_add            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTELFB_CONN_LIMIT,4,2         ## @INTELFB_CONN_LIMIT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_intel_crtc_funcs,4,2           ## @intel_crtc_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"swapping pipes & planes for FBC\n"

	.comm	_intel_helper_funcs,4,2         ## @intel_helper_funcs
	.no_dead_strip	_intel_crtc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function intel_crtc_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_intel_crtc_init:                       ; @intel_crtc_init
	.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	x21, x1
	mov	x22, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _INTELFB_CONN_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTELFB_CONN_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #3
	add	w0, w8, #48
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x20, x0, #40
Lloh6:
	adrp	x2, _intel_crtc_funcs@GOTPAGE
Lloh7:
	ldr	x2, [x2, _intel_crtc_funcs@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x20
	bl	_drm_crtc_init
	mov	x0, x20
	mov	w1, #256
	bl	_drm_mode_crtc_set_gamma_size
	ldp	x11, x8, [x19]
	ldr	x9, [x19, #16]
	sub	x10, x8, x11
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.2:
	sub	x10, x9, x11
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.3:
	sub	x10, x9, x8
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.4:
	mov	x10, #0
Lloh8:
	adrp	x12, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x12, lCPI0_0@PAGEOFF]
	add	x11, x11, #32
	movi.4s	v1, #4
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v5, v0, v1
	add.4s	v6, v0, v2
	add	x12, x11, x10
	stp	q0, q5, [x12, #-32]
	add.4s	v7, v0, v3
	stp	q6, q7, [x12]
	add	x12, x8, x10
	stp	q0, q5, [x12]
	stp	q6, q7, [x12, #32]
	add	x12, x9, x10
	stp	q0, q5, [x12]
	add.4s	v0, v0, v4
	add	x10, x10, #64
	stp	q6, q7, [x12, #32]
	cmp	x10, #1024
	b.ne	LBB0_5
	b	LBB0_9
LBB0_6:
	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_7:
	mov	x10, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x10, #2
	str	w10, [x11, x12]
	str	w10, [x8, x12]
	str	w10, [x9, x12]
	add	x10, x10, #1
	cmp	x10, #256
	b.ne	LBB0_8
LBB0_9:
	stp	w21, w21, [x19, #24]
	str	w21, [x19, #32]
	mov	x0, x22
	bl	_IS_MOBILE
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x22
	bl	_IS_GEN3
	cbz	x0, LBB0_12
; %bb.11:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	cmp	w21, #0
	cset	w8, eq
	str	w8, [x19, #28]
LBB0_12:
	ldr	x0, [x23, #8]
	bl	_ARRAY_SIZE
	cmp	w0, w21
	b.le	LBB0_14
; %bb.13:
	ldr	x8, [x23, #8]
	ldrsw	x9, [x19, #28]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_15
LBB0_14:
	mov	w0, #1
LBB0_15:
	bl	_BUG_ON
	ldr	x8, [x23, #8]
	ldpsw	x10, x9, [x19, #24]
	str	x20, [x8, x9, lsl #3]
	ldr	x8, [x23]
	str	x20, [x8, x10, lsl #3]
	mov	w8, #24
	str	w8, [x19, #36]
Lloh12:
	adrp	x1, _intel_helper_funcs@GOTPAGE
Lloh13:
	ldr	x1, [x1, _intel_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	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
	b	_drm_crtc_helper_add
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_INTELFB_CONN_LIMIT,4,2         ; @INTELFB_CONN_LIMIT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_intel_crtc_funcs,4,2           ; @intel_crtc_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"swapping pipes & planes for FBC\n"

	.comm	_intel_helper_funcs,4,2         ; @intel_helper_funcs
	.no_dead_strip	_intel_crtc_init
.subsections_via_symbols
