//
// cocos2d::extension::CCEditBox::create from 0x180010320 to 0x1800103e8 (200 bytes)
//
// 2 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004c050
//
// 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 12:15:39 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::extension::CCEditBox *__fastcall cocos2d::extension::CCEditBox::create(
const struct cocos2d::CCSize *a1,
struct cocos2d::extension::CCScale9Sprite *a2,
struct cocos2d::extension::CCScale9Sprite *a3,
struct cocos2d::extension::CCScale9Sprite *a4)
{
cocos2d::extension::CCEditBox *v8; // rax
cocos2d::CCObject *v9; // rbx
cocos2d::extension::CCEditBox *v11; // [rsp+20h] [rbp-18h]
v11 = (cocos2d::extension::CCEditBox *)sub_18001F040(0x300u);
v8 = cocos2d::extension::CCEditBox::CCEditBox(v11);
v9 = v8;
if ( v8 )
{
if ( cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite(v8, a1, a2) )
{
if ( a3 )
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::extension::CCScale9Sprite *, __int64))(*(_QWORD *)v9 + 1312LL))(
v9,
a3,
2);
if ( a4 )
(*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::extension::CCScale9Sprite *, __int64))(*(_QWORD *)v9 + 1312LL))(
v9,
a4,
4);
cocos2d::CCObject::autorelease(v9);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);
return nullptr;
}
}
return v9;
}