//
// LevelSearchLayer::create from 0x100051330 to 0x1000513e8 (184 bytes)
//
// 1 xrefs:
// > LevelSearchLayer::scene @ 0x100051308
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
LevelSearchLayer *__fastcall LevelSearchLayer::create(int a1)
{
char *v2; // x19
v2 = (char *)operator new(0x1F0u);
cocos2d::CCLayer::CCLayer();
*(_QWORD *)v2 = off_100771F70;
*((_QWORD *)v2 + 40) = off_100772418;
*((_QWORD *)v2 + 41) = &off_100772488;
*((_QWORD *)v2 + 42) = off_1007724A0;
*((_QWORD *)v2 + 43) = &off_1007724C0;
*((_QWORD *)v2 + 44) = off_1007724E0;
*((_QWORD *)v2 + 51) = off_100772508;
*((_QWORD *)v2 + 52) = &off_100772550;
*((_QWORD *)v2 + 53) = &off_100772568;
*((_DWORD *)v2 + 108) = 0;
*((_QWORD *)v2 + 61) = 0;
*(_OWORD *)(v2 + 440) = 0u;
*(_OWORD *)(v2 + 456) = 0u;
*(_OWORD *)(v2 + 472) = 0u;
if ( LevelSearchLayer::init((LevelSearchLayer *)v2, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (LevelSearchLayer *)v2;
}