// // cocos2d::CCPrettyPrinter::~CCPrettyPrinter from 0xad4cb8 to 0xad4dd0 (280 bytes) // // 2 xrefs: // > @ 0xa0a10 // > @ 0x1200cf8 // // 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 // void __fastcall cocos2d::CCPrettyPrinter::~CCPrettyPrinter(cocos2d::CCPrettyPrinter *this) { __int64 v2; // x1 void *v3; // x0 __int64 v4; // x1 void *v5; // x0 unsigned int *v6; // x1 int v7; // w2 unsigned int *v8; // x1 int v9; // w2 v2 = *((_QWORD *)this + 3); this->__vftable = (cocos2d::CCPrettyPrinter_vtbl *)off_1200CF0; v3 = (void *)(v2 - 24); if ( (__int64 *)(v2 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v6 = (unsigned int *)(v2 - 8); do v7 = __ldaxr(v6); while ( __stlxr(v7 - 1, v6) ); } else { v7 = *(_DWORD *)(v2 - 8); *(_DWORD *)(v2 - 8) = v7 - 1; } if ( v7 <= 0 ) operator delete(v3); } v4 = *((_QWORD *)this + 2); v5 = (void *)(v4 - 24); if ( (__int64 *)(v4 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v4 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(_DWORD *)(v4 - 8); *(_DWORD *)(v4 - 8) = v9 - 1; } if ( v9 <= 0 ) operator delete(v5); } operator delete(this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source