{"type": "func", "start": 4295293532, "end": 4295293660, "name": "CustomizeObjectLayer::onSelectColor", "pseudocode": "// \n// CustomizeObjectLayer::onSelectColor from 0x10004fa5c to 0x10004fadc (128 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::init @ 0x10004de00\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 CustomizeObjectLayer::onSelectColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  int m_customColorChannel; // w1\n  ButtonSprite *v5; // x0\n  int ActiveMode; // w1\n\n  m_customColorChannel = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  if ( m_customColorChannel == 1008 )\n    m_customColorChannel = a1->m_customColorChannel;\n  CustomizeObjectLayer::updateSelected(a1, m_customColorChannel);\n  v5 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);\n  CustomizeObjectLayer::highlightSelected(a1, v5);\n  CustomizeObjectLayer::updateColorSprite(a1);\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\n  CustomizeObjectLayer::updateChannelLabel(a1, ActiveMode);\n}", "assembly": "; \n; CustomizeObjectLayer::onSelectColor from 0x10004fa5c to 0x10004fadc (128 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::init @ 0x10004de00\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, 0x10004fa5c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10004fa60\nADD             X29, SP, #0x10                                         ; +0x8, 0x10004fa64\nMOV             X20, X1                                                ; +0xc, 0x10004fa68\nMOV             X19, X0                                                ; +0x10, 0x10004fa6c\nLDR             X8, [X1]                                               ; +0x14, 0x10004fa70\nLDR             X8, [X8,#0x40]                                         ; +0x18, 0x10004fa74\nMOV             X0, X1                                                 ; +0x1c, 0x10004fa78\nBLR             X8                                                     ; +0x20, 0x10004fa7c\nMOV             X1, X0                                                 ; +0x24, 0x10004fa80\nCMP             W0, #0x3F0                                             ; +0x28, 0x10004fa84\nB.NE            loc_10004FA90                                          ; +0x2c, 0x10004fa88\nLDR             W1, [X19,#0x2D4]                                       ; +0x30, 0x10004fa8c\nMOV             X0, X19                                                ; +0x34, 0x10004fa90\nBL              CustomizeObjectLayer__updateSelected                   ; +0x38, 0x10004fa94\nLDR             X8, [X20]                                              ; +0x3c, 0x10004fa98\nLDR             X8, [X8,#0x420]                                        ; +0x40, 0x10004fa9c\nMOV             X0, X20                                                ; +0x44, 0x10004faa0\nBLR             X8                                                     ; +0x48, 0x10004faa4\nMOV             X1, X0                                                 ; +0x4c, 0x10004faa8\nMOV             X0, X19                                                ; +0x50, 0x10004faac\nBL              CustomizeObjectLayer__highlightSelected                ; +0x54, 0x10004fab0\nMOV             X0, X19                                                ; +0x58, 0x10004fab4\nBL              CustomizeObjectLayer__updateColorSprite                ; +0x5c, 0x10004fab8\nMOV             X0, X19                                                ; +0x60, 0x10004fabc\nMOV             W1, #1                                                 ; +0x64, 0x10004fac0\nBL              CustomizeObjectLayer__getActiveMode                    ; +0x68, 0x10004fac4\nMOV             X1, X0                                                 ; +0x6c, 0x10004fac8\nMOV             X0, X19                                                ; +0x70, 0x10004facc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x10004fad0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x10004fad4\nB               CustomizeObjectLayer__updateChannelLabel               ; +0x7c, 0x10004fad8", "xrefs": ["CustomizeObjectLayer::init @ 0x10004de00"], "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"}