{"type": "func", "start": 5371891056, "end": 5371891404, "name": "LevelListLayer::textChanged", "pseudocode": "// \n// LevelListLayer::textChanged from 0x140308d70 to 0x140308ecc (348 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140589660\n// > <???> @ 0x1406d45d4\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\n// Hidden C++ exception states: #wind=2\nvoid LevelListLayer::textChanged(LevelListLayer *a1, CCTextInputNode *a2)\n{\n  const char *v4; // rax\n  size_t v5; // rbx\n  size_t v6; // r8\n  void **v7; // rdx\n  void **v8; // rcx\n  void **v9; // rdx\n  void *v10; // rcx\n  void *Src[2]; // [rsp+28h] [rbp-50h] BYREF\n  size_t Size; // [rsp+38h] [rbp-40h]\n  unsigned __int64 v13; // [rsp+40h] [rbp-38h]\n  void *Block[2]; // [rsp+48h] [rbp-30h] BYREF\n  __int128 v15; // [rsp+58h] [rbp-20h]\n\n  if ( a2->getTag(a2) == 1002 )\n  {\n    v4 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);\n    *(_OWORD *)Block = 0;\n    v15 = 0;\n    v5 = -1;\n    v6 = -1;\n    do\n      ++v6;\n    while ( v4[v6] );\n    sub_14003A930(Block, v4, v6);\n    v7 = Block;\n    if ( *((_QWORD *)&v15 + 1) > 0xFu )\n      v7 = (void **)Block[0];\n    *(_OWORD *)Src = 0;\n    Size = 0;\n    v13 = 0;\n    do\n      ++v5;\n    while ( *((_BYTE *)v7 + v5) );\n    sub_14003A930(Src, v7, v5);\n    v8 = (void **)(*(_QWORD *)&a1->m_fVertexZ + 432LL);\n    if ( v8 != Src )\n    {\n      v9 = Src;\n      if ( v13 > 0xF )\n        v9 = (void **)Src[0];\n      sub_14003CCE0(v8, v9, Size);\n    }\n    sub_14003A830((__int64)Src);\n    if ( *((_QWORD *)&v15 + 1) > 0xFu )\n    {\n      v10 = Block[0];\n      if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 0x1000 )\n      {\n        v10 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v10);\n    }\n  }\n}", "assembly": "; \n; LevelListLayer::textChanged from 0x140308d70 to 0x140308ecc (348 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140589660\n; > <???> @ 0x1406d45d4\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140308d70\npush    rdi                                                            ; +0x5, 0x140308d75\nsub     rsp, 70h                                                       ; +0x6, 0x140308d76\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x140308d7a\nxor     rax, rsp                                                       ; +0x11, 0x140308d81\nmov     [rsp+78h+var_10], rax                                          ; +0x14, 0x140308d84\nmov     rbx, rdx                                                       ; +0x19, 0x140308d89\nmov     rdi, rcx                                                       ; +0x1c, 0x140308d8c\nmov     rax, [rdx]                                                     ; +0x1f, 0x140308d8f\nmov     rcx, rdx                                                       ; +0x22, 0x140308d92\ncall    qword ptr [rax+38h]                                            ; +0x25, 0x140308d95\ncmp     eax, 3EAh                                                      ; +0x28, 0x140308d98\njnz     loc_140308EB1                                                  ; +0x2d, 0x140308d9d\nmov     rcx, [rbx+228h]                                                ; +0x33, 0x140308da3\nadd     rcx, 258h                                                      ; +0x3a, 0x140308daa\nmov     rax, [rcx]                                                     ; +0x41, 0x140308db1\ncall    qword ptr [rax+8]                                              ; +0x44, 0x140308db4\nxorps   xmm0, xmm0                                                     ; +0x47, 0x140308db7\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x4a, 0x140308dba\nxorps   xmm1, xmm1                                                     ; +0x4f, 0x140308dbf\nmovdqu  [rsp+78h+var_20], xmm1                                         ; +0x52, 0x140308dc2\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x58, 0x140308dc8\nmov     r8, rbx                                                        ; +0x5f, 0x140308dcf\ninc     r8                                                             ; +0x62, 0x140308dd2\ncmp     byte ptr [rax+r8], 0                                           ; +0x65, 0x140308dd5\njnz     short loc_140308DD2                                            ; +0x6a, 0x140308dda\nmov     rdx, rax                                                       ; +0x6c, 0x140308ddc\nlea     rcx, [rsp+78h+Block]                                           ; +0x6f, 0x140308ddf\ncall    sub_14003A930                                                  ; +0x74, 0x140308de4\nnop                                                                    ; +0x79, 0x140308de9\nlea     rdx, [rsp+78h+Block]                                           ; +0x7a, 0x140308dea\ncmp     qword ptr [rsp+78h+var_20+8], 0Fh                              ; +0x7f, 0x140308def\ncmova   rdx, [rsp+78h+Block]                                           ; +0x85, 0x140308df5\nxorps   xmm0, xmm0                                                     ; +0x8b, 0x140308dfb\nmovups  xmmword ptr [rsp+78h+Src], xmm0                                ; +0x8e, 0x140308dfe\nmov     [rsp+78h+Size], 0                                              ; +0x93, 0x140308e03\nmov     [rsp+78h+var_38], 0                                            ; +0x9c, 0x140308e0c\ninc     rbx                                                            ; +0xa5, 0x140308e15\ncmp     byte ptr [rdx+rbx], 0                                          ; +0xa8, 0x140308e18\njnz     short loc_140308E15                                            ; +0xac, 0x140308e1c\nmov     r8, rbx                                                        ; +0xae, 0x140308e1e\nlea     rcx, [rsp+78h+Src]                                             ; +0xb1, 0x140308e21\ncall    sub_14003A930                                                  ; +0xb6, 0x140308e26\nlea     rax, [rsp+78h+Src]                                             ; +0xbb, 0x140308e2b\nmov     [rsp+78h+var_58], rax                                          ; +0xc0, 0x140308e30\nmov     rcx, [rdi+48h]                                                 ; +0xc5, 0x140308e35\nadd     rcx, 1B0h; void *                                              ; +0xc9, 0x140308e39\nlea     rax, [rsp+78h+Src]                                             ; +0xd0, 0x140308e40\ncmp     rcx, rax                                                       ; +0xd5, 0x140308e45\njz      short loc_140308E66                                            ; +0xd8, 0x140308e48\nlea     rdx, [rsp+78h+Src]                                             ; +0xda, 0x140308e4a\ncmp     [rsp+78h+var_38], 0Fh                                          ; +0xdf, 0x140308e4f\ncmova   rdx, [rsp+78h+Src]; Src                                        ; +0xe5, 0x140308e55\nmov     r8, [rsp+78h+Size]; Size                                       ; +0xeb, 0x140308e5b\ncall    sub_14003CCE0                                                  ; +0xf0, 0x140308e60\nnop                                                                    ; +0xf5, 0x140308e65\nlea     rcx, [rsp+78h+Src]                                             ; +0xf6, 0x140308e66\ncall    sub_14003A830                                                  ; +0xfb, 0x140308e6b\nnop                                                                    ; +0x100, 0x140308e70\nmov     rdx, qword ptr [rsp+78h+var_20+8]                              ; +0x101, 0x140308e71\ncmp     rdx, 0Fh                                                       ; +0x106, 0x140308e76\njbe     short loc_140308EB1                                            ; +0x10a, 0x140308e7a\ninc     rdx                                                            ; +0x10c, 0x140308e7c\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x10f, 0x140308e7f\nmov     rax, rcx                                                       ; +0x114, 0x140308e84\ncmp     rdx, 1000h                                                     ; +0x117, 0x140308e87\njb      short loc_140308EAC                                            ; +0x11e, 0x140308e8e\nadd     rdx, 27h ; '''                                                 ; +0x120, 0x140308e90\nmov     rcx, [rcx-8]                                                   ; +0x124, 0x140308e94\nsub     rax, rcx                                                       ; +0x128, 0x140308e98\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x12b, 0x140308e9b\ncmp     rax, 1Fh                                                       ; +0x12f, 0x140308e9f\njbe     short loc_140308EAC                                            ; +0x133, 0x140308ea3\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x135, 0x140308ea5\nalign 4                                                                ; +0x13b, 0x140308eab\ncall    j_j_free                                                       ; +0x13c, 0x140308eac\nmov     rcx, [rsp+78h+var_10]                                          ; +0x141, 0x140308eb1\nxor     rcx, rsp; StackCookie                                          ; +0x146, 0x140308eb6\ncall    __security_check_cookie                                        ; +0x149, 0x140308eb9\nmov     rbx, [rsp+78h+arg_10]                                          ; +0x14e, 0x140308ebe\nadd     rsp, 70h                                                       ; +0x156, 0x140308ec6\npop     rdi                                                            ; +0x15a, 0x140308eca\nretn                                                                   ; +0x15b, 0x140308ecb", "xrefs": ["<???> @ 0x140589660", "<???> @ 0x1406d45d4"], "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"}