	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function idxSampleFunc
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_idxSampleFunc:                         ## @idxSampleFunc
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_sqlite3_user_data
	movq	%rax, %rbx
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_assert
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	movl	$1, %r15d
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_1
	jnp	LBB0_3
LBB0_1:
	xorps	%xmm1, %xmm1
	cvtsi2sdl	8(%rbx), %xmm1
	divsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdl	12(%rbx), %xmm0
	ucomisd	%xmm1, %xmm0
	jae	LBB0_3
## %bb.2:
	leaq	-26(%rbp), %rsi
	movl	$2, %edi
	callq	_sqlite3_randomness
	movzwl	-26(%rbp), %eax
	movl	%eax, %ecx
	shrl	$2, %ecx
	imull	$5243, %ecx, %ecx               ## imm = 0x147B
	shrl	$17, %ecx
	imull	$100, %ecx, %ecx
	subl	%ecx, %eax
	movzwl	%ax, %eax
	xorl	%r15d, %r15d
	cmpl	%eax, 16(%rbx)
	setge	%r15b
LBB0_3:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sqlite3_result_int
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%rbx)
	addl	%r15d, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_idxSampleFunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idxSampleFunc
_idxSampleFunc:                         ; @idxSampleFunc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x20, x0
	bl	_sqlite3_user_data
	mov	x19, x0
	cmp	w21, #0
	cset	w0, eq
	bl	_assert
	ldr	d0, [x19]
	fcmp	d0, #0.0
	b.eq	LBB0_3
; %bb.1:
	ldp	s1, s2, [x19, #8]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d0, d1, d0
	sshll.2d	v1, v2, #0
	scvtf	d1, d1
	fcmp	d0, d1
	b.ls	LBB0_3
; %bb.2:
	add	x1, sp, #14
	mov	w0, #2
	bl	_sqlite3_randomness
	ldrh	w8, [sp, #14]
	lsr	w9, w8, #2
	mov	w10, #5243
	mul	w9, w9, w10
	lsr	w9, w9, #17
	mov	w10, #100
	msub	w8, w9, w10, w8
	ldr	w9, [x19, #16]
	cmp	w9, w8, uxth
	cset	w21, ge
	b	LBB0_4
LBB0_3:
	mov	w21, #1
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_sqlite3_result_int
	ldr	d0, [x19]
	fmov	d1, #1.00000000
	fadd	d0, d0, d1
	str	d0, [x19]
	ldr	w8, [x19, #8]
	add	w8, w21, w8
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_idxSampleFunc
.subsections_via_symbols
