	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wrpll_uses_pch_ssc
_wrpll_uses_pch_ssc:                    ## @wrpll_uses_pch_ssc
	.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, %ebx
	movq	%rdi, %r15
	movq	_FUSE_STRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_WRPLL_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_WRPLL_PLL_ENABLE@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_WRPLL_REF_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	andl	%ebx, %eax
	movq	_WRPLL_REF_PCH_SSC@GOTPCREL(%rip), %rcx
	movl	$1, %r12d
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_IS_HSW_ULT
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	andl	(%r13), %ebx
	movq	_WRPLL_REF_MUXED_SSC_BDW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.5:
	movq	_HSW_CPU_SSC_ENABLE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FUSE_STRAP,4,2                 ## @FUSE_STRAP
	.comm	_WRPLL_PLL_ENABLE,4,2           ## @WRPLL_PLL_ENABLE
	.comm	_WRPLL_REF_MASK,4,2             ## @WRPLL_REF_MASK
	.comm	_WRPLL_REF_PCH_SSC,4,2          ## @WRPLL_REF_PCH_SSC
	.comm	_WRPLL_REF_MUXED_SSC_BDW,4,2    ## @WRPLL_REF_MUXED_SSC_BDW
	.comm	_HSW_CPU_SSC_ENABLE,4,2         ## @HSW_CPU_SSC_ENABLE
	.no_dead_strip	_wrpll_uses_pch_ssc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wrpll_uses_pch_ssc
_wrpll_uses_pch_ssc:                    ; @wrpll_uses_pch_ssc
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FUSE_STRAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FUSE_STRAP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x19, x0
	mov	x0, x21
	bl	_WRPLL_CTL
	bl	_I915_READ
Lloh3:
	adrp	x8, _WRPLL_PLL_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WRPLL_PLL_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.1:
	mov	x21, x0
Lloh6:
	adrp	x22, _WRPLL_REF_MASK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _WRPLL_REF_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w8, w8, w0
Lloh8:
	adrp	x9, _WRPLL_REF_PCH_SSC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WRPLL_REF_PCH_SSC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #1
	b	LBB0_8
LBB0_3:
	mov	x0, x20
	bl	_IS_BROADWELL
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_IS_HSW_ULT
	cbz	x0, LBB0_7
LBB0_5:
	ldr	w8, [x22]
	and	w8, w8, w21
Lloh11:
	adrp	x9, _WRPLL_REF_MUXED_SSC_BDW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WRPLL_REF_MUXED_SSC_BDW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _HSW_CPU_SSC_ENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HSW_CPU_SSC_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FUSE_STRAP,4,2                 ; @FUSE_STRAP
	.comm	_WRPLL_PLL_ENABLE,4,2           ; @WRPLL_PLL_ENABLE
	.comm	_WRPLL_REF_MASK,4,2             ; @WRPLL_REF_MASK
	.comm	_WRPLL_REF_PCH_SSC,4,2          ; @WRPLL_REF_PCH_SSC
	.comm	_WRPLL_REF_MUXED_SSC_BDW,4,2    ; @WRPLL_REF_MUXED_SSC_BDW
	.comm	_HSW_CPU_SSC_ENABLE,4,2         ; @HSW_CPU_SSC_ENABLE
	.no_dead_strip	_wrpll_uses_pch_ssc
.subsections_via_symbols
