//
// SearchButton::create from 0x7deddc to 0x7deed0 (244 bytes)
//
// 10 xrefs:
// > LevelSearchLayer::init @ 0x7e3024
// > LevelSearchLayer::init @ 0x7e3074
// > LevelSearchLayer::init @ 0x7e30c8
// > LevelSearchLayer::init @ 0x7e3170
// > LevelSearchLayer::init @ 0x7e31c4
// > LevelSearchLayer::init @ 0x7e3218
// > LevelSearchLayer::init @ 0x7e326c
// > LevelSearchLayer::init @ 0x7e32c0
// > LevelSearchLayer::init @ 0x7e3368
// > ??> @ 0xfab88
//
// This function is hookable on this platform (idp: arm, 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 12:54:25 +0000
//
_QWORD *__fastcall SearchButton::create(
SearchButton *this,
cocos2d::CCLabelBMFont *a2,
cocos2d::CCSprite *a3,
float a4,
const char *a5,
float a6)
{
_QWORD *v11; // x19
v11 = (_QWORD *)operator new(0x268u);
memset(v11, 0, 0x268u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v11);
v11[75] = 0;
*v11 = &off_143A010;
v11[40] = &off_143A4F8;
v11[43] = &off_143A578;
v11[76] = 0;
if ( (unsigned __int8)SearchButton::init((SearchButton *)v11, (const char *)this, a2, a4, a3, a6) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11);
return v11;
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v11 + 16LL))(v11);
return nullptr;
}
}