//
// GJOptionsLayer::objectsForPage from 0x4ab188 to 0x4ab210 (136 bytes)
//
// 3 xrefs:
// > GJOptionsLayer::addToggleInternal @ 0x4b445e
// > EditorOptionsLayer::setupOptions @ 0x4b484a
// > GameOptionsLayer::setupOptions @ 0x4b5106
//
// 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 *GJOptionsLayer::objectsForPage(GJOptionsLayer *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 *)GJOptionsLayer::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 *)GJOptionsLayer::objectKey(a1, a2);
sub_776584((int)&v12, v10);
cocos2d::CCDictionary::setObject((int)v9, v6);
sub_774008(&v12);
}
return v6;
}