{"type": "func", "start": 5370247840, "end": 5370247940, "name": "EditButtonBar::goToPage", "pseudocode": "// \n// EditButtonBar::goToPage from 0x140177aa0 to 0x140177b04 (100 bytes)\n// \n// 6 xrefs:\n// > EditButtonBar::onRight @ 0x140177b4b\n// > EditButtonBar::onLeft @ 0x140177b8b\n// > EditButtonBar::onDotClicked @ 0x140177c1f\n// > EditorUI::setupCreateMenu @ 0x1401f0798\n// > EditorUI::setupCreateMenu @ 0x1401f07fb\n// > <???> @ 0x1409185fc\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:27:33 +0000\n// \n\n__int64 __fastcall EditButtonBar::goToPage(__int64 a1, int a2)\n{\n  __int64 v4; // rcx\n  cocos2d::CCArray *v5; // rcx\n\n  v4 = *(_QWORD *)(a1 + 344);\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  BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), a2 - 1);\n  BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 344), a2);\n  return EditButtonBar::updateDotState(a1);\n}", "assembly": "; \n; EditButtonBar::goToPage from 0x140177aa0 to 0x140177b04 (100 bytes)\n; \n; 6 xrefs:\n; > EditButtonBar::onRight @ 0x140177b4b\n; > EditButtonBar::onLeft @ 0x140177b8b\n; > EditButtonBar::onDotClicked @ 0x140177c1f\n; > EditorUI::setupCreateMenu @ 0x1401f0798\n; > EditorUI::setupCreateMenu @ 0x1401f07fb\n; > <???> @ 0x1409185fc\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:27:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140177aa0\npush    rdi                                                            ; +0x5, 0x140177aa5\nsub     rsp, 20h                                                       ; +0x6, 0x140177aa6\nmov     rbx, rcx                                                       ; +0xa, 0x140177aaa\nmov     edi, edx                                                       ; +0xd, 0x140177aad\nmov     rcx, [rcx+158h]                                                ; +0xf, 0x140177aaf\ncmp     byte ptr [rcx+1C8h], 0                                         ; +0x16, 0x140177ab6\njz      short loc_140177AC8                                            ; +0x1d, 0x140177abd\nmov     rcx, [rcx+1C0h]                                                ; +0x1f, 0x140177abf\njmp     short loc_140177ACF                                            ; +0x26, 0x140177ac6\nmov     rcx, [rcx+1E0h]                                                ; +0x28, 0x140177ac8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2f, 0x140177acf\nmov     rcx, [rbx+158h]                                                ; +0x35, 0x140177ad5\nlea     edx, [rdi-1]                                                   ; +0x3c, 0x140177adc\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x3f, 0x140177adf\nmov     rcx, [rbx+158h]                                                ; +0x44, 0x140177ae4\nmov     edx, edi                                                       ; +0x4b, 0x140177aeb\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x4d, 0x140177aed\nmov     rcx, rbx                                                       ; +0x52, 0x140177af2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x55, 0x140177af5\nadd     rsp, 20h                                                       ; +0x5a, 0x140177afa\npop     rdi                                                            ; +0x5e, 0x140177afe\njmp     EditButtonBar__updateDotState                                  ; +0x5f, 0x140177aff", "xrefs": ["EditButtonBar::onRight @ 0x140177b4b", "EditButtonBar::onLeft @ 0x140177b8b", "EditButtonBar::onDotClicked @ 0x140177c1f", "EditorUI::setupCreateMenu @ 0x1401f0798", "EditorUI::setupCreateMenu @ 0x1401f07fb", "<???> @ 0x1409185fc"], "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"}