{"type": "func", "start": 4296681476, "end": 4296681744, "name": "CommunityCreditsPage::goToPage", "pseudocode": "// \n// CommunityCreditsPage::goToPage from 0x1001a2804 to 0x1001a2910 (268 bytes)\n// \n// 2 xrefs:\n// > CommunityCreditsPage::init @ 0x1001a2164\n// > CommunityCreditsPage::onSwitchPage @ 0x1001a2800\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 v4; // w0\n  intptr_t v5; // x21\n  int v6; // w22\n  __int64 v7; // x24\n  cocos2d::CCObject *v8; // x0\n  cocos2d::CCObject_vtbl *v9; // x9\n  __int64 copyWithZone_low; // x8\n  void (__cdecl *v11)(cocos2d::CCObject *__hidden); // x25\n  unsigned __int64 v12; // x26\n\n  v4 = cocos2d::CCDictionary::count(a1->m_pageObjects);\n  if ( (a2 & 0x80000000) == 0 && (int)v4 > a2 && a1->m_page != a2 )\n  {\n    v5 = 0;\n    v6 = v4 - 1;\n    a1->m_page = a2;\n    v7 = v4;\n    do\n    {\n      v8 = cocos2d::CCDictionary::objectForKey(a1->m_pageObjects, v5);\n      if ( v8 )\n      {\n        v9 = v8[1].__vftable;\n        copyWithZone_low = LODWORD(v9->copyWithZone);\n        if ( (_DWORD)copyWithZone_low )\n        {\n          v11 = v9->~CCObject_0;\n          v12 = (unsigned __int64)v11 + 8 * copyWithZone_low - 8;\n          do\n          {\n            if ( !*(_QWORD *)v11 )\n              break;\n            (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)v11 + 328LL))(*(_QWORD *)v11, v5 == a2);\n            v11 = (void (__cdecl *)(cocos2d::CCObject *__hidden))((char *)v11 + 8);\n          }\n          while ( (unsigned __int64)v11 <= v12 );\n        }\n      }\n      ++v5;\n    }\n    while ( v5 != v7 );\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, v6 > a2);\n  }\n}", "assembly": "; \n; CommunityCreditsPage::goToPage from 0x1001a2804 to 0x1001a2910 (268 bytes)\n; \n; 2 xrefs:\n; > CommunityCreditsPage::init @ 0x1001a2164\n; > CommunityCreditsPage::onSwitchPage @ 0x1001a2800\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\nSTP             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x1001a2804\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1001a2808\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001a280c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001a2810\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001a2814\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001a2818\nMOV             X19, X1                                                ; +0x18, 0x1001a281c\nMOV             X20, X0                                                ; +0x1c, 0x1001a2820\nLDR             X0, [X0,#0x278]                                        ; +0x20, 0x1001a2824\nBL              cocos2d__CCDictionary__count                           ; +0x24, 0x1001a2828\nTBNZ            W19, #0x1F, loc_1001A2844                              ; +0x28, 0x1001a282c\nCMP             W0, W19                                                ; +0x2c, 0x1001a2830\nB.LE            loc_1001A2844                                          ; +0x30, 0x1001a2834\nLDR             W8, [X20,#0x290]                                       ; +0x34, 0x1001a2838\nCMP             W8, W19                                                ; +0x38, 0x1001a283c\nB.NE            loc_1001A285C                                          ; +0x3c, 0x1001a2840\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x40, 0x1001a2844\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x44, 0x1001a2848\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x48, 0x1001a284c\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x4c, 0x1001a2850\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x50, 0x1001a2854\nRET                                                                    ; +0x54, 0x1001a2858\nMOV             X21, #0                                                ; +0x58, 0x1001a285c\nSUB             W22, W0, #1                                            ; +0x5c, 0x1001a2860\nSTR             W19, [X20,#0x290]                                      ; +0x60, 0x1001a2864\nMOV             W23, W19                                               ; +0x64, 0x1001a2868\nMOV             W24, W0                                                ; +0x68, 0x1001a286c\nLDR             X0, [X20,#0x278]                                       ; +0x6c, 0x1001a2870\nMOV             X1, X21                                                ; +0x70, 0x1001a2874\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x74, 0x1001a2878\nCBZ             X0, loc_1001A28C0                                      ; +0x78, 0x1001a287c\nLDR             X9, [X0,#0x38]                                         ; +0x7c, 0x1001a2880\nLDR             W8, [X9]                                               ; +0x80, 0x1001a2884\nCBZ             W8, loc_1001A28C0                                      ; +0x84, 0x1001a2888\nLDR             X25, [X9,#0x10]                                        ; +0x88, 0x1001a288c\nADD             X8, X25, X8,LSL#3                                      ; +0x8c, 0x1001a2890\nSUB             X26, X8, #8                                            ; +0x90, 0x1001a2894\nLDR             X0, [X25]                                              ; +0x94, 0x1001a2898\nCBZ             X0, loc_1001A28C0                                      ; +0x98, 0x1001a289c\nCMP             X21, X23                                               ; +0x9c, 0x1001a28a0\nCSET            W1, EQ                                                 ; +0xa0, 0x1001a28a4\nLDR             X8, [X0]                                               ; +0xa4, 0x1001a28a8\nLDR             X8, [X8,#0x148]                                        ; +0xa8, 0x1001a28ac\nBLR             X8                                                     ; +0xac, 0x1001a28b0\nADD             X25, X25, #8                                           ; +0xb0, 0x1001a28b4\nCMP             X25, X26                                               ; +0xb4, 0x1001a28b8\nB.LS            loc_1001A2898                                          ; +0xb8, 0x1001a28bc\nADD             X21, X21, #1                                           ; +0xbc, 0x1001a28c0\nCMP             X21, X24                                               ; +0xc0, 0x1001a28c4\nB.NE            loc_1001A2870                                          ; +0xc4, 0x1001a28c8\nLDR             X0, [X20,#0x280]                                       ; +0xc8, 0x1001a28cc\nCMP             W19, #0                                                ; +0xcc, 0x1001a28d0\nCSET            W1, NE                                                 ; +0xd0, 0x1001a28d4\nLDR             X8, [X0]                                               ; +0xd4, 0x1001a28d8\nLDR             X8, [X8,#0x148]                                        ; +0xd8, 0x1001a28dc\nBLR             X8                                                     ; +0xdc, 0x1001a28e0\nLDR             X0, [X20,#0x288]                                       ; +0xe0, 0x1001a28e4\nCMP             W22, W19                                               ; +0xe4, 0x1001a28e8\nCSET            W1, GT                                                 ; +0xe8, 0x1001a28ec\nLDR             X8, [X0]                                               ; +0xec, 0x1001a28f0\nLDR             X2, [X8,#0x148]                                        ; +0xf0, 0x1001a28f4\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xf4, 0x1001a28f8\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xf8, 0x1001a28fc\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xfc, 0x1001a2900\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0x100, 0x1001a2904\nLDP             X26, X25, [SP+0x40+var_40],#0x50                       ; +0x104, 0x1001a2908\nBR              X2                                                     ; +0x108, 0x1001a290c", "xrefs": ["CommunityCreditsPage::init @ 0x1001a2164", "CommunityCreditsPage::onSwitchPage @ 0x1001a2800"], "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"}