{"type": "func", "start": 5443372, "end": 5443508, "name": "CreateParticlePopup::onUniformColor", "pseudocode": "// \n// CreateParticlePopup::onUniformColor from 0x530f2c to 0x530fb4 (136 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::onUniformColor(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  ParticleGameObject *m_targetObject; // r5\n  ParticleGameObject *v4; // r6\n  int v5; // r0\n\n  CreateParticlePopup::updateParticleValueForType(\n    a1,\n    (float)!a1->m_particle->m_bUseUniformColorMode,\n    UniformColor,\n    nullptr);\n  if ( a1->m_particle->m_bUseUniformColorMode )\n  {\n    m_targetObject = a1->m_targetObject;\n    if ( m_targetObject )\n    {\n      m_targetObject->m_particleUseObjectColor = 0;\n    }\n    else if ( a1->m_targetObjects )\n    {\n      v4 = a1->m_targetObject;\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 + 669) = (_BYTE)v4;\n      }\n    }\n    a1->m_useObjectColor = 0;\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::onUniformColor from 0x530f2c to 0x530fb4 (136 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\nLDR.W           R3, [R0,#0x20C]                                        ; +0x0, 0x530f2c\nMOVS            R2, #0x38 ; '8'                                        ; +0x4, 0x530f30\nPUSH            {R4-R6,LR}                                             ; +0x6, 0x530f32\nMOV             R4, R0                                                 ; +0x8, 0x530f34\nLDRB.W          R1, [R3,#0x284]                                        ; +0xa, 0x530f36\nMOVS            R3, #0                                                 ; +0xe, 0x530f3a\nEOR.W           R1, R1, #1                                             ; +0x10, 0x530f3c\nVMOV            S15, R1                                                ; +0x14, 0x530f40\nVCVT.F32.U32    S15, S15                                               ; +0x18, 0x530f44\nVMOV            R1, S15                                                ; +0x1c, 0x530f48\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x20, 0x530f4c\nLDR.W           R3, [R4,#0x20C]                                        ; +0x24, 0x530f50\nLDRB.W          R3, [R3,#0x284]                                        ; +0x28, 0x530f54\nCBZ             R3, loc_530F94                                         ; +0x2c, 0x530f58\nLDR.W           R5, [R4,#0x1FC]                                        ; +0x2e, 0x530f5a\nCBZ             R5, loc_530F68                                         ; +0x32, 0x530f5e\nMOVS            R3, #0                                                 ; +0x34, 0x530f60\nSTRB.W          R3, [R5,#0x29D]                                        ; +0x36, 0x530f62\nB               loc_530F8E                                             ; +0x3a, 0x530f66\nLDR.W           R3, [R4,#0x200]                                        ; +0x3c, 0x530f68\nCBZ             R3, loc_530F8E                                         ; +0x40, 0x530f6c\nMOV             R6, R5                                                 ; +0x42, 0x530f6e\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x44, 0x530f70\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x48, 0x530f74\nCMP             R5, R0                                                 ; +0x4c, 0x530f78\nBCS             loc_530F8E                                             ; +0x4e, 0x530f7a\nMOV             R1, R5; unsigned int                                   ; +0x50, 0x530f7c\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x52, 0x530f7e\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x56, 0x530f82\nADDS            R5, #1                                                 ; +0x5a, 0x530f86\nSTRB.W          R6, [R0,#0x29D]                                        ; +0x5c, 0x530f88\nB               loc_530F70                                             ; +0x60, 0x530f8c\nMOVS            R3, #0                                                 ; +0x62, 0x530f8e\nSTRB.W          R3, [R4,#0x298]                                        ; +0x64, 0x530f90\nLDR.W           R3, [R4,#0x20C]                                        ; +0x68, 0x530f94\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x6c, 0x530f98\nLDRB.W          R1, [R3,#0x284]; bool                                  ; +0x70, 0x530f9c\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x74, 0x530fa0\nLDR.W           R0, [R4,#0x25C]; this                                  ; +0x78, 0x530fa4\nLDRB.W          R1, [R4,#0x298]; bool                                  ; +0x7c, 0x530fa8\nPOP.W           {R4-R6,LR}                                             ; +0x80, 0x530fac\nB.W             _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x84, 0x530fb0", "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"}