{"type": "func", "start": 6443234144, "end": 6443234278, "name": "sub_1800BF360", "pseudocode": "// \n// sub_1800BF360 from 0x1800bf360 to 0x1800bf3e6 (134 bytes)\n// \n// 7 xrefs:\n// > kmGLPushMatrix @ 0x1800bf609\n// > sub_1800BF740 @ 0x1800bf7a8\n// > sub_1800BF740 @ 0x1800bf7b9\n// > sub_1800BF740 @ 0x1800bf7ca\n// > <???> @ 0x18014adb4\n// > <???> @ 0x18014adc4\n// > <???> @ 0x1801c31f8\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 11:22:24 +0000\n// \n\n__int64 __fastcall sub_1800BF360(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_1800BF360 from 0x1800bf360 to 0x1800bf3e6 (134 bytes)\n; \n; 7 xrefs:\n; > kmGLPushMatrix @ 0x1800bf609\n; > sub_1800BF740 @ 0x1800bf7a8\n; > sub_1800BF740 @ 0x1800bf7b9\n; > sub_1800BF740 @ 0x1800bf7ca\n; > <???> @ 0x18014adb4\n; > <???> @ 0x18014adc4\n; > <???> @ 0x1801c31f8\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 11:22:24 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800bf360\nsub     rsp, 20h                                                       ; +0x2, 0x1800bf362\nmov     rdi, rcx                                                       ; +0x6, 0x1800bf366\nmovsxd  rcx, dword ptr [rcx+4]                                         ; +0x9, 0x1800bf369\nshl     rcx, 6                                                         ; +0xd, 0x1800bf36d\nadd     rcx, [rdi+10h]                                                 ; +0x11, 0x1800bf371\nmov     [rdi+8], rcx                                                   ; +0x15, 0x1800bf375\ncall    kmMat4Fill                                                     ; +0x19, 0x1800bf379\ninc     dword ptr [rdi+4]                                              ; +0x1e, 0x1800bf37e\nmov     eax, [rdi]                                                     ; +0x21, 0x1800bf381\ncmp     [rdi+4], eax                                                   ; +0x23, 0x1800bf383\njl      short loc_1800BF3E0                                            ; +0x26, 0x1800bf386\nadd     eax, 32h ; '2'                                                 ; +0x28, 0x1800bf388\nmov     [rsp+28h+arg_0], rbx                                           ; +0x2b, 0x1800bf38b\nmov     rbx, [rdi+10h]                                                 ; +0x30, 0x1800bf390\nmovsxd  rcx, eax                                                       ; +0x34, 0x1800bf394\nshl     rcx, 6; Size                                                   ; +0x37, 0x1800bf397\nmov     [rdi], eax                                                     ; +0x3b, 0x1800bf39b\ncall    cs:__imp_malloc                                                ; +0x3d, 0x1800bf39d\nmov     edx, [rdi]                                                     ; +0x43, 0x1800bf3a3\nmov     rcx, rax; void *                                               ; +0x45, 0x1800bf3a5\nsub     edx, 32h ; '2'                                                 ; +0x48, 0x1800bf3a8\nmov     [rdi+10h], rax                                                 ; +0x4b, 0x1800bf3ab\nmovsxd  r8, edx                                                        ; +0x4f, 0x1800bf3af\nmov     rdx, rbx; Src                                                  ; +0x52, 0x1800bf3b2\nshl     r8, 6; Size                                                    ; +0x55, 0x1800bf3b5\ncall    memcpy                                                         ; +0x59, 0x1800bf3b9\nmov     rcx, rbx; Block                                                ; +0x5e, 0x1800bf3be\ncall    cs:__imp_free                                                  ; +0x61, 0x1800bf3c1\nmov     eax, [rdi+4]                                                   ; +0x67, 0x1800bf3c7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6a, 0x1800bf3ca\ndec     eax                                                            ; +0x6f, 0x1800bf3cf\nmovsxd  rcx, eax                                                       ; +0x71, 0x1800bf3d1\nshl     rcx, 6                                                         ; +0x74, 0x1800bf3d4\nadd     rcx, [rdi+10h]                                                 ; +0x78, 0x1800bf3d8\nmov     [rdi+8], rcx                                                   ; +0x7c, 0x1800bf3dc\nadd     rsp, 20h                                                       ; +0x80, 0x1800bf3e0\npop     rdi                                                            ; +0x84, 0x1800bf3e4\nretn                                                                   ; +0x85, 0x1800bf3e5", "xrefs": ["kmGLPushMatrix @ 0x1800bf609", "sub_1800BF740 @ 0x1800bf7a8", "sub_1800BF740 @ 0x1800bf7b9", "sub_1800BF740 @ 0x1800bf7ca", "<???> @ 0x18014adb4", "<???> @ 0x18014adc4", "<???> @ 0x1801c31f8"], "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"}