{"type": "func", "start": 4300990144, "end": 4300990204, "name": "GameObject::belongsToGroup", "pseudocode": "// \n// GameObject::belongsToGroup from 0x1005be6c0 to 0x1005be6fc (60 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onDelete @ 0x10002dd6d\n// > EditorUI::canSelectObject @ 0x10003c104\n// > EditorUI::selectObjects @ 0x10003c2a1\n// > LevelEditorLayer::stopTriggersInGroup @ 0x1000f012e\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\nbool __fastcall GameObject::belongsToGroup(GameObject *a1, int a2)\n{\n  __int64 m_groupCount; // rcx\n  std::array<short, 10> *m_groups; // rdx\n  __int64 v4; // rcx\n  __int64 v5; // rdi\n  bool result; // al\n\n  m_groupCount = a1->m_groupCount;\n  if ( m_groupCount <= 0 )\n    return 0;\n  m_groups = a1->m_groups;\n  v4 = m_groupCount - 1;\n  v5 = 0;\n  do\n  {\n    result = m_groups->__elems_[v5] == a2;\n    if ( m_groups->__elems_[v5] == a2 )\n      break;\n  }\n  while ( v4 != v5++ );\n  return result;\n}", "assembly": "; \n; GameObject::belongsToGroup from 0x1005be6c0 to 0x1005be6fc (60 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onDelete @ 0x10002dd6d\n; > EditorUI::canSelectObject @ 0x10003c104\n; > EditorUI::selectObjects @ 0x10003c2a1\n; > LevelEditorLayer::stopTriggersInGroup @ 0x1000f012e\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\nmovsx   rcx, word ptr [rdi+490h]                                       ; +0x0, 0x1005be6c0\ntest    rcx, rcx                                                       ; +0x8, 0x1005be6c8\njle     short loc_1005BE6F9                                            ; +0xb, 0x1005be6cb\npush    rbp                                                            ; +0xd, 0x1005be6cd\nmov     rbp, rsp                                                       ; +0xe, 0x1005be6ce\nmov     rdx, [rdi+488h]                                                ; +0x11, 0x1005be6d1\ndec     rcx                                                            ; +0x18, 0x1005be6d8\nxor     edi, edi                                                       ; +0x1b, 0x1005be6db\nnop     dword ptr [rax]                                                ; +0x1d, 0x1005be6dd\nmovsx   eax, word ptr [rdx+rdi*2]                                      ; +0x20, 0x1005be6e0\ncmp     eax, esi                                                       ; +0x24, 0x1005be6e4\nsetz    al                                                             ; +0x26, 0x1005be6e6\njz      short loc_1005BE6F7                                            ; +0x29, 0x1005be6e9\nlea     r8, [rdi+1]                                                    ; +0x2b, 0x1005be6eb\ncmp     rcx, rdi                                                       ; +0x2f, 0x1005be6ef\nmov     rdi, r8                                                        ; +0x32, 0x1005be6f2\njnz     short loc_1005BE6E0                                            ; +0x35, 0x1005be6f5\npop     rbp                                                            ; +0x37, 0x1005be6f7\nretn                                                                   ; +0x38, 0x1005be6f8\nxor     eax, eax                                                       ; +0x39, 0x1005be6f9\nretn                                                                   ; +0x3b, 0x1005be6fb", "xrefs": ["EditorUI::onDelete @ 0x10002dd6d", "EditorUI::canSelectObject @ 0x10003c104", "EditorUI::selectObjects @ 0x10003c2a1", "LevelEditorLayer::stopTriggersInGroup @ 0x1000f012e"], "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"}