//
// MoreOptionsLayer::onParental from 0x8f943c to 0x8f949c (96 bytes)
//
// 3 xrefs:
// > ??> @ 0x104518
// > MoreOptionsLayer::init @ 0x8f84e4
// > ??> @ 0x1547f20
//
// 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:57:02 +0000
//
__int64 __fastcall MoreOptionsLayer::onParental(MoreOptionsLayer *this, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
unsigned __int64 GameVariable; // x0
__int64 v4; // x0
GameManager *v6; // x0
__int64 v7; // x0
v2 = (GameManager *)GameManager::sharedState(this);
GameVariable = (unsigned __int8)GameManager::getGameVariable(v2, "0228");
if ( (_BYTE)GameVariable
&& (v6 = (GameManager *)GameManager::sharedState((GameManager *)GameVariable),
GameVariable = (unsigned __int8)GameManager::parentalOptionsActive(v6),
(_BYTE)GameVariable) )
{
v7 = ParentalGateLayer::create((ParentalGateLayer *)GameVariable);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
}
else
{
v4 = ParentalOptionsLayer::create((ParentalOptionsLayer *)GameVariable);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
}