{"type": "func", "start": 4406956, "end": 4407090, "name": "CommentCell::onDelete", "pseudocode": "// \n// CommentCell::onDelete from 0x433eac to 0x433f32 (134 bytes)\n// \n// 1 xrefs:\n// > CommentCell::FLAlert_Clicked @ 0x433f4a\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:48:18 +0000\n// \n\ncocos2d::CCMenu *__fastcall CommentCell::onDelete(cocos2d::CCMenu *this)\n{\n  GJComment **v1; // r4\n  int v2; // r3\n  int v3; // r3\n  int v4; // r5\n  int v5; // r0\n  GameLevelManager *v6; // r0\n  GameLevelManager *v7; // r0\n\n  v1 = (GJComment **)this;\n  v2 = *((_DWORD *)this + 109);\n  if ( v2 )\n  {\n    v3 = *(_DWORD *)(v2 + 344);\n    switch ( v3 )\n    {\n      case 3:\n        v4 = 6;\n        break;\n      case 4:\n        v4 = 7;\n        break;\n      case 5:\n        v4 = 8;\n        break;\n      default:\n        if ( *((_BYTE *)this + 440) )\n        {\n          v7 = (GameLevelManager *)GameLevelManager::sharedState(this);\n          GameLevelManager::deleteAccountComment(v7, *((_DWORD *)v1[109] + 77), *((_DWORD *)v1[109] + 72));\n        }\n        else\n        {\n          v6 = (GameLevelManager *)GameLevelManager::sharedState(this);\n          GameLevelManager::deleteLevelComment(v6, *((_DWORD *)v1[109] + 75), *((_DWORD *)v1[109] + 72));\n        }\n        goto LABEL_9;\n    }\n    v5 = GameLevelManager::sharedState(this);\n    GameLevelManager::deleteComment(v5, *((_DWORD *)v1[109] + 72), v4, *((_DWORD *)v1[109] + 75));\nLABEL_9:\n    *((_BYTE *)v1[109] + 324) = 1;\n    return CommentCell::loadFromComment((CommentCell *)v1, v1[109]);\n  }\n  return this;\n}", "assembly": "; \n; CommentCell::onDelete from 0x433eac to 0x433f32 (134 bytes)\n; \n; 1 xrefs:\n; > CommentCell::FLAlert_Clicked @ 0x433f4a\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:48:18 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x433eac\nMOV             R4, R0                                                 ; +0x2, 0x433eae\nLDR.W           R3, [R0,#0x1B4]                                        ; +0x4, 0x433eb0\nCBZ             R3, locret_433F30                                      ; +0x8, 0x433eb4\nLDR.W           R3, [R3,#0x158]                                        ; +0xa, 0x433eb6\nCMP             R3, #3                                                 ; +0xe, 0x433eba\nBEQ             loc_433ECA                                             ; +0x10, 0x433ebc\nCMP             R3, #4                                                 ; +0x12, 0x433ebe\nBEQ             loc_433ECE                                             ; +0x14, 0x433ec0\nCMP             R3, #5                                                 ; +0x16, 0x433ec2\nBNE             loc_433EFE                                             ; +0x18, 0x433ec4\nMOVS            R5, #8                                                 ; +0x1a, 0x433ec6\nB               loc_433ED0                                             ; +0x1c, 0x433ec8\nMOVS            R5, #6                                                 ; +0x1e, 0x433eca\nB               loc_433ED0                                             ; +0x20, 0x433ecc\nMOVS            R5, #7                                                 ; +0x22, 0x433ece\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x24, 0x433ed0\nLDR.W           R3, [R4,#0x1B4]                                        ; +0x28, 0x433ed4\nMOV             R2, R5; int                                            ; +0x2c, 0x433ed8\nLDR.W           R1, [R3,#0x120]; int                                   ; +0x2e, 0x433eda\nLDR.W           R3, [R3,#0x12C]; int                                   ; +0x32, 0x433ede\nBL              _ZN16GameLevelManager13deleteCommentEi11CommentTypei; GameLevelManager::deleteComment(int,CommentType,int) ; +0x36, 0x433ee2\nLDR.W           R3, [R4,#0x1B4]                                        ; +0x3a, 0x433ee6\nMOVS            R2, #1                                                 ; +0x3e, 0x433eea\nMOV             R0, R4; this                                           ; +0x40, 0x433eec\nSTRB.W          R2, [R3,#0x144]                                        ; +0x42, 0x433eee\nLDR.W           R1, [R4,#0x1B4]; GJComment *                           ; +0x46, 0x433ef2\nPOP.W           {R3-R5,LR}                                             ; +0x4a, 0x433ef6\nB.W             _ZN11CommentCell15loadFromCommentEP9GJComment; CommentCell::loadFromComment(GJComment *) ; +0x4e, 0x433efa\nLDRB.W          R3, [R0,#0x1B8]                                        ; +0x52, 0x433efe\nCBNZ            R3, loc_433F1A                                         ; +0x56, 0x433f02\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x58, 0x433f04\nLDR.W           R3, [R4,#0x1B4]                                        ; +0x5c, 0x433f08\nLDR.W           R1, [R3,#0x12C]; int                                   ; +0x60, 0x433f0c\nLDR.W           R2, [R3,#0x120]; int                                   ; +0x64, 0x433f10\nBL              _ZN16GameLevelManager18deleteLevelCommentEii; GameLevelManager::deleteLevelComment(int,int) ; +0x68, 0x433f14\nB               loc_433EE6                                             ; +0x6c, 0x433f18\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x6e, 0x433f1a\nLDR.W           R3, [R4,#0x1B4]                                        ; +0x72, 0x433f1e\nLDR.W           R1, [R3,#0x134]; int                                   ; +0x76, 0x433f22\nLDR.W           R2, [R3,#0x120]; int                                   ; +0x7a, 0x433f26\nBL              _ZN16GameLevelManager20deleteAccountCommentEii; GameLevelManager::deleteAccountComment(int,int) ; +0x7e, 0x433f2a\nB               loc_433EE6                                             ; +0x82, 0x433f2e\nPOP             {R3-R5,PC}                                             ; +0x84, 0x433f30", "xrefs": ["CommentCell::FLAlert_Clicked @ 0x433f4a"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}