//
// CCTextInputNode::setMaxTextAreaHeight from 0x6c47f0 to 0x6c4914 (292 bytes)
//
// 2 xrefs:
// > EditLevelLayer::init @ 0x7f08b8
// > ??> @ 0x885b8
//
// This function is hookable on this platform (idp: arm, 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 12:51:20 +0000
//
__int64 __fastcall CCTextInputNode::setMaxTextAreaHeight(CCTextInputNode *this, float a2)
{
__int64 v3; // x1
const char *v4; // x0
const char *v5; // x24
size_t v6; // x0
size_t v7; // x19
unsigned __int64 v8; // x0
char *v9; // x3
__int64 v11; // [xsp+40h] [xbp+40h] BYREF
size_t v12; // [xsp+48h] [xbp+48h]
void *v13; // [xsp+50h] [xbp+50h]
v3 = *((_QWORD *)this + 72);
*((float *)this + 163) = a2;
v4 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 1248LL))(v3);
v11 = 0;
v5 = v4;
v12 = 0;
v13 = nullptr;
v6 = strlen(v4);
v7 = v6;
if ( v6 > 0xFFFFFFFFFFFFFFEFLL )
sub_62B884();
if ( v6 > 0x16 )
{
v8 = (v6 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v11 = v8 | 1;
v9 = (char *)operator new(v8);
v13 = v9;
v12 = v7;
LABEL_4:
v9 = (char *)memcpy(v9, v5, v7);
goto LABEL_5;
}
LOBYTE(v11) = 2 * v6;
v9 = (char *)&v11 + 1;
if ( v6 )
goto LABEL_4;
LABEL_5:
v9[v7] = 0;
CCTextInputNode::updateLabel((__int64)this, (__int64)&v11);
if ( (v11 & 1) != 0 )
operator delete(v13);
return _stack_chk_guard;
}