{"type": "func", "start": 9975472, "end": 9975564, "name": "CustomizeObjectLayer::onEditColor", "pseudocode": "// \n// CustomizeObjectLayer::onEditColor from 0x9836b0 to 0x98370c (92 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x8b2b8\n// > CustomizeObjectLayer::init @ 0x9860e0\n// > <???> @ 0x1543a98\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::onEditColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  GameManager *ActiveMode; // x0\n  __int64 v4; // x0\n  ColorSelectPopup *ColorAction; // x0\n  ColorAction *v6; // x1\n  __int64 v7; // x2\n  ColorAction *v8; // x3\n  __int64 *v9; // x0\n  __int64 v10; // x2\n  int v12; // [xsp+28h] [xbp+28h]\n\n  ActiveMode = (GameManager *)CustomizeObjectLayer::getActiveMode(this, 1u);\n  v12 = (int)ActiveMode;\n  v4 = GameManager::sharedState(ActiveMode);\n  ColorAction = (ColorSelectPopup *)GJEffectManager::getColorAction(\n                                      *(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v4 + 552) + 3272LL) + 320LL),\n                                      v12);\n  v9 = (__int64 *)ColorSelectPopup::create(ColorAction, v6, v7, v8);\n  v10 = *v9;\n  v9[140] = (__int64)this + 672;\n  return (*(__int64 (**)(void))(v10 + 1312))();\n}", "assembly": "; \n; CustomizeObjectLayer::onEditColor from 0x9836b0 to 0x98370c (92 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x8b2b8\n; > CustomizeObjectLayer::init @ 0x9860e0\n; > <???> @ 0x1543a98\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,#var_30]!                                ; +0x0, 0x9836b0\nMOV             W1, #1; bool                                           ; +0x4, 0x9836b4\nMOV             X29, SP                                                ; +0x8, 0x9836b8\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0x9836bc\nMOV             X19, X0                                                ; +0x10, 0x9836c0\nBL              _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x14, 0x9836c4\nMOV             W1, W0                                                 ; +0x18, 0x9836c8\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x1c, 0x9836cc\nADD             X19, X19, #0x2A0                                       ; +0x20, 0x9836d0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x9836d4\nLDR             X0, [X0,#0x228]                                        ; +0x28, 0x9836d8\nLDR             X1, [X29,#0x30+var_8]; int                             ; +0x2c, 0x9836dc\nLDR             X0, [X0,#0xCC8]                                        ; +0x30, 0x9836e0\nLDR             X0, [X0,#0x140]; this                                  ; +0x34, 0x9836e4\nBL              _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x38, 0x9836e8\nBL              _ZN16ColorSelectPopup6createEP11ColorAction; ColorSelectPopup::create(ColorAction *) ; +0x3c, 0x9836ec\nLDR             X2, [X0]                                               ; +0x40, 0x9836f0\nSTR             X19, [X0,#0x460]                                       ; +0x44, 0x9836f4\nLDR             X1, [X2,#0x520]                                        ; +0x48, 0x9836f8\nBLR             X1                                                     ; +0x4c, 0x9836fc\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x50, 0x983700\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x54, 0x983704\nRET                                                                    ; +0x58, 0x983708", "xrefs": ["<???> @ 0x8b2b8", "CustomizeObjectLayer::init @ 0x9860e0", "<???> @ 0x1543a98"], "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"}