	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function RB_CalcWaveColorSingle
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RB_CalcWaveColorSingle
	.p2align	4, 0x90
_RB_CalcWaveColorSingle:                ## @RB_CalcWaveColorSingle
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_GF_NOISE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -12(%rbp)                ## 4-byte Spill
	movq	_tess@GOTPCREL(%rip), %rax
	movl	12(%rbx), %ecx
	addl	(%rax), %ecx
	imull	16(%rbx), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_R_NoiseGet4f
	mulss	20(%rbx), %xmm0
	addss	-12(%rbp), %xmm0                ## 4-byte Folded Reload
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_EvalWaveForm
	movq	_tr@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
LBB0_3:
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	ja	LBB0_6
## %bb.4:
	ucomiss	LCPI0_0(%rip), %xmm0
	movaps	%xmm0, %xmm1
	jbe	LBB0_6
## %bb.5:
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
LBB0_6:
	movaps	%xmm1, %xmm0
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GF_NOISE,8,3                   ## @GF_NOISE
	.comm	_tess,4,2                       ## @tess
	.comm	_tr,4,2                         ## @tr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_CalcWaveColorSingle         ; -- Begin function RB_CalcWaveColorSingle
	.p2align	2
_RB_CalcWaveColorSingle:                ; @RB_CalcWaveColorSingle
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GF_NOISE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GF_NOISE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _tess@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tess@GOTPAGEOFF]
	ldr	s8, [x19, #8]
Lloh5:
	ldr	w8, [x8]
	ldp	w9, w10, [x19, #12]
	add	w8, w9, w8
	mul	w3, w8, w10
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_R_NoiseGet4f
	ldr	s1, [x19, #20]
	fmadd	s1, s0, s1, s8
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_EvalWaveForm
Lloh6:
	adrp	x8, _tr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tr@GOTPAGEOFF]
Lloh8:
	ldr	s1, [x8]
	fmul	s1, s0, s1
LBB0_3:
	movi	d0, #0000000000000000
	fcmp	s1, #0.0
	b.mi	LBB0_6
; %bb.4:
	fmov	s0, #1.00000000
	fcmp	s1, s0
	fmov	s0, s1
	b.le	LBB0_6
; %bb.5:
	fmov	s0, #1.00000000
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GF_NOISE,8,3                   ; @GF_NOISE
	.comm	_tess,4,2                       ; @tess
	.comm	_tr,4,2                         ; @tr
.subsections_via_symbols
