{"type": "func", "start": 5373103408, "end": 5373103786, "name": "LevelListLayer::textInputOpened", "pseudocode": "// \n// LevelListLayer::textInputOpened from 0x140430d30 to 0x140430eaa (378 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14078ecb0\n// > <???> @ 0x140926c90\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 11:32:15 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall LevelListLayer::textInputOpened(__int64 a1, _QWORD *a2)\n{\n  _BYTE *v3; // rax\n  size_t v4; // r8\n  int v5; // eax\n  unsigned __int64 v6; // rdi\n  char *v7; // rbx\n  void **v8; // rcx\n  size_t v9; // r8\n  char *v10; // rax\n  __int128 Buf2; // [rsp+30h] [rbp-58h] BYREF\n  __int64 v12; // [rsp+40h] [rbp-48h]\n  __int64 v13; // [rsp+48h] [rbp-40h]\n  void *Buf1[2]; // [rsp+58h] [rbp-30h] BYREF\n  size_t v15; // [rsp+68h] [rbp-20h]\n  unsigned __int64 v16; // [rsp+70h] [rbp-18h]\n\n  v3 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);\n  *(_OWORD *)Buf1 = 0;\n  v15 = 0;\n  v16 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( v3[v4] );\n  sub_14003D230(Buf1, v3, v4);\n  v5 = (*(__int64 (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2);\n  v6 = v16;\n  v7 = (char *)Buf1[0];\n  if ( v5 == 1002 )\n  {\n    Buf2 = 0;\n    v12 = 0;\n    v13 = 15;\n    LOBYTE(Buf2) = 0;\n    v8 = Buf1;\n    if ( v16 > 0xF )\n      v8 = (void **)Buf1[0];\n    v9 = v15;\n    if ( v15 )\n      v9 = 0;\n    if ( !memcmp(v8, &Buf2, v9) && !v15 )\n    {\n      Buf2 = 0;\n      v12 = 1;\n      v13 = 15;\n      LOWORD(Buf2) = 32;\n      CCTextInputNode::updateLabel((__int64)a2, (__int64 *)&Buf2);\n    }\n  }\n  if ( v6 > 0xF )\n  {\n    v10 = v7;\n    if ( v6 + 1 >= 0x1000 )\n    {\n      v7 = *((char **)v7 - 1);\n      if ( (unsigned __int64)(v10 - v7 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v7);\n  }\n}", "assembly": "; \n; LevelListLayer::textInputOpened from 0x140430d30 to 0x140430eaa (378 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14078ecb0\n; > <???> @ 0x140926c90\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 11:32:15 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140430d30\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140430d35\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x140430d3a\npush    r14                                                            ; +0xf, 0x140430d3f\nsub     rsp, 80h                                                       ; +0x11, 0x140430d41\nmov     rax, cs:__security_cookie                                      ; +0x18, 0x140430d48\nxor     rax, rsp                                                       ; +0x1f, 0x140430d4f\nmov     [rsp+88h+var_10], rax                                          ; +0x22, 0x140430d52\nmov     rsi, rdx                                                       ; +0x27, 0x140430d57\nxor     r14d, r14d                                                     ; +0x2a, 0x140430d5a\nmov     rcx, [rdx+250h]                                                ; +0x2d, 0x140430d5d\nadd     rcx, 258h                                                      ; +0x34, 0x140430d64\nmov     rax, [rcx]                                                     ; +0x3b, 0x140430d6b\ncall    qword ptr [rax+8]                                              ; +0x3e, 0x140430d6e\nxorps   xmm0, xmm0                                                     ; +0x41, 0x140430d71\nmovups  xmmword ptr [rsp+88h+Buf1], xmm0                               ; +0x44, 0x140430d74\nmov     [rsp+88h+var_20], r14                                          ; +0x49, 0x140430d79\nmov     [rsp+88h+var_18], r14                                          ; +0x4e, 0x140430d7e\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x53, 0x140430d83\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x140430d8a\ninc     r8                                                             ; +0x60, 0x140430d90\ncmp     [rax+r8], r14b                                                 ; +0x63, 0x140430d93\njnz     short loc_140430D90                                            ; +0x67, 0x140430d97\nmov     rdx, rax                                                       ; +0x69, 0x140430d99\nlea     rcx, [rsp+88h+Buf1]                                            ; +0x6c, 0x140430d9c\ncall    sub_14003D230                                                  ; +0x71, 0x140430da1\nnop                                                                    ; +0x76, 0x140430da6\nmov     rax, [rsi]                                                     ; +0x77, 0x140430da7\nmov     rcx, rsi                                                       ; +0x7a, 0x140430daa\ncall    qword ptr [rax+38h]                                            ; +0x7d, 0x140430dad\nmov     rdi, [rsp+88h+var_18]                                          ; +0x80, 0x140430db0\nmov     rbx, [rsp+88h+Buf1]                                            ; +0x85, 0x140430db5\ncmp     eax, 3EAh                                                      ; +0x8a, 0x140430dba\njnz     short loc_140430E3A                                            ; +0x8f, 0x140430dbf\nxorps   xmm0, xmm0                                                     ; +0x91, 0x140430dc1\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0x94, 0x140430dc4\nmov     [rsp+88h+var_48], r14                                          ; +0x99, 0x140430dc9\nmov     [rsp+88h+var_40], 0Fh                                          ; +0x9e, 0x140430dce\nmov     byte ptr [rsp+88h+Buf2], 0                                     ; +0xa7, 0x140430dd7\nlea     rcx, [rsp+88h+Buf1]                                            ; +0xac, 0x140430ddc\ncmp     rdi, 0Fh                                                       ; +0xb1, 0x140430de1\ncmova   rcx, rbx; Buf1                                                 ; +0xb5, 0x140430de5\nmov     r8, [rsp+88h+var_20]                                           ; +0xb9, 0x140430de9\ntest    r8, r8                                                         ; +0xbe, 0x140430dee\ncmova   r8, r14; Size                                                  ; +0xc1, 0x140430df1\nlea     rdx, [rsp+88h+Buf2]; Buf2                                      ; +0xc5, 0x140430df5\ncall    memcmp                                                         ; +0xca, 0x140430dfa\ntest    eax, eax                                                       ; +0xcf, 0x140430dff\njnz     short loc_140430E3A                                            ; +0xd1, 0x140430e01\ncmp     [rsp+88h+var_20], 0                                            ; +0xd3, 0x140430e03\nja      short loc_140430E3A                                            ; +0xd9, 0x140430e09\nxorps   xmm0, xmm0                                                     ; +0xdb, 0x140430e0b\nmovups  [rsp+88h+Buf2], xmm0                                           ; +0xde, 0x140430e0e\nmov     [rsp+88h+var_48], 1                                            ; +0xe3, 0x140430e13\nmov     [rsp+88h+var_40], 0Fh                                          ; +0xec, 0x140430e1c\nmov     word ptr [rsp+88h+Buf2], 20h ; ' '                             ; +0xf5, 0x140430e25\nlea     rdx, [rsp+88h+Buf2]                                            ; +0xfc, 0x140430e2c\nmov     rcx, rsi                                                       ; +0x101, 0x140430e31\ncall    CCTextInputNode__updateLabel                                   ; +0x104, 0x140430e34\nnop                                                                    ; +0x109, 0x140430e39\ncmp     rdi, 0Fh                                                       ; +0x10a, 0x140430e3a\njbe     short loc_140430E83                                            ; +0x10e, 0x140430e3e\nlea     rdx, [rdi+1]                                                   ; +0x110, 0x140430e40\nmov     rax, rbx                                                       ; +0x114, 0x140430e44\ncmp     rdx, 1000h                                                     ; +0x117, 0x140430e47\njb      short loc_140430E7B                                            ; +0x11e, 0x140430e4e\nadd     rdx, 27h ; '''                                                 ; +0x120, 0x140430e50\nmov     rbx, [rbx-8]                                                   ; +0x124, 0x140430e54\nsub     rax, rbx                                                       ; +0x128, 0x140430e58\nsub     rax, 8                                                         ; +0x12b, 0x140430e5b\ncmp     rax, 1Fh                                                       ; +0x12f, 0x140430e5f\njbe     short loc_140430E7B                                            ; +0x133, 0x140430e63\nmov     [rsp+88h+Reserved], r14; Reserved                              ; +0x135, 0x140430e65\nxor     r9d, r9d; LineNo                                               ; +0x13a, 0x140430e6a\nxor     r8d, r8d; FileName                                             ; +0x13d, 0x140430e6d\nxor     edx, edx; FunctionName                                         ; +0x140, 0x140430e70\nxor     ecx, ecx; Expression                                           ; +0x142, 0x140430e72\ncall    cs:_invoke_watson                                              ; +0x144, 0x140430e74\ndb 0CCh                                                                ; +0x14a, 0x140430e7a\nmov     rcx, rbx; Block                                                ; +0x14b, 0x140430e7b\ncall    j_j_free                                                       ; +0x14e, 0x140430e7e\nmov     rcx, [rsp+88h+var_10]                                          ; +0x153, 0x140430e83\nxor     rcx, rsp; StackCookie                                          ; +0x158, 0x140430e88\ncall    __security_check_cookie                                        ; +0x15b, 0x140430e8b\nlea     r11, [rsp+88h+var_8]                                           ; +0x160, 0x140430e90\nmov     rbx, [r11+10h]                                                 ; +0x168, 0x140430e98\nmov     rsi, [r11+20h]                                                 ; +0x16c, 0x140430e9c\nmov     rdi, [r11+28h]                                                 ; +0x170, 0x140430ea0\nmov     rsp, r11                                                       ; +0x174, 0x140430ea4\npop     r14                                                            ; +0x177, 0x140430ea7\nretn                                                                   ; +0x179, 0x140430ea9", "xrefs": ["<???> @ 0x14078ecb0", "<???> @ 0x140926c90"], "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"}