{"type": "func", "start": 4298247328, "end": 4298247594, "name": "CommunityCreditsPage::goToPage", "pseudocode": "// \n// CommunityCreditsPage::goToPage from 0x100320ca0 to 0x100320daa (266 bytes)\n// \n// 2 xrefs:\n// > CommunityCreditsPage::init @ 0x100320bd3\n// > CommunityCreditsPage::onSwitchPage @ 0x100320c8f\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 CommunityCreditsPage::goToPage(CommunityCreditsPage *a1, int a2)\n{\n  unsigned int v2; // eax\n  intptr_t v3; // r15\n  cocos2d::CCObject *v4; // rax\n  cocos2d::CCObject_vtbl *v5; // rax\n  void (__cdecl *v6)(cocos2d::CCObject *__hidden); // rbx\n  unsigned __int64 v7; // r12\n  __int64 v8; // [rsp+8h] [rbp-38h]\n  int v9; // [rsp+10h] [rbp-30h]\n\n  v2 = cocos2d::CCDictionary::count(a1->m_pageObjects);\n  if ( a2 >= 0 && (int)v2 > a2 && a1->m_page != a2 )\n  {\n    a1->m_page = a2;\n    v8 = v2;\n    v9 = v2 - 1;\n    v3 = 0;\n    do\n    {\n      v4 = cocos2d::CCDictionary::objectForKey(a1->m_pageObjects, v3);\n      if ( v4 )\n      {\n        v5 = v4[1].__vftable;\n        if ( LODWORD(v5->copyWithZone) )\n        {\n          v6 = v5->~CCObject_0;\n          v7 = (unsigned __int64)v6 + 8 * LODWORD(v5->copyWithZone) - 8;\n          do\n          {\n            if ( !*(_QWORD *)v6 )\n              break;\n            (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)v6 + 328LL))(*(_QWORD *)v6, v3 == a2);\n            v6 = (void (__cdecl *)(cocos2d::CCObject *__hidden))((char *)v6 + 8);\n          }\n          while ( (unsigned __int64)v6 <= v7 );\n        }\n      }\n      ++v3;\n    }\n    while ( v3 != v8 );\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_prevButton->setVisible)(a1->m_prevButton, a2 != 0);\n    ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_nextButton->setVisible)(a1->m_nextButton, v9 > a2);\n  }\n}", "assembly": "; \n; CommunityCreditsPage::goToPage from 0x100320ca0 to 0x100320daa (266 bytes)\n; \n; 2 xrefs:\n; > CommunityCreditsPage::init @ 0x100320bd3\n; > CommunityCreditsPage::onSwitchPage @ 0x100320c8f\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    rbp                                                            ; +0x0, 0x100320ca0\nmov     rbp, rsp                                                       ; +0x1, 0x100320ca1\npush    r15                                                            ; +0x4, 0x100320ca4\npush    r14                                                            ; +0x6, 0x100320ca6\npush    r13                                                            ; +0x8, 0x100320ca8\npush    r12                                                            ; +0xa, 0x100320caa\npush    rbx                                                            ; +0xc, 0x100320cac\nsub     rsp, 18h                                                       ; +0xd, 0x100320cad\nmov     ebx, esi                                                       ; +0x11, 0x100320cb1\nmov     r14, rdi                                                       ; +0x13, 0x100320cb3\nmov     rdi, [rdi+278h]                                                ; +0x16, 0x100320cb6\ncall    cocos2d__CCDictionary__count                                   ; +0x1d, 0x100320cbd\ntest    ebx, ebx                                                       ; +0x22, 0x100320cc2\njs      short loc_100320CD3                                            ; +0x24, 0x100320cc4\ncmp     eax, ebx                                                       ; +0x26, 0x100320cc6\njle     short loc_100320CD3                                            ; +0x28, 0x100320cc8\ncmp     [r14+290h], ebx                                                ; +0x2a, 0x100320cca\njnz     short loc_100320CE2                                            ; +0x31, 0x100320cd1\nadd     rsp, 18h                                                       ; +0x33, 0x100320cd3\npop     rbx                                                            ; +0x37, 0x100320cd7\npop     r12                                                            ; +0x38, 0x100320cd8\npop     r13                                                            ; +0x3a, 0x100320cda\npop     r14                                                            ; +0x3c, 0x100320cdc\npop     r15                                                            ; +0x3e, 0x100320cde\npop     rbp                                                            ; +0x40, 0x100320ce0\nretn                                                                   ; +0x41, 0x100320ce1\nmov     [r14+290h], ebx                                                ; +0x42, 0x100320ce2\nmov     [rbp+var_2C], ebx                                              ; +0x49, 0x100320ce9\nmov     r13d, ebx                                                      ; +0x4c, 0x100320cec\nmov     ecx, eax                                                       ; +0x4f, 0x100320cef\nmov     [rbp+var_38], rcx                                              ; +0x51, 0x100320cf1\ndec     eax                                                            ; +0x55, 0x100320cf5\nmov     [rbp+var_30], eax                                              ; +0x57, 0x100320cf7\nxor     r15d, r15d                                                     ; +0x5a, 0x100320cfa\njmp     short loc_100320D09                                            ; +0x5d, 0x100320cfd\nalign 20h                                                              ; +0x5f, 0x100320cff\ninc     r15                                                            ; +0x60, 0x100320d00\ncmp     r15, [rbp+var_38]                                              ; +0x63, 0x100320d03\njz      short loc_100320D65                                            ; +0x67, 0x100320d07\nmov     rdi, [r14+278h]                                                ; +0x69, 0x100320d09\nmov     rsi, r15                                                       ; +0x70, 0x100320d10\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x73, 0x100320d13\ntest    rax, rax                                                       ; +0x78, 0x100320d18\njz      short loc_100320D00                                            ; +0x7b, 0x100320d1b\nmov     rax, [rax+38h]                                                 ; +0x7d, 0x100320d1d\nmov     ecx, [rax]                                                     ; +0x81, 0x100320d21\ntest    rcx, rcx                                                       ; +0x83, 0x100320d23\njz      short loc_100320D00                                            ; +0x86, 0x100320d26\nmov     rbx, [rax+10h]                                                 ; +0x88, 0x100320d28\nlea     r12, [rbx+rcx*8]                                               ; +0x8c, 0x100320d2c\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x90, 0x100320d30\nnop     word ptr [rax+rax+00000000h]                                   ; +0x94, 0x100320d34\nmov     rdi, [rbx]                                                     ; +0xa0, 0x100320d40\ntest    rdi, rdi                                                       ; +0xa3, 0x100320d43\njz      short loc_100320D00                                            ; +0xa6, 0x100320d46\nxor     esi, esi                                                       ; +0xa8, 0x100320d48\ncmp     r15, r13                                                       ; +0xaa, 0x100320d4a\nsetz    sil                                                            ; +0xad, 0x100320d4d\nmov     rax, [rdi]                                                     ; +0xb1, 0x100320d51\ncall    qword ptr [rax+148h]                                           ; +0xb4, 0x100320d54\nadd     rbx, 8                                                         ; +0xba, 0x100320d5a\ncmp     rbx, r12                                                       ; +0xbe, 0x100320d5e\njbe     short loc_100320D40                                            ; +0xc1, 0x100320d61\njmp     short loc_100320D00                                            ; +0xc3, 0x100320d63\nmov     rdi, [r14+280h]                                                ; +0xc5, 0x100320d65\nxor     esi, esi                                                       ; +0xcc, 0x100320d6c\nmov     ebx, [rbp+var_2C]                                              ; +0xce, 0x100320d6e\ntest    ebx, ebx                                                       ; +0xd1, 0x100320d71\nsetnz   sil                                                            ; +0xd3, 0x100320d73\nmov     rax, [rdi]                                                     ; +0xd7, 0x100320d77\ncall    qword ptr [rax+148h]                                           ; +0xda, 0x100320d7a\nmov     rdi, [r14+288h]                                                ; +0xe0, 0x100320d80\nxor     esi, esi                                                       ; +0xe7, 0x100320d87\ncmp     [rbp+var_30], ebx                                              ; +0xe9, 0x100320d89\nsetnle  sil                                                            ; +0xec, 0x100320d8c\nmov     rax, [rdi]                                                     ; +0xf0, 0x100320d90\nmov     rax, [rax+148h]                                                ; +0xf3, 0x100320d93\nadd     rsp, 18h                                                       ; +0xfa, 0x100320d9a\npop     rbx                                                            ; +0xfe, 0x100320d9e\npop     r12                                                            ; +0xff, 0x100320d9f\npop     r13                                                            ; +0x101, 0x100320da1\npop     r14                                                            ; +0x103, 0x100320da3\npop     r15                                                            ; +0x105, 0x100320da5\npop     rbp                                                            ; +0x107, 0x100320da7\njmp     rax                                                            ; +0x108, 0x100320da8", "xrefs": ["CommunityCreditsPage::init @ 0x100320bd3", "CommunityCreditsPage::onSwitchPage @ 0x100320c8f"], "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"}