//
// ParentalPrivacyPopup::snapshotIsForOtherAccount from 0x1404d4570 to 0x1404d46da (362 bytes)
//
// 3 xrefs:
// > ParentalOptionsLayer::applyPrivacyPushEdge @ 0x1404d3449
// > ParentalPrivacyPopup::checkPending @ 0x1404d4408
// > ??> @ 0x14092987c
//
// This function is hookable on this platform (idp: pc, 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:33:01 +0000
//
bool ParentalPrivacyPopup::snapshotIsForOtherAccount()
{
__int64 v0; // rbx
cocos2d::CCString *v1; // rax
int v2; // ebx
void *v3; // r8
__int64 v4; // rax
__int64 v5; // rax
bool result; // al
void *v7; // [rsp+30h] [rbp-38h]
void *Block[2]; // [rsp+38h] [rbp-30h] BYREF
__int64 v9; // [rsp+48h] [rbp-20h]
unsigned __int64 v10; // [rsp+50h] [rbp-18h]
v0 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v7 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v0 = qword_14090BFD0;
}
*(_OWORD *)Block = 0;
v9 = 3;
v10 = 15;
LODWORD(Block[0]) = 6256231;
sub_140044D80(Block, "0244", 4u);
v1 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v0 + 432), Block);
v2 = cocos2d::CCString::intValue(v1);
if ( v10 > 0xF )
{
v3 = Block[0];
if ( v10 + 1 >= 0x1000 )
{
v3 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v3);
}
result = false;
if ( v2 > 0 )
{
v4 = GJAccountManager::sharedState();
if ( *(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364) > 0 )
{
v5 = GJAccountManager::sharedState();
if ( v2 != *(_DWORD *)(v5 + 360) - *(_DWORD *)(v5 + 364) )
return true;
}
}
return result;
}