{"type": "func", "start": 7587244, "end": 7587408, "name": "AutoBackupPopup::statsText", "pseudocode": "// \n// AutoBackupPopup::statsText from 0x73c5ac to 0x73c650 (164 bytes)\n// \n// 2 xrefs:\n// > AutoBackupPopup::updateSummary @ 0x73c686\n// > AutoBackupOptionsPopup::refreshStats @ 0x73dda6\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::statsText(int *a1, _DWORD *a2, char *a3, int a4)\n{\n  int v5; // r0\n  int v6; // r4\n  int v7; // r3\n  int v8; // r1\n  int v9; // r2\n  __int16 *v10; // r8\n  char *v11; // r3\n  cocos2d::CCString *v12; // r0\n  const char *CString; // r0\n  const char *v14; // r4\n  size_t v15; // r0\n  int *v17; // [sp+0h] [bp-10h] BYREF\n  _DWORD *v18; // [sp+4h] [bp-Ch]\n  char *v19; // [sp+8h] [bp-8h]\n  int v20; // [sp+Ch] [bp-4h]\n\n  v17 = a1;\n  v18 = a2;\n  v19 = a3;\n  v20 = a4;\n  v5 = *a2;\n  v6 = (a2[1] - *a2) >> 6;\n  v7 = 0;\n  v8 = 0;\n  while ( v7 != v6 )\n  {\n    v9 = v5 + (v7++ << 6);\n    v8 += *(_DWORD *)(v9 + 60);\n  }\n  if ( v6 == 1 )\n    v10 = (__int16 *)&unk_B6B226;\n  else\n    v10 = &a1i2r3e45s789g[8];\n  formatBytes((int *)&v17, v8);\n  if ( ((unsigned __int8)v17 & 1) != 0 )\n    v11 = v19;\n  else\n    v11 = (char *)&v17 + 1;\n  v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                               (cocos2d::CCString *)\"%i backup%s, %s\",\n                               (const char *)v6,\n                               v10,\n                               v11,\n                               v17,\n                               v18);\n  CString = (const char *)cocos2d::CCString::getCString(v12);\n  *a1 = 0;\n  a1[1] = 0;\n  v14 = CString;\n  a1[2] = 0;\n  v15 = strlen(CString);\n  std::string::__init(a1, v14, v15);\n  std::string::~string((int)&v17);\n  return a1;\n}", "assembly": "; \n; AutoBackupPopup::statsText from 0x73c5ac to 0x73c650 (164 bytes)\n; \n; 2 xrefs:\n; > AutoBackupPopup::updateSummary @ 0x73c686\n; > AutoBackupOptionsPopup::refreshStats @ 0x73dda6\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          {R0-R8,LR}                                             ; +0x0, 0x73c5ac\nMOV             R5, R0                                                 ; +0x4, 0x73c5b0\nLDR             R2, =(__stack_chk_guard_ptr - 0x73C5BC)                ; +0x6, 0x73c5b2\nLDM.W           R1, {R0,R4}                                            ; +0x8, 0x73c5b4\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0xc, 0x73c5b8\nLDR             R2, [R2]; __stack_chk_guard                            ; +0xe, 0x73c5ba\nSUBS            R4, R4, R0                                             ; +0x10, 0x73c5bc\nLDR             R3, [R2]                                               ; +0x12, 0x73c5be\nMOV             R6, R2                                                 ; +0x14, 0x73c5c0\nASRS            R4, R4, #6                                             ; +0x16, 0x73c5c2\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x18, 0x73c5c4\nMOVS            R3, #0                                                 ; +0x1a, 0x73c5c6\nMOV             R1, R3                                                 ; +0x1c, 0x73c5c8\nCMP             R3, R4                                                 ; +0x1e, 0x73c5ca\nBEQ             loc_73C5DA                                             ; +0x20, 0x73c5cc\nADD.W           R2, R0, R3,LSL#6                                       ; +0x22, 0x73c5ce\nADDS            R3, #1                                                 ; +0x26, 0x73c5d2\nLDR             R2, [R2,#0x3C]                                         ; +0x28, 0x73c5d4\nADD             R1, R2                                                 ; +0x2a, 0x73c5d6\nB               loc_73C5CA                                             ; +0x2c, 0x73c5d8\nCMP             R4, #1                                                 ; +0x2e, 0x73c5da\nBNE             loc_73C5E6                                             ; +0x30, 0x73c5dc\nLDR.W           R8, =(unk_B6B226 - 0x73C5E6)                           ; +0x32, 0x73c5de\nADD             R8, PC; unk_B6B226                                     ; +0x36, 0x73c5e2\nB               loc_73C5EC                                             ; +0x38, 0x73c5e4\nLDR.W           R8, =(a1i2r3e45s789g+0x10 - 0x73C5EE); \"s789g\"         ; +0x3a, 0x73c5e6\nADD             R8, PC; \"s789g\"                                        ; +0x3e, 0x73c5ea\nMOV             R0, SP; int                                            ; +0x40, 0x73c5ec\nMOV             R7, SP                                                 ; +0x42, 0x73c5ee\nBL              _Z11formatBytesi; formatBytes(int)                     ; +0x44, 0x73c5f0\nLDRB.W          R3, [SP,#0x10+var_10]                                  ; +0x48, 0x73c5f4\nLDR             R0, =(aIBackupSS - 0x73C60A); \"%i backup%s, %s\"        ; +0x4c, 0x73c5f8\nMOV             R1, R4; char *                                         ; +0x4e, 0x73c5fa\nLSLS            R3, R3, #0x1F                                          ; +0x50, 0x73c5fc\nMOV             R2, R8                                                 ; +0x52, 0x73c5fe\nIT PL                                                                  ; +0x54, 0x73c600\nADDPL.W         R3, SP, #0x10+var_F                                    ; +0x56, 0x73c602\nADD             R0, PC; \"%i backup%s, %s\"                              ; +0x5a, 0x73c606\nIT MI                                                                  ; +0x5c, 0x73c608\nLDRMI           R3, [SP,#0x10+var_8]                                   ; +0x5e, 0x73c60a\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x60, 0x73c60c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x64, 0x73c610\nMOVS            R3, #0                                                 ; +0x68, 0x73c614\nSTR             R3, [R5]                                               ; +0x6a, 0x73c616\nSTR             R3, [R5,#4]                                            ; +0x6c, 0x73c618\nMOV             R4, R0                                                 ; +0x6e, 0x73c61a\nSTR             R3, [R5,#8]                                            ; +0x70, 0x73c61c\nBLX             strlen                                                 ; +0x72, 0x73c61e\nMOV             R1, R4                                                 ; +0x76, 0x73c622\nMOV             R2, R0                                                 ; +0x78, 0x73c624\nMOV             R0, R5                                                 ; +0x7a, 0x73c626\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x7c, 0x73c628\nMOV             R0, SP                                                 ; +0x80, 0x73c62c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x82, 0x73c62e\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x86, 0x73c632\nLDR             R3, [R6]                                               ; +0x88, 0x73c634\nMOV             R0, R5                                                 ; +0x8a, 0x73c636\nCMP             R2, R3                                                 ; +0x8c, 0x73c638\nBEQ             loc_73C64A                                             ; +0x8e, 0x73c63a\nBLX             __stack_chk_fail                                       ; +0x90, 0x73c63c\nMOV             R0, R7                                                 ; +0x94, 0x73c640\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x96, 0x73c642\nBL              __cxa_end_cleanup                                      ; +0x9a, 0x73c646\nADD             SP, SP, #0x10                                          ; +0x9e, 0x73c64a\nPOP.W           {R4-R8,PC}                                             ; +0xa0, 0x73c64c", "xrefs": ["AutoBackupPopup::updateSummary @ 0x73c686", "AutoBackupOptionsPopup::refreshStats @ 0x73dda6"], "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"}