{"type": "func", "start": 6518612, "end": 6518776, "name": "CommunityCreditsPage::goToPage", "pseudocode": "// \n// CommunityCreditsPage::goToPage from 0x637754 to 0x6377f8 (164 bytes)\n// \n// 2 xrefs:\n// > CommunityCreditsPage::onSwitchPage @ 0x637818\n// > CommunityCreditsPage::init @ 0x638f60\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:55:21 +0000\n// \n\nint __fastcall CommunityCreditsPage::goToPage(cocos2d::CCDictionary **this, cocos2d::CCDictionary *a2)\n{\n  int result; // r0\n  int v5; // r8\n  int v6; // r9\n  int v7; // r0\n  _DWORD *v8; // r2\n  int *v9; // r7\n  int *v10; // r4\n  int v11; // r0\n  int v12; // t1\n\n  result = cocos2d::CCDictionary::count(*(this + 130));\n  v5 = result;\n  if ( (int)a2 >= 0 && result > (int)a2 && a2 != *(this + 133) )\n  {\n    v6 = 0;\n    *(this + 133) = a2;\n    do\n    {\n      v7 = cocos2d::CCDictionary::objectForKey(*(this + 130), v6);\n      if ( v7 )\n      {\n        v8 = *(_DWORD **)(v7 + 52);\n        if ( *v8 )\n        {\n          v9 = (int *)v8[3];\n          v10 = &v9[*v8 - 1];\n          while ( v9 <= v10 )\n          {\n            v12 = *v9++;\n            v11 = v12;\n            if ( !v12 )\n              break;\n            (*(void (__fastcall **)(int, bool))(*(_DWORD *)v11 + 172))(v11, v6 == (_DWORD)a2);\n          }\n        }\n      }\n      ++v6;\n    }\n    while ( v6 < v5 );\n    (*(void (__fastcall **)(_DWORD, bool))(*(_DWORD *)*(this + 131) + 172))(*(this + 131), (int)a2 > 0);\n    return (*(int (__fastcall **)(_DWORD, bool))(*(_DWORD *)*(this + 132) + 172))(*(this + 132), (int)a2 < v5 - 1);\n  }\n  return result;\n}", "assembly": "; \n; CommunityCreditsPage::goToPage from 0x637754 to 0x6377f8 (164 bytes)\n; \n; 2 xrefs:\n; > CommunityCreditsPage::onSwitchPage @ 0x637818\n; > CommunityCreditsPage::init @ 0x638f60\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:55:21 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x637754\nMOV             R6, R0                                                 ; +0x4, 0x637758\nLDR.W           R0, [R0,#0x208]; this                                  ; +0x6, 0x63775a\nMOV             R5, R1                                                 ; +0xa, 0x63775e\nBL              _ZN7cocos2d12CCDictionary5countEv; cocos2d::CCDictionary::count(void) ; +0xc, 0x637760\nCMP             R5, #0                                                 ; +0x10, 0x637764\nMOV             R8, R0                                                 ; +0x12, 0x637766\nBLT             locret_6377F4                                          ; +0x14, 0x637768\nCMP             R0, R5                                                 ; +0x16, 0x63776a\nBLE             locret_6377F4                                          ; +0x18, 0x63776c\nLDR.W           R3, [R6,#0x214]                                        ; +0x1a, 0x63776e\nCMP             R5, R3                                                 ; +0x1e, 0x637772\nBEQ             locret_6377F4                                          ; +0x20, 0x637774\nMOV.W           R9, #0                                                 ; +0x22, 0x637776\nSTR.W           R5, [R6,#0x214]                                        ; +0x26, 0x63777a\nLDR.W           R0, [R6,#0x208]; this                                  ; +0x2a, 0x63777e\nMOV             R1, R9; int                                            ; +0x2e, 0x637782\nBL              _ZN7cocos2d12CCDictionary12objectForKeyEi; cocos2d::CCDictionary::objectForKey(int) ; +0x30, 0x637784\nCBNZ            R0, loc_6377C2                                         ; +0x34, 0x637788\nADD.W           R9, R9, #1                                             ; +0x36, 0x63778a\nCMP             R9, R8                                                 ; +0x3a, 0x63778e\nBLT             loc_63777E                                             ; +0x3c, 0x637790\nLDR.W           R0, [R6,#0x20C]                                        ; +0x3e, 0x637792\nCMP             R5, #0                                                 ; +0x42, 0x637796\nITE LE                                                                 ; +0x44, 0x637798\nMOVLE           R1, #0                                                 ; +0x46, 0x63779a\nMOVGT           R1, #1                                                 ; +0x48, 0x63779c\nLDR             R3, [R0]                                               ; +0x4a, 0x63779e\nLDR.W           R3, [R3,#0xAC]                                         ; +0x4c, 0x6377a0\nBLX             R3                                                     ; +0x50, 0x6377a4\nLDR.W           R0, [R6,#0x210]                                        ; +0x52, 0x6377a6\nADD.W           R1, R8, #0xFFFFFFFF                                    ; +0x56, 0x6377aa\nCMP             R5, R1                                                 ; +0x5a, 0x6377ae\nLDR             R3, [R0]                                               ; +0x5c, 0x6377b0\nITE GE                                                                 ; +0x5e, 0x6377b2\nMOVGE           R1, #0                                                 ; +0x60, 0x6377b4\nMOVLT           R1, #1                                                 ; +0x62, 0x6377b6\nPOP.W           {R4-R10,LR}                                            ; +0x64, 0x6377b8\nLDR.W           R3, [R3,#0xAC]                                         ; +0x68, 0x6377bc\nBX              R3                                                     ; +0x6c, 0x6377c0\nLDR             R2, [R0,#0x34]                                         ; +0x6e, 0x6377c2\nLDR             R3, [R2]                                               ; +0x70, 0x6377c4\nCMP             R3, #0                                                 ; +0x72, 0x6377c6\nBEQ             loc_63778A                                             ; +0x74, 0x6377c8\nADD.W           R3, R3, #0x40000000                                    ; +0x76, 0x6377ca\nLDR             R7, [R2,#0xC]                                          ; +0x7a, 0x6377ce\nSUBS            R3, #1                                                 ; +0x7c, 0x6377d0\nADD.W           R4, R7, R3,LSL#2                                       ; +0x7e, 0x6377d2\nCMP             R7, R4                                                 ; +0x82, 0x6377d6\nBHI             loc_63778A                                             ; +0x84, 0x6377d8\nLDR.W           R0, [R7],#4                                            ; +0x86, 0x6377da\nCMP             R0, #0                                                 ; +0x8a, 0x6377de\nBEQ             loc_63778A                                             ; +0x8c, 0x6377e0\nLDR             R3, [R0]                                               ; +0x8e, 0x6377e2\nRSB.W           R2, R5, R9                                             ; +0x90, 0x6377e4\nNEGS            R1, R2                                                 ; +0x94, 0x6377e8\nADCS            R1, R2                                                 ; +0x96, 0x6377ea\nLDR.W           R3, [R3,#0xAC]                                         ; +0x98, 0x6377ec\nBLX             R3                                                     ; +0x9c, 0x6377f0\nB               loc_6377D6                                             ; +0x9e, 0x6377f2\nPOP.W           {R4-R10,PC}                                            ; +0xa0, 0x6377f4", "xrefs": ["CommunityCreditsPage::onSwitchPage @ 0x637818", "CommunityCreditsPage::init @ 0x638f60"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}