//
// sub_4DCBE0 from 0x4dcbe0 to 0x4dcc20 (64 bytes)
//
// 26 xrefs:
// > GJRotateCommandLayer::onEasingRate @ 0x925acc
// > GJRotateCommandLayer::onEasingRate @ 0x925ae8
// > GJRotateCommandLayer::updateEasingRateLabel @ 0x925c38
// > GJRotateCommandLayer::updateEasingLabel @ 0x925e7c
// > GJRotateCommandLayer::updateEasingLabel @ 0x925e98
// > GJRotateCommandLayer::updateDurLabel @ 0x926010
// > GJRotateCommandLayer::updateDegreesLabel @ 0x926210
// > GJRotateCommandLayer::updateDegreesLabel @ 0x92622c
// > GJRotateCommandLayer::updateDegreesLabel @ 0x92625c
// > GJRotateCommandLayer::updateTimesLabel @ 0x926390
// > GJRotateCommandLayer::updateTextInputLabel @ 0x9264c4
// > GJRotateCommandLayer::updateTextInputLabel2 @ 0x9265f8
// > GJRotateCommandLayer::init @ 0x927bc4
// > GJRotateCommandLayer::init @ 0x927ef0
// > GJRotateCommandLayer::init @ 0x927f20
// > GJRotateCommandLayer::init @ 0x927f50
// > GJRotateCommandLayer::init @ 0x927f80
// > GJRotateCommandLayer::init @ 0x927fa8
// > GJRotateCommandLayer::init @ 0x927fc8
// > GJRotateCommandLayer::textChanged @ 0x928c1c
// > SetupRotateCommandPopup::init @ 0x92a0f8
// > SetupRotateCommandPopup::init @ 0x92a120
// > SetupRotateCommandPopup::init @ 0x92a144
// > SetupRotateCommandPopup::init @ 0x92a19c
// > SetupRotateCommandPopup::init @ 0x92a1c8
// > SetupRotateCommandPopup::init @ 0x92a1ec
//
// 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_4DCBE0(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);
}