{"type": "func", "start": 5372075920, "end": 5372076199, "name": "MenuLayer::onQuit", "pseudocode": "// \n// MenuLayer::onQuit from 0x140335f90 to 0x1403360a7 (279 bytes)\n// \n// 3 xrefs:\n// > MenuLayer::keyBackClicked @ 0x140335f89\n// > MenuLayer::init @ 0x14033467f\n// > <???> @ 0x1406d51f8\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::onQuit(MenuLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // ebx\n  __int64 v3; // rax\n  FLAlertLayer *v4; // rbx\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  v2 = (_DWORD)a1 + 408;\n  if ( !a1 )\n    v2 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003AA10(0x30u);\n  v6 = 38;\n  v7 = 47;\n  strcpy((char *)v5, \"Are you sure you want to <cr>quit</c>?\");\n  v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n  v4 = FLAlertLayer::create(v2, (int)\"Quit Game\", v3, (__int64)\"Cancel\", (__int64)\"Yes\", 1133903872, 0, 0, 1065353216);\n  sub_14003A830((__int64)&v5);\n  v4->setTag(v4, 0);\n  v4->show(v4);\n}", "assembly": "; \n; MenuLayer::onQuit from 0x140335f90 to 0x1403360a7 (279 bytes)\n; \n; 3 xrefs:\n; > MenuLayer::keyBackClicked @ 0x140335f89\n; > MenuLayer::init @ 0x14033467f\n; > <???> @ 0x1406d51f8\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\npush    rbx                                                            ; +0x0, 0x140335f90\nsub     rsp, 90h                                                       ; +0x2, 0x140335f92\nlea     rbx, [rcx+198h]                                                ; +0x9, 0x140335f99\nxor     eax, eax                                                       ; +0x10, 0x140335fa0\ntest    rcx, rcx                                                       ; +0x12, 0x140335fa2\ncmovz   rbx, rax                                                       ; +0x15, 0x140335fa5\nxorps   xmm0, xmm0                                                     ; +0x19, 0x140335fa9\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x140335fac\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x140335fb1\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x26, 0x140335fb6\nlea     ecx, [rax+30h]                                                 ; +0x2f, 0x140335fbf\ncall    sub_14003AA10                                                  ; +0x32, 0x140335fc2\nmov     rdx, rax                                                       ; +0x37, 0x140335fc7\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x3a, 0x140335fca\nmov     [rsp+98h+var_38], 26h ; '&'                                    ; +0x3f, 0x140335fcf\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x48, 0x140335fd8\nmovups  xmm0, cs:xmmword_1405AAD88                                     ; +0x51, 0x140335fe1\nmovups  xmmword ptr [rax], xmm0                                        ; +0x58, 0x140335fe8\nmovups  xmm1, cs:xmmword_1405AAD98                                     ; +0x5b, 0x140335feb\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x62, 0x140335ff2\nmov     ecx, cs:dword_1405AADA8                                        ; +0x66, 0x140335ff6\nmov     [rax+20h], ecx                                                 ; +0x6c, 0x140335ffc\nmovzx   eax, cs:word_1405AADAC                                         ; +0x6f, 0x140335fff\nmov     [rdx+24h], ax                                                  ; +0x76, 0x140336006\nmov     byte ptr [rdx+26h], 0                                          ; +0x7a, 0x14033600a\nlea     rax, [rsp+98h+var_48]                                          ; +0x7e, 0x14033600e\nmov     [rsp+98h+arg_0], rax                                           ; +0x83, 0x140336013\nlea     rdx, [rsp+98h+var_48]                                          ; +0x8b, 0x14033601b\nlea     rcx, [rsp+98h+var_28]                                          ; +0x90, 0x140336020\ncall    sub_14003BDB0                                                  ; +0x95, 0x140336025\nmovss   xmm0, cs:flt_140622C24                                         ; +0x9a, 0x14033602a\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xa2, 0x140336032\nxorps   xmm1, xmm1                                                     ; +0xa8, 0x140336038\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xab, 0x14033603b\nmov     [rsp+98h+var_68], 0                                            ; +0xb1, 0x140336041\nmovss   xmm0, cs:dword_14062343C                                       ; +0xb6, 0x140336046\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xbe, 0x14033604e\nlea     rcx, aYes; \"Yes\"                                               ; +0xc4, 0x140336054\nmov     [rsp+98h+var_78], rcx                                          ; +0xcb, 0x14033605b\nlea     r9, aCancel; \"Cancel\"                                          ; +0xd0, 0x140336060\nmov     r8, rax                                                        ; +0xd7, 0x140336067\nlea     rdx, aQuitGame; \"Quit Game\"                                    ; +0xda, 0x14033606a\nmov     rcx, rbx                                                       ; +0xe1, 0x140336071\ncall    FLAlertLayer__create                                           ; +0xe4, 0x140336074\nmov     rbx, rax                                                       ; +0xe9, 0x140336079\nlea     rcx, [rsp+98h+var_48]                                          ; +0xec, 0x14033607c\ncall    sub_14003A830                                                  ; +0xf1, 0x140336081\nmov     r8, [rbx]                                                      ; +0xf6, 0x140336086\nxor     edx, edx                                                       ; +0xf9, 0x140336089\nmov     rcx, rbx                                                       ; +0xfb, 0x14033608b\ncall    qword ptr [r8+40h]                                             ; +0xfe, 0x14033608e\nmov     rdx, [rbx]                                                     ; +0x102, 0x140336092\nmov     rcx, rbx                                                       ; +0x105, 0x140336095\ncall    qword ptr [rdx+410h]                                           ; +0x108, 0x140336098\nadd     rsp, 90h                                                       ; +0x10e, 0x14033609e\npop     rbx                                                            ; +0x115, 0x1403360a5\nretn                                                                   ; +0x116, 0x1403360a6", "xrefs": ["MenuLayer::keyBackClicked @ 0x140335f89", "MenuLayer::init @ 0x14033467f", "<???> @ 0x1406d51f8"], "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"}