//
// ParentalPrivacyPopup::updateSettingsFinished from 0x8f2e5c to 0x8f3028 (460 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ParentalPrivacyPopup::updateSettingsFinished @ 0x8f302c
// > ??> @ 0x61bb8
// > ??> @ 0x1462440
//
// 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 12:56:59 +0000
//
__int64 __fastcall ParentalPrivacyPopup::updateSettingsFinished(ParentalPrivacyPopup *this)
{
GJAccountManager *v2; // x20
__int64 v3; // x0
GameManager *IntGameVariable; // x0
GameManager *v5; // x20
char *v6; // x0
char *v7; // x0
char *v8; // x0
char *v9; // x0
GameManager *v10; // x0
unsigned int v11; // w2
const char *v12; // x1
size_t v13; // x0
GameManager *v15; // x0
GameManager *v16; // x0
GameManager *v17; // x0
GameManager *v18; // x0
GameManager *v19; // x0
char *v20; // [xsp+38h] [xbp+38h]
__int64 v21[2]; // [xsp+40h] [xbp+40h] BYREF
void *v22; // [xsp+50h] [xbp+50h]
v2 = (GJAccountManager *)GameLevelManager::sharedState(_stack_chk_guard);
v3 = GJAccountManager::sharedState(v2);
IntGameVariable = (GameManager *)GameLevelManager::userInfoForAccountID(
(cocos2d::CCDictionary **)v2,
*(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356));
v5 = IntGameVariable;
if ( IntGameVariable )
{
v6 = (char *)&dword_0 + 2;
if ( *((_BYTE *)this + 720) )
{
v19 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 2));
LODWORD(v6) = GameManager::getIntGameVariable(v19, "0222");
}
*((_DWORD *)v5 + 109) = (_DWORD)v6;
v7 = (char *)&dword_0 + 1;
if ( *((_BYTE *)this + 720) )
{
v18 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 1));
LODWORD(v7) = GameManager::getIntGameVariable(v18, "0223");
}
*((_DWORD *)v5 + 110) = (_DWORD)v7;
v8 = (char *)&dword_0 + 2;
if ( *((_BYTE *)this + 720) )
{
v17 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 2));
LODWORD(v8) = GameManager::getIntGameVariable(v17, "0224");
}
*((_DWORD *)v5 + 111) = (_DWORD)v8;
v9 = (char *)&dword_0 + 2;
if ( *((_BYTE *)this + 720) )
{
v16 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 2));
LODWORD(v9) = GameManager::getIntGameVariable(v16, "0225");
}
*((_DWORD *)v5 + 112) = (_DWORD)v9;
IntGameVariable = (GameManager *)((char *)&dword_0 + 2);
if ( *((_BYTE *)this + 720) )
{
v15 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 2));
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v15, "0226");
}
*((_DWORD *)v5 + 113) = (_DWORD)IntGameVariable;
}
v10 = (GameManager *)GameManager::sharedState(IntGameVariable);
if ( *((_BYTE *)this + 720) )
v11 = 0;
else
v11 = 2;
GameManager::setIntGameVariable(v10, "0227", v11);
if ( *((_BYTE *)this + 720) )
v12 = "Privacy settings restored!";
else
v12 = "Privacy settings updated!";
v20 = (char *)v12;
v21[0] = 0;
v21[1] = 0;
v22 = nullptr;
v13 = strlen(v12);
std::string::__init(v21, v20, v13);
UploadActionPopup::showSuccessMessage(this, v21);
if ( (v21[0] & 1) != 0 )
operator delete(v22);
return _stack_chk_guard;
}