//
// SFXChangelogPopup::init from 0xb98544 to 0xb9867c (312 bytes)
//
// 2 xrefs:
// > SFXChangelogPopup::create @ 0xb987d8
// > ??> @ 0xc4db0
//
// 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::init(SFXChangelogPopup *this, cocos2d::CCArray *a2)
{
cocos2d::CCDirector *inited; // x0
unsigned int v4; // w20
cocos2d::CCDirector *v5; // x0
const char *v6; // x1
__int64 v7; // x23
__int64 v8; // x23
void (__fastcall *v9)(__int64, _BYTE *); // x21
__int64 v11; // [xsp+58h] [xbp+58h] BYREF
_BYTE v12[8]; // [xsp+60h] [xbp+60h] BYREF
inited = (cocos2d::CCDirector *)(unsigned __int8)ScrollViewPopup::initPopup(
this,
a2,
"SFX Changelog",
"No changelog available.",
360.0,
240.0);
v4 = (unsigned __int8)inited;
if ( (_BYTE)inited )
{
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(inited);
cocos2d::CCDirector::getWinSize(&v11, v5);
v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v6);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 0.8);
v8 = CCMenuItemSpriteExtra::create(v7, 0, (__int64)this, (__int64)SFXChangelogPopup::onCredits, 0);
CCMenuItemSpriteExtra::setSizeMult(v8, 1.2);
v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v12,
(float)((float)(*(float *)&v11 * 0.5) + 180.0) - 6.0,
(float)((float)(*((float *)&v11 + 1) * 0.5) + 120.0) - 6.0);
v9(v8, v12);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v8);
}
return v4;
}