{"type": "func", "start": 4816798, "end": 4816886, "name": "GJColorSetupLayer::onColor", "pseudocode": "// \n// GJColorSetupLayer::onColor from 0x497f9e to 0x497ff6 (88 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 GJColorSetupLayer::onColor(GJColorSetupLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // r5\n  int v4; // r1\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  v3 = a1->m_page * a1->m_colorsPerPage;\n  v4 = a2->getTag(a2) + v3;\n  if ( a1->m_closeOnSelect )\n  {\n    a1->m_colorID = v4;\n    GJColorSetupLayer::onClose(a1, nullptr);\n  }\n  else\n  {\n    ColorAction = (ColorSelectPopup *)GJEffectManager::getColorAction(a1->m_settingsObject->m_effectManager, v4);\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    v9->m_ZOrder = 106;\n    ((void (*)(void))v10->show)();\n  }\n}", "assembly": "; \n; GJColorSetupLayer::onColor from 0x497f9e to 0x497ff6 (88 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\nLDR.W           R3, [R0,#0x210]                                        ; +0x0, 0x497f9e\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x497fa2\nMOV             R4, R0                                                 ; +0x6, 0x497fa4\nLDR.W           R5, [R0,#0x20C]                                        ; +0x8, 0x497fa6\nMOV             R0, R1                                                 ; +0xc, 0x497faa\nMULS            R5, R3                                                 ; +0xe, 0x497fac\nLDR             R3, [R1]                                               ; +0x10, 0x497fae\nLDR             R3, [R3,#0x20]                                         ; +0x12, 0x497fb0\nBLX             R3                                                     ; +0x14, 0x497fb2\nLDRB.W          R3, [R4,#0x220]                                        ; +0x16, 0x497fb4\nADDS            R1, R0, R5; int                                        ; +0x1a, 0x497fb8\nCBZ             R3, loc_497FCC                                         ; +0x1c, 0x497fba\nSTR.W           R1, [R4,#0x228]                                        ; +0x1e, 0x497fbc\nMOV             R0, R4; this                                           ; +0x22, 0x497fc0\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x24, 0x497fc2\nPOP.W           {R4-R6,LR}                                             ; +0x26, 0x497fc4\nB.W             _ZN17GJColorSetupLayer7onCloseEPN7cocos2d8CCObjectE; GJColorSetupLayer::onClose(cocos2d::CCObject *) ; +0x2a, 0x497fc8\nLDR.W           R3, [R4,#0x1F8]                                        ; +0x2e, 0x497fcc\nADD.W           R4, R4, #0x1F0                                         ; +0x32, 0x497fd0\nLDR.W           R0, [R3,#0x108]; this                                  ; +0x36, 0x497fd4\nBL              _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x3a, 0x497fd8\nBL              _ZN16ColorSelectPopup6createEP11ColorAction; ColorSelectPopup::create(ColorAction *) ; +0x3e, 0x497fdc\nMOVS            R2, #0x6A ; 'j'                                        ; +0x42, 0x497fe0\nLDR             R3, [R0]                                               ; +0x44, 0x497fe2\nSTR.W           R4, [R0,#0x2DC]                                        ; +0x46, 0x497fe4\nSTR.W           R2, [R0,#0x1CC]                                        ; +0x4a, 0x497fe8\nLDR.W           R3, [R3,#0x284]                                        ; +0x4e, 0x497fec\nPOP.W           {R4-R6,LR}                                             ; +0x52, 0x497ff0\nBX              R3                                                     ; +0x56, 0x497ff4", "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"}