def METHOD_NAME(unprocessed_firm_dict: dict):
    event_ids = unprocessed_firm_dict.get('event_ids')
    last_event_id = unprocessed_firm_dict.get('last_event_id')
    last_processed_event_id = unprocessed_firm_dict.get('last_processed_event_id')
    if not last_processed_event_id or pd.isna(last_processed_event_id):
        return []
    if last_processed_event_id != last_event_id:
        last_processed_event_id_index = event_ids.index(last_processed_event_id) + 1
        processed_events_ids = event_ids[:last_processed_event_id_index]
        return processed_events_ids
    # shouldn't get here
    return []