//
// GJOptionsLayer::incrementCountForPage from 0x5d6bd8 to 0x5d6c4c (116 bytes)
//
// 2 xrefs:
// > GJOptionsLayer::addToggleInternal @ 0x5e171a
// > GameOptionsLayer::setupOptions @ 0x5e2332
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:54:09 +0000
//
int __fastcall GJOptionsLayer::incrementCountForPage(GJOptionsLayer *this, const char *a2, int a3, int a4)
{
int v6; // r0
int v7; // r7
cocos2d::CCObject *v8; // r6
const char *v9; // r8
size_t v10; // r0
GJOptionsLayer *v12; // [sp+0h] [bp-10h] BYREF
const char *v13; // [sp+4h] [bp-Ch]
int v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v12 = this;
v13 = a2;
v14 = a3;
v15 = a4;
v6 = GJOptionsLayer::countForPage(this, a2);
v7 = *((_DWORD *)this + 185);
v8 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)(v6 + 1));
v12 = nullptr;
v13 = nullptr;
v14 = 0;
v9 = (const char *)GJOptionsLayer::pageKey(this, a2);
v10 = strlen(v9);
std::string::__init((int *)&v12, v9, v10);
cocos2d::CCDictionary::setObject(v7, v8);
return std::string::~string((int)&v12);
}