//
// ParentalGateLayer::create from 0x52d7e0 to 0x52d89a (186 bytes)
//
// 2 xrefs:
// > OptionsLayer::onParental @ 0x52d8c0
// > MoreOptionsLayer::onParental @ 0x52d8f4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:02 +0000
//
FLAlertLayer *__fastcall ParentalGateLayer::create(ParentalGateLayer *this)
{
FLAlertLayer *v1; // r4
int v2; // r3
FLAlertLayer *v3; // r0
v1 = (FLAlertLayer *)operator new(0x23Cu);
FLAlertLayer::FLAlertLayer(v1);
*((_DWORD *)v1 + 133) = 4;
*((_DWORD *)v1 + 134) = 4;
*((_DWORD *)v1 + 131) = 0;
*((_DWORD *)v1 + 132) = 0;
*((_DWORD *)v1 + 135) = 0;
*(_DWORD *)v1 = &off_CAA7E0;
*((_DWORD *)v1 + 136) = 0;
*((_DWORD *)v1 + 66) = &off_CAAA8C;
*((_DWORD *)v1 + 137) = 0;
*((_DWORD *)v1 + 67) = &off_CAAAC4;
*((_DWORD *)v1 + 138) = 0;
*((_DWORD *)v1 + 68) = &off_CAAAD0;
*((_DWORD *)v1 + 139) = 0;
*((_DWORD *)v1 + 69) = &off_CAAAE0;
*((_DWORD *)v1 + 140) = 0;
*((_DWORD *)v1 + 70) = &off_CAAAF4;
*((_DWORD *)v1 + 141) = 0;
*((_DWORD *)v1 + 79) = &off_CAAB0C;
*((_DWORD *)v1 + 142) = 0;
*((_DWORD *)v1 + 83) = &off_CAAB4C;
*((_DWORD *)v1 + 110) = &off_CAAB5C;
if ( ParentalGateLayer::init(v1) )
{
cocos2d::CCObject::autorelease(v1);
}
else
{
v2 = *(_DWORD *)v1;
v3 = v1;
v1 = nullptr;
(*(void (__fastcall **)(FLAlertLayer *))(v2 + 8))(v3);
}
return v1;
}