//
// SelectEventLayer::onClose from 0x1405fd810 to 0x1405fd8c3 (179 bytes)
//
// 4 xrefs:
// > ??> @ 0x140811b88
// > ??> @ 0x1408e40d0
// > ??> @ 0x1408e4104
// > ??> @ 0x14092f7b0
//
// 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
//
__int64 __fastcall SelectEventLayer::onClose(__int64 a1, __int64 a2)
{
__int64 v4; // rax
struct cocos2d::CCObject *v5; // rcx
struct cocos2d::CCArray *v6; // rax
unsigned int *v7; // rbx
__int64 v8; // rax
unsigned __int64 v9; // rbx
unsigned __int64 i; // rsi
if ( *(_BYTE *)(a1 + 1008) )
{
v4 = *(_QWORD *)(a1 + 1000);
if ( v4 )
{
v5 = *(struct cocos2d::CCObject **)(v4 + 680);
v6 = v5 ? cocos2d::CCArray::createWithObject(v5) : *(struct cocos2d::CCArray **)(v4 + 688);
if ( v6 )
{
v7 = *((unsigned int **)v6 + 7);
v8 = *v7;
if ( (_DWORD)v8 )
{
v9 = *((_QWORD *)v7 + 2);
for ( i = v9 + 8 * (v8 - 1); v9 <= i; v9 += 8LL )
{
if ( !*(_QWORD *)v9 )
break;
sub_1400C6B10((_QWORD *)(*(_QWORD *)v9 + 1856LL), (_QWORD *)(a1 + 1040));
}
}
}
}
}
return SetupTriggerPopup::onClose(a1, a2);
}