	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gemtek_convfreq
_gemtek_convfreq:                       ## @gemtek_convfreq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_FSCALE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdi
	movq	_IF_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	_REF_FREQ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	cltq
	addq	%rdi, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	popq	%rbp
	retq
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSCALE,8,3                     ## @FSCALE
	.comm	_IF_OFFSET,8,3                  ## @IF_OFFSET
	.comm	_REF_FREQ,4,2                   ## @REF_FREQ
	.no_dead_strip	_gemtek_convfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gemtek_convfreq
_gemtek_convfreq:                       ; @gemtek_convfreq
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FSCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSCALE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IF_OFFSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IF_OFFSET@GOTPAGEOFF]
	lsl	x8, x0, x8
Lloh5:
	ldr	x9, [x9]
	add	x8, x8, x9
Lloh6:
	adrp	x9, _REF_FREQ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REF_FREQ@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	cmp	w9, #0
	cinc	w10, w9, lt
	asr	w10, w10, #1
	add	x8, x8, w10, sxtw
	udiv	x0, x8, x9
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FSCALE,8,3                     ; @FSCALE
	.comm	_IF_OFFSET,8,3                  ; @IF_OFFSET
	.comm	_REF_FREQ,4,2                   ; @REF_FREQ
	.no_dead_strip	_gemtek_convfreq
.subsections_via_symbols
