{"type": "func", "start": 5369536256, "end": 5369536542, "name": "CustomSongWidget::onDelete", "pseudocode": "// \n// CustomSongWidget::onDelete from 0x1400c9f00 to 0x1400ca01e (286 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::init @ 0x1400c88b9\n// > <???> @ 0x1406c82b0\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\n// Hidden C++ exception states: #wind=1\nvoid CustomSongWidget::onDelete(CustomSongWidget *a1, cocos2d::CCObject *a2)\n{\n  int v2; // ebx\n  __int64 v3; // rax\n  FLAlertLayer *v4; // rbx\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( a1->m_songInfoObject )\n  {\n    v2 = (_DWORD)a1 + 328;\n    if ( !a1 )\n      v2 = 0;\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003AA10(0x30u);\n    v6 = 40;\n    v7 = 47;\n    strcpy((char *)v5, \"Do you want to <cr>delete</c> this song?\");\n    v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n    v4 = FLAlertLayer::create(\n           v2,\n           (int)\"Delete Song\",\n           v3,\n           (__int64)\"Cancel\",\n           (__int64)\"Delete\",\n           1133903872,\n           0,\n           0,\n           1065353216);\n    sub_14003A830((__int64)&v5);\n    v4->setTag(v4, 2);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; CustomSongWidget::onDelete from 0x1400c9f00 to 0x1400ca01e (286 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::init @ 0x1400c88b9\n; > <???> @ 0x1406c82b0\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    rbx                                                            ; +0x0, 0x1400c9f00\nsub     rsp, 90h                                                       ; +0x2, 0x1400c9f02\ncmp     qword ptr [rcx+150h], 0                                        ; +0x9, 0x1400c9f09\njz      loc_1400CA015                                                  ; +0x11, 0x1400c9f11\nlea     rbx, [rcx+148h]                                                ; +0x17, 0x1400c9f17\nxor     eax, eax                                                       ; +0x1e, 0x1400c9f1e\ntest    rcx, rcx                                                       ; +0x20, 0x1400c9f20\ncmovz   rbx, rax                                                       ; +0x23, 0x1400c9f23\nxorps   xmm0, xmm0                                                     ; +0x27, 0x1400c9f27\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x2a, 0x1400c9f2a\nmov     [rsp+98h+var_38], rax                                          ; +0x2f, 0x1400c9f2f\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x34, 0x1400c9f34\nlea     ecx, [rax+30h]                                                 ; +0x3d, 0x1400c9f3d\ncall    sub_14003AA10                                                  ; +0x40, 0x1400c9f40\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x45, 0x1400c9f45\nmov     [rsp+98h+var_38], 28h ; '('                                    ; +0x4a, 0x1400c9f4a\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x53, 0x1400c9f53\nmovups  xmm0, cs:xmmword_14054F140                                     ; +0x5c, 0x1400c9f5c\nmovups  xmmword ptr [rax], xmm0                                        ; +0x63, 0x1400c9f63\nmovups  xmm1, cs:xmmword_14054F150                                     ; +0x66, 0x1400c9f66\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6d, 0x1400c9f6d\nmovsd   xmm0, cs:qword_14054F160                                       ; +0x71, 0x1400c9f71\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0x79, 0x1400c9f79\nmov     byte ptr [rax+28h], 0                                          ; +0x7e, 0x1400c9f7e\nlea     rax, [rsp+98h+var_48]                                          ; +0x82, 0x1400c9f82\nmov     [rsp+98h+arg_0], rax                                           ; +0x87, 0x1400c9f87\nlea     rdx, [rsp+98h+var_48]                                          ; +0x8f, 0x1400c9f8f\nlea     rcx, [rsp+98h+var_28]                                          ; +0x94, 0x1400c9f94\ncall    sub_14003BDB0                                                  ; +0x99, 0x1400c9f99\nmovss   xmm0, cs:flt_140622C24                                         ; +0x9e, 0x1400c9f9e\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xa6, 0x1400c9fa6\nxorps   xmm1, xmm1                                                     ; +0xac, 0x1400c9fac\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xaf, 0x1400c9faf\nmov     [rsp+98h+var_68], 0                                            ; +0xb5, 0x1400c9fb5\nmovss   xmm0, cs:dword_14062343C                                       ; +0xba, 0x1400c9fba\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc2, 0x1400c9fc2\nlea     rcx, aDelete_0; \"Delete\"                                       ; +0xc8, 0x1400c9fc8\nmov     [rsp+98h+var_78], rcx                                          ; +0xcf, 0x1400c9fcf\nlea     r9, aCancel; \"Cancel\"                                          ; +0xd4, 0x1400c9fd4\nmov     r8, rax                                                        ; +0xdb, 0x1400c9fdb\nlea     rdx, aDeleteSong; \"Delete Song\"                                ; +0xde, 0x1400c9fde\nmov     rcx, rbx                                                       ; +0xe5, 0x1400c9fe5\ncall    FLAlertLayer__create                                           ; +0xe8, 0x1400c9fe8\nmov     rbx, rax                                                       ; +0xed, 0x1400c9fed\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf0, 0x1400c9ff0\ncall    sub_14003A830                                                  ; +0xf5, 0x1400c9ff5\nmov     r8, [rbx]                                                      ; +0xfa, 0x1400c9ffa\nmov     edx, 2                                                         ; +0xfd, 0x1400c9ffd\nmov     rcx, rbx                                                       ; +0x102, 0x1400ca002\ncall    qword ptr [r8+40h]                                             ; +0x105, 0x1400ca005\nmov     rdx, [rbx]                                                     ; +0x109, 0x1400ca009\nmov     rcx, rbx                                                       ; +0x10c, 0x1400ca00c\ncall    qword ptr [rdx+410h]                                           ; +0x10f, 0x1400ca00f\nadd     rsp, 90h                                                       ; +0x115, 0x1400ca015\npop     rbx                                                            ; +0x11c, 0x1400ca01c\nretn                                                                   ; +0x11d, 0x1400ca01d", "xrefs": ["CustomSongWidget::init @ 0x1400c88b9", "<???> @ 0x1406c82b0"], "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"}