	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function system_rows_nextsampleblock
_system_rows_nextsampleblock:           ## @system_rows_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	cmpl	$0, 32(%r15)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movl	36(%r15), %edi
	callq	_sampler_random_init_state
	movl	%ebx, 8(%r15)
	callq	_sampler_random_fract
	movl	8(%r15), %edi
	imull	%edi, %eax
	movl	%eax, 12(%r15)
	callq	_random_relative_prime
	movl	%eax, 32(%r15)
	movq	(%r15), %rax
LBB0_6:
	movl	12(%r15), %ecx
	movl	%ecx, 16(%r15)
LBB0_7:
	leaq	1(%rax), %rcx
	movq	%rcx, (%r15)
	movslq	8(%r15), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_4
## %bb.8:
	movq	(%r14), %rax
	cmpq	24(%r15), %rax
	jge	LBB0_4
## %bb.9:
	movl	16(%r15), %edx
	movl	32(%r15), %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addl	%esi, %edx
	movl	%edx, %eax
	cltd
	idivl	%ecx
	movslq	%edx, %rax
	cmpq	%rbx, %rax
	jge	LBB0_10
## %bb.11:
	movl	%edx, 16(%r15)
	jmp	LBB0_12
LBB0_4:
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.no_dead_strip	_system_rows_nextsampleblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function system_rows_nextsampleblock
_system_rows_nextsampleblock:           ; @system_rows_nextsampleblock
	.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, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	x9, [x21]
	cbnz	x9, LBB0_6
; %bb.1:
	ldr	w8, [x21, #32]
	cbz	w8, LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_5
LBB0_3:
	cbz	x19, LBB0_11
; %bb.4:
	ldr	w0, [x21, #36]
	bl	_sampler_random_init_state
	str	w19, [x21, #8]
	bl	_sampler_random_fract
	ldr	w8, [x21, #8]
	mul	w9, w8, w0
	str	w9, [x21, #12]
	mov	x0, x8
	bl	_random_relative_prime
	str	w0, [x21, #32]
	ldr	x9, [x21]
LBB0_5:
	ldr	w8, [x21, #12]
	str	w8, [x21, #16]
LBB0_6:
	add	x8, x9, #1
	str	x8, [x21]
	ldrsw	x8, [x21, #8]
	cmp	x9, x8
	b.ge	LBB0_11
; %bb.7:
	ldr	x9, [x20]
	ldr	x10, [x21, #24]
	cmp	x9, x10
	b.ge	LBB0_11
; %bb.8:
	ldr	w9, [x21, #32]
	ldr	w10, [x21, #16]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	w10, w9, w10
	sdiv	w11, w10, w8
	msub	w10, w11, w8, w10
	sxtw	x0, w10
	cmp	x0, x19
	b.ge	LBB0_9
; %bb.10:
	str	w10, [x21, #16]
	b	LBB0_12
LBB0_11:
Lloh0:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.no_dead_strip	_system_rows_nextsampleblock
.subsections_via_symbols
