	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_power_sequencer_kick
_vlv_power_sequencer_kick:              ## @vlv_power_sequencer_kick
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_dp_to_i915
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_dp_to_dig_port
	movq	%rax, %r14
	movl	(%r15), %r13d
	movl	%r13d, %edi
	callq	_DPIO_PHY
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_vlv_pipe_to_channel
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_DP_PORT_EN@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_pipe_name
	movl	%eax, %r12d
	movl	(%r14), %edi
	callq	_port_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_WARN
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movl	%r13d, %edi
	callq	_pipe_name
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_port_name
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_KMS
	movl	4(%r15), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	_DP_DETECTED@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_DP_VOLTAGE_0_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_DP_PRE_EMPHASIS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_DP_PORT_WIDTH
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_DP_LINK_TRAIN_PAT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_IS_CHERRYVIEW
	movl	%r13d, %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_DP_PIPE_SEL_CHV
	jmp	LBB0_4
LBB0_3:
	callq	_DP_PIPE_SEL
LBB0_4:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_DP_PORT_EN@GOTPCREL(%rip), %rbx
	movl	%r13d, %edi
	callq	_DPLL
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	_DPLL_VCO_ENABLE@GOTPCREL(%rip), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	andl	(%rax), %r12d
	je	LBB0_5
LBB0_12:
	orl	-80(%rbp), %r14d                ## 4-byte Folded Reload
	orl	-76(%rbp), %r14d                ## 4-byte Folded Reload
	orl	-68(%rbp), %r14d                ## 4-byte Folded Reload
	orl	-72(%rbp), %r14d                ## 4-byte Folded Reload
	orl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movl	4(%r15), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	4(%r15), %edi
	callq	_POSTING_READ
	movl	4(%r15), %edi
	movl	(%rbx), %esi
	orl	%r14d, %esi
	callq	_I915_WRITE
	movl	4(%r15), %edi
	callq	_POSTING_READ
	movl	4(%r15), %edi
	movl	(%rbx), %esi
	notl	%esi
	andl	%r14d, %esi
	callq	_I915_WRITE
	movl	4(%r15), %edi
	callq	_POSTING_READ
	testl	%r12d, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_chv_phy_powergate_ch
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_13:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_vlv_force_pll_off
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.16:
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_chv_phy_powergate_ch           ## TAILCALL
LBB0_6:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	movq	_DP_PORT_EN@GOTPCREL(%rip), %rbx
	jne	LBB0_9
## %bb.10:
	movq	_vlv_dpll@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_chv_dpll@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_vlv_force_pll_on
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:
	movl	%r13d, %edi
	callq	_pipe_name
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_PORT_EN,4,2                 ## @DP_PORT_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skipping pipe %c power sequencer kick due to port %c being active\n"

L_.str.1:                               ## @.str.1
	.asciz	"kicking pipe %c power sequencer for port %c\n"

	.comm	_DP_DETECTED,4,2                ## @DP_DETECTED
	.comm	_DP_VOLTAGE_0_4,4,2             ## @DP_VOLTAGE_0_4
	.comm	_DP_PRE_EMPHASIS_0,4,2          ## @DP_PRE_EMPHASIS_0
	.comm	_DP_LINK_TRAIN_PAT_1,4,2        ## @DP_LINK_TRAIN_PAT_1
	.comm	_DPLL_VCO_ENABLE,4,2            ## @DPLL_VCO_ENABLE
	.comm	_chv_dpll,8,3                   ## @chv_dpll
	.comm	_vlv_dpll,8,3                   ## @vlv_dpll
L_.str.2:                               ## @.str.2
	.asciz	"Failed to force on pll for pipe %c!\n"

	.no_dead_strip	_vlv_power_sequencer_kick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_power_sequencer_kick
_vlv_power_sequencer_kick:              ; @vlv_power_sequencer_kick
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
	bl	_dp_to_i915
	mov	x19, x0
	mov	x0, x22
	bl	_dp_to_dig_port
	mov	x24, x0
	ldr	w21, [x22]
	mov	x0, x21
	bl	_DPIO_PHY
	mov	x20, x0
	mov	x0, x21
	bl	_vlv_pipe_to_channel
	mov	x23, x0
	ldr	w0, [x22, #4]
	bl	_I915_READ
Lloh0:
	adrp	x27, _DP_PORT_EN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DP_PORT_EN@GOTPAGEOFF]
	ldr	w8, [x27]
	and	w25, w8, w0
	mov	x0, x21
	bl	_pipe_name
	mov	x26, x0
	ldr	w0, [x24]
	bl	_port_name
	mov	x3, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	mov	x2, x26
	bl	_WARN
	cbnz	x0, LBB0_7
; %bb.1:
	stp	w23, w20, [sp, #24]             ; 8-byte Folded Spill
	mov	x0, x21
	bl	_pipe_name
	mov	x25, x0
	ldr	w0, [x24]
	bl	_port_name
	mov	x2, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_DRM_DEBUG_KMS
	ldr	w0, [x22, #4]
	bl	_I915_READ
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _DP_DETECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_DETECTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x8, _DP_VOLTAGE_0_4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DP_VOLTAGE_0_4@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x8, _DP_PRE_EMPHASIS_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DP_PRE_EMPHASIS_0@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	mov	w0, #1
	bl	_DP_PORT_WIDTH
	mov	x25, x0
Lloh15:
	adrp	x8, _DP_LINK_TRAIN_PAT_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DP_LINK_TRAIN_PAT_1@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_DP_PIPE_SEL_CHV
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_DP_PIPE_SEL
LBB0_4:
	mov	x26, x0
	mov	x0, x21
	bl	_DPLL
	bl	_I915_READ
Lloh18:
	adrp	x8, _DPLL_VCO_ENABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DPLL_VCO_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ands	w28, w8, w0
	b.eq	LBB0_8
; %bb.5:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_6:
	ldp	w9, w8, [sp, #16]               ; 8-byte Folded Reload
	and	w8, w9, w8
	orr	w8, w8, w20
	orr	w8, w8, w23
	orr	w8, w8, w25
	orr	w8, w8, w24
	orr	w24, w8, w26
	ldr	w0, [x22, #4]
	mov	x1, x24
	bl	_I915_WRITE
	ldr	w0, [x22, #4]
	bl	_POSTING_READ
	ldr	w0, [x22, #4]
	ldr	w8, [x27]
	orr	w1, w8, w24
	bl	_I915_WRITE
	ldr	w0, [x22, #4]
	bl	_POSTING_READ
	ldr	w0, [x22, #4]
	ldr	w8, [x27]
	bic	w1, w24, w8
	bl	_I915_WRITE
	ldr	w0, [x22, #4]
	bl	_POSTING_READ
	ldp	w22, w20, [sp, #24]             ; 8-byte Folded Reload
	cbz	w28, LBB0_10
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x19
	ldp	w2, w1, [sp, #24]               ; 8-byte Folded Reload
	mov	w3, #1
	bl	_chv_phy_powergate_ch
	cmp	w0, #0
	cset	w8, eq
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	bl	_vlv_force_pll_off
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_7
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_chv_phy_powergate_ch
LBB0_12:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_13:
	mov	x0, x19
	bl	_IS_CHERRYVIEW
Lloh21:
	adrp	x8, _chv_dpll@GOTPAGE
Lloh22:
	ldr	x8, [x8, _chv_dpll@GOTPAGEOFF]
Lloh23:
	adrp	x9, _vlv_dpll@GOTPAGE
Lloh24:
	ldr	x9, [x9, _vlv_dpll@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_vlv_force_pll_on
	cbz	x0, LBB0_6
; %bb.14:
	mov	x0, x21
	bl	_pipe_name
	mov	x1, x0
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_DRM_ERROR
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_PORT_EN,4,2                 ; @DP_PORT_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skipping pipe %c power sequencer kick due to port %c being active\n"

l_.str.1:                               ; @.str.1
	.asciz	"kicking pipe %c power sequencer for port %c\n"

	.comm	_DP_DETECTED,4,2                ; @DP_DETECTED
	.comm	_DP_VOLTAGE_0_4,4,2             ; @DP_VOLTAGE_0_4
	.comm	_DP_PRE_EMPHASIS_0,4,2          ; @DP_PRE_EMPHASIS_0
	.comm	_DP_LINK_TRAIN_PAT_1,4,2        ; @DP_LINK_TRAIN_PAT_1
	.comm	_DPLL_VCO_ENABLE,4,2            ; @DPLL_VCO_ENABLE
	.comm	_chv_dpll,8,3                   ; @chv_dpll
	.comm	_vlv_dpll,8,3                   ; @vlv_dpll
l_.str.2:                               ; @.str.2
	.asciz	"Failed to force on pll for pipe %c!\n"

	.no_dead_strip	_vlv_power_sequencer_kick
.subsections_via_symbols
