{"type": "func", "start": 4049672, "end": 4049762, "name": "ColorSelectPopup::colorValueChanged", "pseudocode": "// \n// ColorSelectPopup::colorValueChanged from 0x3dcb08 to 0x3dcb62 (90 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'ColorSelectPopup::colorValueChanged @ 0x3dcb66\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::colorValueChanged(ColorSelectPopup *a1, cocos2d::ccColor3B a2)\n{\n  int v3; // r0\n  GLubyte v4; // r3\n  cocos2d::CCSprite *m_currentColorSprite; // r0\n\n  if ( a1->m_currentColorSprite )\n  {\n    *(cocos2d::ccColor3B *)&v3 = ColorSelectPopup::getColorValue(a1);\n    a1->m_currentColor.r = v3;\n    v4 = BYTE1(v3);\n    a1->m_currentColor.b = BYTE2(v3);\n    m_currentColorSprite = a1->m_currentColorSprite;\n    a1->m_currentColor.g = v4;\n    m_currentColorSprite->setColor(m_currentColorSprite, &a1->m_currentColor);\n    a1->m_originalColorSprite->setColor(a1->m_originalColorSprite, &a1->m_originalColor);\n    ColorSelectPopup::updateColorValue(a1);\n    ColorSelectPopup::updateColorLabels(a1);\n  }\n}", "assembly": "; \n; ColorSelectPopup::colorValueChanged from 0x3dcb08 to 0x3dcb62 (90 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'ColorSelectPopup::colorValueChanged @ 0x3dcb66\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            {R0,R1,R4,LR}                                          ; +0x0, 0x3dcb08\nMOV             R4, R0                                                 ; +0x2, 0x3dcb0a\nSTR             R1, [SP,#8+var_4]                                      ; +0x4, 0x3dcb0c\nLDR.W           R3, [R0,#0x2D0]                                        ; +0x6, 0x3dcb0e\nCBZ             R3, loc_3DCB5E                                         ; +0xa, 0x3dcb12\nBL              _ZN16ColorSelectPopup13getColorValueEv; ColorSelectPopup::getColorValue(void) ; +0xc, 0x3dcb14\nADD.W           R1, R4, #0x2D8                                         ; +0x10, 0x3dcb18\nSTRB.W          R0, [R4,#0x2D8]                                        ; +0x14, 0x3dcb1c\nUBFX.W          R3, R0, #8, #8                                         ; +0x18, 0x3dcb20\nUBFX.W          R0, R0, #0x10, #8                                      ; +0x1c, 0x3dcb24\nSTRB.W          R0, [R4,#0x2DA]                                        ; +0x20, 0x3dcb28\nLDR.W           R0, [R4,#0x2D0]                                        ; +0x24, 0x3dcb2c\nSTRB.W          R3, [R4,#0x2D9]                                        ; +0x28, 0x3dcb30\nLDR             R3, [R0]                                               ; +0x2c, 0x3dcb34\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x2e, 0x3dcb36\nBLX             R3                                                     ; +0x32, 0x3dcb3a\nLDR.W           R0, [R4,#0x2D4]                                        ; +0x34, 0x3dcb3c\nADD.W           R1, R4, #0x2CC                                         ; +0x38, 0x3dcb40\nLDR             R3, [R0]                                               ; +0x3c, 0x3dcb44\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x3e, 0x3dcb46\nBLX             R3                                                     ; +0x42, 0x3dcb4a\nMOV             R0, R4; this                                           ; +0x44, 0x3dcb4c\nBL              _ZN16ColorSelectPopup16updateColorValueEv; ColorSelectPopup::updateColorValue(void) ; +0x46, 0x3dcb4e\nMOV             R0, R4; this                                           ; +0x4a, 0x3dcb52\nADD             SP, SP, #8                                             ; +0x4c, 0x3dcb54\nPOP.W           {R4,LR}                                                ; +0x4e, 0x3dcb56\nB.W             _ZN16ColorSelectPopup17updateColorLabelsEv; ColorSelectPopup::updateColorLabels(void) ; +0x52, 0x3dcb5a\nADD             SP, SP, #8                                             ; +0x56, 0x3dcb5e\nPOP             {R4,PC}                                                ; +0x58, 0x3dcb60", "xrefs": ["`non-virtual thunk to'ColorSelectPopup::colorValueChanged @ 0x3dcb66"], "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"}