{"type": "func", "start": 5372074640, "end": 5372075020, "name": "MenuLayer::openOptions", "pseudocode": "// \n// MenuLayer::openOptions from 0x140335a90 to 0x140335c0c (380 bytes)\n// \n// 4 xrefs:\n// > MenuLayer::onOptions @ 0x140335a72\n// > MenuLayer::onOptionsInstant @ 0x140335a82\n// > MenuLayer::keyDown @ 0x1403363ba\n// > <???> @ 0x1406d51bc\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\n// Hidden C++ exception states: #wind=1\nvoid MenuLayer::openOptions(MenuLayer *a1, bool a2)\n{\n  GJDropDownLayer *v4; // rbx\n  void (*showLayer)(GJDropDownLayer *, bool); // r8\n  VideoOptionsLayer *v6; // rax\n\n  v4 = (GJDropDownLayer *)operator new(0x298u);\n  GJDropDownLayer::GJDropDownLayer(v4);\n  v4->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJDropDownLayer_vtbl *)&OptionsLayer::`vftable';\n  v4->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&OptionsLayer::`vftable';\n  v4->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&OptionsLayer::`vftable';\n  v4->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&OptionsLayer::`vftable';\n  v4->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&OptionsLayer::`vftable';\n  v4->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&OptionsLayer::`vftable';\n  v4->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&OptionsLayer::`vftable';\n  v4->cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&OptionsLayer::`vftable';\n  v4[1].cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJDropDownLayer_vtbl *)&OptionsLayer::`vftable';\n  *(_QWORD *)&v4[1].m_uID = 0;\n  *(_QWORD *)&v4[1].m_nTag = 0;\n  v4[1].m_uAutoReleaseCount = 0;\n  LOBYTE(v4[1].m_eObjType) = 0;\n  v4[1].m_uOrderOfArrival = -1;\n  if ( GJDropDownLayer::init(v4, \"Settings\", 220.0, 0) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJDropDownLayer *, __int64))v4->~GJDropDownLayer)(v4, 1);\n    v4 = nullptr;\n  }\n  a1->addChild_0(a1, v4, 100);\n  showLayer = (void (*)(GJDropDownLayer *, bool))v4->showLayer;\n  if ( showLayer == GJDropDownLayer::showLayer )\n    GJDropDownLayer::showLayer(v4, a2);\n  else\n    showLayer(v4, a2);\n  if ( a2 )\n  {\n    v6 = VideoOptionsLayer::create();\n    v4->addChild_0(v4, v6, 100);\n  }\n}", "assembly": "; \n; MenuLayer::openOptions from 0x140335a90 to 0x140335c0c (380 bytes)\n; \n; 4 xrefs:\n; > MenuLayer::onOptions @ 0x140335a72\n; > MenuLayer::onOptionsInstant @ 0x140335a82\n; > MenuLayer::keyDown @ 0x1403363ba\n; > <???> @ 0x1406d51bc\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140335a90\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140335a95\npush    rdi                                                            ; +0xa, 0x140335a9a\nsub     rsp, 20h                                                       ; +0xb, 0x140335a9b\nmovzx   edi, dl                                                        ; +0xf, 0x140335a9f\nmov     rsi, rcx                                                       ; +0x12, 0x140335aa2\nmov     ecx, 298h; Size                                                ; +0x15, 0x140335aa5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x140335aaa\nmov     rbx, rax                                                       ; +0x1f, 0x140335aaf\nmov     [rsp+28h+arg_0], rax                                           ; +0x22, 0x140335ab2\nmov     rcx, rax                                                       ; +0x27, 0x140335ab7\ncall    GJDropDownLayer__GJDropDownLayer                               ; +0x2a, 0x140335aba\nlea     rax, ??_7OptionsLayer@@6B@; const OptionsLayer::`vftable'      ; +0x2f, 0x140335abf\nmov     [rbx], rax                                                     ; +0x36, 0x140335ac6\nlea     rax, ??_7OptionsLayer@@6B@_0; const OptionsLayer::`vftable'    ; +0x39, 0x140335ac9\nmov     [rbx+140h], rax                                                ; +0x40, 0x140335ad0\nlea     rax, ??_7OptionsLayer@@6B@_1; const OptionsLayer::`vftable'    ; +0x47, 0x140335ad7\nmov     [rbx+148h], rax                                                ; +0x4e, 0x140335ade\nlea     rax, ??_7OptionsLayer@@6B@_2; const OptionsLayer::`vftable'    ; +0x55, 0x140335ae5\nmov     [rbx+150h], rax                                                ; +0x5c, 0x140335aec\nlea     rax, ??_7OptionsLayer@@6B@_3; const OptionsLayer::`vftable'    ; +0x63, 0x140335af3\nmov     [rbx+158h], rax                                                ; +0x6a, 0x140335afa\nlea     rax, ??_7OptionsLayer@@6B@_4; const OptionsLayer::`vftable'    ; +0x71, 0x140335b01\nmov     [rbx+160h], rax                                                ; +0x78, 0x140335b08\nlea     rax, ??_7OptionsLayer@@6B@_5; const OptionsLayer::`vftable'    ; +0x7f, 0x140335b0f\nmov     [rbx+198h], rax                                                ; +0x86, 0x140335b16\nlea     rax, ??_7OptionsLayer@@6B@_6; const OptionsLayer::`vftable'    ; +0x8d, 0x140335b1d\nmov     [rbx+1B0h], rax                                                ; +0x94, 0x140335b24\nlea     rax, ??_7OptionsLayer@@6B@_7; const OptionsLayer::`vftable'    ; +0x9b, 0x140335b2b\nmov     [rbx+260h], rax                                                ; +0xa2, 0x140335b32\nmov     qword ptr [rbx+268h], 0                                        ; +0xa9, 0x140335b39\nmov     qword ptr [rbx+270h], 0                                        ; +0xb4, 0x140335b44\nmov     dword ptr [rbx+278h], 0                                        ; +0xbf, 0x140335b4f\nmov     byte ptr [rbx+27Ch], 0                                         ; +0xc9, 0x140335b59\nmov     dword ptr [rbx+290h], 0FFFFFFFFh                               ; +0xd0, 0x140335b60\nxor     r9d, r9d                                                       ; +0xda, 0x140335b6a\nmovss   xmm2, cs:dword_1406233F4                                       ; +0xdd, 0x140335b6d\nlea     rdx, aSettings; \"Settings\"                                     ; +0xe5, 0x140335b75\nmov     rcx, rbx                                                       ; +0xec, 0x140335b7c\ncall    GJDropDownLayer__init                                          ; +0xef, 0x140335b7f\nmov     rcx, rbx                                                       ; +0xf4, 0x140335b84\ntest    al, al                                                         ; +0xf7, 0x140335b87\njz      short loc_140335B93                                            ; +0xf9, 0x140335b89\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xfb, 0x140335b8b\njmp     short loc_140335BA0                                            ; +0x101, 0x140335b91\nmov     rax, [rbx]                                                     ; +0x103, 0x140335b93\nmov     edx, 1                                                         ; +0x106, 0x140335b96\ncall    qword ptr [rax+8]                                              ; +0x10b, 0x140335b9b\nxor     ebx, ebx                                                       ; +0x10e, 0x140335b9e\nmov     rax, [rsi]                                                     ; +0x110, 0x140335ba0\nmov     r8d, 64h ; 'd'                                                 ; +0x113, 0x140335ba3\nmov     rdx, rbx                                                       ; +0x119, 0x140335ba9\nmov     rcx, rsi                                                       ; +0x11c, 0x140335bac\ncall    qword ptr [rax+1B8h]                                           ; +0x11f, 0x140335baf\nmov     rax, [rbx]                                                     ; +0x125, 0x140335bb5\nmov     r8, [rax+428h]                                                 ; +0x128, 0x140335bb8\nlea     rax, GJDropDownLayer__showLayer                                ; +0x12f, 0x140335bbf\nmovzx   edx, dil                                                       ; +0x136, 0x140335bc6\nmov     rcx, rbx                                                       ; +0x13a, 0x140335bca\ncmp     r8, rax                                                        ; +0x13d, 0x140335bcd\njnz     short loc_140335BD9                                            ; +0x140, 0x140335bd0\ncall    GJDropDownLayer__showLayer                                     ; +0x142, 0x140335bd2\njmp     short loc_140335BDC                                            ; +0x147, 0x140335bd7\ncall    r8                                                             ; +0x149, 0x140335bd9\ntest    dil, dil                                                       ; +0x14c, 0x140335bdc\njz      short loc_140335BFC                                            ; +0x14f, 0x140335bdf\ncall    VideoOptionsLayer__create                                      ; +0x151, 0x140335be1\nmov     r9, [rbx]                                                      ; +0x156, 0x140335be6\nmov     r8d, 64h ; 'd'                                                 ; +0x159, 0x140335be9\nmov     rdx, rax                                                       ; +0x15f, 0x140335bef\nmov     rcx, rbx                                                       ; +0x162, 0x140335bf2\ncall    qword ptr [r9+1B8h]                                            ; +0x165, 0x140335bf5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x16c, 0x140335bfc\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x171, 0x140335c01\nadd     rsp, 20h                                                       ; +0x176, 0x140335c06\npop     rdi                                                            ; +0x17a, 0x140335c0a\nretn                                                                   ; +0x17b, 0x140335c0b", "xrefs": ["MenuLayer::onOptions @ 0x140335a72", "MenuLayer::onOptionsInstant @ 0x140335a82", "MenuLayer::keyDown @ 0x1403363ba", "<???> @ 0x1406d51bc"], "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"}