//
// ParentalOptionsLayer::objectsForPage from 0x4268d0 to 0x426958 (136 bytes)
//
// 1 xrefs:
// > ParentalOptionsLayer::addToggle @ 0x426b78
//
// 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 *ParentalOptionsLayer::objectsForPage(ParentalOptionsLayer *a1, int a2)
{
cocos2d::CCDictionary *m_values; // 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_values = a1->m_values;
v5 = (char *)ParentalOptionsLayer::objectKey(a1, a2);
sub_776584((int)&v12, v5);
v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(m_values, &v12);
v7 = (cocos2d::CCArray *)sub_774008(&v12);
if ( !v6 )
{
v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7);
v9 = a1->m_values;
v6 = v8;
v10 = (char *)ParentalOptionsLayer::objectKey(a1, a2);
sub_776584((int)&v12, v10);
cocos2d::CCDictionary::setObject((int)v9, v6);
sub_774008(&v12);
}
return v6;
}