{"type": "func", "start": 5373383008, "end": 5373383288, "name": "MenuLayer::onQuit", "pseudocode": "// \n// MenuLayer::onQuit from 0x140475160 to 0x140475278 (280 bytes)\n// \n// 3 xrefs:\n// > MenuLayer::keyBackClicked @ 0x140475159\n// > MenuLayer::init @ 0x140472e8c\n// > <???> @ 0x14092831c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall MenuLayer::onQuit(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // 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  v1 = a1 + 408;\n  if ( !a1 )\n    v1 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003D460(0x30u);\n  v6 = 38;\n  v7 = 47;\n  strcpy((char *)v5, \"Are you sure you want to <cr>quit</c>?\");\n  v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n  v3 = FLAlertLayer::create(v1, (int)\"Quit Game\", v2, (__int64)\"Cancel\", (__int64)\"Yes\", 1133903872, 0, 0, 1065353216);\n  sub_14003D310((__int64)&v5);\n  (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v3 + 64LL))(v3, 0);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; MenuLayer::onQuit from 0x140475160 to 0x140475278 (280 bytes)\n; \n; 3 xrefs:\n; > MenuLayer::keyBackClicked @ 0x140475159\n; > MenuLayer::init @ 0x140472e8c\n; > <???> @ 0x14092831c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:40 +0000\n; \npush    rbx                                                            ; +0x0, 0x140475160\nsub     rsp, 90h                                                       ; +0x2, 0x140475162\nlea     rbx, [rcx+198h]                                                ; +0x9, 0x140475169\nxor     eax, eax                                                       ; +0x10, 0x140475170\ntest    rcx, rcx                                                       ; +0x12, 0x140475172\ncmovz   rbx, rax                                                       ; +0x15, 0x140475175\nxorps   xmm0, xmm0                                                     ; +0x19, 0x140475179\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x14047517c\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x140475181\nmov     [rsp+98h+var_30], rax                                          ; +0x26, 0x140475186\nmov     ecx, 30h ; '0'                                                 ; +0x2b, 0x14047518b\ncall    sub_14003D460                                                  ; +0x30, 0x140475190\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x35, 0x140475195\nmov     [rsp+98h+var_38], 26h ; '&'                                    ; +0x3a, 0x14047519a\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x43, 0x1404751a3\nmovups  xmm0, cs:xmmword_1407B4168                                     ; +0x4c, 0x1404751ac\nmovups  xmmword ptr [rax], xmm0                                        ; +0x53, 0x1404751b3\nmovups  xmm1, cs:xmmword_1407B4178                                     ; +0x56, 0x1404751b6\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x5d, 0x1404751bd\nmov     ecx, cs:dword_1407B4188                                        ; +0x61, 0x1404751c1\nmov     [rax+20h], ecx                                                 ; +0x67, 0x1404751c7\nmovzx   ecx, cs:word_1407B418C                                         ; +0x6a, 0x1404751ca\nmov     [rax+24h], cx                                                  ; +0x71, 0x1404751d1\nmov     byte ptr [rax+26h], 0                                          ; +0x75, 0x1404751d5\nlea     rax, [rsp+98h+var_48]                                          ; +0x79, 0x1404751d9\nmov     [rsp+98h+arg_0], rax                                           ; +0x7e, 0x1404751de\nlea     rdx, [rsp+98h+var_48]                                          ; +0x86, 0x1404751e6\nlea     rcx, [rsp+98h+var_28]                                          ; +0x8b, 0x1404751eb\ncall    sub_14003F4F0                                                  ; +0x90, 0x1404751f0\nmovss   xmm0, cs:flt_140835080                                         ; +0x95, 0x1404751f5\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x9d, 0x1404751fd\nxorps   xmm1, xmm1                                                     ; +0xa3, 0x140475203\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xa6, 0x140475206\nmov     [rsp+98h+var_68], 0                                            ; +0xac, 0x14047520c\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xb1, 0x140475211\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xb9, 0x140475219\nlea     rcx, aYes; \"Yes\"                                               ; +0xbf, 0x14047521f\nmov     [rsp+98h+var_78], rcx                                          ; +0xc6, 0x140475226\nlea     r9, aCancel; \"Cancel\"                                          ; +0xcb, 0x14047522b\nmov     r8, rax                                                        ; +0xd2, 0x140475232\nlea     rdx, aQuitGame; \"Quit Game\"                                    ; +0xd5, 0x140475235\nmov     rcx, rbx                                                       ; +0xdc, 0x14047523c\ncall    FLAlertLayer__create                                           ; +0xdf, 0x14047523f\nmov     rbx, rax                                                       ; +0xe4, 0x140475244\nlea     rcx, [rsp+98h+var_48]                                          ; +0xe7, 0x140475247\ncall    sub_14003D310                                                  ; +0xec, 0x14047524c\nmov     rcx, [rbx]                                                     ; +0xf1, 0x140475251\nmov     r8, [rcx+40h]                                                  ; +0xf4, 0x140475254\nxor     edx, edx                                                       ; +0xf8, 0x140475258\nmov     rcx, rbx                                                       ; +0xfa, 0x14047525a\ncall    r8                                                             ; +0xfd, 0x14047525d\nmov     rcx, [rbx]                                                     ; +0x100, 0x140475260\nmov     rdx, [rcx+428h]                                                ; +0x103, 0x140475263\nmov     rcx, rbx                                                       ; +0x10a, 0x14047526a\ncall    rdx                                                            ; +0x10d, 0x14047526d\nadd     rsp, 90h                                                       ; +0x10f, 0x14047526f\npop     rbx                                                            ; +0x116, 0x140475276\nretn                                                                   ; +0x117, 0x140475277", "xrefs": ["MenuLayer::keyBackClicked @ 0x140475159", "MenuLayer::init @ 0x140472e8c", "<???> @ 0x14092831c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}