// // GJRewardItem::getRewardCount from 0x8cd2f8 to 0x8cd398 (160 bytes) // // 18 xrefs: // > GameStatsManager::recountSpecialStats @ 0x8ebbd8 // > GameStatsManager::recountSpecialStats @ 0x8ebbe8 // > GameStatsManager::recountSpecialStats @ 0x8ebbf8 // > GameStatsManager::recountSpecialStats @ 0x8ebc10 // > GameStatsManager::recountSpecialStats @ 0x8ebc28 // > GameStatsManager::recountSpecialStats @ 0x8ebc40 // > GameStatsManager::recountSpecialStats @ 0x8ebc58 // > GameStatsManager::recountSpecialStats @ 0x8ebc70 // > GameStatsManager::recountSpecialStats @ 0x8ebc88 // > GameStatsManager::recountSpecialStats @ 0x8ebca0 // > GameStatsManager::recountSpecialStats @ 0x8ebcb8 // > GameStatsManager::recountSpecialStats @ 0x8ebcc8 // > GameStatsManager::recountSpecialStats @ 0x8ebcd8 // > GameStatsManager::recountSpecialStats @ 0x8ebce8 // > RewardUnlockLayer::playRewardEffect @ 0xa87c14 // > RewardUnlockLayer::playRewardEffect @ 0xa87c24 // > RewardUnlockLayer::playRewardEffect @ 0xa87c34 // > @ 0x100d50 // // 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 12:56:37 +0000 // __int64 __fastcall GJRewardItem::getRewardCount(__int64 a1, int a2) { cocos2d::CCArray *v3; // x0 int v5; // w0 unsigned int v6; // w1 unsigned int v7; // w22 unsigned int v8; // w19 __int64 v9; // x0 bool v10; // cf v3 = *(cocos2d::CCArray **)(a1 + 72); if ( !v3 ) return 0; v5 = cocos2d::CCArray::count(v3); v6 = 0; v7 = 0; v8 = 1; if ( v5 ) { do { v9 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 72), v6); if ( *(_DWORD *)(v9 + 56) == a2 ) v7 += *(_DWORD *)(v9 + 68); v10 = v8 >= (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 72)); v6 = v8++; } while ( !v10 ); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source