//
// SearchButton::create from 0x10062a8e0 to 0x10062a984 (164 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
//
SearchButton *__fastcall SearchButton::create(const char *a1, const char *a2, float a3, const char *a4)
{
char *v5; // rbx
v5 = (char *)operator new(0x268u);
cocos2d::CCSprite::CCSprite((__int64)v5, (__int64)a2);
*(_QWORD *)v5 = off_100985230;
*((_QWORD *)v5 + 40) = off_100985708;
*((_QWORD *)v5 + 43) = off_100985788;
*(_OWORD *)(v5 + 600) = 0;
if ( SearchButton::init((SearchButton *)v5, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v5 + 16LL))(v5);
return nullptr;
}
return (SearchButton *)v5;
}