// // sub_4DC818 from 0x4dc818 to 0x4dc858 (64 bytes) // // 9 xrefs: // > SetupObjectTogglePopup::init @ 0x8e9df4 // > SetupObjectTogglePopup::init @ 0x8e9e20 // > SetupObjectTogglePopup::init @ 0x8e9e48 // > SetupObjectTogglePopup::init @ 0x8e9e64 // > SetupObjectTogglePopup::init @ 0x8e9e80 // > SetupObjectTogglePopup::init @ 0x8e9eb0 // > SetupObjectTogglePopup::init @ 0x8e9ee4 // > SetupObjectTogglePopup::init @ 0x8e9f08 // > SetupObjectTogglePopup::init @ 0x8e9f34 // // 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 sub_4DC818(void *p) { unsigned int *v1; // x3 int v2; // w2 if ( &pthread_create ) { v1 = (unsigned int *)((char *)p + 16); do v2 = __ldaxr(v1); while ( __stlxr(v2 - 1, v1) ); } else { v2 = *((_DWORD *)p + 4); *((_DWORD *)p + 4) = v2 - 1; } if ( v2 <= 0 ) operator delete(p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source