{"type": "func", "start": 5369950496, "end": 5369950775, "name": "CommunityCreditsPage::goToPage", "pseudocode": "// \n// CommunityCreditsPage::goToPage from 0x14012f120 to 0x14012f237 (279 bytes)\n// \n// 5 xrefs:\n// > CommunityCreditsPage::init @ 0x14012f075\n// > CommunityCreditsPage::onSwitchPage @ 0x14012f11a\n// > <???> @ 0x140898940\n// > <???> @ 0x1408989a0\n// > <???> @ 0x140916d24\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:27:02 +0000\n// \n\nint __fastcall CommunityCreditsPage::goToPage(__int64 a1, int a2)\n{\n  int result; // eax\n  __int64 v5; // rdx\n  int v6; // r13d\n  int v7; // r12d\n  int v8; // edi\n  __int64 v9; // r14\n  struct cocos2d::CCObject *v10; // rax\n  unsigned int *v11; // rbx\n  __int64 v12; // rax\n  _QWORD *v13; // rbx\n  _QWORD *i; // rsi\n  __int64 v15; // rdx\n\n  result = cocos2d::CCDictionary::count(*(cocos2d::CCDictionary **)(a1 + 664));\n  v6 = result;\n  if ( a2 >= 0 )\n  {\n    v7 = result - 1;\n    if ( a2 <= result - 1 && a2 != *(_DWORD *)(a1 + 688) )\n    {\n      v8 = 0;\n      *(_DWORD *)(a1 + 688) = a2;\n      if ( result > 0 )\n      {\n        v9 = 0;\n        do\n        {\n          v10 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 664), v9);\n          if ( v10 )\n          {\n            v11 = *((unsigned int **)v10 + 7);\n            v12 = *v11;\n            if ( (_DWORD)v12 )\n            {\n              v13 = *((_QWORD **)v11 + 2);\n              for ( i = &v13[v12 - 1]; v13 <= i; ++v13 )\n              {\n                if ( !*v13 )\n                  break;\n                LOBYTE(v5) = v8 == a2;\n                (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v13 + 336LL))(*v13, v5);\n              }\n            }\n          }\n          ++v8;\n          ++v9;\n        }\n        while ( v8 < v6 );\n      }\n      LOBYTE(v5) = a2 > 0;\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 672) + 336LL))(*(_QWORD *)(a1 + 672), v5);\n      LOBYTE(v15) = a2 < v7;\n      return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 680) + 336LL))(*(_QWORD *)(a1 + 680), v15);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CommunityCreditsPage::goToPage from 0x14012f120 to 0x14012f237 (279 bytes)\n; \n; 5 xrefs:\n; > CommunityCreditsPage::init @ 0x14012f075\n; > CommunityCreditsPage::onSwitchPage @ 0x14012f11a\n; > <???> @ 0x140898940\n; > <???> @ 0x1408989a0\n; > <???> @ 0x140916d24\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:27:02 +0000\n; \npush    rbp                                                            ; +0x0, 0x14012f120\npush    r13                                                            ; +0x2, 0x14012f122\npush    r15                                                            ; +0x4, 0x14012f124\nsub     rsp, 30h                                                       ; +0x6, 0x14012f126\nmov     r15, rcx                                                       ; +0xa, 0x14012f12a\nmov     ebp, edx                                                       ; +0xd, 0x14012f12d\nmov     rcx, [rcx+298h]                                                ; +0xf, 0x14012f12f\ncall    cs:?count@CCDictionary@cocos2d@@QEAAIXZ; cocos2d::CCDictionary::count(void) ; +0x16, 0x14012f136\nmov     r13d, eax                                                      ; +0x1c, 0x14012f13c\ntest    ebp, ebp                                                       ; +0x1f, 0x14012f13f\njs      loc_14012F22D                                                  ; +0x21, 0x14012f141\nmov     [rsp+48h+var_20], r12                                          ; +0x27, 0x14012f147\nlea     r12d, [rax-1]                                                  ; +0x2c, 0x14012f14c\ncmp     ebp, r12d                                                      ; +0x30, 0x14012f150\njg      loc_14012F228                                                  ; +0x33, 0x14012f153\ncmp     ebp, [r15+2B0h]                                                ; +0x39, 0x14012f159\njz      loc_14012F228                                                  ; +0x40, 0x14012f160\nmov     [rsp+48h+arg_10], rdi                                          ; +0x46, 0x14012f166\nxor     edi, edi                                                       ; +0x4b, 0x14012f16b\nmov     [r15+2B0h], ebp                                                ; +0x4d, 0x14012f16d\ntest    eax, eax                                                       ; +0x54, 0x14012f174\njle     loc_14012F1F8                                                  ; +0x56, 0x14012f176\nmov     [rsp+48h+arg_0], rbx                                           ; +0x5c, 0x14012f17c\nmov     [rsp+48h+arg_8], rsi                                           ; +0x61, 0x14012f181\nmov     [rsp+48h+var_28], r14                                          ; +0x66, 0x14012f186\nmov     r14d, edi                                                      ; +0x6b, 0x14012f18b\nxchg    ax, ax                                                         ; +0x6e, 0x14012f18e\nmov     rcx, [r15+298h]                                                ; +0x70, 0x14012f190\nmov     rdx, r14                                                       ; +0x77, 0x14012f197\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x7a, 0x14012f19a\ntest    rax, rax                                                       ; +0x80, 0x14012f1a0\njz      short loc_14012F1DF                                            ; +0x83, 0x14012f1a3\nmov     rbx, [rax+38h]                                                 ; +0x85, 0x14012f1a5\nmov     eax, [rbx]                                                     ; +0x89, 0x14012f1a9\ntest    eax, eax                                                       ; +0x8b, 0x14012f1ab\njz      short loc_14012F1DF                                            ; +0x8d, 0x14012f1ad\nmov     rbx, [rbx+10h]                                                 ; +0x8f, 0x14012f1af\nlea     rsi, [rax-1]                                                   ; +0x93, 0x14012f1b3\nlea     rsi, [rbx+rsi*8]                                               ; +0x97, 0x14012f1b7\ncmp     rbx, rsi                                                       ; +0x9b, 0x14012f1bb\nja      short loc_14012F1DF                                            ; +0x9e, 0x14012f1be\nmov     rcx, [rbx]                                                     ; +0xa0, 0x14012f1c0\ntest    rcx, rcx                                                       ; +0xa3, 0x14012f1c3\njz      short loc_14012F1DF                                            ; +0xa6, 0x14012f1c6\nmov     rax, [rcx]                                                     ; +0xa8, 0x14012f1c8\ncmp     edi, ebp                                                       ; +0xab, 0x14012f1cb\nsetz    dl                                                             ; +0xad, 0x14012f1cd\ncall    qword ptr [rax+150h]                                           ; +0xb0, 0x14012f1d0\nadd     rbx, 8                                                         ; +0xb6, 0x14012f1d6\ncmp     rbx, rsi                                                       ; +0xba, 0x14012f1da\njbe     short loc_14012F1C0                                            ; +0xbd, 0x14012f1dd\ninc     edi                                                            ; +0xbf, 0x14012f1df\ninc     r14                                                            ; +0xc1, 0x14012f1e1\ncmp     edi, r13d                                                      ; +0xc4, 0x14012f1e4\njl      short loc_14012F190                                            ; +0xc7, 0x14012f1e7\nmov     r14, [rsp+48h+var_28]                                          ; +0xc9, 0x14012f1e9\nmov     rsi, [rsp+48h+arg_8]                                           ; +0xce, 0x14012f1ee\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xd3, 0x14012f1f3\nmov     rcx, [r15+2A0h]                                                ; +0xd8, 0x14012f1f8\ntest    ebp, ebp                                                       ; +0xdf, 0x14012f1ff\nsetnle  dl                                                             ; +0xe1, 0x14012f201\nmov     rax, [rcx]                                                     ; +0xe4, 0x14012f204\ncall    qword ptr [rax+150h]                                           ; +0xe7, 0x14012f207\nmov     rcx, [r15+2A8h]                                                ; +0xed, 0x14012f20d\ncmp     ebp, r12d                                                      ; +0xf4, 0x14012f214\nsetl    dl                                                             ; +0xf7, 0x14012f217\nmov     rax, [rcx]                                                     ; +0xfa, 0x14012f21a\ncall    qword ptr [rax+150h]                                           ; +0xfd, 0x14012f21d\nmov     rdi, [rsp+48h+arg_10]                                          ; +0x103, 0x14012f223\nmov     r12, [rsp+48h+var_20]                                          ; +0x108, 0x14012f228\nadd     rsp, 30h                                                       ; +0x10d, 0x14012f22d\npop     r15                                                            ; +0x111, 0x14012f231\npop     r13                                                            ; +0x113, 0x14012f233\npop     rbp                                                            ; +0x115, 0x14012f235\nretn                                                                   ; +0x116, 0x14012f236", "xrefs": ["CommunityCreditsPage::init @ 0x14012f075", "CommunityCreditsPage::onSwitchPage @ 0x14012f11a", "<???> @ 0x140898940", "<???> @ 0x1408989a0", "<???> @ 0x140916d24"], "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"}