{"type": "func", "start": 4825264, "end": 4825562, "name": "GJEffectManager::processMoveCalculations", "pseudocode": "// \n// GJEffectManager::processMoveCalculations from 0x49a0b0 to 0x49a1da (298 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::processMoveActions @ 0x474cda\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 *v2; // r4\n  DynamicMoveCalculation *m_finish; // r8\n  float m_rotationXOffset; // s22\n  float x; // s20\n  float v6; // s22\n  float v7; // r0\n  float y; // s16\n  float v9; // s21\n  float v10; // r0\n  GameObject *m_gameObject; // r3\n  cocos2d::CCPoint *p_m_offset; // r2\n  float v13; // s14\n  float v14; // s14\n  CCMoveCNode *m_moveNode; // r3\n  float v16; // s12\n  double v17; // d6\n  double m_unk040; // d5\n  double v19; // d7\n  cocos2d::CCPoint v20; // [sp+4h] [bp+0h] BYREF\n  float v21; // [sp+Ch] [bp+8h] BYREF\n  float v22; // [sp+10h] [bp+Ch]\n\n  v2 = a1->m_unkVector708.m_start + 1;\n  m_finish = a1->m_unkVector708.m_finish;\n  while ( m_finish != &v2[-1] )\n  {\n    m_rotationXOffset = v2[-1].m_gameObject->m_rotationXOffset;\n    cocos2d::CCPoint::CCPoint(&v20);\n    x = v2[-1].m_offset.x;\n    v6 = -(float)(m_rotationXOffset * 0.017453);\n    v7 = cosf(v6);\n    y = v2[-1].m_offset.y;\n    v9 = v7;\n    v10 = sinf(v6);\n    m_gameObject = v2[-1].m_gameObject;\n    p_m_offset = &v2[-1].m_offset;\n    ++v2;\n    v13 = (float)((float)(x * v9) - (float)(y * v10)) * (m_gameObject->m_scaleXOffset + 1.0);\n    v20.x = v13;\n    v14 = (float)((float)(y * v9) + (float)(x * v10)) * (m_gameObject->m_scaleYOffset + 1.0);\n    v20.y = v14;\n    cocos2d::CCPoint::operator-(&v21, &v20, p_m_offset);\n    m_moveNode = v2[-2].m_moveNode;\n    v16 = v21;\n    m_moveNode->m_unk0d1 = 0;\n    v17 = v16;\n    m_unk040 = m_moveNode->m_unk040;\n    m_moveNode->m_unk038 = m_moveNode->m_unk038 + v17;\n    v19 = v22;\n    m_moveNode->m_unk040 = m_unk040 + v22;\n    m_moveNode->m_unk090 = m_moveNode->m_unk090 + v17;\n    m_moveNode->m_unk098 = m_moveNode->m_unk098 + v19;\n  }\n  a1->m_unkVector708.m_finish = a1->m_unkVector708.m_start;\n}", "assembly": "; \n; GJEffectManager::processMoveCalculations from 0x49a0b0 to 0x49a1da (298 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::processMoveActions @ 0x474cda\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\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x49a0b0\nMOV             R6, R0                                                 ; +0x4, 0x49a0b4\nVPUSH           {D8-D11}                                               ; +0x6, 0x49a0b6\nLDR             R2, =(__stack_chk_guard_ptr - 0x49A0C8)                ; +0xa, 0x49a0ba\nLDR.W           R4, [R0,#0x424]                                        ; +0xc, 0x49a0bc\nVMOV.F64        D9, #1.0                                               ; +0x10, 0x49a0c0\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0x14, 0x49a0c4\nLDR             R2, [R2]; __stack_chk_guard                            ; +0x16, 0x49a0c6\nVLDR            S17, =0.017453                                         ; +0x18, 0x49a0c8\nSUB             SP, SP, #0x18                                          ; +0x1c, 0x49a0cc\nLDR             R3, [R2]                                               ; +0x1e, 0x49a0ce\nADDS            R4, #0x10                                              ; +0x20, 0x49a0d0\nLDR.W           R8, [R0,#0x428]                                        ; +0x22, 0x49a0d2\nADD             R7, SP, #4                                             ; +0x26, 0x49a0d6\nMOV             R5, R2                                                 ; +0x28, 0x49a0d8\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x2a, 0x49a0da\nSUB.W           R3, R4, #0x10                                          ; +0x2c, 0x49a0dc\nCMP             R8, R3                                                 ; +0x30, 0x49a0e0\nBEQ             loc_49A1BC                                             ; +0x32, 0x49a0e2\nLDR.W           R3, [R4,#-4]                                           ; +0x34, 0x49a0e4\nMOV             R0, R7; this                                           ; +0x38, 0x49a0e8\nVLDR            S22, [R3,#0x240]                                       ; +0x3a, 0x49a0ea\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x3e, 0x49a0ee\nVLDR            S20, [R4,#-0xC]                                        ; +0x42, 0x49a0f2\nVNMUL.F32       S22, S22, S17                                          ; +0x46, 0x49a0f6\nVMOV            R0, S22; x                                             ; +0x4a, 0x49a0fa\nBLX             cosf                                                   ; +0x4e, 0x49a0fe\nVLDR            S16, [R4,#-8]                                          ; +0x52, 0x49a102\nVMOV            S21, R0                                                ; +0x56, 0x49a106\nVMOV            R0, S22; x                                             ; +0x5a, 0x49a10a\nBLX             sinf                                                   ; +0x5e, 0x49a10e\nLDR.W           R3, [R4,#-4]                                           ; +0x62, 0x49a112\nSUB.W           R2, R4, #0xC                                           ; +0x66, 0x49a116\nMOV             R1, R7                                                 ; +0x6a, 0x49a11a\nADDS            R4, #0x10                                              ; +0x6c, 0x49a11c\nVLDR            S14, [R3,#0x250]                                       ; +0x6e, 0x49a11e\nVCVT.F64.F32    D7, S14                                                ; +0x72, 0x49a122\nVADD.F64        D7, D7, D9                                             ; +0x76, 0x49a126\nVMOV            S11, R0                                                ; +0x7a, 0x49a12a\nADD             R0, SP, #0x18+var_C                                    ; +0x7e, 0x49a12e\nVMUL.F32        S12, S16, S11                                          ; +0x80, 0x49a130\nVNMLS.F32       S12, S20, S21                                          ; +0x84, 0x49a134\nVCVT.F64.F32    D6, S12                                                ; +0x88, 0x49a138\nVMUL.F64        D7, D6, D7                                             ; +0x8c, 0x49a13c\nVMUL.F32        S16, S16, S21                                          ; +0x90, 0x49a140\nVCVT.F32.F64    S14, D7                                                ; +0x94, 0x49a144\nVMLA.F32        S16, S20, S11                                          ; +0x98, 0x49a148\nVSTR            S14, [SP,#0x18+var_14]                                 ; +0x9c, 0x49a14c\nVLDR            S14, [R3,#0x254]                                       ; +0xa0, 0x49a150\nVCVT.F64.F32    D7, S14                                                ; +0xa4, 0x49a154\nVADD.F64        D7, D7, D9                                             ; +0xa8, 0x49a158\nVCVT.F64.F32    D6, S16                                                ; +0xac, 0x49a15c\nVMUL.F64        D7, D6, D7                                             ; +0xb0, 0x49a160\nVCVT.F32.F64    S14, D7                                                ; +0xb4, 0x49a164\nVSTR            S14, [SP,#0x18+var_10]                                 ; +0xb8, 0x49a168\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0xbc, 0x49a16c\nLDR.W           R3, [R4,#-0x20]                                        ; +0xc0, 0x49a170\nMOVS            R2, #0                                                 ; +0xc4, 0x49a174\nVLDR            S12, [SP,#0x18+var_C]                                  ; +0xc6, 0x49a176\nSTRB.W          R2, [R3,#0xCD]                                         ; +0xca, 0x49a17a\nVLDR            D7, [R3,#0x38]                                         ; +0xce, 0x49a17e\nVCVT.F64.F32    D6, S12                                                ; +0xd2, 0x49a182\nVLDR            D5, [R3,#0x40]                                         ; +0xd6, 0x49a186\nVADD.F64        D7, D7, D6                                             ; +0xda, 0x49a18a\nVSTR            D7, [R3,#0x38]                                         ; +0xde, 0x49a18e\nVLDR            S14, [SP,#0x18+var_8]                                  ; +0xe2, 0x49a192\nVCVT.F64.F32    D7, S14                                                ; +0xe6, 0x49a196\nVADD.F64        D5, D5, D7                                             ; +0xea, 0x49a19a\nVSTR            D5, [R3,#0x40]                                         ; +0xee, 0x49a19e\nVLDR            D5, [R3,#0x90]                                         ; +0xf2, 0x49a1a2\nVADD.F64        D6, D5, D6                                             ; +0xf6, 0x49a1a6\nVSTR            D6, [R3,#0x90]                                         ; +0xfa, 0x49a1aa\nVLDR            D6, [R3,#0x98]                                         ; +0xfe, 0x49a1ae\nVADD.F64        D7, D6, D7                                             ; +0x102, 0x49a1b2\nVSTR            D7, [R3,#0x98]                                         ; +0x106, 0x49a1b6\nB               loc_49A0DC                                             ; +0x10a, 0x49a1ba\nLDR.W           R3, [R6,#0x424]                                        ; +0x10c, 0x49a1bc\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x110, 0x49a1c0\nSTR.W           R3, [R6,#0x428]                                        ; +0x112, 0x49a1c2\nLDR             R3, [R5]                                               ; +0x116, 0x49a1c6\nCMP             R2, R3                                                 ; +0x118, 0x49a1c8\nBEQ             loc_49A1D0                                             ; +0x11a, 0x49a1ca\nBLX             __stack_chk_fail                                       ; +0x11c, 0x49a1cc\nADD             SP, SP, #0x18                                          ; +0x120, 0x49a1d0\nVPOP            {D8-D11}                                               ; +0x122, 0x49a1d2\nPOP.W           {R4-R8,PC}                                             ; +0x126, 0x49a1d6", "xrefs": ["GJBaseGameLayer::processMoveActions @ 0x474cda"], "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"}