	.file	"extr_cdv_intel_hdmi.c_cdv_hdmi_detect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cdv_hdmi_detect, @function
cdv_hdmi_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	gma_attached_encoder@PLT
	mov	rdi, rbp
	mov	r12d, DWORD PTR connector_status_disconnected[rip]
	mov	rsi, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	call	drm_get_edid@PLT
	mov	QWORD PTR [rbx], 0
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR DRM_EDID_INPUT_DIGITAL[rip], eax
	jne	.L12
.L3:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	mov	r12d, DWORD PTR connector_status_connected[rip]
	call	drm_detect_hdmi_monitor@PLT
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	call	drm_detect_monitor_audio@PLT
	mov	DWORD PTR 4[rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cdv_hdmi_detect, .-cdv_hdmi_detect
	.comm	connector_status_disconnected,4,4
	.comm	connector_status_connected,4,4
	.comm	DRM_EDID_INPUT_DIGITAL,4,4
	.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_cdv_intel_hdmi.c_cdv_hdmi_detect.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdv_hdmi_detect, %function
cdv_hdmi_detect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	gma_attached_encoder
	mov	r3, r0
	ldr	r2, .L13
	ldm	r3, {r1, r5}
	mov	r0, r4
	ldr	r6, [r2]
	bl	drm_get_edid
	mov	r3, #0
	subs	r4, r0, #0
	str	r3, [r5]
	str	r3, [r5, #4]
	beq	.L1
	ldr	r3, .L13+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L12
.L3:
	mov	r0, r4
	bl	kfree
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+8
	ldr	r6, [r3]
	bl	drm_detect_hdmi_monitor
	mov	r3, r0
	mov	r0, r4
	str	r3, [r5]
	bl	drm_detect_monitor_audio
	str	r0, [r5, #4]
	b	.L3
.L14:
	.align	2
.L13:
	.word	connector_status_disconnected
	.word	DRM_EDID_INPUT_DIGITAL
	.word	connector_status_connected
	.size	cdv_hdmi_detect, .-cdv_hdmi_detect
	.comm	connector_status_disconnected,4,4
	.comm	connector_status_connected,4,4
	.comm	DRM_EDID_INPUT_DIGITAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
