{"type": "func", "start": 5098460, "end": 5098890, "name": "GJFollowCommandLayer::textChanged", "pseudocode": "// \n// GJFollowCommandLayer::textChanged from 0x4dcbdc to 0x4dcd8a (430 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'GJFollowCommandLayer::textChanged @ 0x4dcda4\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 GJFollowCommandLayer::textChanged(GJFollowCommandLayer *a1, CCTextInputNode *a2)\n{\n  int v3; // r6\n  int v4; // r6\n  double v5; // d8\n  const char *v6; // r1\n  cocos2d::CCString *v7; // r0\n  Slider *m_xModSlider; // r0\n  float m_xMod; // s14\n  double v10; // d8\n  const char *v11; // r1\n  cocos2d::CCString *v12; // r0\n  float v13; // s15\n  double v14; // d8\n  const char *v15; // r1\n  cocos2d::CCString *v16; // r0\n  char *v18; // [sp+8h] [bp-Ch] BYREF\n\n  if ( !a1->m_disableTextDelegate )\n  {\n    switch ( a2->getTag(a2) )\n    {\n      case 0:\n        CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);\n        v5 = atof(v18);\n        sub_774008(&v18);\n        *(float *)&v5 = v5;\n        v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%.02f\", v6, *(float *)&v5);\n        a1->m_xMod = cocos2d::CCString::floatValue(v7);\n        GJFollowCommandLayer::updateXMod(a1);\n        m_xModSlider = a1->m_xModSlider;\n        m_xMod = a1->m_xMod;\n        goto LABEL_9;\n      case 1:\n        CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);\n        v10 = atof(v18);\n        sub_774008(&v18);\n        *(float *)&v10 = v10;\n        v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                     (cocos2d::CCString *)\"%.02f\",\n                                     v11,\n                                     *(float *)&v10);\n        a1->m_yMod = cocos2d::CCString::floatValue(v12);\n        GJFollowCommandLayer::updateYMod(a1);\n        m_xMod = a1->m_yMod;\n        m_xModSlider = a1->m_yModSlider;\nLABEL_9:\n        v13 = (float)(m_xMod * 0.5) + 0.5;\n        goto LABEL_11;\n      case 2:\n        CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);\n        v3 = atoi(v18);\n        sub_774008(&v18);\n        if ( v3 < 1 )\n          v3 = 1;\n        a1->m_targetGroupID = v3;\n        GJFollowCommandLayer::updateTargetGroupID(a1);\n        SetupTriggerPopup::updateEditorLabel(a1);\n        return;\n      case 3:\n        CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);\n        v14 = atof(v18);\n        sub_774008(&v18);\n        *(float *)&v14 = v14;\n        v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                     (cocos2d::CCString *)\"%.02f\",\n                                     v15,\n                                     *(float *)&v14);\n        a1->m_moveTime = cocos2d::CCString::floatValue(v16);\n        GJFollowCommandLayer::updateDuration(a1);\n        m_xModSlider = a1->m_moveTimeSlider;\n        v13 = a1->m_moveTime / 10.0;\nLABEL_11:\n        if ( v13 >= 1.0 )\n        {\n          v13 = 1.0;\n        }\n        else if ( v13 <= 0.0 )\n        {\n          v13 = 0.0;\n        }\n        Slider::setValue(m_xModSlider, v13);\n        break;\n      case 4:\n        CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2);\n        v4 = atoi(v18);\n        sub_774008(&v18);\n        a1->m_followGroupID = v4 & ~(v4 >> 31);\n        GJFollowCommandLayer::updateTargetGroupID2(a1);\n        break;\n      default:\n        return;\n    }\n  }\n}", "assembly": "; \n; GJFollowCommandLayer::textChanged from 0x4dcbdc to 0x4dcd8a (430 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'GJFollowCommandLayer::textChanged @ 0x4dcda4\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x4DCBE4)                ; +0x0, 0x4dcbdc\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x4dcbde\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x4dcbe0\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x4dcbe2\nVPUSH           {D8}                                                   ; +0x8, 0x4dcbe4\nMOV             R4, R0                                                 ; +0xc, 0x4dcbe8\nLDR             R2, [R3]                                               ; +0xe, 0x4dcbea\nMOV             R5, R3                                                 ; +0x10, 0x4dcbec\nSUB             SP, SP, #0x14                                          ; +0x12, 0x4dcbee\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x4dcbf0\nLDRB.W          R2, [R0,#0x220]                                        ; +0x16, 0x4dcbf2\nCMP             R2, #0                                                 ; +0x1a, 0x4dcbf6\nBNE.W           def_4DCC0E; jumptable 004DCC0E default case            ; +0x1c, 0x4dcbf8\nLDR             R3, [R1]                                               ; +0x20, 0x4dcbfc\nMOV             R0, R1                                                 ; +0x22, 0x4dcbfe\nSTR             R1, [SP,#0x14+var_10]                                  ; +0x24, 0x4dcc00\nLDR             R3, [R3,#0x20]                                         ; +0x26, 0x4dcc02\nBLX             R3                                                     ; +0x28, 0x4dcc04\nLDR             R1, [SP,#0x14+var_10]                                  ; +0x2a, 0x4dcc06\nCMP             R0, #4; switch 5 cases                                 ; +0x2c, 0x4dcc08\nBHI.W           def_4DCC0E; jumptable 004DCC0E default case            ; +0x2e, 0x4dcc0a\nTBB.W           [PC,R0]; switch jump                                   ; +0x32, 0x4dcc0e\nDCB 0x2D; jump table for switch statement                              ; +0x36, 0x4dcc12\nDCB 0x4F                                                               ; +0x37, 0x4dcc13\nDCB 3                                                                  ; +0x38, 0x4dcc14\nDCB 0x75                                                               ; +0x39, 0x4dcc15\nDCB 0x1A                                                               ; +0x3a, 0x4dcc16\nALIGN 2                                                                ; +0x3b, 0x4dcc17\nADD             R7, SP, #0x14+var_C; jumptable 004DCC0E case 2         ; +0x3c, 0x4dcc18\nMOV             R0, R7; this                                           ; +0x3e, 0x4dcc1a\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x40, 0x4dcc1c\nLDR             R0, [SP,#0x14+var_C]; char *                           ; +0x44, 0x4dcc20\nBLX             atoi                                                   ; +0x46, 0x4dcc22\nMOV             R6, R0                                                 ; +0x4a, 0x4dcc26\nMOV             R0, R7                                                 ; +0x4c, 0x4dcc28\nBL              sub_774008                                             ; +0x4e, 0x4dcc2a\nCMP             R6, #1                                                 ; +0x52, 0x4dcc2e\nMOV             R0, R4; this                                           ; +0x54, 0x4dcc30\nIT LT                                                                  ; +0x56, 0x4dcc32\nMOVLT           R6, #1                                                 ; +0x58, 0x4dcc34\nSTR.W           R6, [R4,#0x2D0]                                        ; +0x5a, 0x4dcc36\nBL              _ZN20GJFollowCommandLayer19updateTargetGroupIDEv; GJFollowCommandLayer::updateTargetGroupID(void) ; +0x5e, 0x4dcc3a\nMOV             R0, R4; this                                           ; +0x62, 0x4dcc3e\nBL              _ZN17SetupTriggerPopup17updateEditorLabelEv; SetupTriggerPopup::updateEditorLabel(void) ; +0x64, 0x4dcc40\nB               def_4DCC0E; jumptable 004DCC0E default case            ; +0x68, 0x4dcc44\nADD             R7, SP, #0x14+var_C; jumptable 004DCC0E case 4         ; +0x6a, 0x4dcc46\nMOV             R0, R7; this                                           ; +0x6c, 0x4dcc48\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x6e, 0x4dcc4a\nLDR             R0, [SP,#0x14+var_C]; char *                           ; +0x72, 0x4dcc4e\nBLX             atoi                                                   ; +0x74, 0x4dcc50\nMOV             R6, R0                                                 ; +0x78, 0x4dcc54\nMOV             R0, R7                                                 ; +0x7a, 0x4dcc56\nBL              sub_774008                                             ; +0x7c, 0x4dcc58\nBIC.W           R6, R6, R6,ASR#31                                      ; +0x80, 0x4dcc5c\nMOV             R0, R4; this                                           ; +0x84, 0x4dcc60\nSTR.W           R6, [R4,#0x2D8]                                        ; +0x86, 0x4dcc62\nBL              _ZN20GJFollowCommandLayer20updateTargetGroupID2Ev; GJFollowCommandLayer::updateTargetGroupID2(void) ; +0x8a, 0x4dcc66\nB               def_4DCC0E; jumptable 004DCC0E default case            ; +0x8e, 0x4dcc6a\nADD             R6, SP, #0x14+var_C; jumptable 004DCC0E case 0         ; +0x90, 0x4dcc6c\nMOV             R0, R6; this                                           ; +0x92, 0x4dcc6e\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x94, 0x4dcc70\nLDR             R0, [SP,#0x14+var_C]; char *                           ; +0x98, 0x4dcc74\nBLX             atof                                                   ; +0x9a, 0x4dcc76\nVMOV            D8, R0, R1                                             ; +0x9e, 0x4dcc7a\nMOV             R0, R6                                                 ; +0xa2, 0x4dcc7e\nBL              sub_774008                                             ; +0xa4, 0x4dcc80\nLDR             R0, =(a02f_0 - 0x4DCC8E); \"%.02f\"                      ; +0xa8, 0x4dcc84\nVCVT.F32.F64    S16, D8                                                ; +0xaa, 0x4dcc86\nADD             R0, PC; \"%.02f\"                                        ; +0xae, 0x4dcc8a\nVCVT.F64.F32    D7, S16                                                ; +0xb0, 0x4dcc8c\nVMOV            R2, R3, D7                                             ; +0xb4, 0x4dcc90\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xb8, 0x4dcc94\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0xbc, 0x4dcc98\nSTR.W           R0, [R4,#0x2C4]                                        ; +0xc0, 0x4dcc9c\nMOV             R0, R4; this                                           ; +0xc4, 0x4dcca0\nBL              _ZN20GJFollowCommandLayer10updateXModEv; GJFollowCommandLayer::updateXMod(void) ; +0xc6, 0x4dcca2\nLDR.W           R0, [R4,#0x2BC]                                        ; +0xca, 0x4dcca6\nVLDR            S14, [R4,#0x2C4]                                       ; +0xce, 0x4dccaa\nB               loc_4DCCF2                                             ; +0xd2, 0x4dccae\nADD             R6, SP, #0x14+var_C; jumptable 004DCC0E case 1         ; +0xd4, 0x4dccb0\nMOV             R0, R6; this                                           ; +0xd6, 0x4dccb2\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0xd8, 0x4dccb4\nLDR             R0, [SP,#0x14+var_C]; char *                           ; +0xdc, 0x4dccb8\nBLX             atof                                                   ; +0xde, 0x4dccba\nVMOV            D8, R0, R1                                             ; +0xe2, 0x4dccbe\nMOV             R0, R6                                                 ; +0xe6, 0x4dccc2\nBL              sub_774008                                             ; +0xe8, 0x4dccc4\nLDR             R0, =(a02f_0 - 0x4DCCD2); \"%.02f\"                      ; +0xec, 0x4dccc8\nVCVT.F32.F64    S16, D8                                                ; +0xee, 0x4dccca\nADD             R0, PC; \"%.02f\"                                        ; +0xf2, 0x4dccce\nVCVT.F64.F32    D7, S16                                                ; +0xf4, 0x4dccd0\nVMOV            R2, R3, D7                                             ; +0xf8, 0x4dccd4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xfc, 0x4dccd8\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x100, 0x4dccdc\nSTR.W           R0, [R4,#0x2C8]                                        ; +0x104, 0x4dcce0\nMOV             R0, R4; this                                           ; +0x108, 0x4dcce4\nBL              _ZN20GJFollowCommandLayer10updateYModEv; GJFollowCommandLayer::updateYMod(void) ; +0x10a, 0x4dcce6\nVLDR            S14, [R4,#0x2C8]                                       ; +0x10e, 0x4dccea\nLDR.W           R0, [R4,#0x2C0]                                        ; +0x112, 0x4dccee\nVMOV.F32        S15, #0.5                                              ; +0x116, 0x4dccf2\nVMLA.F32        S15, S14, S15                                          ; +0x11a, 0x4dccf6\nB               loc_4DCD46                                             ; +0x11e, 0x4dccfa\nADD             R6, SP, #0x14+var_C; jumptable 004DCC0E case 3         ; +0x120, 0x4dccfc\nMOV             R0, R6; this                                           ; +0x122, 0x4dccfe\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x124, 0x4dcd00\nLDR             R0, [SP,#0x14+var_C]; char *                           ; +0x128, 0x4dcd04\nBLX             atof                                                   ; +0x12a, 0x4dcd06\nVMOV            D8, R0, R1                                             ; +0x12e, 0x4dcd0a\nMOV             R0, R6                                                 ; +0x132, 0x4dcd0e\nBL              sub_774008                                             ; +0x134, 0x4dcd10\nLDR             R0, =(a02f_0 - 0x4DCD1E); \"%.02f\"                      ; +0x138, 0x4dcd14\nVCVT.F32.F64    S16, D8                                                ; +0x13a, 0x4dcd16\nADD             R0, PC; \"%.02f\"                                        ; +0x13e, 0x4dcd1a\nVCVT.F64.F32    D7, S16                                                ; +0x140, 0x4dcd1c\nVMOV            R2, R3, D7                                             ; +0x144, 0x4dcd20\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x148, 0x4dcd24\nBL              _ZNK7cocos2d8CCString10floatValueEv; cocos2d::CCString::floatValue(void) ; +0x14c, 0x4dcd28\nSTR.W           R0, [R4,#0x2B0]                                        ; +0x150, 0x4dcd2c\nMOV             R0, R4; this                                           ; +0x154, 0x4dcd30\nBL              _ZN20GJFollowCommandLayer14updateDurationEv; GJFollowCommandLayer::updateDuration(void) ; +0x156, 0x4dcd32\nVMOV.F32        S14, #10.0                                             ; +0x15a, 0x4dcd36\nVLDR            S15, [R4,#0x2B0]                                       ; +0x15e, 0x4dcd3a\nLDR.W           R0, [R4,#0x2AC]; this                                  ; +0x162, 0x4dcd3e\nVDIV.F32        S15, S15, S14                                          ; +0x166, 0x4dcd42\nVMOV.F32        S14, #1.0                                              ; +0x16a, 0x4dcd46\nVCMPE.F32       S15, S14                                               ; +0x16e, 0x4dcd4a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x172, 0x4dcd4e\nBPL             loc_4DCD68                                             ; +0x176, 0x4dcd52\nVCMPE.F32       S15, #0.0                                              ; +0x178, 0x4dcd54\nVLDR            S14, =0.0                                              ; +0x17c, 0x4dcd58\nVMRS            APSR_nzcv, FPSCR                                       ; +0x180, 0x4dcd5c\nIT LE                                                                  ; +0x184, 0x4dcd60\nVMOVLE.F32      S15, S14                                               ; +0x186, 0x4dcd62\nB               loc_4DCD6E                                             ; +0x18a, 0x4dcd66\nIT PL                                                                  ; +0x18c, 0x4dcd68\nVMOVPL.F32      S15, S14                                               ; +0x18e, 0x4dcd6a\nVMOV            R1, S15; float                                         ; +0x192, 0x4dcd6e\nBL              _ZN6Slider8setValueEf; Slider::setValue(float)         ; +0x196, 0x4dcd72\nLDR             R2, [SP,#0x14+var_8]; jumptable 004DCC0E default case  ; +0x19a, 0x4dcd76\nLDR             R3, [R5]                                               ; +0x19c, 0x4dcd78\nCMP             R2, R3                                                 ; +0x19e, 0x4dcd7a\nBEQ             loc_4DCD82                                             ; +0x1a0, 0x4dcd7c\nBLX             __stack_chk_fail                                       ; +0x1a2, 0x4dcd7e\nADD             SP, SP, #0x14                                          ; +0x1a6, 0x4dcd82\nVPOP            {D8}                                                   ; +0x1a8, 0x4dcd84\nPOP             {R4-R7,PC}                                             ; +0x1ac, 0x4dcd88", "xrefs": ["`non-virtual thunk to'GJFollowCommandLayer::textChanged @ 0x4dcda4"], "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"}