//
// sub_140465B70 from 0x140465b70 to 0x140465c5e (238 bytes)
//
// 3 xrefs:
// > sub_140473A4C @ 0x140473a53
// > ??> @ 0x140601688
// > ??> @ 0x1406db060
//
// 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 *__fastcall sub_140465B70(void *Block, char a2)
{
*(_QWORD *)Block = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 40) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 41) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 42) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 43) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 44) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 51) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 54) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 79) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 80) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 81) = &SelectEventLayer::`vftable';
cocos2d::CCNode::removeAllChildrenWithCleanup((cocos2d::CCNode *)Block, 1);
sub_1400CDB90((void **)Block + 122);
sub_1401F4C90((void **)Block + 120);
SetupTriggerPopup::dSetupTriggerPopup(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}