//
// std::__ndk1::__thread_specific_ptr::reset from 0x46ba10 to 0x46ba3a (42 bytes)
//
// 2 xrefs:
// > sub_46BA3C @ 0x46ba5a
// > sub_46BB18 @ 0x46bb36
//
// 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 11:49:00 +0000
//
void __fastcall std::__thread_specific_ptr::reset(pthread_key_t *a1, const void *a2)
{
std::__thread_struct *v4; // r4
v4 = (std::__thread_struct *)pthread_getspecific(*a1);
pthread_setspecific(*a1, a2);
if ( v4 )
{
std::__thread_struct::~__thread_struct(v4);
operator delete(v4);
}
}