Use symbolic constants where possible, fix a few bugs in how functions were decompiled, doesn't fix everything and not well-tested.
Use symbolic constants where possible, fix a few bugs in how functions were decompiled, doesn't fix everything and not well-tested.

samdmarshall/SDMMobileDevice,samdmarshall/SDMMobileDevice,samdmarshall/SDMMobileDevice,samdmarshall/SDMMobileDevice,samdmarshall/SDMMobileDevice,samdmarshall/SDMMobileDevice