//
// SFXChangelogPopup::onCredits from 0x100970d60 to 0x100970df1 (145 bytes)
//
// 1 xrefs:
// > SFXChangelogPopup::init @ 0x100970cb4
//
// 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 12:38:53 +0000
//
__int64 __fastcall SFXChangelogPopup::onCredits(__int64 a1)
{
__int64 result; // rax
__int64 v2; // r14
char *v3; // r14
__int128 v4; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
result = MusicDownloadManager::sharedState();
v2 = *(_QWORD *)(result + 408);
if ( v2 )
{
result = sub_1007FEF90(*(_QWORD *)(result + 408));
if ( (_DWORD)result )
{
LOBYTE(v4) = 22;
strcpy((char *)&v4 + 1, "SFX Credits");
v3 = URLViewLayer::create(&v4, v2);
if ( (v4 & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v3, 100);
return (*(__int64 (__fastcall **)(char *, _QWORD))(*(_QWORD *)v3 + 1328LL))(v3, 0);
}
}
return result;
}