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

// Token: 0x02000221 RID: 545
public class SubtitleData : Object
{
	// Token: 0x06005053 RID: 20563 RVA: 0x0013FCC0 File Offset: 0x0013DEC0
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 551539, RefRangeEnd = 551540, XrefRangeStart = 551537, XrefRangeEnd = 551539, 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: 0x06005054 RID: 20564 RVA: 0x0013FD48 File Offset: 0x0013DF48
	[CallerCount(8)]
	[CachedScanResults(RefRangeStart = 148098, RefRangeEnd = 148106, XrefRangeStart = 148098, XrefRangeEnd = 148106, 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: 0x06005055 RID: 20565 RVA: 0x0013FDA8 File Offset: 0x0013DFA8
	// 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, 100668649);
		SubtitleData.NativeMethodInfoPtr_GetText_Public_String_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SubtitleData>.NativeClassPtr, 100668650);
	}

	// Token: 0x06005056 RID: 20566 RVA: 0x0000A688 File Offset: 0x00008888
	public SubtitleData(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001CC5 RID: 7365
	// (get) Token: 0x06005057 RID: 20567 RVA: 0x0013FE3C File Offset: 0x0013E03C
	// (set) Token: 0x06005058 RID: 20568 RVA: 0x0013FE64 File Offset: 0x0013E064
	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: 0x17001CC6 RID: 7366
	// (get) Token: 0x06005059 RID: 20569 RVA: 0x0013FE88 File Offset: 0x0013E088
	// (set) Token: 0x0600505A RID: 20570 RVA: 0x0013FEB0 File Offset: 0x0013E0B0
	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: 0x17001CC7 RID: 7367
	// (get) Token: 0x0600505B RID: 20571 RVA: 0x0013FED4 File Offset: 0x0013E0D4
	// (set) Token: 0x0600505C RID: 20572 RVA: 0x0013FF08 File Offset: 0x0013E108
	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: 0x04003543 RID: 13635
	private static readonly IntPtr NativeFieldInfoPtr_start;

	// Token: 0x04003544 RID: 13636
	private static readonly IntPtr NativeFieldInfoPtr_end;

	// Token: 0x04003545 RID: 13637
	private static readonly IntPtr NativeFieldInfoPtr_text;

	// Token: 0x04003546 RID: 13638
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Single_Single_Il2CppStringArray_0;

	// Token: 0x04003547 RID: 13639
	private static readonly IntPtr NativeMethodInfoPtr_GetText_Public_String_Int32_0;
}
