{"type": "func", "start": 3939236, "end": 3939352, "name": "BoomScrollLayer::instantMoveToPage", "pseudocode": "// \n// BoomScrollLayer::instantMoveToPage from 0x3c1ba4 to 0x3c1c18 (116 bytes)\n// \n// 12 xrefs:\n// > ListButtonBar::goToPage @ 0x3e6a70\n// > ListButtonBar::goToPage @ 0x3e6a7a\n// > EditButtonBar::goToPage @ 0x4dde48\n// > EditButtonBar::goToPage @ 0x4dde52\n// > EditButtonBar::loadFromItems @ 0x4de5fe\n// > EditButtonBar::loadFromItems @ 0x4de608\n// > LevelSelectLayer::init @ 0x512a04\n// > LevelSelectLayer::init @ 0x512a0e\n// > GauntletSelectLayer::goToPage @ 0x60a258\n// > WorldSelectLayer::goToPage @ 0x62cc5a\n// > SecretRewardsLayer::init @ 0x6cf324\n// > SecretRewardsLayer::init @ 0x6cf32e\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:31 +0000\n// \n\nsigned int __fastcall BoomScrollLayer::instantMoveToPage(signed int this, int a2)\n{\n  signed int v2; // r4\n  int v4; // r1\n  int v5; // r2\n  int v6; // r3\n  _BYTE v7[8]; // [sp+4h] [bp-10h] BYREF\n\n  v2 = this;\n  if ( *(_BYTE *)(this + 336)\n    || a2 >= 0 && (this = BoomScrollLayer::getTotalPages((cocos2d::CCArray **)this), a2 < this) )\n  {\n    cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(v2 + 384), 2);\n    *(_BYTE *)(v2 + 424) = 0;\n    BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)v7, (float *)v2, a2);\n    (*(void (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(v2 + 384) + 92))(*(_DWORD *)(v2 + 384), v7);\n    v6 = *(unsigned __int8 *)(v2 + 336);\n    *(_DWORD *)(v2 + 460) = a2;\n    if ( v6 )\n      BoomScrollLayer::repositionPagesLooped((BoomScrollLayer *)v2);\n    return BoomScrollLayer::moveToPageEnded((BoomScrollLayer *)v2, v4, v5, v6);\n  }\n  return this;\n}", "assembly": "; \n; BoomScrollLayer::instantMoveToPage from 0x3c1ba4 to 0x3c1c18 (116 bytes)\n; \n; 12 xrefs:\n; > ListButtonBar::goToPage @ 0x3e6a70\n; > ListButtonBar::goToPage @ 0x3e6a7a\n; > EditButtonBar::goToPage @ 0x4dde48\n; > EditButtonBar::goToPage @ 0x4dde52\n; > EditButtonBar::loadFromItems @ 0x4de5fe\n; > EditButtonBar::loadFromItems @ 0x4de608\n; > LevelSelectLayer::init @ 0x512a04\n; > LevelSelectLayer::init @ 0x512a0e\n; > GauntletSelectLayer::goToPage @ 0x60a258\n; > WorldSelectLayer::goToPage @ 0x62cc5a\n; > SecretRewardsLayer::init @ 0x6cf324\n; > SecretRewardsLayer::init @ 0x6cf32e\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:31 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x3C1BAC)                ; +0x0, 0x3c1ba4\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x3c1ba6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3c1ba8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3c1baa\nSUB             SP, SP, #0x14                                          ; +0x8, 0x3c1bac\nMOV             R4, R0                                                 ; +0xa, 0x3c1bae\nLDR             R2, [R3]                                               ; +0xc, 0x3c1bb0\nMOV             R5, R1                                                 ; +0xe, 0x3c1bb2\nMOV             R6, R3                                                 ; +0x10, 0x3c1bb4\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x12, 0x3c1bb6\nLDRB.W          R2, [R0,#0x150]                                        ; +0x14, 0x3c1bb8\nCBNZ            R2, loc_3C1BCA                                         ; +0x18, 0x3c1bbc\nCMP             R1, #0                                                 ; +0x1a, 0x3c1bbe\nBLT             loc_3C1C08                                             ; +0x1c, 0x3c1bc0\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x1e, 0x3c1bc2\nCMP             R5, R0                                                 ; +0x22, 0x3c1bc6\nBGE             loc_3C1C08                                             ; +0x24, 0x3c1bc8\nADD             R7, SP, #0x14+var_10                                   ; +0x26, 0x3c1bca\nLDR.W           R0, [R4,#0x180]; this                                  ; +0x28, 0x3c1bcc\nMOVS            R1, #2; int                                            ; +0x2c, 0x3c1bd0\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x2e, 0x3c1bd2\nMOVS            R3, #0                                                 ; +0x32, 0x3c1bd6\nMOV             R0, R7; this                                           ; +0x34, 0x3c1bd8\nSTRB.W          R3, [R4,#0x1A8]                                        ; +0x36, 0x3c1bda\nMOV             R1, R4; int                                            ; +0x3a, 0x3c1bde\nMOV             R2, R5                                                 ; +0x3c, 0x3c1be0\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x3e, 0x3c1be2\nLDR.W           R0, [R4,#0x180]                                        ; +0x42, 0x3c1be6\nMOV             R1, R7                                                 ; +0x46, 0x3c1bea\nLDR             R3, [R0]                                               ; +0x48, 0x3c1bec\nLDR             R3, [R3,#0x5C]                                         ; +0x4a, 0x3c1bee\nBLX             R3                                                     ; +0x4c, 0x3c1bf0\nLDRB.W          R3, [R4,#0x150]                                        ; +0x4e, 0x3c1bf2\nSTR.W           R5, [R4,#0x1CC]                                        ; +0x52, 0x3c1bf6\nCBZ             R3, loc_3C1C02                                         ; +0x56, 0x3c1bfa\nMOV             R0, R4; this                                           ; +0x58, 0x3c1bfc\nBL              _ZN15BoomScrollLayer21repositionPagesLoopedEv; BoomScrollLayer::repositionPagesLooped(void) ; +0x5a, 0x3c1bfe\nMOV             R0, R4; this                                           ; +0x5e, 0x3c1c02\nBL              _ZN15BoomScrollLayer15moveToPageEndedEv; BoomScrollLayer::moveToPageEnded(void) ; +0x60, 0x3c1c04\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x64, 0x3c1c08\nLDR             R3, [R6]                                               ; +0x66, 0x3c1c0a\nCMP             R2, R3                                                 ; +0x68, 0x3c1c0c\nBEQ             loc_3C1C14                                             ; +0x6a, 0x3c1c0e\nBLX             __stack_chk_fail                                       ; +0x6c, 0x3c1c10\nADD             SP, SP, #0x14                                          ; +0x70, 0x3c1c14\nPOP             {R4-R7,PC}                                             ; +0x72, 0x3c1c16", "xrefs": ["ListButtonBar::goToPage @ 0x3e6a70", "ListButtonBar::goToPage @ 0x3e6a7a", "EditButtonBar::goToPage @ 0x4dde48", "EditButtonBar::goToPage @ 0x4dde52", "EditButtonBar::loadFromItems @ 0x4de5fe", "EditButtonBar::loadFromItems @ 0x4de608", "LevelSelectLayer::init @ 0x512a04", "LevelSelectLayer::init @ 0x512a0e", "GauntletSelectLayer::goToPage @ 0x60a258", "WorldSelectLayer::goToPage @ 0x62cc5a", "SecretRewardsLayer::init @ 0x6cf324", "SecretRewardsLayer::init @ 0x6cf32e"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}