function toASM(chunks) {
  if (chunksIsBuffer(chunks)) {
    chunks = decompile(chunks);
  }
  if (!chunks) {
    throw new Error('Could not convert invalid chunks to ASM');
  }
  return chunks
    .map(chunk => {
      if (singleChunkIsBuffer(chunk)) {
        const op = asMinimalOP(chunk);
        if (op === undefined) return tools.toHex(chunk);
        chunk = op;
      }
      // opcode!
      return OPS[chunk];
    })
    .join(' ');
}
Converts the given chunks into an ASM (Assembly) string representation.
If the chunks parameter is a Buffer, it will be decompiled into a Stack before conversion.
@param chunks - The chunks to convert into ASM.
@returns The ASM string representation of the chunks.