{"type": "func", "start": 9052944, "end": 9053260, "name": "GJColorSetupLayer::create", "pseudocode": "// \n// GJColorSetupLayer::create from 0x8a2310 to 0x8a244c (316 bytes)\n// \n// 3 xrefs:\n// > CustomizeObjectLayer::onBrowse @ 0x83fa64\n// > LevelSettingsLayer::onCol @ 0xa344ec\n// > <???> @ 0x7d1a8\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\nGJColorSetupLayer *GJColorSetupLayer::create(LevelSettingsObject *a1)\n{\n  GJColorSetupLayer *v2; // x19\n\n  v2 = (GJColorSetupLayer *)operator new(0x2E8u);\n  cocos2d::CCLayerColor::CCLayerColor(v2);\n  v2->m_controlConnected = -1;\n  v2->m_joystickConnected = -1;\n  v2->m_buttonMenu = nullptr;\n  v2->m_alertProtocol = nullptr;\n  v2->m_scene = nullptr;\n  v2->m_reverseKeyBack = 0;\n  v2->m_mainLayer = nullptr;\n  v2->m_ZOrder = 0;\n  v2->m_noElasticity = 0;\n  v2->m_button1 = nullptr;\n  v2->m_button2 = nullptr;\n  v2->m_scrollingLayer = nullptr;\n  v2->m_containsBorder = 0;\n  v2->m_noAction = 0;\n  v2->m_forcePrioRegistered = 0;\n  v2->m_settingsObject = nullptr;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJColorSetupLayer_vtbl *)&off_11919C0;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1191EE8;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1191F58;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_1191F70;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_1191F90;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1191FB0;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_1191FD8;\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_1192058;\n  v2->ColorSelectDelegate::__vftable = (ColorSelectDelegate_vtbl *)&off_1192078;\n  v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&off_1192090;\n  v2->m_unk290 = nullptr;\n  v2->m_unk298 = nullptr;\n  v2->m_page = 0;\n  v2->m_totalPages = 0;\n  v2->m_closeOnSelect = 0;\n  v2->m_delegate = nullptr;\n  v2->m_colorID = 0;\n  if ( GJColorSetupLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    v2->~GJColorSetupLayer_0(v2);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJColorSetupLayer::create from 0x8a2310 to 0x8a244c (316 bytes)\n; \n; 3 xrefs:\n; > CustomizeObjectLayer::onBrowse @ 0x83fa64\n; > LevelSettingsLayer::onCol @ 0xa344ec\n; > <???> @ 0x7d1a8\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, 0x8a2310\nMOV             X29, SP                                                ; +0x4, 0x8a2314\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x8a2318\nMOV             X20, X0                                                ; +0xc, 0x8a231c\nMOV             X0, #0x2E8; unsigned __int64                           ; +0x10, 0x8a2320\nBL              _Znwm; operator new(ulong)                             ; +0x14, 0x8a2324\nMOV             X19, X0                                                ; +0x18, 0x8a2328\nBL              _ZN7cocos2d12CCLayerColorC1Ev; cocos2d::CCLayerColor::CCLayerColor(void) ; +0x1c, 0x8a232c\nMOV             W2, #0xFFFFFFFF                                        ; +0x20, 0x8a2330\nSTR             W2, [X19,#0x268]                                       ; +0x24, 0x8a2334\nSTR             W2, [X19,#0x270]                                       ; +0x28, 0x8a2338\nADRP            X2, #_ZTV17GJColorSetupLayer_ptr@PAGE                  ; +0x2c, 0x8a233c\nSTR             XZR, [X19,#0x220]                                      ; +0x30, 0x8a2340\nMOV             X0, X19; this                                          ; +0x34, 0x8a2344\nSTR             XZR, [X19,#0x228]                                      ; +0x38, 0x8a2348\nMOV             X1, X20; LevelSettingsObject *                         ; +0x3c, 0x8a234c\nSTR             XZR, [X19,#0x230]                                      ; +0x40, 0x8a2350\nSTRB            WZR, [X19,#0x238]                                      ; +0x44, 0x8a2354\nSTR             XZR, [X19,#0x240]                                      ; +0x48, 0x8a2358\nSTR             WZR, [X19,#0x248]                                      ; +0x4c, 0x8a235c\nSTRB            WZR, [X19,#0x24C]                                      ; +0x50, 0x8a2360\nSTR             XZR, [X19,#0x250]                                      ; +0x54, 0x8a2364\nSTR             XZR, [X19,#0x258]                                      ; +0x58, 0x8a2368\nSTR             XZR, [X19,#0x260]                                      ; +0x5c, 0x8a236c\nSTRB            WZR, [X19,#0x26C]                                      ; +0x60, 0x8a2370\nSTRB            WZR, [X19,#0x26D]                                      ; +0x64, 0x8a2374\nSTRB            WZR, [X19,#0x274]                                      ; +0x68, 0x8a2378\nLDR             X2, [X2,#_ZTV17GJColorSetupLayer_ptr@PAGEOFF]; `vtable for'GJColorSetupLayer ... ; +0x6c, 0x8a237c\nSTR             XZR, [X19,#0x288]                                      ; +0x70, 0x8a2380\nADD             X3, X2, #0x10                                          ; +0x74, 0x8a2384\nADD             X4, X2, #0x538                                         ; +0x78, 0x8a2388\nSTR             X3, [X19]                                              ; +0x7c, 0x8a238c\nADD             X3, X2, #0x5A8                                         ; +0x80, 0x8a2390\nSTR             X4, [X19,#0x140]                                       ; +0x84, 0x8a2394\nADD             X4, X2, #0x5C0                                         ; +0x88, 0x8a2398\nSTR             X3, [X19,#0x148]                                       ; +0x8c, 0x8a239c\nADD             X3, X2, #0x5E0                                         ; +0x90, 0x8a23a0\nSTR             X4, [X19,#0x150]                                       ; +0x94, 0x8a23a4\nADD             X4, X2, #0x600                                         ; +0x98, 0x8a23a8\nSTR             X3, [X19,#0x158]                                       ; +0x9c, 0x8a23ac\nADD             X3, X2, #0x628                                         ; +0xa0, 0x8a23b0\nSTR             X4, [X19,#0x160]                                       ; +0xa4, 0x8a23b4\nADD             X4, X2, #0x6A8                                         ; +0xa8, 0x8a23b8\nSTR             X3, [X19,#0x198]                                       ; +0xac, 0x8a23bc\nADD             X3, X2, #0x6C8                                         ; +0xb0, 0x8a23c0\nADD             X2, X2, #0x6E0                                         ; +0xb4, 0x8a23c4\nSTR             X4, [X19,#0x1B0]                                       ; +0xb8, 0x8a23c8\nSTR             X3, [X19,#0x278]                                       ; +0xbc, 0x8a23cc\nSTR             X2, [X19,#0x280]                                       ; +0xc0, 0x8a23d0\nSTR             XZR, [X19,#0x290]                                      ; +0xc4, 0x8a23d4\nSTR             XZR, [X19,#0x298]                                      ; +0xc8, 0x8a23d8\nSTR             WZR, [X19,#0x2B0]                                      ; +0xcc, 0x8a23dc\nSTR             WZR, [X19,#0x2B8]                                      ; +0xd0, 0x8a23e0\nSTRB            WZR, [X19,#0x2D0]                                      ; +0xd4, 0x8a23e4\nSTR             XZR, [X19,#0x2D8]                                      ; +0xd8, 0x8a23e8\nSTR             WZR, [X19,#0x2E0]                                      ; +0xdc, 0x8a23ec\nBL              _ZN17GJColorSetupLayer4initEP19LevelSettingsObject; GJColorSetupLayer::init(LevelSettingsObject *) ; +0xe0, 0x8a23f0\nUXTB            W0, W0                                                 ; +0xe4, 0x8a23f4\nCBZ             W0, loc_8A2414                                         ; +0xe8, 0x8a23f8\nMOV             X0, X19; this                                          ; +0xec, 0x8a23fc\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xf0, 0x8a2400\nMOV             X0, X19                                                ; +0xf4, 0x8a2404\nLDP             X19, X20, [SP,#var_s10]                                ; +0xf8, 0x8a2408\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xfc, 0x8a240c\nRET                                                                    ; +0x100, 0x8a2410\nLDR             X1, [X19]                                              ; +0x104, 0x8a2414\nMOV             X0, X19                                                ; +0x108, 0x8a2418\nMOV             X19, #0                                                ; +0x10c, 0x8a241c\nLDR             X1, [X1,#0x10]                                         ; +0x110, 0x8a2420\nBLR             X1                                                     ; +0x114, 0x8a2424\nMOV             X0, X19                                                ; +0x118, 0x8a2428\nLDP             X19, X20, [SP,#var_s10]                                ; +0x11c, 0x8a242c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x120, 0x8a2430\nRET                                                                    ; +0x124, 0x8a2434\nMOV             X20, X0                                                ; +0x128, 0x8a2438\nMOV             X0, X19; p                                             ; +0x12c, 0x8a243c\nBL              _ZdlPv; operator delete(void *)                        ; +0x130, 0x8a2440\nMOV             X0, X20                                                ; +0x134, 0x8a2444\nBL              _Unwind_Resume                                         ; +0x138, 0x8a2448", "xrefs": ["CustomizeObjectLayer::onBrowse @ 0x83fa64", "LevelSettingsLayer::onCol @ 0xa344ec", "<???> @ 0x7d1a8"], "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"}