TB at HIV testing was associated with pre-ART attrition for patients with CD4 count ≤200 cells/mm3 (OR 0.61; 95% CI: 0.48–0.77), but with improved retention in care for patients with higher CD4 counts: CD4 count 351 to 500 cells/mm3 (OR 2.09; 95% CI: 1.43–3.05) and CD4 count >500 cells/mm3 (OR 2.37; 95% CI: 1.59–3.52). This evidence concerns the gene CD4 and tuberculosis.