//
// MoreOptionsLayer::onParental from 0x10087e900 to 0x10087e951 (81 bytes)
//
// 1 xrefs:
// > MoreOptionsLayer::init @ 0x10087d5bc
//
// 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 12:36:56 +0000
//
__int64 MoreOptionsLayer::onParental()
{
__int64 v0; // rax
__int64 v1; // rax
char *v2; // rax
char *v4; // rax
v0 = GameManager::sharedState();
if ( (unsigned __int8)GameManager::getGameVariable(v0, "0228")
&& (v1 = GameManager::sharedState(), GameManager::parentalOptionsActive(v1)) )
{
v2 = ParentalGateLayer::create();
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v2 + 1312LL))(v2);
}
else
{
v4 = ParentalOptionsLayer::create();
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 1312LL))(v4);
}
}