{"type": "func", "start": 5372984448, "end": 5372984687, "name": "SetupCameraEdgePopup::textChanged", "pseudocode": "// \n// SetupCameraEdgePopup::textChanged from 0x140413c80 to 0x140413d6f (239 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405dee18\n// > <???> @ 0x1406d8da4\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 SetupCameraEdgePopup::textChanged(SetupCameraEdgePopup *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_bUseChildIndex = 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    SetupCameraEdgePopup::updateTargetID(&a1[-1].cocos2d::CCAccelerometerDelegate, v7);\n    SetupTriggerPopup::updateEditorLabel((SetupCameraEdgePopup *)((char *)a1 - 632));\n  }\n}", "assembly": "; \n; SetupCameraEdgePopup::textChanged from 0x140413c80 to 0x140413d6f (239 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405dee18\n; > <???> @ 0x1406d8da4\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, 0x140413c80\nsub     rsp, 50h                                                       ; +0x2, 0x140413c82\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140413c86\nxor     rax, rsp                                                       ; +0xd, 0x140413c8d\nmov     [rsp+58h+var_10], rax                                          ; +0x10, 0x140413c90\ncmp     byte ptr [rcx+54h], 0                                          ; +0x15, 0x140413c95\nmov     rbx, rcx                                                       ; +0x19, 0x140413c99\njnz     loc_140413D5C                                                  ; +0x1c, 0x140413c9c\nmov     rcx, [rdx+228h]                                                ; +0x22, 0x140413ca2\nadd     rcx, 258h                                                      ; +0x29, 0x140413ca9\nmov     rax, [rcx]                                                     ; +0x30, 0x140413cb0\ncall    qword ptr [rax+8]                                              ; +0x33, 0x140413cb3\nxorps   xmm0, xmm0                                                     ; +0x36, 0x140413cb6\nxorps   xmm1, xmm1                                                     ; +0x39, 0x140413cb9\nmovups  xmmword ptr [rsp+58h+String], xmm0                             ; +0x3c, 0x140413cbc\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x41, 0x140413cc1\nmovdqu  [rsp+58h+var_20], xmm1                                         ; +0x48, 0x140413cc8\nxchg    ax, ax                                                         ; +0x4e, 0x140413cce\ninc     r8                                                             ; +0x50, 0x140413cd0\ncmp     byte ptr [rax+r8], 0                                           ; +0x53, 0x140413cd3\njnz     short loc_140413CD0                                            ; +0x58, 0x140413cd8\nmov     rdx, rax                                                       ; +0x5a, 0x140413cda\nlea     rcx, [rsp+58h+String]                                          ; +0x5d, 0x140413cdd\ncall    sub_14003A930                                                  ; +0x62, 0x140413ce2\ncmp     qword ptr [rsp+58h+var_20+8], 0Fh                              ; +0x67, 0x140413ce7\nlea     rcx, [rsp+58h+String]                                          ; +0x6d, 0x140413ced\ncmova   rcx, [rsp+58h+String]; String                                  ; +0x72, 0x140413cf2\ncall    cs:atoi                                                        ; +0x78, 0x140413cf8\nmov     rdx, qword ptr [rsp+58h+var_20+8]                              ; +0x7e, 0x140413cfe\nmov     [rbx+138h], eax                                                ; +0x83, 0x140413d03\ncmp     rdx, 0Fh                                                       ; +0x89, 0x140413d09\njbe     short loc_140413D44                                            ; +0x8d, 0x140413d0d\nmov     rcx, [rsp+58h+String]; Block                                   ; +0x8f, 0x140413d0f\ninc     rdx                                                            ; +0x94, 0x140413d14\nmov     rax, rcx                                                       ; +0x97, 0x140413d17\ncmp     rdx, 1000h                                                     ; +0x9a, 0x140413d1a\njb      short loc_140413D3F                                            ; +0xa1, 0x140413d21\nmov     rcx, [rcx-8]                                                   ; +0xa3, 0x140413d23\nadd     rdx, 27h ; '''                                                 ; +0xa7, 0x140413d27\nsub     rax, rcx                                                       ; +0xab, 0x140413d2b\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xae, 0x140413d2e\ncmp     rax, 1Fh                                                       ; +0xb2, 0x140413d32\njbe     short loc_140413D3F                                            ; +0xb6, 0x140413d36\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb8, 0x140413d38\ndb 0CCh                                                                ; +0xbe, 0x140413d3e\ncall    j_j_free                                                       ; +0xbf, 0x140413d3f\nlea     rcx, [rbx-278h]                                                ; +0xc4, 0x140413d44\ncall    SetupCameraEdgePopup__updateTargetID; Merged with: SetupCameraEdgePopup::updateTargetID, SetupTouchTogglePopup::updateTargetID ; +0xcb, 0x140413d4b\nlea     rcx, [rbx-278h]                                                ; +0xd0, 0x140413d50\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0xd7, 0x140413d57\nmov     rcx, [rsp+58h+var_10]                                          ; +0xdc, 0x140413d5c\nxor     rcx, rsp; StackCookie                                          ; +0xe1, 0x140413d61\ncall    __security_check_cookie                                        ; +0xe4, 0x140413d64\nadd     rsp, 50h                                                       ; +0xe9, 0x140413d69\npop     rbx                                                            ; +0xed, 0x140413d6d\nretn                                                                   ; +0xee, 0x140413d6e", "xrefs": ["<???> @ 0x1405dee18", "<???> @ 0x1406d8da4"], "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"}