{"type": "func", "start": 4297413952, "end": 4297414127, "name": "CommentCell::FLAlert_Clicked", "pseudocode": "// \n// CommentCell::FLAlert_Clicked from 0x100255540 to 0x1002555ef (175 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008e6aa0\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::FLAlert_Clicked(CommentCell *a1, FLAlertLayer *a2, bool a3)\n{\n  bool m_accountComment; // r14\n  GameLevelManager *v4; // rax\n  GJComment *m_comment; // rcx\n  int m_commentID; // edx\n  GJComment *v7; // rsi\n\n  if ( !a3 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 0) )\n  {\n    ((void (__fastcall *)(FLAlertLayer *))a2->getTag)(a2);\n  }\n  else if ( a1->m_comment )\n  {\n    m_accountComment = a1->m_accountComment;\n    v4 = GameLevelManager::sharedState();\n    m_comment = a1->m_comment;\n    m_commentID = m_comment->m_commentID;\n    if ( m_accountComment )\n      GameLevelManager::deleteAccountComment(v4, m_comment->m_accountID, m_commentID);\n    else\n      GameLevelManager::deleteLevelComment(v4, m_comment->m_levelID, m_commentID);\n    v7 = a1->m_comment;\n    v7->m_commentDeleted = 1;\n    CommentCell::loadFromComment(a1, v7);\n  }\n}", "assembly": "; \n; CommentCell::FLAlert_Clicked from 0x100255540 to 0x1002555ef (175 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008e6aa0\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\npush    rbp                                                            ; +0x0, 0x100255540\nmov     rbp, rsp                                                       ; +0x1, 0x100255541\npush    r15                                                            ; +0x4, 0x100255544\npush    r14                                                            ; +0x6, 0x100255546\npush    rbx                                                            ; +0x8, 0x100255548\npush    rax                                                            ; +0x9, 0x100255549\nmov     r15d, edx                                                      ; +0xa, 0x10025554a\nmov     r14, rsi                                                       ; +0xd, 0x10025554d\nmov     rbx, rdi                                                       ; +0x10, 0x100255550\nxor     r15b, 1                                                        ; +0x13, 0x100255553\nmov     rax, [rsi]                                                     ; +0x17, 0x100255557\nmov     rdi, rsi                                                       ; +0x1a, 0x10025555a\ncall    qword ptr [rax+40h]                                            ; +0x1d, 0x10025555d\ntest    eax, eax                                                       ; +0x20, 0x100255560\nsetnz   al                                                             ; +0x22, 0x100255562\nor      al, r15b                                                       ; +0x25, 0x100255565\njnz     short loc_1002555A3                                            ; +0x28, 0x100255568\ncmp     qword ptr [rbx+248h], 0                                        ; +0x2a, 0x10025556a\njz      short loc_1002555B6                                            ; +0x32, 0x100255572\nmovzx   r14d, byte ptr [rbx+250h]                                      ; +0x34, 0x100255574\ncall    GameLevelManager__sharedState                                  ; +0x3c, 0x10025557c\nmov     rcx, [rbx+248h]                                                ; +0x41, 0x100255581\nmov     edx, [rcx+170h]                                                ; +0x48, 0x100255588\ntest    r14b, r14b                                                     ; +0x4e, 0x10025558e\njz      short loc_1002555C1                                            ; +0x51, 0x100255591\nmov     esi, [rcx+184h]                                                ; +0x53, 0x100255593\nmov     rdi, rax                                                       ; +0x59, 0x100255599\ncall    GameLevelManager__deleteAccountComment                         ; +0x5c, 0x10025559c\njmp     short loc_1002555CF                                            ; +0x61, 0x1002555a1\nmov     rax, [r14]                                                     ; +0x63, 0x1002555a3\nmov     rdi, r14                                                       ; +0x66, 0x1002555a6\nadd     rsp, 8                                                         ; +0x69, 0x1002555a9\npop     rbx                                                            ; +0x6d, 0x1002555ad\npop     r14                                                            ; +0x6e, 0x1002555ae\npop     r15                                                            ; +0x70, 0x1002555b0\npop     rbp                                                            ; +0x72, 0x1002555b2\njmp     qword ptr [rax+40h]                                            ; +0x73, 0x1002555b3\nadd     rsp, 8                                                         ; +0x76, 0x1002555b6\npop     rbx                                                            ; +0x7a, 0x1002555ba\npop     r14                                                            ; +0x7b, 0x1002555bb\npop     r15                                                            ; +0x7d, 0x1002555bd\npop     rbp                                                            ; +0x7f, 0x1002555bf\nretn                                                                   ; +0x80, 0x1002555c0\nmov     esi, [rcx+17Ch]                                                ; +0x81, 0x1002555c1\nmov     rdi, rax                                                       ; +0x87, 0x1002555c7\ncall    GameLevelManager__deleteLevelComment                           ; +0x8a, 0x1002555ca\nmov     rsi, [rbx+248h]                                                ; +0x8f, 0x1002555cf\nmov     byte ptr [rsi+1A0h], 1                                         ; +0x96, 0x1002555d6\nmov     rdi, rbx                                                       ; +0x9d, 0x1002555dd\nadd     rsp, 8                                                         ; +0xa0, 0x1002555e0\npop     rbx                                                            ; +0xa4, 0x1002555e4\npop     r14                                                            ; +0xa5, 0x1002555e5\npop     r15                                                            ; +0xa7, 0x1002555e7\npop     rbp                                                            ; +0xa9, 0x1002555e9\njmp     CommentCell__loadFromComment                                   ; +0xaa, 0x1002555ea", "xrefs": ["<???> @ 0x1008e6aa0"], "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"}