	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_detect
_intel_dp_detect:                       ## @intel_dp_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_intel_attached_dp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_dp_to_dig_port
	movq	%rax, %r14
	movq	(%r15), %rdi
	movl	$0, (%rbx)
	callq	_HAS_PCH_SPLIT
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_ironlake_dp_detect
	jmp	LBB0_3
LBB0_2:
	callq	_g4x_dp_detect
LBB0_3:
	movq	_connector_status_connected@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	callq	_intel_dp_probe_oui
	movq	8(%rbx), %rax
	movq	_HDMI_AUDIO_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	%rbx, %rsi
	addq	$16, %rsi
	movq	%r15, %rdi
	callq	_intel_dp_get_edid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_drm_detect_monitor_audio
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_5:
	movq	_HDMI_AUDIO_ON@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, (%rbx)
LBB0_8:
	movq	(%r14), %rax
	movq	_INTEL_OUTPUT_EDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_INTEL_OUTPUT_DISPLAYPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_10:
	movl	(%r12), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_HDMI_AUDIO_AUTO,8,3            ## @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,8,3              ## @HDMI_AUDIO_ON
	.comm	_INTEL_OUTPUT_EDP,8,3           ## @INTEL_OUTPUT_EDP
	.comm	_INTEL_OUTPUT_DISPLAYPORT,8,3   ## @INTEL_OUTPUT_DISPLAYPORT
	.no_dead_strip	_intel_dp_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_detect
_intel_dp_detect:                       ; @intel_dp_detect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_intel_attached_dp
	mov	x20, x0
	bl	_dp_to_dig_port
	mov	x19, x0
	ldr	x0, [x21]
	str	wzr, [x20]
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ironlake_dp_detect
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_g4x_dp_detect
LBB0_3:
Lloh0:
	adrp	x22, _connector_status_connected@GOTPAGE
Lloh1:
	ldr	x22, [x22, _connector_status_connected@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.4:
	mov	x0, x20
	bl	_intel_dp_probe_oui
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _HDMI_AUDIO_AUTO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HDMI_AUDIO_AUTO@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	add	x1, x20, #16
	mov	x0, x21
	bl	_intel_dp_get_edid
	cbz	x0, LBB0_8
; %bb.6:
	mov	x21, x0
	bl	_drm_detect_monitor_audio
	str	w0, [x20]
	mov	x0, x21
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x9, _HDMI_AUDIO_ON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDMI_AUDIO_ON@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x20]
LBB0_8:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _INTEL_OUTPUT_EDP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INTEL_OUTPUT_EDP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh11:
	adrp	x8, _INTEL_OUTPUT_DISPLAYPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INTEL_OUTPUT_DISPLAYPORT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_10:
	ldr	w0, [x22]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_HDMI_AUDIO_AUTO,8,3            ; @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,8,3              ; @HDMI_AUDIO_ON
	.comm	_INTEL_OUTPUT_EDP,8,3           ; @INTEL_OUTPUT_EDP
	.comm	_INTEL_OUTPUT_DISPLAYPORT,8,3   ; @INTEL_OUTPUT_DISPLAYPORT
	.no_dead_strip	_intel_dp_detect
.subsections_via_symbols
