	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crt_init                 ## -- Begin function intel_crt_init
	.p2align	4, 0x90
_intel_crt_init:                        ## @intel_crt_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	_intel_no_crt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	testq	%rax, %rax
	je	LBB0_1
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %r14
	movl	(%r15), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	addq	$8, %rbx
	movq	%rax, 40(%r14)
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_intel_crt_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_connector_init
	leaq	8(%r14), %r13
	movq	%r14, %rsi
	addq	$16, %rsi
	movq	_DRM_MODE_ENCODER_DAC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_intel_crt_enc_funcs@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_drm_encoder_init
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_intel_connector_attach_encoder
	movq	_INTEL_OUTPUT_ANALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movl	$1, 8(%r14)
	movq	%r12, %rdi
	callq	_IS_I830
	testq	%rax, %rax
	movl	$7, %eax
	movl	$1, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, 12(%r14)
	movq	%r12, %rdi
	callq	_IS_GEN2
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, 8(%r15)
	movq	$0, 16(%r15)
	movq	%r12, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_PCH_ADPA@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_17:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_5:
	movq	%r12, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_ADPA@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_VLV_ADPA@GOTPCREL(%rip), %rax
LBB0_8:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_intel_disable_crt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_intel_enable_crt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%r12, %rdi
	callq	_HAS_DDI
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	_intel_crt_get_hw_state@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_intel_ddi_get_hw_state@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_intel_connector_get_hw_state@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_crt_encoder_funcs@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_drm_encoder_helper_add
	movq	_intel_crt_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_connector_helper_add
	movq	%rbx, %rdi
	callq	_drm_sysfs_connector_add
	movq	%r12, %rdi
	callq	_I915_HAS_HOTPLUG
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	_DRM_CONNECTOR_POLL_CONNECT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	$0, (%r14)
	movq	_CRT_HOTPLUG_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r13)
	movq	%r12, %rdi
	callq	_HAS_PCH_LPT
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_FDI_RX_POLARITY_REVERSED_LPT@GOTPCREL(%rip), %rax
	movq	_FDI_RX_LINK_REVERSAL_OVERRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	__FDI_RXA_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	andl	%ebx, %eax
	movl	%eax, (%r13)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_intel_no_crt,4,2               ## @intel_no_crt
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_intel_crt_connector_funcs,4,2  ## @intel_crt_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ## @DRM_MODE_CONNECTOR_VGA
	.comm	_intel_crt_enc_funcs,4,2        ## @intel_crt_enc_funcs
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ## @DRM_MODE_ENCODER_DAC
	.comm	_INTEL_OUTPUT_ANALOG,4,2        ## @INTEL_OUTPUT_ANALOG
	.comm	_PCH_ADPA,4,2                   ## @PCH_ADPA
	.comm	_VLV_ADPA,4,2                   ## @VLV_ADPA
	.comm	_ADPA,4,2                       ## @ADPA
	.comm	_intel_disable_crt,4,2          ## @intel_disable_crt
	.comm	_intel_enable_crt,4,2           ## @intel_enable_crt
	.comm	_intel_ddi_get_hw_state,4,2     ## @intel_ddi_get_hw_state
	.comm	_intel_crt_get_hw_state,4,2     ## @intel_crt_get_hw_state
	.comm	_intel_connector_get_hw_state,4,2 ## @intel_connector_get_hw_state
	.comm	_crt_encoder_funcs,4,2          ## @crt_encoder_funcs
	.comm	_intel_crt_connector_helper_funcs,4,2 ## @intel_crt_connector_helper_funcs
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ## @DRM_CONNECTOR_POLL_CONNECT
	.comm	_CRT_HOTPLUG_INT_STATUS,4,2     ## @CRT_HOTPLUG_INT_STATUS
	.comm	_FDI_RX_POLARITY_REVERSED_LPT,4,2 ## @FDI_RX_POLARITY_REVERSED_LPT
	.comm	_FDI_RX_LINK_REVERSAL_OVERRIDE,4,2 ## @FDI_RX_LINK_REVERSAL_OVERRIDE
	.comm	__FDI_RXA_CTL,4,2               ## @_FDI_RXA_CTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_crt_init                 ; -- Begin function intel_crt_init
	.p2align	2
_intel_crt_init:                        ; @intel_crt_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x25, [x0]
Lloh0:
	adrp	x8, _intel_no_crt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intel_no_crt@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_dmi_check_system
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_1
; %bb.3:
	mov	x20, x0
	ldr	w1, [x21]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	add	x22, x0, #8
	str	x0, [x20, #40]
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x2, _intel_crt_connector_funcs@GOTPAGE
Lloh9:
	ldr	x2, [x2, _intel_crt_connector_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	bl	_drm_connector_init
	add	x24, x20, #8
	add	x23, x20, #16
Lloh10:
	adrp	x8, _DRM_MODE_ENCODER_DAC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_MODE_ENCODER_DAC@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x2, _intel_crt_enc_funcs@GOTPAGE
Lloh14:
	ldr	x2, [x2, _intel_crt_enc_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x23
	bl	_drm_encoder_init
	mov	x0, x21
	mov	x1, x24
	bl	_intel_connector_attach_encoder
Lloh15:
	adrp	x8, _INTEL_OUTPUT_ANALOG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INTEL_OUTPUT_ANALOG@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_IS_I830
	cmp	x0, #0
	mov	w8, #7
	csinc	w8, w8, wzr, eq
	str	w8, [x20, #12]
	mov	x0, x19
	bl	_IS_GEN2
	cmp	x0, #0
	cset	w8, eq
	str	w8, [x21, #8]
	str	xzr, [x21, #16]
	mov	x0, x19
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_7
; %bb.5:
Lloh18:
	adrp	x8, _PCH_ADPA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCH_ADPA@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kfree
LBB0_7:
	mov	x0, x19
	bl	_IS_VALLEYVIEW
Lloh20:
	adrp	x8, _VLV_ADPA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VLV_ADPA@GOTPAGEOFF]
Lloh22:
	adrp	x9, _ADPA@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ADPA@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x20, #36]
Lloh24:
	adrp	x8, _intel_disable_crt@GOTPAGE
Lloh25:
	ldr	x8, [x8, _intel_disable_crt@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _intel_enable_crt@GOTPAGE
Lloh28:
	ldr	x9, [x9, _intel_enable_crt@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	mov	x0, x19
	bl	_HAS_DDI
Lloh30:
	adrp	x8, _intel_crt_get_hw_state@GOTPAGE
Lloh31:
	ldr	x8, [x8, _intel_crt_get_hw_state@GOTPAGEOFF]
Lloh32:
	adrp	x9, _intel_ddi_get_hw_state@GOTPAGE
Lloh33:
	ldr	x9, [x9, _intel_ddi_get_hw_state@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x20, #20]
Lloh34:
	adrp	x8, _intel_connector_get_hw_state@GOTPAGE
Lloh35:
	ldr	x8, [x8, _intel_connector_get_hw_state@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh37:
	adrp	x1, _crt_encoder_funcs@GOTPAGE
Lloh38:
	ldr	x1, [x1, _crt_encoder_funcs@GOTPAGEOFF]
	mov	x0, x23
	bl	_drm_encoder_helper_add
Lloh39:
	adrp	x1, _intel_crt_connector_helper_funcs@GOTPAGE
Lloh40:
	ldr	x1, [x1, _intel_crt_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_connector_helper_add
	mov	x0, x22
	bl	_drm_sysfs_connector_add
	mov	x0, x19
	bl	_I915_HAS_HOTPLUG
Lloh41:
	adrp	x8, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGEOFF]
Lloh43:
	adrp	x9, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh44:
	ldr	x9, [x9, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x21, #12]
	str	xzr, [x20]
Lloh45:
	adrp	x8, _CRT_HOTPLUG_INT_STATUS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CRT_HOTPLUG_INT_STATUS@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	ldr	w9, [x25, #4]
	orr	w8, w9, w8
	str	w8, [x25, #4]
	mov	x0, x19
	bl	_HAS_PCH_LPT
	cbz	x0, LBB0_1
; %bb.9:
Lloh48:
	adrp	x8, _FDI_RX_POLARITY_REVERSED_LPT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _FDI_RX_POLARITY_REVERSED_LPT@GOTPAGEOFF]
Lloh50:
	adrp	x9, _FDI_RX_LINK_REVERSAL_OVERRIDE@GOTPAGE
Lloh51:
	ldr	x9, [x9, _FDI_RX_LINK_REVERSAL_OVERRIDE@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	ldr	w9, [x9]
	orr	w19, w9, w8
Lloh54:
	adrp	x8, __FDI_RXA_CTL@GOTPAGE
Lloh55:
	ldr	x8, [x8, __FDI_RXA_CTL@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_I915_READ
	and	w8, w0, w19
	str	w8, [x25]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_intel_no_crt,4,2               ; @intel_no_crt
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_intel_crt_connector_funcs,4,2  ; @intel_crt_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ; @DRM_MODE_CONNECTOR_VGA
	.comm	_intel_crt_enc_funcs,4,2        ; @intel_crt_enc_funcs
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ; @DRM_MODE_ENCODER_DAC
	.comm	_INTEL_OUTPUT_ANALOG,4,2        ; @INTEL_OUTPUT_ANALOG
	.comm	_PCH_ADPA,4,2                   ; @PCH_ADPA
	.comm	_VLV_ADPA,4,2                   ; @VLV_ADPA
	.comm	_ADPA,4,2                       ; @ADPA
	.comm	_intel_disable_crt,4,2          ; @intel_disable_crt
	.comm	_intel_enable_crt,4,2           ; @intel_enable_crt
	.comm	_intel_ddi_get_hw_state,4,2     ; @intel_ddi_get_hw_state
	.comm	_intel_crt_get_hw_state,4,2     ; @intel_crt_get_hw_state
	.comm	_intel_connector_get_hw_state,4,2 ; @intel_connector_get_hw_state
	.comm	_crt_encoder_funcs,4,2          ; @crt_encoder_funcs
	.comm	_intel_crt_connector_helper_funcs,4,2 ; @intel_crt_connector_helper_funcs
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ; @DRM_CONNECTOR_POLL_CONNECT
	.comm	_CRT_HOTPLUG_INT_STATUS,4,2     ; @CRT_HOTPLUG_INT_STATUS
	.comm	_FDI_RX_POLARITY_REVERSED_LPT,4,2 ; @FDI_RX_POLARITY_REVERSED_LPT
	.comm	_FDI_RX_LINK_REVERSAL_OVERRIDE,4,2 ; @FDI_RX_LINK_REVERSAL_OVERRIDE
	.comm	__FDI_RXA_CTL,4,2               ; @_FDI_RXA_CTL
.subsections_via_symbols
