//
// sub_4DBA38 from 0x4dba38 to 0x4dba78 (64 bytes)
//
// 37 xrefs:
// > CustomSongWidget::onDelete @ 0x74266c
// > CustomSongWidget::onPlayback @ 0x742960
// > CustomSongWidget::onPlayback @ 0x74297c
// > CustomSongWidget::onPlayback @ 0x7429ac
// > CustomSongWidget::onPlayback @ 0x7429c8
// > CustomSongWidget::onMore @ 0x743380
// > CustomSongWidget::onMore @ 0x74339c
// > CustomSongWidget::onMore @ 0x7433b8
// > CustomSongWidget::onMore @ 0x7433f4
// > CustomSongWidget::onMore @ 0x743418
// > CustomSongWidget::onMore @ 0x74343c
// > CustomSongWidget::onMore @ 0x743458
// > CustomSongWidget::onMore @ 0x74347c
// > CustomSongWidget::onMore @ 0x7434d0
// > CustomSongWidget::onMore @ 0x7434ec
// > CustomSongWidget::onMore @ 0x743508
// > CustomSongWidget::onMore @ 0x743524
// > CustomSongWidget::onMore @ 0x743540
// > CustomSongWidget::positionInfoObjects @ 0x743d64
// > CustomSongWidget::positionInfoObjects @ 0x743d90
// > CustomSongWidget::updatePlaybackBtn @ 0x743ff8
// > CustomSongWidget::updateSongInfo @ 0x745584
// > CustomSongWidget::updateSongInfo @ 0x7455a0
// > CustomSongWidget::updateSongInfo @ 0x7455bc
// > CustomSongWidget::updateSongInfo @ 0x7455ec
// > CustomSongWidget::updateSongInfo @ 0x745608
// > CustomSongWidget::updateSongInfo @ 0x745648
// > CustomSongWidget::getSongInfoIfUnloaded @ 0x746b14
// > CustomSongWidget::updateMultiAssetInfo @ 0x7473ac
// > CustomSongWidget::updateMultiAssetInfo @ 0x7473c8
// > CustomSongWidget::updateMultiAssetInfo @ 0x7473e4
// > CustomSongWidget::updateMultiAssetInfo @ 0x747400
// > CustomSongWidget::updateMultiAssetInfo @ 0x747428
// > CustomSongWidget::updateMultiAssetInfo @ 0x7474b8
// > CustomSongWidget::deleteSong @ 0x747680
// > sub_74769C @ 0x7478c0
// > CustomSongWidget::updateWithMultiAssets @ 0x748e00
//
// 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_4DBA38(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);
}