// // AccountLayer::backupAccountFailed from 0x1001ef59c to 0x1001ef79c (512 bytes) // // 2 xrefs: // > sub_1001EF7F8 @ 0x1001ef7fc // > @ 0x1008f19e0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:00:37 +0000 // void __fastcall AccountLayer::backupAccountFailed(__int64 a1, int a2, int a3) { __int64 v6; // x0 __int64 v7; // x0 float v8; // s8 float v9; // s9 std::string *v10; // x0 __int64 v11; // x0 const std::string::value_type *CString; // x0 __int64 v13; // x21 const void **v14; // x8 std::string *v15; // x8 __int64 v16; // x0 char *v17; // x0 std::string *v18; // x8 __int64 v19; // x0 char *v20; // x0 const void *v21[2]; // [xsp+20h] [xbp-90h] BYREF char v22; // [xsp+37h] [xbp-79h] const void *v23[2]; // [xsp+38h] [xbp-78h] BYREF char v24; // [xsp+4Fh] [xbp-61h] const void *v25[2]; // [xsp+50h] [xbp-60h] BYREF char v26; // [xsp+67h] [xbp-49h] std::string v27; // [xsp+68h] [xbp-48h] BYREF (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 560) + 1272LL))(*(_QWORD *)(a1 + 560), 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); v6 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 344LL))(*(_QWORD *)(a1 + 704), 0); v7 = GJAccountManager::sharedState(v6); v8 = (float)*(int *)(v7 + 440) * 0.00000095367; v9 = (float)*(int *)(GJAccountManager::sharedState(v7) + 444) * 0.00000095367; v10 = (std::string *)sub_100009900(&v27, ""); if ( (float)(v8 + v9) <= 32.0 ) { std::string::assign(v10, "Save size is within limits."); } else { v11 = sub_1003065B0("Size: %.2f/32MB. (Profile: %.2f, Levels: %.2f)", (float)(v8 + v9), v8, v9); CString = (const std::string::value_type *)cocos2d::CCString::getCString(v11); std::string::assign(&v27, CString); } v13 = *(_QWORD *)(a1 + 648); if ( a2 == -3 ) { v15 = &v27; if ( (v27.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v15 = (std::string *)v27.__r_.__value_.__r.__words[0]; v16 = sub_1003065B0("Backup failed. Error code: %i\n%s", a3, (const char *)v15); v17 = (char *)cocos2d::CCString::getCString(v16); sub_100009900(v23, v17); TextArea::setString(v13, v23); if ( v24 < 0 ) { v14 = v23; LABEL_16: operator delete((void *)*v14); } } else { if ( a2 == -2 ) { sub_100009900(v25, "Login failed. Please login to verify your account."); TextArea::setString(v13, v25); if ( (v26 & 0x80000000) == 0 ) goto LABEL_17; v14 = v25; goto LABEL_16; } v18 = &v27; if ( (v27.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v18 = (std::string *)v27.__r_.__value_.__r.__words[0]; v19 = sub_1003065B0("Backup failed. Please try again later.\n%s", (const char *)v18); v20 = (char *)cocos2d::CCString::getCString(v19); sub_100009900(v21, v20); TextArea::setString(v13, v21); if ( v22 < 0 ) { v14 = v21; goto LABEL_16; } } LABEL_17: TextArea::colorAllCharactersTo(*(_QWORD *)(a1 + 648), 19455); if ( SHIBYTE(v27.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v27.__r_.__value_.__l.__data_); }