{"type": "func", "start": 5370953920, "end": 5370954058, "name": "GJBaseGameLayer::removeFromGroups", "pseudocode": "// \n// GJBaseGameLayer::removeFromGroups from 0x1402240c0 to 0x14022414a (138 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::removeSpecial @ 0x1402d86e0\n// > LevelEditorLayer::applyGroupState @ 0x1402e13e7\n// > <???> @ 0x14067ff68\n// > <???> @ 0x14067ff78\n// > <???> @ 0x1406cd65c\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 GJBaseGameLayer::removeFromGroups(GJBaseGameLayer *a1, GameObject *a2)\n{\n  int v4; // ebp\n  __int64 v5; // rsi\n  unsigned __int64 v6; // rdi\n  std::array<short, 10> *m_groups; // rax\n  __int64 v8; // r8\n\n  if ( a2->m_groupCount > 0 )\n  {\n    v4 = 0;\n    v5 = 0;\n    v6 = 0;\n    do\n    {\n      if ( v6 <= 9 && (m_groups = a2->m_groups) != nullptr )\n        v8 = (unsigned int)m_groups->_Elems[v5];\n      else\n        v8 = 0;\n      a1->removeFromGroup(a1, a2, v8);\n      ++v4;\n      ++v6;\n      ++v5;\n    }\n    while ( v4 < a2->m_groupCount );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeFromGroups from 0x1402240c0 to 0x14022414a (138 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::removeSpecial @ 0x1402d86e0\n; > LevelEditorLayer::applyGroupState @ 0x1402e13e7\n; > <???> @ 0x14067ff68\n; > <???> @ 0x14067ff78\n; > <???> @ 0x1406cd65c\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_18], rbx                                              ; +0x0, 0x1402240c0\npush    r14                                                            ; +0x5, 0x1402240c5\nsub     rsp, 20h                                                       ; +0x7, 0x1402240c7\ncmp     word ptr [rdx+498h], 0                                         ; +0xb, 0x1402240cb\nmov     rbx, rdx                                                       ; +0x13, 0x1402240d3\nmov     r14, rcx                                                       ; +0x16, 0x1402240d6\njle     short loc_14022413E                                            ; +0x19, 0x1402240d9\nmov     [rsp+28h+arg_0], rbp                                           ; +0x1b, 0x1402240db\nxor     ebp, ebp                                                       ; +0x20, 0x1402240e0\nmov     [rsp+28h+arg_8], rsi                                           ; +0x22, 0x1402240e2\nxor     esi, esi                                                       ; +0x27, 0x1402240e7\nmov     [rsp+28h+arg_10], rdi                                          ; +0x29, 0x1402240e9\nxor     edi, edi                                                       ; +0x2e, 0x1402240ee\ncmp     rdi, 9                                                         ; +0x30, 0x1402240f0\nja      short loc_140224109                                            ; +0x34, 0x1402240f4\nmov     rax, [rbx+490h]                                                ; +0x36, 0x1402240f6\ntest    rax, rax                                                       ; +0x3d, 0x1402240fd\njz      short loc_140224109                                            ; +0x40, 0x140224100\nmovsx   r8d, word ptr [rsi+rax]                                        ; +0x42, 0x140224102\njmp     short loc_14022410C                                            ; +0x47, 0x140224107\nxor     r8d, r8d                                                       ; +0x49, 0x140224109\nmov     rax, [r14]                                                     ; +0x4c, 0x14022410c\nmov     rdx, rbx                                                       ; +0x4f, 0x14022410f\nmov     rcx, r14                                                       ; +0x52, 0x140224112\ncall    qword ptr [rax+488h]                                           ; +0x55, 0x140224115\nmovsx   eax, word ptr [rbx+498h]                                       ; +0x5b, 0x14022411b\ninc     ebp                                                            ; +0x62, 0x140224122\ninc     rdi                                                            ; +0x64, 0x140224124\nadd     rsi, 2                                                         ; +0x67, 0x140224127\ncmp     ebp, eax                                                       ; +0x6b, 0x14022412b\njl      short loc_1402240F0                                            ; +0x6d, 0x14022412d\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x6f, 0x14022412f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x74, 0x140224134\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x79, 0x140224139\nmov     rbx, [rsp+28h+arg_18]                                          ; +0x7e, 0x14022413e\nadd     rsp, 20h                                                       ; +0x83, 0x140224143\npop     r14                                                            ; +0x87, 0x140224147\nretn                                                                   ; +0x89, 0x140224149", "xrefs": ["LevelEditorLayer::removeSpecial @ 0x1402d86e0", "LevelEditorLayer::applyGroupState @ 0x1402e13e7", "<???> @ 0x14067ff68", "<???> @ 0x14067ff78", "<???> @ 0x1406cd65c"], "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"}