Read and Explain a Solidity/Yul (Assembly Inline) code

I need a explanation about a code with 400 hundred lines.

Some parts of the code have inline assembly (Yul).

Contract: 0xAd759B4634bf48C982541C8dB61b4581470b4974