//
// OptionsLayer::create from 0x100799f80 to 0x10079a10f (399 bytes)
//
// 4 xrefs:
// > MenuLayer::onOptionsInstant @ 0x10039012a
// > MenuLayer::onOptions @ 0x10039169a
// > MenuLayer::openOptions @ 0x100391f40
// > MenuLayer::keyDown @ 0x1003923b2
//
// 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
//
OptionsLayer *__fastcall OptionsLayer::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x298u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v0);
*(_QWORD *)v0 = off_100978158;
*((_QWORD *)v0 + 40) = off_1009786C0;
*((_QWORD *)v0 + 41) = &off_100978730;
*((_QWORD *)v0 + 42) = off_100978748;
*((_QWORD *)v0 + 43) = off_100978768;
*((_QWORD *)v0 + 44) = off_100978788;
*((_QWORD *)v0 + 51) = off_1009787B0;
*((_QWORD *)v0 + 54) = off_100978830;
sub_10028CC30((_QWORD *)v0 + 68);
sub_10028CC30((_QWORD *)v0 + 69);
*((_QWORD *)v0 + 74) = 0;
v0[600] = 0;
*((_OWORD *)v0 + 35) = 0;
*(_OWORD *)(v0 + 569) = 0;
*(_QWORD *)v0 = off_100990250;
*((_QWORD *)v0 + 40) = off_1009907C0;
*((_QWORD *)v0 + 41) = &off_100990830;
*((_QWORD *)v0 + 42) = off_100990848;
*((_QWORD *)v0 + 43) = off_100990868;
*((_QWORD *)v0 + 44) = off_100990888;
*((_QWORD *)v0 + 51) = off_1009908B0;
*((_QWORD *)v0 + 54) = off_100990930;
*((_QWORD *)v0 + 76) = &off_100990950;
*(_OWORD *)(v0 + 616) = 0;
*(_QWORD *)(v0 + 629) = 0;
*((_DWORD *)v0 + 164) = -1;
if ( GJDropDownLayer::init_1((GJDropDownLayer *)v0, "Settings") )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return (OptionsLayer *)v0;
}