//
// cocos2d::extension::CCHttpResponse::setErrorBuffer from 0x18001d370 to 0x18001d3a2 (50 bytes)
//
// 1 xrefs:
// > ??> @ 0x180032408
//
// 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:44 +0000
//
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_1800035E0((void **)v2, a2, v4);
}