	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_dp_init_panel_power_sequencer_registers
_intel_dp_init_panel_power_sequencer_registers: ## @intel_dp_init_panel_power_sequencer_registers
	.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	%rdx, %rbx
	movq	_PANEL_POWER_UP_DELAY_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	(%rdx), %eax
	movl	4(%rdx), %r13d
	shll	%cl, %eax
	movq	_PANEL_LIGHT_ON_DELAY_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	orl	%eax, %r13d
	movl	8(%rdx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_PANEL_LIGHT_OFF_DELAY_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	12(%rdx), %r14d
	movq	_PANEL_POWER_DOWN_DELAY_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	callq	_intel_pch_rawclk
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_PP_REFERENCE_DIVIDER_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_UP
	movl	%eax, %r15d
	movq	_PANEL_POWER_CYCLE_DELAY_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_is_cpu_edp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PANEL_POWER_PORT_DP_A@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_PANEL_POWER_PORT_DP_D@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %r13d
LBB0_6:
	imull	$50, -44(%rbp), %eax            ## 4-byte Folded Reload
	decl	%eax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	%ebx, %ecx
	shll	%cl, %r15d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	orl	%eax, %r15d
	orl	%edx, %r14d
	movq	_PCH_PP_ON_DELAYS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movq	_PCH_PP_OFF_DELAYS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movq	_PCH_PP_DIVISOR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_I915_WRITE
	movl	(%r12), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_I915_READ
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PANEL_POWER_UP_DELAY_SHIFT,4,2 ## @PANEL_POWER_UP_DELAY_SHIFT
	.comm	_PANEL_LIGHT_ON_DELAY_SHIFT,4,2 ## @PANEL_LIGHT_ON_DELAY_SHIFT
	.comm	_PANEL_LIGHT_OFF_DELAY_SHIFT,4,2 ## @PANEL_LIGHT_OFF_DELAY_SHIFT
	.comm	_PANEL_POWER_DOWN_DELAY_SHIFT,4,2 ## @PANEL_POWER_DOWN_DELAY_SHIFT
	.comm	_PP_REFERENCE_DIVIDER_SHIFT,4,2 ## @PP_REFERENCE_DIVIDER_SHIFT
	.comm	_PANEL_POWER_CYCLE_DELAY_SHIFT,4,2 ## @PANEL_POWER_CYCLE_DELAY_SHIFT
	.comm	_PANEL_POWER_PORT_DP_A,4,2      ## @PANEL_POWER_PORT_DP_A
	.comm	_PANEL_POWER_PORT_DP_D,4,2      ## @PANEL_POWER_PORT_DP_D
	.comm	_PCH_PP_ON_DELAYS,4,2           ## @PCH_PP_ON_DELAYS
	.comm	_PCH_PP_OFF_DELAYS,4,2          ## @PCH_PP_OFF_DELAYS
	.comm	_PCH_PP_DIVISOR,4,2             ## @PCH_PP_DIVISOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"panel power sequencer register settings: PP_ON %#x, PP_OFF %#x, PP_DIV %#x\n"

	.no_dead_strip	_intel_dp_init_panel_power_sequencer_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_dp_init_panel_power_sequencer_registers
_intel_dp_init_panel_power_sequencer_registers: ; @intel_dp_init_panel_power_sequencer_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _PANEL_POWER_UP_DELAY_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PANEL_POWER_UP_DELAY_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w10, [x2]
Lloh3:
	adrp	x11, _PANEL_LIGHT_ON_DELAY_SHIFT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PANEL_LIGHT_ON_DELAY_SHIFT@GOTPAGEOFF]
	lsl	w8, w9, w8
Lloh5:
	ldr	w9, [x11]
	lsl	w9, w10, w9
	orr	w19, w9, w8
Lloh6:
	adrp	x8, _PANEL_LIGHT_OFF_DELAY_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PANEL_LIGHT_OFF_DELAY_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldp	w26, w25, [x2, #8]
Lloh9:
	adrp	x8, _PANEL_POWER_DOWN_DELAY_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PANEL_POWER_DOWN_DELAY_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
	bl	_intel_pch_rawclk
	mov	x20, x0
Lloh12:
	adrp	x8, _PP_REFERENCE_DIVIDER_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PP_REFERENCE_DIVIDER_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w28, [x8]
	ldr	w0, [x22, #16]
	mov	w1, #1000
	bl	_DIV_ROUND_UP
	mov	x22, x0
Lloh15:
	adrp	x8, _PANEL_POWER_CYCLE_DELAY_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PANEL_POWER_CYCLE_DELAY_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_HAS_PCH_IBX
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_HAS_PCH_CPT
	cbz	x0, LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_is_cpu_edp
	cbz	x0, LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _PANEL_POWER_PORT_DP_A@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PANEL_POWER_PORT_DP_A@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _PANEL_POWER_PORT_DP_D@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PANEL_POWER_PORT_DP_D@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_6:
	mov	w8, #50
	mul	w8, w20, w8
	sub	w8, w8, #1
	lsl	w8, w8, w28
	lsl	w9, w22, w24
	orr	w20, w9, w8
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	lsl	w8, w26, w8
	lsl	w9, w25, w27
	orr	w21, w9, w8
Lloh22:
	adrp	x22, _PCH_PP_ON_DELAYS@GOTPAGE
Lloh23:
	ldr	x22, [x22, _PCH_PP_ON_DELAYS@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_I915_WRITE
Lloh24:
	adrp	x23, _PCH_PP_OFF_DELAYS@GOTPAGE
Lloh25:
	ldr	x23, [x23, _PCH_PP_OFF_DELAYS@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_I915_WRITE
Lloh26:
	adrp	x21, _PCH_PP_DIVISOR@GOTPAGE
Lloh27:
	ldr	x21, [x21, _PCH_PP_DIVISOR@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x19, x0
	ldr	w0, [x23]
	bl	_I915_READ
	mov	x20, x0
	ldr	w0, [x21]
	bl	_I915_READ
	mov	x3, x0
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PANEL_POWER_UP_DELAY_SHIFT,4,2 ; @PANEL_POWER_UP_DELAY_SHIFT
	.comm	_PANEL_LIGHT_ON_DELAY_SHIFT,4,2 ; @PANEL_LIGHT_ON_DELAY_SHIFT
	.comm	_PANEL_LIGHT_OFF_DELAY_SHIFT,4,2 ; @PANEL_LIGHT_OFF_DELAY_SHIFT
	.comm	_PANEL_POWER_DOWN_DELAY_SHIFT,4,2 ; @PANEL_POWER_DOWN_DELAY_SHIFT
	.comm	_PP_REFERENCE_DIVIDER_SHIFT,4,2 ; @PP_REFERENCE_DIVIDER_SHIFT
	.comm	_PANEL_POWER_CYCLE_DELAY_SHIFT,4,2 ; @PANEL_POWER_CYCLE_DELAY_SHIFT
	.comm	_PANEL_POWER_PORT_DP_A,4,2      ; @PANEL_POWER_PORT_DP_A
	.comm	_PANEL_POWER_PORT_DP_D,4,2      ; @PANEL_POWER_PORT_DP_D
	.comm	_PCH_PP_ON_DELAYS,4,2           ; @PCH_PP_ON_DELAYS
	.comm	_PCH_PP_OFF_DELAYS,4,2          ; @PCH_PP_OFF_DELAYS
	.comm	_PCH_PP_DIVISOR,4,2             ; @PCH_PP_DIVISOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"panel power sequencer register settings: PP_ON %#x, PP_OFF %#x, PP_DIV %#x\n"

	.no_dead_strip	_intel_dp_init_panel_power_sequencer_registers
.subsections_via_symbols
