{"type": "func", "start": 4297320144, "end": 4297320311, "name": "CommentCell::onDelete", "pseudocode": "// \n// CommentCell::onDelete from 0x10023e6d0 to 0x10023e777 (167 bytes)\n// \n// 2 xrefs:\n// > CommentCell::FLAlert_Clicked @ 0x10023e7cb\n// > sub_10023E7E0 @ 0x10023e812\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:27:17 +0000\n// \n\nvoid __fastcall CommentCell::onDelete(__int64 a1, double a2)\n{\n  __int64 v2; // rax\n  int v3; // r14d\n  __int64 v4; // rax\n  char v5; // r14\n  __int64 v6; // rax\n  unsigned int *v7; // rcx\n  __int64 v8; // rdx\n  __int64 v9; // rsi\n\n  v2 = *(_QWORD *)(a1 + 584);\n  if ( v2 )\n  {\n    v3 = *(_DWORD *)(v2 + 436);\n    if ( (unsigned int)(v3 - 3) > 2 )\n    {\n      v5 = *(_BYTE *)(a1 + 592);\n      v6 = GameLevelManager::sharedState(a2);\n      v7 = *(unsigned int **)(a1 + 584);\n      v8 = v7[92];\n      if ( v5 )\n        GameLevelManager::deleteAccountComment(v6, v7[97], v8);\n      else\n        a2 = GameLevelManager::deleteLevelComment(v6, v7[95], v8);\n    }\n    else\n    {\n      v4 = GameLevelManager::sharedState(a2);\n      GameLevelManager::deleteComment(\n        v4,\n        *(unsigned int *)(*(_QWORD *)(a1 + 584) + 368LL),\n        (unsigned int)(v3 + 3),\n        *(unsigned int *)(*(_QWORD *)(a1 + 584) + 380LL));\n    }\n    v9 = *(_QWORD *)(a1 + 584);\n    *(_BYTE *)(v9 + 416) = 1;\n    CommentCell::loadFromComment(a1, v9, a2);\n  }\n}", "assembly": "; \n; CommentCell::onDelete from 0x10023e6d0 to 0x10023e777 (167 bytes)\n; \n; 2 xrefs:\n; > CommentCell::FLAlert_Clicked @ 0x10023e7cb\n; > sub_10023E7E0 @ 0x10023e812\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:27:17 +0000\n; \nmov     rax, [rdi+248h]                                                ; +0x0, 0x10023e6d0\ntest    rax, rax                                                       ; +0x7, 0x10023e6d7\njz      short locret_10023E71F                                         ; +0xa, 0x10023e6da\npush    rbp                                                            ; +0xc, 0x10023e6dc\nmov     rbp, rsp                                                       ; +0xd, 0x10023e6dd\npush    r14                                                            ; +0x10, 0x10023e6e0\npush    rbx                                                            ; +0x12, 0x10023e6e2\nmov     rbx, rdi                                                       ; +0x13, 0x10023e6e3\nmov     r14d, [rax+1B4h]                                               ; +0x16, 0x10023e6e6\nlea     eax, [r14-3]                                                   ; +0x1d, 0x10023e6ed\ncmp     eax, 2                                                         ; +0x21, 0x10023e6f1\nja      short loc_10023E720                                            ; +0x24, 0x10023e6f4\nadd     r14d, 3                                                        ; +0x26, 0x10023e6f6\ncall    GameLevelManager__sharedState                                  ; +0x2a, 0x10023e6fa\nmov     rcx, [rbx+248h]                                                ; +0x2f, 0x10023e6ff\nmov     esi, [rcx+170h]                                                ; +0x36, 0x10023e706\nmov     ecx, [rcx+17Ch]                                                ; +0x3c, 0x10023e70c\nmov     rdi, rax                                                       ; +0x42, 0x10023e712\nmov     edx, r14d                                                      ; +0x45, 0x10023e715\ncall    GameLevelManager__deleteComment                                ; +0x48, 0x10023e718\njmp     short loc_10023E75D                                            ; +0x4d, 0x10023e71d\nretn                                                                   ; +0x4f, 0x10023e71f\nmovzx   r14d, byte ptr [rbx+250h]                                      ; +0x50, 0x10023e720\ncall    GameLevelManager__sharedState                                  ; +0x58, 0x10023e728\nmov     rcx, [rbx+248h]                                                ; +0x5d, 0x10023e72d\nmov     edx, [rcx+170h]                                                ; +0x64, 0x10023e734\ntest    r14b, r14b                                                     ; +0x6a, 0x10023e73a\njz      short loc_10023E74F                                            ; +0x6d, 0x10023e73d\nmov     esi, [rcx+184h]                                                ; +0x6f, 0x10023e73f\nmov     rdi, rax                                                       ; +0x75, 0x10023e745\ncall    GameLevelManager__deleteAccountComment                         ; +0x78, 0x10023e748\njmp     short loc_10023E75D                                            ; +0x7d, 0x10023e74d\nmov     esi, [rcx+17Ch]                                                ; +0x7f, 0x10023e74f\nmov     rdi, rax                                                       ; +0x85, 0x10023e755\ncall    GameLevelManager__deleteLevelComment                           ; +0x88, 0x10023e758\nmov     rsi, [rbx+248h]                                                ; +0x8d, 0x10023e75d\nmov     byte ptr [rsi+1A0h], 1                                         ; +0x94, 0x10023e764\nmov     rdi, rbx                                                       ; +0x9b, 0x10023e76b\npop     rbx                                                            ; +0x9e, 0x10023e76e\npop     r14                                                            ; +0x9f, 0x10023e76f\npop     rbp                                                            ; +0xa1, 0x10023e771\njmp     CommentCell__loadFromComment                                   ; +0xa2, 0x10023e772", "xrefs": ["CommentCell::FLAlert_Clicked @ 0x10023e7cb", "sub_10023E7E0 @ 0x10023e812"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}