{"type": "func", "start": 4297413808, "end": 4297413916, "name": "CommentCell::onDelete", "pseudocode": "// \n// CommentCell::onDelete from 0x1002554b0 to 0x10025551c (108 bytes)\n// \n// 0 xrefs:\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 CommentCell::onDelete(CommentCell *a1)\n{\n  bool m_accountComment; // r14\n  GameLevelManager *v2; // rax\n  GJComment *m_comment; // rcx\n  int m_commentID; // edx\n  GJComment *v5; // rsi\n\n  if ( a1->m_comment )\n  {\n    m_accountComment = a1->m_accountComment;\n    v2 = GameLevelManager::sharedState();\n    m_comment = a1->m_comment;\n    m_commentID = m_comment->m_commentID;\n    if ( m_accountComment )\n      GameLevelManager::deleteAccountComment(v2, m_comment->m_accountID, m_commentID);\n    else\n      GameLevelManager::deleteLevelComment(v2, m_comment->m_levelID, m_commentID);\n    v5 = a1->m_comment;\n    v5->m_commentDeleted = 1;\n    CommentCell::loadFromComment(a1, v5);\n  }\n}", "assembly": "; \n; CommentCell::onDelete from 0x1002554b0 to 0x10025551c (108 bytes)\n; \n; 0 xrefs:\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\ncmp     qword ptr [rdi+248h], 0                                        ; +0x0, 0x1002554b0\njz      short locret_1002554F3                                         ; +0x8, 0x1002554b8\npush    rbp                                                            ; +0xa, 0x1002554ba\nmov     rbp, rsp                                                       ; +0xb, 0x1002554bb\npush    r14                                                            ; +0xe, 0x1002554be\npush    rbx                                                            ; +0x10, 0x1002554c0\nmov     rbx, rdi                                                       ; +0x11, 0x1002554c1\nmovzx   r14d, byte ptr [rdi+250h]                                      ; +0x14, 0x1002554c4\ncall    GameLevelManager__sharedState                                  ; +0x1c, 0x1002554cc\nmov     rcx, [rbx+248h]                                                ; +0x21, 0x1002554d1\nmov     edx, [rcx+170h]                                                ; +0x28, 0x1002554d8\ntest    r14b, r14b                                                     ; +0x2e, 0x1002554de\njz      short loc_1002554F4                                            ; +0x31, 0x1002554e1\nmov     esi, [rcx+184h]                                                ; +0x33, 0x1002554e3\nmov     rdi, rax                                                       ; +0x39, 0x1002554e9\ncall    GameLevelManager__deleteAccountComment                         ; +0x3c, 0x1002554ec\njmp     short loc_100255502                                            ; +0x41, 0x1002554f1\nretn                                                                   ; +0x43, 0x1002554f3\nmov     esi, [rcx+17Ch]                                                ; +0x44, 0x1002554f4\nmov     rdi, rax                                                       ; +0x4a, 0x1002554fa\ncall    GameLevelManager__deleteLevelComment                           ; +0x4d, 0x1002554fd\nmov     rsi, [rbx+248h]                                                ; +0x52, 0x100255502\nmov     byte ptr [rsi+1A0h], 1                                         ; +0x59, 0x100255509\nmov     rdi, rbx                                                       ; +0x60, 0x100255510\npop     rbx                                                            ; +0x63, 0x100255513\npop     r14                                                            ; +0x64, 0x100255514\npop     rbp                                                            ; +0x66, 0x100255516\njmp     CommentCell__loadFromComment                                   ; +0x67, 0x100255517", "xrefs": [], "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"}