//
// std::__ndk1::thread::join from 0xf86648 to 0xf866d0 (136 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCThreadPool::shutdown @ 0xd1cfec
// > ??> @ 0xad800
//
// This function is hookable on this platform (idp: arm, 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 13:13:53 +0000
//
__int64 __fastcall std::thread::join(pthread_t *this)
{
__int64 result; // x0
unsigned int v3; // w20
void *exception; // x19
__int64 *v5; // x0
result = pthread_join(*this, nullptr);
if ( (_DWORD)result )
{
v3 = result;
exception = _cxa_allocate_exception(0x20u);
v5 = std::system_category();
std::system_error::system_error((__int64)exception, v3, (__int64)v5, "thread::join failed");
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::system_error,
(void (*)(void *))std::system_error::~system_error);
}
*this = 0;
return result;
}