{"type": "func", "start": 4296123968, "end": 4296124054, "name": "GJBaseGameLayer::removeFromGroups", "pseudocode": "// \n// GJBaseGameLayer::removeFromGroups from 0x10011a640 to 0x10011a696 (86 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::removeSpecial @ 0x1000b1ec4\n// > LevelEditorLayer::copyObjectState @ 0x1000c7a11\n// > LevelEditorLayer::applyGroupState @ 0x1000c7ac7\n// > LevelEditorLayer::pasteGroupState @ 0x1000c7d16\n// > LevelEditorLayer::pasteGroupState @ 0x1000c7def\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:24:35 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::removeFromGroups(__int64 a1, __int64 a2)\n{\n  int v2; // r15d\n  unsigned int GroupID; // eax\n  __int64 result; // rax\n\n  if ( *(__int16 *)(a2 + 1168) > 0 )\n  {\n    v2 = 0;\n    do\n    {\n      GroupID = GameObject::getGroupID(a2, (unsigned int)v2);\n      (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1360LL))(a1, a2, GroupID);\n      ++v2;\n      result = (unsigned int)*(__int16 *)(a2 + 1168);\n    }\n    while ( v2 < (int)result );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::removeFromGroups from 0x10011a640 to 0x10011a696 (86 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::removeSpecial @ 0x1000b1ec4\n; > LevelEditorLayer::copyObjectState @ 0x1000c7a11\n; > LevelEditorLayer::applyGroupState @ 0x1000c7ac7\n; > LevelEditorLayer::pasteGroupState @ 0x1000c7d16\n; > LevelEditorLayer::pasteGroupState @ 0x1000c7def\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:24:35 +0000\n; \ncmp     word ptr [rsi+490h], 0                                         ; +0x0, 0x10011a640\njle     short locret_10011A695                                         ; +0x8, 0x10011a648\npush    rbp                                                            ; +0xa, 0x10011a64a\nmov     rbp, rsp                                                       ; +0xb, 0x10011a64b\npush    r15                                                            ; +0xe, 0x10011a64e\npush    r14                                                            ; +0x10, 0x10011a650\npush    rbx                                                            ; +0x12, 0x10011a652\npush    rax                                                            ; +0x13, 0x10011a653\nmov     rbx, rsi                                                       ; +0x14, 0x10011a654\nmov     r14, rdi                                                       ; +0x17, 0x10011a657\nxor     r15d, r15d                                                     ; +0x1a, 0x10011a65a\nnop     dword ptr [rax]                                                ; +0x1d, 0x10011a65d\nmov     rdi, rbx                                                       ; +0x20, 0x10011a660\nmov     esi, r15d                                                      ; +0x23, 0x10011a663\ncall    GameObject__getGroupID                                         ; +0x26, 0x10011a666\nmov     rcx, [r14]                                                     ; +0x2b, 0x10011a66b\nmov     rdi, r14                                                       ; +0x2e, 0x10011a66e\nmov     rsi, rbx                                                       ; +0x31, 0x10011a671\nmov     edx, eax                                                       ; +0x34, 0x10011a674\ncall    qword ptr [rcx+550h]                                           ; +0x36, 0x10011a676\ninc     r15d                                                           ; +0x3c, 0x10011a67c\nmovsx   eax, word ptr [rbx+490h]                                       ; +0x3f, 0x10011a67f\ncmp     r15d, eax                                                      ; +0x46, 0x10011a686\njl      short loc_10011A660                                            ; +0x49, 0x10011a689\nadd     rsp, 8                                                         ; +0x4b, 0x10011a68b\npop     rbx                                                            ; +0x4f, 0x10011a68f\npop     r14                                                            ; +0x50, 0x10011a690\npop     r15                                                            ; +0x52, 0x10011a692\npop     rbp                                                            ; +0x54, 0x10011a694\nretn                                                                   ; +0x55, 0x10011a695", "xrefs": ["LevelEditorLayer::removeSpecial @ 0x1000b1ec4", "LevelEditorLayer::copyObjectState @ 0x1000c7a11", "LevelEditorLayer::applyGroupState @ 0x1000c7ac7", "LevelEditorLayer::pasteGroupState @ 0x1000c7d16", "LevelEditorLayer::pasteGroupState @ 0x1000c7def"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}