//
// pugi::xpath_node_set::_assign from 0xb5ded4 to 0xb5df94 (192 bytes)
//
// 4 xrefs:
// > pugi::xpath_node_set::xpath_node_set @ 0xb5e00c
// > pugi::xpath_node_set::xpath_node_set @ 0xb5e05c
// > pugi::xpath_node_set::operator= @ 0xb5e08c
// > ??> @ 0xb88d8
//
// 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
//
void __fastcall pugi::xpath_node_set::_assign(
pugi::xpath_node_set *this,
const pugi::xpath_node *a2,
const pugi::xpath_node *a3)
{
size_t v3; // x19
_QWORD *v5; // x0
_QWORD *v6; // x21
char *v7; // x0
char *v8; // x0
__int64 v9; // x0
__int64 v10; // x1
const pugi::xpath_node *v11; // [xsp+30h] [xbp+30h]
const pugi::xpath_node *v12; // [xsp+38h] [xbp+38h]
const pugi::xpath_node *v13; // [xsp+38h] [xbp+38h]
v3 = a3 - a2;
if ( (unsigned __int64)(a3 - a2) <= 0x1F )
{
v8 = *((char **)this + 3);
v6 = (_QWORD *)((char *)this + 8);
if ( v8 != (char *)this + 8 )
{
v11 = a3;
v13 = a2;
off_1230F80(v8);
a3 = v11;
a2 = v13;
}
if ( a2 != a3 )
{
v9 = *(_QWORD *)a2;
v10 = *((_QWORD *)a2 + 1);
*v6 = v9;
*((_QWORD *)this + 2) = v10;
}
}
else
{
v12 = a2;
v5 = off_1230F88(a3 - a2);
v6 = v5;
if ( !v5 )
return;
memcpy(v5, v12, v3);
v7 = *((char **)this + 3);
if ( v7 != (char *)this + 8 )
off_1230F80(v7);
}
*((_QWORD *)this + 3) = v6;
*((_QWORD *)this + 4) = (char *)v6 + v3;
}