//
// MenuLayer::openOptions from 0x6eabec to 0x6eac68 (124 bytes)
//
// 3 xrefs:
// > MenuLayer::onOptions @ 0x6eac6c
// > MenuLayer::onOptionsInstant @ 0x6eac74
// > ??> @ 0xcda50
//
// This function is hookable on this platform (idp: arm, 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 12:51:45 +0000
//
VideoOptionsLayer *__fastcall MenuLayer::openOptions(MenuLayer *this, unsigned __int8 a2)
{
unsigned int v3; // w20
__int64 v4; // x19
VideoOptionsLayer *result; // x0
__int64 v6; // x0
v3 = a2;
v4 = OptionsLayer::create(this);
(*(void (__fastcall **)(MenuLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v4, 100);
result = (VideoOptionsLayer *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1328LL))(v4, v3);
if ( v3 )
{
v6 = VideoOptionsLayer::create(result);
return (VideoOptionsLayer *)(*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v4 + 464LL))(
v4,
v6,
100);
}
return result;
}