//
// MenuLayer::openOptions from 0x3f98b0 to 0x3f98f0 (64 bytes)
//
// 2 xrefs:
// > MenuLayer::onOptions @ 0x3f98f2
// > MenuLayer::onOptionsInstant @ 0x3f98f8
//
// 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:47:19 +0000
//
VideoOptionsLayer *__fastcall MenuLayer::openOptions(MenuLayer *this, int a2)
{
int v4; // r4
VideoOptionsLayer *result; // r0
int v6; // r0
v4 = OptionsLayer::create(this);
(*(void (__fastcall **)(MenuLayer *, int, int))(*(_DWORD *)this + 232))(this, v4, 100);
result = (VideoOptionsLayer *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v4 + 664))(v4, a2);
if ( a2 )
{
v6 = VideoOptionsLayer::create(result);
return (VideoOptionsLayer *)(*(int (__fastcall **)(int, int, int))(*(_DWORD *)v4 + 232))(v4, v6, 100);
}
return result;
}