local G=ProfileService._active_profile_stores local l=ProfileService._auto_save_list local E=ProfileService._issue_queue local Y=game:GetService("\068\097\116\097\083\116\111\114\101\083\101\114\118\105\099\101")local B=game:GetService("\082\117\110\083\101\114\118\105\099\101")local p=game.PlaceId local J=game.JobId local t=1 local A=os.clock()local K=0 local Z=0 local C=0 local S=0 local D=B:IsStudio()local f=false local z=false local c=ProfileService._mock_data_store local q=ProfileService._user_mock_data_store local P={}local h={}
----- Private Variables -----

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,
			},
			...
		},
		...
	--]]
}
