//
// cocos2d::extension::CCHttpClient::dispatchResponseCallbacks from 0x1800181d0 to 0x1800182b5 (229 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCHttpClient::CCHttpClient @ 0x18001765c
// > cocos2d::extension::CCHttpClient::~CCHttpClient @ 0x1800176f8
// > ??> @ 0x180032408
// > ??> @ 0x18004ca10
//
// This function is hookable on this platform (idp: pc, 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 12:15:42 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall cocos2d::extension::CCHttpClient::dispatchResponseCallbacks(
cocos2d::extension::CCHttpClient *this,
float a2)
{
struct cocos2d::CCObject *v3; // rdi
_Mtx_t v4; // rbx
__int64 v5; // rax
__int64 v6; // rcx
void (__fastcall *v7)(__int64, cocos2d::extension::CCHttpClient *, struct cocos2d::CCObject *); // r9
v3 = nullptr;
v4 = qword_18004A620;
if ( Mtx_lock(qword_18004A620) )
{
std::_Throw_Cpp_error(5);
__debugbreak();
}
if ( *((_DWORD *)v4 + 19) == 0x7FFFFFFF )
{
*((_DWORD *)v4 + 19) = 2147483646;
std::_Throw_Cpp_error(6);
}
if ( cocos2d::CCArray::count((cocos2d::CCArray *)qword_18004A770) )
{
v3 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)qword_18004A770, 0);
cocos2d::CCObject::retain(v3);
cocos2d::CCArray::removeObjectAtIndex((cocos2d::CCArray *)qword_18004A770, 0, 1);
}
Mtx_unlock(v4);
if ( v3 )
{
v5 = *((_QWORD *)v3 + 7);
if ( v5 )
{
v6 = *(_QWORD *)(v5 + 152);
v7 = *(void (__fastcall **)(__int64, cocos2d::extension::CCHttpClient *, struct cocos2d::CCObject *))(v5 + 160);
if ( v6 )
{
if ( v7 )
v7(v6, this, v3);
}
}
cocos2d::CCObject::release(v3);
}
}