{"type": "func", "start": 5369487264, "end": 5369487672, "name": "GJMessageCell::onDeleteMessage", "pseudocode": "// \n// GJMessageCell::onDeleteMessage from 0x1400bdfa0 to 0x1400be138 (408 bytes)\n// \n// 2 xrefs:\n// > GJMessageCell::loadFromMessage @ 0x1400bd855\n// > <???> @ 0x1406c7e48\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=2\nvoid GJMessageCell::onDeleteMessage(GJMessageCell *a1, cocos2d::CCObject *a2)\n{\n  GJUserMessage *m_message; // rax\n  FLAlertLayerProtocol *v3; // rdi\n  FLAlertLayer *v4; // rbx\n  __int64 v5; // rax\n  __int128 v6; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v7; // [rsp+60h] [rbp-38h]\n  __int64 v8; // [rsp+68h] [rbp-30h]\n  _BYTE v9[40]; // [rsp+70h] [rbp-28h] BYREF\n  FLAlertLayer *v10; // [rsp+B0h] [rbp+18h]\n\n  m_message = a1->m_message;\n  if ( m_message && m_message->m_accountID > 0 )\n  {\n    v3 = &a1->FLAlertLayerProtocol;\n    v6 = 0;\n    *(_QWORD *)&v6 = sub_14003AA10(0x40u);\n    v7 = 53;\n    v8 = 63;\n    strcpy((char *)v6, \"Are you sure you want to <cr>delete</c> this message?\");\n    v10 = (FLAlertLayer *)operator new(0x278u);\n    v4 = FLAlertLayer::FLAlertLayer(v10);\n    if ( v4 )\n    {\n      v5 = sub_14003BDB0((__int64)v9, (__int64)&v6);\n      if ( FLAlertLayer::init((__int64)v4, (__int64)v3, \"Delete\", v5, \"Back\", \"Delete\", 380.0, 0, 0, 1.0) )\n      {\n        cocos2d::CCObject::autorelease(v4);\n      }\n      else\n      {\n        ((void (__fastcall *)(FLAlertLayer *, __int64))v4->~FLAlertLayer)(v4, 1);\n        v4 = nullptr;\n      }\n    }\n    sub_14003A830((__int64)&v6);\n    ButtonSprite::updateBGImage(v4->m_button2, \"GJ_button_06.png\");\n    v4->setTag(v4, 1);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; GJMessageCell::onDeleteMessage from 0x1400bdfa0 to 0x1400be138 (408 bytes)\n; \n; 2 xrefs:\n; > GJMessageCell::loadFromMessage @ 0x1400bd855\n; > <???> @ 0x1406c7e48\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400bdfa0\npush    rdi                                                            ; +0x5, 0x1400bdfa5\nsub     rsp, 90h                                                       ; +0x6, 0x1400bdfa6\nmov     rax, [rcx+248h]                                                ; +0xd, 0x1400bdfad\ntest    rax, rax                                                       ; +0x14, 0x1400bdfb4\njz      loc_1400BE127                                                  ; +0x17, 0x1400bdfb7\ncmp     dword ptr [rax+144h], 0                                        ; +0x1d, 0x1400bdfbd\njle     loc_1400BE127                                                  ; +0x24, 0x1400bdfc4\nlea     rdi, [rcx+230h]                                                ; +0x2a, 0x1400bdfca\nxorps   xmm0, xmm0                                                     ; +0x31, 0x1400bdfd1\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x34, 0x1400bdfd4\nmov     [rsp+98h+var_38], 0                                            ; +0x39, 0x1400bdfd9\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x42, 0x1400bdfe2\nmov     ecx, 40h ; '@'                                                 ; +0x4b, 0x1400bdfeb\ncall    sub_14003AA10                                                  ; +0x50, 0x1400bdff0\nmov     rcx, rax                                                       ; +0x55, 0x1400bdff5\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x58, 0x1400bdff8\nmov     [rsp+98h+var_38], 35h ; '5'                                    ; +0x5d, 0x1400bdffd\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x66, 0x1400be006\nmovups  xmm0, cs:xmmword_140547470                                     ; +0x6f, 0x1400be00f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x76, 0x1400be016\nmovups  xmm1, cs:xmmword_140547480                                     ; +0x79, 0x1400be019\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x80, 0x1400be020\nmovups  xmm0, cs:xmmword_140547490                                     ; +0x84, 0x1400be024\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x8b, 0x1400be02b\nmov     eax, cs:dword_1405474A0                                        ; +0x8f, 0x1400be02f\nmov     [rcx+30h], eax                                                 ; +0x95, 0x1400be035\nmovzx   eax, cs:byte_1405474A4                                         ; +0x98, 0x1400be038\nmov     [rcx+34h], al                                                  ; +0x9f, 0x1400be03f\nmov     byte ptr [rcx+35h], 0                                          ; +0xa2, 0x1400be042\nlea     rax, [rsp+98h+var_48]                                          ; +0xa6, 0x1400be046\nmov     [rsp+98h+arg_0], rax                                           ; +0xab, 0x1400be04b\nmov     ecx, 278h; Size                                                ; +0xb3, 0x1400be053\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb8, 0x1400be058\nmov     [rsp+98h+arg_10], rax                                          ; +0xbd, 0x1400be05d\nmov     rcx, rax                                                       ; +0xc5, 0x1400be065\ncall    FLAlertLayer__FLAlertLayer                                     ; +0xc8, 0x1400be068\nmov     rbx, rax                                                       ; +0xcd, 0x1400be06d\ntest    rax, rax                                                       ; +0xd0, 0x1400be070\njz      short loc_1400BE0F0                                            ; +0xd3, 0x1400be073\nlea     rdx, [rsp+98h+var_48]                                          ; +0xd5, 0x1400be075\nlea     rcx, [rsp+98h+var_28]                                          ; +0xda, 0x1400be07a\ncall    sub_14003BDB0                                                  ; +0xdf, 0x1400be07f\nmovss   xmm0, cs:flt_140622C24                                         ; +0xe4, 0x1400be084\nmovss   [rsp+98h+var_50], xmm0                                         ; +0xec, 0x1400be08c\nxorps   xmm1, xmm1                                                     ; +0xf2, 0x1400be092\nmovss   [rsp+98h+var_58], xmm1                                         ; +0xf5, 0x1400be095\nmov     [rsp+98h+var_60], 0                                            ; +0xfb, 0x1400be09b\nmovss   xmm0, cs:dword_140623478                                       ; +0x100, 0x1400be0a0\nmovss   [rsp+98h+var_68], xmm0                                         ; +0x108, 0x1400be0a8\nlea     r8, aDelete_0; \"Delete\"                                        ; +0x10e, 0x1400be0ae\nmov     [rsp+98h+var_70], r8                                           ; +0x115, 0x1400be0b5\nlea     rcx, aBack; \"Back\"                                             ; +0x11a, 0x1400be0ba\nmov     [rsp+98h+var_78], rcx                                          ; +0x121, 0x1400be0c1\nmov     r9, rax                                                        ; +0x126, 0x1400be0c6\nmov     rdx, rdi                                                       ; +0x129, 0x1400be0c9\nmov     rcx, rbx                                                       ; +0x12c, 0x1400be0cc\ncall    FLAlertLayer__init                                             ; +0x12f, 0x1400be0cf\nmov     rcx, rbx                                                       ; +0x134, 0x1400be0d4\ntest    al, al                                                         ; +0x137, 0x1400be0d7\njz      short loc_1400BE0E3                                            ; +0x139, 0x1400be0d9\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x13b, 0x1400be0db\njmp     short loc_1400BE0F0                                            ; +0x141, 0x1400be0e1\nmov     rax, [rbx]                                                     ; +0x143, 0x1400be0e3\nmov     edx, 1                                                         ; +0x146, 0x1400be0e6\ncall    qword ptr [rax+8]                                              ; +0x14b, 0x1400be0eb\nxor     ebx, ebx                                                       ; +0x14e, 0x1400be0ee\nlea     rcx, [rsp+98h+var_48]                                          ; +0x150, 0x1400be0f0\ncall    sub_14003A830                                                  ; +0x155, 0x1400be0f5\nlea     rdx, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x15a, 0x1400be0fa\nmov     rcx, [rbx+258h]                                                ; +0x161, 0x1400be101\ncall    ButtonSprite__updateBGImage                                    ; +0x168, 0x1400be108\nmov     rax, [rbx]                                                     ; +0x16d, 0x1400be10d\nmov     edx, 1                                                         ; +0x170, 0x1400be110\nmov     rcx, rbx                                                       ; +0x175, 0x1400be115\ncall    qword ptr [rax+40h]                                            ; +0x178, 0x1400be118\nmov     rax, [rbx]                                                     ; +0x17b, 0x1400be11b\nmov     rcx, rbx                                                       ; +0x17e, 0x1400be11e\ncall    qword ptr [rax+410h]                                           ; +0x181, 0x1400be121\nmov     rbx, [rsp+98h+arg_8]                                           ; +0x187, 0x1400be127\nadd     rsp, 90h                                                       ; +0x18f, 0x1400be12f\npop     rdi                                                            ; +0x196, 0x1400be136\nretn                                                                   ; +0x197, 0x1400be137", "xrefs": ["GJMessageCell::loadFromMessage @ 0x1400bd855", "<???> @ 0x1406c7e48"], "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"}