	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_pmtimer_ref
_calc_pmtimer_ref:                      ## @calc_pmtimer_ref
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rax
	orq	%rsi, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	subq	%rsi, %rdx
	jge	LBB0_3
## %bb.4:
	movq	_ACPI_PM_OVRRUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	%rdx, %rax
	imulq	$1000000000, %rax, %rbx         ## imm = 0x3B9ACA00
	movq	_PMTMR_TICKS_PER_SEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_do_div
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_do_div
LBB0_6:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.comm	_ACPI_PM_OVRRUN,8,3             ## @ACPI_PM_OVRRUN
	.comm	_PMTMR_TICKS_PER_SEC,8,3        ## @PMTMR_TICKS_PER_SEC
	.no_dead_strip	_calc_pmtimer_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_pmtimer_ref
_calc_pmtimer_ref:                      ; @calc_pmtimer_ref
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	orr	x8, x2, x1
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ACPI_PM_OVRRUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_PM_OVRRUN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	subs	x9, x2, x1
	csel	x8, x8, xzr, lt
	add	x8, x9, x8
	mov	w9, #51712
	movk	w9, #15258, lsl #16
	mul	x20, x8, x9
Lloh3:
	adrp	x8, _PMTMR_TICKS_PER_SEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMTMR_TICKS_PER_SEC@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_do_div
	mov	x0, x19
	mov	x1, x20
	bl	_do_div
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x19, [x8]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.comm	_ACPI_PM_OVRRUN,8,3             ; @ACPI_PM_OVRRUN
	.comm	_PMTMR_TICKS_PER_SEC,8,3        ; @PMTMR_TICKS_PER_SEC
	.no_dead_strip	_calc_pmtimer_ref
.subsections_via_symbols
