{"type": "func", "start": 5373379504, "end": 5373380146, "name": "SetupTriggerPopup::goToPage", "pseudocode": "// \n// SetupTriggerPopup::goToPage from 0x1404743b0 to 0x140474632 (642 bytes)\n// \n// 23 xrefs:\n// > SetupRotateCommandPopup::init @ 0x1402a8eb2\n// > SetupAdvFollowPopup::init @ 0x140405550\n// > SetupAdvFollowPopup::updateMode @ 0x140405b6e\n// > SetupAreaMoveTriggerPopup::init @ 0x14040c2a1\n// > SetupAreaTransformTriggerPopup::init @ 0x14040e94d\n// > SetupAreaRotateTriggerPopup::init @ 0x14040f0b1\n// > SetupAreaFadeTriggerPopup::init @ 0x14040f7ff\n// > SetupAreaTintTriggerPopup::init @ 0x1404102ef\n// > SetupAreaTriggerPopup::init @ 0x140410e24\n// > SetupKeyframeAnimPopup::init @ 0x1404251ca\n// > SetupOptionsTriggerPopup::init @ 0x140436698\n// > SetupSFXPopup::init @ 0x140448467\n// > SetupSFXEditPopup::init @ 0x14044a10b\n// > SetupSongTriggerPopup::init @ 0x14045d523\n// > SetupSongTriggerPopup::init @ 0x14045d532\n// > SetupSongTriggerPopup::valueDidChange @ 0x14045dc1c\n// > SetupSpawnPopup::init @ 0x14045edeb\n// > SelectEventLayer::init @ 0x14046752f\n// > SetupTriggerPopup::onPage @ 0x140474336\n// > <???> @ 0x1406a551c\n// > <???> @ 0x1406a553c\n// > <???> @ 0x1406a554c\n// > <???> @ 0x1406db42c\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 SetupTriggerPopup::goToPage(SetupTriggerPopup *a1, int a2, bool a3)\n{\n  unsigned int v5; // ebx\n  cocos2d::CCArray *m_pageContainers; // rcx\n  unsigned int v7; // r12d\n  cocos2d::CCArray *v8; // rax\n  cocos2d::CCArray *v9; // rbp\n  bool v10; // r15\n  unsigned int v11; // edi\n  struct cocos2d::CCObject *v12; // rbx\n  int v13; // eax\n  struct cocos2d::CCObject *v14; // rax\n  struct cocos2d::CCObject *v15; // rsi\n  cocos2d::CCObject_vtbl *v16; // rbx\n  unsigned __int8 v17; // al\n  CCMenuItemSpriteExtra *m_prevButton; // rcx\n  bool v19; // r13\n  CCMenuItemSpriteExtra *m_nextButton; // rcx\n  unsigned int i; // r15d\n  cocos2d::CCArray *v22; // rsi\n  unsigned int v23; // edi\n  int j; // ebp\n  struct cocos2d::CCObject *v25; // rbx\n\n  v5 = a2;\n  if ( cocos2d::CCArray::count(a1->m_pageContainers) && cocos2d::CCArray::count(a1->m_pageContainers) >= v5 )\n  {\n    m_pageContainers = a1->m_pageContainers;\n    v7 = 0;\n    a1->m_page = v5;\n    a1->m_hideAll = a3;\n    if ( cocos2d::CCArray::count(m_pageContainers) )\n    {\n      do\n      {\n        v8 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_pageContainers, v7);\n        v9 = v8;\n        v10 = v7 == v5 && !a3;\n        v11 = 0;\n        if ( cocos2d::CCArray::count(v8) )\n        {\n          do\n          {\n            v12 = cocos2d::CCArray::objectAtIndex(v9, v11);\n            if ( !cocos2d::CCDictionary::objectForKey(a1->m_disabledEasingButtons, v12->m_uID) )\n              ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v12->__vftable[4].update)(v12, v10);\n            v13 = v12->getTag(v12);\n            v14 = cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, v13);\n            v15 = v14;\n            if ( v14 )\n            {\n              v16 = v14->__vftable;\n              v17 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v14->__vftable[4].encodeWithCoder)(v14);\n              v16[12].encodeWithCoder(v15, (DS_Dictionary *)v17);\n            }\n            ++v11;\n          }\n          while ( v11 < cocos2d::CCArray::count(v9) );\n          v5 = a2;\n        }\n        ++v7;\n      }\n      while ( v7 < cocos2d::CCArray::count(a1->m_pageContainers) );\n    }\n    m_prevButton = a1->m_prevButton;\n    v19 = !a3;\n    if ( m_prevButton )\n      m_prevButton->setVisible(m_prevButton, v19);\n    m_nextButton = a1->m_nextButton;\n    if ( m_nextButton )\n      m_nextButton->setVisible(m_nextButton, v19);\n    if ( cocos2d::CCArray::count(a1->m_groupContainers) )\n    {\n      for ( i = 0; i < cocos2d::CCArray::count(a1->m_groupContainers); ++i )\n      {\n        v22 = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(a1->m_groupContainers, i);\n        v23 = 0;\n        for ( j = v22->getTag(v22); v23 < cocos2d::CCArray::count(v22); ++v23 )\n        {\n          v25 = cocos2d::CCArray::objectAtIndex(v22, v23);\n          if ( ((unsigned __int8 (__fastcall *)(struct cocos2d::CCObject *))v25->__vftable[4].encodeWithCoder)(v25) )\n          {\n            if ( !j )\n              ((void (__fastcall *)(struct cocos2d::CCObject *, _QWORD))v25->__vftable[4].update)(v25, 0);\n          }\n        }\n      }\n    }\n    a1->pageChanged(a1);\n  }\n}", "assembly": "; \n; SetupTriggerPopup::goToPage from 0x1404743b0 to 0x140474632 (642 bytes)\n; \n; 23 xrefs:\n; > SetupRotateCommandPopup::init @ 0x1402a8eb2\n; > SetupAdvFollowPopup::init @ 0x140405550\n; > SetupAdvFollowPopup::updateMode @ 0x140405b6e\n; > SetupAreaMoveTriggerPopup::init @ 0x14040c2a1\n; > SetupAreaTransformTriggerPopup::init @ 0x14040e94d\n; > SetupAreaRotateTriggerPopup::init @ 0x14040f0b1\n; > SetupAreaFadeTriggerPopup::init @ 0x14040f7ff\n; > SetupAreaTintTriggerPopup::init @ 0x1404102ef\n; > SetupAreaTriggerPopup::init @ 0x140410e24\n; > SetupKeyframeAnimPopup::init @ 0x1404251ca\n; > SetupOptionsTriggerPopup::init @ 0x140436698\n; > SetupSFXPopup::init @ 0x140448467\n; > SetupSFXEditPopup::init @ 0x14044a10b\n; > SetupSongTriggerPopup::init @ 0x14045d523\n; > SetupSongTriggerPopup::init @ 0x14045d532\n; > SetupSongTriggerPopup::valueDidChange @ 0x14045dc1c\n; > SetupSpawnPopup::init @ 0x14045edeb\n; > SelectEventLayer::init @ 0x14046752f\n; > SetupTriggerPopup::onPage @ 0x140474336\n; > <???> @ 0x1406a551c\n; > <???> @ 0x1406a553c\n; > <???> @ 0x1406a554c\n; > <???> @ 0x1406db42c\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_8], edx                                               ; +0x0, 0x1404743b0\npush    rbx                                                            ; +0x4, 0x1404743b4\npush    r13                                                            ; +0x5, 0x1404743b5\npush    r14                                                            ; +0x7, 0x1404743b7\nsub     rsp, 30h                                                       ; +0x9, 0x1404743b9\nmov     r14, rcx                                                       ; +0xd, 0x1404743bd\nmovzx   r13d, r8b                                                      ; +0x10, 0x1404743c0\nmov     rcx, [rcx+350h]                                                ; +0x14, 0x1404743c4\nmov     ebx, edx                                                       ; +0x1b, 0x1404743cb\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1d, 0x1404743cd\ntest    eax, eax                                                       ; +0x23, 0x1404743d3\njz      loc_140474628                                                  ; +0x25, 0x1404743d5\nmov     rcx, [r14+350h]                                                ; +0x2b, 0x1404743db\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x32, 0x1404743e2\ncmp     eax, ebx                                                       ; +0x38, 0x1404743e8\njb      loc_140474628                                                  ; +0x3a, 0x1404743ea\nmov     rcx, [r14+350h]                                                ; +0x40, 0x1404743f0\nmov     [rsp+48h+var_20], r12                                          ; +0x47, 0x1404743f7\nxor     r12d, r12d                                                     ; +0x4c, 0x1404743fc\nmov     [rsp+48h+arg_0], rbp                                           ; +0x4f, 0x1404743ff\nmov     [rsp+48h+arg_10], rsi                                          ; +0x54, 0x140474404\nmov     [rsp+48h+arg_18], rdi                                          ; +0x59, 0x140474409\nmov     [rsp+48h+var_28], r15                                          ; +0x5e, 0x14047440e\nmov     [r14+358h], ebx                                                ; +0x63, 0x140474413\nmov     [r14+3A0h], r13b                                               ; +0x6a, 0x14047441a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x71, 0x140474421\ntest    eax, eax                                                       ; +0x77, 0x140474427\njz      loc_140474509                                                  ; +0x79, 0x140474429\nnop                                                                    ; +0x7f, 0x14047442f\nmov     rcx, [r14+350h]                                                ; +0x80, 0x140474430\nmov     edx, r12d                                                      ; +0x87, 0x140474437\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x8a, 0x14047443a\nmov     rbp, rax                                                       ; +0x90, 0x140474440\ncmp     r12d, ebx                                                      ; +0x93, 0x140474443\njnz     short loc_140474452                                            ; +0x96, 0x140474446\ntest    r13b, r13b                                                     ; +0x98, 0x140474448\njnz     short loc_140474452                                            ; +0x9b, 0x14047444b\nmov     r15b, 1                                                        ; +0x9d, 0x14047444d\njmp     short loc_140474455                                            ; +0xa0, 0x140474450\nxor     r15b, r15b                                                     ; +0xa2, 0x140474452\nmov     rcx, rbp                                                       ; +0xa5, 0x140474455\nxor     edi, edi                                                       ; +0xa8, 0x140474458\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xaa, 0x14047445a\ntest    eax, eax                                                       ; +0xb0, 0x140474460\njz      loc_1404744F0                                                  ; +0xb2, 0x140474462\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xb8, 0x140474468\nmov     edx, edi                                                       ; +0xc0, 0x140474470\nmov     rcx, rbp                                                       ; +0xc2, 0x140474472\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xc5, 0x140474475\nmov     rcx, [r14+388h]                                                ; +0xcb, 0x14047447b\nmov     rbx, rax                                                       ; +0xd2, 0x140474482\nmov     edx, [rax+8]                                                   ; +0xd5, 0x140474485\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xd8, 0x140474488\ntest    rax, rax                                                       ; +0xde, 0x14047448e\njnz     short loc_1404744A4                                            ; +0xe1, 0x140474491\nmov     r8, [rbx]                                                      ; +0xe3, 0x140474493\nmovzx   edx, r15b                                                      ; +0xe6, 0x140474496\nmov     rcx, rbx                                                       ; +0xea, 0x14047449a\ncall    qword ptr [r8+140h]                                            ; +0xed, 0x14047449d\nmov     rdx, [rbx]                                                     ; +0xf4, 0x1404744a4\nmov     rcx, rbx                                                       ; +0xf7, 0x1404744a7\ncall    qword ptr [rdx+38h]                                            ; +0xfa, 0x1404744aa\nmov     rcx, [r14+2D8h]                                                ; +0xfd, 0x1404744ad\nmovsxd  rdx, eax                                                       ; +0x104, 0x1404744b4\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x107, 0x1404744b7\nmov     rsi, rax                                                       ; +0x10d, 0x1404744bd\ntest    rax, rax                                                       ; +0x110, 0x1404744c0\njz      short loc_1404744DD                                            ; +0x113, 0x1404744c3\nmov     rbx, [rax]                                                     ; +0x115, 0x1404744c5\nmov     rcx, rax                                                       ; +0x118, 0x1404744c8\ncall    qword ptr [rbx+148h]                                           ; +0x11b, 0x1404744cb\nmovzx   edx, al                                                        ; +0x121, 0x1404744d1\nmov     rcx, rsi                                                       ; +0x124, 0x1404744d4\ncall    qword ptr [rbx+388h]                                           ; +0x127, 0x1404744d7\nmov     rcx, rbp                                                       ; +0x12d, 0x1404744dd\ninc     edi                                                            ; +0x130, 0x1404744e0\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x132, 0x1404744e2\ncmp     edi, eax                                                       ; +0x138, 0x1404744e8\njb      short loc_140474470                                            ; +0x13a, 0x1404744ea\nmov     ebx, [rsp+48h+arg_8]                                           ; +0x13c, 0x1404744ec\nmov     rcx, [r14+350h]                                                ; +0x140, 0x1404744f0\ninc     r12d                                                           ; +0x147, 0x1404744f7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x14a, 0x1404744fa\ncmp     r12d, eax                                                      ; +0x150, 0x140474500\njb      loc_140474430                                                  ; +0x153, 0x140474503\nmov     rcx, [r14+390h]                                                ; +0x159, 0x140474509\nxor     r13b, 1                                                        ; +0x160, 0x140474510\nmov     r12, [rsp+48h+var_20]                                          ; +0x164, 0x140474514\ntest    rcx, rcx                                                       ; +0x169, 0x140474519\njz      short loc_14047452B                                            ; +0x16c, 0x14047451c\nmov     rax, [rcx]                                                     ; +0x16e, 0x14047451e\nmovzx   edx, r13b                                                      ; +0x171, 0x140474521\ncall    qword ptr [rax+140h]                                           ; +0x175, 0x140474525\nmov     rcx, [r14+398h]                                                ; +0x17b, 0x14047452b\ntest    rcx, rcx                                                       ; +0x182, 0x140474532\njz      short loc_140474544                                            ; +0x185, 0x140474535\nmov     rax, [rcx]                                                     ; +0x187, 0x140474537\nmovzx   edx, r13b                                                      ; +0x18a, 0x14047453a\ncall    qword ptr [rax+140h]                                           ; +0x18e, 0x14047453e\nmov     rcx, [r14+360h]                                                ; +0x194, 0x140474544\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x19b, 0x14047454b\ntest    eax, eax                                                       ; +0x1a1, 0x140474551\njz      loc_140474608                                                  ; +0x1a3, 0x140474553\nmov     rcx, [r14+360h]                                                ; +0x1a9, 0x140474559\nxor     r15d, r15d                                                     ; +0x1b0, 0x140474560\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b3, 0x140474563\ntest    eax, eax                                                       ; +0x1b9, 0x140474569\njz      loc_140474608                                                  ; +0x1bb, 0x14047456b\nnop     dword ptr [rax+00h]                                            ; +0x1c1, 0x140474571\nnop     word ptr [rax+rax+00000000h]                                   ; +0x1c5, 0x140474575\nmov     rcx, [r14+360h]                                                ; +0x1d0, 0x140474580\nmov     edx, r15d                                                      ; +0x1d7, 0x140474587\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1da, 0x14047458a\nmov     rcx, rax                                                       ; +0x1e0, 0x140474590\nmov     rsi, rax                                                       ; +0x1e3, 0x140474593\nmov     rdx, [rax]                                                     ; +0x1e6, 0x140474596\ncall    qword ptr [rdx+38h]                                            ; +0x1e9, 0x140474599\nmov     rcx, rsi                                                       ; +0x1ec, 0x14047459c\nxor     edi, edi                                                       ; +0x1ef, 0x14047459f\nmov     ebp, eax                                                       ; +0x1f1, 0x1404745a1\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1f3, 0x1404745a3\ntest    eax, eax                                                       ; +0x1f9, 0x1404745a9\njz      short loc_1404745EF                                            ; +0x1fb, 0x1404745ab\nnop     dword ptr [rax]                                                ; +0x1fd, 0x1404745ad\nmov     edx, edi                                                       ; +0x200, 0x1404745b0\nmov     rcx, rsi                                                       ; +0x202, 0x1404745b2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x205, 0x1404745b5\nmov     rcx, rax                                                       ; +0x20b, 0x1404745bb\nmov     rbx, rax                                                       ; +0x20e, 0x1404745be\nmov     rdx, [rax]                                                     ; +0x211, 0x1404745c1\ncall    qword ptr [rdx+148h]                                           ; +0x214, 0x1404745c4\ntest    al, al                                                         ; +0x21a, 0x1404745ca\njz      short loc_1404745E0                                            ; +0x21c, 0x1404745cc\ntest    ebp, ebp                                                       ; +0x21e, 0x1404745ce\njnz     short loc_1404745E0                                            ; +0x220, 0x1404745d0\nmov     rax, [rbx]                                                     ; +0x222, 0x1404745d2\nxor     edx, edx                                                       ; +0x225, 0x1404745d5\nmov     rcx, rbx                                                       ; +0x227, 0x1404745d7\ncall    qword ptr [rax+140h]                                           ; +0x22a, 0x1404745da\nmov     rcx, rsi                                                       ; +0x230, 0x1404745e0\ninc     edi                                                            ; +0x233, 0x1404745e3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x235, 0x1404745e5\ncmp     edi, eax                                                       ; +0x23b, 0x1404745eb\njb      short loc_1404745B0                                            ; +0x23d, 0x1404745ed\nmov     rcx, [r14+360h]                                                ; +0x23f, 0x1404745ef\ninc     r15d                                                           ; +0x246, 0x1404745f6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x249, 0x1404745f9\ncmp     r15d, eax                                                      ; +0x24f, 0x1404745ff\njb      loc_140474580                                                  ; +0x252, 0x140474602\nmov     rax, [r14]                                                     ; +0x258, 0x140474608\nmov     rcx, r14                                                       ; +0x25b, 0x14047460b\ncall    qword ptr [rax+418h]                                           ; +0x25e, 0x14047460e\nmov     r15, [rsp+48h+var_28]                                          ; +0x264, 0x140474614\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x269, 0x140474619\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x26e, 0x14047461e\nmov     rbp, [rsp+48h+arg_0]                                           ; +0x273, 0x140474623\nadd     rsp, 30h                                                       ; +0x278, 0x140474628\npop     r14                                                            ; +0x27c, 0x14047462c\npop     r13                                                            ; +0x27e, 0x14047462e\npop     rbx                                                            ; +0x280, 0x140474630\nretn                                                                   ; +0x281, 0x140474631", "xrefs": ["SetupRotateCommandPopup::init @ 0x1402a8eb2", "SetupAdvFollowPopup::init @ 0x140405550", "SetupAdvFollowPopup::updateMode @ 0x140405b6e", "SetupAreaMoveTriggerPopup::init @ 0x14040c2a1", "SetupAreaTransformTriggerPopup::init @ 0x14040e94d", "SetupAreaRotateTriggerPopup::init @ 0x14040f0b1", "SetupAreaFadeTriggerPopup::init @ 0x14040f7ff", "SetupAreaTintTriggerPopup::init @ 0x1404102ef", "SetupAreaTriggerPopup::init @ 0x140410e24", "SetupKeyframeAnimPopup::init @ 0x1404251ca", "SetupOptionsTriggerPopup::init @ 0x140436698", "SetupSFXPopup::init @ 0x140448467", "SetupSFXEditPopup::init @ 0x14044a10b", "SetupSongTriggerPopup::init @ 0x14045d523", "SetupSongTriggerPopup::init @ 0x14045d532", "SetupSongTriggerPopup::valueDidChange @ 0x14045dc1c", "SetupSpawnPopup::init @ 0x14045edeb", "SelectEventLayer::init @ 0x14046752f", "SetupTriggerPopup::onPage @ 0x140474336", "<???> @ 0x1406a551c", "<???> @ 0x1406a553c", "<???> @ 0x1406a554c", "<???> @ 0x1406db42c"], "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"}