//
// OptionsScrollLayer::create from 0x14033ab70 to 0x14033adbb (587 bytes)
//
// 3 xrefs:
// > MusicBrowser::onTagFilters @ 0x14033a993
// > MusicBrowser::onArtistFilters @ 0x14033aa1a
// > ??> @ 0x1406d5438
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
OptionsScrollLayer *OptionsScrollLayer::create(cocos2d::CCArray *a1, bool a2, int a3)
{
OptionsScrollLayer *v6; // rsi
__int64 v7; // rcx
cocos2d::CCDirector *v8; // rax
__int64 v9; // rcx
__int64 v10; // rax
struct cocos2d::CCSprite *v11; // rax
CCMenuItemSpriteExtra *v12; // rdi
float v13; // xmm0_4
CCMenuItemSpriteExtra_vtbl *v14; // rbx
struct cocos2d::CCPoint v15; // rax
struct cocos2d::CCPoint v17; // [rsp+28h] [rbp-10h] BYREF
v6 = (OptionsScrollLayer *)operator new(0x298u);
FLAlertLayer::FLAlertLayer(v6);
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (OptionsScrollLayer_vtbl *)&OptionsScrollLayer::`vftable';
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&OptionsScrollLayer::`vftable';
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&OptionsScrollLayer::`vftable';
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&OptionsScrollLayer::`vftable';
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&OptionsScrollLayer::`vftable';
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&OptionsScrollLayer::`vftable';
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&OptionsScrollLayer::`vftable';
v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&OptionsScrollLayer::`vftable';
v6->TableViewCellDelegate::__vftable = (TableViewCellDelegate_vtbl *)&OptionsScrollLayer::`vftable';
v6->m_optionObjects = nullptr;
v6->m_listLayer = nullptr;
v6->m_recreateList = 0;
v6->m_minCount = 0;
if ( FLAlertLayer::init_1(v6, 150) )
{
v6->m_noElasticity = 1;
v6->m_recreateList = a2;
v6->m_minCount = a3;
if ( a1 )
{
v6->m_optionObjects = a1;
cocos2d::CCObject::retain(a1);
}
v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);
cocos2d::CCDirector::getWinSize(v8);
v10 = cocos2d::CCMenu::create(v9);
v6->m_buttonMenu = (cocos2d::CCMenu *)v10;
v6->m_mainLayer->addChild_0(v6->m_mainLayer, (cocos2d::CCNode *)v10, 10);
v6->m_joystickConnected = -1;
v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png");
v12 = CCMenuItemSpriteExtra::create(v11, nullptr, v6, (cocos2d::SEL_MenuHandler *)OptionsScrollLayer::onClose);
v13 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v6->m_buttonMenu->addChild_1)(
v6->m_buttonMenu,
v12);
HIDWORD(v12->m_pfnSelector.adj) = 1070386381;
v14 = v12->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v13, (float)((float)(*(float *)&v6 * 0.5) - 220.0) + 10.0);
v15 = cocos2d::CCNode::convertToNodeSpace(v6->m_buttonMenu, &v17);
((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v14->setPosition_0)(v12, v15);
OptionsScrollLayer::setupList(v6, v6->m_optionObjects);
cocos2d::CCObject::autorelease(v6);
return v6;
}
else
{
((void (__fastcall *)(OptionsScrollLayer *, __int64))v6->~OptionsScrollLayer)(v6, 1);
return nullptr;
}
}