	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv770_enable_spread_spectrum
_rv770_enable_spread_spectrum:          ## @rv770_enable_spread_spectrum
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_rv770_get_pi
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:
	movq	_GENERAL_PWRMGT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DYN_SPREAD_SPECTRUM_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	notl	%edx
	callq	_WREG32_P
LBB0_3:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.4:
	movq	(%r15), %rax
	movq	_CHIP_RV740@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CG_SPLL_SPREAD_SPECTRUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	notl	%edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_WREG32_P
	movq	_GENERAL_PWRMGT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DYN_SPREAD_SPECTRUM_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	xorl	%esi, %esi
	callq	_WREG32_P
	movq	_CG_MPLL_SPREAD_SPECTRUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	notl	%edx
	xorl	%esi, %esi
	callq	_WREG32_P
	movq	(%r15), %rax
	movq	_CHIP_RV740@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rv740_enable_mclk_spread_spectrum ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GENERAL_PWRMGT,4,2             ## @GENERAL_PWRMGT
	.comm	_DYN_SPREAD_SPECTRUM_EN,4,2     ## @DYN_SPREAD_SPECTRUM_EN
	.comm	_CHIP_RV740,8,3                 ## @CHIP_RV740
	.comm	_CG_SPLL_SPREAD_SPECTRUM,4,2    ## @CG_SPLL_SPREAD_SPECTRUM
	.comm	_SSEN,4,2                       ## @SSEN
	.comm	_CG_MPLL_SPREAD_SPECTRUM,4,2    ## @CG_MPLL_SPREAD_SPECTRUM
	.no_dead_strip	_rv770_enable_spread_spectrum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv770_enable_spread_spectrum
_rv770_enable_spread_spectrum:          ; @rv770_enable_spread_spectrum
	.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	x19, x0
	bl	_rv770_get_pi
	cbz	w21, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _GENERAL_PWRMGT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GENERAL_PWRMGT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DYN_SPREAD_SPECTRUM_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DYN_SPREAD_SPECTRUM_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mvn	w2, w1
	bl	_WREG32_P
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _CHIP_RV740@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHIP_RV740@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	mov	w1, #1
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _CG_SPLL_SPREAD_SPECTRUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CG_SPLL_SPREAD_SPECTRUM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x20, _SSEN@GOTPAGE
Lloh13:
	ldr	x20, [x20, _SSEN@GOTPAGEOFF]
	ldr	w8, [x20]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
Lloh14:
	adrp	x8, _GENERAL_PWRMGT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GENERAL_PWRMGT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _DYN_SPREAD_SPECTRUM_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DYN_SPREAD_SPECTRUM_EN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
Lloh20:
	adrp	x8, _CG_MPLL_SPREAD_SPECTRUM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CG_MPLL_SPREAD_SPECTRUM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w8, [x20]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
	mov	w1, #0
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _CHIP_RV740@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CHIP_RV740@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_7:
	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
	b	_rv740_enable_mclk_spread_spectrum
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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GENERAL_PWRMGT,4,2             ; @GENERAL_PWRMGT
	.comm	_DYN_SPREAD_SPECTRUM_EN,4,2     ; @DYN_SPREAD_SPECTRUM_EN
	.comm	_CHIP_RV740,8,3                 ; @CHIP_RV740
	.comm	_CG_SPLL_SPREAD_SPECTRUM,4,2    ; @CG_SPLL_SPREAD_SPECTRUM
	.comm	_SSEN,4,2                       ; @SSEN
	.comm	_CG_MPLL_SPREAD_SPECTRUM,4,2    ; @CG_MPLL_SPREAD_SPECTRUM
	.no_dead_strip	_rv770_enable_spread_spectrum
.subsections_via_symbols
