	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_crt_detect_ddc
_intel_crt_detect_ddc:                  ## @intel_crt_detect_ddc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_intel_attached_crt
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	movq	_INTEL_OUTPUT_ANALOG@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rcx
	setne	%dil
	callq	_BUG_ON
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_intel_gmbus_get_adapter
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_intel_crt_get_edid
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_DRM_EDID_INPUT_DIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	$1, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_ANALOG,8,3        ## @INTEL_OUTPUT_ANALOG
	.comm	_DRM_EDID_INPUT_DIGITAL,4,2     ## @DRM_EDID_INPUT_DIGITAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRT detected via DDC:0x50 [EDID]\n"

L_.str.1:                               ## @.str.1
	.asciz	"CRT not detected via DDC:0x50 [EDID reports a digital panel]\n"

L_.str.2:                               ## @.str.2
	.asciz	"CRT not detected via DDC:0x50 [no valid EDID found]\n"

	.no_dead_strip	_intel_crt_detect_ddc
.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_ddc
_intel_crt_detect_ddc:                  ; @intel_crt_detect_ddc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_intel_attached_crt
	ldp	x9, x8, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _INTEL_OUTPUT_ANALOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_ANALOG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w0, ne
	bl	_BUG_ON
	ldr	w1, [x20]
	mov	x0, x20
	bl	_intel_gmbus_get_adapter
	mov	x1, x0
	mov	x0, x19
	bl	_intel_crt_get_edid
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_ANALOG,8,3        ; @INTEL_OUTPUT_ANALOG
	.comm	_DRM_EDID_INPUT_DIGITAL,4,2     ; @DRM_EDID_INPUT_DIGITAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRT detected via DDC:0x50 [EDID]\n"

l_.str.1:                               ; @.str.1
	.asciz	"CRT not detected via DDC:0x50 [EDID reports a digital panel]\n"

l_.str.2:                               ; @.str.2
	.asciz	"CRT not detected via DDC:0x50 [no valid EDID found]\n"

	.no_dead_strip	_intel_crt_detect_ddc
.subsections_via_symbols
