//
// sub_82FA7C from 0x82fa7c to 0x82fb98 (284 bytes)
//
// 5 xrefs:
// > GameLevelManager::collectPlatformerJournalKeys @ 0x82fbfc
// > GameLevelManager::prunePlatformerJournalKeys @ 0x82ff28
// > sub_833644 @ 0x83369c
// > GameLevelManager::writePlatformerSaveJournal @ 0x83cdb8
// > GameLevelManager::replayPlatformerSaveJournal @ 0x844f9c
//
// 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_82FA7C(__int64 a1)
{
__int64 (__fastcall *v2)(__int64, char *, char *, bool *); // x20
char *v3; // x1
int v4; // w4
cocos2d::ZipUtils *v5; // x20
unsigned int RootSubDictFromString; // w20
__int64 v8; // [xsp+38h] [xbp+38h]
bool v9[8]; // [xsp+48h] [xbp+48h] BYREF
__int64 v10[2]; // [xsp+50h] [xbp+50h] BYREF
void *v11; // [xsp+60h] [xbp+60h]
*(_QWORD *)v9 = 0;
v8 = cocos2d::CCFileUtils::sharedFileUtils(_stack_chk_guard);
v2 = *(__int64 (__fastcall **)(__int64, char *, char *, bool *))(*(_QWORD *)v8 + 32LL);
sub_82F874(v10);
v3 = (char *)v10 + 1;
if ( (v10[0] & 1) != 0 )
v3 = (char *)v11;
v5 = (cocos2d::ZipUtils *)v2(v8, v3, "r", v9);
if ( (v10[0] & 1) == 0 )
{
if ( v5 )
goto LABEL_5;
return 0;
}
operator delete(v11);
if ( !v5 )
return 0;
LABEL_5:
cocos2d::ZipUtils::decompressString2(v10, v5, nullptr, v9[0], 11, v4);
operator delete[](v5);
RootSubDictFromString = (unsigned __int8)DS_Dictionary::loadRootSubDictFromString(a1, v10);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
return RootSubDictFromString;
}