{"type": "func", "start": 7596776, "end": 7597220, "name": "AutoBackupOptionsPopup::FLAlert_Clicked", "pseudocode": "// \n// AutoBackupOptionsPopup::FLAlert_Clicked from 0x73eae8 to 0x73eca4 (444 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73ecc8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:58:33 +0000\n// \n\nint __fastcall AutoBackupOptionsPopup::FLAlert_Clicked(int this, FLAlertLayer *a2, int a3)\n{\n  AutoBackupOptionsPopup *v3; // r7\n  int BackupCap; // r8\n  const char *v6; // r8\n  void (__fastcall *v7)(AutoBackupOptionsPopup *, cocos2d::CCNode *, int); // r9\n  __int16 *v8; // r2\n  cocos2d::CCString *v9; // r0\n  const char *CString; // r10\n  size_t v11; // r0\n  cocos2d::CCNode *v12; // r0\n  unsigned int i; // r4\n  char *v14; // r2\n  int v15; // r3\n  int v16; // r3\n  const char *v17; // r0\n  void (__fastcall ***v18)(_DWORD); // r0\n  unsigned __int8 v19[12]; // [sp+8h] [bp-58h] BYREF\n  int v20[3]; // [sp+14h] [bp-4Ch] BYREF\n  int v21[3]; // [sp+20h] [bp-40h] BYREF\n  int v22[3]; // [sp+2Ch] [bp-34h] BYREF\n  char *v23; // [sp+38h] [bp-28h] BYREF\n  int v24; // [sp+3Ch] [bp-24h]\n  int v25; // [sp+40h] [bp-20h]\n  int v26[3]; // [sp+44h] [bp-1Ch] BYREF\n  int v27[3]; // [sp+50h] [bp-10h] BYREF\n\n  v3 = (AutoBackupOptionsPopup *)this;\n  if ( a3 )\n  {\n    AutoBackupPopup::backupDirectory((AutoBackupPopup *)v19);\n    if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 1 )\n    {\n      BackupCap = AutoSaveSettingsLayer::getBackupCap((AutoSaveSettingsLayer *)((char *)&dword_0 + 1));\n      memset(v20, 0, sizeof(v20));\n      std::string::__init(v20, &unk_B6B226, 0);\n      v6 = (const char *)AutoBackupPopup::pruneBackups(v19, BackupCap, (unsigned __int8 *)v20, 0);\n      std::string::~string((int)v20);\n      v7 = *(void (__fastcall **)(AutoBackupOptionsPopup *, cocos2d::CCNode *, int))(*(_DWORD *)v3 + 232);\n      if ( v6 == (_BYTE *)&dword_0 + 1 )\n        v8 = (__int16 *)&unk_B6B226;\n      else\n        v8 = &a1i2r3e45s789g[8];\n      v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"Removed %i backup%s\", v6, v8);\n      CString = (const char *)cocos2d::CCString::getCString(v9);\n      memset(v21, 0, sizeof(v21));\n      v11 = strlen(CString);\n      std::string::__init(v21, CString, v11);\n      memset(v22, 0, sizeof(v22));\n      std::string::__init(v22, &unk_B6B226, 0);\n      v12 = TextAlertPopup::create((int)v21, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v22);\n      v7(v3, v12, 100);\n      std::string::~string((int)v22);\n      std::string::~string((int)v21);\n    }\n    else if ( (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)a2 + 32))(a2) == 2 )\n    {\n      v23 = nullptr;\n      v24 = 0;\n      v25 = 0;\n      memset(v26, 0, sizeof(v26));\n      std::string::__init(v26, &unk_B6B226, 0);\n      AutoBackupPopup::listBackups(v19, (unsigned int *)&v23, (unsigned __int8 *)v26);\n      std::string::~string((int)v26);\n      for ( i = 0; i < (v24 - (int)v23) >> 6; ++i )\n      {\n        v14 = &v23[64 * i];\n        v15 = (unsigned __int8)v14[12];\n        if ( (v15 & 1) != 0 )\n          v16 = *((_DWORD *)v14 + 4);\n        else\n          v16 = v15 >> 1;\n        if ( v16 )\n        {\n          std::operator+<char>(v27, v19, (unsigned __int8 *)v14);\n          if ( (v27[0] & 1) != 0 )\n            v17 = (const char *)v27[2];\n          else\n            v17 = (char *)v27 + 1;\n          remove(v17);\n          std::string::~string((int)v27);\n        }\n      }\n      std::__vector_base<AutoBackupPopup::BackupFile>::~__vector_base((void **)&v23);\n    }\n    AutoBackupOptionsPopup::refreshStats(v3);\n    v18 = *((void (__fastcall ****)(_DWORD))v3 + 179);\n    if ( v18 )\n      (**v18)(v18);\n    return std::string::~string((int)v19);\n  }\n  return this;\n}", "assembly": "; \n; AutoBackupOptionsPopup::FLAlert_Clicked from 0x73eae8 to 0x73eca4 (444 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73ecc8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:58:33 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x73eae8\nSUB             SP, SP, #0x60                                          ; +0x4, 0x73eaec\nLDR             R5, =(__stack_chk_guard_ptr - 0x73EAF8)                ; +0x6, 0x73eaee\nMOV             R7, R0                                                 ; +0x8, 0x73eaf0\nMOV             R4, R1                                                 ; +0xa, 0x73eaf2\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x73eaf4\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x73eaf6\nLDR             R3, [R5]                                               ; +0x10, 0x73eaf8\nSTR             R3, [SP,#0x60+var_4]                                   ; +0x12, 0x73eafa\nCMP             R2, #0                                                 ; +0x14, 0x73eafc\nBEQ.W           loc_73EC92                                             ; +0x16, 0x73eafe\nADD             R6, SP, #0x60+var_58                                   ; +0x1a, 0x73eb02\nMOV             R0, R6; this                                           ; +0x1c, 0x73eb04\nBL              _ZN15AutoBackupPopup15backupDirectoryEv; AutoBackupPopup::backupDirectory(void) ; +0x1e, 0x73eb06\nLDR             R3, [R4]                                               ; +0x22, 0x73eb0a\nMOV             R0, R4                                                 ; +0x24, 0x73eb0c\nLDR             R3, [R3,#0x20]                                         ; +0x26, 0x73eb0e\nBLX             R3                                                     ; +0x28, 0x73eb10\nCMP             R0, #1                                                 ; +0x2a, 0x73eb12\nBNE             loc_73EBBE                                             ; +0x2c, 0x73eb14\nBL              _ZN21AutoSaveSettingsLayer12getBackupCapEv; AutoSaveSettingsLayer::getBackupCap(void) ; +0x2e, 0x73eb16\nADD             R4, SP, #0x60+var_4C                                   ; +0x32, 0x73eb1a\nLDR             R1, =(unk_B6B226 - 0x73EB26)                           ; +0x34, 0x73eb1c\nMOVS            R2, #0                                                 ; +0x36, 0x73eb1e\nMOV             R8, R0                                                 ; +0x38, 0x73eb20\nADD             R1, PC; unk_B6B226                                     ; +0x3a, 0x73eb22\nMOV             R0, R4                                                 ; +0x3c, 0x73eb24\nSTR             R2, [SP,#0x60+var_4C]                                  ; +0x3e, 0x73eb26\nSTR             R2, [SP,#0x60+var_48]                                  ; +0x40, 0x73eb28\nSTR             R2, [SP,#0x60+var_44]                                  ; +0x42, 0x73eb2a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x44, 0x73eb2c\nMOV             R0, R6                                                 ; +0x48, 0x73eb30\nMOV             R1, R8                                                 ; +0x4a, 0x73eb32\nMOV             R2, R4                                                 ; +0x4c, 0x73eb34\nMOVS            R3, #0                                                 ; +0x4e, 0x73eb36\nBL              _ZN15AutoBackupPopup12pruneBackupsERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEiS8_b; AutoBackupPopup::pruneBackups(std::string const&,int,std::string const&,bool) ; +0x50, 0x73eb38\nMOV             R8, R0                                                 ; +0x54, 0x73eb3c\nMOV             R0, R4                                                 ; +0x56, 0x73eb3e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x58, 0x73eb40\nLDR             R3, [R7]                                               ; +0x5c, 0x73eb44\nCMP.W           R8, #1                                                 ; +0x5e, 0x73eb46\nLDR.W           R9, [R3,#0xE8]                                         ; +0x62, 0x73eb4a\nBEQ             loc_73EB56                                             ; +0x66, 0x73eb4e\nLDR             R2, =(a1i2r3e45s789g+0x10 - 0x73EB56); \"s789g\"         ; +0x68, 0x73eb50\nADD             R2, PC; \"s789g\"                                        ; +0x6a, 0x73eb52\nB               loc_73EB5A                                             ; +0x6c, 0x73eb54\nLDR             R2, =(unk_B6B226 - 0x73EB5C)                           ; +0x6e, 0x73eb56\nADD             R2, PC; unk_B6B226                                     ; +0x70, 0x73eb58\nLDR             R0, =(aRemovedIBackup - 0x73EB62); \"Removed %i backup%s\" ; +0x72, 0x73eb5a\nMOV             R1, R8; char *                                         ; +0x74, 0x73eb5c\nADD             R0, PC; \"Removed %i backup%s\"                          ; +0x76, 0x73eb5e\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x78, 0x73eb60\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x7c, 0x73eb64\nMOVS            R4, #0                                                 ; +0x80, 0x73eb68\nMOV             R10, R0                                                ; +0x82, 0x73eb6a\nSTR             R4, [SP,#0x60+var_40]                                  ; +0x84, 0x73eb6c\nADD.W           R8, SP, #0x60+var_40                                   ; +0x86, 0x73eb6e\nSTR             R4, [SP,#0x60+var_3C]                                  ; +0x8a, 0x73eb72\nSTR             R4, [SP,#0x60+var_38]                                  ; +0x8c, 0x73eb74\nBLX             strlen                                                 ; +0x8e, 0x73eb76\nMOV             R1, R10                                                ; +0x92, 0x73eb7a\nMOV             R2, R0                                                 ; +0x94, 0x73eb7c\nMOV             R0, R8                                                 ; +0x96, 0x73eb7e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x98, 0x73eb80\nSTR             R4, [SP,#0x60+var_34]                                  ; +0x9c, 0x73eb84\nMOVS            R2, #0                                                 ; +0x9e, 0x73eb86\nSTR             R4, [SP,#0x60+var_30]                                  ; +0xa0, 0x73eb88\nSTR             R4, [SP,#0x60+var_2C]                                  ; +0xa2, 0x73eb8a\nADD             R4, SP, #0x60+var_34                                   ; +0xa4, 0x73eb8c\nLDR             R1, =(unk_B6B226 - 0x73EB96)                           ; +0xa6, 0x73eb8e\nMOV             R0, R4                                                 ; +0xa8, 0x73eb90\nADD             R1, PC; unk_B6B226                                     ; +0xaa, 0x73eb92\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xac, 0x73eb94\nSTR             R4, [SP,#0x60+var_60]                                  ; +0xb0, 0x73eb98\nMOV             R0, R8                                                 ; +0xb2, 0x73eb9a\nMOV.W           R1, #0x3F000000                                        ; +0xb4, 0x73eb9c\nLDR             R2, =0x3F19999A                                        ; +0xb8, 0x73eba0\nMOVS            R3, #0x96                                              ; +0xba, 0x73eba2\nBL              _ZN14TextAlertPopup6createENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEffiS6_; TextAlertPopup::create(std::string,float,float,int,std::string) ; +0xbc, 0x73eba4\nMOV             R1, R0                                                 ; +0xc0, 0x73eba8\nMOVS            R2, #0x64 ; 'd'                                        ; +0xc2, 0x73ebaa\nMOV             R0, R7                                                 ; +0xc4, 0x73ebac\nBLX             R9                                                     ; +0xc6, 0x73ebae\nMOV             R0, R4                                                 ; +0xc8, 0x73ebb0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xca, 0x73ebb2\nMOV             R0, R8                                                 ; +0xce, 0x73ebb6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd0, 0x73ebb8\nB               loc_73EC44                                             ; +0xd4, 0x73ebbc\nLDR             R3, [R4]                                               ; +0xd6, 0x73ebbe\nMOV             R0, R4                                                 ; +0xd8, 0x73ebc0\nLDR             R3, [R3,#0x20]                                         ; +0xda, 0x73ebc2\nBLX             R3                                                     ; +0xdc, 0x73ebc4\nCMP             R0, #2                                                 ; +0xde, 0x73ebc6\nBNE             loc_73EC44                                             ; +0xe0, 0x73ebc8\nADD             R4, SP, #0x60+var_1C                                   ; +0xe2, 0x73ebca\nLDR             R1, =(unk_B6B226 - 0x73EBDA)                           ; +0xe4, 0x73ebcc\nMOVS            R2, #0                                                 ; +0xe6, 0x73ebce\nADD.W           R8, SP, #0x60+var_28                                   ; +0xe8, 0x73ebd0\nMOV             R0, R4                                                 ; +0xec, 0x73ebd4\nADD             R1, PC; unk_B6B226                                     ; +0xee, 0x73ebd6\nSTR             R2, [SP,#0x60+var_28]                                  ; +0xf0, 0x73ebd8\nSTR             R2, [SP,#0x60+var_24]                                  ; +0xf2, 0x73ebda\nSTR             R2, [SP,#0x60+var_20]                                  ; +0xf4, 0x73ebdc\nSTR             R2, [SP,#0x60+var_1C]                                  ; +0xf6, 0x73ebde\nSTR             R2, [SP,#0x60+var_18]                                  ; +0xf8, 0x73ebe0\nSTR             R2, [SP,#0x60+var_14]                                  ; +0xfa, 0x73ebe2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xfc, 0x73ebe4\nMOV             R0, R6                                                 ; +0x100, 0x73ebe8\nMOV             R1, R8                                                 ; +0x102, 0x73ebea\nMOV             R2, R4                                                 ; +0x104, 0x73ebec\nBL              _ZN15AutoBackupPopup11listBackupsERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERNS0_6vectorINS_10BackupFileENS4_ISA_EEEES8_; AutoBackupPopup::listBackups(std::string const&,std::vector<AutoBackupPopup::BackupFile> &,std::string const&) ; +0x106, 0x73ebee\nMOV             R0, R4                                                 ; +0x10a, 0x73ebf2\nADD.W           R9, SP, #0x60+var_10                                   ; +0x10c, 0x73ebf4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x110, 0x73ebf8\nMOVS            R4, #0                                                 ; +0x114, 0x73ebfc\nLDR             R2, [SP,#0x60+var_28]                                  ; +0x116, 0x73ebfe\nLDR             R3, [SP,#0x60+var_24]                                  ; +0x118, 0x73ec00\nSUBS            R3, R3, R2                                             ; +0x11a, 0x73ec02\nCMP.W           R4, R3,ASR#6                                           ; +0x11c, 0x73ec04\nBCS             loc_73EC3E                                             ; +0x120, 0x73ec08\nADD.W           R2, R2, R4,LSL#6                                       ; +0x122, 0x73ec0a\nLDRB            R3, [R2,#0xC]                                          ; +0x126, 0x73ec0e\nLSLS            R1, R3, #0x1F                                          ; +0x128, 0x73ec10\nITE PL                                                                 ; +0x12a, 0x73ec12\nASRPL           R3, R3, #1                                             ; +0x12c, 0x73ec14\nLDRMI           R3, [R2,#0x10]                                         ; +0x12e, 0x73ec16\nCBZ             R3, loc_73EC3A                                         ; +0x130, 0x73ec18\nMOV             R0, R9                                                 ; +0x132, 0x73ec1a\nMOV             R1, R6                                                 ; +0x134, 0x73ec1c\nBL              _ZNSt6__ndk1plIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_12basic_stringIT_T0_T1_EERKS9_SB_; std::operator+<char>(std::string const&,std::string const&) ; +0x136, 0x73ec1e\nLDRB.W          R3, [SP,#0x60+var_10]                                  ; +0x13a, 0x73ec22\nLSLS            R3, R3, #0x1F                                          ; +0x13e, 0x73ec26\nITE PL                                                                 ; +0x140, 0x73ec28\nADDPL.W         R0, SP, #0x60+var_F                                    ; +0x142, 0x73ec2a\nLDRMI           R0, [SP,#0x60+filename]; filename                      ; +0x146, 0x73ec2e\nBLX             remove                                                 ; +0x148, 0x73ec30\nMOV             R0, R9                                                 ; +0x14c, 0x73ec34\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x14e, 0x73ec36\nADDS            R4, #1                                                 ; +0x152, 0x73ec3a\nB               loc_73EBFE                                             ; +0x154, 0x73ec3c\nMOV             R0, R8                                                 ; +0x156, 0x73ec3e\nBL              _ZNSt6__ndk113__vector_baseIN15AutoBackupPopup10BackupFileENS_9allocatorIS2_EEED2Ev; std::__vector_base<AutoBackupPopup::BackupFile>::~__vector_base() ; +0x158, 0x73ec40\nMOV             R0, R7; this                                           ; +0x15c, 0x73ec44\nBL              _ZN22AutoBackupOptionsPopup12refreshStatsEv; AutoBackupOptionsPopup::refreshStats(void) ; +0x15e, 0x73ec46\nLDR.W           R0, [R7,#0x2CC]                                        ; +0x162, 0x73ec4a\nCBNZ            R0, loc_73EC58                                         ; +0x166, 0x73ec4e\nMOV             R0, R6                                                 ; +0x168, 0x73ec50\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x16a, 0x73ec52\nB               loc_73EC92                                             ; +0x16e, 0x73ec56\nLDR             R3, [R0]                                               ; +0x170, 0x73ec58\nLDR             R3, [R3]                                               ; +0x172, 0x73ec5a\nBLX             R3                                                     ; +0x174, 0x73ec5c\nB               loc_73EC50                                             ; +0x176, 0x73ec5e\nMOV             R0, R4                                                 ; +0x178, 0x73ec60\nB               loc_73EC6E                                             ; +0x17a, 0x73ec62\nMOV             R0, R4                                                 ; +0x17c, 0x73ec64\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x17e, 0x73ec66\nB               loc_73EC6C                                             ; +0x182, 0x73ec6a\nMOV             R0, R8                                                 ; +0x184, 0x73ec6c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x186, 0x73ec6e\nB               loc_73EC88                                             ; +0x18a, 0x73ec72\nMOV             R0, R4                                                 ; +0x18c, 0x73ec74\nB               loc_73EC7A                                             ; +0x18e, 0x73ec76\nMOV             R0, R9                                                 ; +0x190, 0x73ec78\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x192, 0x73ec7a\nB               loc_73EC80                                             ; +0x196, 0x73ec7e\nMOV             R0, R8                                                 ; +0x198, 0x73ec80\nBL              _ZNSt6__ndk113__vector_baseIN15AutoBackupPopup10BackupFileENS_9allocatorIS2_EEED2Ev; std::__vector_base<AutoBackupPopup::BackupFile>::~__vector_base() ; +0x19a, 0x73ec82\nB               loc_73EC88                                             ; +0x19e, 0x73ec86\nMOV             R0, R6                                                 ; +0x1a0, 0x73ec88\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x1a2, 0x73ec8a\nBL              __cxa_end_cleanup                                      ; +0x1a6, 0x73ec8e\nLDR             R2, [SP,#0x60+var_4]                                   ; +0x1aa, 0x73ec92\nLDR             R3, [R5]                                               ; +0x1ac, 0x73ec94\nCMP             R2, R3                                                 ; +0x1ae, 0x73ec96\nBEQ             loc_73EC9E                                             ; +0x1b0, 0x73ec98\nBLX             __stack_chk_fail                                       ; +0x1b2, 0x73ec9a\nADD             SP, SP, #0x60 ; '`'                                    ; +0x1b6, 0x73ec9e\nPOP.W           {R4-R10,PC}                                            ; +0x1b8, 0x73eca0", "xrefs": ["`non-virtual thunk to'AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73ecc8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}