    MOV rcx, Size
    Or rcx, rcx
    JZ SpectrumOptimizeLSF1_NoMono
    
    MOV rax, *SpectrumIn
    OR rax, rax
    JNZ SpectrumOptimizeMono_pSpecInValid
    MOV rax, SpecTmp
  !SpectrumOptimizeMono_pSpecInValid:
    MOV rdx, *SpectrumOut
    OR rdx, rdx
    JNZ SpectrumOptimizeMono_pSpecOutValid
    MOV rdx, SpecTmp
  !SpectrumOptimizeMono_pSpecOutValid:
    MOV r8, BoostValues30
    
      MOV rcx, Size ; PureBasic resets due If!
      !SpectrumOptimizeLSF1_Mono_Loop:
      FLD dword [rax]
      ADD rax, 4
      FMUL dword [r8]
      ADD r8, 4
      FSTP dword [rdx]
      ADD rdx, 4
      DEC rcx
      JNZ SpectrumOptimizeLSF1_Mono_Loop
      
!SpectrumOptimizeLSF1_NoMono:
; IDE Options = PureBasic 4.60 (Windows - x86)
; CursorPosition = 6
; EnableXP