// // -[EditBoxImplMac controlTextDidChange:] from 0x1004a4440 to 0x1004a455e (286 bytes) // // 1 xrefs: // > @ 0x100bdcd40 // // 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:30:54 +0000 // void __cdecl -[EditBoxImplMac controlTextDidChange:](EditBoxImplMac *self, SEL a2, id a3) { EditBoxImplMac *v3; // rbx _QWORD *editBox; // rdi __int64 v5; // r14 __int64 v6; // r15 const char *v7; // r13 size_t v8; // rax size_t v9; // r12 char *v10; // r15 size_t v11; // rbx __int64 v12; // rbx _QWORD *v13; // rax __int64 v14; // [rsp+0h] [rbp-50h] EditBoxImplMac *v15; // [rsp+8h] [rbp-48h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v3 = self; editBox = self->editBox_; v5 = editBox[1]; if ( !v5 ) goto LABEL_13; v6 = editBox[2]; v7 = (const char *)(*(__int64 (__fastcall **)(_QWORD *, SEL, id))(*editBox + 112LL))(editBox, a2, a3); v8 = strlen(v7); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v9 = v8; v14 = v6; if ( v8 >= 0x17 ) { v15 = v3; v11 = 26; if ( (v8 | 7) != 0x17 ) v11 = (v8 | 7) + 1; v10 = (char *)operator new(v11); __p = v10; __dst[0] = v11 + 1; v3 = v15; __dst[1] = v9; } else { LOBYTE(__dst[0]) = 2 * v8; v10 = (char *)__dst + 1; if ( !v8 ) goto LABEL_10; } memmove(v10, v7, v9); LABEL_10: v10[v9] = 0; (*(void (__fastcall **)(__int64, __int64, _QWORD *))(*(_QWORD *)v5 + 32LL))(v5, v14, __dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); editBox = v3->editBox_; LABEL_13: v12 = editBox[2]; if ( v12 ) { if ( *(_DWORD *)(v12 + 728) ) { v13 = cocos2d::CCScriptEngineManager::sharedManager(); (*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(*(_QWORD *)*v13 + 144LL))( *v13, *(unsigned int *)(v12 + 728), "changed", v12, 0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source