//
// DS_Dictionary::loadRootSubDictFromCompressedFile from 0x80cd84 to 0x80cefa (374 bytes)
//
// 1 xrefs:
// > GManager::tryLoadData @ 0x3d4050
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:33 +0000
//
int __fastcall DS_Dictionary::loadRootSubDictFromCompressedFile(DS_Dictionary *this, char *a2, int a3)
{
int v4; // r2
int v7; // r3
_DWORD *v8; // r3
char *v9; // r1
int *v10; // r0
int v11; // r0
char *v12; // r1
unsigned __int8 *v13; // r5
char *v14; // r2
int v15; // r3
int v16; // r6
int v18; // r8
_DWORD v19[5]; // [sp+8h] [bp-54h] BYREF
int v20; // [sp+1Ch] [bp-40h] BYREF
int v21; // [sp+20h] [bp-3Ch] BYREF
int v22[2]; // [sp+24h] [bp-38h] BYREF
char *v23; // [sp+2Ch] [bp-30h]
char *v24[3]; // [sp+30h] [bp-2Ch] BYREF
_DWORD v25[3]; // [sp+3Ch] [bp-20h] BYREF
unsigned __int8 v26; // [sp+48h] [bp-14h] BYREF
char v27; // [sp+49h] [bp-13h] BYREF
int v28; // [sp+4Ch] [bp-10h]
int v29; // [sp+50h] [bp-Ch]
v4 = *((_DWORD *)this + 50);
while ( 1 )
{
v7 = *((_DWORD *)this + 51);
if ( v4 == v7 )
break;
*((_DWORD *)this + 51) = v7 - 4;
}
pugi::xml_node::xml_node((pugi::xml_node *)v25);
v8 = *((_DWORD **)this + 51);
if ( (unsigned int)v8 >= *((_DWORD *)this + 52) )
{
std::vector
::__push_back_slow_path((int *)this + 50, v25);
}
else
{
if ( v8 )
*v8 = v25[0];
*((_DWORD *)this + 51) += 4;
}
v22[0] = 0;
v22[1] = 0;
v23 = nullptr;
std::string::__init(v22, &unk_B6B226, 0);
FileOperation::getFilePath((FileOperation *)v24);
std::string::append(v24, a2);
if ( ((int)v24[0] & 1) != 0 )
v9 = v24[2];
else
v9 = (char *)v24 + 1;
v10 = std::string::assign(v22, v9);
v20 = 0;
v11 = cocos2d::CCFileUtils::sharedFileUtils((cocos2d::CCFileUtils *)v10);
if ( (v22[0] & 1) != 0 )
v12 = v23;
else
v12 = (char *)v22 + 1;
v13 = (unsigned __int8 *)(*(int (__fastcall **)(int, char *, __int16 *, int *))(*(_DWORD *)v11 + 16))(
v11,
v12,
&a1i2r3e45s789g[3],
&v20);
pugi::xml_parse_result::xml_parse_result((pugi::xml_parse_result *)v25);
if ( v13 )
{
cocos2d::ZipUtils::decompressString2((cocos2d::ZipUtils *)&v26, v13, a3, (const unsigned __int8 *)v20, 11);
if ( (v26 & 1) != 0 )
{
v14 = (char *)v29;
v15 = v28;
}
else
{
v15 = (int)v26 >> 1;
v14 = &v27;
}
pugi::xml_document::load_buffer((int)v19, this, (int)v14, v15, 116, 0);
v25[0] = v19[0];
v25[1] = v19[1];
v25[2] = v19[2];
std::string::~string((int)&v26);
}
v16 = pugi::xml_parse_result::operator bool(v25);
if ( v16 )
{
if ( v13 )
{
v18 = *((_DWORD *)this + 51);
v21 = pugi::xml_node::child(this, "plist");
*(_DWORD *)(v18 - 4) = pugi::xml_node::child((pugi::xml_node *)&v21, "dict");
operator delete[](v13);
DS_Dictionary::checkCompatibility(this);
}
else
{
v16 = 0;
}
}
else if ( v13 )
{
operator delete[](v13);
}
std::string::~string((int)v24);
std::string::~string((int)v22);
return v16;
}