{"type": "func", "start": 4297931788, "end": 4297931932, "name": "GJOptionsLayer::incrementCountForPage", "pseudocode": "// \n// GJOptionsLayer::incrementCountForPage from 0x1002d3c0c to 0x1002d3c9c (144 bytes)\n// \n// 2 xrefs:\n// > GJOptionsLayer::addToggleInternal @ 0x1002d3708\n// > GameOptionsLayer::setupOptions @ 0x1002e19d8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJOptionsLayer::incrementCountForPage(GJOptionsLayer *a1, int a2)\n{\n  int v4; // w0\n  cocos2d::CCDictionary *m_values; // x20\n  cocos2d::CCObject *v6; // x21\n  cocos2d::CCString *v7; // x0\n  char *CString; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v10; // [xsp+1Fh] [xbp-21h]\n\n  v4 = GJOptionsLayer::countForPage(a1, a2);\n  m_values = a1->m_values;\n  v6 = sub_100268F4C(\"%i\", v4 + 1);\n  v7 = (cocos2d::CCString *)sub_100268F4C(\"page_%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v7);\n  sub_100009900(__p, CString);\n  cocos2d::CCDictionary::setObject_1(m_values, v6, __p);\n  if ( v10 < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GJOptionsLayer::incrementCountForPage from 0x1002d3c0c to 0x1002d3c9c (144 bytes)\n; \n; 2 xrefs:\n; > GJOptionsLayer::addToggleInternal @ 0x1002d3708\n; > GameOptionsLayer::setupOptions @ 0x1002e19d8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1002d3c0c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1002d3c10\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1002d3c14\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1002d3c18\nADD             X29, SP, #0x40                                         ; +0x10, 0x1002d3c1c\nMOV             X19, X1                                                ; +0x14, 0x1002d3c20\nMOV             X20, X0                                                ; +0x18, 0x1002d3c24\nBL              GJOptionsLayer__countForPage                           ; +0x1c, 0x1002d3c28\nADD             W8, W0, #1                                             ; +0x20, 0x1002d3c2c\nLDR             X20, [X20,#0x3C8]                                      ; +0x24, 0x1002d3c30\nSTR             X8, [SP,#0x40+var_40]                                  ; +0x28, 0x1002d3c34\nADRL            X0, aI; \"%i\"                                           ; +0x2c, 0x1002d3c38\nBL              sub_100268F4C                                          ; +0x34, 0x1002d3c40\nMOV             X21, X0                                                ; +0x38, 0x1002d3c44\nSTR             X19, [SP,#0x40+var_40]                                 ; +0x3c, 0x1002d3c48\nADRL            X0, aPageI; \"page_%i\"                                  ; +0x40, 0x1002d3c4c\nBL              sub_100268F4C                                          ; +0x48, 0x1002d3c54\nBL              cocos2d__CCString__getCString                          ; +0x4c, 0x1002d3c58\nMOV             X1, X0; __s                                            ; +0x50, 0x1002d3c5c\nADD             X0, SP, #0x40+__p; int                                 ; +0x54, 0x1002d3c60\nBL              sub_100009900                                          ; +0x58, 0x1002d3c64\nADD             X2, SP, #0x40+__p                                      ; +0x5c, 0x1002d3c68\nMOV             X0, X20                                                ; +0x60, 0x1002d3c6c\nMOV             X1, X21                                                ; +0x64, 0x1002d3c70\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x68, 0x1002d3c74\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x6c, 0x1002d3c78\nTBZ             W8, #0x1F, loc_1002D3C88                               ; +0x70, 0x1002d3c7c\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x74, 0x1002d3c80\nBL              __ZdlPv; operator delete(void *)                       ; +0x78, 0x1002d3c84\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x7c, 0x1002d3c88\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x80, 0x1002d3c8c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x84, 0x1002d3c90\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x88, 0x1002d3c94\nRET                                                                    ; +0x8c, 0x1002d3c98", "xrefs": ["GJOptionsLayer::addToggleInternal @ 0x1002d3708", "GameOptionsLayer::setupOptions @ 0x1002e19d8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}