	.file	"extr_intel_sdvo.c_intel_sdvo_get_tv_modes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[CONNECTOR:%d:%s]\n"
	.text
	.p2align 4
	.type	intel_sdvo_get_tv_modes, @function
intel_sdvo_get_tv_modes:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	intel_attached_sdvo@PLT
	mov	r12, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR 4[rbx]
	lea	rdi, .LC0[rip]
	mov	esi, DWORD PTR 8[rbx]
	mov	rbp, rax
	mov	DWORD PTR 16[rsp], 0
	mov	DWORD PTR 20[rsp], 0
	call	DRM_DEBUG_KMS@PLT
	mov	ecx, DWORD PTR [r12]
	mov	eax, 1
	mov	esi, 4
	mov	edi, 4
	lea	r12, 12[rsp]
	sal	eax, cl
	mov	DWORD PTR 20[rsp], eax
	call	min@PLT
	lea	rsi, 20[rsp]
	mov	rdi, r12
	mov	edx, eax
	call	memcpy@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	call	intel_sdvo_set_target_output@PLT
	test	eax, eax
	jne	.L24
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L24:
	.cfi_restore_state
	mov	edi, 1
	call	BUILD_BUG_ON@PLT
	mov	ecx, 4
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, DWORD PTR SDVO_CMD_GET_SDTV_RESOLUTION_SUPPORT[rip]
	call	intel_sdvo_write_cmd@PLT
	test	eax, eax
	je	.L1
	lea	rsi, 16[rsp]
	mov	edx, 3
	mov	rdi, rbp
	call	intel_sdvo_read_response@PLT
	test	eax, eax
	je	.L1
	mov	rdi, QWORD PTR sdvo_tv_modes[rip]
	xor	ebp, ebp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbp, 1
.L3:
	call	ARRAY_SIZE@PLT
	cmp	eax, ebp
	jle	.L1
	mov	eax, DWORD PTR 16[rsp]
	mov	rdi, QWORD PTR sdvo_tv_modes[rip]
	bt	eax, ebp
	jnc	.L4
	lea	rsi, [rdi+rbp*4]
	mov	edi, DWORD PTR [rbx]
	call	drm_mode_duplicate@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L22
	mov	rdi, rbx
	call	drm_mode_probed_add@PLT
.L22:
	mov	rdi, QWORD PTR sdvo_tv_modes[rip]
	jmp	.L4
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	intel_sdvo_get_tv_modes, .-intel_sdvo_get_tv_modes
	.comm	sdvo_tv_modes,8,8
	.comm	SDVO_CMD_GET_SDTV_RESOLUTION_SUPPORT,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_sdvo.c_intel_sdvo_get_tv_modes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[CONNECTOR:%d:%s]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_sdvo_get_tv_modes, %function
intel_sdvo_get_tv_modes:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L26
	sub	sp, sp, #16
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	intel_attached_sdvo
	mov	r4, #0
	mov	r6, r0
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	ldr	r0, .L26+4
	ldr	r8, [r5, #12]
	mov	r7, #1
	str	r4, [sp, #4]
	bl	DRM_DEBUG_KMS
	mov	r1, #4
	ldr	r3, [r8]
	mov	r0, r1
	lsl	r3, r7, r3
	str	r3, [sp, #8]
	bl	min
	add	r1, sp, #8
	mov	r2, r0
	mov	r0, sp
	bl	memcpy
	mov	r0, r6
	ldr	r1, [r6]
	bl	intel_sdvo_set_target_output
	cmp	r0, r4
	bne	.L24
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	mov	r0, r7
	bl	BUILD_BUG_ON
	ldr	r3, .L26+8
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r6
	mov	r3, #4
	bl	intel_sdvo_write_cmd
	cmp	r0, r4
	beq	.L1
	mov	r0, r6
	mov	r2, #3
	add	r1, sp, #4
	bl	intel_sdvo_read_response
	cmp	r0, r4
	beq	.L1
	ldr	r6, .L26+12
	ldr	r0, [r6]
	b	.L3
.L4:
	add	r4, r4, #1
.L3:
	bl	ARRAY_SIZE
	cmp	r0, r4
	ble	.L1
	ldr	r3, [sp, #4]
	ldr	r0, [r6]
	asr	r3, r3, r4
	tst	r3, #1
	beq	.L4
	add	r1, r0, r4, lsl #2
	ldr	r0, [r5]
	bl	drm_mode_duplicate
	subs	r1, r0, #0
	beq	.L22
	mov	r0, r5
	bl	drm_mode_probed_add
.L22:
	ldr	r0, [r6]
	b	.L4
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC1
	.word	.LC0
	.word	SDVO_CMD_GET_SDTV_RESOLUTION_SUPPORT
	.word	sdvo_tv_modes
	.size	intel_sdvo_get_tv_modes, .-intel_sdvo_get_tv_modes
	.comm	sdvo_tv_modes,4,4
	.comm	SDVO_CMD_GET_SDTV_RESOLUTION_SUPPORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
