Question About REGENIE Firth and SPA

A deeper technical question for perhaps during the breakout session. Can you explain how the REGENIE flags to mitigate effects of small case numbers and case/control imbalances: Firth logistic regression approximation (–firth --approx) as well as a Saddlepoint Approximation ( –spa) works under the hood?