//
// CustomSongWidget::updateSongObject from 0x4e3fa4 to 0x4e3ffe (90 bytes)
//
// 6 xrefs:
// > CustomSongWidget::init @ 0x4e4c88
// > CustomSongWidget::loadSongInfoFinished @ 0x4e5ed6
// > CustomSongLayer::dropDownLayerWillClose @ 0x57b014
// > CustomSongLayer::musicBrowserClosed @ 0x57b054
// > SongSelectNode::onSongMode @ 0x57bb76
// > CustomSongLayer::onSearch @ 0x57ceba
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:51:03 +0000
//
int __fastcall CustomSongWidget::updateSongObject(CustomSongWidget *this, SongInfoObject *a2)
{
int v4; // r0
cocos2d::CCObject *v5; // r0
int v6; // r3
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 73) + 172))(*((_DWORD *)this + 73), 0);
v4 = *((_DWORD *)this + 86);
if ( v4 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v4 + 172))(v4, 0);
if ( *((SongInfoObject **)this + 68) != a2 )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
v5 = *((cocos2d::CCObject **)this + 68);
if ( v5 )
cocos2d::CCObject::release(v5);
*((_DWORD *)this + 68) = a2;
}
v6 = *((_DWORD *)this + 68);
if ( v6 )
v6 = *(_DWORD *)(v6 + 264);
*((_DWORD *)this + 90) = v6;
return CustomSongWidget::updateSongInfo(this);
}