//
// GJGameLevel::getExportSaveString from 0x8065c8 to 0x806694 (204 bytes)
//
// 2 xrefs:
// > LocalLevelManager::exportLevelsToFile @ 0x91398c
// > ??> @ 0x97e70
//
// 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:54:45 +0000
//
__int64 __usercall GJGameLevel::getExportSaveString@(GJGameLevel *this@, __int64 a2@)
{
DS_Dictionary *v4; // x20
__int64 v5; // x2
GJGameLevel *v6; // x0
char **v7; // x19
const char *v8; // t1
char *v9; // x0
char *v10; // x2
v4 = (DS_Dictionary *)operator new(0xF0u);
DS_Dictionary::DS_Dictionary(v4);
v5 = *(_QWORD *)this;
v6 = this;
v7 = off_1548030;
(*(void (__fastcall **)(GJGameLevel *, DS_Dictionary *))(v5 + 48))(v6, v4);
do
{
v8 = *v7++;
DS_Dictionary::removeKey(v4, v8);
}
while ( v7 != (char **)&unk_15482F0 );
DS_Dictionary::saveRootSubDictToString(v4);
v9 = *((char **)v4 + 26);
if ( v9 )
{
v10 = *((char **)v4 + 27);
if ( v9 != v10 )
*((_QWORD *)v4 + 27) = &v10[8 * ~((unsigned __int64)(v10 - 8 - v9) >> 3)];
operator delete(v9);
}
pugi::xml_document::~xml_document(v4);
operator delete(v4);
return a2;
}