{"type": "func", "start": 5270896, "end": 5270932, "name": "CommunityCreditsPage::onSwitchPage", "pseudocode": "// \n// CommunityCreditsPage::onSwitchPage from 0x506d70 to 0x506d94 (36 bytes)\n// \n// 0 xrefs:\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; // r4\n  int v4; // r1\n\n  m_page = a1->m_page;\n  if ( a2->getTag(a2) == 1 )\n    v4 = m_page + 1;\n  else\n    v4 = m_page - 1;\n  CommunityCreditsPage::goToPage(a1, v4);\n}", "assembly": "; \n; CommunityCreditsPage::onSwitchPage from 0x506d70 to 0x506d94 (36 bytes)\n; \n; 0 xrefs:\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            {R3-R5,LR}                                             ; +0x0, 0x506d70\nMOV             R5, R0                                                 ; +0x2, 0x506d72\nLDR             R3, [R1]                                               ; +0x4, 0x506d74\nLDR.W           R4, [R0,#0x1FC]                                        ; +0x6, 0x506d76\nMOV             R0, R1                                                 ; +0xa, 0x506d7a\nLDR             R3, [R3,#0x20]                                         ; +0xc, 0x506d7c\nBLX             R3                                                     ; +0xe, 0x506d7e\nCMP             R0, #1                                                 ; +0x10, 0x506d80\nMOV             R0, R5; this                                           ; +0x12, 0x506d82\nITE EQ                                                                 ; +0x14, 0x506d84\nADDEQ           R1, R4, #1                                             ; +0x16, 0x506d86\nADDNE.W         R1, R4, #0xFFFFFFFF; int                               ; +0x18, 0x506d88\nPOP.W           {R3-R5,LR}                                             ; +0x1c, 0x506d8c\nB.W             _ZN20CommunityCreditsPage8goToPageEi; CommunityCreditsPage::goToPage(int) ; +0x20, 0x506d90", "xrefs": [], "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"}