//
// BrowseSmartKeyLayer::createTemplateObjects from 0x53fa40 to 0x53fb10 (208 bytes)
//
// 1 xrefs:
// > BrowseSmartKeyLayer::onButton @ 0x53fd88
//
// 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
//
void BrowseSmartKeyLayer::createTemplateObjects(BrowseSmartKeyLayer *a1)
{
cocos2d::CCArray *AllSelectedBlocks; // r8
unsigned int i; // r5
int v4; // r9
int v5; // r0
void (__fastcall *addChild_0)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // r8
cocos2d::CCNode *v7; // r0
char v8; // [sp+14h] [bp-Ch] BYREF
_BYTE v9[4]; // [sp+18h] [bp-8h] BYREF
AllSelectedBlocks = BrowseSmartKeyLayer::getAllSelectedBlocks(a1);
if ( cocos2d::CCArray::count(AllSelectedBlocks) )
{
for ( i = 0; i < cocos2d::CCArray::count(AllSelectedBlocks); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(AllSelectedBlocks, i);
sub_775C20(v9);
v5 = (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 32))(v4);
BrowseSmartTemplateLayer::createPrefab((int)a1, (int)v9, v5);
sub_774008(v9);
}
addChild_0 = a1->addChild_0;
sub_776584((int)&v8, "Added to editor");
sub_776584((int)v9, (char *)&unk_939830);
v7 = TextAlertPopup::create((TextAlertPopup *)&v8, (std::string)1056964608, 0.6, 150, (int)v9);
addChild_0(a1, v7, 100);
sub_774008(v9);
sub_774008(&v8);
}
}