{"type": "func", "start": 6443344112, "end": 6443344215, "name": "sub_1800DA0F0", "pseudocode": "// \n// sub_1800DA0F0 from 0x1800da0f0 to 0x1800da157 (103 bytes)\n// \n// 5 xrefs:\n// > sub_1800D9EB0 @ 0x1800d9fc6\n// > sub_1800D9EB0 @ 0x1800d9fba\n// > <???> @ 0x18016ce68\n// > <???> @ 0x1801ff1ec\n// > <???> @ 0x1801ff1f8\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_1800DA0F0(__int64 a1)\n{\n  struct _RTL_CRITICAL_SECTION *v1; // rbp\n  _QWORD **v2; // rsi\n  _QWORD *v3; // rbx\n  unsigned int v4; // edi\n\n  v1 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 64);\n  v2 = (_QWORD **)(a1 + 16);\n  FMOD_OS_CriticalSection_Enter(v1);\n  v3 = *v2;\n  if ( *v2 == v2 )\n  {\nLABEL_4:\n    v4 = 0;\n  }\n  else\n  {\n    while ( 1 )\n    {\n      v4 = sub_1801122A0(v3);\n      if ( v4 )\n        break;\n      v3 = (_QWORD *)*v3;\n      if ( v3 == v2 )\n        goto LABEL_4;\n    }\n  }\n  FMOD_OS_CriticalSection_Leave(v1);\n  return v4;\n}", "assembly": "; \n; sub_1800DA0F0 from 0x1800da0f0 to 0x1800da157 (103 bytes)\n; \n; 5 xrefs:\n; > sub_1800D9EB0 @ 0x1800d9fc6\n; > sub_1800D9EB0 @ 0x1800d9fba\n; > <???> @ 0x18016ce68\n; > <???> @ 0x1801ff1ec\n; > <???> @ 0x1801ff1f8\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_0], rbx                                               ; +0x0, 0x1800da0f0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800da0f5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800da0fa\npush    rdi                                                            ; +0xf, 0x1800da0ff\nsub     rsp, 20h                                                       ; +0x10, 0x1800da100\nmov     rbp, [rcx+40h]                                                 ; +0x14, 0x1800da104\nlea     rsi, [rcx+10h]                                                 ; +0x18, 0x1800da108\nmov     rcx, rbp                                                       ; +0x1c, 0x1800da10c\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x1f, 0x1800da10f\nmov     rbx, [rsi]                                                     ; +0x24, 0x1800da114\ncmp     rbx, rsi                                                       ; +0x27, 0x1800da117\njz      short loc_1800DA136                                            ; +0x2a, 0x1800da11a\nnop     dword ptr [rax+00h]                                            ; +0x2c, 0x1800da11c\nmov     rcx, rbx                                                       ; +0x30, 0x1800da120\ncall    sub_1801122A0                                                  ; +0x33, 0x1800da123\nmov     edi, eax                                                       ; +0x38, 0x1800da128\ntest    eax, eax                                                       ; +0x3a, 0x1800da12a\njnz     short loc_1800DA138                                            ; +0x3c, 0x1800da12c\nmov     rbx, [rbx]                                                     ; +0x3e, 0x1800da12e\ncmp     rbx, rsi                                                       ; +0x41, 0x1800da131\njnz     short loc_1800DA120                                            ; +0x44, 0x1800da134\nxor     edi, edi                                                       ; +0x46, 0x1800da136\nmov     rcx, rbp                                                       ; +0x48, 0x1800da138\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x4b, 0x1800da13b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x50, 0x1800da140\nmov     eax, edi                                                       ; +0x55, 0x1800da145\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x57, 0x1800da147\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x5c, 0x1800da14c\nadd     rsp, 20h                                                       ; +0x61, 0x1800da151\npop     rdi                                                            ; +0x65, 0x1800da155\nretn                                                                   ; +0x66, 0x1800da156", "xrefs": ["sub_1800D9EB0 @ 0x1800d9fc6", "sub_1800D9EB0 @ 0x1800d9fba", "<???> @ 0x18016ce68", "<???> @ 0x1801ff1ec", "<???> @ 0x1801ff1f8"], "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"}