It would be helpful to use local variables to document what's up, e.g.
const bool irqs_enabled = true;
const bool do_sti = true;
ret = _tdx_hypercall(EXIT_REASON_HLT, irqs_enabled0, 0, 0, do_sti, NULL);
Ok. I can follow your suggestion in next submission.