def _atomReprAsInt(s: str) -> int:
    """Translate CLVM atom repr to int."""
    if s.startswith("0x"):
        return int(s, base=16)
    elif s.startswith('"'):
        return int.from_bytes(s[1:-1].encode("ascii"), "big")
    return int(s)