Found this in a parts bin, has no markings as top got damaged long time ago. Does anyone recognize the mark by this function waveform? It's almost like a quad flip-flop until both inputs on one side are used which makes it dual something.
V1/V2/V3/V4 are outputs, S1/S2/S3/S4 are inputs._