//
// MoreOptionsLayer::objectsForPage from 0x422d3c to 0x422dc4 (136 bytes)
//
// 3 xrefs:
// > MoreOptionsLayer::addToggle @ 0x422fe2
// > MoreOptionsLayer::init @ 0x423b78
// > MoreOptionsLayer::init @ 0x423cda
//
// 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::CCArray *MoreOptionsLayer::objectsForPage(MoreOptionsLayer *a1, int a2)
{
cocos2d::CCDictionary *m_variables; // r5
char *v5; // r0
cocos2d::CCArray *v6; // r5
cocos2d::CCArray *v7; // r0
cocos2d::CCArray *v8; // r0
cocos2d::CCDictionary *v9; // r9
char *v10; // r0
std::string v12; // [sp+8h] [bp-8h] BYREF
m_variables = a1->m_variables;
v5 = (char *)MoreOptionsLayer::objectKey(a1, a2);
sub_776584((int)&v12, v5);
v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(m_variables, &v12);
v7 = (cocos2d::CCArray *)sub_774008(&v12);
if ( !v6 )
{
v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7);
v9 = a1->m_variables;
v6 = v8;
v10 = (char *)MoreOptionsLayer::objectKey(a1, a2);
sub_776584((int)&v12, v10);
cocos2d::CCDictionary::setObject((int)v9, v6);
sub_774008(&v12);
}
return v6;
}