	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpt_enable_clkout_dp
_lpt_enable_clkout_dp:                  ## @lpt_enable_clkout_dp
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	setne	%bl
	testl	%esi, %esi
	sete	%al
	andb	%bl, %al
	movzbl	%al, %edi
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_HAS_PCH_LPT_LP
	testq	%rax, %rax
	setne	%al
	andb	%bl, %al
	movzbl	%al, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_WARN
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_SBI_SSCCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SBI_ICLK@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_intel_sbi_read
	movq	_SBI_SSCCTL_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_SBI_SSCCTL_PATHALT@GOTPCREL(%rip), %r13
	orl	(%r13), %edx
	movl	(%rbx), %esi
	movl	(%r14), %ecx
	movq	%r15, %rdi
	callq	_intel_sbi_write
	movl	$24, %edi
	callq	_udelay
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
LBB0_2:
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_intel_sbi_read
	movl	(%r13), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%rbx), %esi
	movl	(%r14), %ecx
	movq	%r15, %rdi
	callq	_intel_sbi_write
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.3:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_lpt_reset_fdi_mphy
	movq	%r15, %rdi
	callq	_lpt_program_fdi_mphy
LBB0_5:
	movq	%r15, %rdi
	callq	_HAS_PCH_LPT_LP
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	movq	_SBI_DBUFF0@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_SBI_GEN0@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_intel_sbi_read
	movq	_SBI_GEN0_CFG_BUFFENABLE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_intel_sbi_write
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FDI requires downspread\n"

L_.str.1:                               ## @.str.1
	.asciz	"LP PCH doesn't have FDI\n"

	.comm	_SBI_SSCCTL,4,2                 ## @SBI_SSCCTL
	.comm	_SBI_ICLK,4,2                   ## @SBI_ICLK
	.comm	_SBI_SSCCTL_DISABLE,4,2         ## @SBI_SSCCTL_DISABLE
	.comm	_SBI_SSCCTL_PATHALT,4,2         ## @SBI_SSCCTL_PATHALT
	.comm	_SBI_GEN0,4,2                   ## @SBI_GEN0
	.comm	_SBI_DBUFF0,4,2                 ## @SBI_DBUFF0
	.comm	_SBI_GEN0_CFG_BUFFENABLE_DISABLE,4,2 ## @SBI_GEN0_CFG_BUFFENABLE_DISABLE
	.no_dead_strip	_lpt_enable_clkout_dp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpt_enable_clkout_dp
_lpt_enable_clkout_dp:                  ; @lpt_enable_clkout_dp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	cmp	w2, #0
	cset	w21, ne
	cmp	w1, #0
	cset	w8, eq
	and	w0, w8, w21
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	mov	x23, x0
	mov	x0, x19
	bl	_HAS_PCH_LPT_LP
	cmp	x0, #0
	cset	w8, ne
	and	w0, w21, w8
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_WARN
	mov	x21, x0
	mov	x0, x19
	bl	_mutex_lock
Lloh4:
	adrp	x25, _SBI_SSCCTL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _SBI_SSCCTL@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh6:
	adrp	x24, _SBI_ICLK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SBI_ICLK@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_intel_sbi_read
Lloh8:
	adrp	x8, _SBI_SSCCTL_DISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SBI_SSCCTL_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh11:
	adrp	x26, _SBI_SSCCTL_PATHALT@GOTPAGE
Lloh12:
	ldr	x26, [x26, _SBI_SSCCTL_PATHALT@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w2, w8, w9
	ldr	w1, [x25]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_intel_sbi_write
	mov	w0, #24
	bl	_udelay
	cbnz	w22, LBB0_2
; %bb.1:
	cbz	x23, LBB0_5
LBB0_2:
	ldr	w1, [x25]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_intel_sbi_read
	ldr	w8, [x26]
	bic	w2, w0, w8
	ldr	w1, [x25]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_intel_sbi_write
	cbz	w20, LBB0_5
; %bb.3:
	cbnz	x21, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_lpt_reset_fdi_mphy
	mov	x0, x19
	bl	_lpt_program_fdi_mphy
LBB0_5:
	mov	x0, x19
	bl	_HAS_PCH_LPT_LP
Lloh13:
	adrp	x8, _SBI_GEN0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SBI_GEN0@GOTPAGEOFF]
Lloh15:
	adrp	x9, _SBI_DBUFF0@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SBI_DBUFF0@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_intel_sbi_read
Lloh17:
	adrp	x8, _SBI_GEN0_CFG_BUFFENABLE_DISABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SBI_GEN0_CFG_BUFFENABLE_DISABLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_intel_sbi_write
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FDI requires downspread\n"

l_.str.1:                               ; @.str.1
	.asciz	"LP PCH doesn't have FDI\n"

	.comm	_SBI_SSCCTL,4,2                 ; @SBI_SSCCTL
	.comm	_SBI_ICLK,4,2                   ; @SBI_ICLK
	.comm	_SBI_SSCCTL_DISABLE,4,2         ; @SBI_SSCCTL_DISABLE
	.comm	_SBI_SSCCTL_PATHALT,4,2         ; @SBI_SSCCTL_PATHALT
	.comm	_SBI_GEN0,4,2                   ; @SBI_GEN0
	.comm	_SBI_DBUFF0,4,2                 ; @SBI_DBUFF0
	.comm	_SBI_GEN0_CFG_BUFFENABLE_DISABLE,4,2 ; @SBI_GEN0_CFG_BUFFENABLE_DISABLE
	.no_dead_strip	_lpt_enable_clkout_dp
.subsections_via_symbols
