//
// LevelSearchLayer::onSpecialDemon from 0x1404366f0 to 0x140436851 (353 bytes)
//
// 2 xrefs:
// > LevelSearchLayer::init @ 0x140435a66
// > ??> @ 0x140926dc8
//
// 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:17 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall LevelSearchLayer::onSpecialDemon(__int64 a1)
{
_QWORD *v2; // rbx
__int64 v3; // rax
__int64 (__fastcall *v4)(__int64); // rdx
v2 = operator new(0x2B8u);
FLAlertLayer::FLAlertLayer((__int64)v2);
*v2 = &DemonFilterSelectLayer::`vftable';
v2[40] = &DemonFilterSelectLayer::`vftable';
v2[41] = &DemonFilterSelectLayer::`vftable';
v2[42] = &DemonFilterSelectLayer::`vftable';
v2[43] = &DemonFilterSelectLayer::`vftable';
v2[44] = &DemonFilterSelectLayer::`vftable';
v2[51] = &DemonFilterSelectLayer::`vftable';
v2[54] = &DemonFilterSelectLayer::`vftable';
v2[68] = &DemonFilterSelectLayer::`vftable';
v2[83] = 0;
v2[84] = 0;
*((_DWORD *)v2 + 170) = 0;
v2[86] = 0;
if ( (unsigned __int8)DemonFilterSelectLayer::init(v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);
v2 = nullptr;
}
*((_BYTE *)v2 + 596) = 1;
v3 = a1 + 424;
if ( !a1 )
v3 = 0;
v2[86] = v3;
v2[71] = a1;
v4 = *(__int64 (__fastcall **)(__int64))(*v2 + 1064LL);
if ( v4 == FLAlertLayer::show )
return FLAlertLayer::show((__int64)v2);
else
return v4((__int64)v2);
}