//
// GJSmartTemplate::init from 0x66e7fa to 0x66e85a (96 bytes)
//
// 1 xrefs:
// > GJSmartTemplate::create @ 0x66e8a8
//
// 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:49 +0000
//
int __fastcall GJSmartTemplate::init(cocos2d::CCObject **this)
{
cocos2d::CCObject *v2; // r0
cocos2d::CCObject *v3; // r5
cocos2d::CCObject *v4; // r0
cocos2d::CCDictionary *v5; // r0
cocos2d::CCObject *v6; // r0
cocos2d::CCDictionary *v7; // r0
cocos2d::CCObject *v8; // r0
cocos2d::CCDictionary *v9; // r0
cocos2d::CCObject *v10; // r0
cocos2d::CCDictionary *v11; // r0
cocos2d::CCObject *v12; // r0
cocos2d::CCDictionary *v13; // r0
cocos2d::CCObject *v14; // r0
v2 = (cocos2d::CCObject *)cocos2d::CCDictionary::create((cocos2d::CCDictionary *)this);
v3 = v2;
if ( *(this + 13) != v2 )
{
if ( v2 )
cocos2d::CCObject::retain(v2);
v2 = *(this + 13);
if ( v2 )
v2 = (cocos2d::CCObject *)cocos2d::CCObject::release(v2);
*(this + 13) = v3;
}
v4 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v2);
*(this + 14) = v4;
v5 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v4);
v6 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v5);
*(this + 15) = v6;
v7 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v6);
v8 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v7);
*(this + 16) = v8;
v9 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v8);
v10 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v9);
*(this + 17) = v10;
v11 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v10);
v12 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v11);
*(this + 18) = v12;
v13 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v12);
v14 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v13);
*(this + 19) = v14;
cocos2d::CCObject::retain(v14);
return 1;
}