{"type": "func", "start": 5369148336, "end": 5369148470, "name": "ListButtonBar::goToPage", "pseudocode": "// \n// ListButtonBar::goToPage from 0x14006b3b0 to 0x14006b436 (134 bytes)\n// \n// 3 xrefs:\n// > ListButtonBar::onRight @ 0x14006b44f\n// > ListButtonBar::onLeft @ 0x14006b46f\n// > <???> @ 0x1406c5fc4\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 ListButtonBar::goToPage(ListButtonBar *a1, int a2)\n{\n  BoomScrollLayer *m_scrollLayer; // rcx\n  cocos2d::CCArray *m_dynamicObjects; // rcx\n  BoomScrollLayer *v6; // rcx\n  ListButtonBarDelegate *m_delegate; // rcx\n\n  m_scrollLayer = a1->m_scrollLayer;\n  if ( m_scrollLayer->m_dynamic )\n    m_dynamicObjects = m_scrollLayer->m_dynamicObjects;\n  else\n    m_dynamicObjects = m_scrollLayer->m_pages;\n  cocos2d::CCArray::count(m_dynamicObjects);\n  v6 = a1->m_scrollLayer;\n  if ( a1->m_useMoveAnimation )\n  {\n    BoomScrollLayer::moveToPage(v6, a2);\n  }\n  else\n  {\n    BoomScrollLayer::instantMoveToPage(v6, a2 - 1);\n    BoomScrollLayer::instantMoveToPage(a1->m_scrollLayer, a2);\n  }\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    m_delegate->listButtonBarSwitchedPage(m_delegate, a1, a2);\n}", "assembly": "; \n; ListButtonBar::goToPage from 0x14006b3b0 to 0x14006b436 (134 bytes)\n; \n; 3 xrefs:\n; > ListButtonBar::onRight @ 0x14006b44f\n; > ListButtonBar::onLeft @ 0x14006b46f\n; > <???> @ 0x1406c5fc4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14006b3b0\npush    rdi                                                            ; +0x5, 0x14006b3b5\nsub     rsp, 20h                                                       ; +0x6, 0x14006b3b6\nmov     rbx, rcx                                                       ; +0xa, 0x14006b3ba\nmov     edi, edx                                                       ; +0xd, 0x14006b3bd\nmov     rcx, [rcx+140h]                                                ; +0xf, 0x14006b3bf\ncmp     byte ptr [rcx+1C0h], 0                                         ; +0x16, 0x14006b3c6\njz      short loc_14006B3D8                                            ; +0x1d, 0x14006b3cd\nmov     rcx, [rcx+1B8h]                                                ; +0x1f, 0x14006b3cf\njmp     short loc_14006B3DF                                            ; +0x26, 0x14006b3d6\nmov     rcx, [rcx+1D8h]                                                ; +0x28, 0x14006b3d8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2f, 0x14006b3df\ncmp     byte ptr [rbx+158h], 0                                         ; +0x35, 0x14006b3e5\nmov     rcx, [rbx+140h]                                                ; +0x3c, 0x14006b3ec\njnz     short loc_14006B40D                                            ; +0x43, 0x14006b3f3\nlea     edx, [rdi-1]                                                   ; +0x45, 0x14006b3f5\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x48, 0x14006b3f8\nmov     rcx, [rbx+140h]                                                ; +0x4d, 0x14006b3fd\nmov     edx, edi                                                       ; +0x54, 0x14006b404\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x56, 0x14006b406\njmp     short loc_14006B414                                            ; +0x5b, 0x14006b40b\nmov     edx, edi                                                       ; +0x5d, 0x14006b40d\ncall    BoomScrollLayer__moveToPage                                    ; +0x5f, 0x14006b40f\nmov     rcx, [rbx+150h]                                                ; +0x64, 0x14006b414\ntest    rcx, rcx                                                       ; +0x6b, 0x14006b41b\njz      short loc_14006B42B                                            ; +0x6e, 0x14006b41e\nmov     rax, [rcx]                                                     ; +0x70, 0x14006b420\nmov     r8d, edi                                                       ; +0x73, 0x14006b423\nmov     rdx, rbx                                                       ; +0x76, 0x14006b426\ncall    qword ptr [rax]                                                ; +0x79, 0x14006b429\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7b, 0x14006b42b\nadd     rsp, 20h                                                       ; +0x80, 0x14006b430\npop     rdi                                                            ; +0x84, 0x14006b434\nretn                                                                   ; +0x85, 0x14006b435", "xrefs": ["ListButtonBar::onRight @ 0x14006b44f", "ListButtonBar::onLeft @ 0x14006b46f", "<???> @ 0x1406c5fc4"], "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"}