//
// cocos2d::extension::WsThreadHelper::update from 0x7b2b96 to 0x7b2bee (88 bytes)
//
// 0 xrefs:
//
// 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:00:08 +0000
//
void __fastcall cocos2d::extension::WsThreadHelper::update(cocos2d::extension::WsThreadHelper *this, float a2)
{
pthread_mutex_t *v2; // r6
int v4; // r3
_DWORD *v5; // r0
void *v6; // r4
int v7; // r0
v2 = (pthread_mutex_t *)((char *)this + 60);
pthread_mutex_lock((pthread_mutex_t *)((char *)this + 60));
v4 = *((_DWORD *)this + 13);
if ( *(_DWORD *)(v4 + 8) )
{
v5 = *(_DWORD **)(v4 + 4);
v6 = (void *)v5[2];
*(_DWORD *)(*v5 + 4) = v5[1];
*(_DWORD *)v5[1] = *v5;
--*(_DWORD *)(v4 + 8);
operator delete(v5);
pthread_mutex_unlock(v2);
v7 = *((_DWORD *)this + 18);
if ( v7 )
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v7 + 20))(v7, v6);
if ( v6 )
operator delete(v6);
}
else
{
j_pthread_mutex_unlock(v2);
}
}