	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs780_set_engine_clock_sc
_rs780_set_engine_clock_sc:             ## @rs780_set_engine_clock_sc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_FVTHROT_FBDIV_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RS780_FBDIVTIMERVAL_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FB_DIV_TIMER_VAL
	movq	_FB_DIV_TIMER_VAL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_WREG32_P
	movq	_FVTHROT_CNTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	callq	_REFRESH_RATE_DIVISOR
	movl	%eax, %ebx
	movl	$15, %edi
	callq	_MINIMUM_CIP
	orl	%eax, %ebx
	movq	_REFRESH_RATE_DIVISOR_MASK@GOTPCREL(%rip), %rax
	movq	_MINIMUM_CIP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	movl	%r14d, %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32_P                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FVTHROT_FBDIV_REG2,4,2         ## @FVTHROT_FBDIV_REG2
	.comm	_RS780_FBDIVTIMERVAL_DFLT,4,2   ## @RS780_FBDIVTIMERVAL_DFLT
	.comm	_FB_DIV_TIMER_VAL_MASK,4,2      ## @FB_DIV_TIMER_VAL_MASK
	.comm	_FVTHROT_CNTRL_REG,4,2          ## @FVTHROT_CNTRL_REG
	.comm	_REFRESH_RATE_DIVISOR_MASK,4,2  ## @REFRESH_RATE_DIVISOR_MASK
	.comm	_MINIMUM_CIP_MASK,4,2           ## @MINIMUM_CIP_MASK
	.no_dead_strip	_rs780_set_engine_clock_sc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs780_set_engine_clock_sc
_rs780_set_engine_clock_sc:             ; @rs780_set_engine_clock_sc
	.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
Lloh0:
	adrp	x8, _FVTHROT_FBDIV_REG2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FVTHROT_FBDIV_REG2@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _RS780_FBDIVTIMERVAL_DFLT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RS780_FBDIVTIMERVAL_DFLT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FB_DIV_TIMER_VAL
	mov	x1, x0
Lloh6:
	adrp	x8, _FB_DIV_TIMER_VAL_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FB_DIV_TIMER_VAL_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x19
	bl	_WREG32_P
Lloh9:
	adrp	x8, _FVTHROT_CNTRL_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FVTHROT_CNTRL_REG@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	mov	w0, #0
	bl	_REFRESH_RATE_DIVISOR
	mov	x20, x0
	mov	w0, #15
	bl	_MINIMUM_CIP
	orr	w1, w0, w20
Lloh12:
	adrp	x8, _REFRESH_RATE_DIVISOR_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REFRESH_RATE_DIVISOR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MINIMUM_CIP_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MINIMUM_CIP_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mvn	w2, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32_P
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FVTHROT_FBDIV_REG2,4,2         ; @FVTHROT_FBDIV_REG2
	.comm	_RS780_FBDIVTIMERVAL_DFLT,4,2   ; @RS780_FBDIVTIMERVAL_DFLT
	.comm	_FB_DIV_TIMER_VAL_MASK,4,2      ; @FB_DIV_TIMER_VAL_MASK
	.comm	_FVTHROT_CNTRL_REG,4,2          ; @FVTHROT_CNTRL_REG
	.comm	_REFRESH_RATE_DIVISOR_MASK,4,2  ; @REFRESH_RATE_DIVISOR_MASK
	.comm	_MINIMUM_CIP_MASK,4,2           ; @MINIMUM_CIP_MASK
	.no_dead_strip	_rs780_set_engine_clock_sc
.subsections_via_symbols
