def ParseEntitlements(data):
  if len(data) < 8:
    return None
  magic, length = struct.unpack('>II', data[:8])
  if magic != 0xfade7171 or length != len(data):
    return None
  return data[8:]
dataset/ETHPy150Open adblockplus/gyp/test/ios/gyptest-per-config-settings.py/ParseEntitlements/original