//
// EditLevelLayer::creatorDescriptionChanged from 0x7ed770 to 0x7ed8a8 (312 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditLevelLayer::creatorDescriptionChanged @ 0x7ed8ac
// > ??> @ 0xa5160
// > ??> @ 0x143c930
//
// 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:54:33 +0000
//
__int64 __fastcall EditLevelLayer::creatorDescriptionChanged(__int64 a1, __int64 a2)
{
_QWORD *v3; // x24
const char *v4; // x21
size_t v5; // x0
size_t v6; // x19
unsigned __int64 v7; // x0
char *v8; // x3
__int64 v10; // [xsp+40h] [xbp+40h] BYREF
size_t v11; // [xsp+48h] [xbp+48h]
void *v12; // [xsp+50h] [xbp+50h]
v3 = (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 2);
if ( !v3 )
return _stack_chk_guard;
v4 = (const char *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v4 = *(const char **)(a2 + 16);
v10 = 0;
v11 = 0;
v12 = nullptr;
v5 = strlen(v4);
v6 = v5;
if ( v5 > 0xFFFFFFFFFFFFFFEFLL )
sub_62C67C();
if ( v5 > 0x16 )
{
v7 = (v5 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v10 = v7 | 1;
v8 = (char *)operator new(v7);
v12 = v8;
v11 = v6;
LABEL_7:
v8 = (char *)memcpy(v8, v4, v6);
goto LABEL_8;
}
LOBYTE(v10) = 2 * v5;
v8 = (char *)&v10 + 1;
if ( v5 )
goto LABEL_7;
LABEL_8:
v8[v6] = 0;
CCTextInputNode::setString(v3, (char *)&v10);
if ( (v10 & 1) != 0 )
operator delete(v12);
return _stack_chk_guard;
}