//
// GauntletSelectLayer::goToPage from 0x1402ff3f0 to 0x1402ff546 (342 bytes)
//
// 5 xrefs:
// > GauntletSelectLayer::setupGauntlets @ 0x1402ff35c
// > GauntletSelectLayer::setupGauntlets @ 0x1402ff36a
// > GauntletSelectLayer::onNext @ 0x1402ff3c2
// > GauntletSelectLayer::onPrev @ 0x1402ff3e2
// > ??> @ 0x14091e434
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:30:07 +0000
//
struct cocos2d::CCAction *__fastcall GauntletSelectLayer::goToPage(__int64 a1, int a2, char a3)
{
__int64 v5; // rcx
cocos2d::CCArray *v7; // rcx
__int64 v8; // rbx
cocos2d::CCNode *v9; // rcx
__int64 *v10; // rcx
__int64 v11; // rdx
__int64 v12; // rdx
__int64 v13; // rbx
struct cocos2d::CCFiniteTimeAction *v14; // rax
struct cocos2d::CCAction *v15; // rbx
v5 = *(_QWORD *)(a1 + 440);
if ( *(_BYTE *)(v5 + 456) )
v7 = *(cocos2d::CCArray **)(v5 + 448);
else
v7 = *(cocos2d::CCArray **)(v5 + 480);
cocos2d::CCArray::count(v7);
v8 = *(_QWORD *)(a1 + 440);
if ( *(_BYTE *)(v8 + 552) )
{
v9 = *(cocos2d::CCNode **)(v8 + 504);
*(_BYTE *)(v8 + 552) = 0;
cocos2d::CCNode::stopActionByTag(v9, 2);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v8 + 504) + 184LL))(*(_QWORD *)(v8 + 504), v8 + 496);
BoomScrollLayer::moveToPageEnded(v8);
}
v10 = *(__int64 **)(a1 + 440);
if ( a3 )
BoomScrollLayer::instantMoveToPage((__int64)v10, a2);
else
BoomScrollLayer::moveToPage(v10, a2);
LOBYTE(v11) = *(_QWORD *)(a1 + 440) != 0;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 448) + 336LL))(*(_QWORD *)(a1 + 448), v11);
LOBYTE(v12) = *(_QWORD *)(a1 + 440) != 0;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 456) + 336LL))(*(_QWORD *)(a1 + 456), v12);
*(_BYTE *)(a1 + 504) = 1;
cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 1001);
v13 = cocos2d::CCCallFunc::create(a1, GauntletSelectLayer::unblockPlay);
v14 = cocos2d::CCDelayTime::create(0.30000001);
v15 = cocos2d::CCSequence::create(v14, v13, 0);
(*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v15 + 64LL))(v15, 1001);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v15);
}