{"type": "func", "start": 5372668544, "end": 5372669046, "name": "ProfilePage::commentDeleteFailed", "pseudocode": "// \n// ProfilePage::commentDeleteFailed from 0x1403c6a80 to 0x1403c6c76 (502 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405cbc40\n// > <???> @ 0x1406d7928\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 ProfilePage::commentDeleteFailed(ProfilePage *a1, int a2, int a3)\n{\n  GJAccountManager *v6; // rax\n  unsigned int v7; // edi\n  __int64 v8; // rax\n  FLAlertLayer *v9; // rbx\n  const char *p_m_fRotationX; // rbx\n  GameLevelManager *v11; // rcx\n  cocos2d::CCArray *StoredOnlineLevels; // rax\n  cocos2d::CCArray *v13; // rbx\n  struct cocos2d::CCObject *v14; // rax\n  __int128 v15; // [rsp+58h] [rbp-50h] BYREF\n  __int64 v16; // [rsp+68h] [rbp-40h]\n  __int64 v17; // [rsp+70h] [rbp-38h]\n  _BYTE v18[40]; // [rsp+78h] [rbp-30h] BYREF\n  void *v19; // [rsp+C8h] [rbp+20h]\n\n  v6 = GJAccountManager::sharedState();\n  if ( a2 == v6->m_accountID - v6->m_unkInt1 )\n  {\n    v15 = 0;\n    v7 = 0;\n    *(_QWORD *)&v15 = sub_14003AA10(0x30u);\n    v16 = 46;\n    v17 = 47;\n    strcpy((char *)v15, \"Comment delete failed. Please try again later.\");\n    v8 = sub_14003BDB0((__int64)v18, (__int64)&v15);\n    v9 = FLAlertLayer::create(0, (int)\"Failed\", v8, (__int64)\"OK\", 0, 1132068864, 0, 0, 1065353216);\n    sub_14003A830((__int64)&v15);\n    v9->show(v9);\n    p_m_fRotationX = (const char *)&a1->m_fRotationX;\n    if ( *(_QWORD *)&a1->m_obPosition.y > 0xFu )\n      p_m_fRotationX = *(const char **)p_m_fRotationX;\n    v11 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v19 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v19);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v11 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v11, p_m_fRotationX);\n    v13 = StoredOnlineLevels;\n    if ( StoredOnlineLevels )\n    {\n      if ( cocos2d::CCArray::count(StoredOnlineLevels) )\n      {\n        while ( 1 )\n        {\n          v14 = cocos2d::CCArray::objectAtIndex(v13, v7);\n          if ( v14[6].m_uOrderOfArrival == a3 )\n            break;\n          if ( ++v7 >= cocos2d::CCArray::count(v13) )\n            return;\n        }\n        LOBYTE(v14[7].m_uOrderOfArrival) = 0;\n        ProfilePage::loadPage((ProfilePage *)((char *)a1 - 648), LODWORD(a1->m_sInverse.c));\n      }\n    }\n  }\n}", "assembly": "; \n; ProfilePage::commentDeleteFailed from 0x1403c6a80 to 0x1403c6c76 (502 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405cbc40\n; > <???> @ 0x1406d7928\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_0], rbx                                               ; +0x0, 0x1403c6a80\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403c6a85\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1403c6a8a\npush    rdi                                                            ; +0xf, 0x1403c6a8f\nsub     rsp, 0A0h                                                      ; +0x10, 0x1403c6a90\nmov     esi, r8d                                                       ; +0x17, 0x1403c6a97\nmov     ebx, edx                                                       ; +0x1a, 0x1403c6a9a\nmov     rbp, rcx                                                       ; +0x1c, 0x1403c6a9c\ncall    GJAccountManager__sharedState                                  ; +0x1f, 0x1403c6a9f\nmov     r9, rax                                                        ; +0x24, 0x1403c6aa4\nmov     eax, [rax+168h]                                                ; +0x27, 0x1403c6aa7\nsub     eax, [r9+16Ch]                                                 ; +0x2d, 0x1403c6aad\ncmp     ebx, eax                                                       ; +0x34, 0x1403c6ab4\njnz     loc_1403C6C5D                                                  ; +0x36, 0x1403c6ab6\nxorps   xmm0, xmm0                                                     ; +0x3c, 0x1403c6abc\nmovups  [rsp+0A8h+var_50], xmm0                                        ; +0x3f, 0x1403c6abf\nxor     edi, edi                                                       ; +0x44, 0x1403c6ac4\nmov     [rsp+0A8h+var_40], rdi                                         ; +0x46, 0x1403c6ac6\nmov     [rsp+0A8h+var_38], 0Fh                                         ; +0x4b, 0x1403c6acb\nlea     ecx, [rdi+30h]                                                 ; +0x54, 0x1403c6ad4\ncall    sub_14003AA10                                                  ; +0x57, 0x1403c6ad7\nmov     rcx, rax                                                       ; +0x5c, 0x1403c6adc\nmov     qword ptr [rsp+0A8h+var_50], rax                               ; +0x5f, 0x1403c6adf\nmov     [rsp+0A8h+var_40], 2Eh ; '.'                                   ; +0x64, 0x1403c6ae4\nmov     [rsp+0A8h+var_38], 2Fh ; '/'                                   ; +0x6d, 0x1403c6aed\nmovups  xmm0, cs:xmmword_1405CAB60                                     ; +0x76, 0x1403c6af6\nmovups  xmmword ptr [rax], xmm0                                        ; +0x7d, 0x1403c6afd\nmovups  xmm1, cs:xmmword_1405CAB70                                     ; +0x80, 0x1403c6b00\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x87, 0x1403c6b07\nmovsd   xmm0, cs:qword_1405CAB80                                       ; +0x8b, 0x1403c6b0b\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0x93, 0x1403c6b13\nmov     eax, cs:dword_1405CAB88                                        ; +0x98, 0x1403c6b18\nmov     [rcx+28h], eax                                                 ; +0x9e, 0x1403c6b1e\nmovzx   eax, cs:word_1405CAB8C                                         ; +0xa1, 0x1403c6b21\nmov     [rcx+2Ch], ax                                                  ; +0xa8, 0x1403c6b28\nmov     [rcx+2Eh], dil                                                 ; +0xac, 0x1403c6b2c\nlea     rax, [rsp+0A8h+var_50]                                         ; +0xb0, 0x1403c6b30\nmov     [rsp+0A8h+arg_18], rax                                         ; +0xb5, 0x1403c6b35\nlea     rdx, [rsp+0A8h+var_50]                                         ; +0xbd, 0x1403c6b3d\nlea     rcx, [rsp+0A8h+var_30]                                         ; +0xc2, 0x1403c6b42\ncall    sub_14003BDB0                                                  ; +0xc7, 0x1403c6b47\nmovss   xmm0, cs:flt_140622C24                                         ; +0xcc, 0x1403c6b4c\nmovss   [rsp+0A8h+var_68], xmm0                                        ; +0xd4, 0x1403c6b54\nxorps   xmm1, xmm1                                                     ; +0xda, 0x1403c6b5a\nmovss   [rsp+0A8h+var_70], xmm1                                        ; +0xdd, 0x1403c6b5d\nmov     [rsp+0A8h+var_78], dil                                         ; +0xe3, 0x1403c6b63\nmovss   xmm0, cs:dword_140623410                                       ; +0xe8, 0x1403c6b68\nmovss   [rsp+0A8h+var_80], xmm0                                        ; +0xf0, 0x1403c6b70\nmov     [rsp+0A8h+var_88], rdi                                         ; +0xf6, 0x1403c6b76\nlea     r9, aOk; \"OK\"                                                  ; +0xfb, 0x1403c6b7b\nmov     r8, rax                                                        ; +0x102, 0x1403c6b82\nlea     rdx, aFailed; \"Failed\"                                         ; +0x105, 0x1403c6b85\nxor     ecx, ecx                                                       ; +0x10c, 0x1403c6b8c\ncall    FLAlertLayer__create                                           ; +0x10e, 0x1403c6b8e\nmov     rbx, rax                                                       ; +0x113, 0x1403c6b93\nlea     rcx, [rsp+0A8h+var_50]                                         ; +0x116, 0x1403c6b96\ncall    sub_14003A830                                                  ; +0x11b, 0x1403c6b9b\nmov     rdx, [rbx]                                                     ; +0x120, 0x1403c6ba0\nmov     rcx, rbx                                                       ; +0x123, 0x1403c6ba3\ncall    qword ptr [rdx+410h]                                           ; +0x126, 0x1403c6ba6\nlea     rbx, [rbp+38h]                                                 ; +0x12c, 0x1403c6bac\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x130, 0x1403c6bb0\njbe     short loc_1403C6BBA                                            ; +0x135, 0x1403c6bb5\nmov     rbx, [rbx]                                                     ; +0x137, 0x1403c6bb7\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x13a, 0x1403c6bba\ntest    rcx, rcx                                                       ; +0x141, 0x1403c6bc1\njnz     short loc_1403C6BF9                                            ; +0x144, 0x1403c6bc4\nmov     ecx, 3D0h; Size                                                ; +0x146, 0x1403c6bc6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x14b, 0x1403c6bcb\nmov     [rsp+0A8h+arg_18], rax                                         ; +0x150, 0x1403c6bd0\nmov     rcx, rax                                                       ; +0x158, 0x1403c6bd8\ncall    sub_140141280                                                  ; +0x15b, 0x1403c6bdb\nnop                                                                    ; +0x160, 0x1403c6be0\nmov     cs:qword_1406C2EC0, rax                                        ; +0x161, 0x1403c6be1\nmov     r8, [rax]                                                      ; +0x168, 0x1403c6be8\nmov     rcx, rax                                                       ; +0x16b, 0x1403c6beb\ncall    qword ptr [r8+48h]                                             ; +0x16e, 0x1403c6bee\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x172, 0x1403c6bf2\nmov     rdx, rbx                                                       ; +0x179, 0x1403c6bf9\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x17c, 0x1403c6bfc\nmov     rbx, rax                                                       ; +0x181, 0x1403c6c01\ntest    rax, rax                                                       ; +0x184, 0x1403c6c04\njz      short loc_1403C6C5D                                            ; +0x187, 0x1403c6c07\nmov     rcx, rax                                                       ; +0x189, 0x1403c6c09\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x18c, 0x1403c6c0c\ntest    eax, eax                                                       ; +0x192, 0x1403c6c12\njz      short loc_1403C6C5D                                            ; +0x194, 0x1403c6c14\nnop     word ptr [rax+rax+00000000h]                                   ; +0x196, 0x1403c6c16\nmov     edx, edi                                                       ; +0x1a0, 0x1403c6c20\nmov     rcx, rbx                                                       ; +0x1a2, 0x1403c6c22\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1a5, 0x1403c6c25\ncmp     [rax+180h], esi                                                ; +0x1ab, 0x1403c6c2b\njz      short loc_1403C6C44                                            ; +0x1b1, 0x1403c6c31\ninc     edi                                                            ; +0x1b3, 0x1403c6c33\nmov     rcx, rbx                                                       ; +0x1b5, 0x1403c6c35\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b8, 0x1403c6c38\ncmp     edi, eax                                                       ; +0x1be, 0x1403c6c3e\njb      short loc_1403C6C20                                            ; +0x1c0, 0x1403c6c40\njmp     short loc_1403C6C5D                                            ; +0x1c2, 0x1403c6c42\nmov     byte ptr [rax+1B8h], 0                                         ; +0x1c4, 0x1403c6c44\nlea     rcx, [rbp-288h]                                                ; +0x1cb, 0x1403c6c4b\nmov     edx, [rbp+0ACh]                                                ; +0x1d2, 0x1403c6c52\ncall    ProfilePage__loadPage                                          ; +0x1d8, 0x1403c6c58\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x1dd, 0x1403c6c5d\nmov     rbx, [r11+10h]                                                 ; +0x1e5, 0x1403c6c65\nmov     rbp, [r11+18h]                                                 ; +0x1e9, 0x1403c6c69\nmov     rsi, [r11+20h]                                                 ; +0x1ed, 0x1403c6c6d\nmov     rsp, r11                                                       ; +0x1f1, 0x1403c6c71\npop     rdi                                                            ; +0x1f4, 0x1403c6c74\nretn                                                                   ; +0x1f5, 0x1403c6c75", "xrefs": ["<???> @ 0x1405cbc40", "<???> @ 0x1406d7928"], "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"}