{"type": "func", "start": 4672424, "end": 4672654, "name": "GJBaseGameLayer::moveObjects", "pseudocode": "// \n// GJBaseGameLayer::moveObjects from 0x474ba8 to 0x474c8e (230 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::moveObject @ 0x474cba\n// > GJBaseGameLayer::processMoveActions @ 0x474d76\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x48ad6c\n// > GJBaseGameLayer::processAdvancedFollowAction @ 0x48ae2e\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::moveObjects(GJBaseGameLayer *a1, cocos2d::CCArray *a2, double a3, double a4, bool a5)\n{\n  int v8; // r0\n  cocos2d::ccArray *data; // r3\n  cocos2d::CCObject **arr; // r5\n  cocos2d::CCObject **v11; // r6\n  GameObject *v12; // r4\n  GameObject *v13; // t1\n  unsigned int m_commandIndex; // r3\n  float m_positionX; // s14\n  float m_positionY; // s14\n\n  if ( a2 )\n  {\n    v8 = cocos2d::CCArray::count(a2);\n    data = a2->data;\n    a1->m_movedCount += v8;\n    if ( data->num )\n    {\n      arr = data->arr;\n      v11 = &arr[data->num] + 0x3FFFFFFF;\n      while ( arr <= v11 )\n      {\n        v13 = (GameObject *)*arr++;\n        v12 = v13;\n        if ( !v13 )\n          break;\n        if ( !v12->m_isDecoration2 )\n        {\n          m_commandIndex = a1->m_gameState.m_commandIndex;\n          if ( v12->m_unk4C4 != m_commandIndex )\n          {\n            m_positionX = v12->m_positionX;\n            v12->m_lastPosition.x = m_positionX;\n            m_positionY = v12->m_positionY;\n            v12->m_lastPosition.y = m_positionY;\n            v12->m_unk4C4 = m_commandIndex;\n            GameObject::dirtifyObjectRect(v12);\n          }\n        }\n        if ( a3 != 0.0 && !v12->m_tempOffsetXRelated )\n          v12->m_positionX = v12->m_positionX + a3;\n        if ( a4 != 0.0 )\n          v12->m_positionY = v12->m_positionY + a4;\n        GameObject::dirtifyObjectPos(v12);\n        a1->updateObjectSection(a1, v12);\n      }\n    }\n    a1->updateDisabledObjectsLastPos(a1, a2);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::moveObjects from 0x474ba8 to 0x474c8e (230 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::moveObject @ 0x474cba\n; > GJBaseGameLayer::processMoveActions @ 0x474d76\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x48ad6c\n; > GJBaseGameLayer::processAdvancedFollowAction @ 0x48ae2e\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, 0x474ba8\nMOV             R7, R0                                                 ; +0x4, 0x474bac\nVPUSH           {D8-D9}                                                ; +0x6, 0x474bae\nMOV             R8, R1                                                 ; +0xa, 0x474bb2\nVMOV            D8, R2, R3                                             ; +0xc, 0x474bb4\nVLDR            D9, [SP,#arg_0]                                        ; +0x10, 0x474bb8\nCMP             R1, #0                                                 ; +0x14, 0x474bbc\nBEQ             loc_474C86                                             ; +0x16, 0x474bbe\nMOV             R0, R1; this                                           ; +0x18, 0x474bc0\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a, 0x474bc2\nMOVW            R2, #0x2D88                                            ; +0x1e, 0x474bc6\nLDR             R3, [R7,R2]                                            ; +0x22, 0x474bca\nADD             R0, R3                                                 ; +0x24, 0x474bcc\nLDR.W           R3, [R8,#0x34]                                         ; +0x26, 0x474bce\nSTR             R0, [R7,R2]                                            ; +0x2a, 0x474bd2\nLDR             R4, [R3]                                               ; +0x2c, 0x474bd4\nCBNZ            R4, loc_474BEC                                         ; +0x2e, 0x474bd6\nVPOP            {D8-D9}                                                ; +0x30, 0x474bd8\nMOV             R0, R7                                                 ; +0x34, 0x474bdc\nLDR             R3, [R7]                                               ; +0x36, 0x474bde\nMOV             R1, R8                                                 ; +0x38, 0x474be0\nLDR.W           R3, [R3,#0x298]                                        ; +0x3a, 0x474be2\nPOP.W           {R4-R8,LR}                                             ; +0x3e, 0x474be6\nBX              R3                                                     ; +0x42, 0x474bea\nADD.W           R4, R4, #0x40000000                                    ; +0x44, 0x474bec\nLDR             R5, [R3,#0xC]                                          ; +0x48, 0x474bf0\nSUBS            R4, #1                                                 ; +0x4a, 0x474bf2\nADD.W           R6, R5, R4,LSL#2                                       ; +0x4c, 0x474bf4\nCMP             R5, R6                                                 ; +0x50, 0x474bf8\nBHI             loc_474BD8                                             ; +0x52, 0x474bfa\nLDR.W           R4, [R5],#4                                            ; +0x54, 0x474bfc\nCMP             R4, #0                                                 ; +0x58, 0x474c00\nBEQ             loc_474BD8                                             ; +0x5a, 0x474c02\nLDRB.W          R3, [R4,#0x44E]                                        ; +0x5c, 0x474c04\nCBNZ            R3, loc_474C40                                         ; +0x60, 0x474c08\nLDR.W           R3, [R7,#0x338]                                        ; +0x62, 0x474c0a\nLDR.W           R2, [R4,#0x428]                                        ; +0x66, 0x474c0e\nCMP             R2, R3                                                 ; +0x6a, 0x474c12\nBEQ             loc_474C40                                             ; +0x6c, 0x474c14\nVLDR            D7, [R4,#0x320]                                        ; +0x6e, 0x474c16\nADDW            R2, R4, #0x41C                                         ; +0x72, 0x474c1a\nMOV             R0, R4; this                                           ; +0x76, 0x474c1e\nVCVT.F32.F64    S14, D7                                                ; +0x78, 0x474c20\nVSTR            S14, [R2]                                              ; +0x7c, 0x474c24\nADD.W           R2, R4, #0x420                                         ; +0x80, 0x474c28\nVLDR            D7, [R4,#0x328]                                        ; +0x84, 0x474c2c\nVCVT.F32.F64    S14, D7                                                ; +0x88, 0x474c30\nVSTR            S14, [R2]                                              ; +0x8c, 0x474c34\nSTR.W           R3, [R4,#0x428]                                        ; +0x90, 0x474c38\nBL              _ZN10GameObject17dirtifyObjectRectEv; GameObject::dirtifyObjectRect(void) ; +0x94, 0x474c3c\nVCMP.F64        D8, #0.0                                               ; +0x98, 0x474c40\nVMRS            APSR_nzcv, FPSCR                                       ; +0x9c, 0x474c44\nBEQ             loc_474C5C                                             ; +0xa0, 0x474c48\nLDRB.W          R3, [R4,#0x260]                                        ; +0xa2, 0x474c4a\nCBNZ            R3, loc_474C5C                                         ; +0xa6, 0x474c4e\nVLDR            D7, [R4,#0x320]                                        ; +0xa8, 0x474c50\nVADD.F64        D7, D7, D8                                             ; +0xac, 0x474c54\nVSTR            D7, [R4,#0x320]                                        ; +0xb0, 0x474c58\nVCMP.F64        D9, #0.0                                               ; +0xb4, 0x474c5c\nVMRS            APSR_nzcv, FPSCR                                       ; +0xb8, 0x474c60\nBEQ             loc_474C72                                             ; +0xbc, 0x474c64\nVLDR            D7, [R4,#0x328]                                        ; +0xbe, 0x474c66\nVADD.F64        D7, D7, D9                                             ; +0xc2, 0x474c6a\nVSTR            D7, [R4,#0x328]                                        ; +0xc6, 0x474c6e\nMOV             R0, R4; this                                           ; +0xca, 0x474c72\nBL              _ZN10GameObject16dirtifyObjectPosEv; GameObject::dirtifyObjectPos(void) ; +0xcc, 0x474c74\nLDR             R3, [R7]                                               ; +0xd0, 0x474c78\nMOV             R0, R7                                                 ; +0xd2, 0x474c7a\nMOV             R1, R4                                                 ; +0xd4, 0x474c7c\nLDR.W           R3, [R3,#0x294]                                        ; +0xd6, 0x474c7e\nBLX             R3                                                     ; +0xda, 0x474c82\nB               loc_474BF8                                             ; +0xdc, 0x474c84\nVPOP            {D8-D9}                                                ; +0xde, 0x474c86\nPOP.W           {R4-R8,PC}                                             ; +0xe2, 0x474c8a", "xrefs": ["GJBaseGameLayer::moveObject @ 0x474cba", "GJBaseGameLayer::processMoveActions @ 0x474d76", "GJBaseGameLayer::processAdvancedFollowAction @ 0x48ad6c", "GJBaseGameLayer::processAdvancedFollowAction @ 0x48ae2e"], "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"}