{"type": "func", "start": 4295994044, "end": 4295994204, "name": "CustomSongWidget::onDelete", "pseudocode": "// \n// CustomSongWidget::onDelete from 0x1000faabc to 0x1000fab5c (160 bytes)\n// \n// 1 xrefs:\n// > CustomSongWidget::init @ 0x1000f9cf8\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  __int64 v3; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v5; // [xsp+1Fh] [xbp-11h]\n\n  if ( a1->m_songInfoObject )\n  {\n    sub_100009900(__p, \"Do you want to <cr>delete</c> this song?\");\n    v3 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, \"Delete Song\", __p, \"Cancel\", \"Delete\", 300.0);\n    if ( v5 < 0 )\n      operator delete(__p[0]);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 2);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1288LL))(v3);\n  }\n}", "assembly": "; \n; CustomSongWidget::onDelete from 0x1000faabc to 0x1000fab5c (160 bytes)\n; \n; 1 xrefs:\n; > CustomSongWidget::init @ 0x1000f9cf8\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1000faabc\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1000faac0\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1000faac4\nADD             X29, SP, #0x30                                         ; +0xc, 0x1000faac8\nLDR             X8, [X0,#0x150]                                        ; +0x10, 0x1000faacc\nCBZ             X8, loc_1000FAB4C                                      ; +0x14, 0x1000faad0\nMOV             X19, X0                                                ; +0x18, 0x1000faad4\nADRL            X1, aDoYouWantToCrD_1; \"Do you want to <cr>delete</c> this song\"... ; +0x1c, 0x1000faad8\nADD             X0, SP, #0x30+__p; int                                 ; +0x24, 0x1000faae0\nBL              sub_100009900                                          ; +0x28, 0x1000faae4\nADRL            X1, aDeleteSong; \"Delete Song\"                         ; +0x2c, 0x1000faae8\nADRL            X3, aCancel; \"Cancel\"                                  ; +0x34, 0x1000faaf0\nADRL            X4, aDelete; \"Delete\"                                  ; +0x3c, 0x1000faaf8\nMOV             W8, #0x43960000                                        ; +0x44, 0x1000fab00\nFMOV            S0, W8                                                 ; +0x48, 0x1000fab04\nADD             X0, X19, #0x148                                        ; +0x4c, 0x1000fab08\nADD             X2, SP, #0x30+__p                                      ; +0x50, 0x1000fab0c\nBL              FLAlertLayer__create_1                                 ; +0x54, 0x1000fab10\nMOV             X19, X0                                                ; +0x58, 0x1000fab14\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x5c, 0x1000fab18\nTBZ             W8, #0x1F, loc_1000FAB28                               ; +0x60, 0x1000fab1c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x64, 0x1000fab20\nBL              __ZdlPv; operator delete(void *)                       ; +0x68, 0x1000fab24\nLDR             X8, [X19]                                              ; +0x6c, 0x1000fab28\nLDR             X8, [X8,#0x48]                                         ; +0x70, 0x1000fab2c\nMOV             X0, X19                                                ; +0x74, 0x1000fab30\nMOV             W1, #2                                                 ; +0x78, 0x1000fab34\nBLR             X8                                                     ; +0x7c, 0x1000fab38\nLDR             X8, [X19]                                              ; +0x80, 0x1000fab3c\nLDR             X8, [X8,#0x508]                                        ; +0x84, 0x1000fab40\nMOV             X0, X19                                                ; +0x88, 0x1000fab44\nBLR             X8                                                     ; +0x8c, 0x1000fab48\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x90, 0x1000fab4c\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x94, 0x1000fab50\nADD             SP, SP, #0x40 ; '@'                                    ; +0x98, 0x1000fab54\nRET                                                                    ; +0x9c, 0x1000fab58", "xrefs": ["CustomSongWidget::init @ 0x1000f9cf8"], "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"}