//
// BrowseSmartTemplateLayer::addObjectToPage from 0x100072428 to 0x1000724a0 (120 bytes)
//
// 2 xrefs:
// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x100072004
// > BrowseSmartKeyLayer::init @ 0x100072fa4
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall BrowseSmartTemplateLayer::addObjectToPage(BrowseSmartTemplateLayer *a1, cocos2d::CCObject *a2, int a3)
{
__int64 v3; // x20
__int64 i; // x0
cocos2d::CCArray *m_pages; // x22
__int64 v8; // x0
__int64 v9; // x0
v3 = *(_QWORD *)&a3;
for ( i = sub_10024A36C(a1->m_pages); (unsigned int)i < (int)v3 + 1; i = sub_10024A36C(a1->m_pages) )
{
m_pages = a1->m_pages;
v8 = sub_10024A15C(i);
sub_10024A2D0(m_pages, v8);
}
v9 = sub_10024A388(a1->m_pages, v3);
sub_10024A2D0(v9, a2);
}