//
// CCTextInputNode::addTextArea from 0x140054770 to 0x14005487e (270 bytes)
//
// 10 xrefs:
// > ThreadViewPopup::init @ 0x1400da41a
// > NewThreadPopup::init @ 0x1400f0107
// > ThreadDescPopup::buildUI @ 0x1400fcda5
// > EditLevelLayer::init @ 0x140178e9d
// > SoundPackDescPopup::init @ 0x1401996ba
// > SetTextPopup::init @ 0x1403a7870
// > ShareCommentLayer::init @ 0x14062ef31
// > ??> @ 0x140886ef4
// > ??> @ 0x140886f04
// > ??> @ 0x140910274
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:25:40 +0000
//
void __fastcall CCTextInputNode::addTextArea(__int64 a1, __int64 a2)
{
__int64 *v3; // rdi
__int64 v4; // rbx
__int64 v5; // rax
_BYTE *v6; // rax
size_t v7; // r8
__int64 v8; // rax
__int128 v9; // [rsp+20h] [rbp-28h] BYREF
__int64 v10; // [rsp+30h] [rbp-18h]
__int64 v11; // [rsp+38h] [rbp-10h]
char v12; // [rsp+50h] [rbp+8h] BYREF
if ( !*(_QWORD *)(a1 + 632) )
{
*(_QWORD *)(a1 + 632) = a2;
*(_DWORD *)(a1 + 672) = *(_DWORD *)(a2 + 624);
*(_DWORD *)(a2 + 604) = *(_DWORD *)(a1 + 520);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 632));
v3 = *(__int64 **)(a1 + 632);
v4 = *v3;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, 0.0, 0.0);
(*(void (__fastcall **)(__int64 *, __int64))(v4 + 184))(v3, v5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 592) + 336LL))(*(_QWORD *)(a1 + 592), 0);
v6 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 592) + 600LL) + 8LL))(*(_QWORD *)(a1 + 592) + 600LL);
v9 = 0;
v10 = 0;
v7 = -1;
v11 = 0;
do
++v7;
while ( v6[v7] );
sub_14003D230(&v9, v6, v7);
CCTextInputNode::updateLabel(a1, &v9);
v8 = sub_14003F4F0((__int64)&v9, *(_QWORD *)(a1 + 632) + 632LL);
CCTextInputNode::updateDefaultFontValues(a1, v8);
}
}