{"type": "func", "start": 4297412560, "end": 4297412762, "name": "CommentCell::onConfirmDelete", "pseudocode": "// \n// CommentCell::onConfirmDelete from 0x100254fd0 to 0x10025509a (202 bytes)\n// \n// 1 xrefs:\n// > CommentCell::loadFromComment @ 0x1002491b2\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::onConfirmDelete(CommentCell *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rbx\n  _QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( a1->m_comment )\n  {\n    __p = operator new(0x38u);\n    v3[0] = 57;\n    v3[1] = 53;\n    strcpy((char *)__p, \"Are you sure you want to <cr>delete</c> this comment?\");\n    v2 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, \"Delete Comment\", v3, \"NO\", \"YES\", 300.0);\n    if ( (v3[0] & 1) != 0 )\n      operator delete(__p);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 72LL))(v2, 0);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1288LL))(v2);\n  }\n}", "assembly": "; \n; CommentCell::onConfirmDelete from 0x100254fd0 to 0x10025509a (202 bytes)\n; \n; 1 xrefs:\n; > CommentCell::loadFromComment @ 0x1002491b2\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, 0x100254fd0\nmov     rbp, rsp                                                       ; +0x1, 0x100254fd1\npush    rbx                                                            ; +0x4, 0x100254fd4\nsub     rsp, 18h                                                       ; +0x5, 0x100254fd5\ncmp     qword ptr [rdi+248h], 0                                        ; +0x9, 0x100254fd9\njz      loc_100255093                                                  ; +0x11, 0x100254fe1\nadd     rdi, 230h                                                      ; +0x17, 0x100254fe7\nmov     rbx, rdi                                                       ; +0x1e, 0x100254fee\nmov     edi, 38h ; '8'; __sz                                           ; +0x21, 0x100254ff1\ncall    __Znwm; operator new(ulong)                                    ; +0x26, 0x100254ff6\nmov     [rbp+__p], rax                                                 ; +0x2b, 0x100254ffb\nmov     [rbp+var_20], 39h ; '9'                                        ; +0x2f, 0x100254fff\nmov     [rbp+var_18], 35h ; '5'                                        ; +0x37, 0x100255007\nmov     rcx, 3F746E656D6D6F63h                                         ; +0x3f, 0x10025500f\nmov     [rax+2Dh], rcx                                                 ; +0x49, 0x100255019\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_3+20h; \"ete</c> this comment?\" ; +0x4d, 0x10025501d\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x54, 0x100255024\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_3+10h; \" want to <cr>delete</c> this comment?\" ; +0x58, 0x100255028\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x5f, 0x10025502f\nmovups  xmm0, xmmword ptr cs:aAreYouSureYouW_3; \"Are you sure you want to <cr>delete</c>\"... ; +0x63, 0x100255033\nmovups  xmmword ptr [rax], xmm0                                        ; +0x6a, 0x10025503a\nmov     byte ptr [rax+35h], 0                                          ; +0x6d, 0x10025503d\nlea     rsi, aDeleteComment; \"Delete Comment\"                          ; +0x71, 0x100255041\nlea     rcx, aNo; \"NO\"                                                 ; +0x78, 0x100255048\nlea     r8, aYes_0; \"YES\"                                              ; +0x7f, 0x10025504f\nlea     rdx, [rbp+var_20]                                              ; +0x86, 0x100255056\nmovss   xmm0, cs:dword_1008152B4                                       ; +0x8a, 0x10025505a\nmov     rdi, rbx                                                       ; +0x92, 0x100255062\ncall    FLAlertLayer__create_1                                         ; +0x95, 0x100255065\nmov     rbx, rax                                                       ; +0x9a, 0x10025506a\ntest    byte ptr [rbp+var_20], 1                                       ; +0x9d, 0x10025506d\njz      short loc_10025507C                                            ; +0xa1, 0x100255071\nmov     rdi, [rbp+__p]; __p                                            ; +0xa3, 0x100255073\ncall    __ZdlPv; operator delete(void *)                               ; +0xa7, 0x100255077\nmov     rax, [rbx]                                                     ; +0xac, 0x10025507c\nmov     rdi, rbx                                                       ; +0xaf, 0x10025507f\nxor     esi, esi                                                       ; +0xb2, 0x100255082\ncall    qword ptr [rax+48h]                                            ; +0xb4, 0x100255084\nmov     rax, [rbx]                                                     ; +0xb7, 0x100255087\nmov     rdi, rbx                                                       ; +0xba, 0x10025508a\ncall    qword ptr [rax+508h]                                           ; +0xbd, 0x10025508d\nadd     rsp, 18h                                                       ; +0xc3, 0x100255093\npop     rbx                                                            ; +0xc7, 0x100255097\npop     rbp                                                            ; +0xc8, 0x100255098\nretn                                                                   ; +0xc9, 0x100255099", "xrefs": ["CommentCell::loadFromComment @ 0x1002491b2"], "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"}