//
// GJSmartTemplate::init from 0xb0be4c to 0xb0bee4 (152 bytes)
//
// 2 xrefs:
// > GJSmartTemplate::create @ 0xb0bf60
// > ??> @ 0xddd40
//
// 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 13:01:26 +0000
//
__int64 __fastcall GJSmartTemplate::init(cocos2d::CCObject **this)
{
cocos2d::CCObject *v2; // x0
cocos2d::CCObject *v3; // x20
cocos2d::CCObject *v4; // x1
cocos2d::CCObject *v5; // x0
cocos2d::CCDictionary *v6; // x0
cocos2d::CCObject *v7; // x0
cocos2d::CCDictionary *v8; // x0
cocos2d::CCObject *v9; // x0
cocos2d::CCDictionary *v10; // x0
cocos2d::CCObject *v11; // x0
cocos2d::CCDictionary *v12; // x0
cocos2d::CCObject *v13; // x0
cocos2d::CCDictionary *v14; // x0
cocos2d::CCObject *v15; // x0
v2 = (cocos2d::CCObject *)cocos2d::CCDictionary::create((cocos2d::CCDictionary *)this);
v3 = v2;
v4 = *(this + 7);
if ( v2 != v4 )
{
if ( v2 )
{
v2 = (cocos2d::CCObject *)cocos2d::CCObject::retain(v2);
v4 = *(this + 7);
}
if ( v4 )
v2 = (cocos2d::CCObject *)cocos2d::CCObject::release(v4);
*(this + 7) = v3;
}
v5 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v2);
*(this + 8) = v5;
v6 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v5);
v7 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v6);
*(this + 9) = v7;
v8 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v7);
v9 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v8);
*(this + 10) = v9;
v10 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v9);
v11 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v10);
*(this + 11) = v11;
v12 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v11);
v13 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v12);
*(this + 12) = v13;
v14 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v13);
v15 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v14);
*(this + 13) = v15;
cocos2d::CCObject::retain(v15);
return 1;
}