{"type": "func", "start": 4299291212, "end": 4299291328, "name": "ColorSelectPopup::colorValueChanged", "pseudocode": "// \n// ColorSelectPopup::colorValueChanged from 0x10041fa4c to 0x10041fac0 (116 bytes)\n// \n// 2 xrefs:\n// > sub_10041FD38 @ 0x10041fd3c\n// > <???> @ 0x100824270\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 __fastcall ColorSelectPopup::colorValueChanged(ColorSelectPopup *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCSprite *m_currentColorSprite; // x0\n  cocos2d::extension::CCControlColourPicker *m_colorPicker; // x8\n  __int16 v5; // w9\n\n  m_currentColorSprite = a1->m_currentColorSprite;\n  if ( m_currentColorSprite )\n  {\n    m_colorPicker = a1->m_colorPicker;\n    v5 = *(_WORD *)&m_colorPicker->m_rgb.r;\n    a1->m_currentColor.b = m_colorPicker->m_rgb.b;\n    *(_WORD *)&a1->m_currentColor.r = v5;\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))m_currentColorSprite->setColor)(\n      m_currentColorSprite,\n      &a1->m_currentColor);\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_originalColorSprite->setColor)(\n      a1->m_originalColorSprite,\n      &a1->m_originalColor);\n    ColorSelectPopup::updateColorValue(a1);\n    ColorSelectPopup::updateColorLabels(a1);\n  }\n}", "assembly": "; \n; ColorSelectPopup::colorValueChanged from 0x10041fa4c to 0x10041fac0 (116 bytes)\n; \n; 2 xrefs:\n; > sub_10041FD38 @ 0x10041fd3c\n; > <???> @ 0x100824270\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10041fa4c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10041fa50\nADD             X29, SP, #0x10                                         ; +0x8, 0x10041fa54\nMOV             X19, X0                                                ; +0xc, 0x10041fa58\nLDR             X0, [X0,#0x400]                                        ; +0x10, 0x10041fa5c\nCBZ             X0, loc_10041FAB4                                      ; +0x14, 0x10041fa60\nLDR             X8, [X19,#0x3C0]                                       ; +0x18, 0x10041fa64\nLDRH            W9, [X8,#0x1D8]                                        ; +0x1c, 0x10041fa68\nLDRB            W8, [X8,#0x1DA]                                        ; +0x20, 0x10041fa6c\nSTRB            W8, [X19,#0x412]                                       ; +0x24, 0x10041fa70\nSTRH            W9, [X19,#0x410]                                       ; +0x28, 0x10041fa74\nLDR             X8, [X0]                                               ; +0x2c, 0x10041fa78\nLDR             X8, [X8,#0x3B0]                                        ; +0x30, 0x10041fa7c\nADD             X1, X19, #0x410                                        ; +0x34, 0x10041fa80\nBLR             X8                                                     ; +0x38, 0x10041fa84\nLDR             X0, [X19,#0x408]                                       ; +0x3c, 0x10041fa88\nLDR             X8, [X0]                                               ; +0x40, 0x10041fa8c\nLDR             X8, [X8,#0x3B0]                                        ; +0x44, 0x10041fa90\nADD             X1, X19, #0x3F8                                        ; +0x48, 0x10041fa94\nBLR             X8                                                     ; +0x4c, 0x10041fa98\nMOV             X0, X19                                                ; +0x50, 0x10041fa9c\nBL              ColorSelectPopup__updateColorValue                     ; +0x54, 0x10041faa0\nMOV             X0, X19                                                ; +0x58, 0x10041faa4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x10041faa8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x10041faac\nB               ColorSelectPopup__updateColorLabels                    ; +0x64, 0x10041fab0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x10041fab4\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x10041fab8\nRET                                                                    ; +0x70, 0x10041fabc", "xrefs": ["sub_10041FD38 @ 0x10041fd3c", "<???> @ 0x100824270"], "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"}