//
// GJSmartTemplate::init from 0x539784 to 0x5397e4 (96 bytes)
//
// 1 xrefs:
// > GJSmartTemplate::create @ 0x53983a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool GJSmartTemplate::init(GJSmartTemplate *a1)
{
cocos2d::CCDictionary *v2; // r0
cocos2d::CCDictionary *v3; // r5
cocos2d::CCDictionary *m_prefabArrays; // r0
cocos2d::CCDictionary *v5; // r0
cocos2d::CCDictionary *v6; // r0
cocos2d::CCDictionary *v7; // r0
cocos2d::CCDictionary *v8; // r0
cocos2d::CCDictionary *v9; // r0
cocos2d::CCDictionary *v10; // r0
v2 = cocos2d::CCDictionary::create();
v3 = v2;
if ( a1->m_prefabArrays != v2 )
{
if ( v2 )
cocos2d::CCObject::retain(v2);
m_prefabArrays = a1->m_prefabArrays;
if ( m_prefabArrays )
cocos2d::CCObject::release(m_prefabArrays);
a1->m_prefabArrays = v3;
}
v5 = cocos2d::CCDictionary::create();
a1->m_remapDict1 = v5;
cocos2d::CCObject::retain(v5);
v6 = cocos2d::CCDictionary::create();
a1->m_remapDict2 = v6;
cocos2d::CCObject::retain(v6);
v7 = cocos2d::CCDictionary::create();
a1->m_remapDict3 = v7;
cocos2d::CCObject::retain(v7);
v8 = cocos2d::CCDictionary::create();
a1->m_remapDict4 = v8;
cocos2d::CCObject::retain(v8);
v9 = cocos2d::CCDictionary::create();
a1->m_remapDict5 = v9;
cocos2d::CCObject::retain(v9);
v10 = cocos2d::CCDictionary::create();
a1->m_remapDict6 = v10;
cocos2d::CCObject::retain(v10);
return 1;
}