//
// MoreOptionsLayer::onParental from 0x1403765b0 to 0x1403766b7 (263 bytes)
//
// 2 xrefs:
// > MoreOptionsLayer::init @ 0x1403743bb
// > ??> @ 0x1406d5bc4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void MoreOptionsLayer::onParental(MoreOptionsLayer *a1, cocos2d::CCObject *a2)
{
char *v2; // rbx
void (*v3)(FLAlertLayer *); // rdx
v2 = (char *)operator new(0x2A8u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v2);
*(_QWORD *)v2 = &ParentalOptionsLayer::`vftable';
*((_QWORD *)v2 + 40) = &ParentalOptionsLayer::`vftable';
*((_QWORD *)v2 + 41) = &ParentalOptionsLayer::`vftable';
*((_QWORD *)v2 + 42) = &ParentalOptionsLayer::`vftable';
*((_QWORD *)v2 + 43) = &ParentalOptionsLayer::`vftable';
*((_QWORD *)v2 + 44) = &ParentalOptionsLayer::`vftable';
*((_QWORD *)v2 + 51) = &ParentalOptionsLayer::`vftable';
*((_QWORD *)v2 + 54) = &ParentalOptionsLayer::`vftable';
*((_DWORD *)v2 + 158) = -1;
*(_QWORD *)(v2 + 636) = 0;
if ( ParentalOptionsLayer::init((ParentalOptionsLayer *)v2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
v2 = nullptr;
}
v3 = *(void (**)(FLAlertLayer *))(*(_QWORD *)v2 + 1040LL);
if ( v3 == FLAlertLayer::show )
FLAlertLayer::show((FLAlertLayer *)v2);
else
v3((FLAlertLayer *)v2);
}