// // cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite from 0x180010a10 to 0x180010b5d (333 bytes) // // 3 xrefs: // > cocos2d::extension::CCEditBox::create @ 0x18001098e // > @ 0x18002fdf8 // > @ 0x18004a17c // // 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 // // 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_180023460, "Arial", 30.0); if ( !(*((unsigned __int8 (__fastcall **)(cocos2d::CCDictionary **, struct cocos2d::CCLabelTTF *, struct cocos2d::extension::CCScale9Sprite *))*this + 146))( this, v6, a3) ) return 0; v15 = (cocos2d::extension::CCEditBoxImplWin *)operator new(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 + 142))(this, 0); v8 = *this; v9 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v15, a2); (*((void (__fastcall **)(cocos2d::CCDictionary **, __int64))v8 + 140))(this, v9); v10 = *this; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 0.0); (*((void (__fastcall **)(cocos2d::CCDictionary **, __int64))v10 + 23))(this, v11); v12 = 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; }