// // EditLevelLayer::creatorDescriptionChanged from 0x1001e0880 to 0x1001e095f (223 bytes) // // 2 xrefs: // > sub_1001E0980 @ 0x1001e098c // > @ 0x100ade960 // // 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 12:26:28 +0000 // void __fastcall EditLevelLayer::creatorDescriptionChanged(__int64 a1, __int64 a2) { __int64 v2; // rax _QWORD *v3; // rbx const char *v4; // r14 size_t v5; // rax size_t v6; // r15 char *v7; // r12 size_t v8; // r13 _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] v2 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 480LL))(a1, 2); if ( v2 ) { v3 = (_QWORD *)v2; if ( (*(_BYTE *)a2 & 1) != 0 ) v4 = *(const char **)(a2 + 16); else v4 = (const char *)(a2 + 1); v5 = strlen(v4); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = v5; if ( v5 >= 0x17 ) { v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = (v5 | 7) + 1; v7 = (char *)operator new(v8); __p = v7; __dst[0] = v8 + 1; __dst[1] = v6; } else { LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( !v5 ) { LABEL_13: v7[v6] = 0; CCTextInputNode::setString(v3, (__int64)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); return; } } memmove(v7, v4, v6); goto LABEL_13; } }