import pickle


def parse_empower_ctrl_msg(msg):
    """Parses an empower control message and returns its components."""
    # get control msg
    control = pickle.loads(msg[1])

    # get resource abstractions
    res = msg[2].split(b'\n')
    return control, res