{"type": "func", "start": 4894976, "end": 4895078, "name": "GJOptionsLayer::incrementCountForPage", "pseudocode": "// \n// GJOptionsLayer::incrementCountForPage from 0x4ab100 to 0x4ab166 (102 bytes)\n// \n// 2 xrefs:\n// > GJOptionsLayer::addToggleInternal @ 0x4b4456\n// > GameOptionsLayer::setupOptions @ 0x4b5054\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 GJOptionsLayer::incrementCountForPage(GJOptionsLayer *a1, int a2)\n{\n  int v4; // r0\n  cocos2d::CCDictionary *m_values; // r7\n  cocos2d::CCObject *v6; // r6\n  char *v7; // r0\n  _BYTE v8[4]; // [sp+8h] [bp-8h] BYREF\n\n  v4 = GJOptionsLayer::countForPage(a1, a2);\n  m_values = a1->m_values;\n  v6 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)(v4 + 1));\n  v7 = (char *)GJOptionsLayer::pageKey(a1, a2);\n  sub_776584((int)v8, v7);\n  cocos2d::CCDictionary::setObject((int)m_values, v6);\n  sub_774008(v8);\n}", "assembly": "; \n; GJOptionsLayer::incrementCountForPage from 0x4ab100 to 0x4ab166 (102 bytes)\n; \n; 2 xrefs:\n; > GJOptionsLayer::addToggleInternal @ 0x4b4456\n; > GameOptionsLayer::setupOptions @ 0x4b5054\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\nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x4ab100\nMOV             R5, R0                                                 ; +0x4, 0x4ab104\nLDR             R4, =(__stack_chk_guard_ptr - 0x4AB10E)                ; +0x6, 0x4ab106\nMOV             R8, R1                                                 ; +0x8, 0x4ab108\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x4ab10a\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x4ab10c\nLDR             R3, [R4]                                               ; +0xe, 0x4ab10e\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x10, 0x4ab110\nBL              _ZN14GJOptionsLayer12countForPageEi; GJOptionsLayer::countForPage(int) ; +0x12, 0x4ab112\nLDR.W           R7, [R5,#0x2C4]                                        ; +0x16, 0x4ab116\nADDS            R1, R0, #1; char *                                     ; +0x1a, 0x4ab11a\nLDR             R0, =(aI - 0x4AB122); \"%i\"                             ; +0x1c, 0x4ab11c\nADD             R0, PC; \"%i\"                                           ; +0x1e, 0x4ab11e\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x20, 0x4ab120\nMOV             R1, R8; int                                            ; +0x24, 0x4ab124\nMOV             R6, R0                                                 ; +0x26, 0x4ab126\nMOV             R0, R5; this                                           ; +0x28, 0x4ab128\nBL              _ZN14GJOptionsLayer7pageKeyEi; GJOptionsLayer::pageKey(int) ; +0x2a, 0x4ab12a\nADD             R5, SP, #0x10+var_8                                    ; +0x2e, 0x4ab12e\nADD             R2, SP, #0x10+var_C                                    ; +0x30, 0x4ab130\nMOV             R1, R0; char *                                         ; +0x32, 0x4ab132\nMOV             R0, R5; int                                            ; +0x34, 0x4ab134\nBL              sub_776584                                             ; +0x36, 0x4ab136\nMOV             R0, R7; int                                            ; +0x3a, 0x4ab13a\nMOV             R1, R6; this                                           ; +0x3c, 0x4ab13c\nMOV             R2, R5                                                 ; +0x3e, 0x4ab13e\nBL              _ZN7cocos2d12CCDictionary9setObjectEPNS_8CCObjectERKSs; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const&) ; +0x40, 0x4ab140\nMOV             R0, R5                                                 ; +0x44, 0x4ab144\nBL              sub_774008                                             ; +0x46, 0x4ab146\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x4a, 0x4ab14a\nLDR             R3, [R4]                                               ; +0x4c, 0x4ab14c\nCMP             R2, R3                                                 ; +0x4e, 0x4ab14e\nBEQ             loc_4AB160                                             ; +0x50, 0x4ab150\nBLX             __stack_chk_fail                                       ; +0x52, 0x4ab152\nMOV             R0, R5                                                 ; +0x56, 0x4ab156\nBL              sub_774008                                             ; +0x58, 0x4ab158\nBL              __cxa_end_cleanup                                      ; +0x5c, 0x4ab15c\nADD             SP, SP, #0x10                                          ; +0x60, 0x4ab160\nPOP.W           {R4-R8,PC}                                             ; +0x62, 0x4ab162", "xrefs": ["GJOptionsLayer::addToggleInternal @ 0x4b4456", "GameOptionsLayer::setupOptions @ 0x4b5054"], "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"}