	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_pps_readout_hw_state
_intel_pps_readout_hw_state:            ## @intel_pps_readout_hw_state
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_dp_to_i915
	movq	%rax, %r12
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_intel_pps_get_registers
	movq	%rbx, %rdi
	callq	_ironlake_get_pp_control
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_HAS_DDI
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-36(%rbp), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
LBB0_2:
	movl	-40(%rbp), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	_PANEL_POWER_UP_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_REG_FIELD_GET
	movl	%eax, (%r15)
	movq	_PANEL_LIGHT_ON_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_REG_FIELD_GET
	movl	%eax, 4(%r15)
	movq	_PANEL_LIGHT_OFF_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_REG_FIELD_GET
	movl	%eax, 8(%r15)
	movq	_PANEL_POWER_DOWN_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_REG_FIELD_GET
	movl	%eax, 12(%r15)
	movl	-48(%rbp), %edi
	callq	_i915_mmio_reg_valid
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	-48(%rbp), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	_PANEL_POWER_CYCLE_DELAY_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_BXT_POWER_CYCLE_DELAY_MASK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_REG_FIELD_GET
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 16(%r15)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_LIGHT_OFF_DELAY_MASK,4,2 ## @PANEL_LIGHT_OFF_DELAY_MASK
	.comm	_PANEL_POWER_DOWN_DELAY_MASK,4,2 ## @PANEL_POWER_DOWN_DELAY_MASK
	.comm	_PANEL_POWER_CYCLE_DELAY_MASK,4,2 ## @PANEL_POWER_CYCLE_DELAY_MASK
	.comm	_BXT_POWER_CYCLE_DELAY_MASK,4,2 ## @BXT_POWER_CYCLE_DELAY_MASK
	.no_dead_strip	_intel_pps_readout_hw_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_pps_readout_hw_state
_intel_pps_readout_hw_state:            ; @intel_pps_readout_hw_state
	.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	x19, x1
	mov	x20, x0
	bl	_dp_to_i915
	mov	x21, x0
	mov	x1, sp
	mov	x0, x20
	bl	_intel_pps_get_registers
	mov	x0, x20
	bl	_ironlake_get_pp_control
	mov	x20, x0
	mov	x0, x21
	bl	_HAS_DDI
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #12]
	mov	x1, x20
	bl	_I915_WRITE
LBB0_2:
	ldr	w0, [sp, #8]
	bl	_I915_READ
	mov	x21, x0
	ldr	w0, [sp, #4]
	bl	_I915_READ
	mov	x22, x0
Lloh0:
	adrp	x8, _PANEL_POWER_UP_DELAY_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PANEL_POWER_UP_DELAY_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_REG_FIELD_GET
	str	w0, [x19]
Lloh3:
	adrp	x8, _PANEL_LIGHT_ON_DELAY_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PANEL_LIGHT_ON_DELAY_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_REG_FIELD_GET
	str	w0, [x19, #4]
Lloh6:
	adrp	x8, _PANEL_LIGHT_OFF_DELAY_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PANEL_LIGHT_OFF_DELAY_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_REG_FIELD_GET
	str	w0, [x19, #8]
Lloh9:
	adrp	x8, _PANEL_POWER_DOWN_DELAY_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PANEL_POWER_DOWN_DELAY_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_REG_FIELD_GET
	str	w0, [x19, #12]
	ldr	w0, [sp]
	bl	_i915_mmio_reg_valid
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [sp]
	bl	_I915_READ
	mov	x20, x0
Lloh12:
	adrp	x8, _PANEL_POWER_CYCLE_DELAY_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PANEL_POWER_CYCLE_DELAY_MASK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _BXT_POWER_CYCLE_DELAY_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BXT_POWER_CYCLE_DELAY_MASK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_REG_FIELD_GET
	mov	w8, #1000
	mul	w8, w0, w8
	str	w8, [x19, #16]
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.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_LIGHT_OFF_DELAY_MASK,4,2 ; @PANEL_LIGHT_OFF_DELAY_MASK
	.comm	_PANEL_POWER_DOWN_DELAY_MASK,4,2 ; @PANEL_POWER_DOWN_DELAY_MASK
	.comm	_PANEL_POWER_CYCLE_DELAY_MASK,4,2 ; @PANEL_POWER_CYCLE_DELAY_MASK
	.comm	_BXT_POWER_CYCLE_DELAY_MASK,4,2 ; @BXT_POWER_CYCLE_DELAY_MASK
	.no_dead_strip	_intel_pps_readout_hw_state
.subsections_via_symbols
