//
// std::__ndk1::__thread_specific_ptr::__thread_specific_ptr from 0x97ea94 to 0x97eaf0 (92 bytes)
//
// 1 xrefs:
// > std::__ndk1::__thread_local_data @ 0x97ea5a
//
// 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
//
pthread_key_t *__fastcall std::__thread_specific_ptr::__thread_specific_ptr(pthread_key_t *key)
{
unsigned int v2; // r5
void *exception; // r4
int *v5; // r0
v2 = pthread_key_create(key, (void (*)(void *))std::__thread_specific_ptr::__at_thread_exit);
if ( v2 )
{
exception = _cxa_allocate_exception(0x10u);
v5 = std::system_category();
std::system_error::system_error((int)exception, v2, (unsigned int)v5, "__thread_specific_ptr construction failed");
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::system_error,
(void (*)(void *))std::system_error::~system_error);
}
return key;
}