//
// MoreOptionsLayer::layerForPage from 0x422de0 to 0x422e76 (150 bytes)
//
// 1 xrefs:
// > MoreOptionsLayer::addToggle @ 0x422f46
//
// 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
//
cocos2d::CCLayer *MoreOptionsLayer::layerForPage(MoreOptionsLayer *a1, int a2)
{
cocos2d::CCDictionary *m_variables; // r5
char *v5; // r0
cocos2d::CCLayer *v6; // r5
cocos2d::CCDictionary *v7; // r10
char *v8; // r0
std::string v10; // [sp+8h] [bp-8h] BYREF
m_variables = a1->m_variables;
v5 = (char *)MoreOptionsLayer::layerKey(a1, a2);
sub_776584((int)&v10, v5);
v6 = (cocos2d::CCLayer *)cocos2d::CCDictionary::objectForKey(m_variables, &v10);
sub_774008(&v10);
if ( !v6 )
{
v6 = cocos2d::CCLayer::create();
a1->m_mainLayer->addChild(a1->m_mainLayer, v6);
v7 = a1->m_variables;
v8 = (char *)MoreOptionsLayer::layerKey(a1, a2);
sub_776584((int)&v10, v8);
cocos2d::CCDictionary::setObject((int)v7, v6);
sub_774008(&v10);
}
return v6;
}