//
// SearchButton::create from 0x6d127c to 0x6d1358 (220 bytes)
//
// 11 xrefs:
// > LevelSearchLayer::init @ 0x6d1f90
// > LevelSearchLayer::init @ 0x6d1fdc
// > LevelSearchLayer::init @ 0x6d202c
// > LevelSearchLayer::init @ 0x6d20c8
// > LevelSearchLayer::init @ 0x6d2114
// > LevelSearchLayer::init @ 0x6d2164
// > LevelSearchLayer::init @ 0x6d21b4
// > LevelSearchLayer::init @ 0x6d2204
// > LevelSearchLayer::init @ 0x6d2254
// > LevelSearchLayer::init @ 0x6d2db8
// > ??> @ 0x3a470
//
// 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 *SearchButton::create(const char *a1, const char *a2, float a3, const char *a4)
{
SearchButton *v8; // x19
v8 = (SearchButton *)operator new(0x268u);
cocos2d::CCSprite::CCSprite(v8);
v8->m_label = nullptr;
v8->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SearchButton_vtbl *)&off_1159720;
v8->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_1159BF8;
v8->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_1159C78;
v8->m_icon = nullptr;
if ( SearchButton::init(v8, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v8);
return v8;
}
else
{
v8->~SearchButton_0(v8);
return nullptr;
}
}