//
// sub_773DA0 from 0x773da0 to 0x773de2 (66 bytes)
//
// 3 xrefs:
// > ??> @ 0x775e36
// > ??> @ 0x775eb8
// > sub_7762CC @ 0x776434
//
// 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_773DA0(unsigned int *a1)
{
unsigned int *v1; // r2
int v2; // r3
int v3; // r3
if ( !&pthread_create )
{
v3 = a1[2];
a1[2] = v3 - 1;
if ( v3 > 0 )
return;
LABEL_7:
operator delete(a1);
return;
}
v1 = a1 + 2;
__dmb(0xFu);
do
v2 = __ldrex(v1);
while ( __strex(v2 - 1, v1) );
__dmb(0xFu);
if ( v2 <= 0 )
goto LABEL_7;
}