	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_lvds_pps_init_hw
_intel_lvds_pps_init_hw:                ## @intel_lvds_pps_init_hw
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	xorl	%edi, %edi
	callq	_PP_CONTROL
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	_PANEL_UNLOCK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_PANEL_UNLOCK_REGS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_WARN_ON
	cmpq	$0, 56(%r15)
	movl	$0, %ebx
	je	LBB0_2
## %bb.1:
	movq	_PANEL_POWER_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%r14d, %ebx
	xorl	%edi, %edi
	callq	_PP_CONTROL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	xorl	%edi, %edi
	callq	_PP_ON_DELAYS
	movl	%eax, %r14d
	movq	_PANEL_PORT_SELECT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	48(%r15), %rsi
	callq	_REG_FIELD_PREP
	movl	%eax, %ebx
	movq	_PANEL_POWER_UP_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	40(%r15), %rsi
	callq	_REG_FIELD_PREP
	orl	%eax, %ebx
	movq	_PANEL_LIGHT_ON_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r15), %rsi
	callq	_REG_FIELD_PREP
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	xorl	%edi, %edi
	callq	_PP_OFF_DELAYS
	movl	%eax, %r14d
	movq	_PANEL_POWER_DOWN_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rsi
	callq	_REG_FIELD_PREP
	movl	%eax, %ebx
	movq	_PANEL_LIGHT_OFF_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rsi
	callq	_REG_FIELD_PREP
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	xorl	%edi, %edi
	callq	_PP_DIVISOR
	movl	%eax, %r14d
	movq	_PP_REFERENCE_DIVIDER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rsi
	callq	_REG_FIELD_PREP
	movl	%eax, %ebx
	movq	_PANEL_POWER_CYCLE_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_UP
	leaq	1(%rax), %rsi
	movl	%r12d, %edi
	callq	_REG_FIELD_PREP
	orl	%eax, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PANEL_UNLOCK_MASK,4,2          ## @PANEL_UNLOCK_MASK
	.comm	_PANEL_UNLOCK_REGS,4,2          ## @PANEL_UNLOCK_REGS
	.comm	_PANEL_POWER_RESET,4,2          ## @PANEL_POWER_RESET
	.comm	_PANEL_PORT_SELECT_MASK,4,2     ## @PANEL_PORT_SELECT_MASK
	.comm	_PANEL_POWER_UP_DELAY_MASK,4,2  ## @PANEL_POWER_UP_DELAY_MASK
	.comm	_PANEL_LIGHT_ON_DELAY_MASK,4,2  ## @PANEL_LIGHT_ON_DELAY_MASK
	.comm	_PANEL_POWER_DOWN_DELAY_MASK,4,2 ## @PANEL_POWER_DOWN_DELAY_MASK
	.comm	_PANEL_LIGHT_OFF_DELAY_MASK,4,2 ## @PANEL_LIGHT_OFF_DELAY_MASK
	.comm	_PP_REFERENCE_DIVIDER_MASK,4,2  ## @PP_REFERENCE_DIVIDER_MASK
	.comm	_PANEL_POWER_CYCLE_DELAY_MASK,4,2 ## @PANEL_POWER_CYCLE_DELAY_MASK
	.no_dead_strip	_intel_lvds_pps_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_lvds_pps_init_hw
_intel_lvds_pps_init_hw:                ; @intel_lvds_pps_init_hw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	w0, #0
	bl	_PP_CONTROL
	bl	_I915_READ
	mov	x20, x0
Lloh0:
	adrp	x8, _PANEL_UNLOCK_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PANEL_UNLOCK_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _PANEL_UNLOCK_REGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PANEL_UNLOCK_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x19, #56]
Lloh6:
	adrp	x9, _PANEL_POWER_RESET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PANEL_POWER_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w20, w8, w20
	mov	w0, #0
	bl	_PP_CONTROL
	mov	x1, x20
	bl	_I915_WRITE
	mov	w0, #0
	bl	_PP_ON_DELAYS
	mov	x20, x0
Lloh9:
	adrp	x8, _PANEL_PORT_SELECT_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PANEL_PORT_SELECT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x1, [x19, #48]
	bl	_REG_FIELD_PREP
	mov	x21, x0
Lloh12:
	adrp	x8, _PANEL_POWER_UP_DELAY_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PANEL_POWER_UP_DELAY_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x1, [x19, #40]
	bl	_REG_FIELD_PREP
	orr	w21, w0, w21
Lloh15:
	adrp	x8, _PANEL_LIGHT_ON_DELAY_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PANEL_LIGHT_ON_DELAY_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x1, [x19, #32]
	bl	_REG_FIELD_PREP
	orr	w1, w21, w0
	mov	x0, x20
	bl	_I915_WRITE
	mov	w0, #0
	bl	_PP_OFF_DELAYS
	mov	x20, x0
Lloh18:
	adrp	x8, _PANEL_POWER_DOWN_DELAY_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PANEL_POWER_DOWN_DELAY_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x1, [x19, #24]
	bl	_REG_FIELD_PREP
	mov	x21, x0
Lloh21:
	adrp	x8, _PANEL_LIGHT_OFF_DELAY_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PANEL_LIGHT_OFF_DELAY_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	bl	_REG_FIELD_PREP
	orr	w1, w0, w21
	mov	x0, x20
	bl	_I915_WRITE
	mov	w0, #0
	bl	_PP_DIVISOR
	mov	x20, x0
Lloh24:
	adrp	x8, _PP_REFERENCE_DIVIDER_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PP_REFERENCE_DIVIDER_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	bl	_REG_FIELD_PREP
	mov	x21, x0
Lloh27:
	adrp	x8, _PANEL_POWER_CYCLE_DELAY_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PANEL_POWER_CYCLE_DELAY_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	ldr	w0, [x19]
	mov	w1, #1000
	bl	_DIV_ROUND_UP
	add	x1, x0, #1
	mov	x0, x22
	bl	_REG_FIELD_PREP
	orr	w1, w0, w21
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_PANEL_UNLOCK_MASK,4,2          ; @PANEL_UNLOCK_MASK
	.comm	_PANEL_UNLOCK_REGS,4,2          ; @PANEL_UNLOCK_REGS
	.comm	_PANEL_POWER_RESET,4,2          ; @PANEL_POWER_RESET
	.comm	_PANEL_PORT_SELECT_MASK,4,2     ; @PANEL_PORT_SELECT_MASK
	.comm	_PANEL_POWER_UP_DELAY_MASK,4,2  ; @PANEL_POWER_UP_DELAY_MASK
	.comm	_PANEL_LIGHT_ON_DELAY_MASK,4,2  ; @PANEL_LIGHT_ON_DELAY_MASK
	.comm	_PANEL_POWER_DOWN_DELAY_MASK,4,2 ; @PANEL_POWER_DOWN_DELAY_MASK
	.comm	_PANEL_LIGHT_OFF_DELAY_MASK,4,2 ; @PANEL_LIGHT_OFF_DELAY_MASK
	.comm	_PP_REFERENCE_DIVIDER_MASK,4,2  ; @PP_REFERENCE_DIVIDER_MASK
	.comm	_PANEL_POWER_CYCLE_DELAY_MASK,4,2 ; @PANEL_POWER_CYCLE_DELAY_MASK
	.no_dead_strip	_intel_lvds_pps_init_hw
.subsections_via_symbols
