	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_dsi_get_pclk               ## -- Begin function bxt_dsi_get_pclk
	.p2align	4, 0x90
_bxt_dsi_get_pclk:                      ## @bxt_dsi_get_pclk
	.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, %r14
	movq	%rdi, %rbx
	callq	_enc_to_intel_dsi
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_to_i915
	movl	4(%r15), %edi
	callq	_mipi_dsi_pixel_format_to_bpp
	movl	%eax, %ebx
	movq	_BXT_DSI_PLL_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, (%r14)
	movq	_BXT_DSI_PLL_RATIO_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_BXT_REF_CLOCK_KHZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	imull	(%r15), %edi
	movl	%ebx, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_DRIVER
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BXT_DSI_PLL_CTL,4,2            ## @BXT_DSI_PLL_CTL
	.comm	_BXT_DSI_PLL_RATIO_MASK,4,2     ## @BXT_DSI_PLL_RATIO_MASK
	.comm	_BXT_REF_CLOCK_KHZ,4,2          ## @BXT_REF_CLOCK_KHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Calculated pclk=%u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_dsi_get_pclk               ; -- Begin function bxt_dsi_get_pclk
	.p2align	2
_bxt_dsi_get_pclk:                      ; @bxt_dsi_get_pclk
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	_enc_to_intel_dsi
	mov	x21, x0
	ldr	w0, [x20]
	bl	_to_i915
	ldr	w0, [x21, #4]
	bl	_mipi_dsi_pixel_format_to_bpp
	mov	x20, x0
Lloh0:
	adrp	x8, _BXT_DSI_PLL_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BXT_DSI_PLL_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _BXT_DSI_PLL_RATIO_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BXT_DSI_PLL_RATIO_MASK@GOTPAGEOFF]
	str	w0, [x19]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _BXT_REF_CLOCK_KHZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BXT_REF_CLOCK_KHZ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	w9, [x21]
	mul	w0, w8, w9
	mov	x1, x20
	bl	_DIV_ROUND_CLOSEST
	mov	x19, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_DRIVER
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BXT_DSI_PLL_CTL,4,2            ; @BXT_DSI_PLL_CTL
	.comm	_BXT_DSI_PLL_RATIO_MASK,4,2     ; @BXT_DSI_PLL_RATIO_MASK
	.comm	_BXT_REF_CLOCK_KHZ,4,2          ; @BXT_REF_CLOCK_KHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Calculated pclk=%u\n"

.subsections_via_symbols
