using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using MarsSDK;
using UnityEngine;
using UnityEngine.UI;

// Token: 0x0200023A RID: 570
public class UILanguageSetup : GameCanvasBase
{
	// Token: 0x060051B5 RID: 20917 RVA: 0x00145C28 File Offset: 0x00143E28
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 553306, XrefRangeEnd = 553345, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void Init()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UILanguageSetup.NativeMethodInfoPtr_Init_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060051B6 RID: 20918 RVA: 0x00145C78 File Offset: 0x00143E78
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 553345, XrefRangeEnd = 553354, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void Appear(Action completeHandler)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(completeHandler);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UILanguageSetup.NativeMethodInfoPtr_Appear_Protected_Virtual_Void_Action_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060051B7 RID: 20919 RVA: 0x00145CDC File Offset: 0x00143EDC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void Move(Direction2D direction)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref direction;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UILanguageSetup.NativeMethodInfoPtr_Move_Public_Virtual_Void_Direction2D_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060051B8 RID: 20920 RVA: 0x00145D3C File Offset: 0x00143F3C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 553354, XrefRangeEnd = 553365, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnHandlerSelected(UIHandlerBase handler)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(handler);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UILanguageSetup.NativeMethodInfoPtr_OnHandlerSelected_Private_Void_UIHandlerBase_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060051B9 RID: 20921 RVA: 0x00145D98 File Offset: 0x00143F98
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 553365, XrefRangeEnd = 553367, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void OnHandlerDeselected(UIHandlerBase handler)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(handler);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UILanguageSetup.NativeMethodInfoPtr_OnHandlerDeselected_Private_Void_UIHandlerBase_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060051BA RID: 20922 RVA: 0x00145DF4 File Offset: 0x00143FF4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 553367, XrefRangeEnd = 553394, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void Submit()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UILanguageSetup.NativeMethodInfoPtr_Submit_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060051BB RID: 20923 RVA: 0x00145E44 File Offset: 0x00144044
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 553396, RefRangeEnd = 553398, XrefRangeStart = 553394, XrefRangeEnd = 553396, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe Vector2 GetInteractionPos(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(UILanguageSetup.NativeMethodInfoPtr_GetInteractionPos_Private_Vector2_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}
	}

	// Token: 0x060051BC RID: 20924 RVA: 0x00145EA8 File Offset: 0x001440A8
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 553445, RefRangeEnd = 553446, XrefRangeStart = 553398, XrefRangeEnd = 553445, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void InitLayout(Il2CppStructArray<GameLanguage> languages)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(languages);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UILanguageSetup.NativeMethodInfoPtr_InitLayout_Private_Void_Il2CppStructArray_1_GameLanguage_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x060051BD RID: 20925 RVA: 0x00145F04 File Offset: 0x00144104
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UILanguageSetup()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UILanguageSetup.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x060051BE RID: 20926 RVA: 0x00145F50 File Offset: 0x00144150
	[CallerCount(0)]
	public unsafe UILabelHandler _InitLayout_b__12_0(GameLanguage lan)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref lan;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UILanguageSetup.NativeMethodInfoPtr__InitLayout_b__12_0_Private_UILabelHandler_GameLanguage_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			IntPtr intPtr3 = intPtr;
			return (intPtr3 != 0) ? new UILabelHandler(intPtr3) : null;
		}
	}

	// Token: 0x060051BF RID: 20927 RVA: 0x00145FB8 File Offset: 0x001441B8
	// Note: this type is marked as 'beforefieldinit'.
	static UILanguageSetup()
	{
		Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UILanguageSetup");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr);
		UILanguageSetup.NativeFieldInfoPtr_allHandlers = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, "allHandlers");
		UILanguageSetup.NativeFieldInfoPtr_activeHandlers = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, "activeHandlers");
		UILanguageSetup.NativeFieldInfoPtr_navigationEffect = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, "navigationEffect");
		UILanguageSetup.NativeFieldInfoPtr_submissionEffect = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, "submissionEffect");
		UILanguageSetup.NativeFieldInfoPtr_gridLayout = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, "gridLayout");
		UILanguageSetup.NativeMethodInfoPtr_Init_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668783);
		UILanguageSetup.NativeMethodInfoPtr_Appear_Protected_Virtual_Void_Action_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668784);
		UILanguageSetup.NativeMethodInfoPtr_Move_Public_Virtual_Void_Direction2D_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668785);
		UILanguageSetup.NativeMethodInfoPtr_OnHandlerSelected_Private_Void_UIHandlerBase_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668786);
		UILanguageSetup.NativeMethodInfoPtr_OnHandlerDeselected_Private_Void_UIHandlerBase_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668787);
		UILanguageSetup.NativeMethodInfoPtr_Submit_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668788);
		UILanguageSetup.NativeMethodInfoPtr_GetInteractionPos_Private_Vector2_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668789);
		UILanguageSetup.NativeMethodInfoPtr_InitLayout_Private_Void_Il2CppStructArray_1_GameLanguage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668790);
		UILanguageSetup.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668791);
		UILanguageSetup.NativeMethodInfoPtr__InitLayout_b__12_0_Private_UILabelHandler_GameLanguage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100668792);
	}

	// Token: 0x060051C0 RID: 20928 RVA: 0x00143684 File Offset: 0x00141884
	public UILanguageSetup(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001D1C RID: 7452
	// (get) Token: 0x060051C1 RID: 20929 RVA: 0x00146114 File Offset: 0x00144314
	// (set) Token: 0x060051C2 RID: 20930 RVA: 0x00146148 File Offset: 0x00144348
	public unsafe Il2CppReferenceArray<UILabelHandler> allHandlers
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_allHandlers);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<UILabelHandler>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_allHandlers), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001D1D RID: 7453
	// (get) Token: 0x060051C3 RID: 20931 RVA: 0x00146170 File Offset: 0x00144370
	// (set) Token: 0x060051C4 RID: 20932 RVA: 0x001461A4 File Offset: 0x001443A4
	public unsafe Il2CppReferenceArray<UILabelHandler> activeHandlers
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_activeHandlers);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppReferenceArray<UILabelHandler>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_activeHandlers), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001D1E RID: 7454
	// (get) Token: 0x060051C5 RID: 20933 RVA: 0x001461CC File Offset: 0x001443CC
	// (set) Token: 0x060051C6 RID: 20934 RVA: 0x00146200 File Offset: 0x00144400
	public unsafe UINavigationEffect navigationEffect
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_navigationEffect);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new UINavigationEffect(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_navigationEffect), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001D1F RID: 7455
	// (get) Token: 0x060051C7 RID: 20935 RVA: 0x00146228 File Offset: 0x00144428
	// (set) Token: 0x060051C8 RID: 20936 RVA: 0x0014625C File Offset: 0x0014445C
	public unsafe RectTransform submissionEffect
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_submissionEffect);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new RectTransform(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_submissionEffect), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001D20 RID: 7456
	// (get) Token: 0x060051C9 RID: 20937 RVA: 0x00146284 File Offset: 0x00144484
	// (set) Token: 0x060051CA RID: 20938 RVA: 0x001462B8 File Offset: 0x001444B8
	public unsafe GridLayoutGroup gridLayout
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_gridLayout);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new GridLayoutGroup(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UILanguageSetup.NativeFieldInfoPtr_gridLayout), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x0400361D RID: 13853
	private static readonly IntPtr NativeFieldInfoPtr_allHandlers;

	// Token: 0x0400361E RID: 13854
	private static readonly IntPtr NativeFieldInfoPtr_activeHandlers;

	// Token: 0x0400361F RID: 13855
	private static readonly IntPtr NativeFieldInfoPtr_navigationEffect;

	// Token: 0x04003620 RID: 13856
	private static readonly IntPtr NativeFieldInfoPtr_submissionEffect;

	// Token: 0x04003621 RID: 13857
	private static readonly IntPtr NativeFieldInfoPtr_gridLayout;

	// Token: 0x04003622 RID: 13858
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Virtual_Void_0;

	// Token: 0x04003623 RID: 13859
	private static readonly IntPtr NativeMethodInfoPtr_Appear_Protected_Virtual_Void_Action_0;

	// Token: 0x04003624 RID: 13860
	private static readonly IntPtr NativeMethodInfoPtr_Move_Public_Virtual_Void_Direction2D_0;

	// Token: 0x04003625 RID: 13861
	private static readonly IntPtr NativeMethodInfoPtr_OnHandlerSelected_Private_Void_UIHandlerBase_0;

	// Token: 0x04003626 RID: 13862
	private static readonly IntPtr NativeMethodInfoPtr_OnHandlerDeselected_Private_Void_UIHandlerBase_0;

	// Token: 0x04003627 RID: 13863
	private static readonly IntPtr NativeMethodInfoPtr_Submit_Public_Virtual_Void_0;

	// Token: 0x04003628 RID: 13864
	private static readonly IntPtr NativeMethodInfoPtr_GetInteractionPos_Private_Vector2_Int32_0;

	// Token: 0x04003629 RID: 13865
	private static readonly IntPtr NativeMethodInfoPtr_InitLayout_Private_Void_Il2CppStructArray_1_GameLanguage_0;

	// Token: 0x0400362A RID: 13866
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

	// Token: 0x0400362B RID: 13867
	private static readonly IntPtr NativeMethodInfoPtr__InitLayout_b__12_0_Private_UILabelHandler_GameLanguage_0;
}
