//
// cocos2d::extension::CCControlButton::create_3 from 0x1003554d0 to 0x1003555e0 (272 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::extension::CCControlButton *__fastcall cocos2d::extension::CCControlButton::create_3()
{
char *v0; // rbx
v0 = (char *)operator new(0x238u);
cocos2d::extension::CCControl::CCControl((__int64)v0);
*(_QWORD *)v0 = off_100915C18;
*((_QWORD *)v0 + 40) = off_100916230;
*((_QWORD *)v0 + 41) = &off_1009162A0;
*((_QWORD *)v0 + 42) = off_1009162B8;
*((_QWORD *)v0 + 43) = off_1009162D8;
*((_QWORD *)v0 + 44) = off_1009162F8;
*((_QWORD *)v0 + 51) = off_100916320;
*((_QWORD *)v0 + 59) = 0;
*((_DWORD *)v0 + 120) = 0xFFFFFF;
*(_OWORD *)(v0 + 488) = 0;
sub_10028CF90((_QWORD *)v0 + 63);
v0[512] = 0;
sub_10028CC30(v0 + 516);
*((_WORD *)v0 + 262) = 0;
*((_OWORD *)v0 + 33) = 0;
*((_OWORD *)v0 + 34) = 0;
*((_QWORD *)v0 + 70) = 0x800000002LL;
if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return (cocos2d::extension::CCControlButton *)v0;
}