{"type": "func", "start": 5372073152, "end": 5372073437, "name": "MenuLayer::showTOS", "pseudocode": "// \n// MenuLayer::showTOS from 0x1403354c0 to 0x1403355dd (285 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x140334f9f\n// > <???> @ 0x1406d512c\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::showTOS(MenuLayer *a1)\n{\n  TOSPopup *v2; // rbx\n  void (*show)(FLAlertLayer *); // rdx\n\n  a1->m_showingTOS = 0;\n  v2 = (TOSPopup *)operator new(0x278u);\n  FLAlertLayer::FLAlertLayer(v2);\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (TOSPopup_vtbl *)&TOSPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&TOSPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&TOSPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&TOSPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&TOSPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&TOSPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&TOSPopup::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&TOSPopup::`vftable';\n  if ( TOSPopup::init(v2) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    ((void (__fastcall *)(TOSPopup *, __int64))v2->~TOSPopup)(v2, 1);\n    v2 = nullptr;\n  }\n  v2->m_scene = a1->getParent(a1);\n  show = (void (*)(FLAlertLayer *))v2->show;\n  if ( show == FLAlertLayer::show )\n    FLAlertLayer::show(v2);\n  else\n    show(v2);\n}", "assembly": "; \n; MenuLayer::showTOS from 0x1403354c0 to 0x1403355dd (285 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x140334f9f\n; > <???> @ 0x1406d512c\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, 0x1403354c0\npush    rdi                                                            ; +0x5, 0x1403354c5\nsub     rsp, 20h                                                       ; +0x6, 0x1403354c6\nmov     rdi, rcx                                                       ; +0xa, 0x1403354ca\nmov     byte ptr [rcx+1A8h], 0                                         ; +0xd, 0x1403354cd\nmov     ecx, 278h; Size                                                ; +0x14, 0x1403354d4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19, 0x1403354d9\nmov     rbx, rax                                                       ; +0x1e, 0x1403354de\nmov     [rsp+28h+arg_0], rax                                           ; +0x21, 0x1403354e1\nmov     rcx, rax                                                       ; +0x26, 0x1403354e6\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x29, 0x1403354e9\nlea     rax, ??_7TOSPopup@@6B@; const TOSPopup::`vftable'              ; +0x2e, 0x1403354ee\nmov     [rbx], rax                                                     ; +0x35, 0x1403354f5\nlea     rax, ??_7TOSPopup@@6B@_0; const TOSPopup::`vftable'            ; +0x38, 0x1403354f8\nmov     [rbx+140h], rax                                                ; +0x3f, 0x1403354ff\nlea     rax, ??_7TOSPopup@@6B@_1; const TOSPopup::`vftable'            ; +0x46, 0x140335506\nmov     [rbx+148h], rax                                                ; +0x4d, 0x14033550d\nlea     rax, ??_7TOSPopup@@6B@_2; const TOSPopup::`vftable'            ; +0x54, 0x140335514\nmov     [rbx+150h], rax                                                ; +0x5b, 0x14033551b\nlea     rax, ??_7TOSPopup@@6B@_3; const TOSPopup::`vftable'            ; +0x62, 0x140335522\nmov     [rbx+158h], rax                                                ; +0x69, 0x140335529\nlea     rax, ??_7TOSPopup@@6B@_4; const TOSPopup::`vftable'            ; +0x70, 0x140335530\nmov     [rbx+160h], rax                                                ; +0x77, 0x140335537\nlea     rax, ??_7TOSPopup@@6B@_5; const TOSPopup::`vftable'            ; +0x7e, 0x14033553e\nmov     [rbx+198h], rax                                                ; +0x85, 0x140335545\nlea     rax, ??_7TOSPopup@@6B@_6; const TOSPopup::`vftable'            ; +0x8c, 0x14033554c\nmov     [rbx+1B0h], rax                                                ; +0x93, 0x140335553\nmov     rax, cs:off_140577D90                                          ; +0x9a, 0x14033555a\nlea     rcx, TOSPopup__init                                            ; +0xa1, 0x140335561\ncmp     rax, rcx                                                       ; +0xa8, 0x140335568\nmov     rcx, rbx                                                       ; +0xab, 0x14033556b\njnz     short loc_140335577                                            ; +0xae, 0x14033556e\ncall    TOSPopup__init                                                 ; +0xb0, 0x140335570\njmp     short loc_140335579                                            ; +0xb5, 0x140335575\ncall    rax ; TOSPopup__init                                           ; +0xb7, 0x140335577\nmov     rcx, rbx                                                       ; +0xb9, 0x140335579\ntest    al, al                                                         ; +0xbc, 0x14033557c\njz      short loc_140335588                                            ; +0xbe, 0x14033557e\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xc0, 0x140335580\njmp     short loc_140335595                                            ; +0xc6, 0x140335586\nmov     rax, [rbx]                                                     ; +0xc8, 0x140335588\nmov     edx, 1                                                         ; +0xcb, 0x14033558b\ncall    qword ptr [rax+8]                                              ; +0xd0, 0x140335590\nxor     ebx, ebx                                                       ; +0xd3, 0x140335593\nmov     rax, [rdi]                                                     ; +0xd5, 0x140335595\nmov     rcx, rdi                                                       ; +0xd8, 0x140335598\ncall    qword ptr [rax+1E8h]                                           ; +0xdb, 0x14033559b\nmov     [rbx+230h], rax                                                ; +0xe1, 0x1403355a1\nmov     rax, [rbx]                                                     ; +0xe8, 0x1403355a8\nmov     rdx, [rax+410h]                                                ; +0xeb, 0x1403355ab\nlea     rax, FLAlertLayer__show                                        ; +0xf2, 0x1403355b2\nmov     rcx, rbx                                                       ; +0xf9, 0x1403355b9\ncmp     rdx, rax                                                       ; +0xfc, 0x1403355bc\njnz     short loc_1403355D0                                            ; +0xff, 0x1403355bf\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x101, 0x1403355c1\nadd     rsp, 20h                                                       ; +0x106, 0x1403355c6\npop     rdi                                                            ; +0x10a, 0x1403355ca\njmp     FLAlertLayer__show                                             ; +0x10b, 0x1403355cb\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x110, 0x1403355d0\nadd     rsp, 20h                                                       ; +0x115, 0x1403355d5\npop     rdi                                                            ; +0x119, 0x1403355d9\njmp     rdx                                                            ; +0x11a, 0x1403355da", "xrefs": ["MenuLayer::init @ 0x140334f9f", "<???> @ 0x1406d512c"], "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"}