{"type": "func", "start": 5370782960, "end": 5370783299, "name": "GauntletSelectLayer::goToPage", "pseudocode": "// \n// GauntletSelectLayer::goToPage from 0x1401fa4f0 to 0x1401fa643 (339 bytes)\n// \n// 5 xrefs:\n// > GauntletSelectLayer::setupGauntlets @ 0x1401fa45c\n// > GauntletSelectLayer::setupGauntlets @ 0x1401fa46a\n// > GauntletSelectLayer::onNext @ 0x1401fa4c2\n// > GauntletSelectLayer::onPrev @ 0x1401fa4e2\n// > <???> @ 0x1406cc9c0\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 GauntletSelectLayer::goToPage(GauntletSelectLayer *a1, int a2, bool a3)\n{\n  float v3; // xmm3_4\n  BoomScrollLayer *m_scrollLayer; // rcx\n  cocos2d::CCArray *m_dynamicObjects; // rcx\n  BoomScrollLayer *v9; // rbx\n  cocos2d::CCNode *m_extendedLayer; // rcx\n  BoomScrollLayer *v11; // rcx\n  _BOOL8 v12; // rdx\n  _BOOL8 v13; // rdx\n  __int64 v14; // rbx\n  struct cocos2d::CCDelayTime *v15; // rax\n  struct cocos2d::CCSequence *v16; // rbx\n  cocos2d::ccColor3B *v17; // r8\n  float v18; // [rsp+50h] [rbp+28h]\n\n  m_scrollLayer = a1->m_scrollLayer;\n  if ( m_scrollLayer->m_dynamic )\n    m_dynamicObjects = m_scrollLayer->m_dynamicObjects;\n  else\n    m_dynamicObjects = m_scrollLayer->m_pages;\n  cocos2d::CCArray::count(m_dynamicObjects);\n  v9 = a1->m_scrollLayer;\n  if ( v9->m_pageMoving )\n  {\n    m_extendedLayer = v9->m_extendedLayer;\n    v9->m_pageMoving = 0;\n    cocos2d::CCNode::stopActionByTag(m_extendedLayer, 2);\n    v9->m_extendedLayer->setPosition_0(v9->m_extendedLayer, &v9->m_position);\n    BoomScrollLayer::moveToPageEnded(v9);\n  }\n  v11 = a1->m_scrollLayer;\n  if ( a3 )\n    BoomScrollLayer::instantMoveToPage(v11, a2);\n  else\n    BoomScrollLayer::moveToPage(v11, a2);\n  LOBYTE(v12) = a1->m_scrollLayer != nullptr;\n  a1->m_leftButton->setVisible(a1->m_leftButton, v12);\n  LOBYTE(v13) = a1->m_scrollLayer != nullptr;\n  a1->m_rightButton->setVisible(a1->m_rightButton, v13);\n  a1->m_playBlocked = 1;\n  cocos2d::CCNode::stopActionByTag(a1, 1001);\n  v14 = cocos2d::CCCallFunc::create(a1, GauntletSelectLayer::unblockPlay);\n  v15 = cocos2d::CCDelayTime::create(0.30000001);\n  v16 = cocos2d::CCSequence::create(v15, v14, 0);\n  v16->setTag(v16, 1001);\n  cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v16, v17, v3, v18);\n}", "assembly": "; \n; GauntletSelectLayer::goToPage from 0x1401fa4f0 to 0x1401fa643 (339 bytes)\n; \n; 5 xrefs:\n; > GauntletSelectLayer::setupGauntlets @ 0x1401fa45c\n; > GauntletSelectLayer::setupGauntlets @ 0x1401fa46a\n; > GauntletSelectLayer::onNext @ 0x1401fa4c2\n; > GauntletSelectLayer::onPrev @ 0x1401fa4e2\n; > <???> @ 0x1406cc9c0\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_0], rbx                                               ; +0x0, 0x1401fa4f0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1401fa4f5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1401fa4fa\npush    rdi                                                            ; +0xf, 0x1401fa4ff\nsub     rsp, 20h                                                       ; +0x10, 0x1401fa500\nmov     rdi, rcx                                                       ; +0x14, 0x1401fa504\nmovzx   ebp, r8b                                                       ; +0x17, 0x1401fa507\nmov     rcx, [rcx+1B8h]                                                ; +0x1b, 0x1401fa50b\nmov     esi, edx                                                       ; +0x22, 0x1401fa512\ncmp     byte ptr [rcx+1C0h], 0                                         ; +0x24, 0x1401fa514\njz      short loc_1401FA526                                            ; +0x2b, 0x1401fa51b\nmov     rcx, [rcx+1B8h]                                                ; +0x2d, 0x1401fa51d\njmp     short loc_1401FA52D                                            ; +0x34, 0x1401fa524\nmov     rcx, [rcx+1D8h]                                                ; +0x36, 0x1401fa526\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3d, 0x1401fa52d\nmov     rbx, [rdi+1B8h]                                                ; +0x43, 0x1401fa533\ncmp     byte ptr [rbx+220h], 0                                         ; +0x4a, 0x1401fa53a\njz      short loc_1401FA57B                                            ; +0x51, 0x1401fa541\nmov     rcx, [rbx+1F0h]                                                ; +0x53, 0x1401fa543\nmov     edx, 2                                                         ; +0x5a, 0x1401fa54a\nmov     byte ptr [rbx+220h], 0                                         ; +0x5f, 0x1401fa54f\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x66, 0x1401fa556\nmov     rcx, [rbx+1F0h]                                                ; +0x6c, 0x1401fa55c\nlea     rdx, [rbx+1E8h]                                                ; +0x73, 0x1401fa563\nmov     rax, [rcx]                                                     ; +0x7a, 0x1401fa56a\ncall    qword ptr [rax+0B8h]                                           ; +0x7d, 0x1401fa56d\nmov     rcx, rbx                                                       ; +0x83, 0x1401fa573\ncall    BoomScrollLayer__moveToPageEnded                               ; +0x86, 0x1401fa576\nmov     rcx, [rdi+1B8h]                                                ; +0x8b, 0x1401fa57b\nmov     edx, esi                                                       ; +0x92, 0x1401fa582\ntest    bpl, bpl                                                       ; +0x94, 0x1401fa584\njz      short loc_1401FA590                                            ; +0x97, 0x1401fa587\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x99, 0x1401fa589\njmp     short loc_1401FA595                                            ; +0x9e, 0x1401fa58e\ncall    BoomScrollLayer__moveToPage                                    ; +0xa0, 0x1401fa590\nmov     rcx, [rdi+1C0h]                                                ; +0xa5, 0x1401fa595\ncmp     qword ptr [rdi+1B8h], 0                                        ; +0xac, 0x1401fa59c\nsetnz   dl                                                             ; +0xb4, 0x1401fa5a4\nmov     rax, [rcx]                                                     ; +0xb7, 0x1401fa5a7\ncall    qword ptr [rax+140h]                                           ; +0xba, 0x1401fa5aa\nmov     rcx, [rdi+1C8h]                                                ; +0xc0, 0x1401fa5b0\ncmp     qword ptr [rdi+1B8h], 0                                        ; +0xc7, 0x1401fa5b7\nsetnz   dl                                                             ; +0xcf, 0x1401fa5bf\nmov     rax, [rcx]                                                     ; +0xd2, 0x1401fa5c2\ncall    qword ptr [rax+140h]                                           ; +0xd5, 0x1401fa5c5\nmov     edx, 3E9h                                                      ; +0xdb, 0x1401fa5cb\nmov     byte ptr [rdi+1F8h], 1                                         ; +0xe0, 0x1401fa5d0\nmov     rcx, rdi                                                       ; +0xe7, 0x1401fa5d7\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0xea, 0x1401fa5da\nlea     rdx, GauntletSelectLayer__unblockPlay                          ; +0xf0, 0x1401fa5e0\nmov     rcx, rdi                                                       ; +0xf7, 0x1401fa5e7\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0xfa, 0x1401fa5ea\nmovss   xmm0, cs:dword_140622AA0                                       ; +0x100, 0x1401fa5f0\nmov     rbx, rax                                                       ; +0x108, 0x1401fa5f8\ncall    cs:?create@CCDelayTime@cocos2d@@SAPEAV12@M@Z; cocos2d::CCDelayTime::create(float) ; +0x10b, 0x1401fa5fb\nxor     r8d, r8d                                                       ; +0x111, 0x1401fa601\nmov     rdx, rbx                                                       ; +0x114, 0x1401fa604\nmov     rcx, rax                                                       ; +0x117, 0x1401fa607\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x11a, 0x1401fa60a\nmov     edx, 3E9h                                                      ; +0x120, 0x1401fa610\nmov     rcx, rax                                                       ; +0x125, 0x1401fa615\nmov     rbx, rax                                                       ; +0x128, 0x1401fa618\nmov     r8, [rax]                                                      ; +0x12b, 0x1401fa61b\ncall    qword ptr [r8+40h]                                             ; +0x12e, 0x1401fa61e\nmov     rdx, rbx                                                       ; +0x132, 0x1401fa622\nmov     rcx, rdi                                                       ; +0x135, 0x1401fa625\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x138, 0x1401fa628\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x13d, 0x1401fa62d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x142, 0x1401fa632\nadd     rsp, 20h                                                       ; +0x147, 0x1401fa637\npop     rdi                                                            ; +0x14b, 0x1401fa63b\njmp     cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x14c, 0x1401fa63c", "xrefs": ["GauntletSelectLayer::setupGauntlets @ 0x1401fa45c", "GauntletSelectLayer::setupGauntlets @ 0x1401fa46a", "GauntletSelectLayer::onNext @ 0x1401fa4c2", "GauntletSelectLayer::onPrev @ 0x1401fa4e2", "<???> @ 0x1406cc9c0"], "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"}