{"type": "func", "start": 4656752, "end": 4656816, "name": "GJBaseGameLayer::playAnimationCommand", "pseudocode": "// \n// GJBaseGameLayer::playAnimationCommand from 0x470e70 to 0x470eb0 (64 bytes)\n// \n// 1 xrefs:\n// > EffectGameObject::triggerObject @ 0x3ee166\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; // r4\n  cocos2d::CCArray *Group; // r5\n  int v6; // r0\n\n  if ( a3 > 0 )\n  {\n    v4 = 0;\n    Group = GJBaseGameLayer::getGroup(a1, a3);\n    while ( v4 < cocos2d::CCArray::count(Group) )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(Group, v4);\n      if ( *(_DWORD *)(v6 + 1076) == 2 )\n        AnimatedGameObject::playAnimation((AnimatedGameObject *)v6, a2);\n      else\n        (*(void (__fastcall **)(int))(*(_DWORD *)v6 + 752))(v6);\n      ++v4;\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::playAnimationCommand from 0x470e70 to 0x470eb0 (64 bytes)\n; \n; 1 xrefs:\n; > EffectGameObject::triggerObject @ 0x3ee166\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            {R4-R6,LR}                                             ; +0x0, 0x470e70\nMOV             R6, R1                                                 ; +0x2, 0x470e72\nSUBS            R1, R2, #0; int                                        ; +0x4, 0x470e74\nBLE             locret_470EAE                                          ; +0x6, 0x470e76\nBL              _ZN15GJBaseGameLayer8getGroupEi; GJBaseGameLayer::getGroup(int) ; +0x8, 0x470e78\nMOVS            R4, #0                                                 ; +0xc, 0x470e7c\nMOV             R5, R0                                                 ; +0xe, 0x470e7e\nMOV             R0, R5; this                                           ; +0x10, 0x470e80\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x12, 0x470e82\nCMP             R4, R0                                                 ; +0x16, 0x470e86\nBCS             locret_470EAE                                          ; +0x18, 0x470e88\nMOV             R0, R5; this                                           ; +0x1a, 0x470e8a\nMOV             R1, R4; unsigned int                                   ; +0x1c, 0x470e8c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1e, 0x470e8e\nLDR.W           R2, [R0,#0x434]                                        ; +0x22, 0x470e92\nCMP             R2, #2                                                 ; +0x26, 0x470e96\nBNE             loc_470EA2                                             ; +0x28, 0x470e98\nMOV             R1, R6; int                                            ; +0x2a, 0x470e9a\nBL              _ZN18AnimatedGameObject13playAnimationEi; AnimatedGameObject::playAnimation(int) ; +0x2c, 0x470e9c\nB               loc_470EAA                                             ; +0x30, 0x470ea0\nLDR             R3, [R0]                                               ; +0x32, 0x470ea2\nLDR.W           R3, [R3,#0x2F0]                                        ; +0x34, 0x470ea4\nBLX             R3                                                     ; +0x38, 0x470ea8\nADDS            R4, #1                                                 ; +0x3a, 0x470eaa\nB               loc_470E80                                             ; +0x3c, 0x470eac\nPOP             {R4-R6,PC}                                             ; +0x3e, 0x470eae", "xrefs": ["EffectGameObject::triggerObject @ 0x3ee166"], "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"}