{"type": "func", "start": 4296144744, "end": 4296144904, "name": "CustomSongWidget::onDelete", "pseudocode": "// \n// CustomSongWidget::onDelete from 0x10011f768 to 0x10011f808 (160 bytes)\n// \n// 1 xrefs:\n// > CustomSongWidget::init @ 0x10011e87c\n// \n// This function is hookable on this platform (idp: arm, 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 10:59:14 +0000\n// \n\n__int64 __fastcall CustomSongWidget::onDelete(__int64 result)\n{\n  __int64 v1; // x19\n  __int64 v2; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v4; // [xsp+1Fh] [xbp-11h]\n\n  if ( *(_QWORD *)(result + 336) )\n  {\n    v1 = result;\n    sub_100009900(__p, \"Do you want to <cr>delete</c> this song?\");\n    v2 = FLAlertLayer::create_1(v1 + 328, \"Delete Song\", __p, \"Cancel\", \"Delete\", 300.0);\n    if ( v4 < 0 )\n      operator delete(__p[0]);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 2);\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::onDelete from 0x10011f768 to 0x10011f808 (160 bytes)\n; \n; 1 xrefs:\n; > CustomSongWidget::init @ 0x10011e87c\n; \n; This function is hookable on this platform (idp: arm, 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 10:59:14 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x10011f768\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10011f76c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10011f770\nADD             X29, SP, #0x30                                         ; +0xc, 0x10011f774\nLDR             X8, [X0,#0x150]                                        ; +0x10, 0x10011f778\nCBZ             X8, loc_10011F7F8                                      ; +0x14, 0x10011f77c\nMOV             X19, X0                                                ; +0x18, 0x10011f780\nADRL            X1, aDoYouWantToCrD_0; \"Do you want to <cr>delete</c> this song\"... ; +0x1c, 0x10011f784\nADD             X0, SP, #0x30+__p; int                                 ; +0x24, 0x10011f78c\nBL              sub_100009900                                          ; +0x28, 0x10011f790\nADRL            X1, aDeleteSong; \"Delete Song\"                         ; +0x2c, 0x10011f794\nADRL            X3, aCancel; \"Cancel\"                                  ; +0x34, 0x10011f79c\nADRL            X4, aDelete_0; \"Delete\"                                ; +0x3c, 0x10011f7a4\nMOV             W8, #0x43960000                                        ; +0x44, 0x10011f7ac\nFMOV            S0, W8                                                 ; +0x48, 0x10011f7b0\nADD             X0, X19, #0x148                                        ; +0x4c, 0x10011f7b4\nADD             X2, SP, #0x30+__p                                      ; +0x50, 0x10011f7b8\nBL              FLAlertLayer__create_1                                 ; +0x54, 0x10011f7bc\nMOV             X19, X0                                                ; +0x58, 0x10011f7c0\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x5c, 0x10011f7c4\nTBZ             W8, #0x1F, loc_10011F7D4                               ; +0x60, 0x10011f7c8\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x64, 0x10011f7cc\nBL              __ZdlPv; operator delete(void *)                       ; +0x68, 0x10011f7d0\nLDR             X8, [X19]                                              ; +0x6c, 0x10011f7d4\nLDR             X8, [X8,#0x48]                                         ; +0x70, 0x10011f7d8\nMOV             X0, X19                                                ; +0x74, 0x10011f7dc\nMOV             W1, #2                                                 ; +0x78, 0x10011f7e0\nBLR             X8                                                     ; +0x7c, 0x10011f7e4\nLDR             X8, [X19]                                              ; +0x80, 0x10011f7e8\nLDR             X8, [X8,#0x520]                                        ; +0x84, 0x10011f7ec\nMOV             X0, X19                                                ; +0x88, 0x10011f7f0\nBLR             X8                                                     ; +0x8c, 0x10011f7f4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x90, 0x10011f7f8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x94, 0x10011f7fc\nADD             SP, SP, #0x40 ; '@'                                    ; +0x98, 0x10011f800\nRET                                                                    ; +0x9c, 0x10011f804", "xrefs": ["CustomSongWidget::init @ 0x10011e87c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}