{"type": "func", "start": 6443359056, "end": 6443359169, "name": "sub_1800DDB50", "pseudocode": "// \n// sub_1800DDB50 from 0x1800ddb50 to 0x1800ddbc1 (113 bytes)\n// \n// 2 xrefs:\n// > FMOD::SoundGroup::getNumSounds @ 0x1800aa9f0\n// > <???> @ 0x1801ff660\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_1800DDB50(__int64 a1, _DWORD *a2)\n{\n  _QWORD *v5; // rax\n  int i; // ecx\n\n  if ( !a2 )\n    return 31;\n  FMOD_OS_CriticalSection_Enter(*((struct _RTL_CRITICAL_SECTION **)off_1801AED20 + 36));\n  v5 = *(_QWORD **)(a1 + 40);\n  for ( i = 0; v5 != (_QWORD *)(a1 + 40); ++i )\n    v5 = (_QWORD *)*v5;\n  *a2 = i;\n  FMOD_OS_CriticalSection_Leave(*((struct _RTL_CRITICAL_SECTION **)off_1801AED20 + 36));\n  return 0;\n}", "assembly": "; \n; sub_1800DDB50 from 0x1800ddb50 to 0x1800ddbc1 (113 bytes)\n; \n; 2 xrefs:\n; > FMOD::SoundGroup::getNumSounds @ 0x1800aa9f0\n; > <???> @ 0x1801ff660\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, 0x1800ddb50\npush    rdi                                                            ; +0x5, 0x1800ddb55\nsub     rsp, 20h                                                       ; +0x6, 0x1800ddb56\nmov     rbx, rdx                                                       ; +0xa, 0x1800ddb5a\nmov     rdi, rcx                                                       ; +0xd, 0x1800ddb5d\ntest    rdx, rdx                                                       ; +0x10, 0x1800ddb60\njnz     short loc_1800DDB73                                            ; +0x13, 0x1800ddb63\nlea     eax, [rdx+1Fh]                                                 ; +0x15, 0x1800ddb65\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x18, 0x1800ddb68\nadd     rsp, 20h                                                       ; +0x1d, 0x1800ddb6d\npop     rdi                                                            ; +0x21, 0x1800ddb71\nretn                                                                   ; +0x22, 0x1800ddb72\nmov     rcx, cs:off_1801AED20                                          ; +0x23, 0x1800ddb73\nmov     rcx, [rcx+120h]                                                ; +0x2a, 0x1800ddb7a\ncall    FMOD_OS_CriticalSection_Enter                                  ; +0x31, 0x1800ddb81\nmov     rax, [rdi+28h]                                                 ; +0x36, 0x1800ddb86\nlea     rdx, [rdi+28h]                                                 ; +0x3a, 0x1800ddb8a\nxor     ecx, ecx                                                       ; +0x3e, 0x1800ddb8e\ncmp     rax, rdx                                                       ; +0x40, 0x1800ddb90\njz      short loc_1800DDB9F                                            ; +0x43, 0x1800ddb93\nmov     rax, [rax]                                                     ; +0x45, 0x1800ddb95\ninc     ecx                                                            ; +0x48, 0x1800ddb98\ncmp     rax, rdx                                                       ; +0x4a, 0x1800ddb9a\njnz     short loc_1800DDB95                                            ; +0x4d, 0x1800ddb9d\nmov     [rbx], ecx                                                     ; +0x4f, 0x1800ddb9f\nmov     rcx, cs:off_1801AED20                                          ; +0x51, 0x1800ddba1\nmov     rcx, [rcx+120h]                                                ; +0x58, 0x1800ddba8\ncall    FMOD_OS_CriticalSection_Leave                                  ; +0x5f, 0x1800ddbaf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x64, 0x1800ddbb4\nxor     eax, eax                                                       ; +0x69, 0x1800ddbb9\nadd     rsp, 20h                                                       ; +0x6b, 0x1800ddbbb\npop     rdi                                                            ; +0x6f, 0x1800ddbbf\nretn                                                                   ; +0x70, 0x1800ddbc0", "xrefs": ["FMOD::SoundGroup::getNumSounds @ 0x1800aa9f0", "<???> @ 0x1801ff660"], "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"}