	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function intel_lvds_pps_get_hw_state
LCPI0_0:
	.long	400                             ## 0x190
	.long	2000                            ## 0x7d0
	.long	350                             ## 0x15e
	.long	2000                            ## 0x7d0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_intel_lvds_pps_get_hw_state:           ## @intel_lvds_pps_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_PP_CONTROL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PANEL_POWER_RESET@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	callq	_PP_ON_DELAYS
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	_PANEL_PORT_SELECT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_REG_FIELD_GET
	movq	%rax, 24(%rbx)
	movq	_PANEL_POWER_UP_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_REG_FIELD_GET
	movl	%eax, 4(%rbx)
	movq	_PANEL_LIGHT_ON_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_REG_FIELD_GET
	movl	%eax, 8(%rbx)
	xorl	%edi, %edi
	callq	_PP_OFF_DELAYS
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	_PANEL_POWER_DOWN_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_REG_FIELD_GET
	movl	%eax, 12(%rbx)
	movq	_PANEL_LIGHT_OFF_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_REG_FIELD_GET
	movl	%eax, 16(%rbx)
	xorl	%edi, %edi
	callq	_PP_DIVISOR
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	_PP_REFERENCE_DIVIDER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_REG_FIELD_GET
	movq	%rax, 32(%rbx)
	movq	_PANEL_POWER_CYCLE_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_REG_FIELD_GET
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	addl	$-1000, %ecx                    ## imm = 0xFC18
	testl	%eax, %eax
	cmovel	%eax, %ecx
	movl	%ecx, 20(%rbx)
	movq	%r14, %rdi
	callq	_INTEL_GEN
	movl	4(%rbx), %esi
	cmpl	$4, %eax
	jg	LBB0_6
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_6
## %bb.2:
	xorl	%esi, %esi
	cmpl	$0, 8(%rbx)
	jne	LBB0_6
## %bb.3:
	cmpl	$0, 12(%rbx)
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 16(%rbx)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [400,2000,350,2000]
	movups	%xmm0, 4(%rbx)
	movl	$400, %esi                      ## imm = 0x190
LBB0_6:
	movl	12(%rbx), %edx
	movl	20(%rbx), %ecx
	movl	(%rbx), %eax
	movl	8(%rbx), %r8d
	movl	16(%rbx), %r9d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	pushq	%rax
	pushq	24(%rbx)
	pushq	32(%rbx)
	callq	_DRM_DEBUG_DRIVER
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Panel power timings uninitialized, setting defaults\n"

L_.str.1:                               ## @.str.1
	.asciz	"LVDS PPS:t1+t2 %d t3 %d t4 %d t5 %d tx %d divider %d port %d powerdown_on_reset %d\n"

	.no_dead_strip	_intel_lvds_pps_get_hw_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function intel_lvds_pps_get_hw_state
lCPI0_0:
	.long	400                             ; 0x190
	.long	2000                            ; 0x7d0
	.long	350                             ; 0x15e
	.long	2000                            ; 0x7d0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_intel_lvds_pps_get_hw_state:           ; @intel_lvds_pps_get_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
	mov	w0, #0
	bl	_PP_CONTROL
	bl	_I915_READ
Lloh0:
	adrp	x8, _PANEL_POWER_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PANEL_POWER_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x19]
	mov	w0, #0
	bl	_PP_ON_DELAYS
	bl	_I915_READ
	mov	x21, x0
Lloh3:
	adrp	x8, _PANEL_PORT_SELECT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PANEL_PORT_SELECT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_REG_FIELD_GET
	str	x0, [x19, #24]
Lloh6:
	adrp	x8, _PANEL_POWER_UP_DELAY_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PANEL_POWER_UP_DELAY_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_REG_FIELD_GET
	str	w0, [x19, #4]
Lloh9:
	adrp	x8, _PANEL_LIGHT_ON_DELAY_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PANEL_LIGHT_ON_DELAY_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_REG_FIELD_GET
	str	w0, [x19, #8]
	mov	w0, #0
	bl	_PP_OFF_DELAYS
	bl	_I915_READ
	mov	x21, x0
Lloh12:
	adrp	x8, _PANEL_POWER_DOWN_DELAY_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PANEL_POWER_DOWN_DELAY_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_REG_FIELD_GET
	str	w0, [x19, #12]
Lloh15:
	adrp	x8, _PANEL_LIGHT_OFF_DELAY_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PANEL_LIGHT_OFF_DELAY_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_REG_FIELD_GET
	str	w0, [x19, #16]
	mov	w0, #0
	bl	_PP_DIVISOR
	bl	_I915_READ
	mov	x21, x0
Lloh18:
	adrp	x8, _PP_REFERENCE_DIVIDER_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PP_REFERENCE_DIVIDER_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_REG_FIELD_GET
	str	x0, [x19, #32]
Lloh21:
	adrp	x8, _PANEL_POWER_CYCLE_DELAY_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PANEL_POWER_CYCLE_DELAY_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_REG_FIELD_GET
	mov	w8, #1000
	mul	w8, w0, w8
	sub	w8, w8, #1000
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	str	w8, [x19, #20]
	mov	x0, x20
	bl	_INTEL_GEN
	ldr	w1, [x19, #4]
	cmp	w0, #4
	b.gt	LBB0_6
; %bb.1:
	cbnz	w1, LBB0_6
; %bb.2:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_7
LBB0_5:
	mov	w1, #0
LBB0_6:
	ldp	w4, w2, [x19, #8]
	ldp	w5, w3, [x19, #16]
	ldp	x7, x6, [x19, #24]
	ldr	w8, [x19]
	str	w8, [sp]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	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
LBB0_7:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh28:
	adrp	x8, lCPI0_0@PAGE
Lloh29:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #4]
	mov	w1, #400
	b	LBB0_6
	.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
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Panel power timings uninitialized, setting defaults\n"

l_.str.1:                               ; @.str.1
	.asciz	"LVDS PPS:t1+t2 %d t3 %d t4 %d t5 %d tx %d divider %d port %d powerdown_on_reset %d\n"

	.no_dead_strip	_intel_lvds_pps_get_hw_state
.subsections_via_symbols
