// // cocos2d::CCArray::randomObject from 0x1800072a0 to 0x180007304 (100 bytes) // // 3 xrefs: // > cocos2d::CCDictionary::randomObject @ 0x18000a9fa // > @ 0x18014cf68 // > @ 0x1801b79fc // // This function is hookable on this platform (idp: pc, 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 11:21:18 +0000 // struct cocos2d::CCObject *__fastcall cocos2d::CCArray::randomObject(cocos2d::CCArray *this) { float v3; // xmm1_4 if ( !**((_DWORD **)this + 7) ) return nullptr; v3 = (float)rand() / 32767.0; if ( v3 == 1.0 ) v3 = 0.0; return *(struct cocos2d::CCObject **)(*(_QWORD *)(*((_QWORD *)this + 7) + 16LL) + 8LL * (int)(float)((float)**((int **)this + 7) * v3)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source