//
// SearchButton::create from 0x140312880 to 0x140312941 (193 bytes)
//
// 11 xrefs:
// > LevelSearchLayer::init @ 0x14030ce72
// > LevelSearchLayer::init @ 0x14030ceb2
// > LevelSearchLayer::init @ 0x14030cef2
// > LevelSearchLayer::init @ 0x14030cf7a
// > LevelSearchLayer::init @ 0x14030cfb8
// > LevelSearchLayer::init @ 0x14030cffb
// > LevelSearchLayer::init @ 0x14030d039
// > LevelSearchLayer::init @ 0x14030d07b
// > LevelSearchLayer::init @ 0x14030d0bb
// > LevelSearchLayer::init @ 0x14030d31a
// > ??> @ 0x1406d488c
//
// 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
//
// Hidden C++ exception states: #wind=1
SearchButton *SearchButton::create(const char *a1, const char *a2, float a3, const char *a4)
{
SearchButton *v6; // rsi
const char *v7; // rdx
v6 = (SearchButton *)operator new(0x268u);
cocos2d::CCSprite::CCSprite(v6);
v6->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SearchButton_vtbl *)&SearchButton::`vftable';
v6->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SearchButton::`vftable';
v6->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&SearchButton::`vftable';
v6->m_label = nullptr;
v6->m_icon = nullptr;
if ( SearchButton::init(v6, v7, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v6);
return v6;
}
else
{
((void (__fastcall *)(SearchButton *, __int64))v6->~SearchButton)(v6, 1);
return nullptr;
}
}