	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function R_NoiseInit
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x437f0000                      ## float 255
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_R_NoiseInit
	.p2align	4, 0x90
_R_NoiseInit:                           ## @R_NoiseInit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1001, %edi                     ## imm = 0x3E9
	callq	_srand
	movq	_NOISE_SIZE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	movq	_RAND_MAX@GOTPCREL(%rip), %r13
	movq	_s_noise_table@GOTPCREL(%rip), %r15
	movq	_s_noise_perm@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rand
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%r13), %xmm1
	divss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	addsd	%xmm0, %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movq	(%r15), %rax
	movss	%xmm0, (%rax,%rbx,4)
	xorl	%eax, %eax
	callq	_rand
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%r13), %xmm1
	divss	%xmm1, %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %eax
	movq	(%r12), %rcx
	movb	%al, (%rcx,%rbx)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOISE_SIZE,4,2                 ## @NOISE_SIZE
	.comm	_RAND_MAX,8,3                   ## @RAND_MAX
	.comm	_s_noise_table,8,3              ## @s_noise_table
	.comm	_s_noise_perm,8,3               ## @s_noise_perm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_NoiseInit                    ; -- Begin function R_NoiseInit
	.p2align	2
_R_NoiseInit:                           ; @R_NoiseInit
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	w0, #1001
	bl	_srand
Lloh0:
	adrp	x19, _NOISE_SIZE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _NOISE_SIZE@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh2:
	adrp	x21, _RAND_MAX@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RAND_MAX@GOTPAGEOFF]
	fmov	d8, #-1.00000000
	fmov	d9, #2.00000000
Lloh4:
	adrp	x22, _s_noise_table@GOTPAGE
Lloh5:
	ldr	x22, [x22, _s_noise_table@GOTPAGEOFF]
	mov	w23, #1132396544
Lloh6:
	adrp	x24, _s_noise_perm@GOTPAGE
Lloh7:
	ldr	x24, [x24, _s_noise_perm@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rand
	ldr	x8, [x21]
	scvtf	s1, x8
	fdiv	s0, s0, s1
	fcvt	d0, s0
	fmadd	d0, d0, d9, d8
	fcvt	s0, d0
	ldr	x8, [x22]
	str	s0, [x8, x20, lsl #2]
	bl	_rand
	ldr	x8, [x21]
	scvtf	s1, x8
	fdiv	s0, s0, s1
	fmov	s1, w23
	fmul	s0, s0, s1
	fcvtzs	w8, s0
	ldr	x9, [x24]
	strb	w8, [x9, x20]
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NOISE_SIZE,4,2                 ; @NOISE_SIZE
	.comm	_RAND_MAX,8,3                   ; @RAND_MAX
	.comm	_s_noise_table,8,3              ; @s_noise_table
	.comm	_s_noise_perm,8,3               ; @s_noise_perm
.subsections_via_symbols
