// // GJRewardItem::getRandomNonMaxShardType from 0x8dd6c4 to 0x8dd7b4 (240 bytes) // // 2 xrefs: // > GameStatsManager::completedDailyLevel @ 0x8eb5f4 // > @ 0x552d0 // // 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:48 +0000 // __int64 __fastcall GJRewardItem::getRandomNonMaxShardType(GJRewardItem *this) { int v1; // w21 GameStatsManager *RandomShardType; // x0 unsigned int v3; // w20 __int64 result; // x0 GameStatsManager *v5; // x22 const char *v6; // x1 int Stat; // w22 __int64 v8[2]; // [xsp+40h] [xbp+40h] BYREF void *v9; // [xsp+50h] [xbp+50h] v1 = 10; RandomShardType = (GameStatsManager *)GJRewardItem::getRandomShardType(_stack_chk_guard); v3 = (unsigned int)RandomShardType; do { v5 = (GameStatsManager *)GameStatsManager::sharedState(RandomShardType); GJRewardItem::rewardItemToStat(v3, v8); v6 = (char *)v8 + 1; if ( (v8[0] & 1) != 0 ) v6 = (const char *)v9; Stat = GameStatsManager::getStat(v5, v6); if ( (v8[0] & 1) != 0 ) { operator delete(v9); result = v3; if ( Stat <= 99 ) return result; } else { result = v3; if ( Stat <= 99 ) return result; } RandomShardType = (GameStatsManager *)GJRewardItem::getNextShardType(result); v3 = (unsigned int)RandomShardType; --v1; } while ( v1 ); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source