{"type": "func", "start": 5107202, "end": 5107284, "name": "ColorSelectPopup::onCopyOpacity", "pseudocode": "// \n// ColorSelectPopup::onCopyOpacity from 0x4dee02 to 0x4dee54 (82 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:50:59 +0000\n// \n\nunsigned int __fastcall ColorSelectPopup::onCopyOpacity(unsigned int this, cocos2d::CCObject *a2)\n{\n  unsigned int v2; // r4\n  unsigned int v3; // r5\n  char v4; // r3\n  int v5; // r0\n  int v6; // r2\n\n  v2 = this;\n  v3 = *(_DWORD *)(this + 528);\n  v4 = *(_BYTE *)(this + 812) ^ 1;\n  *(_BYTE *)(this + 812) = v4;\n  if ( v3 )\n  {\n    *(_BYTE *)(v3 + 1452) = v4;\n  }\n  else if ( *(_DWORD *)(this + 532) )\n  {\n    while ( 1 )\n    {\n      this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 532));\n      if ( v3 >= this )\n        break;\n      v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 532), v3++);\n      *(_BYTE *)(v5 + 1452) = *(_BYTE *)(v2 + 812);\n    }\n  }\n  else\n  {\n    v6 = *(_DWORD *)(this + 784);\n    if ( v6 )\n      *(_BYTE *)(v6 + 121) = v4;\n  }\n  return this;\n}", "assembly": "; \n; ColorSelectPopup::onCopyOpacity from 0x4dee02 to 0x4dee54 (82 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:50:59 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x4dee02\nMOV             R4, R0                                                 ; +0x2, 0x4dee04\nLDR.W           R5, [R0,#0x210]                                        ; +0x4, 0x4dee06\nLDRB.W          R3, [R0,#0x32C]                                        ; +0x8, 0x4dee0a\nEOR.W           R3, R3, #1                                             ; +0xc, 0x4dee0e\nSTRB.W          R3, [R0,#0x32C]                                        ; +0x10, 0x4dee12\nCBZ             R5, loc_4DEE1E                                         ; +0x14, 0x4dee16\nSTRB.W          R3, [R5,#0x5AC]                                        ; +0x16, 0x4dee18\nPOP             {R3-R5,PC}                                             ; +0x1a, 0x4dee1c\nLDR.W           R2, [R0,#0x214]                                        ; +0x1c, 0x4dee1e\nCBZ             R2, loc_4DEE48                                         ; +0x20, 0x4dee22\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x22, 0x4dee24\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x26, 0x4dee28\nCMP             R5, R0                                                 ; +0x2a, 0x4dee2c\nBCS             locret_4DEE46                                          ; +0x2c, 0x4dee2e\nMOV             R1, R5; unsigned int                                   ; +0x2e, 0x4dee30\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x30, 0x4dee32\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x34, 0x4dee36\nLDRB.W          R3, [R4,#0x32C]                                        ; +0x38, 0x4dee3a\nADDS            R5, #1                                                 ; +0x3c, 0x4dee3e\nSTRB.W          R3, [R0,#0x5AC]                                        ; +0x3e, 0x4dee40\nB               loc_4DEE24                                             ; +0x42, 0x4dee44\nPOP             {R3-R5,PC}                                             ; +0x44, 0x4dee46\nLDR.W           R2, [R0,#0x310]                                        ; +0x46, 0x4dee48\nCBZ             R2, locret_4DEE52                                      ; +0x4a, 0x4dee4c\nSTRB.W          R3, [R2,#0x79]                                         ; +0x4c, 0x4dee4e\nPOP             {R3-R5,PC}                                             ; +0x50, 0x4dee52", "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"}