//
// OptionsLayer::onOptions from 0x140372b70 to 0x140372cc3 (339 bytes)
//
// 2 xrefs:
// > OptionsLayer::customSetup @ 0x140371ea6
// > ??> @ 0x1406d5aec
//
// 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 OptionsLayer::onOptions(OptionsLayer *a1, cocos2d::CCObject *a2)
{
char *v2; // rbx
void (*v3)(FLAlertLayer *); // rdx
v2 = (char *)operator new(0x2E0u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v2);
*(_QWORD *)v2 = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 40) = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 41) = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 42) = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 43) = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 44) = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 51) = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 54) = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 79) = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 80) = &MoreOptionsLayer::`vftable';
*((_QWORD *)v2 + 81) = &MoreOptionsLayer::`vftable';
*((_DWORD *)v2 + 164) = -1;
*(_QWORD *)(v2 + 660) = 0;
*((_QWORD *)v2 + 89) = 0;
*((_QWORD *)v2 + 90) = 0;
*((_QWORD *)v2 + 91) = 0;
if ( MoreOptionsLayer::init((MoreOptionsLayer *)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);
}