{"type": "func", "start": 5373024304, "end": 5373024543, "name": "SetupEndPopup::textChanged", "pseudocode": "// \n// SetupEndPopup::textChanged from 0x14041d830 to 0x14041d91f (239 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405e2dc0\n// > <???> @ 0x1406d9434\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 SetupEndPopup::textChanged(SetupEndPopup *a1, CCTextInputNode *a2)\n{\n  const char *v3; // rax\n  size_t v4; // r8\n  const char *v5; // rcx\n  int v6; // eax\n  unsigned __int64 v7; // rdx\n  char *v8; // rcx\n  char *String[2]; // [rsp+28h] [rbp-30h] BYREF\n  __int128 v10; // [rsp+38h] [rbp-20h]\n\n  if ( !LOBYTE(a1->m_fSkewX) )\n  {\n    v3 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);\n    *(_OWORD *)String = 0;\n    v4 = -1;\n    v10 = 0;\n    do\n      ++v4;\n    while ( v3[v4] );\n    sub_14003A930(String, v3, v4);\n    v5 = (const char *)String;\n    if ( *((_QWORD *)&v10 + 1) > 0xFu )\n      v5 = String[0];\n    v6 = atoi(v5);\n    v7 = *((_QWORD *)&v10 + 1);\n    *(_DWORD *)(&a1->m_bUnkBool2 + 3) = v6;\n    if ( v7 > 0xF )\n    {\n      v8 = String[0];\n      if ( v7 + 1 >= 0x1000 )\n      {\n        v8 = *((char **)String[0] - 1);\n        if ( (unsigned __int64)(String[0] - v8 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v8);\n    }\n    SetupEndPopup::updateTargetID((SetupEndPopup *)((char *)a1 - 632));\n    SetupTriggerPopup::updateEditorLabel((SetupEndPopup *)((char *)a1 - 632));\n  }\n}", "assembly": "; \n; SetupEndPopup::textChanged from 0x14041d830 to 0x14041d91f (239 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405e2dc0\n; > <???> @ 0x1406d9434\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, 0x14041d830\nsub     rsp, 50h                                                       ; +0x2, 0x14041d832\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14041d836\nxor     rax, rsp                                                       ; +0xd, 0x14041d83d\nmov     [rsp+58h+var_10], rax                                          ; +0x10, 0x14041d840\ncmp     byte ptr [rcx+54h], 0                                          ; +0x15, 0x14041d845\nmov     rbx, rcx                                                       ; +0x19, 0x14041d849\njnz     loc_14041D90C                                                  ; +0x1c, 0x14041d84c\nmov     rcx, [rdx+228h]                                                ; +0x22, 0x14041d852\nadd     rcx, 258h                                                      ; +0x29, 0x14041d859\nmov     rax, [rcx]                                                     ; +0x30, 0x14041d860\ncall    qword ptr [rax+8]                                              ; +0x33, 0x14041d863\nxorps   xmm0, xmm0                                                     ; +0x36, 0x14041d866\nxorps   xmm1, xmm1                                                     ; +0x39, 0x14041d869\nmovups  xmmword ptr [rsp+58h+String], xmm0                             ; +0x3c, 0x14041d86c\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x41, 0x14041d871\nmovdqu  [rsp+58h+var_20], xmm1                                         ; +0x48, 0x14041d878\nxchg    ax, ax                                                         ; +0x4e, 0x14041d87e\ninc     r8                                                             ; +0x50, 0x14041d880\ncmp     byte ptr [rax+r8], 0                                           ; +0x53, 0x14041d883\njnz     short loc_14041D880                                            ; +0x58, 0x14041d888\nmov     rdx, rax                                                       ; +0x5a, 0x14041d88a\nlea     rcx, [rsp+58h+String]                                          ; +0x5d, 0x14041d88d\ncall    sub_14003A930                                                  ; +0x62, 0x14041d892\ncmp     qword ptr [rsp+58h+var_20+8], 0Fh                              ; +0x67, 0x14041d897\nlea     rcx, [rsp+58h+String]                                          ; +0x6d, 0x14041d89d\ncmova   rcx, [rsp+58h+String]; String                                  ; +0x72, 0x14041d8a2\ncall    cs:atoi                                                        ; +0x78, 0x14041d8a8\nmov     rdx, qword ptr [rsp+58h+var_20+8]                              ; +0x7e, 0x14041d8ae\nmov     [rbx+13Ch], eax                                                ; +0x83, 0x14041d8b3\ncmp     rdx, 0Fh                                                       ; +0x89, 0x14041d8b9\njbe     short loc_14041D8F4                                            ; +0x8d, 0x14041d8bd\nmov     rcx, [rsp+58h+String]; Block                                   ; +0x8f, 0x14041d8bf\ninc     rdx                                                            ; +0x94, 0x14041d8c4\nmov     rax, rcx                                                       ; +0x97, 0x14041d8c7\ncmp     rdx, 1000h                                                     ; +0x9a, 0x14041d8ca\njb      short loc_14041D8EF                                            ; +0xa1, 0x14041d8d1\nmov     rcx, [rcx-8]                                                   ; +0xa3, 0x14041d8d3\nadd     rdx, 27h ; '''                                                 ; +0xa7, 0x14041d8d7\nsub     rax, rcx                                                       ; +0xab, 0x14041d8db\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xae, 0x14041d8de\ncmp     rax, 1Fh                                                       ; +0xb2, 0x14041d8e2\njbe     short loc_14041D8EF                                            ; +0xb6, 0x14041d8e6\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb8, 0x14041d8e8\ndb 0CCh                                                                ; +0xbe, 0x14041d8ee\ncall    j_j_free                                                       ; +0xbf, 0x14041d8ef\nlea     rcx, [rbx-278h]                                                ; +0xc4, 0x14041d8f4\ncall    SetupEndPopup__updateTargetID                                  ; +0xcb, 0x14041d8fb\nlea     rcx, [rbx-278h]                                                ; +0xd0, 0x14041d900\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0xd7, 0x14041d907\nmov     rcx, [rsp+58h+var_10]                                          ; +0xdc, 0x14041d90c\nxor     rcx, rsp; StackCookie                                          ; +0xe1, 0x14041d911\ncall    __security_check_cookie                                        ; +0xe4, 0x14041d914\nadd     rsp, 50h                                                       ; +0xe9, 0x14041d919\npop     rbx                                                            ; +0xed, 0x14041d91d\nretn                                                                   ; +0xee, 0x14041d91e", "xrefs": ["<???> @ 0x1405e2dc0", "<???> @ 0x1406d9434"], "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"}