{"type": "func", "start": 4301372736, "end": 4301372930, "name": "CustomSongWidget::onDelete", "pseudocode": "// \n// CustomSongWidget::onDelete from 0x10061bd40 to 0x10061be02 (194 bytes)\n// \n// 1 xrefs:\n// > CustomSongWidget::init @ 0x10061acf2\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 CustomSongWidget::onDelete(CustomSongWidget *a1, cocos2d::CCObject *a2)\n{\n  char *v2; // rbx\n  _QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( a1->m_songInfoObject )\n  {\n    __p = operator new(0x30u);\n    v3[0] = 49;\n    v3[1] = 40;\n    strcpy((char *)__p, \"Do you want to <cr>delete</c> this song?\");\n    v2 = FLAlertLayer::create_1(\n           (int)a1 + 328,\n           (int)\"Delete Song\",\n           (__int64)v3,\n           (int)\"Cancel\",\n           (int)\"Delete\",\n           COERCE_DOUBLE(1133903872));\n    if ( (v3[0] & 1) != 0 )\n      operator delete(__p);\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v2 + 72LL))(v2, 2);\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 1288LL))(v2);\n  }\n}", "assembly": "; \n; CustomSongWidget::onDelete from 0x10061bd40 to 0x10061be02 (194 bytes)\n; \n; 1 xrefs:\n; > CustomSongWidget::init @ 0x10061acf2\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, 0x10061bd40\nmov     rbp, rsp                                                       ; +0x1, 0x10061bd41\npush    rbx                                                            ; +0x4, 0x10061bd44\nsub     rsp, 18h                                                       ; +0x5, 0x10061bd45\ncmp     qword ptr [rdi+150h], 0                                        ; +0x9, 0x10061bd49\njz      loc_10061BDFB                                                  ; +0x11, 0x10061bd51\nadd     rdi, 148h                                                      ; +0x17, 0x10061bd57\nmov     rbx, rdi                                                       ; +0x1e, 0x10061bd5e\nmov     edi, 30h ; '0'; __sz                                           ; +0x21, 0x10061bd61\ncall    __Znwm; operator new(ulong)                                    ; +0x26, 0x10061bd66\nmov     [rbp+__p], rax                                                 ; +0x2b, 0x10061bd6b\nmov     [rbp+var_20], 31h ; '1'                                        ; +0x2f, 0x10061bd6f\nmov     [rbp+var_18], 28h ; '('                                        ; +0x37, 0x10061bd77\nmov     rcx, 3F676E6F73207369h                                         ; +0x3f, 0x10061bd7f\nmov     [rax+20h], rcx                                                 ; +0x49, 0x10061bd89\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCrD_4+10h; \"cr>delete</c> this song?\" ; +0x4d, 0x10061bd8d\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x54, 0x10061bd94\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCrD_4; \"Do you want to <cr>delete</c> this song\"... ; +0x58, 0x10061bd98\nmovups  xmmword ptr [rax], xmm0                                        ; +0x5f, 0x10061bd9f\nmov     byte ptr [rax+28h], 0                                          ; +0x62, 0x10061bda2\nlea     rsi, aDeleteSong; \"Delete Song\"                                ; +0x66, 0x10061bda6\nlea     rcx, aCancel; \"Cancel\"                                         ; +0x6d, 0x10061bdad\nlea     r8, aDelete_0; \"Delete\"                                        ; +0x74, 0x10061bdb4\nlea     rdx, [rbp+var_20]                                              ; +0x7b, 0x10061bdbb\nmovss   xmm0, cs:dword_1008152B4                                       ; +0x7f, 0x10061bdbf\nmov     rdi, rbx                                                       ; +0x87, 0x10061bdc7\ncall    FLAlertLayer__create_1                                         ; +0x8a, 0x10061bdca\nmov     rbx, rax                                                       ; +0x8f, 0x10061bdcf\ntest    byte ptr [rbp+var_20], 1                                       ; +0x92, 0x10061bdd2\njz      short loc_10061BDE1                                            ; +0x96, 0x10061bdd6\nmov     rdi, [rbp+__p]; __p                                            ; +0x98, 0x10061bdd8\ncall    __ZdlPv; operator delete(void *)                               ; +0x9c, 0x10061bddc\nmov     rax, [rbx]                                                     ; +0xa1, 0x10061bde1\nmov     rdi, rbx                                                       ; +0xa4, 0x10061bde4\nmov     esi, 2                                                         ; +0xa7, 0x10061bde7\ncall    qword ptr [rax+48h]                                            ; +0xac, 0x10061bdec\nmov     rax, [rbx]                                                     ; +0xaf, 0x10061bdef\nmov     rdi, rbx                                                       ; +0xb2, 0x10061bdf2\ncall    qword ptr [rax+508h]                                           ; +0xb5, 0x10061bdf5\nadd     rsp, 18h                                                       ; +0xbb, 0x10061bdfb\npop     rbx                                                            ; +0xbf, 0x10061bdff\npop     rbp                                                            ; +0xc0, 0x10061be00\nretn                                                                   ; +0xc1, 0x10061be01", "xrefs": ["CustomSongWidget::init @ 0x10061acf2"], "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"}