//
// SearchButton::create from 0x100053794 to 0x100053848 (180 bytes)
//
// 10 xrefs:
// > LevelSearchLayer::init @ 0x10005206c
// > LevelSearchLayer::init @ 0x1000520bc
// > LevelSearchLayer::init @ 0x100052110
// > LevelSearchLayer::init @ 0x1000521b4
// > LevelSearchLayer::init @ 0x100052204
// > LevelSearchLayer::init @ 0x100052254
// > LevelSearchLayer::init @ 0x1000522a4
// > LevelSearchLayer::init @ 0x1000522f4
// > LevelSearchLayer::init @ 0x100052344
// > LevelSearchLayer::init @ 0x1000525b0
//
// 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
//
SearchButton *__fastcall SearchButton::create(const char *a1, const char *a2, float a3, const char *a4)
{
char *v8; // x19
v8 = (char *)operator new(0x268u);
cocos2d::CCSprite::CCSprite();
*(_QWORD *)v8 = off_1007733F0;
*((_QWORD *)v8 + 40) = off_1007738C8;
*((_QWORD *)v8 + 43) = off_100773948;
*(_OWORD *)(v8 + 600) = 0u;
if ( SearchButton::init((SearchButton *)v8, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v8 + 16LL))(v8);
return nullptr;
}
return (SearchButton *)v8;
}