{"type": "func", "start": 4298794288, "end": 4298794504, "name": "BoomScrollLayer::instantMoveToPage", "pseudocode": "// \n// BoomScrollLayer::instantMoveToPage from 0x1003a6530 to 0x1003a6608 (216 bytes)\n// \n// 20 xrefs:\n// > WorldSelectLayer::goToPage @ 0x1003c2c24\n// > ListButtonBar::onLeft @ 0x1003f03a7\n// > ListButtonBar::onLeft @ 0x1003f03b6\n// > ListButtonBar::onRight @ 0x1003f0443\n// > ListButtonBar::onRight @ 0x1003f0452\n// > ListButtonBar::goToPage @ 0x1003f04e0\n// > ListButtonBar::goToPage @ 0x1003f04ee\n// > LevelSelectLayer::init @ 0x100432430\n// > LevelSelectLayer::init @ 0x10043246a\n// > GauntletSelectLayer::goToPage @ 0x100572f5a\n// > EditButtonBar::loadFromItems @ 0x1005e2367\n// > EditButtonBar::loadFromItems @ 0x1005e2375\n// > EditButtonBar::onLeft @ 0x1005e24d2\n// > EditButtonBar::onLeft @ 0x1005e24eb\n// > EditButtonBar::onRight @ 0x1005e251e\n// > EditButtonBar::onRight @ 0x1005e2537\n// > EditButtonBar::goToPage @ 0x1005e2582\n// > EditButtonBar::goToPage @ 0x1005e2594\n// > SecretRewardsLayer::init @ 0x100631f9c\n// > SecretRewardsLayer::init @ 0x100631faa\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 __fastcall BoomScrollLayer::instantMoveToPage(BoomScrollLayer *a1, int a2)\n{\n  float *v2; // rax\n  float v3[2]; // [rsp+Ch] [rbp-24h] BYREF\n  float v4; // [rsp+14h] [rbp-1Ch]\n\n  if ( a1->m_looped || a2 >= 0 && (int)sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) > a2 )\n  {\n    cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n    a1->m_pageMoving = 0;\n    v4 = (float)-a2;\n    v2 = (float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1);\n    sub_10028CBE0(v3, (float)(*v2 - a1->m_pageOffset) * v4, 0.0);\n    ((void (__fastcall *)(ExtendedLayer *, float *))a1->m_extendedLayer->setPosition)(a1->m_extendedLayer, v3);\n    a1->m_page = a2;\n    if ( a1->m_looped )\n      BoomScrollLayer::repositionPagesLooped(a1);\n    BoomScrollLayer::moveToPageEnded(a1);\n  }\n}", "assembly": "; \n; BoomScrollLayer::instantMoveToPage from 0x1003a6530 to 0x1003a6608 (216 bytes)\n; \n; 20 xrefs:\n; > WorldSelectLayer::goToPage @ 0x1003c2c24\n; > ListButtonBar::onLeft @ 0x1003f03a7\n; > ListButtonBar::onLeft @ 0x1003f03b6\n; > ListButtonBar::onRight @ 0x1003f0443\n; > ListButtonBar::onRight @ 0x1003f0452\n; > ListButtonBar::goToPage @ 0x1003f04e0\n; > ListButtonBar::goToPage @ 0x1003f04ee\n; > LevelSelectLayer::init @ 0x100432430\n; > LevelSelectLayer::init @ 0x10043246a\n; > GauntletSelectLayer::goToPage @ 0x100572f5a\n; > EditButtonBar::loadFromItems @ 0x1005e2367\n; > EditButtonBar::loadFromItems @ 0x1005e2375\n; > EditButtonBar::onLeft @ 0x1005e24d2\n; > EditButtonBar::onLeft @ 0x1005e24eb\n; > EditButtonBar::onRight @ 0x1005e251e\n; > EditButtonBar::onRight @ 0x1005e2537\n; > EditButtonBar::goToPage @ 0x1005e2582\n; > EditButtonBar::goToPage @ 0x1005e2594\n; > SecretRewardsLayer::init @ 0x100631f9c\n; > SecretRewardsLayer::init @ 0x100631faa\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\npush    rbp                                                            ; +0x0, 0x1003a6530\nmov     rbp, rsp                                                       ; +0x1, 0x1003a6531\npush    r15                                                            ; +0x4, 0x1003a6534\npush    r14                                                            ; +0x6, 0x1003a6536\npush    rbx                                                            ; +0x8, 0x1003a6538\nsub     rsp, 18h                                                       ; +0x9, 0x1003a6539\nmov     r14d, esi                                                      ; +0xd, 0x1003a653d\nmov     rbx, rdi                                                       ; +0x10, 0x1003a6540\ncmp     byte ptr [rdi+1ACh], 0                                         ; +0x13, 0x1003a6543\njnz     short loc_1003A6578                                            ; +0x1a, 0x1003a654a\ntest    r14d, r14d                                                     ; +0x1c, 0x1003a654c\njs      loc_1003A65FD                                                  ; +0x1f, 0x1003a654f\nmovzx   eax, byte ptr [rbx+1C0h]                                       ; +0x25, 0x1003a6555\nxor     eax, 1                                                         ; +0x2c, 0x1003a655c\nshl     eax, 5                                                         ; +0x2f, 0x1003a655f\nmov     rdi, [rax+rbx+1B8h]                                            ; +0x32, 0x1003a6562\ncall    sub_100720070                                                  ; +0x3a, 0x1003a656a\ncmp     eax, r14d                                                      ; +0x3f, 0x1003a656f\njle     loc_1003A65FD                                                  ; +0x42, 0x1003a6572\nmov     rdi, [rbx+1F0h]                                                ; +0x48, 0x1003a6578\nmov     esi, 2                                                         ; +0x4f, 0x1003a657f\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x54, 0x1003a6584\nmov     byte ptr [rbx+220h], 0                                         ; +0x59, 0x1003a6589\nmov     eax, r14d                                                      ; +0x60, 0x1003a6590\nneg     eax                                                            ; +0x63, 0x1003a6593\ncvtsi2ss xmm0, eax                                                     ; +0x65, 0x1003a6595\nmovss   [rbp+var_1C], xmm0                                             ; +0x69, 0x1003a6599\nmov     rax, [rbx]                                                     ; +0x6e, 0x1003a659e\nmov     rdi, rbx                                                       ; +0x71, 0x1003a65a1\ncall    qword ptr [rax+138h]                                           ; +0x74, 0x1003a65a4\nmovss   xmm0, dword ptr [rax]                                          ; +0x7a, 0x1003a65aa\nsubss   xmm0, dword ptr [rbx+248h]                                     ; +0x7e, 0x1003a65ae\nmulss   xmm0, [rbp+var_1C]                                             ; +0x86, 0x1003a65b6\nlea     r15, [rbp+var_24]                                              ; +0x8b, 0x1003a65bb\nxorps   xmm1, xmm1                                                     ; +0x8f, 0x1003a65bf\nmov     rdi, r15                                                       ; +0x92, 0x1003a65c2\ncall    sub_10028CBE0                                                  ; +0x95, 0x1003a65c5\nmov     rdi, [rbx+1F0h]                                                ; +0x9a, 0x1003a65ca\nmov     rax, [rdi]                                                     ; +0xa1, 0x1003a65d1\nmov     rsi, r15                                                       ; +0xa4, 0x1003a65d4\ncall    qword ptr [rax+0B8h]                                           ; +0xa7, 0x1003a65d7\nmov     [rbx+244h], r14d                                               ; +0xad, 0x1003a65dd\ncmp     byte ptr [rbx+1ACh], 1                                         ; +0xb4, 0x1003a65e4\njnz     short loc_1003A65F5                                            ; +0xbb, 0x1003a65eb\nmov     rdi, rbx                                                       ; +0xbd, 0x1003a65ed\ncall    BoomScrollLayer__repositionPagesLooped                         ; +0xc0, 0x1003a65f0\nmov     rdi, rbx                                                       ; +0xc5, 0x1003a65f5\ncall    BoomScrollLayer__moveToPageEnded                               ; +0xc8, 0x1003a65f8\nadd     rsp, 18h                                                       ; +0xcd, 0x1003a65fd\npop     rbx                                                            ; +0xd1, 0x1003a6601\npop     r14                                                            ; +0xd2, 0x1003a6602\npop     r15                                                            ; +0xd4, 0x1003a6604\npop     rbp                                                            ; +0xd6, 0x1003a6606\nretn                                                                   ; +0xd7, 0x1003a6607", "xrefs": ["WorldSelectLayer::goToPage @ 0x1003c2c24", "ListButtonBar::onLeft @ 0x1003f03a7", "ListButtonBar::onLeft @ 0x1003f03b6", "ListButtonBar::onRight @ 0x1003f0443", "ListButtonBar::onRight @ 0x1003f0452", "ListButtonBar::goToPage @ 0x1003f04e0", "ListButtonBar::goToPage @ 0x1003f04ee", "LevelSelectLayer::init @ 0x100432430", "LevelSelectLayer::init @ 0x10043246a", "GauntletSelectLayer::goToPage @ 0x100572f5a", "EditButtonBar::loadFromItems @ 0x1005e2367", "EditButtonBar::loadFromItems @ 0x1005e2375", "EditButtonBar::onLeft @ 0x1005e24d2", "EditButtonBar::onLeft @ 0x1005e24eb", "EditButtonBar::onRight @ 0x1005e251e", "EditButtonBar::onRight @ 0x1005e2537", "EditButtonBar::goToPage @ 0x1005e2582", "EditButtonBar::goToPage @ 0x1005e2594", "SecretRewardsLayer::init @ 0x100631f9c", "SecretRewardsLayer::init @ 0x100631faa"], "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"}