	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_dsi_pll_disable            ## -- Begin function bxt_dsi_pll_disable
	.p2align	4, 0x90
_bxt_dsi_pll_disable:                   ## @bxt_dsi_pll_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_BXT_DSI_PLL_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_BXT_DSI_PLL_DO_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_I915_WRITE
	movl	(%rbx), %esi
	movq	_BXT_DSI_PLL_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_intel_de_wait_for_clear
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_BXT_DSI_PLL_ENABLE,4,2         ## @BXT_DSI_PLL_ENABLE
	.comm	_BXT_DSI_PLL_DO_ENABLE,4,2      ## @BXT_DSI_PLL_DO_ENABLE
	.comm	_BXT_DSI_PLL_LOCKED,4,2         ## @BXT_DSI_PLL_LOCKED
L_.str.1:                               ## @.str.1
	.asciz	"Timeout waiting for PLL lock deassertion\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_dsi_pll_disable            ; -- Begin function bxt_dsi_pll_disable
	.p2align	2
_bxt_dsi_pll_disable:                   ; @bxt_dsi_pll_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w0, [x0]
	bl	_to_i915
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x20, _BXT_DSI_PLL_ENABLE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _BXT_DSI_PLL_ENABLE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
Lloh4:
	adrp	x8, _BXT_DSI_PLL_DO_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BXT_DSI_PLL_DO_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x20]
	bl	_I915_WRITE
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _BXT_DSI_PLL_LOCKED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BXT_DSI_PLL_LOCKED@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_intel_de_wait_for_clear
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_ERROR
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_BXT_DSI_PLL_ENABLE,4,2         ; @BXT_DSI_PLL_ENABLE
	.comm	_BXT_DSI_PLL_DO_ENABLE,4,2      ; @BXT_DSI_PLL_DO_ENABLE
	.comm	_BXT_DSI_PLL_LOCKED,4,2         ; @BXT_DSI_PLL_LOCKED
l_.str.1:                               ; @.str.1
	.asciz	"Timeout waiting for PLL lock deassertion\n"

.subsections_via_symbols
