{"type": "func", "start": 4297987360, "end": 4297987544, "name": "GameOptionsLayer::create", "pseudocode": "// \n// GameOptionsLayer::create from 0x1002e1520 to 0x1002e15d8 (184 bytes)\n// \n// 1 xrefs:\n// > PauseLayer::onSettings @ 0x1001434f8\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\nGameOptionsLayer *__fastcall GameOptionsLayer::create(GJBaseGameLayer *a1)\n{\n  GameOptionsLayer *v2; // x19\n\n  v2 = (GameOptionsLayer *)operator new(0x428u);\n  GJOptionsLayer::GJOptionsLayer(v2);\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GameOptionsLayer_vtbl *)&off_1007E25C0;\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_1007E2BA8;\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_1007E2C18;\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_1007E2C30;\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_1007E2C50;\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_1007E2C70;\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1007E2C98;\n  v2->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)off_1007E2D18;\n  v2->GJOptionsLayer::SetupTriggerPopup::TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)off_1007E2D38;\n  v2->GJOptionsLayer::SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&off_1007E2D80;\n  v2->GJOptionsLayer::SetupTriggerPopup::SliderDelegate::__vftable = (SliderDelegate_vtbl *)off_1007E2D98;\n  v2->m_practiceDialogIndex = 0;\n  if ( GameOptionsLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    ((void (__fastcall *)(GameOptionsLayer *))v2->~GameOptionsLayer_0)(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; GameOptionsLayer::create from 0x1002e1520 to 0x1002e15d8 (184 bytes)\n; \n; 1 xrefs:\n; > PauseLayer::onSettings @ 0x1001434f8\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002e1520\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002e1524\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002e1528\nMOV             X20, X0                                                ; +0xc, 0x1002e152c\nMOV             W0, #0x428; __sz                                       ; +0x10, 0x1002e1530\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x1002e1534\nMOV             X19, X0                                                ; +0x18, 0x1002e1538\nBL              GJOptionsLayer__GJOptionsLayer                         ; +0x1c, 0x1002e153c\nADRL            X8, off_1007E25C0                                      ; +0x20, 0x1002e1540\nSTR             X8, [X19]                                              ; +0x28, 0x1002e1548\nADD             X9, X8, #(off_1007E2BA8 - 0x1007E25C0)                 ; +0x2c, 0x1002e154c\nADD             X10, X8, #(off_1007E2C18 - 0x1007E25C0)                ; +0x30, 0x1002e1550\nSTP             X9, X10, [X19,#0x140]                                  ; +0x34, 0x1002e1554\nADD             X9, X8, #(off_1007E2C30 - 0x1007E25C0)                 ; +0x38, 0x1002e1558\nADD             X10, X8, #(off_1007E2C50 - 0x1007E25C0)                ; +0x3c, 0x1002e155c\nSTP             X9, X10, [X19,#0x150]                                  ; +0x40, 0x1002e1560\nADD             X9, X8, #(off_1007E2C70 - 0x1007E25C0)                 ; +0x44, 0x1002e1564\nSTR             X9, [X19,#0x160]                                       ; +0x48, 0x1002e1568\nADD             X9, X8, #(off_1007E2C98 - 0x1007E25C0)                 ; +0x4c, 0x1002e156c\nSTR             X9, [X19,#0x198]                                       ; +0x50, 0x1002e1570\nADD             X9, X8, #(off_1007E2D18 - 0x1007E25C0)                 ; +0x54, 0x1002e1574\nSTR             X9, [X19,#0x1B0]                                       ; +0x58, 0x1002e1578\nADD             X9, X8, #(off_1007E2D38 - 0x1007E25C0)                 ; +0x5c, 0x1002e157c\nSTR             X9, [X19,#0x278]                                       ; +0x60, 0x1002e1580\nADD             X9, X8, #(off_1007E2D80 - 0x1007E25C0)                 ; +0x64, 0x1002e1584\nSTR             X9, [X19,#0x280]                                       ; +0x68, 0x1002e1588\nADD             X8, X8, #(off_1007E2D98 - 0x1007E25C0)                 ; +0x6c, 0x1002e158c\nSTR             X8, [X19,#0x288]                                       ; +0x70, 0x1002e1590\nSTR             WZR, [X19,#0x420]                                      ; +0x74, 0x1002e1594\nMOV             X0, X19                                                ; +0x78, 0x1002e1598\nMOV             X1, X20                                                ; +0x7c, 0x1002e159c\nBL              GameOptionsLayer__init                                 ; +0x80, 0x1002e15a0\nCBZ             W0, loc_1002E15B4                                      ; +0x84, 0x1002e15a4\nMOV             X0, X19                                                ; +0x88, 0x1002e15a8\nBL              cocos2d__CCObject__autorelease                         ; +0x8c, 0x1002e15ac\nB               loc_1002E15C8                                          ; +0x90, 0x1002e15b0\nLDR             X8, [X19]                                              ; +0x94, 0x1002e15b4\nLDR             X8, [X8,#0x10]                                         ; +0x98, 0x1002e15b8\nMOV             X0, X19                                                ; +0x9c, 0x1002e15bc\nBLR             X8                                                     ; +0xa0, 0x1002e15c0\nMOV             X19, #0                                                ; +0xa4, 0x1002e15c4\nMOV             X0, X19                                                ; +0xa8, 0x1002e15c8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xac, 0x1002e15cc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb0, 0x1002e15d0\nRET                                                                    ; +0xb4, 0x1002e15d4", "xrefs": ["PauseLayer::onSettings @ 0x1001434f8"], "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"}