{"type": "func", "start": 7589284, "end": 7589650, "name": "AutoBackupPopup::onDelete", "pseudocode": "// \n// AutoBackupPopup::onDelete from 0x73cda4 to 0x73cf12 (366 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::onDelete(AutoBackupPopup *this, cocos2d::CCObject *a2)\n{\n  int result; // r0\n  int v4; // r4\n  int v5; // r7\n  int v6; // r4\n  int v7; // r8\n  size_t v8; // r8\n  const void *v9; // r1\n  _DWORD *v10; // r3\n  int v11; // r1\n  int v12; // r2\n  int v13; // r7\n  int v14; // r2\n  const void *v15; // r1\n  size_t v16; // r2\n  int *v17; // r0\n  int v18; // r1\n  int v19; // r2\n  _DWORD *v20; // r0\n  int v21; // r1\n  int v22; // r2\n  int *v23; // r0\n  _DWORD v24[3]; // [sp+Ch] [bp-38h] BYREF\n  int v25[3]; // [sp+18h] [bp-2Ch] BYREF\n  _DWORD v26[3]; // [sp+24h] [bp-20h] BYREF\n  int v27[3]; // [sp+30h] [bp-14h] BYREF\n\n  result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  if ( result >= 0 )\n  {\n    v4 = *((_DWORD *)this + 158);\n    if ( result < (*((_DWORD *)this + 159) - v4) >> 6 )\n    {\n      v5 = result << 6;\n      *((_DWORD *)this + 169) = result;\n      v6 = v4 + (result << 6);\n      memset(v25, 0, sizeof(v25));\n      v7 = *(unsigned __int8 *)(v6 + 24);\n      if ( (v7 & 1) != 0 )\n        v8 = *(_DWORD *)(v6 + 28);\n      else\n        v8 = v7 >> 1;\n      std::string::__init(v25, \"Delete the backup <cy>\", 0x16u, v8 + 22);\n      if ( (*(_BYTE *)(v6 + 24) & 1) != 0 )\n        v9 = *(const void **)(v6 + 32);\n      else\n        v9 = (const void *)(v6 + 25);\n      std::string::append(v25, v9, v8);\n      v10 = std::string::append(v25, \"</c> from \");\n      v11 = v10[1];\n      v12 = v10[2];\n      v26[0] = *v10;\n      v26[1] = v11;\n      v26[2] = v12;\n      *v10 = 0;\n      v10[1] = 0;\n      v10[2] = 0;\n      v13 = v5 + *((_DWORD *)this + 158);\n      v14 = *(unsigned __int8 *)(v13 + 36);\n      if ( (v14 & 1) != 0 )\n      {\n        v15 = *(const void **)(v13 + 44);\n        v16 = *(_DWORD *)(v13 + 40);\n      }\n      else\n      {\n        v15 = (const void *)(v13 + 37);\n        v16 = v14 >> 1;\n      }\n      v17 = std::string::append(v26, v15, v16);\n      v18 = v17[1];\n      v19 = v17[2];\n      v27[0] = *v17;\n      v27[1] = v18;\n      v27[2] = v19;\n      *v17 = 0;\n      v17[1] = 0;\n      v17[2] = 0;\n      v20 = std::string::append(v27, \"?\");\n      v21 = v20[1];\n      v22 = v20[2];\n      v24[0] = *v20;\n      v24[1] = v21;\n      v24[2] = v22;\n      *v20 = 0;\n      v20[1] = 0;\n      v20[2] = 0;\n      std::string::~string((int)v27);\n      std::string::~string((int)v26);\n      std::string::~string((int)v25);\n      std::string::basic_string(v27, (int)v24);\n      v23 = FLAlertLayer::create(\n              (int)this + 596,\n              (cocos2d::CCLabelBMFont *)\"Delete Backup\",\n              (int)v27,\n              (ButtonSprite *)\"Cancel\",\n              (ButtonSprite *)\"Delete\");\n      (*(void (__fastcall **)(int *))(*v23 + 656))(v23);\n      std::string::~string((int)v27);\n      return std::string::~string((int)v24);\n    }\n  }\n  return result;\n}", "assembly": "; \n; AutoBackupPopup::onDelete from 0x73cda4 to 0x73cf12 (366 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-R9,LR}                                             ; +0x0, 0x73cda4\nSUB             SP, SP, #0x44                                          ; +0x4, 0x73cda8\nLDR             R6, =(__stack_chk_guard_ptr - 0x73CDB4)                ; +0x6, 0x73cdaa\nMOV             R5, R0                                                 ; +0x8, 0x73cdac\nMOV             R0, R1                                                 ; +0xa, 0x73cdae\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xc, 0x73cdb0\nLDR             R6, [R6]; __stack_chk_guard                            ; +0xe, 0x73cdb2\nLDR             R3, [R6]                                               ; +0x10, 0x73cdb4\nSTR             R3, [SP,#0x44+var_8]                                   ; +0x12, 0x73cdb6\nLDR             R3, [R1]                                               ; +0x14, 0x73cdb8\nLDR             R3, [R3,#0x20]                                         ; +0x16, 0x73cdba\nBLX             R3                                                     ; +0x18, 0x73cdbc\nCMP             R0, #0                                                 ; +0x1a, 0x73cdbe\nBLT.W           loc_73CF00                                             ; +0x1c, 0x73cdc0\nLDR.W           R4, [R5,#0x278]                                        ; +0x20, 0x73cdc4\nLDR.W           R3, [R5,#0x27C]                                        ; +0x24, 0x73cdc8\nSUBS            R3, R3, R4                                             ; +0x28, 0x73cdcc\nCMP.W           R0, R3,ASR#6                                           ; +0x2a, 0x73cdce\nBGE.W           loc_73CF00                                             ; +0x2e, 0x73cdd2\nLSLS            R7, R0, #6                                             ; +0x32, 0x73cdd6\nSTR.W           R0, [R5,#0x2A4]                                        ; +0x34, 0x73cdd8\nADD             R4, R7                                                 ; +0x38, 0x73cddc\nMOVS            R3, #0                                                 ; +0x3a, 0x73cdde\nSTR             R3, [SP,#0x44+var_2C]                                  ; +0x3c, 0x73cde0\nLDRB.W          R8, [R4,#0x18]                                         ; +0x3e, 0x73cde2\nSTR             R3, [SP,#0x44+var_28]                                  ; +0x42, 0x73cde6\nTST.W           R8, #1                                                 ; +0x44, 0x73cde8\nSTR             R3, [SP,#0x44+var_24]                                  ; +0x48, 0x73cdec\nBEQ             loc_73CDF6                                             ; +0x4a, 0x73cdee\nLDR.W           R8, [R4,#0x1C]                                         ; +0x4c, 0x73cdf0\nB               loc_73CDFA                                             ; +0x50, 0x73cdf4\nMOV.W           R8, R8,ASR#1                                           ; +0x52, 0x73cdf6\nADD.W           R9, SP, #0x44+var_2C                                   ; +0x56, 0x73cdfa\nLDR             R1, =(aDeleteTheBacku - 0x73CE0C); \"Delete the backup <cy>\" ; +0x5a, 0x73cdfe\nMOVS            R2, #0x16                                              ; +0x5c, 0x73ce00\nADD.W           R3, R8, R2                                             ; +0x5e, 0x73ce02\nMOV             R0, R9                                                 ; +0x62, 0x73ce06\nADD             R1, PC; \"Delete the backup <cy>\"                       ; +0x64, 0x73ce08\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcjj; std::string::__init(char const*,uint,uint) ; +0x66, 0x73ce0a\nLDRB            R3, [R4,#0x18]                                         ; +0x6a, 0x73ce0e\nMOV             R0, R9                                                 ; +0x6c, 0x73ce10\nLSLS            R2, R3, #0x1F                                          ; +0x6e, 0x73ce12\nMOV             R2, R8                                                 ; +0x70, 0x73ce14\nITE PL                                                                 ; +0x72, 0x73ce16\nADDPL.W         R1, R4, #0x19                                          ; +0x74, 0x73ce18\nLDRMI           R1, [R4,#0x20]                                         ; +0x78, 0x73ce1c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcj; std::string::append(char const*,uint) ; +0x7a, 0x73ce1e\nB               loc_73CE26                                             ; +0x7e, 0x73ce22\nB               loc_73CEEA                                             ; +0x80, 0x73ce24\nLDR             R1, =(aCFrom - 0x73CE2E); \"</c> from \"                 ; +0x82, 0x73ce26\nMOV             R0, R9; int                                            ; +0x84, 0x73ce28\nADD             R1, PC; \"</c> from \"                                   ; +0x86, 0x73ce2a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x88, 0x73ce2c\nMOV             R3, R0                                                 ; +0x8c, 0x73ce30\nADD.W           R8, SP, #0x44+var_20                                   ; +0x8e, 0x73ce32\nLDM             R0, {R0-R2}                                            ; +0x92, 0x73ce36\nSTM.W           R8, {R0-R2}                                            ; +0x94, 0x73ce38\nMOVS            R2, #0                                                 ; +0x98, 0x73ce3c\nSTR             R2, [R3]                                               ; +0x9a, 0x73ce3e\nMOV             R0, R8                                                 ; +0x9c, 0x73ce40\nSTR             R2, [R3,#4]                                            ; +0x9e, 0x73ce42\nSTR             R2, [R3,#8]                                            ; +0xa0, 0x73ce44\nLDR.W           R3, [R5,#0x278]                                        ; +0xa2, 0x73ce46\nADD             R7, R3                                                 ; +0xa6, 0x73ce4a\nLDRB.W          R2, [R7,#0x24]                                         ; +0xa8, 0x73ce4c\nLSLS            R3, R2, #0x1F                                          ; +0xac, 0x73ce50\nITTEE PL                                                               ; +0xae, 0x73ce52\nADDPL.W         R1, R7, #0x25 ; '%'                                    ; +0xb0, 0x73ce54\nASRPL           R2, R2, #1                                             ; +0xb4, 0x73ce58\nLDRMI           R1, [R7,#0x2C]                                         ; +0xb6, 0x73ce5a\nLDRMI           R2, [R7,#0x28]                                         ; +0xb8, 0x73ce5c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcj; std::string::append(char const*,uint) ; +0xba, 0x73ce5e\nMOV             R3, R0                                                 ; +0xbe, 0x73ce62\nADD             R4, SP, #0x44+var_14                                   ; +0xc0, 0x73ce64\nLDM             R0, {R0-R2}                                            ; +0xc2, 0x73ce66\nSTM.W           R4, {R0-R2}                                            ; +0xc4, 0x73ce68\nMOVS            R2, #0                                                 ; +0xc8, 0x73ce6c\nLDR             R1, =(asc_B993A8 - 0x73CE7A); \"?\"                      ; +0xca, 0x73ce6e\nMOV             R0, R4; int                                            ; +0xcc, 0x73ce70\nSTR             R2, [R3]                                               ; +0xce, 0x73ce72\nSTR             R2, [R3,#4]                                            ; +0xd0, 0x73ce74\nADD             R1, PC; \"?\"                                            ; +0xd2, 0x73ce76\nSTR             R2, [R3,#8]                                            ; +0xd4, 0x73ce78\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0xd6, 0x73ce7a\nMOV             R3, R0                                                 ; +0xda, 0x73ce7e\nADD             R7, SP, #0x44+var_38                                   ; +0xdc, 0x73ce80\nLDM             R0, {R0-R2}                                            ; +0xde, 0x73ce82\nADD.W           R5, R5, #0x254                                         ; +0xe0, 0x73ce84\nSTM.W           R7, {R0-R2}                                            ; +0xe4, 0x73ce88\nMOVS            R2, #0                                                 ; +0xe8, 0x73ce8c\nMOV             R0, R4                                                 ; +0xea, 0x73ce8e\nSTR             R2, [R3]                                               ; +0xec, 0x73ce90\nSTR             R2, [R3,#4]                                            ; +0xee, 0x73ce92\nSTR             R2, [R3,#8]                                            ; +0xf0, 0x73ce94\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf2, 0x73ce96\nMOV             R0, R8                                                 ; +0xf6, 0x73ce9a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xf8, 0x73ce9c\nMOV             R0, R9                                                 ; +0xfc, 0x73cea0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xfe, 0x73cea2\nMOV             R0, R4                                                 ; +0x102, 0x73cea6\nMOV             R1, R7                                                 ; +0x104, 0x73cea8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x106, 0x73ceaa\nLDR             R3, =(aDelete - 0x73CEBA); \"Delete\"                    ; +0x10a, 0x73ceae\nMOV             R0, R5                                                 ; +0x10c, 0x73ceb0\nLDR             R1, =(aDeleteBackup - 0x73CEC0); \"Delete Backup\"       ; +0x10e, 0x73ceb2\nMOV             R2, R4                                                 ; +0x110, 0x73ceb4\nADD             R3, PC; \"Delete\"                                       ; +0x112, 0x73ceb6\nSTR             R3, [SP,#0x44+var_44]                                  ; +0x114, 0x73ceb8\nLDR             R3, =(aCancel - 0x73CEC2); \"Cancel\"                    ; +0x116, 0x73ceba\nADD             R1, PC; \"Delete Backup\"                                ; +0x118, 0x73cebc\nADD             R3, PC; \"Cancel\"                                       ; +0x11a, 0x73cebe\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0x11c, 0x73cec0\nLDR             R3, [R0]                                               ; +0x120, 0x73cec4\nLDR.W           R3, [R3,#0x290]                                        ; +0x122, 0x73cec6\nBLX             R3                                                     ; +0x126, 0x73ceca\nMOV             R0, R4                                                 ; +0x128, 0x73cecc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x12a, 0x73cece\nMOV             R0, R7                                                 ; +0x12e, 0x73ced2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x130, 0x73ced4\nB               loc_73CF00                                             ; +0x134, 0x73ced8\nMOV             R0, R4                                                 ; +0x136, 0x73ceda\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x138, 0x73cedc\nB               loc_73CEE2                                             ; +0x13c, 0x73cee0\nMOV             R0, R8                                                 ; +0x13e, 0x73cee2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x140, 0x73cee4\nB               loc_73CEEA                                             ; +0x144, 0x73cee8\nMOV             R0, R9                                                 ; +0x146, 0x73ceea\nB               loc_73CEF8                                             ; +0x148, 0x73ceec\nMOV             R0, R4                                                 ; +0x14a, 0x73ceee\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x14c, 0x73cef0\nB               loc_73CEF6                                             ; +0x150, 0x73cef4\nMOV             R0, R7                                                 ; +0x152, 0x73cef6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x154, 0x73cef8\nBL              __cxa_end_cleanup                                      ; +0x158, 0x73cefc\nLDR             R2, [SP,#0x44+var_8]                                   ; +0x15c, 0x73cf00\nLDR             R3, [R6]                                               ; +0x15e, 0x73cf02\nCMP             R2, R3                                                 ; +0x160, 0x73cf04\nBEQ             loc_73CF0C                                             ; +0x162, 0x73cf06\nBLX             __stack_chk_fail                                       ; +0x164, 0x73cf08\nADD             SP, SP, #0x44 ; 'D'                                    ; +0x168, 0x73cf0c\nPOP.W           {R4-R9,PC}                                             ; +0x16a, 0x73cf0e", "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"}