	.file	"extr_intel_dp.c_intel_dp_detect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_dp_detect, @function
intel_dp_detect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	intel_attached_dp@PLT
	mov	rbx, rax
	mov	rdi, rax
	call	dp_to_dig_port@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	DWORD PTR [rbx], 0
	mov	r12, rax
	call	HAS_PCH_SPLIT@PLT
	mov	rdi, rbx
	test	rax, rax
	je	.L2
	call	ironlake_dp_detect@PLT
	cmp	DWORD PTR connector_status_connected[rip], eax
	je	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	g4x_dp_detect@PLT
	cmp	DWORD PTR connector_status_connected[rip], eax
	jne	.L1
.L13:
	mov	rdi, rbx
	call	intel_dp_probe_oui@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR HDMI_AUDIO_AUTO[rip]
	je	.L5
	cmp	QWORD PTR HDMI_AUDIO_ON[rip], rax
	sete	al
	movzx	eax, al
	mov	DWORD PTR [rbx], eax
.L6:
	mov	rax, QWORD PTR INTEL_OUTPUT_EDP[rip]
	cmp	QWORD PTR [r12], rax
	je	.L7
	mov	rax, QWORD PTR INTEL_OUTPUT_DISPLAYPORT[rip]
	mov	QWORD PTR [r12], rax
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR connector_status_connected[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, 16[rbx]
	call	intel_dp_get_edid@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L6
	mov	rdi, rax
	call	drm_detect_monitor_audio@PLT
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	call	kfree@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	intel_dp_detect, .-intel_dp_detect
	.comm	connector_status_connected,4,4
	.comm	INTEL_OUTPUT_EDP,8,8
	.comm	INTEL_OUTPUT_DISPLAYPORT,8,8
	.comm	HDMI_AUDIO_ON,8,8
	.comm	HDMI_AUDIO_AUTO,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_intel_dp.c_intel_dp_detect.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_dp_detect, %function
intel_dp_detect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	intel_attached_dp
	mov	r4, r0
	bl	dp_to_dig_port
	mov	r3, #0
	mov	r6, r0
	ldr	r0, [r5]
	str	r3, [r4]
	bl	HAS_PCH_SPLIT
	cmp	r0, #0
	mov	r0, r4
	beq	.L2
	bl	ironlake_dp_detect
.L3:
	ldr	r7, .L13
	ldr	r3, [r7]
	cmp	r3, r0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	intel_dp_probe_oui
	ldr	r3, .L13+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	ldr	r3, .L13+8
	ldr	r3, [r3]
	sub	r3, r3, r2
	clz	r3, r3
	lsr	r3, r3, #5
	str	r3, [r4]
.L6:
	ldr	r3, .L13+12
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r0, [r7]
	cmp	r2, r3
	ldrne	r3, .L13+16
	ldrne	r3, [r3]
	strne	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	g4x_dp_detect
	b	.L3
.L5:
	mov	r0, r5
	add	r1, r4, #8
	bl	intel_dp_get_edid
	subs	r5, r0, #0
	beq	.L6
	bl	drm_detect_monitor_audio
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4]
	bl	kfree
	b	.L6
.L14:
	.align	2
.L13:
	.word	connector_status_connected
	.word	HDMI_AUDIO_AUTO
	.word	HDMI_AUDIO_ON
	.word	INTEL_OUTPUT_EDP
	.word	INTEL_OUTPUT_DISPLAYPORT
	.size	intel_dp_detect, .-intel_dp_detect
	.comm	connector_status_connected,4,4
	.comm	INTEL_OUTPUT_EDP,4,4
	.comm	INTEL_OUTPUT_DISPLAYPORT,4,4
	.comm	HDMI_AUDIO_ON,4,4
	.comm	HDMI_AUDIO_AUTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
