{"type": "func", "start": 5438430, "end": 5438502, "name": "CreateParticlePopup::onAnimateActiveOnly", "pseudocode": "// \n// CreateParticlePopup::onAnimateActiveOnly from 0x52fbde to 0x52fc26 (72 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 CreateParticlePopup::onAnimateActiveOnly(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  ParticleGameObject *m_targetObject; // r4\n  bool v4; // r3\n  int v5; // r0\n\n  m_targetObject = a1->m_targetObject;\n  v4 = !a1->m_onlyAnimateActive;\n  a1->m_onlyAnimateActive = v4;\n  if ( m_targetObject )\n  {\n    m_targetObject->m_animateOnlyWhenActive = v4;\n  }\n  else if ( a1->m_targetObjects )\n  {\n    while ( (unsigned int)m_targetObject < cocos2d::CCArray::count(a1->m_targetObjects) )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, (unsigned int)m_targetObject);\n      m_targetObject = (ParticleGameObject *)((char *)m_targetObject + 1);\n      *(_BYTE *)(v5 + 1252) = a1->m_onlyAnimateActive;\n    }\n  }\n}", "assembly": "; \n; CreateParticlePopup::onAnimateActiveOnly from 0x52fbde to 0x52fc26 (72 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, 0x52fbde\nMOV             R5, R0                                                 ; +0x2, 0x52fbe0\nLDR.W           R4, [R0,#0x1FC]                                        ; +0x4, 0x52fbe2\nLDRB.W          R3, [R0,#0x29A]                                        ; +0x8, 0x52fbe6\nEOR.W           R3, R3, #1                                             ; +0xc, 0x52fbea\nSTRB.W          R3, [R0,#0x29A]                                        ; +0x10, 0x52fbee\nCBZ             R4, loc_52FBFA                                         ; +0x14, 0x52fbf2\nSTRB.W          R3, [R4,#0x4E4]                                        ; +0x16, 0x52fbf4\nPOP             {R3-R5,PC}                                             ; +0x1a, 0x52fbf8\nLDR.W           R3, [R0,#0x200]                                        ; +0x1c, 0x52fbfa\nCBNZ            R3, loc_52FC02                                         ; +0x20, 0x52fbfe\nPOP             {R3-R5,PC}                                             ; +0x22, 0x52fc00\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x24, 0x52fc02\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x52fc06\nCMP             R4, R0                                                 ; +0x2c, 0x52fc0a\nBCS             locret_52FC24                                          ; +0x2e, 0x52fc0c\nMOV             R1, R4; unsigned int                                   ; +0x30, 0x52fc0e\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x32, 0x52fc10\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x36, 0x52fc14\nLDRB.W          R3, [R5,#0x29A]                                        ; +0x3a, 0x52fc18\nADDS            R4, #1                                                 ; +0x3e, 0x52fc1c\nSTRB.W          R3, [R0,#0x4E4]                                        ; +0x40, 0x52fc1e\nB               loc_52FC02                                             ; +0x44, 0x52fc22\nPOP             {R3-R5,PC}                                             ; +0x46, 0x52fc24", "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"}