The present disclosure provides compounds of formula (I) or pharmaceutically acceptable salts thereof, compositions comprising the compounds, methods of using the compounds for the treatment of various disorders associated with HPK1, and methods of preparing these compounds. TIFF2023542724000142.tif59153