//
// pugi::xpath_node_set::_assign from 0x607978 to 0x6079d8 (96 bytes)
//
// 3 xrefs:
// > pugi::xpath_node_set::xpath_node_set @ 0x607a18
// > pugi::xpath_node_set::xpath_node_set @ 0x607a3e
// > pugi::xpath_node_set::operator= @ 0x607a58
//
// 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; // r5
pugi::xpath_node_set *v7; // r0
_DWORD *v8; // r6
int v9; // r1
_DWORD *v10; // r0
pugi::xpath_node_set *v11; // r0
v3 = a3 - a2;
if ( (unsigned int)(a3 - a2) > 0xF )
{
v10 = (_DWORD *)off_ABAE6C(a3 - a2);
v8 = v10;
if ( !v10 )
return;
memcpy(v10, a2, v3);
v11 = *((pugi::xpath_node_set **)this + 3);
if ( v11 != (pugi::xpath_node_set *)((char *)this + 4) )
off_ABAE70(v11);
}
else
{
v7 = *((pugi::xpath_node_set **)this + 3);
v8 = (_DWORD *)((char *)this + 4);
if ( v7 != (pugi::xpath_node_set *)((char *)this + 4) )
off_ABAE70(v7);
if ( a2 != a3 )
{
v9 = *((_DWORD *)a2 + 1);
*v8 = *(_DWORD *)a2;
*((_DWORD *)this + 2) = v9;
}
}
*((_DWORD *)this + 3) = v8;
*((_DWORD *)this + 4) = (char *)v8 + v3;
}