// // cocos2d::CCArray::randomObject from 0xd46ea4 to 0xd46f1c (120 bytes) // // 4 xrefs: // > LevelTools::sortSpeedObjects @ 0x72cf6c // > CurrencyRewardLayer::createObjectsFull @ 0xa6a668 // > cocos2d::CCDictionary::randomObject @ 0xd43b58 // > @ 0x7ec58 // // 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:07:35 +0000 // __int64 __fastcall cocos2d::CCArray::randomObject(cocos2d::CCArray *this) { float v2; // s1 if ( !**((_DWORD **)this + 7) ) return 0; v2 = (float)rand() * 4.6566e-10; if ( v2 == 1.0 ) v2 = 0.0; return *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 16LL) + 8LL * (int)(float)((float)**((unsigned int **)this + 7) * v2)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source