//
// cocos2d::extension::CCHttpClient::dispatchResponseCallbacks from 0x5ab870 to 0x5ab8fc (140 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::extension::CCHttpClient::dispatchResponseCallbacks(cocos2d::extension::CCHttpClient *a1, float a2)
{
cocos2d::CCObject *v3; // r4
cocos2d::CCObject_vtbl *v4; // r2
void (__fastcall *setTag)(cocos2d::CCObject *__hidden, int); // r0
cocos2d::CCObject *(__fastcall *copyWithZone)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *); // r3
int v7; // r2
int v8; // r1
int v9; // r2
std::mutex::lock((pthread_mutex_t *)&unk_AC8368);
if ( !cocos2d::CCArray::count((cocos2d::CCArray *)dword_AC836C) )
{
if ( !&pthread_create )
return;
v3 = nullptr;
goto LABEL_6;
}
v3 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)dword_AC836C, 0);
cocos2d::CCObject::retain(v3);
cocos2d::CCArray::removeObjectAtIndex((cocos2d::CCArray *)dword_AC836C, 0, 1);
if ( &pthread_create )
LABEL_6:
pthread_mutex_unlock((pthread_mutex_t *)&unk_AC8368);
if ( v3 )
{
v4 = v3[1].__vftable;
if ( v4 )
{
setTag = v4[1].setTag;
copyWithZone = v4[2].copyWithZone;
v7 = (int)v4[2].~CCObject;
if ( setTag )
{
v8 = v7 & 1;
if ( copyWithZone || (v7 & 1) != 0 )
{
v9 = v7 >> 1;
if ( v8 )
copyWithZone = *(cocos2d::CCObject *(__fastcall **)(cocos2d::CCCopying *__hidden, cocos2d::CCZone *))((char *)copyWithZone + *(_DWORD *)((char *)setTag + v9));
((void (__fastcall *)(char *, cocos2d::extension::CCHttpClient *, cocos2d::CCObject *))copyWithZone)(
(char *)setTag + v9,
a1,
v3);
}
}
}
cocos2d::CCObject::release(v3);
}
}