{"type": "func", "start": 5370140032, "end": 5370140440, "name": "GJMessageCell::onDeleteMessage", "pseudocode": "// \n// GJMessageCell::onDeleteMessage from 0x14015d580 to 0x14015d718 (408 bytes)\n// \n// 2 xrefs:\n// > GJMessageCell::loadFromMessage @ 0x14015cdff\n// > <???> @ 0x140917bc4\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:23 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n__int64 __fastcall GJMessageCell::onDeleteMessage(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 v2; // rdi\n  __int64 *v3; // rbx\n  __int64 v4; // rax\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n  void *v9; // [rsp+B0h] [rbp+18h]\n\n  result = *(_QWORD *)(a1 + 584);\n  if ( result && *(int *)(result + 324) > 0 )\n  {\n    v2 = a1 + 560;\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003D460(0x40u);\n    v6 = 53;\n    v7 = 63;\n    strcpy((char *)v5, \"Are you sure you want to <cr>delete</c> this message?\");\n    v9 = operator new(0x298u);\n    v3 = (__int64 *)FLAlertLayer::FLAlertLayer((__int64)v9);\n    if ( v3 )\n    {\n      v4 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n      if ( FLAlertLayer::init(\n             (cocos2d::CCLayerColor *)v3,\n             v2,\n             \"Delete\",\n             v4,\n             (__int64)\"Back\",\n             (__int64)\"Delete\",\n             380.0,\n             0,\n             0,\n             1.0) )\n      {\n        cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n      }\n      else\n      {\n        (*(void (__fastcall **)(__int64 *, __int64))(*v3 + 8))(v3, 1);\n        v3 = nullptr;\n      }\n    }\n    sub_14003D310((__int64)&v5);\n    ButtonSprite::updateBGImage(v3[77], \"GJ_button_06.png\");\n    (*(void (__fastcall **)(__int64 *, __int64))(*v3 + 64))(v3, 1);\n    return (*(__int64 (__fastcall **)(__int64 *))(*v3 + 1064))(v3);\n  }\n  return result;\n}", "assembly": "; \n; GJMessageCell::onDeleteMessage from 0x14015d580 to 0x14015d718 (408 bytes)\n; \n; 2 xrefs:\n; > GJMessageCell::loadFromMessage @ 0x14015cdff\n; > <???> @ 0x140917bc4\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:23 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14015d580\npush    rdi                                                            ; +0x5, 0x14015d585\nsub     rsp, 90h                                                       ; +0x6, 0x14015d586\nmov     rax, [rcx+248h]                                                ; +0xd, 0x14015d58d\ntest    rax, rax                                                       ; +0x14, 0x14015d594\njz      loc_14015D707                                                  ; +0x17, 0x14015d597\ncmp     dword ptr [rax+144h], 0                                        ; +0x1d, 0x14015d59d\njle     loc_14015D707                                                  ; +0x24, 0x14015d5a4\nlea     rdi, [rcx+230h]                                                ; +0x2a, 0x14015d5aa\nxorps   xmm0, xmm0                                                     ; +0x31, 0x14015d5b1\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x34, 0x14015d5b4\nmov     [rsp+98h+var_38], 0                                            ; +0x39, 0x14015d5b9\nmov     [rsp+98h+var_30], 0                                            ; +0x42, 0x14015d5c2\nmov     ecx, 40h ; '@'                                                 ; +0x4b, 0x14015d5cb\ncall    sub_14003D460                                                  ; +0x50, 0x14015d5d0\nmov     rdx, rax                                                       ; +0x55, 0x14015d5d5\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x58, 0x14015d5d8\nmov     [rsp+98h+var_38], 35h ; '5'                                    ; +0x5d, 0x14015d5dd\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x66, 0x14015d5e6\nmovups  xmm0, cs:xmmword_14073A398                                     ; +0x6f, 0x14015d5ef\nmovups  xmmword ptr [rax], xmm0                                        ; +0x76, 0x14015d5f6\nmovups  xmm1, cs:xmmword_14073A3A8                                     ; +0x79, 0x14015d5f9\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x80, 0x14015d600\nmovups  xmm0, cs:xmmword_14073A3B8                                     ; +0x84, 0x14015d604\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x8b, 0x14015d60b\nmov     ecx, cs:dword_14073A3C8                                        ; +0x8f, 0x14015d60f\nmov     [rax+30h], ecx                                                 ; +0x95, 0x14015d615\nmovzx   eax, cs:byte_14073A3CC                                         ; +0x98, 0x14015d618\nmov     [rdx+34h], al                                                  ; +0x9f, 0x14015d61f\nmov     byte ptr [rdx+35h], 0                                          ; +0xa2, 0x14015d622\nlea     rax, [rsp+98h+var_48]                                          ; +0xa6, 0x14015d626\nmov     [rsp+98h+arg_0], rax                                           ; +0xab, 0x14015d62b\nmov     ecx, 298h; Size                                                ; +0xb3, 0x14015d633\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb8, 0x14015d638\nmov     [rsp+98h+arg_10], rax                                          ; +0xbd, 0x14015d63d\nmov     rcx, rax                                                       ; +0xc5, 0x14015d645\ncall    FLAlertLayer__FLAlertLayer                                     ; +0xc8, 0x14015d648\nmov     rbx, rax                                                       ; +0xcd, 0x14015d64d\ntest    rax, rax                                                       ; +0xd0, 0x14015d650\njz      short loc_14015D6D0                                            ; +0xd3, 0x14015d653\nlea     rdx, [rsp+98h+var_48]                                          ; +0xd5, 0x14015d655\nlea     rcx, [rsp+98h+var_28]                                          ; +0xda, 0x14015d65a\ncall    sub_14003F4F0                                                  ; +0xdf, 0x14015d65f\nmovss   xmm0, cs:flt_140835080                                         ; +0xe4, 0x14015d664\nmovss   [rsp+98h+var_50], xmm0                                         ; +0xec, 0x14015d66c\nxorps   xmm1, xmm1                                                     ; +0xf2, 0x14015d672\nmovss   [rsp+98h+var_58], xmm1                                         ; +0xf5, 0x14015d675\nmov     [rsp+98h+var_60], 0                                            ; +0xfb, 0x14015d67b\nmovss   xmm0, cs:dword_140835A04                                       ; +0x100, 0x14015d680\nmovss   [rsp+98h+var_68], xmm0                                         ; +0x108, 0x14015d688\nlea     r8, aDelete_0; \"Delete\"                                        ; +0x10e, 0x14015d68e\nmov     [rsp+98h+var_70], r8                                           ; +0x115, 0x14015d695\nlea     rcx, aBack; \"Back\"                                             ; +0x11a, 0x14015d69a\nmov     [rsp+98h+var_78], rcx                                          ; +0x121, 0x14015d6a1\nmov     r9, rax                                                        ; +0x126, 0x14015d6a6\nmov     rdx, rdi                                                       ; +0x129, 0x14015d6a9\nmov     rcx, rbx                                                       ; +0x12c, 0x14015d6ac\ncall    FLAlertLayer__init                                             ; +0x12f, 0x14015d6af\nmov     rcx, rbx                                                       ; +0x134, 0x14015d6b4\ntest    al, al                                                         ; +0x137, 0x14015d6b7\njz      short loc_14015D6C3                                            ; +0x139, 0x14015d6b9\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x13b, 0x14015d6bb\njmp     short loc_14015D6D0                                            ; +0x141, 0x14015d6c1\nmov     rax, [rbx]                                                     ; +0x143, 0x14015d6c3\nmov     edx, 1                                                         ; +0x146, 0x14015d6c6\ncall    qword ptr [rax+8]                                              ; +0x14b, 0x14015d6cb\nxor     ebx, ebx                                                       ; +0x14e, 0x14015d6ce\nlea     rcx, [rsp+98h+var_48]                                          ; +0x150, 0x14015d6d0\ncall    sub_14003D310                                                  ; +0x155, 0x14015d6d5\nlea     rdx, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x15a, 0x14015d6da\nmov     rcx, [rbx+268h]                                                ; +0x161, 0x14015d6e1\ncall    ButtonSprite__updateBGImage                                    ; +0x168, 0x14015d6e8\nmov     rax, [rbx]                                                     ; +0x16d, 0x14015d6ed\nmov     edx, 1                                                         ; +0x170, 0x14015d6f0\nmov     rcx, rbx                                                       ; +0x175, 0x14015d6f5\ncall    qword ptr [rax+40h]                                            ; +0x178, 0x14015d6f8\nmov     rax, [rbx]                                                     ; +0x17b, 0x14015d6fb\nmov     rcx, rbx                                                       ; +0x17e, 0x14015d6fe\ncall    qword ptr [rax+428h]                                           ; +0x181, 0x14015d701\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x187, 0x14015d707\nadd     rsp, 90h                                                       ; +0x18f, 0x14015d70f\npop     rdi                                                            ; +0x196, 0x14015d716\nretn                                                                   ; +0x197, 0x14015d717", "xrefs": ["GJMessageCell::loadFromMessage @ 0x14015cdff", "<???> @ 0x140917bc4"], "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"}