{"type": "func", "start": 4296598208, "end": 4296598348, "name": "GJColorSetupLayer::onColor", "pseudocode": "// \n// GJColorSetupLayer::onColor from 0x10018e2c0 to 0x10018e34c (140 bytes)\n// \n// 1 xrefs:\n// > GJColorSetupLayer::init @ 0x10018deac\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 __fastcall GJColorSetupLayer::onColor(GJColorSetupLayer *a1, cocos2d::CCObject *a2)\n{\n  int m_page; // w20\n  int m_colorsPerPage; // w21\n  cocos2d::CCObject *v5; // x1\n  ColorAction *ColorAction; // x0\n  ColorSelectPopup *v7; // x0\n\n  m_page = a1->m_page;\n  m_colorsPerPage = a1->m_colorsPerPage;\n  v5 = (cocos2d::CCObject *)(((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2)\n                           + m_colorsPerPage * m_page);\n  if ( a1->m_closeOnSelect )\n  {\n    a1->m_colorID = (int)v5;\n    GJColorSetupLayer::onClose(a1, v5);\n  }\n  else\n  {\n    ColorAction = GJEffectManager::getColorAction(a1->m_settingsObject->m_effectManager, (int)v5);\n    v7 = ColorSelectPopup::create_3(ColorAction);\n    v7->m_delegate = &a1->ColorSelectDelegate;\n    v7->m_ZOrder = 106;\n    ((void (__fastcall *)(ColorSelectPopup *))v7->show)(v7);\n  }\n}", "assembly": "; \n; GJColorSetupLayer::onColor from 0x10018e2c0 to 0x10018e34c (140 bytes)\n; \n; 1 xrefs:\n; > GJColorSetupLayer::init @ 0x10018deac\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10018e2c0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10018e2c4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10018e2c8\nADD             X29, SP, #0x20                                         ; +0xc, 0x10018e2cc\nMOV             X19, X0                                                ; +0x10, 0x10018e2d0\nLDR             W20, [X0,#0x2B0]                                       ; +0x14, 0x10018e2d4\nLDR             W21, [X0,#0x2B4]                                       ; +0x18, 0x10018e2d8\nLDR             X8, [X1]                                               ; +0x1c, 0x10018e2dc\nLDR             X8, [X8,#0x40]                                         ; +0x20, 0x10018e2e0\nMOV             X0, X1                                                 ; +0x24, 0x10018e2e4\nBLR             X8                                                     ; +0x28, 0x10018e2e8\nMADD            W1, W21, W20, W0                                       ; +0x2c, 0x10018e2ec\nLDRB            W8, [X19,#0x2D0]                                       ; +0x30, 0x10018e2f0\nCMP             W8, #1                                                 ; +0x34, 0x10018e2f4\nB.NE            loc_10018E314                                          ; +0x38, 0x10018e2f8\nSTR             W1, [X19,#0x2E0]                                       ; +0x3c, 0x10018e2fc\nMOV             X0, X19                                                ; +0x40, 0x10018e300\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x44, 0x10018e304\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x48, 0x10018e308\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x4c, 0x10018e30c\nB               GJColorSetupLayer__onClose                             ; +0x50, 0x10018e310\nLDR             X8, [X19,#0x288]                                       ; +0x54, 0x10018e314\nLDR             X0, [X8,#0x140]                                        ; +0x58, 0x10018e318\nBL              GJEffectManager__getColorAction                        ; +0x5c, 0x10018e31c\nBL              ColorSelectPopup__create_3                             ; +0x60, 0x10018e320\nADD             X8, X19, #0x278                                        ; +0x64, 0x10018e324\nSTR             X8, [X0,#0x418]                                        ; +0x68, 0x10018e328\nMOV             W8, #0x6A ; 'j'                                        ; +0x6c, 0x10018e32c\nSTR             W8, [X0,#0x248]                                        ; +0x70, 0x10018e330\nLDR             X8, [X0]                                               ; +0x74, 0x10018e334\nLDR             X1, [X8,#0x508]                                        ; +0x78, 0x10018e338\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x7c, 0x10018e33c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x80, 0x10018e340\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x84, 0x10018e344\nBR              X1                                                     ; +0x88, 0x10018e348", "xrefs": ["GJColorSetupLayer::init @ 0x10018deac"], "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"}