//
// cocos2d::extension::CCHttpResponse::setErrorBuffer from 0x18001d720 to 0x18001d752 (50 bytes)
//
// 1 xrefs:
// > ??> @ 0x18002fdf8
//
// 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 __fastcall cocos2d::extension::CCHttpResponse::setErrorBuffer(cocos2d::extension::CCHttpResponse *this, char *a2)
{
char *v2; // rcx
_BYTE *v3; // rax
size_t v4; // r8
v2 = (char *)this + 128;
v3 = v2;
*((_QWORD *)v2 + 2) = 0;
if ( *((_QWORD *)v2 + 3) > 0xFu )
v3 = *(_BYTE **)v2;
*v3 = 0;
v4 = -1;
do
++v4;
while ( a2[v4] );
sub_180003BC0((void **)v2, a2, v4);
}