{"type": "func", "start": 8867460, "end": 8868108, "name": "GJBaseGameLayer::triggerMoveCommand", "pseudocode": "// \n// GJBaseGameLayer::triggerMoveCommand from 0x874e84 to 0x87510c (648 bytes)\n// \n// 2 xrefs:\n// > EffectGameObject::triggerObject @ 0x76f844\n// > <???> @ 0x47508\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 GJBaseGameLayer::triggerMoveCommand(GJBaseGameLayer *a1, EffectGameObject *a2)\n{\n  bool m_lockToPlayerX; // w24\n  bool m_lockToPlayerY; // w26\n  float m_duration; // s1\n  bool m_lockToCameraX; // w23\n  _BOOL4 m_lockToCameraY; // w25\n  float m_moveModX; // s8\n  float m_moveModY; // s9\n  MoveTargetType m_moveTargetMode; // w0\n  GJEffectManager *m_effectManager; // x21\n  float v13; // s4\n  float v14; // s5\n  float v15; // s0\n  float v16; // s1\n  cocos2d::CCPoint v17; // [xsp+80h] [xbp+70h] BYREF\n  _BYTE v18[8]; // [xsp+88h] [xbp+78h] BYREF\n  cocos2d::CCPoint v19; // [xsp+90h] [xbp+80h] BYREF\n  cocos2d::CCPoint MoveTargetDelta; // 0:kr00_8.8\n  cocos2d::CCPoint v21; // 0:s0.4,4:s1.4\n\n  cocos2d::CCPoint::CCPoint(&v17, &a2->m_moveOffset);\n  m_lockToPlayerX = a2->m_lockToPlayerX;\n  m_lockToPlayerY = a2->m_lockToPlayerY;\n  m_duration = a2->m_duration;\n  m_lockToCameraX = a2->m_lockToCameraX;\n  m_lockToCameraY = a2->m_lockToCameraY;\n  m_moveModX = a2->m_moveModX;\n  m_moveModY = a2->m_moveModY;\n  if ( m_duration <= 1.0 )\n    m_duration = 1.0;\n  if ( (unsigned int)((int)(float)(v17.x / m_duration) + 999999) <= 0x1E847E\n    && (!a2->m_lockToCameraX && !a2->m_lockToPlayerX || fabsf(m_moveModX) <= 99999.0)\n    && (!a2->m_lockToCameraY && !a2->m_lockToPlayerY || fabsf(m_moveModY) <= 99999.0) )\n  {\n    if ( a2->m_isDynamicMode )\n    {\n      if ( a2->m_useMoveTarget || a2->m_isDirectionFollowSnap360 )\n      {\n        GJBaseGameLayer::triggerDynamicMoveCommand(a1, a2);\n        return;\n      }\n    }\n    else if ( a2->m_useMoveTarget || a2->m_isDirectionFollowSnap360 )\n    {\n      MoveTargetDelta = GJBaseGameLayer::getMoveTargetDelta(a1, a2, !a1->m_enable22Changes);\n      cocos2d::CCPoint::operator=(&v17, MoveTargetDelta.x, MoveTargetDelta.y);\n      if ( a2->m_isDirectionFollowSnap360 )\n      {\n        cocos2d::ccpNormalize(&v17);\n        cocos2d::CCPoint::operator*(v18, a2->m_directionModeDistance);\n        cocos2d::CCPoint::operator=(&v17, v15, v16);\n      }\n      if ( a2->m_useMoveTarget )\n      {\n        m_moveTargetMode = a2->m_moveTargetMode;\n        m_lockToCameraY = 0;\n        m_lockToCameraX = 0;\n        m_lockToPlayerY = 0;\n        m_lockToPlayerX = 0;\n        if ( m_moveTargetMode == XOnly )\n        {\n          v17.y = 0.0;\n        }\n        else if ( m_moveTargetMode == YOnly )\n        {\n          v17.x = 0.0;\n        }\n      }\n      else\n      {\n        m_lockToCameraY = 0;\n        m_lockToCameraX = 0;\n        m_lockToPlayerY = 0;\n        m_lockToPlayerX = 0;\n      }\n    }\n    if ( a2->m_isSilent )\n    {\n      GJBaseGameLayer::moveObjectsSilent(a1, a2->m_targetGroupID, v17.x, v17.y);\n    }\n    else\n    {\n      m_effectManager = a1->m_effectManager;\n      cocos2d::CCPoint::CCPoint(&v19, &v17);\n      v21.x = a2->m_duration;\n      v21.y = a2->m_easingRate;\n      GJEffectManager::createMoveCommand(\n        m_effectManager,\n        v21,\n        (int)&v19,\n        m_moveModX,\n        a2->m_targetGroupID,\n        m_moveModY,\n        a2->m_easingType,\n        m_lockToPlayerX,\n        m_lockToPlayerY,\n        m_lockToCameraX,\n        v13,\n        v14,\n        m_lockToCameraY,\n        a2->m_uniqueID);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::triggerMoveCommand from 0x874e84 to 0x87510c (648 bytes)\n; \n; 2 xrefs:\n; > EffectGameObject::triggerObject @ 0x76f844\n; > <???> @ 0x47508\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\nSUB             SP, SP, #0xA0                                          ; +0x0, 0x874e84\nSTP             X29, X30, [SP,#0xA0+var_90]                            ; +0x4, 0x874e88\nADD             X29, SP, #0x10                                         ; +0x8, 0x874e8c\nSTP             X19, X20, [SP,#0xA0+var_80]                            ; +0xc, 0x874e90\nSTP             D8, D9, [SP,#0xA0+var_38]                              ; +0x10, 0x874e94\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x874e98\nMOV             X19, X1                                                ; +0x18, 0x874e9c\nSTP             X21, X22, [SP,#0xA0+var_70]                            ; +0x1c, 0x874ea0\nADD             X21, X29, #0x90+var_20                                 ; +0x20, 0x874ea4\nMOV             X22, X0                                                ; +0x24, 0x874ea8\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x874eac\nADD             X1, X1, #0x5C0; cocos2d::CCPoint *                     ; +0x2c, 0x874eb0\nMOV             X0, X21; this                                          ; +0x30, 0x874eb4\nSTR             X27, [SP,#0xA0+var_40]                                 ; +0x34, 0x874eb8\nSTP             X23, X24, [SP,#0xA0+var_60]                            ; +0x38, 0x874ebc\nLDR             X2, [X2]                                               ; +0x3c, 0x874ec0\nSTP             X25, X26, [SP,#0xA0+var_50]                            ; +0x40, 0x874ec4\nSTR             X2, [X29,#0x90+var_8]                                  ; +0x44, 0x874ec8\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x48, 0x874ecc\nLDRB            W24, [X19,#0x5D0]                                      ; +0x4c, 0x874ed0\nFMOV            S4, #1.0                                               ; +0x50, 0x874ed4\nLDRB            W26, [X19,#0x5D1]                                      ; +0x54, 0x874ed8\nLDR             S1, [X19,#0x59C]                                       ; +0x58, 0x874edc\nLDRB            W23, [X19,#0x5D2]                                      ; +0x5c, 0x874ee0\nLDRB            W25, [X19,#0x5D3]                                      ; +0x60, 0x874ee4\nFCMPE           S1, S4                                                 ; +0x64, 0x874ee8\nLDR             S8, [X19,#0x5DC]                                       ; +0x68, 0x874eec\nLDR             S9, [X19,#0x5E0]                                       ; +0x6c, 0x874ef0\nLDR             S0, [X29,#0x90+var_20]                                 ; +0x70, 0x874ef4\nB.LE            loc_875014                                             ; +0x74, 0x874ef8\nFDIV            S0, S0, S1                                             ; +0x78, 0x874efc\nMOV             W1, #0x1E847E                                          ; +0x7c, 0x874f00\nFCVTZS          W0, S0                                                 ; +0x84, 0x874f08\nADD             W0, W0, #0xF4,LSL#12                                   ; +0x88, 0x874f0c\nADD             W0, W0, #0x23F                                         ; +0x8c, 0x874f10\nCMP             W0, W1                                                 ; +0x90, 0x874f14\nB.HI            loc_874FC4                                             ; +0x94, 0x874f18\nCBNZ            W23, loc_875000                                        ; +0x98, 0x874f1c\nCBNZ            W24, loc_875000                                        ; +0x9c, 0x874f20\nCBNZ            W25, loc_87503C                                        ; +0xa0, 0x874f24\nCBNZ            W26, loc_87503C                                        ; +0xa4, 0x874f28\nLDRB            W0, [X19,#0x5F0]                                       ; +0xa8, 0x874f2c\nCBNZ            W0, loc_87501C                                         ; +0xac, 0x874f30\nLDRB            W0, [X19,#0x5D4]                                       ; +0xb0, 0x874f34\nCBZ             W0, loc_8750AC                                         ; +0xb4, 0x874f38\nLDRB            W2, [X22,#0x8AF]                                       ; +0xb8, 0x874f3c\nADD             X23, X29, #0x90+var_10                                 ; +0xbc, 0x874f40\nMOV             X8, X23                                                ; +0xc0, 0x874f44\nMOV             X0, X22; this                                          ; +0xc4, 0x874f48\nEOR             W2, W2, #1; bool                                       ; +0xc8, 0x874f4c\nMOV             X1, X19; EffectGameObject *                            ; +0xcc, 0x874f50\nBL              _ZN15GJBaseGameLayer18getMoveTargetDeltaEP16EffectGameObjectb; GJBaseGameLayer::getMoveTargetDelta(EffectGameObject *,bool) ; +0xd0, 0x874f54\nMOV             X0, X21                                                ; +0xd4, 0x874f58\nMOV             X1, X23                                                ; +0xd8, 0x874f5c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xdc, 0x874f60\nLDRB            W0, [X19,#0x5E5]                                       ; +0xe0, 0x874f64\nCBNZ            W0, loc_8750CC                                         ; +0xe4, 0x874f68\nLDRB            W0, [X19,#0x5D4]                                       ; +0xe8, 0x874f6c\nCBZ             W0, loc_8750B8                                         ; +0xec, 0x874f70\nLDR             W0, [X19,#0x5D8]                                       ; +0xf0, 0x874f74\nMOV             W25, #0                                                ; +0xf4, 0x874f78\nMOV             W23, #0                                                ; +0xf8, 0x874f7c\nMOV             W26, #0                                                ; +0xfc, 0x874f80\nCMP             W0, #1                                                 ; +0x100, 0x874f84\nMOV             W24, #0                                                ; +0x104, 0x874f88\nB.EQ            loc_8750FC                                             ; +0x108, 0x874f8c\nCMP             W0, #2                                                 ; +0x10c, 0x874f90\nB.NE            loc_874FA0                                             ; +0x110, 0x874f94\nFMOV            S0, WZR                                                ; +0x114, 0x874f98\nSTR             S0, [X29,#0x90+var_20]                                 ; +0x118, 0x874f9c\nLDRB            W0, [X19,#0x5F1]                                       ; +0x11c, 0x874fa0\nCBZ             W0, loc_875050                                         ; +0x120, 0x874fa4\nLDR             S0, [X29,#0x90+var_20]                                 ; +0x124, 0x874fa8\nLDR             W1, [X19,#0x5A8]; int                                  ; +0x128, 0x874fac\nLDR             S1, [X29,#0x90+var_1C]                                 ; +0x12c, 0x874fb0\nMOV             X0, X22; this                                          ; +0x130, 0x874fb4\nFCVT            D0, S0; double                                         ; +0x134, 0x874fb8\nFCVT            D1, S1; double                                         ; +0x138, 0x874fbc\nBL              _ZN15GJBaseGameLayer17moveObjectsSilentEidd; GJBaseGameLayer::moveObjectsSilent(int,double,double) ; +0x13c, 0x874fc0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x140, 0x874fc4\nLDR             X1, [X29,#0x90+var_8]                                  ; +0x144, 0x874fc8\nLDR             X0, [X20]                                              ; +0x148, 0x874fcc\nCMP             X1, X0                                                 ; +0x14c, 0x874fd0\nB.NE            loc_875108                                             ; +0x150, 0x874fd4\nSUB             SP, X29, #0x10                                         ; +0x154, 0x874fd8\nLDP             D8, D9, [SP,#0xA0+var_38]                              ; +0x158, 0x874fdc\nLDP             X19, X20, [SP,#0xA0+var_80]                            ; +0x15c, 0x874fe0\nLDP             X21, X22, [SP,#0xA0+var_70]                            ; +0x160, 0x874fe4\nLDP             X23, X24, [SP,#0xA0+var_60]                            ; +0x164, 0x874fe8\nLDP             X25, X26, [SP,#0xA0+var_50]                            ; +0x168, 0x874fec\nLDR             X27, [SP,#0xA0+var_40]                                 ; +0x16c, 0x874ff0\nLDP             X29, X30, [SP,#0xA0+var_90]                            ; +0x170, 0x874ff4\nADD             SP, SP, #0xA0                                          ; +0x174, 0x874ff8\nRET                                                                    ; +0x178, 0x874ffc\nFABS            S1, S8                                                 ; +0x17c, 0x875000\nLDR             S0, =0x47C34F80                                        ; +0x180, 0x875004\nFCMPE           S1, S0                                                 ; +0x184, 0x875008\nB.GT            loc_874FC4                                             ; +0x188, 0x87500c\nB               loc_874F24                                             ; +0x18c, 0x875010\nFMOV            S1, S4                                                 ; +0x190, 0x875014\nB               loc_874EFC                                             ; +0x194, 0x875018\nLDRB            W0, [X19,#0x5D4]                                       ; +0x198, 0x87501c\nCBNZ            W0, loc_87502C                                         ; +0x19c, 0x875020\nLDRB            W0, [X19,#0x5E5]                                       ; +0x1a0, 0x875024\nCBZ             W0, loc_874FA0                                         ; +0x1a4, 0x875028\nMOV             X0, X22; this                                          ; +0x1a8, 0x87502c\nMOV             X1, X19; EffectGameObject *                            ; +0x1ac, 0x875030\nBL              _ZN15GJBaseGameLayer25triggerDynamicMoveCommandEP16EffectGameObject; GJBaseGameLayer::triggerDynamicMoveCommand(EffectGameObject *) ; +0x1b0, 0x875034\nB               loc_874FC4                                             ; +0x1b4, 0x875038\nFABS            S1, S9                                                 ; +0x1b8, 0x87503c\nLDR             S0, =0x47C34F80                                        ; +0x1bc, 0x875040\nFCMPE           S1, S0                                                 ; +0x1c0, 0x875044\nB.GT            loc_874FC4                                             ; +0x1c4, 0x875048\nB               loc_874F2C                                             ; +0x1c8, 0x87504c\nADD             X27, X29, #0x90+var_10                                 ; +0x1cc, 0x875050\nMOV             X1, X21; cocos2d::CCPoint *                            ; +0x1d0, 0x875054\nMOV             X0, X27; this                                          ; +0x1d4, 0x875058\nLDR             X21, [X22,#0x9A8]                                      ; +0x1d8, 0x87505c\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x1dc, 0x875060\nLDR             S0, [X19,#0x59C]                                       ; +0x1e0, 0x875064\nLDR             W1, [X19,#0x384]                                       ; +0x1e4, 0x875068\nLDR             S1, [X19,#0x5CC]                                       ; +0x1e8, 0x87506c\nLDR             W0, [X19,#0x678]                                       ; +0x1ec, 0x875070\nFMOV            S2, S8                                                 ; +0x1f0, 0x875074\nLDR             W2, [X19,#0x5A8]                                       ; +0x1f4, 0x875078\nFMOV            S3, S9                                                 ; +0x1f8, 0x87507c\nLDR             W3, [X19,#0x5C8]                                       ; +0x1fc, 0x875080\nMOV             W4, W24                                                ; +0x200, 0x875084\nSTR             W1, [SP,#0xA0+var_A0]                                  ; +0x204, 0x875088\nSTR             W0, [SP,#0xA0+var_98]                                  ; +0x208, 0x87508c\nMOV             X1, X27                                                ; +0x20c, 0x875090\nMOV             X0, X21                                                ; +0x210, 0x875094\nMOV             W5, W26                                                ; +0x214, 0x875098\nMOV             W6, W23                                                ; +0x218, 0x87509c\nMOV             W7, W25                                                ; +0x21c, 0x8750a0\nBL              _ZN15GJEffectManager17createMoveCommandEN7cocos2d7CCPointEififbbbbffii; GJEffectManager::createMoveCommand(cocos2d::CCPoint,int,float,int,float,bool,bool,bool,bool,float,float,int,int) ; +0x220, 0x8750a4\nB               loc_874FC4                                             ; +0x224, 0x8750a8\nLDRB            W0, [X19,#0x5E5]                                       ; +0x228, 0x8750ac\nCBNZ            W0, loc_874F3C                                         ; +0x22c, 0x8750b0\nB               loc_874FA0                                             ; +0x230, 0x8750b4\nMOV             W25, #0                                                ; +0x234, 0x8750b8\nMOV             W23, #0                                                ; +0x238, 0x8750bc\nMOV             W26, #0                                                ; +0x23c, 0x8750c0\nMOV             W24, #0                                                ; +0x240, 0x8750c4\nB               loc_874FA0                                             ; +0x244, 0x8750c8\nADD             X24, X29, #0x90+var_18                                 ; +0x248, 0x8750cc\nMOV             X0, X21; this                                          ; +0x24c, 0x8750d0\nMOV             X8, X24                                                ; +0x250, 0x8750d4\nBL              _ZN7cocos2d12ccpNormalizeERKNS_7CCPointE; cocos2d::ccpNormalize(cocos2d::CCPoint const&) ; +0x254, 0x8750d8\nLDR             S0, [X19,#0x5EC]                                       ; +0x258, 0x8750dc\nMOV             X0, X24                                                ; +0x25c, 0x8750e0\nMOV             X8, X23                                                ; +0x260, 0x8750e4\nBL              _ZNK7cocos2d7CCPointmlEf; cocos2d::CCPoint::operator*(float) ; +0x264, 0x8750e8\nMOV             X0, X21                                                ; +0x268, 0x8750ec\nMOV             X1, X23                                                ; +0x26c, 0x8750f0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x270, 0x8750f4\nB               loc_874F6C                                             ; +0x274, 0x8750f8\nFMOV            S0, WZR                                                ; +0x278, 0x8750fc\nSTR             S0, [X29,#0x90+var_1C]                                 ; +0x27c, 0x875100\nB               loc_874FA0                                             ; +0x280, 0x875104\nBL              .__stack_chk_fail                                      ; +0x284, 0x875108", "xrefs": ["EffectGameObject::triggerObject @ 0x76f844", "<???> @ 0x47508"], "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"}