{"type": "func", "start": 8814284, "end": 8814568, "name": "CustomSongWidget::onDelete", "pseudocode": "// \n// CustomSongWidget::onDelete from 0x867ecc to 0x867fe8 (284 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xaaa40\n// > CustomSongWidget::init @ 0x86b2d0\n// > <???> @ 0x1544d20\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 12:55:41 +0000\n// \n\n__int64 __fastcall CustomSongWidget::onDelete(CustomSongWidget *this, cocos2d::CCObject *a2)\n{\n  __int64 v3; // x20\n  _QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF\n  void *v6; // [xsp+30h] [xbp+30h]\n\n  if ( *((_QWORD *)this + 42) )\n  {\n    v6 = (void *)operator new(0x30u);\n    v5[1] = 40;\n    v5[0] = 49;\n    strcpy((char *)v6, \"Do you want to <cr>delete</c> this song?\");\n    v3 = FLAlertLayer::create(\n           (__int64)this + 328,\n           (cocos2d::CCLabelBMFont *)\"Delete Song\",\n           (char *)v5,\n           (ButtonSprite *)\"Cancel\",\n           (ButtonSprite *)\"Delete\",\n           300.0);\n    if ( (v5[0] & 1) != 0 )\n      operator delete(v6);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 2);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CustomSongWidget::onDelete from 0x867ecc to 0x867fe8 (284 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xaaa40\n; > CustomSongWidget::init @ 0x86b2d0\n; > <???> @ 0x1544d20\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 12:55:41 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x867ecc\nMOV             X29, SP                                                ; +0x4, 0x867ed0\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x867ed4\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x867ed8\nMOV             X20, X0                                                ; +0x10, 0x867edc\nLDR             X0, [X0,#0x150]                                        ; +0x14, 0x867ee0\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x867ee4\nLDR             X1, [X1]                                               ; +0x1c, 0x867ee8\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x20, 0x867eec\nCBZ             X0, loc_867F9C                                         ; +0x24, 0x867ef0\nMOV             X0, #0x30 ; '0'; unsigned __int64                      ; +0x28, 0x867ef4\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x2c, 0x867ef8\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x30, 0x867efc\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x34, 0x867f00\nBL              _Znwm; operator new(ulong)                             ; +0x38, 0x867f04\nADRP            X1, #aDoYouWantToCrD_0@PAGE; \"Do you want to <cr>delete</c> this song\"... ; +0x3c, 0x867f08\nMOV             X5, X0                                                 ; +0x40, 0x867f0c\nADD             X1, X1, #aDoYouWantToCrD_0@PAGEOFF; \"Do you want to <cr>delete</c> this song\"... ; +0x44, 0x867f10\nSTR             X5, [X29,#0x40+var_10]                                 ; +0x48, 0x867f14\nLDR             S0, =0x43960000                                        ; +0x4c, 0x867f18\nMOV             X2, #0x28 ; '('                                        ; +0x50, 0x867f1c\nADRP            X4, #aDelete@PAGE; \"Delete\"                            ; +0x54, 0x867f20\nSTR             X2, [X29,#0x40+var_18]                                 ; +0x58, 0x867f24\nLDR             X3, [X1,#(aDoYouWantToCrD_0+0x20 - 0x114B388)]; \"is song?\" ; +0x5c, 0x867f28\nADD             X0, X20, #0x148                                        ; +0x60, 0x867f2c\nLDP             X8, X9, [X1]; \"Do you want to <cr>delete</c> this song\"... ; +0x64, 0x867f30\nLDP             X6, X7, [X1,#(aDoYouWantToCrD_0+0x10 - 0x114B388)]; \"cr>delete</c> this song?\" ; +0x68, 0x867f34\nMOV             X1, #0x31 ; '1'                                        ; +0x6c, 0x867f38\nSTR             X3, [X5,#0x20]                                         ; +0x70, 0x867f3c\nSTR             X1, [X29,#0x40+var_20]                                 ; +0x74, 0x867f40\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x78, 0x867f44\nADRP            X1, #aDeleteSong@PAGE; \"Delete Song\"                   ; +0x7c, 0x867f48\nADD             X2, X29, #0x40+var_20                                  ; +0x80, 0x867f4c\nADD             X1, X1, #aDeleteSong@PAGEOFF; \"Delete Song\"            ; +0x84, 0x867f50\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x88, 0x867f54\nSTRB            WZR, [X5,#0x28]                                        ; +0x8c, 0x867f58\nADD             X4, X4, #aDelete@PAGEOFF; \"Delete\"                     ; +0x90, 0x867f5c\nSTP             X8, X9, [X5]                                           ; +0x94, 0x867f60\nSTP             X6, X7, [X5,#0x10]                                     ; +0x98, 0x867f64\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0x9c, 0x867f68\nMOV             X20, X0                                                ; +0xa0, 0x867f6c\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0xa4, 0x867f70\nTBNZ            W0, #0, loc_867FBC                                     ; +0xa8, 0x867f74\nLDR             X2, [X20]                                              ; +0xac, 0x867f78\nMOV             X0, X20                                                ; +0xb0, 0x867f7c\nMOV             W1, #2                                                 ; +0xb4, 0x867f80\nLDR             X2, [X2,#0x48]                                         ; +0xb8, 0x867f84\nBLR             X2                                                     ; +0xbc, 0x867f88\nLDR             X1, [X20]                                              ; +0xc0, 0x867f8c\nMOV             X0, X20                                                ; +0xc4, 0x867f90\nLDR             X1, [X1,#0x520]                                        ; +0xc8, 0x867f94\nBLR             X1                                                     ; +0xcc, 0x867f98\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xd0, 0x867f9c\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xd4, 0x867fa0\nLDR             X0, [X19]                                              ; +0xd8, 0x867fa4\nCMP             X1, X0                                                 ; +0xdc, 0x867fa8\nB.NE            loc_867FC8                                             ; +0xe0, 0x867fac\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xe4, 0x867fb0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xe8, 0x867fb4\nRET                                                                    ; +0xec, 0x867fb8\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xf0, 0x867fbc\nBL              _ZdlPv; operator delete(void *)                        ; +0xf4, 0x867fc0\nB               loc_867F78                                             ; +0xf8, 0x867fc4\nBL              .__stack_chk_fail                                      ; +0xfc, 0x867fc8\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x100, 0x867fcc\nMOV             X19, X0                                                ; +0x104, 0x867fd0\nTBZ             W1, #0, loc_867FE0                                     ; +0x108, 0x867fd4\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x10c, 0x867fd8\nBL              _ZdlPv; operator delete(void *)                        ; +0x110, 0x867fdc\nMOV             X0, X19                                                ; +0x114, 0x867fe0\nBL              _Unwind_Resume                                         ; +0x118, 0x867fe4", "xrefs": ["<???> @ 0xaaa40", "CustomSongWidget::init @ 0x86b2d0", "<???> @ 0x1544d20"], "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"}