Original: Charlemagne in his reply stated that it was his function to defend the church, and the popes' to pray for the realm and for victory of the army.
Simplified: Charlemagne replied that it was his function to defend the church and the Pope's to pray for the kingdom and for victory of the army.