//
// ParentalOptionsLayer::create from 0x1404d13f0 to 0x1404d1525 (309 bytes)
//
// 3 xrefs:
// > OptionsLayer::onParental @ 0x1404cbd12
// > ParentalGateLayer::onDone @ 0x1404d3f0e
// > ??> @ 0x140929774
//
// 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:00 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *ParentalOptionsLayer::create()
{
_QWORD *v0; // rbx
v0 = operator new(0x2F0u);
FLAlertLayer::FLAlertLayer((__int64)v0);
*v0 = &ParentalOptionsLayer::`vftable';
v0[40] = &ParentalOptionsLayer::`vftable';
v0[41] = &ParentalOptionsLayer::`vftable';
v0[42] = &ParentalOptionsLayer::`vftable';
v0[43] = &ParentalOptionsLayer::`vftable';
v0[44] = &ParentalOptionsLayer::`vftable';
v0[51] = &ParentalOptionsLayer::`vftable';
v0[54] = &ParentalOptionsLayer::`vftable';
v0[68] = &ParentalOptionsLayer::`vftable';
*((_DWORD *)v0 + 166) = -1;
*(_QWORD *)((char *)v0 + 668) = 0;
*((_BYTE *)v0 + 676) = 0;
v0[87] = 0;
v0[88] = 0;
v0[89] = 0;
v0[90] = 0;
v0[91] = 0;
if ( (unsigned __int8)ParentalOptionsLayer::init(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return v0;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v0 + 8LL))(v0, 1);
return nullptr;
}
}