{"type": "func", "start": 6443318176, "end": 6443318470, "name": "sub_1800D3BA0", "pseudocode": "// \n// sub_1800D3BA0 from 0x1800d3ba0 to 0x1800d3cc6 (294 bytes)\n// \n// 2 xrefs:\n// > FMOD::Geometry::setPolygonVertex @ 0x1800a4712\n// > <???> @ 0x1801fed0c\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 10:54:10 +0000\n// \n\n__int64 __fastcall sub_1800D3BA0(__int64 a1, int a2, int a3, __int64 a4)\n{\n  __int64 v6; // rbp\n  __int64 v7; // rbx\n  struct _RTL_CRITICAL_SECTION *v8; // r14\n  __int64 v9; // rbx\n  unsigned int v10; // ebx\n\n  v6 = a3;\n  v7 = a2;\n  v8 = *(struct _RTL_CRITICAL_SECTION **)(*(_QWORD *)(a1 + 24) + 400LL);\n  FMOD_OS_CriticalSection_Enter(v8);\n  if ( (int)v7 >= 0\n    && (int)v7 < *(_DWORD *)(a1 + 44)\n    && (v9 = *(_QWORD *)(a1 + 64) + *(int *)(*(_QWORD *)(a1 + 48) + 4 * v7), (int)v6 >= 0)\n    && (int)v6 < *(unsigned __int16 *)(v9 + 184)\n    && a4 )\n  {\n    if ( *(float *)a4 != *(float *)(v9 + 12 * v6 + 188)\n      || *(float *)(a4 + 4) != *(float *)(v9 + 12 * v6 + 192)\n      || *(float *)(a4 + 8) != *(float *)(v9 + 12 * v6 + 196) )\n    {\n      *(_QWORD *)(v9 + 12 * v6 + 188) = *(_QWORD *)a4;\n      *(_DWORD *)(v9 + 12 * v6 + 196) = *(_DWORD *)(a4 + 8);\n      if ( (*(_BYTE *)(v9 + 24) & 0x40) != 0 )\n      {\n        sub_1800D5F40(a1 + 272);\n        *(_QWORD *)(v9 + 72) = *(_QWORD *)(a1 + 80);\n        *(_QWORD *)(a1 + 80) = v9;\n      }\n      sub_1800D40F0(a1);\n    }\n    v10 = 0;\n  }\n  else\n  {\n    v10 = 31;\n  }\n  FMOD_OS_CriticalSection_Leave(v8);\n  return v10;\n}", "assembly": "; \n; sub_1800D3BA0 from 0x1800d3ba0 to 0x1800d3cc6 (294 bytes)\n; \n; 2 xrefs:\n; > FMOD::Geometry::setPolygonVertex @ 0x1800a4712\n; > <???> @ 0x1801fed0c\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 10:54:10 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800d3ba0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800d3ba5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800d3baa\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800d3baf\npush    r14                                                            ; +0x14, 0x1800d3bb4\nsub     rsp, 20h                                                       ; +0x16, 0x1800d3bb6\nmov     rax, [rcx+18h]                                                 ; +0x1a, 0x1800d3bba\nmov     rdi, rcx                                                       ; +0x1e, 0x1800d3bbe\nmov     rsi, r9                                                        ; +0x21, 0x1800d3bc1\nmovsxd  rbp, r8d                                                       ; +0x24, 0x1800d3bc4\nmovsxd  rbx, edx                                                       ; +0x27, 0x1800d3bc7\nmov     r14, [rax+190h]                                                ; +0x2a, 0x1800d3bca\nmov     rcx, r14                                                       ; +0x31, 0x1800d3bd1\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x34, 0x1800d3bd4\ntest    ebx, ebx                                                       ; +0x39, 0x1800d3bd9\njs      loc_1800D3C9C                                                  ; +0x3b, 0x1800d3bdb\ncmp     ebx, [rdi+2Ch]                                                 ; +0x41, 0x1800d3be1\njge     loc_1800D3C9C                                                  ; +0x44, 0x1800d3be4\nmov     rax, [rdi+30h]                                                 ; +0x4a, 0x1800d3bea\nmovsxd  rbx, dword ptr [rax+rbx*4]                                     ; +0x4e, 0x1800d3bee\nadd     rbx, [rdi+40h]                                                 ; +0x52, 0x1800d3bf2\ntest    ebp, ebp                                                       ; +0x56, 0x1800d3bf6\njs      loc_1800D3C9C                                                  ; +0x58, 0x1800d3bf8\nmovzx   eax, word ptr [rbx+0B8h]                                       ; +0x5e, 0x1800d3bfe\ncmp     ebp, eax                                                       ; +0x65, 0x1800d3c05\njge     loc_1800D3C9C                                                  ; +0x67, 0x1800d3c07\ntest    rsi, rsi                                                       ; +0x6d, 0x1800d3c0d\njz      loc_1800D3C9C                                                  ; +0x70, 0x1800d3c10\nmovss   xmm0, dword ptr [rsi]                                          ; +0x76, 0x1800d3c16\nlea     rcx, ds:0[rbp*2]                                               ; +0x7a, 0x1800d3c1a\nadd     rcx, rbp                                                       ; +0x82, 0x1800d3c22\nucomiss xmm0, dword ptr [rbx+rcx*4+0BCh]                               ; +0x85, 0x1800d3c25\njnz     short loc_1800D3C58                                            ; +0x8d, 0x1800d3c2d\nmovss   xmm0, dword ptr [rsi+4]                                        ; +0x8f, 0x1800d3c2f\nlea     rax, ds:0[rbp*2]                                               ; +0x94, 0x1800d3c34\nadd     rax, rbp                                                       ; +0x9c, 0x1800d3c3c\nucomiss xmm0, dword ptr [rbx+rax*4+0C0h]                               ; +0x9f, 0x1800d3c3f\njnz     short loc_1800D3C58                                            ; +0xa7, 0x1800d3c47\nmovss   xmm0, dword ptr [rsi+8]                                        ; +0xa9, 0x1800d3c49\nucomiss xmm0, dword ptr [rbx+rcx*4+0C4h]                               ; +0xae, 0x1800d3c4e\njz      short loc_1800D3C98                                            ; +0xb6, 0x1800d3c56\nmovsd   xmm0, qword ptr [rsi]                                          ; +0xb8, 0x1800d3c58\nmovsd   qword ptr [rbx+rcx*4+0BCh], xmm0                               ; +0xbc, 0x1800d3c5c\nmov     eax, [rsi+8]                                                   ; +0xc5, 0x1800d3c65\nmov     [rbx+rcx*4+0C4h], eax                                          ; +0xc8, 0x1800d3c68\ntest    byte ptr [rbx+18h], 40h                                        ; +0xcf, 0x1800d3c6f\njz      short loc_1800D3C90                                            ; +0xd3, 0x1800d3c73\nlea     rcx, [rdi+110h]                                                ; +0xd5, 0x1800d3c75\nmov     rdx, rbx                                                       ; +0xdc, 0x1800d3c7c\ncall    sub_1800D5F40                                                  ; +0xdf, 0x1800d3c7f\nmov     rax, [rdi+50h]                                                 ; +0xe4, 0x1800d3c84\nmov     [rbx+48h], rax                                                 ; +0xe8, 0x1800d3c88\nmov     [rdi+50h], rbx                                                 ; +0xec, 0x1800d3c8c\nmov     rcx, rdi                                                       ; +0xf0, 0x1800d3c90\ncall    sub_1800D40F0                                                  ; +0xf3, 0x1800d3c93\nxor     ebx, ebx                                                       ; +0xf8, 0x1800d3c98\njmp     short loc_1800D3CA1                                            ; +0xfa, 0x1800d3c9a\nmov     ebx, 1Fh                                                       ; +0xfc, 0x1800d3c9c\nmov     rcx, r14                                                       ; +0x101, 0x1800d3ca1\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x104, 0x1800d3ca4\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x109, 0x1800d3ca9\nmov     eax, ebx                                                       ; +0x10e, 0x1800d3cae\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x110, 0x1800d3cb0\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x115, 0x1800d3cb5\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x11a, 0x1800d3cba\nadd     rsp, 20h                                                       ; +0x11f, 0x1800d3cbf\npop     r14                                                            ; +0x123, 0x1800d3cc3\nretn                                                                   ; +0x125, 0x1800d3cc5", "xrefs": ["FMOD::Geometry::setPolygonVertex @ 0x1800a4712", "<???> @ 0x1801fed0c"], "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"}