//
// GManager::loadFromCompressedString from 0x1004a5090 to 0x1004a50f2 (98 bytes)
//
// 2 xrefs:
// > GJAccountManager::onSyncAccountCompleted @ 0x10009f156
// > GJAccountManager::onSyncAccountCompleted @ 0x10009f16a
//
// This function is hookable on this platform (idp: pc, 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:30:54 +0000
//
void __fastcall GManager::loadFromCompressedString(__int64 a1, __int64 a2)
{
std::string v2; // [rsp+8h] [rbp-28h] BYREF
cocos2d::ZipUtils::decompressString(&v2, (char *)a2, 0, 11);
if ( (*(_BYTE *)a2 & 1) != 0 )
{
**(_BYTE **)(a2 + 16) = 0;
*(_QWORD *)(a2 + 8) = 0;
}
else
{
*(_WORD *)a2 = 0;
}
GManager::loadFromString(a1, (__int64)&v2);
if ( (*(_BYTE *)&v2.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v2.__r_.__value_.__l.__data_);
}