// // -[EditBoxImplMac controlTextDidChange:] from 0x1004ab5a0 to 0x1004ab6be (286 bytes) // // 1 xrefs: // > @ 0x10099aca0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __cdecl -[EditBoxImplMac controlTextDidChange:](EditBoxImplMac *self, SEL a2, id a3) { double v3; // xmm0_8 EditBoxImplMac *v4; // rbx _QWORD *editBox; // rdi __int64 v6; // r14 __int64 v7; // r15 const char *v8; // r13 size_t v9; // rax size_t v10; // r12 char *v11; // r15 size_t v12; // rbx __int64 v13; // rbx cocos2d::CCScriptEngineManager *v14; // rax __int64 v15; // [rsp+0h] [rbp-50h] EditBoxImplMac *v16; // [rsp+8h] [rbp-48h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v4 = self; editBox = self->editBox_; v6 = editBox[1]; if ( !v6 ) goto LABEL_13; v7 = editBox[2]; v8 = (const char *)(*(__int64 (__fastcall **)(_QWORD *, SEL, id))(*editBox + 112LL))(editBox, a2, a3); v9 = strlen(v8); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v3); v10 = v9; v15 = v7; if ( v9 >= 0x17 ) { v16 = v4; v12 = 26; if ( (v9 | 7) != 0x17 ) v12 = (v9 | 7) + 1; v11 = (char *)operator new(v12); __p = v11; __dst[0] = v12 + 1; v4 = v16; __dst[1] = v10; } else { LOBYTE(__dst[0]) = 2 * v9; v11 = (char *)__dst + 1; if ( !v9 ) goto LABEL_10; } memmove(v11, v8, v10); LABEL_10: v11[v10] = 0; (*(void (__fastcall **)(__int64, __int64, _QWORD *))(*(_QWORD *)v6 + 32LL))(v6, v15, __dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); editBox = v4->editBox_; LABEL_13: v13 = editBox[2]; if ( v13 ) { if ( *(_DWORD *)(v13 + 728) ) { v14 = cocos2d::CCScriptEngineManager::sharedManager(); (*(void (__fastcall **)(_QWORD, _QWORD, const char *, __int64, _QWORD))(**(_QWORD **)v14 + 144LL))( *(_QWORD *)v14, *(unsigned int *)(v13 + 728), "changed", v13, 0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source