	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_spread_spectrum_on_ppll_v2
_enable_spread_spectrum_on_ppll_v2:     ## @enable_spread_spectrum_on_ppll_v2
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	_BP_RESULT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	(%rbx), %rax
	movq	_CLOCK_SOURCE_ID_PLL1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_ATOM_PPLL_SS_TYPE_V2_P1PLL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_CLOCK_SOURCE_ID_PLL2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_ATOM_PPLL_SS_TYPE_V2_P2PLL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	cmpl	$1, %r15d
	je	LBB0_7
	jmp	LBB0_13
LBB0_5:
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
	cmpl	$1, %r15d
	jne	LBB0_13
LBB0_7:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_13
## %bb.8:
	movq	_ATOM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	movl	24(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
	cmpq	$0, 40(%rbx)
	je	LBB0_10
## %bb.9:
	movq	_ATOM_PPLL_SS_TYPE_V2_EXT_SPREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
LBB0_10:
	cmpq	$0, 32(%rbx)
	je	LBB0_12
## %bb.11:
	movq	_ATOM_PPLL_SS_TYPE_V2_CENTRE_SPREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
LBB0_12:
	movq	_ATOM_PPLL_SS_AMOUNT_V2_FBDIV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	16(%rbx), %eax
	movl	20(%rbx), %edi
	shll	%cl, %eax
	movq	_ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	_ATOM_PPLL_SS_AMOUNT_V2_NFRAC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	orl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	jmp	LBB0_14
LBB0_13:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
LBB0_14:
	movq	_EnableSpreadSpectrumOnPPLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-32(%rbp), %rax
	movq	%rax, 32(%rsp)
	movups	-64(%rbp), %xmm0
	movups	-48(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_EXEC_BIOS_CMD_TABLE
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ## @BP_RESULT_FAILURE
	.comm	_CLOCK_SOURCE_ID_PLL1,8,3       ## @CLOCK_SOURCE_ID_PLL1
	.comm	_ATOM_PPLL_SS_TYPE_V2_P1PLL,4,2 ## @ATOM_PPLL_SS_TYPE_V2_P1PLL
	.comm	_CLOCK_SOURCE_ID_PLL2,8,3       ## @CLOCK_SOURCE_ID_PLL2
	.comm	_ATOM_PPLL_SS_TYPE_V2_P2PLL,4,2 ## @ATOM_PPLL_SS_TYPE_V2_P2PLL
	.comm	_ATOM_ENABLE,4,2                ## @ATOM_ENABLE
	.comm	_ATOM_PPLL_SS_TYPE_V2_EXT_SPREAD,4,2 ## @ATOM_PPLL_SS_TYPE_V2_EXT_SPREAD
	.comm	_ATOM_PPLL_SS_TYPE_V2_CENTRE_SPREAD,4,2 ## @ATOM_PPLL_SS_TYPE_V2_CENTRE_SPREAD
	.comm	_ATOM_PPLL_SS_AMOUNT_V2_FBDIV_SHIFT,4,2 ## @ATOM_PPLL_SS_AMOUNT_V2_FBDIV_SHIFT
	.comm	_ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK,4,2 ## @ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK
	.comm	_ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT,4,2 ## @ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT
	.comm	_ATOM_PPLL_SS_AMOUNT_V2_NFRAC_MASK,4,2 ## @ATOM_PPLL_SS_AMOUNT_V2_NFRAC_MASK
	.comm	_ATOM_DISABLE,4,2               ## @ATOM_DISABLE
	.comm	_EnableSpreadSpectrumOnPPLL,4,2 ## @EnableSpreadSpectrumOnPPLL
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.no_dead_strip	_enable_spread_spectrum_on_ppll_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_spread_spectrum_on_ppll_v2
_enable_spread_spectrum_on_ppll_v2:     ; @enable_spread_spectrum_on_ppll_v2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _BP_RESULT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BP_RESULT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _CLOCK_SOURCE_ID_PLL1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CLOCK_SOURCE_ID_PLL1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ATOM_PPLL_SS_TYPE_V2_P1PLL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATOM_PPLL_SS_TYPE_V2_P1PLL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x9, _CLOCK_SOURCE_ID_PLL2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CLOCK_SOURCE_ID_PLL2@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _ATOM_PPLL_SS_TYPE_V2_P2PLL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATOM_PPLL_SS_TYPE_V2_P2PLL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	cmp	w20, #1
	b.eq	LBB0_6
	b	LBB0_12
LBB0_5:
	bl	_BREAK_TO_DEBUGGER
	cmp	w20, #1
	b.ne	LBB0_12
LBB0_6:
	ldr	x0, [x19, #8]
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.7:
Lloh13:
	adrp	x8, _ATOM_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATOM_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #40]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cpu_to_le16
	str	x0, [sp, #72]
	ldr	w0, [x19, #24]
	bl	_cpu_to_le16
	str	x0, [sp, #64]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _ATOM_PPLL_SS_TYPE_V2_EXT_SPREAD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ATOM_PPLL_SS_TYPE_V2_EXT_SPREAD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [sp, #56]
	orr	w8, w9, w8
	str	w8, [sp, #56]
LBB0_9:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.10:
Lloh19:
	adrp	x8, _ATOM_PPLL_SS_TYPE_V2_CENTRE_SPREAD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ATOM_PPLL_SS_TYPE_V2_CENTRE_SPREAD@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [sp, #56]
	orr	w8, w9, w8
	str	w8, [sp, #56]
LBB0_11:
Lloh22:
	adrp	x8, _ATOM_PPLL_SS_AMOUNT_V2_FBDIV_SHIFT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ATOM_PPLL_SS_AMOUNT_V2_FBDIV_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK@GOTPAGEOFF]
	ldp	w10, w11, [x19, #16]
	lsl	w8, w10, w8
Lloh27:
	ldr	w9, [x9]
	and	w8, w8, w9
Lloh28:
	adrp	x9, _ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	lsl	w9, w11, w9
Lloh31:
	adrp	x10, _ATOM_PPLL_SS_AMOUNT_V2_NFRAC_MASK@GOTPAGE
Lloh32:
	ldr	x10, [x10, _ATOM_PPLL_SS_AMOUNT_V2_NFRAC_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w0, w9, w8
	bl	_cpu_to_le16
	str	x0, [sp, #48]
	b	LBB0_13
LBB0_12:
Lloh34:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [sp, #40]
LBB0_13:
Lloh37:
	adrp	x8, _EnableSpreadSpectrumOnPPLL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EnableSpreadSpectrumOnPPLL@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldur	q0, [sp, #40]
	ldur	q1, [sp, #56]
	stp	q0, q1, [sp]
	ldr	x8, [sp, #72]
	str	x8, [sp, #32]
	mov	x1, sp
	bl	_EXEC_BIOS_CMD_TABLE
Lloh40:
	adrp	x8, _BP_RESULT_OK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BP_RESULT_OK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w21, w8, eq
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_FAILURE,4,2          ; @BP_RESULT_FAILURE
	.comm	_CLOCK_SOURCE_ID_PLL1,8,3       ; @CLOCK_SOURCE_ID_PLL1
	.comm	_ATOM_PPLL_SS_TYPE_V2_P1PLL,4,2 ; @ATOM_PPLL_SS_TYPE_V2_P1PLL
	.comm	_CLOCK_SOURCE_ID_PLL2,8,3       ; @CLOCK_SOURCE_ID_PLL2
	.comm	_ATOM_PPLL_SS_TYPE_V2_P2PLL,4,2 ; @ATOM_PPLL_SS_TYPE_V2_P2PLL
	.comm	_ATOM_ENABLE,4,2                ; @ATOM_ENABLE
	.comm	_ATOM_PPLL_SS_TYPE_V2_EXT_SPREAD,4,2 ; @ATOM_PPLL_SS_TYPE_V2_EXT_SPREAD
	.comm	_ATOM_PPLL_SS_TYPE_V2_CENTRE_SPREAD,4,2 ; @ATOM_PPLL_SS_TYPE_V2_CENTRE_SPREAD
	.comm	_ATOM_PPLL_SS_AMOUNT_V2_FBDIV_SHIFT,4,2 ; @ATOM_PPLL_SS_AMOUNT_V2_FBDIV_SHIFT
	.comm	_ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK,4,2 ; @ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK
	.comm	_ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT,4,2 ; @ATOM_PPLL_SS_AMOUNT_V2_NFRAC_SHIFT
	.comm	_ATOM_PPLL_SS_AMOUNT_V2_NFRAC_MASK,4,2 ; @ATOM_PPLL_SS_AMOUNT_V2_NFRAC_MASK
	.comm	_ATOM_DISABLE,4,2               ; @ATOM_DISABLE
	.comm	_EnableSpreadSpectrumOnPPLL,4,2 ; @EnableSpreadSpectrumOnPPLL
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.no_dead_strip	_enable_spread_spectrum_on_ppll_v2
.subsections_via_symbols
