{"type": "func", "start": 5373274144, "end": 5373274644, "name": "LevelSettingsLayer::textChanged", "pseudocode": "// \n// LevelSettingsLayer::textChanged from 0x14045a820 to 0x14045aa14 (500 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140798008\n// > <???> @ 0x140927c44\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:31 +0000\n// \n\nvoid __fastcall LevelSettingsLayer::textChanged(__int64 a1, _QWORD *a2)\n{\n  _BYTE *v4; // rax\n  size_t v5; // r8\n  const char *v6; // rcx\n  int v7; // ebx\n  char *v8; // r8\n  _BYTE *v9; // rax\n  size_t v10; // r8\n  const char *v11; // rcx\n  int v12; // ebx\n  char *v13; // r8\n  char *String[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int128 v15; // [rsp+48h] [rbp-20h]\n\n  if ( !*(_BYTE *)(a1 + 352) )\n  {\n    if ( (*(unsigned int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) == 1 )\n    {\n      v4 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);\n      *(_OWORD *)String = 0;\n      v5 = -1;\n      v15 = 0;\n      do\n        ++v5;\n      while ( v4[v5] );\n      sub_14003D230(String, v4, v5);\n      v6 = (const char *)String;\n      if ( *((_QWORD *)&v15 + 1) > 0xFu )\n        v6 = String[0];\n      v7 = atoi(v6);\n      if ( *((_QWORD *)&v15 + 1) > 0xFu )\n      {\n        v8 = String[0];\n        if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 0x1000 )\n        {\n          v8 = *((char **)String[0] - 1);\n          if ( (unsigned __int64)(String[0] - v8 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free(v8);\n      }\n      *(_DWORD *)(*(_QWORD *)(a1 + 272) + 372LL) = v7;\n    }\n    else if ( (*(unsigned int (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) == 2 )\n    {\n      v9 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);\n      *(_OWORD *)String = 0;\n      v10 = -1;\n      v15 = 0;\n      do\n        ++v10;\n      while ( v9[v10] );\n      sub_14003D230(String, v9, v10);\n      v11 = (const char *)String;\n      if ( *((_QWORD *)&v15 + 1) > 0xFu )\n        v11 = String[0];\n      v12 = atoi(v11);\n      if ( *((_QWORD *)&v15 + 1) > 0xFu )\n      {\n        v13 = String[0];\n        if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 0x1000 )\n        {\n          v13 = *((char **)String[0] - 1);\n          if ( (unsigned __int64)(String[0] - v13 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free(v13);\n      }\n      *(_DWORD *)(*(_QWORD *)(a1 + 272) + 376LL) = v12;\n    }\n  }\n}", "assembly": "; \n; LevelSettingsLayer::textChanged from 0x14045a820 to 0x14045aa14 (500 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140798008\n; > <???> @ 0x140927c44\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:31 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14045a820\npush    rdi                                                            ; +0x5, 0x14045a825\nsub     rsp, 60h                                                       ; +0x6, 0x14045a826\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14045a82a\nxor     rax, rsp                                                       ; +0x11, 0x14045a831\nmov     [rsp+68h+var_10], rax                                          ; +0x14, 0x14045a834\ncmp     byte ptr [rcx+160h], 0                                         ; +0x19, 0x14045a839\nmov     rbx, rdx                                                       ; +0x20, 0x14045a840\nmov     rdi, rcx                                                       ; +0x23, 0x14045a843\njnz     loc_14045A9F9                                                  ; +0x26, 0x14045a846\nmov     rax, [rdx]                                                     ; +0x2c, 0x14045a84c\nmov     rcx, rdx                                                       ; +0x2f, 0x14045a84f\ncall    qword ptr [rax+38h]                                            ; +0x32, 0x14045a852\ncmp     eax, 1                                                         ; +0x35, 0x14045a855\njnz     loc_14045A928                                                  ; +0x38, 0x14045a858\nmov     rcx, [rbx+250h]                                                ; +0x3e, 0x14045a85e\nadd     rcx, 258h                                                      ; +0x45, 0x14045a865\nmov     rax, [rcx]                                                     ; +0x4c, 0x14045a86c\ncall    qword ptr [rax+8]                                              ; +0x4f, 0x14045a86f\nxorps   xmm0, xmm0                                                     ; +0x52, 0x14045a872\nxorps   xmm1, xmm1                                                     ; +0x55, 0x14045a875\nmovups  xmmword ptr [rsp+68h+String], xmm0                             ; +0x58, 0x14045a878\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x5d, 0x14045a87d\nmovdqu  [rsp+68h+var_20], xmm1                                         ; +0x64, 0x14045a884\nnop     word ptr [rax+rax+00h]                                         ; +0x6a, 0x14045a88a\ninc     r8                                                             ; +0x70, 0x14045a890\ncmp     byte ptr [rax+r8], 0                                           ; +0x73, 0x14045a893\njnz     short loc_14045A890                                            ; +0x78, 0x14045a898\nmov     rdx, rax                                                       ; +0x7a, 0x14045a89a\nlea     rcx, [rsp+68h+String]                                          ; +0x7d, 0x14045a89d\ncall    sub_14003D230                                                  ; +0x82, 0x14045a8a2\ncmp     qword ptr [rsp+68h+var_20+8], 0Fh                              ; +0x87, 0x14045a8a7\nlea     rcx, [rsp+68h+String]                                          ; +0x8d, 0x14045a8ad\ncmova   rcx, [rsp+68h+String]; String                                  ; +0x92, 0x14045a8b2\ncall    cs:atoi                                                        ; +0x98, 0x14045a8b8\nmov     rdx, qword ptr [rsp+68h+var_20+8]                              ; +0x9e, 0x14045a8be\nmov     ebx, eax                                                       ; +0xa3, 0x14045a8c3\ncmp     rdx, 0Fh                                                       ; +0xa5, 0x14045a8c5\njbe     short loc_14045A916                                            ; +0xa9, 0x14045a8c9\nmov     r8, [rsp+68h+String]                                           ; +0xab, 0x14045a8cb\ninc     rdx                                                            ; +0xb0, 0x14045a8d0\nmov     rcx, r8                                                        ; +0xb3, 0x14045a8d3\ncmp     rdx, 1000h                                                     ; +0xb6, 0x14045a8d6\njb      short loc_14045A90E                                            ; +0xbd, 0x14045a8dd\nmov     r8, [r8-8]                                                     ; +0xbf, 0x14045a8df\nadd     rdx, 27h ; '''                                                 ; +0xc3, 0x14045a8e3\nsub     rcx, r8                                                        ; +0xc7, 0x14045a8e7\nsub     rcx, 8                                                         ; +0xca, 0x14045a8ea\ncmp     rcx, 1Fh                                                       ; +0xce, 0x14045a8ee\njbe     short loc_14045A90E                                            ; +0xd2, 0x14045a8f2\nxor     r9d, r9d; LineNo                                               ; +0xd4, 0x14045a8f4\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xd7, 0x14045a8f7\nxor     r8d, r8d; FileName                                             ; +0xe0, 0x14045a900\nxor     edx, edx; FunctionName                                         ; +0xe3, 0x14045a903\nxor     ecx, ecx; Expression                                           ; +0xe5, 0x14045a905\ncall    cs:_invoke_watson                                              ; +0xe7, 0x14045a907\nalign 2                                                                ; +0xed, 0x14045a90d\nmov     rcx, r8; Block                                                 ; +0xee, 0x14045a90e\ncall    j_j_free                                                       ; +0xf1, 0x14045a911\nmov     rax, [rdi+110h]                                                ; +0xf6, 0x14045a916\nmov     [rax+174h], ebx                                                ; +0xfd, 0x14045a91d\njmp     loc_14045A9F9                                                  ; +0x103, 0x14045a923\nmov     rax, [rbx]                                                     ; +0x108, 0x14045a928\nmov     rcx, rbx                                                       ; +0x10b, 0x14045a92b\ncall    qword ptr [rax+38h]                                            ; +0x10e, 0x14045a92e\ncmp     eax, 2                                                         ; +0x111, 0x14045a931\njnz     loc_14045A9F9                                                  ; +0x114, 0x14045a934\nmov     rcx, [rbx+250h]                                                ; +0x11a, 0x14045a93a\nadd     rcx, 258h                                                      ; +0x121, 0x14045a941\nmov     rax, [rcx]                                                     ; +0x128, 0x14045a948\ncall    qword ptr [rax+8]                                              ; +0x12b, 0x14045a94b\nxorps   xmm0, xmm0                                                     ; +0x12e, 0x14045a94e\nxorps   xmm1, xmm1                                                     ; +0x131, 0x14045a951\nmovups  xmmword ptr [rsp+68h+String], xmm0                             ; +0x134, 0x14045a954\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x139, 0x14045a959\nmovdqu  [rsp+68h+var_20], xmm1                                         ; +0x140, 0x14045a960\ninc     r8                                                             ; +0x146, 0x14045a966\ncmp     byte ptr [rax+r8], 0                                           ; +0x149, 0x14045a969\njnz     short loc_14045A966                                            ; +0x14e, 0x14045a96e\nmov     rdx, rax                                                       ; +0x150, 0x14045a970\nlea     rcx, [rsp+68h+String]                                          ; +0x153, 0x14045a973\ncall    sub_14003D230                                                  ; +0x158, 0x14045a978\ncmp     qword ptr [rsp+68h+var_20+8], 0Fh                              ; +0x15d, 0x14045a97d\nlea     rcx, [rsp+68h+String]                                          ; +0x163, 0x14045a983\ncmova   rcx, [rsp+68h+String]; String                                  ; +0x168, 0x14045a988\ncall    cs:atoi                                                        ; +0x16e, 0x14045a98e\nmov     rdx, qword ptr [rsp+68h+var_20+8]                              ; +0x174, 0x14045a994\nmov     ebx, eax                                                       ; +0x179, 0x14045a999\ncmp     rdx, 0Fh                                                       ; +0x17b, 0x14045a99b\njbe     short loc_14045A9EC                                            ; +0x17f, 0x14045a99f\nmov     r8, [rsp+68h+String]                                           ; +0x181, 0x14045a9a1\ninc     rdx                                                            ; +0x186, 0x14045a9a6\nmov     rcx, r8                                                        ; +0x189, 0x14045a9a9\ncmp     rdx, 1000h                                                     ; +0x18c, 0x14045a9ac\njb      short loc_14045A9E4                                            ; +0x193, 0x14045a9b3\nmov     r8, [r8-8]                                                     ; +0x195, 0x14045a9b5\nadd     rdx, 27h ; '''                                                 ; +0x199, 0x14045a9b9\nsub     rcx, r8                                                        ; +0x19d, 0x14045a9bd\nsub     rcx, 8                                                         ; +0x1a0, 0x14045a9c0\ncmp     rcx, 1Fh                                                       ; +0x1a4, 0x14045a9c4\njbe     short loc_14045A9E4                                            ; +0x1a8, 0x14045a9c8\nxor     r9d, r9d; LineNo                                               ; +0x1aa, 0x14045a9ca\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x1ad, 0x14045a9cd\nxor     r8d, r8d; FileName                                             ; +0x1b6, 0x14045a9d6\nxor     edx, edx; FunctionName                                         ; +0x1b9, 0x14045a9d9\nxor     ecx, ecx; Expression                                           ; +0x1bb, 0x14045a9db\ncall    cs:_invoke_watson                                              ; +0x1bd, 0x14045a9dd\nalign 4                                                                ; +0x1c3, 0x14045a9e3\nmov     rcx, r8; Block                                                 ; +0x1c4, 0x14045a9e4\ncall    j_j_free                                                       ; +0x1c7, 0x14045a9e7\nmov     rax, [rdi+110h]                                                ; +0x1cc, 0x14045a9ec\nmov     [rax+178h], ebx                                                ; +0x1d3, 0x14045a9f3\nmov     rcx, [rsp+68h+var_10]                                          ; +0x1d9, 0x14045a9f9\nxor     rcx, rsp; StackCookie                                          ; +0x1de, 0x14045a9fe\ncall    __security_check_cookie                                        ; +0x1e1, 0x14045aa01\nmov     rbx, [rsp+68h+arg_10]                                          ; +0x1e6, 0x14045aa06\nadd     rsp, 60h                                                       ; +0x1ee, 0x14045aa0e\npop     rdi                                                            ; +0x1f2, 0x14045aa12\nretn                                                                   ; +0x1f3, 0x14045aa13", "xrefs": ["<???> @ 0x140798008", "<???> @ 0x140927c44"], "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"}