// // ShardsPage::goToPage from 0xaa3b70 to 0xaa3cc0 (336 bytes) // // 3 xrefs: // > ShardsPage::onSwitchPage @ 0xaa3d00 // > ShardsPage::init @ 0xaa4cc8 // > @ 0xa3d68 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:00:49 +0000 // __int64 __fastcall ShardsPage::goToPage(__int64 this, int a2) { __int64 v2; // x24 cocos2d::CCDictionary *v3; // x0 __int64 v5; // x20 int v6; // w23 __int64 v7; // x0 unsigned int *v8; // x0 __int64 *v9; // x19 __int64 *v10; // x21 __int64 i; // x0 cocos2d::CCSpriteFrameCache **v12; // x19 __int64 (__fastcall *v13)(cocos2d::CCSpriteFrameCache **, __int64); // x20 cocos2d::CCSpriteFrameCache *v14; // x0 const char *v15; // x1 __int64 v16; // x0 if ( (unsigned int)a2 <= 3 && *(_DWORD *)(this + 696) != a2 ) { v2 = this; v3 = *(cocos2d::CCDictionary **)(this + 664); v5 = 0; *(_DWORD *)(v2 + 696) = a2; v6 = cocos2d::CCDictionary::count(v3); if ( v6 > 0 ) { do { v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v2 + 664), v5); if ( v7 ) { v8 = *(unsigned int **)(v7 + 56); if ( *v8 ) { v9 = *((__int64 **)v8 + 2); v10 = &v9[*v8 - 1]; if ( v9 <= v10 ) { for ( i = *v9; *v9; i = *v9 ) { ++v9; (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)i + 344LL))(i, a2 == (_DWORD)v5); if ( v10 < v9 ) break; } } } } ++v5; } while ( v6 > (int)v5 ); } (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v2 + 672) + 344LL))(*(_QWORD *)(v2 + 672), a2 > 0); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v2 + 680) + 344LL))(*(_QWORD *)(v2 + 680), a2 <= 2); v12 = *(cocos2d::CCSpriteFrameCache ***)(v2 + 688); v13 = *((__int64 (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v12 + 145); v14 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v12); if ( a2 <= 1 ) v15 = "tier1Icon_001.png"; else v15 = "tier2Icon_001.png"; v16 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, v15); return v13(v12, v16); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source