{"type": "func", "start": 6700068, "end": 6700224, "name": "CreateParticlePopup::onDynamicColor", "pseudocode": "// \n// CreateParticlePopup::onDynamicColor from 0x663c24 to 0x663cc0 (156 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:39 +0000\n// \n\nint __fastcall CreateParticlePopup::onDynamicColor(CreateParticlePopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // r3\n  int v4; // r3\n  unsigned int v5; // r5\n  int v6; // r6\n  int v7; // r7\n  int v8; // r0\n\n  v3 = *((unsigned __int8 *)this + 704) ^ 1;\n  *((_BYTE *)this + 704) = v3;\n  if ( v3 )\n  {\n    v4 = *((_DWORD *)this + 136);\n    if ( *(_BYTE *)(v4 + 656) )\n      *(_BYTE *)(v4 + 656) = 0;\n  }\n  v5 = *((_DWORD *)this + 132);\n  if ( v5 )\n  {\n    *(_BYTE *)(v5 + 677) = *((_BYTE *)this + 704);\n  }\n  else if ( *((_DWORD *)this + 133) )\n  {\n    v6 = *((_DWORD *)this + 132);\n    while ( v5 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 133)) )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 133), v5);\n      v8 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 134), v5);\n      *(_BYTE *)(v7 + 677) = *((_BYTE *)this + 704);\n      if ( *((_BYTE *)this + 704) && *(_BYTE *)(v8 + 656) )\n        *(_BYTE *)(v8 + 656) = v6;\n      ++v5;\n    }\n  }\n  CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 157), *(unsigned __int8 *)(*((_DWORD *)this + 136) + 656));\n  return CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 156), *((unsigned __int8 *)this + 704));\n}", "assembly": "; \n; CreateParticlePopup::onDynamicColor from 0x663c24 to 0x663cc0 (156 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:39 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x663c24\nMOV             R4, R0                                                 ; +0x2, 0x663c26\nLDRB.W          R3, [R0,#0x2C0]                                        ; +0x4, 0x663c28\nEOR.W           R3, R3, #1                                             ; +0x8, 0x663c2c\nSTRB.W          R3, [R0,#0x2C0]                                        ; +0xc, 0x663c30\nCBZ             R3, loc_663C40                                         ; +0x10, 0x663c34\nLDR.W           R3, [R0,#0x220]                                        ; +0x12, 0x663c36\nLDRB.W          R2, [R3,#0x290]                                        ; +0x16, 0x663c3a\nCBNZ            R2, loc_663CB2                                         ; +0x1a, 0x663c3e\nLDR.W           R5, [R4,#0x210]                                        ; +0x1c, 0x663c40\nCBZ             R5, loc_663C50                                         ; +0x20, 0x663c44\nLDRB.W          R3, [R4,#0x2C0]                                        ; +0x22, 0x663c46\nSTRB.W          R3, [R5,#0x2A5]                                        ; +0x26, 0x663c4a\nB               loc_663C92                                             ; +0x2a, 0x663c4e\nLDR.W           R3, [R4,#0x214]                                        ; +0x2c, 0x663c50\nCBZ             R3, loc_663C92                                         ; +0x30, 0x663c54\nMOV             R6, R5                                                 ; +0x32, 0x663c56\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x34, 0x663c58\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x38, 0x663c5c\nCMP             R5, R0                                                 ; +0x3c, 0x663c60\nBCS             loc_663C92                                             ; +0x3e, 0x663c62\nMOV             R1, R5; unsigned int                                   ; +0x40, 0x663c64\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x42, 0x663c66\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x46, 0x663c6a\nMOV             R1, R5; unsigned int                                   ; +0x4a, 0x663c6e\nMOV             R7, R0                                                 ; +0x4c, 0x663c70\nLDR.W           R0, [R4,#0x218]; this                                  ; +0x4e, 0x663c72\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x52, 0x663c76\nLDRB.W          R3, [R4,#0x2C0]                                        ; +0x56, 0x663c7a\nSTRB.W          R3, [R7,#0x2A5]                                        ; +0x5a, 0x663c7e\nLDRB.W          R3, [R4,#0x2C0]                                        ; +0x5e, 0x663c82\nCBZ             R3, loc_663C8E                                         ; +0x62, 0x663c86\nLDRB.W          R3, [R0,#0x290]                                        ; +0x64, 0x663c88\nCBNZ            R3, loc_663CBA                                         ; +0x68, 0x663c8c\nADDS            R5, #1                                                 ; +0x6a, 0x663c8e\nB               loc_663C58                                             ; +0x6c, 0x663c90\nLDR.W           R3, [R4,#0x220]                                        ; +0x6e, 0x663c92\nLDR.W           R0, [R4,#0x274]; this                                  ; +0x72, 0x663c96\nLDRB.W          R1, [R3,#0x290]; bool                                  ; +0x76, 0x663c9a\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x7a, 0x663c9e\nLDR.W           R0, [R4,#0x270]; this                                  ; +0x7e, 0x663ca2\nLDRB.W          R1, [R4,#0x2C0]; bool                                  ; +0x82, 0x663ca6\nPOP.W           {R3-R7,LR}                                             ; +0x86, 0x663caa\nB.W             _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x8a, 0x663cae\nMOVS            R2, #0                                                 ; +0x8e, 0x663cb2\nSTRB.W          R2, [R3,#0x290]                                        ; +0x90, 0x663cb4\nB               loc_663C40                                             ; +0x94, 0x663cb8\nSTRB.W          R6, [R0,#0x290]                                        ; +0x96, 0x663cba\nB               loc_663C8E                                             ; +0x9a, 0x663cbe", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}