//
// MoreOptionsLayer::countForPage from 0x422b6c to 0x422bbc (80 bytes)
//
// 2 xrefs:
// > MoreOptionsLayer::nextPosition @ 0x422c32
// > MoreOptionsLayer::incrementCountForPage @ 0x422cc6
//
// 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
//
int MoreOptionsLayer::countForPage(MoreOptionsLayer *a1, int a2)
{
cocos2d::CCDictionary *m_variables; // r6
char *v3; // r0
cocos2d::CCString *v4; // r0
int v5; // r6
std::string v7; // [sp+8h] [bp-8h] BYREF
m_variables = a1->m_variables;
v3 = (char *)MoreOptionsLayer::pageKey(a1, a2);
sub_776584((int)&v7, v3);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(m_variables, &v7);
v5 = cocos2d::CCString::intValue(v4);
sub_774008(&v7);
return v5;
}