//
// sub_10011871C from 0x10011871c to 0x100118800 (228 bytes)
//
// 1 xrefs:
// > sub_1001180E8 @ 0x100118178
//
// 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 10:59:11 +0000
//
__int64 __fastcall sub_10011871C(__int64 a1, int a2)
{
char *v3; // x1
__int64 v4; // x0
__int64 v5; // x19
__int64 v6; // x21
__int64 v7; // x0
__int64 v8; // x0
__int64 v9; // x20
__int64 v10; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v13; // [xsp+1Fh] [xbp-21h]
*(_BYTE *)(a1 + 720) = a2;
if ( a2 )
v3 = "Restoring privacy settings...";
else
v3 = "Updating privacy settings...";
sub_100009900(__p, v3);
v4 = sub_100377258(a1, 0, __p);
v5 = v4;
if ( v13 < 0 )
{
operator delete(__p[0]);
if ( (v5 & 1) == 0 )
return v5;
}
else if ( (v4 & 1) == 0 )
{
return v5;
}
v6 = GameLevelManager::sharedState();
v7 = GJAccountManager::sharedState(v6);
v8 = GameLevelManager::userInfoForAccountID(v6, *(_DWORD *)(v7 + 352) - *(_DWORD *)(v7 + 356));
if ( v8 )
{
sub_10011881C(a1, v8);
}
else
{
*(_QWORD *)(GameLevelManager::sharedState() + 1352) = a1 + 712;
v9 = GameLevelManager::sharedState();
v10 = GJAccountManager::sharedState(v9);
GameLevelManager::getGJUserInfo(v9, *(_DWORD *)(v10 + 352) - *(_DWORD *)(v10 + 356));
}
return v5;
}