{"type": "func", "start": 5370953536, "end": 5370953679, "name": "GJBaseGameLayer::addToGroups", "pseudocode": "// \n// GJBaseGameLayer::addToGroups from 0x140223f40 to 0x140223fcf (143 bytes)\n// \n// 7 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x1402d8152\n// > PlayLayer::addObject @ 0x1403ade7b\n// > PlayLayer::addObject @ 0x1403ae461\n// > PlayLayer::addObject @ 0x1403ae9aa\n// > <???> @ 0x14067fefc\n// > <???> @ 0x14067ff0c\n// > <???> @ 0x1406cd614\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::addToGroups(GJBaseGameLayer *a1, GameObject *a2, bool a3)\n{\n  int v6; // ebp\n  __int64 v7; // rsi\n  unsigned __int64 v8; // rdi\n  std::array<short, 10> *m_groups; // rax\n  __int64 v10; // r8\n\n  if ( a2->m_groupCount > 0 )\n  {\n    v6 = 0;\n    v7 = 0;\n    v8 = 0;\n    do\n    {\n      if ( v8 <= 9 && (m_groups = a2->m_groups) != nullptr )\n        v10 = (unsigned int)m_groups->_Elems[v7];\n      else\n        v10 = 0;\n      a1->addToGroup(a1, a2, v10, a3);\n      ++v6;\n      ++v8;\n      ++v7;\n    }\n    while ( v6 < a2->m_groupCount );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroups from 0x140223f40 to 0x140223fcf (143 bytes)\n; \n; 7 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x1402d8152\n; > PlayLayer::addObject @ 0x1403ade7b\n; > PlayLayer::addObject @ 0x1403ae461\n; > PlayLayer::addObject @ 0x1403ae9aa\n; > <???> @ 0x14067fefc\n; > <???> @ 0x14067ff0c\n; > <???> @ 0x1406cd614\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    rbx                                                            ; +0x0, 0x140223f40\npush    r14                                                            ; +0x2, 0x140223f42\npush    r15                                                            ; +0x4, 0x140223f44\nsub     rsp, 20h                                                       ; +0x6, 0x140223f46\ncmp     word ptr [rdx+498h], 0                                         ; +0xa, 0x140223f4a\nmovzx   r15d, r8b                                                      ; +0x12, 0x140223f52\nmov     rbx, rdx                                                       ; +0x16, 0x140223f56\nmov     r14, rcx                                                       ; +0x19, 0x140223f59\njle     short loc_140223FC5                                            ; +0x1c, 0x140223f5c\nmov     [rsp+38h+arg_0], rbp                                           ; +0x1e, 0x140223f5e\nxor     ebp, ebp                                                       ; +0x23, 0x140223f63\nmov     [rsp+38h+arg_8], rsi                                           ; +0x25, 0x140223f65\nxor     esi, esi                                                       ; +0x2a, 0x140223f6a\nmov     [rsp+38h+arg_10], rdi                                          ; +0x2c, 0x140223f6c\nxor     edi, edi                                                       ; +0x31, 0x140223f71\ncmp     rdi, 9                                                         ; +0x33, 0x140223f73\nja      short loc_140223F8C                                            ; +0x37, 0x140223f77\nmov     rax, [rbx+490h]                                                ; +0x39, 0x140223f79\ntest    rax, rax                                                       ; +0x40, 0x140223f80\njz      short loc_140223F8C                                            ; +0x43, 0x140223f83\nmovsx   r8d, word ptr [rsi+rax]                                        ; +0x45, 0x140223f85\njmp     short loc_140223F8F                                            ; +0x4a, 0x140223f8a\nxor     r8d, r8d                                                       ; +0x4c, 0x140223f8c\nmov     rax, [r14]                                                     ; +0x4f, 0x140223f8f\nmovzx   r9d, r15b                                                      ; +0x52, 0x140223f92\nmov     rdx, rbx                                                       ; +0x56, 0x140223f96\nmov     rcx, r14                                                       ; +0x59, 0x140223f99\ncall    qword ptr [rax+480h]                                           ; +0x5c, 0x140223f9c\nmovsx   eax, word ptr [rbx+498h]                                       ; +0x62, 0x140223fa2\ninc     ebp                                                            ; +0x69, 0x140223fa9\ninc     rdi                                                            ; +0x6b, 0x140223fab\nadd     rsi, 2                                                         ; +0x6e, 0x140223fae\ncmp     ebp, eax                                                       ; +0x72, 0x140223fb2\njl      short loc_140223F73                                            ; +0x74, 0x140223fb4\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x76, 0x140223fb6\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x7b, 0x140223fbb\nmov     rbp, [rsp+38h+arg_0]                                           ; +0x80, 0x140223fc0\nadd     rsp, 20h                                                       ; +0x85, 0x140223fc5\npop     r15                                                            ; +0x89, 0x140223fc9\npop     r14                                                            ; +0x8b, 0x140223fcb\npop     rbx                                                            ; +0x8d, 0x140223fcd\nretn                                                                   ; +0x8e, 0x140223fce", "xrefs": ["LevelEditorLayer::addSpecial @ 0x1402d8152", "PlayLayer::addObject @ 0x1403ade7b", "PlayLayer::addObject @ 0x1403ae461", "PlayLayer::addObject @ 0x1403ae9aa", "<???> @ 0x14067fefc", "<???> @ 0x14067ff0c", "<???> @ 0x1406cd614"], "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"}