{"type": "func", "start": 5372690064, "end": 5372690341, "name": "RetryLevelLayer::onMenu", "pseudocode": "// \n// RetryLevelLayer::onMenu from 0x1403cbe90 to 0x1403cbfa5 (277 bytes)\n// \n// 4 xrefs:\n// > RetryLevelLayer::keyDown @ 0x1403cbe82\n// > RetryLevelLayer::keyBackClicked @ 0x1403cbfc9\n// > RetryLevelLayer::customSetup @ 0x1403cb558\n// > <???> @ 0x1406d7b68\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=3\nvoid RetryLevelLayer::onMenu(RetryLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rcx\n  __int64 v4; // r8\n  __int64 v5; // r9\n  int v6; // ecx\n  __int128 v7; // [rsp+30h] [rbp-28h] BYREF\n  __int64 v8; // [rsp+40h] [rbp-18h]\n  __int64 v9; // [rsp+48h] [rbp-10h]\n  void *v10; // [rsp+60h] [rbp+8h]\n  FMODAudioEngine *v11; // [rsp+70h] [rbp+18h]\n\n  v3 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v10 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  PlayLayer::onQuit(*(PlayLayer **)(v3 + 520));\n  a1->exitLayer(a1, nullptr);\n  v7 = 0;\n  *(_QWORD *)&v7 = sub_14003AA10(0x20u);\n  v8 = 16;\n  v9 = 31;\n  strcpy((char *)v7, \"quitSound_01.ogg\");\n  v6 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v11 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v11);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v6 = qword_1406C2E88;\n  }\n  FMODAudioEngine::playEffect(v6, (__int64)&v7, v4, v5, 1060320051);\n}", "assembly": "; \n; RetryLevelLayer::onMenu from 0x1403cbe90 to 0x1403cbfa5 (277 bytes)\n; \n; 4 xrefs:\n; > RetryLevelLayer::keyDown @ 0x1403cbe82\n; > RetryLevelLayer::keyBackClicked @ 0x1403cbfc9\n; > RetryLevelLayer::customSetup @ 0x1403cb558\n; > <???> @ 0x1406d7b68\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, 0x1403cbe90\nsub     rsp, 50h                                                       ; +0x2, 0x1403cbe92\nmov     rbx, rcx                                                       ; +0x6, 0x1403cbe96\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9, 0x1403cbe99\ntest    rcx, rcx                                                       ; +0x10, 0x1403cbea0\njnz     short loc_1403CBED4                                            ; +0x13, 0x1403cbea3\nmov     ecx, 668h; Size                                                ; +0x15, 0x1403cbea5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1403cbeaa\nmov     [rsp+58h+arg_0], rax                                           ; +0x1f, 0x1403cbeaf\nmov     rcx, rax                                                       ; +0x24, 0x1403cbeb4\ncall    sub_14017AB00                                                  ; +0x27, 0x1403cbeb7\nnop                                                                    ; +0x2c, 0x1403cbebc\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x1403cbebd\nmov     rdx, [rax]                                                     ; +0x34, 0x1403cbec4\nmov     rcx, rax                                                       ; +0x37, 0x1403cbec7\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1403cbeca\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3d, 0x1403cbecd\nmov     rcx, [rcx+208h]                                                ; +0x44, 0x1403cbed4\ncall    PlayLayer__onQuit                                              ; +0x4b, 0x1403cbedb\nmov     rax, [rbx]                                                     ; +0x50, 0x1403cbee0\nxor     edx, edx                                                       ; +0x53, 0x1403cbee3\nmov     rcx, rbx                                                       ; +0x55, 0x1403cbee5\ncall    qword ptr [rax+420h]                                           ; +0x58, 0x1403cbee8\nlea     rax, [rsp+58h+var_28]                                          ; +0x5e, 0x1403cbeee\nmov     [rsp+58h+arg_0], rax                                           ; +0x63, 0x1403cbef3\nxorps   xmm0, xmm0                                                     ; +0x68, 0x1403cbef8\nmovups  [rsp+58h+var_28], xmm0                                         ; +0x6b, 0x1403cbefb\nmov     [rsp+58h+var_18], 0                                            ; +0x70, 0x1403cbf00\nmov     [rsp+58h+var_10], 0Fh                                          ; +0x79, 0x1403cbf09\nmov     ecx, 20h ; ' '                                                 ; +0x82, 0x1403cbf12\ncall    sub_14003AA10                                                  ; +0x87, 0x1403cbf17\nmov     qword ptr [rsp+58h+var_28], rax                                ; +0x8c, 0x1403cbf1c\nmov     [rsp+58h+var_18], 10h                                          ; +0x91, 0x1403cbf21\nmov     [rsp+58h+var_10], 1Fh                                          ; +0x9a, 0x1403cbf2a\nmovups  xmm0, cs:xmmword_140532E10                                     ; +0xa3, 0x1403cbf33\nmovups  xmmword ptr [rax], xmm0                                        ; +0xaa, 0x1403cbf3a\nmov     byte ptr [rax+10h], 0                                          ; +0xad, 0x1403cbf3d\nmov     rcx, cs:qword_1406C2E88                                        ; +0xb1, 0x1403cbf41\ntest    rcx, rcx                                                       ; +0xb8, 0x1403cbf48\njnz     short loc_1403CBF7C                                            ; +0xbb, 0x1403cbf4b\nmov     ecx, 888h; Size                                                ; +0xbd, 0x1403cbf4d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xc2, 0x1403cbf52\nmov     [rsp+58h+arg_10], rax                                          ; +0xc7, 0x1403cbf57\nmov     rcx, rax                                                       ; +0xcc, 0x1403cbf5c\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xcf, 0x1403cbf5f\nnop                                                                    ; +0xd4, 0x1403cbf64\nmov     cs:qword_1406C2E88, rax                                        ; +0xd5, 0x1403cbf65\nmov     rdx, [rax]                                                     ; +0xdc, 0x1403cbf6c\nmov     rcx, rax                                                       ; +0xdf, 0x1403cbf6f\ncall    qword ptr [rdx+48h]                                            ; +0xe2, 0x1403cbf72\nmov     rcx, cs:qword_1406C2E88                                        ; +0xe5, 0x1403cbf75\nmovss   xmm0, cs:dword_140622B74                                       ; +0xec, 0x1403cbf7c\nmovss   [rsp+58h+var_38], xmm0                                         ; +0xf4, 0x1403cbf84\nxorps   xmm3, xmm3                                                     ; +0xfa, 0x1403cbf8a\nmovss   xmm2, cs:flt_140622C24                                         ; +0xfd, 0x1403cbf8d\nlea     rdx, [rsp+58h+var_28]                                          ; +0x105, 0x1403cbf95\ncall    FMODAudioEngine__playEffect                                    ; +0x10a, 0x1403cbf9a\nadd     rsp, 50h                                                       ; +0x10f, 0x1403cbf9f\npop     rbx                                                            ; +0x113, 0x1403cbfa3\nretn                                                                   ; +0x114, 0x1403cbfa4", "xrefs": ["RetryLevelLayer::keyDown @ 0x1403cbe82", "RetryLevelLayer::keyBackClicked @ 0x1403cbfc9", "RetryLevelLayer::customSetup @ 0x1403cb558", "<???> @ 0x1406d7b68"], "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"}