{"type": "func", "start": 4595648, "end": 4595724, "name": "CustomizeObjectLayer::onSelectColor", "pseudocode": "// \n// CustomizeObjectLayer::onSelectColor from 0x461fc0 to 0x46200c (76 bytes)\n// \n// 0 xrefs:\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 CustomizeObjectLayer::onSelectColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  int v4; // r0\n  int m_customColorChannel; // r1\n  ButtonSprite *v6; // r0\n  int ActiveMode; // r1\n\n  v4 = a2->getTag(a2);\n  if ( v4 == 1008 )\n    m_customColorChannel = a1->m_customColorChannel;\n  else\n    m_customColorChannel = v4;\n  CustomizeObjectLayer::updateSelected(a1, m_customColorChannel);\n  v6 = (ButtonSprite *)((int (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);\n  CustomizeObjectLayer::highlightSelected(a1, v6);\n  CustomizeObjectLayer::updateColorSprite(a1);\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\n  CustomizeObjectLayer::updateChannelLabel(a1, ActiveMode);\n}", "assembly": "; \n; CustomizeObjectLayer::onSelectColor from 0x461fc0 to 0x46200c (76 bytes)\n; \n; 0 xrefs:\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, 0x461fc0\nMOV             R4, R0                                                 ; +0x2, 0x461fc2\nLDR             R3, [R1]                                               ; +0x4, 0x461fc4\nMOV             R0, R1                                                 ; +0x6, 0x461fc6\nMOV             R5, R1                                                 ; +0x8, 0x461fc8\nLDR             R3, [R3,#0x20]                                         ; +0xa, 0x461fca\nBLX             R3                                                     ; +0xc, 0x461fcc\nCMP.W           R0, #0x3F0                                             ; +0xe, 0x461fce\nITE EQ                                                                 ; +0x12, 0x461fd2\nLDREQ.W         R1, [R4,#0x220]                                        ; +0x14, 0x461fd4\nMOVNE           R1, R0; int                                            ; +0x18, 0x461fd8\nMOV             R0, R4; this                                           ; +0x1a, 0x461fda\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x1c, 0x461fdc\nLDR             R3, [R5]                                               ; +0x20, 0x461fe0\nMOV             R0, R5                                                 ; +0x22, 0x461fe2\nLDR.W           R3, [R3,#0x210]                                        ; +0x24, 0x461fe4\nBLX             R3                                                     ; +0x28, 0x461fe8\nMOV             R1, R0; ButtonSprite *                                 ; +0x2a, 0x461fea\nMOV             R0, R4; this                                           ; +0x2c, 0x461fec\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x2e, 0x461fee\nMOV             R0, R4; this                                           ; +0x32, 0x461ff2\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x34, 0x461ff4\nMOV             R0, R4; this                                           ; +0x38, 0x461ff8\nMOVS            R1, #1; bool                                           ; +0x3a, 0x461ffa\nBL              _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x3c, 0x461ffc\nMOV             R1, R0; GJSpecialColorSelect *                         ; +0x40, 0x462000\nMOV             R0, R4; this                                           ; +0x42, 0x462002\nPOP.W           {R3-R5,LR}                                             ; +0x44, 0x462004\nB.W             _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x48, 0x462008", "xrefs": [], "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"}