{"type": "func", "start": 5371918656, "end": 5371918861, "name": "LevelSearchLayer::textInputClosed", "pseudocode": "// \n// LevelSearchLayer::textInputClosed from 0x14030f940 to 0x14030fa0d (205 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x14058bc28\n// > <???> @ 0x14058bc38\n// > <???> @ 0x1406d476c\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=1\nvoid LevelSearchLayer::textInputClosed(LevelSearchLayer *a1, CCTextInputNode *a2)\n{\n  const char *v3; // rax\n  size_t v4; // r8\n  void **v5; // rdx\n  void *v6; // rcx\n  void *Block[2]; // [rsp+28h] [rbp-30h] BYREF\n  __int128 v8; // [rsp+38h] [rbp-20h]\n\n  v3 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);\n  *(_OWORD *)Block = 0;\n  v8 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( v3[v4] );\n  sub_14003A930(Block, v3, v4);\n  v5 = Block;\n  if ( *((_QWORD *)&v8 + 1) > 0xFu )\n    v5 = (void **)Block[0];\n  LevelSearchLayer::updateSearchLabel((LevelSearchLayer *)((char *)a1 - 408), (const char *)v5);\n  if ( *((_QWORD *)&v8 + 1) > 0xFu )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v8 + 1) + 1LL) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v6);\n  }\n}", "assembly": "; \n; LevelSearchLayer::textInputClosed from 0x14030f940 to 0x14030fa0d (205 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x14058bc28\n; > <???> @ 0x14058bc38\n; > <???> @ 0x1406d476c\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    rbx                                                            ; +0x0, 0x14030f940\nsub     rsp, 50h                                                       ; +0x2, 0x14030f942\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14030f946\nxor     rax, rsp                                                       ; +0xd, 0x14030f94d\nmov     [rsp+58h+var_10], rax                                          ; +0x10, 0x14030f950\nmov     rbx, rcx                                                       ; +0x15, 0x14030f955\nmov     rcx, [rdx+228h]                                                ; +0x18, 0x14030f958\nadd     rcx, 258h                                                      ; +0x1f, 0x14030f95f\nmov     rax, [rcx]                                                     ; +0x26, 0x14030f966\ncall    qword ptr [rax+8]                                              ; +0x29, 0x14030f969\nxorps   xmm0, xmm0                                                     ; +0x2c, 0x14030f96c\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x2f, 0x14030f96f\nxorps   xmm1, xmm1                                                     ; +0x34, 0x14030f974\nmovdqu  [rsp+58h+var_20], xmm1                                         ; +0x37, 0x14030f977\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x3d, 0x14030f97d\ninc     r8                                                             ; +0x44, 0x14030f984\ncmp     byte ptr [rax+r8], 0                                           ; +0x47, 0x14030f987\njnz     short loc_14030F984                                            ; +0x4c, 0x14030f98c\nmov     rdx, rax                                                       ; +0x4e, 0x14030f98e\nlea     rcx, [rsp+58h+Block]                                           ; +0x51, 0x14030f991\ncall    sub_14003A930                                                  ; +0x56, 0x14030f996\nnop                                                                    ; +0x5b, 0x14030f99b\nlea     rdx, [rsp+58h+Block]                                           ; +0x5c, 0x14030f99c\ncmp     qword ptr [rsp+58h+var_20+8], 0Fh                              ; +0x61, 0x14030f9a1\ncmova   rdx, [rsp+58h+Block]                                           ; +0x67, 0x14030f9a7\nlea     rcx, [rbx-198h]                                                ; +0x6d, 0x14030f9ad\ncall    LevelSearchLayer__updateSearchLabel                            ; +0x74, 0x14030f9b4\nnop                                                                    ; +0x79, 0x14030f9b9\nmov     rdx, qword ptr [rsp+58h+var_20+8]                              ; +0x7a, 0x14030f9ba\ncmp     rdx, 0Fh                                                       ; +0x7f, 0x14030f9bf\njbe     short loc_14030F9FA                                            ; +0x83, 0x14030f9c3\ninc     rdx                                                            ; +0x85, 0x14030f9c5\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x88, 0x14030f9c8\nmov     rax, rcx                                                       ; +0x8d, 0x14030f9cd\ncmp     rdx, 1000h                                                     ; +0x90, 0x14030f9d0\njb      short loc_14030F9F5                                            ; +0x97, 0x14030f9d7\nadd     rdx, 27h ; '''                                                 ; +0x99, 0x14030f9d9\nmov     rcx, [rcx-8]                                                   ; +0x9d, 0x14030f9dd\nsub     rax, rcx                                                       ; +0xa1, 0x14030f9e1\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xa4, 0x14030f9e4\ncmp     rax, 1Fh                                                       ; +0xa8, 0x14030f9e8\njbe     short loc_14030F9F5                                            ; +0xac, 0x14030f9ec\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xae, 0x14030f9ee\ndb 0CCh                                                                ; +0xb4, 0x14030f9f4\ncall    j_j_free                                                       ; +0xb5, 0x14030f9f5\nmov     rcx, [rsp+58h+var_10]                                          ; +0xba, 0x14030f9fa\nxor     rcx, rsp; StackCookie                                          ; +0xbf, 0x14030f9ff\ncall    __security_check_cookie                                        ; +0xc2, 0x14030fa02\nadd     rsp, 50h                                                       ; +0xc7, 0x14030fa07\npop     rbx                                                            ; +0xcb, 0x14030fa0b\nretn                                                                   ; +0xcc, 0x14030fa0c", "xrefs": ["<???> @ 0x14058bc28", "<???> @ 0x14058bc38", "<???> @ 0x1406d476c"], "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"}