Two separate switches, A and B separated by the red line.
The wires for each transfer to the new switches to the same connections.
Wires for A to the new dimmer.
Wires for B to the new switch.
The only minor difference is that C on the new is L1 on the old.
Nothing else is changed, you do...