	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bxt_ddi_vswing_sequence
_bxt_ddi_vswing_sequence:               ## @bxt_ddi_vswing_sequence
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movl	(%rbx), %r14d
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bxt_get_buf_trans_hdmi
	jmp	LBB0_5
LBB0_2:
	movq	_INTEL_OUTPUT_EDP@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bxt_get_buf_trans_edp
	jmp	LBB0_5
LBB0_4:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bxt_get_buf_trans_dp
LBB0_5:
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	cmpl	%r15d, -44(%rbp)
	setle	%dil
	callq	_WARN_ON_ONCE
	movl	-44(%rbp), %ecx
	decl	%ecx
	testq	%rax, %rax
	cmovel	%r15d, %ecx
	movslq	%ecx, %rax
	shlq	$4, %rax
	movl	12(%rbx,%rax), %edx
	movl	8(%rbx,%rax), %ecx
	movl	(%rbx,%rax), %r9d
	movl	4(%rbx,%rax), %r8d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_bxt_ddi_phy_set_signal_level
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.comm	_INTEL_OUTPUT_EDP,4,2           ## @INTEL_OUTPUT_EDP
	.no_dead_strip	_bxt_ddi_vswing_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bxt_ddi_vswing_sequence
_bxt_ddi_vswing_sequence:               ; @bxt_ddi_vswing_sequence
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x19, x0
	ldr	w21, [x21]
Lloh0:
	adrp	x8, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_bxt_get_buf_trans_hdmi
	b	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _INTEL_OUTPUT_EDP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_OUTPUT_EDP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	x1, sp, #12
	mov	x0, x19
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
	bl	_bxt_get_buf_trans_edp
	b	LBB0_5
LBB0_4:
	bl	_bxt_get_buf_trans_dp
LBB0_5:
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	cset	w0, le
	bl	_WARN_ON_ONCE
	ldr	w8, [sp, #12]
	sub	w8, w8, #1
	cmp	x0, #0
	csel	w8, w20, w8, eq
	add	x8, x22, w8, sxtw #4
	ldp	w3, w2, [x8, #8]
	ldp	w5, w4, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_bxt_ddi_phy_set_signal_level
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.comm	_INTEL_OUTPUT_EDP,4,2           ; @INTEL_OUTPUT_EDP
	.no_dead_strip	_bxt_ddi_vswing_sequence
.subsections_via_symbols
