{"type": "func", "start": 5107424, "end": 5107504, "name": "ColorSelectPopup::updateOpacity", "pseudocode": "// \n// ColorSelectPopup::updateOpacity from 0x4deee0 to 0x4def30 (80 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::onDefault @ 0x4df450\n// > ColorSelectPopup::sliderChanged @ 0x4df6d0\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\n_DWORD *__fastcall ColorSelectPopup::updateOpacity(_DWORD *this)\n{\n  _DWORD *v1; // r5\n  unsigned int v2; // r4\n  int v3; // r0\n  int v4; // r3\n\n  v1 = this;\n  v2 = *(this + 132);\n  if ( v2 )\n  {\n    *(_DWORD *)(v2 + 1276) = *(this + 195);\n  }\n  else if ( *(this + 133) )\n  {\n    while ( 1 )\n    {\n      this = (_DWORD *)cocos2d::CCArray::count((cocos2d::CCArray *)v1[133]);\n      if ( v2 >= (unsigned int)this )\n        break;\n      v3 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v1[133], v2++);\n      *(_DWORD *)(v3 + 1276) = v1[195];\n    }\n  }\n  else\n  {\n    v4 = *(this + 196);\n    if ( v4 )\n      *(_DWORD *)(v4 + 92) = *(this + 195);\n  }\n  return this;\n}", "assembly": "; \n; ColorSelectPopup::updateOpacity from 0x4deee0 to 0x4def30 (80 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::onDefault @ 0x4df450\n; > ColorSelectPopup::sliderChanged @ 0x4df6d0\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, 0x4deee0\nMOV             R5, R0                                                 ; +0x2, 0x4deee2\nLDR.W           R4, [R0,#0x210]                                        ; +0x4, 0x4deee4\nCBZ             R4, loc_4DEEF6                                         ; +0x8, 0x4deee8\nLDR.W           R3, [R0,#0x30C]                                        ; +0xa, 0x4deeea\nADDW            R4, R4, #0x4FC                                         ; +0xe, 0x4deeee\nSTR             R3, [R4]                                               ; +0x12, 0x4deef2\nPOP             {R3-R5,PC}                                             ; +0x14, 0x4deef4\nLDR.W           R3, [R0,#0x214]                                        ; +0x16, 0x4deef6\nCBZ             R3, loc_4DEF22                                         ; +0x1a, 0x4deefa\nLDR.W           R0, [R5,#0x214]; this                                  ; +0x1c, 0x4deefc\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x4def00\nCMP             R4, R0                                                 ; +0x24, 0x4def04\nBCS             locret_4DEF20                                          ; +0x26, 0x4def06\nMOV             R1, R4; unsigned int                                   ; +0x28, 0x4def08\nLDR.W           R0, [R5,#0x214]; this                                  ; +0x2a, 0x4def0a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2e, 0x4def0e\nLDR.W           R3, [R5,#0x30C]                                        ; +0x32, 0x4def12\nADDS            R4, #1                                                 ; +0x36, 0x4def16\nADDW            R0, R0, #0x4FC                                         ; +0x38, 0x4def18\nSTR             R3, [R0]                                               ; +0x3c, 0x4def1c\nB               loc_4DEEFC                                             ; +0x3e, 0x4def1e\nPOP             {R3-R5,PC}                                             ; +0x40, 0x4def20\nLDR.W           R3, [R0,#0x310]                                        ; +0x42, 0x4def22\nCBZ             R3, locret_4DEF2E                                      ; +0x46, 0x4def26\nLDR.W           R2, [R0,#0x30C]                                        ; +0x48, 0x4def28\nSTR             R2, [R3,#0x5C]                                         ; +0x4c, 0x4def2c\nPOP             {R3-R5,PC}                                             ; +0x4e, 0x4def2e", "xrefs": ["ColorSelectPopup::onDefault @ 0x4df450", "ColorSelectPopup::sliderChanged @ 0x4df6d0"], "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"}