//
// cocos2d::extension::WsThreadHelper::update from 0xd1f378 to 0xd1f434 (188 bytes)
//
// 2 xrefs:
// > ??> @ 0x72eb0
// > ??> @ 0x1510868
//
// 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:07:10 +0000
//
void __fastcall cocos2d::extension::WsThreadHelper::update(cocos2d::extension::WsThreadHelper *this, float a2)
{
pthread_mutex_t *v2; // x20
__int64 v4; // x2
_QWORD *v5; // x0
void *v6; // x21
__int64 v7; // x0
v2 = (pthread_mutex_t *)((char *)this + 72);
pthread_mutex_lock((pthread_mutex_t *)((char *)this + 72));
v4 = *((_QWORD *)this + 7);
if ( *(_QWORD *)(v4 + 16) )
{
v5 = *(_QWORD **)(v4 + 8);
v6 = (void *)v5[2];
*(_QWORD *)(*v5 + 8LL) = v5[1];
*(_QWORD *)v5[1] = *v5;
--*(_QWORD *)(v4 + 16);
operator delete(v5);
pthread_mutex_unlock(v2);
v7 = *((_QWORD *)this + 20);
if ( v7 )
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v7 + 40LL))(v7, v6);
if ( v6 )
operator delete(v6);
}
else
{
pthread_mutex_unlock(v2);
}
}