{"type": "func", "start": 6392216, "end": 6392364, "name": "CommentCell::onDelete", "pseudocode": "// \n// CommentCell::onDelete from 0x618998 to 0x618a2c (148 bytes)\n// \n// 2 xrefs:\n// > CommentCell::FLAlert_Clicked @ 0x618a6c\n// > <???> @ 0x7d4d8\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 CommentCell::onDelete(CommentCell *a1)\n{\n  GameLevelManager *v2; // x0\n  GJComment *m_comment; // x1\n  GameLevelManager *v4; // x0\n\n  if ( a1->m_comment )\n  {\n    if ( a1->m_accountComment )\n    {\n      v2 = GameLevelManager::sharedState();\n      GameLevelManager::deleteAccountComment(v2, a1->m_comment->m_accountID, a1->m_comment->m_commentID);\n    }\n    else\n    {\n      v4 = GameLevelManager::sharedState();\n      GameLevelManager::deleteLevelComment(v4, a1->m_comment->m_levelID, a1->m_comment->m_commentID);\n    }\n    m_comment = a1->m_comment;\n    m_comment->m_commentDeleted = 1;\n    CommentCell::loadFromComment(a1, m_comment);\n  }\n}", "assembly": "; \n; CommentCell::onDelete from 0x618998 to 0x618a2c (148 bytes)\n; \n; 2 xrefs:\n; > CommentCell::FLAlert_Clicked @ 0x618a6c\n; > <???> @ 0x7d4d8\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x618998\nMOV             X29, SP                                                ; +0x4, 0x61899c\nLDR             X1, [X0,#0x238]                                        ; +0x8, 0x6189a0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x6189a4\nCBZ             X1, loc_618A20                                         ; +0x10, 0x6189a8\nMOV             X19, X0                                                ; +0x14, 0x6189ac\nLDRB            W0, [X0,#0x240]; this                                  ; +0x18, 0x6189b0\nCBZ             W0, loc_6189EC                                         ; +0x1c, 0x6189b4\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x20, 0x6189b8\nLDR             X2, [X19,#0x238]                                       ; +0x24, 0x6189bc\nLDR             W1, [X2,#0x164]; int                                   ; +0x28, 0x6189c0\nLDR             W2, [X2,#0x150]; int                                   ; +0x2c, 0x6189c4\nBL              _ZN16GameLevelManager20deleteAccountCommentEii; GameLevelManager::deleteAccountComment(int,int) ; +0x30, 0x6189c8\nLDR             X2, [X19,#0x238]                                       ; +0x34, 0x6189cc\nMOV             W3, #1                                                 ; +0x38, 0x6189d0\nMOV             X0, X19; this                                          ; +0x3c, 0x6189d4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x40, 0x6189d8\nMOV             X1, X2; GJComment *                                    ; +0x44, 0x6189dc\nSTRB            W3, [X2,#0x170]                                        ; +0x48, 0x6189e0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x4c, 0x6189e4\nB               _ZN11CommentCell15loadFromCommentEP9GJComment; CommentCell::loadFromComment(GJComment *) ; +0x50, 0x6189e8\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x54, 0x6189ec\nLDR             X2, [X19,#0x238]                                       ; +0x58, 0x6189f0\nLDR             W1, [X2,#0x15C]; int                                   ; +0x5c, 0x6189f4\nLDR             W2, [X2,#0x150]; int                                   ; +0x60, 0x6189f8\nBL              _ZN16GameLevelManager18deleteLevelCommentEii; GameLevelManager::deleteLevelComment(int,int) ; +0x64, 0x6189fc\nLDR             X2, [X19,#0x238]                                       ; +0x68, 0x618a00\nMOV             W3, #1                                                 ; +0x6c, 0x618a04\nMOV             X0, X19; this                                          ; +0x70, 0x618a08\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x74, 0x618a0c\nMOV             X1, X2; GJComment *                                    ; +0x78, 0x618a10\nSTRB            W3, [X2,#0x170]                                        ; +0x7c, 0x618a14\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x80, 0x618a18\nB               _ZN11CommentCell15loadFromCommentEP9GJComment; CommentCell::loadFromComment(GJComment *) ; +0x84, 0x618a1c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x88, 0x618a20\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x8c, 0x618a24\nRET                                                                    ; +0x90, 0x618a28", "xrefs": ["CommentCell::FLAlert_Clicked @ 0x618a6c", "<???> @ 0x7d4d8"], "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"}