Most of the C code is taking the saved pointer positions for all of the submatches of the string, which were set by the machine entering actions, and converting them to long integers.