//
// cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite from 0x1800103f0 to 0x180010542 (338 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCEditBox::create @ 0x18001036e
// > ??> @ 0x180032408
// > ??> @ 0x18004c05c
//
// 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
char __fastcall cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite(
cocos2d::CCDictionary **this,
const struct cocos2d::CCSize *a2,
struct cocos2d::extension::CCScale9Sprite *a3)
{
struct cocos2d::CCLabelTTF *v6; // rax
__int64 v7; // rax
cocos2d::CCDictionary *v8; // rbx
__int64 v9; // rax
cocos2d::CCDictionary *v10; // rbx
__int64 v11; // rax
struct cocos2d::CCObject *v12; // rsi
struct cocos2d::CCObject *v13; // rbx
cocos2d::extension::CCEditBoxImplWin *v15; // [rsp+30h] [rbp+8h] BYREF
v6 = cocos2d::CCLabelTTF::create(byte_180025968, "Arial", 30.0);
if ( !(*((unsigned __int8 (__fastcall **)(cocos2d::CCDictionary **, struct cocos2d::CCLabelTTF *, struct cocos2d::extension::CCScale9Sprite *))*this
+ 148))(
this,
v6,
a3) )
return 0;
v15 = (cocos2d::extension::CCEditBoxImplWin *)sub_18001F040(0x90u);
v7 = cocos2d::extension::CCEditBoxImplWin::CCEditBoxImplWin(v15, (struct cocos2d::extension::CCEditBox *)this);
*(this + 72) = (cocos2d::CCDictionary *)v7;
(*(void (__fastcall **)(__int64, const struct cocos2d::CCSize *))(*(_QWORD *)v7 + 8LL))(v7, a2);
(*((void (__fastcall **)(cocos2d::CCDictionary **, _QWORD))*this + 144))(this, 0);
v8 = *this;
v9 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v15, a2);
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64))v8 + 142))(this, v9);
v10 = *this;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 0.0);
(*((void (__fastcall **)(cocos2d::CCDictionary **, __int64))v10 + 23))(this, v11);
v12 = (struct cocos2d::CCObject *)cocos2d::extension::CCInvocation::create(
(__int64)this,
(__int64)cocos2d::extension::CCEditBox::touchDownAction,
32);
v13 = cocos2d::CCDictionary::objectForKey(*(this + 56), 32);
if ( !v13 )
{
v13 = cocos2d::CCArray::createWithCapacity(1u);
cocos2d::CCDictionary::setObject(*(this + 56), v13, 32);
}
cocos2d::CCArray::addObject(v13, v12);
return 1;
}