{"type": "func", "start": 5373185728, "end": 5373185897, "name": "SetupSequenceTriggerPopup::onDeleteSelected", "pseudocode": "// \n// SetupSequenceTriggerPopup::onDeleteSelected from 0x140444ec0 to 0x140444f69 (169 bytes)\n// \n// 2 xrefs:\n// > SetupSequenceTriggerPopup::init @ 0x140443b73\n// > <???> @ 0x1406da55c\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::onDeleteSelected(SetupSequenceTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  CCMenuItemSpriteExtra *m_selectedButton; // rcx\n  int v4; // eax\n  EffectGameObject *m_gameObject; // rdi\n  EffectGameObject_vtbl *v6; // rax\n\n  m_selectedButton = a1->m_selectedButton;\n  if ( m_selectedButton )\n  {\n    v4 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCObject *))m_selectedButton->getTag)(\n           m_selectedButton,\n           a2);\n    m_gameObject = a1->m_gameObject;\n    LODWORD(m_selectedButton) = v4;\n    if ( v4 < 0 )\n      goto LABEL_8;\n  }\n  else\n  {\n    m_gameObject = a1->m_gameObject;\n  }\n  v6 = m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  if ( (unsigned int)m_selectedButton <= (unsigned __int64)(((__int64)(*(_QWORD *)&m_gameObject[1].m_uID - (_QWORD)v6) >> 4)\n                                                          - 1)\n    && v6 != *(EffectGameObject_vtbl **)&m_gameObject[1].m_uID )\n  {\n    memmove(\n      (char *)v6 + 16 * (unsigned int)m_selectedButton,\n      &v6->isEqual + 2 * (unsigned int)m_selectedButton,\n      *(_QWORD *)&m_gameObject[1].m_uID - (_QWORD)(&v6->isEqual + 2 * (unsigned int)m_selectedButton));\n    *(_QWORD *)&m_gameObject[1].m_uID -= 16LL;\n    m_gameObject[1].m_sInverse.b = NAN;\n  }\nLABEL_8:\n  a1->m_selectedButton = nullptr;\n  SetupSequenceTriggerPopup::updateGroupIDButtons(a1);\n}", "assembly": "; \n; SetupSequenceTriggerPopup::onDeleteSelected from 0x140444ec0 to 0x140444f69 (169 bytes)\n; \n; 2 xrefs:\n; > SetupSequenceTriggerPopup::init @ 0x140443b73\n; > <???> @ 0x1406da55c\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, 0x140444ec0\npush    rdi                                                            ; +0x5, 0x140444ec5\nsub     rsp, 20h                                                       ; +0x6, 0x140444ec6\nmov     rbx, rcx                                                       ; +0xa, 0x140444eca\nmov     rcx, [rcx+3A8h]                                                ; +0xd, 0x140444ecd\ntest    rcx, rcx                                                       ; +0x14, 0x140444ed4\njz      short loc_140444EEE                                            ; +0x17, 0x140444ed7\nmov     rax, [rcx]                                                     ; +0x19, 0x140444ed9\ncall    qword ptr [rax+38h]                                            ; +0x1c, 0x140444edc\nmov     rdi, [rbx+290h]                                                ; +0x1f, 0x140444edf\nmov     ecx, eax                                                       ; +0x26, 0x140444ee6\ntest    eax, eax                                                       ; +0x28, 0x140444ee8\njs      short loc_140444F4C                                            ; +0x2a, 0x140444eea\njmp     short loc_140444EF5                                            ; +0x2c, 0x140444eec\nmov     rdi, [rbx+290h]                                                ; +0x2e, 0x140444eee\nmov     rdx, [rdi+748h]                                                ; +0x35, 0x140444ef5\nmov     rax, [rdi+740h]                                                ; +0x3c, 0x140444efc\nmov     r9d, ecx                                                       ; +0x43, 0x140444f03\nmov     rcx, rdx                                                       ; +0x46, 0x140444f06\nsub     rcx, rax                                                       ; +0x49, 0x140444f09\nsar     rcx, 4                                                         ; +0x4c, 0x140444f0c\ndec     rcx                                                            ; +0x50, 0x140444f10\ncmp     r9, rcx                                                        ; +0x53, 0x140444f13\nja      short loc_140444F4C                                            ; +0x56, 0x140444f16\ncmp     rax, rdx                                                       ; +0x58, 0x140444f18\njz      short loc_140444F4C                                            ; +0x5b, 0x140444f1b\nmov     r8, [rdi+748h]                                                 ; +0x5d, 0x140444f1d\nshl     r9, 4                                                          ; +0x64, 0x140444f24\nadd     r9, rax                                                        ; +0x68, 0x140444f28\nmov     rcx, r9; void *                                                ; +0x6b, 0x140444f2b\nlea     rdx, [r9+10h]; Src                                             ; +0x6e, 0x140444f2e\nsub     r8, rdx; Size                                                  ; +0x72, 0x140444f32\ncall    memmove                                                        ; +0x75, 0x140444f35\nadd     qword ptr [rdi+748h], 0FFFFFFFFFFFFFFF0h                       ; +0x7a, 0x140444f3a\nmov     dword ptr [rdi+7E8h], 0FFFFFFFFh                               ; +0x82, 0x140444f42\nmov     rcx, rbx                                                       ; +0x8c, 0x140444f4c\nmov     qword ptr [rbx+3A8h], 0                                        ; +0x8f, 0x140444f4f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9a, 0x140444f5a\nadd     rsp, 20h                                                       ; +0x9f, 0x140444f5f\npop     rdi                                                            ; +0xa3, 0x140444f63\njmp     SetupSequenceTriggerPopup__updateGroupIDButtons                ; +0xa4, 0x140444f64", "xrefs": ["SetupSequenceTriggerPopup::init @ 0x140443b73", "<???> @ 0x1406da55c"], "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"}