	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function simplex3
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_simplex3
	.p2align	4, 0x90
_simplex3:                              ## @simplex3
	.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
	movss	%xmm4, -32(%rbp)                ## 4-byte Spill
	movss	%xmm3, -28(%rbp)                ## 4-byte Spill
	movl	%edi, %ebx
	movss	%xmm0, -16(%rbp)                ## 4-byte Spill
	movss	%xmm1, -20(%rbp)                ## 4-byte Spill
	movss	%xmm2, -24(%rbp)                ## 4-byte Spill
	callq	_noise3
	cmpl	$2, %ebx
	jl	LBB0_1
## %bb.2:
	decl	%ebx
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	movaps	%xmm1, %xmm3
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	mulss	-32(%rbp), %xmm3                ## 4-byte Folded Reload
	movss	%xmm3, -36(%rbp)                ## 4-byte Spill
	mulss	-28(%rbp), %xmm2                ## 4-byte Folded Reload
	movss	%xmm2, -40(%rbp)                ## 4-byte Spill
	addss	%xmm2, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movaps	%xmm3, %xmm0
	mulss	-16(%rbp), %xmm0                ## 4-byte Folded Reload
	movaps	%xmm3, %xmm1
	mulss	-20(%rbp), %xmm1                ## 4-byte Folded Reload
	movaps	%xmm3, %xmm2
	mulss	-24(%rbp), %xmm2                ## 4-byte Folded Reload
	callq	_noise3
	movss	-36(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-40(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	movss	-12(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -12(%rbp)                ## 4-byte Spill
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-12(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	decl	%ebx
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
LBB0_4:
	divss	%xmm1, %xmm0
	addss	LCPI0_0(%rip), %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_simplex3                       ; -- Begin function simplex3
	.p2align	2
_simplex3:                              ; @simplex3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d15, d14, [sp, #16]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b14, -88
	.cfi_offset b15, -96
	fmov	s8, s4
	fmov	s9, s3
	mov	x19, x0
	fmov	s10, s2
	fmov	s11, s1
	fmov	s13, s0
	bl	_noise3
	fmov	s12, s0
	cmp	w19, #2
	b.lt	LBB0_3
; %bb.1:
	sub	w19, w19, #1
	fmov	s15, #1.00000000
	fmov	s14, #1.00000000
	str	s9, [sp, #12]                   ; 4-byte Folded Spill
	fmov	s9, s8
	fmov	s8, #1.00000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	fmul	s8, s8, s9
	ldr	s0, [sp, #12]                   ; 4-byte Folded Reload
	fmul	s14, s14, s0
	fadd	s15, s15, s14
	fmul	s0, s8, s13
	fmul	s1, s8, s11
	fmul	s2, s8, s10
	bl	_noise3
	fmadd	s12, s0, s14, s12
	subs	w19, w19, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	fmov	s15, #1.00000000
LBB0_4:
	fdiv	s0, s12, s15
	fmov	s1, #1.00000000
	fadd	s0, s0, s1
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
