{"type": "func", "start": 8654644, "end": 8654736, "name": "CustomizeObjectLayer::onEditColor", "pseudocode": "// \n// CustomizeObjectLayer::onEditColor from 0x840f34 to 0x840f90 (92 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x667f8\n// > CustomizeObjectLayer::init @ 0x842ef8\n// > <???> @ 0x122b4f8\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::onEditColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // x0\n  ColorSelectPopup *ColorAction; // x0\n  ColorAction *v5; // x1\n  __int64 v6; // x2\n  ColorAction *v7; // x3\n  __int64 *v8; // x0\n  __int64 v9; // x2\n  int ActiveMode; // [xsp+28h] [xbp+28h]\n\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\n  v3 = GameManager::sharedState();\n  ColorAction = (ColorSelectPopup *)GJEffectManager::getColorAction(\n                                      v3->m_levelEditorLayer->m_levelSettings->m_effectManager,\n                                      ActiveMode);\n  v8 = (__int64 *)ColorSelectPopup::create(ColorAction, v5, v6, v7);\n  v9 = *v8;\n  v8[134] = (__int64)&a1->ColorSelectDelegate;\n  (*(void (**)(void))(v9 + 1288))();\n}", "assembly": "; \n; CustomizeObjectLayer::onEditColor from 0x840f34 to 0x840f90 (92 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x667f8\n; > CustomizeObjectLayer::init @ 0x842ef8\n; > <???> @ 0x122b4f8\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x840f34\nMOV             W1, #1; bool                                           ; +0x4, 0x840f38\nMOV             X29, SP                                                ; +0x8, 0x840f3c\nSTR             X19, [SP,#0x30+var_20]                                 ; +0xc, 0x840f40\nMOV             X19, X0                                                ; +0x10, 0x840f44\nBL              _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x14, 0x840f48\nMOV             W1, W0                                                 ; +0x18, 0x840f4c\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x1c, 0x840f50\nADD             X19, X19, #0x288                                       ; +0x20, 0x840f54\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x840f58\nLDR             X0, [X0,#0x1E0]                                        ; +0x28, 0x840f5c\nLDR             X1, [X29,#0x30+var_8]; int                             ; +0x2c, 0x840f60\nLDR             X0, [X0,#0xE08]                                        ; +0x30, 0x840f64\nLDR             X0, [X0,#0x140]; this                                  ; +0x34, 0x840f68\nBL              _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x38, 0x840f6c\nBL              _ZN16ColorSelectPopup6createEP11ColorAction; ColorSelectPopup::create(ColorAction *) ; +0x3c, 0x840f70\nLDR             X2, [X0]                                               ; +0x40, 0x840f74\nSTR             X19, [X0,#0x430]                                       ; +0x44, 0x840f78\nLDR             X1, [X2,#0x508]                                        ; +0x48, 0x840f7c\nBLR             X1                                                     ; +0x4c, 0x840f80\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x50, 0x840f84\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x54, 0x840f88\nRET                                                                    ; +0x58, 0x840f8c", "xrefs": ["<???> @ 0x667f8", "CustomizeObjectLayer::init @ 0x842ef8", "<???> @ 0x122b4f8"], "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"}