{"type": "func", "start": 9050424, "end": 9050560, "name": "GJColorSetupLayer::onColor", "pseudocode": "// \n// GJColorSetupLayer::onColor from 0x8a1938 to 0x8a19c0 (136 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x7e348\n// > GJColorSetupLayer::init @ 0x8a1fb8\n// > <???> @ 0x122c410\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; // w20\n  int v4; // w1\n  ColorSelectPopup *ColorAction; // x0\n  ColorAction *v6; // x1\n  __int64 v7; // x2\n  ColorAction *v8; // x3\n  __int64 v9; // x0\n  __int64 v10; // x2\n\n  v3 = a1->m_page * a1->m_colorsPerPage;\n  v4 = v3 + ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\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 = *(_QWORD *)v9;\n    *(_QWORD *)(v9 + 1072) = &a1->ColorSelectDelegate;\n    *(_DWORD *)(v9 + 584) = 106;\n    (*(void (**)(void))(v10 + 1288))();\n  }\n}", "assembly": "; \n; GJColorSetupLayer::onColor from 0x8a1938 to 0x8a19c0 (136 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x7e348\n; > GJColorSetupLayer::init @ 0x8a1fb8\n; > <???> @ 0x122c410\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,#-0x20+var_s0]!                          ; +0x0, 0x8a1938\nMOV             X29, SP                                                ; +0x4, 0x8a193c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x8a1940\nLDR             X2, [X1]                                               ; +0xc, 0x8a1944\nMOV             X19, X0                                                ; +0x10, 0x8a1948\nMOV             X0, X1                                                 ; +0x14, 0x8a194c\nLDR             W20, [X19,#0x2B4]                                      ; +0x18, 0x8a1950\nLDR             W1, [X19,#0x2B0]                                       ; +0x1c, 0x8a1954\nLDR             X2, [X2,#0x40]                                         ; +0x20, 0x8a1958\nMUL             W20, W1, W20                                           ; +0x24, 0x8a195c\nBLR             X2                                                     ; +0x28, 0x8a1960\nLDRB            W2, [X19,#0x2D0]                                       ; +0x2c, 0x8a1964\nADD             W1, W20, W0; int                                       ; +0x30, 0x8a1968\nCBNZ            W2, loc_8A19A8                                         ; +0x34, 0x8a196c\nLDR             X0, [X19,#0x288]                                       ; +0x38, 0x8a1970\nADD             X19, X19, #0x278                                       ; +0x3c, 0x8a1974\nLDR             X0, [X0,#0x140]; this                                  ; +0x40, 0x8a1978\nBL              _ZN15GJEffectManager14getColorActionEi; GJEffectManager::getColorAction(int) ; +0x44, 0x8a197c\nBL              _ZN16ColorSelectPopup6createEP11ColorAction; ColorSelectPopup::create(ColorAction *) ; +0x48, 0x8a1980\nLDR             X2, [X0]                                               ; +0x4c, 0x8a1984\nSTR             X19, [X0,#0x430]                                       ; +0x50, 0x8a1988\nMOV             W3, #0x6A ; 'j'                                        ; +0x54, 0x8a198c\nSTR             W3, [X0,#0x248]                                        ; +0x58, 0x8a1990\nLDR             X1, [X2,#0x508]                                        ; +0x5c, 0x8a1994\nBLR             X1                                                     ; +0x60, 0x8a1998\nLDP             X19, X20, [SP,#var_s10]                                ; +0x64, 0x8a199c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x68, 0x8a19a0\nRET                                                                    ; +0x6c, 0x8a19a4\nSTR             W1, [X19,#0x2E0]                                       ; +0x70, 0x8a19a8\nMOV             X0, X19; this                                          ; +0x74, 0x8a19ac\nLDP             X19, X20, [SP,#var_s10]                                ; +0x78, 0x8a19b0\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x7c, 0x8a19b4\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x80, 0x8a19b8\nB               _ZN17GJColorSetupLayer7onCloseEPN7cocos2d8CCObjectE; GJColorSetupLayer::onClose(cocos2d::CCObject *) ; +0x84, 0x8a19bc", "xrefs": ["<???> @ 0x7e348", "GJColorSetupLayer::init @ 0x8a1fb8", "<???> @ 0x122c410"], "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"}