{"type": "func", "start": 4298581128, "end": 4298581272, "name": "GJOptionsLayer::incrementCountForPage", "pseudocode": "// \n// GJOptionsLayer::incrementCountForPage from 0x100372488 to 0x100372518 (144 bytes)\n// \n// 1 xrefs:\n// > GJOptionsLayer::addToggleInternal @ 0x100371f78\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:03:23 +0000\n// \n\nvoid __fastcall GJOptionsLayer::incrementCountForPage(__int64 a1, __int64 a2)\n{\n  int v2; // w19\n  int v4; // w0\n  __int64 v5; // x20\n  void *v6; // x21\n  void *v7; // x0\n  char *CString; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v10; // [xsp+1Fh] [xbp-21h]\n\n  v2 = a2;\n  v4 = sub_10037272C(a1, a2);\n  v5 = *(_QWORD *)(a1 + 1040);\n  v6 = sub_1003065B0(\"%i\", v4 + 1);\n  v7 = sub_1003065B0(\"page_%i\", v2);\n  CString = (char *)cocos2d::CCString::getCString((__int64)v7);\n  sub_100009900(__p, CString);\n  cocos2d::CCDictionary::setObject(v5, v6, __p);\n  if ( v10 < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GJOptionsLayer::incrementCountForPage from 0x100372488 to 0x100372518 (144 bytes)\n; \n; 1 xrefs:\n; > GJOptionsLayer::addToggleInternal @ 0x100371f78\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:03:23 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x100372488\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10037248c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x100372490\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100372494\nADD             X29, SP, #0x40                                         ; +0x10, 0x100372498\nMOV             X19, X1                                                ; +0x14, 0x10037249c\nMOV             X20, X0                                                ; +0x18, 0x1003724a0\nBL              sub_10037272C                                          ; +0x1c, 0x1003724a4\nADD             W8, W0, #1                                             ; +0x20, 0x1003724a8\nLDR             X20, [X20,#0x410]                                      ; +0x24, 0x1003724ac\nSTR             X8, [SP,#0x40+var_40]                                  ; +0x28, 0x1003724b0\nADRL            X0, aI; \"%i\"                                           ; +0x2c, 0x1003724b4\nBL              sub_1003065B0                                          ; +0x34, 0x1003724bc\nMOV             X21, X0                                                ; +0x38, 0x1003724c0\nSTR             X19, [SP,#0x40+var_40]                                 ; +0x3c, 0x1003724c4\nADRL            X0, aPageI; \"page_%i\"                                  ; +0x40, 0x1003724c8\nBL              sub_1003065B0                                          ; +0x48, 0x1003724d0\nBL              cocos2d__CCString__getCString                          ; +0x4c, 0x1003724d4\nMOV             X1, X0; __s                                            ; +0x50, 0x1003724d8\nADD             X0, SP, #0x40+__p; int                                 ; +0x54, 0x1003724dc\nBL              sub_100009900                                          ; +0x58, 0x1003724e0\nADD             X2, SP, #0x40+__p                                      ; +0x5c, 0x1003724e4\nMOV             X0, X20                                                ; +0x60, 0x1003724e8\nMOV             X1, X21                                                ; +0x64, 0x1003724ec\nBL              cocos2d__CCDictionary__setObject                       ; +0x68, 0x1003724f0\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x6c, 0x1003724f4\nTBZ             W8, #0x1F, loc_100372504                               ; +0x70, 0x1003724f8\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x74, 0x1003724fc\nBL              __ZdlPv; operator delete(void *)                       ; +0x78, 0x100372500\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x7c, 0x100372504\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x80, 0x100372508\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x84, 0x10037250c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x88, 0x100372510\nRET                                                                    ; +0x8c, 0x100372514", "xrefs": ["GJOptionsLayer::addToggleInternal @ 0x100371f78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}