{"type": "func", "start": 5371432576, "end": 5371433128, "name": "GJMessagePopup::FLAlert_Clicked", "pseudocode": "// \n// GJMessagePopup::FLAlert_Clicked from 0x140298e80 to 0x1402990a8 (552 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140576838\n// > <???> @ 0x1406d1cd0\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 GJMessagePopup::FLAlert_Clicked(GJMessagePopup *a1, FLAlertLayer *a2, bool a3)\n{\n  int v4; // eax\n  GameLevelManager *v5; // rcx\n  CCMenuItemSpriteExtra **p_m_closeButton; // rsi\n  __int64 v7; // rax\n  __int64 v8; // rax\n  UploadActionPopup **p_m_uploadPopup; // rcx\n  GameLevelManager *v10; // rcx\n  FLAlertLayer *v11; // rax\n  __int128 v12; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v13; // [rsp+30h] [rbp-18h]\n  __int64 v14; // [rsp+38h] [rbp-10h]\n  void *v15; // [rsp+68h] [rbp+20h]\n  void *v16; // [rsp+68h] [rbp+20h]\n  void *v17; // [rsp+68h] [rbp+20h]\n\n  if ( a3 )\n  {\n    v4 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) - 1;\n    if ( v4 )\n    {\n      if ( v4 == 1 )\n      {\n        v5 = (GameLevelManager *)qword_1406C2EC0;\n        if ( !qword_1406C2EC0 )\n        {\n          v15 = operator new(0x3D0u);\n          qword_1406C2EC0 = sub_140141280((__int64)v15);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n          v5 = (GameLevelManager *)qword_1406C2EC0;\n        }\n        if ( GameLevelManager::deleteUserMessages(\n               v5,\n               *(GJUserMessage **)&a1->m_uIndexInArray,\n               nullptr,\n               *(_BYTE *)(*(_QWORD *)&a1->m_uIndexInArray + 465LL)) )\n        {\n          p_m_closeButton = &a1[-1].m_closeButton;\n          if ( a1 == (GJMessagePopup *)648 )\n            p_m_closeButton = nullptr;\n          v7 = qword_1406C2EC0;\n          if ( !qword_1406C2EC0 )\n          {\n            v16 = operator new(0x3D0u);\n            qword_1406C2EC0 = sub_140141280((__int64)v16);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n            v7 = qword_1406C2EC0;\n          }\n          *(_QWORD *)(v7 + 808) = p_m_closeButton;\n          v8 = *(_QWORD *)&a1->m_fRotationX;\n          if ( v8 )\n            *(_QWORD *)(v8 + 632) = 0;\n          v12 = 0;\n          *(_QWORD *)&v12 = sub_14003AA10(0x20u);\n          v13 = 19;\n          v14 = 31;\n          strcpy((char *)v12, \"Deleting message...\");\n          p_m_uploadPopup = &a1[-1].m_uploadPopup;\n          if ( a1 == (GJMessagePopup *)648 )\n            p_m_uploadPopup = nullptr;\n          goto LABEL_20;\n        }\n      }\n    }\n    else\n    {\n      v10 = (GameLevelManager *)qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v17 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280((__int64)v17);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v10 = (GameLevelManager *)qword_1406C2EC0;\n      }\n      if ( GameLevelManager::blockUser(v10, *(_DWORD *)(*(_QWORD *)&a1->m_uIndexInArray + 324LL)) )\n      {\n        v12 = 0;\n        *(_QWORD *)&v12 = sub_14003AA10(0x20u);\n        v13 = 16;\n        v14 = 31;\n        strcpy((char *)v12, \"Blocking user...\");\n        p_m_uploadPopup = &a1[-1].m_uploadPopup;\nLABEL_20:\n        v11 = UploadActionPopup::create((__int64)p_m_uploadPopup, (__int64)&v12);\n        *(_QWORD *)&a1->m_fRotationX = v11;\n        v11->show(v11);\n      }\n    }\n  }\n}", "assembly": "; \n; GJMessagePopup::FLAlert_Clicked from 0x140298e80 to 0x1402990a8 (552 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140576838\n; > <???> @ 0x1406d1cd0\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\ntest    r8b, r8b                                                       ; +0x0, 0x140298e80\njz      locret_1402990A7                                               ; +0x3, 0x140298e83\nmov     [rsp+arg_0], rbx                                               ; +0x9, 0x140298e89\nmov     [rsp+arg_8], rbp                                               ; +0xe, 0x140298e8e\nmov     [rsp+arg_10], rsi                                              ; +0x13, 0x140298e93\npush    rdi                                                            ; +0x18, 0x140298e98\nsub     rsp, 40h                                                       ; +0x19, 0x140298e99\nmov     rbx, rcx                                                       ; +0x1d, 0x140298e9d\nmov     rax, [rdx]                                                     ; +0x20, 0x140298ea0\nmov     rcx, rdx                                                       ; +0x23, 0x140298ea3\ncall    qword ptr [rax+38h]                                            ; +0x26, 0x140298ea6\nsub     eax, 1                                                         ; +0x29, 0x140298ea9\njz      loc_140298FE2                                                  ; +0x2c, 0x140298eac\ncmp     eax, 1                                                         ; +0x32, 0x140298eb2\njnz     loc_140299093                                                  ; +0x35, 0x140298eb5\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x3b, 0x140298ebb\ntest    rcx, rcx                                                       ; +0x42, 0x140298ec2\njnz     short loc_140298EF6                                            ; +0x45, 0x140298ec5\nmov     ecx, 3D0h; Size                                                ; +0x47, 0x140298ec7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4c, 0x140298ecc\nmov     [rsp+48h+arg_18], rax                                          ; +0x51, 0x140298ed1\nmov     rcx, rax                                                       ; +0x56, 0x140298ed6\ncall    sub_140141280                                                  ; +0x59, 0x140298ed9\nnop                                                                    ; +0x5e, 0x140298ede\nmov     cs:qword_1406C2EC0, rax                                        ; +0x5f, 0x140298edf\nmov     rdx, [rax]                                                     ; +0x66, 0x140298ee6\nmov     rcx, rax                                                       ; +0x69, 0x140298ee9\ncall    qword ptr [rdx+48h]                                            ; +0x6c, 0x140298eec\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x6f, 0x140298eef\nmov     rdx, [rbx+20h]                                                 ; +0x76, 0x140298ef6\nmovzx   r9d, byte ptr [rdx+1D1h]                                       ; +0x7a, 0x140298efa\nxor     r8d, r8d                                                       ; +0x82, 0x140298f02\ncall    GameLevelManager__deleteUserMessages                           ; +0x85, 0x140298f05\ntest    al, al                                                         ; +0x8a, 0x140298f0a\njz      loc_140299093                                                  ; +0x8c, 0x140298f0c\nlea     rbp, [rbx-288h]                                                ; +0x92, 0x140298f12\nlea     rsi, [rbx-10h]                                                 ; +0x99, 0x140298f19\nxor     edi, edi                                                       ; +0x9d, 0x140298f1d\ntest    rbp, rbp                                                       ; +0x9f, 0x140298f1f\ncmovz   rsi, rdi                                                       ; +0xa2, 0x140298f22\nmov     rax, cs:qword_1406C2EC0                                        ; +0xa6, 0x140298f26\ntest    rax, rax                                                       ; +0xad, 0x140298f2d\njnz     short loc_140298F61                                            ; +0xb0, 0x140298f30\nmov     ecx, 3D0h; Size                                                ; +0xb2, 0x140298f32\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb7, 0x140298f37\nmov     [rsp+48h+arg_18], rax                                          ; +0xbc, 0x140298f3c\nmov     rcx, rax                                                       ; +0xc1, 0x140298f41\ncall    sub_140141280                                                  ; +0xc4, 0x140298f44\nnop                                                                    ; +0xc9, 0x140298f49\nmov     cs:qword_1406C2EC0, rax                                        ; +0xca, 0x140298f4a\nmov     rdx, [rax]                                                     ; +0xd1, 0x140298f51\nmov     rcx, rax                                                       ; +0xd4, 0x140298f54\ncall    qword ptr [rdx+48h]                                            ; +0xd7, 0x140298f57\nmov     rax, cs:qword_1406C2EC0                                        ; +0xda, 0x140298f5a\nmov     [rax+328h], rsi                                                ; +0xe1, 0x140298f61\nmov     rax, [rbx+38h]                                                 ; +0xe8, 0x140298f68\ntest    rax, rax                                                       ; +0xec, 0x140298f6c\njz      short loc_140298F78                                            ; +0xef, 0x140298f6f\nmov     [rax+278h], rdi                                                ; +0xf1, 0x140298f71\nxorps   xmm0, xmm0                                                     ; +0xf8, 0x140298f78\nmovups  [rsp+48h+var_28], xmm0                                         ; +0xfb, 0x140298f7b\nmov     [rsp+48h+var_18], rdi                                          ; +0x100, 0x140298f80\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x105, 0x140298f85\nmov     ecx, 20h ; ' '                                                 ; +0x10e, 0x140298f8e\ncall    sub_14003AA10                                                  ; +0x113, 0x140298f93\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x118, 0x140298f98\nmov     [rsp+48h+var_18], 13h                                          ; +0x11d, 0x140298f9d\nmov     [rsp+48h+var_10], 1Fh                                          ; +0x126, 0x140298fa6\nmovups  xmm0, cs:xmmword_140547438                                     ; +0x12f, 0x140298faf\nmovups  xmmword ptr [rax], xmm0                                        ; +0x136, 0x140298fb6\nmovzx   ecx, cs:word_140547448                                         ; +0x139, 0x140298fb9\nmov     [rax+10h], cx                                                  ; +0x140, 0x140298fc0\nmovzx   ecx, cs:byte_14054744A                                         ; +0x144, 0x140298fc4\nmov     [rax+12h], cl                                                  ; +0x14b, 0x140298fcb\nmov     byte ptr [rax+13h], 0                                          ; +0x14e, 0x140298fce\nlea     rcx, [rbx-8]                                                   ; +0x152, 0x140298fd2\ntest    rbp, rbp                                                       ; +0x156, 0x140298fd6\ncmovz   rcx, rdi                                                       ; +0x159, 0x140298fd9\njmp     loc_140299079                                                  ; +0x15d, 0x140298fdd\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x162, 0x140298fe2\ntest    rcx, rcx                                                       ; +0x169, 0x140298fe9\njnz     short loc_14029901D                                            ; +0x16c, 0x140298fec\nmov     ecx, 3D0h; Size                                                ; +0x16e, 0x140298fee\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x173, 0x140298ff3\nmov     [rsp+48h+arg_18], rax                                          ; +0x178, 0x140298ff8\nmov     rcx, rax                                                       ; +0x17d, 0x140298ffd\ncall    sub_140141280                                                  ; +0x180, 0x140299000\nnop                                                                    ; +0x185, 0x140299005\nmov     cs:qword_1406C2EC0, rax                                        ; +0x186, 0x140299006\nmov     rdx, [rax]                                                     ; +0x18d, 0x14029900d\nmov     rcx, rax                                                       ; +0x190, 0x140299010\ncall    qword ptr [rdx+48h]                                            ; +0x193, 0x140299013\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x196, 0x140299016\nmov     rdx, [rbx+20h]                                                 ; +0x19d, 0x14029901d\nmov     edx, [rdx+144h]                                                ; +0x1a1, 0x140299021\ncall    GameLevelManager__blockUser                                    ; +0x1a7, 0x140299027\ntest    al, al                                                         ; +0x1ac, 0x14029902c\njz      short loc_140299093                                            ; +0x1ae, 0x14029902e\nxorps   xmm0, xmm0                                                     ; +0x1b0, 0x140299030\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x1b3, 0x140299033\nxor     edi, edi                                                       ; +0x1b8, 0x140299038\nmov     [rsp+48h+var_18], rdi                                          ; +0x1ba, 0x14029903a\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x1bf, 0x14029903f\nlea     ecx, [rdi+20h]                                                 ; +0x1c8, 0x140299048\ncall    sub_14003AA10                                                  ; +0x1cb, 0x14029904b\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x1d0, 0x140299050\nmov     [rsp+48h+var_18], 10h                                          ; +0x1d5, 0x140299055\nmov     [rsp+48h+var_10], 1Fh                                          ; +0x1de, 0x14029905e\nmovups  xmm0, cs:xmmword_140571130                                     ; +0x1e7, 0x140299067\nmovups  xmmword ptr [rax], xmm0                                        ; +0x1ee, 0x14029906e\nmov     [rax+10h], dil                                                 ; +0x1f1, 0x140299071\nlea     rcx, [rbx-8]                                                   ; +0x1f5, 0x140299075\nlea     rdx, [rsp+48h+var_28]                                          ; +0x1f9, 0x140299079\ncall    UploadActionPopup__create                                      ; +0x1fe, 0x14029907e\nmov     [rbx+38h], rax                                                 ; +0x203, 0x140299083\nmov     rdx, [rax]                                                     ; +0x207, 0x140299087\nmov     rcx, rax                                                       ; +0x20a, 0x14029908a\ncall    qword ptr [rdx+410h]                                           ; +0x20d, 0x14029908d\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x213, 0x140299093\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x218, 0x140299098\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x21d, 0x14029909d\nadd     rsp, 40h                                                       ; +0x222, 0x1402990a2\npop     rdi                                                            ; +0x226, 0x1402990a6\nretn                                                                   ; +0x227, 0x1402990a7", "xrefs": ["<???> @ 0x140576838", "<???> @ 0x1406d1cd0"], "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"}