{"type": "func", "start": 5369201376, "end": 5369201510, "name": "ListButtonBar::goToPage", "pseudocode": "// \n// ListButtonBar::goToPage from 0x1400782e0 to 0x140078366 (134 bytes)\n// \n// 4 xrefs:\n// > ListButtonBar::onRight @ 0x14007837f\n// > ListButtonBar::onLeft @ 0x14007839f\n// > <???> @ 0x140911c6c\n// > <???> @ 0x140911c78\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:52 +0000\n// \n\nvoid __fastcall ListButtonBar::goToPage(__int64 a1, unsigned int a2)\n{\n  __int64 v4; // rcx\n  cocos2d::CCArray *v5; // rcx\n  __int64 *v6; // rcx\n  void (__fastcall ***v7)(_QWORD, __int64, _QWORD); // rcx\n\n  v4 = *(_QWORD *)(a1 + 320);\n  if ( *(_BYTE *)(v4 + 456) )\n    v5 = *(cocos2d::CCArray **)(v4 + 448);\n  else\n    v5 = *(cocos2d::CCArray **)(v4 + 480);\n  cocos2d::CCArray::count(v5);\n  v6 = *(__int64 **)(a1 + 320);\n  if ( *(_BYTE *)(a1 + 344) )\n  {\n    BoomScrollLayer::moveToPage(v6, a2);\n  }\n  else\n  {\n    BoomScrollLayer::instantMoveToPage((__int64)v6, a2 - 1);\n    BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 320), a2);\n  }\n  v7 = *(void (__fastcall ****)(_QWORD, __int64, _QWORD))(a1 + 336);\n  if ( v7 )\n    (**v7)(v7, a1, a2);\n}", "assembly": "; \n; ListButtonBar::goToPage from 0x1400782e0 to 0x140078366 (134 bytes)\n; \n; 4 xrefs:\n; > ListButtonBar::onRight @ 0x14007837f\n; > ListButtonBar::onLeft @ 0x14007839f\n; > <???> @ 0x140911c6c\n; > <???> @ 0x140911c78\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:25:52 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1400782e0\npush    rdi                                                            ; +0x5, 0x1400782e5\nsub     rsp, 20h                                                       ; +0x6, 0x1400782e6\nmov     rbx, rcx                                                       ; +0xa, 0x1400782ea\nmov     edi, edx                                                       ; +0xd, 0x1400782ed\nmov     rcx, [rcx+140h]                                                ; +0xf, 0x1400782ef\ncmp     byte ptr [rcx+1C8h], 0                                         ; +0x16, 0x1400782f6\njz      short loc_140078308                                            ; +0x1d, 0x1400782fd\nmov     rcx, [rcx+1C0h]                                                ; +0x1f, 0x1400782ff\njmp     short loc_14007830F                                            ; +0x26, 0x140078306\nmov     rcx, [rcx+1E0h]                                                ; +0x28, 0x140078308\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2f, 0x14007830f\ncmp     byte ptr [rbx+158h], 0                                         ; +0x35, 0x140078315\nmov     rcx, [rbx+140h]                                                ; +0x3c, 0x14007831c\njnz     short loc_14007833D                                            ; +0x43, 0x140078323\nlea     edx, [rdi-1]                                                   ; +0x45, 0x140078325\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x48, 0x140078328\nmov     rcx, [rbx+140h]                                                ; +0x4d, 0x14007832d\nmov     edx, edi                                                       ; +0x54, 0x140078334\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x56, 0x140078336\njmp     short loc_140078344                                            ; +0x5b, 0x14007833b\nmov     edx, edi                                                       ; +0x5d, 0x14007833d\ncall    BoomScrollLayer__moveToPage                                    ; +0x5f, 0x14007833f\nmov     rcx, [rbx+150h]                                                ; +0x64, 0x140078344\ntest    rcx, rcx                                                       ; +0x6b, 0x14007834b\njz      short loc_14007835B                                            ; +0x6e, 0x14007834e\nmov     rax, [rcx]                                                     ; +0x70, 0x140078350\nmov     r8d, edi                                                       ; +0x73, 0x140078353\nmov     rdx, rbx                                                       ; +0x76, 0x140078356\ncall    qword ptr [rax]                                                ; +0x79, 0x140078359\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7b, 0x14007835b\nadd     rsp, 20h                                                       ; +0x80, 0x140078360\npop     rdi                                                            ; +0x84, 0x140078364\nretn                                                                   ; +0x85, 0x140078365", "xrefs": ["ListButtonBar::onRight @ 0x14007837f", "ListButtonBar::onLeft @ 0x14007839f", "<???> @ 0x140911c6c", "<???> @ 0x140911c78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}