//
// GJSmartTemplate::dataLoaded from 0x6713a4 to 0x67154e (426 bytes)
//
// 1 xrefs:
// > GJSmartTemplate::createWithCoder @ 0x67157c
//
// 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 11:55:52 +0000
//
unsigned int __fastcall GJSmartTemplate::dataLoaded(GJSmartTemplate *this, DS_Dictionary *a2)
{
int *v4; // r9
char v5; // r8
int v6; // r0
int v7; // r1
int v8; // r2
cocos2d::CCObject *DictForKey; // r0
cocos2d::CCObject *v10; // r6
cocos2d::CCObject *v11; // r0
unsigned int v12; // r9
cocos2d::CCArray *v13; // r11
unsigned int result; // r0
cocos2d::CCString *v15; // r0
const char *CString; // r0
const char *v17; // r6
size_t v18; // r0
int v19; // r0
_DWORD *v20; // r3
int *v21; // r7
int *v22; // r6
int v23; // r0
int v24; // t1
int v25[3]; // [sp+Ch] [bp-20h] BYREF
int v26; // [sp+18h] [bp-14h] BYREF
int v27; // [sp+1Ch] [bp-10h]
int v28; // [sp+20h] [bp-Ch]
v4 = (int *)((char *)this + 96);
*((_DWORD *)this + 30) = DS_Dictionary::getIntegerForKey(a2, (const char *)a1i2r3e45s789g);
DS_Dictionary::getStringForKey((DS_Dictionary *)&v26, (const char *)a2);
v5 = *((_BYTE *)this + 96);
if ( (v5 & 1) != 0 )
{
**((_BYTE **)this + 26) = 0;
*((_DWORD *)this + 25) = 0;
}
else
{
*((_BYTE *)this + 97) = 0;
*((_BYTE *)this + 96) = 0;
}
std::string::reserve((int *)this + 24, 0);
v6 = v26;
v7 = v27;
v8 = v28;
v26 = 0;
v27 = 0;
v28 = 0;
*v4 = v6;
*((_DWORD *)this + 25) = v7;
*((_DWORD *)this + 26) = v8;
std::string::~string((int)&v26);
*((_BYTE *)this + 94) = DS_Dictionary::getIntegerForKey(a2, (const char *)&a1i2r3e45s789g[6]) != 0;
*((_BYTE *)this + 92) = DS_Dictionary::getIntegerForKey(a2, (const char *)&a1i2r3e45s789g[7]) != 0;
*((_BYTE *)this + 93) = DS_Dictionary::getIntegerForKey(a2, "6") != 0;
*((_BYTE *)this + 95) = DS_Dictionary::getIntegerForKey(a2, (const char *)&a1i2r3e45s789g[9]) != 0;
DictForKey = (cocos2d::CCObject *)DS_Dictionary::getDictForKey(a2, (const char *)&a1i2r3e45s789g[4], 0);
v10 = DictForKey;
if ( *((cocos2d::CCObject **)this + 13) != DictForKey )
{
if ( DictForKey )
cocos2d::CCObject::retain(DictForKey);
v11 = *((cocos2d::CCObject **)this + 13);
if ( v11 )
cocos2d::CCObject::release(v11);
*((_DWORD *)this + 13) = v10;
}
v12 = 0;
v13 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*((cocos2d::CCDictionary **)this + 13));
while ( 1 )
{
result = cocos2d::CCArray::count(v13);
if ( v12 >= result )
break;
v15 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v13, v12);
CString = (const char *)cocos2d::CCString::getCString(v15);
memset(v25, 0, sizeof(v25));
v17 = CString;
v18 = strlen(CString);
std::string::__init(v25, v17, v18);
std::string::basic_string(&v26, (int)v25);
GJSmartTemplate::saveRemap((int *)this, (int)&v26);
std::string::~string((int)&v26);
v19 = cocos2d::CCDictionary::objectForKey(*((_DWORD *)this + 13), v25);
if ( v19 )
{
v20 = *(_DWORD **)(v19 + 52);
if ( *v20 )
{
v21 = (int *)v20[3];
v22 = &v21[*v20 - 1];
while ( v21 <= v22 )
{
v24 = *v21++;
v23 = v24;
if ( !v24 )
break;
std::string::operator=((unsigned __int8 *)(v23 + 52), (unsigned __int8 *)v25);
}
}
}
++v12;
std::string::~string((int)v25);
}
return result;
}