//
// SFXChangelogPopup::onCredits from 0xb98444 to 0xb98544 (256 bytes)
//
// 3 xrefs:
// > ??> @ 0xbbe70
// > SFXChangelogPopup::init @ 0xb985d8
// > ??> @ 0x1545700
//
// 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:42 +0000
//
__int64 __fastcall SFXChangelogPopup::onCredits(SFXChangelogPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
cocos2d::CCObject *v4; // x20
__int64 v5; // x20
char v7; // [xsp+30h] [xbp+30h] BYREF
char v8[13]; // [xsp+31h] [xbp+31h] BYREF
__int16 v9; // [xsp+3Eh] [xbp+3Eh]
void *v10; // [xsp+40h] [xbp+40h]
v3 = MusicDownloadManager::sharedState(_stack_chk_guard);
v4 = *(cocos2d::CCObject **)(v3 + 408);
if ( v4 && (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v3 + 408)) )
{
v8[12] = 0;
v9 = 0;
v10 = nullptr;
v7 = 22;
strcpy(v8, "SFX Credits");
v5 = URLViewLayer::create(&v7, v4);
if ( (v7 & 1) != 0 )
operator delete(v10);
(*(void (__fastcall **)(SFXChangelogPopup *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v5, 100);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1328LL))(v5, 0);
}
return _stack_chk_guard;
}