//
// SearchButton::create from 0x14043b5e0 to 0x14043b6c3 (227 bytes)
//
// 10 xrefs:
// > LevelSearchLayer::init @ 0x1404351de
// > LevelSearchLayer::init @ 0x140435226
// > LevelSearchLayer::init @ 0x14043526f
// > LevelSearchLayer::init @ 0x140435308
// > LevelSearchLayer::init @ 0x14043534f
// > LevelSearchLayer::init @ 0x140435396
// > LevelSearchLayer::init @ 0x1404353dd
// > LevelSearchLayer::init @ 0x140435432
// > LevelSearchLayer::init @ 0x1404354d1
// > ??> @ 0x140926f48
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:32:19 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall SearchButton::create(__int64 a1, int a2, __int64 a3, __int64 a4, int a5)
{
_QWORD *v7; // rsi
int v8; // edx
int v9; // r9d
v7 = operator new(0x268u);
memset(v7, 0, 0x268u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v7);
*v7 = &SearchButton::`vftable';
v7[40] = &SearchButton::`vftable';
v7[43] = &SearchButton::`vftable';
v7[75] = 0;
v7[76] = 0;
if ( (unsigned __int8)SearchButton::init((_DWORD)v7, v8, a2, v9, a4, a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);
return v7;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v7 + 8LL))(v7, 1);
return nullptr;
}
}