Learn the detailed implementation steps and processes of SQP-RTI

If I want to learn the detailed implementation steps and processes of SQP-RTI, which source file in ACADOS should I look at?

The main RTI function is implemented here:

thank you very much!