{"type": "func", "start": 5761356, "end": 5761432, "name": "CustomizeObjectLayer::onSelectColor", "pseudocode": "// \n// CustomizeObjectLayer::onSelectColor from 0x57e94c to 0x57e998 (76 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::onSelectColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  int v4; // r0\n  int v5; // r1\n  ButtonSprite *v6; // r0\n  GJSpecialColorSelect *ActiveMode; // r1\n\n  v4 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  if ( v4 == 1008 )\n    v5 = *((_DWORD *)this + 141);\n  else\n    v5 = v4;\n  CustomizeObjectLayer::updateSelected(this, v5);\n  v6 = (ButtonSprite *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 536))(a2);\n  CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, v6);\n  CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);\n  ActiveMode = (GJSpecialColorSelect *)CustomizeObjectLayer::getActiveMode(this, 1);\n  return CustomizeObjectLayer::updateChannelLabel(this, ActiveMode);\n}", "assembly": "; \n; CustomizeObjectLayer::onSelectColor from 0x57e94c to 0x57e998 (76 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:52:51 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x57e94c\nMOV             R4, R0                                                 ; +0x2, 0x57e94e\nLDR             R3, [R1]                                               ; +0x4, 0x57e950\nMOV             R0, R1                                                 ; +0x6, 0x57e952\nMOV             R5, R1                                                 ; +0x8, 0x57e954\nLDR             R3, [R3,#0x20]                                         ; +0xa, 0x57e956\nBLX             R3                                                     ; +0xc, 0x57e958\nCMP.W           R0, #0x3F0                                             ; +0xe, 0x57e95a\nITE EQ                                                                 ; +0x12, 0x57e95e\nLDREQ.W         R1, [R4,#0x234]                                        ; +0x14, 0x57e960\nMOVNE           R1, R0; int                                            ; +0x18, 0x57e964\nMOV             R0, R4; this                                           ; +0x1a, 0x57e966\nBL              _ZN20CustomizeObjectLayer14updateSelectedEi; CustomizeObjectLayer::updateSelected(int) ; +0x1c, 0x57e968\nLDR             R3, [R5]                                               ; +0x20, 0x57e96c\nMOV             R0, R5                                                 ; +0x22, 0x57e96e\nLDR.W           R3, [R3,#0x218]                                        ; +0x24, 0x57e970\nBLX             R3                                                     ; +0x28, 0x57e974\nMOV             R1, R0; ButtonSprite *                                 ; +0x2a, 0x57e976\nMOV             R0, R4; this                                           ; +0x2c, 0x57e978\nBL              _ZN20CustomizeObjectLayer17highlightSelectedEP12ButtonSprite; CustomizeObjectLayer::highlightSelected(ButtonSprite *) ; +0x2e, 0x57e97a\nMOV             R0, R4; this                                           ; +0x32, 0x57e97e\nBL              _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x34, 0x57e980\nMOV             R0, R4; this                                           ; +0x38, 0x57e984\nMOVS            R1, #1; bool                                           ; +0x3a, 0x57e986\nBL              _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x3c, 0x57e988\nMOV             R1, R0; GJSpecialColorSelect *                         ; +0x40, 0x57e98c\nMOV             R0, R4; this                                           ; +0x42, 0x57e98e\nPOP.W           {R3-R5,LR}                                             ; +0x44, 0x57e990\nB.W             _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x48, 0x57e994", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}