//
// MoreOptionsLayer::objectsForPage from 0x1000eebfc to 0x1000eecd0 (212 bytes)
//
// 3 xrefs:
// > MoreOptionsLayer::init @ 0x1000ee064
// > MoreOptionsLayer::init @ 0x1000ee230
// > MoreOptionsLayer::addToggle @ 0x1000eea0c
//
// 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 *__fastcall MoreOptionsLayer::objectsForPage(MoreOptionsLayer *a1, int a2)
{
cocos2d::CCDictionary *m_variables; // x19
cocos2d::CCString *v5; // x0
char *CString; // x0
__int64 v7; // x0
cocos2d::CCArray *v8; // x19
cocos2d::CCDictionary *v9; // x21
cocos2d::CCString *v10; // x0
char *v11; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v14; // [xsp+1Fh] [xbp-21h]
m_variables = a1->m_variables;
v5 = (cocos2d::CCString *)sub_100268F4C("object_%i", a2);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
v7 = cocos2d::CCDictionary::objectForKey_1(m_variables, __p);
v8 = (cocos2d::CCArray *)v7;
if ( v14 < 0 )
{
operator delete(__p[0]);
if ( v8 )
return v8;
}
else if ( v7 )
{
return v8;
}
v8 = (cocos2d::CCArray *)sub_10024A15C(v7);
v9 = a1->m_variables;
v10 = (cocos2d::CCString *)sub_100268F4C("object_%i", a2);
v11 = (char *)cocos2d::CCString::getCString(v10);
sub_100009900(__p, v11);
cocos2d::CCDictionary::setObject_1(v9, v8, __p);
if ( v14 < 0 )
operator delete(__p[0]);
return v8;
}