You have the source of the Arduino core. I think the file with pinMode() function is in ‘wiring_digital.c’.