//
// sub_CD2BDC from 0xcd2bdc to 0xcd2d3c (352 bytes)
//
// 3 xrefs:
// > pugi::xml_document::load @ 0xb5a668
// > pugi::xml_document::load @ 0xb5a674
// > pugi::xml_document::load @ 0xb5a694
//
// 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 sub_CD2BDC(unsigned __int64 *a1)
{
char *v2; // x0
char v4; // [xsp+38h] [xbp+38h] BYREF
sub_CD14C0(&v4, a1, 1);
if ( v4 && (v2 = (char *)a1 + *(_QWORD *)(*a1 - 24), (*((_DWORD *)v2 + 8) & 5) == 0) )
return (*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64, __int64))(**((_QWORD **)v2 + 29) + 32LL))(
*((_QWORD *)v2 + 29),
0,
1,
8);
else
return -1;
}