{"type": "func", "start": 4295399952, "end": 4295400241, "name": "CCTextInputNode::textChanged", "pseudocode": "// \n// CCTextInputNode::textChanged from 0x100069a10 to 0x100069b31 (289 bytes)\n// \n// 2 xrefs:\n// > sub_100069B50 @ 0x100069b5c\n// > <???> @ 0x100aba2b0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:19:44 +0000\n// \n\nvoid __fastcall CCTextInputNode::textChanged(__int64 a1)\n{\n  __int64 v2; // r14\n  const char *v3; // r15\n  size_t v4; // rax\n  std::string::size_type v5; // r14\n  char *data; // r12\n  size_t v7; // r13\n  void (__fastcall ***v8)(_QWORD, __int64); // rdi\n  void (__fastcall ***v9)(_QWORD, __int64); // rdi\n  std::string __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n\n  v2 = *(_QWORD *)(a1 + 680);\n  if ( v2 )\n  {\n    *(_QWORD *)(a1 + 680) = 0;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 528LL))(v2, 1);\n    cocos2d::CCObject::release(v2);\n  }\n  v3 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 576) + 1248LL))(*(_QWORD *)(a1 + 576));\n  v4 = strlen(v3);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v5 = v4;\n  if ( v4 >= 0x17 )\n  {\n    v7 = 26;\n    if ( (v4 | 7) != 0x17 )\n      v7 = (v4 | 7) + 1;\n    data = (char *)operator new(v7);\n    __dst[0].__r_.__value_.__r.__words[2] = (std::string::size_type)data;\n    __dst[0].__r_.__value_.__r.__words[0] = v7 + 1;\n    __dst[0].__r_.__value_.__l.__size_ = v5;\n    goto LABEL_10;\n  }\n  __dst[0].__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v4);\n  data = __dst[0].__r_.__value_.__s.__data_;\n  if ( v4 )\nLABEL_10:\n    memmove(data, v3, v5);\n  data[v5] = 0;\n  CCTextInputNode::updateLabel(a1, __dst);\n  if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__dst[0].__r_.__value_.__l.__data_);\n  v8 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 584);\n  if ( v8 )\n    (**v8)(v8, a1);\n  v9 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 496);\n  if ( v9 )\n    (**v9)(v9, a1);\n}", "assembly": "; \n; CCTextInputNode::textChanged from 0x100069a10 to 0x100069b31 (289 bytes)\n; \n; 2 xrefs:\n; > sub_100069B50 @ 0x100069b5c\n; > <???> @ 0x100aba2b0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:19:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x100069a10\nmov     rbp, rsp                                                       ; +0x1, 0x100069a11\npush    r15                                                            ; +0x4, 0x100069a14\npush    r14                                                            ; +0x6, 0x100069a16\npush    r13                                                            ; +0x8, 0x100069a18\npush    r12                                                            ; +0xa, 0x100069a1a\npush    rbx                                                            ; +0xc, 0x100069a1c\nsub     rsp, 18h                                                       ; +0xd, 0x100069a1d\nmov     rbx, rdi                                                       ; +0x11, 0x100069a21\nmov     r14, [rdi+2A8h]                                                ; +0x14, 0x100069a24\ntest    r14, r14                                                       ; +0x1b, 0x100069a2b\njz      short loc_100069A54                                            ; +0x1e, 0x100069a2e\nmov     qword ptr [rbx+2A8h], 0                                        ; +0x20, 0x100069a30\nmov     rax, [r14]                                                     ; +0x2b, 0x100069a3b\nmov     rdi, r14                                                       ; +0x2e, 0x100069a3e\nmov     esi, 1                                                         ; +0x31, 0x100069a41\ncall    qword ptr [rax+210h]                                           ; +0x36, 0x100069a46\nmov     rdi, r14                                                       ; +0x3c, 0x100069a4c\ncall    cocos2d__CCObject__release                                     ; +0x3f, 0x100069a4f\nmov     rdi, [rbx+240h]                                                ; +0x44, 0x100069a54\nmov     rax, [rdi]                                                     ; +0x4b, 0x100069a5b\ncall    qword ptr [rax+4E0h]                                           ; +0x4e, 0x100069a5e\nmov     r15, rax                                                       ; +0x54, 0x100069a64\nmov     rdi, rax; __s                                                  ; +0x57, 0x100069a67\ncall    _strlen                                                        ; +0x5a, 0x100069a6a\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x5f, 0x100069a6f\njnb     loc_100069B2C                                                  ; +0x63, 0x100069a73\nmov     r14, rax                                                       ; +0x69, 0x100069a79\ncmp     rax, 17h                                                       ; +0x6c, 0x100069a7c\njnb     short loc_100069A94                                            ; +0x70, 0x100069a80\nlea     eax, [r14+r14]                                                 ; +0x72, 0x100069a82\nmov     byte ptr [rbp+__dst], al                                       ; +0x76, 0x100069a86\nlea     r12, [rbp+__dst+1]                                             ; +0x79, 0x100069a89\ntest    r14, r14                                                       ; +0x7d, 0x100069a8d\njnz     short loc_100069AC7                                            ; +0x80, 0x100069a90\njmp     short loc_100069AD5                                            ; +0x82, 0x100069a92\nmov     rax, r14                                                       ; +0x84, 0x100069a94\nor      rax, 7                                                         ; +0x87, 0x100069a97\nlea     rcx, [rax+1]                                                   ; +0x8b, 0x100069a9b\ncmp     rax, 17h                                                       ; +0x8f, 0x100069a9f\nmov     r13d, 1Ah                                                      ; +0x93, 0x100069aa3\ncmovnz  r13, rcx                                                       ; +0x99, 0x100069aa9\nmov     rdi, r13; __sz                                                 ; +0x9d, 0x100069aad\ncall    __Znwm; operator new(ulong)                                    ; +0xa0, 0x100069ab0\nmov     r12, rax                                                       ; +0xa5, 0x100069ab5\nmov     [rbp+__p], rax                                                 ; +0xa8, 0x100069ab8\ninc     r13                                                            ; +0xac, 0x100069abc\nmov     [rbp+__dst], r13                                               ; +0xaf, 0x100069abf\nmov     [rbp+var_38], r14                                              ; +0xb3, 0x100069ac3\nmov     rdi, r12; __dst                                                ; +0xb7, 0x100069ac7\nmov     rsi, r15; __src                                                ; +0xba, 0x100069aca\nmov     rdx, r14; __len                                                ; +0xbd, 0x100069acd\ncall    _memmove                                                       ; +0xc0, 0x100069ad0\nmov     byte ptr [r12+r14], 0                                          ; +0xc5, 0x100069ad5\nlea     rsi, [rbp+__dst]                                               ; +0xca, 0x100069ada\nmov     rdi, rbx                                                       ; +0xce, 0x100069ade\ncall    CCTextInputNode__updateLabel                                   ; +0xd1, 0x100069ae1\ntest    byte ptr [rbp+__dst], 1                                        ; +0xd6, 0x100069ae6\njz      short loc_100069AF5                                            ; +0xda, 0x100069aea\nmov     rdi, [rbp+__p]; __p                                            ; +0xdc, 0x100069aec\ncall    __ZdlPv; operator delete(void *)                               ; +0xe0, 0x100069af0\nmov     rdi, [rbx+248h]                                                ; +0xe5, 0x100069af5\ntest    rdi, rdi                                                       ; +0xec, 0x100069afc\njz      short loc_100069B09                                            ; +0xef, 0x100069aff\nmov     rax, [rdi]                                                     ; +0xf1, 0x100069b01\nmov     rsi, rbx                                                       ; +0xf4, 0x100069b04\ncall    qword ptr [rax]                                                ; +0xf7, 0x100069b07\nmov     rdi, [rbx+1F0h]                                                ; +0xf9, 0x100069b09\ntest    rdi, rdi                                                       ; +0x100, 0x100069b10\njz      short loc_100069B1D                                            ; +0x103, 0x100069b13\nmov     rax, [rdi]                                                     ; +0x105, 0x100069b15\nmov     rsi, rbx                                                       ; +0x108, 0x100069b18\ncall    qword ptr [rax]                                                ; +0x10b, 0x100069b1b\nadd     rsp, 18h                                                       ; +0x10d, 0x100069b1d\npop     rbx                                                            ; +0x111, 0x100069b21\npop     r12                                                            ; +0x112, 0x100069b22\npop     r13                                                            ; +0x114, 0x100069b24\npop     r14                                                            ; +0x116, 0x100069b26\npop     r15                                                            ; +0x118, 0x100069b28\npop     rbp                                                            ; +0x11a, 0x100069b2a\nretn                                                                   ; +0x11b, 0x100069b2b\ncall    sub_100003630                                                  ; +0x11c, 0x100069b2c", "xrefs": ["sub_100069B50 @ 0x100069b5c", "<???> @ 0x100aba2b0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}