//
// SearchButton::create from 0x4954e4 to 0x49556c (136 bytes)
//
// 9 xrefs:
// > LevelSearchLayer::init @ 0x498aa0
// > LevelSearchLayer::init @ 0x498ada
// > LevelSearchLayer::init @ 0x498b14
// > LevelSearchLayer::init @ 0x498b8a
// > LevelSearchLayer::init @ 0x498bc4
// > LevelSearchLayer::init @ 0x498bfe
// > LevelSearchLayer::init @ 0x498c38
// > LevelSearchLayer::init @ 0x498d12
// > LevelSearchLayer::init @ 0x498d88
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:41 +0000
//
int *__fastcall SearchButton::create(
SearchButton *this,
cocos2d::CCLabelBMFont *a2,
const char *a3,
cocos2d::CCSprite *a4,
const char *a5,
float a6)
{
int *v10; // r4
int v11; // r3
int *v12; // r0
v10 = (int *)operator new(0x204u);
memset(v10, 0, 0x204u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v10);
*v10 = (int)&off_C96A78;
v10[70] = (int)&off_C96D2C;
v10[127] = 0;
v10[128] = 0;
v10[66] = (int)&off_C96CEC;
if ( SearchButton::init((SearchButton *)v10, (const char *)this, a2, *(float *)&a3, a4, *(float *)&a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);
}
else
{
v11 = *v10;
v12 = v10;
v10 = nullptr;
(*(void (__fastcall **)(int *))(v11 + 8))(v12);
}
return v10;
}