	.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	%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, %rbx
	movq	8(%rdi), %r12
	callq	_intel_attached_crt
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_I915_HAS_HOTPLUG
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_intel_crt_detect_hotplug
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_4:
	movq	%rbx, %rdi
	callq	_intel_crt_detect_ddc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_6:
	movq	%r12, %rdi
	callq	_I915_HAS_HOTPLUG
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.10:
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_intel_get_load_detect_pipe
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	callq	_intel_crt_detect_ddc
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_14
LBB0_9:
	movl	(%rbx), %r14d
	jmp	LBB0_17
LBB0_15:
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	movq	%r14, %rdi
	callq	_intel_crt_load_detect
	movl	%eax, %r14d
LBB0_14:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_intel_release_load_detect_pipe
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRT detected via hotplug\n"

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

	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.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, #64
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	bl	_intel_attached_crt
	mov	x20, x0
	mov	x0, x22
	bl	_I915_HAS_HOTPLUG
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_intel_crt_detect_hotplug
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_4:
	mov	x0, x19
	bl	_intel_crt_detect_ddc
	cbz	x0, LBB0_8
LBB0_5:
Lloh4:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh5:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
LBB0_7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	mov	x0, x22
	bl	_I915_HAS_HOTPLUG
	cbz	x0, LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh7:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
	b	LBB0_6
LBB0_10:
	cbz	w21, LBB0_14
; %bb.11:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_intel_get_load_detect_pipe
	cbz	x0, LBB0_15
; %bb.12:
	mov	x0, x19
	bl	_intel_crt_detect_ddc
	cbz	x0, LBB0_16
; %bb.13:
Lloh8:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh9:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_17
LBB0_14:
	ldr	w20, [x19]
	b	LBB0_7
LBB0_15:
Lloh11:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh12:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
	b	LBB0_6
LBB0_16:
	mov	x0, x20
	bl	_intel_crt_load_detect
	mov	x20, x0
LBB0_17:
	add	x1, sp, #8
	mov	x0, x19
	bl	_intel_release_load_detect_pipe
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRT detected via hotplug\n"

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

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