//
// std::__ndk1::thread::join from 0x97e8b8 to 0x97e910 (88 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCThreadPool::shutdown @ 0x7b174a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:05 +0000
//
int __fastcall std::thread::join(pthread_t *this)
{
int result; // r0
unsigned int v3; // r5
void *exception; // r4
int *v5; // r0
result = pthread_join(*this, nullptr);
v3 = result;
if ( result )
{
exception = _cxa_allocate_exception(0x10u);
v5 = std::system_category();
std::system_error::system_error((int)exception, v3, (unsigned int)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;
}