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

// Token: 0x0200001D RID: 29
public class SceneBGMController : MonoBehaviour
{
	// Token: 0x060002E0 RID: 736 RVA: 0x0000CE90 File Offset: 0x0000B090
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 468530, RefRangeEnd = 468532, XrefRangeStart = 468448, XrefRangeEnd = 468530, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Init()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SceneBGMController.NativeMethodInfoPtr_Init_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060002E1 RID: 737 RVA: 0x0000CED4 File Offset: 0x0000B0D4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 468532, XrefRangeEnd = 468539, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void UpdateVolumes(VolumeSettings settings)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(settings);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SceneBGMController.NativeMethodInfoPtr_UpdateVolumes_Private_Void_VolumeSettings_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060002E2 RID: 738 RVA: 0x0000CF30 File Offset: 0x0000B130
	[CallerCount(4)]
	[CachedScanResults(RefRangeStart = 468552, RefRangeEnd = 468556, XrefRangeStart = 468539, XrefRangeEnd = 468552, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void PlayBGM(int index, float playingTime = 0f)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref index;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref playingTime;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SceneBGMController.NativeMethodInfoPtr_PlayBGM_Public_Void_Int32_Single_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060002E3 RID: 739 RVA: 0x0000CF98 File Offset: 0x0000B198
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 468570, RefRangeEnd = 468572, XrefRangeStart = 468556, XrefRangeEnd = 468570, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SwitchBGM(int index)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref index;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SceneBGMController.NativeMethodInfoPtr_SwitchBGM_Public_Void_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060002E4 RID: 740 RVA: 0x0000CFEC File Offset: 0x0000B1EC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 468572, XrefRangeEnd = 468587, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void PlayDeathBGM()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SceneBGMController.NativeMethodInfoPtr_PlayDeathBGM_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060002E5 RID: 741 RVA: 0x0000D030 File Offset: 0x0000B230
	[CallerCount(5)]
	[CachedScanResults(RefRangeStart = 468592, RefRangeEnd = 468597, XrefRangeStart = 468587, XrefRangeEnd = 468592, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void StopBGM()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SceneBGMController.NativeMethodInfoPtr_StopBGM_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060002E6 RID: 742 RVA: 0x0000D074 File Offset: 0x0000B274
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 468597, XrefRangeEnd = 468616, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnDisable()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SceneBGMController.NativeMethodInfoPtr_OnDisable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060002E7 RID: 743 RVA: 0x0000D0B8 File Offset: 0x0000B2B8
	[CallerCount(63)]
	[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe SceneBGMController()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SceneBGMController.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060002E8 RID: 744 RVA: 0x0000D104 File Offset: 0x0000B304
	// Note: this type is marked as 'beforefieldinit'.
	static SceneBGMController()
	{
		Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "SceneBGMController");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr);
		SceneBGMController.NativeFieldInfoPtr_DeathBGM = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, "DeathBGM");
		SceneBGMController.NativeFieldInfoPtr_BGMObject = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, "BGMObject");
		SceneBGMController.NativeFieldInfoPtr_g_DeathBGM = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, "g_DeathBGM");
		SceneBGMController.NativeFieldInfoPtr_g_Music = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, "g_Music");
		SceneBGMController.NativeFieldInfoPtr_bgmIndex = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, "bgmIndex");
		SceneBGMController.NativeMethodInfoPtr_Init_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663477);
		SceneBGMController.NativeMethodInfoPtr_UpdateVolumes_Private_Void_VolumeSettings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663478);
		SceneBGMController.NativeMethodInfoPtr_PlayBGM_Public_Void_Int32_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663479);
		SceneBGMController.NativeMethodInfoPtr_SwitchBGM_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663480);
		SceneBGMController.NativeMethodInfoPtr_PlayDeathBGM_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663481);
		SceneBGMController.NativeMethodInfoPtr_StopBGM_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663482);
		SceneBGMController.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663483);
		SceneBGMController.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663484);
	}

	// Token: 0x060002E9 RID: 745 RVA: 0x0000351C File Offset: 0x0000171C
	public SceneBGMController(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x1700010D RID: 269
	// (get) Token: 0x060002EA RID: 746 RVA: 0x0000D238 File Offset: 0x0000B438
	// (set) Token: 0x060002EB RID: 747 RVA: 0x0000D26C File Offset: 0x0000B46C
	public unsafe Il2CppReferenceArray<GameObject> DeathBGM
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_DeathBGM);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<GameObject>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_DeathBGM), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700010E RID: 270
	// (get) Token: 0x060002EC RID: 748 RVA: 0x0000D294 File Offset: 0x0000B494
	// (set) Token: 0x060002ED RID: 749 RVA: 0x0000D2C8 File Offset: 0x0000B4C8
	public unsafe Il2CppReferenceArray<GameObject> BGMObject
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_BGMObject);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<GameObject>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_BGMObject), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x1700010F RID: 271
	// (get) Token: 0x060002EE RID: 750 RVA: 0x0000D2F0 File Offset: 0x0000B4F0
	// (set) Token: 0x060002EF RID: 751 RVA: 0x0000D324 File Offset: 0x0000B524
	public unsafe BGM g_DeathBGM
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_g_DeathBGM);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new BGM(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_g_DeathBGM), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17000110 RID: 272
	// (get) Token: 0x060002F0 RID: 752 RVA: 0x0000D34C File Offset: 0x0000B54C
	// (set) Token: 0x060002F1 RID: 753 RVA: 0x0000D380 File Offset: 0x0000B580
	public unsafe Il2CppReferenceArray<BGM> g_Music
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_g_Music);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<BGM>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_g_Music), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17000111 RID: 273
	// (get) Token: 0x060002F2 RID: 754 RVA: 0x0000D3A8 File Offset: 0x0000B5A8
	// (set) Token: 0x060002F3 RID: 755 RVA: 0x0000D3D0 File Offset: 0x0000B5D0
	public unsafe int bgmIndex
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_bgmIndex);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(SceneBGMController.NativeFieldInfoPtr_bgmIndex)) = value;
		}
	}

	// Token: 0x040001C0 RID: 448
	private static readonly IntPtr NativeFieldInfoPtr_DeathBGM;

	// Token: 0x040001C1 RID: 449
	private static readonly IntPtr NativeFieldInfoPtr_BGMObject;

	// Token: 0x040001C2 RID: 450
	private static readonly IntPtr NativeFieldInfoPtr_g_DeathBGM;

	// Token: 0x040001C3 RID: 451
	private static readonly IntPtr NativeFieldInfoPtr_g_Music;

	// Token: 0x040001C4 RID: 452
	private static readonly IntPtr NativeFieldInfoPtr_bgmIndex;

	// Token: 0x040001C5 RID: 453
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Void_0;

	// Token: 0x040001C6 RID: 454
	private static readonly IntPtr NativeMethodInfoPtr_UpdateVolumes_Private_Void_VolumeSettings_0;

	// Token: 0x040001C7 RID: 455
	private static readonly IntPtr NativeMethodInfoPtr_PlayBGM_Public_Void_Int32_Single_0;

	// Token: 0x040001C8 RID: 456
	private static readonly IntPtr NativeMethodInfoPtr_SwitchBGM_Public_Void_Int32_0;

	// Token: 0x040001C9 RID: 457
	private static readonly IntPtr NativeMethodInfoPtr_PlayDeathBGM_Public_Void_0;

	// Token: 0x040001CA RID: 458
	private static readonly IntPtr NativeMethodInfoPtr_StopBGM_Public_Void_0;

	// Token: 0x040001CB RID: 459
	private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

	// Token: 0x040001CC RID: 460
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
