//
// MoreOptionsLayer::toggleGP from 0x8eee50 to 0x8eeee0 (144 bytes)
//
// 4 xrefs:
// > MoreOptionsLayer::onGPSignIn @ 0x8eef14
// > MoreOptionsLayer::onGPSignOut @ 0x8eef88
// > MoreOptionsLayer::googlePlaySignedIn @ 0x8eef8c
// > ??> @ 0x6ba88
//
// 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:57 +0000
//
__int64 __fastcall MoreOptionsLayer::toggleGP(MoreOptionsLayer *this)
{
bool isSignedInGooglePlay; // w0
__int64 v3; // x2
isSignedInGooglePlay = PlatformToolbox::isSignedInGooglePlay(this);
v3 = *((_QWORD *)this + 92);
if ( isSignedInGooglePlay )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v3 + 344LL))(*((_QWORD *)this + 92), 0);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 93) + 344LL))(*((_QWORD *)this + 93), 1);
}
else
{
(*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v3 + 344LL))(*((_QWORD *)this + 92), 1);
return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 93) + 344LL))(*((_QWORD *)this + 93), 0);
}
}