//
// LevelListLayer::onSelectIcon from 0x14042fb70 to 0x14042fcc3 (339 bytes)
//
// 2 xrefs:
// > LevelListLayer::init @ 0x14042c9e0
// > ??> @ 0x140926c18
//
// 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:32:15 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall LevelListLayer::onSelectIcon(__int64 a1)
{
unsigned int v2; // ebx
_QWORD *v3; // rdi
__int64 (__fastcall *v4)(__int64); // rdx
if ( !*(_BYTE *)(a1 + 968) )
{
v2 = *(_DWORD *)(*(_QWORD *)(a1 + 920) + 360LL);
v3 = operator new(0x2B0u);
FLAlertLayer::FLAlertLayer((__int64)v3);
*v3 = &SelectListIconLayer::`vftable';
v3[40] = &SelectListIconLayer::`vftable';
v3[41] = &SelectListIconLayer::`vftable';
v3[42] = &SelectListIconLayer::`vftable';
v3[43] = &SelectListIconLayer::`vftable';
v3[44] = &SelectListIconLayer::`vftable';
v3[51] = &SelectListIconLayer::`vftable';
v3[54] = &SelectListIconLayer::`vftable';
v3[68] = &SelectListIconLayer::`vftable';
v3[83] = 0;
*((_DWORD *)v3 + 168) = 0;
v3[85] = 0;
if ( (unsigned __int8)SelectListIconLayer::init(v3, v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v3 + 8LL))(v3, 1);
v3 = nullptr;
}
v3[85] = a1 + 848;
v4 = *(__int64 (__fastcall **)(__int64))(*v3 + 1064LL);
if ( v4 == FLAlertLayer::show )
FLAlertLayer::show((__int64)v3);
else
v4((__int64)v3);
}
}