// Token: 0x060012C3 RID: 4803 RVA: 0x0006D894 File Offset: 0x0006BA94
        private static int GetPropertyOffset(PropTag propTagToFind, byte[] propertyDescriptorsBuffer, int propertyDescriptorsOffset, int propertyCount, byte[] recordBuffer)
        {
            int num = -1;

            for (int i = 0; i < propertyCount; i++)
            {
                PropTag propTag = (PropTag)BitConverter.ToUInt32(propertyDescriptorsBuffer, propertyDescriptorsOffset + i * 2 * 4);
                if (propTag == propTagToFind)
                {
                    num = i;
                    break;
                }
            }
            if (num == -1)
            {
                return(0);
            }
            if (((int)recordBuffer[4 + num / 8] & 128 >> num % 8) == 0)
            {
                return(0);
            }
            int result = 4 + (propertyCount + 7) / 8;

            for (int j = 0; j < num; j++)
            {
                if (((int)recordBuffer[4 + j / 8] & 128 >> j % 8) != 0)
                {
                    PropTag propTag2 = (PropTag)BitConverter.ToUInt32(propertyDescriptorsBuffer, propertyDescriptorsOffset + j * 2 * 4);
                    DiffFileGenerator.SkipProperty(propTag2, recordBuffer, ref result);
                }
            }
            return(result);
        }