local M=ProfileService._active_profile_stores local b=ProfileService._auto_save_list local Q=ProfileService._issue_queue local a=game:GetService("\068\097\116\097\083\116\111\114\101\083\101\114\118\105\099\101")local V=game:GetService("\082\117\110\083\101\114\118\105\099\101")local F=game.PlaceId local L=game.JobId local x=1 local f=os.clock()local O=0 local I=0 local H=0 local U=0 local P=V:IsStudio()local i=false local q=false local l=ProfileService._mock_data_store local W=ProfileService._user_mock_data_store local z={}local v={}


local ActiveProfileStores = ProfileService._active_profile_stores
local AutoSaveList = ProfileService._auto_save_list
local IssueQueue = ProfileService._issue_queue

local DataStoreService = game:GetService("DataStoreService")
local RunService = game:GetService("RunService")

local PlaceId = game.PlaceId
local JobId = game.JobId

local AutoSaveIndex = 1 -- Next profile to auto save
local LastAutoSave = os.clock()

local LoadIndex = 0

local ActiveProfileLoadJobs = 0 -- Number of active threads that are loading in profiles
local ActiveProfileSaveJobs = 0 -- Number of active threads that are saving profiles

local CriticalStateStart = 0 -- os.clock()

local IsStudio = RunService:IsStudio()
local IsLiveCheckActive = false

local UseMockDataStore = false
local MockDataStore = ProfileService._mock_data_store -- Mock data store used when API access is disabled

local UserMockDataStore = ProfileService._user_mock_data_store -- Separate mock data store accessed via ProfileStore.Mock
local UseMockTag = {}

local CustomWriteQueue = {
	--[[
		[store] = {
			[key] = {
				LastWrite = os.clock(),
				Queue = {callback, ...},
				CleanupJob = nil,
			},
			...
		},
		...
	--]]
}
