// // ShardsPage::goToPage from 0x62b55c to 0x62b61e (194 bytes) // // 2 xrefs: // > ShardsPage::onSwitchPage @ 0x62b648 // > ShardsPage::init @ 0x62c81c // // 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:12 +0000 // int __fastcall ShardsPage::goToPage(int this, int a2) { int v2; // r6 int v4; // r9 int v5; // r8 int v6; // r0 _DWORD *v7; // r2 int *v8; // r7 int *v9; // r4 int v10; // r0 int v11; // t1 cocos2d::CCSpriteFrameCache *v12; // r0 int v13; // r4 int (__fastcall *v14)(int, int); // r6 cocos2d::CCSpriteFrameCache *v15; // r0 const char *v16; // r1 int v17; // r0 v2 = this; if ( (unsigned int)a2 <= 3 && a2 != *(_DWORD *)(this + 536) ) { *(_DWORD *)(this + 536) = a2; v4 = 0; v5 = cocos2d::CCDictionary::count(*(cocos2d::CCDictionary **)(this + 520)); while ( v4 < v5 ) { v6 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v2 + 520), v4); if ( v6 ) { v7 = *(_DWORD **)(v6 + 52); if ( *v7 ) { v8 = (int *)v7[3]; v9 = &v8[*v7 - 1]; while ( v8 <= v9 ) { v11 = *v8++; v10 = v11; if ( !v11 ) break; (*(void (__fastcall **)(int, bool))(*(_DWORD *)v10 + 172))(v10, v4 == a2); } } } ++v4; } (*(void (__fastcall **)(_DWORD, bool))(**(_DWORD **)(v2 + 524) + 172))(*(_DWORD *)(v2 + 524), a2 > 0); v12 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD, bool))(**(_DWORD **)(v2 + 528) + 172))( *(_DWORD *)(v2 + 528), a2 <= 2); v13 = *(_DWORD *)(v2 + 532); v14 = *(int (__fastcall **)(int, int))(*(_DWORD *)v13 + 580); v15 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v12); if ( a2 > 1 ) v16 = "tier2Icon_001.png"; else v16 = "tier1Icon_001.png"; v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v15, v16); return v14(v13, v17); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source