{"type": "func", "start": 10224684, "end": 10224892, "name": "CreateParticlePopup::onDynamicColor", "pseudocode": "// \n// CreateParticlePopup::onDynamicColor from 0x9c042c to 0x9c04fc (208 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x63f30\n// > CreateParticlePopup::init @ 0x9c81b4\n// > <???> @ 0x122b390\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::onDynamicColor(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  _BOOL4 v3; // w0\n  cocos2d::CCParticleSystemQuad *m_particle; // x0\n  ParticleGameObject *m_targetObject; // x0\n  cocos2d::CCArray *m_targetObjects; // x0\n  unsigned int i; // w20\n  __int64 v8; // x21\n  __int64 v9; // x0\n  _BOOL4 m_useObjectColor; // w1\n\n  v3 = !a1->m_useObjectColor;\n  a1->m_useObjectColor = v3;\n  if ( v3 && (m_particle = a1->m_particle, m_particle->m_bUseUniformColorMode) )\n  {\n    m_particle->m_bUseUniformColorMode = 0;\n    m_targetObject = a1->m_targetObject;\n    if ( m_targetObject )\n      goto LABEL_4;\n  }\n  else\n  {\n    m_targetObject = a1->m_targetObject;\n    if ( m_targetObject )\n    {\nLABEL_4:\n      m_targetObject->m_particleUseObjectColor = a1->m_useObjectColor;\n      goto LABEL_5;\n    }\n  }\n  m_targetObjects = a1->m_targetObjects;\n  if ( m_targetObjects )\n  {\n    for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(m_targetObjects); ++i )\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i);\n      v9 = cocos2d::CCArray::objectAtIndex(a1->m_particles, i);\n      m_useObjectColor = a1->m_useObjectColor;\n      *(_BYTE *)(v8 + 793) = m_useObjectColor;\n      if ( m_useObjectColor && *(_BYTE *)(v9 + 724) )\n        *(_BYTE *)(v9 + 724) = 0;\n      m_targetObjects = a1->m_targetObjects;\n    }\n  }\nLABEL_5:\n  CCMenuItemToggler::toggle(a1->m_uniformColorToggler, a1->m_particle->m_bUseUniformColorMode);\n  CCMenuItemToggler::toggle(a1->m_objColorToggler, a1->m_useObjectColor);\n}", "assembly": "; \n; CreateParticlePopup::onDynamicColor from 0x9c042c to 0x9c04fc (208 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x63f30\n; > CreateParticlePopup::init @ 0x9c81b4\n; > <???> @ 0x122b390\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, 0x9c042c\nMOV             X29, SP                                                ; +0x4, 0x9c0430\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x9c0434\nMOV             X19, X0                                                ; +0xc, 0x9c0438\nLDRB            W0, [X0,#0x3A8]                                        ; +0x10, 0x9c043c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0x9c0440\nEOR             W0, W0, #1                                             ; +0x18, 0x9c0444\nSTRB            W0, [X19,#0x3A8]                                       ; +0x1c, 0x9c0448\nCBZ             W0, loc_9C045C                                         ; +0x20, 0x9c044c\nLDR             X0, [X19,#0x2B0]                                       ; +0x24, 0x9c0450\nLDRB            W1, [X0,#0x2D4]                                        ; +0x28, 0x9c0454\nCBNZ            W1, loc_9C0494                                         ; +0x2c, 0x9c0458\nLDR             X0, [X19,#0x290]                                       ; +0x30, 0x9c045c\nCBZ             X0, loc_9C04A0                                         ; +0x34, 0x9c0460\nLDRB            W1, [X19,#0x3A8]                                       ; +0x38, 0x9c0464\nSTRB            W1, [X0,#0x319]                                        ; +0x3c, 0x9c0468\nLDR             X1, [X19,#0x2B0]                                       ; +0x40, 0x9c046c\nLDR             X0, [X19,#0x348]; this                                 ; +0x44, 0x9c0470\nLDRB            W1, [X1,#0x2D4]; bool                                  ; +0x48, 0x9c0474\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x4c, 0x9c0478\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x50, 0x9c047c\nLDR             X0, [X19,#0x340]; this                                 ; +0x54, 0x9c0480\nLDRB            W1, [X19,#0x3A8]; bool                                 ; +0x58, 0x9c0484\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x5c, 0x9c0488\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x60, 0x9c048c\nB               _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x64, 0x9c0490\nSTRB            WZR, [X0,#0x2D4]                                       ; +0x68, 0x9c0494\nLDR             X0, [X19,#0x290]                                       ; +0x6c, 0x9c0498\nCBNZ            X0, loc_9C0464                                         ; +0x70, 0x9c049c\nLDR             X0, [X19,#0x298]                                       ; +0x74, 0x9c04a0\nCBZ             X0, loc_9C046C                                         ; +0x78, 0x9c04a4\nMOV             W20, #0                                                ; +0x7c, 0x9c04a8\nB               loc_9C04E8                                             ; +0x80, 0x9c04ac\nLDR             X0, [X19,#0x298]; this                                 ; +0x84, 0x9c04b0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x88, 0x9c04b4\nMOV             X21, X0                                                ; +0x8c, 0x9c04b8\nLDR             X0, [X19,#0x2A0]; this                                 ; +0x90, 0x9c04bc\nMOV             W1, W20; unsigned int                                  ; +0x94, 0x9c04c0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x98, 0x9c04c4\nLDRB            W1, [X19,#0x3A8]                                       ; +0x9c, 0x9c04c8\nSTRB            W1, [X21,#0x319]                                       ; +0xa0, 0x9c04cc\nCBZ             W1, loc_9C04E0                                         ; +0xa4, 0x9c04d0\nLDRB            W1, [X0,#0x2D4]                                        ; +0xa8, 0x9c04d4\nCBZ             W1, loc_9C04E0                                         ; +0xac, 0x9c04d8\nSTRB            WZR, [X0,#0x2D4]                                       ; +0xb0, 0x9c04dc\nLDR             X0, [X19,#0x298]; this                                 ; +0xb4, 0x9c04e0\nADD             W20, W20, #1                                           ; +0xb8, 0x9c04e4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xbc, 0x9c04e8\nCMP             W20, W0                                                ; +0xc0, 0x9c04ec\nMOV             W1, W20; unsigned int                                  ; +0xc4, 0x9c04f0\nB.CC            loc_9C04B0                                             ; +0xc8, 0x9c04f4\nB               loc_9C046C                                             ; +0xcc, 0x9c04f8", "xrefs": ["<???> @ 0x63f30", "CreateParticlePopup::init @ 0x9c81b4", "<???> @ 0x122b390"], "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"}