	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bxt_de_pll_enable
_bxt_de_pll_enable:                     ## @bxt_de_pll_enable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	4(%rdi), %esi
	movl	%r14d, %edi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %r12d
	movq	_BXT_DE_PLL_CTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_I915_READ
	movq	_BXT_DE_PLL_RATIO_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r12d, %edi
	callq	_BXT_DE_PLL_RATIO
	orl	%eax, %ebx
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_BXT_DE_PLL_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_BXT_DE_PLL_PLL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_I915_WRITE
	movl	(%rbx), %esi
	movq	_BXT_DE_PLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_intel_de_wait_for_set
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	movl	%r14d, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BXT_DE_PLL_CTL,4,2             ## @BXT_DE_PLL_CTL
	.comm	_BXT_DE_PLL_RATIO_MASK,4,2      ## @BXT_DE_PLL_RATIO_MASK
	.comm	_BXT_DE_PLL_ENABLE,4,2          ## @BXT_DE_PLL_ENABLE
	.comm	_BXT_DE_PLL_PLL_ENABLE,4,2      ## @BXT_DE_PLL_PLL_ENABLE
	.comm	_BXT_DE_PLL_LOCK,4,2            ## @BXT_DE_PLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout waiting for DE PLL lock\n"

	.no_dead_strip	_bxt_de_pll_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bxt_de_pll_enable
_bxt_de_pll_enable:                     ; @bxt_de_pll_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x0, #4]
	mov	x0, x19
	bl	_DIV_ROUND_CLOSEST
	mov	x21, x0
Lloh0:
	adrp	x22, _BXT_DE_PLL_CTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BXT_DE_PLL_CTL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_I915_READ
Lloh2:
	adrp	x8, _BXT_DE_PLL_RATIO_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BXT_DE_PLL_RATIO_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w23, w0, w8
	mov	x0, x21
	bl	_BXT_DE_PLL_RATIO
	orr	w1, w23, w0
	ldr	w0, [x22]
	bl	_I915_WRITE
Lloh5:
	adrp	x21, _BXT_DE_PLL_ENABLE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _BXT_DE_PLL_ENABLE@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _BXT_DE_PLL_PLL_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BXT_DE_PLL_PLL_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_I915_WRITE
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _BXT_DE_PLL_LOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BXT_DE_PLL_LOCK@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_intel_de_wait_for_set
	cbz	x0, LBB0_2
; %bb.1:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
	str	w19, [x20]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BXT_DE_PLL_CTL,4,2             ; @BXT_DE_PLL_CTL
	.comm	_BXT_DE_PLL_RATIO_MASK,4,2      ; @BXT_DE_PLL_RATIO_MASK
	.comm	_BXT_DE_PLL_ENABLE,4,2          ; @BXT_DE_PLL_ENABLE
	.comm	_BXT_DE_PLL_PLL_ENABLE,4,2      ; @BXT_DE_PLL_PLL_ENABLE
	.comm	_BXT_DE_PLL_LOCK,4,2            ; @BXT_DE_PLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout waiting for DE PLL lock\n"

	.no_dead_strip	_bxt_de_pll_enable
.subsections_via_symbols
