//
// SelectEventLayer::dSelectEventLayer from 0x1405fbbb0 to 0x1405fbccf (287 bytes)
//
// 3 xrefs:
// > sub_14060AC18 @ 0x14060ac1f
// > ??> @ 0x140811740
// > ??> @ 0x14092f750
//
// 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:35:09 +0000
//
// Hidden C++ exception states: #wind=1
void *__fastcall SelectEventLayer::dSelectEventLayer(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 + 68) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 83) = &SelectEventLayer::`vftable';
*((_QWORD *)Block + 84) = &SelectEventLayer::`vftable';
cocos2d::CCNode::removeAllChildrenWithCleanup((cocos2d::CCNode *)Block, 1);
sub_1400BD560((void **)Block + 130, (__int64)Block + 1040);
sub_14018C850((__int64)Block + 1024, (__int64)Block + 1024, *(_QWORD *)(*((_QWORD *)Block + 128) + 8LL));
j_j_free(*((void **)Block + 128));
SetupTriggerPopup::dSetupTriggerPopup(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}