// // StatsObject::init from 0x61390c to 0x613a0c (256 bytes) // // 2 xrefs: // > StatsObject::create @ 0x613a8c // > @ 0x3a290 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool StatsObject::init(StatsObject *a1, const char *a2, int a3) { const std::string *v5; // x1 cocos2d::CCString *v6; // x0 void *v7; // x0 unsigned int *v9; // x2 int v10; // w1 __int64 v11; // [xsp+40h] [xbp+40h] BYREF sub_D153B8((int)&v11, (char *)a2); v6 = (cocos2d::CCString *)cocos2d::CCString::create((cocos2d::CCString *)&v11, v5); a1->m_key = (const unsigned __int8 *)cocos2d::CCString::getCString(v6); v7 = (void *)(v11 - 24); if ( (__int64 *)(v11 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v11 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *(_DWORD *)(v11 - 8); *(_DWORD *)(v11 - 8) = v10 - 1; } if ( v10 <= 0 ) operator delete(v7); } a1->m_value = a3; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source