// // ShardsPage::goToPage from 0x14048cb70 to 0x14048ccb6 (326 bytes) // // 4 xrefs: // > ShardsPage::onSwitchPage @ 0x14048cb6a // > @ 0x1406a6a34 // > @ 0x1406a6a6c // > @ 0x1406dbf00 // // 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 ShardsPage::goToPage(ShardsPage *a1, int a2) { int v4; // edi _BOOL8 v5; // rdx int v6; // r12d __int64 v7; // r14 struct cocos2d::CCObject *v8; // rax cocos2d::CCObject_vtbl *v9; // rbx __int64 copyWithZone_low; // rax bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // rbx bool (__fastcall *i)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // rsi _BOOL8 v13; // rdx __int64 v14; // rcx const char *v15; // rbx cocos2d::CCSprite_vtbl *v16; // rdi cocos2d::CCSpriteFrameCache *v17; // rax struct cocos2d::CCSpriteFrame *v18; // rax if ( (unsigned int)a2 <= 3 && a2 != a1->m_page ) { a1->m_page = a2; v4 = 0; v6 = cocos2d::CCDictionary::count(a1->m_pages); if ( v6 > 0 ) { v7 = 0; do { v8 = cocos2d::CCDictionary::objectForKey(a1->m_pages, v7); if ( v8 ) { v9 = v8[1].__vftable; copyWithZone_low = LODWORD(v9->copyWithZone); if ( (_DWORD)copyWithZone_low ) { isEqual = v9->isEqual; for ( i = (bool (__fastcall *)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *))((char *)isEqual + 8 * copyWithZone_low - 8); (unsigned __int64)isEqual <= (unsigned __int64)i; isEqual = (bool (__fastcall *)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *))((char *)isEqual + 8) ) { if ( !*(_QWORD *)isEqual ) break; LOBYTE(v5) = v4 == a2; (*(void (__fastcall **)(_QWORD, _BOOL8))(**(_QWORD **)isEqual + 320LL))(*(_QWORD *)isEqual, v5); } } } ++v4; ++v7; } while ( v4 < v6 ); } LOBYTE(v5) = a2 > 0; a1->m_prevButton->setVisible(a1->m_prevButton, v5); LOBYTE(v13) = a2 < 3; a1->m_nextButton->setVisible(a1->m_nextButton, v13); v15 = "tier1Icon_001.png"; v16 = a1->m_tierSprite->__vftable; if ( a2 > 1 ) v15 = "tier2Icon_001.png"; v17 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v14); v18 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, v15); v16->setDisplayFrame(a1->m_tierSprite, v18); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source