	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GenNextKeepAliveSpan           ## -- Begin function GenNextKeepAliveSpan
	.p2align	4, 0x90
_GenNextKeepAliveSpan:                  ## @GenNextKeepAliveSpan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	(%rdi), %rax
	movslq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_rand
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	cltd
	idivl	%ecx
	movl	%edx, %edi
	imulq	$1717986919, %rbx, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$33, %rsi
	addl	%eax, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_MAX                            ## TAILCALL
LBB0_1:
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITE,4,2                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GenNextKeepAliveSpan           ; -- Begin function GenNextKeepAliveSpan
	.p2align	2
_GenNextKeepAliveSpan:                  ; @GenNextKeepAliveSpan
	.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
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldrsw	x19, [x8]
	bl	_rand
	cmp	w19, #0
	cinc	w8, w19, lt
	asr	w8, w8, #1
	sdiv	w9, w0, w8
	msub	w0, w9, w8, w0
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	mul	x8, x19, x8
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w1, w8, w9
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MAX
LBB0_2:
Lloh0:
	adrp	x8, _INFINITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
