//
// sub_10005BF40 from 0x10005bf40 to 0x10005bfa2 (98 bytes)
//
// 3 xrefs:
// > cocos2d::CCSAXParser::parse @ 0x1001554d9
// > cocos2d::CCSAXParser::parse_1 @ 0x1001555b5
// > ??> @ 0x100ab7d60
//
// 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:19:40 +0000
//
__int64 __fastcall sub_10005BF40(__int64 a1, __int64 a2)
{
_QWORD *i; // r15
if ( (*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 16LL))(a2, a1) )
{
for ( i = *(_QWORD **)(a1 + 48); i; i = (_QWORD *)i[9] )
{
if ( !(*(unsigned __int8 (__fastcall **)(_QWORD *, __int64))(*i + 112LL))(i, a2) )
break;
}
}
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 24LL))(a2, a1);
}