Infrared Wireless Data Transfer

The code for the transmitter basically broadcasts a 38 kHz signal from pins 9 and 10. I'm very new to C and this code honestly flies over my head. That's why I'd like to have someone who knows check it.