{"type": "func", "start": 5370293744, "end": 5370294018, "name": "EditorPauseLayer::FLAlert_Clicked", "pseudocode": "// \n// EditorPauseLayer::FLAlert_Clicked from 0x140182df0 to 0x140182f02 (274 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14074ac50\n// > <???> @ 0x140918c98\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:27:37 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall EditorPauseLayer::FLAlert_Clicked(__int64 a1, __int64 a2, char a3)\n{\n  _QWORD *result; // rax\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  __int64 v10; // rax\n  __int64 v11; // rax\n  void *v12; // [rsp+38h] [rbp+10h]\n\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1 && a3 )\n    return (_QWORD *)EditorPauseLayer::onExitEditor(a1 - 552);\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 3 && a3 )\n  {\n    v8 = LocalLevelManager::sharedState(v7);\n    result = GManager::waitForSave(v8, 30.0);\n    if ( *(_QWORD *)(a1 + 24) )\n      return (_QWORD *)LevelEditorLayer::saveLevel();\n  }\n  else\n  {\n    result = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n    if ( (_DWORD)result == 4 && a3 )\n    {\n      v10 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v12 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager(v12);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v10 = qword_14090BFD0;\n      }\n      *(_BYTE *)(v10 + 963) = 1;\n      v11 = cocos2d::CCApplication::sharedApplication(v9);\n      return (_QWORD *)(*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v11 + 96LL))(\n                         v11,\n                         \"https://www.boomlings.com/GDEditor\");\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorPauseLayer::FLAlert_Clicked from 0x140182df0 to 0x140182f02 (274 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14074ac50\n; > <???> @ 0x140918c98\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:27:37 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140182df0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140182df5\npush    rdi                                                            ; +0xa, 0x140182dfa\nsub     rsp, 20h                                                       ; +0xb, 0x140182dfb\nmovzx   edi, r8b                                                       ; +0xf, 0x140182dff\nmov     rbx, rdx                                                       ; +0x13, 0x140182e03\nmov     rsi, rcx                                                       ; +0x16, 0x140182e06\nmov     rax, [rdx]                                                     ; +0x19, 0x140182e09\nmov     rcx, rdx                                                       ; +0x1c, 0x140182e0c\ncall    qword ptr [rax+38h]                                            ; +0x1f, 0x140182e0f\ncmp     eax, 1                                                         ; +0x22, 0x140182e12\njnz     short loc_140182E37                                            ; +0x25, 0x140182e15\ntest    dil, dil                                                       ; +0x27, 0x140182e17\njz      short loc_140182E37                                            ; +0x2a, 0x140182e1a\nlea     rcx, [rsi-228h]                                                ; +0x2c, 0x140182e1c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x33, 0x140182e23\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x38, 0x140182e28\nadd     rsp, 20h                                                       ; +0x3d, 0x140182e2d\npop     rdi                                                            ; +0x41, 0x140182e31\njmp     EditorPauseLayer__onExitEditor                                 ; +0x42, 0x140182e32\nmov     rax, [rbx]                                                     ; +0x47, 0x140182e37\nmov     rcx, rbx                                                       ; +0x4a, 0x140182e3a\ncall    qword ptr [rax+38h]                                            ; +0x4d, 0x140182e3d\ncmp     eax, 3                                                         ; +0x50, 0x140182e40\njnz     short loc_140182E80                                            ; +0x53, 0x140182e43\ntest    dil, dil                                                       ; +0x55, 0x140182e45\njz      short loc_140182E80                                            ; +0x58, 0x140182e48\ncall    LocalLevelManager__sharedState                                 ; +0x5a, 0x140182e4a\nmov     rcx, rax                                                       ; +0x5f, 0x140182e4f\nmovsd   xmm1, cs:qword_140835380                                       ; +0x62, 0x140182e52\ncall    GManager__waitForSave                                          ; +0x6a, 0x140182e5a\nmov     rcx, [rsi+18h]                                                 ; +0x6f, 0x140182e5f\ntest    rcx, rcx                                                       ; +0x73, 0x140182e63\njz      loc_140182EF2                                                  ; +0x76, 0x140182e66\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7c, 0x140182e6c\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x81, 0x140182e71\nadd     rsp, 20h                                                       ; +0x86, 0x140182e76\npop     rdi                                                            ; +0x8a, 0x140182e7a\njmp     LevelEditorLayer__saveLevel                                    ; +0x8b, 0x140182e7b\nmov     rax, [rbx]                                                     ; +0x90, 0x140182e80\nmov     rcx, rbx                                                       ; +0x93, 0x140182e83\ncall    qword ptr [rax+38h]                                            ; +0x96, 0x140182e86\ncmp     eax, 4                                                         ; +0x99, 0x140182e89\njnz     short loc_140182EF2                                            ; +0x9c, 0x140182e8c\ntest    dil, dil                                                       ; +0x9e, 0x140182e8e\njz      short loc_140182EF2                                            ; +0xa1, 0x140182e91\nmov     rax, cs:qword_14090BFD0                                        ; +0xa3, 0x140182e93\ntest    rax, rax                                                       ; +0xaa, 0x140182e9a\njnz     short loc_140182ED1                                            ; +0xad, 0x140182e9d\nmov     ecx, 6E8h; Size                                                ; +0xaf, 0x140182e9f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb4, 0x140182ea4\nmov     [rsp+28h+arg_8], rax                                           ; +0xb9, 0x140182ea9\nmov     rcx, rax                                                       ; +0xbe, 0x140182eae\ncall    GameManager__GameManager                                       ; +0xc1, 0x140182eb1\nnop                                                                    ; +0xc6, 0x140182eb6\nmov     cs:qword_14090BFD0, rax                                        ; +0xc7, 0x140182eb7\nmov     rcx, [rax]                                                     ; +0xce, 0x140182ebe\nmov     rdx, [rcx+48h]                                                 ; +0xd1, 0x140182ec1\nmov     rcx, rax                                                       ; +0xd5, 0x140182ec5\ncall    rdx                                                            ; +0xd8, 0x140182ec8\nmov     rax, cs:qword_14090BFD0                                        ; +0xda, 0x140182eca\nmov     byte ptr [rax+3C3h], 1                                         ; +0xe1, 0x140182ed1\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0xe8, 0x140182ed8\nmov     rcx, [rax]                                                     ; +0xee, 0x140182ede\nmov     r8, [rcx+60h]                                                  ; +0xf1, 0x140182ee1\nlea     rdx, aHttpsWwwBoomli_17; \"https://www.boomlings.com/GDEditor\"  ; +0xf5, 0x140182ee5\nmov     rcx, rax                                                       ; +0xfc, 0x140182eec\ncall    r8                                                             ; +0xff, 0x140182eef\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x102, 0x140182ef2\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x107, 0x140182ef7\nadd     rsp, 20h                                                       ; +0x10c, 0x140182efc\npop     rdi                                                            ; +0x110, 0x140182f00\nretn                                                                   ; +0x111, 0x140182f01", "xrefs": ["<???> @ 0x14074ac50", "<???> @ 0x140918c98"], "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"}