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

// Token: 0x02000284 RID: 644
public class UILanguageSetup : GameCanvasBase
{
	// Token: 0x06005802 RID: 22530 RVA: 0x0015FFCC File Offset: 0x0015E1CC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 582994, XrefRangeEnd = 583033, 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: 0x06005803 RID: 22531 RVA: 0x0016001C File Offset: 0x0015E21C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 583033, XrefRangeEnd = 583042, 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: 0x06005804 RID: 22532 RVA: 0x00160080 File Offset: 0x0015E280
	[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: 0x06005805 RID: 22533 RVA: 0x001600E0 File Offset: 0x0015E2E0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 583042, XrefRangeEnd = 583053, 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: 0x06005806 RID: 22534 RVA: 0x0016013C File Offset: 0x0015E33C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 583053, XrefRangeEnd = 583055, 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: 0x06005807 RID: 22535 RVA: 0x00160198 File Offset: 0x0015E398
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 583055, XrefRangeEnd = 583082, 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: 0x06005808 RID: 22536 RVA: 0x001601E8 File Offset: 0x0015E3E8
	[CallerCount(2)]
	[CachedScanResults(RefRangeStart = 583084, RefRangeEnd = 583086, XrefRangeStart = 583082, XrefRangeEnd = 583084, 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: 0x06005809 RID: 22537 RVA: 0x0016024C File Offset: 0x0015E44C
	[CallerCount(1)]
	[CachedScanResults(RefRangeStart = 583133, RefRangeEnd = 583134, XrefRangeStart = 583086, XrefRangeEnd = 583133, 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: 0x0600580A RID: 22538 RVA: 0x001602A8 File Offset: 0x0015E4A8
	[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: 0x0600580B RID: 22539 RVA: 0x001602F4 File Offset: 0x0015E4F4
	[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: 0x0600580C RID: 22540 RVA: 0x0016035C File Offset: 0x0015E55C
	// 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, 100669320);
		UILanguageSetup.NativeMethodInfoPtr_Appear_Protected_Virtual_Void_Action_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100669321);
		UILanguageSetup.NativeMethodInfoPtr_Move_Public_Virtual_Void_Direction2D_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100669322);
		UILanguageSetup.NativeMethodInfoPtr_OnHandlerSelected_Private_Void_UIHandlerBase_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100669323);
		UILanguageSetup.NativeMethodInfoPtr_OnHandlerDeselected_Private_Void_UIHandlerBase_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100669324);
		UILanguageSetup.NativeMethodInfoPtr_Submit_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100669325);
		UILanguageSetup.NativeMethodInfoPtr_GetInteractionPos_Private_Vector2_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100669326);
		UILanguageSetup.NativeMethodInfoPtr_InitLayout_Private_Void_Il2CppStructArray_1_GameLanguage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100669327);
		UILanguageSetup.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100669328);
		UILanguageSetup.NativeMethodInfoPtr__InitLayout_b__12_0_Private_UILabelHandler_GameLanguage_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UILanguageSetup>.NativeClassPtr, 100669329);
	}

	// Token: 0x0600580D RID: 22541 RVA: 0x0015A580 File Offset: 0x00158780
	public UILanguageSetup(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001F04 RID: 7940
	// (get) Token: 0x0600580E RID: 22542 RVA: 0x001604B8 File Offset: 0x0015E6B8
	// (set) Token: 0x0600580F RID: 22543 RVA: 0x001604EC File Offset: 0x0015E6EC
	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: 0x17001F05 RID: 7941
	// (get) Token: 0x06005810 RID: 22544 RVA: 0x00160514 File Offset: 0x0015E714
	// (set) Token: 0x06005811 RID: 22545 RVA: 0x00160548 File Offset: 0x0015E748
	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: 0x17001F06 RID: 7942
	// (get) Token: 0x06005812 RID: 22546 RVA: 0x00160570 File Offset: 0x0015E770
	// (set) Token: 0x06005813 RID: 22547 RVA: 0x001605A4 File Offset: 0x0015E7A4
	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: 0x17001F07 RID: 7943
	// (get) Token: 0x06005814 RID: 22548 RVA: 0x001605CC File Offset: 0x0015E7CC
	// (set) Token: 0x06005815 RID: 22549 RVA: 0x00160600 File Offset: 0x0015E800
	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: 0x17001F08 RID: 7944
	// (get) Token: 0x06005816 RID: 22550 RVA: 0x00160628 File Offset: 0x0015E828
	// (set) Token: 0x06005817 RID: 22551 RVA: 0x0016065C File Offset: 0x0015E85C
	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: 0x04003A74 RID: 14964
	private static readonly IntPtr NativeFieldInfoPtr_allHandlers;

	// Token: 0x04003A75 RID: 14965
	private static readonly IntPtr NativeFieldInfoPtr_activeHandlers;

	// Token: 0x04003A76 RID: 14966
	private static readonly IntPtr NativeFieldInfoPtr_navigationEffect;

	// Token: 0x04003A77 RID: 14967
	private static readonly IntPtr NativeFieldInfoPtr_submissionEffect;

	// Token: 0x04003A78 RID: 14968
	private static readonly IntPtr NativeFieldInfoPtr_gridLayout;

	// Token: 0x04003A79 RID: 14969
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Virtual_Void_0;

	// Token: 0x04003A7A RID: 14970
	private static readonly IntPtr NativeMethodInfoPtr_Appear_Protected_Virtual_Void_Action_0;

	// Token: 0x04003A7B RID: 14971
	private static readonly IntPtr NativeMethodInfoPtr_Move_Public_Virtual_Void_Direction2D_0;

	// Token: 0x04003A7C RID: 14972
	private static readonly IntPtr NativeMethodInfoPtr_OnHandlerSelected_Private_Void_UIHandlerBase_0;

	// Token: 0x04003A7D RID: 14973
	private static readonly IntPtr NativeMethodInfoPtr_OnHandlerDeselected_Private_Void_UIHandlerBase_0;

	// Token: 0x04003A7E RID: 14974
	private static readonly IntPtr NativeMethodInfoPtr_Submit_Public_Virtual_Void_0;

	// Token: 0x04003A7F RID: 14975
	private static readonly IntPtr NativeMethodInfoPtr_GetInteractionPos_Private_Vector2_Int32_0;

	// Token: 0x04003A80 RID: 14976
	private static readonly IntPtr NativeMethodInfoPtr_InitLayout_Private_Void_Il2CppStructArray_1_GameLanguage_0;

	// Token: 0x04003A81 RID: 14977
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

	// Token: 0x04003A82 RID: 14978
	private static readonly IntPtr NativeMethodInfoPtr__InitLayout_b__12_0_Private_UILabelHandler_GameLanguage_0;
}
