	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ns_to_cclock                   ## -- Begin function ns_to_cclock
	.p2align	4, 0x90
_ns_to_cclock:                          ## @ns_to_cclock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_ICODE_FPGA_EMULATION@GOTPCREL(%rip), %rdx
	imull	$1000, %esi, %eax               ## imm = 0x3E8
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_FPGA_CCLOCK_PS@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_ASIC_CCLOCK_PS@GOTPCREL(%rip), %rcx
LBB0_3:
	cltd
	idivl	(%rcx)
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%eax, %ecx
	testl	%esi, %esi
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICODE_FPGA_EMULATION,8,3       ## @ICODE_FPGA_EMULATION
	.comm	_FPGA_CCLOCK_PS,4,2             ## @FPGA_CCLOCK_PS
	.comm	_ASIC_CCLOCK_PS,4,2             ## @ASIC_CCLOCK_PS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ns_to_cclock                   ; -- Begin function ns_to_cclock
	.p2align	2
_ns_to_cclock:                          ; @ns_to_cclock
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ICODE_FPGA_EMULATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICODE_FPGA_EMULATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #1000
	mul	w10, w1, w10
Lloh3:
	adrp	x11, _FPGA_CCLOCK_PS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _FPGA_CCLOCK_PS@GOTPAGEOFF]
Lloh5:
	adrp	x12, _ASIC_CCLOCK_PS@GOTPAGE
Lloh6:
	ldr	x12, [x12, _ASIC_CCLOCK_PS@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x12, eq
	ldr	w8, [x8]
	sdiv	w8, w10, w8
	cmp	w8, #0
	ccmp	w1, #0, #4, eq
	csinc	w0, w8, wzr, eq
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ICODE_FPGA_EMULATION,8,3       ; @ICODE_FPGA_EMULATION
	.comm	_FPGA_CCLOCK_PS,4,2             ; @FPGA_CCLOCK_PS
	.comm	_ASIC_CCLOCK_PS,4,2             ; @ASIC_CCLOCK_PS
.subsections_via_symbols
