//
// CustomSongWidget::loadSongInfoFinished from 0x100122894 to 0x100122978 (228 bytes)
//
// 2 xrefs:
// > sub_100122978 @ 0x10012297c
// > ??> @ 0x1008d5a10
//
// 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 10:59:16 +0000
//
void __fastcall CustomSongWidget::loadSongInfoFinished(__int64 a1, __int64 a2)
{
int v4; // w8
__int64 *i; // x9
int v6; // w10
int v7; // w9
__int64 v9; // x20
__int64 v10; // x0
__int64 v11; // x0
__int64 v12; // x0
int v13; // [xsp+1Ch] [xbp-14h] BYREF
v4 = *(_DWORD *)(a2 + 316);
for ( i = *(__int64 **)(a1 + 640); i; i = (__int64 *)*i )
{
v6 = *((_DWORD *)i + 7);
if ( v4 >= v6 )
{
if ( v6 >= v4 )
{
v13 = *(_DWORD *)(a2 + 316);
v11 = sub_10005484C((_QWORD *)(a1 + 632), &v13);
v12 = MusicDownloadManager::sharedState(v11);
MusicDownloadManager::downloadSong(v12, *(unsigned int *)(a2 + 316));
return;
}
++i;
}
}
v7 = *(_DWORD *)(a1 + 504);
if ( v7 == v4 && v7 != 0 )
{
CustomSongWidget::updateSongObject(a1, a2);
if ( *(_BYTE *)(a1 + 499) == 1 )
CustomSongWidget::startDownload(a1);
v9 = cocos2d::CCDelayTime::create(0.0);
cocos2d::CCCallFunc::create(a1, CustomSongWidget::updateSongInfo, 0);
v10 = sub_10021D420(v9);
cocos2d::CCNode::runAction(a1, v10);
}
}