{"type": "func", "start": 4297760896, "end": 4297761106, "name": "GJWriteMessagePopup::onClearBody", "pseudocode": "// \n// GJWriteMessagePopup::onClearBody from 0x1002aa080 to 0x1002aa152 (210 bytes)\n// \n// 1 xrefs:\n// > GJWriteMessagePopup::init @ 0x1002a9920\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 GJWriteMessagePopup::onClearBody(GJWriteMessagePopup *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(0x30u);\n  v3[0] = 49;\n  v3[1] = 44;\n  strcpy((char *)__p, \"Are you sure you want to reset this message?\");\n  v2 = (ButtonSprite **)FLAlertLayer::create(\n                          &a1->FLAlertLayerProtocol,\n                          \"Reset Message\",\n                          v3,\n                          \"Cancel\",\n                          \"Reset\",\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_05.png\");\n  (*(void (__fastcall **)(ButtonSprite **, __int64))&(*v2)->m_fVertexZ)(v2, 1);\n  (*(void (__fastcall **)(ButtonSprite **))&(*v2)[1].m_fTextureTop)(v2);\n}", "assembly": "; \n; GJWriteMessagePopup::onClearBody from 0x1002aa080 to 0x1002aa152 (210 bytes)\n; \n; 1 xrefs:\n; > GJWriteMessagePopup::init @ 0x1002a9920\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, 0x1002aa080\nmov     rbp, rsp                                                       ; +0x1, 0x1002aa081\npush    rbx                                                            ; +0x4, 0x1002aa084\nsub     rsp, 18h                                                       ; +0x5, 0x1002aa085\nmov     rbx, rdi                                                       ; +0x9, 0x1002aa089\nadd     rbx, 290h                                                      ; +0xc, 0x1002aa08c\nmov     edi, 30h ; '0'; __sz                                           ; +0x13, 0x1002aa093\ncall    __Znwm; operator new(ulong)                                    ; +0x18, 0x1002aa098\nmov     [rbp+__p], rax                                                 ; +0x1d, 0x1002aa09d\nmov     [rbp+var_20], 31h ; '1'                                        ; +0x21, 0x1002aa0a1\nmov     [rbp+var_18], 2Ch ; ','                                        ; +0x29, 0x1002aa0a9\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_11+1Ch; \"et this message?\" ; +0x31, 0x1002aa0b1\nmovups  xmmword ptr [rax+1Ch], xmm0                                    ; +0x38, 0x1002aa0b8\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_11+10h; \" want to reset this message?\" ; +0x3c, 0x1002aa0bc\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x43, 0x1002aa0c3\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_11; \"Are you sure you want to reset this mes\"... ; +0x47, 0x1002aa0c7\nmovups  xmmword ptr [rax], xmm0                                        ; +0x4e, 0x1002aa0ce\nmov     byte ptr [rax+2Ch], 0                                          ; +0x51, 0x1002aa0d1\nlea     rsi, aResetMessage; \"Reset Message\"                            ; +0x55, 0x1002aa0d5\nlea     rcx, aCancel; \"Cancel\"                                         ; +0x5c, 0x1002aa0dc\nlea     r8, aReset; \"Reset\"                                            ; +0x63, 0x1002aa0e3\nlea     rdx, [rbp+var_20]                                              ; +0x6a, 0x1002aa0ea\nmovss   xmm0, cs:dword_1008152BC                                       ; +0x6e, 0x1002aa0ee\nmovss   xmm2, cs:alpha                                                 ; +0x76, 0x1002aa0f6\nxorps   xmm1, xmm1                                                     ; +0x7e, 0x1002aa0fe\nmov     rdi, rbx                                                       ; +0x81, 0x1002aa101\nxor     r9d, r9d                                                       ; +0x84, 0x1002aa104\ncall    FLAlertLayer__create                                           ; +0x87, 0x1002aa107\nmov     rbx, rax                                                       ; +0x8c, 0x1002aa10c\ntest    byte ptr [rbp+var_20], 1                                       ; +0x8f, 0x1002aa10f\njz      short loc_1002AA11E                                            ; +0x93, 0x1002aa113\nmov     rdi, [rbp+__p]; __p                                            ; +0x95, 0x1002aa115\ncall    __ZdlPv; operator delete(void *)                               ; +0x99, 0x1002aa119\nmov     rdi, [rbx+258h]                                                ; +0x9e, 0x1002aa11e\nlea     rsi, aGjButton05Png; \"GJ_button_05.png\"                        ; +0xa5, 0x1002aa125\ncall    ButtonSprite__updateBGImage                                    ; +0xac, 0x1002aa12c\nmov     rax, [rbx]                                                     ; +0xb1, 0x1002aa131\nmov     rdi, rbx                                                       ; +0xb4, 0x1002aa134\nmov     esi, 1                                                         ; +0xb7, 0x1002aa137\ncall    qword ptr [rax+48h]                                            ; +0xbc, 0x1002aa13c\nmov     rax, [rbx]                                                     ; +0xbf, 0x1002aa13f\nmov     rdi, rbx                                                       ; +0xc2, 0x1002aa142\ncall    qword ptr [rax+508h]                                           ; +0xc5, 0x1002aa145\nadd     rsp, 18h                                                       ; +0xcb, 0x1002aa14b\npop     rbx                                                            ; +0xcf, 0x1002aa14f\npop     rbp                                                            ; +0xd0, 0x1002aa150\nretn                                                                   ; +0xd1, 0x1002aa151", "xrefs": ["GJWriteMessagePopup::init @ 0x1002a9920"], "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"}