//
// CCTextInputNode::create from 0x2fa318 to 0x2fa436 (286 bytes)
//
// 75 xrefs:
// > CreateGuidelinesLayer::init @ 0x309466
// > LoadingLayer::loadAssets @ 0x30ba34
// > LevelSearchLayer::init @ 0x3ae1ae
// > MoreSearchLayer::init @ 0x3b0340
// > EditLevelLayer::init @ 0x3b6dea
// > EditLevelLayer::init @ 0x3b6f9a
// > ColorSelectPopup::init @ 0x3dac4a
// > ColorSelectPopup::init @ 0x3db926
// > ColorSelectPopup::init @ 0x3dbd62
// > ColorSelectPopup::init @ 0x3dc2be
// > GJGarageLayer::init @ 0x407122
// > MoreOptionsLayer::init @ 0x423eae
// > ShareCommentLayer::init @ 0x4323ca
// > CustomSongLayer::init @ 0x45f12a
// > SongOptionsLayer::init @ 0x45fc0a
// > CustomizeObjectLayer::init @ 0x462f24
// > CustomizeObjectLayer::init @ 0x463644
// > AccountRegisterLayer::createTextInput @ 0x468306
// > AccountLoginLayer::createTextInput @ 0x4694f0
// > GJWriteMessagePopup::init @ 0x4aed1c
// > GJWriteMessagePopup::init @ 0x4aef88
// > SetIDPopup::init @ 0x4afa66
// > SetTextPopup::init @ 0x4b082e
// > GJAccountSettingsLayer::init @ 0x4b6402
// > ConfigureHSVWidget::createTextInputNode @ 0x4b68f4
// > SetupOpacityPopup::init @ 0x4babd0
// > SetupOpacityPopup::init @ 0x4baf46
// > SetupPulsePopup::init @ 0x4be744
// > SetupPulsePopup::init @ 0x4bea1a
// > SetupPulsePopup::init @ 0x4bece4
// > SetupPulsePopup::init @ 0x4bf136
// > SetupPulsePopup::init @ 0x4c0000
// > SetupPulsePopup::init @ 0x4c02ec
// > SecretLayer::init @ 0x4cb6b8
// > CollisionBlockPopup::init @ 0x4cda66
// > ConfigureValuePopup::init @ 0x4cfd04
// > GJFollowCommandLayer::init @ 0x4dbf02
// > GJFollowCommandLayer::init @ 0x4dc246
// > GJFollowCommandLayer::init @ 0x4dc580
// > GJPFollowCommandLayer::init @ 0x4dd7ae
// > GJPFollowCommandLayer::init @ 0x4ddae6
// > GJPFollowCommandLayer::init @ 0x4dddaa
// > GJPFollowCommandLayer::init @ 0x4de04e
// > GJPFollowCommandLayer::init @ 0x4de260
// > GJRotateCommandLayer::init @ 0x4df6de
// > GJRotateCommandLayer::init @ 0x4dfd54
// > GJRotateCommandLayer::init @ 0x4e02b4
// > SecretLayer2::init @ 0x4ee9ec
// > SecretLayer4::init @ 0x4f1da4
// > SetupAnimationPopup::init @ 0x4f356a
// > SetupCollisionTriggerPopup::init @ 0x4f4bee
// > SetupCountTriggerPopup::init @ 0x4f63be
// > SetupInstantCountPopup::init @ 0x4f7cbe
// > SetupShakePopup::init @ 0x4f9ae8
// > SetupTouchTogglePopup::init @ 0x4fa7c6
// > SetupCameraOffsetTrigger::init @ 0x5020b2
// > SetupCameraOffsetTrigger::init @ 0x502724
// > SetupRandTriggerPopup::init @ 0x5050f4
// > SetupRandTriggerPopup::init @ 0x505406
// > SetupEndPopup::init @ 0x505fc4
// > SetGroupIDLayer::createTextInput @ 0x5092e6
// > SetupCameraRotatePopup::init @ 0x5269ba
// > SetupCameraRotatePopup::init @ 0x526fee
// > SetupRandAdvTriggerPopup::init @ 0x5288c4
// > SetupGravityModPopup::init @ 0x52ed3a
// > CreateParticlePopup::createParticleSlider @ 0x5314c4
// > SetupSmartTemplateLayer::init @ 0x53e51a
// > SetupTriggerPopup::createValueControlAdvanced @ 0x544e58
// > SetupCameraEdgePopup::init @ 0x548e76
// > SetupMGTrigger::init @ 0x562d66
// > SetupMGTrigger::init @ 0x56338e
// > LevelSettingsLayer::init @ 0x5722d8
// > LevelSettingsLayer::init @ 0x5724e8
// > LevelListLayer::init @ 0x5918a8
// > SecretLayer5::init @ 0x59f0be
//
// 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
//
CCTextInputNode *CCTextInputNode::create(float a1, float a2, const char *a3, const char *a4)
{
CCTextInputNode *v8; // r4
CCTextInputNode_vtbl *v9; // r3
int *v10; // r0
const char *v12; // [sp+28h] [bp+18h]
char *v13; // [sp+2Ch] [bp+1Ch]
v8 = (CCTextInputNode *)operator new(0x1A0u);
cocos2d::CCLayer::CCLayer(v8);
cocos2d::CCIMEDelegate::CCIMEDelegate(&v8->cocos2d::CCIMEDelegate);
v8->m_unknown1 = 0;
v8->m_fontValue1 = -0.5;
v8->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCTextInputNode_vtbl *)&off_A418C8;
v8->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A41B24;
v8->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A41B5C;
v8->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A41B68;
v8->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A41B78;
v8->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A41B88;
v8->cocos2d::CCIMEDelegate::__vftable = (cocos2d::CCIMEDelegate_vtbl *)&off_A41B9C;
v8->cocos2d::CCTextFieldDelegate::__vftable = (cocos2d::CCTextFieldDelegate_vtbl *)&off_A41BE4;
v8->m_numberInput = 0;
v8->m_caption.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v8->m_selected = 0;
v8->m_unknown2 = 0;
v8->m_fontValue2 = 8.0;
v8->m_isChatFont = 0;
v8->m_allowedChars.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v8->m_maxLabelWidth = 0.0;
v8->m_maxLabelScale = 0.0;
v8->m_placeholderScale = 0.0;
v8->m_cursor = nullptr;
v8->m_textField = nullptr;
v8->m_delegate = nullptr;
v8->m_maxLabelLength = 0;
v8->m_textLabel = nullptr;
v8->m_filterSwearWords = 0;
v8->m_usePasswordChar = 0;
v8->m_forceOffset = 0;
v8->m_textArea = nullptr;
v8->m_valueType = 0;
v8->m_kerningAmount = 0;
if ( CCTextInputNode::init(v8, a1, a2, a3, a4, (int)v12, v13) )
{
cocos2d::CCObject::autorelease(v8);
}
else
{
v9 = v8->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v10 = (int *)v8;
v8 = nullptr;
v9->~CCTextInputNode_0((CCTextInputNode *)v10);
}
return v8;
}