{"type": "func", "start": 5373018912, "end": 5373019542, "name": "SetupCountTriggerPopup::textChanged", "pseudocode": "// \n// SetupCountTriggerPopup::textChanged from 0x14041c320 to 0x14041c596 (630 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405e1e50\n// > <???> @ 0x1406d9314\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 SetupCountTriggerPopup::textChanged(SetupCountTriggerPopup *a1, CCTextInputNode *a2)\n{\n  const char *v4; // rax\n  size_t v5; // r8\n  const char *v6; // rcx\n  int v7; // eax\n  unsigned __int64 v8; // rdx\n  char *v9; // rcx\n  bool v10; // zf\n  cocos2d::CCLabelProtocol_vtbl *v11; // rax\n  _BYTE *v12; // rax\n  size_t v13; // r8\n  const char *v14; // rcx\n  int v15; // eax\n  unsigned __int64 v16; // rdx\n  char *v17; // rcx\n  _BYTE *v18; // rax\n  size_t v19; // r8\n  const char *v20; // rcx\n  int v21; // eax\n  unsigned __int64 v22; // rdx\n  char *v23; // rcx\n  char *String[2]; // [rsp+28h] [rbp-28h] BYREF\n  __int128 v25; // [rsp+38h] [rbp-18h]\n\n  if ( !LOBYTE(a1->m_fSkewX) )\n  {\n    if ( a2->getTag(a2) )\n    {\n      v10 = a2->getTag(a2) == 1;\n      v11 = a2->m_textField->__vftable;\n      if ( v10 )\n      {\n        v12 = (_BYTE *)((__int64 (*)(void))v11->getString)();\n        *(_OWORD *)String = 0;\n        v13 = -1;\n        v25 = 0;\n        do\n          ++v13;\n        while ( v12[v13] );\n        sub_14003A930(String, v12, v13);\n        v14 = (const char *)String;\n        if ( *((_QWORD *)&v25 + 1) > 0xFu )\n          v14 = String[0];\n        v15 = atoi(v14);\n        v16 = *((_QWORD *)&v25 + 1);\n        LODWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable) = v15;\n        if ( v16 > 0xF )\n        {\n          v17 = String[0];\n          if ( v16 + 1 >= 0x1000 )\n          {\n            v17 = *((char **)String[0] - 1);\n            if ( (unsigned __int64)(String[0] - v17 - 8) > 0x1F )\n              invalid_parameter_noinfo_noreturn();\n          }\n          j_j_free(v17);\n        }\n        SetupCountTriggerPopup::updateTargetCount(&a1[-1].cocos2d::CCKeyboardDelegate);\n      }\n      else\n      {\n        v18 = (_BYTE *)((__int64 (*)(void))v11->getString)();\n        *(_OWORD *)String = 0;\n        v19 = -1;\n        v25 = 0;\n        do\n          ++v19;\n        while ( v18[v19] );\n        sub_14003A930(String, v18, v19);\n        v20 = (const char *)String;\n        if ( *((_QWORD *)&v25 + 1) > 0xFu )\n          v20 = String[0];\n        v21 = atoi(v20);\n        v22 = *((_QWORD *)&v25 + 1);\n        HIDWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable) = v21;\n        if ( v22 > 0xF )\n        {\n          v23 = String[0];\n          if ( v22 + 1 >= 0x1000 )\n          {\n            v23 = *((char **)String[0] - 1);\n            if ( (unsigned __int64)(String[0] - v23 - 8) > 0x1F )\n              invalid_parameter_noinfo_noreturn();\n          }\n          j_j_free(v23);\n        }\n        SetupCountTriggerPopup::updateTargetID((SetupCountTriggerPopup *)((char *)a1 - 632));\n      }\n    }\n    else\n    {\n      v4 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);\n      *(_OWORD *)String = 0;\n      v5 = -1;\n      v25 = 0;\n      do\n        ++v5;\n      while ( v4[v5] );\n      sub_14003A930(String, v4, v5);\n      v6 = (const char *)String;\n      if ( *((_QWORD *)&v25 + 1) > 0xFu )\n        v6 = String[0];\n      v7 = atoi(v6);\n      v8 = *((_QWORD *)&v25 + 1);\n      LODWORD(a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable) = v7;\n      if ( v8 > 0xF )\n      {\n        v9 = String[0];\n        if ( v8 + 1 >= 0x1000 )\n        {\n          v9 = *((char **)String[0] - 1);\n          if ( (unsigned __int64)(String[0] - v9 - 8) > 0x1F )\n            invalid_parameter_noinfo_noreturn();\n        }\n        j_j_free(v9);\n      }\n      SetupCollisionTriggerPopup::updateItemID((__int64)&a1[-1].cocos2d::CCKeyboardDelegate);\n      SetupTriggerPopup::updateEditorLabel((SetupCountTriggerPopup *)((char *)a1 - 632));\n    }\n  }\n}", "assembly": "; \n; SetupCountTriggerPopup::textChanged from 0x14041c320 to 0x14041c596 (630 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405e1e50\n; > <???> @ 0x1406d9314\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\nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x14041c320\nmov     [rsp-8+arg_18], rdi                                            ; +0x5, 0x14041c325\npush    rbp                                                            ; +0xa, 0x14041c32a\nmov     rbp, rsp                                                       ; +0xb, 0x14041c32b\nsub     rsp, 50h                                                       ; +0xe, 0x14041c32e\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x14041c332\nxor     rax, rsp                                                       ; +0x19, 0x14041c339\nmov     [rbp+var_8], rax                                               ; +0x1c, 0x14041c33c\ncmp     byte ptr [rcx+54h], 0                                          ; +0x20, 0x14041c340\nmov     rbx, rdx                                                       ; +0x24, 0x14041c344\nmov     rdi, rcx                                                       ; +0x27, 0x14041c347\njnz     loc_14041C57A                                                  ; +0x2a, 0x14041c34a\nmov     rax, [rdx]                                                     ; +0x30, 0x14041c350\nmov     rcx, rdx                                                       ; +0x33, 0x14041c353\ncall    qword ptr [rax+38h]                                            ; +0x36, 0x14041c356\ntest    eax, eax                                                       ; +0x39, 0x14041c359\njnz     loc_14041C41B                                                  ; +0x3b, 0x14041c35b\nmov     rcx, [rbx+228h]                                                ; +0x41, 0x14041c361\nadd     rcx, 258h                                                      ; +0x48, 0x14041c368\nmov     rax, [rcx]                                                     ; +0x4f, 0x14041c36f\ncall    qword ptr [rax+8]                                              ; +0x52, 0x14041c372\nxorps   xmm0, xmm0                                                     ; +0x55, 0x14041c375\nxorps   xmm1, xmm1                                                     ; +0x58, 0x14041c378\nmovups  xmmword ptr [rbp+String], xmm0                                 ; +0x5b, 0x14041c37b\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x5f, 0x14041c37f\nmovdqu  [rbp+var_18], xmm1                                             ; +0x66, 0x14041c386\nnop     dword ptr [rax+rax+00h]                                        ; +0x6b, 0x14041c38b\ninc     r8                                                             ; +0x70, 0x14041c390\ncmp     byte ptr [rax+r8], 0                                           ; +0x73, 0x14041c393\njnz     short loc_14041C390                                            ; +0x78, 0x14041c398\nmov     rdx, rax                                                       ; +0x7a, 0x14041c39a\nlea     rcx, [rbp+String]                                              ; +0x7d, 0x14041c39d\ncall    sub_14003A930                                                  ; +0x81, 0x14041c3a1\ncmp     qword ptr [rbp+var_18+8], 0Fh                                  ; +0x86, 0x14041c3a6\nlea     rcx, [rbp+String]                                              ; +0x8b, 0x14041c3ab\ncmova   rcx, [rbp+String]; String                                      ; +0x8f, 0x14041c3af\ncall    cs:atoi                                                        ; +0x94, 0x14041c3b4\nmov     rdx, qword ptr [rbp+var_18+8]                                  ; +0x9a, 0x14041c3ba\nmov     [rdi+148h], eax                                                ; +0x9e, 0x14041c3be\ncmp     rdx, 0Fh                                                       ; +0xa4, 0x14041c3c4\njbe     short loc_14041C3FE                                            ; +0xa8, 0x14041c3c8\nmov     rcx, [rbp+String]; Block                                       ; +0xaa, 0x14041c3ca\ninc     rdx                                                            ; +0xae, 0x14041c3ce\nmov     rax, rcx                                                       ; +0xb1, 0x14041c3d1\ncmp     rdx, 1000h                                                     ; +0xb4, 0x14041c3d4\njb      short loc_14041C3F9                                            ; +0xbb, 0x14041c3db\nmov     rcx, [rcx-8]                                                   ; +0xbd, 0x14041c3dd\nadd     rdx, 27h ; '''                                                 ; +0xc1, 0x14041c3e1\nsub     rax, rcx                                                       ; +0xc5, 0x14041c3e5\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xc8, 0x14041c3e8\ncmp     rax, 1Fh                                                       ; +0xcc, 0x14041c3ec\njbe     short loc_14041C3F9                                            ; +0xd0, 0x14041c3f0\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xd2, 0x14041c3f2\ndb 0CCh                                                                ; +0xd8, 0x14041c3f8\ncall    j_j_free                                                       ; +0xd9, 0x14041c3f9\nlea     rcx, [rdi-278h]                                                ; +0xde, 0x14041c3fe\ncall    SetupCollisionTriggerPopup__updateItemID; Merged with: SetupCollisionTriggerPopup::updateItemID, SetupCountTriggerPopup::updateItemID, SetupInstantCountPopup::updateItemID ; +0xe5, 0x14041c405\nlea     rcx, [rdi-278h]                                                ; +0xea, 0x14041c40a\ncall    SetupTriggerPopup__updateEditorLabel                           ; +0xf1, 0x14041c411\njmp     loc_14041C57A                                                  ; +0xf6, 0x14041c416\nmov     rax, [rbx]                                                     ; +0xfb, 0x14041c41b\nmov     rcx, rbx                                                       ; +0xfe, 0x14041c41e\ncall    qword ptr [rax+38h]                                            ; +0x101, 0x14041c421\nmov     rcx, [rbx+228h]                                                ; +0x104, 0x14041c424\nadd     rcx, 258h                                                      ; +0x10b, 0x14041c42b\ncmp     eax, 1                                                         ; +0x112, 0x14041c432\nmov     rax, [rcx]                                                     ; +0x115, 0x14041c435\njnz     loc_14041C4DF                                                  ; +0x118, 0x14041c438\ncall    qword ptr [rax+8]                                              ; +0x11e, 0x14041c43e\nxorps   xmm0, xmm0                                                     ; +0x121, 0x14041c441\nxorps   xmm1, xmm1                                                     ; +0x124, 0x14041c444\nmovups  xmmword ptr [rbp+String], xmm0                                 ; +0x127, 0x14041c447\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x12b, 0x14041c44b\nmovdqu  [rbp+var_18], xmm1                                             ; +0x132, 0x14041c452\nnop     word ptr [rax+rax+00000000h]                                   ; +0x137, 0x14041c457\ninc     r8                                                             ; +0x140, 0x14041c460\ncmp     byte ptr [rax+r8], 0                                           ; +0x143, 0x14041c463\njnz     short loc_14041C460                                            ; +0x148, 0x14041c468\nmov     rdx, rax                                                       ; +0x14a, 0x14041c46a\nlea     rcx, [rbp+String]                                              ; +0x14d, 0x14041c46d\ncall    sub_14003A930                                                  ; +0x151, 0x14041c471\ncmp     qword ptr [rbp+var_18+8], 0Fh                                  ; +0x156, 0x14041c476\nlea     rcx, [rbp+String]                                              ; +0x15b, 0x14041c47b\ncmova   rcx, [rbp+String]; String                                      ; +0x15f, 0x14041c47f\ncall    cs:atoi                                                        ; +0x164, 0x14041c484\nmov     rdx, qword ptr [rbp+var_18+8]                                  ; +0x16a, 0x14041c48a\nmov     [rdi+150h], eax                                                ; +0x16e, 0x14041c48e\ncmp     rdx, 0Fh                                                       ; +0x174, 0x14041c494\njbe     short loc_14041C4CE                                            ; +0x178, 0x14041c498\nmov     rcx, [rbp+String]; Block                                       ; +0x17a, 0x14041c49a\ninc     rdx                                                            ; +0x17e, 0x14041c49e\nmov     rax, rcx                                                       ; +0x181, 0x14041c4a1\ncmp     rdx, 1000h                                                     ; +0x184, 0x14041c4a4\njb      short loc_14041C4C9                                            ; +0x18b, 0x14041c4ab\nmov     rcx, [rcx-8]                                                   ; +0x18d, 0x14041c4ad\nadd     rdx, 27h ; '''                                                 ; +0x191, 0x14041c4b1\nsub     rax, rcx                                                       ; +0x195, 0x14041c4b5\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x198, 0x14041c4b8\ncmp     rax, 1Fh                                                       ; +0x19c, 0x14041c4bc\njbe     short loc_14041C4C9                                            ; +0x1a0, 0x14041c4c0\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x1a2, 0x14041c4c2\ndb 0CCh                                                                ; +0x1a8, 0x14041c4c8\ncall    j_j_free                                                       ; +0x1a9, 0x14041c4c9\nlea     rcx, [rdi-278h]                                                ; +0x1ae, 0x14041c4ce\ncall    SetupCountTriggerPopup__updateTargetCount; Merged with: SetupCountTriggerPopup::updateTargetCount, SetupInstantCountPopup::updateTargetCount ; +0x1b5, 0x14041c4d5\njmp     loc_14041C57A                                                  ; +0x1ba, 0x14041c4da\ncall    qword ptr [rax+8]                                              ; +0x1bf, 0x14041c4df\nxorps   xmm0, xmm0                                                     ; +0x1c2, 0x14041c4e2\nxorps   xmm1, xmm1                                                     ; +0x1c5, 0x14041c4e5\nmovups  xmmword ptr [rbp+String], xmm0                                 ; +0x1c8, 0x14041c4e8\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x1cc, 0x14041c4ec\nmovdqu  [rbp+var_18], xmm1                                             ; +0x1d3, 0x14041c4f3\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x1d8, 0x14041c4f8\ninc     r8                                                             ; +0x1e0, 0x14041c500\ncmp     byte ptr [rax+r8], 0                                           ; +0x1e3, 0x14041c503\njnz     short loc_14041C500                                            ; +0x1e8, 0x14041c508\nmov     rdx, rax                                                       ; +0x1ea, 0x14041c50a\nlea     rcx, [rbp+String]                                              ; +0x1ed, 0x14041c50d\ncall    sub_14003A930                                                  ; +0x1f1, 0x14041c511\ncmp     qword ptr [rbp+var_18+8], 0Fh                                  ; +0x1f6, 0x14041c516\nlea     rcx, [rbp+String]                                              ; +0x1fb, 0x14041c51b\ncmova   rcx, [rbp+String]; String                                      ; +0x1ff, 0x14041c51f\ncall    cs:atoi                                                        ; +0x204, 0x14041c524\nmov     rdx, qword ptr [rbp+var_18+8]                                  ; +0x20a, 0x14041c52a\nmov     [rdi+14Ch], eax                                                ; +0x20e, 0x14041c52e\ncmp     rdx, 0Fh                                                       ; +0x214, 0x14041c534\njbe     short loc_14041C56E                                            ; +0x218, 0x14041c538\nmov     rcx, [rbp+String]; Block                                       ; +0x21a, 0x14041c53a\ninc     rdx                                                            ; +0x21e, 0x14041c53e\nmov     rax, rcx                                                       ; +0x221, 0x14041c541\ncmp     rdx, 1000h                                                     ; +0x224, 0x14041c544\njb      short loc_14041C569                                            ; +0x22b, 0x14041c54b\nmov     rcx, [rcx-8]                                                   ; +0x22d, 0x14041c54d\nadd     rdx, 27h ; '''                                                 ; +0x231, 0x14041c551\nsub     rax, rcx                                                       ; +0x235, 0x14041c555\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x238, 0x14041c558\ncmp     rax, 1Fh                                                       ; +0x23c, 0x14041c55c\njbe     short loc_14041C569                                            ; +0x240, 0x14041c560\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x242, 0x14041c562\ndb 0CCh                                                                ; +0x248, 0x14041c568\ncall    j_j_free                                                       ; +0x249, 0x14041c569\nlea     rcx, [rdi-278h]                                                ; +0x24e, 0x14041c56e\ncall    SetupCountTriggerPopup__updateTargetID                         ; +0x255, 0x14041c575\nmov     rcx, [rbp+var_8]                                               ; +0x25a, 0x14041c57a\nxor     rcx, rsp; StackCookie                                          ; +0x25e, 0x14041c57e\ncall    __security_check_cookie                                        ; +0x261, 0x14041c581\nmov     rbx, [rsp+50h+arg_10]                                          ; +0x266, 0x14041c586\nmov     rdi, [rsp+50h+arg_18]                                          ; +0x26b, 0x14041c58b\nadd     rsp, 50h                                                       ; +0x270, 0x14041c590\npop     rbp                                                            ; +0x274, 0x14041c594\nretn                                                                   ; +0x275, 0x14041c595", "xrefs": ["<???> @ 0x1405e1e50", "<???> @ 0x1406d9314"], "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"}