// // sub_6CA74C from 0x6ca74c to 0x6ca790 (68 bytes) // // 18 xrefs: // > CreatorLayer::onAdventureMap @ 0x6ca8ec // > CreatorLayer::onMultiplayer @ 0x6cadec // > CreatorLayer::onMultiplayer @ 0x6cae08 // > CreatorLayer::onMultiplayer @ 0x6cae24 // > CreatorLayer::onMultiplayer @ 0x6cae58 // > CreatorLayer::onSecretVault @ 0x6cb248 // > CreatorLayer::onSecretVault @ 0x6cb274 // > CreatorLayer::onSecretVault @ 0x6cb29c // > CreatorLayer::onTreasureRoom @ 0x6cb8fc // > CreatorLayer::onTreasureRoom @ 0x6cb92c // > CreatorLayer::onTreasureRoom @ 0x6cb954 // > CreatorLayer::onTreasureRoom @ 0x6cb970 // > CreatorLayer::onTreasureRoom @ 0x6cb98c // > CreatorLayer::onOnlyFullVersion @ 0x6cbd80 // > CreatorLayer::onOnlyFullVersion @ 0x6cbdac // > CreatorLayer::onOnlyFullVersion @ 0x6cbdc8 // > CreatorLayer::init @ 0x6ccc88 // > CreatorLayer::init @ 0x6ccca4 // // 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_6CA74C(void *p) { unsigned int *v1; // x3 int v2; // w2 int v3; // w2 if ( !&pthread_create ) { v3 = *((_DWORD *)p + 4); *((_DWORD *)p + 4) = v3 - 1; if ( v3 > 0 ) return; LABEL_7: operator delete(p); return; } v1 = (unsigned int *)((char *)p + 16); do v2 = __ldaxr(v1); while ( __stlxr(v2 - 1, v1) ); if ( v2 <= 0 ) goto LABEL_7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source