// // AutoBackupOptionsPopup::onDeleteAll from 0x73e488 to 0x73e6aa (546 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:58:32 +0000 // char **__fastcall AutoBackupOptionsPopup::onDeleteAll(AutoBackupOptionsPopup *this, cocos2d::CCObject *a2) { _DWORD *v3; // r2 int v4; // r3 const char *v5; // r4 int v6; // lr int v7; // r2 int *v8; // r4 void (__fastcall *v9)(AutoBackupOptionsPopup *, cocos2d::CCNode *, int); // r9 int *v10; // r8 cocos2d::CCNode *v11; // r0 int v12; // r1 int v13; // r1 int v14; // r3 void (__fastcall *v15)(AutoBackupOptionsPopup *, cocos2d::CCNode *, int); // r9 cocos2d::CCNode *v16; // r0 __int16 *v17; // r9 char *v18; // r3 cocos2d::CCString *v19; // r0 const char *CString; // r9 size_t v21; // r0 int *v22; // r5 _DWORD *v24; // [sp+1Ch] [bp+0h] BYREF _BYTE *v25; // [sp+20h] [bp+4h] int v26; // [sp+24h] [bp+8h] unsigned __int8 v27[12]; // [sp+28h] [bp+Ch] BYREF int v28[3]; // [sp+34h] [bp+18h] BYREF int v29[3]; // [sp+40h] [bp+24h] BYREF int v30[3]; // [sp+4Ch] [bp+30h] BYREF int v31[3]; // [sp+58h] [bp+3Ch] BYREF int v32[3]; // [sp+64h] [bp+48h] BYREF int v33[3]; // [sp+70h] [bp+54h] BYREF int v34[3]; // [sp+7Ch] [bp+60h] BYREF int v35[3]; // [sp+88h] [bp+6Ch] BYREF v24 = nullptr; v25 = nullptr; v26 = 0; AutoBackupPopup::backupDirectory((AutoBackupPopup *)v27); memset(v28, 0, sizeof(v28)); std::string::__init(v28, &unk_B6B226, 0); AutoBackupPopup::listBackups(v27, (unsigned int *)&v24, (unsigned __int8 *)v28); std::string::~string((int)v28); std::string::~string((int)v27); v3 = v24; v4 = 0; if ( v24 == (_DWORD *)v25 ) { v7 = *(_DWORD *)this; v8 = v29; memset(v29, 0, sizeof(v29)); v9 = *(void (__fastcall **)(AutoBackupOptionsPopup *, cocos2d::CCNode *, int))(v7 + 232); std::string::__init(v29, "No backups", 0xAu); v10 = v30; memset(v30, 0, sizeof(v30)); std::string::__init(v30, &unk_B6B226, 0); v11 = TextAlertPopup::create((int)v29, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v30); v9(this, v11, 100); LABEL_13: std::string::~string((int)v10); goto LABEL_21; } v5 = nullptr; v6 = 0; while ( v4 != (v25 - (_BYTE *)v24) >> 6 ) { v12 = *((unsigned __int8 *)v3 + 12); if ( (v12 & 1) != 0 ) v13 = v3[4]; else v13 = v12 >> 1; if ( v13 ) { ++v5; v6 += v3[15]; } ++v4; v3 += 16; } if ( !v5 ) { v14 = *(_DWORD *)this; memset(v31, 0, sizeof(v31)); v8 = v31; v15 = *(void (__fastcall **)(AutoBackupOptionsPopup *, cocos2d::CCNode *, int))(v14 + 232); std::string::__init(v31, "No backups", 0xAu); v10 = v32; memset(v32, 0, sizeof(v32)); std::string::__init(v32, &unk_B6B226, 0); v16 = TextAlertPopup::create((int)v31, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v32); v15(this, v16, 100); goto LABEL_13; } if ( v5 == (_BYTE *)&dword_0 + 1 ) v17 = (__int16 *)&unk_B6B226; else v17 = &a1i2r3e45s789g[8]; formatBytes(v34, v6); if ( (v34[0] & 1) != 0 ) v18 = (char *)v34[2]; else v18 = (char *)v34 + 1; v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Delete all %i backup%s (%s)?\n" "This cannot be undone.", v5, v17, v18); CString = (const char *)cocos2d::CCString::getCString(v19); memset(v33, 0, sizeof(v33)); v8 = v33; v21 = strlen(CString); std::string::__init(v33, CString, v21); std::string::~string((int)v34); std::string::basic_string(v35, (int)v33); v22 = FLAlertLayer::create( (int)this + 712, (cocos2d::CCLabelBMFont *)"Delete All", (int)v35, (ButtonSprite *)"Back", (ButtonSprite *)"Delete", 380.0, 0, 0, 1.0); std::string::~string((int)v35); (*(void (__fastcall **)(int *, int))(*v22 + 36))(v22, 2); (*(void (__fastcall **)(int *))(*v22 + 656))(v22); LABEL_21: std::string::~string((int)v8); return std::__vector_base::~__vector_base((void **)&v24); }