//
// MusicBrowser::onChangelog from 0xb84624 to 0xb84780 (348 bytes)
//
// 3 xrefs:
// > ??> @ 0x945b8
// > sub_B85DD0 @ 0xb86c84
// > ??> @ 0x1544020
//
// 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 13:02:30 +0000
//
__int64 __fastcall MusicBrowser::onChangelog(MusicBrowser *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
MusicChangelogPopup *v4; // x20
cocos2d::CCArray *v5; // x1
void (__fastcall *v6)(MusicBrowser *, __int64, __int64); // x23
__int64 v7; // x0
__int64 v8; // x0
__int64 v10[2]; // [xsp+48h] [xbp+48h] BYREF
void *v11; // [xsp+58h] [xbp+58h]
__int64 v12[2]; // [xsp+60h] [xbp+60h] BYREF
void *v13; // [xsp+70h] [xbp+70h]
v3 = MusicDownloadManager::sharedState(_stack_chk_guard);
v4 = *(MusicChangelogPopup **)(v3 + 456);
if ( v4 && (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v3 + 456)) )
{
v8 = MusicChangelogPopup::create(v4, v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);
return _stack_chk_guard;
}
v6 = *(void (__fastcall **)(MusicBrowser *, __int64, __int64))(*(_QWORD *)this + 464LL);
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, "No changelog available.", 0x17u);
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
std::string::__init(v12, &byte_11B8890, 0);
v7 = TextAlertPopup::create((char *)v10, 150, (char *)v12, 1.0, 0.5);
v6(this, v7, 100);
if ( (v12[0] & 1) != 0 )
{
operator delete(v13);
if ( (v10[0] & 1) == 0 )
return _stack_chk_guard;
goto LABEL_5;
}
if ( (v10[0] & 1) != 0 )
LABEL_5:
operator delete(v11);
return _stack_chk_guard;
}