{"type": "func", "start": 4673076, "end": 4673512, "name": "GJBaseGameLayer::processPlayerFollowActions", "pseudocode": "// \n// GJBaseGameLayer::processPlayerFollowActions from 0x474e34 to 0x474fe8 (436 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::processMoveActionsStep @ 0x496cf8\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::processPlayerFollowActions(GJBaseGameLayer *a1, float a2)\n{\n  float v3; // s19\n  GJEffectManager *m_effectManager; // r3\n  double **m_finish; // r10\n  double **m_start; // r8\n  double *v7; // r5\n  double *v8; // t1\n  int v9; // r0\n  cocos2d::CCArray *Group; // r0\n  double v11; // d6\n  cocos2d::CCArray *v12; // r9\n  float v13; // s17\n  cocos2d::ccArray *data; // r3\n  cocos2d::CCObject **arr; // r6\n  float v16; // s18\n  GameObject *v17; // r4\n  GameObject *v18; // t1\n  unsigned int m_commandIndex; // r1\n  float m_positionX; // s14\n  float m_positionY; // s14\n  float v22; // s15\n  float OldPosition; // s14\n  float v24; // s16\n  float v25; // s14\n  cocos2d::CCObject **v26; // [sp+0h] [bp-Ch]\n  float v27[2]; // [sp+Ch] [bp+0h] BYREF\n\n  v3 = a2 * 60.0;\n  m_effectManager = a1->m_effectManager;\n  m_finish = (double **)m_effectManager->m_unkVector6f0.m_finish;\n  m_start = (double **)m_effectManager->m_unkVector6f0.m_start;\n  while ( m_start != m_finish )\n  {\n    v8 = *m_start++;\n    v7 = v8;\n    v9 = (*(int (__fastcall **)(double *))(*(_DWORD *)v8 + 32))(v8);\n    Group = GJBaseGameLayer::getGroup(a1, v9);\n    v11 = v3 * v8[21];\n    v12 = Group;\n    if ( v11 >= 1.0 )\n    {\n      v13 = 1.0;\n    }\n    else if ( v11 > 0.0 )\n    {\n      v13 = v11;\n    }\n    else\n    {\n      v13 = 0.0;\n    }\n    if ( Group )\n    {\n      data = Group->data;\n      if ( data->num )\n      {\n        arr = data->arr;\n        v26 = &arr[data->num] + 0x3FFFFFFF;\n        v16 = v7[24] * v3;\n        while ( arr <= v26 )\n        {\n          v18 = (GameObject *)*arr++;\n          v17 = v18;\n          if ( !v18 )\n            break;\n          if ( !v17->m_isDecoration2 )\n          {\n            m_commandIndex = a1->m_gameState.m_commandIndex;\n            if ( v17->m_unk4C4 != m_commandIndex )\n            {\n              m_positionX = v17->m_positionX;\n              v17->m_lastPosition.x = m_positionX;\n              m_positionY = v17->m_positionY;\n              v17->m_lastPosition.y = m_positionY;\n              v17->m_unk4C4 = m_commandIndex;\n              GameObject::dirtifyObjectRect(v17);\n            }\n          }\n          v22 = v7[22];\n          OldPosition = PlayerObject::getOldPosition(a1->m_player1, v22);\n          if ( OldPosition != 0.0 )\n          {\n            v24 = OldPosition + (float)*((int *)v7 + 46);\n            v17->getRealPosition((cocos2d::CCPoint *)v27, v17);\n            v25 = (float)(v24 - v27[1]) * v13;\n            if ( v25 != 0.0 )\n            {\n              if ( v16 > 0.0 )\n              {\n                if ( v25 > v16 )\n                {\n                  v25 = v16;\n                }\n                else if ( v25 < (float)-v16 )\n                {\n                  v25 = -v16;\n                }\n              }\n              v17->m_positionY = v17->m_positionY + v25;\n              GameObject::dirtifyObjectPos(v17);\n            }\n          }\n        }\n      }\n    }\n    a1->updateDisabledObjectsLastPos(a1, v12);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processPlayerFollowActions from 0x474e34 to 0x474fe8 (436 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::processMoveActionsStep @ 0x496cf8\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-R11,LR}                                            ; +0x0, 0x474e34\nVMOV            S15, R1                                                ; +0x4, 0x474e38\nVPUSH           {D8-D10}                                               ; +0x8, 0x474e3c\nMOV             R7, R0                                                 ; +0xc, 0x474e40\nLDR             R5, =(__stack_chk_guard_ptr - 0x474E4C)                ; +0xe, 0x474e42\nVLDR            S19, =60.0                                             ; +0x10, 0x474e44\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x14, 0x474e48\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x16, 0x474e4a\nSUB             SP, SP, #0x1C                                          ; +0x18, 0x474e4c\nLDR             R3, [R5]                                               ; +0x1a, 0x474e4e\nADD.W           R11, SP, #0xC                                          ; +0x1c, 0x474e50\nSTR             R5, [SP,#0x1C+var_18]                                  ; +0x20, 0x474e54\nVMUL.F32        S19, S15, S19                                          ; +0x22, 0x474e56\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x26, 0x474e5a\nLDR.W           R3, [R0,#0x690]                                        ; +0x28, 0x474e5c\nLDR.W           R10, [R3,#0x41C]                                       ; +0x2c, 0x474e60\nLDR.W           R8, [R3,#0x418]                                        ; +0x30, 0x474e64\nCMP             R8, R10                                                ; +0x34, 0x474e68\nBEQ.W           loc_474FD0                                             ; +0x36, 0x474e6a\nLDR.W           R5, [R8],#4                                            ; +0x3a, 0x474e6e\nLDR             R3, [R5]                                               ; +0x3e, 0x474e72\nMOV             R0, R5                                                 ; +0x40, 0x474e74\nLDR             R3, [R3,#0x20]                                         ; +0x42, 0x474e76\nBLX             R3                                                     ; +0x44, 0x474e78\nMOV             R1, R0; int                                            ; +0x46, 0x474e7a\nMOV             R0, R7; this                                           ; +0x48, 0x474e7c\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x4a, 0x474e7e\nVCVT.F64.F32    D5, S19                                                ; +0x4e, 0x474e82\nVLDR            D6, [R5,#0xA8]                                         ; +0x52, 0x474e86\nVMUL.F64        D6, D5, D6                                             ; +0x56, 0x474e8a\nVMOV.F64        D7, #1.0                                               ; +0x5a, 0x474e8e\nMOV             R9, R0                                                 ; +0x5e, 0x474e92\nVCMPE.F64       D6, D7                                                 ; +0x60, 0x474e94\nVMRS            APSR_nzcv, FPSCR                                       ; +0x64, 0x474e98\nBPL             loc_474EAE                                             ; +0x68, 0x474e9c\nVCMPE.F64       D6, #0.0                                               ; +0x6a, 0x474e9e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x6e, 0x474ea2\nBGT             loc_474EB0                                             ; +0x72, 0x474ea6\nVLDR            S17, =0.0                                              ; +0x74, 0x474ea8\nB               loc_474EBA                                             ; +0x78, 0x474eac\nBPL             loc_474EB6                                             ; +0x7a, 0x474eae\nVCVT.F32.F64    S17, D6                                                ; +0x7c, 0x474eb0\nB               loc_474EBA                                             ; +0x80, 0x474eb4\nVMOV.F32        S17, #1.0                                              ; +0x82, 0x474eb6\nVLDR            D6, [R5,#0xC0]                                         ; +0x86, 0x474eba\nCMP.W           R9, #0                                                 ; +0x8a, 0x474ebe\nBNE             loc_474ED2                                             ; +0x8e, 0x474ec2\nLDR             R3, [R7]                                               ; +0x90, 0x474ec4\nMOV             R0, R7                                                 ; +0x92, 0x474ec6\nMOV             R1, R9                                                 ; +0x94, 0x474ec8\nLDR.W           R3, [R3,#0x298]                                        ; +0x96, 0x474eca\nBLX             R3                                                     ; +0x9a, 0x474ece\nB               loc_474E68                                             ; +0x9c, 0x474ed0\nLDR.W           R3, [R9,#0x34]                                         ; +0x9e, 0x474ed2\nLDR             R4, [R3]                                               ; +0xa2, 0x474ed6\nCMP             R4, #0                                                 ; +0xa4, 0x474ed8\nBEQ             loc_474EC4                                             ; +0xa6, 0x474eda\nVMUL.F64        D6, D6, D5                                             ; +0xa8, 0x474edc\nADD.W           R4, R4, #0x40000000                                    ; +0xac, 0x474ee0\nLDR             R6, [R3,#0xC]                                          ; +0xb0, 0x474ee4\nSUBS            R4, #1                                                 ; +0xb2, 0x474ee6\nADD.W           R3, R6, R4,LSL#2                                       ; +0xb4, 0x474ee8\nSTR             R3, [SP,#0x1C+var_1C]                                  ; +0xb8, 0x474eec\nVCVT.F32.F64    S18, D6                                                ; +0xba, 0x474eee\nVNEG.F32        S20, S18                                               ; +0xbe, 0x474ef2\nLDR             R3, [SP,#0x1C+var_1C]                                  ; +0xc2, 0x474ef6\nCMP             R6, R3                                                 ; +0xc4, 0x474ef8\nBHI             loc_474EC4                                             ; +0xc6, 0x474efa\nLDR.W           R4, [R6],#4                                            ; +0xc8, 0x474efc\nCMP             R4, #0                                                 ; +0xcc, 0x474f00\nBEQ             loc_474EC4                                             ; +0xce, 0x474f02\nLDRB.W          R1, [R4,#0x44E]                                        ; +0xd0, 0x474f04\nCBNZ            R1, loc_474F40                                         ; +0xd4, 0x474f08\nLDR.W           R1, [R7,#0x338]                                        ; +0xd6, 0x474f0a\nLDR.W           R0, [R4,#0x428]                                        ; +0xda, 0x474f0e\nCMP             R0, R1                                                 ; +0xde, 0x474f12\nBEQ             loc_474F40                                             ; +0xe0, 0x474f14\nVLDR            D7, [R4,#0x320]                                        ; +0xe2, 0x474f16\nADDW            R0, R4, #0x41C                                         ; +0xe6, 0x474f1a\nVCVT.F32.F64    S14, D7                                                ; +0xea, 0x474f1e\nVSTR            S14, [R0]                                              ; +0xee, 0x474f22\nADD.W           R0, R4, #0x420                                         ; +0xf2, 0x474f26\nVLDR            D7, [R4,#0x328]                                        ; +0xf6, 0x474f2a\nVCVT.F32.F64    S14, D7                                                ; +0xfa, 0x474f2e\nVSTR            S14, [R0]                                              ; +0xfe, 0x474f32\nMOV             R0, R4; this                                           ; +0x102, 0x474f36\nSTR.W           R1, [R4,#0x428]                                        ; +0x104, 0x474f38\nBL              _ZN10GameObject17dirtifyObjectRectEv; GameObject::dirtifyObjectRect(void) ; +0x108, 0x474f3c\nVLDR            D7, [R5,#0xB0]                                         ; +0x10c, 0x474f40\nLDR.W           R0, [R7,#0x8B8]; this                                  ; +0x110, 0x474f44\nVCVT.F32.F64    S15, D7                                                ; +0x114, 0x474f48\nVMOV            R1, S15; float                                         ; +0x118, 0x474f4c\nBL              _ZN12PlayerObject14getOldPositionEf; PlayerObject::getOldPosition(float) ; +0x11c, 0x474f50\nVMOV            S14, R0                                                ; +0x120, 0x474f54\nVCMP.F32        S14, #0.0                                              ; +0x124, 0x474f58\nVMRS            APSR_nzcv, FPSCR                                       ; +0x128, 0x474f5c\nBEQ             loc_474EF6                                             ; +0x12c, 0x474f60\nVLDR            S15, [R5,#0xB8]                                        ; +0x12e, 0x474f62\nMOV             R0, R11                                                ; +0x132, 0x474f66\nLDR             R1, [R4]                                               ; +0x134, 0x474f68\nVCVT.F32.S32    S16, S15                                               ; +0x136, 0x474f6a\nLDR.W           R3, [R1,#0x2A0]                                        ; +0x13a, 0x474f6e\nMOV             R1, R4                                                 ; +0x13e, 0x474f72\nVADD.F32        S16, S14, S16                                          ; +0x140, 0x474f74\nBLX             R3                                                     ; +0x144, 0x474f78\nVLDR            S14, [SP,#0x1C+var_C]                                  ; +0x146, 0x474f7a\nVSUB.F32        S14, S16, S14                                          ; +0x14a, 0x474f7e\nVMUL.F32        S14, S14, S17                                          ; +0x14e, 0x474f82\nVCMP.F32        S14, #0.0                                              ; +0x152, 0x474f86\nVMRS            APSR_nzcv, FPSCR                                       ; +0x156, 0x474f8a\nBEQ             loc_474EF6                                             ; +0x15a, 0x474f8e\nVCMPE.F32       S18, #0.0                                              ; +0x15c, 0x474f90\nVMRS            APSR_nzcv, FPSCR                                       ; +0x160, 0x474f94\nBLE             loc_474FB8                                             ; +0x164, 0x474f98\nVCMPE.F32       S14, S18                                               ; +0x166, 0x474f9a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x16a, 0x474f9e\nBGT             loc_474FB4                                             ; +0x16e, 0x474fa2\nVCMP.F32        S14, S20                                               ; +0x170, 0x474fa4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x174, 0x474fa8\nIT MI                                                                  ; +0x178, 0x474fac\nVMOVMI.F32      S14, S20                                               ; +0x17a, 0x474fae\nB               loc_474FB8                                             ; +0x17e, 0x474fb2\nVMOV.F32        S14, S18                                               ; +0x180, 0x474fb4\nVLDR            D6, [R4,#0x328]                                        ; +0x184, 0x474fb8\nMOV             R0, R4; this                                           ; +0x188, 0x474fbc\nVCVT.F64.F32    D7, S14                                                ; +0x18a, 0x474fbe\nVADD.F64        D7, D6, D7                                             ; +0x18e, 0x474fc2\nVSTR            D7, [R4,#0x328]                                        ; +0x192, 0x474fc6\nBL              _ZN10GameObject16dirtifyObjectPosEv; GameObject::dirtifyObjectPos(void) ; +0x196, 0x474fca\nB               loc_474EF6                                             ; +0x19a, 0x474fce\nLDR             R3, [SP,#0x1C+var_18]                                  ; +0x19c, 0x474fd0\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x19e, 0x474fd2\nLDR             R3, [R3]                                               ; +0x1a0, 0x474fd4\nCMP             R2, R3                                                 ; +0x1a2, 0x474fd6\nBEQ             loc_474FDE                                             ; +0x1a4, 0x474fd8\nBLX             __stack_chk_fail                                       ; +0x1a6, 0x474fda\nADD             SP, SP, #0x1C                                          ; +0x1aa, 0x474fde\nVPOP            {D8-D10}                                               ; +0x1ac, 0x474fe0\nPOP.W           {R4-R11,PC}                                            ; +0x1b0, 0x474fe4", "xrefs": ["GJBaseGameLayer::processMoveActionsStep @ 0x496cf8"], "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"}