{"type": "func", "start": 9977012, "end": 9977140, "name": "CustomizeObjectLayer::onSelectColor", "pseudocode": "// \n// CustomizeObjectLayer::onSelectColor from 0x983cb4 to 0x983d34 (128 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x592d8\n// > CustomizeObjectLayer::init @ 0x9857fc\n// > CustomizeObjectLayer::init @ 0x9858a0\n// > CustomizeObjectLayer::init @ 0x985944\n// > CustomizeObjectLayer::init @ 0x9859e4\n// > CustomizeObjectLayer::init @ 0x985b90\n// > <???> @ 0x15420e0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:57:52 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::onSelectColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  int v4; // w1\n  ButtonSprite *v5; // x0\n  unsigned int ActiveMode; // w0\n\n  v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  if ( v4 == 1008 )\n    v4 = *((_DWORD *)this + 187);\n  CustomizeObjectLayer::updateSelected(this, v4);\n  v5 = (ButtonSprite *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 1072LL))(a2);\n  CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, v5);\n  CustomizeObjectLayer::updateColorSprite(this);\n  ActiveMode = CustomizeObjectLayer::getActiveMode(this, 1u);\n  return CustomizeObjectLayer::updateChannelLabel(this, (GJSpecialColorSelect *)ActiveMode);\n}", "assembly": "; \n; CustomizeObjectLayer::onSelectColor from 0x983cb4 to 0x983d34 (128 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x592d8\n; > CustomizeObjectLayer::init @ 0x9857fc\n; > CustomizeObjectLayer::init @ 0x9858a0\n; > CustomizeObjectLayer::init @ 0x985944\n; > CustomizeObjectLayer::init @ 0x9859e4\n; > CustomizeObjectLayer::init @ 0x985b90\n; > <???> @ 0x15420e0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:57:52 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x983cb4\nMOV             X29, SP                                                ; +0x4, 0x983cb8\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x983cbc\nMOV             X20, X1                                                ; +0xc, 0x983cc0\nMOV             X19, X0                                                ; +0x10, 0x983cc4\nMOV             X0, X1                                                 ; +0x14, 0x983cc8\nLDR             X1, [X1]                                               ; +0x18, 0x983ccc\nLDR             X1, [X1,#0x40]                                         ; +0x1c, 0x983cd0\nBLR             X1                                                     ; +0x20, 0x983cd4\nCMP             W0, #0x3F0                                             ; +0x24, 0x983cd8\nMOV             W1, W0                                                 ; +0x28, 0x983cdc\nB.NE            loc_983CE8                                             ; +0x2c, 0x983ce0\nLDR             W1, [X19,#0x2EC]; int                                  ; +0x30, 0x983ce4\nMOV             X0, X19; this                                          ; +0x34, 0x983ce8\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x38, 0x983cec\nLDR             X1, [X20]                                              ; +0x3c, 0x983cf0\nMOV             X0, X20                                                ; +0x40, 0x983cf4\nLDR             X1, [X1,#0x430]                                        ; +0x44, 0x983cf8\nBLR             X1                                                     ; +0x48, 0x983cfc\nMOV             X1, X0; ButtonSprite *                                 ; +0x4c, 0x983d00\nMOV             X0, X19; this                                          ; +0x50, 0x983d04\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x54, 0x983d08\nMOV             X0, X19; this                                          ; +0x58, 0x983d0c\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x5c, 0x983d10\nMOV             X0, X19; this                                          ; +0x60, 0x983d14\nMOV             W1, #1; bool                                           ; +0x64, 0x983d18\nBL              _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x68, 0x983d1c\nMOV             W1, W0; GJSpecialColorSelect *                         ; +0x6c, 0x983d20\nMOV             X0, X19; this                                          ; +0x70, 0x983d24\nLDP             X19, X20, [SP,#var_s10]                                ; +0x74, 0x983d28\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x78, 0x983d2c\nB               _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x7c, 0x983d30", "xrefs": ["<???> @ 0x592d8", "CustomizeObjectLayer::init @ 0x9857fc", "CustomizeObjectLayer::init @ 0x9858a0", "CustomizeObjectLayer::init @ 0x985944", "CustomizeObjectLayer::init @ 0x9859e4", "CustomizeObjectLayer::init @ 0x985b90", "<???> @ 0x15420e0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}