	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_crt_detect
_intel_crt_detect:                      ## @intel_crt_detect
	.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	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_intel_attached_crt
	movq	%rax, %r14
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_i915_modparams@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_intel_display_power_get
	movl	%eax, %edx
	testl	%r12d, %r12d
	je	LBB0_14
LBB0_15:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_intel_get_load_detect_pipe
	testl	%eax, %eax
	jle	LBB0_25
## %bb.16:
	movq	%rbx, %rdi
	callq	_intel_crt_detect_ddc
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %r12d
LBB0_24:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_intel_release_load_detect_pipe
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_27
LBB0_2:
	movq	_intel_spurious_crt_detect@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_28
LBB0_25:
	movl	%eax, %r12d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_27
## %bb.26:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_27
LBB0_4:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_intel_display_power_get
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_I915_HAS_HOTPLUG
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_intel_crt_detect_hotplug
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_9
LBB0_18:
	movq	%r13, %rdi
	callq	_INTEL_GEN
	cmpl	$3, %eax
	jg	LBB0_20
## %bb.19:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_to_intel_crtc
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_intel_crt_load_detect
	movl	%eax, %r12d
	jmp	LBB0_24
LBB0_20:
	movq	_i915_modparams@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_8:
	movq	%rbx, %rdi
	callq	_intel_crt_detect_ddc
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r12d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_27
LBB0_11:
	movq	%r13, %rdi
	callq	_I915_HAS_HOTPLUG
	testq	%rax, %rax
	je	LBB0_12
## %bb.29:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_22:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_12:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testl	%r12d, %r12d
	jne	LBB0_15
LBB0_14:
	movl	(%rbx), %r12d
LBB0_27:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_intel_display_power_put
	movq	%r13, %rdi
	callq	_intel_display_power_flush_work
LBB0_28:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CONNECTOR:%d:%s] force=%d\n"

	.comm	_i915_modparams,8,3             ## @i915_modparams
	.comm	_intel_spurious_crt_detect,4,2  ## @intel_spurious_crt_detect
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
L_.str.1:                               ## @.str.1
	.asciz	"CRT detected via hotplug\n"

	.comm	_connector_status_connected,4,2 ## @connector_status_connected
L_.str.2:                               ## @.str.2
	.asciz	"CRT not detected via hotplug\n"

	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.no_dead_strip	_intel_crt_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_crt_detect
_intel_crt_detect:                      ; @intel_crt_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #24]
	bl	_to_i915
	mov	x19, x0
	mov	x0, x22
	bl	_intel_attached_crt
	mov	x20, x0
	ldp	w9, w8, [x22, #16]
	stp	x9, x24, [sp, #8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x25, _i915_modparams@GOTPAGE
Lloh3:
	ldr	x25, [x25, _i915_modparams@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_intel_display_power_get
	mov	x23, x0
LBB0_2:
	cbz	w24, LBB0_10
; %bb.3:
	add	x2, sp, #24
	mov	x0, x22
	mov	x1, #0
	mov	x3, x21
	bl	_intel_get_load_detect_pipe
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x0, x22
	bl	_intel_crt_detect_ddc
	cbz	x0, LBB0_15
; %bb.5:
Lloh4:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh5:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
LBB0_6:
	ldr	w24, [x8]
LBB0_7:
	add	x1, sp, #24
	mov	x0, x22
	mov	x2, x21
	bl	_intel_release_load_detect_pipe
	b	LBB0_23
LBB0_8:
Lloh6:
	adrp	x8, _intel_spurious_crt_detect@GOTPAGE
Lloh7:
	ldr	x8, [x8, _intel_spurious_crt_detect@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_dmi_check_system
	cbz	x0, LBB0_12
; %bb.9:
Lloh9:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh10:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	b	LBB0_24
LBB0_10:
	ldr	w24, [x22]
	b	LBB0_23
LBB0_11:
Lloh12:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh13:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w24, w8, w0, eq
	b	LBB0_23
LBB0_12:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_intel_display_power_get
	mov	x23, x0
	mov	x0, x19
	bl	_I915_HAS_HOTPLUG
	cbz	x0, LBB0_20
; %bb.13:
	mov	x0, x22
	bl	_intel_crt_detect_hotplug
	cbz	x0, LBB0_19
; %bb.14:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_21
LBB0_15:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #3
	b.gt	LBB0_17
; %bb.16:
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	_to_intel_crtc
	ldr	w1, [x0]
	mov	x0, x20
	bl	_intel_crt_load_detect
	mov	x24, x0
	b	LBB0_7
LBB0_17:
	ldr	x8, [x25]
	cbz	x8, LBB0_27
; %bb.18:
Lloh17:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh18:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
	b	LBB0_6
LBB0_19:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_20:
	mov	x0, x22
	bl	_intel_crt_detect_ddc
	cbz	x0, LBB0_25
LBB0_21:
Lloh21:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh22:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
LBB0_22:
	ldr	w24, [x8]
LBB0_23:
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, x23
	bl	_intel_display_power_put
	mov	x0, x19
	bl	_intel_display_power_flush_work
LBB0_24:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	mov	x0, x19
	bl	_I915_HAS_HOTPLUG
	cbz	x0, LBB0_2
; %bb.26:
Lloh23:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh24:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
	b	LBB0_22
LBB0_27:
Lloh25:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh26:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CONNECTOR:%d:%s] force=%d\n"

	.comm	_i915_modparams,8,3             ; @i915_modparams
	.comm	_intel_spurious_crt_detect,4,2  ; @intel_spurious_crt_detect
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
l_.str.1:                               ; @.str.1
	.asciz	"CRT detected via hotplug\n"

	.comm	_connector_status_connected,4,2 ; @connector_status_connected
l_.str.2:                               ; @.str.2
	.asciz	"CRT not detected via hotplug\n"

	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.no_dead_strip	_intel_crt_detect
.subsections_via_symbols
