// // AccountHelpLayer::updatePage from 0x5852e4 to 0x58549a (438 bytes) // // 2 xrefs: // > AccountHelpLayer::accountStatusChanged @ 0x5854bc // > AccountHelpLayer::customSetup @ 0x58574e // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:52:57 +0000 // int __fastcall AccountHelpLayer::updatePage(AccountHelpLayer *this, int a2, char *a3, int a4) { GJAccountManager *v5; // r0 int v6; // r0 int v7; // r5 _BOOL4 v8; // r5 GJAccountManager *v9; // r0 int v10; // r5 void (__fastcall *v11)(int, int); // r7 int v12; // r0 char *v13; // r1 cocos2d::CCString *v14; // r0 int CString; // r0 int v16; // r5 GJAccountManager *v17; // r0 int *v18; // r7 int v19; // r3 void (__fastcall *v20)(int *, int); // r5 int v21; // r0 char *v22; // r1 cocos2d::CCString *v23; // r0 int v24; // r0 int v25; // r5 int v26; // r7 GJAccountManager *v27; // r0 int v28; // r4 int (__fastcall *v29)(int, bool); // r5 int v30; // r0 AccountHelpLayer *v32; // [sp+0h] [bp-10h] BYREF int v33; // [sp+4h] [bp-Ch] char *v34; // [sp+8h] [bp-8h] int v35; // [sp+Ch] [bp-4h] v32 = this; v33 = a2; v34 = a3; v35 = a4; v5 = (GJAccountManager *)GJAccountManager::sharedState(this); if ( *((_DWORD *)v5 + 70) == *((_DWORD *)v5 + 71) ) { v8 = 0; } else { v6 = GJAccountManager::sharedState(v5); std::string::basic_string((int *)&v32, v6 + 292); if ( ((unsigned __int8)v32 & 1) != 0 ) v7 = v33; else v7 = (int)(unsigned __int8)v32 >> 1; v8 = v7 != 0; std::string::~string((int)&v32); } v9 = (GJAccountManager *)TextArea::colorAllCharactersTo(*((_DWORD *)this + 123), 0xFFFFFF); if ( v8 ) { v10 = *((_DWORD *)this + 122); v11 = *(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 464); v12 = GJAccountManager::sharedState(v9); std::string::basic_string((int *)&v32, v12 + 268); if ( ((unsigned __int8)v32 & 1) != 0 ) v13 = v34; else v13 = (char *)&v32 + 1; v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Linked to account: %s", v13, (unsigned __int8)v32 << 31); CString = cocos2d::CCString::getCString(v14); v11(v10, CString); std::string::~string((int)&v32); v16 = *((_DWORD *)this + 123); v32 = nullptr; v33 = 0; v34 = nullptr; std::string::__init((int *)&v32, &unk_B6B226, 0); TextArea::setString(v16, &v32); } else { v17 = (GJAccountManager *)GJAccountManager::sharedState(v9); v18 = *((int **)this + 122); v19 = *v18; if ( *((_DWORD *)v17 + 70) == *((_DWORD *)v17 + 71) ) { (*(void (__fastcall **)(_DWORD, const char *))(v19 + 464))(*((_DWORD *)this + 122), "Not logged in"); v26 = *((_DWORD *)this + 123); v32 = nullptr; v33 = 0; v34 = nullptr; std::string::__init((int *)&v32, "Create an account to backup\nand sync your data", 0x2Eu); TextArea::setString(v26, &v32); } else { v20 = *(void (__fastcall **)(int *, int))(v19 + 464); v21 = GJAccountManager::sharedState(v17); std::string::basic_string((int *)&v32, v21 + 268); if ( ((unsigned __int8)v32 & 1) != 0 ) v22 = v34; else v22 = (char *)&v32 + 1; v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Linked to account: %s", v22); v24 = cocos2d::CCString::getCString(v23); v20(v18, v24); std::string::~string((int)&v32); v25 = *((_DWORD *)this + 123); v32 = nullptr; v33 = 0; v34 = nullptr; std::string::__init((int *)&v32, "Login required", 0xEu); TextArea::setString(v25, &v32); } } v27 = (GJAccountManager *)std::string::~string((int)&v32); v28 = *((_DWORD *)this + 125); v29 = *(int (__fastcall **)(int, bool))(*(_DWORD *)v28 + 172); v30 = GJAccountManager::sharedState(v27); return v29(v28, *(_DWORD *)(v30 + 280) != *(_DWORD *)(v30 + 284)); }