//
// SFXBrowser::onChangelog from 0x14061eeb0 to 0x14061f207 (855 bytes)
//
// 2 xrefs:
// > SFXBrowser::init @ 0x140617890
// > ??> @ 0x14093032c
//
// This function is hookable on this platform (idp: pc, 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 11:35:21 +0000
//
// Hidden C++ exception states: #wind=3
__int64 __fastcall SFXBrowser::onChangelog(__int64 *a1)
{
__int64 v2; // rax
__int64 v3; // rbx
__int128 *v4; // rsi
int v5; // r9d
__int64 v6; // rcx
__int64 v7; // rax
struct cocos2d::CCSprite *v8; // rax
int v9; // ebx
cocos2d::CCObject *v10; // rdi
__int64 v11; // rbx
__int64 v12; // rax
__int64 (__fastcall *v13)(__int64); // rdx
__int64 v15; // rbx
__int64 v16; // rdx
__int64 v17; // r8
cocos2d::CCNode *v18; // rax
__int128 v19; // [rsp+30h] [rbp-48h] BYREF
__int64 v20; // [rsp+40h] [rbp-38h]
__int64 v21; // [rsp+48h] [rbp-30h]
__int128 v22; // [rsp+50h] [rbp-28h] BYREF
__int64 v23; // [rsp+60h] [rbp-18h]
__int64 v24; // [rsp+68h] [rbp-10h]
__int128 *v25; // [rsp+90h] [rbp+18h] BYREF
char v26; // [rsp+98h] [rbp+20h] BYREF
v2 = qword_14090C070;
if ( !qword_14090C070 )
{
v25 = (__int128 *)operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v25);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v2 = qword_14090C070;
}
v3 = *(_QWORD *)(v2 + 424);
if ( v3 && cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 424)) )
{
v4 = (__int128 *)operator new(0x2A8u);
v25 = v4;
memset(v4, 0, 0x2A8u);
sub_14047F7B0(v4);
*(_QWORD *)v4 = &SFXChangelogPopup::`vftable';
*((_QWORD *)v4 + 40) = &SFXChangelogPopup::`vftable';
*((_QWORD *)v4 + 41) = &SFXChangelogPopup::`vftable';
*((_QWORD *)v4 + 42) = &SFXChangelogPopup::`vftable';
*((_QWORD *)v4 + 43) = &SFXChangelogPopup::`vftable';
*((_QWORD *)v4 + 44) = &SFXChangelogPopup::`vftable';
*((_QWORD *)v4 + 51) = &SFXChangelogPopup::`vftable';
*((_QWORD *)v4 + 54) = &SFXChangelogPopup::`vftable';
*((_QWORD *)v4 + 68) = &SFXChangelogPopup::`vftable';
if ( (unsigned __int8)ScrollViewPopup::initPopup(
(_DWORD)v4,
v3,
(unsigned int)"SFX Changelog",
v5,
1135869952,
1131413504) )
{
v7 = cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7, &v25);
v8 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
v9 = (int)v8;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v8 + 160LL))(v8);
v10 = CCMenuItemSpriteExtra::create(v9, 0, (int)v4, (__int64)SFXChangelogPopup::onCredits);
*((_DWORD *)v10 + 93) = 1067030938;
v11 = *(_QWORD *)v10;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v26,
(float)((float)(*(float *)&v25 * 0.5) + 180.0) - 6.0,
(float)((float)(*((float *)&v25 + 1) * 0.5) + 120.0) - 6.0);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v11 + 184))(v10, v12);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)v4 + 69) + 464LL))(*((_QWORD *)v4 + 69), v10);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(__int128 *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);
v4 = nullptr;
}
v13 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL);
if ( v13 == FLAlertLayer::show )
return FLAlertLayer::show((__int64)v4);
else
return v13((__int64)v4);
}
else
{
v25 = &v22;
v22 = 0;
v23 = 0;
v24 = 15;
LOBYTE(v22) = 0;
v19 = 0;
*(_QWORD *)&v19 = sub_14003D460(0x20u);
v20 = 23;
v21 = 31;
strcpy((char *)v19, "No changelog available.");
v15 = *a1;
v18 = TextAlertPopup::create((__int64)&v19, v16, v17, 150, (__int64)&v22);
return (*(__int64 (__fastcall **)(__int64 *, cocos2d::CCNode *, __int64))(v15 + 456))(a1, v18, 100);
}
}