//
// CustomSongWidget::updateSongObject from 0x86ae30 to 0x86aed4 (164 bytes)
//
// 7 xrefs:
// > CustomSongWidget::init @ 0x86ba24
// > CustomSongWidget::loadSongInfoFinished @ 0x86de0c
// > CustomSongLayer::dropDownLayerWillClose @ 0x97e7ac
// > CustomSongLayer::musicBrowserClosed @ 0x97e820
// > CustomSongLayer::onSearch @ 0x97f45c
// > SongSelectNode::onSongMode @ 0x97fbd4
// > ??> @ 0x6cd78
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:55:42 +0000
//
__int64 __fastcall CustomSongWidget::updateSongObject(CustomSongWidget *this, SongInfoObject *a2)
{
__int64 v4; // x0
SongInfoObject *v5; // x0
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 47) + 344LL))(*((_QWORD *)this + 47), 0);
v4 = *((_QWORD *)this + 60);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0);
v5 = *((SongInfoObject **)this + 42);
if ( a2 != v5 )
{
if ( a2 )
{
cocos2d::CCObject::retain(a2);
v5 = *((SongInfoObject **)this + 42);
}
if ( v5 )
cocos2d::CCObject::release(v5);
*((_QWORD *)this + 42) = a2;
v5 = a2;
}
if ( v5 )
*((_DWORD *)this + 126) = *((_DWORD *)v5 + 79);
else
*((_DWORD *)this + 126) = 0;
return CustomSongWidget::updateSongInfo(this);
}