{"type": "func", "start": 5760708, "end": 5760766, "name": "CustomizeObjectLayer::onEditColor", "pseudocode": "// \n// CustomizeObjectLayer::onEditColor from 0x57e6c4 to 0x57e6fe (58 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::onEditColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)\n{\n  GameManager *ActiveMode; // r5\n  int v4; // r0\n  ColorSelectPopup *ColorAction; // r0\n  ColorAction *v6; // r1\n  int v7; // r2\n  ColorAction *v8; // r3\n  int *v9; // r0\n  int v10; // r3\n\n  ActiveMode = (GameManager *)CustomizeObjectLayer::getActiveMode(this, 1);\n  v4 = GameManager::sharedState(ActiveMode);\n  ColorAction = (ColorSelectPopup *)GJEffectManager::getColorAction(\n                                      *(GJEffectManager **)(*(_DWORD *)(*(_DWORD *)(v4 + 408) + 2084) + 264),\n                                      (int)ActiveMode);\n  v9 = ColorSelectPopup::create(ColorAction, v6, v7, v8);\n  v10 = *v9;\n  v9[191] = (int)this + 524;\n  return (*(int (**)(void))(v10 + 656))();\n}", "assembly": "; \n; CustomizeObjectLayer::onEditColor from 0x57e6c4 to 0x57e6fe (58 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            {R4-R6,LR}                                             ; +0x0, 0x57e6c4\nMOVS            R1, #1; bool                                           ; +0x2, 0x57e6c6\nMOV             R4, R0                                                 ; +0x4, 0x57e6c8\nBL              _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x6, 0x57e6ca\nADD.W           R4, R4, #0x20C                                         ; +0xa, 0x57e6ce\nMOV             R5, R0                                                 ; +0xe, 0x57e6d2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x57e6d4\nMOV             R1, R5; int                                            ; +0x14, 0x57e6d8\nLDR.W           R3, [R0,#0x198]                                        ; +0x16, 0x57e6da\nLDR.W           R3, [R3,#0x824]                                        ; +0x1a, 0x57e6de\nLDR.W           R0, [R3,#0x108]; this                                  ; +0x1e, 0x57e6e2\nBL              _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x22, 0x57e6e6\nBL              _ZN16ColorSelectPopup6createEP11ColorAction; ColorSelectPopup::create(ColorAction *) ; +0x26, 0x57e6ea\nLDR             R3, [R0]                                               ; +0x2a, 0x57e6ee\nSTR.W           R4, [R0,#0x2FC]                                        ; +0x2c, 0x57e6f0\nPOP.W           {R4-R6,LR}                                             ; +0x30, 0x57e6f4\nLDR.W           R3, [R3,#0x290]                                        ; +0x34, 0x57e6f8\nBX              R3                                                     ; +0x38, 0x57e6fc", "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"}