{"type": "func", "start": 4298050088, "end": 4298050248, "name": "CustomSFXWidget::onDelete", "pseudocode": "// \n// CustomSFXWidget::onDelete from 0x1002f0a28 to 0x1002f0ac8 (160 bytes)\n// \n// 1 xrefs:\n// > CustomSFXWidget::init @ 0x1002f01bc\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 CustomSFXWidget::onDelete(CustomSFXWidget *a1, cocos2d::CCObject *a2)\n{\n  FLAlertLayer *v3; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v5; // [xsp+1Fh] [xbp-11h]\n\n  if ( a1->m_sfxObject )\n  {\n    sub_100009900(__p, \"Do you want to <cr>Delete</c> this SFX?\");\n    v3 = FLAlertLayer::create_1(\n           (__int64)&a1->FLAlertLayerProtocol,\n           (__int64)\"Delete SFX\",\n           (__int64)__p,\n           (__int64)\"Cancel\",\n           (__int64)\"Delete\",\n           300.0);\n    if ( v5 < 0 )\n      operator delete(__p[0]);\n    ((void (__fastcall *)(FLAlertLayer *, __int64))v3->setTag)(v3, 3);\n    ((void (__fastcall *)(FLAlertLayer *))v3->show)(v3);\n  }\n}", "assembly": "; \n; CustomSFXWidget::onDelete from 0x1002f0a28 to 0x1002f0ac8 (160 bytes)\n; \n; 1 xrefs:\n; > CustomSFXWidget::init @ 0x1002f01bc\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, 0x1002f0a28\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1002f0a2c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1002f0a30\nADD             X29, SP, #0x30                                         ; +0xc, 0x1002f0a34\nLDR             X8, [X0,#0x150]                                        ; +0x10, 0x1002f0a38\nCBZ             X8, loc_1002F0AB8                                      ; +0x14, 0x1002f0a3c\nMOV             X19, X0                                                ; +0x18, 0x1002f0a40\nADRL            X1, aDoYouWantToCrD_4; \"Do you want to <cr>Delete</c> this SFX?\" ; +0x1c, 0x1002f0a44\nADD             X0, SP, #0x30+__p; int                                 ; +0x24, 0x1002f0a4c\nBL              sub_100009900                                          ; +0x28, 0x1002f0a50\nADRL            X1, aDeleteSfx; \"Delete SFX\"                           ; +0x2c, 0x1002f0a54\nADRL            X3, aCancel; \"Cancel\"                                  ; +0x34, 0x1002f0a5c\nADRL            X4, aDelete; \"Delete\"                                  ; +0x3c, 0x1002f0a64\nMOV             W8, #0x43960000                                        ; +0x44, 0x1002f0a6c\nFMOV            S0, W8                                                 ; +0x48, 0x1002f0a70\nADD             X0, X19, #0x148                                        ; +0x4c, 0x1002f0a74\nADD             X2, SP, #0x30+__p                                      ; +0x50, 0x1002f0a78\nBL              FLAlertLayer__create_1                                 ; +0x54, 0x1002f0a7c\nMOV             X19, X0                                                ; +0x58, 0x1002f0a80\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x5c, 0x1002f0a84\nTBZ             W8, #0x1F, loc_1002F0A94                               ; +0x60, 0x1002f0a88\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x64, 0x1002f0a8c\nBL              __ZdlPv; operator delete(void *)                       ; +0x68, 0x1002f0a90\nLDR             X8, [X19]                                              ; +0x6c, 0x1002f0a94\nLDR             X8, [X8,#0x48]                                         ; +0x70, 0x1002f0a98\nMOV             X0, X19                                                ; +0x74, 0x1002f0a9c\nMOV             W1, #3                                                 ; +0x78, 0x1002f0aa0\nBLR             X8                                                     ; +0x7c, 0x1002f0aa4\nLDR             X8, [X19]                                              ; +0x80, 0x1002f0aa8\nLDR             X8, [X8,#0x508]                                        ; +0x84, 0x1002f0aac\nMOV             X0, X19                                                ; +0x88, 0x1002f0ab0\nBLR             X8                                                     ; +0x8c, 0x1002f0ab4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x90, 0x1002f0ab8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x94, 0x1002f0abc\nADD             SP, SP, #0x40 ; '@'                                    ; +0x98, 0x1002f0ac0\nRET                                                                    ; +0x9c, 0x1002f0ac4", "xrefs": ["CustomSFXWidget::init @ 0x1002f01bc"], "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"}