{"type": "func", "start": 10228504, "end": 10228628, "name": "CreateParticlePopup::onAnimateOnTrigger", "pseudocode": "// \n// CreateParticlePopup::onAnimateOnTrigger from 0x9c1318 to 0x9c1394 (124 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x9b7a8\n// > CreateParticlePopup::init @ 0x9c7f10\n// > <???> @ 0x122d4c8\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::onAnimateOnTrigger(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  ParticleGameObject *m_targetObject; // x2\n  bool v3; // w1\n  cocos2d::CCArray *m_targetObjects; // x1\n  unsigned int v6; // w20\n  __int64 v7; // x0\n  bool v8; // cf\n  unsigned int v9; // w1\n\n  m_targetObject = a1->m_targetObject;\n  v3 = !a1->m_animateOnTrigger;\n  a1->m_animateOnTrigger = v3;\n  if ( m_targetObject )\n  {\n    m_targetObject->m_animateOnTrigger = v3;\n  }\n  else\n  {\n    m_targetObjects = a1->m_targetObjects;\n    if ( m_targetObjects )\n    {\n      v6 = 0;\n      while ( 1 )\n      {\n        v8 = v6 >= (unsigned int)cocos2d::CCArray::count(m_targetObjects);\n        v9 = v6++;\n        if ( v8 )\n          break;\n        v7 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, v9);\n        m_targetObjects = a1->m_targetObjects;\n        *(_BYTE *)(v7 + 1401) = a1->m_animateOnTrigger;\n      }\n    }\n  }\n}", "assembly": "; \n; CreateParticlePopup::onAnimateOnTrigger from 0x9c1318 to 0x9c1394 (124 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x9b7a8\n; > CreateParticlePopup::init @ 0x9c7f10\n; > <???> @ 0x122d4c8\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,#-0x20+var_s0]!                          ; +0x0, 0x9c1318\nMOV             X29, SP                                                ; +0x4, 0x9c131c\nLDRB            W1, [X0,#0x3A9]                                        ; +0x8, 0x9c1320\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x9c1324\nLDR             X2, [X0,#0x290]                                        ; +0x10, 0x9c1328\nEOR             W1, W1, #1                                             ; +0x14, 0x9c132c\nSTRB            W1, [X0,#0x3A9]                                        ; +0x18, 0x9c1330\nCBZ             X2, loc_9C1348                                         ; +0x1c, 0x9c1334\nSTRB            W1, [X2,#0x579]                                        ; +0x20, 0x9c1338\nLDP             X19, X20, [SP,#var_s10]                                ; +0x24, 0x9c133c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x28, 0x9c1340\nRET                                                                    ; +0x2c, 0x9c1344\nLDR             X1, [X0,#0x298]                                        ; +0x30, 0x9c1348\nCBZ             X1, loc_9C133C                                         ; +0x34, 0x9c134c\nMOV             X19, X0                                                ; +0x38, 0x9c1350\nMOV             W20, #0                                                ; +0x3c, 0x9c1354\nB               loc_9C1370                                             ; +0x40, 0x9c1358\nLDR             X0, [X19,#0x298]; this                                 ; +0x44, 0x9c135c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x9c1360\nLDRB            W2, [X19,#0x3A9]                                       ; +0x4c, 0x9c1364\nLDR             X1, [X19,#0x298]                                       ; +0x50, 0x9c1368\nSTRB            W2, [X0,#0x579]                                        ; +0x54, 0x9c136c\nMOV             X0, X1; this                                           ; +0x58, 0x9c1370\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5c, 0x9c1374\nCMP             W20, W0                                                ; +0x60, 0x9c1378\nMOV             W1, W20; unsigned int                                  ; +0x64, 0x9c137c\nADD             W20, W20, #1                                           ; +0x68, 0x9c1380\nB.CC            loc_9C135C                                             ; +0x6c, 0x9c1384\nLDP             X19, X20, [SP,#var_s10]                                ; +0x70, 0x9c1388\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x74, 0x9c138c\nRET                                                                    ; +0x78, 0x9c1390", "xrefs": ["<???> @ 0x9b7a8", "CreateParticlePopup::init @ 0x9c7f10", "<???> @ 0x122d4c8"], "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"}