{"type": "func", "start": 13168668, "end": 13169064, "name": "ClearPlatformerSavesPopup::onDelete", "pseudocode": "// \n// ClearPlatformerSavesPopup::onDelete from 0xc8f01c to 0xc8f1a8 (396 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xff4f0\n// > ClearPlatformerSavesPopup::init @ 0xc8fee0\n// > <???> @ 0x1547c90\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:05:46 +0000\n// \n\n__int64 __fastcall ClearPlatformerSavesPopup::onDelete(ClearPlatformerSavesPopup *this, cocos2d::CCObject *a2)\n{\n  const char *v2; // x1\n  char *v3; // x19\n  size_t v4; // x0\n  ButtonSprite **v5; // x19\n  char *v7; // [xsp+38h] [xbp+38h]\n  __int64 v8; // [xsp+48h] [xbp+48h] BYREF\n  size_t v9; // [xsp+50h] [xbp+50h]\n  void *v10; // [xsp+58h] [xbp+58h]\n  __int64 v11; // [xsp+60h] [xbp+60h] BYREF\n  size_t v12; // [xsp+68h] [xbp+68h]\n  void *v13; // [xsp+70h] [xbp+70h]\n\n  if ( *((_BYTE *)this + 672) )\n    v2 = \"This will clear <cr>all</c> platformer saves, <cy>including favorites</c>.\\nContinue?\";\n  else\n    v2 = \"This will clear platformer saves on all <cy>non-favorite</c> levels.\\nContinue?\";\n  v7 = (char *)v2;\n  v3 = (char *)this + 664;\n  v8 = 0;\n  v9 = 0;\n  v10 = nullptr;\n  v4 = strlen(v2);\n  std::string::__init(&v8, v7, v4);\n  v11 = 0;\n  v12 = 0;\n  v13 = nullptr;\n  if ( (v8 & 1) != 0 )\n  {\n    std::string::__init(&v11, v10, v9);\n  }\n  else\n  {\n    v13 = v10;\n    v11 = v8;\n    v12 = v9;\n  }\n  v5 = (ButtonSprite **)FLAlertLayer::create(\n                          (__int64)v3,\n                          (cocos2d::CCLabelBMFont *)\"Confirm\",\n                          (char *)&v11,\n                          (ButtonSprite *)\"Cancel\",\n                          (ButtonSprite *)\"Delete\",\n                          380.0);\n  if ( (v11 & 1) != 0 )\n    operator delete(v13);\n  (*((void (__fastcall **)(ButtonSprite **, __int64))*v5 + 9))(v5, 1);\n  ButtonSprite::updateBGImage(v5[77], \"GJ_button_06.png\");\n  (*((void (__fastcall **)(ButtonSprite **))*v5 + 164))(v5);\n  if ( (v8 & 1) != 0 )\n    operator delete(v10);\n  return _stack_chk_guard;\n}", "assembly": "; \n; ClearPlatformerSavesPopup::onDelete from 0xc8f01c to 0xc8f1a8 (396 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xff4f0\n; > ClearPlatformerSavesPopup::init @ 0xc8fee0\n; > <???> @ 0x1547c90\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:05:46 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xc8f01c\nMOV             X2, X0                                                 ; +0x4, 0xc8f020\nMOV             X29, SP                                                ; +0x8, 0xc8f024\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0xc, 0xc8f028\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xc8f02c\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x14, 0xc8f030\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xc8f034\nLDRB            W0, [X0,#0x2A0]                                        ; +0x1c, 0xc8f038\nLDR             X1, [X1]                                               ; +0x20, 0xc8f03c\nSTR             X1, [X29,#0x80+var_8]                                  ; +0x24, 0xc8f040\nCBNZ            W0, loc_C8F144                                         ; +0x28, 0xc8f044\nADRL            X1, aThisWillClearP; \"This will clear platformer saves on all\"... ; +0x2c, 0xc8f048\nMOV             X0, X1; char *                                         ; +0x34, 0xc8f050\nSTR             X1, [X29,#0x80+var_48]                                 ; +0x38, 0xc8f054\nADD             X19, X2, #0x298                                        ; +0x3c, 0xc8f058\nSTR             XZR, [X29,#0x80+var_38]                                ; +0x40, 0xc8f05c\nSTR             XZR, [X29,#0x80+var_30]                                ; +0x44, 0xc8f060\nADD             X21, X29, #0x80+var_38                                 ; +0x48, 0xc8f064\nSTR             XZR, [X29,#0x80+var_28]                                ; +0x4c, 0xc8f068\nBL              .strlen                                                ; +0x50, 0xc8f06c\nLDR             X1, [X29,#0x80+var_48]                                 ; +0x54, 0xc8f070\nMOV             X2, X0                                                 ; +0x58, 0xc8f074\nMOV             X0, X21                                                ; +0x5c, 0xc8f078\nADD             X22, X29, #0x80+var_20                                 ; +0x60, 0xc8f07c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x64, 0xc8f080\nSTR             XZR, [X29,#0x80+var_20]                                ; +0x68, 0xc8f084\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x6c, 0xc8f088\nSTR             XZR, [X29,#0x80+var_18]                                ; +0x70, 0xc8f08c\nSTR             XZR, [X29,#0x80+var_10]                                ; +0x74, 0xc8f090\nTBNZ            W0, #0, loc_C8F15C                                     ; +0x78, 0xc8f094\nLDP             X0, X1, [X21]                                          ; +0x7c, 0xc8f098\nLDR             X2, [X29,#0x80+var_28]                                 ; +0x80, 0xc8f09c\nSTR             X2, [X29,#0x80+var_10]                                 ; +0x84, 0xc8f0a0\nSTP             X0, X1, [X29,#0x80+var_20]                             ; +0x88, 0xc8f0a4\nLDR             S0, =0x43BE0000                                        ; +0x8c, 0xc8f0a8\nADRP            X1, #aConfirm@PAGE; \"Confirm\"                          ; +0x90, 0xc8f0ac\nADRP            X3, #aCancel@PAGE; \"Cancel\"                            ; +0x94, 0xc8f0b0\nADRP            X4, #aDelete@PAGE; \"Delete\"                            ; +0x98, 0xc8f0b4\nMOV             X0, X19                                                ; +0x9c, 0xc8f0b8\nADD             X1, X1, #aConfirm@PAGEOFF; \"Confirm\"                   ; +0xa0, 0xc8f0bc\nMOV             X2, X22                                                ; +0xa4, 0xc8f0c0\nADD             X3, X3, #aCancel@PAGEOFF; \"Cancel\"                     ; +0xa8, 0xc8f0c4\nADD             X4, X4, #aDelete@PAGEOFF; \"Delete\"                     ; +0xac, 0xc8f0c8\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xb0, 0xc8f0cc\nMOV             X19, X0                                                ; +0xb4, 0xc8f0d0\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0xb8, 0xc8f0d4\nTBNZ            W0, #0, loc_C8F150                                     ; +0xbc, 0xc8f0d8\nLDR             X2, [X19]                                              ; +0xc0, 0xc8f0dc\nMOV             X0, X19                                                ; +0xc4, 0xc8f0e0\nMOV             W1, #1                                                 ; +0xc8, 0xc8f0e4\nLDR             X2, [X2,#0x48]                                         ; +0xcc, 0xc8f0e8\nBLR             X2                                                     ; +0xd0, 0xc8f0ec\nADRP            X1, #aGjButton06Png@PAGE; \"GJ_button_06.png\"           ; +0xd4, 0xc8f0f0\nLDR             X0, [X19,#0x268]; this                                 ; +0xd8, 0xc8f0f4\nADD             X1, X1, #aGjButton06Png@PAGEOFF; \"GJ_button_06.png\"    ; +0xdc, 0xc8f0f8\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xe0, 0xc8f0fc\nLDR             X1, [X19]                                              ; +0xe4, 0xc8f100\nMOV             X0, X19                                                ; +0xe8, 0xc8f104\nLDR             X1, [X1,#0x520]                                        ; +0xec, 0xc8f108\nBLR             X1                                                     ; +0xf0, 0xc8f10c\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0xf4, 0xc8f110\nTBZ             W0, #0, loc_C8F120                                     ; +0xf8, 0xc8f114\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0xfc, 0xc8f118\nBL              _ZdlPv; operator delete(void *)                        ; +0x100, 0xc8f11c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x104, 0xc8f120\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x108, 0xc8f124\nLDR             X0, [X20]                                              ; +0x10c, 0xc8f128\nCMP             X1, X0                                                 ; +0x110, 0xc8f12c\nB.NE            loc_C8F170                                             ; +0x114, 0xc8f130\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x118, 0xc8f134\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x11c, 0xc8f138\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x120, 0xc8f13c\nRET                                                                    ; +0x124, 0xc8f140\nADRL            X1, aThisWillClearC; \"This will clear <cr>all</c> platformer \"... ; +0x128, 0xc8f144\nB               loc_C8F050                                             ; +0x130, 0xc8f14c\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x134, 0xc8f150\nBL              _ZdlPv; operator delete(void *)                        ; +0x138, 0xc8f154\nB               loc_C8F0DC                                             ; +0x13c, 0xc8f158\nLDR             X1, [X29,#0x80+var_28]                                 ; +0x140, 0xc8f15c\nMOV             X0, X22                                                ; +0x144, 0xc8f160\nLDR             X2, [X29,#0x80+var_30]                                 ; +0x148, 0xc8f164\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x14c, 0xc8f168\nB               loc_C8F0A8                                             ; +0x150, 0xc8f16c\nBL              .__stack_chk_fail                                      ; +0x154, 0xc8f170\nLDRB            W1, [X29,#0x80+var_20]                                 ; +0x158, 0xc8f174\nMOV             X19, X0                                                ; +0x15c, 0xc8f178\nTBZ             W1, #0, loc_C8F188                                     ; +0x160, 0xc8f17c\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x164, 0xc8f180\nBL              _ZdlPv; operator delete(void *)                        ; +0x168, 0xc8f184\nLDRB            W0, [X29,#0x80+var_38]                                 ; +0x16c, 0xc8f188\nTBZ             W0, #0, loc_C8F198                                     ; +0x170, 0xc8f18c\nLDR             X0, [X29,#0x80+var_28]; void *                         ; +0x174, 0xc8f190\nBL              _ZdlPv; operator delete(void *)                        ; +0x178, 0xc8f194\nMOV             X0, X19                                                ; +0x17c, 0xc8f198\nBL              _Unwind_Resume                                         ; +0x180, 0xc8f19c\nMOV             X19, X0                                                ; +0x184, 0xc8f1a0\nB               loc_C8F188                                             ; +0x188, 0xc8f1a4", "xrefs": ["<???> @ 0xff4f0", "ClearPlatformerSavesPopup::init @ 0xc8fee0", "<???> @ 0x1547c90"], "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"}