//
// cocos2d::extension::CCHttpClient::dispatchResponseCallbacks from 0x7b1628 to 0x7b16a6 (126 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:07 +0000
//
int __fastcall cocos2d::extension::CCHttpClient::dispatchResponseCallbacks(
cocos2d::extension::CCHttpClient *this,
float a2)
{
std::mutex *v3; // r5
cocos2d::CCObject *v4; // r4
int result; // r0
_DWORD *v6; // r2
int v7; // r0
void (__fastcall *v8)(int, cocos2d::extension::CCHttpClient *, cocos2d::CCObject *); // r3
int v9; // r2
int v10; // r1
int v11; // r2
v3 = (std::mutex *)dword_D2EACC;
std::mutex::lock((std::mutex *)dword_D2EACC);
if ( cocos2d::CCArray::count((cocos2d::CCArray *)dword_D2EAD0) )
{
v4 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)dword_D2EAD0, 0);
cocos2d::CCObject::retain(v4);
cocos2d::CCArray::removeObjectAtIndex((cocos2d::CCArray *)dword_D2EAD0, 0, 1);
}
else
{
v4 = nullptr;
}
result = std::mutex::unlock(v3);
if ( v4 )
{
v6 = *((_DWORD **)v4 + 13);
if ( v6 )
{
v7 = v6[23];
v8 = (void (__fastcall *)(int, cocos2d::extension::CCHttpClient *, cocos2d::CCObject *))v6[24];
v9 = v6[25];
if ( v7 )
{
v10 = v9 & 1;
if ( v8 || (v9 & 1) != 0 )
{
v11 = v9 >> 1;
if ( v10 )
v8 = *(void (__fastcall **)(int, cocos2d::extension::CCHttpClient *, cocos2d::CCObject *))((char *)v8 + *(_DWORD *)(v7 + v11));
v8(v7 + v11, this, v4);
}
}
}
return cocos2d::CCObject::release(v4);
}
return result;
}