	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_dsi_pll_is_enabled         ## -- Begin function bxt_dsi_pll_is_enabled
	.p2align	4, 0x90
_bxt_dsi_pll_is_enabled:                ## @bxt_dsi_pll_is_enabled
	.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	%rdi, %r15
	movq	_BXT_DSI_PLL_DO_ENABLE@GOTPCREL(%rip), %rax
	movq	_BXT_DSI_PLL_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_BXT_DSI_PLL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ecx
	notl	%ecx
	xorl	%eax, %eax
	testl	%ecx, %ebx
	jne	LBB0_6
## %bb.1:
	movq	_BXT_DSI_PLL_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_IS_GEMINILAKE
	movq	_BXT_DSIA_16X_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, %eax
	testl	%r14d, %ecx
	jne	LBB0_6
	jmp	LBB0_5
LBB0_3:
	testl	%r14d, %ecx
	je	LBB0_5
## %bb.4:
	movq	_BXT_DSIC_16X_MASK@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	testl	%r14d, (%rcx)
	jne	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_DRM_DEBUG_DRIVER
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BXT_DSI_PLL_DO_ENABLE,4,2      ## @BXT_DSI_PLL_DO_ENABLE
	.comm	_BXT_DSI_PLL_LOCKED,4,2         ## @BXT_DSI_PLL_LOCKED
	.comm	_BXT_DSI_PLL_ENABLE,4,2         ## @BXT_DSI_PLL_ENABLE
	.comm	_BXT_DSI_PLL_CTL,4,2            ## @BXT_DSI_PLL_CTL
	.comm	_BXT_DSIA_16X_MASK,4,2          ## @BXT_DSIA_16X_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid PLL divider (%08x)\n"

	.comm	_BXT_DSIC_16X_MASK,4,2          ## @BXT_DSIC_16X_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_dsi_pll_is_enabled         ; -- Begin function bxt_dsi_pll_is_enabled
	.p2align	2
_bxt_dsi_pll_is_enabled:                ; @bxt_dsi_pll_is_enabled
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _BXT_DSI_PLL_DO_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BXT_DSI_PLL_DO_ENABLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BXT_DSI_PLL_LOCKED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BXT_DSI_PLL_LOCKED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w19, w9, w8
Lloh6:
	adrp	x8, _BXT_DSI_PLL_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BXT_DSI_PLL_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_I915_READ
	bics	wzr, w19, w0
	b.ne	LBB0_7
; %bb.1:
Lloh9:
	adrp	x8, _BXT_DSI_PLL_CTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BXT_DSI_PLL_CTL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x19, x0
	mov	x0, x20
	bl	_IS_GEMINILAKE
Lloh12:
	adrp	x8, _BXT_DSIA_16X_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BXT_DSIA_16X_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w19
	cbz	x0, LBB0_3
; %bb.2:
	cbnz	w8, LBB0_5
	b	LBB0_6
LBB0_3:
	cbz	w8, LBB0_6
; %bb.4:
Lloh15:
	adrp	x8, _BXT_DSIC_16X_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BXT_DSIC_16X_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
LBB0_5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_DRIVER
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BXT_DSI_PLL_DO_ENABLE,4,2      ; @BXT_DSI_PLL_DO_ENABLE
	.comm	_BXT_DSI_PLL_LOCKED,4,2         ; @BXT_DSI_PLL_LOCKED
	.comm	_BXT_DSI_PLL_ENABLE,4,2         ; @BXT_DSI_PLL_ENABLE
	.comm	_BXT_DSI_PLL_CTL,4,2            ; @BXT_DSI_PLL_CTL
	.comm	_BXT_DSIA_16X_MASK,4,2          ; @BXT_DSIA_16X_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid PLL divider (%08x)\n"

	.comm	_BXT_DSIC_16X_MASK,4,2          ; @BXT_DSIC_16X_MASK
.subsections_via_symbols
