// // BrowseSmartTemplateLayer::goToPage from 0x672d24 to 0x672de4 (192 bytes) // // 3 xrefs: // > BrowseSmartTemplateLayer::onClick @ 0x672e10 // > BrowseSmartKeyLayer::init @ 0x674f48 // > BrowseSmartTemplateLayer::init @ 0x675652 // // 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 // unsigned int __fastcall BrowseSmartTemplateLayer::goToPage(BrowseSmartTemplateLayer *this, unsigned int a2) { cocos2d::CCArray *v3; // r0 unsigned int i; // r5 unsigned int v5; // r6 _BOOL4 v6; // r7 cocos2d::CCArray *v7; // r9 int v8; // r0 int v9; // r8 int v10; // r1 *((_DWORD *)this + 132) = a2; v3 = *((cocos2d::CCArray **)this + 131); if ( (a2 & 0x80000000) == 0 ) { if ( a2 > cocos2d::CCArray::count(v3) - 1 ) *((_DWORD *)this + 132) = 0; } else { *((_DWORD *)this + 132) = cocos2d::CCArray::count(v3) - 1; } for ( i = 0; i < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 131)); ++i ) { v5 = 0; v6 = *((_DWORD *)this + 132) == i; v7 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 131), i); while ( v5 < cocos2d::CCArray::count(v7) ) { v8 = cocos2d::CCArray::objectAtIndex(v7, v5++); v9 = v8; (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v8 + 172))(v8, v6); (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v9 + 528))(v9, v6); } } if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 131)) > 1u ) return BrowseSmartTemplateLayer::updateDots(this, v10); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 172))(*((_DWORD *)this + 134), 0); return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 133) + 172))(*((_DWORD *)this + 133), 0); }