{"type": "func", "start": 5368977232, "end": 5368977444, "name": "BoomScrollLayer::instantMoveToPage", "pseudocode": "// \n// BoomScrollLayer::instantMoveToPage from 0x140041750 to 0x140041824 (212 bytes)\n// \n// 16 xrefs:\n// > ListButtonBar::goToPage @ 0x140078328\n// > ListButtonBar::goToPage @ 0x140078336\n// > EditButtonBar::loadFromItems @ 0x1401778ed\n// > EditButtonBar::loadFromItems @ 0x1401778fb\n// > EditButtonBar::goToPage @ 0x140177adf\n// > EditButtonBar::goToPage @ 0x140177aed\n// > EditorUI::updateCreateMenu @ 0x1401b240f\n// > EditorUI::updateCreateMenu @ 0x1401b241d\n// > GauntletSelectLayer::goToPage @ 0x1402ff489\n// > GJShopLayer::init @ 0x1403b1a0e\n// > GJShopLayer::init @ 0x1403b1a1c\n// > LevelSelectLayer::init @ 0x140441f13\n// > LevelSelectLayer::init @ 0x140441f21\n// > SecretRewardsLayer::init @ 0x14056a68a\n// > SecretRewardsLayer::init @ 0x14056a698\n// > <???> @ 0x14090f530\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:29 +0000\n// \n\nvoid __fastcall BoomScrollLayer::instantMoveToPage(__int64 a1, int a2)\n{\n  cocos2d::CCArray *v4; // rcx\n  __int64 v5; // rax\n  float *v6; // rax\n  bool v7; // zf\n  char v8; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( *(_BYTE *)(a1 + 436)\n    || a2 >= 0\n    && (!*(_BYTE *)(a1 + 456) ? (v4 = *(cocos2d::CCArray **)(a1 + 480)) : (v4 = *(cocos2d::CCArray **)(a1 + 448)),\n        a2 < (int)cocos2d::CCArray::count(v4)) )\n  {\n    cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(a1 + 504), 2);\n    v5 = *(_QWORD *)a1;\n    *(_BYTE *)(a1 + 552) = 0;\n    v6 = (float *)(*(__int64 (__fastcall **)(__int64))(v5 + 320))(a1);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, (float)(*v6 - *(float *)(a1 + 592)) * (float)-a2, 0.0);\n    (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 504) + 184LL))(*(_QWORD *)(a1 + 504), &v8);\n    v7 = *(_BYTE *)(a1 + 436) == 0;\n    *(_DWORD *)(a1 + 588) = a2;\n    if ( !v7 )\n      BoomScrollLayer::repositionPagesLooped(a1);\n    BoomScrollLayer::moveToPageEnded(a1);\n  }\n}", "assembly": "; \n; BoomScrollLayer::instantMoveToPage from 0x140041750 to 0x140041824 (212 bytes)\n; \n; 16 xrefs:\n; > ListButtonBar::goToPage @ 0x140078328\n; > ListButtonBar::goToPage @ 0x140078336\n; > EditButtonBar::loadFromItems @ 0x1401778ed\n; > EditButtonBar::loadFromItems @ 0x1401778fb\n; > EditButtonBar::goToPage @ 0x140177adf\n; > EditButtonBar::goToPage @ 0x140177aed\n; > EditorUI::updateCreateMenu @ 0x1401b240f\n; > EditorUI::updateCreateMenu @ 0x1401b241d\n; > GauntletSelectLayer::goToPage @ 0x1402ff489\n; > GJShopLayer::init @ 0x1403b1a0e\n; > GJShopLayer::init @ 0x1403b1a1c\n; > LevelSelectLayer::init @ 0x140441f13\n; > LevelSelectLayer::init @ 0x140441f21\n; > SecretRewardsLayer::init @ 0x14056a68a\n; > SecretRewardsLayer::init @ 0x14056a698\n; > <???> @ 0x14090f530\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:29 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140041750\npush    rdi                                                            ; +0x5, 0x140041755\nsub     rsp, 20h                                                       ; +0x6, 0x140041756\ncmp     byte ptr [rcx+1B4h], 0                                         ; +0xa, 0x14004175a\nmov     edi, edx                                                       ; +0x11, 0x140041761\nmov     rbx, rcx                                                       ; +0x13, 0x140041763\njnz     short loc_140041797                                            ; +0x16, 0x140041766\ntest    edx, edx                                                       ; +0x18, 0x140041768\njs      loc_140041819                                                  ; +0x1a, 0x14004176a\ncmp     byte ptr [rcx+1C8h], 0                                         ; +0x20, 0x140041770\njz      short loc_140041782                                            ; +0x27, 0x140041777\nmov     rcx, [rcx+1C0h]                                                ; +0x29, 0x140041779\njmp     short loc_140041789                                            ; +0x30, 0x140041780\nmov     rcx, [rcx+1E0h]                                                ; +0x32, 0x140041782\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x39, 0x140041789\ncmp     edi, eax                                                       ; +0x3f, 0x14004178f\njge     loc_140041819                                                  ; +0x41, 0x140041791\nmov     rcx, [rbx+1F8h]                                                ; +0x47, 0x140041797\nmov     edx, 2                                                         ; +0x4e, 0x14004179e\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x53, 0x1400417a3\nmov     rax, [rbx]                                                     ; +0x59, 0x1400417a9\nmov     rcx, rbx                                                       ; +0x5c, 0x1400417ac\nmov     byte ptr [rbx+228h], 0                                         ; +0x5f, 0x1400417af\ncall    qword ptr [rax+140h]                                           ; +0x66, 0x1400417b6\nxorps   xmm2, xmm2                                                     ; +0x6c, 0x1400417bc\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x6f, 0x1400417bf\nmovss   xmm1, dword ptr [rax]                                          ; +0x74, 0x1400417c4\nmov     eax, edi                                                       ; +0x78, 0x1400417c8\nsubss   xmm1, dword ptr [rbx+250h]                                     ; +0x7a, 0x1400417ca\nneg     eax                                                            ; +0x82, 0x1400417d2\nmovd    xmm0, eax                                                      ; +0x84, 0x1400417d4\ncvtdq2ps xmm0, xmm0                                                    ; +0x88, 0x1400417d8\nmulss   xmm1, xmm0                                                     ; +0x8b, 0x1400417db\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x8f, 0x1400417df\nmov     rcx, [rbx+1F8h]                                                ; +0x95, 0x1400417e5\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x9c, 0x1400417ec\nmov     rax, [rcx]                                                     ; +0xa1, 0x1400417f1\ncall    qword ptr [rax+0B8h]                                           ; +0xa4, 0x1400417f4\ncmp     byte ptr [rbx+1B4h], 0                                         ; +0xaa, 0x1400417fa\nmov     [rbx+24Ch], edi                                                ; +0xb1, 0x140041801\njz      short loc_140041811                                            ; +0xb7, 0x140041807\nmov     rcx, rbx                                                       ; +0xb9, 0x140041809\ncall    BoomScrollLayer__repositionPagesLooped                         ; +0xbc, 0x14004180c\nmov     rcx, rbx                                                       ; +0xc1, 0x140041811\ncall    BoomScrollLayer__moveToPageEnded                               ; +0xc4, 0x140041814\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc9, 0x140041819\nadd     rsp, 20h                                                       ; +0xce, 0x14004181e\npop     rdi                                                            ; +0xd2, 0x140041822\nretn                                                                   ; +0xd3, 0x140041823", "xrefs": ["ListButtonBar::goToPage @ 0x140078328", "ListButtonBar::goToPage @ 0x140078336", "EditButtonBar::loadFromItems @ 0x1401778ed", "EditButtonBar::loadFromItems @ 0x1401778fb", "EditButtonBar::goToPage @ 0x140177adf", "EditButtonBar::goToPage @ 0x140177aed", "EditorUI::updateCreateMenu @ 0x1401b240f", "EditorUI::updateCreateMenu @ 0x1401b241d", "GauntletSelectLayer::goToPage @ 0x1402ff489", "GJShopLayer::init @ 0x1403b1a0e", "GJShopLayer::init @ 0x1403b1a1c", "LevelSelectLayer::init @ 0x140441f13", "LevelSelectLayer::init @ 0x140441f21", "SecretRewardsLayer::init @ 0x14056a68a", "SecretRewardsLayer::init @ 0x14056a698", "<???> @ 0x14090f530"], "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"}