{"type": "func", "start": 3371422, "end": 3371502, "name": "CommentCell::onDelete", "pseudocode": "// \n// CommentCell::onDelete from 0x33719e to 0x3371ee (80 bytes)\n// \n// 1 xrefs:\n// > CommentCell::FLAlert_Clicked @ 0x337214\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; // r0\n  GameLevelManager *v3; // r0\n  GJComment *m_comment; // r1\n\n  if ( a1->m_comment )\n  {\n    if ( a1->m_accountComment )\n    {\n      v3 = GameLevelManager::sharedState();\n      GameLevelManager::deleteAccountComment(v3, a1->m_comment->m_accountID, a1->m_comment->m_commentID);\n    }\n    else\n    {\n      v2 = GameLevelManager::sharedState();\n      GameLevelManager::deleteLevelComment(v2, 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 0x33719e to 0x3371ee (80 bytes)\n; \n; 1 xrefs:\n; > CommentCell::FLAlert_Clicked @ 0x337214\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\nLDR.W           R3, [R0,#0x1AC]                                        ; +0x0, 0x33719e\nPUSH            {R4,LR}                                                ; +0x4, 0x3371a2\nMOV             R4, R0                                                 ; +0x6, 0x3371a4\nCBZ             R3, locret_3371EC                                      ; +0x8, 0x3371a6\nLDRB.W          R3, [R0,#0x1B0]                                        ; +0xa, 0x3371a8\nCBNZ            R3, loc_3371C4                                         ; +0xe, 0x3371ac\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x10, 0x3371ae\nLDR.W           R3, [R4,#0x1AC]                                        ; +0x14, 0x3371b2\nLDR.W           R1, [R3,#0x11C]; int                                   ; +0x18, 0x3371b6\nLDR.W           R2, [R3,#0x110]; int                                   ; +0x1c, 0x3371ba\nBL              _ZN16GameLevelManager18deleteLevelCommentEii; GameLevelManager::deleteLevelComment(int,int) ; +0x20, 0x3371be\nB               loc_3371D8                                             ; +0x24, 0x3371c2\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x26, 0x3371c4\nLDR.W           R3, [R4,#0x1AC]                                        ; +0x2a, 0x3371c8\nLDR.W           R1, [R3,#0x124]; int                                   ; +0x2e, 0x3371cc\nLDR.W           R2, [R3,#0x110]; int                                   ; +0x32, 0x3371d0\nBL              _ZN16GameLevelManager20deleteAccountCommentEii; GameLevelManager::deleteAccountComment(int,int) ; +0x36, 0x3371d4\nLDR.W           R1, [R4,#0x1AC]; GJComment *                           ; +0x3a, 0x3371d8\nMOVS            R3, #1                                                 ; +0x3e, 0x3371dc\nMOV             R0, R4; this                                           ; +0x40, 0x3371de\nPOP.W           {R4,LR}                                                ; +0x42, 0x3371e0\nSTRB.W          R3, [R1,#0x12C]                                        ; +0x46, 0x3371e4\nB.W             _ZN11CommentCell15loadFromCommentEP9GJComment; CommentCell::loadFromComment(GJComment *) ; +0x4a, 0x3371e8\nPOP             {R4,PC}                                                ; +0x4e, 0x3371ec", "xrefs": ["CommentCell::FLAlert_Clicked @ 0x337214"], "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"}