{"type": "func", "start": 5371438000, "end": 5371438395, "name": "GJWriteMessagePopup::onClearBody", "pseudocode": "// \n// GJWriteMessagePopup::onClearBody from 0x14029a3b0 to 0x14029a53b (395 bytes)\n// \n// 2 xrefs:\n// > GJWriteMessagePopup::init @ 0x140299fb5\n// > <???> @ 0x1406d1d00\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 GJWriteMessagePopup::onClearBody(GJWriteMessagePopup *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(0x30u);\n  v6 = 44;\n  v7 = 47;\n  strcpy((char *)v5, \"Are you sure you want to reset 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, \"Reset Message\", v4, \"Cancel\", \"Reset\", 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_05.png\");\n  v3->setTag(v3, 1);\n  v3->show(v3);\n}", "assembly": "; \n; GJWriteMessagePopup::onClearBody from 0x14029a3b0 to 0x14029a53b (395 bytes)\n; \n; 2 xrefs:\n; > GJWriteMessagePopup::init @ 0x140299fb5\n; > <???> @ 0x1406d1d00\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, 0x14029a3b0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x14029a3b5\npush    rdi                                                            ; +0xa, 0x14029a3ba\nsub     rsp, 90h                                                       ; +0xb, 0x14029a3bb\nlea     rdi, [rcx+290h]                                                ; +0x12, 0x14029a3c2\nxor     esi, esi                                                       ; +0x19, 0x14029a3c9\ntest    rcx, rcx                                                       ; +0x1b, 0x14029a3cb\ncmovz   rdi, rsi                                                       ; +0x1e, 0x14029a3ce\nxorps   xmm0, xmm0                                                     ; +0x22, 0x14029a3d2\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x25, 0x14029a3d5\nmov     [rsp+98h+var_38], rsi                                          ; +0x2a, 0x14029a3da\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x2f, 0x14029a3df\nlea     ecx, [rsi+30h]                                                 ; +0x38, 0x14029a3e8\ncall    sub_14003AA10                                                  ; +0x3b, 0x14029a3eb\nmov     rcx, rax                                                       ; +0x40, 0x14029a3f0\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x43, 0x14029a3f3\nmov     [rsp+98h+var_38], 2Ch ; ','                                    ; +0x48, 0x14029a3f8\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x51, 0x14029a401\nmovups  xmm0, cs:xmmword_1405711E8                                     ; +0x5a, 0x14029a40a\nmovups  xmmword ptr [rax], xmm0                                        ; +0x61, 0x14029a411\nmovups  xmm1, cs:xmmword_1405711F8                                     ; +0x64, 0x14029a414\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6b, 0x14029a41b\nmovsd   xmm0, cs:qword_140571208                                       ; +0x6f, 0x14029a41f\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0x77, 0x14029a427\nmov     eax, cs:dword_140571210                                        ; +0x7c, 0x14029a42c\nmov     [rcx+28h], eax                                                 ; +0x82, 0x14029a432\nmov     [rcx+2Ch], sil                                                 ; +0x85, 0x14029a435\nlea     rax, [rsp+98h+var_48]                                          ; +0x89, 0x14029a439\nmov     [rsp+98h+arg_0], rax                                           ; +0x8e, 0x14029a43e\nmov     ecx, 278h; Size                                                ; +0x96, 0x14029a446\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9b, 0x14029a44b\nmov     [rsp+98h+arg_10], rax                                          ; +0xa0, 0x14029a450\nmov     rcx, rax                                                       ; +0xa8, 0x14029a458\ncall    FLAlertLayer__FLAlertLayer                                     ; +0xab, 0x14029a45b\nmov     rbx, rax                                                       ; +0xb0, 0x14029a460\ntest    rax, rax                                                       ; +0xb3, 0x14029a463\njz      loc_14029A4EF                                                  ; +0xb6, 0x14029a466\nlea     rdx, [rsp+98h+var_48]                                          ; +0xbc, 0x14029a46c\nlea     rcx, [rsp+98h+var_28]                                          ; +0xc1, 0x14029a471\ncall    sub_14003BDB0                                                  ; +0xc6, 0x14029a476\nmovss   xmm0, cs:flt_140622C24                                         ; +0xcb, 0x14029a47b\nmovss   [rsp+98h+var_50], xmm0                                         ; +0xd3, 0x14029a483\nxorps   xmm1, xmm1                                                     ; +0xd9, 0x14029a489\nmovss   [rsp+98h+var_58], xmm1                                         ; +0xdc, 0x14029a48c\nmov     [rsp+98h+var_60], sil                                          ; +0xe2, 0x14029a492\nmovss   xmm0, cs:dword_140623478                                       ; +0xe7, 0x14029a497\nmovss   [rsp+98h+var_68], xmm0                                         ; +0xef, 0x14029a49f\nlea     rcx, aReset; \"Reset\"                                           ; +0xf5, 0x14029a4a5\nmov     [rsp+98h+var_70], rcx                                          ; +0xfc, 0x14029a4ac\nlea     rcx, aCancel; \"Cancel\"                                         ; +0x101, 0x14029a4b1\nmov     [rsp+98h+var_78], rcx                                          ; +0x108, 0x14029a4b8\nmov     r9, rax                                                        ; +0x10d, 0x14029a4bd\nlea     r8, aResetMessage; \"Reset Message\"                             ; +0x110, 0x14029a4c0\nmov     rdx, rdi                                                       ; +0x117, 0x14029a4c7\nmov     rcx, rbx                                                       ; +0x11a, 0x14029a4ca\ncall    FLAlertLayer__init                                             ; +0x11d, 0x14029a4cd\nmov     rcx, rbx                                                       ; +0x122, 0x14029a4d2\ntest    al, al                                                         ; +0x125, 0x14029a4d5\njz      short loc_14029A4E1                                            ; +0x127, 0x14029a4d7\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x129, 0x14029a4d9\njmp     short loc_14029A4EF                                            ; +0x12f, 0x14029a4df\nmov     rax, [rbx]                                                     ; +0x131, 0x14029a4e1\nmov     edx, 1                                                         ; +0x134, 0x14029a4e4\ncall    qword ptr [rax+8]                                              ; +0x139, 0x14029a4e9\nmov     rbx, rsi                                                       ; +0x13c, 0x14029a4ec\nlea     rcx, [rsp+98h+var_48]                                          ; +0x13f, 0x14029a4ef\ncall    sub_14003A830                                                  ; +0x144, 0x14029a4f4\nlea     rdx, aGjButton05Png; \"GJ_button_05.png\"                        ; +0x149, 0x14029a4f9\nmov     rcx, [rbx+258h]                                                ; +0x150, 0x14029a500\ncall    ButtonSprite__updateBGImage                                    ; +0x157, 0x14029a507\nmov     rax, [rbx]                                                     ; +0x15c, 0x14029a50c\nmov     edx, 1                                                         ; +0x15f, 0x14029a50f\nmov     rcx, rbx                                                       ; +0x164, 0x14029a514\ncall    qword ptr [rax+40h]                                            ; +0x167, 0x14029a517\nmov     rax, [rbx]                                                     ; +0x16a, 0x14029a51a\nmov     rcx, rbx                                                       ; +0x16d, 0x14029a51d\ncall    qword ptr [rax+410h]                                           ; +0x170, 0x14029a520\nlea     r11, [rsp+98h+var_8]                                           ; +0x176, 0x14029a526\nmov     rbx, [r11+18h]                                                 ; +0x17e, 0x14029a52e\nmov     rsi, [r11+28h]                                                 ; +0x182, 0x14029a532\nmov     rsp, r11                                                       ; +0x186, 0x14029a536\npop     rdi                                                            ; +0x189, 0x14029a539\nretn                                                                   ; +0x18a, 0x14029a53a", "xrefs": ["GJWriteMessagePopup::init @ 0x140299fb5", "<???> @ 0x1406d1d00"], "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"}