//
// cocos2d::extension::CCEditBox::create from 0x1004aa4a0 to 0x1004aa63e (414 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::extension::CCEditBox *__fastcall cocos2d::extension::CCEditBox::create(
const cocos2d::CCSize *a1,
cocos2d::extension::CCScale9Sprite *a2,
cocos2d::extension::CCScale9Sprite *a3,
cocos2d::extension::CCScale9Sprite *a4)
{
cocos2d::extension::CCEditBox *v6; // rbx
v6 = (cocos2d::extension::CCEditBox *)operator new(0x2E0u);
cocos2d::extension::CCControlButton::CCControlButton((__int64)v6);
cocos2d::CCIMEDelegate::CCIMEDelegate(&v6[1].m_fSkewY);
v6->cocos2d::extension::CCControlButton::cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::extension::CCEditBox_vtbl *)off_100947360;
v6->cocos2d::extension::CCControlButton::cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100947998;
v6->cocos2d::extension::CCControlButton::cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100947A08;
v6->cocos2d::extension::CCControlButton::cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100947A20;
v6->cocos2d::extension::CCControlButton::cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100947A40;
v6->cocos2d::extension::CCControlButton::cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100947A60;
v6->cocos2d::extension::CCControlButton::cocos2d::extension::CCControl::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100947A88;
*(_QWORD *)&v6[1].m_fSkewY = off_100947B08;
*(_OWORD *)&v6[1].m_obAnchorPointInPoints.y = 0;
*(_QWORD *)&v6[1].m_obContentSize.height = 0x400000006LL;
v6[1].m_sAdditionalTransform.b = 0.0;
*(_OWORD *)&v6[1].m_sAdditionalTransform.d = 0;
*(_OWORD *)&v6[1].m_sTransform.b = 0;
*(_OWORD *)&v6[1].m_sTransform.ty = 0;
*(_OWORD *)&v6[1].m_sInverse.d = 0;
*(_OWORD *)&v6[1].m_pCamera = 0;
*(_OWORD *)&v6[1].m_pChildren = 0;
*(_DWORD *)((char *)&v6[1].m_pUserData + 7) = -1;
v6[1].m_pUserData = (void *)-1LL;
*(_WORD *)((char *)&v6[1].m_pUserObject + 3) = -22874;
BYTE5(v6[1].m_pUserObject) = -90;
v6[1].m_pShaderProgram = nullptr;
v6[1].m_eGLServerState = CC_GL_ALL;
if ( cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite(v6, a1, a2) )
{
if ( a3 )
((void (__fastcall *)(cocos2d::extension::CCEditBox *, cocos2d::extension::CCScale9Sprite *, __int64))v6->setBackgroundSpriteForState)(
v6,
a3,
2);
if ( a4 )
((void (__fastcall *)(cocos2d::extension::CCEditBox *, cocos2d::extension::CCScale9Sprite *, __int64))v6->setBackgroundSpriteForState)(
v6,
a4,
4);
cocos2d::CCObject::autorelease(v6);
}
else
{
((void (__fastcall *)(cocos2d::extension::CCEditBox *))v6->~CCEditBox_0)(v6);
return nullptr;
}
return v6;
}