{"type": "func", "start": 4296244236, "end": 4296244932, "name": "GJFollowCommandLayer::textChanged", "pseudocode": "// \n// GJFollowCommandLayer::textChanged from 0x100137c0c to 0x100137ec4 (696 bytes)\n// \n// 2 xrefs:\n// > sub_100137EC4 @ 0x100137ec8\n// > <???> @ 0x100793688\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 __fastcall GJFollowCommandLayer::textChanged(GJFollowCommandLayer *a1, CCTextInputNode *a2)\n{\n  int v4; // w0\n  int v5; // w20\n  double v6; // d8\n  int v7; // w20\n  double v8; // d8\n  double v9; // d8\n  char *v10; // x21\n  char *v11; // x20\n  float v12; // s0\n  cocos2d::CCString *v13; // x0\n  Slider *m_yModSlider; // x0\n  float v15; // s0\n  char *v16; // x20\n  float v17; // s0\n  cocos2d::CCString *v18; // x0\n  float m_yMod; // s0\n  char *v20; // x21\n  int v21; // w8\n  char *v22; // x20\n  float v23; // s0\n  cocos2d::CCString *v24; // x0\n  float v25; // s1\n  _BOOL4 v26; // w8\n  _BOOL4 v27; // w9\n  char *v28[2]; // [xsp+8h] [xbp-48h] BYREF\n  char v29; // [xsp+1Fh] [xbp-31h]\n\n  if ( a1->m_disableTextDelegate )\n    return;\n  v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2);\n  if ( v4 <= 1 )\n  {\n    if ( v4 )\n    {\n      if ( v4 != 1 )\n        return;\n      CCTextInputNode::getString(v28, a2);\n      if ( v29 < 0 )\n      {\n        v22 = v28[0];\n        v6 = atof(v28[0]);\n        operator delete(v22);\n      }\n      else\n      {\n        v6 = atof((const char *)v28);\n      }\n      v23 = v6;\n      v24 = (cocos2d::CCString *)sub_100268F4C(\"%.02f\", v23);\n      a1->m_yMod = cocos2d::CCString::floatValue(v24);\n      GJFollowCommandLayer::updateYMod(a1);\n      m_yModSlider = a1->m_yModSlider;\n      m_yMod = a1->m_yMod;\n    }\n    else\n    {\n      CCTextInputNode::getString(v28, a2);\n      if ( v29 < 0 )\n      {\n        v16 = v28[0];\n        v9 = atof(v28[0]);\n        operator delete(v16);\n      }\n      else\n      {\n        v9 = atof((const char *)v28);\n      }\n      v17 = v9;\n      v18 = (cocos2d::CCString *)sub_100268F4C(\"%.02f\", v17);\n      a1->m_xMod = cocos2d::CCString::floatValue(v18);\n      GJFollowCommandLayer::updateXMod(a1);\n      m_yModSlider = a1->m_xModSlider;\n      m_yMod = a1->m_xMod;\n    }\n    v15 = (float)(m_yMod * 0.5) + 0.5;\n  }\n  else\n  {\n    if ( v4 == 4 )\n    {\n      CCTextInputNode::getString(v28, a2);\n      if ( v29 < 0 )\n      {\n        v10 = v28[0];\n        v7 = atoi(v28[0]);\n        operator delete(v10);\n      }\n      else\n      {\n        v7 = atoi((const char *)v28);\n      }\n      a1->m_followGroupID = v7 & ~(v7 >> 31);\n      GJFollowCommandLayer::updateTargetGroupID2(a1);\n      return;\n    }\n    if ( v4 != 3 )\n    {\n      if ( v4 == 2 )\n      {\n        CCTextInputNode::getString(v28, a2);\n        if ( v29 < 0 )\n        {\n          v20 = v28[0];\n          v5 = atoi(v28[0]);\n          operator delete(v20);\n        }\n        else\n        {\n          v5 = atoi((const char *)v28);\n        }\n        if ( v5 <= 1 )\n          v21 = 1;\n        else\n          v21 = v5;\n        a1->m_targetGroupID = v21;\n        GJFollowCommandLayer::updateTargetGroupID(a1);\n        SetupTriggerPopup::updateEditorLabel(a1);\n      }\n      return;\n    }\n    CCTextInputNode::getString(v28, a2);\n    if ( v29 < 0 )\n    {\n      v11 = v28[0];\n      v8 = atof(v28[0]);\n      operator delete(v11);\n    }\n    else\n    {\n      v8 = atof((const char *)v28);\n    }\n    v12 = v8;\n    v13 = (cocos2d::CCString *)sub_100268F4C(\"%.02f\", v12);\n    a1->m_moveTime = cocos2d::CCString::floatValue(v13);\n    GJFollowCommandLayer::updateDuration(a1);\n    m_yModSlider = a1->m_moveTimeSlider;\n    v15 = a1->m_moveTime / 10.0;\n  }\n  v25 = 1.0;\n  v26 = v15 >= 1.0;\n  v27 = v15 > 0.0 || v15 >= 1.0;\n  if ( v15 <= 0.0 )\n    v26 = 1;\n  if ( !v27 )\n    v25 = 0.0;\n  if ( v26 )\n    v15 = v25;\n  Slider::setValue(m_yModSlider, v15);\n}", "assembly": "; \n; GJFollowCommandLayer::textChanged from 0x100137c0c to 0x100137ec4 (696 bytes)\n; \n; 2 xrefs:\n; > sub_100137EC4 @ 0x100137ec8\n; > <???> @ 0x100793688\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\nLDRB            W8, [X0,#0x2CC]                                        ; +0x0, 0x100137c0c\nTBNZ            W8, #0, locret_100137EC0                               ; +0x4, 0x100137c10\nSUB             SP, SP, #0x60                                          ; +0x8, 0x100137c14\nSTP             D9, D8, [SP,#0x50+var_30]                              ; +0xc, 0x100137c18\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x10, 0x100137c1c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x14, 0x100137c20\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x18, 0x100137c24\nADD             X29, SP, #0x50                                         ; +0x1c, 0x100137c28\nMOV             X20, X1                                                ; +0x20, 0x100137c2c\nMOV             X19, X0                                                ; +0x24, 0x100137c30\nLDR             X8, [X1]                                               ; +0x28, 0x100137c34\nLDR             X8, [X8,#0x40]                                         ; +0x2c, 0x100137c38\nMOV             X0, X1                                                 ; +0x30, 0x100137c3c\nBLR             X8                                                     ; +0x34, 0x100137c40\nCMP             W0, #1                                                 ; +0x38, 0x100137c44\nB.LE            loc_100137C88                                          ; +0x3c, 0x100137c48\nCMP             W0, #4                                                 ; +0x40, 0x100137c4c\nB.EQ            loc_100137CB8                                          ; +0x44, 0x100137c50\nCMP             W0, #3                                                 ; +0x48, 0x100137c54\nB.EQ            loc_100137CDC                                          ; +0x4c, 0x100137c58\nCMP             W0, #2                                                 ; +0x50, 0x100137c5c\nB.NE            loc_100137EAC                                          ; +0x54, 0x100137c60\nADD             X8, SP, #0x50+var_48                                   ; +0x58, 0x100137c64\nMOV             X0, X20                                                ; +0x5c, 0x100137c68\nBL              CCTextInputNode__getString                             ; +0x60, 0x100137c6c\nLDRSB           W8, [SP,#0x50+var_31]                                  ; +0x64, 0x100137c70\nTBNZ            W8, #0x1F, loc_100137DF0                               ; +0x68, 0x100137c74\nADD             X0, SP, #0x50+var_48; char *                           ; +0x6c, 0x100137c78\nBL              _atoi                                                  ; +0x70, 0x100137c7c\nMOV             X20, X0                                                ; +0x74, 0x100137c80\nB               loc_100137E08                                          ; +0x78, 0x100137c84\nCBZ             W0, loc_100137D00                                      ; +0x7c, 0x100137c88\nCMP             W0, #1                                                 ; +0x80, 0x100137c8c\nB.NE            loc_100137EAC                                          ; +0x84, 0x100137c90\nADD             X8, SP, #0x50+var_48                                   ; +0x88, 0x100137c94\nMOV             X0, X20                                                ; +0x8c, 0x100137c98\nBL              CCTextInputNode__getString                             ; +0x90, 0x100137c9c\nLDRSB           W8, [SP,#0x50+var_31]                                  ; +0x94, 0x100137ca0\nTBNZ            W8, #0x1F, loc_100137E28                               ; +0x98, 0x100137ca4\nADD             X0, SP, #0x50+var_48; char *                           ; +0x9c, 0x100137ca8\nBL              _atof                                                  ; +0xa0, 0x100137cac\nFMOV            D8, D0                                                 ; +0xa4, 0x100137cb0\nB               loc_100137E40                                          ; +0xa8, 0x100137cb4\nADD             X8, SP, #0x50+var_48                                   ; +0xac, 0x100137cb8\nMOV             X0, X20                                                ; +0xb0, 0x100137cbc\nBL              CCTextInputNode__getString                             ; +0xb4, 0x100137cc0\nLDRSB           W8, [SP,#0x50+var_31]                                  ; +0xb8, 0x100137cc4\nTBNZ            W8, #0x1F, loc_100137D24                               ; +0xbc, 0x100137cc8\nADD             X0, SP, #0x50+var_48; char *                           ; +0xc0, 0x100137ccc\nBL              _atoi                                                  ; +0xc4, 0x100137cd0\nMOV             X20, X0                                                ; +0xc8, 0x100137cd4\nB               loc_100137D3C                                          ; +0xcc, 0x100137cd8\nADD             X8, SP, #0x50+var_48                                   ; +0xd0, 0x100137cdc\nMOV             X0, X20                                                ; +0xd4, 0x100137ce0\nBL              CCTextInputNode__getString                             ; +0xd8, 0x100137ce4\nLDRSB           W8, [SP,#0x50+var_31]                                  ; +0xdc, 0x100137ce8\nTBNZ            W8, #0x1F, loc_100137D50                               ; +0xe0, 0x100137cec\nADD             X0, SP, #0x50+var_48; char *                           ; +0xe4, 0x100137cf0\nBL              _atof                                                  ; +0xe8, 0x100137cf4\nFMOV            D8, D0                                                 ; +0xec, 0x100137cf8\nB               loc_100137D68                                          ; +0xf0, 0x100137cfc\nADD             X8, SP, #0x50+var_48                                   ; +0xf4, 0x100137d00\nMOV             X0, X20                                                ; +0xf8, 0x100137d04\nBL              CCTextInputNode__getString                             ; +0xfc, 0x100137d08\nLDRSB           W8, [SP,#0x50+var_31]                                  ; +0x100, 0x100137d0c\nTBNZ            W8, #0x1F, loc_100137DA4                               ; +0x104, 0x100137d10\nADD             X0, SP, #0x50+var_48; char *                           ; +0x108, 0x100137d14\nBL              _atof                                                  ; +0x10c, 0x100137d18\nFMOV            D8, D0                                                 ; +0x110, 0x100137d1c\nB               loc_100137DBC                                          ; +0x114, 0x100137d20\nLDR             X21, [SP,#0x50+var_48]                                 ; +0x118, 0x100137d24\nMOV             X0, X21; char *                                        ; +0x11c, 0x100137d28\nBL              _atoi                                                  ; +0x120, 0x100137d2c\nMOV             X20, X0                                                ; +0x124, 0x100137d30\nMOV             X0, X21; __p                                           ; +0x128, 0x100137d34\nBL              __ZdlPv; operator delete(void *)                       ; +0x12c, 0x100137d38\nBIC             W8, W20, W20,ASR#31                                    ; +0x130, 0x100137d3c\nSTR             W8, [X19,#0x408]                                       ; +0x134, 0x100137d40\nMOV             X0, X19                                                ; +0x138, 0x100137d44\nBL              GJFollowCommandLayer__updateTargetGroupID2             ; +0x13c, 0x100137d48\nB               loc_100137EAC                                          ; +0x140, 0x100137d4c\nLDR             X20, [SP,#0x50+var_48]                                 ; +0x144, 0x100137d50\nMOV             X0, X20; char *                                        ; +0x148, 0x100137d54\nBL              _atof                                                  ; +0x14c, 0x100137d58\nFMOV            D8, D0                                                 ; +0x150, 0x100137d5c\nMOV             X0, X20; __p                                           ; +0x154, 0x100137d60\nBL              __ZdlPv; operator delete(void *)                       ; +0x158, 0x100137d64\nFCVT            S0, D8                                                 ; +0x15c, 0x100137d68\nFCVT            D0, S0                                                 ; +0x160, 0x100137d6c\nSTR             D0, [SP,#0x50+var_50]                                  ; +0x164, 0x100137d70\nADRL            X0, a02f_0; \"%.02f\"                                    ; +0x168, 0x100137d74\nBL              sub_100268F4C                                          ; +0x170, 0x100137d7c\nBL              cocos2d__CCString__floatValue                          ; +0x174, 0x100137d80\nSTR             S0, [X19,#0x3C0]                                       ; +0x178, 0x100137d84\nMOV             X0, X19                                                ; +0x17c, 0x100137d88\nBL              GJFollowCommandLayer__updateDuration                   ; +0x180, 0x100137d8c\nLDR             X0, [X19,#0x3B8]                                       ; +0x184, 0x100137d90\nLDR             S0, [X19,#0x3C0]                                       ; +0x188, 0x100137d94\nFMOV            S1, #10.0                                              ; +0x18c, 0x100137d98\nFDIV            S0, S0, S1                                             ; +0x190, 0x100137d9c\nB               loc_100137E7C                                          ; +0x194, 0x100137da0\nLDR             X20, [SP,#0x50+var_48]                                 ; +0x198, 0x100137da4\nMOV             X0, X20; char *                                        ; +0x19c, 0x100137da8\nBL              _atof                                                  ; +0x1a0, 0x100137dac\nFMOV            D8, D0                                                 ; +0x1a4, 0x100137db0\nMOV             X0, X20; __p                                           ; +0x1a8, 0x100137db4\nBL              __ZdlPv; operator delete(void *)                       ; +0x1ac, 0x100137db8\nFCVT            S0, D8                                                 ; +0x1b0, 0x100137dbc\nFCVT            D0, S0                                                 ; +0x1b4, 0x100137dc0\nSTR             D0, [SP,#0x50+var_50]                                  ; +0x1b8, 0x100137dc4\nADRL            X0, a02f_0; \"%.02f\"                                    ; +0x1bc, 0x100137dc8\nBL              sub_100268F4C                                          ; +0x1c4, 0x100137dd0\nBL              cocos2d__CCString__floatValue                          ; +0x1c8, 0x100137dd4\nSTR             S0, [X19,#0x3E8]                                       ; +0x1cc, 0x100137dd8\nMOV             X0, X19                                                ; +0x1d0, 0x100137ddc\nBL              GJFollowCommandLayer__updateXMod                       ; +0x1d4, 0x100137de0\nLDR             X0, [X19,#0x3D8]                                       ; +0x1d8, 0x100137de4\nLDR             S0, [X19,#0x3E8]                                       ; +0x1dc, 0x100137de8\nB               loc_100137E70                                          ; +0x1e0, 0x100137dec\nLDR             X21, [SP,#0x50+var_48]                                 ; +0x1e4, 0x100137df0\nMOV             X0, X21; char *                                        ; +0x1e8, 0x100137df4\nBL              _atoi                                                  ; +0x1ec, 0x100137df8\nMOV             X20, X0                                                ; +0x1f0, 0x100137dfc\nMOV             X0, X21; __p                                           ; +0x1f4, 0x100137e00\nBL              __ZdlPv; operator delete(void *)                       ; +0x1f8, 0x100137e04\nCMP             W20, #1                                                ; +0x1fc, 0x100137e08\nCSINC           W8, W20, WZR, GT                                       ; +0x200, 0x100137e0c\nSTR             W8, [X19,#0x3F8]                                       ; +0x204, 0x100137e10\nMOV             X0, X19                                                ; +0x208, 0x100137e14\nBL              GJFollowCommandLayer__updateTargetGroupID              ; +0x20c, 0x100137e18\nMOV             X0, X19                                                ; +0x210, 0x100137e1c\nBL              SetupTriggerPopup__updateEditorLabel                   ; +0x214, 0x100137e20\nB               loc_100137EAC                                          ; +0x218, 0x100137e24\nLDR             X20, [SP,#0x50+var_48]                                 ; +0x21c, 0x100137e28\nMOV             X0, X20; char *                                        ; +0x220, 0x100137e2c\nBL              _atof                                                  ; +0x224, 0x100137e30\nFMOV            D8, D0                                                 ; +0x228, 0x100137e34\nMOV             X0, X20; __p                                           ; +0x22c, 0x100137e38\nBL              __ZdlPv; operator delete(void *)                       ; +0x230, 0x100137e3c\nFCVT            S0, D8                                                 ; +0x234, 0x100137e40\nFCVT            D0, S0                                                 ; +0x238, 0x100137e44\nSTR             D0, [SP,#0x50+var_50]                                  ; +0x23c, 0x100137e48\nADRL            X0, a02f_0; \"%.02f\"                                    ; +0x240, 0x100137e4c\nBL              sub_100268F4C                                          ; +0x248, 0x100137e54\nBL              cocos2d__CCString__floatValue                          ; +0x24c, 0x100137e58\nSTR             S0, [X19,#0x3EC]                                       ; +0x250, 0x100137e5c\nMOV             X0, X19                                                ; +0x254, 0x100137e60\nBL              GJFollowCommandLayer__updateYMod                       ; +0x258, 0x100137e64\nLDR             X0, [X19,#0x3E0]                                       ; +0x25c, 0x100137e68\nLDR             S0, [X19,#0x3EC]                                       ; +0x260, 0x100137e6c\nFMOV            S1, #0.5                                               ; +0x264, 0x100137e70\nFMUL            S0, S0, S1                                             ; +0x268, 0x100137e74\nFADD            S0, S0, S1                                             ; +0x26c, 0x100137e78\nFMOV            S1, #1.0                                               ; +0x270, 0x100137e7c\nFCMP            S0, S1                                                 ; +0x274, 0x100137e80\nCSET            W8, PL                                                 ; +0x278, 0x100137e84\nFCMP            S0, #0.0                                               ; +0x27c, 0x100137e88\nCSINC           W9, W8, WZR, LE                                        ; +0x280, 0x100137e8c\nCSINC           W8, W8, WZR, GT                                        ; +0x284, 0x100137e90\nCMP             W9, #0                                                 ; +0x288, 0x100137e94\nFMOV            S2, WZR                                                ; +0x28c, 0x100137e98\nFCSEL           S1, S1, S2, NE                                         ; +0x290, 0x100137e9c\nCMP             W8, #0                                                 ; +0x294, 0x100137ea0\nFCSEL           S0, S1, S0, NE                                         ; +0x298, 0x100137ea4\nBL              Slider__setValue                                       ; +0x29c, 0x100137ea8\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x2a0, 0x100137eac\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x2a4, 0x100137eb0\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x2a8, 0x100137eb4\nLDP             D9, D8, [SP,#0x50+var_30]                              ; +0x2ac, 0x100137eb8\nADD             SP, SP, #0x60 ; '`'                                    ; +0x2b0, 0x100137ebc\nRET                                                                    ; +0x2b4, 0x100137ec0", "xrefs": ["sub_100137EC4 @ 0x100137ec8", "<???> @ 0x100793688"], "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"}