In the multivariable-adjusted model, the high-apoB/high-TG group had the highest odds of midlife NAFLD (OR 1.69, 95% CI, and 1.09–2.61) followed by the low-apoB/high-TG group. The gene discussed is APOB; the disease is metabolic dysfunction-associated steatotic liver disease.