{"type": "func", "start": 4832012, "end": 4832130, "name": "GJEffectManager::addMoveCalculation", "pseudocode": "// \n// GJEffectManager::addMoveCalculation from 0x49bb0c to 0x49bb82 (118 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::prepareMoveActions @ 0x4a0c5c\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::addMoveCalculation(GJEffectManager *a1, CCMoveCNode *a2, cocos2d::CCPoint a3, GameObject *a4)\n{\n  float y; // r4\n  DynamicMoveCalculation *m_finish; // r4\n  CCMoveCNode *v7; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v8; // [sp+8h] [bp-10h] BYREF\n  float v9; // [sp+10h] [bp-8h]\n\n  y = a3.y;\n  v7 = a2;\n  a2->m_unk0d1 = 1;\n  cocos2d::CCPoint::CCPoint(&v8, (const cocos2d::CCPoint *)LODWORD(a3.x));\n  v9 = y;\n  m_finish = a1->m_unkVector708.m_finish;\n  if ( m_finish == a1->m_unkVector708.m_reserveEnd )\n  {\n    std::vector<DynamicMoveCalculation>::_M_emplace_back_aux<DynamicMoveCalculation>((int)&a1->m_unkVector708, (int)&v7);\n  }\n  else\n  {\n    if ( m_finish )\n    {\n      m_finish->m_moveNode = v7;\n      cocos2d::CCPoint::CCPoint(&m_finish->m_offset, &v8);\n      *(float *)&m_finish->m_gameObject = v9;\n    }\n    ++a1->m_unkVector708.m_finish;\n  }\n}", "assembly": "; \n; GJEffectManager::addMoveCalculation from 0x49bb0c to 0x49bb82 (118 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::prepareMoveActions @ 0x4a0c5c\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, 0x49bb0c\nMOV             R4, R3                                                 ; +0x4, 0x49bb10\nLDR             R5, =(__stack_chk_guard_ptr - 0x49BB20)                ; +0x6, 0x49bb12\nSUB             SP, SP, #0x18                                          ; +0x8, 0x49bb14\nADD             R7, SP, #0x18                                          ; +0xa, 0x49bb16\nADD.W           R8, SP, #0x18+var_10                                   ; +0xc, 0x49bb18\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x49bb1c\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x49bb1e\nMOV             R6, R0                                                 ; +0x14, 0x49bb20\nSTR.W           R1, [R7,#var_14]!                                      ; +0x16, 0x49bb22\nMOV             R0, R8; this                                           ; +0x1a, 0x49bb26\nLDR             R3, [R5]                                               ; +0x1c, 0x49bb28\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1e, 0x49bb2a\nMOVS            R3, #1                                                 ; +0x20, 0x49bb2c\nSTRB.W          R3, [R1,#0xCD]                                         ; +0x22, 0x49bb2e\nMOV             R1, R2; cocos2d::CCPoint *                             ; +0x26, 0x49bb32\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x28, 0x49bb34\nSTR             R4, [SP,#0x18+var_8]                                   ; +0x2c, 0x49bb38\nLDR.W           R3, [R6,#0x42C]                                        ; +0x2e, 0x49bb3a\nLDR.W           R4, [R6,#0x428]                                        ; +0x32, 0x49bb3e\nCMP             R4, R3                                                 ; +0x36, 0x49bb42\nBEQ             loc_49BB66                                             ; +0x38, 0x49bb44\nCBZ             R4, loc_49BB5A                                         ; +0x3a, 0x49bb46\nLDR             R3, [SP,#0x18+var_14]                                  ; +0x3c, 0x49bb48\nMOV             R0, R4                                                 ; +0x3e, 0x49bb4a\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0x40, 0x49bb4c\nSTR.W           R3, [R0],#4; this                                      ; +0x42, 0x49bb4e\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x46, 0x49bb52\nLDR             R3, [SP,#0x18+var_8]                                   ; +0x4a, 0x49bb56\nSTR             R3, [R4,#0xC]                                          ; +0x4c, 0x49bb58\nLDR.W           R3, [R6,#0x428]                                        ; +0x4e, 0x49bb5a\nADDS            R3, #0x10                                              ; +0x52, 0x49bb5e\nSTR.W           R3, [R6,#0x428]                                        ; +0x54, 0x49bb60\nB               loc_49BB70                                             ; +0x58, 0x49bb64\nADDW            R0, R6, #0x424                                         ; +0x5a, 0x49bb66\nMOV             R1, R7                                                 ; +0x5e, 0x49bb6a\nBL              _ZNSt6vectorI22DynamicMoveCalculationSaIS0_EE19_M_emplace_back_auxIJS0_EEEvDpOT_; std::vector<DynamicMoveCalculation>::_M_emplace_back_aux<DynamicMoveCalculation>(DynamicMoveCalculation &&) ; +0x60, 0x49bb6c\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x64, 0x49bb70\nLDR             R3, [R5]                                               ; +0x66, 0x49bb72\nCMP             R2, R3                                                 ; +0x68, 0x49bb74\nBEQ             loc_49BB7C                                             ; +0x6a, 0x49bb76\nBLX             __stack_chk_fail                                       ; +0x6c, 0x49bb78\nADD             SP, SP, #0x18                                          ; +0x70, 0x49bb7c\nPOP.W           {R4-R8,PC}                                             ; +0x72, 0x49bb7e", "xrefs": ["GJEffectManager::prepareMoveActions @ 0x4a0c5c"], "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"}