	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmr2ticks
_tmr2ticks:                             ## @tmr2ticks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	idivl	(%rcx)
	imull	%edi, %eax
	movslq	%eax, %rdi
	movq	_curr_tempo@GOTPCREL(%rip), %rax
	movq	_curr_timebase@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	movl	$60000000, %eax                 ## imm = 0x3938700
	xorl	%edx, %edx
	idivl	%ecx
	movl	%eax, %ecx
	movslq	%eax, %rsi
	movq	%rsi, %rax
	shrq	%rax
	addq	%rdi, %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rsi
	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	_HZ,4,2                         ## @HZ
	.comm	_curr_tempo,4,2                 ## @curr_tempo
	.comm	_curr_timebase,4,2              ## @curr_timebase
	.no_dead_strip	_tmr2ticks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmr2ticks
_tmr2ticks:                             ; @tmr2ticks
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	sdiv	w8, w9, w8
	mul	w8, w8, w0
Lloh3:
	adrp	x9, _curr_tempo@GOTPAGE
Lloh4:
	ldr	x9, [x9, _curr_tempo@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _curr_timebase@GOTPAGE
Lloh7:
	ldr	x10, [x10, _curr_timebase@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mul	w9, w10, w9
	mov	w10, #34560
	movk	w10, #915, lsl #16
	sdiv	w9, w10, w9
	sxtw	x9, w9
	lsr	x10, x9, #1
	add	x8, x10, w8, 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	_HZ,4,2                         ; @HZ
	.comm	_curr_tempo,4,2                 ; @curr_tempo
	.comm	_curr_timebase,4,2              ; @curr_timebase
	.no_dead_strip	_tmr2ticks
.subsections_via_symbols
