//
// EditLevelLayer::creatorDescriptionChanged from 0x4a0024 to 0x4a0094 (112 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditLevelLayer::creatorDescriptionChanged @ 0x4a009c
//
// 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:49:49 +0000
//
int __fastcall EditLevelLayer::creatorDescriptionChanged(int a1, int a2)
{
int result; // r0
int v4; // r7
bool v5; // nf
size_t v6; // r0
int v7[3]; // [sp+0h] [bp-14h] BYREF
result = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 240))(a1, 2);
v4 = result;
if ( result )
{
v5 = (*(_BYTE *)a2 & 1) != 0;
if ( (*(_BYTE *)a2 & 1) == 0 )
++a2;
v7[0] = 0;
if ( v5 )
a2 = *(_DWORD *)(a2 + 8);
v7[1] = 0;
v7[2] = 0;
v6 = strlen((const char *)a2);
std::string::__init(v7, (const void *)a2, v6);
CCTextInputNode::setString(v4, (int)v7);
return std::string::~string((int)v7);
}
return result;
}