{"type": "func", "start": 4302276880, "end": 4302277074, "name": "CustomSongWidget::onDelete", "pseudocode": "// \n// CustomSongWidget::onDelete from 0x1006f8910 to 0x1006f89d2 (194 bytes)\n// \n// 1 xrefs:\n// > CustomSongWidget::init @ 0x1006f77ac\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:35:54 +0000\n// \n\nvoid __fastcall CustomSongWidget::onDelete(__int64 a1)\n{\n  char *v1; // rbx\n  _QWORD v2[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( *(_QWORD *)(a1 + 336) )\n  {\n    __p = operator new(0x30u);\n    v2[0] = 49;\n    v2[1] = 40;\n    strcpy((char *)__p, \"Do you want to <cr>delete</c> this song?\");\n    v1 = FLAlertLayer::create_1((int)a1 + 328, (int)\"Delete Song\", (__int64)v2, (int)\"Cancel\", (int)\"Delete\", 300.0);\n    if ( (v2[0] & 1) != 0 )\n      operator delete(__p);\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v1 + 72LL))(v1, 2);\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 1312LL))(v1);\n  }\n}", "assembly": "; \n; CustomSongWidget::onDelete from 0x1006f8910 to 0x1006f89d2 (194 bytes)\n; \n; 1 xrefs:\n; > CustomSongWidget::init @ 0x1006f77ac\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:35:54 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006f8910\nmov     rbp, rsp                                                       ; +0x1, 0x1006f8911\npush    rbx                                                            ; +0x4, 0x1006f8914\nsub     rsp, 18h                                                       ; +0x5, 0x1006f8915\ncmp     qword ptr [rdi+150h], 0                                        ; +0x9, 0x1006f8919\njz      loc_1006F89CB                                                  ; +0x11, 0x1006f8921\nadd     rdi, 148h                                                      ; +0x17, 0x1006f8927\nmov     rbx, rdi                                                       ; +0x1e, 0x1006f892e\nmov     edi, 30h ; '0'; __sz                                           ; +0x21, 0x1006f8931\ncall    __Znwm; operator new(ulong)                                    ; +0x26, 0x1006f8936\nmov     [rbp+__p], rax                                                 ; +0x2b, 0x1006f893b\nmov     [rbp+var_20], 31h ; '1'                                        ; +0x2f, 0x1006f893f\nmov     [rbp+var_18], 28h ; '('                                        ; +0x37, 0x1006f8947\nmov     rcx, 3F676E6F73207369h                                         ; +0x3f, 0x1006f894f\nmov     [rax+20h], rcx                                                 ; +0x49, 0x1006f8959\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCrD_3+10h; \"cr>delete</c> this song?\" ; +0x4d, 0x1006f895d\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x54, 0x1006f8964\nmovups  xmm0, xmmword ptr cs:aDoYouWantToCrD_3; \"Do you want to <cr>delete</c> this song\"... ; +0x58, 0x1006f8968\nmovups  xmmword ptr [rax], xmm0                                        ; +0x5f, 0x1006f896f\nmov     byte ptr [rax+28h], 0                                          ; +0x62, 0x1006f8972\nlea     rsi, aDeleteSong; \"Delete Song\"                                ; +0x66, 0x1006f8976\nlea     rcx, aCancel; \"Cancel\"                                         ; +0x6d, 0x1006f897d\nlea     r8, aDelete_0; \"Delete\"                                        ; +0x74, 0x1006f8984\nlea     rdx, [rbp+var_20]                                              ; +0x7b, 0x1006f898b\nmovss   xmm0, cs:dword_100A03734                                       ; +0x7f, 0x1006f898f\nmov     rdi, rbx                                                       ; +0x87, 0x1006f8997\ncall    FLAlertLayer__create_1                                         ; +0x8a, 0x1006f899a\nmov     rbx, rax                                                       ; +0x8f, 0x1006f899f\ntest    byte ptr [rbp+var_20], 1                                       ; +0x92, 0x1006f89a2\njz      short loc_1006F89B1                                            ; +0x96, 0x1006f89a6\nmov     rdi, [rbp+__p]; __p                                            ; +0x98, 0x1006f89a8\ncall    __ZdlPv; operator delete(void *)                               ; +0x9c, 0x1006f89ac\nmov     rax, [rbx]                                                     ; +0xa1, 0x1006f89b1\nmov     rdi, rbx                                                       ; +0xa4, 0x1006f89b4\nmov     esi, 2                                                         ; +0xa7, 0x1006f89b7\ncall    qword ptr [rax+48h]                                            ; +0xac, 0x1006f89bc\nmov     rax, [rbx]                                                     ; +0xaf, 0x1006f89bf\nmov     rdi, rbx                                                       ; +0xb2, 0x1006f89c2\ncall    qword ptr [rax+520h]                                           ; +0xb5, 0x1006f89c5\nadd     rsp, 18h                                                       ; +0xbb, 0x1006f89cb\npop     rbx                                                            ; +0xbf, 0x1006f89cf\npop     rbp                                                            ; +0xc0, 0x1006f89d0\nretn                                                                   ; +0xc1, 0x1006f89d1", "xrefs": ["CustomSongWidget::init @ 0x1006f77ac"], "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"}