{"type": "func", "start": 5371430736, "end": 5371431128, "name": "GJMessagePopup::onRemove", "pseudocode": "// \n// GJMessagePopup::onRemove from 0x140298750 to 0x1402988d8 (392 bytes)\n// \n// 2 xrefs:\n// > GJMessagePopup::loadFromGJMessage @ 0x14029834a\n// > <???> @ 0x1406d1c7c\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 GJMessagePopup::onRemove(GJMessagePopup *a1, cocos2d::CCObject *a2)\n{\n  FLAlertLayerProtocol *v2; // rdi\n  FLAlertLayer *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[32]; // [rsp+70h] [rbp-28h] BYREF\n  FLAlertLayer *v9; // [rsp+B0h] [rbp+18h]\n\n  v2 = &a1->FLAlertLayerProtocol;\n  if ( !a1 )\n    v2 = nullptr;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003AA10(0x40u);\n  v6 = 53;\n  v7 = 63;\n  strcpy((char *)v5, \"Are you sure you want to <cr>delete</c> this message?\");\n  v9 = (FLAlertLayer *)operator new(0x278u);\n  v3 = FLAlertLayer::FLAlertLayer(v9);\n  if ( v3 )\n  {\n    v4 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n    if ( FLAlertLayer::init((__int64)v3, (__int64)v2, \"Delete\", v4, \"Back\", \"Delete\", 380.0, 0, 0, 1.0) )\n    {\n      cocos2d::CCObject::autorelease(v3);\n    }\n    else\n    {\n      ((void (__fastcall *)(FLAlertLayer *, __int64))v3->~FLAlertLayer)(v3, 1);\n      v3 = nullptr;\n    }\n  }\n  sub_14003A830((__int64)&v5);\n  ButtonSprite::updateBGImage(v3->m_button2, \"GJ_button_06.png\");\n  v3->setTag(v3, 2);\n  v3->show(v3);\n}", "assembly": "; \n; GJMessagePopup::onRemove from 0x140298750 to 0x1402988d8 (392 bytes)\n; \n; 2 xrefs:\n; > GJMessagePopup::loadFromGJMessage @ 0x14029834a\n; > <???> @ 0x1406d1c7c\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, 0x140298750\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140298755\npush    rdi                                                            ; +0xa, 0x14029875a\nsub     rsp, 90h                                                       ; +0xb, 0x14029875b\nlea     rdi, [rcx+288h]                                                ; +0x12, 0x140298762\nxor     esi, esi                                                       ; +0x19, 0x140298769\ntest    rcx, rcx                                                       ; +0x1b, 0x14029876b\ncmovz   rdi, rsi                                                       ; +0x1e, 0x14029876e\nxorps   xmm0, xmm0                                                     ; +0x22, 0x140298772\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x25, 0x140298775\nmov     [rsp+98h+var_38], rsi                                          ; +0x2a, 0x14029877a\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x2f, 0x14029877f\nlea     ecx, [rsi+40h]                                                 ; +0x38, 0x140298788\ncall    sub_14003AA10                                                  ; +0x3b, 0x14029878b\nmov     rcx, rax                                                       ; +0x40, 0x140298790\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x43, 0x140298793\nmov     [rsp+98h+var_38], 35h ; '5'                                    ; +0x48, 0x140298798\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x51, 0x1402987a1\nmovups  xmm0, cs:xmmword_140547470                                     ; +0x5a, 0x1402987aa\nmovups  xmmword ptr [rax], xmm0                                        ; +0x61, 0x1402987b1\nmovups  xmm1, cs:xmmword_140547480                                     ; +0x64, 0x1402987b4\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6b, 0x1402987bb\nmovups  xmm0, cs:xmmword_140547490                                     ; +0x6f, 0x1402987bf\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x76, 0x1402987c6\nmov     eax, cs:dword_1405474A0                                        ; +0x7a, 0x1402987ca\nmov     [rcx+30h], eax                                                 ; +0x80, 0x1402987d0\nmovzx   eax, cs:byte_1405474A4                                         ; +0x83, 0x1402987d3\nmov     [rcx+34h], al                                                  ; +0x8a, 0x1402987da\nmov     [rcx+35h], sil                                                 ; +0x8d, 0x1402987dd\nlea     rax, [rsp+98h+var_48]                                          ; +0x91, 0x1402987e1\nmov     [rsp+98h+arg_0], rax                                           ; +0x96, 0x1402987e6\nmov     ecx, 278h; Size                                                ; +0x9e, 0x1402987ee\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa3, 0x1402987f3\nmov     [rsp+98h+arg_10], rax                                          ; +0xa8, 0x1402987f8\nmov     rcx, rax                                                       ; +0xb0, 0x140298800\ncall    FLAlertLayer__FLAlertLayer                                     ; +0xb3, 0x140298803\nmov     rbx, rax                                                       ; +0xb8, 0x140298808\ntest    rax, rax                                                       ; +0xbb, 0x14029880b\njz      short loc_14029888C                                            ; +0xbe, 0x14029880e\nlea     rdx, [rsp+98h+var_48]                                          ; +0xc0, 0x140298810\nlea     rcx, [rsp+98h+var_28]                                          ; +0xc5, 0x140298815\ncall    sub_14003BDB0                                                  ; +0xca, 0x14029881a\nmovss   xmm0, cs:flt_140622C24                                         ; +0xcf, 0x14029881f\nmovss   [rsp+98h+var_50], xmm0                                         ; +0xd7, 0x140298827\nxorps   xmm1, xmm1                                                     ; +0xdd, 0x14029882d\nmovss   [rsp+98h+var_58], xmm1                                         ; +0xe0, 0x140298830\nmov     [rsp+98h+var_60], sil                                          ; +0xe6, 0x140298836\nmovss   xmm0, cs:dword_140623478                                       ; +0xeb, 0x14029883b\nmovss   [rsp+98h+var_68], xmm0                                         ; +0xf3, 0x140298843\nlea     r8, aDelete_0; \"Delete\"                                        ; +0xf9, 0x140298849\nmov     [rsp+98h+var_70], r8                                           ; +0x100, 0x140298850\nlea     rcx, aBack; \"Back\"                                             ; +0x105, 0x140298855\nmov     [rsp+98h+var_78], rcx                                          ; +0x10c, 0x14029885c\nmov     r9, rax                                                        ; +0x111, 0x140298861\nmov     rdx, rdi                                                       ; +0x114, 0x140298864\nmov     rcx, rbx                                                       ; +0x117, 0x140298867\ncall    FLAlertLayer__init                                             ; +0x11a, 0x14029886a\nmov     rcx, rbx                                                       ; +0x11f, 0x14029886f\ntest    al, al                                                         ; +0x122, 0x140298872\njz      short loc_14029887E                                            ; +0x124, 0x140298874\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x126, 0x140298876\njmp     short loc_14029888C                                            ; +0x12c, 0x14029887c\nmov     rax, [rbx]                                                     ; +0x12e, 0x14029887e\nmov     edx, 1                                                         ; +0x131, 0x140298881\ncall    qword ptr [rax+8]                                              ; +0x136, 0x140298886\nmov     rbx, rsi                                                       ; +0x139, 0x140298889\nlea     rcx, [rsp+98h+var_48]                                          ; +0x13c, 0x14029888c\ncall    sub_14003A830                                                  ; +0x141, 0x140298891\nlea     rdx, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x146, 0x140298896\nmov     rcx, [rbx+258h]                                                ; +0x14d, 0x14029889d\ncall    ButtonSprite__updateBGImage                                    ; +0x154, 0x1402988a4\nmov     rax, [rbx]                                                     ; +0x159, 0x1402988a9\nmov     edx, 2                                                         ; +0x15c, 0x1402988ac\nmov     rcx, rbx                                                       ; +0x161, 0x1402988b1\ncall    qword ptr [rax+40h]                                            ; +0x164, 0x1402988b4\nmov     rax, [rbx]                                                     ; +0x167, 0x1402988b7\nmov     rcx, rbx                                                       ; +0x16a, 0x1402988ba\ncall    qword ptr [rax+410h]                                           ; +0x16d, 0x1402988bd\nlea     r11, [rsp+98h+var_8]                                           ; +0x173, 0x1402988c3\nmov     rbx, [r11+18h]                                                 ; +0x17b, 0x1402988cb\nmov     rsi, [r11+28h]                                                 ; +0x17f, 0x1402988cf\nmov     rsp, r11                                                       ; +0x183, 0x1402988d3\npop     rdi                                                            ; +0x186, 0x1402988d6\nretn                                                                   ; +0x187, 0x1402988d7", "xrefs": ["GJMessagePopup::loadFromGJMessage @ 0x14029834a", "<???> @ 0x1406d1c7c"], "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"}