//
// cocos2d::ZipUtils::hexToChar from 0x10023e648 to 0x10023e73c (244 bytes)
//
// 1 xrefs:
// > cocos2d::ZipUtils::urlDecode @ 0x10023e45c
//
// 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
//
__int64 __fastcall cocos2d::ZipUtils::hexToChar(__int64 a1)
{
__int64 v1; // x8
_QWORD v3[2]; // [xsp+8h] [xbp-128h] BYREF
void (__cdecl **v4)(std::streambuf *__hidden); // [xsp+18h] [xbp-118h]
std::locale v5[9]; // [xsp+20h] [xbp-110h] BYREF
char v6; // [xsp+6Fh] [xbp-C1h]
__int64 (__fastcall **v7)(); // [xsp+80h] [xbp-B0h] BYREF
__int16 v8; // [xsp+11Eh] [xbp-12h] BYREF
v8 = 0;
v1 = *(unsigned __int8 *)(a1 + 23);
if ( (v1 & 0x80u) != 0LL )
v1 = *(_QWORD *)(a1 + 8);
if ( v1 )
{
sub_10023E7DC(v3, a1, 8);
*(_DWORD *)((char *)&v3[1] + *(_QWORD *)(v3[0] - 24LL)) = *(_DWORD *)((_BYTE *)&v3[1] + *(_QWORD *)(v3[0] - 24LL))
& 0xFFFFFFB5
| 8;
std::istream::operator>>(v3, &v8);
v7 = off_1007C9550;
v3[0] = off_1007C9528;
v4 = (void (__cdecl **)(std::streambuf *__hidden))off_1007814C8;
if ( v6 < 0 )
operator delete(v5[7].__locale_);
v4 = &`vtable for'std::streambuf.~basic_streambuf;
std::locale::~locale(v5);
std::istream::~istream(v3, off_1007C9568);
std::ios::~ios(&v7);
LOBYTE(v1) = v8;
}
return (unsigned __int8)v1;
}