//
// sub_1004383A0 from 0x1004383a0 to 0x1004383fe (94 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_1004383A0(__int64 a1)
{
std::thread *v1; // rbx
std::thread *v2; // r14
std::mutex::lock((std::mutex *)(a1 + 72));
*(_BYTE *)(a1 + 184) = 1;
std::mutex::unlock((std::mutex *)(a1 + 72));
std::condition_variable::notify_all((std::condition_variable *)(a1 + 136));
v1 = *(std::thread **)a1;
v2 = *(std::thread **)(a1 + 8);
while ( v1 != v2 )
{
if ( v1->__t_ )
std::thread::join(v1);
++v1;
}
}