//
// VideoOptionsLayer::onAdvanced from 0x1404cdc10 to 0x1404cdd40 (304 bytes)
//
// 2 xrefs:
// > VideoOptionsLayer::init @ 0x1404cdb2d
// > ??> @ 0x140929690
//
// 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:32:59 +0000
//
// Hidden C++ exception states: #wind=1
__int64 VideoOptionsLayer::onAdvanced()
{
_QWORD *v0; // rbx
__int64 (__fastcall *v1)(__int64); // rdx
v0 = operator new(0x2D8u);
FLAlertLayer::FLAlertLayer((__int64)v0);
*v0 = &MoreVideoOptionsLayer::`vftable';
v0[40] = &MoreVideoOptionsLayer::`vftable';
v0[41] = &MoreVideoOptionsLayer::`vftable';
v0[42] = &MoreVideoOptionsLayer::`vftable';
v0[43] = &MoreVideoOptionsLayer::`vftable';
v0[44] = &MoreVideoOptionsLayer::`vftable';
v0[51] = &MoreVideoOptionsLayer::`vftable';
v0[54] = &MoreVideoOptionsLayer::`vftable';
v0[68] = &MoreVideoOptionsLayer::`vftable';
*((_DWORD *)v0 + 166) = -1;
*(_QWORD *)((char *)v0 + 668) = 0;
v0[89] = 0;
v0[90] = 0;
if ( (unsigned __int8)MoreVideoOptionsLayer::init(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v0 + 8LL))(v0, 1);
v0 = nullptr;
}
v1 = *(__int64 (__fastcall **)(__int64))(*v0 + 1064LL);
if ( v1 == FLAlertLayer::show )
return FLAlertLayer::show((__int64)v0);
else
return v1((__int64)v0);
}