{"type": "func", "start": 4297752960, "end": 4297753180, "name": "GJMessagePopup::onRemove", "pseudocode": "// \n// GJMessagePopup::onRemove from 0x1002a8180 to 0x1002a825c (220 bytes)\n// \n// 1 xrefs:\n// > GJMessagePopup::loadFromGJMessage @ 0x1002a7bab\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\nvoid __fastcall GJMessagePopup::onRemove(GJMessagePopup *a1, cocos2d::CCObject *a2)\n{\n  ButtonSprite **v2; // rbx\n  _QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  __p = operator new(0x38u);\n  v3[0] = 57;\n  v3[1] = 53;\n  strcpy((char *)__p, \"Are you sure you want to <cr>delete</c> this message?\");\n  v2 = (ButtonSprite **)FLAlertLayer::create(\n                          &a1->FLAlertLayerProtocol,\n                          \"Delete\",\n                          v3,\n                          \"Back\",\n                          \"Delete\",\n                          0,\n                          380.0,\n                          0.0,\n                          1.0);\n  if ( (v3[0] & 1) != 0 )\n    operator delete(__p);\n  ButtonSprite::updateBGImage(v2[75], \"GJ_button_06.png\");\n  (*(void (__fastcall **)(ButtonSprite **, __int64))&(*v2)->m_fVertexZ)(v2, 2);\n  (*(void (__fastcall **)(ButtonSprite **))&(*v2)[1].m_fTextureTop)(v2);\n}", "assembly": "; \n; GJMessagePopup::onRemove from 0x1002a8180 to 0x1002a825c (220 bytes)\n; \n; 1 xrefs:\n; > GJMessagePopup::loadFromGJMessage @ 0x1002a7bab\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\npush    rbp                                                            ; +0x0, 0x1002a8180\nmov     rbp, rsp                                                       ; +0x1, 0x1002a8181\npush    rbx                                                            ; +0x4, 0x1002a8184\nsub     rsp, 18h                                                       ; +0x5, 0x1002a8185\nmov     rbx, rdi                                                       ; +0x9, 0x1002a8189\nadd     rbx, 288h                                                      ; +0xc, 0x1002a818c\nmov     edi, 38h ; '8'; __sz                                           ; +0x13, 0x1002a8193\ncall    __Znwm; operator new(ulong)                                    ; +0x18, 0x1002a8198\nmov     [rbp+__p], rax                                                 ; +0x1d, 0x1002a819d\nmov     [rbp+var_20], 39h ; '9'                                        ; +0x21, 0x1002a81a1\nmov     [rbp+var_18], 35h ; '5'                                        ; +0x29, 0x1002a81a9\nmov     rcx, 3F6567617373656Dh                                         ; +0x31, 0x1002a81b1\nmov     [rax+2Dh], rcx                                                 ; +0x3b, 0x1002a81bb\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_8+20h; \"ete</c> this message?\" ; +0x3f, 0x1002a81bf\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x46, 0x1002a81c6\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_8+10h; \" want to <cr>delete</c> this message?\" ; +0x4a, 0x1002a81ca\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x51, 0x1002a81d1\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_8; \"Are you sure you want to <cr>delete</c>\"... ; +0x55, 0x1002a81d5\nmovups  xmmword ptr [rax], xmm0                                        ; +0x5c, 0x1002a81dc\nmov     byte ptr [rax+35h], 0                                          ; +0x5f, 0x1002a81df\nlea     rcx, aBack; \"Back\"                                             ; +0x63, 0x1002a81e3\nlea     rsi, aDelete_0; \"Delete\"                                       ; +0x6a, 0x1002a81ea\nlea     rdx, [rbp+var_20]                                              ; +0x71, 0x1002a81f1\nmovss   xmm0, cs:dword_1008152BC                                       ; +0x75, 0x1002a81f5\nmovss   xmm2, cs:alpha                                                 ; +0x7d, 0x1002a81fd\nxorps   xmm1, xmm1                                                     ; +0x85, 0x1002a8205\nmov     rdi, rbx                                                       ; +0x88, 0x1002a8208\nmov     r8, rsi                                                        ; +0x8b, 0x1002a820b\nxor     r9d, r9d                                                       ; +0x8e, 0x1002a820e\ncall    FLAlertLayer__create                                           ; +0x91, 0x1002a8211\nmov     rbx, rax                                                       ; +0x96, 0x1002a8216\ntest    byte ptr [rbp+var_20], 1                                       ; +0x99, 0x1002a8219\njz      short loc_1002A8228                                            ; +0x9d, 0x1002a821d\nmov     rdi, [rbp+__p]; __p                                            ; +0x9f, 0x1002a821f\ncall    __ZdlPv; operator delete(void *)                               ; +0xa3, 0x1002a8223\nmov     rdi, [rbx+258h]                                                ; +0xa8, 0x1002a8228\nlea     rsi, aGjButton06Png; \"GJ_button_06.png\"                        ; +0xaf, 0x1002a822f\ncall    ButtonSprite__updateBGImage                                    ; +0xb6, 0x1002a8236\nmov     rax, [rbx]                                                     ; +0xbb, 0x1002a823b\nmov     rdi, rbx                                                       ; +0xbe, 0x1002a823e\nmov     esi, 2                                                         ; +0xc1, 0x1002a8241\ncall    qword ptr [rax+48h]                                            ; +0xc6, 0x1002a8246\nmov     rax, [rbx]                                                     ; +0xc9, 0x1002a8249\nmov     rdi, rbx                                                       ; +0xcc, 0x1002a824c\ncall    qword ptr [rax+508h]                                           ; +0xcf, 0x1002a824f\nadd     rsp, 18h                                                       ; +0xd5, 0x1002a8255\npop     rbx                                                            ; +0xd9, 0x1002a8259\npop     rbp                                                            ; +0xda, 0x1002a825a\nretn                                                                   ; +0xdb, 0x1002a825b", "xrefs": ["GJMessagePopup::loadFromGJMessage @ 0x1002a7bab"], "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"}