	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reprogram_timer                ## -- Begin function reprogram_timer
	.p2align	4, 0x90
_reprogram_timer:                       ## @reprogram_timer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_tmr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	_curr_tempo@GOTPCREL(%rip), %rax
	movq	_curr_timebase@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	imull	(%rax), %esi
	movl	$60000000, %eax                 ## imm = 0x3938700
	xorl	%edx, %edx
	idivl	%esi
	cmpl	$2001, %eax                     ## imm = 0x7D1
	movl	$2000, %edx                     ## imm = 0x7D0
	cmovael	%eax, %edx
	movslq	%edx, %rsi
	movl	(%rcx), %edi
	callq	*8(%rcx)
	movq	_usecs_per_tmr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tmr,8,3                        ## @tmr
	.comm	_curr_tempo,4,2                 ## @curr_tempo
	.comm	_curr_timebase,4,2              ## @curr_timebase
	.comm	_usecs_per_tmr,4,2              ## @usecs_per_tmr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reprogram_timer                ; -- Begin function reprogram_timer
	.p2align	2
_reprogram_timer:                       ; @reprogram_timer
	.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
Lloh0:
	adrp	x8, _tmr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tmr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
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
	mov	w10, #2000
	cmp	w9, #2000
	csel	w9, w9, w10, hi
	sxtw	x1, w9
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	blr	x9
Lloh9:
	adrp	x8, _usecs_per_tmr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _usecs_per_tmr@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tmr,8,3                        ; @tmr
	.comm	_curr_tempo,4,2                 ; @curr_tempo
	.comm	_curr_timebase,4,2              ; @curr_timebase
	.comm	_usecs_per_tmr,4,2              ; @usecs_per_tmr
.subsections_via_symbols
