	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_power_sequencer_pipe
_vlv_power_sequencer_pipe:              ## @vlv_power_sequencer_pipe
	.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
	movq	%rdi, %r12
	callq	_dp_to_i915
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_dp_to_dig_port
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_lockdep_assert_held
	movq	%r12, %rdi
	callq	_intel_dp_is_edp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	(%r12), %rax
	movq	_INVALID_PIPE@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	8(%r12), %rax
	setne	%dil
LBB0_2:
	callq	_WARN_ON
	movq	8(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_vlv_find_free_pps
	movl	%eax, %ebx
	movl	%eax, %eax
	xorl	%edi, %edi
	cmpq	%rax, (%r13)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	movq	_PIPE_A@GOTPCREL(%rip), %rax
	cmovnel	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vlv_steal_power_sequencer
	movq	%rbx, 8(%r12)
	movl	%ebx, %edi
	callq	_pipe_name
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_KMS
	movq	%r12, %rdi
	callq	_intel_dp_init_panel_power_sequencer
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_intel_dp_init_panel_power_sequencer_registers
	movq	%r12, %rdi
	callq	_vlv_power_sequencer_kick
	movq	8(%r12), %rax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_PIPE,8,3               ## @INVALID_PIPE
	.comm	_PIPE_A,4,2                     ## @PIPE_A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"picked pipe %c power sequencer for port %c\n"

	.no_dead_strip	_vlv_power_sequencer_pipe
.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_pipe
_vlv_power_sequencer_pipe:              ; @vlv_power_sequencer_pipe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_dp_to_i915
	mov	x21, x0
	mov	x0, x19
	bl	_dp_to_dig_port
	mov	x20, x0
	mov	x0, x21
	bl	_lockdep_assert_held
	mov	x0, x19
	bl	_intel_dp_is_edp
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19]
Lloh0:
	adrp	x23, _INVALID_PIPE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _INVALID_PIPE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	cset	w0, ne
LBB0_3:
	bl	_WARN_ON
	ldr	x0, [x19, #8]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_vlv_find_free_pps
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x8, w0, uxtw
	cset	w0, eq
	bl	_WARN_ON
Lloh2:
	adrp	x8, _PIPE_A@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIPE_A@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w22, w22, w8, eq
	mov	x0, x21
	mov	x1, x22
	bl	_vlv_steal_power_sequencer
	str	x22, [x19, #8]
	mov	x0, x22
	bl	_pipe_name
	mov	x21, x0
	ldr	w0, [x20]
	bl	_port_name
	mov	x2, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	bl	_intel_dp_init_panel_power_sequencer
	mov	x0, x19
	mov	w1, #1
	bl	_intel_dp_init_panel_power_sequencer_registers
	mov	x0, x19
	bl	_vlv_power_sequencer_kick
	ldr	x0, [x19, #8]
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_PIPE,8,3               ; @INVALID_PIPE
	.comm	_PIPE_A,4,2                     ; @PIPE_A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"picked pipe %c power sequencer for port %c\n"

	.no_dead_strip	_vlv_power_sequencer_pipe
.subsections_via_symbols
