def operand_size_to_str(size: int) -> str:
    """
    Gets the assembly operand type for a given size in bytes, in Intel syntax.
    """
    if size == 1:
        return "byte"
    if size == 2:
        return "word"
    if size == 4:
        return "dword"
    if size == 8:
        return "qword"
    if size == 16:
        return "xmmword"
    if size == 32:
        return "ymmword"
    if size == 64:
        return "zmmword"

    raise ValueError(f"unsupported size: {size}")