{"type": "func", "start": 5370196288, "end": 5370196578, "name": "CustomSongWidget::onDelete", "pseudocode": "// \n// CustomSongWidget::onDelete from 0x14016b140 to 0x14016b262 (290 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::init @ 0x14016978d\n// > <???> @ 0x1409180c8\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 11:27:29 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall CustomSongWidget::onDelete(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int128 v4; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v5; // [rsp+60h] [rbp-38h]\n  __int64 v6; // [rsp+68h] [rbp-30h]\n  _BYTE v7[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( *(_QWORD *)(a1 + 336) )\n  {\n    v1 = a1 + 328;\n    if ( !a1 )\n      v1 = 0;\n    v4 = 0;\n    *(_QWORD *)&v4 = sub_14003D460(0x30u);\n    v5 = 40;\n    v6 = 47;\n    strcpy((char *)v4, \"Do you want to <cr>delete</c> this song?\");\n    v2 = sub_14003F4F0((__int64)v7, (__int64)&v4);\n    v3 = FLAlertLayer::create(\n           v1,\n           (int)\"Delete Song\",\n           v2,\n           (__int64)\"Cancel\",\n           (__int64)\"Delete\",\n           1133903872,\n           0,\n           0,\n           1065353216);\n    sub_14003D310((__int64)&v4);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 2);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n  }\n}", "assembly": "; \n; CustomSongWidget::onDelete from 0x14016b140 to 0x14016b262 (290 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::init @ 0x14016978d\n; > <???> @ 0x1409180c8\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 11:27:29 +0000\n; \npush    rbx                                                            ; +0x0, 0x14016b140\nsub     rsp, 90h                                                       ; +0x2, 0x14016b142\ncmp     qword ptr [rcx+150h], 0                                        ; +0x9, 0x14016b149\njz      loc_14016B259                                                  ; +0x11, 0x14016b151\nlea     rbx, [rcx+148h]                                                ; +0x17, 0x14016b157\nxor     eax, eax                                                       ; +0x1e, 0x14016b15e\ntest    rcx, rcx                                                       ; +0x20, 0x14016b160\ncmovz   rbx, rax                                                       ; +0x23, 0x14016b163\nxorps   xmm0, xmm0                                                     ; +0x27, 0x14016b167\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x2a, 0x14016b16a\nmov     [rsp+98h+var_38], rax                                          ; +0x2f, 0x14016b16f\nmov     [rsp+98h+var_30], rax                                          ; +0x34, 0x14016b174\nmov     ecx, 30h ; '0'                                                 ; +0x39, 0x14016b179\ncall    sub_14003D460                                                  ; +0x3e, 0x14016b17e\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x43, 0x14016b183\nmov     [rsp+98h+var_38], 28h ; '('                                    ; +0x48, 0x14016b188\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x51, 0x14016b191\nmovups  xmm0, cs:xmmword_140744DF0                                     ; +0x5a, 0x14016b19a\nmovups  xmmword ptr [rax], xmm0                                        ; +0x61, 0x14016b1a1\nmovups  xmm1, cs:xmmword_140744E00                                     ; +0x64, 0x14016b1a4\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6b, 0x14016b1ab\nmovsd   xmm0, cs:qword_140744E10                                       ; +0x6f, 0x14016b1af\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0x77, 0x14016b1b7\nmov     byte ptr [rax+28h], 0                                          ; +0x7c, 0x14016b1bc\nlea     rax, [rsp+98h+var_48]                                          ; +0x80, 0x14016b1c0\nmov     [rsp+98h+arg_0], rax                                           ; +0x85, 0x14016b1c5\nlea     rdx, [rsp+98h+var_48]                                          ; +0x8d, 0x14016b1cd\nlea     rcx, [rsp+98h+var_28]                                          ; +0x92, 0x14016b1d2\ncall    sub_14003F4F0                                                  ; +0x97, 0x14016b1d7\nmovss   xmm0, cs:flt_140835080                                         ; +0x9c, 0x14016b1dc\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xa4, 0x14016b1e4\nxorps   xmm1, xmm1                                                     ; +0xaa, 0x14016b1ea\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xad, 0x14016b1ed\nmov     [rsp+98h+var_68], 0                                            ; +0xb3, 0x14016b1f3\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xb8, 0x14016b1f8\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc0, 0x14016b200\nlea     rcx, aDelete_0; \"Delete\"                                       ; +0xc6, 0x14016b206\nmov     [rsp+98h+var_78], rcx                                          ; +0xcd, 0x14016b20d\nlea     r9, aCancel; \"Cancel\"                                          ; +0xd2, 0x14016b212\nmov     r8, rax                                                        ; +0xd9, 0x14016b219\nlea     rdx, aDeleteSong; \"Delete Song\"                                ; +0xdc, 0x14016b21c\nmov     rcx, rbx                                                       ; +0xe3, 0x14016b223\ncall    FLAlertLayer__create                                           ; +0xe6, 0x14016b226\nmov     rbx, rax                                                       ; +0xeb, 0x14016b22b\nlea     rcx, [rsp+98h+var_48]                                          ; +0xee, 0x14016b22e\ncall    sub_14003D310                                                  ; +0xf3, 0x14016b233\nmov     rcx, [rbx]                                                     ; +0xf8, 0x14016b238\nmov     r8, [rcx+40h]                                                  ; +0xfb, 0x14016b23b\nmov     edx, 2                                                         ; +0xff, 0x14016b23f\nmov     rcx, rbx                                                       ; +0x104, 0x14016b244\ncall    r8                                                             ; +0x107, 0x14016b247\nmov     rcx, [rbx]                                                     ; +0x10a, 0x14016b24a\nmov     rdx, [rcx+428h]                                                ; +0x10d, 0x14016b24d\nmov     rcx, rbx                                                       ; +0x114, 0x14016b254\ncall    rdx                                                            ; +0x117, 0x14016b257\nadd     rsp, 90h                                                       ; +0x119, 0x14016b259\npop     rbx                                                            ; +0x120, 0x14016b260\nretn                                                                   ; +0x121, 0x14016b261", "xrefs": ["CustomSongWidget::init @ 0x14016978d", "<???> @ 0x1409180c8"], "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"}