//
// cocos2d::extension::CCControlButton::create from 0xd0da90 to 0xd0dba8 (280 bytes)
//
// 1 xrefs:
// > ??> @ 0xcd858
//
// 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 13:07:01 +0000
//
cocos2d::extension::CCControlButton *__fastcall cocos2d::extension::CCControlButton::create(
char *a1,
__int64 a2,
float a3)
{
cocos2d::extension::CCControlButton *v6; // x19
__int64 v7; // x1
char v8; // w0
void (__fastcall *v9)(cocos2d::extension::CCControlButton *, __int64 *, __int64, float); // x23
__int64 v10; // x0
__int64 v11; // x1
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
__int64 v14; // [xsp+58h] [xbp+58h]
void *v15; // [xsp+60h] [xbp+60h]
v6 = (cocos2d::extension::CCControlButton *)operator new(0x238u);
cocos2d::extension::CCControlButton::CCControlButton(v6);
v7 = *(_QWORD *)v6;
v8 = *a1;
v13 = 0;
v14 = 0;
v15 = nullptr;
v9 = *(void (__fastcall **)(cocos2d::extension::CCControlButton *, __int64 *, __int64, float))(v7 + 1424);
if ( (v8 & 1) != 0 )
{
std::string::__init(&v13, *((void **)a1 + 2), *((_QWORD *)a1 + 1));
}
else
{
v10 = *(_QWORD *)a1;
v11 = *((_QWORD *)a1 + 1);
v15 = *((void **)a1 + 2);
v13 = v10;
v14 = v11;
}
v9(v6, &v13, a2, a3);
if ( (v13 & 1) != 0 )
operator delete(v15);
cocos2d::CCObject::autorelease(v6);
return v6;
}