//
// BrowseSmartTemplateLayer::addObjectToPage from 0xb14504 to 0xb14574 (112 bytes)
//
// 3 xrefs:
// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0xb1795c
// > BrowseSmartKeyLayer::init @ 0xb182b4
// > ??> @ 0x105568
//
// 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:31 +0000
//
__int64 __fastcall BrowseSmartTemplateLayer::addObjectToPage(
cocos2d::CCArray **this,
cocos2d::CCObject *a2,
unsigned int a3)
{
unsigned int v6; // w21
cocos2d::CCArray *v7; // x20
cocos2d::CCObject *v8; // x0
cocos2d::CCArray *v9; // x0
cocos2d::CCArray *v10; // x0
v6 = a3 + 1;
while ( 1 )
{
v9 = (cocos2d::CCArray *)cocos2d::CCArray::count(*(this + 84));
if ( (unsigned int)v9 >= v6 )
break;
v7 = *(this + 84);
v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9);
cocos2d::CCArray::addObject(v7, v8);
}
v10 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*(this + 84), a3);
return cocos2d::CCArray::addObject(v10, a2);
}