{"type": "func", "start": 4300680992, "end": 4300681228, "name": "GauntletSelectLayer::goToPage", "pseudocode": "// \n// GauntletSelectLayer::goToPage from 0x100572f20 to 0x10057300c (236 bytes)\n// \n// 4 xrefs:\n// > GauntletSelectLayer::onPrev @ 0x100571e66\n// > GauntletSelectLayer::onNext @ 0x100571e86\n// > GauntletSelectLayer::setupGauntlets @ 0x1005724dd\n// > GauntletSelectLayer::setupGauntlets @ 0x1005724ec\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 GauntletSelectLayer::goToPage(GauntletSelectLayer *a1, int a2, bool a3)\n{\n  _BOOL4 v3; // r15d\n  BoomScrollLayer *m_scrollLayer; // rdi\n  cocos2d::CCDelayTime *v6; // r14\n  cocos2d::CCCallFunc *v7; // rax\n  cocos2d::CCSequence *v8; // r14\n\n  v3 = a3;\n  BoomScrollLayer::getTotalPages(a1->m_scrollLayer);\n  BoomScrollLayer::quickUpdate(a1->m_scrollLayer);\n  m_scrollLayer = a1->m_scrollLayer;\n  if ( v3 )\n    BoomScrollLayer::instantMoveToPage(m_scrollLayer, a2);\n  else\n    BoomScrollLayer::moveToPage(m_scrollLayer, a2);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_leftButton->setVisible)(\n    a1->m_leftButton,\n    a1->m_scrollLayer != nullptr);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_rightButton->setVisible)(\n    a1->m_rightButton,\n    a1->m_scrollLayer != nullptr);\n  a1->m_playBlocked = 1;\n  cocos2d::CCNode::stopActionByTag(a1, 1001);\n  v6 = cocos2d::CCDelayTime::create(0.30000001);\n  v7 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)GauntletSelectLayer::unblockPlay);\n  v8 = sub_1003B5760(v6, v7, 0);\n  ((void (__fastcall *)(cocos2d::CCSequence *, __int64))v8->setTag)(v8, 1001);\n  cocos2d::CCNode::runAction(a1, v8);\n}", "assembly": "; \n; GauntletSelectLayer::goToPage from 0x100572f20 to 0x10057300c (236 bytes)\n; \n; 4 xrefs:\n; > GauntletSelectLayer::onPrev @ 0x100571e66\n; > GauntletSelectLayer::onNext @ 0x100571e86\n; > GauntletSelectLayer::setupGauntlets @ 0x1005724dd\n; > GauntletSelectLayer::setupGauntlets @ 0x1005724ec\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, 0x100572f20\nmov     rbp, rsp                                                       ; +0x1, 0x100572f21\npush    r15                                                            ; +0x4, 0x100572f24\npush    r14                                                            ; +0x6, 0x100572f26\npush    rbx                                                            ; +0x8, 0x100572f28\npush    rax                                                            ; +0x9, 0x100572f29\nmov     r15d, edx                                                      ; +0xa, 0x100572f2a\nmov     r14d, esi                                                      ; +0xd, 0x100572f2d\nmov     rbx, rdi                                                       ; +0x10, 0x100572f30\nmov     rdi, [rdi+1B8h]                                                ; +0x13, 0x100572f33\ncall    BoomScrollLayer__getTotalPages                                 ; +0x1a, 0x100572f3a\nmov     rdi, [rbx+1B8h]                                                ; +0x1f, 0x100572f3f\ncall    BoomScrollLayer__quickUpdate                                   ; +0x26, 0x100572f46\nmov     rdi, [rbx+1B8h]                                                ; +0x2b, 0x100572f4b\nmov     esi, r14d                                                      ; +0x32, 0x100572f52\ntest    r15d, r15d                                                     ; +0x35, 0x100572f55\njz      short loc_100572F61                                            ; +0x38, 0x100572f58\ncall    BoomScrollLayer__instantMoveToPage                             ; +0x3a, 0x100572f5a\njmp     short loc_100572F66                                            ; +0x3f, 0x100572f5f\ncall    BoomScrollLayer__moveToPage                                    ; +0x41, 0x100572f61\nmov     rdi, [rbx+1C0h]                                                ; +0x46, 0x100572f66\nxor     esi, esi                                                       ; +0x4d, 0x100572f6d\ncmp     qword ptr [rbx+1B8h], 0                                        ; +0x4f, 0x100572f6f\nsetnz   sil                                                            ; +0x57, 0x100572f77\nmov     rax, [rdi]                                                     ; +0x5b, 0x100572f7b\ncall    qword ptr [rax+148h]                                           ; +0x5e, 0x100572f7e\nmov     rdi, [rbx+1C8h]                                                ; +0x64, 0x100572f84\nxor     esi, esi                                                       ; +0x6b, 0x100572f8b\ncmp     qword ptr [rbx+1B8h], 0                                        ; +0x6d, 0x100572f8d\nsetnz   sil                                                            ; +0x75, 0x100572f95\nmov     rax, [rdi]                                                     ; +0x79, 0x100572f99\ncall    qword ptr [rax+148h]                                           ; +0x7c, 0x100572f9c\nmov     byte ptr [rbx+1F8h], 1                                         ; +0x82, 0x100572fa2\nmov     rdi, rbx                                                       ; +0x89, 0x100572fa9\nmov     esi, 3E9h                                                      ; +0x8c, 0x100572fac\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x91, 0x100572fb1\nmovss   xmm0, cs:dword_100815420                                       ; +0x96, 0x100572fb6\ncall    cocos2d__CCDelayTime__create                                   ; +0x9e, 0x100572fbe\nmov     r14, rax                                                       ; +0xa3, 0x100572fc3\nlea     rsi, GauntletSelectLayer__unblockPlay                          ; +0xa6, 0x100572fc6\nmov     rdi, rbx                                                       ; +0xad, 0x100572fcd\nxor     edx, edx                                                       ; +0xb0, 0x100572fd0\ncall    cocos2d__CCCallFunc__create                                    ; +0xb2, 0x100572fd2\nmov     rdi, r14                                                       ; +0xb7, 0x100572fd7\nmov     rsi, rax                                                       ; +0xba, 0x100572fda\nxor     edx, edx                                                       ; +0xbd, 0x100572fdd\nxor     eax, eax                                                       ; +0xbf, 0x100572fdf\ncall    sub_1003B5760                                                  ; +0xc1, 0x100572fe1\nmov     r14, rax                                                       ; +0xc6, 0x100572fe6\nmov     rax, [rax]                                                     ; +0xc9, 0x100572fe9\nmov     rdi, r14                                                       ; +0xcc, 0x100572fec\nmov     esi, 3E9h                                                      ; +0xcf, 0x100572fef\ncall    qword ptr [rax+48h]                                            ; +0xd4, 0x100572ff4\nmov     rdi, rbx                                                       ; +0xd7, 0x100572ff7\nmov     rsi, r14                                                       ; +0xda, 0x100572ffa\nadd     rsp, 8                                                         ; +0xdd, 0x100572ffd\npop     rbx                                                            ; +0xe1, 0x100573001\npop     r14                                                            ; +0xe2, 0x100573002\npop     r15                                                            ; +0xe4, 0x100573004\npop     rbp                                                            ; +0xe6, 0x100573006\njmp     cocos2d__CCNode__runAction                                     ; +0xe7, 0x100573007", "xrefs": ["GauntletSelectLayer::onPrev @ 0x100571e66", "GauntletSelectLayer::onNext @ 0x100571e86", "GauntletSelectLayer::setupGauntlets @ 0x1005724dd", "GauntletSelectLayer::setupGauntlets @ 0x1005724ec"], "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"}