//
// VideoOptionsLayer::onAdvanced from 0x140377ea0 to 0x140377fd0 (304 bytes)
//
// 2 xrefs:
// > VideoOptionsLayer::init @ 0x140377dc4
// > ??> @ 0x1406d5c0c
//
// 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 VideoOptionsLayer::onAdvanced(VideoOptionsLayer *a1, cocos2d::CCObject *a2)
{
char *v2; // rbx
void (*v3)(FLAlertLayer *); // rdx
v2 = (char *)operator new(0x2C0u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v2);
*(_QWORD *)v2 = &MoreVideoOptionsLayer::`vftable';
*((_QWORD *)v2 + 40) = &MoreVideoOptionsLayer::`vftable';
*((_QWORD *)v2 + 41) = &MoreVideoOptionsLayer::`vftable';
*((_QWORD *)v2 + 42) = &MoreVideoOptionsLayer::`vftable';
*((_QWORD *)v2 + 43) = &MoreVideoOptionsLayer::`vftable';
*((_QWORD *)v2 + 44) = &MoreVideoOptionsLayer::`vftable';
*((_QWORD *)v2 + 51) = &MoreVideoOptionsLayer::`vftable';
*((_QWORD *)v2 + 54) = &MoreVideoOptionsLayer::`vftable';
*((_QWORD *)v2 + 79) = &MoreVideoOptionsLayer::`vftable';
*((_DWORD *)v2 + 160) = -1;
*(_QWORD *)(v2 + 644) = 0;
*((_QWORD *)v2 + 86) = 0;
*((_QWORD *)v2 + 87) = 0;
if ( MoreVideoOptionsLayer::init((MoreVideoOptionsLayer *)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);
}