	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function linear_rand
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0xc010000000000000              ## double -4
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_linear_rand:                           ## @linear_rand
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	cvtsi2sd	%esi, %xmm2
	movq	%rdi, %rbx
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	mulsd	%xmm1, %xmm3
	movsd	%xmm3, -32(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	mulsd	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movsd	%xmm2, -16(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_geqo_rand
	xorpd	%xmm3, %xmm3
	mulsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	addsd	-24(%rbp), %xmm0                ## 8-byte Folded Reload
	ucomisd	%xmm3, %xmm0
	jbe	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	sqrtsd	%xmm0, %xmm0
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movsd	-16(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	%xmm2, %xmm1
	mulsd	LCPI0_2(%rip), %xmm1
	divsd	-40(%rbp), %xmm1                ## 8-byte Folded Reload
	ucomisd	%xmm1, %xmm3
	ja	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	ucomisd	%xmm2, %xmm1
	jae	LBB0_1
## %bb.5:
	cvttsd2si	%xmm1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_linear_rand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linear_rand
_linear_rand:                           ; @linear_rand
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	.cfi_offset b12, -72
	.cfi_offset b13, -80
	fmov	d8, d0
	mov	x19, x0
	scvtf	d9, w1
	fmov	d0, #-1.00000000
	fadd	d10, d8, d0
	fmov	d0, #-4.00000000
	fmul	d11, d10, d0
	fmov	d12, #0.50000000
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_geqo_rand
	fmul	d0, d11, d0
	fmadd	d0, d8, d8, d0
	fsqrt	d1, d0
	fcmp	d0, #0.0
	fcsel	d0, d1, d0, gt
	fsub	d0, d8, d0
	fmul	d0, d0, d9
	fmul	d0, d0, d12
	fdiv	d0, d0, d10
	fcmp	d0, #0.0
	fccmp	d0, d9, #0, pl
	b.ge	LBB0_1
; %bb.2:
	fcvtzs	w0, d0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_linear_rand
.subsections_via_symbols
