// // SecretLayer4::selectAThread from 0xa93e34 to 0xa93ef0 (188 bytes) // // 2 xrefs: // > SecretLayer4::getMessage @ 0xa96238 // > @ 0xdaad0 // // 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:00:42 +0000 // __int64 __fastcall SecretLayer4::selectAThread(SecretLayer4 *this) { cocos2d::CCArray *v2; // x0 int v3; // w20 cocos2d::CCArray *v4; // x21 unsigned int v5; // w20 __int64 result; // x0 __int64 v7; // x0 __int64 v8; // x0 int v9; // w20 v2 = (cocos2d::CCArray *)cocos2d::CCDictionary::allKeys(*((cocos2d::CCDictionary **)this + 60)); v3 = *((_DWORD *)this + 108); v4 = v2; if ( v3 < 0 ) { v9 = cocos2d::CCArray::count(v2); v5 = llroundf((float)(unsigned int)(v9 - 1) * (float)((float)rand() * 4.6566e-10)); } else { v5 = v3 + 1; } *((_DWORD *)this + 108) = v5; if ( v5 >= (unsigned int)cocos2d::CCArray::count(v4) ) *((_DWORD *)this + 108) = 0; result = cocos2d::CCDictionary::count(*((cocos2d::CCDictionary **)this + 60)); if ( (_DWORD)result ) { v7 = cocos2d::CCArray::objectAtIndex(v4, *((_DWORD *)this + 108)); v8 = cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 60), *(int *)(v7 + 56)); result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 64LL))(v8); *((_DWORD *)this + 110) = result; } *((_DWORD *)this + 111) = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source