def METHOD_NAME(unprocessed_firm_dict: dict):
    event_ids = unprocessed_firm_dict.get('event_ids')
    event_file_types = unprocessed_firm_dict.get('event_file_types')
    event_file_types = event_file_types.split(',')
    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 event_ids, event_file_types
    if last_processed_event_id != last_event_id:
        next_event_index = event_ids.index(last_processed_event_id)
        events_ids_to_retrieve = event_ids[next_event_index:]
        event_file_types_to_retrieve = event_file_types[next_event_index:]
        return events_ids_to_retrieve, event_file_types_to_retrieve
    # shouldn't get here
    return [], []