{"type": "func", "start": 9062000, "end": 9062372, "name": "GJEffectManager::processMoveCalculations", "pseudocode": "// \n// GJEffectManager::processMoveCalculations from 0x8a4670 to 0x8a47e4 (372 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processMoveActions @ 0x8630a4\n// > <???> @ 0x3f018\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 GJEffectManager::processMoveCalculations(GJEffectManager *a1)\n{\n  DynamicMoveCalculation *m_start; // x22\n  DynamicMoveCalculation *m_finish; // x19\n  float v4; // s9\n  float x; // s8\n  float v6; // s12\n  float v7; // s0\n  float y; // s9\n  float v9; // s0\n  float v10; // s1\n  GameObject *m_gameObject; // x2\n  float v12; // s12\n  float v13; // s9\n  float v14; // s8\n  CCMoveCNode *m_moveNode; // t1\n  double v16; // d1\n  double v17; // d0\n  double v18; // d5\n  double v19; // d4\n  double v20; // d1\n  double v21; // d0\n  cocos2d::CCPoint v22; // [xsp+78h] [xbp+78h] BYREF\n  __int64 v23; // [xsp+80h] [xbp+80h] BYREF\n\n  m_start = a1->m_unkVector708.m_start;\n  m_finish = a1->m_unkVector708.m_finish;\n  if ( m_finish != m_start )\n  {\n    do\n    {\n      v4 = (float)-m_start->m_gameObject->m_rotationXOffset * 0.017453;\n      cocos2d::CCPoint::CCPoint(&v22);\n      x = m_start->m_offset.x;\n      v6 = cosf(v4);\n      v7 = v4;\n      y = m_start->m_offset.y;\n      v9 = sinf(v7);\n      v10 = x * v6;\n      m_gameObject = m_start->m_gameObject;\n      v12 = v6 * y;\n      v13 = (float)(v10 - (float)(y * v9)) * (m_gameObject->m_scaleXOffset + 1.0);\n      v14 = (float)(v12 + (float)(x * v9)) * (m_gameObject->m_scaleYOffset + 1.0);\n      v22.x = v13;\n      v22.y = v14;\n      cocos2d::CCPoint::operator-(&v23, &v22, &m_start->m_offset);\n      m_moveNode = m_start->m_moveNode;\n      ++m_start;\n      v16 = *(float *)&v23;\n      v17 = *((float *)&v23 + 1);\n      m_moveNode->m_unk0d1 = 0;\n      v18 = m_moveNode->m_unk038 + v16;\n      v19 = m_moveNode->m_unk040 + v17;\n      v20 = m_moveNode->m_unk090 + v16;\n      v21 = m_moveNode->m_unk098 + v17;\n      m_moveNode->m_unk038 = v18;\n      m_moveNode->m_unk040 = v19;\n      m_moveNode->m_unk090 = v20;\n      m_moveNode->m_unk098 = v21;\n    }\n    while ( m_finish != m_start );\n    m_finish = a1->m_unkVector708.m_start;\n  }\n  a1->m_unkVector708.m_finish = m_finish;\n}", "assembly": "; \n; GJEffectManager::processMoveCalculations from 0x8a4670 to 0x8a47e4 (372 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processMoveActions @ 0x8630a4\n; > <???> @ 0x3f018\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\nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0x8a4670\nMOV             X29, SP                                                ; +0x4, 0x8a4674\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0x8, 0x8a4678\nSTP             D8, D9, [SP,#0x90+var_50]                              ; +0xc, 0x8a467c\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x8a4680\nSTP             D10, D11, [SP,#0x90+var_40]                            ; +0x14, 0x8a4684\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x18, 0x8a4688\nMOV             X21, X0                                                ; +0x1c, 0x8a468c\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x8a4690\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x24, 0x8a4694\nLDR             X22, [X21,#0x778]                                      ; +0x28, 0x8a4698\nLDR             X19, [X21,#0x780]                                      ; +0x2c, 0x8a469c\nLDR             X0, [X0]                                               ; +0x30, 0x8a46a0\nSTR             X0, [X29,#0x90+var_8]                                  ; +0x34, 0x8a46a4\nCMP             X19, X22                                               ; +0x38, 0x8a46a8\nSTR             D12, [SP,#0x90+var_30]                                 ; +0x3c, 0x8a46ac\nB.EQ            loc_8A47A8                                             ; +0x40, 0x8a46b0\nLDR             S11, =0x3C8EFA35                                       ; +0x44, 0x8a46b4\nADD             X23, X29, #0x90+var_18                                 ; +0x48, 0x8a46b8\nADD             X24, X29, #0x90+var_10                                 ; +0x4c, 0x8a46bc\nFMOV            D10, #1.0                                              ; +0x50, 0x8a46c0\nLDR             X1, [X22,#0x10]                                        ; +0x54, 0x8a46c4\nMOV             X0, X23; this                                          ; +0x58, 0x8a46c8\nLDR             S9, [X1,#0x2A4]                                        ; +0x5c, 0x8a46cc\nFNEG            S9, S9                                                 ; +0x60, 0x8a46d0\nFMUL            S9, S9, S11                                            ; +0x64, 0x8a46d4\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x68, 0x8a46d8\nLDR             S8, [X22,#8]                                           ; +0x6c, 0x8a46dc\nFMOV            S0, S9; x                                              ; +0x70, 0x8a46e0\nBL              .cosf                                                  ; +0x74, 0x8a46e4\nFMOV            S12, S0                                                ; +0x78, 0x8a46e8\nFMOV            S0, S9; x                                              ; +0x7c, 0x8a46ec\nLDR             S9, [X22,#0xC]                                         ; +0x80, 0x8a46f0\nBL              .sinf                                                  ; +0x84, 0x8a46f4\nFMUL            S1, S8, S12                                            ; +0x88, 0x8a46f8\nLDR             X2, [X22,#0x10]                                        ; +0x8c, 0x8a46fc\nFMUL            S12, S12, S9                                           ; +0x90, 0x8a4700\nADD             X1, X22, #8                                            ; +0x94, 0x8a4704\nMOV             X0, X23                                                ; +0x98, 0x8a4708\nMOV             X8, X24                                                ; +0x9c, 0x8a470c\nLDR             S2, [X2,#0x2B4]                                        ; +0xa0, 0x8a4710\nFMSUB           S9, S9, S0, S1                                         ; +0xa4, 0x8a4714\nFMADD           S8, S8, S0, S12                                        ; +0xa8, 0x8a4718\nLDR             S1, [X2,#0x2B8]                                        ; +0xac, 0x8a471c\nFCVT            D0, S2                                                 ; +0xb0, 0x8a4720\nFCVT            D1, S1                                                 ; +0xb4, 0x8a4724\nFADD            D0, D0, D10                                            ; +0xb8, 0x8a4728\nFCVT            D9, S9                                                 ; +0xbc, 0x8a472c\nFCVT            D8, S8                                                 ; +0xc0, 0x8a4730\nFADD            D1, D1, D10                                            ; +0xc4, 0x8a4734\nFMUL            D9, D9, D0                                             ; +0xc8, 0x8a4738\nFMUL            D8, D8, D1                                             ; +0xcc, 0x8a473c\nFCVT            S9, D9                                                 ; +0xd0, 0x8a4740\nFCVT            S8, D8                                                 ; +0xd4, 0x8a4744\nSTR             S9, [X23]                                              ; +0xd8, 0x8a4748\nSTR             S8, [X23,#4]                                           ; +0xdc, 0x8a474c\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0xe0, 0x8a4750\nLDR             S1, [X24]                                              ; +0xe4, 0x8a4754\nLDR             X0, [X22],#0x18                                        ; +0xe8, 0x8a4758\nLDR             S0, [X24,#4]                                           ; +0xec, 0x8a475c\nFCVT            D1, S1                                                 ; +0xf0, 0x8a4760\nCMP             X19, X22                                               ; +0xf4, 0x8a4764\nFCVT            D0, S0                                                 ; +0xf8, 0x8a4768\nSTRB            WZR, [X0,#0xD1]                                        ; +0xfc, 0x8a476c\nLDR             D5, [X0,#0x38]                                         ; +0x100, 0x8a4770\nLDR             D4, [X0,#0x40]                                         ; +0x104, 0x8a4774\nLDR             D3, [X0,#0x90]                                         ; +0x108, 0x8a4778\nLDR             D2, [X0,#0x98]                                         ; +0x10c, 0x8a477c\nFADD            D5, D5, D1                                             ; +0x110, 0x8a4780\nFADD            D4, D4, D0                                             ; +0x114, 0x8a4784\nFADD            D1, D3, D1                                             ; +0x118, 0x8a4788\nFADD            D0, D2, D0                                             ; +0x11c, 0x8a478c\nSTR             D5, [X0,#0x38]                                         ; +0x120, 0x8a4790\nSTR             D4, [X0,#0x40]                                         ; +0x124, 0x8a4794\nSTR             D1, [X0,#0x90]                                         ; +0x128, 0x8a4798\nSTR             D0, [X0,#0x98]                                         ; +0x12c, 0x8a479c\nB.NE            loc_8A46C4                                             ; +0x130, 0x8a47a0\nLDR             X19, [X21,#0x778]                                      ; +0x134, 0x8a47a4\nSTR             X19, [X21,#0x780]                                      ; +0x138, 0x8a47a8\nLDR             X1, [X29,#0x90+var_8]                                  ; +0x13c, 0x8a47ac\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x140, 0x8a47b0\nLDR             X0, [X20]                                              ; +0x144, 0x8a47b4\nCMP             X1, X0                                                 ; +0x148, 0x8a47b8\nB.NE            loc_8A47E0                                             ; +0x14c, 0x8a47bc\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x150, 0x8a47c0\nLDP             D8, D9, [SP,#0x90+var_50]                              ; +0x154, 0x8a47c4\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x158, 0x8a47c8\nLDP             D10, D11, [SP,#0x90+var_40]                            ; +0x15c, 0x8a47cc\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0x160, 0x8a47d0\nLDR             D12, [SP,#0x90+var_30]                                 ; +0x164, 0x8a47d4\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x168, 0x8a47d8\nRET                                                                    ; +0x16c, 0x8a47dc\nBL              .__stack_chk_fail                                      ; +0x170, 0x8a47e0", "xrefs": ["GJBaseGameLayer::processMoveActions @ 0x8630a4", "<???> @ 0x3f018"], "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"}