{"type": "func", "start": 8770548, "end": 8770704, "name": "GJBaseGameLayer::playAnimationCommand", "pseudocode": "// \n// GJBaseGameLayer::playAnimationCommand from 0x85d3f4 to 0x85d490 (156 bytes)\n// \n// 2 xrefs:\n// > EffectGameObject::triggerObject @ 0x76fef0\n// > <???> @ 0x2c370\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::playAnimationCommand(GJBaseGameLayer *a1, int a2, int a3)\n{\n  unsigned int v4; // w19\n  cocos2d::CCArray *Group; // x20\n  bool v6; // cf\n  unsigned int v7; // w1\n  cocos2d::CCArray *i; // x0\n  __int64 v9; // x0\n\n  if ( a3 > 0 )\n  {\n    v4 = 0;\n    Group = GJBaseGameLayer::getGroup(a1, a3);\n    v6 = (unsigned int)cocos2d::CCArray::count(Group) == 0;\n    v7 = 0;\n    for ( i = Group; !v6; i = Group )\n    {\n      v9 = cocos2d::CCArray::objectAtIndex(i, v7);\n      ++v4;\n      if ( *(_DWORD *)(v9 + 1232) == 2 )\n        AnimatedGameObject::playAnimation((AnimatedGameObject *)v9, a2);\n      else\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1504LL))(v9);\n      v6 = v4 >= (unsigned int)cocos2d::CCArray::count(Group);\n      v7 = v4;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::playAnimationCommand from 0x85d3f4 to 0x85d490 (156 bytes)\n; \n; 2 xrefs:\n; > EffectGameObject::triggerObject @ 0x76fef0\n; > <???> @ 0x2c370\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_30]!                                ; +0x0, 0x85d3f4\nCMP             W2, WZR                                                ; +0x4, 0x85d3f8\nMOV             X29, SP                                                ; +0x8, 0x85d3fc\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x85d400\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x10, 0x85d404\nB.LE            loc_85D470                                             ; +0x14, 0x85d408\nMOV             W21, W1                                                ; +0x18, 0x85d40c\nMOV             W1, W2; int                                            ; +0x1c, 0x85d410\nMOV             W19, #0                                                ; +0x20, 0x85d414\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x24, 0x85d418\nMOV             X20, X0                                                ; +0x28, 0x85d41c\nMOV             X0, X20; this                                          ; +0x2c, 0x85d420\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x30, 0x85d424\nCMP             W19, W0                                                ; +0x34, 0x85d428\nMOV             W1, W19; unsigned int                                  ; +0x38, 0x85d42c\nMOV             X0, X20; this                                          ; +0x3c, 0x85d430\nB.CS            loc_85D470                                             ; +0x40, 0x85d434\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x85d438\nLDR             W3, [X0,#0x4D0]                                        ; +0x48, 0x85d43c\nCMP             W3, #2                                                 ; +0x4c, 0x85d440\nB.EQ            loc_85D480                                             ; +0x50, 0x85d444\nLDR             X2, [X0]                                               ; +0x54, 0x85d448\nADD             W19, W19, #1                                           ; +0x58, 0x85d44c\nLDR             X2, [X2,#0x5E0]                                        ; +0x5c, 0x85d450\nBLR             X2                                                     ; +0x60, 0x85d454\nMOV             X0, X20; this                                          ; +0x64, 0x85d458\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x68, 0x85d45c\nCMP             W19, W0                                                ; +0x6c, 0x85d460\nMOV             W1, W19                                                ; +0x70, 0x85d464\nMOV             X0, X20                                                ; +0x74, 0x85d468\nB.CC            loc_85D438                                             ; +0x78, 0x85d46c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x7c, 0x85d470\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x80, 0x85d474\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0x85d478\nRET                                                                    ; +0x88, 0x85d47c\nMOV             W1, W21; AnimatedGameObject *                          ; +0x8c, 0x85d480\nADD             W19, W19, #1                                           ; +0x90, 0x85d484\nBL              _ZN18AnimatedGameObject13playAnimationEi; AnimatedGameObject::playAnimation(int) ; +0x94, 0x85d488\nB               loc_85D458                                             ; +0x98, 0x85d48c", "xrefs": ["EffectGameObject::triggerObject @ 0x76fef0", "<???> @ 0x2c370"], "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"}