{"type": "func", "start": 6443346448, "end": 6443346625, "name": "sub_1800DAA10", "pseudocode": "// \n// sub_1800DAA10 from 0x1800daa10 to 0x1800daac1 (177 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x18016ce40\n// > <???> @ 0x18018c690\n// > <???> @ 0x18018c6a0\n// > <???> @ 0x18018c6b8\n// > <???> @ 0x1801ff2b8\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_1800DAA10(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 result; // rax\n  struct _RTL_CRITICAL_SECTION *v7; // r14\n  _QWORD *v8; // rbx\n  _QWORD *v9; // rdi\n  unsigned int v10; // esi\n  DWORD v11; // [rsp+58h] [rbp+20h] BYREF\n\n  v11 = 0;\n  result = sub_1800C1770(&v11);\n  if ( !(_DWORD)result )\n  {\n    *(_DWORD *)(a2 + 4) = v11 - *(_DWORD *)(a1 + 72);\n    if ( a3 )\n    {\n      result = sub_180113070(a3, a2);\n      if ( (_DWORD)result )\n        return result;\n      return 0;\n    }\n    v7 = *(struct _RTL_CRITICAL_SECTION **)(a1 + 64);\n    FMOD_OS_CriticalSection_Enter(v7);\n    v8 = *(_QWORD **)(a1 + 16);\n    v9 = (_QWORD *)(a1 + 16);\n    if ( v8 == v9 )\n    {\nLABEL_8:\n      FMOD_OS_CriticalSection_Leave(v7);\n      return 0;\n    }\n    while ( 1 )\n    {\n      v10 = sub_180113070(v8, a2);\n      if ( v10 )\n        break;\n      v8 = (_QWORD *)*v8;\n      if ( v8 == v9 )\n        goto LABEL_8;\n    }\n    FMOD_OS_CriticalSection_Leave(v7);\n    return v10;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800DAA10 from 0x1800daa10 to 0x1800daac1 (177 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x18016ce40\n; > <???> @ 0x18018c690\n; > <???> @ 0x18018c6a0\n; > <???> @ 0x18018c6b8\n; > <???> @ 0x1801ff2b8\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    rbx                                                            ; +0x0, 0x1800daa10\npush    rbp                                                            ; +0x2, 0x1800daa12\npush    rdi                                                            ; +0x3, 0x1800daa13\nsub     rsp, 20h                                                       ; +0x4, 0x1800daa14\nmov     rdi, rcx                                                       ; +0x8, 0x1800daa18\nmov     [rsp+38h+arg_18], 0                                            ; +0xb, 0x1800daa1b\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x13, 0x1800daa23\nmov     rbx, r8                                                        ; +0x18, 0x1800daa28\nmov     rbp, rdx                                                       ; +0x1b, 0x1800daa2b\ncall    sub_1800C1770                                                  ; +0x1e, 0x1800daa2e\ntest    eax, eax                                                       ; +0x23, 0x1800daa33\njnz     short loc_1800DAAAD                                            ; +0x25, 0x1800daa35\nmov     eax, [rsp+38h+arg_18]                                          ; +0x27, 0x1800daa37\nsub     eax, [rdi+48h]                                                 ; +0x2b, 0x1800daa3b\nmov     [rsp+38h+arg_0], rsi                                           ; +0x2e, 0x1800daa3e\nmov     [rsp+38h+arg_8], r14                                           ; +0x33, 0x1800daa43\nmov     [rbp+4], eax                                                   ; +0x38, 0x1800daa48\ntest    rbx, rbx                                                       ; +0x3b, 0x1800daa4b\njz      short loc_1800DAA61                                            ; +0x3e, 0x1800daa4e\nmov     rdx, rbp                                                       ; +0x40, 0x1800daa50\nmov     rcx, rbx                                                       ; +0x43, 0x1800daa53\ncall    sub_180113070                                                  ; +0x46, 0x1800daa56\ntest    eax, eax                                                       ; +0x4b, 0x1800daa5b\njz      short loc_1800DAAA1                                            ; +0x4d, 0x1800daa5d\njmp     short loc_1800DAAA3                                            ; +0x4f, 0x1800daa5f\nmov     r14, [rdi+40h]                                                 ; +0x51, 0x1800daa61\nmov     rcx, r14                                                       ; +0x55, 0x1800daa65\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x58, 0x1800daa68\nmov     rbx, [rdi+10h]                                                 ; +0x5d, 0x1800daa6d\nadd     rdi, 10h                                                       ; +0x61, 0x1800daa71\ncmp     rbx, rdi                                                       ; +0x65, 0x1800daa75\njz      short loc_1800DAA99                                            ; +0x68, 0x1800daa78\nnop     word ptr [rax+rax+00h]                                         ; +0x6a, 0x1800daa7a\nmov     rdx, rbp                                                       ; +0x70, 0x1800daa80\nmov     rcx, rbx                                                       ; +0x73, 0x1800daa83\ncall    sub_180113070                                                  ; +0x76, 0x1800daa86\nmov     esi, eax                                                       ; +0x7b, 0x1800daa8b\ntest    eax, eax                                                       ; +0x7d, 0x1800daa8d\njnz     short loc_1800DAAB5                                            ; +0x7f, 0x1800daa8f\nmov     rbx, [rbx]                                                     ; +0x81, 0x1800daa91\ncmp     rbx, rdi                                                       ; +0x84, 0x1800daa94\njnz     short loc_1800DAA80                                            ; +0x87, 0x1800daa97\nmov     rcx, r14                                                       ; +0x89, 0x1800daa99\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x8c, 0x1800daa9c\nxor     eax, eax                                                       ; +0x91, 0x1800daaa1\nmov     rsi, [rsp+38h+arg_0]                                           ; +0x93, 0x1800daaa3\nmov     r14, [rsp+38h+arg_8]                                           ; +0x98, 0x1800daaa8\nadd     rsp, 20h                                                       ; +0x9d, 0x1800daaad\npop     rdi                                                            ; +0xa1, 0x1800daab1\npop     rbp                                                            ; +0xa2, 0x1800daab2\npop     rbx                                                            ; +0xa3, 0x1800daab3\nretn                                                                   ; +0xa4, 0x1800daab4\nmov     rcx, r14                                                       ; +0xa5, 0x1800daab5\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0xa8, 0x1800daab8\nmov     eax, esi                                                       ; +0xad, 0x1800daabd\njmp     short loc_1800DAAA3                                            ; +0xaf, 0x1800daabf", "xrefs": ["<???> @ 0x18016ce40", "<???> @ 0x18018c690", "<???> @ 0x18018c6a0", "<???> @ 0x18018c6b8", "<???> @ 0x1801ff2b8"], "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"}