//
// CCTextInputNode::addTextArea from 0x2faa2c to 0x2faae0 (180 bytes)
//
// 4 xrefs:
// > EditLevelLayer::init @ 0x3b7050
// > ShareCommentLayer::init @ 0x4324d0
// > GJWriteMessagePopup::init @ 0x4aedda
// > GJWriteMessagePopup::init @ 0x4af06a
//
// 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
//
void CCTextInputNode::addTextArea(CCTextInputNode *a1, TextArea *a2)
{
CCTextInputNode_vtbl *v3; // r3
TextArea *m_textArea; // r8
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9
char *v6; // r0
cocos2d::CCPoint v7; // [sp+4h] [bp-10h] BYREF
if ( !a1->m_textArea )
{
v3 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textArea = a2;
((void (*)(void))v3->addChild)();
m_textArea = a1->m_textArea;
setPosition = m_textArea->setPosition;
cocos2d::CCPoint::CCPoint(&v7, 0.0, 0.0);
setPosition(m_textArea, &v7);
a1->m_textField->setVisible(a1->m_textField, 0);
v6 = (char *)a1->m_textField->getString(a1->m_textField);
sub_776584((int)&v7, v6);
CCTextInputNode::updateLabel((int)a1, (char **)&v7);
sub_774008(&v7);
sub_775C20(&v7, &a1->m_textArea->m_fontFile);
CCTextInputNode::updateDefaultFontValues((int)a1, (int)&v7);
sub_774008(&v7);
}
}