{"type": "func", "start": 6443219968, "end": 6443220102, "name": "sub_1800BBC00", "pseudocode": "// \n// sub_1800BBC00 from 0x1800bbc00 to 0x1800bbc86 (134 bytes)\n// \n// 7 xrefs:\n// > kmGLPushMatrix @ 0x1800bbea9\n// > sub_1800BBFE0 @ 0x1800bc048\n// > sub_1800BBFE0 @ 0x1800bc059\n// > sub_1800BBFE0 @ 0x1800bc06a\n// > <???> @ 0x180141a54\n// > <???> @ 0x180141a64\n// > <???> @ 0x1801b8f40\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\n__int64 __fastcall sub_1800BBC00(unsigned int *a1, _OWORD *a2)\n{\n  _OWORD *v3; // rcx\n  __int64 result; // rax\n  unsigned int v5; // eax\n  void *v6; // rbx\n  void *v7; // rax\n  int v8; // edx\n\n  v3 = (_OWORD *)(*((_QWORD *)a1 + 2) + ((__int64)(int)a1[1] << 6));\n  *((_QWORD *)a1 + 1) = v3;\n  kmMat4Fill(v3, a2);\n  ++a1[1];\n  result = *a1;\n  if ( (int)a1[1] >= (int)result )\n  {\n    v5 = result + 50;\n    v6 = *((void **)a1 + 2);\n    *a1 = v5;\n    v7 = malloc((__int64)(int)v5 << 6);\n    v8 = *a1 - 50;\n    *((_QWORD *)a1 + 2) = v7;\n    memcpy(v7, v6, (__int64)v8 << 6);\n    free(v6);\n    result = a1[1] - 1;\n    *((_QWORD *)a1 + 1) = *((_QWORD *)a1 + 2) + ((__int64)(int)result << 6);\n  }\n  return result;\n}", "assembly": "; \n; sub_1800BBC00 from 0x1800bbc00 to 0x1800bbc86 (134 bytes)\n; \n; 7 xrefs:\n; > kmGLPushMatrix @ 0x1800bbea9\n; > sub_1800BBFE0 @ 0x1800bc048\n; > sub_1800BBFE0 @ 0x1800bc059\n; > sub_1800BBFE0 @ 0x1800bc06a\n; > <???> @ 0x180141a54\n; > <???> @ 0x180141a64\n; > <???> @ 0x1801b8f40\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    rdi                                                            ; +0x0, 0x1800bbc00\nsub     rsp, 20h                                                       ; +0x2, 0x1800bbc02\nmov     rdi, rcx                                                       ; +0x6, 0x1800bbc06\nmovsxd  rcx, dword ptr [rcx+4]                                         ; +0x9, 0x1800bbc09\nshl     rcx, 6                                                         ; +0xd, 0x1800bbc0d\nadd     rcx, [rdi+10h]                                                 ; +0x11, 0x1800bbc11\nmov     [rdi+8], rcx                                                   ; +0x15, 0x1800bbc15\ncall    kmMat4Fill                                                     ; +0x19, 0x1800bbc19\ninc     dword ptr [rdi+4]                                              ; +0x1e, 0x1800bbc1e\nmov     eax, [rdi]                                                     ; +0x21, 0x1800bbc21\ncmp     [rdi+4], eax                                                   ; +0x23, 0x1800bbc23\njl      short loc_1800BBC80                                            ; +0x26, 0x1800bbc26\nadd     eax, 32h ; '2'                                                 ; +0x28, 0x1800bbc28\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2b, 0x1800bbc2b\nmov     rbx, [rdi+10h]                                                 ; +0x30, 0x1800bbc30\nmovsxd  rcx, eax                                                       ; +0x34, 0x1800bbc34\nshl     rcx, 6; Size                                                   ; +0x37, 0x1800bbc37\nmov     [rdi], eax                                                     ; +0x3b, 0x1800bbc3b\ncall    cs:__imp_malloc                                                ; +0x3d, 0x1800bbc3d\nmov     edx, [rdi]                                                     ; +0x43, 0x1800bbc43\nmov     rcx, rax; void *                                               ; +0x45, 0x1800bbc45\nsub     edx, 32h ; '2'                                                 ; +0x48, 0x1800bbc48\nmov     [rdi+10h], rax                                                 ; +0x4b, 0x1800bbc4b\nmovsxd  r8, edx                                                        ; +0x4f, 0x1800bbc4f\nmov     rdx, rbx; Src                                                  ; +0x52, 0x1800bbc52\nshl     r8, 6; Size                                                    ; +0x55, 0x1800bbc55\ncall    memcpy                                                         ; +0x59, 0x1800bbc59\nmov     rcx, rbx; Block                                                ; +0x5e, 0x1800bbc5e\ncall    cs:__imp_free                                                  ; +0x61, 0x1800bbc61\nmov     eax, [rdi+4]                                                   ; +0x67, 0x1800bbc67\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6a, 0x1800bbc6a\ndec     eax                                                            ; +0x6f, 0x1800bbc6f\nmovsxd  rcx, eax                                                       ; +0x71, 0x1800bbc71\nshl     rcx, 6                                                         ; +0x74, 0x1800bbc74\nadd     rcx, [rdi+10h]                                                 ; +0x78, 0x1800bbc78\nmov     [rdi+8], rcx                                                   ; +0x7c, 0x1800bbc7c\nadd     rsp, 20h                                                       ; +0x80, 0x1800bbc80\npop     rdi                                                            ; +0x84, 0x1800bbc84\nretn                                                                   ; +0x85, 0x1800bbc85", "xrefs": ["kmGLPushMatrix @ 0x1800bbea9", "sub_1800BBFE0 @ 0x1800bc048", "sub_1800BBFE0 @ 0x1800bc059", "sub_1800BBFE0 @ 0x1800bc06a", "<???> @ 0x180141a54", "<???> @ 0x180141a64", "<???> @ 0x1801b8f40"], "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"}