{"type": "func", "start": 4297585760, "end": 4297586013, "name": "EditorPauseLayer::FLAlert_Clicked", "pseudocode": "// \n// EditorPauseLayer::FLAlert_Clicked from 0x10027f460 to 0x10027f55d (253 bytes)\n// \n// 2 xrefs:\n// > sub_10027F560 @ 0x10027f56c\n// > <???> @ 0x100afdf58\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 12:27:42 +0000\n// \n\nchar __fastcall EditorPauseLayer::FLAlert_Clicked(__int64 a1, __int64 a2, unsigned __int8 a3, double a4)\n{\n  unsigned __int8 v4; // r14\n  __int64 v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // rdx\n  double v8; // xmm0_8\n  __int64 v9; // rax\n  char result; // al\n  __int64 v11; // rax\n  __int64 v12; // rdi\n  __int64 v13; // rdx\n  double v14; // xmm0_8\n  __int64 v15; // rax\n\n  v4 = a3 ^ 1;\n  if ( a3 ^ 1 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1) )\n  {\n    if ( v4 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 3) )\n    {\n      result = v4 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 4);\n      if ( !result )\n      {\n        *(_QWORD *)&v14 = GameManager::sharedState(a2, a2, v13).u64[0];\n        return GameManager::openEditorGuide(v15, v14);\n      }\n    }\n    else\n    {\n      v11 = LocalLevelManager::sharedState(a4);\n      result = sub_1004A5220(v11, 30.0);\n      v12 = *(_QWORD *)(a1 + 576);\n      if ( v12 )\n        return LevelEditorLayer::saveLevel(v12);\n    }\n  }\n  else\n  {\n    v5 = EditorSFXManager::sharedState(a2);\n    EditorSFXManager::playAction_1(v5, 224);\n    sub_1000A9AF0(a4);\n    v6 = FMODAudioEngine::sharedEngine(a4);\n    FMODAudioEngine::unloadAllEffects(v6);\n    CCBlockLayer::decrementForcePrio(a1);\n    *(_QWORD *)&v8 = GameManager::sharedState(a1, 224, v7).u64[0];\n    return GameManager::returnToLastScene(v9, *(_QWORD *)(*(_QWORD *)(a1 + 576) + 1936LL), v8);\n  }\n  return result;\n}", "assembly": "; \n; EditorPauseLayer::FLAlert_Clicked from 0x10027f460 to 0x10027f55d (253 bytes)\n; \n; 2 xrefs:\n; > sub_10027F560 @ 0x10027f56c\n; > <???> @ 0x100afdf58\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 12:27:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x10027f460\nmov     rbp, rsp                                                       ; +0x1, 0x10027f461\npush    r15                                                            ; +0x4, 0x10027f464\npush    r14                                                            ; +0x6, 0x10027f466\npush    rbx                                                            ; +0x8, 0x10027f468\npush    rax                                                            ; +0x9, 0x10027f469\nmov     r14d, edx                                                      ; +0xa, 0x10027f46a\nmov     r15, rsi                                                       ; +0xd, 0x10027f46d\nmov     rbx, rdi                                                       ; +0x10, 0x10027f470\nxor     r14b, 1                                                        ; +0x13, 0x10027f473\nmov     rax, [rsi]                                                     ; +0x17, 0x10027f477\nmov     rdi, rsi                                                       ; +0x1a, 0x10027f47a\ncall    qword ptr [rax+40h]                                            ; +0x1d, 0x10027f47d\ncmp     eax, 1                                                         ; +0x20, 0x10027f480\nsetnz   al                                                             ; +0x23, 0x10027f483\nor      al, r14b                                                       ; +0x26, 0x10027f486\njnz     short loc_10027F4E3                                            ; +0x29, 0x10027f489\ncall    EditorSFXManager__sharedState                                  ; +0x2b, 0x10027f48b\nmov     rdi, rax                                                       ; +0x30, 0x10027f490\nmov     esi, 0E0h                                                      ; +0x33, 0x10027f493\ncall    EditorSFXManager__playAction_1                                 ; +0x38, 0x10027f498\nmov     rdi, [rbx+240h]                                                ; +0x3d, 0x10027f49d\ncall    sub_1000A9AF0                                                  ; +0x44, 0x10027f4a4\ncall    FMODAudioEngine__sharedEngine                                  ; +0x49, 0x10027f4a9\nmov     rdi, rax                                                       ; +0x4e, 0x10027f4ae\ncall    FMODAudioEngine__unloadAllEffects                              ; +0x51, 0x10027f4b1\nmov     rdi, rbx                                                       ; +0x56, 0x10027f4b6\ncall    CCBlockLayer__decrementForcePrio                               ; +0x59, 0x10027f4b9\ncall    GameManager__sharedState                                       ; +0x5e, 0x10027f4be\nmov     rcx, [rbx+240h]                                                ; +0x63, 0x10027f4c3\nmov     rsi, [rcx+790h]                                                ; +0x6a, 0x10027f4ca\nmov     rdi, rax                                                       ; +0x71, 0x10027f4d1\nadd     rsp, 8                                                         ; +0x74, 0x10027f4d4\npop     rbx                                                            ; +0x78, 0x10027f4d8\npop     r14                                                            ; +0x79, 0x10027f4d9\npop     r15                                                            ; +0x7b, 0x10027f4db\npop     rbp                                                            ; +0x7d, 0x10027f4dd\njmp     GameManager__returnToLastScene                                 ; +0x7e, 0x10027f4de\nmov     rax, [r15]                                                     ; +0x83, 0x10027f4e3\nmov     rdi, r15                                                       ; +0x86, 0x10027f4e6\ncall    qword ptr [rax+40h]                                            ; +0x89, 0x10027f4e9\ncmp     eax, 3                                                         ; +0x8c, 0x10027f4ec\nsetnz   al                                                             ; +0x8f, 0x10027f4ef\nor      al, r14b                                                       ; +0x92, 0x10027f4f2\njnz     short loc_10027F527                                            ; +0x95, 0x10027f4f5\ncall    LocalLevelManager__sharedState                                 ; +0x97, 0x10027f4f7\nmovsd   xmm0, cs:qword_100A072C8                                       ; +0x9c, 0x10027f4fc\nmov     rdi, rax                                                       ; +0xa4, 0x10027f504\ncall    sub_1004A5220                                                  ; +0xa7, 0x10027f507\nmov     rdi, [rbx+240h]                                                ; +0xac, 0x10027f50c\ntest    rdi, rdi                                                       ; +0xb3, 0x10027f513\njz      short loc_10027F552                                            ; +0xb6, 0x10027f516\nadd     rsp, 8                                                         ; +0xb8, 0x10027f518\npop     rbx                                                            ; +0xbc, 0x10027f51c\npop     r14                                                            ; +0xbd, 0x10027f51d\npop     r15                                                            ; +0xbf, 0x10027f51f\npop     rbp                                                            ; +0xc1, 0x10027f521\njmp     LevelEditorLayer__saveLevel                                    ; +0xc2, 0x10027f522\nmov     rax, [r15]                                                     ; +0xc7, 0x10027f527\nmov     rdi, r15                                                       ; +0xca, 0x10027f52a\ncall    qword ptr [rax+40h]                                            ; +0xcd, 0x10027f52d\ncmp     eax, 4                                                         ; +0xd0, 0x10027f530\nsetnz   al                                                             ; +0xd3, 0x10027f533\nor      al, r14b                                                       ; +0xd6, 0x10027f536\njnz     short loc_10027F552                                            ; +0xd9, 0x10027f539\ncall    GameManager__sharedState                                       ; +0xdb, 0x10027f53b\nmov     rdi, rax                                                       ; +0xe0, 0x10027f540\nadd     rsp, 8                                                         ; +0xe3, 0x10027f543\npop     rbx                                                            ; +0xe7, 0x10027f547\npop     r14                                                            ; +0xe8, 0x10027f548\npop     r15                                                            ; +0xea, 0x10027f54a\npop     rbp                                                            ; +0xec, 0x10027f54c\njmp     GameManager__openEditorGuide                                   ; +0xed, 0x10027f54d\nadd     rsp, 8                                                         ; +0xf2, 0x10027f552\npop     rbx                                                            ; +0xf6, 0x10027f556\npop     r14                                                            ; +0xf7, 0x10027f557\npop     r15                                                            ; +0xf9, 0x10027f559\npop     rbp                                                            ; +0xfb, 0x10027f55b\nretn                                                                   ; +0xfc, 0x10027f55c", "xrefs": ["sub_10027F560 @ 0x10027f56c", "<???> @ 0x100afdf58"], "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"}