//
// BoomScrollLayer::create from 0x140040960 to 0x140040b53 (499 bytes)
//
// 7 xrefs:
// > ListButtonBar::init @ 0x140077fec
// > EditButtonBar::loadFromItems @ 0x140177455
// > GauntletSelectLayer::setupGauntlets @ 0x1402ff29e
// > LevelSelectLayer::init @ 0x140441e69
// > SecretRewardsLayer::init @ 0x14056a300
// > SecretRewardsLayer::createSecondaryLayer @ 0x14056b05e
// > ??> @ 0x14090f47c
//
// 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:25:29 +0000
//
// Hidden C++ exception states: #wind=3
char *__fastcall BoomScrollLayer::create(int a1, __int64 a2, unsigned __int8 a3, __int64 a4, __int64 a5)
{
char *v8; // r14
int v9; // r8d
v8 = (char *)operator new(0x278u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v8);
cocos2d::CCTouchClipper::CCTouchClipper((cocos2d::CCTouchClipper *)(v8 + 408));
*(_QWORD *)v8 = &BoomScrollLayer::`vftable';
*((_QWORD *)v8 + 40) = &BoomScrollLayer::`vftable';
*((_QWORD *)v8 + 41) = &BoomScrollLayer::`vftable';
*((_QWORD *)v8 + 42) = &BoomScrollLayer::`vftable';
*((_QWORD *)v8 + 43) = &BoomScrollLayer::`vftable';
*((_QWORD *)v8 + 44) = &BoomScrollLayer::`vftable';
*((_QWORD *)v8 + 51) = &BoomScrollLayer::`vftable';
*((_QWORD *)v8 + 52) = 0;
*((_QWORD *)v8 + 53) = 0;
*((_DWORD *)v8 + 108) = 0;
v8[436] = 0;
*((_QWORD *)v8 + 55) = 0;
*((_QWORD *)v8 + 56) = 0;
v8[456] = 0;
*((_DWORD *)v8 + 115) = 0;
v8[464] = 0;
*((_QWORD *)v8 + 59) = 0;
*((_QWORD *)v8 + 60) = 0;
*((_QWORD *)v8 + 61) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v8 + 496));
*((_QWORD *)v8 + 63) = 0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v8 + 512), (const struct cocos2d::CCRect *)&unk_1409098C8);
*((_QWORD *)v8 + 66) = 0;
*((_QWORD *)v8 + 67) = 0;
*((_QWORD *)v8 + 68) = 0;
*((_WORD *)v8 + 276) = 0;
*(_QWORD *)(v8 + 556) = 0;
*((_DWORD *)v8 + 141) = 0;
*((_WORD *)v8 + 284) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v8 + 572));
*(_QWORD *)(v8 + 588) = 0;
*((_QWORD *)v8 + 75) = 0;
v8[608] = 0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v8 + 612));
v8[628] = 0;
if ( (unsigned __int8)BoomScrollLayer::init((_DWORD)v8, a1, v9, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
return v8;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v8 + 8LL))(v8, 1);
return nullptr;
}
}