// // cocos2d::extension::CCEditBox::create from 0x180010940 to 0x180010a05 (197 bytes) // // 2 xrefs: // > @ 0x18002fdf8 // > @ 0x18004a170 // // 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 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 *)operator new(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 + 1296LL))( v9, a3, 2); if ( a4 ) (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::extension::CCScale9Sprite *, __int64))(*(_QWORD *)v9 + 1296LL))( v9, a4, 4); cocos2d::CCObject::autorelease(v9); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1); return nullptr; } } return v9; }