{"type": "func", "start": 4298162240, "end": 4298162506, "name": "CommunityCreditsPage::goToPage", "pseudocode": "// \n// CommunityCreditsPage::goToPage from 0x10030c040 to 0x10030c14a (266 bytes)\n// \n// 2 xrefs:\n// > CommunityCreditsPage::init @ 0x10030bf73\n// > CommunityCreditsPage::onSwitchPage @ 0x10030c02f\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 12:28:37 +0000\n// \n\n__int64 __fastcall CommunityCreditsPage::goToPage(__int64 a1, int a2)\n{\n  __int64 result; // rax\n  __int64 v3; // r15\n  __int64 v4; // rax\n  unsigned int *v5; // rax\n  _QWORD *v6; // rbx\n  unsigned __int64 v7; // r12\n  __int64 v8; // [rsp+8h] [rbp-38h]\n  int v9; // [rsp+10h] [rbp-30h]\n\n  result = cocos2d::CCDictionary::count(*(_QWORD *)(a1 + 664));\n  if ( a2 >= 0 && (int)result > a2 && *(_DWORD *)(a1 + 688) != a2 )\n  {\n    *(_DWORD *)(a1 + 688) = a2;\n    v8 = (unsigned int)result;\n    v9 = result - 1;\n    v3 = 0;\n    do\n    {\n      v4 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 664), v3);\n      if ( v4 )\n      {\n        v5 = *(unsigned int **)(v4 + 56);\n        if ( *v5 )\n        {\n          v6 = *((_QWORD **)v5 + 2);\n          v7 = (unsigned __int64)&v6[*v5 - 1];\n          do\n          {\n            if ( !*v6 )\n              break;\n            (*(void (__fastcall **)(_QWORD, bool))(*(_QWORD *)*v6 + 344LL))(*v6, v3 == a2);\n            ++v6;\n          }\n          while ( (unsigned __int64)v6 <= v7 );\n        }\n      }\n      ++v3;\n    }\n    while ( v3 != v8 );\n    (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 672) + 344LL))(*(_QWORD *)(a1 + 672), a2 != 0);\n    return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 680) + 344LL))(*(_QWORD *)(a1 + 680), v9 > a2);\n  }\n  return result;\n}", "assembly": "; \n; CommunityCreditsPage::goToPage from 0x10030c040 to 0x10030c14a (266 bytes)\n; \n; 2 xrefs:\n; > CommunityCreditsPage::init @ 0x10030bf73\n; > CommunityCreditsPage::onSwitchPage @ 0x10030c02f\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 12:28:37 +0000\n; \npush    rbp                                                            ; +0x0, 0x10030c040\nmov     rbp, rsp                                                       ; +0x1, 0x10030c041\npush    r15                                                            ; +0x4, 0x10030c044\npush    r14                                                            ; +0x6, 0x10030c046\npush    r13                                                            ; +0x8, 0x10030c048\npush    r12                                                            ; +0xa, 0x10030c04a\npush    rbx                                                            ; +0xc, 0x10030c04c\nsub     rsp, 18h                                                       ; +0xd, 0x10030c04d\nmov     ebx, esi                                                       ; +0x11, 0x10030c051\nmov     r14, rdi                                                       ; +0x13, 0x10030c053\nmov     rdi, [rdi+298h]                                                ; +0x16, 0x10030c056\ncall    cocos2d__CCDictionary__count                                   ; +0x1d, 0x10030c05d\ntest    ebx, ebx                                                       ; +0x22, 0x10030c062\njs      short loc_10030C073                                            ; +0x24, 0x10030c064\ncmp     eax, ebx                                                       ; +0x26, 0x10030c066\njle     short loc_10030C073                                            ; +0x28, 0x10030c068\ncmp     [r14+2B0h], ebx                                                ; +0x2a, 0x10030c06a\njnz     short loc_10030C082                                            ; +0x31, 0x10030c071\nadd     rsp, 18h                                                       ; +0x33, 0x10030c073\npop     rbx                                                            ; +0x37, 0x10030c077\npop     r12                                                            ; +0x38, 0x10030c078\npop     r13                                                            ; +0x3a, 0x10030c07a\npop     r14                                                            ; +0x3c, 0x10030c07c\npop     r15                                                            ; +0x3e, 0x10030c07e\npop     rbp                                                            ; +0x40, 0x10030c080\nretn                                                                   ; +0x41, 0x10030c081\nmov     [r14+2B0h], ebx                                                ; +0x42, 0x10030c082\nmov     [rbp+var_2C], ebx                                              ; +0x49, 0x10030c089\nmov     r13d, ebx                                                      ; +0x4c, 0x10030c08c\nmov     ecx, eax                                                       ; +0x4f, 0x10030c08f\nmov     [rbp+var_38], rcx                                              ; +0x51, 0x10030c091\ndec     eax                                                            ; +0x55, 0x10030c095\nmov     [rbp+var_30], eax                                              ; +0x57, 0x10030c097\nxor     r15d, r15d                                                     ; +0x5a, 0x10030c09a\njmp     short loc_10030C0A9                                            ; +0x5d, 0x10030c09d\nalign 20h                                                              ; +0x5f, 0x10030c09f\ninc     r15                                                            ; +0x60, 0x10030c0a0\ncmp     r15, [rbp+var_38]                                              ; +0x63, 0x10030c0a3\njz      short loc_10030C105                                            ; +0x67, 0x10030c0a7\nmov     rdi, [r14+298h]                                                ; +0x69, 0x10030c0a9\nmov     rsi, r15                                                       ; +0x70, 0x10030c0b0\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x73, 0x10030c0b3\ntest    rax, rax                                                       ; +0x78, 0x10030c0b8\njz      short loc_10030C0A0                                            ; +0x7b, 0x10030c0bb\nmov     rax, [rax+38h]                                                 ; +0x7d, 0x10030c0bd\nmov     ecx, [rax]                                                     ; +0x81, 0x10030c0c1\ntest    rcx, rcx                                                       ; +0x83, 0x10030c0c3\njz      short loc_10030C0A0                                            ; +0x86, 0x10030c0c6\nmov     rbx, [rax+10h]                                                 ; +0x88, 0x10030c0c8\nlea     r12, [rbx+rcx*8]                                               ; +0x8c, 0x10030c0cc\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x90, 0x10030c0d0\nnop     word ptr [rax+rax+00000000h]                                   ; +0x94, 0x10030c0d4\nmov     rdi, [rbx]                                                     ; +0xa0, 0x10030c0e0\ntest    rdi, rdi                                                       ; +0xa3, 0x10030c0e3\njz      short loc_10030C0A0                                            ; +0xa6, 0x10030c0e6\nxor     esi, esi                                                       ; +0xa8, 0x10030c0e8\ncmp     r15, r13                                                       ; +0xaa, 0x10030c0ea\nsetz    sil                                                            ; +0xad, 0x10030c0ed\nmov     rax, [rdi]                                                     ; +0xb1, 0x10030c0f1\ncall    qword ptr [rax+158h]                                           ; +0xb4, 0x10030c0f4\nadd     rbx, 8                                                         ; +0xba, 0x10030c0fa\ncmp     rbx, r12                                                       ; +0xbe, 0x10030c0fe\njbe     short loc_10030C0E0                                            ; +0xc1, 0x10030c101\njmp     short loc_10030C0A0                                            ; +0xc3, 0x10030c103\nmov     rdi, [r14+2A0h]                                                ; +0xc5, 0x10030c105\nxor     esi, esi                                                       ; +0xcc, 0x10030c10c\nmov     ebx, [rbp+var_2C]                                              ; +0xce, 0x10030c10e\ntest    ebx, ebx                                                       ; +0xd1, 0x10030c111\nsetnz   sil                                                            ; +0xd3, 0x10030c113\nmov     rax, [rdi]                                                     ; +0xd7, 0x10030c117\ncall    qword ptr [rax+158h]                                           ; +0xda, 0x10030c11a\nmov     rdi, [r14+2A8h]                                                ; +0xe0, 0x10030c120\nxor     esi, esi                                                       ; +0xe7, 0x10030c127\ncmp     [rbp+var_30], ebx                                              ; +0xe9, 0x10030c129\nsetnle  sil                                                            ; +0xec, 0x10030c12c\nmov     rax, [rdi]                                                     ; +0xf0, 0x10030c130\nmov     rax, [rax+158h]                                                ; +0xf3, 0x10030c133\nadd     rsp, 18h                                                       ; +0xfa, 0x10030c13a\npop     rbx                                                            ; +0xfe, 0x10030c13e\npop     r12                                                            ; +0xff, 0x10030c13f\npop     r13                                                            ; +0x101, 0x10030c141\npop     r14                                                            ; +0x103, 0x10030c143\npop     r15                                                            ; +0x105, 0x10030c145\npop     rbp                                                            ; +0x107, 0x10030c147\njmp     rax                                                            ; +0x108, 0x10030c148", "xrefs": ["CommunityCreditsPage::init @ 0x10030bf73", "CommunityCreditsPage::onSwitchPage @ 0x10030c02f"], "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"}