{"type": "func", "start": 5432392, "end": 5432480, "name": "EnhancedGameObject::updateAnimateOnTrigger", "pseudocode": "// \n// EnhancedGameObject::updateAnimateOnTrigger from 0x52e448 to 0x52e4a0 (88 bytes)\n// \n// 0 xrefs:\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 EnhancedGameObject::updateAnimateOnTrigger(EnhancedGameObject *a1, bool a2)\n{\n  EnhancedGameObject_vtbl *v3; // r3\n  EnhancedGameObject_vtbl *v4; // r3\n  void (__fastcall *updateSyncedAnimation)(EnhancedGameObject *__hidden, float, int); // r5\n  GameManager *v6; // r0\n  int v7; // r0\n\n  if ( a1->m_hasCustomAnimation && a1->m_animateOnTrigger )\n  {\n    if ( a2 )\n    {\n      v3 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      a1->m_isDisabled2 = 0;\n      v3->setOpacity(a1, 255u);\n      a1->m_maybeAnimationVariableXInt = -1;\n      v4 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      a1->m_animateOnTrigger = 0;\n      updateSyncedAnimation = v4->updateSyncedAnimation;\n      v6 = GameManager::sharedState();\n      v7 = GameManager::defaultFrameForAnimation(v6, a1->m_objectID);\n      ((void (__fastcall *)(EnhancedGameObject *, _DWORD, int))updateSyncedAnimation)(a1, 0, v7);\n      a1->m_animateOnTrigger = 1;\n    }\n    else\n    {\n      EnhancedGameObject::waitForAnimationTrigger(a1);\n    }\n  }\n}", "assembly": "; \n; EnhancedGameObject::updateAnimateOnTrigger from 0x52e448 to 0x52e4a0 (88 bytes)\n; \n; 0 xrefs:\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            {R3-R5,LR}                                             ; +0x0, 0x52e448\nMOV             R4, R0                                                 ; +0x2, 0x52e44a\nLDRB.W          R3, [R0,#0x4AE]                                        ; +0x4, 0x52e44c\nCBZ             R3, locret_52E49E                                      ; +0x8, 0x52e450\nLDRB.W          R3, [R0,#0x4CD]                                        ; +0xa, 0x52e452\nCBZ             R3, locret_52E49E                                      ; +0xe, 0x52e456\nCBNZ            R1, loc_52E462                                         ; +0x10, 0x52e458\nPOP.W           {R3-R5,LR}                                             ; +0x12, 0x52e45a\nB.W             _ZN18EnhancedGameObject23waitForAnimationTriggerEv; EnhancedGameObject::waitForAnimationTrigger(void) ; +0x16, 0x52e45e\nLDR             R3, [R0]                                               ; +0x1a, 0x52e462\nMOVS            R5, #0                                                 ; +0x1c, 0x52e464\nMOVS            R1, #0xFF                                              ; +0x1e, 0x52e466\nSTRB.W          R5, [R0,#0x292]                                        ; +0x20, 0x52e468\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x24, 0x52e46c\nBLX             R3                                                     ; +0x28, 0x52e470\nMOV.W           R3, #0xFFFFFFFF                                        ; +0x2a, 0x52e472\nSTR.W           R3, [R4,#0x4DC]                                        ; +0x2e, 0x52e476\nLDR             R3, [R4]                                               ; +0x32, 0x52e47a\nSTRB.W          R5, [R4,#0x4CD]                                        ; +0x34, 0x52e47c\nLDR.W           R5, [R3,#0x394]                                        ; +0x38, 0x52e480\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x3c, 0x52e484\nLDR.W           R1, [R4,#0x374]; int                                   ; +0x40, 0x52e488\nBL              _ZN11GameManager24defaultFrameForAnimationEi; GameManager::defaultFrameForAnimation(int) ; +0x44, 0x52e48c\nMOVS            R1, #0                                                 ; +0x48, 0x52e490\nMOV             R2, R0                                                 ; +0x4a, 0x52e492\nMOV             R0, R4                                                 ; +0x4c, 0x52e494\nBLX             R5                                                     ; +0x4e, 0x52e496\nMOVS            R3, #1                                                 ; +0x50, 0x52e498\nSTRB.W          R3, [R4,#0x4CD]                                        ; +0x52, 0x52e49a\nPOP             {R3-R5,PC}                                             ; +0x56, 0x52e49e", "xrefs": [], "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"}