//
// OptionsLayer::create from 0x10087a740 to 0x10087a8e4 (420 bytes)
//
// 4 xrefs:
// > MenuLayer::onOptionsInstant @ 0x10037acba
// > MenuLayer::onOptions @ 0x10037c3ea
// > MenuLayer::openOptions @ 0x10037ce80
// > MenuLayer::keyDown @ 0x10037d2f2
//
// 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 12:36:54 +0000
//
_QWORD *OptionsLayer::create()
{
_QWORD *v0; // rbx
v0 = operator new(0x2A0u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v0);
*v0 = off_100B8B4F0;
v0[40] = off_100B8BA68;
v0[41] = &off_100B8BAD8;
v0[42] = off_100B8BAF0;
v0[43] = off_100B8BB10;
v0[44] = off_100B8BB38;
v0[51] = off_100B8BB68;
v0[54] = off_100B8BBE8;
sub_1002782A0(v0 + 68);
sub_1002782A0(v0 + 69);
v0[74] = 0;
*((_BYTE *)v0 + 600) = 0;
*((_OWORD *)v0 + 35) = 0;
*(_OWORD *)((char *)v0 + 569) = 0;
*v0 = off_100BA2CA8;
v0[40] = off_100BA3230;
v0[41] = &off_100BA32A0;
v0[42] = off_100BA32B8;
v0[43] = off_100BA32D8;
v0[44] = off_100BA3300;
v0[51] = off_100BA3330;
v0[54] = off_100BA33B0;
v0[76] = &off_100BA33D0;
v0[77] = &off_100BA33E8;
*((_OWORD *)v0 + 39) = 0;
*(_QWORD *)((char *)v0 + 637) = 0;
*(_OWORD *)(v0 + 81) = 0;
*((_DWORD *)v0 + 166) = -1;
if ( GJDropDownLayer::init_1(v0, (__int64)"Settings") )
{
cocos2d::CCObject::autorelease((__int64)v0);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v0 + 16LL))(v0);
return nullptr;
}
return v0;
}