Good day to everyone.
This is my very first post and i have a question about a barcode reader which i'm working on, i work on a amusement company called Recorcholis here in Mexico, and we have arcade machines that dispenses tickets after people play on them, and when they are done playing and got their tickets they go to a machine called "Ticket Eater" wich counts and destroy fisically the tickets.
The tickets have a barcode on them wich is read by the machine to validate the autenticity of the ticket and it sends the count to the costumer's game card so they can exchange those points for prizes, the thing is that the machines are kind of old and they have a photodiode (it has no numbers, id or manufacturer on it) and two IR leds that reads de ticket's barcode, they last very few months before they have to be replaced, i reverse enginnered the pcb since we got no schematics or "Real" service manuals to identify or find a proper replacement for them, but i can't understand some parts of the diagram that came out of the reverse enginnering process (bad designed schematics done by me attached

).
When tickets pass trough the "ticket inlet" the motor gets activated (not shown on schematics) and the tickets travels trough the camera assembly wich consists in 2 IR leds, a lense and a square picece of metal with a line cutted in the center so it allows to pass the reflected ligth trough the lenses, to the square pice and finally to the photodiode behind all of that (photo attached), i checked with a cheap Wun Hung-Lo Factory osciloscope and i got some readings, the photo labeled 1 is when the ticket passes trough the lenses and the signal goes to an opamp but it has some kind of oscilator or something which i'm not able to identify it's propouse, and photo labeled 2 is the output to the cpu after passing trough the opamp weird configuration.
What i don't get is that arrangement on the opamp and the input signal on the opamp is very different to the exit signal that goes to the cpu, and i would like that somebody can help me by pointing me what is that arrangement on the opamp and what is it doing on circuit that changes the output signal so much.
Edited because: wrong link, now corrected.
Uploaded here schematics and photos since the site won't allowed me to attach them for the size.
https://drive.google.com/file/d/1Jzo1h65VNuhNTWonJK4NDx_FW3dO2FsJ/view?usp=sharingThanks for your time and cheers from Mexico!.