{"type": "func", "start": 6761764, "end": 6761956, "name": "BrowseSmartTemplateLayer::goToPage", "pseudocode": "// \n// BrowseSmartTemplateLayer::goToPage from 0x672d24 to 0x672de4 (192 bytes)\n// \n// 3 xrefs:\n// > BrowseSmartTemplateLayer::onClick @ 0x672e10\n// > BrowseSmartKeyLayer::init @ 0x674f48\n// > BrowseSmartTemplateLayer::init @ 0x675652\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:53 +0000\n// \n\nunsigned int __fastcall BrowseSmartTemplateLayer::goToPage(BrowseSmartTemplateLayer *this, unsigned int a2)\n{\n  cocos2d::CCArray *v3; // r0\n  unsigned int i; // r5\n  unsigned int v5; // r6\n  _BOOL4 v6; // r7\n  cocos2d::CCArray *v7; // r9\n  int v8; // r0\n  int v9; // r8\n  int v10; // r1\n\n  *((_DWORD *)this + 132) = a2;\n  v3 = *((cocos2d::CCArray **)this + 131);\n  if ( (a2 & 0x80000000) == 0 )\n  {\n    if ( a2 > cocos2d::CCArray::count(v3) - 1 )\n      *((_DWORD *)this + 132) = 0;\n  }\n  else\n  {\n    *((_DWORD *)this + 132) = cocos2d::CCArray::count(v3) - 1;\n  }\n  for ( i = 0; i < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 131)); ++i )\n  {\n    v5 = 0;\n    v6 = *((_DWORD *)this + 132) == i;\n    v7 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 131), i);\n    while ( v5 < cocos2d::CCArray::count(v7) )\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(v7, v5++);\n      v9 = v8;\n      (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v8 + 172))(v8, v6);\n      (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v9 + 528))(v9, v6);\n    }\n  }\n  if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 131)) > 1u )\n    return BrowseSmartTemplateLayer::updateDots(this, v10);\n  (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 172))(*((_DWORD *)this + 134), 0);\n  return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 133) + 172))(*((_DWORD *)this + 133), 0);\n}", "assembly": "; \n; BrowseSmartTemplateLayer::goToPage from 0x672d24 to 0x672de4 (192 bytes)\n; \n; 3 xrefs:\n; > BrowseSmartTemplateLayer::onClick @ 0x672e10\n; > BrowseSmartKeyLayer::init @ 0x674f48\n; > BrowseSmartTemplateLayer::init @ 0x675652\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:53 +0000\n; \nCMP             R1, #0                                                 ; +0x0, 0x672d24\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x672d26\nMOV             R4, R0                                                 ; +0x6, 0x672d2a\nSTR.W           R1, [R4,#0x210]                                        ; +0x8, 0x672d2c\nMOV             R5, R1                                                 ; +0xc, 0x672d30\nLDR.W           R0, [R0,#0x20C]; this                                  ; +0xe, 0x672d32\nBGE             loc_672D46                                             ; +0x12, 0x672d36\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x14, 0x672d38\nSUBS            R0, #1                                                 ; +0x18, 0x672d3c\nSTR.W           R0, [R4,#0x210]                                        ; +0x1a, 0x672d3e\nMOVS            R5, #0                                                 ; +0x1e, 0x672d42\nB               loc_672D5A                                             ; +0x20, 0x672d44\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x22, 0x672d46\nSUBS            R0, #1                                                 ; +0x26, 0x672d4a\nCMP             R5, R0                                                 ; +0x28, 0x672d4c\nBLS             loc_672D42                                             ; +0x2a, 0x672d4e\nMOVS            R3, #0                                                 ; +0x2c, 0x672d50\nSTR.W           R3, [R4,#0x210]                                        ; +0x2e, 0x672d52\nB               loc_672D42                                             ; +0x32, 0x672d56\nADDS            R5, #1                                                 ; +0x34, 0x672d58\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x36, 0x672d5a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3a, 0x672d5e\nCMP             R5, R0                                                 ; +0x3e, 0x672d62\nBCS             loc_672DAE                                             ; +0x40, 0x672d64\nLDR.W           R7, [R4,#0x210]                                        ; +0x42, 0x672d66\nMOV             R1, R5; unsigned int                                   ; +0x46, 0x672d6a\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x48, 0x672d6c\nMOVS            R6, #0                                                 ; +0x4c, 0x672d70\nSUBS            R3, R7, R5                                             ; +0x4e, 0x672d72\nNEGS            R7, R3                                                 ; +0x50, 0x672d74\nADCS            R7, R3                                                 ; +0x52, 0x672d76\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x54, 0x672d78\nMOV             R9, R0                                                 ; +0x58, 0x672d7c\nMOV             R0, R9; this                                           ; +0x5a, 0x672d7e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x5c, 0x672d80\nCMP             R6, R0                                                 ; +0x60, 0x672d84\nBCS             loc_672D58                                             ; +0x62, 0x672d86\nMOV             R1, R6; unsigned int                                   ; +0x64, 0x672d88\nMOV             R0, R9; this                                           ; +0x66, 0x672d8a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x68, 0x672d8c\nMOV             R1, R7                                                 ; +0x6c, 0x672d90\nADDS            R6, #1                                                 ; +0x6e, 0x672d92\nLDR             R3, [R0]                                               ; +0x70, 0x672d94\nMOV             R8, R0                                                 ; +0x72, 0x672d96\nLDR.W           R3, [R3,#0xAC]                                         ; +0x74, 0x672d98\nBLX             R3                                                     ; +0x78, 0x672d9c\nLDR.W           R3, [R8]                                               ; +0x7a, 0x672d9e\nMOV             R0, R8                                                 ; +0x7e, 0x672da2\nMOV             R1, R7                                                 ; +0x80, 0x672da4\nLDR.W           R3, [R3,#0x210]                                        ; +0x82, 0x672da6\nBLX             R3                                                     ; +0x86, 0x672daa\nB               loc_672D7E                                             ; +0x88, 0x672dac\nLDR.W           R0, [R4,#0x20C]; this                                  ; +0x8a, 0x672dae\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x8e, 0x672db2\nCMP             R0, #1                                                 ; +0x92, 0x672db6\nBHI             loc_672DDA                                             ; +0x94, 0x672db8\nLDR.W           R0, [R4,#0x218]                                        ; +0x96, 0x672dba\nMOVS            R1, #0                                                 ; +0x9a, 0x672dbe\nLDR             R3, [R0]                                               ; +0x9c, 0x672dc0\nLDR.W           R3, [R3,#0xAC]                                         ; +0x9e, 0x672dc2\nBLX             R3                                                     ; +0xa2, 0x672dc6\nLDR.W           R0, [R4,#0x214]                                        ; +0xa4, 0x672dc8\nMOVS            R1, #0                                                 ; +0xa8, 0x672dcc\nPOP.W           {R4-R10,LR}                                            ; +0xaa, 0x672dce\nLDR             R3, [R0]                                               ; +0xae, 0x672dd2\nLDR.W           R3, [R3,#0xAC]                                         ; +0xb0, 0x672dd4\nBX              R3                                                     ; +0xb4, 0x672dd8\nMOV             R0, R4; this                                           ; +0xb6, 0x672dda\nPOP.W           {R4-R10,LR}                                            ; +0xb8, 0x672ddc\nB.W             _ZN24BrowseSmartTemplateLayer10updateDotsEv; BrowseSmartTemplateLayer::updateDots(void) ; +0xbc, 0x672de0", "xrefs": ["BrowseSmartTemplateLayer::onClick @ 0x672e10", "BrowseSmartKeyLayer::init @ 0x674f48", "BrowseSmartTemplateLayer::init @ 0x675652"], "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"}