{"type": "func", "start": 5372491856, "end": 5372492130, "name": "GJOptionsLayer::incrementCountForPage", "pseudocode": "// \n// GJOptionsLayer::incrementCountForPage from 0x14039b850 to 0x14039b962 (274 bytes)\n// \n// 2 xrefs:\n// > GJOptionsLayer::addToggleInternal @ 0x14039b38a\n// > <???> @ 0x14092333c\n// \n// This function is hookable on this platform (idp: pc, 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:31:15 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GJOptionsLayer::incrementCountForPage(__int64 a1, int a2)\n{\n  unsigned int v4; // esi\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  size_t v7; // r8\n  __int64 v8; // rbx\n  struct cocos2d::CCString *v9; // rax\n  void *v10; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v12; // [rsp+40h] [rbp-28h]\n\n  v4 = GJOptionsLayer::countForPage(a1, a2) + 1;\n  v5 = cocos2d::CCString::createWithFormat(\"page_%i\", a2);\n  CString = cocos2d::CCString::getCString(v5);\n  *(_OWORD *)Block = 0;\n  v12 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( CString[v7] );\n  sub_14003D230(Block, CString, v7);\n  v8 = *(_QWORD *)(a1 + 1032);\n  v9 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v4);\n  cocos2d::CCDictionary::setObject(v8, v9, Block);\n  if ( *((_QWORD *)&v12 + 1) > 0xFu )\n  {\n    v10 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v12 + 1) + 1LL) >= 0x1000 )\n    {\n      v10 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v10);\n  }\n}", "assembly": "; \n; GJOptionsLayer::incrementCountForPage from 0x14039b850 to 0x14039b962 (274 bytes)\n; \n; 2 xrefs:\n; > GJOptionsLayer::addToggleInternal @ 0x14039b38a\n; > <???> @ 0x14092333c\n; \n; This function is hookable on this platform (idp: pc, 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:31:15 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14039b850\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x14039b855\npush    rdi                                                            ; +0xa, 0x14039b85a\nsub     rsp, 60h                                                       ; +0xb, 0x14039b85b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14039b85f\nxor     rax, rsp                                                       ; +0x16, 0x14039b866\nmov     [rsp+68h+var_18], rax                                          ; +0x19, 0x14039b869\nmov     ebx, edx                                                       ; +0x1e, 0x14039b86e\nmov     rdi, rcx                                                       ; +0x20, 0x14039b870\ncall    GJOptionsLayer__countForPage                                   ; +0x23, 0x14039b873\nlea     esi, [rax+1]                                                   ; +0x28, 0x14039b878\nmov     edx, ebx                                                       ; +0x2b, 0x14039b87b\nlea     rcx, aPageI; \"page_%i\"                                         ; +0x2d, 0x14039b87d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x34, 0x14039b884\nmov     rcx, rax                                                       ; +0x3a, 0x14039b88a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x3d, 0x14039b88d\nxorps   xmm0, xmm0                                                     ; +0x43, 0x14039b893\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x46, 0x14039b896\nxorps   xmm1, xmm1                                                     ; +0x4b, 0x14039b89b\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x4e, 0x14039b89e\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x54, 0x14039b8a4\nnop     dword ptr [rax+rax+00h]                                        ; +0x5b, 0x14039b8ab\ninc     r8                                                             ; +0x60, 0x14039b8b0\ncmp     byte ptr [rax+r8], 0                                           ; +0x63, 0x14039b8b3\njnz     short loc_14039B8B0                                            ; +0x68, 0x14039b8b8\nmov     rdx, rax                                                       ; +0x6a, 0x14039b8ba\nlea     rcx, [rsp+68h+Block]                                           ; +0x6d, 0x14039b8bd\ncall    sub_14003D230                                                  ; +0x72, 0x14039b8c2\nnop                                                                    ; +0x77, 0x14039b8c7\nmov     rbx, [rdi+408h]                                                ; +0x78, 0x14039b8c8\nmov     edx, esi                                                       ; +0x7f, 0x14039b8cf\nlea     rcx, word_1406ED6F8                                            ; +0x81, 0x14039b8d1\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x88, 0x14039b8d8\nmov     rdx, rax                                                       ; +0x8e, 0x14039b8de\nlea     r8, [rsp+68h+Block]                                            ; +0x91, 0x14039b8e1\nmov     rcx, rbx                                                       ; +0x96, 0x14039b8e6\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x99, 0x14039b8e9\nnop                                                                    ; +0x9f, 0x14039b8ef\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0xa0, 0x14039b8f0\ncmp     rdx, 0Fh                                                       ; +0xa5, 0x14039b8f5\njbe     short loc_14039B943                                            ; +0xa9, 0x14039b8f9\ninc     rdx                                                            ; +0xab, 0x14039b8fb\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0xae, 0x14039b8fe\nmov     rax, rcx                                                       ; +0xb3, 0x14039b903\ncmp     rdx, 1000h                                                     ; +0xb6, 0x14039b906\njb      short loc_14039B93E                                            ; +0xbd, 0x14039b90d\nadd     rdx, 27h ; '''                                                 ; +0xbf, 0x14039b90f\nmov     rcx, [rcx-8]                                                   ; +0xc3, 0x14039b913\nsub     rax, rcx                                                       ; +0xc7, 0x14039b917\nsub     rax, 8                                                         ; +0xca, 0x14039b91a\ncmp     rax, 1Fh                                                       ; +0xce, 0x14039b91e\njbe     short loc_14039B93E                                            ; +0xd2, 0x14039b922\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xd4, 0x14039b924\nxor     r9d, r9d; LineNo                                               ; +0xdd, 0x14039b92d\nxor     r8d, r8d; FileName                                             ; +0xe0, 0x14039b930\nxor     edx, edx; FunctionName                                         ; +0xe3, 0x14039b933\nxor     ecx, ecx; Expression                                           ; +0xe5, 0x14039b935\ncall    cs:_invoke_watson                                              ; +0xe7, 0x14039b937\nalign 2                                                                ; +0xed, 0x14039b93d\ncall    j_j_free                                                       ; +0xee, 0x14039b93e\nmov     rcx, [rsp+68h+var_18]                                          ; +0xf3, 0x14039b943\nxor     rcx, rsp; StackCookie                                          ; +0xf8, 0x14039b948\ncall    __security_check_cookie                                        ; +0xfb, 0x14039b94b\nlea     r11, [rsp+68h+var_8]                                           ; +0x100, 0x14039b950\nmov     rbx, [r11+20h]                                                 ; +0x105, 0x14039b955\nmov     rsi, [r11+28h]                                                 ; +0x109, 0x14039b959\nmov     rsp, r11                                                       ; +0x10d, 0x14039b95d\npop     rdi                                                            ; +0x110, 0x14039b960\nretn                                                                   ; +0x111, 0x14039b961", "xrefs": ["GJOptionsLayer::addToggleInternal @ 0x14039b38a", "<???> @ 0x14092333c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}