	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Pico32xSetClocks               ## -- Begin function Pico32xSetClocks
	.p2align	4, 0x90
_Pico32xSetClocks:                      ## @Pico32xSetClocks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_OSC_NTSC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$-1840700269, %rax, %rcx        ## imm = 0x92492493
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	sarl	$2, %ecx
	addl	%eax, %ecx
	cvtsi2ss	%ecx, %xmm0
	testl	%edi, %edi
	jle	LBB0_2
## %bb.1:
	cvtsi2ss	%edi, %xmm1
	movq	_CYCLE_MULT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	cvtsi2ss	%eax, %xmm2
	movaps	%xmm1, %xmm3
	mulss	%xmm2, %xmm3
	divss	%xmm0, %xmm3
	cvttss2si	%xmm3, %eax
	movq	_msh2@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	mulss	%xmm0, %xmm2
	divss	%xmm1, %xmm2
	cvttss2si	%xmm2, %eax
	movl	%eax, 4(%rcx)
LBB0_2:
	testl	%esi, %esi
	jle	LBB0_4
## %bb.3:
	xorps	%xmm1, %xmm1
	cvtsi2ss	%esi, %xmm1
	movq	_CYCLE_MULT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	xorps	%xmm2, %xmm2
	cvtsi2ss	%eax, %xmm2
	movaps	%xmm1, %xmm3
	mulss	%xmm2, %xmm3
	divss	%xmm0, %xmm3
	cvttss2si	%xmm3, %eax
	movq	_ssh2@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	mulss	%xmm2, %xmm0
	divss	%xmm1, %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, 4(%rcx)
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSC_NTSC,4,2                   ## @OSC_NTSC
	.comm	_CYCLE_MULT_SHIFT,4,2           ## @CYCLE_MULT_SHIFT
	.comm	_msh2,8,2                       ## @msh2
	.comm	_ssh2,8,2                       ## @ssh2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Pico32xSetClocks               ; -- Begin function Pico32xSetClocks
	.p2align	2
_Pico32xSetClocks:                      ; @Pico32xSetClocks
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _OSC_NTSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSC_NTSC@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	mov	x9, #-56173
	movk	x9, #37449, lsl #16
	mul	x9, x8, x9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #2
	add	w8, w9, w8, lsr #31
	scvtf	s0, w8
Lloh3:
	adrp	x8, _CYCLE_MULT_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CYCLE_MULT_SHIFT@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	scvtf	s1, w0
	ldr	w9, [x8]
	mov	w10, #1
	lsl	w9, w10, w9
	scvtf	s2, w9
	mov.16b	v3, v0
	mov.s	v3[1], v1[0]
	mov.s	v1[1], v0[0]
	fmul.2s	v1, v1, v2[0]
	fdiv.2s	v1, v1, v3
	fcvtzs.2s	v1, v1
Lloh5:
	adrp	x9, _msh2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _msh2@GOTPAGEOFF]
Lloh7:
	str	d1, [x9]
LBB0_2:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.3:
	scvtf	s1, w1
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	scvtf	s2, w8
	mov.16b	v3, v1
	mov.s	v3[1], v0[0]
	mov.s	v0[1], v1[0]
	fmul.2s	v1, v3, v2[0]
	fdiv.2s	v0, v1, v0
	fcvtzs.2s	v0, v0
Lloh8:
	adrp	x8, _ssh2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ssh2@GOTPAGEOFF]
Lloh10:
	str	d0, [x8]
LBB0_4:
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OSC_NTSC,4,2                   ; @OSC_NTSC
	.comm	_CYCLE_MULT_SHIFT,4,2           ; @CYCLE_MULT_SHIFT
	.comm	_msh2,8,2                       ; @msh2
	.comm	_ssh2,8,2                       ; @ssh2
.subsections_via_symbols
