Your code is written for two SEPARATE 7-segment displays, each driven by a separate shift register.
Is it?
It doesn't look like that to me as there is only one data and clock line defined and the latch is clocked like two shift registers.
Why don't you follow the two bits of advice already given you. By help I assume you mean "do it for me", what we do here is help not do it for you.