// // BrowseSmartTemplateLayer::addObjectToPage from 0x14045a850 to 0x14045a8d9 (137 bytes) // // 3 xrefs: // > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x14045a7fd // > BrowseSmartKeyLayer::init @ 0x14045b9ea // > @ 0x1406dab14 // // 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 BrowseSmartTemplateLayer::addObjectToPage(BrowseSmartTemplateLayer *a1, cocos2d::CCObject *a2, int a3) { unsigned int v4; // edi __int64 v7; // rcx struct cocos2d::CCObject *v8; // rax cocos2d::CCArray *v9; // rax v4 = a3 + 1; while ( cocos2d::CCArray::count(a1->m_pages) < v4 ) { v8 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(v7); cocos2d::CCArray::addObject(a1->m_pages, v8); } v9 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pages, a3); cocos2d::CCArray::addObject(v9, a2); }