{"type": "func", "start": 11528492, "end": 11528660, "name": "CreateParticlePopup::onUniformColor", "pseudocode": "// \n// CreateParticlePopup::onUniformColor from 0xafe92c to 0xafe9d4 (168 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xa6528\n// > CreateParticlePopup::init @ 0xb04454\n// > <???> @ 0x1544a90\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:01:19 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onUniformColor(\n        CreateParticlePopup *this,\n        cocos2d::CCObject *a2,\n        long double a3)\n{\n  __int64 v4; // x2\n  unsigned __int8 v5; // w1\n  __int64 v6; // x0\n  cocos2d::CCArray *v8; // x0\n  unsigned int v9; // w20\n  bool v10; // cf\n  unsigned int v11; // w1\n\n  *(float *)&a3 = (float)(*(unsigned __int8 *)(*((_QWORD *)this + 89) + 740LL) ^ 1u);\n  CreateParticlePopup::updateParticleValueForType((__int64)this, 0x38u, nullptr, a3);\n  v4 = *((_QWORD *)this + 89);\n  v5 = *(_BYTE *)(v4 + 740);\n  if ( v5 )\n  {\n    v6 = *((_QWORD *)this + 85);\n    if ( v6 )\n    {\n      *(_BYTE *)(v6 + 809) = 0;\n      v4 = *((_QWORD *)this + 89);\n    }\n    else\n    {\n      v8 = *((cocos2d::CCArray **)this + 86);\n      if ( v8 )\n      {\n        v9 = 0;\n        while ( 1 )\n        {\n          v10 = v9 >= (unsigned int)cocos2d::CCArray::count(v8);\n          v11 = v9++;\n          if ( v10 )\n            break;\n          *(_BYTE *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v11) + 809) = 0;\n          v8 = *((cocos2d::CCArray **)this + 86);\n        }\n        v4 = *((_QWORD *)this + 89);\n      }\n    }\n    *((_BYTE *)this + 1000) = 0;\n    v5 = *(_BYTE *)(v4 + 740);\n  }\n  CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 108), v5);\n  return CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 107), *((_BYTE *)this + 1000));\n}", "assembly": "; \n; CreateParticlePopup::onUniformColor from 0xafe92c to 0xafe9d4 (168 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xa6528\n; > CreateParticlePopup::init @ 0xb04454\n; > <???> @ 0x1544a90\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:01:19 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xafe92c\nMOV             W1, #0x38 ; '8'                                        ; +0x4, 0xafe930\nMOV             X2, #0                                                 ; +0x8, 0xafe934\nMOV             X29, SP                                                ; +0xc, 0xafe938\nSTP             X19, X20, [SP,#var_s10]                                ; +0x10, 0xafe93c\nMOV             X19, X0                                                ; +0x14, 0xafe940\nLDR             X3, [X0,#0x2C8]                                        ; +0x18, 0xafe944\nLDRB            W3, [X3,#0x2E4]                                        ; +0x1c, 0xafe948\nEOR             W3, W3, #1                                             ; +0x20, 0xafe94c\nUCVTF           S0, W3                                                 ; +0x24, 0xafe950\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x28, 0xafe954\nLDR             X2, [X19,#0x2C8]                                       ; +0x2c, 0xafe958\nLDRB            W1, [X2,#0x2E4]                                        ; +0x30, 0xafe95c\nCBZ             W1, loc_AFE97C                                         ; +0x34, 0xafe960\nLDR             X0, [X19,#0x2A8]                                       ; +0x38, 0xafe964\nCBZ             X0, loc_AFE998                                         ; +0x3c, 0xafe968\nSTRB            WZR, [X0,#0x329]                                       ; +0x40, 0xafe96c\nLDR             X2, [X19,#0x2C8]                                       ; +0x44, 0xafe970\nSTRB            WZR, [X19,#0x3E8]                                      ; +0x48, 0xafe974\nLDRB            W1, [X2,#0x2E4]; bool                                  ; +0x4c, 0xafe978\nLDR             X0, [X19,#0x360]; this                                 ; +0x50, 0xafe97c\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x54, 0xafe980\nLDR             X0, [X19,#0x358]; this                                 ; +0x58, 0xafe984\nLDRB            W1, [X19,#0x3E8]; bool                                 ; +0x5c, 0xafe988\nLDP             X19, X20, [SP,#var_s10]                                ; +0x60, 0xafe98c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x64, 0xafe990\nB               _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x68, 0xafe994\nLDR             X0, [X19,#0x2B0]                                       ; +0x6c, 0xafe998\nCBZ             X0, loc_AFE974                                         ; +0x70, 0xafe99c\nMOV             W20, #0                                                ; +0x74, 0xafe9a0\nB               loc_AFE9B8                                             ; +0x78, 0xafe9a4\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x7c, 0xafe9a8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x80, 0xafe9ac\nSTRB            WZR, [X0,#0x329]                                       ; +0x84, 0xafe9b0\nLDR             X0, [X19,#0x2B0]; this                                 ; +0x88, 0xafe9b4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x8c, 0xafe9b8\nCMP             W20, W0                                                ; +0x90, 0xafe9bc\nMOV             W1, W20; unsigned int                                  ; +0x94, 0xafe9c0\nADD             W20, W20, #1                                           ; +0x98, 0xafe9c4\nB.CC            loc_AFE9A8                                             ; +0x9c, 0xafe9c8\nLDR             X2, [X19,#0x2C8]                                       ; +0xa0, 0xafe9cc\nB               loc_AFE974                                             ; +0xa4, 0xafe9d0", "xrefs": ["<???> @ 0xa6528", "CreateParticlePopup::init @ 0xb04454", "<???> @ 0x1544a90"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}