{"type": "func", "start": 9896724, "end": 9896792, "name": "CommunityCreditsPage::onSwitchPage", "pseudocode": "// \n// CommunityCreditsPage::onSwitchPage from 0x970314 to 0x970358 (68 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x4adf0\n// > CommunityCreditsPage::init @ 0x971ff8\n// > CommunityCreditsPage::init @ 0x9720a0\n// > <???> @ 0x122a658\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 CommunityCreditsPage::onSwitchPage(CommunityCreditsPage *a1, cocos2d::CCObject *a2)\n{\n  int m_page; // w19\n  int v4; // w0\n  int v5; // w1\n\n  m_page = a1->m_page;\n  v4 = a2->getTag(a2);\n  v5 = m_page + 1;\n  if ( v4 != 1 )\n    v5 = m_page - 1;\n  CommunityCreditsPage::goToPage(a1, v5);\n}", "assembly": "; \n; CommunityCreditsPage::onSwitchPage from 0x970314 to 0x970358 (68 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x4adf0\n; > CommunityCreditsPage::init @ 0x971ff8\n; > CommunityCreditsPage::init @ 0x9720a0\n; > <???> @ 0x122a658\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             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x970314\nMOV             X29, SP                                                ; +0x4, 0x970318\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x97031c\nMOV             X20, X0                                                ; +0xc, 0x970320\nMOV             X0, X1                                                 ; +0x10, 0x970324\nLDR             X1, [X1]                                               ; +0x14, 0x970328\nLDR             W19, [X20,#0x290]                                      ; +0x18, 0x97032c\nLDR             X1, [X1,#0x40]                                         ; +0x1c, 0x970330\nBLR             X1                                                     ; +0x20, 0x970334\nCMP             W0, #1                                                 ; +0x24, 0x970338\nADD             W1, W19, #1                                            ; +0x28, 0x97033c\nB.EQ            loc_970348                                             ; +0x2c, 0x970340\nSUB             W1, W19, #1; int                                       ; +0x30, 0x970344\nMOV             X0, X20; this                                          ; +0x34, 0x970348\nLDP             X19, X20, [SP,#var_s10]                                ; +0x38, 0x97034c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x3c, 0x970350\nB               _ZN20CommunityCreditsPage8goToPageEi; CommunityCreditsPage::goToPage(int) ; +0x40, 0x970354", "xrefs": ["<???> @ 0x4adf0", "CommunityCreditsPage::init @ 0x971ff8", "CommunityCreditsPage::init @ 0x9720a0", "<???> @ 0x122a658"], "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"}