//
// sub_4DD2A0 from 0x4dd2a0 to 0x4dd2e0 (64 bytes)
//
// 74 xrefs:
// > CommunityCreditNode::create @ 0x9701d8
// > CommunityCreditsPage::init @ 0x973594
// > CommunityCreditsPage::init @ 0x9735bc
// > CommunityCreditsPage::init @ 0x9735e0
// > CommunityCreditsPage::init @ 0x973604
// > CommunityCreditsPage::init @ 0x973628
// > CommunityCreditsPage::init @ 0x97364c
// > CommunityCreditsPage::init @ 0x973670
// > CommunityCreditsPage::init @ 0x973694
// > CommunityCreditsPage::init @ 0x9736b8
// > CommunityCreditsPage::init @ 0x9736dc
// > CommunityCreditsPage::init @ 0x973700
// > CommunityCreditsPage::init @ 0x973724
// > CommunityCreditsPage::init @ 0x973748
// > CommunityCreditsPage::init @ 0x97376c
// > CommunityCreditsPage::init @ 0x973790
// > CommunityCreditsPage::init @ 0x9737b4
// > CommunityCreditsPage::init @ 0x9737d8
// > CommunityCreditsPage::init @ 0x9737fc
// > CommunityCreditsPage::init @ 0x973820
// > CommunityCreditsPage::init @ 0x973844
// > CommunityCreditsPage::init @ 0x973868
// > CommunityCreditsPage::init @ 0x97388c
// > CommunityCreditsPage::init @ 0x9738b0
// > CommunityCreditsPage::init @ 0x9738d4
// > CommunityCreditsPage::init @ 0x9738f8
// > CommunityCreditsPage::init @ 0x97391c
// > CommunityCreditsPage::init @ 0x973940
// > CommunityCreditsPage::init @ 0x973964
// > CommunityCreditsPage::init @ 0x973988
// > CommunityCreditsPage::init @ 0x9739ac
// > CommunityCreditsPage::init @ 0x9739d0
// > CommunityCreditsPage::init @ 0x9739f4
// > CommunityCreditsPage::init @ 0x973a18
// > CommunityCreditsPage::init @ 0x973a3c
// > CommunityCreditsPage::init @ 0x973a60
// > CommunityCreditsPage::init @ 0x973a84
// > CommunityCreditsPage::init @ 0x973b78
// > CommunityCreditsPage::init @ 0x973ba0
// > CommunityCreditsPage::init @ 0x973bc4
// > CommunityCreditsPage::init @ 0x973be8
// > CommunityCreditsPage::init @ 0x973c0c
// > CommunityCreditsPage::init @ 0x973c30
// > CommunityCreditsPage::init @ 0x973c54
// > CommunityCreditsPage::init @ 0x973c78
// > CommunityCreditsPage::init @ 0x973c9c
// > CommunityCreditsPage::init @ 0x973cc0
// > CommunityCreditsPage::init @ 0x973ce4
// > CommunityCreditsPage::init @ 0x973d08
// > CommunityCreditsPage::init @ 0x973d2c
// > CommunityCreditsPage::init @ 0x973d50
// > CommunityCreditsPage::init @ 0x973d74
// > CommunityCreditsPage::init @ 0x973d98
// > CommunityCreditsPage::init @ 0x973dbc
// > CommunityCreditsPage::init @ 0x973de0
// > CommunityCreditsPage::init @ 0x973e04
// > CommunityCreditsPage::init @ 0x973e28
// > CommunityCreditsPage::init @ 0x973e4c
// > CommunityCreditsPage::init @ 0x973e70
// > CommunityCreditsPage::init @ 0x973e94
// > CommunityCreditsPage::init @ 0x973eb8
// > CommunityCreditsPage::init @ 0x973edc
// > CommunityCreditsPage::init @ 0x973f00
// > CommunityCreditsPage::init @ 0x973f24
// > CommunityCreditsPage::init @ 0x973f48
// > CommunityCreditsPage::init @ 0x973f6c
// > CommunityCreditsPage::init @ 0x973f90
// > CommunityCreditsPage::init @ 0x973fb4
// > CommunityCreditsPage::init @ 0x973fd8
// > CommunityCreditsPage::init @ 0x973ffc
// > CommunityCreditsPage::init @ 0x974020
// > CommunityCreditsPage::init @ 0x974044
// > CommunityCreditsPage::init @ 0x974068
// > CommunityCreditsPage::init @ 0x97408c
//
// 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_4DD2A0(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);
}