//
// sub_8E3C58 from 0x8e3c58 to 0x8e3c78 (32 bytes)
//
// 1 xrefs:
// > __emutls_get_address @ 0x8e3d34
//
// 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
//
int (**sub_8E3C58())(pthread_t *newthread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg)
{
int (**result)(pthread_t *, const pthread_attr_t *, void *(*)(void *), void *); // r0
result = sub_8E3B4C();
if ( result )
return (int (**)(pthread_t *, const pthread_attr_t *, void *(*)(void *), void *))pthread_mutex_lock((pthread_mutex_t *)&unk_AD4DA8);
return result;
}