{"type": "func", "start": 12918888, "end": 12919192, "name": "AutoBackupPopup::statsText", "pseudocode": "// \n// AutoBackupPopup::statsText from 0xc52068 to 0xc52198 (304 bytes)\n// \n// 3 xrefs:\n// > AutoBackupPopup::updateSummary @ 0xc521dc\n// > AutoBackupOptionsPopup::refreshStats @ 0xc566e0\n// > <???> @ 0x77680\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:05:09 +0000\n// \n\n__int64 *__usercall AutoBackupPopup::statsText@<X0>(__int64 *a1@<X0>, __int64 *a2@<X8>)\n{\n  __int64 v3; // x2\n  __int64 v4; // x4\n  __int64 v5; // x1\n  int v6; // w0\n  __int64 v7; // x3\n  char *v8; // x2\n  char *v9; // x3\n  cocos2d::CCString *v10; // x0\n  const char *CString; // x0\n  size_t v12; // x0\n  char *v14; // [xsp+30h] [xbp+30h]\n  char *v15; // [xsp+38h] [xbp+38h]\n  char *v16; // [xsp+38h] [xbp+38h]\n  __int64 v17[2]; // [xsp+40h] [xbp+40h] BYREF\n  void *v18; // [xsp+50h] [xbp+50h]\n\n  v3 = *a1;\n  v4 = a1[1];\n  v5 = (v4 - *a1) >> 7;\n  if ( !v5 )\n  {\n    v6 = 0;\n    v5 = 0;\nLABEL_5:\n    v8 = \"s\";\n    goto LABEL_6;\n  }\n  v6 = 0;\n  do\n  {\n    v7 = *(_QWORD *)(v3 + 120);\n    v3 += 128;\n    v6 += v7;\n  }\n  while ( v3 != v4 );\n  if ( v5 != 1 )\n    goto LABEL_5;\n  v8 = &byte_11B8890;\nLABEL_6:\n  v14 = (char *)v5;\n  v15 = v8;\n  formatBytes(v17, v6);\n  v9 = (char *)v17 + 1;\n  if ( (v17[0] & 1) != 0 )\n    v9 = (char *)v18;\n  v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i backup%s, %s\", v14, v15, v9);\n  CString = (const char *)cocos2d::CCString::getCString(v10);\n  *a2 = 0;\n  a2[1] = 0;\n  a2[2] = 0;\n  v16 = (char *)CString;\n  v12 = strlen(CString);\n  std::string::__init(a2, v16, v12);\n  if ( (v17[0] & 1) != 0 )\n    operator delete(v18);\n  return a2;\n}", "assembly": "; \n; AutoBackupPopup::statsText from 0xc52068 to 0xc52198 (304 bytes)\n; \n; 3 xrefs:\n; > AutoBackupPopup::updateSummary @ 0xc521dc\n; > AutoBackupOptionsPopup::refreshStats @ 0xc566e0\n; > <???> @ 0x77680\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:05:09 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xc52068\nMOV             X29, SP                                                ; +0x4, 0xc5206c\nSTR             X21, [SP,#0x60+var_40]                                 ; +0x8, 0xc52070\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc52074\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x10, 0xc52078\nMOV             X20, X8                                                ; +0x14, 0xc5207c\nLDR             X1, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xc52080\nLDR             X2, [X0]                                               ; +0x1c, 0xc52084\nLDR             X4, [X0,#8]                                            ; +0x20, 0xc52088\nLDR             X0, [X1]                                               ; +0x24, 0xc5208c\nSUB             X1, X4, X2                                             ; +0x28, 0xc52090\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x2c, 0xc52094\nASR             X1, X1, #7                                             ; +0x30, 0xc52098\nCBZ             X1, loc_C5216C                                         ; +0x34, 0xc5209c\nMOV             X0, #0                                                 ; +0x38, 0xc520a0\nLDR             X3, [X2,#0x78]                                         ; +0x3c, 0xc520a4\nADD             X2, X2, #0x80                                          ; +0x40, 0xc520a8\nCMP             X2, X4                                                 ; +0x44, 0xc520ac\nADD             X0, X0, X3; int                                        ; +0x48, 0xc520b0\nB.NE            loc_C520A4                                             ; +0x4c, 0xc520b4\nCMP             X1, #1                                                 ; +0x50, 0xc520b8\nB.EQ            loc_C52160                                             ; +0x54, 0xc520bc\nADRL            X2, (aSSSSSSLdSS+0x18); \"s\"                            ; +0x58, 0xc520c0\nADD             X19, X29, #0x60+var_20                                 ; +0x60, 0xc520c8\nSTR             X1, [X29,#0x60+var_30]                                 ; +0x64, 0xc520cc\nMOV             X8, X19                                                ; +0x68, 0xc520d0\nSTR             X2, [X29,#0x60+var_28]                                 ; +0x6c, 0xc520d4\nBL              _Z11formatBytesi; formatBytes(int)                     ; +0x70, 0xc520d8\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0x74, 0xc520dc\nADD             X3, X19, #1                                            ; +0x78, 0xc520e0\nLDR             X2, [X29,#0x60+var_28]                                 ; +0x7c, 0xc520e4\nLDR             X1, [X29,#0x60+var_30]; char *                         ; +0x80, 0xc520e8\nTBZ             W0, #0, loc_C520F4                                     ; +0x84, 0xc520ec\nLDR             X3, [X29,#0x60+var_10]                                 ; +0x88, 0xc520f0\nADRL            X0, aIBackupSS; \"%i backup%s, %s\"                      ; +0x8c, 0xc520f4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x94, 0xc520fc\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x98, 0xc52100\nSTR             XZR, [X20]                                             ; +0x9c, 0xc52104\nSTR             XZR, [X20,#8]                                          ; +0xa0, 0xc52108\nSTR             XZR, [X20,#0x10]                                       ; +0xa4, 0xc5210c\nSTR             X0, [X29,#0x60+var_28]                                 ; +0xa8, 0xc52110\nBL              .strlen                                                ; +0xac, 0xc52114\nMOV             X2, X0                                                 ; +0xb0, 0xc52118\nLDR             X1, [X29,#0x60+var_28]                                 ; +0xb4, 0xc5211c\nMOV             X0, X20                                                ; +0xb8, 0xc52120\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xbc, 0xc52124\nLDRB            W0, [X29,#0x60+var_20]                                 ; +0xc0, 0xc52128\nTBZ             W0, #0, loc_C52138                                     ; +0xc4, 0xc5212c\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0xc8, 0xc52130\nBL              _ZdlPv; operator delete(void *)                        ; +0xcc, 0xc52134\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xd0, 0xc52138\nMOV             X0, X20                                                ; +0xd4, 0xc5213c\nLDR             X2, [X29,#0x60+var_8]                                  ; +0xd8, 0xc52140\nLDR             X1, [X21]                                              ; +0xdc, 0xc52144\nCMP             X2, X1                                                 ; +0xe0, 0xc52148\nB.NE            loc_C52178                                             ; +0xe4, 0xc5214c\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xe8, 0xc52150\nLDR             X21, [SP,#0x60+var_40]                                 ; +0xec, 0xc52154\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xf0, 0xc52158\nRET                                                                    ; +0xf4, 0xc5215c\nADRL            X2, byte_11B8890                                       ; +0xf8, 0xc52160\nB               loc_C520C8                                             ; +0x100, 0xc52168\nMOV             W0, #0                                                 ; +0x104, 0xc5216c\nMOV             W1, #0                                                 ; +0x108, 0xc52170\nB               loc_C520C0                                             ; +0x10c, 0xc52174\nBL              .__stack_chk_fail                                      ; +0x110, 0xc52178\nLDRB            W1, [X29,#0x60+var_20]                                 ; +0x114, 0xc5217c\nMOV             X19, X0                                                ; +0x118, 0xc52180\nTBZ             W1, #0, loc_C52190                                     ; +0x11c, 0xc52184\nLDR             X0, [X29,#0x60+var_10]; void *                         ; +0x120, 0xc52188\nBL              _ZdlPv; operator delete(void *)                        ; +0x124, 0xc5218c\nMOV             X0, X19                                                ; +0x128, 0xc52190\nBL              _Unwind_Resume                                         ; +0x12c, 0xc52194", "xrefs": ["AutoBackupPopup::updateSummary @ 0xc521dc", "AutoBackupOptionsPopup::refreshStats @ 0xc566e0", "<???> @ 0x77680"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}