{"type": "func", "start": 5373185504, "end": 5373185725, "name": "SetupSequenceTriggerPopup::onChangeOrder", "pseudocode": "// \n// SetupSequenceTriggerPopup::onChangeOrder from 0x140444de0 to 0x140444ebd (221 bytes)\n// \n// 4 xrefs:\n// > SetupSequenceTriggerPopup::init @ 0x140443ccb\n// > <???> @ 0x1406a23d8\n// > <???> @ 0x1406a240c\n// > <???> @ 0x1406da520\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 SetupSequenceTriggerPopup::onChangeOrder(SetupSequenceTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // ebx\n  int v4; // eax\n  EffectGameObject *m_gameObject; // rcx\n  __int64 v6; // rdx\n  EffectGameObject_vtbl *v7; // rax\n  EffectGameObject_vtbl *v8; // r8\n  __int64 v9; // rcx\n  int v10; // edi\n  __int128 v11; // xmm1\n  CCMenuItemSpriteExtra *m_selectedButton; // rcx\n  CCMenuItemSpriteExtra_vtbl *v13; // rbx\n  int v14; // eax\n\n  if ( a1->m_selectedButton )\n  {\n    v3 = a2->getTag(a2);\n    v4 = a1->m_selectedButton->getTag(a1->m_selectedButton);\n    m_gameObject = a1->m_gameObject;\n    v6 = v4;\n    v7 = *(EffectGameObject_vtbl **)&m_gameObject[1].m_uID;\n    v8 = m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v9 = ((char *)v7 - (char *)v8) >> 4;\n    if ( (int)v9 > (int)v6 && ((_DWORD)v6 != (_DWORD)v9 - 1 || v3 != 3) && ((_DWORD)v6 || v3 == 3) && v8 != v7 )\n    {\n      v10 = 1;\n      if ( v3 != 3 )\n        v10 = -1;\n      v11 = *((_OWORD *)&v8->copyWithZone + v6);\n      *((_OWORD *)&v8->copyWithZone + v6) = *((_OWORD *)&v8->copyWithZone + v10 + (int)v6);\n      *((_OWORD *)&v8->copyWithZone + v10 + (int)v6) = v11;\n      m_selectedButton = a1->m_selectedButton;\n      v13 = m_selectedButton->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      v14 = m_selectedButton->getTag(m_selectedButton);\n      v13->setTag(a1->m_selectedButton, v10 + v14);\n      SetupSequenceTriggerPopup::updateGroupIDButtons(a1);\n    }\n  }\n}", "assembly": "; \n; SetupSequenceTriggerPopup::onChangeOrder from 0x140444de0 to 0x140444ebd (221 bytes)\n; \n; 4 xrefs:\n; > SetupSequenceTriggerPopup::init @ 0x140443ccb\n; > <???> @ 0x1406a23d8\n; > <???> @ 0x1406a240c\n; > <???> @ 0x1406da520\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    rsi                                                            ; +0x0, 0x140444de0\nsub     rsp, 20h                                                       ; +0x2, 0x140444de2\ncmp     qword ptr [rcx+3A8h], 0                                        ; +0x6, 0x140444de6\nmov     rsi, rcx                                                       ; +0xe, 0x140444dee\njz      loc_140444EB7                                                  ; +0x11, 0x140444df1\nmov     rax, [rdx]                                                     ; +0x17, 0x140444df7\nmov     rcx, rdx                                                       ; +0x1a, 0x140444dfa\nmov     [rsp+28h+arg_0], rbx                                           ; +0x1d, 0x140444dfd\ncall    qword ptr [rax+38h]                                            ; +0x22, 0x140444e02\nmov     rcx, [rsi+3A8h]                                                ; +0x25, 0x140444e05\nmov     ebx, eax                                                       ; +0x2c, 0x140444e0c\nmov     rdx, [rcx]                                                     ; +0x2e, 0x140444e0e\ncall    qword ptr [rdx+38h]                                            ; +0x31, 0x140444e11\nmov     rcx, [rsi+290h]                                                ; +0x34, 0x140444e14\nmovsxd  rdx, eax                                                       ; +0x3b, 0x140444e1b\nmov     rax, [rcx+748h]                                                ; +0x3e, 0x140444e1e\nmov     r8, [rcx+740h]                                                 ; +0x45, 0x140444e25\nmov     rcx, rax                                                       ; +0x4c, 0x140444e2c\nsub     rcx, r8                                                        ; +0x4f, 0x140444e2f\nsar     rcx, 4                                                         ; +0x52, 0x140444e32\ncmp     ecx, edx                                                       ; +0x56, 0x140444e36\njle     short loc_140444EB2                                            ; +0x58, 0x140444e38\ndec     ecx                                                            ; +0x5a, 0x140444e3a\ncmp     edx, ecx                                                       ; +0x5c, 0x140444e3c\njnz     short loc_140444E45                                            ; +0x5e, 0x140444e3e\ncmp     ebx, 3                                                         ; +0x60, 0x140444e40\njz      short loc_140444EB2                                            ; +0x63, 0x140444e43\ntest    edx, edx                                                       ; +0x65, 0x140444e45\njnz     short loc_140444E4E                                            ; +0x67, 0x140444e47\ncmp     ebx, 3                                                         ; +0x69, 0x140444e49\njnz     short loc_140444EB2                                            ; +0x6c, 0x140444e4c\ncmp     r8, rax                                                        ; +0x6e, 0x140444e4e\njz      short loc_140444EB2                                            ; +0x71, 0x140444e51\nmov     eax, 0FFFFFFFFh                                                ; +0x73, 0x140444e53\nmov     [rsp+28h+arg_8], rdi                                           ; +0x78, 0x140444e58\ncmp     ebx, 3                                                         ; +0x7d, 0x140444e5d\nmov     edi, 1                                                         ; +0x80, 0x140444e60\ncmovnz  edi, eax                                                       ; +0x85, 0x140444e65\nlea     eax, [rdi+rdx]                                                 ; +0x88, 0x140444e68\nmovsxd  rcx, eax                                                       ; +0x8b, 0x140444e6b\nmov     rax, rdx                                                       ; +0x8e, 0x140444e6e\nadd     rcx, rcx                                                       ; +0x91, 0x140444e71\nadd     rax, rax                                                       ; +0x94, 0x140444e74\nmovups  xmm0, xmmword ptr [r8+rcx*8]                                   ; +0x97, 0x140444e77\nmovups  xmm1, xmmword ptr [r8+rax*8]                                   ; +0x9c, 0x140444e7c\nmovups  xmmword ptr [r8+rax*8], xmm0                                   ; +0xa1, 0x140444e81\nmovups  xmmword ptr [r8+rcx*8], xmm1                                   ; +0xa6, 0x140444e86\nmov     rcx, [rsi+3A8h]                                                ; +0xab, 0x140444e8b\nmov     rbx, [rcx]                                                     ; +0xb2, 0x140444e92\ncall    qword ptr [rbx+38h]                                            ; +0xb5, 0x140444e95\nmov     rcx, [rsi+3A8h]                                                ; +0xb8, 0x140444e98\nlea     edx, [rdi+rax]                                                 ; +0xbf, 0x140444e9f\ncall    qword ptr [rbx+40h]                                            ; +0xc2, 0x140444ea2\nmov     rcx, rsi                                                       ; +0xc5, 0x140444ea5\ncall    SetupSequenceTriggerPopup__updateGroupIDButtons                ; +0xc8, 0x140444ea8\nmov     rdi, [rsp+28h+arg_8]                                           ; +0xcd, 0x140444ead\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd2, 0x140444eb2\nadd     rsp, 20h                                                       ; +0xd7, 0x140444eb7\npop     rsi                                                            ; +0xdb, 0x140444ebb\nretn                                                                   ; +0xdc, 0x140444ebc", "xrefs": ["SetupSequenceTriggerPopup::init @ 0x140443ccb", "<???> @ 0x1406a23d8", "<???> @ 0x1406a240c", "<???> @ 0x1406da520"], "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"}