//
// sub_82F964 from 0x82f964 to 0x82fa7c (280 bytes)
//
// 4 xrefs:
// > GameLevelManager::prunePlatformerJournalKeys @ 0x83000c
// > sub_833644 @ 0x8337cc
// > GameLevelManager::writePlatformerSaveJournal @ 0x83cfa0
// > GameLevelManager::replayPlatformerSaveJournal @ 0x845168
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:55:08 +0000
//
__int64 __fastcall sub_82F964(DS_Dictionary *a1)
{
unsigned int v1; // w20
__int64 v3[3]; // [xsp+38h] [xbp+38h] BYREF
__int64 v4[2]; // [xsp+50h] [xbp+50h] BYREF
void *v5; // [xsp+60h] [xbp+60h]
DS_Dictionary::saveRootSubDictToString(v4, a1);
cocos2d::ZipUtils::compressString(v3, (int)v4, 0, 1);
if ( (v4[0] & 1) != 0 )
operator delete(v5);
sub_82F874(v4);
v1 = GameToolbox::saveStringToFile((__int64)v4, (__int64)v3, 1u, 1u);
if ( (v4[0] & 1) != 0 )
operator delete(v5);
if ( (v3[0] & 1) != 0 )
operator delete((void *)v3[2]);
return v1;
}