	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_next_time
_calculate_next_time:                   ## @calculate_next_time
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rdi
	callq	_get_envelope
	movq	%rax, %r15
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rbx
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %r14
	movq	_FF_ENVELOPE_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r14, %rbx
	jmp	LBB0_9
LBB0_3:
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.4:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	movq	16(%r14), %rbx
	callq	_msecs_to_jiffies
	subq	%rax, %rbx
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	8(%r14), %r15
	movq	_FF_ENVELOPE_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	16(%r14), %rsi
	movq	%rbx, %rdi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_9
LBB0_7:
	movq	16(%r14), %rbx
	jmp	LBB0_9
LBB0_8:
	movq	(%r14), %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_ENVELOPE_INTERVAL,8,3       ## @FF_ENVELOPE_INTERVAL
	.no_dead_strip	_calculate_next_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_next_time
_calculate_next_time:                   ; @calculate_next_time
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x0, [x0, #24]
	bl	_get_envelope
	mov	x20, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x21, [x19]
	bl	_msecs_to_jiffies
	add	x1, x0, x21
	ldr	x0, [x19, #8]
	bl	_time_before
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x19, [x19, #8]
Lloh0:
	adrp	x8, _FF_ENVELOPE_INTERVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FF_ENVELOPE_INTERVAL@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_msecs_to_jiffies
	add	x20, x0, x19
	b	LBB0_9
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x20, [x19, #16]
	bl	_msecs_to_jiffies
	sub	x20, x20, x0
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_time_before
	cbnz	x0, LBB0_9
; %bb.6:
	ldr	x20, [x19, #8]
Lloh3:
	adrp	x8, _FF_ENVELOPE_INTERVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FF_ENVELOPE_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_msecs_to_jiffies
	add	x20, x0, x20
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_time_before
	cbnz	x0, LBB0_9
LBB0_7:
	ldr	x20, [x19, #16]
	b	LBB0_9
LBB0_8:
	ldr	x20, [x19]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_ENVELOPE_INTERVAL,8,3       ; @FF_ENVELOPE_INTERVAL
	.no_dead_strip	_calculate_next_time
.subsections_via_symbols
