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

// Token: 0x0200001E RID: 30
public class SceneBGMController : MonoBehaviour
{
	// Token: 0x060002E3 RID: 739 RVA: 0x0000CF54 File Offset: 0x0000B154
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 488236, RefRangeEnd = 488238, XrefRangeStart = 488154, XrefRangeEnd = 488236, 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: 0x060002E4 RID: 740 RVA: 0x0000CF98 File Offset: 0x0000B198
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 488238, XrefRangeEnd = 488245, 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: 0x060002E5 RID: 741 RVA: 0x0000CFF4 File Offset: 0x0000B1F4
	[CallerCount(4)]
	[CachedScanResults(RefRangeStart = 488258, RefRangeEnd = 488262, XrefRangeStart = 488245, XrefRangeEnd = 488258, 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: 0x060002E6 RID: 742 RVA: 0x0000D05C File Offset: 0x0000B25C
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 488276, RefRangeEnd = 488278, XrefRangeStart = 488262, XrefRangeEnd = 488276, 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: 0x060002E7 RID: 743 RVA: 0x0000D0B0 File Offset: 0x0000B2B0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 488278, XrefRangeEnd = 488293, 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: 0x060002E8 RID: 744 RVA: 0x0000D0F4 File Offset: 0x0000B2F4
	[CallerCount(6)]
	[CachedScanResults(RefRangeStart = 488298, RefRangeEnd = 488304, XrefRangeStart = 488293, XrefRangeEnd = 488298, 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: 0x060002E9 RID: 745 RVA: 0x0000D138 File Offset: 0x0000B338
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 488304, XrefRangeEnd = 488323, 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: 0x060002EA RID: 746 RVA: 0x0000D17C File Offset: 0x0000B37C
	[CallerCount(67)]
	[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, 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: 0x060002EB RID: 747 RVA: 0x0000D1C8 File Offset: 0x0000B3C8
	// 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, 100663478);
		SceneBGMController.NativeMethodInfoPtr_UpdateVolumes_Private_Void_VolumeSettings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663479);
		SceneBGMController.NativeMethodInfoPtr_PlayBGM_Public_Void_Int32_Single_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663480);
		SceneBGMController.NativeMethodInfoPtr_SwitchBGM_Public_Void_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663481);
		SceneBGMController.NativeMethodInfoPtr_PlayDeathBGM_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663482);
		SceneBGMController.NativeMethodInfoPtr_StopBGM_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663483);
		SceneBGMController.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663484);
		SceneBGMController.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SceneBGMController>.NativeClassPtr, 100663485);
	}

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

	// Token: 0x1700010F RID: 271
	// (get) Token: 0x060002ED RID: 749 RVA: 0x0000D2FC File Offset: 0x0000B4FC
	// (set) Token: 0x060002EE RID: 750 RVA: 0x0000D330 File Offset: 0x0000B530
	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: 0x17000110 RID: 272
	// (get) Token: 0x060002EF RID: 751 RVA: 0x0000D358 File Offset: 0x0000B558
	// (set) Token: 0x060002F0 RID: 752 RVA: 0x0000D38C File Offset: 0x0000B58C
	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: 0x17000111 RID: 273
	// (get) Token: 0x060002F1 RID: 753 RVA: 0x0000D3B4 File Offset: 0x0000B5B4
	// (set) Token: 0x060002F2 RID: 754 RVA: 0x0000D3E8 File Offset: 0x0000B5E8
	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: 0x17000112 RID: 274
	// (get) Token: 0x060002F3 RID: 755 RVA: 0x0000D410 File Offset: 0x0000B610
	// (set) Token: 0x060002F4 RID: 756 RVA: 0x0000D444 File Offset: 0x0000B644
	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: 0x17000113 RID: 275
	// (get) Token: 0x060002F5 RID: 757 RVA: 0x0000D46C File Offset: 0x0000B66C
	// (set) Token: 0x060002F6 RID: 758 RVA: 0x0000D494 File Offset: 0x0000B694
	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: 0x040001C6 RID: 454
	private static readonly IntPtr NativeFieldInfoPtr_DeathBGM;

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

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

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

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

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

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

	// Token: 0x040001CD RID: 461
	private static readonly IntPtr NativeMethodInfoPtr_PlayBGM_Public_Void_Int32_Single_0;

	// Token: 0x040001CE RID: 462
	private static readonly IntPtr NativeMethodInfoPtr_SwitchBGM_Public_Void_Int32_0;

	// Token: 0x040001CF RID: 463
	private static readonly IntPtr NativeMethodInfoPtr_PlayDeathBGM_Public_Void_0;

	// Token: 0x040001D0 RID: 464
	private static readonly IntPtr NativeMethodInfoPtr_StopBGM_Public_Void_0;

	// Token: 0x040001D1 RID: 465
	private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

	// Token: 0x040001D2 RID: 466
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
