{"type": "func", "start": 4297681152, "end": 4297681571, "name": "GJWriteMessagePopup::closeMessagePopup", "pseudocode": "// \n// GJWriteMessagePopup::closeMessagePopup from 0x100296900 to 0x100296aa3 (419 bytes)\n// \n// 3 xrefs:\n// > GJWriteMessagePopup::onClose @ 0x1002963c7\n// > GJWriteMessagePopup::keyBackClicked @ 0x100296ad7\n// > sub_100296AE0 @ 0x100296aee\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:51 +0000\n// \n\n__int64 __fastcall GJWriteMessagePopup::closeMessagePopup(__int64 a1, int a2, __m128 a3)\n{\n  unsigned int v3; // eax\n  __m128 *v4; // r15\n  __int64 v5; // r14\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 StoredUserMessage; // rax\n  char *v9; // rax\n  std::string __str; // [rsp+0h] [rbp-50h] BYREF\n  std::string v12; // [rsp+20h] [rbp-30h] BYREF\n\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 1160LL))(*(_QWORD *)(a1 + 704), 0);\n  (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 712) + 1160LL))(*(_QWORD *)(a1 + 712), 0);\n  if ( a2 || !*(_DWORD *)(a1 + 696) )\n    goto LABEL_20;\n  v3 = *(unsigned __int8 *)(a1 + 720);\n  if ( (v3 & 1) != 0 )\n  {\n    if ( !*(_QWORD *)(a1 + 728) )\n      goto LABEL_18;\nLABEL_7:\n    v4 = (__m128 *)(a1 + 720);\n    v5 = GJUserMessage::create_1();\n    if ( (*(_BYTE *)(a1 + 720) & 1) != 0 )\n    {\n      sub_10001AD30(&__str, *(const void **)(a1 + 736), *(_QWORD *)(a1 + 728));\n    }\n    else\n    {\n      __str.__r_.__value_.__r.__words[2] = *(_QWORD *)(a1 + 736);\n      a3 = *v4;\n      *(__m128 *)&__str.__r_.__value_.__l.0 = *v4;\n    }\n    std::string::operator=((std::string *)(v5 + 352), &__str);\n    if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(__str.__r_.__value_.__l.__data_);\n    if ( (*(_BYTE *)(a1 + 744) & 1) != 0 )\n    {\n      sub_10001AD30(&v12, *(const void **)(a1 + 760), *(_QWORD *)(a1 + 752));\n    }\n    else\n    {\n      v12.__r_.__value_.__r.__words[2] = *(_QWORD *)(a1 + 760);\n      a3 = *(__m128 *)(a1 + 744);\n      *(__m128 *)&v12.__r_.__value_.__l.0 = a3;\n    }\n    std::string::operator=((std::string *)(v5 + 328), &v12);\n    if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v12.__r_.__value_.__l.__data_);\n    v6 = GameLevelManager::sharedState(*(double *)a3.i64);\n    *(double *)a3.i64 = GameLevelManager::storeUserMessageReply(v6, *(unsigned int *)(a1 + 696), v5);\n    goto LABEL_18;\n  }\n  if ( v3 >> 1 )\n    goto LABEL_7;\nLABEL_18:\n  v7 = GameLevelManager::sharedState(*(double *)a3.i64);\n  StoredUserMessage = GameLevelManager::getStoredUserMessage(v7, *(unsigned int *)(a1 + 696));\n  if ( StoredUserMessage )\n  {\n    v9 = sub_100293190(StoredUserMessage);\n    v9[596] = 1;\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 1312LL))(v9);\n  }\nLABEL_20:\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n}", "assembly": "; \n; GJWriteMessagePopup::closeMessagePopup from 0x100296900 to 0x100296aa3 (419 bytes)\n; \n; 3 xrefs:\n; > GJWriteMessagePopup::onClose @ 0x1002963c7\n; > GJWriteMessagePopup::keyBackClicked @ 0x100296ad7\n; > sub_100296AE0 @ 0x100296aee\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:51 +0000\n; \npush    rbp                                                            ; +0x0, 0x100296900\nmov     rbp, rsp                                                       ; +0x1, 0x100296901\npush    r15                                                            ; +0x4, 0x100296904\npush    r14                                                            ; +0x6, 0x100296906\npush    rbx                                                            ; +0x8, 0x100296908\nsub     rsp, 38h                                                       ; +0x9, 0x100296909\nmov     r14d, esi                                                      ; +0xd, 0x10029690d\nmov     rbx, rdi                                                       ; +0x10, 0x100296910\nmov     rdi, [rdi+2C0h]                                                ; +0x13, 0x100296913\nmov     rax, [rdi]                                                     ; +0x1a, 0x10029691a\nxor     esi, esi                                                       ; +0x1d, 0x10029691d\ncall    qword ptr [rax+488h]                                           ; +0x1f, 0x10029691f\nmov     rdi, [rbx+2C8h]                                                ; +0x25, 0x100296925\nmov     rax, [rdi]                                                     ; +0x2c, 0x10029692c\nxor     esi, esi                                                       ; +0x2f, 0x10029692f\ncall    qword ptr [rax+488h]                                           ; +0x31, 0x100296931\ntest    r14d, r14d                                                     ; +0x37, 0x100296937\njnz     loc_100296A79                                                  ; +0x3a, 0x10029693a\ncmp     dword ptr [rbx+2B8h], 0                                        ; +0x40, 0x100296940\njz      loc_100296A79                                                  ; +0x47, 0x100296947\nmovzx   eax, byte ptr [rbx+2D0h]                                       ; +0x4d, 0x10029694d\ntest    al, 1                                                          ; +0x54, 0x100296954\njnz     short loc_100296964                                            ; +0x56, 0x100296956\nshr     eax, 1                                                         ; +0x58, 0x100296958\ntest    rax, rax                                                       ; +0x5a, 0x10029695a\njnz     short loc_100296974                                            ; +0x5d, 0x10029695d\njmp     loc_100296A46                                                  ; +0x5f, 0x10029695f\nmov     rax, [rbx+2D8h]                                                ; +0x64, 0x100296964\ntest    rax, rax                                                       ; +0x6b, 0x10029696b\njz      loc_100296A46                                                  ; +0x6e, 0x10029696e\nlea     r15, [rbx+2D0h]                                                ; +0x74, 0x100296974\ncall    GJUserMessage__create_1                                        ; +0x7b, 0x10029697b\nmov     r14, rax                                                       ; +0x80, 0x100296980\ntest    byte ptr [r15], 1                                              ; +0x83, 0x100296983\njnz     short loc_10029699B                                            ; +0x87, 0x100296987\nmov     rax, [r15+10h]                                                 ; +0x89, 0x100296989\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0x8d, 0x10029698d\nmovups  xmm0, xmmword ptr [r15]                                        ; +0x91, 0x100296991\nmovaps  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0x95, 0x100296995\njmp     short loc_1002969B2                                            ; +0x99, 0x100296999\nmov     rdx, [rbx+2D8h]                                                ; +0x9b, 0x10029699b\nmov     rsi, [rbx+2E0h]                                                ; +0xa2, 0x1002969a2\nlea     rdi, [rbp+__str]                                               ; +0xa9, 0x1002969a9\ncall    sub_10001AD30                                                  ; +0xad, 0x1002969ad\nlea     r15, [rbp+__str.__r_.__value_+10h]                             ; +0xb2, 0x1002969b2\nlea     rdi, [r14+160h]; this                                          ; +0xb6, 0x1002969b6\nlea     rsi, [rbp+__str]; __str                                        ; +0xbd, 0x1002969bd\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xc1, 0x1002969c1\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0xc6, 0x1002969c6\njz      short loc_1002969D5                                            ; +0xca, 0x1002969ca\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0xcc, 0x1002969cc\ncall    __ZdlPv; operator delete(void *)                               ; +0xd0, 0x1002969d0\ntest    byte ptr [rbx+2E8h], 1                                         ; +0xd5, 0x1002969d5\njnz     short loc_1002969F6                                            ; +0xdc, 0x1002969dc\nlea     rax, [rbx+2E8h]                                                ; +0xde, 0x1002969de\nmov     rcx, [rax+10h]                                                 ; +0xe5, 0x1002969e5\nmov     qword ptr [rbp+var_30.__r_.__value_+10h], rcx                  ; +0xe9, 0x1002969e9\nmovups  xmm0, xmmword ptr [rax]                                        ; +0xed, 0x1002969ed\nmovaps  xmmword ptr [rbp+var_30.__r_.__value_], xmm0                   ; +0xf0, 0x1002969f0\njmp     short loc_100296A0D                                            ; +0xf4, 0x1002969f4\nmov     rdx, [rbx+2F0h]                                                ; +0xf6, 0x1002969f6\nmov     rsi, [rbx+2F8h]                                                ; +0xfd, 0x1002969fd\nlea     rdi, [rbp+var_30]                                              ; +0x104, 0x100296a04\ncall    sub_10001AD30                                                  ; +0x108, 0x100296a08\nlea     r15, [rbp+var_30.__r_.__value_+10h]                            ; +0x10d, 0x100296a0d\nlea     rdi, [r14+148h]; this                                          ; +0x111, 0x100296a11\nlea     rsi, [rbp+var_30]; __str                                       ; +0x118, 0x100296a18\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x11c, 0x100296a1c\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x121, 0x100296a21\njz      short loc_100296A30                                            ; +0x125, 0x100296a25\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0x127, 0x100296a27\ncall    __ZdlPv; operator delete(void *)                               ; +0x12b, 0x100296a2b\ncall    GameLevelManager__sharedState                                  ; +0x130, 0x100296a30\nmov     esi, [rbx+2B8h]                                                ; +0x135, 0x100296a35\nmov     rdi, rax                                                       ; +0x13b, 0x100296a3b\nmov     rdx, r14                                                       ; +0x13e, 0x100296a3e\ncall    GameLevelManager__storeUserMessageReply                        ; +0x141, 0x100296a41\ncall    GameLevelManager__sharedState                                  ; +0x146, 0x100296a46\nmov     esi, [rbx+2B8h]                                                ; +0x14b, 0x100296a4b\nmov     rdi, rax                                                       ; +0x151, 0x100296a51\ncall    GameLevelManager__getStoredUserMessage                         ; +0x154, 0x100296a54\ntest    rax, rax                                                       ; +0x159, 0x100296a59\njz      short loc_100296A79                                            ; +0x15c, 0x100296a5c\nmov     rdi, rax                                                       ; +0x15e, 0x100296a5e\ncall    sub_100293190                                                  ; +0x161, 0x100296a61\nmov     byte ptr [rax+254h], 1                                         ; +0x166, 0x100296a66\nmov     rcx, [rax]                                                     ; +0x16d, 0x100296a6d\nmov     rdi, rax                                                       ; +0x170, 0x100296a70\ncall    qword ptr [rcx+520h]                                           ; +0x173, 0x100296a73\nmov     rax, [rbx]                                                     ; +0x179, 0x100296a79\nmov     rdi, rbx                                                       ; +0x17c, 0x100296a7c\nxor     esi, esi                                                       ; +0x17f, 0x100296a7f\ncall    qword ptr [rax+430h]                                           ; +0x181, 0x100296a81\nmov     rax, [rbx]                                                     ; +0x187, 0x100296a87\nmov     rdi, rbx                                                       ; +0x18a, 0x100296a8a\nmov     esi, 1                                                         ; +0x18d, 0x100296a8d\ncall    qword ptr [rax+210h]                                           ; +0x192, 0x100296a92\nadd     rsp, 38h                                                       ; +0x198, 0x100296a98\npop     rbx                                                            ; +0x19c, 0x100296a9c\npop     r14                                                            ; +0x19d, 0x100296a9d\npop     r15                                                            ; +0x19f, 0x100296a9f\npop     rbp                                                            ; +0x1a1, 0x100296aa1\nretn                                                                   ; +0x1a2, 0x100296aa2", "xrefs": ["GJWriteMessagePopup::onClose @ 0x1002963c7", "GJWriteMessagePopup::keyBackClicked @ 0x100296ad7", "sub_100296AE0 @ 0x100296aee"], "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"}