Extracting Arducopter GNC

Hello,
I’m trying to understand Arducopter’s GNC (guidance navigation and control) algorithm, but i can’t find where it’s located in the code, nor where the current state of the drone is used.
Thanks for any help you can bring !

Here is a good starting point
https://ardupilot.org/dev/docs/apmcopter-code-overview.html