// // cocos2d::CCArray::createWithContentsOfFileThreadSafe from 0xad3d88 to 0xad3e68 (224 bytes) // // 2 xrefs: // > cocos2d::CCArray::createWithContentsOfFile @ 0xad3e74 // > @ 0x883c8 // // 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 // __int64 __fastcall cocos2d::CCArray::createWithContentsOfFileThreadSafe(cocos2d::CCArray *this, const char *a2) { cocos2d::CCFileUtils *v2; // x21 void (__fastcall *v3)(cocos2d::CCFileUtils *__hidden); // x22 __int64 v4; // x20 void *v5; // x0 unsigned int *v7; // x2 int v8; // w1 __int64 v10; // [xsp+50h] [xbp+50h] BYREF v2 = cocos2d::CCFileUtils::sharedFileUtils(); v3 = v2->__vftable[1].~CCFileUtils; sub_D153B8((int)&v10, (char *)this); v4 = ((__int64 (__fastcall *)(cocos2d::CCFileUtils *, __int64 *))v3)(v2, &v10); v5 = (void *)(v10 - 24); if ( (__int64 *)(v10 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v10 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *(_DWORD *)(v10 - 8); *(_DWORD *)(v10 - 8) = v8 - 1; } if ( v8 <= 0 ) operator delete(v5); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source