{"type": "func", "start": 4594572, "end": 4594630, "name": "CustomizeObjectLayer::onEditColor", "pseudocode": "// \n// CustomizeObjectLayer::onEditColor from 0x461b8c to 0x461bc6 (58 bytes)\n// \n// 0 xrefs:\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  int ActiveMode; // r5\n  GameManager *v4; // r0\n  ColorSelectPopup *ColorAction; // r0\n  ColorAction *v6; // r1\n  int v7; // r2\n  ColorAction *v8; // r3\n  ColorSelectPopup *v9; // r0\n  ColorSelectPopup_vtbl *v10; // r3\n\n  ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);\n  v4 = GameManager::sharedState();\n  ColorAction = (ColorSelectPopup *)GJEffectManager::getColorAction(\n                                      v4->m_levelEditorLayer->m_levelSettings->m_effectManager,\n                                      ActiveMode);\n  v9 = ColorSelectPopup::create(ColorAction, v6, v7, v8);\n  v10 = v9->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v9->m_delegate = &a1->ColorSelectDelegate;\n  ((void (*)(void))v10->show)();\n}", "assembly": "; \n; CustomizeObjectLayer::onEditColor from 0x461b8c to 0x461bc6 (58 bytes)\n; \n; 0 xrefs:\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x461b8c\nMOVS            R1, #1; bool                                           ; +0x2, 0x461b8e\nMOV             R4, R0                                                 ; +0x4, 0x461b90\nBL              _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x6, 0x461b92\nADD.W           R4, R4, #0x1F8                                         ; +0xa, 0x461b96\nMOV             R5, R0                                                 ; +0xe, 0x461b9a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x461b9c\nMOV             R1, R5; int                                            ; +0x14, 0x461ba0\nLDR.W           R3, [R0,#0x170]                                        ; +0x16, 0x461ba2\nLDR.W           R3, [R3,#0x8C0]                                        ; +0x1a, 0x461ba6\nLDR.W           R0, [R3,#0x108]; this                                  ; +0x1e, 0x461baa\nBL              _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x22, 0x461bae\nBL              _ZN16ColorSelectPopup6createEP11ColorAction; ColorSelectPopup::create(ColorAction *) ; +0x26, 0x461bb2\nLDR             R3, [R0]                                               ; +0x2a, 0x461bb6\nSTR.W           R4, [R0,#0x2DC]                                        ; +0x2c, 0x461bb8\nPOP.W           {R4-R6,LR}                                             ; +0x30, 0x461bbc\nLDR.W           R3, [R3,#0x284]                                        ; +0x34, 0x461bc0\nBX              R3                                                     ; +0x38, 0x461bc4", "xrefs": [], "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"}