using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;

// Token: 0x02000262 RID: 610
public class SubtitleData : Object
{
	// Token: 0x060055C4 RID: 21956 RVA: 0x00156678 File Offset: 0x00154878
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 579758, RefRangeEnd = 579759, XrefRangeStart = 579756, XrefRangeEnd = 579758, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe SubtitleData(float start, float end, Il2CppStringArray text)
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<SubtitleData>.NativeClassPtr))
	{
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref start;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref end;
		ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(text);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SubtitleData.NativeMethodInfoPtr__ctor_Public_Void_Single_Single_Il2CppStringArray_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060055C5 RID: 21957 RVA: 0x00156700 File Offset: 0x00154900
	[CallerCount(8)]
	[CachedScanResults(RefRangeStart = 150281, RefRangeEnd = 150289, XrefRangeStart = 150281, XrefRangeEnd = 150289, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe string GetText(int pointer)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref pointer;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SubtitleData.NativeMethodInfoPtr_GetText_Public_String_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return IL2CPP.Il2CppStringToManaged(intPtr);
		}
	}

	// Token: 0x060055C6 RID: 21958 RVA: 0x00156760 File Offset: 0x00154960
	// Note: this type is marked as 'beforefieldinit'.
	static SubtitleData()
	{
		Il2CppClassPointerStore<SubtitleData>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "SubtitleData");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<SubtitleData>.NativeClassPtr);
		SubtitleData.NativeFieldInfoPtr_start = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SubtitleData>.NativeClassPtr, "start");
		SubtitleData.NativeFieldInfoPtr_end = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SubtitleData>.NativeClassPtr, "end");
		SubtitleData.NativeFieldInfoPtr_text = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SubtitleData>.NativeClassPtr, "text");
		SubtitleData.NativeMethodInfoPtr__ctor_Public_Void_Single_Single_Il2CppStringArray_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SubtitleData>.NativeClassPtr, 100669108);
		SubtitleData.NativeMethodInfoPtr_GetText_Public_String_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SubtitleData>.NativeClassPtr, 100669109);
	}

	// Token: 0x060055C7 RID: 21959 RVA: 0x0000A74C File Offset: 0x0000894C
	public SubtitleData(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001E66 RID: 7782
	// (get) Token: 0x060055C8 RID: 21960 RVA: 0x001567F4 File Offset: 0x001549F4
	// (set) Token: 0x060055C9 RID: 21961 RVA: 0x0015681C File Offset: 0x00154A1C
	public unsafe float start
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SubtitleData.NativeFieldInfoPtr_start);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SubtitleData.NativeFieldInfoPtr_start)) = value;
		}
	}

	// Token: 0x17001E67 RID: 7783
	// (get) Token: 0x060055CA RID: 21962 RVA: 0x00156840 File Offset: 0x00154A40
	// (set) Token: 0x060055CB RID: 21963 RVA: 0x00156868 File Offset: 0x00154A68
	public unsafe float end
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SubtitleData.NativeFieldInfoPtr_end);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SubtitleData.NativeFieldInfoPtr_end)) = value;
		}
	}

	// Token: 0x17001E68 RID: 7784
	// (get) Token: 0x060055CC RID: 21964 RVA: 0x0015688C File Offset: 0x00154A8C
	// (set) Token: 0x060055CD RID: 21965 RVA: 0x001568C0 File Offset: 0x00154AC0
	public unsafe Il2CppStringArray text
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SubtitleData.NativeFieldInfoPtr_text);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppStringArray(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SubtitleData.NativeFieldInfoPtr_text), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x0400390E RID: 14606
	private static readonly IntPtr NativeFieldInfoPtr_start;

	// Token: 0x0400390F RID: 14607
	private static readonly IntPtr NativeFieldInfoPtr_end;

	// Token: 0x04003910 RID: 14608
	private static readonly IntPtr NativeFieldInfoPtr_text;

	// Token: 0x04003911 RID: 14609
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Single_Single_Il2CppStringArray_0;

	// Token: 0x04003912 RID: 14610
	private static readonly IntPtr NativeMethodInfoPtr_GetText_Public_String_Int32_0;
}
