//
// SFXChangelogPopup::onCredits from 0x140621270 to 0x140621362 (242 bytes)
//
// 2 xrefs:
// > SFXBrowser::onChangelog @ 0x14061f03f
// > ??> @ 0x140930458
//
// 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:22 +0000
//
// Hidden C++ exception states: #wind=1
int __fastcall SFXChangelogPopup::onCredits(__int64 a1)
{
__int64 v2; // rax
cocos2d::CCObject *v3; // rbx
void *v4; // rbx
_DWORD v6[4]; // [rsp+20h] [rbp-28h] BYREF
__int64 v7; // [rsp+30h] [rbp-18h]
__int64 v8; // [rsp+38h] [rbp-10h]
void *v9; // [rsp+60h] [rbp+18h]
v2 = qword_14090C070;
if ( !qword_14090C070 )
{
v9 = operator new(0x3D0u);
qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070);
v2 = qword_14090C070;
}
v3 = *(cocos2d::CCObject **)(v2 + 416);
if ( v3 )
{
LODWORD(v2) = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 416));
if ( (_DWORD)v2 )
{
v6[3] = 0;
v7 = 11;
v8 = 15;
strcpy((char *)v6, "SFX Credits");
v4 = URLViewLayer::create((__int64)v6, v3);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v4, 100);
LODWORD(v2) = (*(__int64 (__fastcall **)(void *, _QWORD))(*(_QWORD *)v4 + 1080LL))(v4, 0);
}
}
return v2;
}