//
// FMOD_OS_Thread_Destroy from 0x1800c1730 to 0x1800c174d (29 bytes)
//
// 4 xrefs:
// > sub_1800B8560 @ 0x1800b85fd
// > ??> @ 0x180194348
// > ??> @ 0x1801fdbf0
// > ??> @ 0x1801fdbfc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:54:03 +0000
//
__int64 __fastcall FMOD_OS_Thread_Destroy(void *a1)
{
BOOL v1; // eax
unsigned int v2; // ecx
v1 = CloseHandle(a1);
v2 = 0;
if ( !v1 )
return 28;
return v2;
}