{"type": "func", "start": 5370398400, "end": 5370398608, "name": "GameObject::createGroupContainer", "pseudocode": "// \n// GameObject::createGroupContainer from 0x14019c6c0 to 0x14019c790 (208 bytes)\n// \n// 4 xrefs:\n// > GameObject::loadGroupsFromString @ 0x14019cb4b\n// > <???> @ 0x14067921c\n// > <???> @ 0x14067922c\n// > <???> @ 0x1406cbd90\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 GameObject::createGroupContainer(GameObject *a1, int a2)\n{\n  std::array<short, 10> **p_m_groups; // rbx\n  __int64 v3; // rdi\n  __int64 v4; // rsi\n  std::array<short, 10> *v5; // rax\n  std::array<short, 10> *v6; // r9\n  int v7; // r8d\n  char *v8; // rax\n  int v9; // edi\n  int v10; // eax\n  std::array<short, 10> *v11; // rdi\n  unsigned __int64 i; // rcx\n  __int64 j; // rax\n\n  p_m_groups = &a1->m_groups;\n  v3 = a2;\n  if ( !a1->m_groups )\n  {\n    v4 = a2;\n    v5 = (std::array<short, 10> *)operator new(saturated_mul(a2, 2u));\n    *p_m_groups = v5;\n    v6 = v5;\n    v7 = 0;\n    if ( (int)v3 >= 8 )\n    {\n      v8 = (char *)&v5->_Elems[v3 - 1];\n      if ( v6 > (std::array<short, 10> *)p_m_groups || v8 < (char *)p_m_groups )\n      {\n        v9 = v3 & 0x7FFFFFF8;\n        do\n          v7 += 8;\n        while ( v7 < v9 );\n        v10 = v9 + 7;\n        v11 = v6;\n        for ( i = (unsigned __int64)(16LL * (v10 / 8)) >> 1; i; --i )\n        {\n          v11->_Elems[0] = 0;\n          v11 = (std::array<short, 10> *)((char *)v11 + 2);\n        }\n      }\n    }\n    for ( j = v7; j < v4; (*p_m_groups)->_Elems[j++] = 0 )\n      ;\n  }\n}", "assembly": "; \n; GameObject::createGroupContainer from 0x14019c6c0 to 0x14019c790 (208 bytes)\n; \n; 4 xrefs:\n; > GameObject::loadGroupsFromString @ 0x14019cb4b\n; > <???> @ 0x14067921c\n; > <???> @ 0x14067922c\n; > <???> @ 0x1406cbd90\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_8], rbx                                               ; +0x0, 0x14019c6c0\npush    rdi                                                            ; +0x5, 0x14019c6c5\nsub     rsp, 20h                                                       ; +0x6, 0x14019c6c6\nlea     rbx, [rcx+490h]                                                ; +0xa, 0x14019c6ca\nmovsxd  rdi, edx                                                       ; +0x11, 0x14019c6d1\ncmp     qword ptr [rbx], 0                                             ; +0x14, 0x14019c6d4\njnz     loc_14019C785                                                  ; +0x18, 0x14019c6d8\nmov     rcx, 0FFFFFFFFFFFFFFFFh                                        ; +0x1e, 0x14019c6de\nmov     [rsp+28h+arg_0], rsi                                           ; +0x25, 0x14019c6e5\nmov     eax, 2                                                         ; +0x2a, 0x14019c6ea\nmov     rsi, rdi                                                       ; +0x2f, 0x14019c6ef\nmul     rdi                                                            ; +0x32, 0x14019c6f2\ncmovo   rax, rcx                                                       ; +0x35, 0x14019c6f5\nmov     rcx, rax; Size                                                 ; +0x39, 0x14019c6f9\ncall    j_??2@YAPEAX_K@Z; operator new(unsigned __int64)               ; +0x3c, 0x14019c6fc\nxor     r10d, r10d                                                     ; +0x41, 0x14019c701\nmov     [rbx], rax                                                     ; +0x44, 0x14019c704\nmov     r9, rax                                                        ; +0x47, 0x14019c707\nmov     r8d, r10d                                                      ; +0x4a, 0x14019c70a\ntest    edi, edi                                                       ; +0x4d, 0x14019c70d\njle     short loc_14019C759                                            ; +0x4f, 0x14019c70f\ncmp     edi, 8                                                         ; +0x51, 0x14019c711\njb      short loc_14019C759                                            ; +0x54, 0x14019c714\nlea     rax, [rdi-1]                                                   ; +0x56, 0x14019c716\nlea     rax, [r9+rax*2]                                                ; +0x5a, 0x14019c71a\ncmp     r9, rbx                                                        ; +0x5e, 0x14019c71e\nja      short loc_14019C728                                            ; +0x61, 0x14019c721\ncmp     rax, rbx                                                       ; +0x63, 0x14019c723\njnb     short loc_14019C759                                            ; +0x66, 0x14019c726\nand     edi, 0FFFFFFF8h                                                ; +0x68, 0x14019c728\nnop     dword ptr [rax+rax+00h]                                        ; +0x6b, 0x14019c72b\nadd     r8d, 8                                                         ; +0x70, 0x14019c730\ncmp     r8d, edi                                                       ; +0x74, 0x14019c734\njl      short loc_14019C730                                            ; +0x77, 0x14019c737\nlea     eax, [rdi+7]                                                   ; +0x79, 0x14019c739\nmov     rdi, r9                                                        ; +0x7c, 0x14019c73c\ncdq                                                                    ; +0x7f, 0x14019c73f\nand     edx, 7                                                         ; +0x80, 0x14019c740\nadd     eax, edx                                                       ; +0x83, 0x14019c743\nsar     eax, 3                                                         ; +0x85, 0x14019c745\nmovsxd  rcx, eax                                                       ; +0x88, 0x14019c748\nshl     rcx, 4                                                         ; +0x8b, 0x14019c74b\nshr     rcx, 1                                                         ; +0x8f, 0x14019c74f\nmovsx   rax, r10w                                                      ; +0x92, 0x14019c752\nrep stosw                                                              ; +0x96, 0x14019c756\nmovsxd  rax, r8d                                                       ; +0x99, 0x14019c759\ncmp     rax, rsi                                                       ; +0x9c, 0x14019c75c\njge     short loc_14019C780                                            ; +0x9f, 0x14019c75f\nnop     dword ptr [rax+00h]                                            ; +0xa1, 0x14019c761\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa5, 0x14019c765\nmov     rcx, [rbx]                                                     ; +0xb0, 0x14019c770\nmov     [rcx+rax*2], r10w                                              ; +0xb3, 0x14019c773\ninc     rax                                                            ; +0xb8, 0x14019c778\ncmp     rax, rsi                                                       ; +0xbb, 0x14019c77b\njl      short loc_14019C770                                            ; +0xbe, 0x14019c77e\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xc0, 0x14019c780\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc5, 0x14019c785\nadd     rsp, 20h                                                       ; +0xca, 0x14019c78a\npop     rdi                                                            ; +0xce, 0x14019c78e\nretn                                                                   ; +0xcf, 0x14019c78f", "xrefs": ["GameObject::loadGroupsFromString @ 0x14019cb4b", "<???> @ 0x14067921c", "<???> @ 0x14067922c", "<???> @ 0x1406cbd90"], "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"}