//
// sub_8EC3D4 from 0x8ec3d4 to 0x8ec418 (68 bytes)
//
// 19 xrefs:
// > SetupPulsePopup::updateFadeInLabel @ 0x8ec66c
// > SetupPulsePopup::updateHoldLabel @ 0x8ec7d8
// > SetupPulsePopup::updateFadeOutLabel @ 0x8ec944
// > SetupPulsePopup::updateColorLabels @ 0x8ed47c
// > SetupPulsePopup::updateColorLabels @ 0x8ed4a0
// > SetupPulsePopup::updateColorLabels @ 0x8ed4bc
// > SetupPulsePopup::colorSelectClosed @ 0x8ed950
// > SetupPulsePopup::colorSelectClosed @ 0x8ed9a0
// > SetupPulsePopup::textChanged @ 0x8edf80
// > SetupPulsePopup::textChanged @ 0x8edfa8
// > SetupPulsePopup::updateTextInputLabel @ 0x8ee4c8
// > SetupPulsePopup::updateCopyColorTextInputLabel @ 0x8ee990
// > SetupPulsePopup::init @ 0x8f195c
// > SetupPulsePopup::init @ 0x8f1988
// > SetupPulsePopup::init @ 0x8f19b4
// > SetupPulsePopup::init @ 0x8f19dc
// > SetupPulsePopup::init @ 0x8f19fc
// > SetupPulsePopup::init @ 0x8f1a30
// > SetupPulsePopup::init @ 0x8f1a68
//
// 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_8EC3D4(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;
}