{"type": "func", "start": 4295619952, "end": 4295620173, "name": "CCTextInputNode::textChanged", "pseudocode": "// \n// CCTextInputNode::textChanged from 0x10009f570 to 0x10009f64d (221 bytes)\n// \n// 2 xrefs:\n// > sub_10009F670 @ 0x10009f67c\n// > <???> @ 0x1008b6bf0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall CCTextInputNode::textChanged(CCTextInputNode *a1)\n{\n  double v1; // xmm0_8\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  TextInputDelegate *m_delegate; // rdi\n  std::string __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n\n  v3 = (const char *)((__int64 (__fastcall *)(cocos2d::CCTextFieldTTF *))a1->m_textField->getString)(a1->m_textField);\n  v4 = strlen(v3);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v1);\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_8;\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_8:\n    memmove(data, v3, v5);\n  data[v5] = 0;\n  CCTextInputNode::updateLabel(a1, __dst, v1);\n  if ( (*(_BYTE *)&__dst[0].__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__dst[0].__r_.__value_.__l.__data_);\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    ((void (__fastcall *)(TextInputDelegate *, CCTextInputNode *))m_delegate->textChanged)(m_delegate, a1);\n}", "assembly": "; \n; CCTextInputNode::textChanged from 0x10009f570 to 0x10009f64d (221 bytes)\n; \n; 2 xrefs:\n; > sub_10009F670 @ 0x10009f67c\n; > <???> @ 0x1008b6bf0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10009f570\nmov     rbp, rsp                                                       ; +0x1, 0x10009f571\npush    r15                                                            ; +0x4, 0x10009f574\npush    r14                                                            ; +0x6, 0x10009f576\npush    r13                                                            ; +0x8, 0x10009f578\npush    r12                                                            ; +0xa, 0x10009f57a\npush    rbx                                                            ; +0xc, 0x10009f57c\nsub     rsp, 18h                                                       ; +0xd, 0x10009f57d\nmov     rbx, rdi                                                       ; +0x11, 0x10009f581\nmov     rdi, [rdi+218h]                                                ; +0x14, 0x10009f584\nmov     rax, [rdi]                                                     ; +0x1b, 0x10009f58b\ncall    qword ptr [rax+4D0h]                                           ; +0x1e, 0x10009f58e\nmov     r15, rax                                                       ; +0x24, 0x10009f594\nmov     rdi, rax; __s                                                  ; +0x27, 0x10009f597\ncall    _strlen                                                        ; +0x2a, 0x10009f59a\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x2f, 0x10009f59f\njnb     loc_10009F648                                                  ; +0x33, 0x10009f5a3\nmov     r14, rax                                                       ; +0x39, 0x10009f5a9\ncmp     rax, 17h                                                       ; +0x3c, 0x10009f5ac\njnb     short loc_10009F5C4                                            ; +0x40, 0x10009f5b0\nlea     eax, [r14+r14]                                                 ; +0x42, 0x10009f5b2\nmov     byte ptr [rbp+__dst], al                                       ; +0x46, 0x10009f5b6\nlea     r12, [rbp+__dst+1]                                             ; +0x49, 0x10009f5b9\ntest    r14, r14                                                       ; +0x4d, 0x10009f5bd\njnz     short loc_10009F5F7                                            ; +0x50, 0x10009f5c0\njmp     short loc_10009F605                                            ; +0x52, 0x10009f5c2\nmov     rax, r14                                                       ; +0x54, 0x10009f5c4\nor      rax, 7                                                         ; +0x57, 0x10009f5c7\nlea     rcx, [rax+1]                                                   ; +0x5b, 0x10009f5cb\ncmp     rax, 17h                                                       ; +0x5f, 0x10009f5cf\nmov     r13d, 1Ah                                                      ; +0x63, 0x10009f5d3\ncmovnz  r13, rcx                                                       ; +0x69, 0x10009f5d9\nmov     rdi, r13; __sz                                                 ; +0x6d, 0x10009f5dd\ncall    __Znwm; operator new(ulong)                                    ; +0x70, 0x10009f5e0\nmov     r12, rax                                                       ; +0x75, 0x10009f5e5\nmov     [rbp+__p], rax                                                 ; +0x78, 0x10009f5e8\ninc     r13                                                            ; +0x7c, 0x10009f5ec\nmov     [rbp+__dst], r13                                               ; +0x7f, 0x10009f5ef\nmov     [rbp+var_38], r14                                              ; +0x83, 0x10009f5f3\nmov     rdi, r12; __dst                                                ; +0x87, 0x10009f5f7\nmov     rsi, r15; __src                                                ; +0x8a, 0x10009f5fa\nmov     rdx, r14; __len                                                ; +0x8d, 0x10009f5fd\ncall    _memmove                                                       ; +0x90, 0x10009f600\nmov     byte ptr [r12+r14], 0                                          ; +0x95, 0x10009f605\nlea     rsi, [rbp+__dst]                                               ; +0x9a, 0x10009f60a\nmov     rdi, rbx                                                       ; +0x9e, 0x10009f60e\ncall    CCTextInputNode__updateLabel                                   ; +0xa1, 0x10009f611\ntest    byte ptr [rbp+__dst], 1                                        ; +0xa6, 0x10009f616\njz      short loc_10009F625                                            ; +0xaa, 0x10009f61a\nmov     rdi, [rbp+__p]; __p                                            ; +0xac, 0x10009f61c\ncall    __ZdlPv; operator delete(void *)                               ; +0xb0, 0x10009f620\nmov     rdi, [rbx+220h]                                                ; +0xb5, 0x10009f625\ntest    rdi, rdi                                                       ; +0xbc, 0x10009f62c\njz      short loc_10009F639                                            ; +0xbf, 0x10009f62f\nmov     rax, [rdi]                                                     ; +0xc1, 0x10009f631\nmov     rsi, rbx                                                       ; +0xc4, 0x10009f634\ncall    qword ptr [rax]                                                ; +0xc7, 0x10009f637\nadd     rsp, 18h                                                       ; +0xc9, 0x10009f639\npop     rbx                                                            ; +0xcd, 0x10009f63d\npop     r12                                                            ; +0xce, 0x10009f63e\npop     r13                                                            ; +0xd0, 0x10009f640\npop     r14                                                            ; +0xd2, 0x10009f642\npop     r15                                                            ; +0xd4, 0x10009f644\npop     rbp                                                            ; +0xd6, 0x10009f646\nretn                                                                   ; +0xd7, 0x10009f647\ncall    sub_100006BF0                                                  ; +0xd8, 0x10009f648", "xrefs": ["sub_10009F670 @ 0x10009f67c", "<???> @ 0x1008b6bf0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}