{"type": "func", "start": 7588068, "end": 7588362, "name": "AutoBackupPopup::onDeleteSelected", "pseudocode": "// \n// AutoBackupPopup::onDeleteSelected from 0x73c8e4 to 0x73ca0a (294 bytes)\n// \n// 0 xrefs:\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:31 +0000\n// \n\nint __fastcall AutoBackupPopup::onDeleteSelected(AutoBackupPopup *this, cocos2d::CCObject *a2)\n{\n  int result; // r0\n  const char *v4; // r9\n  int v5; // r4\n  int v6; // r8\n  int v7; // r10\n  int v8; // r7\n  __int16 *v9; // r7\n  char *v10; // r3\n  cocos2d::CCString *v11; // r0\n  const char *CString; // r8\n  size_t v13; // r0\n  int *v14; // r6\n  int v15[3]; // [sp+1Ch] [bp-20h] BYREF\n  int v16[3]; // [sp+28h] [bp-14h] BYREF\n\n  result = AutoBackupPopup::selectedCount(this);\n  v4 = (const char *)result;\n  if ( result )\n  {\n    v5 = *((_DWORD *)this + 158);\n    v6 = 0;\n    v7 = 0;\n    v8 = (*((_DWORD *)this + 159) - v5) >> 6;\n    while ( v6 != v8 )\n    {\n      if ( std::__tree<std::string>::__count_unique<std::string>((int)this + 680, (unsigned __int8 *)v5) )\n        v7 += *(_DWORD *)(v5 + 60);\n      ++v6;\n      v5 += 64;\n    }\n    if ( v4 == (_BYTE *)&dword_0 + 1 )\n      v9 = (__int16 *)&unk_B6B226;\n    else\n      v9 = &a1i2r3e45s789g[8];\n    formatBytes(v16, v7);\n    if ( (v16[0] & 1) != 0 )\n      v10 = (char *)v16[2];\n    else\n      v10 = (char *)v16 + 1;\n    v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                 (cocos2d::CCString *)\"Delete <cy>%i</c> selected backup%s (%s)?\\n\"\n                                                      \"<cy>This cannot be undone.</c>\",\n                                 v4,\n                                 v9,\n                                 v10);\n    CString = (const char *)cocos2d::CCString::getCString(v11);\n    memset(v15, 0, sizeof(v15));\n    v13 = strlen(CString);\n    std::string::__init(v15, CString, v13);\n    std::string::~string((int)v16);\n    std::string::basic_string(v16, (int)v15);\n    v14 = FLAlertLayer::create(\n            (int)this + 596,\n            (cocos2d::CCLabelBMFont *)\"Delete Backups\",\n            (int)v16,\n            (ButtonSprite *)\"Cancel\",\n            (ButtonSprite *)\"Delete\",\n            380.0,\n            0,\n            0,\n            1.0);\n    std::string::~string((int)v16);\n    (*(void (__fastcall **)(int *, int))(*v14 + 36))(v14, 3);\n    (*(void (__fastcall **)(int *))(*v14 + 656))(v14);\n    return std::string::~string((int)v15);\n  }\n  return result;\n}", "assembly": "; \n; AutoBackupPopup::onDeleteSelected from 0x73c8e4 to 0x73ca0a (294 bytes)\n; \n; 0 xrefs:\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:31 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x73c8e4\nSUB             SP, SP, #0x3C                                          ; +0x4, 0x73c8e8\nLDR             R5, =(__stack_chk_guard_ptr - 0x73C8F2)                ; +0x6, 0x73c8ea\nMOV             R6, R0                                                 ; +0x8, 0x73c8ec\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x73c8ee\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x73c8f0\nLDR             R3, [R5]                                               ; +0xe, 0x73c8f2\nSTR             R3, [SP,#0x3C+var_8]                                   ; +0x10, 0x73c8f4\nBL              _ZN15AutoBackupPopup13selectedCountEv; AutoBackupPopup::selectedCount(void) ; +0x12, 0x73c8f6\nMOV             R9, R0                                                 ; +0x16, 0x73c8fa\nCMP             R0, #0                                                 ; +0x18, 0x73c8fc\nBEQ             loc_73C9F8                                             ; +0x1a, 0x73c8fe\nLDR.W           R4, [R6,#0x278]                                        ; +0x1c, 0x73c900\nMOV.W           R8, #0                                                 ; +0x20, 0x73c904\nLDR.W           R3, [R6,#0x27C]                                        ; +0x24, 0x73c908\nADD.W           R11, R6, #0x2A8                                        ; +0x28, 0x73c90c\nMOV             R10, R8                                                ; +0x2c, 0x73c910\nSUBS            R7, R3, R4                                             ; +0x2e, 0x73c912\nASRS            R7, R7, #6                                             ; +0x30, 0x73c914\nCMP             R8, R7                                                 ; +0x32, 0x73c916\nBEQ             loc_73C930                                             ; +0x34, 0x73c918\nMOV             R0, R11                                                ; +0x36, 0x73c91a\nMOV             R1, R4                                                 ; +0x38, 0x73c91c\nBL              _ZNKSt6__ndk16__treeINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4lessIS6_EENS4_IS6_EEE14__count_uniqueIS6_EEjRKT_; std::__tree<std::string>::__count_unique<std::string>(std::string const&) ; +0x3a, 0x73c91e\nCBZ             R0, loc_73C928                                         ; +0x3e, 0x73c922\nLDR             R3, [R4,#0x3C]                                         ; +0x40, 0x73c924\nADD             R10, R3                                                ; +0x42, 0x73c926\nADD.W           R8, R8, #1                                             ; +0x44, 0x73c928\nADDS            R4, #0x40 ; '@'                                        ; +0x48, 0x73c92c\nB               loc_73C916                                             ; +0x4a, 0x73c92e\nCMP.W           R9, #1                                                 ; +0x4c, 0x73c930\nBEQ             loc_73C93C                                             ; +0x50, 0x73c934\nLDR             R7, =(a1i2r3e45s789g+0x10 - 0x73C93C); \"s789g\"         ; +0x52, 0x73c936\nADD             R7, PC; \"s789g\"                                        ; +0x54, 0x73c938\nB               loc_73C940                                             ; +0x56, 0x73c93a\nLDR             R7, =(unk_B6B226 - 0x73C942)                           ; +0x58, 0x73c93c\nADD             R7, PC; unk_B6B226                                     ; +0x5a, 0x73c93e\nADD             R4, SP, #0x3C+var_14                                   ; +0x5c, 0x73c940\nMOV             R1, R10                                                ; +0x5e, 0x73c942\nMOV             R0, R4; int                                            ; +0x60, 0x73c944\nBL              _Z11formatBytesi; formatBytes(int)                     ; +0x62, 0x73c946\nLDRB.W          R3, [SP,#0x3C+var_14]                                  ; +0x66, 0x73c94a\nLDR             R0, =(aDeleteCyICSele_0 - 0x73C960); \"Delete <cy>%i</c> selected backup%s (%s\"... ; +0x6a, 0x73c94e\nMOV             R1, R9; char *                                         ; +0x6c, 0x73c950\nLSLS            R3, R3, #0x1F                                          ; +0x6e, 0x73c952\nMOV             R2, R7                                                 ; +0x70, 0x73c954\nIT PL                                                                  ; +0x72, 0x73c956\nADDPL.W         R3, SP, #0x3C+var_13                                   ; +0x74, 0x73c958\nADD             R0, PC; \"Delete <cy>%i</c> selected backup%s (%s\"...   ; +0x78, 0x73c95c\nIT MI                                                                  ; +0x7a, 0x73c95e\nLDRMI           R3, [SP,#0x3C+var_C]                                   ; +0x7c, 0x73c960\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x7e, 0x73c962\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x82, 0x73c966\nMOVS            R3, #0                                                 ; +0x86, 0x73c96a\nMOV             R8, R0                                                 ; +0x88, 0x73c96c\nSTR             R3, [SP,#0x3C+var_20]                                  ; +0x8a, 0x73c96e\nADD             R7, SP, #0x3C+var_20                                   ; +0x8c, 0x73c970\nSTR             R3, [SP,#0x3C+var_1C]                                  ; +0x8e, 0x73c972\nSTR             R3, [SP,#0x3C+var_18]                                  ; +0x90, 0x73c974\nBLX             strlen                                                 ; +0x92, 0x73c976\nMOV             R1, R8                                                 ; +0x96, 0x73c97a\nMOV             R2, R0                                                 ; +0x98, 0x73c97c\nMOV             R0, R7                                                 ; +0x9a, 0x73c97e\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x9c, 0x73c980\nMOV             R0, R4                                                 ; +0xa0, 0x73c984\nADD.W           R6, R6, #0x254                                         ; +0xa2, 0x73c986\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa6, 0x73c98a\nMOV             R0, R4                                                 ; +0xaa, 0x73c98e\nMOV             R1, R7                                                 ; +0xac, 0x73c990\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xae, 0x73c992\nLDR             R3, =(aDelete - 0x73C9A2); \"Delete\"                    ; +0xb2, 0x73c996\nMOV             R0, R6; int                                            ; +0xb4, 0x73c998\nLDR             R1, =(aDeleteBackups - 0x73C9A8); \"Delete Backups\"     ; +0xb6, 0x73c99a\nMOV             R2, R4; int                                            ; +0xb8, 0x73c99c\nADD             R3, PC; \"Delete\"                                       ; +0xba, 0x73c99e\nSTR             R3, [SP,#0x3C+var_3C]; int                             ; +0xbc, 0x73c9a0\nLDR             R3, flt_73CA0C                                         ; +0xbe, 0x73c9a2\nADD             R1, PC; \"Delete Backups\"                               ; +0xc0, 0x73c9a4\nSTR             R3, [SP,#0x3C+var_38]; float                           ; +0xc2, 0x73c9a6\nMOVS            R3, #0                                                 ; +0xc4, 0x73c9a8\nSTR             R3, [SP,#0x3C+var_34]; char                            ; +0xc6, 0x73c9aa\nMOVS            R3, #0                                                 ; +0xc8, 0x73c9ac\nSTR             R3, [SP,#0x3C+var_30]; int                             ; +0xca, 0x73c9ae\nMOV.W           R3, #0x3F800000                                        ; +0xcc, 0x73c9b0\nSTR             R3, [SP,#0x3C+var_2C]; float                           ; +0xd0, 0x73c9b4\nLDR             R3, =(aCancel - 0x73C9BC); \"Cancel\"                    ; +0xd2, 0x73c9b6\nADD             R3, PC; \"Cancel\"                                       ; +0xd4, 0x73c9b8\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_fbff; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float,bool,float,float) ; +0xd6, 0x73c9ba\nMOV             R6, R0                                                 ; +0xda, 0x73c9be\nMOV             R0, R4                                                 ; +0xdc, 0x73c9c0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xde, 0x73c9c2\nLDR             R3, [R6]                                               ; +0xe2, 0x73c9c6\nMOV             R0, R6                                                 ; +0xe4, 0x73c9c8\nMOVS            R1, #3                                                 ; +0xe6, 0x73c9ca\nLDR             R3, [R3,#0x24]                                         ; +0xe8, 0x73c9cc\nBLX             R3                                                     ; +0xea, 0x73c9ce\nLDR             R3, [R6]                                               ; +0xec, 0x73c9d0\nMOV             R0, R6                                                 ; +0xee, 0x73c9d2\nLDR.W           R3, [R3,#0x290]                                        ; +0xf0, 0x73c9d4\nBLX             R3                                                     ; +0xf4, 0x73c9d8\nMOV             R0, R7                                                 ; +0xf6, 0x73c9da\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf8, 0x73c9dc\nB               loc_73C9F8                                             ; +0xfc, 0x73c9e0\nMOV             R0, R4                                                 ; +0xfe, 0x73c9e2\nB               loc_73C9F0                                             ; +0x100, 0x73c9e4\nMOV             R0, R4                                                 ; +0x102, 0x73c9e6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x104, 0x73c9e8\nB               loc_73C9EE                                             ; +0x108, 0x73c9ec\nMOV             R0, R7                                                 ; +0x10a, 0x73c9ee\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x10c, 0x73c9f0\nBL              __cxa_end_cleanup                                      ; +0x110, 0x73c9f4\nLDR             R2, [SP,#0x3C+var_8]                                   ; +0x114, 0x73c9f8\nLDR             R3, [R5]                                               ; +0x116, 0x73c9fa\nCMP             R2, R3                                                 ; +0x118, 0x73c9fc\nBEQ             loc_73CA04                                             ; +0x11a, 0x73c9fe\nBLX             __stack_chk_fail                                       ; +0x11c, 0x73ca00\nADD             SP, SP, #0x3C ; '<'                                    ; +0x120, 0x73ca04\nPOP.W           {R4-R11,PC}                                            ; +0x122, 0x73ca06", "xrefs": [], "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"}