{"type": "func", "start": 4297674320, "end": 4297674512, "name": "EditorPauseLayer::FLAlert_Clicked", "pseudocode": "// \n// EditorPauseLayer::FLAlert_Clicked from 0x100294e50 to 0x100294f10 (192 bytes)\n// \n// 2 xrefs:\n// > sub_100294F10 @ 0x100294f1c\n// > <???> @ 0x1008f75b0\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\nvoid __fastcall EditorPauseLayer::FLAlert_Clicked(EditorPauseLayer *a1, FLAlertLayer *a2, bool a3)\n{\n  bool v3; // r14\n  FMODAudioEngine *v4; // rax\n  GameManager *v5; // rax\n\n  v3 = !a3;\n  if ( !a3 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 1) )\n  {\n    if ( v3 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 2) )\n    {\n      if ( !(v3 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 3)) )\n        EditorPauseLayer::saveLevel(a1);\n    }\n    else\n    {\n      LevelEditorLayer::resetUnusedColorChannels(a1->m_editorLayer);\n    }\n  }\n  else\n  {\n    v4 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::unloadAllEffects(v4);\n    CCBlockLayer::decrementForcePrio(a1);\n    v5 = GameManager::sharedState();\n    GameManager::returnToLastScene(v5, a1->m_editorLayer->m_level);\n  }\n}", "assembly": "; \n; EditorPauseLayer::FLAlert_Clicked from 0x100294e50 to 0x100294f10 (192 bytes)\n; \n; 2 xrefs:\n; > sub_100294F10 @ 0x100294f1c\n; > <???> @ 0x1008f75b0\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    rbp                                                            ; +0x0, 0x100294e50\nmov     rbp, rsp                                                       ; +0x1, 0x100294e51\npush    r15                                                            ; +0x4, 0x100294e54\npush    r14                                                            ; +0x6, 0x100294e56\npush    rbx                                                            ; +0x8, 0x100294e58\npush    rax                                                            ; +0x9, 0x100294e59\nmov     r14d, edx                                                      ; +0xa, 0x100294e5a\nmov     r15, rsi                                                       ; +0xd, 0x100294e5d\nmov     rbx, rdi                                                       ; +0x10, 0x100294e60\nxor     r14b, 1                                                        ; +0x13, 0x100294e63\nmov     rax, [rsi]                                                     ; +0x17, 0x100294e67\nmov     rdi, rsi                                                       ; +0x1a, 0x100294e6a\ncall    qword ptr [rax+40h]                                            ; +0x1d, 0x100294e6d\ncmp     eax, 1                                                         ; +0x20, 0x100294e70\nsetnz   al                                                             ; +0x23, 0x100294e73\nor      al, r14b                                                       ; +0x26, 0x100294e76\njnz     short loc_100294EB5                                            ; +0x29, 0x100294e79\ncall    FMODAudioEngine__sharedEngine                                  ; +0x2b, 0x100294e7b\nmov     rdi, rax                                                       ; +0x30, 0x100294e80\ncall    FMODAudioEngine__unloadAllEffects                              ; +0x33, 0x100294e83\nmov     rdi, rbx                                                       ; +0x38, 0x100294e88\ncall    CCBlockLayer__decrementForcePrio                               ; +0x3b, 0x100294e8b\ncall    GameManager__sharedState                                       ; +0x40, 0x100294e90\nmov     rcx, [rbx+248h]                                                ; +0x45, 0x100294e95\nmov     rsi, [rcx+790h]                                                ; +0x4c, 0x100294e9c\nmov     rdi, rax                                                       ; +0x53, 0x100294ea3\nadd     rsp, 8                                                         ; +0x56, 0x100294ea6\npop     rbx                                                            ; +0x5a, 0x100294eaa\npop     r14                                                            ; +0x5b, 0x100294eab\npop     r15                                                            ; +0x5d, 0x100294ead\npop     rbp                                                            ; +0x5f, 0x100294eaf\njmp     GameManager__returnToLastScene                                 ; +0x60, 0x100294eb0\nmov     rax, [r15]                                                     ; +0x65, 0x100294eb5\nmov     rdi, r15                                                       ; +0x68, 0x100294eb8\ncall    qword ptr [rax+40h]                                            ; +0x6b, 0x100294ebb\ncmp     eax, 2                                                         ; +0x6e, 0x100294ebe\nsetnz   al                                                             ; +0x71, 0x100294ec1\nor      al, r14b                                                       ; +0x74, 0x100294ec4\njnz     short loc_100294EDF                                            ; +0x77, 0x100294ec7\nmov     rdi, [rbx+248h]                                                ; +0x79, 0x100294ec9\nadd     rsp, 8                                                         ; +0x80, 0x100294ed0\npop     rbx                                                            ; +0x84, 0x100294ed4\npop     r14                                                            ; +0x85, 0x100294ed5\npop     r15                                                            ; +0x87, 0x100294ed7\npop     rbp                                                            ; +0x89, 0x100294ed9\njmp     LevelEditorLayer__resetUnusedColorChannels                     ; +0x8a, 0x100294eda\nmov     rax, [r15]                                                     ; +0x8f, 0x100294edf\nmov     rdi, r15                                                       ; +0x92, 0x100294ee2\ncall    qword ptr [rax+40h]                                            ; +0x95, 0x100294ee5\ncmp     eax, 3                                                         ; +0x98, 0x100294ee8\nsetnz   al                                                             ; +0x9b, 0x100294eeb\nor      al, r14b                                                       ; +0x9e, 0x100294eee\njnz     short loc_100294F05                                            ; +0xa1, 0x100294ef1\nmov     rdi, rbx                                                       ; +0xa3, 0x100294ef3\nadd     rsp, 8                                                         ; +0xa6, 0x100294ef6\npop     rbx                                                            ; +0xaa, 0x100294efa\npop     r14                                                            ; +0xab, 0x100294efb\npop     r15                                                            ; +0xad, 0x100294efd\npop     rbp                                                            ; +0xaf, 0x100294eff\njmp     EditorPauseLayer__saveLevel                                    ; +0xb0, 0x100294f00\nadd     rsp, 8                                                         ; +0xb5, 0x100294f05\npop     rbx                                                            ; +0xb9, 0x100294f09\npop     r14                                                            ; +0xba, 0x100294f0a\npop     r15                                                            ; +0xbc, 0x100294f0c\npop     rbp                                                            ; +0xbe, 0x100294f0e\nretn                                                                   ; +0xbf, 0x100294f0f", "xrefs": ["sub_100294F10 @ 0x100294f1c", "<???> @ 0x1008f75b0"], "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"}