{"type": "func", "start": 11917736, "end": 11918036, "name": "CustomSFXWidget::onDelete", "pseudocode": "// \n// CustomSFXWidget::onDelete from 0xb5d9a8 to 0xb5dad4 (300 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x909b8\n// > CustomSFXWidget::init @ 0xb5f714\n// > <???> @ 0x1543de0\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 13:02:10 +0000\n// \n\n__int64 __fastcall CustomSFXWidget::onDelete(CustomSFXWidget *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] = 39;\n    v5[0] = 49;\n    strcpy((char *)v6, \"Do you want to <cr>Delete</c> this SFX?\");\n    v3 = FLAlertLayer::create(\n           (__int64)this + 328,\n           (cocos2d::CCLabelBMFont *)\"Delete SFX\",\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, 3);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CustomSFXWidget::onDelete from 0xb5d9a8 to 0xb5dad4 (300 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x909b8\n; > CustomSFXWidget::init @ 0xb5f714\n; > <???> @ 0x1543de0\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 13:02:10 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xb5d9a8\nMOV             X29, SP                                                ; +0x4, 0xb5d9ac\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xb5d9b0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xb5d9b4\nMOV             X20, X0                                                ; +0x10, 0xb5d9b8\nLDR             X0, [X0,#0x150]                                        ; +0x14, 0xb5d9bc\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xb5d9c0\nLDR             X1, [X1]                                               ; +0x1c, 0xb5d9c4\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x20, 0xb5d9c8\nCBZ             X0, loc_B5DA88                                         ; +0x24, 0xb5d9cc\nMOV             X0, #0x30 ; '0'; unsigned __int64                      ; +0x28, 0xb5d9d0\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x2c, 0xb5d9d4\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x30, 0xb5d9d8\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x34, 0xb5d9dc\nBL              _Znwm; operator new(ulong)                             ; +0x38, 0xb5d9e0\nADRP            X1, #aDoYouWantToCrD_2@PAGE; \"Do you want to <cr>Delete</c> this SFX?\" ; +0x3c, 0xb5d9e4\nMOV             X5, X0                                                 ; +0x40, 0xb5d9e8\nADD             X1, X1, #aDoYouWantToCrD_2@PAGEOFF; \"Do you want to <cr>Delete</c> this SFX?\" ; +0x44, 0xb5d9ec\nSTR             X5, [X29,#0x40+var_10]                                 ; +0x48, 0xb5d9f0\nLDR             S0, =0x43960000                                        ; +0x4c, 0xb5d9f4\nMOV             X2, #0x27 ; '''                                        ; +0x50, 0xb5d9f8\nSTR             X2, [X29,#0x40+var_18]                                 ; +0x54, 0xb5d9fc\nADD             X0, X20, #0x148                                        ; +0x58, 0xb5da00\nLDR             W3, [X1,#(aDoYouWantToCrD_2+0x20 - 0x1190350)]; \"is SFX?\" ; +0x5c, 0xb5da04\nADD             X2, X29, #0x40+var_20                                  ; +0x60, 0xb5da08\nLDRH            W4, [X1,#(aDoYouWantToCrD_2+0x24 - 0x1190350)]; \"FX?\"  ; +0x64, 0xb5da0c\nLDP             X8, X9, [X1]; \"Do you want to <cr>Delete</c> this SFX?\" ; +0x68, 0xb5da10\nLDP             X6, X7, [X1,#(aDoYouWantToCrD_2+0x10 - 0x1190350)]; \"cr>Delete</c> this SFX?\" ; +0x6c, 0xb5da14\nLDRB            W10, [X1,#(aDoYouWantToCrD_2+0x26 - 0x1190350)]; \"?\"   ; +0x70, 0xb5da18\nMOV             X1, #0x31 ; '1'                                        ; +0x74, 0xb5da1c\nSTR             W3, [X5,#0x20]                                         ; +0x78, 0xb5da20\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x7c, 0xb5da24\nSTR             X1, [X29,#0x40+var_20]                                 ; +0x80, 0xb5da28\nADRP            X1, #aDeleteSfx@PAGE; \"Delete SFX\"                     ; +0x84, 0xb5da2c\nSTRH            W4, [X5,#0x24]                                         ; +0x88, 0xb5da30\nADRP            X4, #aDelete@PAGE; \"Delete\"                            ; +0x8c, 0xb5da34\nADD             X1, X1, #aDeleteSfx@PAGEOFF; \"Delete SFX\"              ; +0x90, 0xb5da38\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0x94, 0xb5da3c\nADD             X4, X4, #aDelete@PAGEOFF; \"Delete\"                     ; +0x98, 0xb5da40\nSTRB            W10, [X5,#0x26]                                        ; +0x9c, 0xb5da44\nSTRB            WZR, [X5,#0x27]                                        ; +0xa0, 0xb5da48\nSTP             X8, X9, [X5]                                           ; +0xa4, 0xb5da4c\nSTP             X6, X7, [X5,#0x10]                                     ; +0xa8, 0xb5da50\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xac, 0xb5da54\nMOV             X20, X0                                                ; +0xb0, 0xb5da58\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0xb4, 0xb5da5c\nTBNZ            W0, #0, loc_B5DAA8                                     ; +0xb8, 0xb5da60\nLDR             X2, [X20]                                              ; +0xbc, 0xb5da64\nMOV             X0, X20                                                ; +0xc0, 0xb5da68\nMOV             W1, #3                                                 ; +0xc4, 0xb5da6c\nLDR             X2, [X2,#0x48]                                         ; +0xc8, 0xb5da70\nBLR             X2                                                     ; +0xcc, 0xb5da74\nLDR             X1, [X20]                                              ; +0xd0, 0xb5da78\nMOV             X0, X20                                                ; +0xd4, 0xb5da7c\nLDR             X1, [X1,#0x520]                                        ; +0xd8, 0xb5da80\nBLR             X1                                                     ; +0xdc, 0xb5da84\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe0, 0xb5da88\nLDR             X1, [X29,#0x40+var_8]                                  ; +0xe4, 0xb5da8c\nLDR             X0, [X19]                                              ; +0xe8, 0xb5da90\nCMP             X1, X0                                                 ; +0xec, 0xb5da94\nB.NE            loc_B5DAB4                                             ; +0xf0, 0xb5da98\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xf4, 0xb5da9c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xf8, 0xb5daa0\nRET                                                                    ; +0xfc, 0xb5daa4\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x100, 0xb5daa8\nBL              _ZdlPv; operator delete(void *)                        ; +0x104, 0xb5daac\nB               loc_B5DA64                                             ; +0x108, 0xb5dab0\nBL              .__stack_chk_fail                                      ; +0x10c, 0xb5dab4\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x110, 0xb5dab8\nMOV             X19, X0                                                ; +0x114, 0xb5dabc\nTBZ             W1, #0, loc_B5DACC                                     ; +0x118, 0xb5dac0\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x11c, 0xb5dac4\nBL              _ZdlPv; operator delete(void *)                        ; +0x120, 0xb5dac8\nMOV             X0, X19                                                ; +0x124, 0xb5dacc\nBL              _Unwind_Resume                                         ; +0x128, 0xb5dad0", "xrefs": ["<???> @ 0x909b8", "CustomSFXWidget::init @ 0xb5f714", "<???> @ 0x1543de0"], "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"}