And that should be the finished code. That said, there are a couple things I'm just not seeing.
One is where it counts off the header bits (a '1' for attention, then the preamble: 01010101011).
The other is the timer for the test LED. Supposedly, once the unit sees a valid message (likely meaning that it matched the unit's group address), the test LED is to remain lit for 64 minutes.
And just for some context, here are also schematics of the unit this code was read out of.