{"type": "func", "start": 5368962576, "end": 5368962788, "name": "BoomScrollLayer::instantMoveToPage", "pseudocode": "// \n// BoomScrollLayer::instantMoveToPage from 0x14003de10 to 0x14003dee4 (212 bytes)\n// \n// 20 xrefs:\n// > ListButtonBar::goToPage @ 0x14006b3f8\n// > ListButtonBar::goToPage @ 0x14006b406\n// > EditButtonBar::loadFromItems @ 0x1400d4e88\n// > EditButtonBar::loadFromItems @ 0x1400d4e96\n// > EditButtonBar::goToPage @ 0x1400d4f2f\n// > EditButtonBar::goToPage @ 0x1400d4f47\n// > EditButtonBar::onRight @ 0x1400d4f97\n// > EditButtonBar::onRight @ 0x1400d4fb5\n// > EditButtonBar::onLeft @ 0x1400d5003\n// > EditButtonBar::onLeft @ 0x1400d501c\n// > EditorUI::updateCreateMenu @ 0x14010f3b2\n// > EditorUI::updateCreateMenu @ 0x14010f3c0\n// > GauntletSelectLayer::goToPage @ 0x1401fa589\n// > GJShopLayer::init @ 0x1402ab6be\n// > GJShopLayer::init @ 0x1402ab6cc\n// > LevelSelectLayer::init @ 0x140318c48\n// > LevelSelectLayer::init @ 0x140318c57\n// > SecretRewardsLayer::init @ 0x1403d4c38\n// > SecretRewardsLayer::init @ 0x1403d4c46\n// > <???> @ 0x1406c4038\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 BoomScrollLayer::instantMoveToPage(BoomScrollLayer *a1, int a2)\n{\n  cocos2d::CCArray *m_pages; // rcx\n  BoomScrollLayer_vtbl *v5; // rax\n  float *v6; // rax\n  bool v7; // zf\n  cocos2d::CCPoint v8; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( a1->m_looped\n    || a2 >= 0\n    && (!a1->m_dynamic ? (m_pages = a1->m_pages) : (m_pages = a1->m_dynamicObjects),\n        a2 < (int)cocos2d::CCArray::count(m_pages)) )\n  {\n    cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n    v5 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    a1->m_pageMoving = 0;\n    v6 = (float *)v5->getContentSize(a1);\n    cocos2d::CCPoint::CCPoint(&v8, (float)(*v6 - a1->m_pageOffset) * (float)-a2, 0.0);\n    a1->m_extendedLayer->setPosition_0(a1->m_extendedLayer, &v8);\n    v7 = !a1->m_looped;\n    a1->m_page = a2;\n    if ( !v7 )\n      BoomScrollLayer::repositionPagesLooped(a1);\n    BoomScrollLayer::moveToPageEnded(a1);\n  }\n}", "assembly": "; \n; BoomScrollLayer::instantMoveToPage from 0x14003de10 to 0x14003dee4 (212 bytes)\n; \n; 20 xrefs:\n; > ListButtonBar::goToPage @ 0x14006b3f8\n; > ListButtonBar::goToPage @ 0x14006b406\n; > EditButtonBar::loadFromItems @ 0x1400d4e88\n; > EditButtonBar::loadFromItems @ 0x1400d4e96\n; > EditButtonBar::goToPage @ 0x1400d4f2f\n; > EditButtonBar::goToPage @ 0x1400d4f47\n; > EditButtonBar::onRight @ 0x1400d4f97\n; > EditButtonBar::onRight @ 0x1400d4fb5\n; > EditButtonBar::onLeft @ 0x1400d5003\n; > EditButtonBar::onLeft @ 0x1400d501c\n; > EditorUI::updateCreateMenu @ 0x14010f3b2\n; > EditorUI::updateCreateMenu @ 0x14010f3c0\n; > GauntletSelectLayer::goToPage @ 0x1401fa589\n; > GJShopLayer::init @ 0x1402ab6be\n; > GJShopLayer::init @ 0x1402ab6cc\n; > LevelSelectLayer::init @ 0x140318c48\n; > LevelSelectLayer::init @ 0x140318c57\n; > SecretRewardsLayer::init @ 0x1403d4c38\n; > SecretRewardsLayer::init @ 0x1403d4c46\n; > <???> @ 0x1406c4038\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_8], rbx                                               ; +0x0, 0x14003de10\npush    rdi                                                            ; +0x5, 0x14003de15\nsub     rsp, 20h                                                       ; +0x6, 0x14003de16\ncmp     byte ptr [rcx+1ACh], 0                                         ; +0xa, 0x14003de1a\nmov     edi, edx                                                       ; +0x11, 0x14003de21\nmov     rbx, rcx                                                       ; +0x13, 0x14003de23\njnz     short loc_14003DE57                                            ; +0x16, 0x14003de26\ntest    edx, edx                                                       ; +0x18, 0x14003de28\njs      loc_14003DED9                                                  ; +0x1a, 0x14003de2a\ncmp     byte ptr [rcx+1C0h], 0                                         ; +0x20, 0x14003de30\njz      short loc_14003DE42                                            ; +0x27, 0x14003de37\nmov     rcx, [rcx+1B8h]                                                ; +0x29, 0x14003de39\njmp     short loc_14003DE49                                            ; +0x30, 0x14003de40\nmov     rcx, [rcx+1D8h]                                                ; +0x32, 0x14003de42\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x39, 0x14003de49\ncmp     edi, eax                                                       ; +0x3f, 0x14003de4f\njge     loc_14003DED9                                                  ; +0x41, 0x14003de51\nmov     rcx, [rbx+1F0h]                                                ; +0x47, 0x14003de57\nmov     edx, 2                                                         ; +0x4e, 0x14003de5e\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x53, 0x14003de63\nmov     rax, [rbx]                                                     ; +0x59, 0x14003de69\nmov     rcx, rbx                                                       ; +0x5c, 0x14003de6c\nmov     byte ptr [rbx+220h], 0                                         ; +0x5f, 0x14003de6f\ncall    qword ptr [rax+130h]                                           ; +0x66, 0x14003de76\nxorps   xmm2, xmm2                                                     ; +0x6c, 0x14003de7c\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x6f, 0x14003de7f\nmovss   xmm1, dword ptr [rax]                                          ; +0x74, 0x14003de84\nmov     eax, edi                                                       ; +0x78, 0x14003de88\nsubss   xmm1, dword ptr [rbx+248h]                                     ; +0x7a, 0x14003de8a\nneg     eax                                                            ; +0x82, 0x14003de92\nmovd    xmm0, eax                                                      ; +0x84, 0x14003de94\ncvtdq2ps xmm0, xmm0                                                    ; +0x88, 0x14003de98\nmulss   xmm1, xmm0                                                     ; +0x8b, 0x14003de9b\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x8f, 0x14003de9f\nmov     rcx, [rbx+1F0h]                                                ; +0x95, 0x14003dea5\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x9c, 0x14003deac\nmov     rax, [rcx]                                                     ; +0xa1, 0x14003deb1\ncall    qword ptr [rax+0B8h]                                           ; +0xa4, 0x14003deb4\ncmp     byte ptr [rbx+1ACh], 0                                         ; +0xaa, 0x14003deba\nmov     [rbx+244h], edi                                                ; +0xb1, 0x14003dec1\njz      short loc_14003DED1                                            ; +0xb7, 0x14003dec7\nmov     rcx, rbx                                                       ; +0xb9, 0x14003dec9\ncall    BoomScrollLayer__repositionPagesLooped                         ; +0xbc, 0x14003decc\nmov     rcx, rbx                                                       ; +0xc1, 0x14003ded1\ncall    BoomScrollLayer__moveToPageEnded                               ; +0xc4, 0x14003ded4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc9, 0x14003ded9\nadd     rsp, 20h                                                       ; +0xce, 0x14003dede\npop     rdi                                                            ; +0xd2, 0x14003dee2\nretn                                                                   ; +0xd3, 0x14003dee3", "xrefs": ["ListButtonBar::goToPage @ 0x14006b3f8", "ListButtonBar::goToPage @ 0x14006b406", "EditButtonBar::loadFromItems @ 0x1400d4e88", "EditButtonBar::loadFromItems @ 0x1400d4e96", "EditButtonBar::goToPage @ 0x1400d4f2f", "EditButtonBar::goToPage @ 0x1400d4f47", "EditButtonBar::onRight @ 0x1400d4f97", "EditButtonBar::onRight @ 0x1400d4fb5", "EditButtonBar::onLeft @ 0x1400d5003", "EditButtonBar::onLeft @ 0x1400d501c", "EditorUI::updateCreateMenu @ 0x14010f3b2", "EditorUI::updateCreateMenu @ 0x14010f3c0", "GauntletSelectLayer::goToPage @ 0x1401fa589", "GJShopLayer::init @ 0x1402ab6be", "GJShopLayer::init @ 0x1402ab6cc", "LevelSelectLayer::init @ 0x140318c48", "LevelSelectLayer::init @ 0x140318c57", "SecretRewardsLayer::init @ 0x1403d4c38", "SecretRewardsLayer::init @ 0x1403d4c46", "<???> @ 0x1406c4038"], "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"}