using System;

namespace SL200_RTLogViewer.lib
{
	// Token: 0x0200002B RID: 43
	public class ATOR160
	{
		// Token: 0x06000148 RID: 328 RVA: 0x00024A44 File Offset: 0x00022C44
		public static ATOR160Class SetData(byte[] data)
		{
			ATOR160Class ator160Class = new ATOR160Class();
			ator160Class.seq = Convert.ToInt32(data[0]);
			ator160Class.swVer = Convert.ToInt32((int)(data[1] & 252));
			ator160Class.bdStat = Convert.ToInt32((int)(data[1] & 3));
			bool flag = (data[2] & 7) == 0;
			if (flag)
			{
				ator160Class.marker = "FqOSC";
			}
			else
			{
				bool flag2 = (data[2] & 7) == 1;
				if (flag2)
				{
					ator160Class.marker = "FqPG1";
				}
				else
				{
					bool flag3 = (data[2] & 7) == 2;
					if (flag3)
					{
						ator160Class.marker = "FqPG2";
					}
					else
					{
						bool flag4 = (data[2] & 7) == 3;
						if (flag4)
						{
							ator160Class.marker = "FqPG31";
						}
						else
						{
							bool flag5 = (data[2] & 7) == 4;
							if (flag5)
							{
								ator160Class.marker = "FqPG32";
							}
							else
							{
								bool flag6 = (data[2] & 7) == 5;
								if (flag6)
								{
									ator160Class.marker = "FqPG33";
								}
								else
								{
									bool flag7 = (data[2] & 7) == 6;
									if (flag7)
									{
										ator160Class.marker = "FqPGATS";
									}
									else
									{
										bool flag8 = (data[2] & 7) == 7;
										if (flag8)
										{
											ator160Class.marker = "FqNONE";
										}
									}
								}
							}
						}
					}
				}
			}
			ator160Class.aliveoscf = Convert.ToDouble((int)data[3] << 8 | (int)data[4]);
			return ator160Class;
		}
	}
}
