Using Arduino to control 74HC595 not CD40110BE in cascade using SPI.

Put your data into an array, and then shift the data into 75HC595, or TPIC6C595 or TPIC6B595 if you need more current drive.

This code shows just doing one pass of data, you can change it to output bytes 0 to 5, then 1 to 6, 2 to 7, etc.