//
// CCTextInputNode::addTextArea from 0x3e31e4 to 0x3e32bc (216 bytes)
//
// 9 xrefs:
// > EditLevelLayer::init @ 0x4a14d4
// > ShareCommentLayer::init @ 0x541d62
// > SetTextPopup::init @ 0x5de648
// > GJWriteMessagePopup::init @ 0x5dfc0e
// > GJWriteMessagePopup::init @ 0x5dfebe
// > ThreadDescPopup::buildUI @ 0x75419c
// > NewThreadPopup::init @ 0x756d5c
// > ThreadViewPopup::init @ 0x75cca6
// > SoundPackDescPopup::init @ 0x7868bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:03 +0000
//
int *__fastcall CCTextInputNode::addTextArea(int *this, TextArea *a2)
{
int v2; // r4
int v3; // r8
void (__fastcall *v4)(int, _BYTE *); // r9
const char *v5; // r0
const char *v6; // r7
size_t v7; // r0
_BYTE v8[8]; // [sp+0h] [bp-1Ch] BYREF
int v9[3]; // [sp+8h] [bp-14h] BYREF
v2 = (int)this;
if ( !*(this + 109) )
{
*(this + 109) = (int)a2;
*(this + 116) = *((_DWORD *)a2 + 131);
TextArea::setParseEmotes((int)a2, *(this + 93));
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v2 + 228))(v2, *(_DWORD *)(v2 + 436));
v3 = *(_DWORD *)(v2 + 436);
v4 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v3 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, 0.0, 0.0);
v4(v3, v8);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v2 + 416) + 172))(*(_DWORD *)(v2 + 416), 0);
v5 = (const char *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 416) + 624))(*(_DWORD *)(v2 + 416));
memset(v9, 0, sizeof(v9));
v6 = v5;
v7 = strlen(v5);
std::string::__init(v9, v6, v7);
CCTextInputNode::updateLabel((float *)v2, (int)v9);
std::string::~string((int)v9);
std::string::basic_string(v9, *(_DWORD *)(v2 + 436) + 532);
CCTextInputNode::updateDefaultFontValues(v2, (unsigned __int8 *)v9);
return (int *)std::string::~string((int)v9);
}
return this;
}