// // CommunityCreditsPage::goToPage from 0x1001a2804 to 0x1001a2910 (268 bytes) // // 2 xrefs: // > CommunityCreditsPage::init @ 0x1001a2164 // > CommunityCreditsPage::onSwitchPage @ 0x1001a2800 // // 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 __fastcall CommunityCreditsPage::goToPage(CommunityCreditsPage *a1, int a2) { unsigned int v4; // w0 intptr_t v5; // x21 int v6; // w22 __int64 v7; // x24 cocos2d::CCObject *v8; // x0 cocos2d::CCObject_vtbl *v9; // x9 __int64 copyWithZone_low; // x8 void (__cdecl *v11)(cocos2d::CCObject *__hidden); // x25 unsigned __int64 v12; // x26 v4 = cocos2d::CCDictionary::count(a1->m_pageObjects); if ( (a2 & 0x80000000) == 0 && (int)v4 > a2 && a1->m_page != a2 ) { v5 = 0; v6 = v4 - 1; a1->m_page = a2; v7 = v4; do { v8 = cocos2d::CCDictionary::objectForKey(a1->m_pageObjects, v5); if ( v8 ) { v9 = v8[1].__vftable; copyWithZone_low = LODWORD(v9->copyWithZone); if ( (_DWORD)copyWithZone_low ) { v11 = v9->~CCObject_0; v12 = (unsigned __int64)v11 + 8 * copyWithZone_low - 8; do { if ( !*(_QWORD *)v11 ) break; (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)v11 + 328LL))(*(_QWORD *)v11, v5 == a2); v11 = (void (__cdecl *)(cocos2d::CCObject *__hidden))((char *)v11 + 8); } while ( (unsigned __int64)v11 <= v12 ); } } ++v5; } while ( v5 != v7 ); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_prevButton->setVisible)(a1->m_prevButton, a2 != 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_nextButton->setVisible)(a1->m_nextButton, v6 > a2); } }