{"type": "func", "start": 5436196, "end": 5436348, "name": "CreateParticlePopup::onDynamicColor", "pseudocode": "// \n// CreateParticlePopup::onDynamicColor from 0x52f324 to 0x52f3bc (152 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::onDynamicColor(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  _BOOL4 v3; // r3\n  cocos2d::CCParticleSystemQuad *m_particle; // r3\n  ParticleGameObject *m_targetObject; // r5\n  ParticleGameObject *v6; // r6\n  int v7; // r7\n  int v8; // r0\n  _BOOL4 m_useObjectColor; // r3\n\n  v3 = !a1->m_useObjectColor;\n  a1->m_useObjectColor = v3;\n  if ( v3 )\n  {\n    m_particle = a1->m_particle;\n    if ( m_particle->m_bUseUniformColorMode )\n      m_particle->m_bUseUniformColorMode = 0;\n  }\n  m_targetObject = a1->m_targetObject;\n  if ( m_targetObject )\n  {\n    m_targetObject->m_particleUseObjectColor = a1->m_useObjectColor;\n  }\n  else if ( a1->m_targetObjects )\n  {\n    v6 = a1->m_targetObject;\n    while ( (unsigned int)m_targetObject < cocos2d::CCArray::count(a1->m_targetObjects) )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, (unsigned int)m_targetObject);\n      v8 = cocos2d::CCArray::objectAtIndex(a1->m_particles, (unsigned int)m_targetObject);\n      m_useObjectColor = a1->m_useObjectColor;\n      *(_BYTE *)(v7 + 669) = m_useObjectColor;\n      if ( m_useObjectColor && *(_BYTE *)(v8 + 644) )\n        *(_BYTE *)(v8 + 644) = (_BYTE)v6;\n      m_targetObject = (ParticleGameObject *)((char *)m_targetObject + 1);\n    }\n  }\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 0x52f324 to 0x52f3bc (152 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-R7,LR}                                             ; +0x0, 0x52f324\nMOV             R4, R0                                                 ; +0x2, 0x52f326\nLDRB.W          R3, [R0,#0x298]                                        ; +0x4, 0x52f328\nEOR.W           R3, R3, #1                                             ; +0x8, 0x52f32c\nSTRB.W          R3, [R0,#0x298]                                        ; +0xc, 0x52f330\nCBZ             R3, loc_52F340                                         ; +0x10, 0x52f334\nLDR.W           R3, [R0,#0x20C]                                        ; +0x12, 0x52f336\nLDRB.W          R2, [R3,#0x284]                                        ; +0x16, 0x52f33a\nCBNZ            R2, loc_52F3AE                                         ; +0x1a, 0x52f33e\nLDR.W           R5, [R4,#0x1FC]                                        ; +0x1c, 0x52f340\nCBZ             R5, loc_52F350                                         ; +0x20, 0x52f344\nLDRB.W          R3, [R4,#0x298]                                        ; +0x22, 0x52f346\nSTRB.W          R3, [R5,#0x29D]                                        ; +0x26, 0x52f34a\nB               loc_52F38E                                             ; +0x2a, 0x52f34e\nLDR.W           R3, [R4,#0x200]                                        ; +0x2c, 0x52f350\nCBZ             R3, loc_52F38E                                         ; +0x30, 0x52f354\nMOV             R6, R5                                                 ; +0x32, 0x52f356\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x34, 0x52f358\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x38, 0x52f35c\nCMP             R5, R0                                                 ; +0x3c, 0x52f360\nBCS             loc_52F38E                                             ; +0x3e, 0x52f362\nMOV             R1, R5; unsigned int                                   ; +0x40, 0x52f364\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x42, 0x52f366\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x46, 0x52f36a\nMOV             R1, R5; unsigned int                                   ; +0x4a, 0x52f36e\nMOV             R7, R0                                                 ; +0x4c, 0x52f370\nLDR.W           R0, [R4,#0x204]; this                                  ; +0x4e, 0x52f372\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x52, 0x52f376\nLDRB.W          R3, [R4,#0x298]                                        ; +0x56, 0x52f37a\nSTRB.W          R3, [R7,#0x29D]                                        ; +0x5a, 0x52f37e\nCBZ             R3, loc_52F38A                                         ; +0x5e, 0x52f382\nLDRB.W          R3, [R0,#0x284]                                        ; +0x60, 0x52f384\nCBNZ            R3, loc_52F3B6                                         ; +0x64, 0x52f388\nADDS            R5, #1                                                 ; +0x66, 0x52f38a\nB               loc_52F358                                             ; +0x68, 0x52f38c\nLDR.W           R3, [R4,#0x20C]                                        ; +0x6a, 0x52f38e\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x6e, 0x52f392\nLDRB.W          R1, [R3,#0x284]; bool                                  ; +0x72, 0x52f396\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x76, 0x52f39a\nLDR.W           R0, [R4,#0x25C]; this                                  ; +0x7a, 0x52f39e\nLDRB.W          R1, [R4,#0x298]; bool                                  ; +0x7e, 0x52f3a2\nPOP.W           {R3-R7,LR}                                             ; +0x82, 0x52f3a6\nB.W             _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x86, 0x52f3aa\nMOVS            R2, #0                                                 ; +0x8a, 0x52f3ae\nSTRB.W          R2, [R3,#0x284]                                        ; +0x8c, 0x52f3b0\nB               loc_52F340                                             ; +0x90, 0x52f3b4\nSTRB.W          R6, [R0,#0x284]                                        ; +0x92, 0x52f3b6\nB               loc_52F38A                                             ; +0x96, 0x52f3ba", "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"}