//
// SetupSmartBlockLayer::onCreateTemplate from 0x67270e to 0x67275a (76 bytes)
//
// 0 xrefs:
//
// 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:53 +0000
//
int __fastcall SetupSmartBlockLayer::onCreateTemplate(cocos2d::CCObject **this, cocos2d::CCObject *a2)
{
cocos2d::CCArray *v3; // r0
cocos2d::CCObject *v4; // r1
cocos2d::CCArray *v5; // r5
cocos2d::CCArray *v6; // r1
GameLevelManager *v7; // r0
GameManager *ActiveSmartTemplate; // r6
int v9; // r0
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)this);
v4 = *(this + 134);
v5 = v3;
if ( v4 )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(v3, v4);
}
else
{
v6 = *(this + 135);
if ( v6 )
v3 = (cocos2d::CCArray *)cocos2d::CCArray::addObjectsFromArray(v3, v6);
}
v7 = (GameLevelManager *)GameLevelManager::sharedState(v3);
ActiveSmartTemplate = (GameManager *)GameLevelManager::getActiveSmartTemplate(v7);
v9 = GameManager::sharedState(ActiveSmartTemplate);
EditorUI::addObjectsToSmartTemplate(
*(cocos2d::CCDictionary **)(*(_DWORD *)(v9 + 408) + 11856),
ActiveSmartTemplate,
v5);
return SetupSmartBlockLayer::onClose(this, nullptr);
}