- for (end = sd->event_map_idx - 1; end >= 0; end--)
- if (atom == sd->event_map[end])
- break;
-
- if (end < 0 || atom != sd->event_map[end]) {
- printf("didn't find atom\n");
- return;
- }
-
- //printf("end=%d, total %d\n", end, sd->event_map_idx);