from typing import List


def filter_out_trivial_gotos(disasm: List[str]) -> List[str]:
    """Filter out gotos to the next opcode (they are no-ops)."""
    res = [] # type: List[str]
    for i, s in enumerate(disasm):
        if s.startswith('    goto '):
            label = s.split()[1]
            if i + 1 < len(disasm) and disasm[i+1].startswith('%s:' % label):
                # Omit goto
                continue
        res.append(s)
    return res