//
// LevelSearchLayer::create from 0x1007042f0 to 0x1007043de (238 bytes)
//
// 0 xrefs:
//
// 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 12:35:59 +0000
//
char *__fastcall LevelSearchLayer::create(unsigned int a1)
{
char *v1; // rbx
v1 = (char *)operator new(0x1F8u);
cocos2d::CCLayer::CCLayer((__int64)v1);
*(_QWORD *)v1 = off_100B97A58;
*((_QWORD *)v1 + 40) = off_100B97F10;
*((_QWORD *)v1 + 41) = &off_100B97F80;
*((_QWORD *)v1 + 42) = off_100B97F98;
*((_QWORD *)v1 + 43) = off_100B97FB8;
*((_QWORD *)v1 + 44) = off_100B97FE0;
*((_QWORD *)v1 + 51) = off_100B98010;
*((_QWORD *)v1 + 52) = &off_100B98058;
*((_QWORD *)v1 + 53) = &off_100B98070;
*((_DWORD *)v1 + 108) = 0;
*(_OWORD *)(v1 + 440) = 0;
*(_OWORD *)(v1 + 456) = 0;
*(_OWORD *)(v1 + 472) = 0;
*(_OWORD *)(v1 + 488) = 0;
if ( (unsigned __int8)LevelSearchLayer::init(v1, a1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return v1;
}