//
// ButtonSprite::create from 0x1400428a0 to 0x14004295c (188 bytes)
//
// 6 xrefs:
// > EditorUI::getSpriteButton @ 0x1401aded6
// > EditorUI::createCustomItems @ 0x1401f6471
// > EditorUI::createCustomItems @ 0x1401f652d
// > EditorUI::createCustomItems @ 0x1401f65e8
// > EditorUI::createCustomItems @ 0x1401f66a4
// > ??> @ 0x14090f644
//
// 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:25:30 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall ButtonSprite::create(int a1, int a2, __int64 a3, float a4, int a5)
{
cocos2d::CCObject *v7; // rbx
int v8; // r9d
void *v10; // [rsp+50h] [rbp-28h]
v10 = operator new(0x2C8u);
v7 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v10);
if ( v7 )
{
if ( (unsigned __int8)ButtonSprite::init((_DWORD)v7, a1, a2, v8, LODWORD(a4), a5) )
{
cocos2d::CCObject::autorelease(v7);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);
return nullptr;
}
}
return v7;
}