//
// sub_1800B2260 from 0x1800b2260 to 0x1800b22b4 (84 bytes)
//
// 2 xrefs:
// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b106f
// > ??> @ 0x1801b852c
//
// 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
//
_QWORD *__fastcall sub_1800B2260(_QWORD *a1, _QWORD *a2, unsigned __int64 a3, size_t a4)
{
unsigned __int64 v5; // rax
size_t v6; // rax
*(_OWORD *)a2 = 0;
a2[2] = 0;
a2[3] = 0;
v5 = a1[2];
if ( v5 < a3 )
std::vector::_Xlen();
v6 = v5 - a3;
if ( v6 < a4 )
a4 = v6;
if ( a1[3] > 0xFu )
a1 = (_QWORD *)*a1;
sub_18000CE60(a2, (char *)a1 + a3, a4);
return a2;
}