//
// SearchButton::create from 0x3adba0 to 0x3adc18 (120 bytes)
//
// 10 xrefs:
// > LevelSearchLayer::init @ 0x3ae4be
// > LevelSearchLayer::init @ 0x3ae56e
// > LevelSearchLayer::init @ 0x3ae5ac
// > LevelSearchLayer::init @ 0x3ae620
// > LevelSearchLayer::init @ 0x3ae65e
// > LevelSearchLayer::init @ 0x3ae69c
// > LevelSearchLayer::init @ 0x3ae6d4
// > LevelSearchLayer::init @ 0x3ae70a
// > LevelSearchLayer::init @ 0x3ae740
// > LevelSearchLayer::init @ 0x3ae8e0
//
// 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; // r4
SearchButton_vtbl *v9; // r3
SearchButton *v10; // r0
v8 = (SearchButton *)operator new(0x204u);
cocos2d::CCSprite::CCSprite(v8);
v8->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SearchButton_vtbl *)&off_A4DD08;
v8->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A4DF74;
v8->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A4DFB4;
v8->m_label = nullptr;
v8->m_icon = nullptr;
if ( SearchButton::init(v8, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
v9 = v8->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v10 = v8;
v8 = nullptr;
v9->~SearchButton_0(v10);
}
return v8;
}