Are you trying to decode the Manchester protocol of 125KHz RFID cards?
Well, there are many documentations in the Internet explaining how to do that, but this one is the most didactic tutorial I have found:
Other sites about RFID:
How to read HID cards: http://web.archive.org/web/20120629130957/http://colligomentis.com/2012/05/16/hid-reader-arduino-rfid-card-catcher
https://ryanpbaker.wordpress.com/category/rfid-reader/
http://adamsblog.aperturelabs.com/2013/08/rfidler-open-source-software-defined.html