//
// SFXChangelogPopup::onCredits from 0x6c9718 to 0x6c97aa (146 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:57 +0000
//
int __fastcall SFXChangelogPopup::onCredits(SFXChangelogPopup *this, cocos2d::CCObject *a2, void *a3, int a4)
{
int result; // r0
cocos2d::CCObject *v6; // r7
int v7; // r2
int v8; // r3
int v9; // r4
SFXChangelogPopup *v10; // [sp+0h] [bp-10h] BYREF
cocos2d::CCObject *v11; // [sp+4h] [bp-Ch]
void *v12; // [sp+8h] [bp-8h]
int v13; // [sp+Ch] [bp-4h]
v10 = this;
v11 = a2;
v12 = a3;
v13 = a4;
result = MusicDownloadManager::sharedState(this);
v6 = *(cocos2d::CCObject **)(result + 312);
if ( v6 )
{
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(result + 312));
if ( result )
{
v11 = (cocos2d::CCObject *)(byte_9 + 2);
v10 = (SFXChangelogPopup *)(&word_10 + 1);
v12 = (void *)operator new(0x10u);
std::char_traits::copy(v12, "SFX Credits", 0xBu);
*((_BYTE *)v12 + 11) = 0;
v9 = URLViewLayer::create((int)&v10, v6, v7, v8);
std::string::~string((int)&v10);
(*(void (__fastcall **)(SFXChangelogPopup *, int, int, _DWORD, SFXChangelogPopup *, cocos2d::CCObject *, void *, int))(*(_DWORD *)this + 232))(
this,
v9,
100,
*(_DWORD *)(*(_DWORD *)this + 232),
v10,
v11,
v12,
v13);
return (*(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 664))(v9, 0);
}
}
return result;
}