{"type": "func", "start": 4038554, "end": 4038634, "name": "ColorSelectPopup::updateOpacity", "pseudocode": "// \n// ColorSelectPopup::updateOpacity from 0x3d9f9a to 0x3d9fea (80 bytes)\n// \n// 2 xrefs:\n// > ColorSelectPopup::sliderChanged @ 0x3da174\n// > ColorSelectPopup::onDefault @ 0x3da2f0\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 ColorSelectPopup::updateOpacity(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // r4\n  int v3; // r0\n  ColorAction *m_colorAction; // r3\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_opacity = a1->m_opacity;\n  }\n  else if ( a1->m_gameObjects )\n  {\n    while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) )\n    {\n      v3 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject);\n      m_gameObject = (EffectGameObject *)((char *)m_gameObject + 1);\n      *(float *)(v3 + 1268) = a1->m_opacity;\n    }\n  }\n  else\n  {\n    m_colorAction = a1->m_colorAction;\n    if ( m_colorAction )\n      m_colorAction->m_fromOpacity = a1->m_opacity;\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateOpacity from 0x3d9f9a to 0x3d9fea (80 bytes)\n; \n; 2 xrefs:\n; > ColorSelectPopup::sliderChanged @ 0x3da174\n; > ColorSelectPopup::onDefault @ 0x3da2f0\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x3d9f9a\nMOV             R5, R0                                                 ; +0x2, 0x3d9f9c\nLDR.W           R4, [R0,#0x1FC]                                        ; +0x4, 0x3d9f9e\nCBZ             R4, loc_3D9FB0                                         ; +0x8, 0x3d9fa2\nLDR.W           R3, [R0,#0x2EC]                                        ; +0xa, 0x3d9fa4\nADDW            R4, R4, #0x4F4                                         ; +0xe, 0x3d9fa8\nSTR             R3, [R4]                                               ; +0x12, 0x3d9fac\nPOP             {R3-R5,PC}                                             ; +0x14, 0x3d9fae\nLDR.W           R3, [R0,#0x200]                                        ; +0x16, 0x3d9fb0\nCBZ             R3, loc_3D9FDC                                         ; +0x1a, 0x3d9fb4\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x1c, 0x3d9fb6\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x20, 0x3d9fba\nCMP             R4, R0                                                 ; +0x24, 0x3d9fbe\nBCS             locret_3D9FDA                                          ; +0x26, 0x3d9fc0\nMOV             R1, R4; unsigned int                                   ; +0x28, 0x3d9fc2\nLDR.W           R0, [R5,#0x200]; this                                  ; +0x2a, 0x3d9fc4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2e, 0x3d9fc8\nLDR.W           R3, [R5,#0x2EC]                                        ; +0x32, 0x3d9fcc\nADDS            R4, #1                                                 ; +0x36, 0x3d9fd0\nADDW            R0, R0, #0x4F4                                         ; +0x38, 0x3d9fd2\nSTR             R3, [R0]                                               ; +0x3c, 0x3d9fd6\nB               loc_3D9FB6                                             ; +0x3e, 0x3d9fd8\nPOP             {R3-R5,PC}                                             ; +0x40, 0x3d9fda\nLDR.W           R3, [R0,#0x2F0]                                        ; +0x42, 0x3d9fdc\nCBZ             R3, locret_3D9FE8                                      ; +0x46, 0x3d9fe0\nLDR.W           R2, [R0,#0x2EC]                                        ; +0x48, 0x3d9fe2\nSTR             R2, [R3,#0x5C]                                         ; +0x4c, 0x3d9fe6\nPOP             {R3-R5,PC}                                             ; +0x4e, 0x3d9fe8", "xrefs": ["ColorSelectPopup::sliderChanged @ 0x3da174", "ColorSelectPopup::onDefault @ 0x3da2f0"], "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"}