	.file	"extr_intel_ddi.c_bxt_ddi_vswing_sequence.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bxt_ddi_vswing_sequence, @function
bxt_ddi_vswing_sequence:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 4[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_i915@PLT
	cmp	DWORD PTR INTEL_OUTPUT_HDMI[rip], r12d
	mov	r14d, DWORD PTR [rbx]
	lea	rsi, 4[rsp]
	mov	r13, rax
	mov	rdi, rax
	je	.L14
	cmp	DWORD PTR INTEL_OUTPUT_EDP[rip], r12d
	je	.L15
	call	bxt_get_buf_trans_dp@PLT
	mov	rbx, rax
.L3:
	xor	edi, edi
	test	rbx, rbx
	sete	dil
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	je	.L16
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xor	edi, edi
	cmp	DWORD PTR 4[rsp], ebp
	setle	dil
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR 4[rsp]
	lea	ebp, -1[rax]
.L7:
	movsx	rbp, ebp
	mov	esi, r14d
	mov	rdi, r13
	sal	rbp, 4
	add	rbx, rbp
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 12[rbx]
	mov	r9d, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 4[rbx]
	call	bxt_ddi_phy_set_signal_level@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	call	bxt_get_buf_trans_edp@PLT
	mov	rbx, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	call	bxt_get_buf_trans_hdmi@PLT
	mov	rbx, rax
	jmp	.L3
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bxt_ddi_vswing_sequence, .-bxt_ddi_vswing_sequence
	.comm	INTEL_OUTPUT_HDMI,4,4
	.comm	INTEL_OUTPUT_EDP,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_ddi.c_bxt_ddi_vswing_sequence.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bxt_ddi_vswing_sequence, %function
bxt_ddi_vswing_sequence:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L17
	mov	r5, r0
	mov	r7, r2
	sub	sp, sp, #16
	ldr	r0, [r0, #4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r1
	bl	to_i915
	ldr	r3, .L17+4
	mov	r8, r0
	ldr	r3, [r3]
	ldr	r5, [r5]
	cmp	r3, r7
	beq	.L14
	ldr	r3, .L17+8
	add	r1, sp, #8
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L15
	bl	bxt_get_buf_trans_dp
	mov	r4, r0
.L3:
	clz	r0, r4
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	cmp	r0, #0
	bne	.L1
	ldr	r0, [sp, #8]
	cmp	r0, r6
	movgt	r0, #0
	movle	r0, #1
	bl	WARN_ON_ONCE
	cmp	r0, #0
	ldrne	r6, [sp, #8]
	mov	r0, r8
	subne	r6, r6, #1
	ldr	r1, [r4, r6, lsl #4]
	add	r4, r4, r6, lsl #4
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #12]
	str	r1, [sp, #4]
	ldr	ip, [r4, #4]
	mov	r1, r5
	str	ip, [sp]
	bl	bxt_ddi_phy_set_signal_level
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	bl	bxt_get_buf_trans_edp
	mov	r4, r0
	b	.L3
.L14:
	add	r1, sp, #8
	bl	bxt_get_buf_trans_hdmi
	mov	r4, r0
	b	.L3
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	INTEL_OUTPUT_HDMI
	.word	INTEL_OUTPUT_EDP
	.size	bxt_ddi_vswing_sequence, .-bxt_ddi_vswing_sequence
	.comm	INTEL_OUTPUT_HDMI,4,4
	.comm	INTEL_OUTPUT_EDP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
