	.file	"extr_intel_tv.c_intel_tv_detect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_tv_detect, @function
intel_tv_detect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	intel_attached_tv@PLT
	mov	r12, rax
	mov	rax, QWORD PTR reported_modes[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rsp], eax
	test	ebx, ebx
	jne	.L12
	mov	eax, DWORD PTR 0[rbp]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	r13, 4[rsp]
	mov	rsi, rsp
	mov	rdi, rbp
	mov	rdx, r13
	call	intel_get_load_detect_pipe@PLT
	mov	r8, rax
	mov	eax, DWORD PTR connector_status_unknown[rip]
	test	r8, r8
	je	.L1
	mov	rsi, rbp
	mov	rdi, r12
	call	intel_tv_detect_type@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	ebx, eax
	call	intel_release_load_detect_pipe@PLT
	mov	eax, DWORD PTR connector_status_disconnected[rip]
	test	ebx, ebx
	js	.L1
	mov	DWORD PTR [r12], ebx
	mov	rdi, rbp
	call	intel_tv_find_better_format@PLT
	mov	eax, DWORD PTR connector_status_connected[rip]
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	intel_tv_detect, .-intel_tv_detect
	.comm	reported_modes,8,8
	.comm	connector_status_unknown,4,4
	.comm	connector_status_disconnected,4,4
	.comm	connector_status_connected,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_intel_tv.c_intel_tv_detect.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_tv_detect, %function
intel_tv_detect:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r3, .L14
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	bl	intel_attached_tv
	ldr	r3, .L14+4
	cmp	r5, #0
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	bne	.L11
	ldr	r0, [r4]
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	mov	r5, r0
	add	r2, sp, #8
	mov	r0, r4
	add	r1, sp, #4
	bl	intel_get_load_detect_pipe
	cmp	r0, #0
	beq	.L3
	mov	r1, r4
	mov	r0, r5
	bl	intel_tv_detect_type
	mov	r6, r0
	add	r1, sp, #8
	mov	r0, r4
	bl	intel_release_load_detect_pipe
	cmp	r6, #0
	blt	.L13
	mov	r0, r4
	str	r6, [r5]
	bl	intel_tv_find_better_format
	ldr	r3, .L14+8
	ldr	r0, [r3]
	b	.L1
.L3:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	b	.L1
.L13:
	ldr	r3, .L14+16
	ldr	r0, [r3]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	reported_modes
	.word	connector_status_connected
	.word	connector_status_unknown
	.word	connector_status_disconnected
	.size	intel_tv_detect, .-intel_tv_detect
	.comm	reported_modes,4,4
	.comm	connector_status_unknown,4,4
	.comm	connector_status_disconnected,4,4
	.comm	connector_status_connected,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
