	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs780_set_engine_clock_spc
_rs780_set_engine_clock_spc:            ## @rs780_set_engine_clock_spc
	.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	%rdx, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_rs780_get_ps
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rs780_get_ps
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_rs780_get_pi
	movq	(%r14), %rcx
	cmpq	(%rbx), %rcx
	jne	LBB0_3
## %bb.1:
	movq	8(%r14), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_3
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%esi, %esi
	cmpq	$0, (%rax)
	movq	_CG_INTGFX_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FVTHROT_VBLANK_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovnel	%edx, %esi
	notl	%edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_P                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CG_INTGFX_MISC,4,2             ## @CG_INTGFX_MISC
	.comm	_FVTHROT_VBLANK_SEL,4,2         ## @FVTHROT_VBLANK_SEL
	.no_dead_strip	_rs780_set_engine_clock_spc
.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_spc
_rs780_set_engine_clock_spc:            ; @rs780_set_engine_clock_spc
	.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	x20, x2
	mov	x21, x0
	mov	x0, x1
	bl	_rs780_get_ps
	mov	x19, x0
	mov	x0, x20
	bl	_rs780_get_ps
	mov	x20, x0
	mov	x0, x21
	bl	_rs780_get_pi
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	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
LBB0_3:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CG_INTGFX_MISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CG_INTGFX_MISC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _FVTHROT_VBLANK_SEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FVTHROT_VBLANK_SEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mvn	w2, w9
	cmp	x8, #0
	csel	w1, wzr, w9, eq
	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	_WREG32_P
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CG_INTGFX_MISC,4,2             ; @CG_INTGFX_MISC
	.comm	_FVTHROT_VBLANK_SEL,4,2         ; @FVTHROT_VBLANK_SEL
	.no_dead_strip	_rs780_set_engine_clock_spc
.subsections_via_symbols
