//
// SetupAdvFollowPopup::onPremade from 0x140405b80 to 0x140405caa (298 bytes)
//
// 2 xrefs:
// > SetupAdvFollowPopup::init @ 0x140405455
// > ??> @ 0x1406d8948
//
// 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
void SetupAdvFollowPopup::onPremade(SetupAdvFollowPopup *a1, cocos2d::CCObject *a2)
{
SelectPremadeLayer *v3; // rbx
SelectPremadeDelegate *v4; // rax
void (*show)(FLAlertLayer *); // rdx
v3 = (SelectPremadeLayer *)operator new(0x280u);
FLAlertLayer::FLAlertLayer(v3);
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SelectPremadeLayer_vtbl *)&SelectPremadeLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SelectPremadeLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SelectPremadeLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SelectPremadeLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SelectPremadeLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SelectPremadeLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SelectPremadeLayer::`vftable';
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SelectPremadeLayer::`vftable';
if ( SelectPremadeLayer::init(v3) )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
((void (__fastcall *)(SelectPremadeLayer *, __int64))v3->~SelectPremadeLayer)(v3, 1);
v3 = nullptr;
}
v4 = &a1->SelectPremadeDelegate;
if ( !a1 )
v4 = nullptr;
v3->m_delegate = v4;
show = (void (*)(FLAlertLayer *))v3->show;
if ( show == FLAlertLayer::show )
FLAlertLayer::show(v3);
else
show(v3);
}