	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88rs2000_get_mclk
_m88rs2000_get_mclk:                    ## @m88rs2000_get_mclk
	.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), %rdi
	movl	$134, %esi
	callq	_m88rs2000_readreg
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$255, %ecx
	jne	LBB0_2
LBB0_3:
	popq	%rbp
	retq
LBB0_2:
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	incl	%eax
	movq	_RS2000_FE_CRYSTAL_KHZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, %ecx
	addl	$14, %ecx
	movslq	%ecx, %rcx
	imulq	$-1840700269, %rcx, %rcx        ## imm = 0x92492493
	shrq	$32, %rcx
	addl	%ecx, %eax
	addl	$14, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$4, %eax
	addl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RS2000_FE_CRYSTAL_KHZ,4,2      ## @RS2000_FE_CRYSTAL_KHZ
	.no_dead_strip	_m88rs2000_get_mclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88rs2000_get_mclk
_m88rs2000_get_mclk:                    ; @m88rs2000_get_mclk
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
	mov	w1, #134
	bl	_m88rs2000_readreg
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_2
; %bb.1:
	cmp	w8, #255
	b.ne	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
Lloh0:
	adrp	x9, _RS2000_FE_CRYSTAL_KHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RS2000_FE_CRYSTAL_KHZ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	madd	w8, w9, w8, w9
	add	w8, w8, #14
	mov	w9, #9363
	movk	w9, #37449, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #4
	add	w0, w9, w8, lsr #31
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RS2000_FE_CRYSTAL_KHZ,4,2      ; @RS2000_FE_CRYSTAL_KHZ
	.no_dead_strip	_m88rs2000_get_mclk
.subsections_via_symbols
