//
// SetupAdvFollowPopup::onPremade from 0x14059d0b0 to 0x14059d1e8 (312 bytes)
//
// 2 xrefs:
// > SetupAdvFollowPopup::init @ 0x14059c979
// > ??> @ 0x14092d2f0
//
// 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:34:36 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall SetupAdvFollowPopup::onPremade(__int64 a1)
{
cocos2d::CCObject *v2; // rbx
__int64 v3; // rax
__int64 (__fastcall *v4)(__int64); // rdx
v2 = (cocos2d::CCObject *)operator new(0x2A0u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*(_QWORD *)v2 = &SelectPremadeLayer::`vftable';
*((_QWORD *)v2 + 40) = &SelectPremadeLayer::`vftable';
*((_QWORD *)v2 + 41) = &SelectPremadeLayer::`vftable';
*((_QWORD *)v2 + 42) = &SelectPremadeLayer::`vftable';
*((_QWORD *)v2 + 43) = &SelectPremadeLayer::`vftable';
*((_QWORD *)v2 + 44) = &SelectPremadeLayer::`vftable';
*((_QWORD *)v2 + 51) = &SelectPremadeLayer::`vftable';
*((_QWORD *)v2 + 54) = &SelectPremadeLayer::`vftable';
*((_QWORD *)v2 + 68) = &SelectPremadeLayer::`vftable';
if ( (unsigned __int8)SelectPremadeLayer::init(v2) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
v2 = nullptr;
}
v3 = a1 + 1000;
if ( !a1 )
v3 = 0;
*((_QWORD *)v2 + 83) = v3;
v4 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1064LL);
if ( v4 == FLAlertLayer::show )
return FLAlertLayer::show((__int64)v2);
else
return v4((__int64)v2);
}