//
// LevelSearchLayer::create from 0x100627970 to 0x100627a62 (242 bytes)
//
// 0 xrefs:
//
// 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 *v1; // rbx
v1 = (char *)operator new(0x1F0u);
cocos2d::CCLayer::CCLayer((__int64)v1);
*(_QWORD *)v1 = off_100983DB0;
*((_QWORD *)v1 + 40) = off_100984258;
*((_QWORD *)v1 + 41) = &off_1009842C8;
*((_QWORD *)v1 + 42) = off_1009842E0;
*((_QWORD *)v1 + 43) = off_100984300;
*((_QWORD *)v1 + 44) = off_100984320;
*((_QWORD *)v1 + 51) = off_100984348;
*((_QWORD *)v1 + 52) = &off_100984390;
*((_QWORD *)v1 + 53) = &off_1009843A8;
*((_DWORD *)v1 + 108) = 0;
*(_OWORD *)(v1 + 440) = 0;
*(_OWORD *)(v1 + 456) = 0;
*(_OWORD *)(v1 + 472) = 0;
*((_QWORD *)v1 + 61) = 0;
if ( LevelSearchLayer::init((LevelSearchLayer *)v1, a1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
return nullptr;
}
return (LevelSearchLayer *)v1;
}