	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function system_time_nextsampleblock
_system_time_nextsampleblock:           ## @system_time_nextsampleblock
	.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	%rsi, %rbx
	movq	(%rdi), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	cmpl	$0, 32(%r14)
	jne	LBB0_5
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movl	40(%r14), %edi
	callq	_sampler_random_init_state
	movl	%ebx, 8(%r14)
	callq	_sampler_random_fract
	movl	8(%r14), %edi
	imull	%edi, %eax
	movl	%eax, 12(%r14)
	callq	_random_relative_prime
	movl	%eax, 32(%r14)
LBB0_5:
	movl	12(%r14), %eax
	movl	36(%r14), %edi
	movl	%eax, 16(%r14)
	callq	_INSTR_TIME_SET_CURRENT
	movq	(%r14), %rax
LBB0_6:
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	movslq	8(%r14), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_3
## %bb.7:
	callq	_INSTR_TIME_SET_CURRENT
	movl	36(%r14), %esi
	callq	_INSTR_TIME_SUBTRACT
	callq	_INSTR_TIME_GET_MILLISEC
	cmpq	24(%r14), %rax
	jge	LBB0_3
## %bb.8:
	movl	32(%r14), %ecx
	movl	8(%r14), %esi
	movl	16(%r14), %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %edx
	movl	%edx, %eax
	cltd
	idivl	%esi
	movslq	%edx, %rax
	cmpq	%rbx, %rax
	jge	LBB0_9
## %bb.10:
	movl	%edx, 16(%r14)
	jmp	LBB0_11
LBB0_3:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.no_dead_strip	_system_time_nextsampleblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function system_time_nextsampleblock
_system_time_nextsampleblock:           ; @system_time_nextsampleblock
	.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
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.1:
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_4
; %bb.2:
	cbz	x19, LBB0_10
; %bb.3:
	ldr	w0, [x20, #40]
	bl	_sampler_random_init_state
	str	w19, [x20, #8]
	bl	_sampler_random_fract
	ldr	w8, [x20, #8]
	mul	w9, w8, w0
	str	w9, [x20, #12]
	mov	x0, x8
	bl	_random_relative_prime
	str	w0, [x20, #32]
LBB0_4:
	ldr	w8, [x20, #12]
	str	w8, [x20, #16]
	ldr	w0, [x20, #36]
	bl	_INSTR_TIME_SET_CURRENT
	ldr	x8, [x20]
LBB0_5:
	add	x9, x8, #1
	str	x9, [x20]
	ldrsw	x9, [x20, #8]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.6:
	bl	_INSTR_TIME_SET_CURRENT
	ldr	w1, [x20, #36]
	bl	_INSTR_TIME_SUBTRACT
	bl	_INSTR_TIME_GET_MILLISEC
	ldr	x8, [x20, #24]
	cmp	x0, x8
	b.ge	LBB0_10
; %bb.7:
	ldr	w8, [x20, #32]
	ldr	w9, [x20, #8]
	ldr	w10, [x20, #16]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w10, w8, w10
	sdiv	w11, w10, w9
	msub	w10, w11, w9, w10
	sxtw	x0, w10
	cmp	x0, x19
	b.ge	LBB0_8
; %bb.9:
	str	w10, [x20, #16]
	b	LBB0_11
LBB0_10:
Lloh0:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
LBB0_11:
	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	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.no_dead_strip	_system_time_nextsampleblock
.subsections_via_symbols
